>>1,D=R[Y];if(0>>1;Y r(L,q))X r(ee,L)?(R[Y]=ee,R[X]=q,Y=X):(R[Y]=L,R[V]=q,Y=V);else if(X r(ee,q))R[Y]=ee,R[X]=q,Y=X;else break e}}return I}function r(R,I){var q=R.sortIndex-I.sortIndex;return q!==0?q:R.id-I.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var f=[],c=[],h=1,d=null,p=3,v=!1,b=!1,w=!1,k=!1,_=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function E(R){for(var I=t(c);I!==null;){if(I.callback===null)i(c);else if(I.startTime<=R)i(c),I.sortIndex=I.expirationTime,n(f,I);else break;I=t(c)}}function O(R){if(w=!1,E(R),!b)if(t(f)!==null)b=!0,j||(j=!0,F());else{var I=t(c);I!==null&&$(O,I.startTime-R)}}var j=!1,M=-1,N=5,H=-1;function P(){return k?!0:!(e.unstable_now()-H R&&P());){var Y=d.callback;if(typeof Y=="function"){d.callback=null,p=d.priorityLevel;var D=Y(d.expirationTime<=R);if(R=e.unstable_now(),typeof D=="function"){d.callback=D,E(R),I=!0;break n}d===t(f)&&i(f),E(R)}else i(f);d=t(f)}if(d!==null)I=!0;else{var W=t(c);W!==null&&$(O,W.startTime-R),I=!1}}break e}finally{d=null,p=q,v=!1}I=void 0}}finally{I?F():j=!1}}}var F;if(typeof x=="function")F=function(){x(z)};else if(typeof MessageChannel<"u"){var G=new MessageChannel,U=G.port2;G.port1.onmessage=z,F=function(){U.postMessage(null)}}else F=function(){_(z,0)};function $(R,I){M=_(function(){R(e.unstable_now())},I)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125 Y?(R.sortIndex=q,n(c,R),t(f)===null&&R===t(c)&&(w?(C(M),M=-1):w=!0,$(O,q-Y))):(R.sortIndex=D,n(f,R),b||v||(b=!0,j||(j=!0,F()))),R},e.unstable_shouldYield=P,e.unstable_wrapCallback=function(R){var I=p;return function(){var q=p;p=I;try{return R.apply(this,arguments)}finally{p=q}}}})(Pk)),Pk}var $T;function die(){return $T||($T=1,Rk.exports=cie()),Rk.exports}/** + * @license React + * react-dom-client.production.js + * + * Copyright (c) Meta Platforms, Inc. and affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var zT;function hie(){if(zT)return eh;zT=1;var e=die(),n=M6(),t=gz();function i(s){var u="https://react.dev/errors/"+s;if(1 D||(s.current=Y[D],Y[D]=null,D--)}function L(s,u){D++,Y[D]=s.current,s.current=u}var X=W(null),ee=W(null),re=W(null),se=W(null);function ye(s,u){switch(L(re,u),L(ee,s),L(X,null),u.nodeType){case 9:case 11:s=(s=u.documentElement)&&(s=s.namespaceURI)?$E(s):0;break;default:if(s=u.tagName,u=u.namespaceURI)u=$E(u),s=zE(u,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}V(X),L(X,s)}function ae(){V(X),V(ee),V(re)}function le(s){s.memoizedState!==null&&L(se,s);var u=X.current,m=zE(u,s.type);u!==m&&(L(ee,s),L(X,m))}function _e(s){ee.current===s&&(V(X),V(ee)),se.current===s&&(V(se),Gd._currentValue=q)}var ne,ze;function we(s){if(ne===void 0)try{throw Error()}catch(m){var u=m.stack.trim().match(/\n( *(at )?)/);ne=u&&u[1]||"",ze=-1 )":-1 S||J[g]!==ce[S]){var Oe=` +`+J[g].replace(" at new "," at ");return s.displayName&&Oe.includes(" ")&&(Oe=Oe.replace(" ",s.displayName)),Oe}while(1<=g&&0<=S);break}}}finally{Ce=!1,Error.prepareStackTrace=m}return(m=s?s.displayName||s.name:"")?we(m):""}function ge(s,u){switch(s.tag){case 26:case 27:case 5:return we(s.type);case 16:return we("Lazy");case 13:return s.child!==u&&u!==null?we("Suspense Fallback"):we("Suspense");case 19:return we("SuspenseList");case 0:case 15:return Ne(s.type,!1);case 11:return Ne(s.type.render,!1);case 1:return Ne(s.type,!0);case 31:return we("Activity");default:return""}}function xe(s){try{var u="",m=null;do u+=ge(s,m),m=s,s=s.return;while(s);return u}catch(g){return` +Error generating stack: `+g.message+` +`+g.stack}}var Pe=Object.prototype.hasOwnProperty,ue=e.unstable_scheduleCallback,Be=e.unstable_cancelCallback,Ge=e.unstable_shouldYield,Ve=e.unstable_requestPaint,Xe=e.unstable_now,Qe=e.unstable_getCurrentPriorityLevel,ie=e.unstable_ImmediatePriority,he=e.unstable_UserBlockingPriority,Ye=e.unstable_NormalPriority,Je=e.unstable_LowPriority,Se=e.unstable_IdlePriority,tn=e.log,cn=e.unstable_setDisableYieldValue,On=null,mn=null;function an(s){if(typeof tn=="function"&&cn(s),mn&&typeof mn.setStrictMode=="function")try{mn.setStrictMode(On,s)}catch{}}var en=Math.clz32?Math.clz32:Fe,Rn=Math.log,De=Math.LN2;function Fe(s){return s>>>=0,s===0?32:31-(Rn(s)/De|0)|0}var jn=256,bn=262144,yn=4194304;function wn(s){var u=s&42;if(u!==0)return u;switch(s&-s){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:return s&261888;case 262144:case 524288:case 1048576:case 2097152:return s&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function it(s,u,m){var g=s.pendingLanes;if(g===0)return 0;var S=0,T=s.suspendedLanes,B=s.pingedLanes;s=s.warmLanes;var K=g&134217727;return K!==0?(g=K&~T,g!==0?S=wn(g):(B&=K,B!==0?S=wn(B):m||(m=K&~s,m!==0&&(S=wn(m))))):(K=g&~T,K!==0?S=wn(K):B!==0?S=wn(B):m||(m=g&~s,m!==0&&(S=wn(m)))),S===0?0:u!==0&&u!==S&&(u&T)===0&&(T=S&-S,m=u&-u,T>=m||T===32&&(m&4194048)!==0)?u:S}function _t(s,u){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&u)===0}function Le(s,u){switch(s){case 1:case 2:case 4:case 8:case 64:return u+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 u+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 qe(){var s=yn;return yn<<=1,(yn&62914560)===0&&(yn=4194304),s}function Nn(s){for(var u=[],m=0;31>m;m++)u.push(s);return u}function st(s,u){s.pendingLanes|=u,u!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Mn(s,u,m,g,S,T){var B=s.pendingLanes;s.pendingLanes=m,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=m,s.entangledLanes&=m,s.errorRecoveryDisabledLanes&=m,s.shellSuspendCounter=0;var K=s.entanglements,J=s.expirationTimes,ce=s.hiddenUpdates;for(m=B&~m;0 "u")return null;try{return s.activeElement||s.body}catch{return s.body}}var _p=/[\n"\\]/g;function ir(s){return s.replace(_p,function(u){return"\\"+u.charCodeAt(0).toString(16)+" "})}function fd(s,u,m,g,S,T,B,K){s.name="",B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?s.type=B:s.removeAttribute("type"),u!=null?B==="number"?(u===0&&s.value===""||s.value!=u)&&(s.value=""+tr(u)):s.value!==""+tr(u)&&(s.value=""+tr(u)):B!=="submit"&&B!=="reset"||s.removeAttribute("value"),u!=null?cd(s,B,tr(u)):m!=null?cd(s,B,tr(m)):g!=null&&s.removeAttribute("value"),S==null&&T!=null&&(s.defaultChecked=!!T),S!=null&&(s.checked=S&&typeof S!="function"&&typeof S!="symbol"),K!=null&&typeof K!="function"&&typeof K!="symbol"&&typeof K!="boolean"?s.name=""+tr(K):s.removeAttribute("name")}function xp(s,u,m,g,S,T,B,K){if(T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"&&(s.type=T),u!=null||m!=null){if(!(T!=="submit"&&T!=="reset"||u!=null)){Uu(s);return}m=m!=null?""+tr(m):"",u=u!=null?""+tr(u):m,K||u===s.value||(s.value=u),s.defaultValue=u}g=g??S,g=typeof g!="function"&&typeof g!="symbol"&&!!g,s.checked=K?s.checked:!!g,s.defaultChecked=!!g,B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"&&(s.name=B),Uu(s)}function cd(s,u,m){u==="number"&&El(s.ownerDocument)===s||s.defaultValue===""+m||(s.defaultValue=""+m)}function bs(s,u,m,g){if(s=s.options,u){u={};for(var S=0;S "u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Dl=!1;if(Wi)try{var Za={};Object.defineProperty(Za,"passive",{get:function(){Dl=!0}}),window.addEventListener("test",Za,Za),window.removeEventListener("test",Za,Za)}catch{Dl=!1}var Mr=null,Ri=null,ws=null;function Sp(){if(ws)return ws;var s,u=Ri,m=u.length,g,S="value"in Mr?Mr.value:Mr.textContent,T=S.length;for(s=0;s =md),HA=" ",UA=!1;function VA(s,u){switch(s){case"keyup":return kG.indexOf(u.keyCode)!==-1;case"keydown":return u.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function WA(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Gu=!1;function xG(s,u){switch(s){case"compositionend":return WA(u);case"keypress":return u.which!==32?null:(UA=!0,HA);case"textInput":return s=u.data,s===HA&&UA?null:s;default:return null}}function SG(s,u){if(Gu)return s==="compositionend"||!ob&&VA(s,u)?(s=Sp(),ws=Ri=Mr=null,Gu=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(u.ctrlKey||u.altKey||u.metaKey)||u.ctrlKey&&u.altKey){if(u.char&&1 =u)return{node:m,offset:u-s};s=g}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=eO(m)}}function tO(s,u){return s&&u?s===u?!0:s&&s.nodeType===3?!1:u&&u.nodeType===3?tO(s,u.parentNode):"contains"in s?s.contains(u):s.compareDocumentPosition?!!(s.compareDocumentPosition(u)&16):!1:!1}function iO(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var u=El(s.document);u instanceof s.HTMLIFrameElement;){try{var m=typeof u.contentWindow.location.href=="string"}catch{m=!1}if(m)s=u.contentWindow;else break;u=El(s.document)}return u}function ub(s){var u=s&&s.nodeName&&s.nodeName.toLowerCase();return u&&(u==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||u==="textarea"||s.contentEditable==="true")}var DG=Wi&&"documentMode"in document&&11>=document.documentMode,Yu=null,fb=null,yd=null,cb=!1;function rO(s,u,m){var g=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;cb||Yu==null||Yu!==El(g)||(g=Yu,"selectionStart"in g&&ub(g)?g={start:g.selectionStart,end:g.selectionEnd}:(g=(g.ownerDocument&&g.ownerDocument.defaultView||window).getSelection(),g={anchorNode:g.anchorNode,anchorOffset:g.anchorOffset,focusNode:g.focusNode,focusOffset:g.focusOffset}),yd&&gd(yd,g)||(yd=g,g=pv(fb,"onSelect"),0 >=B,S-=B,Qa=1<<32-en(u)+S|m< Fn?(nt=fn,fn=null):nt=fn.sibling;var ct=de(oe,fn,fe[Fn],Te);if(ct===null){fn===null&&(fn=nt);break}s&&fn&&ct.alternate===null&&u(oe,fn),te=T(ct,te,Fn),ft===null?pn=ct:ft.sibling=ct,ft=ct,fn=nt}if(Fn===fe.length)return m(oe,fn),rt&&Co(oe,Fn),pn;if(fn===null){for(;FnFn?(nt=fn,fn=null):nt=fn.sibling;var qs=de(oe,fn,ct.value,Te);if(qs===null){fn===null&&(fn=nt);break}s&&fn&&qs.alternate===null&&u(oe,fn),te=T(qs,te,Fn),ft===null?pn=qs:ft.sibling=qs,ft=qs,fn=nt}if(ct.done)return m(oe,fn),rt&&Co(oe,Fn),pn;if(fn===null){for(;!ct.done;Fn++,ct=fe.next())ct=Me(oe,ct.value,Te),ct!==null&&(te=T(ct,te,Fn),ft===null?pn=ct:ft.sibling=ct,ft=ct);return rt&&Co(oe,Fn),pn}for(fn=g(fn);!ct.done;Fn++,ct=fe.next())ct=ke(fn,oe,Fn,ct.value,Te),ct!==null&&(s&&ct.alternate!==null&&fn.delete(ct.key===null?Fn:ct.key),te=T(ct,te,Fn),ft===null?pn=ct:ft.sibling=ct,ft=ct);return s&&fn.forEach(function(QY){return u(oe,QY)}),rt&&Co(oe,Fn),pn}function Ot(oe,te,fe,Te){if(typeof fe=="object"&&fe!==null&&fe.type===w&&fe.key===null&&(fe=fe.props.children),typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case v:e:{for(var pn=fe.key;te!==null;){if(te.key===pn){if(pn=fe.type,pn===w){if(te.tag===7){m(oe,te.sibling),Te=S(te,fe.props.children),Te.return=oe,oe=Te;break e}}else if(te.elementType===pn||typeof pn=="object"&&pn!==null&&pn.$$typeof===N&&ql(pn)===te.type){m(oe,te.sibling),Te=S(te,fe.props),Sd(Te,fe),Te.return=oe,oe=Te;break e}m(oe,te);break}else u(oe,te);te=te.sibling}fe.type===w?(Te=zl(fe.props.children,oe.mode,Te,fe.key),Te.return=oe,oe=Te):(Te=Dp(fe.type,fe.key,fe.props,null,oe.mode,Te),Sd(Te,fe),Te.return=oe,oe=Te)}return B(oe);case b:e:{for(pn=fe.key;te!==null;){if(te.key===pn)if(te.tag===4&&te.stateNode.containerInfo===fe.containerInfo&&te.stateNode.implementation===fe.implementation){m(oe,te.sibling),Te=S(te,fe.children||[]),Te.return=oe,oe=Te;break e}else{m(oe,te);break}else u(oe,te);te=te.sibling}Te=yb(fe,oe.mode,Te),Te.return=oe,oe=Te}return B(oe);case N:return fe=ql(fe),Ot(oe,te,fe,Te)}if($(fe))return ln(oe,te,fe,Te);if(F(fe)){if(pn=F(fe),typeof pn!="function")throw Error(i(150));return fe=pn.call(fe),_n(oe,te,fe,Te)}if(typeof fe.then=="function")return Ot(oe,te,Ip(fe),Te);if(fe.$$typeof===x)return Ot(oe,te,Np(oe,fe),Te);Bp(oe,fe)}return typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint"?(fe=""+fe,te!==null&&te.tag===6?(m(oe,te.sibling),Te=S(te,fe),Te.return=oe,oe=Te):(m(oe,te),Te=gb(fe,oe.mode,Te),Te.return=oe,oe=Te),B(oe)):m(oe,te)}return function(oe,te,fe,Te){try{xd=0;var pn=Ot(oe,te,fe,Te);return of=null,pn}catch(fn){if(fn===af||fn===zp)throw fn;var ft=Rr(29,fn,null,oe.mode);return ft.lanes=Te,ft.return=oe,ft}finally{}}}var Ul=OO(!0),jO=OO(!1),Cs=!1;function Tb(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Mb(s,u){s=s.updateQueue,u.updateQueue===s&&(u.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function As(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function Os(s,u,m){var g=s.updateQueue;if(g===null)return null;if(g=g.shared,(pt&2)!==0){var S=g.pending;return S===null?u.next=u:(u.next=S.next,S.next=u),g.pending=u,u=Mp(s),cO(s,null,m),u}return Tp(s,g,u,m),Mp(s)}function Cd(s,u,m){if(u=u.updateQueue,u!==null&&(u=u.shared,(m&4194048)!==0)){var g=u.lanes;g&=s.pendingLanes,m|=g,u.lanes=m,rn(s,m)}}function Db(s,u){var m=s.updateQueue,g=s.alternate;if(g!==null&&(g=g.updateQueue,m===g)){var S=null,T=null;if(m=m.firstBaseUpdate,m!==null){do{var B={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};T===null?S=T=B:T=T.next=B,m=m.next}while(m!==null);T===null?S=T=u:T=T.next=u}else S=T=u;m={baseState:g.baseState,firstBaseUpdate:S,lastBaseUpdate:T,shared:g.shared,callbacks:g.callbacks},s.updateQueue=m;return}s=m.lastBaseUpdate,s===null?m.firstBaseUpdate=u:s.next=u,m.lastBaseUpdate=u}var Rb=!1;function Ad(){if(Rb){var s=rf;if(s!==null)throw s}}function Od(s,u,m,g){Rb=!1;var S=s.updateQueue;Cs=!1;var T=S.firstBaseUpdate,B=S.lastBaseUpdate,K=S.shared.pending;if(K!==null){S.shared.pending=null;var J=K,ce=J.next;J.next=null,B===null?T=ce:B.next=ce,B=J;var Oe=s.alternate;Oe!==null&&(Oe=Oe.updateQueue,K=Oe.lastBaseUpdate,K!==B&&(K===null?Oe.firstBaseUpdate=ce:K.next=ce,Oe.lastBaseUpdate=J))}if(T!==null){var Me=S.baseState;B=0,Oe=ce=J=null,K=T;do{var de=K.lane&-536870913,ke=de!==K.lane;if(ke?(et&de)===de:(g&de)===de){de!==0&&de===tf&&(Rb=!0),Oe!==null&&(Oe=Oe.next={lane:0,tag:K.tag,payload:K.payload,callback:null,next:null});e:{var ln=s,_n=K;de=u;var Ot=m;switch(_n.tag){case 1:if(ln=_n.payload,typeof ln=="function"){Me=ln.call(Ot,Me,de);break e}Me=ln;break e;case 3:ln.flags=ln.flags&-65537|128;case 0:if(ln=_n.payload,de=typeof ln=="function"?ln.call(Ot,Me,de):ln,de==null)break e;Me=d({},Me,de);break e;case 2:Cs=!0}}de=K.callback,de!==null&&(s.flags|=64,ke&&(s.flags|=8192),ke=S.callbacks,ke===null?S.callbacks=[de]:ke.push(de))}else ke={lane:de,tag:K.tag,payload:K.payload,callback:K.callback,next:null},Oe===null?(ce=Oe=ke,J=Me):Oe=Oe.next=ke,B|=de;if(K=K.next,K===null){if(K=S.shared.pending,K===null)break;ke=K,K=ke.next,ke.next=null,S.lastBaseUpdate=ke,S.shared.pending=null}}while(!0);Oe===null&&(J=Me),S.baseState=J,S.firstBaseUpdate=ce,S.lastBaseUpdate=Oe,T===null&&(S.shared.lanes=0),Ds|=B,s.lanes=B,s.memoizedState=Me}}function EO(s,u){if(typeof s!="function")throw Error(i(191,s));s.call(u)}function TO(s,u){var m=s.callbacks;if(m!==null)for(s.callbacks=null,s=0;s T?T:8;var B=R.T,K={};R.T=K,Qb(s,!1,u,m);try{var J=S(),ce=R.S;if(ce!==null&&ce(K,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var Oe=FG(J,g);Td(s,u,Oe,Lr(s))}else Td(s,u,g,Lr(s))}catch(Me){Td(s,u,{then:function(){},status:"rejected",reason:Me},Lr())}finally{I.p=T,B!==null&&K.types!==null&&(B.types=K.types),R.T=B}}function GG(){}function Xb(s,u,m,g){if(s.tag!==5)throw Error(i(476));var S=lj(s).queue;sj(s,S,u,q,m===null?GG:function(){return uj(s),m(g)})}function lj(s){var u=s.memoizedState;if(u!==null)return u;u={memoizedState:q,baseState:q,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:q},next:null};var m={};return u.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Eo,lastRenderedState:m},next:null},s.memoizedState=u,s=s.alternate,s!==null&&(s.memoizedState=u),u}function uj(s){var u=lj(s);u.next===null&&(u=s.alternate.memoizedState),Td(s,u.next.queue,{},Lr())}function Zb(){return Ni(Gd)}function fj(){return li().memoizedState}function cj(){return li().memoizedState}function YG(s){for(var u=s.return;u!==null;){switch(u.tag){case 24:case 3:var m=Lr();s=As(m);var g=Os(u,s,m);g!==null&&(yr(g,u,m),Cd(g,u,m)),u={cache:Ab()},s.payload=u;return}u=u.return}}function KG(s,u,m){var g=Lr();m={lane:g,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null},Xp(s)?hj(u,m):(m=pb(s,u,m,g),m!==null&&(yr(m,s,g),mj(m,u,g)))}function dj(s,u,m){var g=Lr();Td(s,u,m,g)}function Td(s,u,m,g){var S={lane:g,revertLane:0,gesture:null,action:m,hasEagerState:!1,eagerState:null,next:null};if(Xp(s))hj(u,S);else{var T=s.alternate;if(s.lanes===0&&(T===null||T.lanes===0)&&(T=u.lastRenderedReducer,T!==null))try{var B=u.lastRenderedState,K=T(B,m);if(S.hasEagerState=!0,S.eagerState=K,Dr(K,B))return Tp(s,u,S,0),Tt===null&&Ep(),!1}catch{}finally{}if(m=pb(s,u,S,g),m!==null)return yr(m,s,g),mj(m,u,g),!0}return!1}function Qb(s,u,m,g){if(g={lane:2,revertLane:Tw(),gesture:null,action:g,hasEagerState:!1,eagerState:null,next:null},Xp(s)){if(u)throw Error(i(479))}else u=pb(s,m,g,2),u!==null&&yr(u,s,2)}function Xp(s){var u=s.alternate;return s===zn||u!==null&&u===zn}function hj(s,u){lf=Hp=!0;var m=s.pending;m===null?u.next=u:(u.next=m.next,m.next=u),s.pending=u}function mj(s,u,m){if((m&4194048)!==0){var g=u.lanes;g&=s.pendingLanes,m|=g,u.lanes=m,rn(s,m)}}var Md={readContext:Ni,use:Wp,useCallback:Jt,useContext:Jt,useEffect:Jt,useImperativeHandle:Jt,useLayoutEffect:Jt,useInsertionEffect:Jt,useMemo:Jt,useReducer:Jt,useRef:Jt,useState:Jt,useDebugValue:Jt,useDeferredValue:Jt,useTransition:Jt,useSyncExternalStore:Jt,useId:Jt,useHostTransitionStatus:Jt,useFormState:Jt,useActionState:Jt,useOptimistic:Jt,useMemoCache:Jt,useCacheRefresh:Jt};Md.useEffectEvent=Jt;var pj={readContext:Ni,use:Wp,useCallback:function(s,u){return sr().memoizedState=[s,u===void 0?null:u],s},useContext:Ni,useEffect:QO,useImperativeHandle:function(s,u,m){m=m!=null?m.concat([s]):null,Yp(4194308,4,tj.bind(null,u,s),m)},useLayoutEffect:function(s,u){return Yp(4194308,4,s,u)},useInsertionEffect:function(s,u){Yp(4,2,s,u)},useMemo:function(s,u){var m=sr();u=u===void 0?null:u;var g=s();if(Vl){an(!0);try{s()}finally{an(!1)}}return m.memoizedState=[g,u],g},useReducer:function(s,u,m){var g=sr();if(m!==void 0){var S=m(u);if(Vl){an(!0);try{m(u)}finally{an(!1)}}}else S=u;return g.memoizedState=g.baseState=S,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:S},g.queue=s,s=s.dispatch=KG.bind(null,zn,s),[g.memoizedState,s]},useRef:function(s){var u=sr();return s={current:s},u.memoizedState=s},useState:function(s){s=Vb(s);var u=s.queue,m=dj.bind(null,zn,u);return u.dispatch=m,[s.memoizedState,m]},useDebugValue:Yb,useDeferredValue:function(s,u){var m=sr();return Kb(m,s,u)},useTransition:function(){var s=Vb(!1);return s=sj.bind(null,zn,s.queue,!0,!1),sr().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,u,m){var g=zn,S=sr();if(rt){if(m===void 0)throw Error(i(407));m=m()}else{if(m=u(),Tt===null)throw Error(i(349));(et&127)!==0||$O(g,u,m)}S.memoizedState=m;var T={value:m,getSnapshot:u};return S.queue=T,QO(LO.bind(null,g,T,s),[s]),g.flags|=2048,ff(9,{destroy:void 0},zO.bind(null,g,T,m,u),null),m},useId:function(){var s=sr(),u=Tt.identifierPrefix;if(rt){var m=Ja,g=Qa;m=(g&~(1<<32-en(g)-1)).toString(32)+m,u="_"+u+"R_"+m,m=Up++,0 <\/script>",T=T.removeChild(T.firstChild);break;case"select":T=typeof g.is=="string"?B.createElement("select",{is:g.is}):B.createElement("select"),g.multiple?T.multiple=!0:g.size&&(T.size=g.size);break;default:T=typeof g.is=="string"?B.createElement(S,{is:g.is}):B.createElement(S)}}T[Qn]=u,T[Xt]=g;e:for(B=u.child;B!==null;){if(B.tag===5||B.tag===6)T.appendChild(B.stateNode);else if(B.tag!==4&&B.tag!==27&&B.child!==null){B.child.return=B,B=B.child;continue}if(B===u)break e;for(;B.sibling===null;){if(B.return===null||B.return===u)break e;B=B.return}B.sibling.return=B.return,B=B.sibling}u.stateNode=T;e:switch(zi(T,S,g),S){case"button":case"input":case"select":case"textarea":g=!!g.autoFocus;break e;case"img":g=!0;break e;default:g=!1}g&&Mo(u)}}return Ft(u),dw(u,u.type,s===null?null:s.memoizedProps,u.pendingProps,m),null;case 6:if(s&&u.stateNode!=null)s.memoizedProps!==g&&Mo(u);else{if(typeof g!="string"&&u.stateNode===null)throw Error(i(166));if(s=re.current,ef(u)){if(s=u.stateNode,m=u.memoizedProps,g=null,S=Pi,S!==null)switch(S.tag){case 27:case 5:g=S.memoizedProps}s[Qn]=u,s=!!(s.nodeValue===m||g!==null&&g.suppressHydrationWarning===!0||PE(s.nodeValue,m)),s||xs(u,!0)}else s=vv(s).createTextNode(g),s[Qn]=u,u.stateNode=s}return Ft(u),null;case 31:if(m=u.memoizedState,s===null||s.memoizedState!==null){if(g=ef(u),m!==null){if(s===null){if(!g)throw Error(i(318));if(s=u.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(i(557));s[Qn]=u}else Ll(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Ft(u),s=!1}else m=_b(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=m),s=!0;if(!s)return u.flags&256?(Nr(u),u):(Nr(u),null);if((u.flags&128)!==0)throw Error(i(558))}return Ft(u),null;case 13:if(g=u.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(S=ef(u),g!==null&&g.dehydrated!==null){if(s===null){if(!S)throw Error(i(318));if(S=u.memoizedState,S=S!==null?S.dehydrated:null,!S)throw Error(i(317));S[Qn]=u}else Ll(),(u.flags&128)===0&&(u.memoizedState=null),u.flags|=4;Ft(u),S=!1}else S=_b(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=S),S=!0;if(!S)return u.flags&256?(Nr(u),u):(Nr(u),null)}return Nr(u),(u.flags&128)!==0?(u.lanes=m,u):(m=g!==null,s=s!==null&&s.memoizedState!==null,m&&(g=u.child,S=null,g.alternate!==null&&g.alternate.memoizedState!==null&&g.alternate.memoizedState.cachePool!==null&&(S=g.alternate.memoizedState.cachePool.pool),T=null,g.memoizedState!==null&&g.memoizedState.cachePool!==null&&(T=g.memoizedState.cachePool.pool),T!==S&&(g.flags|=2048)),m!==s&&m&&(u.child.flags|=8192),nv(u,u.updateQueue),Ft(u),null);case 4:return ae(),s===null&&Pw(u.stateNode.containerInfo),Ft(u),null;case 10:return Oo(u.type),Ft(u),null;case 19:if(V(si),g=u.memoizedState,g===null)return Ft(u),null;if(S=(u.flags&128)!==0,T=g.rendering,T===null)if(S)Rd(g,!1);else{if(ei!==0||s!==null&&(s.flags&128)!==0)for(s=u.child;s!==null;){if(T=qp(s),T!==null){for(u.flags|=128,Rd(g,!1),s=T.updateQueue,u.updateQueue=s,nv(u,s),u.subtreeFlags=0,s=m,m=u.child;m!==null;)dO(m,s),m=m.sibling;return L(si,si.current&1|2),rt&&Co(u,g.treeForkCount),u.child}s=s.sibling}g.tail!==null&&Xe()>ov&&(u.flags|=128,S=!0,Rd(g,!1),u.lanes=4194304)}else{if(!S)if(s=qp(T),s!==null){if(u.flags|=128,S=!0,s=s.updateQueue,u.updateQueue=s,nv(u,s),Rd(g,!0),g.tail===null&&g.tailMode==="hidden"&&!T.alternate&&!rt)return Ft(u),null}else 2*Xe()-g.renderingStartTime>ov&&m!==536870912&&(u.flags|=128,S=!0,Rd(g,!1),u.lanes=4194304);g.isBackwards?(T.sibling=u.child,u.child=T):(s=g.last,s!==null?s.sibling=T:u.child=T,g.last=T)}return g.tail!==null?(s=g.tail,g.rendering=s,g.tail=s.sibling,g.renderingStartTime=Xe(),s.sibling=null,m=si.current,L(si,S?m&1|2:m&1),rt&&Co(u,g.treeForkCount),s):(Ft(u),null);case 22:case 23:return Nr(u),Nb(),g=u.memoizedState!==null,s!==null?s.memoizedState!==null!==g&&(u.flags|=8192):g&&(u.flags|=8192),g?(m&536870912)!==0&&(u.flags&128)===0&&(Ft(u),u.subtreeFlags&6&&(u.flags|=8192)):Ft(u),m=u.updateQueue,m!==null&&nv(u,m.retryQueue),m=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(m=s.memoizedState.cachePool.pool),g=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(g=u.memoizedState.cachePool.pool),g!==m&&(u.flags|=2048),s!==null&&V(Fl),null;case 24:return m=null,s!==null&&(m=s.memoizedState.cache),u.memoizedState.cache!==m&&(u.flags|=2048),Oo(fi),Ft(u),null;case 25:return null;case 30:return null}throw Error(i(156,u.tag))}function eY(s,u){switch(wb(u),u.tag){case 1:return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 3:return Oo(fi),ae(),s=u.flags,(s&65536)!==0&&(s&128)===0?(u.flags=s&-65537|128,u):null;case 26:case 27:case 5:return _e(u),null;case 31:if(u.memoizedState!==null){if(Nr(u),u.alternate===null)throw Error(i(340));Ll()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 13:if(Nr(u),s=u.memoizedState,s!==null&&s.dehydrated!==null){if(u.alternate===null)throw Error(i(340));Ll()}return s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 19:return V(si),null;case 4:return ae(),null;case 10:return Oo(u.type),null;case 22:case 23:return Nr(u),Nb(),s!==null&&V(Fl),s=u.flags,s&65536?(u.flags=s&-65537|128,u):null;case 24:return Oo(fi),null;case 25:return null;default:return null}}function Ij(s,u){switch(wb(u),u.tag){case 3:Oo(fi),ae();break;case 26:case 27:case 5:_e(u);break;case 4:ae();break;case 31:u.memoizedState!==null&&Nr(u);break;case 13:Nr(u);break;case 19:V(si);break;case 10:Oo(u.type);break;case 22:case 23:Nr(u),Nb(),s!==null&&V(Fl);break;case 24:Oo(fi)}}function Pd(s,u){try{var m=u.updateQueue,g=m!==null?m.lastEffect:null;if(g!==null){var S=g.next;m=S;do{if((m.tag&s)===s){g=void 0;var T=m.create,B=m.inst;g=T(),B.destroy=g}m=m.next}while(m!==S)}}catch(K){wt(u,u.return,K)}}function Ts(s,u,m){try{var g=u.updateQueue,S=g!==null?g.lastEffect:null;if(S!==null){var T=S.next;g=T;do{if((g.tag&s)===s){var B=g.inst,K=B.destroy;if(K!==void 0){B.destroy=void 0,S=u;var J=m,ce=K;try{ce()}catch(Oe){wt(S,J,Oe)}}}g=g.next}while(g!==T)}}catch(Oe){wt(u,u.return,Oe)}}function Bj(s){var u=s.updateQueue;if(u!==null){var m=s.stateNode;try{TO(u,m)}catch(g){wt(s,s.return,g)}}}function Fj(s,u,m){m.props=Wl(s.type,s.memoizedProps),m.state=s.memoizedState;try{m.componentWillUnmount()}catch(g){wt(s,u,g)}}function Nd(s,u){try{var m=s.ref;if(m!==null){switch(s.tag){case 26:case 27:case 5:var g=s.stateNode;break;case 30:g=s.stateNode;break;default:g=s.stateNode}typeof m=="function"?s.refCleanup=m(g):m.current=g}}catch(S){wt(s,u,S)}}function eo(s,u){var m=s.ref,g=s.refCleanup;if(m!==null)if(typeof g=="function")try{g()}catch(S){wt(s,u,S)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(S){wt(s,u,S)}else m.current=null}function qj(s){var u=s.type,m=s.memoizedProps,g=s.stateNode;try{e:switch(u){case"button":case"input":case"select":case"textarea":m.autoFocus&&g.focus();break e;case"img":m.src?g.src=m.src:m.srcSet&&(g.srcset=m.srcSet)}}catch(S){wt(s,s.return,S)}}function hw(s,u,m){try{var g=s.stateNode;_Y(g,s.type,m,u),g[Xt]=u}catch(S){wt(s,s.return,S)}}function Hj(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&zs(s.type)||s.tag===4}function mw(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||Hj(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&zs(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function pw(s,u,m){var g=s.tag;if(g===5||g===6)s=s.stateNode,u?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(s,u):(u=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,u.appendChild(s),m=m._reactRootContainer,m!=null||u.onclick!==null||(u.onclick=$t));else if(g!==4&&(g===27&&zs(s.type)&&(m=s.stateNode,u=null),s=s.child,s!==null))for(pw(s,u,m),s=s.sibling;s!==null;)pw(s,u,m),s=s.sibling}function tv(s,u,m){var g=s.tag;if(g===5||g===6)s=s.stateNode,u?m.insertBefore(s,u):m.appendChild(s);else if(g!==4&&(g===27&&zs(s.type)&&(m=s.stateNode),s=s.child,s!==null))for(tv(s,u,m),s=s.sibling;s!==null;)tv(s,u,m),s=s.sibling}function Uj(s){var u=s.stateNode,m=s.memoizedProps;try{for(var g=s.type,S=u.attributes;S.length;)u.removeAttributeNode(S[0]);zi(u,g,m),u[Qn]=s,u[Xt]=m}catch(T){wt(s,s.return,T)}}var Do=!1,hi=!1,vw=!1,Vj=typeof WeakSet=="function"?WeakSet:Set,Oi=null;function nY(s,u){if(s=s.containerInfo,zw=xv,s=iO(s),ub(s)){if("selectionStart"in s)var m={start:s.selectionStart,end:s.selectionEnd};else e:{m=(m=s.ownerDocument)&&m.defaultView||window;var g=m.getSelection&&m.getSelection();if(g&&g.rangeCount!==0){m=g.anchorNode;var S=g.anchorOffset,T=g.focusNode;g=g.focusOffset;try{m.nodeType,T.nodeType}catch{m=null;break e}var B=0,K=-1,J=-1,ce=0,Oe=0,Me=s,de=null;n:for(;;){for(var ke;Me!==m||S!==0&&Me.nodeType!==3||(K=B+S),Me!==T||g!==0&&Me.nodeType!==3||(J=B+g),Me.nodeType===3&&(B+=Me.nodeValue.length),(ke=Me.firstChild)!==null;)de=Me,Me=ke;for(;;){if(Me===s)break n;if(de===m&&++ce===S&&(K=B),de===T&&++Oe===g&&(J=B),(ke=Me.nextSibling)!==null)break;Me=de,de=Me.parentNode}Me=ke}m=K===-1||J===-1?null:{start:K,end:J}}else m=null}m=m||{start:0,end:0}}else m=null;for(Lw={focusedElem:s,selectionRange:m},xv=!1,Oi=u;Oi!==null;)if(u=Oi,s=u.child,(u.subtreeFlags&1028)!==0&&s!==null)s.return=u,Oi=s;else for(;Oi!==null;){switch(u=Oi,T=u.alternate,s=u.flags,u.tag){case 0:if((s&4)!==0&&(s=u.updateQueue,s=s!==null?s.events:null,s!==null))for(m=0;m title"))),zi(T,g,m),T[Qn]=s,un(T),g=T;break e;case"link":var B=ZE("link","href",S).get(g+(m.href||""));if(B){for(var K=0;K Ot&&(B=Ot,Ot=_n,_n=B);var oe=nO(K,_n),te=nO(K,Ot);if(oe&&te&&(ke.rangeCount!==1||ke.anchorNode!==oe.node||ke.anchorOffset!==oe.offset||ke.focusNode!==te.node||ke.focusOffset!==te.offset)){var fe=Me.createRange();fe.setStart(oe.node,oe.offset),ke.removeAllRanges(),_n>Ot?(ke.addRange(fe),ke.extend(te.node,te.offset)):(fe.setEnd(te.node,te.offset),ke.addRange(fe))}}}}for(Me=[],ke=K;ke=ke.parentNode;)ke.nodeType===1&&Me.push({element:ke,left:ke.scrollLeft,top:ke.scrollTop});for(typeof K.focus=="function"&&K.focus(),K=0;K m?32:m,R.T=null,m=xw,xw=null;var T=Ps,B=zo;if(gi=0,pf=Ps=null,zo=0,(pt&6)!==0)throw Error(i(331));var K=pt;if(pt|=4,tE(T.current),Jj(T,T.current,B,m),pt=K,Fd(0,!1),mn&&typeof mn.onPostCommitFiberRoot=="function")try{mn.onPostCommitFiberRoot(On,T)}catch{}return!0}finally{I.p=S,R.T=g,wE(s,u)}}function _E(s,u,m){u=Qr(m,u),u=tw(s.stateNode,u,2),s=Os(s,u,2),s!==null&&(st(s,2),no(s))}function wt(s,u,m){if(s.tag===3)_E(s,s,m);else for(;u!==null;){if(u.tag===3){_E(u,s,m);break}else if(u.tag===1){var g=u.stateNode;if(typeof u.type.getDerivedStateFromError=="function"||typeof g.componentDidCatch=="function"&&(Rs===null||!Rs.has(g))){s=Qr(m,s),m=xj(2),g=Os(u,m,2),g!==null&&(Sj(m,g,u,s),st(g,2),no(g));break}}u=u.return}}function Ow(s,u,m){var g=s.pingCache;if(g===null){g=s.pingCache=new rY;var S=new Set;g.set(u,S)}else S=g.get(u),S===void 0&&(S=new Set,g.set(u,S));S.has(m)||(bw=!0,S.add(m),s=uY.bind(null,s,u,m),u.then(s,s))}function uY(s,u,m){var g=s.pingCache;g!==null&&g.delete(u),s.pingedLanes|=s.suspendedLanes&m,s.warmLanes&=~m,Tt===s&&(et&m)===m&&(ei===4||ei===3&&(et&62914560)===et&&300>Xe()-av?(pt&2)===0&&vf(s,0):ww|=m,mf===et&&(mf=0)),no(s)}function xE(s,u){u===0&&(u=qe()),s=$l(s,u),s!==null&&(st(s,u),no(s))}function fY(s){var u=s.memoizedState,m=0;u!==null&&(m=u.retryLane),xE(s,m)}function cY(s,u){var m=0;switch(s.tag){case 31:case 13:var g=s.stateNode,S=s.memoizedState;S!==null&&(m=S.retryLane);break;case 19:g=s.stateNode;break;case 22:g=s.stateNode._retryCache;break;default:throw Error(i(314))}g!==null&&g.delete(u),xE(s,m)}function dY(s,u){return ue(s,u)}var dv=null,yf=null,jw=!1,hv=!1,Ew=!1,$s=0;function no(s){s!==yf&&s.next===null&&(yf===null?dv=yf=s:yf=yf.next=s),hv=!0,jw||(jw=!0,mY())}function Fd(s,u){if(!Ew&&hv){Ew=!0;do for(var m=!1,g=dv;g!==null;){if(s!==0){var S=g.pendingLanes;if(S===0)var T=0;else{var B=g.suspendedLanes,K=g.pingedLanes;T=(1<<31-en(42|s)+1)-1,T&=S&~(B&~K),T=T&201326741?T&201326741|1:T?T|2:0}T!==0&&(m=!0,OE(g,T))}else T=et,T=it(g,g===Tt?T:0,g.cancelPendingCommit!==null||g.timeoutHandle!==-1),(T&3)===0||_t(g,T)||(m=!0,OE(g,T));g=g.next}while(m);Ew=!1}}function hY(){SE()}function SE(){hv=jw=!1;var s=0;$s!==0&&SY()&&(s=$s);for(var u=Xe(),m=null,g=dv;g!==null;){var S=g.next,T=CE(g,u);T===0?(g.next=null,m===null?dv=S:m.next=S,S===null&&(yf=m)):(m=g,(s!==0||(T&3)!==0)&&(hv=!0)),g=S}gi!==0&&gi!==5||Fd(s),$s!==0&&($s=0)}function CE(s,u){for(var m=s.suspendedLanes,g=s.pingedLanes,S=s.expirationTimes,T=s.pendingLanes&-62914561;0 K)break;var Oe=J.transferSize,Me=J.initiatorType;Oe&&NE(Me)&&(J=J.responseEnd,B+=Oe*(J "u"?null:document;function GE(s,u,m){var g=bf;if(g&&typeof u=="string"&&u){var S=ir(u);S='link[rel="'+s+'"][href="'+S+'"]',typeof m=="string"&&(S+='[crossorigin="'+m+'"]'),WE.has(S)||(WE.add(S),s={rel:s,crossOrigin:m,href:u},g.querySelector(S)===null&&(u=g.createElement("link"),zi(u,"link",s),un(u),g.head.appendChild(u)))}}function RY(s){Lo.D(s),GE("dns-prefetch",s,null)}function PY(s,u){Lo.C(s,u),GE("preconnect",s,u)}function NY(s,u,m){Lo.L(s,u,m);var g=bf;if(g&&s&&u){var S='link[rel="preload"][as="'+ir(u)+'"]';u==="image"&&m&&m.imageSrcSet?(S+='[imagesrcset="'+ir(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(S+='[imagesizes="'+ir(m.imageSizes)+'"]')):S+='[href="'+ir(s)+'"]';var T=S;switch(u){case"style":T=wf(s);break;case"script":T=kf(s)}ra.has(T)||(s=d({rel:"preload",href:u==="image"&&m&&m.imageSrcSet?void 0:s,as:u},m),ra.set(T,s),g.querySelector(S)!==null||u==="style"&&g.querySelector(Vd(T))||u==="script"&&g.querySelector(Wd(T))||(u=g.createElement("link"),zi(u,"link",s),un(u),g.head.appendChild(u)))}}function $Y(s,u){Lo.m(s,u);var m=bf;if(m&&s){var g=u&&typeof u.as=="string"?u.as:"script",S='link[rel="modulepreload"][as="'+ir(g)+'"][href="'+ir(s)+'"]',T=S;switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":T=kf(s)}if(!ra.has(T)&&(s=d({rel:"modulepreload",href:s},u),ra.set(T,s),m.querySelector(S)===null)){switch(g){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(Wd(T)))return}g=m.createElement("link"),zi(g,"link",s),un(g),m.head.appendChild(g)}}}function zY(s,u,m){Lo.S(s,u,m);var g=bf;if(g&&s){var S=ai(g).hoistableStyles,T=wf(s);u=u||"default";var B=S.get(T);if(!B){var K={loading:0,preload:null};if(B=g.querySelector(Vd(T)))K.loading=5;else{s=d({rel:"stylesheet",href:s,"data-precedence":u},m),(m=ra.get(T))&&Vw(s,m);var J=B=g.createElement("link");un(J),zi(J,"link",s),J._p=new Promise(function(ce,Oe){J.onload=ce,J.onerror=Oe}),J.addEventListener("load",function(){K.loading|=1}),J.addEventListener("error",function(){K.loading|=2}),K.loading|=4,yv(B,u,g)}B={type:"stylesheet",instance:B,count:1,state:K},S.set(T,B)}}}function LY(s,u){Lo.X(s,u);var m=bf;if(m&&s){var g=ai(m).hoistableScripts,S=kf(s),T=g.get(S);T||(T=m.querySelector(Wd(S)),T||(s=d({src:s,async:!0},u),(u=ra.get(S))&&Ww(s,u),T=m.createElement("script"),un(T),zi(T,"link",s),m.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},g.set(S,T))}}function IY(s,u){Lo.M(s,u);var m=bf;if(m&&s){var g=ai(m).hoistableScripts,S=kf(s),T=g.get(S);T||(T=m.querySelector(Wd(S)),T||(s=d({src:s,async:!0,type:"module"},u),(u=ra.get(S))&&Ww(s,u),T=m.createElement("script"),un(T),zi(T,"link",s),m.head.appendChild(T)),T={type:"script",instance:T,count:1,state:null},g.set(S,T))}}function YE(s,u,m,g){var S=(S=re.current)?gv(S):null;if(!S)throw Error(i(446));switch(s){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(u=wf(m.href),m=ai(S).hoistableStyles,g=m.get(u),g||(g={type:"style",instance:null,count:0,state:null},m.set(u,g)),g):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){s=wf(m.href);var T=ai(S).hoistableStyles,B=T.get(s);if(B||(S=S.ownerDocument||S,B={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},T.set(s,B),(T=S.querySelector(Vd(s)))&&!T._p&&(B.instance=T,B.state.loading=5),ra.has(s)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},ra.set(s,m),T||BY(S,s,m,B.state))),u&&g===null)throw Error(i(528,""));return B}if(u&&g!==null)throw Error(i(529,""));return null;case"script":return u=m.async,m=m.src,typeof m=="string"&&u&&typeof u!="function"&&typeof u!="symbol"?(u=kf(m),m=ai(S).hoistableScripts,g=m.get(u),g||(g={type:"script",instance:null,count:0,state:null},m.set(u,g)),g):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,s))}}function wf(s){return'href="'+ir(s)+'"'}function Vd(s){return'link[rel="stylesheet"]['+s+"]"}function KE(s){return d({},s,{"data-precedence":s.precedence,precedence:null})}function BY(s,u,m,g){s.querySelector('link[rel="preload"][as="style"]['+u+"]")?g.loading=1:(u=s.createElement("link"),g.preload=u,u.addEventListener("load",function(){return g.loading|=1}),u.addEventListener("error",function(){return g.loading|=2}),zi(u,"link",m),un(u),s.head.appendChild(u))}function kf(s){return'[src="'+ir(s)+'"]'}function Wd(s){return"script[async]"+s}function XE(s,u,m){if(u.count++,u.instance===null)switch(u.type){case"style":var g=s.querySelector('style[data-href~="'+ir(m.href)+'"]');if(g)return u.instance=g,un(g),g;var S=d({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return g=(s.ownerDocument||s).createElement("style"),un(g),zi(g,"style",S),yv(g,m.precedence,s),u.instance=g;case"stylesheet":S=wf(m.href);var T=s.querySelector(Vd(S));if(T)return u.state.loading|=4,u.instance=T,un(T),T;g=KE(m),(S=ra.get(S))&&Vw(g,S),T=(s.ownerDocument||s).createElement("link"),un(T);var B=T;return B._p=new Promise(function(K,J){B.onload=K,B.onerror=J}),zi(T,"link",g),u.state.loading|=4,yv(T,m.precedence,s),u.instance=T;case"script":return T=kf(m.src),(S=s.querySelector(Wd(T)))?(u.instance=S,un(S),S):(g=m,(S=ra.get(T))&&(g=d({},m),Ww(g,S)),s=s.ownerDocument||s,S=s.createElement("script"),un(S),zi(S,"link",g),s.head.appendChild(S),u.instance=S);case"void":return null;default:throw Error(i(443,u.type))}else u.type==="stylesheet"&&(u.state.loading&4)===0&&(g=u.instance,u.state.loading|=4,yv(g,m.precedence,s));return u.instance}function yv(s,u,m){for(var g=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),S=g.length?g[g.length-1]:null,T=S,B=0;B title"):null)}function FY(s,u,m){if(m===1||u.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof u.precedence!="string"||typeof u.href!="string"||u.href==="")break;return!0;case"link":if(typeof u.rel!="string"||typeof u.href!="string"||u.href===""||u.onLoad||u.onError)break;switch(u.rel){case"stylesheet":return s=u.disabled,typeof u.precedence=="string"&&s==null;default:return!0}case"script":if(u.async&&typeof u.async!="function"&&typeof u.async!="symbol"&&!u.onLoad&&!u.onError&&u.src&&typeof u.src=="string")return!0}return!1}function JE(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}function qY(s,u,m,g){if(m.type==="stylesheet"&&(typeof g.media!="string"||matchMedia(g.media).matches!==!1)&&(m.state.loading&4)===0){if(m.instance===null){var S=wf(g.href),T=u.querySelector(Vd(S));if(T){u=T._p,u!==null&&typeof u=="object"&&typeof u.then=="function"&&(s.count++,s=wv.bind(s),u.then(s,s)),m.state.loading|=4,m.instance=T,un(T);return}T=u.ownerDocument||u,g=KE(g),(S=ra.get(S))&&Vw(g,S),T=T.createElement("link"),un(T);var B=T;B._p=new Promise(function(K,J){B.onload=K,B.onerror=J}),zi(T,"link",g),m.instance=T}s.stylesheets===null&&(s.stylesheets=new Map),s.stylesheets.set(m,u),(u=m.state.preload)&&(m.state.loading&3)===0&&(s.count++,m=wv.bind(s),u.addEventListener("load",m),u.addEventListener("error",m))}}var Gw=0;function HY(s,u){return s.stylesheets&&s.count===0&&_v(s,s.stylesheets),0 Gw?50:800)+u);return s.unsuspend=m,function(){s.unsuspend=null,clearTimeout(g),clearTimeout(S)}}:null}function wv(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)_v(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var kv=null;function _v(s,u){s.stylesheets=null,s.unsuspend!==null&&(s.count++,kv=new Map,u.forEach(UY,s),kv=null,wv.call(s))}function UY(s,u){if(!(u.state.loading&4)){var m=kv.get(s);if(m)var g=m.get(null);else{m=new Map,kv.set(s,m);for(var S=s.querySelectorAll("link[data-precedence],style[data-precedence]"),T=0;T "u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),Dk.exports=hie(),Dk.exports}var pie=mie();class HB extends Error{constructor(n,t){super(t),this.status=n,this.name="HTTPError"}}async function vie(e,n,t){const i=await fetch(`${t}${e}`,{credentials:"include",...n,headers:{"Content-Type":"application/json",...(n==null?void 0:n.headers)??{}}});if(!i.ok){const r=await i.json().catch(()=>({Message:i.statusText}));throw new HB(i.status,r.Message??r.message??i.statusText)}if(i.status!==204)return i.json()}const gie="/api";function tt(e,n){return vie(e,n,gie)}function yie(){return tt("/board")}function bie(){return tt("/flags")}function wie(e){return tt("/columns",{method:"POST",body:JSON.stringify({name:e})})}function Zl(e,n){return tt(`/columns/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function kie(e){return tt(`/columns/${e}`,{method:"DELETE"})}function _ie(e){return tt("/columns/reorder",{method:"POST",body:JSON.stringify({ids:e})})}function xie(e){return tt("/cards",{method:"POST",body:JSON.stringify(e)})}function Of(e,n){return tt(`/cards/${e}`,{method:"PATCH",body:JSON.stringify(n)})}function Sie(e){return tt(`/cards/${e}`,{method:"DELETE"})}function Nk(e,n){return tt(`/cards/${e}/stickers`,{method:"PUT",body:JSON.stringify({stickers:n})})}function Cie(){return tt("/trash")}function Aie(e){return tt(`/cards/${e}/restore`,{method:"POST"})}function Oie(e){return tt(`/cards/${e}/purge`,{method:"DELETE"})}function jie(){return tt("/archive")}function Eie(e){return tt(`/cards/${e}/archive`,{method:"POST"})}function Tie(e){return tt(`/cards/${e}/unarchive`,{method:"POST"})}function Mie(e,n){const t=new URLSearchParams({date:e});return tt(`/reports/daily?${t.toString()}`)}function Die(e){return tt(`/reports/daily/summary?date=${encodeURIComponent(e)}`)}function Rie(e,n){const t=new URLSearchParams({date:e});return tt(`/reports/daily/summary?${t.toString()}`,{method:"POST"})}function Pie(e){return tt(`/settings/${encodeURIComponent(e)}`)}function Nie(e,n){return tt(`/settings/${encodeURIComponent(e)}`,{method:"PUT",body:JSON.stringify({value:n})})}function $ie(e,n,t){return tt(`/cards/${e}/move`,{method:"POST",body:JSON.stringify({column_id:n,ordered_ids:t})})}function zie(e){return tt(`/cards/${e}/history`)}function Lie(e){return tt(`/cards/${e}/messages`)}function Iie(e,n){return tt(`/cards/${e}/messages`,{method:"POST",body:JSON.stringify({body:n})})}function Bie(e,n){return tt(`/cards/${e}/messages/${n}`,{method:"DELETE"})}function Fie(e){return tt(`/cards/${e}/duplicate`,{method:"POST"})}function qie(){return`${window.location.protocol==="https:"?"wss:":"ws:"}//${window.location.host}/api/chat/ws`}function Hie(e,n,t){return new Promise((i,r)=>{const a=new WebSocket(qie());let o=!1;const l=f=>{if(!o){o=!0;try{a.close()}catch{}f?r(f):i()}};a.onopen=()=>{a.send(JSON.stringify({messages:e}))},a.onmessage=f=>{try{const c=JSON.parse(typeof f.data=="string"?f.data:"");n(c),(c.type==="done"||c.type==="error")&&l(c.type==="error"?new Error(c.error):void 0)}catch(c){l(c)}},a.onerror=()=>l(new Error("websocket error")),a.onclose=()=>l()})}function IT(e,n){return tt("/auth/login",{method:"POST",body:JSON.stringify({username:e,password:n})})}function Uie(e,n,t){return tt("/auth/register",{method:"POST",body:JSON.stringify({username:e,password:n,display_name:t})})}function Vie(){return tt("/auth/logout",{method:"POST"})}function Wie(){return tt("/me")}function BT(e){return tt("/me",{method:"PATCH",body:JSON.stringify(e)})}function UB(){return tt("/users")}function VB(){return tt("/tags")}function Gie(){return tt("/requesters")}function WB(e){const n=new URLSearchParams;e.from&&n.set("from",e.from),e.to&&n.set("to",e.to),e.assignee_id&&n.set("assignee_id",e.assignee_id),e.requester&&n.set("requester",e.requester),e.tags&&e.tags.length>0&&n.set("tags",e.tags.join(","));const t=n.toString();return tt(`/metrics${t?`?${t}`:""}`)}const GB=A.createContext(null);function Yie({children:e}){const[n,t]=A.useState(null),[i,r]=A.useState(!0);A.useEffect(()=>{Wie().then(t).catch(f=>{(!(f instanceof HB)||f.status!==401)&&console.warn("getMe failed",f)}).finally(()=>r(!1))},[]);const a=A.useCallback(async(f,c)=>{const h=await IT(f,c);t(h)},[]),o=A.useCallback(async(f,c,h)=>{await Uie(f,c,h);const d=await IT(f,c);t(d)},[]),l=A.useCallback(async()=>{await Vie(),t(null)},[]);return y.jsx(GB.Provider,{value:{user:n,loading:i,login:a,register:o,logout:l,setUser:t},children:e})}function KC(){const e=A.useContext(GB);if(!e)throw new Error("useAuth: missing AuthProvider");return e}function Kie(){for(var e=arguments.length,n=new Array(e),t=0;t i=>{n.forEach(r=>r(i))},n)}const Zy=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Uc(e){const n=Object.prototype.toString.call(e);return n==="[object Window]"||n==="[object global]"}function XC(e){return"nodeType"in e}function dr(e){var n,t;return e?Uc(e)?e:XC(e)&&(n=(t=e.ownerDocument)==null?void 0:t.defaultView)!=null?n:window:window}function ZC(e){const{Document:n}=dr(e);return e instanceof n}function ep(e){return Uc(e)?!1:e instanceof dr(e).HTMLElement}function YB(e){return e instanceof dr(e).SVGElement}function Vc(e){return e?Uc(e)?e.document:XC(e)?ZC(e)?e:ep(e)||YB(e)?e.ownerDocument:document:document:document}const Va=Zy?A.useLayoutEffect:A.useEffect;function Qy(e){const n=A.useRef(e);return Va(()=>{n.current=e}),A.useCallback(function(){for(var t=arguments.length,i=new Array(t),r=0;r {e.current=setInterval(i,r)},[]),t=A.useCallback(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[]);return[n,t]}function Zh(e,n){n===void 0&&(n=[e]);const t=A.useRef(e);return Va(()=>{t.current!==e&&(t.current=e)},n),t}function np(e,n){const t=A.useRef();return A.useMemo(()=>{const i=e(t.current);return t.current=i,i},[...n])}function zg(e){const n=Qy(e),t=A.useRef(null),i=A.useCallback(r=>{r!==t.current&&(n==null||n(r,t.current)),t.current=r},[]);return[t,i]}function Lg(e){const n=A.useRef();return A.useEffect(()=>{n.current=e},[e]),n.current}let $k={};function tp(e,n){return A.useMemo(()=>{if(n)return n;const t=$k[e]==null?0:$k[e]+1;return $k[e]=t,e+"-"+t},[e,n])}function KB(e){return function(n){for(var t=arguments.length,i=new Array(t>1?t-1:0),r=1;r {const l=Object.entries(o);for(const[f,c]of l){const h=a[f];h!=null&&(a[f]=h+e*c)}return a},{...n})}}const Uf=KB(1),Qh=KB(-1);function Zie(e){return"clientX"in e&&"clientY"in e}function Jy(e){if(!e)return!1;const{KeyboardEvent:n}=dr(e.target);return n&&e instanceof n}function Qie(e){if(!e)return!1;const{TouchEvent:n}=dr(e.target);return n&&e instanceof n}function Ig(e){if(Qie(e)){if(e.touches&&e.touches.length){const{clientX:n,clientY:t}=e.touches[0];return{x:n,y:t}}else if(e.changedTouches&&e.changedTouches.length){const{clientX:n,clientY:t}=e.changedTouches[0];return{x:n,y:t}}}return Zie(e)?{x:e.clientX,y:e.clientY}:null}const po=Object.freeze({Translate:{toString(e){if(!e)return;const{x:n,y:t}=e;return"translate3d("+(n?Math.round(n):0)+"px, "+(t?Math.round(t):0)+"px, 0)"}},Scale:{toString(e){if(!e)return;const{scaleX:n,scaleY:t}=e;return"scaleX("+n+") scaleY("+t+")"}},Transform:{toString(e){if(e)return[po.Translate.toString(e),po.Scale.toString(e)].join(" ")}},Transition:{toString(e){let{property:n,duration:t,easing:i}=e;return n+" "+t+"ms "+i}}}),FT="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Jie(e){return e.matches(FT)?e:e.querySelector(FT)}const ere={display:"none"};function nre(e){let{id:n,value:t}=e;return Q.createElement("div",{id:n,style:ere},t)}function tre(e){let{id:n,announcement:t,ariaLiveType:i="assertive"}=e;const r={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return Q.createElement("div",{id:n,style:r,role:"status","aria-live":i,"aria-atomic":!0},t)}function ire(){const[e,n]=A.useState("");return{announce:A.useCallback(i=>{i!=null&&n(i)},[]),announcement:e}}const XB=A.createContext(null);function rre(e){const n=A.useContext(XB);A.useEffect(()=>{if(!n)throw new Error("useDndMonitor must be used within a children of ");return n(e)},[e,n])}function are(){const[e]=A.useState(()=>new Set),n=A.useCallback(i=>(e.add(i),()=>e.delete(i)),[e]);return[A.useCallback(i=>{let{type:r,event:a}=i;e.forEach(o=>{var l;return(l=o[r])==null?void 0:l.call(o,a)})},[e]),n]}const ore={draggable:` + To pick up a draggable item, press the space bar. + While dragging, use the arrow keys to move the item. + Press space again to drop the item in its new position, or press escape to cancel. + `},sre={onDragStart(e){let{active:n}=e;return"Picked up draggable item "+n.id+"."},onDragOver(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was moved over droppable area "+t.id+".":"Draggable item "+n.id+" is no longer over a droppable area."},onDragEnd(e){let{active:n,over:t}=e;return t?"Draggable item "+n.id+" was dropped over droppable area "+t.id:"Draggable item "+n.id+" was dropped."},onDragCancel(e){let{active:n}=e;return"Dragging was cancelled. Draggable item "+n.id+" was dropped."}};function lre(e){let{announcements:n=sre,container:t,hiddenTextDescribedById:i,screenReaderInstructions:r=ore}=e;const{announce:a,announcement:o}=ire(),l=tp("DndLiveRegion"),[f,c]=A.useState(!1);if(A.useEffect(()=>{c(!0)},[]),rre(A.useMemo(()=>({onDragStart(d){let{active:p}=d;a(n.onDragStart({active:p}))},onDragMove(d){let{active:p,over:v}=d;n.onDragMove&&a(n.onDragMove({active:p,over:v}))},onDragOver(d){let{active:p,over:v}=d;a(n.onDragOver({active:p,over:v}))},onDragEnd(d){let{active:p,over:v}=d;a(n.onDragEnd({active:p,over:v}))},onDragCancel(d){let{active:p,over:v}=d;a(n.onDragCancel({active:p,over:v}))}}),[a,n])),!f)return null;const h=Q.createElement(Q.Fragment,null,Q.createElement(nre,{id:i,value:r.draggable}),Q.createElement(tre,{id:l,announcement:o}));return t?Qs.createPortal(h,t):h}var ki;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(ki||(ki={}));function Bg(){}function qT(e,n){return A.useMemo(()=>({sensor:e,options:n??{}}),[e,n])}function ure(){for(var e=arguments.length,n=new Array(e),t=0;t [...n].filter(i=>i!=null),[...n])}const Wa=Object.freeze({x:0,y:0});function QC(e,n){return Math.sqrt(Math.pow(e.x-n.x,2)+Math.pow(e.y-n.y,2))}function fre(e,n){const t=Ig(e);if(!t)return"0 0";const i={x:(t.x-n.left)/n.width*100,y:(t.y-n.top)/n.height*100};return i.x+"% "+i.y+"%"}function JC(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return t-i}function cre(e,n){let{data:{value:t}}=e,{data:{value:i}}=n;return i-t}function DS(e){let{left:n,top:t,height:i,width:r}=e;return[{x:n,y:t},{x:n+r,y:t},{x:n,y:t+i},{x:n+r,y:t+i}]}function ZB(e,n){if(!e||e.length===0)return null;const[t]=e;return t[n]}function HT(e,n,t){return n===void 0&&(n=e.left),t===void 0&&(t=e.top),{x:n+e.width*.5,y:t+e.height*.5}}const dre=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=HT(n,n.left,n.top),a=[];for(const o of i){const{id:l}=o,f=t.get(l);if(f){const c=QC(HT(f),r);a.push({id:l,data:{droppableContainer:o,value:c}})}}return a.sort(JC)},QB=e=>{let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=DS(n),a=[];for(const o of i){const{id:l}=o,f=t.get(l);if(f){const c=DS(f),h=r.reduce((p,v,b)=>p+QC(c[b],v),0),d=Number((h/4).toFixed(4));a.push({id:l,data:{droppableContainer:o,value:d}})}}return a.sort(JC)};function hre(e,n){const t=Math.max(n.top,e.top),i=Math.max(n.left,e.left),r=Math.min(n.left+n.width,e.left+e.width),a=Math.min(n.top+n.height,e.top+e.height),o=r-i,l=a-t;if(i {let{collisionRect:n,droppableRects:t,droppableContainers:i}=e;const r=[];for(const a of i){const{id:o}=a,l=t.get(o);if(l){const f=hre(l,n);f>0&&r.push({id:o,data:{droppableContainer:a,value:f}})}}return r.sort(cre)};function mre(e,n){const{top:t,left:i,bottom:r,right:a}=n;return t<=e.y&&e.y<=r&&i<=e.x&&e.x<=a}const pre=e=>{let{droppableContainers:n,droppableRects:t,pointerCoordinates:i}=e;if(!i)return[];const r=[];for(const a of n){const{id:o}=a,l=t.get(o);if(l&&mre(i,l)){const c=DS(l).reduce((d,p)=>d+QC(i,p),0),h=Number((c/4).toFixed(4));r.push({id:o,data:{droppableContainer:a,value:h}})}}return r.sort(JC)};function vre(e,n,t){return{...e,scaleX:n&&t?n.width/t.width:1,scaleY:n&&t?n.height/t.height:1}}function eF(e,n){return e&&n?{x:e.left-n.left,y:e.top-n.top}:Wa}function gre(e){return function(t){for(var i=arguments.length,r=new Array(i>1?i-1:0),a=1;a({...o,top:o.top+e*l.y,bottom:o.bottom+e*l.y,left:o.left+e*l.x,right:o.right+e*l.x}),{...t})}}const yre=gre(1);function nF(e){if(e.startsWith("matrix3d(")){const n=e.slice(9,-1).split(/, /);return{x:+n[12],y:+n[13],scaleX:+n[0],scaleY:+n[5]}}else if(e.startsWith("matrix(")){const n=e.slice(7,-1).split(/, /);return{x:+n[4],y:+n[5],scaleX:+n[0],scaleY:+n[3]}}return null}function bre(e,n,t){const i=nF(n);if(!i)return e;const{scaleX:r,scaleY:a,x:o,y:l}=i,f=e.left-o-(1-r)*parseFloat(t),c=e.top-l-(1-a)*parseFloat(t.slice(t.indexOf(" ")+1)),h=r?e.width/r:e.width,d=a?e.height/a:e.height;return{width:h,height:d,top:c,right:f+h,bottom:c+d,left:f}}const wre={ignoreTransform:!1};function Wc(e,n){n===void 0&&(n=wre);let t=e.getBoundingClientRect();if(n.ignoreTransform){const{transform:c,transformOrigin:h}=dr(e).getComputedStyle(e);c&&(t=bre(t,c,h))}const{top:i,left:r,width:a,height:o,bottom:l,right:f}=t;return{top:i,left:r,width:a,height:o,bottom:l,right:f}}function UT(e){return Wc(e,{ignoreTransform:!0})}function kre(e){const n=e.innerWidth,t=e.innerHeight;return{top:0,left:0,right:n,bottom:t,width:n,height:t}}function _re(e,n){return n===void 0&&(n=dr(e).getComputedStyle(e)),n.position==="fixed"}function xre(e,n){n===void 0&&(n=dr(e).getComputedStyle(e));const t=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(r=>{const a=n[r];return typeof a=="string"?t.test(a):!1})}function e0(e,n){const t=[];function i(r){if(n!=null&&t.length>=n||!r)return t;if(ZC(r)&&r.scrollingElement!=null&&!t.includes(r.scrollingElement))return t.push(r.scrollingElement),t;if(!ep(r)||YB(r)||t.includes(r))return t;const a=dr(e).getComputedStyle(r);return r!==e&&xre(r,a)&&t.push(r),_re(r,a)?t:i(r.parentNode)}return e?i(e):t}function tF(e){const[n]=e0(e,1);return n??null}function zk(e){return!Zy||!e?null:Uc(e)?e:XC(e)?ZC(e)||e===Vc(e).scrollingElement?window:ep(e)?e:null:null}function iF(e){return Uc(e)?e.scrollX:e.scrollLeft}function rF(e){return Uc(e)?e.scrollY:e.scrollTop}function RS(e){return{x:iF(e),y:rF(e)}}var Ti;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ti||(Ti={}));function aF(e){return!Zy||!e?!1:e===document.scrollingElement}function oF(e){const n={x:0,y:0},t=aF(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},i={x:e.scrollWidth-t.width,y:e.scrollHeight-t.height},r=e.scrollTop<=n.y,a=e.scrollLeft<=n.x,o=e.scrollTop>=i.y,l=e.scrollLeft>=i.x;return{isTop:r,isLeft:a,isBottom:o,isRight:l,maxScroll:i,minScroll:n}}const Sre={x:.2,y:.2};function Cre(e,n,t,i,r){let{top:a,left:o,right:l,bottom:f}=t;i===void 0&&(i=10),r===void 0&&(r=Sre);const{isTop:c,isBottom:h,isLeft:d,isRight:p}=oF(e),v={x:0,y:0},b={x:0,y:0},w={height:n.height*r.y,width:n.width*r.x};return!c&&a<=n.top+w.height?(v.y=Ti.Backward,b.y=i*Math.abs((n.top+w.height-a)/w.height)):!h&&f>=n.bottom-w.height&&(v.y=Ti.Forward,b.y=i*Math.abs((n.bottom-w.height-f)/w.height)),!p&&l>=n.right-w.width?(v.x=Ti.Forward,b.x=i*Math.abs((n.right-w.width-l)/w.width)):!d&&o<=n.left+w.width&&(v.x=Ti.Backward,b.x=i*Math.abs((n.left+w.width-o)/w.width)),{direction:v,speed:b}}function Are(e){if(e===document.scrollingElement){const{innerWidth:a,innerHeight:o}=window;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}const{top:n,left:t,right:i,bottom:r}=e.getBoundingClientRect();return{top:n,left:t,right:i,bottom:r,width:e.clientWidth,height:e.clientHeight}}function sF(e){return e.reduce((n,t)=>Uf(n,RS(t)),Wa)}function Ore(e){return e.reduce((n,t)=>n+iF(t),0)}function jre(e){return e.reduce((n,t)=>n+rF(t),0)}function lF(e,n){if(n===void 0&&(n=Wc),!e)return;const{top:t,left:i,bottom:r,right:a}=n(e);tF(e)&&(r<=0||a<=0||t>=window.innerHeight||i>=window.innerWidth)&&e.scrollIntoView({block:"center",inline:"center"})}const Ere=[["x",["left","right"],Ore],["y",["top","bottom"],jre]];class e9{constructor(n,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const i=e0(t),r=sF(i);this.rect={...n},this.width=n.width,this.height=n.height;for(const[a,o,l]of Ere)for(const f of o)Object.defineProperty(this,f,{get:()=>{const c=l(i),h=r[a]-c;return this.rect[f]+h},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Th{constructor(n){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(t=>{var i;return(i=this.target)==null?void 0:i.removeEventListener(...t)})},this.target=n}add(n,t,i){var r;(r=this.target)==null||r.addEventListener(n,t,i),this.listeners.push([n,t,i])}}function Tre(e){const{EventTarget:n}=dr(e);return e instanceof n?e:Vc(e)}function Lk(e,n){const t=Math.abs(e.x),i=Math.abs(e.y);return typeof n=="number"?Math.sqrt(t**2+i**2)>n:"x"in n&&"y"in n?t>n.x&&i>n.y:"x"in n?t>n.x:"y"in n?i>n.y:!1}var fa;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(fa||(fa={}));function VT(e){e.preventDefault()}function Mre(e){e.stopPropagation()}var at;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(at||(at={}));const uF={start:[at.Space,at.Enter],cancel:[at.Esc],end:[at.Space,at.Enter,at.Tab]},Dre=(e,n)=>{let{currentCoordinates:t}=n;switch(e.code){case at.Right:return{...t,x:t.x+25};case at.Left:return{...t,x:t.x-25};case at.Down:return{...t,y:t.y+25};case at.Up:return{...t,y:t.y-25}}};class n9{constructor(n){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=n;const{event:{target:t}}=n;this.props=n,this.listeners=new Th(Vc(t)),this.windowListeners=new Th(dr(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(fa.Resize,this.handleCancel),this.windowListeners.add(fa.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(fa.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:n,onStart:t}=this.props,i=n.node.current;i&&lF(i),t(Wa)}handleKeyDown(n){if(Jy(n)){const{active:t,context:i,options:r}=this.props,{keyboardCodes:a=uF,coordinateGetter:o=Dre,scrollBehavior:l="smooth"}=r,{code:f}=n;if(a.end.includes(f)){this.handleEnd(n);return}if(a.cancel.includes(f)){this.handleCancel(n);return}const{collisionRect:c}=i.current,h=c?{x:c.left,y:c.top}:Wa;this.referenceCoordinates||(this.referenceCoordinates=h);const d=o(n,{active:t,context:i.current,currentCoordinates:h});if(d){const p=Qh(d,h),v={x:0,y:0},{scrollableAncestors:b}=i.current;for(const w of b){const k=n.code,{isTop:_,isRight:C,isLeft:x,isBottom:E,maxScroll:O,minScroll:j}=oF(w),M=Are(w),N={x:Math.min(k===at.Right?M.right-M.width/2:M.right,Math.max(k===at.Right?M.left:M.left+M.width/2,d.x)),y:Math.min(k===at.Down?M.bottom-M.height/2:M.bottom,Math.max(k===at.Down?M.top:M.top+M.height/2,d.y))},H=k===at.Right&&!C||k===at.Left&&!x,P=k===at.Down&&!E||k===at.Up&&!_;if(H&&N.x!==d.x){const z=w.scrollLeft+p.x,F=k===at.Right&&z<=O.x||k===at.Left&&z>=j.x;if(F&&!p.y){w.scrollTo({left:z,behavior:l});return}F?v.x=w.scrollLeft-z:v.x=k===at.Right?w.scrollLeft-O.x:w.scrollLeft-j.x,v.x&&w.scrollBy({left:-v.x,behavior:l});break}else if(P&&N.y!==d.y){const z=w.scrollTop+p.y,F=k===at.Down&&z<=O.y||k===at.Up&&z>=j.y;if(F&&!p.x){w.scrollTo({top:z,behavior:l});return}F?v.y=w.scrollTop-z:v.y=k===at.Down?w.scrollTop-O.y:w.scrollTop-j.y,v.y&&w.scrollBy({top:-v.y,behavior:l});break}}this.handleMove(n,Uf(Qh(d,this.referenceCoordinates),v))}}}handleMove(n,t){const{onMove:i}=this.props;n.preventDefault(),i(t)}handleEnd(n){const{onEnd:t}=this.props;n.preventDefault(),this.detach(),t()}handleCancel(n){const{onCancel:t}=this.props;n.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}n9.activators=[{eventName:"onKeyDown",handler:(e,n,t)=>{let{keyboardCodes:i=uF,onActivation:r}=n,{active:a}=t;const{code:o}=e.nativeEvent;if(i.start.includes(o)){const l=a.activatorNode.current;return l&&e.target!==l?!1:(e.preventDefault(),r==null||r({event:e.nativeEvent}),!0)}return!1}}];function WT(e){return!!(e&&"distance"in e)}function GT(e){return!!(e&&"delay"in e)}class t9{constructor(n,t,i){var r;i===void 0&&(i=Tre(n.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=n,this.events=t;const{event:a}=n,{target:o}=a;this.props=n,this.events=t,this.document=Vc(o),this.documentListeners=new Th(this.document),this.listeners=new Th(i),this.windowListeners=new Th(dr(o)),this.initialCoordinates=(r=Ig(a))!=null?r:Wa,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:n,props:{options:{activationConstraint:t,bypassActivationConstraint:i}}}=this;if(this.listeners.add(n.move.name,this.handleMove,{passive:!1}),this.listeners.add(n.end.name,this.handleEnd),n.cancel&&this.listeners.add(n.cancel.name,this.handleCancel),this.windowListeners.add(fa.Resize,this.handleCancel),this.windowListeners.add(fa.DragStart,VT),this.windowListeners.add(fa.VisibilityChange,this.handleCancel),this.windowListeners.add(fa.ContextMenu,VT),this.documentListeners.add(fa.Keydown,this.handleKeydown),t){if(i!=null&&i({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(GT(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(WT(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(n,t){const{active:i,onPending:r}=this.props;r(i,n,this.initialCoordinates,t)}handleStart(){const{initialCoordinates:n}=this,{onStart:t}=this.props;n&&(this.activated=!0,this.documentListeners.add(fa.Click,Mre,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(fa.SelectionChange,this.removeTextSelection),t(n))}handleMove(n){var t;const{activated:i,initialCoordinates:r,props:a}=this,{onMove:o,options:{activationConstraint:l}}=a;if(!r)return;const f=(t=Ig(n))!=null?t:Wa,c=Qh(r,f);if(!i&&l){if(WT(l)){if(l.tolerance!=null&&Lk(c,l.tolerance))return this.handleCancel();if(Lk(c,l.distance))return this.handleStart()}if(GT(l)&&Lk(c,l.tolerance))return this.handleCancel();this.handlePending(l,c);return}n.cancelable&&n.preventDefault(),o(f)}handleEnd(){const{onAbort:n,onEnd:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleCancel(){const{onAbort:n,onCancel:t}=this.props;this.detach(),this.activated||n(this.props.active),t()}handleKeydown(n){n.code===at.Esc&&this.handleCancel()}removeTextSelection(){var n;(n=this.document.getSelection())==null||n.removeAllRanges()}}const Rre={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class i9 extends t9{constructor(n){const{event:t}=n,i=Vc(t.target);super(n,Rre,i)}}i9.activators=[{eventName:"onPointerDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return!t.isPrimary||t.button!==0?!1:(i==null||i({event:t}),!0)}}];const Pre={move:{name:"mousemove"},end:{name:"mouseup"}};var PS;(function(e){e[e.RightClick=2]="RightClick"})(PS||(PS={}));class Nre extends t9{constructor(n){super(n,Pre,Vc(n.event.target))}}Nre.activators=[{eventName:"onMouseDown",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;return t.button===PS.RightClick?!1:(i==null||i({event:t}),!0)}}];const Ik={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class $re extends t9{constructor(n){super(n,Ik)}static setup(){return window.addEventListener(Ik.move.name,n,{capture:!1,passive:!1}),function(){window.removeEventListener(Ik.move.name,n)};function n(){}}}$re.activators=[{eventName:"onTouchStart",handler:(e,n)=>{let{nativeEvent:t}=e,{onActivation:i}=n;const{touches:r}=t;return r.length>1?!1:(i==null||i({event:t}),!0)}}];var Mh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Mh||(Mh={}));var Fg;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Fg||(Fg={}));function zre(e){let{acceleration:n,activator:t=Mh.Pointer,canScroll:i,draggingRect:r,enabled:a,interval:o=5,order:l=Fg.TreeOrder,pointerCoordinates:f,scrollableAncestors:c,scrollableAncestorRects:h,delta:d,threshold:p}=e;const v=Ire({delta:d,disabled:!a}),[b,w]=Xie(),k=A.useRef({x:0,y:0}),_=A.useRef({x:0,y:0}),C=A.useMemo(()=>{switch(t){case Mh.Pointer:return f?{top:f.y,bottom:f.y,left:f.x,right:f.x}:null;case Mh.DraggableRect:return r}},[t,r,f]),x=A.useRef(null),E=A.useCallback(()=>{const j=x.current;if(!j)return;const M=k.current.x*_.current.x,N=k.current.y*_.current.y;j.scrollBy(M,N)},[]),O=A.useMemo(()=>l===Fg.TreeOrder?[...c].reverse():c,[l,c]);A.useEffect(()=>{if(!a||!c.length||!C){w();return}for(const j of O){if((i==null?void 0:i(j))===!1)continue;const M=c.indexOf(j),N=h[M];if(!N)continue;const{direction:H,speed:P}=Cre(j,N,C,n,p);for(const z of["x","y"])v[z][H[z]]||(P[z]=0,H[z]=0);if(P.x>0||P.y>0){w(),x.current=j,b(E,o),k.current=P,_.current=H;return}}k.current={x:0,y:0},_.current={x:0,y:0},w()},[n,E,i,w,a,o,JSON.stringify(C),JSON.stringify(v),b,c,O,h,JSON.stringify(p)])}const Lre={x:{[Ti.Backward]:!1,[Ti.Forward]:!1},y:{[Ti.Backward]:!1,[Ti.Forward]:!1}};function Ire(e){let{delta:n,disabled:t}=e;const i=Lg(n);return np(r=>{if(t||!i||!r)return Lre;const a={x:Math.sign(n.x-i.x),y:Math.sign(n.y-i.y)};return{x:{[Ti.Backward]:r.x[Ti.Backward]||a.x===-1,[Ti.Forward]:r.x[Ti.Forward]||a.x===1},y:{[Ti.Backward]:r.y[Ti.Backward]||a.y===-1,[Ti.Forward]:r.y[Ti.Forward]||a.y===1}}},[t,n,i])}function Bre(e,n){const t=n!=null?e.get(n):void 0,i=t?t.node.current:null;return np(r=>{var a;return n==null?null:(a=i??r)!=null?a:null},[i,n])}function Fre(e,n){return A.useMemo(()=>e.reduce((t,i)=>{const{sensor:r}=i,a=r.activators.map(o=>({eventName:o.eventName,handler:n(o.handler,i)}));return[...t,...a]},[]),[e,n])}var Jh;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Jh||(Jh={}));var NS;(function(e){e.Optimized="optimized"})(NS||(NS={}));const YT=new Map;function qre(e,n){let{dragging:t,dependencies:i,config:r}=n;const[a,o]=A.useState(null),{frequency:l,measure:f,strategy:c}=r,h=A.useRef(e),d=k(),p=Zh(d),v=A.useCallback(function(_){_===void 0&&(_=[]),!p.current&&o(C=>C===null?_:C.concat(_.filter(x=>!C.includes(x))))},[p]),b=A.useRef(null),w=np(_=>{if(d&&!t)return YT;if(!_||_===YT||h.current!==e||a!=null){const C=new Map;for(let x of e){if(!x)continue;if(a&&a.length>0&&!a.includes(x.id)&&x.rect.current){C.set(x.id,x.rect.current);continue}const E=x.node.current,O=E?new e9(f(E),E):null;x.rect.current=O,O&&C.set(x.id,O)}return C}return _},[e,a,t,d,f]);return A.useEffect(()=>{h.current=e},[e]),A.useEffect(()=>{d||v()},[t,d]),A.useEffect(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),A.useEffect(()=>{d||typeof l!="number"||b.current!==null||(b.current=setTimeout(()=>{v(),b.current=null},l))},[l,d,v,...i]),{droppableRects:w,measureDroppableContainers:v,measuringScheduled:a!=null};function k(){switch(c){case Jh.Always:return!1;case Jh.BeforeDragging:return t;default:return!t}}}function r9(e,n){return np(t=>e?t||(typeof n=="function"?n(e):e):null,[n,e])}function Hre(e,n){return r9(e,n)}function Ure(e){let{callback:n,disabled:t}=e;const i=Qy(n),r=A.useMemo(()=>{if(t||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:a}=window;return new a(i)},[i,t]);return A.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function n0(e){let{callback:n,disabled:t}=e;const i=Qy(n),r=A.useMemo(()=>{if(t||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:a}=window;return new a(i)},[t]);return A.useEffect(()=>()=>r==null?void 0:r.disconnect(),[r]),r}function Vre(e){return new e9(Wc(e),e)}function KT(e,n,t){n===void 0&&(n=Vre);const[i,r]=A.useState(null);function a(){r(f=>{if(!e)return null;if(e.isConnected===!1){var c;return(c=f??t)!=null?c:null}const h=n(e);return JSON.stringify(f)===JSON.stringify(h)?f:h})}const o=Ure({callback(f){if(e)for(const c of f){const{type:h,target:d}=c;if(h==="childList"&&d instanceof HTMLElement&&d.contains(e)){a();break}}}}),l=n0({callback:a});return Va(()=>{a(),e?(l==null||l.observe(e),o==null||o.observe(document.body,{childList:!0,subtree:!0})):(l==null||l.disconnect(),o==null||o.disconnect())},[e]),i}function Wre(e){const n=r9(e);return eF(e,n)}const XT=[];function Gre(e){const n=A.useRef(e),t=np(i=>e?i&&i!==XT&&e&&n.current&&e.parentNode===n.current.parentNode?i:e0(e):XT,[e]);return A.useEffect(()=>{n.current=e},[e]),t}function Yre(e){const[n,t]=A.useState(null),i=A.useRef(e),r=A.useCallback(a=>{const o=zk(a.target);o&&t(l=>l?(l.set(o,RS(o)),new Map(l)):null)},[]);return A.useEffect(()=>{const a=i.current;if(e!==a){o(a);const l=e.map(f=>{const c=zk(f);return c?(c.addEventListener("scroll",r,{passive:!0}),[c,RS(c)]):null}).filter(f=>f!=null);t(l.length?new Map(l):null),i.current=e}return()=>{o(e),o(a)};function o(l){l.forEach(f=>{const c=zk(f);c==null||c.removeEventListener("scroll",r)})}},[r,e]),A.useMemo(()=>e.length?n?Array.from(n.values()).reduce((a,o)=>Uf(a,o),Wa):sF(e):Wa,[e,n])}function ZT(e,n){n===void 0&&(n=[]);const t=A.useRef(null);return A.useEffect(()=>{t.current=null},n),A.useEffect(()=>{const i=e!==Wa;i&&!t.current&&(t.current=e),!i&&t.current&&(t.current=null)},[e]),t.current?Qh(e,t.current):Wa}function Kre(e){A.useEffect(()=>{if(!Zy)return;const n=e.map(t=>{let{sensor:i}=t;return i.setup==null?void 0:i.setup()});return()=>{for(const t of n)t==null||t()}},e.map(n=>{let{sensor:t}=n;return t}))}function Xre(e,n){return A.useMemo(()=>e.reduce((t,i)=>{let{eventName:r,handler:a}=i;return t[r]=o=>{a(o,n)},t},{}),[e,n])}function fF(e){return A.useMemo(()=>e?kre(e):null,[e])}const QT=[];function Zre(e,n){n===void 0&&(n=Wc);const[t]=e,i=fF(t?dr(t):null),[r,a]=A.useState(QT);function o(){a(()=>e.length?e.map(f=>aF(f)?i:new e9(n(f),f)):QT)}const l=n0({callback:o});return Va(()=>{l==null||l.disconnect(),o(),e.forEach(f=>l==null?void 0:l.observe(f))},[e]),r}function cF(e){if(!e)return null;if(e.children.length>1)return e;const n=e.children[0];return ep(n)?n:e}function Qre(e){let{measure:n}=e;const[t,i]=A.useState(null),r=A.useCallback(c=>{for(const{target:h}of c)if(ep(h)){i(d=>{const p=n(h);return d?{...d,width:p.width,height:p.height}:p});break}},[n]),a=n0({callback:r}),o=A.useCallback(c=>{const h=cF(c);a==null||a.disconnect(),h&&(a==null||a.observe(h)),i(h?n(h):null)},[n,a]),[l,f]=zg(o);return A.useMemo(()=>({nodeRef:l,rect:t,setRef:f}),[t,l,f])}const Jre=[{sensor:i9,options:{}},{sensor:n9,options:{}}],eae={current:{}},bg={draggable:{measure:UT},droppable:{measure:UT,strategy:Jh.WhileDragging,frequency:NS.Optimized},dragOverlay:{measure:Wc}};class Dh extends Map{get(n){var t;return n!=null&&(t=super.get(n))!=null?t:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(n=>{let{disabled:t}=n;return!t})}getNodeFor(n){var t,i;return(t=(i=this.get(n))==null?void 0:i.node.current)!=null?t:void 0}}const nae={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new Dh,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Bg},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:bg,measureDroppableContainers:Bg,windowRect:null,measuringScheduled:!1},dF={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Bg,draggableNodes:new Map,over:null,measureDroppableContainers:Bg},ip=A.createContext(dF),hF=A.createContext(nae);function tae(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new Dh}}}function iae(e,n){switch(n.type){case ki.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:n.initialCoordinates,active:n.active}};case ki.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:n.coordinates.x-e.draggable.initialCoordinates.x,y:n.coordinates.y-e.draggable.initialCoordinates.y}}};case ki.DragEnd:case ki.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case ki.RegisterDroppable:{const{element:t}=n,{id:i}=t,r=new Dh(e.droppable.containers);return r.set(i,t),{...e,droppable:{...e.droppable,containers:r}}}case ki.SetDroppableDisabled:{const{id:t,key:i,disabled:r}=n,a=e.droppable.containers.get(t);if(!a||i!==a.key)return e;const o=new Dh(e.droppable.containers);return o.set(t,{...a,disabled:r}),{...e,droppable:{...e.droppable,containers:o}}}case ki.UnregisterDroppable:{const{id:t,key:i}=n,r=e.droppable.containers.get(t);if(!r||i!==r.key)return e;const a=new Dh(e.droppable.containers);return a.delete(t),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function rae(e){let{disabled:n}=e;const{active:t,activatorEvent:i,draggableNodes:r}=A.useContext(ip),a=Lg(i),o=Lg(t==null?void 0:t.id);return A.useEffect(()=>{if(!n&&!i&&a&&o!=null){if(!Jy(a)||document.activeElement===a.target)return;const l=r.get(o);if(!l)return;const{activatorNode:f,node:c}=l;if(!f.current&&!c.current)return;requestAnimationFrame(()=>{for(const h of[f.current,c.current]){if(!h)continue;const d=Jie(h);if(d){d.focus();break}}})}},[i,n,r,o,a]),null}function mF(e,n){let{transform:t,...i}=n;return e!=null&&e.length?e.reduce((r,a)=>a({transform:r,...i}),t):t}function aae(e){return A.useMemo(()=>({draggable:{...bg.draggable,...e==null?void 0:e.draggable},droppable:{...bg.droppable,...e==null?void 0:e.droppable},dragOverlay:{...bg.dragOverlay,...e==null?void 0:e.dragOverlay}}),[e==null?void 0:e.draggable,e==null?void 0:e.droppable,e==null?void 0:e.dragOverlay])}function oae(e){let{activeNode:n,measure:t,initialRect:i,config:r=!0}=e;const a=A.useRef(!1),{x:o,y:l}=typeof r=="boolean"?{x:r,y:r}:r;Va(()=>{if(!o&&!l||!n){a.current=!1;return}if(a.current||!i)return;const c=n==null?void 0:n.node.current;if(!c||c.isConnected===!1)return;const h=t(c),d=eF(h,i);if(o||(d.x=0),l||(d.y=0),a.current=!0,Math.abs(d.x)>0||Math.abs(d.y)>0){const p=tF(c);p&&p.scrollBy({top:d.y,left:d.x})}},[n,o,l,i,t])}const t0=A.createContext({...Wa,scaleX:1,scaleY:1});var Ys;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Ys||(Ys={}));const sae=A.memo(function(n){var t,i,r,a;let{id:o,accessibility:l,autoScroll:f=!0,children:c,sensors:h=Jre,collisionDetection:d=JB,measuring:p,modifiers:v,...b}=n;const w=A.useReducer(iae,void 0,tae),[k,_]=w,[C,x]=are(),[E,O]=A.useState(Ys.Uninitialized),j=E===Ys.Initialized,{draggable:{active:M,nodes:N,translate:H},droppable:{containers:P}}=k,z=M!=null?N.get(M):null,F=A.useRef({initial:null,translated:null}),G=A.useMemo(()=>{var yn;return M!=null?{id:M,data:(yn=z==null?void 0:z.data)!=null?yn:eae,rect:F}:null},[M,z]),U=A.useRef(null),[$,R]=A.useState(null),[I,q]=A.useState(null),Y=Zh(b,Object.values(b)),D=tp("DndDescribedBy",o),W=A.useMemo(()=>P.getEnabled(),[P]),V=aae(p),{droppableRects:L,measureDroppableContainers:X,measuringScheduled:ee}=qre(W,{dragging:j,dependencies:[H.x,H.y],config:V.droppable}),re=Bre(N,M),se=A.useMemo(()=>I?Ig(I):null,[I]),ye=bn(),ae=Hre(re,V.draggable.measure);oae({activeNode:M!=null?N.get(M):null,config:ye.layoutShiftCompensation,initialRect:ae,measure:V.draggable.measure});const le=KT(re,V.draggable.measure,ae),_e=KT(re?re.parentElement:null),ne=A.useRef({activatorEvent:null,active:null,activeNode:re,collisionRect:null,collisions:null,droppableRects:L,draggableNodes:N,draggingNode:null,draggingNodeRect:null,droppableContainers:P,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ze=P.getNodeFor((t=ne.current.over)==null?void 0:t.id),we=Qre({measure:V.dragOverlay.measure}),Ce=(i=we.nodeRef.current)!=null?i:re,Ne=j?(r=we.rect)!=null?r:le:null,ge=!!(we.nodeRef.current&&we.rect),xe=Wre(ge?null:le),Pe=fF(Ce?dr(Ce):null),ue=Gre(j?ze??re:null),Be=Zre(ue),Ge=mF(v,{transform:{x:H.x-xe.x,y:H.y-xe.y,scaleX:1,scaleY:1},activatorEvent:I,active:G,activeNodeRect:le,containerNodeRect:_e,draggingNodeRect:Ne,over:ne.current.over,overlayNodeRect:we.rect,scrollableAncestors:ue,scrollableAncestorRects:Be,windowRect:Pe}),Ve=se?Uf(se,H):null,Xe=Yre(ue),Qe=ZT(Xe),ie=ZT(Xe,[le]),he=Uf(Ge,Qe),Ye=Ne?yre(Ne,Ge):null,Je=G&&Ye?d({active:G,collisionRect:Ye,droppableRects:L,droppableContainers:W,pointerCoordinates:Ve}):null,Se=ZB(Je,"id"),[tn,cn]=A.useState(null),On=ge?Ge:Uf(Ge,ie),mn=vre(On,(a=tn==null?void 0:tn.rect)!=null?a:null,le),an=A.useRef(null),en=A.useCallback((yn,wn)=>{let{sensor:it,options:_t}=wn;if(U.current==null)return;const Le=N.get(U.current);if(!Le)return;const qe=yn.nativeEvent,Nn=new it({active:U.current,activeNode:Le,event:qe,options:_t,context:ne,onAbort(Mn){if(!N.get(Mn))return;const{onDragAbort:rn}=Y.current,on={id:Mn};rn==null||rn(on),C({type:"onDragAbort",event:on})},onPending(Mn,nn,rn,on){if(!N.get(Mn))return;const{onDragPending:Wn}=Y.current,xt={id:Mn,constraint:nn,initialCoordinates:rn,offset:on};Wn==null||Wn(xt),C({type:"onDragPending",event:xt})},onStart(Mn){const nn=U.current;if(nn==null)return;const rn=N.get(nn);if(!rn)return;const{onDragStart:on}=Y.current,Bn={activatorEvent:qe,active:{id:nn,data:rn.data,rect:F}};Qs.unstable_batchedUpdates(()=>{on==null||on(Bn),O(Ys.Initializing),_({type:ki.DragStart,initialCoordinates:Mn,active:nn}),C({type:"onDragStart",event:Bn}),R(an.current),q(qe)})},onMove(Mn){_({type:ki.DragMove,coordinates:Mn})},onEnd:st(ki.DragEnd),onCancel:st(ki.DragCancel)});an.current=Nn;function st(Mn){return async function(){const{active:rn,collisions:on,over:Bn,scrollAdjustedTranslate:Wn}=ne.current;let xt=null;if(rn&&Wn){const{cancelDrop:Cn}=Y.current;xt={activatorEvent:qe,active:rn,collisions:on,delta:Wn,over:Bn},Mn===ki.DragEnd&&typeof Cn=="function"&&await Promise.resolve(Cn(xt))&&(Mn=ki.DragCancel)}U.current=null,Qs.unstable_batchedUpdates(()=>{_({type:Mn}),O(Ys.Uninitialized),cn(null),R(null),q(null),an.current=null;const Cn=Mn===ki.DragEnd?"onDragEnd":"onDragCancel";if(xt){const An=Y.current[Cn];An==null||An(xt),C({type:Cn,event:xt})}})}}},[N]),Rn=A.useCallback((yn,wn)=>(it,_t)=>{const Le=it.nativeEvent,qe=N.get(_t);if(U.current!==null||!qe||Le.dndKit||Le.defaultPrevented)return;const Nn={active:qe};yn(it,wn.options,Nn)===!0&&(Le.dndKit={capturedBy:wn.sensor},U.current=_t,en(it,wn))},[N,en]),De=Fre(h,Rn);Kre(h),Va(()=>{le&&E===Ys.Initializing&&O(Ys.Initialized)},[le,E]),A.useEffect(()=>{const{onDragMove:yn}=Y.current,{active:wn,activatorEvent:it,collisions:_t,over:Le}=ne.current;if(!wn||!it)return;const qe={active:wn,activatorEvent:it,collisions:_t,delta:{x:he.x,y:he.y},over:Le};Qs.unstable_batchedUpdates(()=>{yn==null||yn(qe),C({type:"onDragMove",event:qe})})},[he.x,he.y]),A.useEffect(()=>{const{active:yn,activatorEvent:wn,collisions:it,droppableContainers:_t,scrollAdjustedTranslate:Le}=ne.current;if(!yn||U.current==null||!wn||!Le)return;const{onDragOver:qe}=Y.current,Nn=_t.get(Se),st=Nn&&Nn.rect.current?{id:Nn.id,rect:Nn.rect.current,data:Nn.data,disabled:Nn.disabled}:null,Mn={active:yn,activatorEvent:wn,collisions:it,delta:{x:Le.x,y:Le.y},over:st};Qs.unstable_batchedUpdates(()=>{cn(st),qe==null||qe(Mn),C({type:"onDragOver",event:Mn})})},[Se]),Va(()=>{ne.current={activatorEvent:I,active:G,activeNode:re,collisionRect:Ye,collisions:Je,droppableRects:L,draggableNodes:N,draggingNode:Ce,draggingNodeRect:Ne,droppableContainers:P,over:tn,scrollableAncestors:ue,scrollAdjustedTranslate:he},F.current={initial:Ne,translated:Ye}},[G,re,Je,Ye,N,Ce,Ne,L,P,tn,ue,he]),zre({...ye,delta:H,draggingRect:Ye,pointerCoordinates:Ve,scrollableAncestors:ue,scrollableAncestorRects:Be});const Fe=A.useMemo(()=>({active:G,activeNode:re,activeNodeRect:le,activatorEvent:I,collisions:Je,containerNodeRect:_e,dragOverlay:we,draggableNodes:N,droppableContainers:P,droppableRects:L,over:tn,measureDroppableContainers:X,scrollableAncestors:ue,scrollableAncestorRects:Be,measuringConfiguration:V,measuringScheduled:ee,windowRect:Pe}),[G,re,le,I,Je,_e,we,N,P,L,tn,X,ue,Be,V,ee,Pe]),jn=A.useMemo(()=>({activatorEvent:I,activators:De,active:G,activeNodeRect:le,ariaDescribedById:{draggable:D},dispatch:_,draggableNodes:N,over:tn,measureDroppableContainers:X}),[I,De,G,le,_,D,N,tn,X]);return Q.createElement(XB.Provider,{value:x},Q.createElement(ip.Provider,{value:jn},Q.createElement(hF.Provider,{value:Fe},Q.createElement(t0.Provider,{value:mn},c)),Q.createElement(rae,{disabled:(l==null?void 0:l.restoreFocus)===!1})),Q.createElement(lre,{...l,hiddenTextDescribedById:D}));function bn(){const yn=($==null?void 0:$.autoScrollEnabled)===!1,wn=typeof f=="object"?f.enabled===!1:f===!1,it=j&&!yn&&!wn;return typeof f=="object"?{...f,enabled:it}:{enabled:it}}}),lae=A.createContext(null),JT="button",uae="Draggable";function fae(e){let{id:n,data:t,disabled:i=!1,attributes:r}=e;const a=tp(uae),{activators:o,activatorEvent:l,active:f,activeNodeRect:c,ariaDescribedById:h,draggableNodes:d,over:p}=A.useContext(ip),{role:v=JT,roleDescription:b="draggable",tabIndex:w=0}=r??{},k=(f==null?void 0:f.id)===n,_=A.useContext(k?t0:lae),[C,x]=zg(),[E,O]=zg(),j=Xre(o,n),M=Zh(t);Va(()=>(d.set(n,{id:n,key:a,node:C,activatorNode:E,data:M}),()=>{const H=d.get(n);H&&H.key===a&&d.delete(n)}),[d,n]);const N=A.useMemo(()=>({role:v,tabIndex:w,"aria-disabled":i,"aria-pressed":k&&v===JT?!0:void 0,"aria-roledescription":b,"aria-describedby":h.draggable}),[i,v,w,k,b,h.draggable]);return{active:f,activatorEvent:l,activeNodeRect:c,attributes:N,isDragging:k,listeners:i?void 0:j,node:C,over:p,setNodeRef:x,setActivatorNodeRef:O,transform:_}}function pF(){return A.useContext(hF)}const cae="Droppable",dae={timeout:25};function hae(e){let{data:n,disabled:t=!1,id:i,resizeObserverConfig:r}=e;const a=tp(cae),{active:o,dispatch:l,over:f,measureDroppableContainers:c}=A.useContext(ip),h=A.useRef({disabled:t}),d=A.useRef(!1),p=A.useRef(null),v=A.useRef(null),{disabled:b,updateMeasurementsFor:w,timeout:k}={...dae,...r},_=Zh(w??i),C=A.useCallback(()=>{if(!d.current){d.current=!0;return}v.current!=null&&clearTimeout(v.current),v.current=setTimeout(()=>{c(Array.isArray(_.current)?_.current:[_.current]),v.current=null},k)},[k]),x=n0({callback:C,disabled:b||!o}),E=A.useCallback((N,H)=>{x&&(H&&(x.unobserve(H),d.current=!1),N&&x.observe(N))},[x]),[O,j]=zg(E),M=Zh(n);return A.useEffect(()=>{!x||!O.current||(x.disconnect(),d.current=!1,x.observe(O.current))},[O,x]),A.useEffect(()=>(l({type:ki.RegisterDroppable,element:{id:i,key:a,disabled:t,node:O,rect:p,data:M}}),()=>l({type:ki.UnregisterDroppable,key:a,id:i})),[i]),A.useEffect(()=>{t!==h.current.disabled&&(l({type:ki.SetDroppableDisabled,id:i,key:a,disabled:t}),h.current.disabled=t)},[i,a,t,l]),{active:o,rect:p,isOver:(f==null?void 0:f.id)===i,node:O,over:f,setNodeRef:j}}function mae(e){let{animation:n,children:t}=e;const[i,r]=A.useState(null),[a,o]=A.useState(null),l=Lg(t);return!t&&!i&&l&&r(l),Va(()=>{if(!a)return;const f=i==null?void 0:i.key,c=i==null?void 0:i.props.id;if(f==null||c==null){r(null);return}Promise.resolve(n(c,a)).then(()=>{r(null)})},[n,i,a]),Q.createElement(Q.Fragment,null,t,i?A.cloneElement(i,{ref:o}):null)}const pae={x:0,y:0,scaleX:1,scaleY:1};function vae(e){let{children:n}=e;return Q.createElement(ip.Provider,{value:dF},Q.createElement(t0.Provider,{value:pae},n))}const gae={position:"fixed",touchAction:"none"},yae=e=>Jy(e)?"transform 250ms ease":void 0,bae=A.forwardRef((e,n)=>{let{as:t,activatorEvent:i,adjustScale:r,children:a,className:o,rect:l,style:f,transform:c,transition:h=yae}=e;if(!l)return null;const d=r?c:{...c,scaleX:1,scaleY:1},p={...gae,width:l.width,height:l.height,top:l.top,left:l.left,transform:po.Transform.toString(d),transformOrigin:r&&i?fre(i,l):void 0,transition:typeof h=="function"?h(i):h,...f};return Q.createElement(t,{className:o,style:p,ref:n},a)}),wae=e=>n=>{let{active:t,dragOverlay:i}=n;const r={},{styles:a,className:o}=e;if(a!=null&&a.active)for(const[l,f]of Object.entries(a.active))f!==void 0&&(r[l]=t.node.style.getPropertyValue(l),t.node.style.setProperty(l,f));if(a!=null&&a.dragOverlay)for(const[l,f]of Object.entries(a.dragOverlay))f!==void 0&&i.node.style.setProperty(l,f);return o!=null&&o.active&&t.node.classList.add(o.active),o!=null&&o.dragOverlay&&i.node.classList.add(o.dragOverlay),function(){for(const[f,c]of Object.entries(r))t.node.style.setProperty(f,c);o!=null&&o.active&&t.node.classList.remove(o.active)}},kae=e=>{let{transform:{initial:n,final:t}}=e;return[{transform:po.Transform.toString(n)},{transform:po.Transform.toString(t)}]},_ae={duration:250,easing:"ease",keyframes:kae,sideEffects:wae({styles:{active:{opacity:"0"}}})};function xae(e){let{config:n,draggableNodes:t,droppableContainers:i,measuringConfiguration:r}=e;return Qy((a,o)=>{if(n===null)return;const l=t.get(a);if(!l)return;const f=l.node.current;if(!f)return;const c=cF(o);if(!c)return;const{transform:h}=dr(o).getComputedStyle(o),d=nF(h);if(!d)return;const p=typeof n=="function"?n:Sae(n);return lF(f,r.draggable.measure),p({active:{id:a,data:l.data,node:f,rect:r.draggable.measure(f)},draggableNodes:t,dragOverlay:{node:o,rect:r.dragOverlay.measure(c)},droppableContainers:i,measuringConfiguration:r,transform:d})})}function Sae(e){const{duration:n,easing:t,sideEffects:i,keyframes:r}={..._ae,...e};return a=>{let{active:o,dragOverlay:l,transform:f,...c}=a;if(!n)return;const h={x:l.rect.left-o.rect.left,y:l.rect.top-o.rect.top},d={scaleX:f.scaleX!==1?o.rect.width*f.scaleX/l.rect.width:1,scaleY:f.scaleY!==1?o.rect.height*f.scaleY/l.rect.height:1},p={x:f.x-h.x,y:f.y-h.y,...d},v=r({...c,active:o,dragOverlay:l,transform:{initial:f,final:p}}),[b]=v,w=v[v.length-1];if(JSON.stringify(b)===JSON.stringify(w))return;const k=i==null?void 0:i({active:o,dragOverlay:l,...c}),_=l.node.animate(v,{duration:n,easing:t,fill:"forwards"});return new Promise(C=>{_.onfinish=()=>{k==null||k(),C()}})}}let eM=0;function Cae(e){return A.useMemo(()=>{if(e!=null)return eM++,eM},[e])}const Aae=Q.memo(e=>{let{adjustScale:n=!1,children:t,dropAnimation:i,style:r,transition:a,modifiers:o,wrapperElement:l="div",className:f,zIndex:c=999}=e;const{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:v,draggableNodes:b,droppableContainers:w,dragOverlay:k,over:_,measuringConfiguration:C,scrollableAncestors:x,scrollableAncestorRects:E,windowRect:O}=pF(),j=A.useContext(t0),M=Cae(d==null?void 0:d.id),N=mF(o,{activatorEvent:h,active:d,activeNodeRect:p,containerNodeRect:v,draggingNodeRect:k.rect,over:_,overlayNodeRect:k.rect,scrollableAncestors:x,scrollableAncestorRects:E,transform:j,windowRect:O}),H=r9(p),P=xae({config:i,draggableNodes:b,droppableContainers:w,measuringConfiguration:C}),z=H?k.setRef:void 0;return Q.createElement(vae,null,Q.createElement(mae,{animation:P},d&&M?Q.createElement(bae,{key:M,id:d.id,ref:z,as:l,activatorEvent:h,adjustScale:n,className:f,transition:a,rect:H,style:{zIndex:c,...r},transform:N},t):null))});function qg(e,n,t){const i=e.slice();return i.splice(t<0?i.length+t:t,0,i.splice(n,1)[0]),i}function Oae(e,n){return e.reduce((t,i,r)=>{const a=n.get(i);return a&&(t[r]=a),t},Array(e.length))}function Iv(e){return e!==null&&e>=0}function jae(e,n){if(e===n)return!0;if(e.length!==n.length)return!1;for(let t=0;t {var n;let{rects:t,activeNodeRect:i,activeIndex:r,overIndex:a,index:o}=e;const l=(n=t[r])!=null?n:i;if(!l)return null;const f=Mae(t,o,r);if(o===r){const c=t[a];return c?{x:rr&&o<=a?{x:-l.width-f,y:0,...Bv}:o =a?{x:l.width+f,y:0,...Bv}:{x:0,y:0,...Bv}};function Mae(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return!i||!r&&!a?0:t {let{rects:n,activeIndex:t,overIndex:i,index:r}=e;const a=qg(n,i,t),o=n[r],l=a[r];return!l||!o?null:{x:l.left-o.left,y:l.top-o.top,scaleX:l.width/o.width,scaleY:l.height/o.height}},Fv={scaleX:1,scaleY:1},gF=e=>{var n;let{activeIndex:t,activeNodeRect:i,index:r,rects:a,overIndex:o}=e;const l=(n=a[t])!=null?n:i;if(!l)return null;if(r===t){const c=a[o];return c?{x:0,y:t t&&r<=o?{x:0,y:-l.height-f,...Fv}:r =o?{x:0,y:l.height+f,...Fv}:{x:0,y:0,...Fv}};function Dae(e,n,t){const i=e[n],r=e[n-1],a=e[n+1];return i?t i.map(j=>typeof j=="object"&&"id"in j?j.id:j),[i]),b=o!=null,w=o?v.indexOf(o.id):-1,k=c?v.indexOf(c.id):-1,_=A.useRef(v),C=!jae(v,_.current),x=k!==-1&&w===-1||C,E=Eae(a);Va(()=>{C&&b&&h(v)},[C,v,b,h]),A.useEffect(()=>{_.current=v},[v]);const O=A.useMemo(()=>({activeIndex:w,containerId:d,disabled:E,disableTransforms:x,items:v,overIndex:k,useDragOverlay:p,sortedRects:Oae(v,f),strategy:r}),[w,d,E.draggable,E.droppable,x,v,k,f,p,r]);return Q.createElement(bF.Provider,{value:O},n)}const Rae=e=>{let{id:n,items:t,activeIndex:i,overIndex:r}=e;return qg(t,i,r).indexOf(n)},Pae=e=>{let{containerId:n,isSorting:t,wasDragging:i,index:r,items:a,newIndex:o,previousItems:l,previousContainerId:f,transition:c}=e;return!c||!i||l!==a&&r===o?!1:t?!0:o!==r&&n===f},Nae={duration:200,easing:"ease"},wF="transform",$ae=po.Transition.toString({property:wF,duration:0,easing:"linear"}),zae={roleDescription:"sortable"};function Lae(e){let{disabled:n,index:t,node:i,rect:r}=e;const[a,o]=A.useState(null),l=A.useRef(t);return Va(()=>{if(!n&&t!==l.current&&i.current){const f=r.current;if(f){const c=Wc(i.current,{ignoreTransform:!0}),h={x:f.left-c.left,y:f.top-c.top,scaleX:f.width/c.width,scaleY:f.height/c.height};(h.x||h.y)&&o(h)}}t!==l.current&&(l.current=t)},[n,t,i,r]),A.useEffect(()=>{a&&o(null)},[a]),a}function kF(e){let{animateLayoutChanges:n=Pae,attributes:t,disabled:i,data:r,getNewIndex:a=Rae,id:o,strategy:l,resizeObserverConfig:f,transition:c=Nae}=e;const{items:h,containerId:d,activeIndex:p,disabled:v,disableTransforms:b,sortedRects:w,overIndex:k,useDragOverlay:_,strategy:C}=A.useContext(bF),x=Iae(i,v),E=h.indexOf(o),O=A.useMemo(()=>({sortable:{containerId:d,index:E,items:h},...r}),[d,r,E,h]),j=A.useMemo(()=>h.slice(h.indexOf(o)),[h,o]),{rect:M,node:N,isOver:H,setNodeRef:P}=hae({id:o,data:O,disabled:x.droppable,resizeObserverConfig:{updateMeasurementsFor:j,...f}}),{active:z,activatorEvent:F,activeNodeRect:G,attributes:U,setNodeRef:$,listeners:R,isDragging:I,over:q,setActivatorNodeRef:Y,transform:D}=fae({id:o,data:O,attributes:{...zae,...t},disabled:x.draggable}),W=Kie(P,$),V=!!z,L=V&&!b&&Iv(p)&&Iv(k),X=!_&&I,ee=X&&L?D:null,se=L?ee??(l??C)({rects:w,activeNodeRect:G,activeIndex:p,overIndex:k,index:E}):null,ye=Iv(p)&&Iv(k)?a({id:o,items:h,activeIndex:p,overIndex:k}):E,ae=z==null?void 0:z.id,le=A.useRef({activeId:ae,items:h,newIndex:ye,containerId:d}),_e=h!==le.current.items,ne=n({active:z,containerId:d,isDragging:I,isSorting:V,id:o,index:E,items:h,newIndex:le.current.newIndex,previousItems:le.current.items,previousContainerId:le.current.containerId,transition:c,wasDragging:le.current.activeId!=null}),ze=Lae({disabled:!ne,index:E,node:N,rect:M});return A.useEffect(()=>{V&&le.current.newIndex!==ye&&(le.current.newIndex=ye),d!==le.current.containerId&&(le.current.containerId=d),h!==le.current.items&&(le.current.items=h)},[V,ye,d,h]),A.useEffect(()=>{if(ae===le.current.activeId)return;if(ae!=null&&le.current.activeId==null){le.current.activeId=ae;return}const Ce=setTimeout(()=>{le.current.activeId=ae},50);return()=>clearTimeout(Ce)},[ae]),{active:z,activeIndex:p,attributes:U,data:O,rect:M,index:E,newIndex:ye,items:h,isOver:H,isSorting:V,isDragging:I,listeners:R,node:N,overIndex:k,over:q,setNodeRef:W,setActivatorNodeRef:Y,setDroppableNodeRef:P,setDraggableNodeRef:$,transform:ze??se,transition:we()};function we(){if(ze||_e&&le.current.newIndex===E)return $ae;if(!(X&&!Jy(F)||!c)&&(V||ne))return po.Transition.toString({...c,property:wF})}}function Iae(e,n){var t,i;return typeof e=="boolean"?{draggable:e,droppable:!1}:{draggable:(t=e==null?void 0:e.draggable)!=null?t:n.draggable,droppable:(i=e==null?void 0:e.droppable)!=null?i:n.droppable}}function Hg(e){if(!e)return!1;const n=e.data.current;return!!(n&&"sortable"in n&&typeof n.sortable=="object"&&"containerId"in n.sortable&&"items"in n.sortable&&"index"in n.sortable)}const Bae=[at.Down,at.Right,at.Up,at.Left],Fae=(e,n)=>{let{context:{active:t,collisionRect:i,droppableRects:r,droppableContainers:a,over:o,scrollableAncestors:l}}=n;if(Bae.includes(e.code)){if(e.preventDefault(),!t||!i)return;const f=[];a.getEnabled().forEach(d=>{if(!d||d!=null&&d.disabled)return;const p=r.get(d.id);if(p)switch(e.code){case at.Down:i.top p.top&&f.push(d);break;case at.Left:i.left>p.left&&f.push(d);break;case at.Right:i.left 1&&(h=c[1].id),h!=null){const d=a.get(t.id),p=a.get(h),v=p?r.get(p.id):null,b=p==null?void 0:p.node.current;if(b&&v&&d&&p){const k=e0(b).some((j,M)=>l[M]!==j),_=_F(d,p),C=qae(d,p),x=k||!_?{x:0,y:0}:{x:C?i.width-v.width:0,y:C?i.height-v.height:0},E={x:v.left,y:v.top};return x.x&&x.y?E:Qh(E,x)}}}};function _F(e,n){return!Hg(e)||!Hg(n)?!1:e.data.current.sortable.containerId===n.data.current.sortable.containerId}function qae(e,n){return!Hg(e)||!Hg(n)||!_F(e,n)?!1:e.data.current.sortable.index =$?U:""+Array($+1-I.length).join(R)+U},E={s:x,z:function(U){var $=-U.utcOffset(),R=Math.abs($),I=Math.floor(R/60),q=R%60;return($<=0?"+":"-")+x(I,2,"0")+":"+x(q,2,"0")},m:function U($,R){if($.date() 1)return U(D[0])}else{var W=$.name;j[W]=$,q=W}return!I&&q&&(O=q),q||!I&&O},P=function(U,$){if(N(U))return U.clone();var R=typeof $=="object"?$:{};return R.date=U,R.args=arguments,new F(R)},z=E;z.l=H,z.i=N,z.w=function(U,$){return P(U,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var F=(function(){function U(R){this.$L=H(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[M]=!0}var $=U.prototype;return $.parse=function(R){this.$d=(function(I){var q=I.date,Y=I.utc;if(q===null)return new Date(NaN);if(z.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var D=q.match(k);if(D){var W=D[2]-1||0,V=(D[7]||"0").substring(0,3);return Y?new Date(Date.UTC(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,V)):new Date(D[1],W,D[3]||1,D[4]||0,D[5]||0,D[6]||0,V)}}return new Date(q)})(R),this.init()},$.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},$.$utils=function(){return z},$.isValid=function(){return this.$d.toString()!==w},$.isSame=function(R,I){var q=P(R);return this.startOf(I)<=q&&q<=this.endOf(I)},$.isAfter=function(R,I){return P(R) Ie(o).locale(t).format(i);return e==="default"?n===null?"":a(n):e==="multiple"?n.map(a).join(", "):e==="range"&&Array.isArray(n)?n[0]&&n[1]?`${a(n[0])} ${r} ${a(n[1])}`:n[0]?`${a(n[0])} ${r} `:"":""}function Gae({formatter:e,...n}){return(e||Wae)(n)}function Yae({direction:e,levelIndex:n,rowIndex:t,cellIndex:i,size:r}){switch(e){case"up":return n===0&&t===0?null:t===0?{levelIndex:n-1,rowIndex:i<=r[n-1][r[n-1].length-1]-1?r[n-1].length-1:r[n-1].length-2,cellIndex:i}:{levelIndex:n,rowIndex:t-1,cellIndex:i};case"down":return t===r[n].length-1?{levelIndex:n+1,rowIndex:0,cellIndex:i}:t===r[n].length-2&&i>=r[n][r[n].length-1]?{levelIndex:n+1,rowIndex:0,cellIndex:i}:{levelIndex:n,rowIndex:t+1,cellIndex:i};case"left":return n===0&&t===0&&i===0?null:t===0&&i===0?{levelIndex:n-1,rowIndex:r[n-1].length-1,cellIndex:r[n-1][r[n-1].length-1]-1}:i===0?{levelIndex:n,rowIndex:t-1,cellIndex:r[n][t-1]-1}:{levelIndex:n,rowIndex:t,cellIndex:i-1};case"right":return t===r[n].length-1&&i===r[n][t]-1?{levelIndex:n+1,rowIndex:0,cellIndex:0}:i===r[n][t]-1?{levelIndex:n,rowIndex:t+1,cellIndex:0}:{levelIndex:n,rowIndex:t,cellIndex:i+1};default:return{levelIndex:n,rowIndex:t,cellIndex:i}}}function xF({controlsRef:e,direction:n,levelIndex:t,rowIndex:i,cellIndex:r,size:a}){var f,c,h;const o=Yae({direction:n,size:a,rowIndex:i,cellIndex:r,levelIndex:t});if(!o)return;const l=(h=(c=(f=e.current)==null?void 0:f[o.levelIndex])==null?void 0:c[o.rowIndex])==null?void 0:h[o.cellIndex];l&&(l.disabled||l.getAttribute("data-hidden")||l.getAttribute("data-outside")?xF({controlsRef:e,direction:n,levelIndex:o.levelIndex,cellIndex:o.cellIndex,rowIndex:o.rowIndex,size:a}):l.focus())}function Kae(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function Xae(e){var n;return(n=e.current)==null?void 0:n.map(t=>t.map(i=>i.length))}function a9({controlsRef:e,levelIndex:n,rowIndex:t,cellIndex:i,event:r}){const a=Kae(r.key);a&&(r.preventDefault(),xF({controlsRef:e,direction:a,levelIndex:n,rowIndex:t,cellIndex:i,size:Xae(e)}))}function Qi(e){return e==null||e===""?e:Ie(e).format("YYYY-MM-DD")}function SF(e){return e==null||e===""?e:Ie(e).format("YYYY-MM-DD HH:mm:ss")}function zS({minDate:e,maxDate:n}){const t=Ie();return!e&&!n?Qi(t):e&&Ie(t).isBefore(e)?Qi(e):n&&Ie(t).isAfter(n)?Qi(n):Qi(t)}const Zae={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},Qae=A.createContext(Zae);function yl(){const e=A.use(Qae),n=A.useCallback(a=>a||e.locale,[e.locale]),t=A.useCallback(a=>typeof a=="number"?a:e.firstDayOfWeek,[e.firstDayOfWeek]),i=A.useCallback(a=>Array.isArray(a)?a:e.weekendDays,[e.weekendDays]),r=A.useCallback(a=>typeof a=="string"?a:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:n,getFirstDayOfWeek:t,getWeekendDays:i,getLabelSeparator:r}}function Jae({value:e,type:n,withTime:t}){const i=t?SF:Qi;if(n==="range"&&Array.isArray(e)){const r=i(e[0]),a=i(e[1]);return r?a?`${r} – ${a}`:`${r} –`:""}return n==="multiple"&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?i(e):""}function CF({value:e,type:n,name:t,form:i,withTime:r=!1}){return y.jsx("input",{type:"hidden",value:Jae({value:e,type:n,withTime:r}),name:t,form:i})}CF.displayName="@mantine/dates/HiddenDatesInput";var AF={day:"m_396ce5cb"};const OF=(e,{size:n})=>({day:{"--day-size":Pn(n,"day-size")}}),i0=Re(e=>{const n=be("Day",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,date:f,disabled:c,__staticSelector:h,weekend:d,outside:p,selected:v,renderDay:b,inRange:w,firstInRange:k,lastInRange:_,hidden:C,static:x,highlightToday:E,fullWidth:O,attributes:j,...M}=n;return y.jsx(Dt,{...Ze({name:h||"Day",classes:AF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:j,vars:l,varsResolver:OF,rootSelector:"day"})("day",{style:C?{display:"none"}:void 0}),component:x?"div":"button",disabled:c,"data-today":Ie(f).isSame(new Date,"day")||void 0,"data-hidden":C||void 0,"data-highlight-today":E||void 0,"data-disabled":c||void 0,"data-weekend":!c&&!p&&d||void 0,"data-outside":!c&&p||void 0,"data-selected":!c&&v||void 0,"data-in-range":w&&!c||void 0,"data-first-in-range":k&&!c||void 0,"data-last-in-range":_&&!c||void 0,"data-static":x||void 0,"data-full-width":O||void 0,unstyled:o,...M,children:(b==null?void 0:b(f))||Ie(f).date()})});i0.classes=AF;i0.varsResolver=OF;i0.displayName="@mantine/dates/Day";function eoe({locale:e,format:n="dd",firstDayOfWeek:t=1}){const i=Ie().day(t),r=[];for(let a=0;a<7;a+=1)typeof n=="string"?r.push(Ie(i).add(a,"days").locale(e).format(n)):r.push(n(Ie(i).add(a,"days").format("YYYY-MM-DD")));return r}var jF={weekday:"m_18a3eca"};const EF=(e,{size:n})=>({weekdaysRow:{"--wr-fz":ri(n),"--wr-spacing":Ht(n)}}),r0=Re(e=>{const n=be("WeekdaysRow",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,locale:f,firstDayOfWeek:c,weekdayFormat:h,cellComponent:d="th",__staticSelector:p,withWeekNumbers:v,attributes:b,...w}=n,k=Ze({name:p||"WeekdaysRow",classes:jF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:b,vars:l,varsResolver:EF,rootSelector:"weekdaysRow"}),_=yl(),C=eoe({locale:_.getLocale(f),format:h,firstDayOfWeek:_.getFirstDayOfWeek(c)}).map((x,E)=>y.jsx(d,{...k("weekday"),children:x},E));return y.jsxs(ve,{component:"tr",...k("weekdaysRow"),...w,children:[v&&y.jsx(d,{...k("weekday"),children:"#"}),C]})});r0.classes=jF;r0.varsResolver=EF;r0.displayName="@mantine/dates/WeekdaysRow";function noe(e,n=1){let t=Ie(e);if(!t.isValid())return t;const i=n===0?6:n-1;for(;t.day()!==i;)t=t.add(1,"day");return t.format("YYYY-MM-DD")}function toe(e,n=1){let t=Ie(e);for(;t.day()!==n;)t=t.subtract(1,"day");return t.format("YYYY-MM-DD")}function ioe({month:e,firstDayOfWeek:n=1,consistentWeeks:t}){const i=Ie(Ie(e).subtract(Ie(e).date()-1,"day").format("YYYY-M-D")),r=i.format("YYYY-MM-DD"),a=noe(i.add(+i.daysInMonth()-1,"day").format("YYYY-MM-DD"),n),o=[];let l=Ie(toe(r,n));for(;Ie(l).isBefore(a,"day");){const f=[];for(let c=0;c<7;c+=1)f.push(l.format("YYYY-MM-DD")),l=l.add(1,"day");o.push(f)}if(t&&o.length<6){const f=o[o.length-1],c=f[f.length-1];let h=Ie(c).add(1,"day");for(;o.length<6;){const d=[];for(let p=0;p<7;p+=1)d.push(h.format("YYYY-MM-DD")),h=h.add(1,"day");o.push(d)}}return o}function o9(e,n){return Ie(e).format("YYYY-MM")===Ie(n).format("YYYY-MM")}function TF(e,n){return n?Ie(e).isAfter(Ie(n).subtract(1,"day"),"day"):!0}function MF(e,n){return n?Ie(e).isBefore(Ie(n).add(1,"day"),"day"):!0}function roe({dates:e,minDate:n,maxDate:t,getDayProps:i,excludeDate:r,hideOutsideDates:a,month:o}){const l=e.flat().filter(h=>{var d;return MF(h,t)&&TF(h,n)&&!(r!=null&&r(h))&&!((d=i==null?void 0:i(h))!=null&&d.disabled)&&(!a||o9(h,o))}),f=l.find(h=>{var d;return(d=i==null?void 0:i(h))==null?void 0:d.selected});if(f)return f;const c=l.find(h=>Ie().isSame(h,"date"));return c||l[0]}var kg={exports:{}},aoe=kg.exports,tM;function ooe(){return tM||(tM=1,(function(e,n){(function(t,i){e.exports=i()})(aoe,(function(){var t="day";return function(i,r,a){var o=function(c){return c.add(4-c.isoWeekday(),t)},l=r.prototype;l.isoWeekYear=function(){return o(this).year()},l.isoWeek=function(c){if(!this.$utils().u(c))return this.add(7*(c-this.isoWeek()),t);var h,d,p,v,b=o(this),w=(h=this.isoWeekYear(),d=this.$u,p=(d?a.utc:a)().year(h).startOf("year"),v=4-p.isoWeekday(),p.isoWeekday()>4&&(v+=7),p.add(v,t));return b.diff(w,"week")+1},l.isoWeekday=function(c){return this.$utils().u(c)?this.day()||7:this.day(this.day()%7?c:c-7)};var f=l.startOf;l.startOf=function(c,h){var d=this.$utils(),p=!!d.u(h)||h;return d.p(c)==="isoweek"?p?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):f.bind(this)(c,h)}}}))})(kg)),kg.exports}var soe=ooe();const loe=mt(soe);Ie.extend(loe);function uoe(e){return Ie(e.find(n=>Ie(n).day()===1)).isoWeek()}var DF={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const foe={withCellSpacing:!0},RF=(e,{size:n})=>({weekNumber:{"--wn-fz":ri(n),"--wn-size":Pn(n,"wn-size")}}),rp=Re(e=>{const n=be("Month",foe,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:f,locale:c,firstDayOfWeek:h,weekdayFormat:d,month:p,weekendDays:v,getDayProps:b,excludeDate:w,minDate:k,maxDate:_,renderDay:C,hideOutsideDates:x,hideWeekdays:E,getDayAriaLabel:O,static:j,__getDayRef:M,__onDayKeyDown:N,__onDayClick:H,__onDayMouseEnter:P,__preventFocus:z,__stopPropagation:F,withCellSpacing:G,size:U,highlightToday:$,withWeekNumbers:R,fullWidth:I,attributes:q,...Y}=n,D=Ze({name:f||"Month",classes:DF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:q,vars:l,varsResolver:RF,rootSelector:"month"}),W=yl(),V=ioe({month:p,firstDayOfWeek:W.getFirstDayOfWeek(h),consistentWeeks:W.consistentWeeks}),L=roe({dates:V,minDate:Qi(k),maxDate:Qi(_),getDayProps:b,excludeDate:w,hideOutsideDates:x,month:p}),{resolvedClassNames:X,resolvedStyles:ee}=Hi({classNames:t,styles:a,props:n}),re=V.map((se,ye)=>{const ae=se.map((le,_e)=>{const ne=!o9(le,p),ze=(O==null?void 0:O(le))||Ie(le).locale(c||W.locale).format("D MMMM YYYY"),we=b==null?void 0:b(le),Ce=Ie(le).isSame(L,"date");return y.jsx("td",{...D("monthCell"),"data-with-spacing":G||void 0,children:y.jsx(i0,{__staticSelector:f||"Month",classNames:X,styles:ee,attributes:q,unstyled:o,"data-mantine-stop-propagation":F||void 0,highlightToday:$,renderDay:C,date:le,size:U,weekend:W.getWeekendDays(v).includes(Ie(le).get("day")),outside:ne,hidden:x?ne:!1,"aria-label":ze,static:j,fullWidth:I,disabled:(w==null?void 0:w(le))||!MF(le,Qi(_))||!TF(le,Qi(k)),ref:Ne=>{Ne&&(M==null||M(ye,_e,Ne))},...we,onKeyDown:Ne=>{var ge;(ge=we==null?void 0:we.onKeyDown)==null||ge.call(we,Ne),N==null||N(Ne,{rowIndex:ye,cellIndex:_e,date:le})},onMouseEnter:Ne=>{var ge;(ge=we==null?void 0:we.onMouseEnter)==null||ge.call(we,Ne),P==null||P(Ne,le)},onClick:Ne=>{var ge;(ge=we==null?void 0:we.onClick)==null||ge.call(we,Ne),H==null||H(Ne,le)},onMouseDown:Ne=>{var ge;(ge=we==null?void 0:we.onMouseDown)==null||ge.call(we,Ne),z&&Ne.preventDefault()},tabIndex:z||!Ce?-1:0})},le.toString())});return y.jsxs("tr",{...D("monthRow"),children:[R&&y.jsx("td",{...D("weekNumber"),children:uoe(se)}),ae]},ye)});return y.jsxs(ve,{component:"table",...D("month"),size:U,"data-full-width":I||void 0,...Y,children:[!E&&y.jsx("thead",{...D("monthThead"),children:y.jsx(r0,{__staticSelector:f||"Month",locale:c,firstDayOfWeek:h,weekdayFormat:d,withWeekNumbers:R,size:U,classNames:X,styles:ee,unstyled:o,attributes:q})}),y.jsx("tbody",{...D("monthTbody"),children:re})]})});rp.classes=DF;rp.varsResolver=RF;rp.displayName="@mantine/dates/Month";var PF={pickerControl:"m_dc6a3c71"};const NF=(e,{size:n})=>({pickerControl:{"--dpc-fz":ri(n),"--dpc-size":Pn(n,"dpc-size")}}),ap=Re(e=>{const n=be("PickerControl",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,firstInRange:f,lastInRange:c,inRange:h,__staticSelector:d,selected:p,disabled:v,fullWidth:b,attributes:w,...k}=n;return y.jsx(Dt,{...Ze({name:d||"PickerControl",classes:PF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,vars:l,varsResolver:NF,rootSelector:"pickerControl"})("pickerControl"),unstyled:o,"data-picker-control":!0,"data-full-width":b||void 0,"data-selected":p&&!v||void 0,"data-disabled":v||void 0,"data-in-range":h&&!v&&!p||void 0,"data-first-in-range":f&&!v||void 0,"data-last-in-range":c&&!v||void 0,disabled:v,...k})});ap.classes=PF;ap.varsResolver=NF;ap.displayName="@mantine/dates/PickerControl";function $F({year:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&Ie(e).isBefore(n,"year")||t&&Ie(e).isAfter(t,"year"))}function coe({years:e,minDate:n,maxDate:t,getYearControlProps:i}){const r=e.flat().filter(l=>{var f;return!$F({year:l,minDate:n,maxDate:t})&&!((f=i==null?void 0:i(l))!=null&&f.disabled)}),a=r.find(l=>{var f;return(f=i==null?void 0:i(l))==null?void 0:f.selected});if(a)return a;const o=r.find(l=>Ie().isSame(l,"year"));return o||r[0]}function zF(e){const n=Ie(e).year(),t=n-n%10;let i=0;const r=[[],[],[],[]];for(let a=0;a<4;a+=1){const o=a===3?1:3;for(let l=0;l {const n=be("YearsList",doe,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,decade:f,yearsListFormat:c,locale:h,minDate:d,maxDate:p,getYearControlProps:v,__staticSelector:b,__getControlRef:w,__onControlKeyDown:k,__onControlClick:_,__onControlMouseEnter:C,__preventFocus:x,__stopPropagation:E,withCellSpacing:O,fullWidth:j,size:M,attributes:N,...H}=n,P=Ze({name:b||"YearsList",classes:LF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:N,vars:l,rootSelector:"yearsList"}),z=yl(),F=zF(f),G=coe({years:F,minDate:d,maxDate:p,getYearControlProps:v}),U=F.map(($,R)=>{const I=$.map((q,Y)=>{const D=v==null?void 0:v(q),W=Ie(q).isSame(G,"year");return y.jsx("td",{...P("yearsListCell"),"data-with-spacing":O||void 0,children:y.jsx(ap,{...P("yearsListControl"),size:M,unstyled:o,fullWidth:j,"data-mantine-stop-propagation":E||void 0,disabled:$F({year:q,minDate:d,maxDate:p}),ref:V=>{V&&(w==null||w(R,Y,V))},...D,onKeyDown:V=>{var L;(L=D==null?void 0:D.onKeyDown)==null||L.call(D,V),k==null||k(V,{rowIndex:R,cellIndex:Y,date:q})},onClick:V=>{var L;(L=D==null?void 0:D.onClick)==null||L.call(D,V),_==null||_(V,q)},onMouseEnter:V=>{var L;(L=D==null?void 0:D.onMouseEnter)==null||L.call(D,V),C==null||C(V,q)},onMouseDown:V=>{var L;(L=D==null?void 0:D.onMouseDown)==null||L.call(D,V),x&&V.preventDefault()},tabIndex:x||!W?-1:0,children:(D==null?void 0:D.children)??Ie(q).locale(z.getLocale(h)).format(c)})},Y)});return y.jsx("tr",{...P("yearsListRow"),children:I},R)});return y.jsx(ve,{component:"table",size:M,...P("yearsList"),"data-full-width":j||void 0,...H,children:y.jsx("tbody",{children:U})})});a0.classes=LF;a0.displayName="@mantine/dates/YearsList";function IF({month:e,minDate:n,maxDate:t}){return!n&&!t?!1:!!(n&&Ie(e).isBefore(n,"month")||t&&Ie(e).isAfter(t,"month"))}function hoe({months:e,minDate:n,maxDate:t,getMonthControlProps:i}){const r=e.flat().filter(l=>{var f;return!IF({month:l,minDate:n,maxDate:t})&&!((f=i==null?void 0:i(l))!=null&&f.disabled)}),a=r.find(l=>{var f;return(f=i==null?void 0:i(l))==null?void 0:f.selected});if(a)return a;const o=r.find(l=>Ie().isSame(l,"month"));return o||r[0]}function moe(e){const n=Ie(e).startOf("year").toDate(),t=[[],[],[],[]];let i=0;for(let r=0;r<4;r+=1)for(let a=0;a<3;a+=1)t[r].push(Ie(n).add(i,"months").format("YYYY-MM-DD")),i+=1;return t}var BF={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const poe={monthsListFormat:"MMM",withCellSpacing:!0},o0=Re(e=>{const n=be("MonthsList",poe,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:f,year:c,monthsListFormat:h,locale:d,minDate:p,maxDate:v,getMonthControlProps:b,__getControlRef:w,__onControlKeyDown:k,__onControlClick:_,__onControlMouseEnter:C,__preventFocus:x,__stopPropagation:E,withCellSpacing:O,fullWidth:j,size:M,attributes:N,...H}=n,P=Ze({name:f||"MonthsList",classes:BF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:N,vars:l,rootSelector:"monthsList"}),z=yl(),F=moe(c),G=hoe({months:F,minDate:Qi(p),maxDate:Qi(v),getMonthControlProps:b}),U=F.map(($,R)=>{const I=$.map((q,Y)=>{const D=b==null?void 0:b(q),W=Ie(q).isSame(G,"month");return y.jsx("td",{...P("monthsListCell"),"data-with-spacing":O||void 0,children:y.jsx(ap,{...P("monthsListControl"),size:M,unstyled:o,fullWidth:j,__staticSelector:f||"MonthsList","data-mantine-stop-propagation":E||void 0,disabled:IF({month:q,minDate:Qi(p),maxDate:Qi(v)}),ref:V=>{V&&(w==null||w(R,Y,V))},...D,onKeyDown:V=>{var L;(L=D==null?void 0:D.onKeyDown)==null||L.call(D,V),k==null||k(V,{rowIndex:R,cellIndex:Y,date:q})},onClick:V=>{var L;(L=D==null?void 0:D.onClick)==null||L.call(D,V),_==null||_(V,q)},onMouseEnter:V=>{var L;(L=D==null?void 0:D.onMouseEnter)==null||L.call(D,V),C==null||C(V,q)},onMouseDown:V=>{var L;(L=D==null?void 0:D.onMouseDown)==null||L.call(D,V),x&&V.preventDefault()},tabIndex:x||!W?-1:0,children:(D==null?void 0:D.children)??Ie(q).locale(z.getLocale(d)).format(h)})},Y)});return y.jsx("tr",{...P("monthsListRow"),children:I},R)});return y.jsx(ve,{component:"table",size:M,...P("monthsList"),"data-full-width":j||void 0,...H,children:y.jsx("tbody",{children:U})})});o0.classes=BF;o0.displayName="@mantine/dates/MonthsList";var FF={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const voe={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},qF=(e,{size:n})=>({calendarHeader:{"--dch-control-size":Pn(n,"dch-control-size"),"--dch-fz":ri(n)}}),ms=Re(e=>{const n=be("CalendarHeader",voe,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,nextIcon:f,previousIcon:c,nextLabel:h,previousLabel:d,onNext:p,onPrevious:v,onLevelClick:b,label:w,nextDisabled:k,previousDisabled:_,hasNextLevel:C,levelControlAriaLabel:x,withNext:E,withPrevious:O,headerControlsOrder:j,fullWidth:M,__staticSelector:N,__preventFocus:H,__stopPropagation:P,attributes:z,...F}=n,G=Ze({name:N||"CalendarHeader",classes:FF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:z,vars:l,varsResolver:qF,rootSelector:"calendarHeader"}),U=H?Y=>Y.preventDefault():void 0,$=O&&A.createElement(Dt,{...G("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":d,onClick:v,unstyled:o,onMouseDown:U,disabled:_,"data-disabled":_||void 0,tabIndex:H||_?-1:0,"data-mantine-stop-propagation":P||void 0},c||y.jsx(Ng,{...G("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),R=A.createElement(Dt,{component:C?"button":"div",...G("calendarHeaderLevel"),key:"level",onClick:C?b:void 0,unstyled:o,onMouseDown:C?U:void 0,disabled:!C,"data-static":!C||void 0,"aria-label":x,tabIndex:H||!C?-1:0,"data-mantine-stop-propagation":P||void 0},w),I=E&&A.createElement(Dt,{...G("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":h,onClick:p,unstyled:o,onMouseDown:U,disabled:k,"data-disabled":k||void 0,tabIndex:H||k?-1:0,"data-mantine-stop-propagation":P||void 0},f||y.jsx(Ng,{...G("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),q=j.map(Y=>Y==="previous"?$:Y==="level"?R:Y==="next"?I:null);return y.jsx(ve,{...G("calendarHeader"),"data-full-width":M||void 0,...F,children:q})});ms.classes=FF;ms.varsResolver=qF;ms.displayName="@mantine/dates/CalendarHeader";function goe(e){const n=zF(e);return[n[0][0],n[3][0]]}const yoe={decadeLabelFormat:"YYYY"},s0=Re(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:v,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:C,nextDisabled:x,previousDisabled:E,levelControlAriaLabel:O,withNext:j,withPrevious:M,headerControlsOrder:N,decadeLabelFormat:H,classNames:P,styles:z,unstyled:F,__staticSelector:G,__stopPropagation:U,size:$,fullWidth:R,attributes:I,...q}=be("DecadeLevel",yoe,e),Y=yl(),[D,W]=goe(n),V={__staticSelector:G||"DecadeLevel",classNames:P,styles:z,unstyled:F,size:$,attributes:I},L=typeof x=="boolean"?x:r?!Ie(W).endOf("year").isBefore(r):!1,X=typeof E=="boolean"?E:i?!Ie(D).startOf("year").isAfter(i):!1,ee=(re,se)=>Ie(re).locale(t||Y.locale).format(se);return y.jsxs(ve,{"data-decade-level":!0,size:$,...q,children:[y.jsx(ms,{label:typeof H=="function"?H(D,W):`${ee(D,H)} – ${ee(W,H)}`,__preventFocus:p,__stopPropagation:U,nextIcon:v,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:C,nextDisabled:L,previousDisabled:X,hasNextLevel:!1,levelControlAriaLabel:O,withNext:j,withPrevious:M,headerControlsOrder:N,fullWidth:R,...V}),y.jsx(a0,{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:U,withCellSpacing:d,fullWidth:R,...V})]})});s0.classes={...a0.classes,...ms.classes};s0.displayName="@mantine/dates/DecadeLevel";const boe={yearLabelFormat:"YYYY"},l0=Re(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,withCellSpacing:d,__preventFocus:p,nextIcon:v,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:C,onLevelClick:x,nextDisabled:E,previousDisabled:O,hasNextLevel:j,levelControlAriaLabel:M,withNext:N,withPrevious:H,headerControlsOrder:P,yearLabelFormat:z,__staticSelector:F,__stopPropagation:G,size:U,classNames:$,styles:R,unstyled:I,fullWidth:q,attributes:Y,...D}=be("YearLevel",boe,e),W=yl(),V={__staticSelector:F||"YearLevel",classNames:$,styles:R,unstyled:I,size:U,attributes:Y},L=typeof E=="boolean"?E:r?!Ie(n).endOf("year").isBefore(r):!1,X=typeof O=="boolean"?O:i?!Ie(n).startOf("year").isAfter(i):!1;return y.jsxs(ve,{"data-year-level":!0,size:U,...D,children:[y.jsx(ms,{label:typeof z=="function"?z(n):Ie(n).locale(t||W.locale).format(z),__preventFocus:p,__stopPropagation:G,nextIcon:v,previousIcon:b,nextLabel:w,previousLabel:k,onNext:_,onPrevious:C,onLevelClick:x,nextDisabled:L,previousDisabled:X,hasNextLevel:j,levelControlAriaLabel:M,withNext:N,withPrevious:H,headerControlsOrder:P,fullWidth:q,...V}),y.jsx(o0,{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__getControlRef:l,__onControlKeyDown:f,__onControlClick:c,__onControlMouseEnter:h,__preventFocus:p,__stopPropagation:G,withCellSpacing:d,fullWidth:q,...V})]})});l0.classes={...ms.classes,...o0.classes};l0.displayName="@mantine/dates/YearLevel";const woe={monthLabelFormat:"MMMM YYYY"},u0=Re(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__getDayRef:b,__onDayKeyDown:w,__onDayClick:k,__onDayMouseEnter:_,withCellSpacing:C,highlightToday:x,withWeekNumbers:E,__preventFocus:O,__stopPropagation:j,nextIcon:M,previousIcon:N,nextLabel:H,previousLabel:P,onNext:z,onPrevious:F,onLevelClick:G,nextDisabled:U,previousDisabled:$,hasNextLevel:R,levelControlAriaLabel:I,withNext:q,withPrevious:Y,headerControlsOrder:D,monthLabelFormat:W,classNames:V,styles:L,unstyled:X,__staticSelector:ee,size:re,static:se,fullWidth:ye,attributes:ae,...le}=be("MonthLevel",woe,e),_e=yl(),ne={__staticSelector:ee||"MonthLevel",classNames:V,styles:L,unstyled:X,size:re,attributes:ae},ze=typeof U=="boolean"?U:c?!Ie(n).endOf("month").isBefore(c):!1,we=typeof $=="boolean"?$:f?!Ie(n).startOf("month").isAfter(f):!1;return y.jsxs(ve,{"data-month-level":!0,size:re,...le,children:[y.jsx(ms,{label:typeof W=="function"?W(n):Ie(n).locale(t||_e.locale).format(W),__preventFocus:O,__stopPropagation:j,nextIcon:M,previousIcon:N,nextLabel:H,previousLabel:P,onNext:z,onPrevious:F,onLevelClick:G,nextDisabled:ze,previousDisabled:we,hasNextLevel:R,levelControlAriaLabel:I,withNext:q,withPrevious:Y,headerControlsOrder:D,fullWidth:ye,...ne}),y.jsx(rp,{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__getDayRef:b,__onDayKeyDown:w,__onDayClick:k,__onDayMouseEnter:_,__preventFocus:O,__stopPropagation:j,static:se,withCellSpacing:C,highlightToday:x,withWeekNumbers:E,fullWidth:ye,...ne})]})});u0.classes={...rp.classes,...ms.classes};u0.displayName="@mantine/dates/MonthLevel";var HF={levelsGroup:"m_30b26e33"};const bl=Re(e=>{const n=be("LevelsGroup",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,__staticSelector:f,fullWidth:c,attributes:h,...d}=n;return y.jsx(ve,{...Ze({name:f||"LevelsGroup",classes:HF,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:h,vars:l,rootSelector:"levelsGroup"})("levelsGroup"),"data-full-width":c||void 0,...d})});bl.classes=HF;bl.displayName="@mantine/dates/LevelsGroup";const koe={numberOfColumns:1},f0=Re(e=>{const{decade:n,locale:t,minDate:i,maxDate:r,yearsListFormat:a,getYearControlProps:o,__onControlClick:l,__onControlMouseEnter:f,withCellSpacing:c,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:b,onNext:w,onPrevious:k,nextDisabled:_,previousDisabled:C,headerControlsOrder:x,classNames:E,styles:O,unstyled:j,__staticSelector:M,__stopPropagation:N,numberOfColumns:H,levelControlAriaLabel:P,decadeLabelFormat:z,size:F,fullWidth:G,vars:U,attributes:$,...R}=be("DecadeLevelGroup",koe,e),I=A.useRef([]),q=Array(H).fill(0).map((Y,D)=>{const W=Ie(n).add(D*10,"years").format("YYYY-MM-DD");return y.jsx(s0,{size:F,yearsListFormat:a,decade:W,withNext:D===H-1,withPrevious:D===0,decadeLabelFormat:z,__onControlClick:l,__onControlMouseEnter:f,__onControlKeyDown:(V,L)=>a9({levelIndex:D,rowIndex:L.rowIndex,cellIndex:L.cellIndex,event:V,controlsRef:I}),__getControlRef:(V,L,X)=>{Array.isArray(I.current[D])||(I.current[D]=[]),Array.isArray(I.current[D][V])||(I.current[D][V]=[]),I.current[D][V][L]=X},levelControlAriaLabel:typeof P=="function"?P(W):P,locale:t,minDate:i,maxDate:r,__preventFocus:h,__stopPropagation:N,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:b,onNext:w,onPrevious:k,nextDisabled:_,previousDisabled:C,getYearControlProps:o,__staticSelector:M||"DecadeLevelGroup",classNames:E,styles:O,unstyled:j,withCellSpacing:c,headerControlsOrder:x,fullWidth:G,attributes:$},D)});return y.jsx(bl,{classNames:E,styles:O,__staticSelector:M||"DecadeLevelGroup",size:F,unstyled:j,fullWidth:G,attributes:$,...R,children:q})});f0.classes={...bl.classes,...s0.classes};f0.displayName="@mantine/dates/DecadeLevelGroup";const _oe={numberOfColumns:1},c0=Re(e=>{const{year:n,locale:t,minDate:i,maxDate:r,monthsListFormat:a,getMonthControlProps:o,__onControlClick:l,__onControlMouseEnter:f,withCellSpacing:c,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:b,onNext:w,onPrevious:k,onLevelClick:_,nextDisabled:C,previousDisabled:x,hasNextLevel:E,headerControlsOrder:O,classNames:j,styles:M,unstyled:N,__staticSelector:H,__stopPropagation:P,numberOfColumns:z,levelControlAriaLabel:F,yearLabelFormat:G,size:U,fullWidth:$,vars:R,attributes:I,...q}=be("YearLevelGroup",_oe,e),Y=A.useRef([]),D=Array(z).fill(0).map((W,V)=>{const L=Ie(n).add(V,"years").format("YYYY-MM-DD");return y.jsx(l0,{size:U,monthsListFormat:a,year:L,withNext:V===z-1,withPrevious:V===0,yearLabelFormat:G,__stopPropagation:P,__onControlClick:l,__onControlMouseEnter:f,__onControlKeyDown:(X,ee)=>a9({levelIndex:V,rowIndex:ee.rowIndex,cellIndex:ee.cellIndex,event:X,controlsRef:Y}),__getControlRef:(X,ee,re)=>{Array.isArray(Y.current[V])||(Y.current[V]=[]),Array.isArray(Y.current[V][X])||(Y.current[V][X]=[]),Y.current[V][X][ee]=re},levelControlAriaLabel:typeof F=="function"?F(L):F,locale:t,minDate:i,maxDate:r,__preventFocus:h,nextIcon:d,previousIcon:p,nextLabel:v,previousLabel:b,onNext:w,onPrevious:k,onLevelClick:_,nextDisabled:C,previousDisabled:x,hasNextLevel:E,getMonthControlProps:o,classNames:j,styles:M,unstyled:N,__staticSelector:H||"YearLevelGroup",withCellSpacing:c,headerControlsOrder:O,fullWidth:$,attributes:I},V)});return y.jsx(bl,{classNames:j,styles:M,__staticSelector:H||"YearLevelGroup",size:U,unstyled:N,fullWidth:$,attributes:I,...q,children:D})});c0.classes={...l0.classes,...bl.classes};c0.displayName="@mantine/dates/YearLevelGroup";const xoe={numberOfColumns:1},d0=Re(e=>{const{month:n,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__onDayClick:b,__onDayMouseEnter:w,withCellSpacing:k,highlightToday:_,withWeekNumbers:C,__preventFocus:x,nextIcon:E,previousIcon:O,nextLabel:j,previousLabel:M,onNext:N,onPrevious:H,onLevelClick:P,nextDisabled:z,previousDisabled:F,hasNextLevel:G,headerControlsOrder:U,classNames:$,styles:R,unstyled:I,numberOfColumns:q,levelControlAriaLabel:Y,monthLabelFormat:D,__staticSelector:W,__stopPropagation:V,size:L,static:X,fullWidth:ee,vars:re,attributes:se,...ye}=be("MonthLevelGroup",xoe,e),ae=A.useRef([]),le=Array(q).fill(0).map((_e,ne)=>{const ze=Ie(n).add(ne,"months").format("YYYY-MM-DD");return y.jsx(u0,{month:ze,withNext:ne===q-1,withPrevious:ne===0,monthLabelFormat:D,__stopPropagation:V,__onDayClick:b,__onDayMouseEnter:w,__onDayKeyDown:(we,Ce)=>a9({levelIndex:ne,rowIndex:Ce.rowIndex,cellIndex:Ce.cellIndex,event:we,controlsRef:ae}),__getDayRef:(we,Ce,Ne)=>{Array.isArray(ae.current[ne])||(ae.current[ne]=[]),Array.isArray(ae.current[ne][we])||(ae.current[ne][we]=[]),ae.current[ne][we][Ce]=Ne},levelControlAriaLabel:typeof Y=="function"?Y(ze):Y,locale:t,firstDayOfWeek:i,weekdayFormat:r,weekendDays:a,getDayProps:o,excludeDate:l,minDate:f,maxDate:c,renderDay:h,hideOutsideDates:d,hideWeekdays:p,getDayAriaLabel:v,__preventFocus:x,nextIcon:E,previousIcon:O,nextLabel:j,previousLabel:M,onNext:N,onPrevious:H,onLevelClick:P,nextDisabled:z,previousDisabled:F,hasNextLevel:G,classNames:$,styles:R,unstyled:I,__staticSelector:W||"MonthLevelGroup",size:L,static:X,withCellSpacing:k,highlightToday:_,withWeekNumbers:C,headerControlsOrder:U,fullWidth:ee,attributes:se},ne)});return y.jsx(bl,{classNames:$,styles:R,__staticSelector:W||"MonthLevelGroup",size:L,fullWidth:ee,attributes:se,...ye,children:le})});d0.classes={...bl.classes,...u0.classes};d0.displayName="@mantine/dates/MonthLevelGroup";var UF={input:"m_6fa5e2aa"};const Gc=Re(e=>{const{inputProps:n,wrapperProps:t,placeholder:i,classNames:r,styles:a,unstyled:o,popoverProps:l,modalProps:f,dropdownType:c,children:h,formattedValue:d,dropdownHandlers:p,dropdownOpened:v,onClick:b,clearable:w,clearSectionMode:k,onClear:_,clearButtonProps:C,rightSection:x,shouldClear:E,readOnly:O,disabled:j,value:M,name:N,form:H,type:P,onDropdownClose:z,withTime:F,...G}=eI("PickerInputBase",{size:"sm"},e),U=y.jsx(Vt.ClearButton,{onClick:_,unstyled:o,...C}),$=()=>{P==="range"&&Array.isArray(M)&&M[0]&&!M[1]&&_(),p.close()};return y.jsxs(y.Fragment,{children:[c==="modal"&&!O&&y.jsx(Sr,{opened:v,onClose:$,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:o,...f,children:h}),y.jsx(Vt.Wrapper,{...t,children:y.jsxs(En,{position:"bottom-start",opened:v,trapFocus:!0,returnFocus:!1,unstyled:o,onClose:z,...l,disabled:(l==null?void 0:l.disabled)||c==="modal"||O,onChange:R=>{var I;R||((I=l==null?void 0:l.onClose)==null||I.call(l),$())},children:[y.jsx(En.Target,{children:y.jsx(Vt,{"data-dates-input":!0,"data-read-only":O||void 0,disabled:j,component:"button",type:"button",multiline:!0,onClick:R=>{b==null||b(R),p.toggle()},__clearSection:U,__clearable:w&&E&&!O&&!j,__clearSectionMode:k,rightSection:x,...n,classNames:{...r,input:dn(UF.input,r==null?void 0:r.input)},...G,children:d||y.jsx(Vt.Placeholder,{error:n.error,unstyled:o,classNames:r,styles:a,__staticSelector:n.__staticSelector,children:i})})}),y.jsx(En.Dropdown,{"data-dates-dropdown":!0,children:h})]})}),y.jsx(CF,{value:M,name:N,form:H,type:P,withTime:F})]})});Gc.classes=UF;Gc.displayName="@mantine/dates/PickerInputBase";const iM=e=>e==="range"?[null,null]:e==="multiple"?[]:null,rM=(e,n)=>{const t=n?SF:Qi;return Array.isArray(e)?e.map(t):t(e)};function s9({type:e,value:n,defaultValue:t,onChange:i,withTime:r=!1}){const a=A.useRef(e),[o,l,f]=Mi({value:rM(n,r),defaultValue:rM(t,r),finalValue:iM(e),onChange:i});let c=o;return a.current!==e&&(a.current=e,n===void 0&&(c=t!==void 0?t:iM(e),l(c))),[c,l,f]}function Bk(e,n){return e?e==="month"?0:e==="year"?1:2:n||0}function Soe(e){return e===0?"month":e===1?"year":"decade"}function nh(e,n,t){return Soe(Yo(Bk(e,0),Bk(n,0),Bk(t,2)))}const Coe={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},Yc=Re(e=>{const n=be("Calendar",Coe,e),{vars:t,maxLevel:i,minLevel:r,defaultLevel:a,level:o,onLevelChange:l,date:f,defaultDate:c,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:v,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:C,onMonthMouseEnter:x,headerControlsOrder:E,__updateDateOnYearSelect:O,__updateDateOnMonthSelect:j,__setDateRef:M,__setLevelRef:N,firstDayOfWeek:H,weekdayFormat:P,weekendDays:z,getDayProps:F,excludeDate:G,renderDay:U,hideOutsideDates:$,hideWeekdays:R,getDayAriaLabel:I,monthLabelFormat:q,nextIcon:Y,previousIcon:D,__onDayClick:W,__onDayMouseEnter:V,withCellSpacing:L,highlightToday:X,withWeekNumbers:ee,monthsListFormat:re,getMonthControlProps:se,yearLabelFormat:ye,yearsListFormat:ae,getYearControlProps:le,decadeLabelFormat:_e,classNames:ne,styles:ze,unstyled:we,minDate:Ce,maxDate:Ne,locale:ge,__staticSelector:xe,size:Pe,__preventFocus:ue,__stopPropagation:Be,onNextDecade:Ge,onPreviousDecade:Ve,onNextYear:Xe,onPreviousYear:Qe,onNextMonth:ie,onPreviousMonth:he,static:Ye,enableKeyboardNavigation:Je,fullWidth:Se,attributes:tn,ref:cn,...On}=n,{resolvedClassNames:mn,resolvedStyles:an}=Hi({classNames:ne,styles:ze,props:n}),[en,Rn]=Mi({value:o?nh(o,r,i):void 0,defaultValue:a?nh(a,r,i):void 0,finalValue:nh(void 0,r,i),onChange:l}),[De,Fe]=s9({type:"default",value:Qi(f),defaultValue:Qi(c),onChange:h});A.useImperativeHandle(M,()=>nn=>{Fe(nn)}),A.useImperativeHandle(N,()=>nn=>{Rn(nn)});const jn={__staticSelector:xe||"Calendar",styles:an,classNames:mn,unstyled:we,size:Pe,attributes:tn},bn=p||d||1,yn=A.useRef(null);if(yn.current===null){const nn=new Date;yn.current=Ce&&Ie(nn).isAfter(Ce)?Ce:Ie(nn).format("YYYY-MM-DD")}const wn=De||yn.current,it=()=>{const nn=Ie(wn).add(bn,"month").format("YYYY-MM-DD");ie==null||ie(nn),Fe(nn)},_t=()=>{const nn=Ie(wn).subtract(bn,"month").format("YYYY-MM-DD");he==null||he(nn),Fe(nn)},Le=()=>{const nn=Ie(wn).add(bn,"year").format("YYYY-MM-DD");Xe==null||Xe(nn),Fe(nn)},qe=()=>{const nn=Ie(wn).subtract(bn,"year").format("YYYY-MM-DD");Qe==null||Qe(nn),Fe(nn)},Nn=()=>{const nn=Ie(wn).add(10*bn,"year").format("YYYY-MM-DD");Ge==null||Ge(nn),Fe(nn)},st=()=>{const nn=Ie(wn).subtract(10*bn,"year").format("YYYY-MM-DD");Ve==null||Ve(nn),Fe(nn)},Mn=A.useRef(null);return A.useEffect(()=>{if(!Je||Ye)return;const nn=rn=>{var Wn;if(!((Wn=Mn.current)!=null&&Wn.contains(document.activeElement)))return;const on=rn.ctrlKey||rn.metaKey,Bn=rn.shiftKey;switch(rn.key){case"ArrowUp":on&&Bn?(rn.preventDefault(),st()):on&&(rn.preventDefault(),qe());break;case"ArrowDown":on&&Bn?(rn.preventDefault(),Nn()):on&&(rn.preventDefault(),Le());break;case"y":case"Y":en==="month"&&(rn.preventDefault(),Rn("year"));break}};return document.addEventListener("keydown",nn),()=>{document.removeEventListener("keydown",nn)}},[Je,Ye,en,Le,qe,Nn,st]),y.jsxs(ve,{ref:Wt(Mn,cn),size:Pe,"data-calendar":!0,"data-full-width":Se||void 0,...On,children:[en==="month"&&y.jsx(d0,{month:wn,minDate:Ce,maxDate:Ne,firstDayOfWeek:H,weekdayFormat:P,weekendDays:z,getDayProps:F,excludeDate:G,renderDay:U,hideOutsideDates:$,hideWeekdays:R,getDayAriaLabel:I,onNext:it,onPrevious:_t,hasNextLevel:i!=="month",onLevelClick:()=>Rn("year"),numberOfColumns:d,locale:ge,levelControlAriaLabel:v==null?void 0:v.monthLevelControl,nextLabel:(v==null?void 0:v.nextMonth)??b,nextIcon:Y,previousLabel:(v==null?void 0:v.previousMonth)??w,previousIcon:D,monthLabelFormat:q,__onDayClick:W,__onDayMouseEnter:V,__preventFocus:ue,__stopPropagation:Be,static:Ye,withCellSpacing:L,highlightToday:X,withWeekNumbers:ee,headerControlsOrder:E,fullWidth:Se,...jn}),en==="year"&&y.jsx(c0,{year:wn,numberOfColumns:d,minDate:Ce,maxDate:Ne,monthsListFormat:re,getMonthControlProps:se,locale:ge,onNext:Le,onPrevious:qe,hasNextLevel:i!=="month"&&i!=="year",onLevelClick:()=>Rn("decade"),levelControlAriaLabel:v==null?void 0:v.yearLevelControl,nextLabel:(v==null?void 0:v.nextYear)??b,nextIcon:Y,previousLabel:(v==null?void 0:v.previousYear)??w,previousIcon:D,yearLabelFormat:ye,__onControlMouseEnter:x,__onControlClick:(nn,rn)=>{j&&Fe(rn),Rn(nh("month",r,i)),_==null||_(rn)},__preventFocus:ue,__stopPropagation:Be,withCellSpacing:L,headerControlsOrder:E,fullWidth:Se,...jn}),en==="decade"&&y.jsx(f0,{decade:wn,minDate:Ce,maxDate:Ne,yearsListFormat:ae,getYearControlProps:le,locale:ge,onNext:Nn,onPrevious:st,numberOfColumns:d,nextLabel:(v==null?void 0:v.nextDecade)??b,nextIcon:Y,previousLabel:(v==null?void 0:v.previousDecade)??w,previousIcon:D,decadeLabelFormat:_e,__onControlMouseEnter:C,__onControlClick:(nn,rn)=>{O&&Fe(rn),Rn(nh("year",r,i)),k==null||k(rn)},__preventFocus:ue,__stopPropagation:Be,withCellSpacing:L,headerControlsOrder:E,fullWidth:Se,...jn})]})});Yc.classes={...f0.classes,...c0.classes,...d0.classes};Yc.displayName="@mantine/dates/Calendar";function h0(e){const{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:f,defaultDate:c,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:v,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:C,onMonthMouseEnter:x,onNextMonth:E,onPreviousMonth:O,onNextYear:j,onPreviousYear:M,onNextDecade:N,onPreviousDecade:H,withCellSpacing:P,highlightToday:z,__updateDateOnYearSelect:F,__updateDateOnMonthSelect:G,__setDateRef:U,__setLevelRef:$,withWeekNumbers:R,headerControlsOrder:I,firstDayOfWeek:q,weekdayFormat:Y,weekendDays:D,getDayProps:W,excludeDate:V,renderDay:L,hideOutsideDates:X,hideWeekdays:ee,getDayAriaLabel:re,monthLabelFormat:se,monthsListFormat:ye,getMonthControlProps:ae,yearLabelFormat:le,yearsListFormat:_e,getYearControlProps:ne,decadeLabelFormat:ze,allowSingleDateInRange:we,allowDeselect:Ce,minDate:Ne,maxDate:ge,locale:xe,...Pe}=e;return{calendarProps:{maxLevel:n,minLevel:t,defaultLevel:i,level:r,onLevelChange:a,nextIcon:o,previousIcon:l,date:f,defaultDate:c,onDateChange:h,numberOfColumns:d,columnsToScroll:p,ariaLabels:v,nextLabel:b,previousLabel:w,onYearSelect:k,onMonthSelect:_,onYearMouseEnter:C,onMonthMouseEnter:x,onNextMonth:E,onPreviousMonth:O,onNextYear:j,onPreviousYear:M,onNextDecade:N,onPreviousDecade:H,withCellSpacing:P,highlightToday:z,__updateDateOnYearSelect:F,__updateDateOnMonthSelect:G,__setDateRef:U,withWeekNumbers:R,headerControlsOrder:I,firstDayOfWeek:q,weekdayFormat:Y,weekendDays:D,getDayProps:W,excludeDate:V,renderDay:L,hideOutsideDates:X,hideWeekdays:ee,getDayAriaLabel:re,monthLabelFormat:se,monthsListFormat:ye,getMonthControlProps:ae,yearLabelFormat:le,yearsListFormat:_e,getYearControlProps:ne,decadeLabelFormat:ze,allowSingleDateInRange:we,allowDeselect:Ce,minDate:Ne,maxDate:ge,locale:xe},others:Pe}}function aM(e,n){const t=[...n].sort((i,r)=>Ie(i).isAfter(Ie(r))?1:-1);return Ie(t[0]).startOf("day").subtract(1,"ms").isBefore(e)&&Ie(t[1]).endOf("day").add(1,"ms").isAfter(e)}function VF({type:e,level:n,value:t,defaultValue:i,onChange:r,allowSingleDateInRange:a,allowDeselect:o,onMouseLeave:l}){const[f,c]=s9({type:e,value:t,defaultValue:i,onChange:r}),[h,d]=A.useState(e==="range"&&f[0]&&!f[1]?f[0]:null),[p,v]=A.useState(null),b=O=>{if(e==="range"){if(h&&!f[1]){if(Ie(O).isSame(h,n)&&!a){d(null),v(null),c([null,null]);return}const j=[O,h];j.sort((M,N)=>Ie(M).isAfter(Ie(N))?1:-1),c(j),v(null),d(null);return}if(f[0]&&!f[1]&&Ie(O).isSame(f[0],n)&&!a){d(null),v(null),c([null,null]);return}c([O,null]),v(null),d(O);return}if(e==="multiple"){f.some(j=>Ie(j).isSame(O,n))?c(f.filter(j=>!Ie(j).isSame(O,n))):c([...f,O]);return}f&&o&&Ie(O).isSame(f,n)?c(null):c(O)},w=O=>h&&p?aM(O,[p,h]):f[0]&&f[1]?aM(O,f):!1,k=e==="range"?O=>{l==null||l(O),v(null)}:l,_=O=>f[0]&&Ie(O).isSame(f[0],n)?!(p&&Ie(p).isBefore(f[0])):!1,C=O=>f[1]?Ie(O).isSame(f[1],n):!f[0]||!p?!1:Ie(p).isBefore(f[0])&&Ie(O).isSame(f[0],n),x=O=>{if(e==="range")return{selected:f.some(M=>M&&Ie(M).isSame(O,n)),inRange:w(O),firstInRange:_(O),lastInRange:C(O),"data-autofocus":!!f[0]&&Ie(f[0]).isSame(O,n)||void 0};if(e==="multiple")return{selected:f.some(M=>M&&Ie(M).isSame(O,n)),"data-autofocus":!!f[0]&&Ie(f[0]).isSame(O,n)||void 0};const j=Ie(f).isSame(O,n);return{selected:j,"data-autofocus":j||void 0}},E=e==="range"&&h?v:()=>{};return A.useEffect(()=>{if(e==="range")if(f[0]&&!f[1])d(f[0]);else{const O=f[0]==null&&f[1]==null,j=f[0]!=null&&f[1]!=null;(O||j)&&(d(null),v(null))}},[f]),{onDateChange:b,onRootMouseLeave:k,onHoveredDateChange:E,getControlProps:x,_value:f,setValue:c}}var WF={monthPickerRoot:"m_53c9e871",presetsList:"m_cccb8ff3",presetButton:"m_7b4fbf50"};const GF=(e,{size:n})=>({monthPickerRoot:{"--preset-font-size":ri(n)}}),Aoe={type:"default"},op=Re(e=>{const n=be("MonthPicker",Aoe,e),{classNames:t,styles:i,vars:r,type:a,defaultValue:o,value:l,onChange:f,__staticSelector:c,getMonthControlProps:h,allowSingleDateInRange:d,allowDeselect:p,onMouseLeave:v,onMonthSelect:b,__updateDateOnMonthSelect:w,__onPresetSelect:k,__stopPropagation:_,presets:C,className:x,style:E,unstyled:O,size:j,attributes:M,onLevelChange:N,...H}=n,{calendarProps:P,others:z}=h0(H),F=A.useRef(null),G=A.useRef(null),U=Ze({name:c||"MonthPicker",classes:WF,props:n,className:x,style:E,classNames:t,styles:i,unstyled:O,attributes:M,rootSelector:C?"monthPickerRoot":void 0,varsResolver:GF,vars:r}),{onDateChange:$,onRootMouseLeave:R,onHoveredDateChange:I,getControlProps:q,setValue:Y}=VF({type:a,level:"month",allowDeselect:p,allowSingleDateInRange:d,value:l,defaultValue:o,onChange:f,onMouseLeave:v}),{resolvedClassNames:D,resolvedStyles:W}=Hi({classNames:t,styles:i,props:n}),V=y.jsx(Yc,{classNames:D,styles:W,size:j,...P,...C?{}:z,minLevel:"year",__updateDateOnMonthSelect:w??!1,__staticSelector:c||"MonthPicker",onMouseLeave:R,onMonthMouseEnter:(ee,re)=>I(re),onMonthSelect:ee=>{$(ee),b==null||b(ee)},getMonthControlProps:ee=>({...q(ee),...h==null?void 0:h(ee)}),onLevelChange:N,__setDateRef:F,__setLevelRef:G,__stopPropagation:_,attributes:M,...C?{}:{className:x,style:E}});if(!C)return V;const L=ee=>{var se,ye;const re=Array.isArray(ee)?ee[0]:ee;re!==void 0&&((se=F.current)==null||se.call(F,re),(ye=G.current)==null||ye.call(G,"year"),k?k(re):Y(ee))},X=C.map((ee,re)=>y.jsx(Dt,{...U("presetButton"),onClick:()=>L(ee.value),onMouseDown:se=>se.preventDefault(),"data-mantine-stop-propagation":_||void 0,children:ee.label},re));return y.jsxs(ve,{...U("monthPickerRoot"),size:j,...z,children:[y.jsx("div",{...U("presetsList"),children:X}),V]})});op.classes={...Yc.classes,...WF};op.varsResolver=GF;op.displayName="@mantine/dates/MonthPicker";var Ooe={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const YF=(e,{size:n})=>({datePickerRoot:{"--preset-font-size":ri(n)}}),joe={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},sp=Re(e=>{const n=be("DatePicker",joe,e),{allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l,classNames:f,styles:c,__staticSelector:h,__onDayClick:d,__onDayMouseEnter:p,__onPresetSelect:v,__stopPropagation:b,presets:w,className:k,style:_,unstyled:C,size:x,vars:E,attributes:O,...j}=n,{calendarProps:M,others:N}=h0(j),H=A.useRef(null),P=A.useRef(null),z=Ze({name:h||"DatePicker",classes:Ooe,props:n,className:k,style:_,classNames:f,styles:c,unstyled:C,attributes:O,rootSelector:w?"datePickerRoot":void 0,varsResolver:YF,vars:E}),{onDateChange:F,onRootMouseLeave:G,onHoveredDateChange:U,getControlProps:$,_value:R,setValue:I}=VF({type:N.type,level:"day",allowDeselect:t,allowSingleDateInRange:i,value:r,defaultValue:a,onChange:o,onMouseLeave:l}),{resolvedClassNames:q,resolvedStyles:Y}=Hi({classNames:f,styles:c,props:n}),D=y.jsx(Yc,{classNames:q,styles:Y,__staticSelector:h||"DatePicker",onMouseLeave:G,size:x,...M,...w?{}:N,__stopPropagation:b,__setDateRef:H,__setLevelRef:P,minLevel:M.minLevel||"month",__onDayMouseEnter:(L,X)=>{U(X),p==null||p(L,X)},__onDayClick:(L,X)=>{F(X),d==null||d(L,X)},getDayProps:L=>{var X;return{...$(L),...(X=M.getDayProps)==null?void 0:X.call(M,L)}},getMonthControlProps:L=>{var X;return{selected:typeof R=="string"?o9(L,R):!1,...(X=M.getMonthControlProps)==null?void 0:X.call(M,L)}},getYearControlProps:L=>{var X;return{selected:typeof R=="string"?Ie(L).isSame(R,"year"):!1,...(X=M.getYearControlProps)==null?void 0:X.call(M,L)}},hideOutsideDates:M.hideOutsideDates??M.numberOfColumns!==1,attributes:O,...w?{}:{className:k,style:_}});if(!w)return D;const W=L=>{var ee,re;const X=Array.isArray(L)?L[0]:L;X!==void 0&&((ee=H.current)==null||ee.call(H,X),(re=P.current)==null||re.call(P,"month"),v?v(X):I(L))},V=w.map((L,X)=>y.jsx(Dt,{...z("presetButton"),onClick:()=>W(L.value),onMouseDown:ee=>ee.preventDefault(),"data-mantine-stop-propagation":b||void 0,children:L.label},X));return y.jsxs(ve,{...z("datePickerRoot"),size:x,...N,children:[y.jsx("div",{...z("presetsList"),children:V}),D]})});sp.classes=Yc.classes;sp.varsResolver=YF;sp.displayName="@mantine/dates/DatePicker";function KF({type:e,value:n,defaultValue:t,onChange:i,locale:r,format:a,closeOnChange:o,sortDates:l,labelSeparator:f,valueFormatter:c}){const h=yl(),[d,p]=vz(!1),[v,b]=s9({type:e,value:n,defaultValue:t,onChange:i}),w=Gae({type:e,date:v,locale:h.getLocale(r),format:a,labelSeparator:h.getLabelSeparator(f),formatter:c}),k=C=>{o&&(e==="default"&&p.close(),e==="range"&&C[0]&&C[1]&&p.close()),b(l&&e==="multiple"?[...C].sort((x,E)=>Ie(x).isAfter(Ie(E))?1:-1):C)};return{_value:v,setValue:k,onClear:()=>k(e==="range"?[null,null]:e==="multiple"?[]:null),shouldClear:e==="range"?!!v[0]:e==="multiple"?v.length>0:v!==null,formattedValue:w,dropdownOpened:d,dropdownHandlers:p}}const Eoe={type:"default",size:"sm",valueFormat:"MMMM YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},l9=Re(e=>{const n=be("MonthPickerInput",Eoe,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:f,classNames:c,styles:h,unstyled:d,closeOnChange:p,size:v,variant:b,dropdownType:w,sortDates:k,minDate:_,maxDate:C,vars:x,valueFormatter:E,presets:O,attributes:j,...M}=n,{resolvedClassNames:N,resolvedStyles:H}=Hi({classNames:c,styles:h,props:n}),{calendarProps:P,others:z}=h0(M),{_value:F,setValue:G,formattedValue:U,dropdownHandlers:$,dropdownOpened:R,onClear:I,shouldClear:q}=KF({type:t,value:i,defaultValue:r,onChange:a,locale:f,format:o,labelSeparator:l,closeOnChange:p,sortDates:k,valueFormatter:E});return y.jsx(Gc,{formattedValue:U,dropdownOpened:R,dropdownHandlers:$,classNames:N,styles:H,unstyled:d,onClear:I,shouldClear:q,value:F,size:v,variant:b,dropdownType:w,...z,attributes:j,type:t,__staticSelector:"MonthPickerInput",children:y.jsx(op,{...P,size:v,variant:b,type:t,value:F,defaultDate:P.defaultDate||(Array.isArray(F)?F[0]||zS({maxDate:C,minDate:_}):F||zS({maxDate:C,minDate:_})),onChange:G,locale:f,classNames:N,styles:H,unstyled:d,__staticSelector:"MonthPickerInput",__stopPropagation:w==="popover",minDate:_,maxDate:C,presets:O,attributes:j})})});l9.classes={...Gc.classes,...op.classes};l9.displayName="@mantine/dates/MonthPickerInput";const Toe={type:"default",size:"sm",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},ku=Re(e=>{const n=be("DatePickerInput",Toe,e),{type:t,value:i,defaultValue:r,onChange:a,valueFormat:o,labelSeparator:l,locale:f,classNames:c,styles:h,unstyled:d,closeOnChange:p,size:v,variant:b,dropdownType:w,sortDates:k,minDate:_,maxDate:C,vars:x,defaultDate:E,valueFormatter:O,presets:j,attributes:M,...N}=n,{resolvedClassNames:H,resolvedStyles:P}=Hi({classNames:c,styles:h,props:n}),{calendarProps:z,others:F}=h0(N),{_value:G,setValue:U,formattedValue:$,dropdownHandlers:R,dropdownOpened:I,onClear:q,shouldClear:Y}=KF({type:t,value:i,defaultValue:r,onChange:a,locale:f,format:o,labelSeparator:l,closeOnChange:p,sortDates:k,valueFormatter:O}),D=Array.isArray(G)?G[0]||E:G||E;return y.jsx(Gc,{formattedValue:$,dropdownOpened:I,dropdownHandlers:R,classNames:H,styles:P,unstyled:d,onClear:q,shouldClear:Y,value:G,size:v,variant:b,dropdownType:w,...F,type:t,__staticSelector:"DatePickerInput",attributes:M,children:y.jsx(sp,{...z,size:v,variant:b,type:t,value:G,defaultDate:D||zS({maxDate:C,minDate:_}),onChange:U,locale:f,classNames:H,styles:P,unstyled:d,__staticSelector:"DatePickerInput",__stopPropagation:w==="popover",minDate:_,maxDate:C,presets:j,attributes:M})})});ku.classes={...Gc.classes,...sp.classes};ku.displayName="@mantine/dates/DatePickerInput";/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */var Moe={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const gn=(e,n,t,i)=>{const r=A.forwardRef(({color:a="currentColor",size:o=24,stroke:l=2,title:f,className:c,children:h,...d},p)=>A.createElement("svg",{ref:p,...Moe[e],width:o,height:o,className:["tabler-icon",`tabler-icon-${n}`,c].join(" "),strokeWidth:l,stroke:a,...d},[f&&A.createElement("title",{key:"svg-title"},f),...i.map(([v,b])=>A.createElement(v,b)),...Array.isArray(h)?h:[h]]));return r.displayName=`${t}`,r};/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Doe=[["path",{d:"M12 9v4",key:"svg-0"}],["path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0",key:"svg-1"}],["path",{d:"M12 16h.01",key:"svg-2"}]],LS=gn("outline","alert-triangle","AlertTriangle",Doe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Roe=[["path",{d:"M8 4h11a2 2 0 1 1 0 4h-7m-4 0h-3a2 2 0 0 1 -.826 -3.822",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 1.824 -1.18m.176 -3.82v-7",key:"svg-1"}],["path",{d:"M10 12h2",key:"svg-2"}],["path",{d:"M3 3l18 18",key:"svg-3"}]],Poe=gn("outline","archive-off","ArchiveOff",Roe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Noe=[["path",{d:"M3 6a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2",key:"svg-0"}],["path",{d:"M5 8v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-10",key:"svg-1"}],["path",{d:"M10 12l4 0",key:"svg-2"}]],XF=gn("outline","archive","Archive",Noe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const $oe=[["path",{d:"M9 14l-4 -4l4 -4",key:"svg-0"}],["path",{d:"M5 10h11a4 4 0 1 1 0 8h-1",key:"svg-1"}]],Ug=gn("outline","arrow-back-up","ArrowBackUp",$oe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const zoe=[["path",{d:"M7 8l-4 4l4 4",key:"svg-0"}],["path",{d:"M17 8l4 4l-4 4",key:"svg-1"}],["path",{d:"M3 12l18 0",key:"svg-2"}]],Loe=gn("outline","arrows-horizontal","ArrowsHorizontal",zoe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Ioe=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2l0 -12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}]],ZF=gn("outline","calendar-due","CalendarDue",Ioe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Boe=[["path",{d:"M9 5h9a2 2 0 0 1 2 2v9m-.184 3.839a2 2 0 0 1 -1.816 1.161h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 1.158 -1.815",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v1",key:"svg-2"}],["path",{d:"M4 11h7m4 0h5",key:"svg-3"}],["path",{d:"M3 3l18 18",key:"svg-4"}]],Foe=gn("outline","calendar-off","CalendarOff",Boe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const qoe=[["path",{d:"M11.795 21h-6.795a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v4",key:"svg-0"}],["path",{d:"M18 14v4h4",key:"svg-1"}],["path",{d:"M14 18a4 4 0 1 0 8 0a4 4 0 1 0 -8 0",key:"svg-2"}],["path",{d:"M15 3v4",key:"svg-3"}],["path",{d:"M7 3v4",key:"svg-4"}],["path",{d:"M3 11h16",key:"svg-5"}]],Hoe=gn("outline","calendar-stats","CalendarStats",qoe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Uoe=[["path",{d:"M4 7a2 2 0 0 1 2 -2h12a2 2 0 0 1 2 2v12a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12",key:"svg-0"}],["path",{d:"M16 3v4",key:"svg-1"}],["path",{d:"M8 3v4",key:"svg-2"}],["path",{d:"M4 11h16",key:"svg-3"}],["path",{d:"M11 15h1",key:"svg-4"}],["path",{d:"M12 15v3",key:"svg-5"}]],Voe=gn("outline","calendar","Calendar",Uoe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Woe=[["path",{d:"M3 13a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v6a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -6",key:"svg-0"}],["path",{d:"M15 9a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v10a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -10",key:"svg-1"}],["path",{d:"M9 5a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v14a1 1 0 0 1 -1 1h-4a1 1 0 0 1 -1 -1l0 -14",key:"svg-2"}],["path",{d:"M4 20h14",key:"svg-3"}]],Goe=gn("outline","chart-bar","ChartBar",Woe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Yoe=[["path",{d:"M5 12l5 5l10 -10",key:"svg-0"}]],nc=gn("outline","check","Check",Yoe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Koe=[["path",{d:"M9 11l3 3l8 -8",key:"svg-0"}],["path",{d:"M20 12v6a2 2 0 0 1 -2 2h-12a2 2 0 0 1 -2 -2v-12a2 2 0 0 1 2 -2h9",key:"svg-1"}]],em=gn("outline","checkbox","Checkbox",Koe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Xoe=[["path",{d:"M6 9l6 6l6 -6",key:"svg-0"}]],IS=gn("outline","chevron-down","ChevronDown",Xoe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Zoe=[["path",{d:"M9 6l6 6l-6 6",key:"svg-0"}]],BS=gn("outline","chevron-right","ChevronRight",Zoe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Qoe=[["path",{d:"M9 5h-2a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-12a2 2 0 0 0 -2 -2h-2",key:"svg-0"}],["path",{d:"M9 5a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2",key:"svg-1"}],["path",{d:"M9 12l.01 0",key:"svg-2"}],["path",{d:"M13 12l2 0",key:"svg-3"}],["path",{d:"M9 16l.01 0",key:"svg-4"}],["path",{d:"M13 16l2 0",key:"svg-5"}]],oM=gn("outline","clipboard-list","ClipboardList",Qoe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Joe=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M12 12l3 2",key:"svg-1"}],["path",{d:"M12 7v5",key:"svg-2"}]],ese=gn("outline","clock-hour-4","ClockHour4",Joe);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const nse=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0",key:"svg-0"}],["path",{d:"M12 7v5l3 3",key:"svg-1"}]],Vg=gn("outline","clock","Clock",nse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const tse=[["path",{d:"M3 4a1 1 0 0 1 1 -1h16a1 1 0 0 1 1 1v16a1 1 0 0 1 -1 1h-16a1 1 0 0 1 -1 -1v-16",key:"svg-0"}],["path",{d:"M9 3v18",key:"svg-1"}],["path",{d:"M15 3v18",key:"svg-2"}]],ise=gn("outline","columns-3","Columns3",tse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const rse=[["path",{d:"M7 9.667a2.667 2.667 0 0 1 2.667 -2.667h8.666a2.667 2.667 0 0 1 2.667 2.667v8.666a2.667 2.667 0 0 1 -2.667 2.667h-8.666a2.667 2.667 0 0 1 -2.667 -2.667l0 -8.666",key:"svg-0"}],["path",{d:"M4.012 16.737a2.005 2.005 0 0 1 -1.012 -1.737v-10c0 -1.1 .9 -2 2 -2h10c.75 0 1.158 .385 1.5 1",key:"svg-1"}]],ase=gn("outline","copy","Copy",rse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const ose=[["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-0"}],["path",{d:"M8 8.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-1"}],["path",{d:"M15 8.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-2"}],["path",{d:"M15 15.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-3"}],["path",{d:"M8 15.5a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-4"}],["path",{d:"M11.5 12a.5 .5 0 1 0 1 0a.5 .5 0 1 0 -1 0",fill:"currentColor",key:"svg-5"}]],sse=gn("outline","dice-5","Dice5",ose);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const lse=[["path",{d:"M11 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M11 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}]],QF=gn("outline","dots-vertical","DotsVertical",lse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const use=[["path",{d:"M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M7 11l5 5l5 -5",key:"svg-1"}],["path",{d:"M12 4l0 12",key:"svg-2"}]],fse=gn("outline","download","Download",use);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const cse=[["path",{d:"M7 7h-1a2 2 0 0 0 -2 2v9a2 2 0 0 0 2 2h9a2 2 0 0 0 2 -2v-1",key:"svg-0"}],["path",{d:"M20.385 6.585a2.1 2.1 0 0 0 -2.97 -2.97l-8.415 8.385v3h3l8.385 -8.415",key:"svg-1"}],["path",{d:"M16 5l3 3",key:"svg-2"}]],kh=gn("outline","edit","Edit",cse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const dse=[["path",{d:"M12 6h-6a2 2 0 0 0 -2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2 -2v-6",key:"svg-0"}],["path",{d:"M11 13l9 -9",key:"svg-1"}],["path",{d:"M15 4h5v5",key:"svg-2"}]],hse=gn("outline","external-link","ExternalLink",dse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const mse=[["path",{d:"M8 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M14 5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}],["path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-4"}],["path",{d:"M14 19a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-5"}]],JF=gn("outline","grip-vertical","GripVertical",mse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const pse=[["path",{d:"M12 8l0 4l2 2",key:"svg-0"}],["path",{d:"M3.05 11a9 9 0 1 1 .5 4m-.5 5v-5h5",key:"svg-1"}]],vse=gn("outline","history","History",pse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const gse=[["path",{d:"M6.5 7h11",key:"svg-0"}],["path",{d:"M6.5 17h11",key:"svg-1"}],["path",{d:"M6 20v-2a6 6 0 1 1 12 0v2a1 1 0 0 1 -1 1h-10a1 1 0 0 1 -1 -1",key:"svg-2"}],["path",{d:"M6 4v2a6 6 0 1 0 12 0v-2a1 1 0 0 0 -1 -1h-10a1 1 0 0 0 -1 1",key:"svg-3"}]],Wg=gn("outline","hourglass","Hourglass",gse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const yse=[["path",{d:"M4 4l6 0",key:"svg-0"}],["path",{d:"M14 4l6 0",key:"svg-1"}],["path",{d:"M4 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -8",key:"svg-2"}],["path",{d:"M14 10a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v2a2 2 0 0 1 -2 2h-2a2 2 0 0 1 -2 -2l0 -2",key:"svg-3"}]],FS=gn("outline","layout-kanban","LayoutKanban",yse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const bse=[["path",{d:"M9 15l6 -6",key:"svg-0"}],["path",{d:"M11 6l.463 -.536a5 5 0 0 1 7.071 7.072l-.534 .464",key:"svg-1"}],["path",{d:"M13 18l-.397 .534a5.068 5.068 0 0 1 -7.127 0a4.972 4.972 0 0 1 0 -7.071l.524 -.463",key:"svg-2"}]],wse=gn("outline","link","Link",bse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const kse=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2l0 -6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-5a4 4 0 0 1 8 0",key:"svg-2"}]],eq=gn("outline","lock-open","LockOpen",kse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const _se=[["path",{d:"M5 13a2 2 0 0 1 2 -2h10a2 2 0 0 1 2 2v6a2 2 0 0 1 -2 2h-10a2 2 0 0 1 -2 -2v-6",key:"svg-0"}],["path",{d:"M11 16a1 1 0 1 0 2 0a1 1 0 0 0 -2 0",key:"svg-1"}],["path",{d:"M8 11v-4a4 4 0 1 1 8 0v4",key:"svg-2"}]],el=gn("outline","lock","Lock",_se);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const xse=[["path",{d:"M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2",key:"svg-0"}],["path",{d:"M9 12h12l-3 -3",key:"svg-1"}],["path",{d:"M18 15l3 -3",key:"svg-2"}]],Sse=gn("outline","logout","Logout",xse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Cse=[["path",{d:"M4 6l16 0",key:"svg-0"}],["path",{d:"M4 12l16 0",key:"svg-1"}],["path",{d:"M4 18l16 0",key:"svg-2"}]],Ase=gn("outline","menu-2","Menu2",Cse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Ose=[["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-0"}],["path",{d:"M9.5 9h.01",key:"svg-1"}],["path",{d:"M14.5 9h.01",key:"svg-2"}],["path",{d:"M9.5 13a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],nq=gn("outline","message-chatbot","MessageChatbot",Ose);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const jse=[["path",{d:"M8 9h8",key:"svg-0"}],["path",{d:"M8 13h6",key:"svg-1"}],["path",{d:"M18 4a3 3 0 0 1 3 3v8a3 3 0 0 1 -3 3h-5l-5 3v-3h-2a3 3 0 0 1 -3 -3v-8a3 3 0 0 1 3 -3h12",key:"svg-2"}]],Ese=gn("outline","message","Message",jse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Tse=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10l.01 0",key:"svg-1"}],["path",{d:"M15 10l.01 0",key:"svg-2"}],["path",{d:"M9.5 15a3.5 3.5 0 0 0 5 0",key:"svg-3"}]],Mse=gn("outline","mood-smile","MoodSmile",Tse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Dse=[["path",{d:"M12 21a9 9 0 0 1 0 -18c4.97 0 9 3.582 9 8c0 1.06 -.474 2.078 -1.318 2.828c-.844 .75 -1.989 1.172 -3.182 1.172h-2.5a2 2 0 0 0 -1 3.75a1.3 1.3 0 0 1 -1 2.25",key:"svg-0"}],["path",{d:"M7.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-1"}],["path",{d:"M11.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-2"}],["path",{d:"M15.5 10.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-3"}]],u9=gn("outline","palette","Palette",Dse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Rse=[["path",{d:"M15 7l-6.5 6.5a1.5 1.5 0 0 0 3 3l6.5 -6.5a3 3 0 0 0 -6 -6l-6.5 6.5a4.5 4.5 0 0 0 9 9l6.5 -6.5",key:"svg-0"}]],Pse=gn("outline","paperclip","Paperclip",Rse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Nse=[["path",{d:"M4 20h4l10.5 -10.5a2.828 2.828 0 1 0 -4 -4l-10.5 10.5v4",key:"svg-0"}],["path",{d:"M13.5 6.5l4 4",key:"svg-1"}]],$se=gn("outline","pencil","Pencil",Nse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const zse=[["path",{d:"M12 5l0 14",key:"svg-0"}],["path",{d:"M5 12l14 0",key:"svg-1"}]],tc=gn("outline","plus","Plus",zse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Lse=[["path",{d:"M20 11a8.1 8.1 0 0 0 -15.5 -2m-.5 -4v4h4",key:"svg-0"}],["path",{d:"M4 13a8.1 8.1 0 0 0 15.5 2m.5 4v-4h-4",key:"svg-1"}]],qS=gn("outline","refresh","Refresh",Lse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Ise=[["path",{d:"M3 10a7 7 0 1 0 14 0a7 7 0 1 0 -14 0",key:"svg-0"}],["path",{d:"M21 21l-6 -6",key:"svg-1"}]],Bse=gn("outline","search","Search",Ise);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Fse=[["path",{d:"M10 14l11 -11",key:"svg-0"}],["path",{d:"M21 3l-6.5 18a.55 .55 0 0 1 -1 0l-3.5 -7l-7 -3.5a.55 .55 0 0 1 0 -1l18 -6.5",key:"svg-1"}]],tq=gn("outline","send","Send",Fse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const qse=[["path",{d:"M10.325 4.317c.426 -1.756 2.924 -1.756 3.35 0a1.724 1.724 0 0 0 2.573 1.066c1.543 -.94 3.31 .826 2.37 2.37a1.724 1.724 0 0 0 1.065 2.572c1.756 .426 1.756 2.924 0 3.35a1.724 1.724 0 0 0 -1.066 2.573c.94 1.543 -.826 3.31 -2.37 2.37a1.724 1.724 0 0 0 -2.572 1.065c-.426 1.756 -2.924 1.756 -3.35 0a1.724 1.724 0 0 0 -2.573 -1.066c-1.543 .94 -3.31 -.826 -2.37 -2.37a1.724 1.724 0 0 0 -1.065 -2.572c-1.756 -.426 -1.756 -2.924 0 -3.35a1.724 1.724 0 0 0 1.066 -2.573c-.94 -1.543 .826 -3.31 2.37 -2.37c1 .608 2.296 .07 2.572 -1.065",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}]],Hse=gn("outline","settings","Settings",qse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Use=[["path",{d:"M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m0 -12a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2m-7 12a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6",key:"svg-0"}]],Vse=gn("outline","sparkles","Sparkles",Use);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Wse=[["path",{d:"M6.5 7.5a1 1 0 1 0 2 0a1 1 0 1 0 -2 0",key:"svg-0"}],["path",{d:"M3 6v5.172a2 2 0 0 0 .586 1.414l7.71 7.71a2.41 2.41 0 0 0 3.408 0l5.592 -5.592a2.41 2.41 0 0 0 0 -3.408l-7.71 -7.71a2 2 0 0 0 -1.414 -.586h-5.172a3 3 0 0 0 -3 3",key:"svg-1"}]],Gse=gn("outline","tag","Tag",Wse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Yse=[["path",{d:"M4 7h16",key:"svg-0"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-1"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-2"}],["path",{d:"M10 12l4 4m0 -4l-4 4",key:"svg-3"}]],Kse=gn("outline","trash-x","TrashX",Yse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Xse=[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]],_u=gn("outline","trash","Trash",Xse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Zse=[["path",{d:"M3 17l6 -6l4 4l8 -8",key:"svg-0"}],["path",{d:"M14 7l7 0l0 7",key:"svg-1"}]],HS=gn("outline","trending-up","TrendingUp",Zse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const Qse=[["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-0"}],["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 1 0 -6 0",key:"svg-1"}],["path",{d:"M6.168 18.849a4 4 0 0 1 3.832 -2.849h4a4 4 0 0 1 3.834 2.855",key:"svg-2"}]],Jse=gn("outline","user-circle","UserCircle",Qse);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const ele=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4c.348 0 .686 .045 1.009 .128",key:"svg-1"}],["path",{d:"M16 19h6",key:"svg-2"}]],nle=gn("outline","user-minus","UserMinus",ele);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const tle=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M16 19h6",key:"svg-1"}],["path",{d:"M19 16v6",key:"svg-2"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4",key:"svg-3"}]],ile=gn("outline","user-plus","UserPlus",tle);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const rle=[["path",{d:"M9 10a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-0"}],["path",{d:"M6 21v-1a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v1",key:"svg-1"}],["path",{d:"M3 5a2 2 0 0 1 2 -2h14a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-14a2 2 0 0 1 -2 -2v-14",key:"svg-2"}]],ale=gn("outline","user-square","UserSquare",rle);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const ole=[["path",{d:"M8 7a4 4 0 1 0 8 0a4 4 0 0 0 -8 0",key:"svg-0"}],["path",{d:"M6 21v-2a4 4 0 0 1 4 -4h4a4 4 0 0 1 4 4v2",key:"svg-1"}]],sle=gn("outline","user","User",ole);/** + * @license @tabler/icons-react v3.42.0 - MIT + * + * This source code is licensed under the MIT license. + * See the LICENSE file in the root directory of this source tree. + */const lle=[["path",{d:"M18 6l-12 12",key:"svg-0"}],["path",{d:"M6 6l12 12",key:"svg-1"}]],_h=gn("outline","x","X",lle);function iq({initial:e,submitLabel:n="Guardar",users:t=[],requesterOptions:i=[],tagOptions:r=[],onSubmit:a,onCancel:o}){const[l,f]=A.useState((e==null?void 0:e.requester)??""),[c,h]=A.useState((e==null?void 0:e.title)??""),[d,p]=A.useState((e==null?void 0:e.description)??""),[v,b]=A.useState((e==null?void 0:e.assignee_id)??null),[w,k]=A.useState((e==null?void 0:e.tags)??[]),_=async x=>{x==null||x.preventDefault();const E=c.trim();E&&await a({requester:l.trim(),title:E,description:d,assignee_id:v,tags:w})},C=x=>{x.key==="Enter"&&(x.ctrlKey||x.metaKey)&&(x.preventDefault(),_())};return y.jsx("form",{onSubmit:_,children:y.jsxs(Vn,{gap:"sm",children:[y.jsx(bu,{label:"Tarea",value:c,onChange:x=>h(x.currentTarget.value),tabIndex:1,required:!0,autoComplete:"off","data-autofocus":!0,autosize:!0,minRows:1,maxRows:4,onKeyDown:x=>{x.key==="Enter"&&!x.shiftKey&&(x.preventDefault(),_())}}),y.jsx(Ay,{label:"Solicitante",value:l,onChange:f,data:i,tabIndex:2,autoComplete:"off","data-field":"requester",placeholder:"Empieza a escribir y elige uno existente",limit:10,onKeyDown:x=>{x.key==="Enter"&&x.preventDefault()}}),y.jsx(bu,{label:"Descripcion",value:d,onChange:x=>p(x.currentTarget.value),tabIndex:3,autosize:!0,minRows:3,maxRows:8,onKeyDown:C,description:"Ctrl+Enter para guardar"}),y.jsx(ya,{label:"Asignar a",placeholder:"Sin asignar",value:v,onChange:x=>b(x),data:t.map(x=>({value:x.id,label:x.display_name||x.username})),clearable:!0,searchable:!0,tabIndex:4}),y.jsx(UC,{label:"Tags",value:w,onChange:k,data:r,clearable:!0,tabIndex:5,placeholder:"Enter para añadir; sugiere existentes",splitChars:[","," "]}),y.jsxs(Ue,{justify:"flex-end",gap:"xs",mt:"xs",children:[y.jsx(yt,{variant:"subtle",color:"gray",tabIndex:7,type:"button",onClick:o,children:"Cancelar"}),y.jsx(yt,{tabIndex:6,type:"submit",disabled:!c.trim(),children:n})]})]})})}function ule(e,n){if(n.length===0)throw new Error("palette must not be empty");let t=0;for(let i=0;i >>0;return n[t%n.length]}const f9=new Set(["blue","cyan","teal","green","lime","yellow","orange","red","pink","grape","violet","indigo","gray","dark"]);function c9(e){return/^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e)}function rq(e){return e?c9(e)?`color-mix(in srgb, ${e} 18%, var(--mantine-color-dark-6))`:f9.has(e)?`color-mix(in srgb, var(--mantine-color-${e}-9) 18%, var(--mantine-color-dark-6))`:"var(--mantine-color-dark-6)":"var(--mantine-color-dark-6)"}function d9(e){return e?c9(e)?`color-mix(in srgb, ${e} 30%, var(--mantine-color-dark-4))`:f9.has(e)?`color-mix(in srgb, var(--mantine-color-${e}-7) 30%, var(--mantine-color-dark-4))`:"var(--mantine-color-dark-4)":"var(--mantine-color-dark-4)"}function fle(e){return e?c9(e)?e:f9.has(e)?`var(--mantine-color-${e}-7)`:"var(--mantine-color-dark-3)":"var(--mantine-color-dark-3)"}const aq=[{value:"",label:"Default"},{value:"blue",label:"Azul"},{value:"cyan",label:"Cian"},{value:"teal",label:"Teal"},{value:"green",label:"Verde"},{value:"lime",label:"Lima"},{value:"yellow",label:"Amarillo"},{value:"orange",label:"Naranja"},{value:"red",label:"Rojo"},{value:"pink",label:"Rosa"},{value:"grape",label:"Uva"},{value:"violet",label:"Violeta"},{value:"indigo",label:"Indigo"},{value:"gray",label:"Gris"},{value:"#0ea5e9",label:"Sky"},{value:"#14b8a6",label:"Esmeralda"},{value:"#84cc16",label:"Lima fluor"},{value:"#ec4899",label:"Magenta"},{value:"#a855f7",label:"Lavanda"},{value:"#f97316",label:"Mandarina"},{value:"#dc2626",label:"Rubi"},{value:"#0891b2",label:"Petroleo"},{value:"#fde047",label:"Limon"},{value:"#10b981",label:"Menta"},{value:"#fb7185",label:"Coral"},{value:"#6366f1",label:"Iris"},{value:"#94a3b8",label:"Pizarra"}],cle=aq,dle=["blue","cyan","teal","green","lime","yellow","orange","red","pink","grape","violet","indigo"];function ic(e){return ule(e,dle)}const US=6e4,xh=60*US,Lf=24*xh,qv=7*Lf,Fk=30*Lf;function Zt(e){if(!Number.isFinite(e)||e<0)return"0m";if(e [C.id,C])),b=A.useCallback(async()=>{try{const C=await Lie(e);a(C),i==null||i(C)}catch(C){Ln.show({color:"red",message:C.message})}finally{l(!1)}},[e,i]);A.useEffect(()=>{b()},[b]),A.useEffect(()=>{p.current&&p.current.scrollTo({top:p.current.scrollHeight,behavior:"smooth"})},[r.length]);const w=async()=>{const C=f.trim();if(!(!C||h)){d(!0);try{const x=await Iie(e,C),E=[...r,x];a(E),i==null||i(E),c("")}catch(x){Ln.show({color:"red",message:x.message})}finally{d(!1)}}},k=async C=>{try{await Bie(e,C);const x=r.filter(E=>E.id!==C);a(x),i==null||i(x)}catch(x){Ln.show({color:"red",message:x.message})}},_=C=>{C.key==="Enter"&&!C.shiftKey&&(C.preventDefault(),w())};return y.jsxs(Vn,{gap:"xs",style:{height:"100%",minHeight:0},children:[y.jsx(xa,{viewportRef:p,style:{flex:1,minHeight:200},type:"auto",offsetScrollbars:!0,children:o?y.jsx(Ue,{justify:"center",p:"md",children:y.jsx(xi,{size:"sm"})}):r.length===0?y.jsx(Ee,{size:"sm",c:"dimmed",ta:"center",p:"md",children:"Sin mensajes aun. Escribe el primero."}):y.jsx(Vn,{gap:6,p:4,children:r.map(C=>{const x=C.author_id?v.get(C.author_id):null,E=C.author_id&&C.author_id===t,O=x?x.display_name||x.username:"Anonimo";return y.jsx(Mt,{withBorder:!0,p:"xs",radius:"sm",bg:E?"var(--mantine-color-blue-light)":void 0,children:y.jsxs(Ue,{gap:6,wrap:"nowrap",align:"flex-start",children:[y.jsx(rs,{size:22,radius:"xl",color:(x==null?void 0:x.color)||ic(O),children:O.slice(0,2).toUpperCase()}),y.jsxs(ve,{style:{flex:1,minWidth:0},children:[y.jsxs(Ue,{gap:6,wrap:"nowrap",justify:"space-between",children:[y.jsxs(Ue,{gap:6,wrap:"nowrap",children:[y.jsx(Ee,{size:"xs",fw:600,children:O}),y.jsx(Ee,{size:"xs",c:"dimmed",children:VS(C.created_at)})]}),E&&y.jsx(ii,{label:"Borrar",withArrow:!0,children:y.jsx(kt,{size:"xs",variant:"subtle",color:"red",onClick:()=>k(C.id),children:y.jsx(_u,{size:12})})})]}),y.jsx(Ee,{size:"sm",style:{whiteSpace:"pre-wrap",wordBreak:"break-word"},children:C.body})]})]})},C.id)})})}),y.jsxs(Ue,{gap:"xs",align:"flex-end",children:[y.jsx(bu,{value:f,onChange:C=>c(C.currentTarget.value),onKeyDown:_,placeholder:"Escribe un mensaje (Enter = enviar, Shift+Enter = salto)",autosize:!0,minRows:1,maxRows:6,style:{flex:1},disabled:h}),y.jsx(ii,{label:"Enviar",withArrow:!0,children:y.jsx(kt,{size:"lg",variant:"filled",color:"blue",onClick:w,disabled:!f.trim()||h,"aria-label":"Enviar",children:y.jsx(tq,{size:16})})})]})]})}const sM=/(https?:\/\/[^\s<>()"']+)/gi;function qk(e,n){if(!n)return[];const t=[],i=new Set;let r;for(sM.lastIndex=0;(r=sM.exec(n))!==null;){let a=r[1];a=a.replace(/[.,;:!?)\]}>]+$/,""),!i.has(a)&&(i.add(a),t.push({url:a,source:e,context:n}))}return t}function mle(e){try{return new URL(e).hostname}catch{return e}}function ple({card:e,messages:n}){const t=A.useMemo(()=>{const a=[...qk("title",e.title),...qk("description",e.description),...n.flatMap(l=>qk("chat",l.body))],o=new Set;return a.filter(l=>o.has(l.url)?!1:(o.add(l.url),!0))},[e.title,e.description,n]);if(t.length===0)return y.jsxs(Vn,{gap:"xs",p:"md",align:"center",justify:"center",style:{minHeight:200},children:[y.jsx(Ee,{size:"sm",c:"dimmed",children:"Sin enlaces detectados"}),y.jsx(Ee,{size:"xs",c:"dimmed",ta:"center",children:"Pega URLs en el titulo, descripcion o chat y apareceran aqui."})]});const i=a=>a==="title"?"grape":a==="description"?"blue":"teal",r=a=>a==="title"?"titulo":a==="description"?"descripcion":"chat";return y.jsx(Vn,{gap:6,p:4,children:t.map(a=>y.jsx(Mt,{withBorder:!0,p:"xs",radius:"sm",children:y.jsxs(Ue,{gap:"xs",wrap:"nowrap",justify:"space-between",align:"flex-start",children:[y.jsxs(ve,{style:{flex:1,minWidth:0},children:[y.jsx(wy,{href:a.url,target:"_blank",rel:"noopener noreferrer",size:"sm",style:{wordBreak:"break-all"},children:y.jsxs(Ue,{gap:4,wrap:"nowrap",align:"center",children:[y.jsx(hse,{size:12}),y.jsx("span",{children:mle(a.url)})]})}),y.jsx(Ee,{size:"xs",c:"dimmed",style:{wordBreak:"break-all"},children:a.url})]}),y.jsx(dt,{size:"xs",variant:"light",color:i(a.source),children:r(a.source)})]})},a.url))})}function vle({card:e,users:n,currentUserId:t,requesterOptions:i,tagOptions:r,onSubmit:a,onCancel:o}){const[l,f]=A.useState([]),[c,h]=A.useState(e),d=async p=>{h(v=>({...v,title:p.title,description:p.description,requester:p.requester,tags:p.tags,assignee_id:p.assignee_id})),await a(p)};return y.jsxs(Ue,{align:"stretch",gap:"md",wrap:"nowrap",style:{minHeight:460},children:[y.jsx(ve,{style:{flex:"1 1 0",minWidth:320},children:y.jsx(iq,{users:n,requesterOptions:i,tagOptions:r,initial:{requester:c.requester,title:c.title,description:c.description,assignee_id:c.assignee_id,tags:c.tags||[]},submitLabel:"Guardar",onSubmit:d,onCancel:o})}),y.jsx(Bc,{orientation:"vertical"}),y.jsx(ve,{style:{flex:"1 1 0",minWidth:320,display:"flex",flexDirection:"column"},children:y.jsxs(wi,{defaultValue:"chat",keepMounted:!1,style:{display:"flex",flexDirection:"column",flex:1,minHeight:0},children:[y.jsxs(wi.List,{children:[y.jsx(wi.Tab,{value:"chat",leftSection:y.jsx(Ese,{size:14}),children:"Chat"}),y.jsx(wi.Tab,{value:"links",leftSection:y.jsx(wse,{size:14}),children:"Enlaces"}),y.jsx(wi.Tab,{value:"files",leftSection:y.jsx(Pse,{size:14}),disabled:!0,children:"Archivos"})]}),y.jsxs(ve,{pt:"xs",style:{flex:1,minHeight:0,display:"flex",flexDirection:"column"},children:[y.jsx(wi.Panel,{value:"chat",style:{flex:1,minHeight:0,display:"flex"},children:y.jsx(ve,{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",width:"100%"},children:y.jsx(hle,{cardId:c.id,users:n,currentUserId:t,onMessagesChange:f})})}),y.jsx(wi.Panel,{value:"links",children:y.jsx(ple,{card:c,messages:l})}),y.jsx(wi.Panel,{value:"files",children:y.jsx(Ee,{size:"sm",c:"dimmed",ta:"center",p:"md",children:"Proximamente: adjuntos de archivos."})})]})]})})]})}function gle(e,n){const t={};return(e[e.length-1]===""?[...e,""]:e).join((t.padRight?" ":"")+","+(t.padLeft===!1?"":" ")).trim()}const yle=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,ble=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,wle={};function lM(e,n){return(wle.jsx?ble:yle).test(e)}const kle=/[ \t\n\f\r]/g;function _le(e){return typeof e=="object"?e.type==="text"?uM(e.value):!1:uM(e)}function uM(e){return e.replace(kle,"")===""}class lp{constructor(n,t,i){this.normal=t,this.property=n,i&&(this.space=i)}}lp.prototype.normal={};lp.prototype.property={};lp.prototype.space=void 0;function oq(e,n){const t={},i={};for(const r of e)Object.assign(t,r.property),Object.assign(i,r.normal);return new lp(t,i,n)}function WS(e){return e.toLowerCase()}class Cr{constructor(n,t){this.attribute=t,this.property=n}}Cr.prototype.attribute="";Cr.prototype.booleanish=!1;Cr.prototype.boolean=!1;Cr.prototype.commaOrSpaceSeparated=!1;Cr.prototype.commaSeparated=!1;Cr.prototype.defined=!1;Cr.prototype.mustUseProperty=!1;Cr.prototype.number=!1;Cr.prototype.overloadedBoolean=!1;Cr.prototype.property="";Cr.prototype.spaceSeparated=!1;Cr.prototype.space=void 0;let xle=0;const qn=zu(),mi=zu(),GS=zu(),He=zu(),zt=zu(),Vf=zu(),Ir=zu();function zu(){return 2**++xle}const YS=Object.freeze(Object.defineProperty({__proto__:null,boolean:qn,booleanish:mi,commaOrSpaceSeparated:Ir,commaSeparated:Vf,number:He,overloadedBoolean:GS,spaceSeparated:zt},Symbol.toStringTag,{value:"Module"})),Hk=Object.keys(YS);class h9 extends Cr{constructor(n,t,i,r){let a=-1;if(super(n,t),fM(this,"space",r),typeof i=="number")for(;++a 4&&t.slice(0,4)==="data"&&jle.test(n)){if(n.charAt(4)==="-"){const a=n.slice(5).replace(cM,Mle);i="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=n.slice(4);if(!cM.test(a)){let o=a.replace(Ole,Tle);o.charAt(0)!=="-"&&(o="-"+o),n="data"+o}}r=h9}return new r(i,n)}function Tle(e){return"-"+e.toLowerCase()}function Mle(e){return e.charAt(1).toUpperCase()}const Dle=oq([sq,Sle,fq,cq,dq],"html"),m9=oq([sq,Cle,fq,cq,dq],"svg");function Rle(e){return e.join(" ").trim()}var jf={},Uk,dM;function Ple(){if(dM)return Uk;dM=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,t=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,l=/^\s+|\s+$/g,f=` +`,c="/",h="*",d="",p="comment",v="declaration";function b(k,_){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];_=_||{};var C=1,x=1;function E(U){var $=U.match(n);$&&(C+=$.length);var R=U.lastIndexOf(f);x=~R?U.length-R:x+U.length}function O(){var U={line:C,column:x};return function($){return $.position=new j(U),H(),$}}function j(U){this.start=U,this.end={line:C,column:x},this.source=_.source}j.prototype.content=k;function M(U){var $=new Error(_.source+":"+C+":"+x+": "+U);if($.reason=U,$.filename=_.source,$.line=C,$.column=x,$.source=k,!_.silent)throw $}function N(U){var $=U.exec(k);if($){var R=$[0];return E(R),k=k.slice(R.length),$}}function H(){N(t)}function P(U){var $;for(U=U||[];$=z();)$!==!1&&U.push($);return U}function z(){var U=O();if(!(c!=k.charAt(0)||h!=k.charAt(1))){for(var $=2;d!=k.charAt($)&&(h!=k.charAt($)||c!=k.charAt($+1));)++$;if($+=2,d===k.charAt($-1))return M("End of comment missing");var R=k.slice(2,$-2);return x+=2,E(R),k=k.slice($),x+=2,U({type:p,comment:R})}}function F(){var U=O(),$=N(i);if($){if(z(),!N(r))return M("property missing ':'");var R=N(a),I=U({type:v,property:w($[0].replace(e,d)),value:R?w(R[0].replace(e,d)):d});return N(o),I}}function G(){var U=[];P(U);for(var $;$=F();)$!==!1&&(U.push($),P(U));return U}return H(),G()}function w(k){return k?k.replace(l,d):d}return Uk=b,Uk}var hM;function Nle(){if(hM)return jf;hM=1;var e=jf&&jf.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(jf,"__esModule",{value:!0}),jf.default=t;const n=e(Ple());function t(i,r){let a=null;if(!i||typeof i!="string")return a;const o=(0,n.default)(i),l=typeof r=="function";return o.forEach(f=>{if(f.type!=="declaration")return;const{property:c,value:h}=f;l?r(c,h,f):h&&(a=a||{},a[c]=h)}),a}return jf}var th={},mM;function $le(){if(mM)return th;mM=1,Object.defineProperty(th,"__esModule",{value:!0}),th.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,t=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,a=function(c){return!c||t.test(c)||e.test(c)},o=function(c,h){return h.toUpperCase()},l=function(c,h){return"".concat(h,"-")},f=function(c,h){return h===void 0&&(h={}),a(c)?c:(c=c.toLowerCase(),h.reactCompat?c=c.replace(r,l):c=c.replace(i,l),c.replace(n,o))};return th.camelCase=f,th}var ih,pM;function zle(){if(pM)return ih;pM=1;var e=ih&&ih.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},n=e(Nle()),t=$le();function i(r,a){var o={};return!r||typeof r!="string"||(0,n.default)(r,function(l,f){l&&f&&(o[(0,t.camelCase)(l,a)]=f)}),o}return i.default=i,ih=i,ih}var Lle=zle();const Ile=mt(Lle),hq=mq("end"),p9=mq("start");function mq(e){return n;function n(t){const i=t&&t.position&&t.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Ble(e){const n=p9(e),t=hq(e);if(n&&t)return{start:n,end:t}}function Rh(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?vM(e.position):"start"in e||"end"in e?vM(e):"line"in e||"column"in e?KS(e):""}function KS(e){return gM(e&&e.line)+":"+gM(e&&e.column)}function vM(e){return KS(e&&e.start)+"-"+KS(e&&e.end)}function gM(e){return e&&typeof e=="number"?e:1}class er extends Error{constructor(n,t,i){super(),typeof t=="string"&&(i=t,t=void 0);let r="",a={},o=!1;if(t&&("line"in t&&"column"in t?a={place:t}:"start"in t&&"end"in t?a={place:t}:"type"in t?a={ancestors:[t],place:t.position}:a={...t}),typeof n=="string"?r=n:!a.cause&&n&&(o=!0,r=n.message,a.cause=n),!a.ruleId&&!a.source&&typeof i=="string"){const f=i.indexOf(":");f===-1?a.ruleId=i:(a.source=i.slice(0,f),a.ruleId=i.slice(f+1))}if(!a.place&&a.ancestors&&a.ancestors){const f=a.ancestors[a.ancestors.length-1];f&&(a.place=f.position)}const l=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=l?l.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=l?l.line:void 0,this.name=Rh(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}er.prototype.file="";er.prototype.name="";er.prototype.reason="";er.prototype.message="";er.prototype.stack="";er.prototype.column=void 0;er.prototype.line=void 0;er.prototype.ancestors=void 0;er.prototype.cause=void 0;er.prototype.fatal=void 0;er.prototype.place=void 0;er.prototype.ruleId=void 0;er.prototype.source=void 0;const v9={}.hasOwnProperty,Fle=new Map,qle=/[A-Z]/g,Hle=new Set(["table","tbody","thead","tfoot","tr"]),Ule=new Set(["td","th"]),pq="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Vle(e,n){if(!n||n.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const t=n.filePath||void 0;let i;if(n.development){if(typeof n.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=Jle(t,n.jsxDEV)}else{if(typeof n.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof n.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");i=Qle(t,n.jsx,n.jsxs)}const r={Fragment:n.Fragment,ancestors:[],components:n.components||{},create:i,elementAttributeNameCase:n.elementAttributeNameCase||"react",evaluater:n.createEvaluater?n.createEvaluater():void 0,filePath:t,ignoreInvalidStyle:n.ignoreInvalidStyle||!1,passKeys:n.passKeys!==!1,passNode:n.passNode||!1,schema:n.space==="svg"?m9:Dle,stylePropertyNameCase:n.stylePropertyNameCase||"dom",tableCellAlignToStyle:n.tableCellAlignToStyle!==!1},a=vq(r,e,void 0);return a&&typeof a!="string"?a:r.create(e,r.Fragment,{children:a||void 0},void 0)}function vq(e,n,t){if(n.type==="element")return Wle(e,n,t);if(n.type==="mdxFlowExpression"||n.type==="mdxTextExpression")return Gle(e,n);if(n.type==="mdxJsxFlowElement"||n.type==="mdxJsxTextElement")return Kle(e,n,t);if(n.type==="mdxjsEsm")return Yle(e,n);if(n.type==="root")return Xle(e,n,t);if(n.type==="text")return Zle(e,n)}function Wle(e,n,t){const i=e.schema;let r=i;n.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=m9,e.schema=r),e.ancestors.push(n);const a=yq(e,n.tagName,!1),o=eue(e,n);let l=y9(e,n);return Hle.has(n.tagName)&&(l=l.filter(function(f){return typeof f=="string"?!_le(f):!0})),gq(e,o,a,n),g9(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function Gle(e,n){if(n.data&&n.data.estree&&e.evaluater){const i=n.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}nm(e,n.position)}function Yle(e,n){if(n.data&&n.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(n.data.estree);nm(e,n.position)}function Kle(e,n,t){const i=e.schema;let r=i;n.name==="svg"&&i.space==="html"&&(r=m9,e.schema=r),e.ancestors.push(n);const a=n.name===null?e.Fragment:yq(e,n.name,!0),o=nue(e,n),l=y9(e,n);return gq(e,o,a,n),g9(o,l),e.ancestors.pop(),e.schema=i,e.create(n,a,o,t)}function Xle(e,n,t){const i={};return g9(i,y9(e,n)),e.create(n,e.Fragment,i,t)}function Zle(e,n){return n.value}function gq(e,n,t,i){typeof t!="string"&&t!==e.Fragment&&e.passNode&&(n.node=i)}function g9(e,n){if(n.length>0){const t=n.length>1?n:n[0];t&&(e.children=t)}}function Qle(e,n,t){return i;function i(r,a,o,l){const c=Array.isArray(o.children)?t:n;return l?c(a,o,l):c(a,o)}}function Jle(e,n){return t;function t(i,r,a,o){const l=Array.isArray(a.children),f=p9(i);return n(r,a,o,l,{columnNumber:f?f.column-1:void 0,fileName:e,lineNumber:f?f.line:void 0},void 0)}}function eue(e,n){const t={};let i,r;for(r in n.properties)if(r!=="children"&&v9.call(n.properties,r)){const a=tue(e,r,n.properties[r]);if(a){const[o,l]=a;e.tableCellAlignToStyle&&o==="align"&&typeof l=="string"&&Ule.has(n.tagName)?i=l:t[o]=l}}if(i){const a=t.style||(t.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return t}function nue(e,n){const t={};for(const i of n.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const a=i.data.estree.body[0];a.type;const o=a.expression;o.type;const l=o.properties[0];l.type,Object.assign(t,e.evaluater.evaluateExpression(l.argument))}else nm(e,n.position);else{const r=i.name;let a;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const l=i.value.data.estree.body[0];l.type,a=e.evaluater.evaluateExpression(l.expression)}else nm(e,n.position);else a=i.value===null?!0:i.value;t[r]=a}return t}function y9(e,n){const t=[];let i=-1;const r=e.passKeys?new Map:Fle;for(;++i r?0:r+n:n=n>r?r:n,t=t>0?t:0,i.length<1e4)o=Array.from(i),o.unshift(n,t),e.splice(...o);else for(t&&e.splice(n,t);a 0?(Wr(e,e.length,0,n),e):n}const wM={}.hasOwnProperty;function wq(e){const n={};let t=-1;for(;++t 13&&t<32||t>126&&t<160||t>55295&&t<57344||t>64975&&t<65008||(t&65535)===65535||(t&65535)===65534||t>1114111?"�":String.fromCodePoint(t)}function qa(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const lr=wl(/[A-Za-z]/),Ji=wl(/[\dA-Za-z]/),cue=wl(/[#-'*+\--9=?A-Z^-~]/);function Gg(e){return e!==null&&(e<32||e===127)}const XS=wl(/\d/),due=wl(/[\dA-Fa-f]/),hue=wl(/[!-/:-@[-`{-~]/);function kn(e){return e!==null&&e<-2}function Nt(e){return e!==null&&(e<0||e===32)}function Zn(e){return e===-2||e===-1||e===32}const m0=wl(new RegExp("\\p{P}|\\p{S}","u")),xu=wl(/\s/);function wl(e){return n;function n(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function Xc(e){const n=[];let t=-1,i=0,r=0;for(;++t 55295&&a<57344){const l=e.charCodeAt(t+1);a<56320&&l>56319&&l<57344?(o=String.fromCharCode(a,l),r=1):o="�"}else o=String.fromCharCode(a);o&&(n.push(e.slice(i,t),encodeURIComponent(o)),i=t+r+1,o=""),r&&(t+=r,r=0)}return n.join("")+e.slice(i)}function ot(e,n,t,i){const r=i?i-1:Number.POSITIVE_INFINITY;let a=0;return o;function o(f){return Zn(f)?(e.enter(t),l(f)):n(f)}function l(f){return Zn(f)&&a++ o))return;const M=n.events.length;let N=M,H,P;for(;N--;)if(n.events[N][0]==="exit"&&n.events[N][1].type==="chunkFlow"){if(H){P=n.events[N][1].end;break}H=!0}for(_(i),j=M;j x;){const O=t[E];n.containerState=O[1],O[0].exit.call(n,e)}t.length=x}function C(){r.write([null]),a=void 0,r=void 0,n.containerState._closeFlow=void 0}}function yue(e,n,t){return ot(e,e.attempt(this.parser.constructs.document,n,t),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function rc(e){if(e===null||Nt(e)||xu(e))return 1;if(m0(e))return 2}function p0(e,n,t){const i=[];let r=-1;for(;++r 1&&e[t][1].end.offset-e[t][1].start.offset>1?2:1;const d={...e[i][1].end},p={...e[t][1].start};_M(d,-f),_M(p,f),o={type:f>1?"strongSequence":"emphasisSequence",start:d,end:{...e[i][1].end}},l={type:f>1?"strongSequence":"emphasisSequence",start:{...e[t][1].start},end:p},a={type:f>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[t][1].start}},r={type:f>1?"strong":"emphasis",start:{...o.start},end:{...l.end}},e[i][1].end={...o.start},e[t][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=da(c,[["enter",e[i][1],n],["exit",e[i][1],n]])),c=da(c,[["enter",r,n],["enter",o,n],["exit",o,n],["enter",a,n]]),c=da(c,p0(n.parser.constructs.insideSpan.null,e.slice(i+1,t),n)),c=da(c,[["exit",a,n],["enter",l,n],["exit",l,n],["exit",r,n]]),e[t][1].end.offset-e[t][1].start.offset?(h=2,c=da(c,[["enter",e[t][1],n],["exit",e[t][1],n]])):h=0,Wr(e,i-1,t-i+3,c),t=i+c.length-h-2;break}}for(t=-1;++t 0&&Zn(j)?ot(e,C,"linePrefix",a+1)(j):C(j)}function C(j){return j===null||kn(j)?e.check(xM,w,E)(j):(e.enter("codeFlowValue"),x(j))}function x(j){return j===null||kn(j)?(e.exit("codeFlowValue"),C(j)):(e.consume(j),x)}function E(j){return e.exit("codeFenced"),n(j)}function O(j,M,N){let H=0;return P;function P($){return j.enter("lineEnding"),j.consume($),j.exit("lineEnding"),z}function z($){return j.enter("codeFencedFence"),Zn($)?ot(j,F,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)($):F($)}function F($){return $===l?(j.enter("codeFencedFenceSequence"),G($)):N($)}function G($){return $===l?(H++,j.consume($),G):H>=o?(j.exit("codeFencedFenceSequence"),Zn($)?ot(j,U,"whitespace")($):U($)):N($)}function U($){return $===null||kn($)?(j.exit("codeFencedFence"),M($)):N($)}}}function Tue(e,n,t){const i=this;return r;function r(o){return o===null?t(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}const Wk={name:"codeIndented",tokenize:Due},Mue={partial:!0,tokenize:Rue};function Due(e,n,t){const i=this;return r;function r(c){return e.enter("codeIndented"),ot(e,a,"linePrefix",5)(c)}function a(c){const h=i.events[i.events.length-1];return h&&h[1].type==="linePrefix"&&h[2].sliceSerialize(h[1],!0).length>=4?o(c):t(c)}function o(c){return c===null?f(c):kn(c)?e.attempt(Mue,o,f)(c):(e.enter("codeFlowValue"),l(c))}function l(c){return c===null||kn(c)?(e.exit("codeFlowValue"),o(c)):(e.consume(c),l)}function f(c){return e.exit("codeIndented"),n(c)}}function Rue(e,n,t){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?t(o):kn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):ot(e,a,"linePrefix",5)(o)}function a(o){const l=i.events[i.events.length-1];return l&&l[1].type==="linePrefix"&&l[2].sliceSerialize(l[1],!0).length>=4?n(o):kn(o)?r(o):t(o)}}const Pue={name:"codeText",previous:$ue,resolve:Nue,tokenize:zue};function Nue(e){let n=e.length-4,t=3,i,r;if((e[t][1].type==="lineEnding"||e[t][1].type==="space")&&(e[n][1].type==="lineEnding"||e[n][1].type==="space")){for(i=t;++i =this.left.length+this.right.length)throw new RangeError("Cannot access index `"+n+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return n this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-n+this.left.length).reverse():this.left.slice(n).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(n,t,i){const r=t||0;this.setCursor(Math.trunc(n));const a=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&rh(this.left,i),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(n){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(n)}pushMany(n){this.setCursor(Number.POSITIVE_INFINITY),rh(this.left,n)}unshift(n){this.setCursor(0),this.right.push(n)}unshiftMany(n){this.setCursor(0),rh(this.right,n.reverse())}setCursor(n){if(!(n===this.left.length||n>this.left.length&&this.right.length===0||n<0&&this.left.length===0))if(n =4?n(o):e.interrupt(i.parser.constructs.flow,t,n)(o)}}function Aq(e,n,t,i,r,a,o,l,f){const c=f||Number.POSITIVE_INFINITY;let h=0;return d;function d(_){return _===60?(e.enter(i),e.enter(r),e.enter(a),e.consume(_),e.exit(a),p):_===null||_===32||_===41||Gg(_)?t(_):(e.enter(i),e.enter(o),e.enter(l),e.enter("chunkString",{contentType:"string"}),w(_))}function p(_){return _===62?(e.enter(a),e.consume(_),e.exit(a),e.exit(r),e.exit(i),n):(e.enter(l),e.enter("chunkString",{contentType:"string"}),v(_))}function v(_){return _===62?(e.exit("chunkString"),e.exit(l),p(_)):_===null||_===60||kn(_)?t(_):(e.consume(_),_===92?b:v)}function b(_){return _===60||_===62||_===92?(e.consume(_),v):v(_)}function w(_){return!h&&(_===null||_===41||Nt(_))?(e.exit("chunkString"),e.exit(l),e.exit(o),e.exit(i),n(_)):h 999||v===null||v===91||v===93&&!f||v===94&&!l&&"_hiddenFootnoteSupport"in o.parser.constructs?t(v):v===93?(e.exit(a),e.enter(r),e.consume(v),e.exit(r),e.exit(i),n):kn(v)?(e.enter("lineEnding"),e.consume(v),e.exit("lineEnding"),h):(e.enter("chunkString",{contentType:"string"}),d(v))}function d(v){return v===null||v===91||v===93||kn(v)||l++>999?(e.exit("chunkString"),h(v)):(e.consume(v),f||(f=!Zn(v)),v===92?p:d)}function p(v){return v===91||v===92||v===93?(e.consume(v),l++,d):d(v)}}function jq(e,n,t,i,r,a){let o;return l;function l(p){return p===34||p===39||p===40?(e.enter(i),e.enter(r),e.consume(p),e.exit(r),o=p===40?41:p,f):t(p)}function f(p){return p===o?(e.enter(r),e.consume(p),e.exit(r),e.exit(i),n):(e.enter(a),c(p))}function c(p){return p===o?(e.exit(a),f(o)):p===null?t(p):kn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),ot(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),h(p))}function h(p){return p===o||p===null||kn(p)?(e.exit("chunkString"),c(p)):(e.consume(p),p===92?d:h)}function d(p){return p===o||p===92?(e.consume(p),h):h(p)}}function Ph(e,n){let t;return i;function i(r){return kn(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t=!0,i):Zn(r)?ot(e,i,t?"linePrefix":"lineSuffix")(r):n(r)}}const Vue={name:"definition",tokenize:Gue},Wue={partial:!0,tokenize:Yue};function Gue(e,n,t){const i=this;let r;return a;function a(v){return e.enter("definition"),o(v)}function o(v){return Oq.call(i,e,l,t,"definitionLabel","definitionLabelMarker","definitionLabelString")(v)}function l(v){return r=qa(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),v===58?(e.enter("definitionMarker"),e.consume(v),e.exit("definitionMarker"),f):t(v)}function f(v){return Nt(v)?Ph(e,c)(v):c(v)}function c(v){return Aq(e,h,t,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(v)}function h(v){return e.attempt(Wue,d,d)(v)}function d(v){return Zn(v)?ot(e,p,"whitespace")(v):p(v)}function p(v){return v===null||kn(v)?(e.exit("definition"),i.parser.defined.push(r),n(v)):t(v)}}function Yue(e,n,t){return i;function i(l){return Nt(l)?Ph(e,r)(l):t(l)}function r(l){return jq(e,a,t,"definitionTitle","definitionTitleMarker","definitionTitleString")(l)}function a(l){return Zn(l)?ot(e,o,"whitespace")(l):o(l)}function o(l){return l===null||kn(l)?n(l):t(l)}}const Kue={name:"hardBreakEscape",tokenize:Xue};function Xue(e,n,t){return i;function i(a){return e.enter("hardBreakEscape"),e.consume(a),r}function r(a){return kn(a)?(e.exit("hardBreakEscape"),n(a)):t(a)}}const Zue={name:"headingAtx",resolve:Que,tokenize:Jue};function Que(e,n){let t=e.length-2,i=3,r,a;return e[i][1].type==="whitespace"&&(i+=2),t-2>i&&e[t][1].type==="whitespace"&&(t-=2),e[t][1].type==="atxHeadingSequence"&&(i===t-1||t-4>i&&e[t-2][1].type==="whitespace")&&(t-=i+1===t?2:4),t>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[t][1].end},a={type:"chunkText",start:e[i][1].start,end:e[t][1].end,contentType:"text"},Wr(e,i,t-i+1,[["enter",r,n],["enter",a,n],["exit",a,n],["exit",r,n]])),e}function Jue(e,n,t){let i=0;return r;function r(h){return e.enter("atxHeading"),a(h)}function a(h){return e.enter("atxHeadingSequence"),o(h)}function o(h){return h===35&&i++<6?(e.consume(h),o):h===null||Nt(h)?(e.exit("atxHeadingSequence"),l(h)):t(h)}function l(h){return h===35?(e.enter("atxHeadingSequence"),f(h)):h===null||kn(h)?(e.exit("atxHeading"),n(h)):Zn(h)?ot(e,l,"whitespace")(h):(e.enter("atxHeadingText"),c(h))}function f(h){return h===35?(e.consume(h),f):(e.exit("atxHeadingSequence"),l(h))}function c(h){return h===null||h===35||Nt(h)?(e.exit("atxHeadingText"),l(h)):(e.consume(h),c)}}const efe=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],CM=["pre","script","style","textarea"],nfe={concrete:!0,name:"htmlFlow",resolveTo:rfe,tokenize:afe},tfe={partial:!0,tokenize:sfe},ife={partial:!0,tokenize:ofe};function rfe(e){let n=e.length;for(;n--&&!(e[n][0]==="enter"&&e[n][1].type==="htmlFlow"););return n>1&&e[n-2][1].type==="linePrefix"&&(e[n][1].start=e[n-2][1].start,e[n+1][1].start=e[n-2][1].start,e.splice(n-2,2)),e}function afe(e,n,t){const i=this;let r,a,o,l,f;return c;function c(L){return h(L)}function h(L){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(L),d}function d(L){return L===33?(e.consume(L),p):L===47?(e.consume(L),a=!0,w):L===63?(e.consume(L),r=3,i.interrupt?n:D):lr(L)?(e.consume(L),o=String.fromCharCode(L),k):t(L)}function p(L){return L===45?(e.consume(L),r=2,v):L===91?(e.consume(L),r=5,l=0,b):lr(L)?(e.consume(L),r=4,i.interrupt?n:D):t(L)}function v(L){return L===45?(e.consume(L),i.interrupt?n:D):t(L)}function b(L){const X="CDATA[";return L===X.charCodeAt(l++)?(e.consume(L),l===X.length?i.interrupt?n:F:b):t(L)}function w(L){return lr(L)?(e.consume(L),o=String.fromCharCode(L),k):t(L)}function k(L){if(L===null||L===47||L===62||Nt(L)){const X=L===47,ee=o.toLowerCase();return!X&&!a&&CM.includes(ee)?(r=1,i.interrupt?n(L):F(L)):efe.includes(o.toLowerCase())?(r=6,X?(e.consume(L),_):i.interrupt?n(L):F(L)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?t(L):a?C(L):x(L))}return L===45||Ji(L)?(e.consume(L),o+=String.fromCharCode(L),k):t(L)}function _(L){return L===62?(e.consume(L),i.interrupt?n:F):t(L)}function C(L){return Zn(L)?(e.consume(L),C):P(L)}function x(L){return L===47?(e.consume(L),P):L===58||L===95||lr(L)?(e.consume(L),E):Zn(L)?(e.consume(L),x):P(L)}function E(L){return L===45||L===46||L===58||L===95||Ji(L)?(e.consume(L),E):O(L)}function O(L){return L===61?(e.consume(L),j):Zn(L)?(e.consume(L),O):x(L)}function j(L){return L===null||L===60||L===61||L===62||L===96?t(L):L===34||L===39?(e.consume(L),f=L,M):Zn(L)?(e.consume(L),j):N(L)}function M(L){return L===f?(e.consume(L),f=null,H):L===null||kn(L)?t(L):(e.consume(L),M)}function N(L){return L===null||L===34||L===39||L===47||L===60||L===61||L===62||L===96||Nt(L)?O(L):(e.consume(L),N)}function H(L){return L===47||L===62||Zn(L)?x(L):t(L)}function P(L){return L===62?(e.consume(L),z):t(L)}function z(L){return L===null||kn(L)?F(L):Zn(L)?(e.consume(L),z):t(L)}function F(L){return L===45&&r===2?(e.consume(L),R):L===60&&r===1?(e.consume(L),I):L===62&&r===4?(e.consume(L),W):L===63&&r===3?(e.consume(L),D):L===93&&r===5?(e.consume(L),Y):kn(L)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(tfe,V,G)(L)):L===null||kn(L)?(e.exit("htmlFlowData"),G(L)):(e.consume(L),F)}function G(L){return e.check(ife,U,V)(L)}function U(L){return e.enter("lineEnding"),e.consume(L),e.exit("lineEnding"),$}function $(L){return L===null||kn(L)?G(L):(e.enter("htmlFlowData"),F(L))}function R(L){return L===45?(e.consume(L),D):F(L)}function I(L){return L===47?(e.consume(L),o="",q):F(L)}function q(L){if(L===62){const X=o.toLowerCase();return CM.includes(X)?(e.consume(L),W):F(L)}return lr(L)&&o.length<8?(e.consume(L),o+=String.fromCharCode(L),q):F(L)}function Y(L){return L===93?(e.consume(L),D):F(L)}function D(L){return L===62?(e.consume(L),W):L===45&&r===2?(e.consume(L),D):F(L)}function W(L){return L===null||kn(L)?(e.exit("htmlFlowData"),V(L)):(e.consume(L),W)}function V(L){return e.exit("htmlFlow"),n(L)}}function ofe(e,n,t){const i=this;return r;function r(o){return kn(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),a):t(o)}function a(o){return i.parser.lazy[i.now().line]?t(o):n(o)}}function sfe(e,n,t){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(up,n,t)}}const lfe={name:"htmlText",tokenize:ufe};function ufe(e,n,t){const i=this;let r,a,o;return l;function l(D){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(D),f}function f(D){return D===33?(e.consume(D),c):D===47?(e.consume(D),O):D===63?(e.consume(D),x):lr(D)?(e.consume(D),N):t(D)}function c(D){return D===45?(e.consume(D),h):D===91?(e.consume(D),a=0,b):lr(D)?(e.consume(D),C):t(D)}function h(D){return D===45?(e.consume(D),v):t(D)}function d(D){return D===null?t(D):D===45?(e.consume(D),p):kn(D)?(o=d,I(D)):(e.consume(D),d)}function p(D){return D===45?(e.consume(D),v):d(D)}function v(D){return D===62?R(D):D===45?p(D):d(D)}function b(D){const W="CDATA[";return D===W.charCodeAt(a++)?(e.consume(D),a===W.length?w:b):t(D)}function w(D){return D===null?t(D):D===93?(e.consume(D),k):kn(D)?(o=w,I(D)):(e.consume(D),w)}function k(D){return D===93?(e.consume(D),_):w(D)}function _(D){return D===62?R(D):D===93?(e.consume(D),_):w(D)}function C(D){return D===null||D===62?R(D):kn(D)?(o=C,I(D)):(e.consume(D),C)}function x(D){return D===null?t(D):D===63?(e.consume(D),E):kn(D)?(o=x,I(D)):(e.consume(D),x)}function E(D){return D===62?R(D):x(D)}function O(D){return lr(D)?(e.consume(D),j):t(D)}function j(D){return D===45||Ji(D)?(e.consume(D),j):M(D)}function M(D){return kn(D)?(o=M,I(D)):Zn(D)?(e.consume(D),M):R(D)}function N(D){return D===45||Ji(D)?(e.consume(D),N):D===47||D===62||Nt(D)?H(D):t(D)}function H(D){return D===47?(e.consume(D),R):D===58||D===95||lr(D)?(e.consume(D),P):kn(D)?(o=H,I(D)):Zn(D)?(e.consume(D),H):R(D)}function P(D){return D===45||D===46||D===58||D===95||Ji(D)?(e.consume(D),P):z(D)}function z(D){return D===61?(e.consume(D),F):kn(D)?(o=z,I(D)):Zn(D)?(e.consume(D),z):H(D)}function F(D){return D===null||D===60||D===61||D===62||D===96?t(D):D===34||D===39?(e.consume(D),r=D,G):kn(D)?(o=F,I(D)):Zn(D)?(e.consume(D),F):(e.consume(D),U)}function G(D){return D===r?(e.consume(D),r=void 0,$):D===null?t(D):kn(D)?(o=G,I(D)):(e.consume(D),G)}function U(D){return D===null||D===34||D===39||D===60||D===61||D===96?t(D):D===47||D===62||Nt(D)?H(D):(e.consume(D),U)}function $(D){return D===47||D===62||Nt(D)?H(D):t(D)}function R(D){return D===62?(e.consume(D),e.exit("htmlTextData"),e.exit("htmlText"),n):t(D)}function I(D){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(D),e.exit("lineEnding"),q}function q(D){return Zn(D)?ot(e,Y,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(D):Y(D)}function Y(D){return e.enter("htmlTextData"),o(D)}}const k9={name:"labelEnd",resolveAll:hfe,resolveTo:mfe,tokenize:pfe},ffe={tokenize:vfe},cfe={tokenize:gfe},dfe={tokenize:yfe};function hfe(e){let n=-1;const t=[];for(;++n =3&&(c===null||kn(c))?(e.exit("thematicBreak"),n(c)):t(c)}function f(c){return c===r?(e.consume(c),i++,f):(e.exit("thematicBreakSequence"),Zn(c)?ot(e,l,"whitespace")(c):l(c))}}const br={continuation:{tokenize:jfe},exit:Tfe,name:"list",tokenize:Ofe},Cfe={partial:!0,tokenize:Mfe},Afe={partial:!0,tokenize:Efe};function Ofe(e,n,t){const i=this,r=i.events[i.events.length-1];let a=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return l;function l(v){const b=i.containerState.type||(v===42||v===43||v===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!i.containerState.marker||v===i.containerState.marker:XS(v)){if(i.containerState.type||(i.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),v===42||v===45?e.check(_g,t,c)(v):c(v);if(!i.interrupt||v===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),f(v)}return t(v)}function f(v){return XS(v)&&++o<10?(e.consume(v),f):(!i.interrupt||o<2)&&(i.containerState.marker?v===i.containerState.marker:v===41||v===46)?(e.exit("listItemValue"),c(v)):t(v)}function c(v){return e.enter("listItemMarker"),e.consume(v),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||v,e.check(up,i.interrupt?t:h,e.attempt(Cfe,p,d))}function h(v){return i.containerState.initialBlankLine=!0,a++,p(v)}function d(v){return Zn(v)?(e.enter("listItemPrefixWhitespace"),e.consume(v),e.exit("listItemPrefixWhitespace"),p):t(v)}function p(v){return i.containerState.size=a+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,n(v)}}function jfe(e,n,t){const i=this;return i.containerState._closeFlow=void 0,e.check(up,r,a);function r(l){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,ot(e,n,"listItemIndent",i.containerState.size+1)(l)}function a(l){return i.containerState.furtherBlankLines||!Zn(l)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(l)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(Afe,n,o)(l))}function o(l){return i.containerState._closeFlow=!0,i.interrupt=void 0,ot(e,e.attempt(br,n,t),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l)}}function Efe(e,n,t){const i=this;return ot(e,r,"listItemIndent",i.containerState.size+1);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?n(a):t(a)}}function Tfe(e){e.exit(this.containerState.type)}function Mfe(e,n,t){const i=this;return ot(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(a){const o=i.events[i.events.length-1];return!Zn(a)&&o&&o[1].type==="listItemPrefixWhitespace"?n(a):t(a)}}const AM={name:"setextUnderline",resolveTo:Dfe,tokenize:Rfe};function Dfe(e,n){let t=e.length,i,r,a;for(;t--;)if(e[t][0]==="enter"){if(e[t][1].type==="content"){i=t;break}e[t][1].type==="paragraph"&&(r=t)}else e[t][1].type==="content"&&e.splice(t,1),!a&&e[t][1].type==="definition"&&(a=t);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",a?(e.splice(r,0,["enter",o,n]),e.splice(a+1,0,["exit",e[i][1],n]),e[i][1].end={...e[a][1].end}):e[i][1]=o,e.push(["exit",o,n]),e}function Rfe(e,n,t){const i=this;let r;return a;function a(c){let h=i.events.length,d;for(;h--;)if(i.events[h][1].type!=="lineEnding"&&i.events[h][1].type!=="linePrefix"&&i.events[h][1].type!=="content"){d=i.events[h][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||d)?(e.enter("setextHeadingLine"),r=c,o(c)):t(c)}function o(c){return e.enter("setextHeadingLineSequence"),l(c)}function l(c){return c===r?(e.consume(c),l):(e.exit("setextHeadingLineSequence"),Zn(c)?ot(e,f,"lineSuffix")(c):f(c))}function f(c){return c===null||kn(c)?(e.exit("setextHeadingLine"),n(c)):t(c)}}const Pfe={tokenize:Nfe};function Nfe(e){const n=this,t=e.attempt(up,i,e.attempt(this.parser.constructs.flowInitial,r,ot(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Bue,r)),"linePrefix")));return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),n.currentConstruct=void 0,t}function r(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n.currentConstruct=void 0,t}}const $fe={resolveAll:Tq()},zfe=Eq("string"),Lfe=Eq("text");function Eq(e){return{resolveAll:Tq(e==="text"?Ife:void 0),tokenize:n};function n(t){const i=this,r=this.parser.constructs[e],a=t.attempt(r,o,l);return o;function o(h){return c(h)?a(h):l(h)}function l(h){if(h===null){t.consume(h);return}return t.enter("data"),t.consume(h),f}function f(h){return c(h)?(t.exit("data"),a(h)):(t.consume(h),f)}function c(h){if(h===null)return!0;const d=r[h];let p=-1;if(d)for(;++p -1){const l=o[0];typeof l=="string"?o[0]=l.slice(i):o.shift()}a>0&&o.push(e[r].slice(0,a))}return o}function Qfe(e,n){let t=-1;const i=[];let r;for(;++t 0){const tn=Ye.tokenStack[Ye.tokenStack.length-1];(tn[1]||jM).call(Ye,void 0,tn[0])}for(he.position={start:Hs(ie.length>0?ie[0][1].start:{line:1,column:1,offset:0}),end:Hs(ie.length>0?ie[ie.length-2][1].end:{line:1,column:1,offset:0})},Se=-1;++Se 0&&(i.className=["language-"+r[0]]);let a={type:"element",tagName:"code",properties:i,children:[{type:"text",value:t}]};return n.meta&&(a.data={meta:n.meta}),e.patch(n,a),a=e.applyData(n,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(n,a),a}function dce(e,n){const t={type:"element",tagName:"del",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function hce(e,n){const t={type:"element",tagName:"em",properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function mce(e,n){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(n.identifier).toUpperCase(),r=Xc(i.toLowerCase()),a=e.footnoteOrder.indexOf(i);let o,l=e.footnoteCounts.get(i);l===void 0?(l=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=a+1,l+=1,e.footnoteCounts.set(i,l);const f={type:"element",tagName:"a",properties:{href:"#"+t+"fn-"+r,id:t+"fnref-"+r+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(n,f);const c={type:"element",tagName:"sup",properties:{},children:[f]};return e.patch(n,c),e.applyData(n,c)}function pce(e,n){const t={type:"element",tagName:"h"+n.depth,properties:{},children:e.all(n)};return e.patch(n,t),e.applyData(n,t)}function vce(e,n){if(e.options.allowDangerousHtml){const t={type:"raw",value:n.value};return e.patch(n,t),e.applyData(n,t)}}function Rq(e,n){const t=n.referenceType;let i="]";if(t==="collapsed"?i+="[]":t==="full"&&(i+="["+(n.label||n.identifier)+"]"),n.type==="imageReference")return[{type:"text",value:"!["+n.alt+i}];const r=e.all(n),a=r[0];a&&a.type==="text"?a.value="["+a.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function gce(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return Rq(e,n);const r={src:Xc(i.url||""),alt:n.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"img",properties:r,children:[]};return e.patch(n,a),e.applyData(n,a)}function yce(e,n){const t={src:Xc(n.url)};n.alt!==null&&n.alt!==void 0&&(t.alt=n.alt),n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"img",properties:t,children:[]};return e.patch(n,i),e.applyData(n,i)}function bce(e,n){const t={type:"text",value:n.value.replace(/\r?\n|\r/g," ")};e.patch(n,t);const i={type:"element",tagName:"code",properties:{},children:[t]};return e.patch(n,i),e.applyData(n,i)}function wce(e,n){const t=String(n.identifier).toUpperCase(),i=e.definitionById.get(t);if(!i)return Rq(e,n);const r={href:Xc(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const a={type:"element",tagName:"a",properties:r,children:e.all(n)};return e.patch(n,a),e.applyData(n,a)}function kce(e,n){const t={href:Xc(n.url)};n.title!==null&&n.title!==void 0&&(t.title=n.title);const i={type:"element",tagName:"a",properties:t,children:e.all(n)};return e.patch(n,i),e.applyData(n,i)}function _ce(e,n,t){const i=e.all(n),r=t?xce(t):Pq(n),a={},o=[];if(typeof n.checked=="boolean"){const h=i[0];let d;h&&h.type==="element"&&h.tagName==="p"?d=h:(d={type:"element",tagName:"p",properties:{},children:[]},i.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:n.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let l=-1;for(;++l 1}function Sce(e,n){const t={},i=e.all(n);let r=-1;for(typeof n.start=="number"&&n.start!==1&&(t.start=n.start);++r 0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(t,!0)},l=p9(n.children[1]),f=hq(n.children[n.children.length-1]);l&&f&&(o.position={start:l,end:f}),r.push(o)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(n,a),e.applyData(n,a)}function Ece(e,n,t){const i=t?t.children:void 0,a=(i?i.indexOf(n):1)===0?"th":"td",o=t&&t.type==="table"?t.align:void 0,l=o?o.length:n.children.length;let f=-1;const c=[];for(;++f 0,!0),i[0]),r=i.index+i[0].length,i=t.exec(n);return a.push(MM(n.slice(r),r>0,!1)),a.join("")}function MM(e,n,t){let i=0,r=e.length;if(n){let a=e.codePointAt(i);for(;a===EM||a===TM;)i++,a=e.codePointAt(i)}if(t){let a=e.codePointAt(r-1);for(;a===EM||a===TM;)r--,a=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function Dce(e,n){const t={type:"text",value:Mce(String(n.value))};return e.patch(n,t),e.applyData(n,t)}function Rce(e,n){const t={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(n,t),e.applyData(n,t)}const Pce={blockquote:uce,break:fce,code:cce,delete:dce,emphasis:hce,footnoteReference:mce,heading:pce,html:vce,imageReference:gce,image:yce,inlineCode:bce,linkReference:wce,link:kce,listItem:_ce,list:Sce,paragraph:Cce,root:Ace,strong:Oce,table:jce,tableCell:Tce,tableRow:Ece,text:Dce,thematicBreak:Rce,toml:Hv,yaml:Hv,definition:Hv,footnoteDefinition:Hv};function Hv(){}const Nq=-1,v0=0,Nh=1,Yg=2,_9=3,x9=4,S9=5,C9=6,$q=7,zq=8,Nce=typeof self=="object"?self:globalThis,DM=(e,n)=>{switch(e){case"Function":case"SharedWorker":case"Worker":case"eval":case"setInterval":case"setTimeout":throw new TypeError("unable to deserialize "+e)}return new Nce[e](n)},$ce=(e,n)=>{const t=(r,a)=>(e.set(a,r),r),i=r=>{if(e.has(r))return e.get(r);const[a,o]=n[r];switch(a){case v0:case Nq:return t(o,r);case Nh:{const l=t([],r);for(const f of o)l.push(i(f));return l}case Yg:{const l=t({},r);for(const[f,c]of o)l[i(f)]=i(c);return l}case _9:return t(new Date(o),r);case x9:{const{source:l,flags:f}=o;return t(new RegExp(l,f),r)}case S9:{const l=t(new Map,r);for(const[f,c]of o)l.set(i(f),i(c));return l}case C9:{const l=t(new Set,r);for(const f of o)l.add(i(f));return l}case $q:{const{name:l,message:f}=o;return t(DM(l,f),r)}case zq:return t(BigInt(o),r);case"BigInt":return t(Object(BigInt(o)),r);case"ArrayBuffer":return t(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:l}=new Uint8Array(o);return t(new DataView(l),o)}}return t(DM(a,o),r)};return i},RM=e=>$ce(new Map,e)(0),Ef="",{toString:zce}={},{keys:Lce}=Object,ah=e=>{const n=typeof e;if(n!=="object"||!e)return[v0,n];const t=zce.call(e).slice(8,-1);switch(t){case"Array":return[Nh,Ef];case"Object":return[Yg,Ef];case"Date":return[_9,Ef];case"RegExp":return[x9,Ef];case"Map":return[S9,Ef];case"Set":return[C9,Ef];case"DataView":return[Nh,t]}return t.includes("Array")?[Nh,t]:t.includes("Error")?[$q,t]:[Yg,t]},Uv=([e,n])=>e===v0&&(n==="function"||n==="symbol"),Ice=(e,n,t,i)=>{const r=(o,l)=>{const f=i.push(o)-1;return t.set(l,f),f},a=o=>{if(t.has(o))return t.get(o);let[l,f]=ah(o);switch(l){case v0:{let h=o;switch(f){case"bigint":l=zq,h=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+f);h=null;break;case"undefined":return r([Nq],o)}return r([l,h],o)}case Nh:{if(f){let p=o;return f==="DataView"?p=new Uint8Array(o.buffer):f==="ArrayBuffer"&&(p=new Uint8Array(o)),r([f,[...p]],o)}const h=[],d=r([l,h],o);for(const p of o)h.push(a(p));return d}case Yg:{if(f)switch(f){case"BigInt":return r([f,o.toString()],o);case"Boolean":case"Number":case"String":return r([f,o.valueOf()],o)}if(n&&"toJSON"in o)return a(o.toJSON());const h=[],d=r([l,h],o);for(const p of Lce(o))(e||!Uv(ah(o[p])))&&h.push([a(p),a(o[p])]);return d}case _9:return r([l,o.toISOString()],o);case x9:{const{source:h,flags:d}=o;return r([l,{source:h,flags:d}],o)}case S9:{const h=[],d=r([l,h],o);for(const[p,v]of o)(e||!(Uv(ah(p))||Uv(ah(v))))&&h.push([a(p),a(v)]);return d}case C9:{const h=[],d=r([l,h],o);for(const p of o)(e||!Uv(ah(p)))&&h.push(a(p));return d}}const{message:c}=o;return r([l,{name:f,message:c}],o)};return a},PM=(e,{json:n,lossy:t}={})=>{const i=[];return Ice(!(n||t),!!n,new Map,i)(e),i},Kg=typeof structuredClone=="function"?(e,n)=>n&&("json"in n||"lossy"in n)?RM(PM(e,n)):structuredClone(e):(e,n)=>RM(PM(e,n));function Bce(e,n){const t=[{type:"text",value:"↩"}];return n>1&&t.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(n)}]}),t}function Fce(e,n){return"Back to reference "+(e+1)+(n>1?"-"+n:"")}function qce(e){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",t=e.options.footnoteBackContent||Bce,i=e.options.footnoteBackLabel||Fce,r=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[];let f=-1;for(;++f 0&&b.push({type:"text",value:" "});let C=typeof t=="string"?t:t(f,v);typeof C=="string"&&(C={type:"text",value:C}),b.push({type:"element",tagName:"a",properties:{href:"#"+n+"fnref-"+p+(v>1?"-"+v:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(f,v),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const k=h[h.length-1];if(k&&k.type==="element"&&k.tagName==="p"){const C=k.children[k.children.length-1];C&&C.type==="text"?C.value+=" ":k.children.push({type:"text",value:" "}),k.children.push(...b)}else h.push(...b);const _={type:"element",tagName:"li",properties:{id:n+"fn-"+p},children:e.wrap(h,!0)};e.patch(c,_),l.push(_)}if(l.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Kg(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:` +`}]}}const g0=(function(e){if(e==null)return Wce;if(typeof e=="function")return y0(e);if(typeof e=="object")return Array.isArray(e)?Hce(e):Uce(e);if(typeof e=="string")return Vce(e);throw new Error("Expected function, string, or object as test")});function Hce(e){const n=[];let t=-1;for(;++t ":""))+")"})}return p;function p(){let v=Lq,b,w,k;if((!n||a(f,c,h[h.length-1]||void 0))&&(v=Xce(t(f,h)),v[0]===QS))return v;if("children"in f&&f.children){const _=f;if(_.children&&v[0]!==Kce)for(w=(i?_.children.length:-1)+o,k=h.concat(_);w>-1&&w<_.children.length;){const C=_.children[w];if(b=l(C,w,k)(),b[0]===QS)return b;w=typeof b[1]=="number"?b[1]:w+o}}return v}}}function Xce(e){return Array.isArray(e)?e:typeof e=="number"?[Yce,e]:e==null?Lq:[e]}function A9(e,n,t,i){let r,a,o;typeof n=="function"&&typeof t!="function"?(a=void 0,o=n,r=t):(a=n,o=t,r=i),Iq(e,a,l,r);function l(f,c){const h=c[c.length-1],d=h?h.children.indexOf(f):void 0;return o(f,d,h)}}const JS={}.hasOwnProperty,Zce={};function Qce(e,n){const t=n||Zce,i=new Map,r=new Map,a=new Map,o={...Pce,...t.handlers},l={all:c,applyData:ede,definitionById:i,footnoteById:r,footnoteCounts:a,footnoteOrder:[],handlers:o,one:f,options:t,patch:Jce,wrap:tde};return A9(e,function(h){if(h.type==="definition"||h.type==="footnoteDefinition"){const d=h.type==="definition"?i:r,p=String(h.identifier).toUpperCase();d.has(p)||d.set(p,h)}}),l;function f(h,d){const p=h.type,v=l.handlers[p];if(JS.call(l.handlers,p)&&v)return v(l,h,d);if(l.options.passThrough&&l.options.passThrough.includes(p)){if("children"in h){const{children:w,...k}=h,_=Kg(k);return _.children=l.all(h),_}return Kg(h)}return(l.options.unknownHandler||nde)(l,h,d)}function c(h){const d=[];if("children"in h){const p=h.children;let v=-1;for(;++v 0&&t.push({type:"text",value:` +`}),t}function NM(e){let n=0,t=e.charCodeAt(n);for(;t===9||t===32;)n++,t=e.charCodeAt(n);return e.slice(n)}function $M(e,n){const t=Qce(e,n),i=t.one(e,void 0),r=qce(t),a=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&a.children.push({type:"text",value:` +`},r),a}function ide(e,n){return e&&"run"in e?async function(t,i){const r=$M(t,{file:i,...n});await e.run(r,i)}:function(t,i){return $M(t,{file:i,...e||n})}}function zM(e){if(e)throw e}var Yk,LM;function rde(){if(LM)return Yk;LM=1;var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,t=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(c){return typeof Array.isArray=="function"?Array.isArray(c):n.call(c)==="[object Array]"},a=function(c){if(!c||n.call(c)!=="[object Object]")return!1;var h=e.call(c,"constructor"),d=c.constructor&&c.constructor.prototype&&e.call(c.constructor.prototype,"isPrototypeOf");if(c.constructor&&!h&&!d)return!1;var p;for(p in c);return typeof p>"u"||e.call(c,p)},o=function(c,h){t&&h.name==="__proto__"?t(c,h.name,{enumerable:!0,configurable:!0,value:h.newValue,writable:!0}):c[h.name]=h.newValue},l=function(c,h){if(h==="__proto__")if(e.call(c,h)){if(i)return i(c,h).value}else return;return c[h]};return Yk=function f(){var c,h,d,p,v,b,w=arguments[0],k=1,_=arguments.length,C=!1;for(typeof w=="boolean"&&(C=w,w=arguments[1]||{},k=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});k<_;++k)if(c=arguments[k],c!=null)for(h in c)d=l(w,h),p=l(c,h),w!==p&&(C&&p&&(a(p)||(v=r(p)))?(v?(v=!1,b=d&&r(d)?d:[]):b=d&&a(d)?d:{},o(w,{name:h,newValue:f(C,b,p)})):typeof p<"u"&&o(w,{name:h,newValue:p}));return w},Yk}var ade=rde();const Kk=mt(ade);function e4(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ode(){const e=[],n={run:t,use:i};return n;function t(...r){let a=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);l(null,...r);function l(f,...c){const h=e[++a];let d=-1;if(f){o(f);return}for(;++d o.length;let f;l&&o.push(r);try{f=e.apply(this,o)}catch(c){const h=c;if(l&&t)throw h;return r(h)}l||(f&&f.then&&typeof f.then=="function"?f.then(a,r):f instanceof Error?r(f):a(f))}function r(o,...l){t||(t=!0,n(o,...l))}function a(o){r(null,o)}}const to={basename:lde,dirname:ude,extname:fde,join:cde,sep:"/"};function lde(e,n){if(n!==void 0&&typeof n!="string")throw new TypeError('"ext" argument must be a string');fp(e);let t=0,i=-1,r=e.length,a;if(n===void 0||n.length===0||n.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else i<0&&(a=!0,i=r+1);return i<0?"":e.slice(t,i)}if(n===e)return"";let o=-1,l=n.length-1;for(;r--;)if(e.codePointAt(r)===47){if(a){t=r+1;break}}else o<0&&(a=!0,o=r+1),l>-1&&(e.codePointAt(r)===n.codePointAt(l--)?l<0&&(i=r):(l=-1,i=o));return t===i?i=o:i<0&&(i=e.length),e.slice(t,i)}function ude(e){if(fp(e),e.length===0)return".";let n=-1,t=e.length,i;for(;--t;)if(e.codePointAt(t)===47){if(i){n=t;break}}else i||(i=!0);return n<0?e.codePointAt(0)===47?"/":".":n===1&&e.codePointAt(0)===47?"//":e.slice(0,n)}function fde(e){fp(e);let n=e.length,t=-1,i=0,r=-1,a=0,o;for(;n--;){const l=e.codePointAt(n);if(l===47){if(o){i=n+1;break}continue}t<0&&(o=!0,t=n+1),l===46?r<0?r=n:a!==1&&(a=1):r>-1&&(a=-1)}return r<0||t<0||a===0||a===1&&r===t-1&&r===i+1?"":e.slice(r,t)}function cde(...e){let n=-1,t;for(;++n 0&&e.codePointAt(e.length-1)===47&&(t+="/"),n?"/"+t:t}function hde(e,n){let t="",i=0,r=-1,a=0,o=-1,l,f;for(;++o<=e.length;){if(o 2){if(f=t.lastIndexOf("/"),f!==t.length-1){f<0?(t="",i=0):(t=t.slice(0,f),i=t.length-1-t.lastIndexOf("/")),r=o,a=0;continue}}else if(t.length>0){t="",i=0,r=o,a=0;continue}}n&&(t=t.length>0?t+"/..":"..",i=2)}else t.length>0?t+="/"+e.slice(r+1,o):t=e.slice(r+1,o),i=o-r-1;r=o,a=0}else l===46&&a>-1?a++:a=-1}return t}function fp(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const mde={cwd:pde};function pde(){return"/"}function n4(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function vde(e){if(typeof e=="string")e=new URL(e);else if(!n4(e)){const n=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw n.code="ERR_INVALID_ARG_TYPE",n}if(e.protocol!=="file:"){const n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return gde(e)}function gde(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const n=e.pathname;let t=-1;for(;++t 0){let[v,...b]=h;const w=i[p][1];e4(w)&&e4(v)&&(v=Kk(!0,w,v)),i[p]=[c,v,...b]}}}}const kde=new O9().freeze();function Jk(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function e_(e,n){if(typeof n!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function n_(e,n){if(n)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function BM(e){if(!e4(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function FM(e,n,t){if(!t)throw new Error("`"+e+"` finished async. Use `"+n+"` instead")}function Vv(e){return _de(e)?e:new Bq(e)}function _de(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function xde(e){return typeof e=="string"||Sde(e)}function Sde(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Cde="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qM=[],HM={allowDangerousHtml:!0},Ade=/^(https?|ircs?|mailto|xmpp)$/i,Ode=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function jde(e){const n=Ede(e),t=Tde(e);return Mde(n.runSync(n.parse(t),t),e)}function Ede(e){const n=e.rehypePlugins||qM,t=e.remarkPlugins||qM,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...HM}:HM;return kde().use(lce).use(t).use(ide,i).use(n)}function Tde(e){const n=e.children||"",t=new Bq;return typeof n=="string"&&(t.value=n),t}function Mde(e,n){const t=n.allowedElements,i=n.allowElement,r=n.components,a=n.disallowedElements,o=n.skipHtml,l=n.unwrapDisallowed,f=n.urlTransform||Dde;for(const h of Ode)Object.hasOwn(n,h.from)&&(""+h.from+(h.to?"use `"+h.to+"` instead":"remove it")+Cde+h.id,void 0);return A9(e,c),Vle(e,{Fragment:y.Fragment,components:r,ignoreInvalidStyle:!0,jsx:y.jsx,jsxs:y.jsxs,passKeys:!0,passNode:!0});function c(h,d,p){if(h.type==="raw"&&p&&typeof d=="number")return o?p.children.splice(d,1):p.children[d]={type:"text",value:h.value},d;if(h.type==="element"){let v;for(v in Vk)if(Object.hasOwn(Vk,v)&&Object.hasOwn(h.properties,v)){const b=h.properties[v],w=Vk[v];(w===null||w.includes(h.tagName))&&(h.properties[v]=f(String(b||""),v,h))}}if(h.type==="element"){let v=t?!t.includes(h.tagName):a?a.includes(h.tagName):!1;if(!v&&i&&typeof d=="number"&&(v=!i(h,d,p)),v&&p&&typeof d=="number")return l&&h.children?p.children.splice(d,1,...h.children):p.children.splice(d,1),d}}}function Dde(e){const n=e.indexOf(":"),t=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return n===-1||r!==-1&&n>r||t!==-1&&n>t||i!==-1&&n>i||Ade.test(e.slice(0,n))?e:""}function UM(e,n){const t=String(e);if(typeof n!="string")throw new TypeError("Expected character");let i=0,r=t.indexOf(n);for(;r!==-1;)i++,r=t.indexOf(n,r+n.length);return i}function Rde(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Pde(e,n,t){const r=g0((t||{}).ignore||[]),a=Nde(n);let o=-1;for(;++o 0?{type:"text",value:j}:void 0),j===!1?p.lastIndex=E+1:(b!==E&&C.push({type:"text",value:c.value.slice(b,E)}),Array.isArray(j)?C.push(...j):j&&C.push(j),b=E+x[0].length,_=!0),!p.global)break;x=p.exec(c.value)}return _?(b ?\]}]+$/.exec(e);if(!n)return[e,void 0];e=e.slice(0,n.index);let t=n[0],i=t.indexOf(")");const r=UM(e,"(");let a=UM(e,")");for(;i!==-1&&r>a;)e+=t.slice(0,i+1),t=t.slice(i+1),i=t.indexOf(")"),a++;return[e,t]}function Fq(e,n){const t=e.input.charCodeAt(e.index-1);return(e.index===0||xu(t)||m0(t))&&(!n||t!==47)}qq.peek=rhe;function Xde(){this.buffer()}function Zde(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Qde(){this.buffer()}function Jde(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function ehe(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qa(this.sliceSerialize(e)).toLowerCase(),t.label=n}function nhe(e){this.exit(e)}function the(e){const n=this.resume(),t=this.stack[this.stack.length-1];t.type,t.identifier=qa(this.sliceSerialize(e)).toLowerCase(),t.label=n}function ihe(e){this.exit(e)}function rhe(){return"["}function qq(e,n,t,i){const r=t.createTracker(i);let a=r.move("[^");const o=t.enter("footnoteReference"),l=t.enter("reference");return a+=r.move(t.safe(t.associationId(e),{after:"]",before:a})),l(),o(),a+=r.move("]"),a}function ahe(){return{enter:{gfmFootnoteCallString:Xde,gfmFootnoteCall:Zde,gfmFootnoteDefinitionLabelString:Qde,gfmFootnoteDefinition:Jde},exit:{gfmFootnoteCallString:ehe,gfmFootnoteCall:nhe,gfmFootnoteDefinitionLabelString:the,gfmFootnoteDefinition:ihe}}}function ohe(e){let n=!1;return e&&e.firstLineBlank&&(n=!0),{handlers:{footnoteDefinition:t,footnoteReference:qq},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function t(i,r,a,o){const l=a.createTracker(o);let f=l.move("[^");const c=a.enter("footnoteDefinition"),h=a.enter("label");return f+=l.move(a.safe(a.associationId(i),{before:f,after:"]"})),h(),f+=l.move("]:"),i.children&&i.children.length>0&&(l.shift(4),f+=l.move((n?` +`:" ")+a.indentLines(a.containerFlow(i,l.current()),n?Hq:she))),c(),f}}function she(e,n,t){return n===0?e:Hq(e,n,t)}function Hq(e,n,t){return(t?"":" ")+e}const lhe=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Uq.peek=hhe;function uhe(){return{canContainEols:["delete"],enter:{strikethrough:che},exit:{strikethrough:dhe}}}function fhe(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:lhe}],handlers:{delete:Uq}}}function che(e){this.enter({type:"delete",children:[]},e)}function dhe(e){this.exit(e)}function Uq(e,n,t,i){const r=t.createTracker(i),a=t.enter("strikethrough");let o=r.move("~~");return o+=t.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),a(),o}function hhe(){return"~"}function mhe(e){return e.length}function phe(e,n){const t=n||{},i=(t.align||[]).concat(),r=t.stringLength||mhe,a=[],o=[],l=[],f=[];let c=0,h=-1;for(;++h c&&(c=e[h].length);++_ f[_])&&(f[_]=x)}w.push(C)}o[h]=w,l[h]=k}let d=-1;if(typeof i=="object"&&"length"in i)for(;++d f[d]&&(f[d]=C),v[d]=C),p[d]=x}o.splice(1,0,p),l.splice(1,0,v),h=-1;const b=[];for(;++h "),a.shift(2);const o=t.indentLines(t.containerFlow(e,a.current()),yhe);return r(),o}function yhe(e,n,t){return">"+(t?"":" ")+e}function bhe(e,n){return WM(e,n.inConstruct,!0)&&!WM(e,n.notInConstruct,!1)}function WM(e,n,t){if(typeof n=="string"&&(n=[n]),!n||n.length===0)return t;let i=-1;for(;++i o&&(o=a):a=1,r=i+n.length,i=t.indexOf(n,r);return o}function khe(e,n){return!!(n.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function _he(e){const n=e.options.fence||"`";if(n!=="`"&&n!=="~")throw new Error("Cannot serialize code with `"+n+"` for `options.fence`, expected `` ` `` or `~`");return n}function xhe(e,n,t,i){const r=_he(t),a=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(khe(e,t)){const d=t.enter("codeIndented"),p=t.indentLines(a,She);return d(),p}const l=t.createTracker(i),f=r.repeat(Math.max(whe(a,r)+1,3)),c=t.enter("codeFenced");let h=l.move(f);if(e.lang){const d=t.enter(`codeFencedLang${o}`);h+=l.move(t.safe(e.lang,{before:h,after:" ",encode:["`"],...l.current()})),d()}if(e.lang&&e.meta){const d=t.enter(`codeFencedMeta${o}`);h+=l.move(" "),h+=l.move(t.safe(e.meta,{before:h,after:` +`,encode:["`"],...l.current()})),d()}return h+=l.move(` +`),a&&(h+=l.move(a+` +`)),h+=l.move(f),c(),h}function She(e,n,t){return(t?"":" ")+e}function j9(e){const n=e.options.quote||'"';if(n!=='"'&&n!=="'")throw new Error("Cannot serialize title with `"+n+"` for `options.quote`, expected `\"`, or `'`");return n}function Che(e,n,t,i){const r=j9(t),a=r==='"'?"Quote":"Apostrophe",o=t.enter("definition");let l=t.enter("label");const f=t.createTracker(i);let c=f.move("[");return c+=f.move(t.safe(t.associationId(e),{before:c,after:"]",...f.current()})),c+=f.move("]: "),l(),!e.url||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=f.move("<"),c+=f.move(t.safe(e.url,{before:c,after:">",...f.current()})),c+=f.move(">")):(l=t.enter("destinationRaw"),c+=f.move(t.safe(e.url,{before:c,after:e.title?" ":` +`,...f.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=f.move(" "+r),c+=f.move(t.safe(e.title,{before:c,after:r,...f.current()})),c+=f.move(r),l()),o(),c}function Ahe(e){const n=e.options.emphasis||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize emphasis with `"+n+"` for `options.emphasis`, expected `*`, or `_`");return n}function tm(e){return""+e.toString(16).toUpperCase()+";"}function Xg(e,n,t){const i=rc(e),r=rc(n);return i===void 0?r===void 0?t==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Vq.peek=Ohe;function Vq(e,n,t,i){const r=Ahe(t),a=t.enter("emphasis"),o=t.createTracker(i),l=o.move(r);let f=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const c=f.charCodeAt(0),h=Xg(i.before.charCodeAt(i.before.length-1),c,r);h.inside&&(f=tm(c)+f.slice(1));const d=f.charCodeAt(f.length-1),p=Xg(i.after.charCodeAt(0),d,r);p.inside&&(f=f.slice(0,-1)+tm(d));const v=o.move(r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+f+v}function Ohe(e,n,t){return t.options.emphasis||"*"}function jhe(e,n){let t=!1;return A9(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return t=!0,QS}),!!((!e.depth||e.depth<3)&&b9(e)&&(n.options.setext||t))}function Ehe(e,n,t,i){const r=Math.max(Math.min(6,e.depth||1),1),a=t.createTracker(i);if(jhe(e,t)){const h=t.enter("headingSetext"),d=t.enter("phrasing"),p=t.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return d(),h(),p+` +`+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` +`))+1))}const o="#".repeat(r),l=t.enter("headingAtx"),f=t.enter("phrasing");a.move(o+" ");let c=t.containerPhrasing(e,{before:"# ",after:` +`,...a.current()});return/^[\t ]/.test(c)&&(c=tm(c.charCodeAt(0))+c.slice(1)),c=c?o+" "+c:o,t.options.closeAtx&&(c+=" "+o),f(),l(),c}Wq.peek=The;function Wq(e){return e.value||""}function The(){return"<"}Gq.peek=Mhe;function Gq(e,n,t,i){const r=j9(t),a=r==='"'?"Quote":"Apostrophe",o=t.enter("image");let l=t.enter("label");const f=t.createTracker(i);let c=f.move("![");return c+=f.move(t.safe(e.alt,{before:c,after:"]",...f.current()})),c+=f.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=t.enter("destinationLiteral"),c+=f.move("<"),c+=f.move(t.safe(e.url,{before:c,after:">",...f.current()})),c+=f.move(">")):(l=t.enter("destinationRaw"),c+=f.move(t.safe(e.url,{before:c,after:e.title?" ":")",...f.current()}))),l(),e.title&&(l=t.enter(`title${a}`),c+=f.move(" "+r),c+=f.move(t.safe(e.title,{before:c,after:r,...f.current()})),c+=f.move(r),l()),c+=f.move(")"),o(),c}function Mhe(){return"!"}Yq.peek=Dhe;function Yq(e,n,t,i){const r=e.referenceType,a=t.enter("imageReference");let o=t.enter("label");const l=t.createTracker(i);let f=l.move("![");const c=t.safe(e.alt,{before:f,after:"]",...l.current()});f+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:f,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!c||c!==d?f+=l.move(d+"]"):r==="shortcut"?f=f.slice(0,-1):f+=l.move("]"),f}function Dhe(){return"!"}Kq.peek=Rhe;function Kq(e,n,t){let i=e.value||"",r="`",a=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++a \u007F]/.test(e.url))}Zq.peek=Phe;function Zq(e,n,t,i){const r=j9(t),a=r==='"'?"Quote":"Apostrophe",o=t.createTracker(i);let l,f;if(Xq(e,t)){const h=t.stack;t.stack=[],l=t.enter("autolink");let d=o.move("<");return d+=o.move(t.containerPhrasing(e,{before:d,after:">",...o.current()})),d+=o.move(">"),l(),t.stack=h,d}l=t.enter("link"),f=t.enter("label");let c=o.move("[");return c+=o.move(t.containerPhrasing(e,{before:c,after:"](",...o.current()})),c+=o.move("]("),f(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(f=t.enter("destinationLiteral"),c+=o.move("<"),c+=o.move(t.safe(e.url,{before:c,after:">",...o.current()})),c+=o.move(">")):(f=t.enter("destinationRaw"),c+=o.move(t.safe(e.url,{before:c,after:e.title?" ":")",...o.current()}))),f(),e.title&&(f=t.enter(`title${a}`),c+=o.move(" "+r),c+=o.move(t.safe(e.title,{before:c,after:r,...o.current()})),c+=o.move(r),f()),c+=o.move(")"),l(),c}function Phe(e,n,t){return Xq(e,t)?"<":"["}Qq.peek=Nhe;function Qq(e,n,t,i){const r=e.referenceType,a=t.enter("linkReference");let o=t.enter("label");const l=t.createTracker(i);let f=l.move("[");const c=t.containerPhrasing(e,{before:f,after:"]",...l.current()});f+=l.move(c+"]["),o();const h=t.stack;t.stack=[],o=t.enter("reference");const d=t.safe(t.associationId(e),{before:f,after:"]",...l.current()});return o(),t.stack=h,a(),r==="full"||!c||c!==d?f+=l.move(d+"]"):r==="shortcut"?f=f.slice(0,-1):f+=l.move("]"),f}function Nhe(){return"["}function E9(e){const n=e.options.bullet||"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bullet`, expected `*`, `+`, or `-`");return n}function $he(e){const n=E9(e),t=e.options.bulletOther;if(!t)return n==="*"?"-":"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(t===n)throw new Error("Expected `bullet` (`"+n+"`) and `bulletOther` (`"+t+"`) to be different");return t}function zhe(e){const n=e.options.bulletOrdered||".";if(n!=="."&&n!==")")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOrdered`, expected `.` or `)`");return n}function Jq(e){const n=e.options.rule||"*";if(n!=="*"&&n!=="-"&&n!=="_")throw new Error("Cannot serialize rules with `"+n+"` for `options.rule`, expected `*`, `-`, or `_`");return n}function Lhe(e,n,t,i){const r=t.enter("list"),a=t.bulletCurrent;let o=e.ordered?zhe(t):E9(t);const l=e.ordered?o==="."?")":".":$he(t);let f=n&&t.bulletLastUsed?o===t.bulletLastUsed:!1;if(!e.ordered){const h=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&h&&(!h.children||!h.children[0])&&t.stack[t.stack.length-1]==="list"&&t.stack[t.stack.length-2]==="listItem"&&t.stack[t.stack.length-3]==="list"&&t.stack[t.stack.length-4]==="listItem"&&t.indexStack[t.indexStack.length-1]===0&&t.indexStack[t.indexStack.length-2]===0&&t.indexStack[t.indexStack.length-3]===0&&(f=!0),Jq(t)===o&&h){let d=-1;for(;++d -1?n.start:1)+(t.options.incrementListMarker===!1?0:n.children.indexOf(e))+a);let o=a.length+1;(r==="tab"||r==="mixed"&&(n&&n.type==="list"&&n.spread||e.spread))&&(o=Math.ceil(o/4)*4);const l=t.createTracker(i);l.move(a+" ".repeat(o-a.length)),l.shift(o);const f=t.enter("listItem"),c=t.indentLines(t.containerFlow(e,l.current()),h);return f(),c;function h(d,p,v){return p?(v?"":" ".repeat(o))+d:(v?a:a+" ".repeat(o-a.length))+d}}function Fhe(e,n,t,i){const r=t.enter("paragraph"),a=t.enter("phrasing"),o=t.containerPhrasing(e,i);return a(),r(),o}const qhe=g0(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Hhe(e,n,t,i){return(e.children.some(function(o){return qhe(o)})?t.containerPhrasing:t.containerFlow).call(t,e,i)}function Uhe(e){const n=e.options.strong||"*";if(n!=="*"&&n!=="_")throw new Error("Cannot serialize strong with `"+n+"` for `options.strong`, expected `*`, or `_`");return n}eH.peek=Vhe;function eH(e,n,t,i){const r=Uhe(t),a=t.enter("strong"),o=t.createTracker(i),l=o.move(r+r);let f=o.move(t.containerPhrasing(e,{after:r,before:l,...o.current()}));const c=f.charCodeAt(0),h=Xg(i.before.charCodeAt(i.before.length-1),c,r);h.inside&&(f=tm(c)+f.slice(1));const d=f.charCodeAt(f.length-1),p=Xg(i.after.charCodeAt(0),d,r);p.inside&&(f=f.slice(0,-1)+tm(d));const v=o.move(r+r);return a(),t.attentionEncodeSurroundingInfo={after:p.outside,before:h.outside},l+f+v}function Vhe(e,n,t){return t.options.strong||"*"}function Whe(e,n,t,i){return t.safe(e.value,i)}function Ghe(e){const n=e.options.ruleRepetition||3;if(n<3)throw new Error("Cannot serialize rules with repetition `"+n+"` for `options.ruleRepetition`, expected `3` or more");return n}function Yhe(e,n,t){const i=(Jq(t)+(t.options.ruleSpaces?" ":"")).repeat(Ghe(t));return t.options.ruleSpaces?i.slice(0,-1):i}const nH={blockquote:ghe,break:GM,code:xhe,definition:Che,emphasis:Vq,hardBreak:GM,heading:Ehe,html:Wq,image:Gq,imageReference:Yq,inlineCode:Kq,link:Zq,linkReference:Qq,list:Lhe,listItem:Bhe,paragraph:Fhe,root:Hhe,strong:eH,text:Whe,thematicBreak:Yhe};function Khe(){return{enter:{table:Xhe,tableData:YM,tableHeader:YM,tableRow:Qhe},exit:{codeText:Jhe,table:Zhe,tableData:a_,tableHeader:a_,tableRow:a_}}}function Xhe(e){const n=e._align;this.enter({type:"table",align:n.map(function(t){return t==="none"?null:t}),children:[]},e),this.data.inTable=!0}function Zhe(e){this.exit(e),this.data.inTable=void 0}function Qhe(e){this.enter({type:"tableRow",children:[]},e)}function a_(e){this.exit(e)}function YM(e){this.enter({type:"tableCell",children:[]},e)}function Jhe(e){let n=this.resume();this.data.inTable&&(n=n.replace(/\\([\\|])/g,eme));const t=this.stack[this.stack.length-1];t.type,t.value=n,this.exit(e)}function eme(e,n){return n==="|"?n:e}function nme(e){const n=e||{},t=n.tableCellPadding,i=n.tablePipeAlign,r=n.stringLength,a=t?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:f,tableRow:l}};function o(v,b,w,k){return c(h(v,w,k),v.align)}function l(v,b,w,k){const _=d(v,w,k),C=c([_]);return C.slice(0,C.indexOf(` +`))}function f(v,b,w,k){const _=w.enter("tableCell"),C=w.enter("phrasing"),x=w.containerPhrasing(v,{...k,before:a,after:a});return C(),_(),x}function c(v,b){return phe(v,{align:b,alignDelimiters:i,padding:t,stringLength:r})}function h(v,b,w){const k=v.children;let _=-1;const C=[],x=b.enter("table");for(;++_ 0&&!t&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),t}const bme={tokenize:Ome,partial:!0};function wme(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:Sme,continuation:{tokenize:Cme},exit:Ame}},text:{91:{name:"gfmFootnoteCall",tokenize:xme},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:kme,resolveTo:_me}}}}function kme(e,n,t){const i=this;let r=i.events.length;const a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const f=i.events[r][1];if(f.type==="labelImage"){o=f;break}if(f.type==="gfmFootnoteCall"||f.type==="labelLink"||f.type==="label"||f.type==="image"||f.type==="link")break}return l;function l(f){if(!o||!o._balanced)return t(f);const c=qa(i.sliceSerialize({start:o.end,end:i.now()}));return c.codePointAt(0)!==94||!a.includes(c.slice(1))?t(f):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),n(f))}}function _me(e,n){let t=e.length;for(;t--;)if(e[t][1].type==="labelImage"&&e[t][0]==="enter"){e[t][1];break}e[t+1][1].type="data",e[t+3][1].type="gfmFootnoteCallLabelMarker";const i={type:"gfmFootnoteCall",start:Object.assign({},e[t+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[t+3][1].end),end:Object.assign({},e[t+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},l=[e[t+1],e[t+2],["enter",i,n],e[t+3],e[t+4],["enter",r,n],["exit",r,n],["enter",a,n],["enter",o,n],["exit",o,n],["exit",a,n],e[e.length-2],e[e.length-1],["exit",i,n]];return e.splice(t,e.length-t+1,...l),e}function xme(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a=0,o;return l;function l(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),f}function f(d){return d!==94?t(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(d){if(a>999||d===93&&!o||d===null||d===91||Nt(d))return t(d);if(d===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(qa(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),n):t(d)}return Nt(d)||(o=!0),a++,e.consume(d),d===92?h:c}function h(d){return d===91||d===92||d===93?(e.consume(d),a++,c):c(d)}}function Sme(e,n,t){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let a,o=0,l;return f;function f(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",h):t(b)}function h(b){if(o>999||b===93&&!l||b===null||b===91||Nt(b))return t(b);if(b===93){e.exit("chunkString");const w=e.exit("gfmFootnoteDefinitionLabelString");return a=qa(i.sliceSerialize(w)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Nt(b)||(l=!0),o++,e.consume(b),b===92?d:h}function d(b){return b===91||b===92||b===93?(e.consume(b),o++,h):h(b)}function p(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),r.includes(a)||r.push(a),ot(e,v,"gfmFootnoteDefinitionWhitespace")):t(b)}function v(b){return n(b)}}function Cme(e,n,t){return e.check(up,n,e.attempt(bme,n,t))}function Ame(e){e.exit("gfmFootnoteDefinition")}function Ome(e,n,t){const i=this;return ot(e,r,"gfmFootnoteDefinitionIndent",5);function r(a){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?n(a):t(a)}}function jme(e){let t=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:a,resolveAll:r};return t==null&&(t=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,l){let f=-1;for(;++f 1?f(b):(o.consume(b),d++,v);if(d<2&&!t)return f(b);const k=o.exit("strikethroughSequenceTemporary"),_=rc(b);return k._open=!_||_===2&&!!w,k._close=!w||w===2&&!!_,l(b)}}}class Eme{constructor(){this.map=[]}add(n,t,i){Tme(this,n,t,i)}consume(n){if(this.map.sort(function(a,o){return a[0]-o[0]}),this.map.length===0)return;let t=this.map.length;const i=[];for(;t>0;)t-=1,i.push(n.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),n.length=this.map[t][0];i.push(n.slice()),n.length=0;let r=i.pop();for(;r;){for(const a of r)n.push(a);r=i.pop()}this.map.length=0}}function Tme(e,n,t,i){let r=0;if(!(t===0&&i.length===0)){for(;r -1;){const U=i.events[z][1].type;if(U==="lineEnding"||U==="linePrefix")z--;else break}const F=z>-1?i.events[z][1].type:null,G=F==="tableHead"||F==="tableRow"?j:f;return G===j&&i.parser.lazy[i.now().line]?t(P):G(P)}function f(P){return e.enter("tableHead"),e.enter("tableRow"),c(P)}function c(P){return P===124||(o=!0,a+=1),h(P)}function h(P){return P===null?t(P):kn(P)?a>1?(a=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),v):t(P):Zn(P)?ot(e,h,"whitespace")(P):(a+=1,o&&(o=!1,r+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),o=!0,h):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||Nt(P)?(e.exit("data"),h(P)):(e.consume(P),P===92?p:d)}function p(P){return P===92||P===124?(e.consume(P),d):d(P)}function v(P){return i.interrupt=!1,i.parser.lazy[i.now().line]?t(P):(e.enter("tableDelimiterRow"),o=!1,Zn(P)?ot(e,b,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):b(P))}function b(P){return P===45||P===58?k(P):P===124?(o=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),w):O(P)}function w(P){return Zn(P)?ot(e,k,"whitespace")(P):k(P)}function k(P){return P===58?(a+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),_):P===45?(a+=1,_(P)):P===null||kn(P)?E(P):O(P)}function _(P){return P===45?(e.enter("tableDelimiterFiller"),C(P)):O(P)}function C(P){return P===45?(e.consume(P),C):P===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(P))}function x(P){return Zn(P)?ot(e,E,"whitespace")(P):E(P)}function E(P){return P===124?b(P):P===null||kn(P)?!o||r!==a?O(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),n(P)):O(P)}function O(P){return t(P)}function j(P){return e.enter("tableRow"),M(P)}function M(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),M):P===null||kn(P)?(e.exit("tableRow"),n(P)):Zn(P)?ot(e,M,"whitespace")(P):(e.enter("data"),N(P))}function N(P){return P===null||P===124||Nt(P)?(e.exit("data"),M(P)):(e.consume(P),P===92?H:N)}function H(P){return P===92||P===124?(e.consume(P),N):N(P)}}function Pme(e,n){let t=-1,i=!0,r=0,a=[0,0,0,0],o=[0,0,0,0],l=!1,f=0,c,h,d;const p=new Eme;for(;++t t[2]+1){const b=t[2]+1,w=t[3]-t[2]-1;e.add(b,w,[])}}e.add(t[3]+1,0,[["exit",d,n]])}return r!==void 0&&(a.end=Object.assign({},zf(n.events,r)),e.add(r,0,[["exit",a,n]]),a=void 0),a}function XM(e,n,t,i,r){const a=[],o=zf(n.events,t);r&&(r.end=Object.assign({},o),a.push(["exit",r,n])),i.end=Object.assign({},o),a.push(["exit",i,n]),e.add(t+1,0,a)}function zf(e,n){const t=e[n],i=t[0]==="enter"?"start":"end";return t[1][i]}const Nme={name:"tasklistCheck",tokenize:zme};function $me(){return{text:{91:Nme}}}function zme(e,n,t){const i=this;return r;function r(f){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?t(f):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),a)}function a(f){return Nt(f)?(e.enter("taskListCheckValueUnchecked"),e.consume(f),e.exit("taskListCheckValueUnchecked"),o):f===88||f===120?(e.enter("taskListCheckValueChecked"),e.consume(f),e.exit("taskListCheckValueChecked"),o):t(f)}function o(f){return f===93?(e.enter("taskListCheckMarker"),e.consume(f),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),l):t(f)}function l(f){return kn(f)?n(f):Zn(f)?e.check({tokenize:Lme},n,t)(f):t(f)}}function Lme(e,n,t){return ot(e,i,"whitespace");function i(r){return r===null?t(r):n(r)}}function Ime(e){return wq([fme(),wme(),jme(e),Dme(),$me()])}const Bme={};function Fme(e){const n=this,t=e||Bme,i=n.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),a=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(Ime(t)),a.push(ome()),o.push(sme(t))}const i4="kanban_chat_v1";function qme(){try{const e=localStorage.getItem(i4);if(!e)return[];const n=JSON.parse(e);if(Array.isArray(n))return n}catch{}return[]}function Hme({onBoardChange:e}){const[n,t]=A.useState(()=>qme()),[i,r]=A.useState(""),[a,o]=A.useState(!1),[l,f]=A.useState(""),[c,h]=A.useState([]),d=A.useRef(null);A.useEffect(()=>{localStorage.setItem(i4,JSON.stringify(n))},[n]),A.useEffect(()=>{var w;(w=d.current)==null||w.scrollTo({top:d.current.scrollHeight,behavior:"smooth"})},[n,l,c,a]);const p=async()=>{const w=i.trim();if(!w||a)return;const k={role:"user",content:w,ts:Date.now()},_=[...n,k];t(_),r(""),o(!0),f(""),h([]);let C="";const x=[];let E=!1;const O=j=>{switch(j.type){case"delta":C+=j.text,f(C);break;case"tool_use":{const M={tool:j.tool,ok:!0,input:j.input};x.push(M),h([...x]);break}case"tool_result":{for(let M=x.length-1;M>=0;M--){const N=x[M];if(N.error===void 0&&N.ok){j.is_error&&(N.ok=!1,N.error=j.result||"tool error");break}}h([...x]);break}case"result":j.text&&C.trim()===""&&(C=j.text,f(C));break;case"done":j.board_changed&&(E=!0);break;case"error":C=`Error: ${j.error}`,f(C);break}};try{const j=_.map(M=>({role:M.role,content:M.content}));await Hie(j,O)}catch(j){const M=j.message;Ln.show({color:"red",message:M}),C=C||`Error: ${M}`}finally{const j={role:"assistant",content:C,ts:Date.now(),tool_calls:x.length>0?x:void 0};t(M=>[...M,j]),f(""),h([]),o(!1),E&&e()}},v=w=>{w.key==="Enter"&&!w.shiftKey&&(w.preventDefault(),p())},b=()=>{t([]),localStorage.removeItem(i4)};return y.jsxs(Vn,{gap:0,h:"100%",children:[y.jsxs(Ue,{justify:"space-between",p:"xs",style:{borderBottom:"1px solid var(--mantine-color-dark-4)"},children:[y.jsxs(Ue,{gap:6,children:[y.jsx(nq,{size:18}),y.jsx(Ee,{fw:600,size:"sm",children:"Asistente"})]}),y.jsx(ii,{label:"Limpiar conversacion",withArrow:!0,children:y.jsx(kt,{variant:"subtle",color:"gray",size:"sm",onClick:b,disabled:n.length===0,children:y.jsx(_u,{size:14})})})]}),y.jsx(xa,{viewportRef:d,style:{flex:1},type:"auto",p:"xs",children:y.jsxs(Vn,{gap:"xs",children:[n.length===0&&!a&&y.jsxs(Ee,{size:"sm",c:"dimmed",ta:"center",mt:"md",children:["Escribe algo. Ejemplos:",y.jsx("br",{}),'- "crea columna Backlog"',y.jsx("br",{}),'- "anade tarjeta para revisar PR de Lucas en Doing"',y.jsx("br",{}),'- "que hay en Doing?"']}),n.map((w,k)=>y.jsx(ZM,{msg:w},k)),a&&y.jsx(ZM,{msg:{role:"assistant",content:l,ts:Date.now(),tool_calls:c.length>0?c:void 0},streaming:!0}),a&&l===""&&c.length===0&&y.jsxs(Ue,{gap:6,pl:"xs",children:[y.jsx(xi,{size:"xs"}),y.jsx(Ee,{size:"xs",c:"dimmed",children:"Pensando..."})]})]})}),y.jsx(Vn,{gap:4,p:"xs",style:{borderTop:"1px solid var(--mantine-color-dark-4)"},children:y.jsxs(Ue,{align:"flex-end",gap:4,wrap:"nowrap",children:[y.jsx(bu,{placeholder:"Pide algo... (Enter envia, Shift+Enter newline)",value:i,onChange:w=>r(w.currentTarget.value),onKeyDown:v,disabled:a,autosize:!0,minRows:1,maxRows:6,style:{flex:1}}),y.jsx(kt,{size:"lg",variant:"filled",onClick:p,disabled:!i.trim()||a,"aria-label":"Send",children:a?y.jsx(xi,{size:"xs",color:"white"}):y.jsx(tq,{size:16})})]})})]})}function ZM({msg:e,streaming:n=!1}){const t=e.role==="user";return y.jsx(Mt,{p:"xs",radius:"md",withBorder:!0,bg:t?"blue.9":"dark.6",style:{alignSelf:t?"flex-end":"flex-start",maxWidth:"92%"},children:y.jsxs(Vn,{gap:4,children:[e.content&&y.jsx(ve,{className:"kanban-md",style:{fontSize:13,lineHeight:1.45,color:"var(--mantine-color-text)"},children:y.jsx(jde,{remarkPlugins:[Fme],children:e.content})}),n&&e.content&&y.jsx(ve,{style:{display:"inline-block",width:8,height:14,background:"currentColor",opacity:.6}}),e.tool_calls&&e.tool_calls.length>0&&y.jsx(Ue,{gap:4,wrap:"wrap",children:e.tool_calls.map((i,r)=>y.jsxs(dt,{size:"xs",color:i.ok?"teal":"red",variant:"light",title:i.error||"",leftSection:i.ok&&n?y.jsx(xi,{size:8,color:"teal"}):null,children:[i.tool,!i.ok&&i.error?`: ${i.error}`:""]},r))})]})})}const Ume=["Lun","Mar","Mie","Jue","Vie","Sab","Dom"];function Vme({users:e,cards:n,onJumpToCard:t,onOpenDailyReport:i}){const[r,a]=A.useState(null),[o,l]=A.useState(new Date),[f,c]=A.useState(null),[h,d]=A.useState(null),[p,v]=A.useState(!1);A.useEffect(()=>{let x=!1;v(!0);const E=Ie(o).startOf("month").format("YYYY-MM-DD"),O=Ie(o).endOf("month").format("YYYY-MM-DD");return WB({from:E,to:O,assignee_id:f||void 0}).then(j=>{x||d(j)}).finally(()=>{x||v(!1)}),()=>{x=!0}},[o,f]);const b=A.useMemo(()=>e.map(x=>({value:x.id,label:x.display_name||x.username})),[e]),w=A.useMemo(()=>{const x=new Map;if(!h)return x;for(const E of h.created_daily){const O=x.get(E.date)??{created:0,done:0,deadlines:[]};O.created=E.count,x.set(E.date,O)}for(const E of h.throughput_daily){const O=x.get(E.date)??{created:0,done:0,deadlines:[]};O.done=E.count,x.set(E.date,O)}for(const E of n){if(!E.deadline||E.deleted_at)continue;const O=E.deadline.slice(0,10),j=x.get(O)??{created:0,done:0,deadlines:[]};j.deadlines.push(E),x.set(O,j)}return x},[h,n]),k=A.useMemo(()=>{const x=Ie(o).startOf("month"),E=Ie(o).endOf("month"),O=(x.day()+6)%7,j=[];for(let M=0;M Array.from(w.values()).reduce((x,E)=>x+E.created,0),[w]),C=A.useMemo(()=>Array.from(w.values()).reduce((x,E)=>x+E.done,0),[w]);return y.jsx(ve,{p:"md",children:y.jsxs(Vn,{gap:"md",children:[y.jsxs(Ue,{justify:"space-between",children:[y.jsx(gl,{order:3,children:"Calendario"}),y.jsxs(Ue,{gap:"xs",wrap:"nowrap",children:[y.jsx(l9,{label:"Mes",size:"xs",value:o,onChange:x=>x&&l(typeof x=="string"?new Date(x):x),style:{minWidth:160},clearable:!1}),y.jsx(ya,{label:"Asignado",size:"xs",placeholder:"Todos",value:f,onChange:c,data:b,clearable:!0,searchable:!0,style:{minWidth:180}})]})]}),y.jsxs(Ue,{gap:"md",children:[y.jsx(Mt,{withBorder:!0,p:"sm",radius:"md",children:y.jsxs(Ue,{gap:6,children:[y.jsx(tc,{size:14,color:"var(--mantine-color-blue-5)"}),y.jsx(Ee,{size:"sm",fw:600,children:_}),y.jsx(Ee,{size:"xs",c:"dimmed",children:"creadas"})]})}),y.jsx(Mt,{withBorder:!0,p:"sm",radius:"md",children:y.jsxs(Ue,{gap:6,children:[y.jsx(em,{size:14,color:"var(--mantine-color-green-5)"}),y.jsx(Ee,{size:"sm",fw:600,children:C}),y.jsx(Ee,{size:"xs",c:"dimmed",children:"hechas"})]})})]}),p&&!h?y.jsx(zc,{p:"xl",children:y.jsx(xi,{})}):y.jsxs(Mt,{withBorder:!0,p:"md",radius:"md",children:[y.jsx(Uo,{cols:7,spacing:4,mb:4,children:Ume.map(x=>y.jsx(Ee,{size:"xs",c:"dimmed",ta:"center",fw:600,children:x},x))}),y.jsx(Uo,{cols:7,spacing:4,children:k.map((x,E)=>{if(!x.date)return y.jsx(ve,{style:{minHeight:72}},E);const O=w.get(x.date)??{created:0,done:0,deadlines:[]},j=parseInt(x.date.slice(8,10),10),M=x.date===Ie().format("YYYY-MM-DD"),N=Ie().startOf("day").valueOf(),P=Ie(x.date).startOf("day").valueOf() 0?"rgba(81, 207, 102, 0.08)":O.created>0?"rgba(34, 139, 230, 0.06)":void 0},children:y.jsxs(Vn,{gap:2,children:[y.jsx(Dt,{onClick:()=>x.date&&(i==null?void 0:i(x.date)),title:"Ver reporte diario",style:{alignSelf:"flex-start"},"data-test":`calendar-day-${x.date}`,children:y.jsx(Ee,{size:"xs",fw:M?700:500,c:M?"blue":void 0,td:i?"underline":void 0,style:{cursor:i?"pointer":"default"},children:j})}),O.created>0&&y.jsxs(Ue,{gap:3,wrap:"nowrap",children:[y.jsx(tc,{size:10,color:"var(--mantine-color-blue-5)"}),y.jsx(Ee,{size:"xs",c:"blue",children:O.created})]}),O.done>0&&y.jsxs(Ue,{gap:3,wrap:"nowrap",children:[y.jsx(em,{size:10,color:"var(--mantine-color-green-5)"}),y.jsx(Ee,{size:"xs",c:"green",children:O.done})]}),O.deadlines.length>0&&y.jsxs(En,{opened:r===x.date,onChange:z=>a(z?x.date:null),position:"bottom",withArrow:!0,shadow:"md",width:280,children:[y.jsx(En.Target,{children:y.jsx(Dt,{onClick:()=>a(r===x.date?null:x.date),style:{textAlign:"left"},children:y.jsx(Vn,{gap:1,children:y.jsxs(Ue,{gap:3,wrap:"nowrap",children:[y.jsx(Wg,{size:10,color:P?"var(--mantine-color-red-5)":"var(--mantine-color-orange-5)"}),y.jsxs(Ee,{size:"xs",c:P?"red":"orange",fw:700,td:"underline",children:[O.deadlines.length," deadline",O.deadlines.length===1?"":"s"]})]})})})}),y.jsx(En.Dropdown,{p:6,children:y.jsxs(Vn,{gap:2,children:[y.jsxs(Ee,{size:"xs",c:"dimmed",fw:600,mb:2,children:["Vencen el ",Ie(x.date).format("DD/MM/YYYY")]}),O.deadlines.map(z=>y.jsx(Dt,{onClick:()=>{a(null),t==null||t(z.id)},style:{padding:"4px 6px",borderRadius:4,background:"var(--mantine-color-dark-6)"},children:y.jsxs(Ue,{gap:6,wrap:"nowrap",children:[y.jsxs(Ee,{size:"xs",c:"dimmed",ff:"monospace",children:["#",String(z.seq_num).padStart(5,"0")]}),y.jsx(Ee,{size:"xs",lineClamp:1,title:z.title,children:z.title})]})},z.id))]})})]})]})},E)})})]})]})})}function fH(e){return e?e.reduce((n,t)=>{const i=t.name.search(/\./);if(i>=0){const r=t.name.substring(i+1);return n[r]=t.label,n}return n[t.name]=t.label,n},{}):{}}var Wme={tooltip:"m_e4d36c9b",tooltipLabel:"m_7f4bcb19",tooltipBody:"m_3de554dd",tooltipItemColor:"m_b30369b5",tooltipItem:"m_3de8964e",tooltipItemBody:"m_50186d10",tooltipItemName:"m_501dadf9",tooltipItemData:"m_50192318"};function Gme(e){return e.map(n=>{if(!n.payload||n.payload[n.name])return n;const t=n.name.search(/\./);if(t>=0){const i=n.name.substring(0,t),r={...n.payload[i]},a=Object.entries(n.payload).reduce((o,l)=>{const[f,c]=l;return f===i?o:{...o,[f]:c}},{});return{...n,name:n.name.substring(t+1),payload:{...a,...r}}}return n})}function Yme(e,n){const t=Gme(e.filter(i=>i.fill!=="none"||!i.color));return n?t.filter(i=>i.name===n):t}function QM(e,n){return n==="radial"||n==="scatter"?Array.isArray(e.value)?e.value[1]-e.value[0]:e.value:Array.isArray(e.payload[e.dataKey])?e.payload[e.dataKey][1]-e.payload[e.dataKey][0]:e.payload[e.name]}const Kme={type:"area",showColor:!0},M9=Re(e=>{var P,z;const n=be("ChartTooltip",Kme,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:f,label:c,unit:h,type:d,segmentId:p,mod:v,series:b,valueFormatter:w,showColor:k,attributes:_,...C}=n,x=ui(),E=Ze({name:"ChartTooltip",classes:Wme,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:_});if(!f)return null;const O=Yme(f,p),j=d==="scatter"?(z=(P=f[0])==null?void 0:P.payload)==null?void 0:z.name:null,M=fH(b),N=c||j,H=O.map(F=>y.jsxs("div",{"data-type":d,...E("tooltipItem"),children:[y.jsxs("div",{...E("tooltipItemBody"),children:[k&&y.jsx("svg",{...E("tooltipItemColor"),children:y.jsx("circle",{r:6,fill:lt(F.color,x),width:12,height:12,cx:6,cy:6})}),y.jsx("div",{...E("tooltipItemName"),children:M[F.name]||F.name})]}),y.jsxs("div",{...E("tooltipItemData"),children:[typeof w=="function"?w(QM(F,d)):QM(F,d),h||F.unit]})]},(F==null?void 0:F.key)??F.name));return y.jsxs(ve,{...E("tooltip"),mod:[{type:d},v],...C,children:[N&&y.jsx("div",{...E("tooltipLabel"),children:N}),y.jsx("div",{...E("tooltipBody"),children:H})]})});M9.displayName="@mantine/charts/ChartTooltip";var cH={legend:"m_847eaf",legendItem:"m_17da7e62",legendItemColor:"m_6e236e21",legendItemName:"m_8ff56c0d"};function Xme(e){return e.map(n=>{var i;const t=(i=n.dataKey)==null?void 0:i.split(".").pop();return{...n,dataKey:t,payload:{...n.payload,name:t,dataKey:t}}})}function Zme(e){return Xme(e.filter(n=>n.color!=="none"))}const b0=Re(e=>{const n=be("ChartLegend",null,e),{classNames:t,className:i,style:r,styles:a,unstyled:o,vars:l,payload:f,onHighlight:c,legendPosition:h,mod:d,series:p,showColor:v,centered:b,attributes:w,...k}=n,_=Ze({name:"ChartLegend",classes:cH,props:n,className:i,style:r,classNames:t,styles:a,unstyled:o,attributes:w,rootSelector:"legend"});if(!f)return null;const C=Zme(f),x=fH(p),E=C.map((O,j)=>y.jsxs("div",{..._("legendItem"),onMouseEnter:()=>c(O.dataKey),onMouseLeave:()=>c(null),"data-without-color":v===!1||void 0,children:[y.jsx(Lc,{color:O.color,size:12,..._("legendItemColor"),withShadow:!1}),y.jsx("p",{..._("legendItemName"),children:x[O.dataKey]||O.dataKey})]},j));return y.jsx(ve,{mod:[{position:h,centered:b},d],..._("legend"),...k,children:E})});b0.displayName="@mantine/charts/ChartLegend";b0.classes=cH;function Qme({x:e,y:n,value:t,valueFormatter:i}){return y.jsx("g",{transform:`translate(${e},${n})`,children:y.jsx("text",{x:0,y:0,dy:-8,dx:-10,textAnchor:"start",fill:"var(--chart-text-color, var(--mantine-color-dimmed))",fontSize:8,children:i?i(t):t})})}var w0={root:"m_a50f3e58",container:"m_af9188cb",grid:"m_a50a48bc",axis:"m_a507a517",axisLabel:"m_2293801d",tooltip:"m_92b296cd"},o_,JM;function Ar(){if(JM)return o_;JM=1;var e=Array.isArray;return o_=e,o_}var s_,e8;function dH(){if(e8)return s_;e8=1;var e=typeof Tv=="object"&&Tv&&Tv.Object===Object&&Tv;return s_=e,s_}var l_,n8;function xo(){if(n8)return l_;n8=1;var e=dH(),n=typeof self=="object"&&self&&self.Object===Object&&self,t=e||n||Function("return this")();return l_=t,l_}var u_,t8;function cp(){if(t8)return u_;t8=1;var e=xo(),n=e.Symbol;return u_=n,u_}var f_,i8;function Jme(){if(i8)return f_;i8=1;var e=cp(),n=Object.prototype,t=n.hasOwnProperty,i=n.toString,r=e?e.toStringTag:void 0;function a(o){var l=t.call(o,r),f=o[r];try{o[r]=void 0;var c=!0}catch{}var h=i.call(o);return c&&(l?o[r]=f:delete o[r]),h}return f_=a,f_}var c_,r8;function epe(){if(r8)return c_;r8=1;var e=Object.prototype,n=e.toString;function t(i){return n.call(i)}return c_=t,c_}var d_,a8;function vs(){if(a8)return d_;a8=1;var e=cp(),n=Jme(),t=epe(),i="[object Null]",r="[object Undefined]",a=e?e.toStringTag:void 0;function o(l){return l==null?l===void 0?r:i:a&&a in Object(l)?n(l):t(l)}return d_=o,d_}var h_,o8;function gs(){if(o8)return h_;o8=1;function e(n){return n!=null&&typeof n=="object"}return h_=e,h_}var m_,s8;function Zc(){if(s8)return m_;s8=1;var e=vs(),n=gs(),t="[object Symbol]";function i(r){return typeof r=="symbol"||n(r)&&e(r)==t}return m_=i,m_}var p_,l8;function D9(){if(l8)return p_;l8=1;var e=Ar(),n=Zc(),t=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,i=/^\w*$/;function r(a,o){if(e(a))return!1;var l=typeof a;return l=="number"||l=="symbol"||l=="boolean"||a==null||n(a)?!0:i.test(a)||!t.test(a)||o!=null&&a in Object(o)}return p_=r,p_}var v_,u8;function kl(){if(u8)return v_;u8=1;function e(n){var t=typeof n;return n!=null&&(t=="object"||t=="function")}return v_=e,v_}var g_,f8;function R9(){if(f8)return g_;f8=1;var e=vs(),n=kl(),t="[object AsyncFunction]",i="[object Function]",r="[object GeneratorFunction]",a="[object Proxy]";function o(l){if(!n(l))return!1;var f=e(l);return f==i||f==r||f==t||f==a}return g_=o,g_}var y_,c8;function npe(){if(c8)return y_;c8=1;var e=xo(),n=e["__core-js_shared__"];return y_=n,y_}var b_,d8;function tpe(){if(d8)return b_;d8=1;var e=npe(),n=(function(){var i=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})();function t(i){return!!n&&n in i}return b_=t,b_}var w_,h8;function hH(){if(h8)return w_;h8=1;var e=Function.prototype,n=e.toString;function t(i){if(i!=null){try{return n.call(i)}catch{}try{return i+""}catch{}}return""}return w_=t,w_}var k_,m8;function ipe(){if(m8)return k_;m8=1;var e=R9(),n=tpe(),t=kl(),i=hH(),r=/[\\^$.*+?()[\]{}|]/g,a=/^\[object .+?Constructor\]$/,o=Function.prototype,l=Object.prototype,f=o.toString,c=l.hasOwnProperty,h=RegExp("^"+f.call(c).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!t(p)||n(p))return!1;var v=e(p)?h:a;return v.test(i(p))}return k_=d,k_}var __,p8;function rpe(){if(p8)return __;p8=1;function e(n,t){return n==null?void 0:n[t]}return __=e,__}var x_,v8;function Lu(){if(v8)return x_;v8=1;var e=ipe(),n=rpe();function t(i,r){var a=n(i,r);return e(a)?a:void 0}return x_=t,x_}var S_,g8;function k0(){if(g8)return S_;g8=1;var e=Lu(),n=e(Object,"create");return S_=n,S_}var C_,y8;function ape(){if(y8)return C_;y8=1;var e=k0();function n(){this.__data__=e?e(null):{},this.size=0}return C_=n,C_}var A_,b8;function ope(){if(b8)return A_;b8=1;function e(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t}return A_=e,A_}var O_,w8;function spe(){if(w8)return O_;w8=1;var e=k0(),n="__lodash_hash_undefined__",t=Object.prototype,i=t.hasOwnProperty;function r(a){var o=this.__data__;if(e){var l=o[a];return l===n?void 0:l}return i.call(o,a)?o[a]:void 0}return O_=r,O_}var j_,k8;function lpe(){if(k8)return j_;k8=1;var e=k0(),n=Object.prototype,t=n.hasOwnProperty;function i(r){var a=this.__data__;return e?a[r]!==void 0:t.call(a,r)}return j_=i,j_}var E_,_8;function upe(){if(_8)return E_;_8=1;var e=k0(),n="__lodash_hash_undefined__";function t(i,r){var a=this.__data__;return this.size+=this.has(i)?0:1,a[i]=e&&r===void 0?n:r,this}return E_=t,E_}var T_,x8;function fpe(){if(x8)return T_;x8=1;var e=ape(),n=ope(),t=spe(),i=lpe(),r=upe();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l -1}return $_=n,$_}var z_,T8;function ppe(){if(T8)return z_;T8=1;var e=_0();function n(t,i){var r=this.__data__,a=e(r,t);return a<0?(++this.size,r.push([t,i])):r[a][1]=i,this}return z_=n,z_}var L_,M8;function x0(){if(M8)return L_;M8=1;var e=cpe(),n=dpe(),t=hpe(),i=mpe(),r=ppe();function a(o){var l=-1,f=o==null?0:o.length;for(this.clear();++l 0?1:-1},lu=function(n){return Su(n)&&n.indexOf("%")===n.length-1},We=function(n){return Lpe(n)&&!Jc(n)},Ipe=function(n){return Gn(n)},_i=function(n){return We(n)||Su(n)},Bpe=0,ed=function(n){var t=++Bpe;return"".concat(n||"").concat(t)},Cu=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!We(n)&&!Su(n))return i;var a;if(lu(n)){var o=n.indexOf("%");a=t*parseFloat(n.slice(0,o))/100}else a=+n;return Jc(a)&&(a=i),r&&a>t&&(a=t),a},Zs=function(n){if(!n)return null;var t=Object.keys(n);return t&&t.length?n[t[0]]:null},Fpe=function(n){if(!Array.isArray(n))return!1;for(var t=n.length,i={},r=0;r =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Ype(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function a4(e){"@babel/helpers - typeof";return a4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},a4(e)}var aD={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},Zo=function(n){return typeof n=="string"?n:n?n.displayName||n.name||"Component":""},oD=null,f2=null,B9=function e(n){if(n===oD&&Array.isArray(f2))return f2;var t=[];return A.Children.forEach(n,function(i){Gn(i)||(Ppe.isFragment(i)?t=t.concat(e(i.props.children)):t.push(i))}),f2=t,oD=n,t};function va(e,n){var t=[],i=[];return Array.isArray(n)?i=n.map(function(r){return Zo(r)}):i=[Zo(n)],B9(e).forEach(function(r){var a=pa(r,"type.displayName")||pa(r,"type.name");i.indexOf(a)!==-1&&t.push(r)}),t}function Hr(e,n){var t=va(e,n);return t&&t[0]}var sD=function(n){if(!n||!n.props)return!1;var t=n.props,i=t.width,r=t.height;return!(!We(i)||i<=0||!We(r)||r<=0)},Kpe=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],Xpe=function(n){return n&&n.type&&Su(n.type)&&Kpe.indexOf(n.type)>=0},bH=function(n){return n&&a4(n)==="object"&&"clipDot"in n},Zpe=function(n,t,i,r){var a,o=(a=u2==null?void 0:u2[r])!==null&&a!==void 0?a:[];return t.startsWith("data-")||!In(n)&&(r&&o.includes(t)||Upe.includes(t))||i&&I9.includes(t)},Hn=function(n,t,i){if(!n||typeof n=="function"||typeof n=="boolean")return null;var r=n;if(A.isValidElement(n)&&(r=n.props),!Qc(r))return null;var a={};return Object.keys(r).forEach(function(o){var l;Zpe((l=r)===null||l===void 0?void 0:l[o],o,t,i)&&(a[o]=r[o])}),a},o4=function e(n,t){if(n===t)return!0;var i=A.Children.count(n);if(i!==A.Children.count(t))return!1;if(i===0)return!0;if(i===1)return lD(Array.isArray(n)?n[0]:n,Array.isArray(t)?t[0]:t);for(var r=0;r=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function tve(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function l4(e){var n=e.children,t=e.width,i=e.height,r=e.viewBox,a=e.className,o=e.style,l=e.title,f=e.desc,c=nve(e,eve),h=r||{width:t,height:i,x:0,y:0},d=dn("recharts-surface",a);return Q.createElement("svg",s4({},Hn(c,!0,"svg"),{className:d,width:t,height:i,style:o,viewBox:"".concat(h.x," ").concat(h.y," ").concat(h.width," ").concat(h.height)}),Q.createElement("title",null,l),Q.createElement("desc",null,f),n)}var ive=["children","className"];function u4(){return u4=Object.assign?Object.assign.bind():function(e){for(var n=1;n =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function ave(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var It=Q.forwardRef(function(e,n){var t=e.children,i=e.className,r=rve(e,ive),a=dn("recharts-layer",i);return Q.createElement("g",u4({className:a},Hn(r,!0),{ref:n}),t)}),Qo=function(n,t){for(var i=arguments.length,r=new Array(i>2?i-2:0),a=2;aa?0:a+t),i=i>a?a:i,i<0&&(i+=a),a=t>i?0:i-t>>>0,t>>>=0;for(var o=Array(a);++r=a?t:e(t,i,r)}return d2=n,d2}var h2,dD;function wH(){if(dD)return h2;dD=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="\\u200d",l=RegExp("["+o+e+r+a+"]");function f(c){return l.test(c)}return h2=f,h2}var m2,hD;function lve(){if(hD)return m2;hD=1;function e(n){return n.split("")}return m2=e,m2}var p2,mD;function uve(){if(mD)return p2;mD=1;var e="\\ud800-\\udfff",n="\\u0300-\\u036f",t="\\ufe20-\\ufe2f",i="\\u20d0-\\u20ff",r=n+t+i,a="\\ufe0e\\ufe0f",o="["+e+"]",l="["+r+"]",f="\\ud83c[\\udffb-\\udfff]",c="(?:"+l+"|"+f+")",h="[^"+e+"]",d="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",v="\\u200d",b=c+"?",w="["+a+"]?",k="(?:"+v+"(?:"+[h,d,p].join("|")+")"+w+b+")*",_=w+b+k,C="(?:"+[h+l+"?",l,d,p,o].join("|")+")",x=RegExp(f+"(?="+f+")|"+C+_,"g");function E(O){return O.match(x)||[]}return p2=E,p2}var v2,pD;function fve(){if(pD)return v2;pD=1;var e=lve(),n=wH(),t=uve();function i(r){return n(r)?t(r):e(r)}return v2=i,v2}var g2,vD;function cve(){if(vD)return g2;vD=1;var e=sve(),n=wH(),t=fve(),i=pH();function r(a){return function(o){o=i(o);var l=n(o)?t(o):void 0,f=l?l[0]:o.charAt(0),c=l?e(l,1).join(""):o.slice(1);return f[a]()+c}}return g2=r,g2}var y2,gD;function dve(){if(gD)return y2;gD=1;var e=cve(),n=e("toUpperCase");return y2=n,y2}var hve=dve();const A0=mt(hve);function Lt(e){return function(){return e}}const kH=Math.cos,e1=Math.sin,Ga=Math.sqrt,n1=Math.PI,O0=2*n1,f4=Math.PI,c4=2*f4,tu=1e-6,mve=c4-tu;function _H(e){this._+=e[0];for(let n=1,t=e.length;n =0))throw new Error(`invalid digits: ${e}`);if(n>15)return _H;const t=10**n;return function(i){this._+=i[0];for(let r=1,a=i.length;rtu)if(!(Math.abs(d*f-c*h)>tu)||!a)this._append`L${this._x1=n},${this._y1=t}`;else{let v=i-o,b=r-l,w=f*f+c*c,k=v*v+b*b,_=Math.sqrt(w),C=Math.sqrt(p),x=a*Math.tan((f4-Math.acos((w+p-k)/(2*_*C)))/2),E=x/C,O=x/_;Math.abs(E-1)>tu&&this._append`L${n+E*h},${t+E*d}`,this._append`A${a},${a},0,0,${+(d*v>h*b)},${this._x1=n+O*f},${this._y1=t+O*c}`}}arc(n,t,i,r,a,o){if(n=+n,t=+t,i=+i,o=!!o,i<0)throw new Error(`negative radius: ${i}`);let l=i*Math.cos(r),f=i*Math.sin(r),c=n+l,h=t+f,d=1^o,p=o?r-a:a-r;this._x1===null?this._append`M${c},${h}`:(Math.abs(this._x1-c)>tu||Math.abs(this._y1-h)>tu)&&this._append`L${c},${h}`,i&&(p<0&&(p=p%c4+c4),p>mve?this._append`A${i},${i},0,1,${d},${n-l},${t-f}A${i},${i},0,1,${d},${this._x1=c},${this._y1=h}`:p>tu&&this._append`A${i},${i},0,${+(p>=f4)},${d},${this._x1=n+i*Math.cos(a)},${this._y1=t+i*Math.sin(a)}`)}rect(n,t,i,r){this._append`M${this._x0=this._x1=+n},${this._y0=this._y1=+t}h${i=+i}v${+r}h${-i}Z`}toString(){return this._}}function F9(e){let n=3;return e.digits=function(t){if(!arguments.length)return n;if(t==null)n=null;else{const i=Math.floor(t);if(!(i>=0))throw new RangeError(`invalid digits: ${t}`);n=i}return e},()=>new vve(n)}function q9(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function xH(e){this._context=e}xH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:this._context.lineTo(e,n);break}}};function j0(e){return new xH(e)}function SH(e){return e[0]}function CH(e){return e[1]}function AH(e,n){var t=Lt(!0),i=null,r=j0,a=null,o=F9(l);e=typeof e=="function"?e:e===void 0?SH:Lt(e),n=typeof n=="function"?n:n===void 0?CH:Lt(n);function l(f){var c,h=(f=q9(f)).length,d,p=!1,v;for(i==null&&(a=r(v=o())),c=0;c<=h;++c)!(c =v;--b)l.point(x[b],E[b]);l.lineEnd(),l.areaEnd()}_&&(x[p]=+e(k,p,d),E[p]=+n(k,p,d),l.point(i?+i(k,p,d):x[p],t?+t(k,p,d):E[p]))}if(C)return l=null,C+""||null}function h(){return AH().defined(r).curve(o).context(a)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Lt(+d),i=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:Lt(+d),c):e},c.x1=function(d){return arguments.length?(i=d==null?null:typeof d=="function"?d:Lt(+d),c):i},c.y=function(d){return arguments.length?(n=typeof d=="function"?d:Lt(+d),t=null,c):n},c.y0=function(d){return arguments.length?(n=typeof d=="function"?d:Lt(+d),c):n},c.y1=function(d){return arguments.length?(t=d==null?null:typeof d=="function"?d:Lt(+d),c):t},c.lineX0=c.lineY0=function(){return h().x(e).y(n)},c.lineY1=function(){return h().x(e).y(t)},c.lineX1=function(){return h().x(i).y(n)},c.defined=function(d){return arguments.length?(r=typeof d=="function"?d:Lt(!!d),c):r},c.curve=function(d){return arguments.length?(o=d,a!=null&&(l=o(a)),c):o},c.context=function(d){return arguments.length?(d==null?a=l=null:l=o(a=d),c):a},c}class OH{constructor(n,t){this._context=n,this._x=t}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(n,t){switch(n=+n,t=+t,this._point){case 0:{this._point=1,this._line?this._context.lineTo(n,t):this._context.moveTo(n,t);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+n)/2,this._y0,this._x0,t,n,t):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+t)/2,n,this._y0,n,t);break}}this._x0=n,this._y0=t}}function gve(e){return new OH(e,!0)}function yve(e){return new OH(e,!1)}const H9={draw(e,n){const t=Ga(n/n1);e.moveTo(t,0),e.arc(0,0,t,0,O0)}},bve={draw(e,n){const t=Ga(n/5)/2;e.moveTo(-3*t,-t),e.lineTo(-t,-t),e.lineTo(-t,-3*t),e.lineTo(t,-3*t),e.lineTo(t,-t),e.lineTo(3*t,-t),e.lineTo(3*t,t),e.lineTo(t,t),e.lineTo(t,3*t),e.lineTo(-t,3*t),e.lineTo(-t,t),e.lineTo(-3*t,t),e.closePath()}},jH=Ga(1/3),wve=jH*2,kve={draw(e,n){const t=Ga(n/wve),i=t*jH;e.moveTo(0,-t),e.lineTo(i,0),e.lineTo(0,t),e.lineTo(-i,0),e.closePath()}},_ve={draw(e,n){const t=Ga(n),i=-t/2;e.rect(i,i,t,t)}},xve=.8908130915292852,EH=e1(n1/10)/e1(7*n1/10),Sve=e1(O0/10)*EH,Cve=-kH(O0/10)*EH,Ave={draw(e,n){const t=Ga(n*xve),i=Sve*t,r=Cve*t;e.moveTo(0,-t),e.lineTo(i,r);for(let a=1;a<5;++a){const o=O0*a/5,l=kH(o),f=e1(o);e.lineTo(f*t,-l*t),e.lineTo(l*i-f*r,f*i+l*r)}e.closePath()}},b2=Ga(3),Ove={draw(e,n){const t=-Ga(n/(b2*3));e.moveTo(0,t*2),e.lineTo(-b2*t,-t),e.lineTo(b2*t,-t),e.closePath()}},aa=-.5,oa=Ga(3)/2,d4=1/Ga(12),jve=(d4/2+1)*3,Eve={draw(e,n){const t=Ga(n/jve),i=t/2,r=t*d4,a=i,o=t*d4+t,l=-a,f=o;e.moveTo(i,r),e.lineTo(a,o),e.lineTo(l,f),e.lineTo(aa*i-oa*r,oa*i+aa*r),e.lineTo(aa*a-oa*o,oa*a+aa*o),e.lineTo(aa*l-oa*f,oa*l+aa*f),e.lineTo(aa*i+oa*r,aa*r-oa*i),e.lineTo(aa*a+oa*o,aa*o-oa*a),e.lineTo(aa*l+oa*f,aa*f-oa*l),e.closePath()}};function Tve(e,n){let t=null,i=F9(r);e=typeof e=="function"?e:Lt(e||H9),n=typeof n=="function"?n:Lt(n===void 0?64:+n);function r(){let a;if(t||(t=a=i()),e.apply(this,arguments).draw(t,+n.apply(this,arguments)),a)return t=null,a+""||null}return r.type=function(a){return arguments.length?(e=typeof a=="function"?a:Lt(a),r):e},r.size=function(a){return arguments.length?(n=typeof a=="function"?a:Lt(+a),r):n},r.context=function(a){return arguments.length?(t=a??null,r):t},r}function t1(){}function i1(e,n,t){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+n)/6,(e._y0+4*e._y1+t)/6)}function TH(e){this._context=e}TH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:i1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:i1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function Mve(e){return new TH(e)}function MH(e){this._context=e}MH.prototype={areaStart:t1,areaEnd:t1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._x2=e,this._y2=n;break;case 1:this._point=2,this._x3=e,this._y3=n;break;case 2:this._point=3,this._x4=e,this._y4=n,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+n)/6);break;default:i1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function Dve(e){return new MH(e)}function DH(e){this._context=e}DH.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var t=(this._x0+4*this._x1+e)/6,i=(this._y0+4*this._y1+n)/6;this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 3:this._point=4;default:i1(this,e,n);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n}};function Rve(e){return new DH(e)}function RH(e){this._context=e}RH.prototype={areaStart:t1,areaEnd:t1,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,n){e=+e,n=+n,this._point?this._context.lineTo(e,n):(this._point=1,this._context.moveTo(e,n))}};function Pve(e){return new RH(e)}function yD(e){return e<0?-1:1}function bD(e,n,t){var i=e._x1-e._x0,r=n-e._x1,a=(e._y1-e._y0)/(i||r<0&&-0),o=(t-e._y1)/(r||i<0&&-0),l=(a*r+o*i)/(i+r);return(yD(a)+yD(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(l))||0}function wD(e,n){var t=e._x1-e._x0;return t?(3*(e._y1-e._y0)/t-n)/2:n}function w2(e,n,t){var i=e._x0,r=e._y0,a=e._x1,o=e._y1,l=(a-i)/3;e._context.bezierCurveTo(i+l,r+l*n,a-l,o-l*t,a,o)}function r1(e){this._context=e}r1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:w2(this,this._t0,wD(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,n){var t=NaN;if(e=+e,n=+n,!(e===this._x1&&n===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;break;case 2:this._point=3,w2(this,wD(this,t=bD(this,e,n)),t);break;default:w2(this,this._t0,t=bD(this,e,n));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=n,this._t0=t}}};function PH(e){this._context=new NH(e)}(PH.prototype=Object.create(r1.prototype)).point=function(e,n){r1.prototype.point.call(this,n,e)};function NH(e){this._context=e}NH.prototype={moveTo:function(e,n){this._context.moveTo(n,e)},closePath:function(){this._context.closePath()},lineTo:function(e,n){this._context.lineTo(n,e)},bezierCurveTo:function(e,n,t,i,r,a){this._context.bezierCurveTo(n,e,i,t,a,r)}};function Nve(e){return new r1(e)}function $ve(e){return new PH(e)}function $H(e){this._context=e}$H.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,n=this._y,t=e.length;if(t)if(this._line?this._context.lineTo(e[0],n[0]):this._context.moveTo(e[0],n[0]),t===2)this._context.lineTo(e[1],n[1]);else for(var i=kD(e),r=kD(n),a=0,o=1;o =0;--n)r[n]=(o[n]-r[n+1])/a[n];for(a[t-1]=(e[t]+r[t-1])/2,n=0;n =0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,n){switch(e=+e,n=+n,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,n):this._context.moveTo(e,n);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,n),this._context.lineTo(e,n);else{var t=this._x*(1-this._t)+e*this._t;this._context.lineTo(t,this._y),this._context.lineTo(t,n)}break}}this._x=e,this._y=n}};function Lve(e){return new E0(e,.5)}function Ive(e){return new E0(e,0)}function Bve(e){return new E0(e,1)}function ac(e,n){if((o=e.length)>1)for(var t=1,i,r,a=e[n[0]],o,l=a.length;t =0;)t[n]=n;return t}function Fve(e,n){return e[n]}function qve(e){const n=[];return n.key=e,n}function Hve(){var e=Lt([]),n=h4,t=ac,i=Fve;function r(a){var o=Array.from(e.apply(this,arguments),qve),l,f=o.length,c=-1,h;for(const d of a)for(l=0,++c;l 0){for(var t,i,r=0,a=e[0].length,o;r0){for(var t=0,i=e[n[0]],r,a=i.length;t0)||!((a=(r=e[n[0]]).length)>0))){for(var t=0,i=1,r,a,o;i=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Qve(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var zH={symbolCircle:H9,symbolCross:bve,symbolDiamond:kve,symbolSquare:_ve,symbolStar:Ave,symbolTriangle:Ove,symbolWye:Eve},Jve=Math.PI/180,ege=function(n){var t="symbol".concat(A0(n));return zH[t]||H9},nge=function(n,t,i){if(t==="area")return n;switch(i){case"cross":return 5*n*n/9;case"diamond":return .5*n*n/Math.sqrt(3);case"square":return n*n;case"star":{var r=18*Jve;return 1.25*n*n*(Math.tan(r)-Math.tan(r*2)*Math.pow(Math.tan(r),2))}case"triangle":return Math.sqrt(3)*n*n/4;case"wye":return(21-10*Math.sqrt(3))*n*n/8;default:return Math.PI*n*n/4}},tge=function(n,t){zH["symbol".concat(A0(n))]=t},U9=function(n){var t=n.type,i=t===void 0?"circle":t,r=n.size,a=r===void 0?64:r,o=n.sizeType,l=o===void 0?"area":o,f=Zve(n,Gve),c=xD(xD({},f),{},{type:i,size:a,sizeType:l}),h=function(){var k=ege(i),_=Tve().type(k).size(nge(a,l,i));return _()},d=c.className,p=c.cx,v=c.cy,b=Hn(c,!0);return p===+p&&v===+v&&a===+a?Q.createElement("path",m4({},b,{className:dn("recharts-symbols",d),transform:"translate(".concat(p,", ").concat(v,")"),d:h()})):null};U9.registerSymbol=tge;function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},oc(e)}function p4(){return p4=Object.assign?Object.assign.bind():function(e){for(var n=1;n `);var C=v.inactive?c:v.color;return Q.createElement("li",p4({className:k,style:d,key:"legend-item-".concat(b)},Jg(i.props,v,b)),Q.createElement(l4,{width:o,height:o,viewBox:h,style:p},i.renderIcon(v)),Q.createElement("span",{className:"recharts-legend-item-text",style:{color:C}},w?w(_,v,b):_))})}},{key:"render",value:function(){var i=this.props,r=i.payload,a=i.layout,o=i.align;if(!r||!r.length)return null;var l={padding:0,margin:0,textAlign:a==="horizontal"?o:"left"};return Q.createElement("ul",{className:"recharts-default-legend",style:l},this.renderItems())}}])})(A.PureComponent);rm(V9,"displayName","Legend");rm(V9,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var k2,CD;function dge(){if(CD)return k2;CD=1;var e=x0();function n(){this.__data__=new e,this.size=0}return k2=n,k2}var _2,AD;function hge(){if(AD)return _2;AD=1;function e(n){var t=this.__data__,i=t.delete(n);return this.size=t.size,i}return _2=e,_2}var x2,OD;function mge(){if(OD)return x2;OD=1;function e(n){return this.__data__.get(n)}return x2=e,x2}var S2,jD;function pge(){if(jD)return S2;jD=1;function e(n){return this.__data__.has(n)}return S2=e,S2}var C2,ED;function vge(){if(ED)return C2;ED=1;var e=x0(),n=N9(),t=$9(),i=200;function r(a,o){var l=this.__data__;if(l instanceof e){var f=l.__data__;if(!n||f.length v))return!1;var w=d.get(o),k=d.get(l);if(w&&k)return w==l&&k==o;var _=-1,C=!0,x=f&r?new e:void 0;for(d.set(o,l),d.set(l,o);++_ -1&&i%1==0&&i -1&&t%1==0&&t<=e}return G2=n,G2}var Y2,JD;function Ege(){if(JD)return Y2;JD=1;var e=vs(),n=K9(),t=gs(),i="[object Arguments]",r="[object Array]",a="[object Boolean]",o="[object Date]",l="[object Error]",f="[object Function]",c="[object Map]",h="[object Number]",d="[object Object]",p="[object RegExp]",v="[object Set]",b="[object String]",w="[object WeakMap]",k="[object ArrayBuffer]",_="[object DataView]",C="[object Float32Array]",x="[object Float64Array]",E="[object Int8Array]",O="[object Int16Array]",j="[object Int32Array]",M="[object Uint8Array]",N="[object Uint8ClampedArray]",H="[object Uint16Array]",P="[object Uint32Array]",z={};z[C]=z[x]=z[E]=z[O]=z[j]=z[M]=z[N]=z[H]=z[P]=!0,z[i]=z[r]=z[k]=z[a]=z[_]=z[o]=z[l]=z[f]=z[c]=z[h]=z[d]=z[p]=z[v]=z[b]=z[w]=!1;function F(G){return t(G)&&n(G.length)&&!!z[e(G)]}return Y2=F,Y2}var K2,e7;function GH(){if(e7)return K2;e7=1;function e(n){return function(t){return n(t)}}return K2=e,K2}var Ch={exports:{}};Ch.exports;var n7;function Tge(){return n7||(n7=1,(function(e,n){var t=dH(),i=n&&!n.nodeType&&n,r=i&&!0&&e&&!e.nodeType&&e,a=r&&r.exports===i,o=a&&t.process,l=(function(){try{var f=r&&r.require&&r.require("util").types;return f||o&&o.binding&&o.binding("util")}catch{}})();e.exports=l})(Ch,Ch.exports)),Ch.exports}var X2,t7;function YH(){if(t7)return X2;t7=1;var e=Ege(),n=GH(),t=Tge(),i=t&&t.isTypedArray,r=i?n(i):e;return X2=r,X2}var Z2,i7;function Mge(){if(i7)return Z2;i7=1;var e=Age(),n=G9(),t=Ar(),i=WH(),r=Y9(),a=YH(),o=Object.prototype,l=o.hasOwnProperty;function f(c,h){var d=t(c),p=!d&&n(c),v=!d&&!p&&i(c),b=!d&&!p&&!v&&a(c),w=d||p||v||b,k=w?e(c.length,String):[],_=k.length;for(var C in c)(h||l.call(c,C))&&!(w&&(C=="length"||v&&(C=="offset"||C=="parent")||b&&(C=="buffer"||C=="byteLength"||C=="byteOffset")||r(C,_)))&&k.push(C);return k}return Z2=f,Z2}var Q2,r7;function Dge(){if(r7)return Q2;r7=1;var e=Object.prototype;function n(t){var i=t&&t.constructor,r=typeof i=="function"&&i.prototype||e;return t===r}return Q2=n,Q2}var J2,a7;function KH(){if(a7)return J2;a7=1;function e(n,t){return function(i){return n(t(i))}}return J2=e,J2}var ex,o7;function Rge(){if(o7)return ex;o7=1;var e=KH(),n=e(Object.keys,Object);return ex=n,ex}var nx,s7;function Pge(){if(s7)return nx;s7=1;var e=Dge(),n=Rge(),t=Object.prototype,i=t.hasOwnProperty;function r(a){if(!e(a))return n(a);var o=[];for(var l in Object(a))i.call(a,l)&&l!="constructor"&&o.push(l);return o}return nx=r,nx}var tx,l7;function dp(){if(l7)return tx;l7=1;var e=R9(),n=K9();function t(i){return i!=null&&n(i.length)&&!e(i)}return tx=t,tx}var ix,u7;function T0(){if(u7)return ix;u7=1;var e=Mge(),n=Pge(),t=dp();function i(r){return t(r)?e(r):n(r)}return ix=i,ix}var rx,f7;function Nge(){if(f7)return rx;f7=1;var e=_ge(),n=Cge(),t=T0();function i(r){return e(r,t,n)}return rx=i,rx}var ax,c7;function $ge(){if(c7)return ax;c7=1;var e=Nge(),n=1,t=Object.prototype,i=t.hasOwnProperty;function r(a,o,l,f,c,h){var d=l&n,p=e(a),v=p.length,b=e(o),w=b.length;if(v!=w&&!d)return!1;for(var k=v;k--;){var _=p[k];if(!(d?_ in o:i.call(o,_)))return!1}var C=h.get(a),x=h.get(o);if(C&&x)return C==o&&x==a;var E=!0;h.set(a,o),h.set(o,a);for(var O=d;++k -1}return Mx=n,Mx}var Dx,L7;function t1e(){if(L7)return Dx;L7=1;function e(n,t,i){for(var r=-1,a=n==null?0:n.length;++r=o){var _=c?null:r(f);if(_)return a(_);b=!1,p=i,k=new e}else k=c?[]:w;e:for(;++d =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function g1e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function y1e(e){return e.value}function b1e(e,n){if(Q.isValidElement(e))return Q.cloneElement(e,n);if(typeof e=="function")return Q.createElement(e,n);n.ref;var t=v1e(n,l1e);return Q.createElement(V9,t)}var W7=1,Jo=(function(e){function n(){var t;u1e(this,n);for(var i=arguments.length,r=new Array(i),a=0;aW7||Math.abs(r.height-this.lastBoundingBox.height)>W7)&&(this.lastBoundingBox.width=r.width,this.lastBoundingBox.height=r.height,i&&i(r)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,i&&i(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?Bo({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(i){var r=this.props,a=r.layout,o=r.align,l=r.verticalAlign,f=r.margin,c=r.chartWidth,h=r.chartHeight,d,p;if(!i||(i.left===void 0||i.left===null)&&(i.right===void 0||i.right===null))if(o==="center"&&a==="vertical"){var v=this.getBBoxSnapshot();d={left:((c||0)-v.width)/2}}else d=o==="right"?{right:f&&f.right||0}:{left:f&&f.left||0};if(!i||(i.top===void 0||i.top===null)&&(i.bottom===void 0||i.bottom===null))if(l==="middle"){var b=this.getBBoxSnapshot();p={top:((h||0)-b.height)/2}}else p=l==="bottom"?{bottom:f&&f.bottom||0}:{top:f&&f.top||0};return Bo(Bo({},d),p)}},{key:"render",value:function(){var i=this,r=this.props,a=r.content,o=r.width,l=r.height,f=r.wrapperStyle,c=r.payloadUniqBy,h=r.payload,d=Bo(Bo({position:"absolute",width:o||"auto",height:l||"auto"},this.getDefaultPosition(f)),f);return Q.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(v){i.wrapperNode=v}},b1e(a,Bo(Bo({},this.props),{},{payload:eU(h,c,y1e)})))}}],[{key:"getWithHeight",value:function(i,r){var a=Bo(Bo({},this.defaultProps),i.props),o=a.layout;return o==="vertical"&&We(i.props.height)?{height:i.props.height}:o==="horizontal"?{width:i.props.width||r}:null}}])})(A.PureComponent);M0(Jo,"displayName","Legend");M0(Jo,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var zx,G7;function w1e(){if(G7)return zx;G7=1;var e=cp(),n=G9(),t=Ar(),i=e?e.isConcatSpreadable:void 0;function r(a){return t(a)||n(a)||!!(i&&a&&a[i])}return zx=r,zx}var Lx,Y7;function iU(){if(Y7)return Lx;Y7=1;var e=VH(),n=w1e();function t(i,r,a,o,l){var f=-1,c=i.length;for(a||(a=n),l||(l=[]);++f 0&&a(h)?r>1?t(h,r-1,a,o,l):e(l,h):o||(l[l.length]=h)}return l}return Lx=t,Lx}var Ix,K7;function k1e(){if(K7)return Ix;K7=1;function e(n){return function(t,i,r){for(var a=-1,o=Object(t),l=r(t),f=l.length;f--;){var c=l[n?f:++a];if(i(o[c],c,o)===!1)break}return t}}return Ix=e,Ix}var Bx,X7;function _1e(){if(X7)return Bx;X7=1;var e=k1e(),n=e();return Bx=n,Bx}var Fx,Z7;function rU(){if(Z7)return Fx;Z7=1;var e=_1e(),n=T0();function t(i,r){return i&&e(i,r,n)}return Fx=t,Fx}var qx,Q7;function x1e(){if(Q7)return qx;Q7=1;var e=dp();function n(t,i){return function(r,a){if(r==null)return r;if(!e(r))return t(r,a);for(var o=r.length,l=i?o:-1,f=Object(r);(i?l--:++l i||l&&f&&h&&!c&&!d||a&&f&&h||!r&&h||!o)return 1;if(!a&&!l&&!d&&t=c)return h;var d=r[a];return h*(d=="desc"?-1:1)}}return t.index-i.index}return Gx=n,Gx}var Yx,rR;function O1e(){if(rR)return Yx;rR=1;var e=z9(),n=L9(),t=_l(),i=aU(),r=S1e(),a=GH(),o=A1e(),l=nd(),f=Ar();function c(h,d,p){d.length?d=e(d,function(w){return f(w)?function(k){return n(k,w.length===1?w[0]:w)}:w}):d=[l];var v=-1;d=e(d,a(t));var b=i(h,function(w,k,_){var C=e(d,function(x){return x(w)});return{criteria:C,index:++v,value:w}});return r(b,function(w,k){return o(w,k,p)})}return Yx=c,Yx}var Kx,aR;function j1e(){if(aR)return Kx;aR=1;function e(n,t,i){switch(i.length){case 0:return n.call(t);case 1:return n.call(t,i[0]);case 2:return n.call(t,i[0],i[1]);case 3:return n.call(t,i[0],i[1],i[2])}return n.apply(t,i)}return Kx=e,Kx}var Xx,oR;function E1e(){if(oR)return Xx;oR=1;var e=j1e(),n=Math.max;function t(i,r,a){return r=n(r===void 0?i.length-1:r,0),function(){for(var o=arguments,l=-1,f=n(o.length-r,0),c=Array(f);++l 0){if(++a>=e)return arguments[0]}else a=0;return r.apply(void 0,arguments)}}return e3=i,e3}var n3,cR;function R1e(){if(cR)return n3;cR=1;var e=M1e(),n=D1e(),t=n(e);return n3=t,n3}var t3,dR;function P1e(){if(dR)return t3;dR=1;var e=nd(),n=E1e(),t=R1e();function i(r,a){return t(n(r,a,e),r+"")}return t3=i,t3}var i3,hR;function D0(){if(hR)return i3;hR=1;var e=P9(),n=dp(),t=Y9(),i=kl();function r(a,o,l){if(!i(l))return!1;var f=typeof o;return(f=="number"?n(l)&&t(o,l.length):f=="string"&&o in l)?e(l[o],a):!1}return i3=r,i3}var r3,mR;function N1e(){if(mR)return r3;mR=1;var e=iU(),n=O1e(),t=P1e(),i=D0(),r=t(function(a,o){if(a==null)return[];var l=o.length;return l>1&&i(a,o[0],o[1])?o=[]:l>2&&i(o[0],o[1],o[2])&&(o=[o[0]]),n(a,e(o,1),[])});return r3=r,r3}var $1e=N1e();const Q9=mt($1e);function am(e){"@babel/helpers - typeof";return am=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},am(e)}function y4(){return y4=Object.assign?Object.assign.bind():function(e){for(var n=1;n e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =n.x),"".concat(oh,"-left"),We(t)&&n&&We(n.x)&&t =n.y),"".concat(oh,"-top"),We(i)&&n&&We(n.y)&&i w?Math.max(h,f[i]):Math.max(d,f[i])}function Z1e(e){var n=e.translateX,t=e.translateY,i=e.useTranslate3d;return{transform:i?"translate3d(".concat(n,"px, ").concat(t,"px, 0)"):"translate(".concat(n,"px, ").concat(t,"px)")}}function Q1e(e){var n=e.allowEscapeViewBox,t=e.coordinate,i=e.offsetTopLeft,r=e.position,a=e.reverseDirection,o=e.tooltipBox,l=e.useTranslate3d,f=e.viewBox,c,h,d;return o.height>0&&o.width>0&&t?(h=gR({allowEscapeViewBox:n,coordinate:t,key:"x",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.width,viewBox:f,viewBoxDimension:f.width}),d=gR({allowEscapeViewBox:n,coordinate:t,key:"y",offsetTopLeft:i,position:r,reverseDirection:a,tooltipDimension:o.height,viewBox:f,viewBoxDimension:f.height}),c=Z1e({translateX:h,translateY:d,useTranslate3d:l})):c=K1e,{cssProperties:c,cssClasses:X1e({translateX:h,translateY:d,coordinate:t})}}function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lc(e)}function yR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function bR(e){for(var n=1;n wR||Math.abs(i.height-this.state.lastBoundingBox.height)>wR)&&this.setState({lastBoundingBox:{width:i.width,height:i.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var i,r;this.props.active&&this.updateBBox(),this.state.dismissed&&(((i=this.props.coordinate)===null||i===void 0?void 0:i.x)!==this.state.dismissedAtCoordinate.x||((r=this.props.coordinate)===null||r===void 0?void 0:r.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var i=this,r=this.props,a=r.active,o=r.allowEscapeViewBox,l=r.animationDuration,f=r.animationEasing,c=r.children,h=r.coordinate,d=r.hasPayload,p=r.isAnimationActive,v=r.offset,b=r.position,w=r.reverseDirection,k=r.useTranslate3d,_=r.viewBox,C=r.wrapperStyle,x=Q1e({allowEscapeViewBox:o,coordinate:h,offsetTopLeft:v,position:b,reverseDirection:w,tooltipBox:this.state.lastBoundingBox,useTranslate3d:k,viewBox:_}),E=x.cssClasses,O=x.cssProperties,j=bR(bR({transition:p&&a?"transform ".concat(l,"ms ").concat(f):void 0},O),{},{pointerEvents:"none",visibility:!this.state.dismissed&&a&&d?"visible":"hidden",position:"absolute",top:0,left:0},C);return Q.createElement("div",{tabIndex:-1,className:E,style:j,ref:function(N){i.wrapperNode=N}},c)}}])})(A.PureComponent),lye=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Iu={isSsr:lye()};function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},uc(e)}function kR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function _R(e){for(var n=1;n 0;return Q.createElement(sye,{allowEscapeViewBox:o,animationDuration:l,animationEasing:f,isAnimationActive:p,active:a,coordinate:h,hasPayload:j,offset:v,position:k,reverseDirection:_,useTranslate3d:C,viewBox:x,wrapperStyle:E},yye(c,_R(_R({},this.props),{},{payload:O})))}}])})(A.PureComponent);J9(ca,"displayName","Tooltip");J9(ca,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Iu.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var o3,xR;function bye(){if(xR)return o3;xR=1;var e=xo(),n=function(){return e.Date.now()};return o3=n,o3}var s3,SR;function wye(){if(SR)return s3;SR=1;var e=/\s/;function n(t){for(var i=t.length;i--&&e.test(t.charAt(i)););return i}return s3=n,s3}var l3,CR;function kye(){if(CR)return l3;CR=1;var e=wye(),n=/^\s+/;function t(i){return i&&i.slice(0,e(i)+1).replace(n,"")}return l3=t,l3}var u3,AR;function cU(){if(AR)return u3;AR=1;var e=kye(),n=kl(),t=Zc(),i=NaN,r=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,l=parseInt;function f(c){if(typeof c=="number")return c;if(t(c))return i;if(n(c)){var h=typeof c.valueOf=="function"?c.valueOf():c;c=n(h)?h+"":h}if(typeof c!="string")return c===0?c:+c;c=e(c);var d=a.test(c);return d||o.test(c)?l(c.slice(2),d?2:8):r.test(c)?i:+c}return u3=f,u3}var f3,OR;function _ye(){if(OR)return f3;OR=1;var e=kl(),n=bye(),t=cU(),i="Expected a function",r=Math.max,a=Math.min;function o(l,f,c){var h,d,p,v,b,w,k=0,_=!1,C=!1,x=!0;if(typeof l!="function")throw new TypeError(i);f=t(f)||0,e(c)&&(_=!!c.leading,C="maxWait"in c,p=C?r(t(c.maxWait)||0,f):p,x="trailing"in c?!!c.trailing:x);function E(G){var U=h,$=d;return h=d=void 0,k=G,v=l.apply($,U),v}function O(G){return k=G,b=setTimeout(N,f),_?E(G):v}function j(G){var U=G-w,$=G-k,R=f-U;return C?a(R,p-$):R}function M(G){var U=G-w,$=G-k;return w===void 0||U>=f||U<0||C&&$>=p}function N(){var G=n();if(M(G))return H(G);b=setTimeout(N,j(G))}function H(G){return b=void 0,x&&h?E(G):(h=d=void 0,v)}function P(){b!==void 0&&clearTimeout(b),k=0,h=w=d=b=void 0}function z(){return b===void 0?v:H(n())}function F(){var G=n(),U=M(G);if(h=arguments,d=this,w=G,U){if(b===void 0)return O(w);if(C)return clearTimeout(b),b=setTimeout(N,f),E(w)}return b===void 0&&(b=setTimeout(N,f)),v}return F.cancel=P,F.flush=z,F}return f3=o,f3}var c3,jR;function xye(){if(jR)return c3;jR=1;var e=_ye(),n=kl(),t="Expected a function";function i(r,a,o){var l=!0,f=!0;if(typeof r!="function")throw new TypeError(t);return n(o)&&(l="leading"in o?!!o.leading:l,f="trailing"in o?!!o.trailing:f),e(r,a,{leading:l,maxWait:a,trailing:f})}return c3=i,c3}var Sye=xye();const dU=mt(Sye);function sm(e){"@babel/helpers - typeof";return sm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},sm(e)}function ER(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function Kv(e){for(var n=1;n e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 0&&(G=dU(G,w,{trailing:!0,leading:!1}));var U=new ResizeObserver(G),$=O.current.getBoundingClientRect(),R=$.width,I=$.height;return z(R,I),U.observe(O.current),function(){U.disconnect()}},[z,w]);var F=A.useMemo(function(){var G=H.containerWidth,U=H.containerHeight;if(G<0||U<0)return null;Qo(lu(o)||lu(f),`The width(%s) and height(%s) are both fixed numbers, + maybe you don't need to use a ResponsiveContainer.`,o,f),Qo(!t||t>0,"The aspect(%s) must be greater than zero.",t);var $=lu(o)?G:o,R=lu(f)?U:f;t&&t>0&&($?R=$/t:R&&($=R*t),p&&R>p&&(R=p)),Qo($>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0, + please check the style of container, or the props width(%s) and height(%s), + or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the + height and width.`,$,R,o,f,h,d,t);var I=!Array.isArray(v)&&Zo(v.type).endsWith("Chart");return Q.Children.map(v,function(q){return Q.isValidElement(q)?A.cloneElement(q,Kv({width:$,height:R},I?{style:Kv({height:"100%",width:"100%",maxHeight:R,maxWidth:$},q.props.style)}:{})):q})},[t,v,f,p,d,h,H,o]);return Q.createElement("div",{id:k?"".concat(k):void 0,className:dn("recharts-responsive-container",_),style:Kv(Kv({},E),{},{width:o,height:f,minWidth:h,minHeight:d,maxHeight:p}),ref:O},F)}),hU=function(n){return null};hU.displayName="Cell";function lm(e){"@babel/helpers - typeof";return lm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},lm(e)}function MR(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function _4(e){for(var n=1;n 1&&arguments[1]!==void 0?arguments[1]:{};if(n==null||Iu.isSsr)return{width:0,height:0};var i=Lye(t),r=JSON.stringify({text:n,copyStyle:i});if(Tf.widthCache[r])return Tf.widthCache[r];try{var a=document.getElementById(DR);a||(a=document.createElement("span"),a.setAttribute("id",DR),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));var o=_4(_4({},zye),i);Object.assign(a.style,o),a.textContent="".concat(n);var l=a.getBoundingClientRect(),f={width:l.width,height:l.height};return Tf.widthCache[r]=f,++Tf.cacheCount>$ye&&(Tf.cacheCount=0,Tf.widthCache={}),f}catch{return{width:0,height:0}}},Iye=function(n){return{top:n.top+window.scrollY-document.documentElement.clientTop,left:n.left+window.scrollX-document.documentElement.clientLeft}};function um(e){"@babel/helpers - typeof";return um=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},um(e)}function u1(e,n){return Hye(e)||qye(e,n)||Fye(e,n)||Bye()}function Bye(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fye(e,n){if(e){if(typeof e=="string")return RR(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return RR(e,n)}}function RR(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function i0e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function IR(e,n){return s0e(e)||o0e(e,n)||a0e(e,n)||r0e()}function r0e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function a0e(e,n){if(e){if(typeof e=="string")return BR(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return BR(e,n)}}function BR(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 0&&arguments[0]!==void 0?arguments[0]:[];return $.reduce(function(R,I){var q=I.word,Y=I.width,D=R[R.length-1];if(D&&(r==null||a||D.width+Y+i I.width?R:I})};if(!h)return v;for(var w="…",k=function($){var R=d.slice(0,$),I=gU({breakAll:c,style:f,children:R+w}).wordsWithComputedWidth,q=p(I),Y=q.length>o||b(q).width>Number(r);return[Y,q]},_=0,C=d.length-1,x=0,E;_<=C&&x<=d.length-1;){var O=Math.floor((_+C)/2),j=O-1,M=k(j),N=IR(M,2),H=N[0],P=N[1],z=k(O),F=IR(z,1),G=F[0];if(!H&&!G&&(_=O+1),H&&G&&(C=O-1),!H&&G){E=P;break}x++}return E||v},FR=function(n){var t=Gn(n)?[]:n.toString().split(vU);return[{words:t}]},u0e=function(n){var t=n.width,i=n.scaleToFit,r=n.children,a=n.style,o=n.breakAll,l=n.maxLines;if((t||i)&&!Iu.isSsr){var f,c,h=gU({breakAll:o,children:r,style:a});if(h){var d=h.wordsWithComputedWidth,p=h.spaceWidth;f=d,c=p}else return FR(r);return l0e({breakAll:o,children:r,maxLines:l,style:a},f,c,t,i)}return FR(r)},qR="#808080",f1=function(n){var t=n.x,i=t===void 0?0:t,r=n.y,a=r===void 0?0:r,o=n.lineHeight,l=o===void 0?"1em":o,f=n.capHeight,c=f===void 0?"0.71em":f,h=n.scaleToFit,d=h===void 0?!1:h,p=n.textAnchor,v=p===void 0?"start":p,b=n.verticalAnchor,w=b===void 0?"end":b,k=n.fill,_=k===void 0?qR:k,C=LR(n,n0e),x=A.useMemo(function(){return u0e({breakAll:C.breakAll,children:C.children,maxLines:C.maxLines,scaleToFit:d,style:C.style,width:C.width})},[C.breakAll,C.children,C.maxLines,d,C.style,C.width]),E=C.dx,O=C.dy,j=C.angle,M=C.className,N=C.breakAll,H=LR(C,t0e);if(!_i(i)||!_i(a))return null;var P=i+(We(E)?E:0),z=a+(We(O)?O:0),F;switch(w){case"start":F=d3("calc(".concat(c,")"));break;case"middle":F=d3("calc(".concat((x.length-1)/2," * -").concat(l," + (").concat(c," / 2))"));break;default:F=d3("calc(".concat(x.length-1," * -").concat(l,")"));break}var G=[];if(d){var U=x[0].width,$=C.width;G.push("scale(".concat((We($)?$/U:1)/U,")"))}return j&&G.push("rotate(".concat(j,", ").concat(P,", ").concat(z,")")),G.length&&(H.transform=G.join(" ")),Q.createElement("text",x4({},Hn(H,!0),{x:P,y:z,className:dn("recharts-text",M),textAnchor:v,fill:_.includes("url")?qR:_}),x.map(function(R,I){var q=R.words.join(N?"":" ");return Q.createElement("tspan",{x:P,dy:I===0?F:l,key:"".concat(q,"-").concat(I)},q)}))};function ol(e,n){return e==null||n==null?NaN:e n?1:e>=n?0:NaN}function f0e(e,n){return e==null||n==null?NaN:n e?1:n>=e?0:NaN}function nA(e){let n,t,i;e.length!==2?(n=ol,t=(l,f)=>ol(e(l),f),i=(l,f)=>e(l)-f):(n=e===ol||e===f0e?e:c0e,t=e,i=e);function r(l,f,c=0,h=l.length){if(c >>1;t(l[d],f)<0?c=d+1:h=d}while(c >>1;t(l[d],f)<=0?c=d+1:h=d}while(c c&&i(l[d-1],f)>-i(l[d],f)?d-1:d}return{left:r,center:o,right:a}}function c0e(){return 0}function yU(e){return e===null?NaN:+e}function*d0e(e,n){for(let t of e)t!=null&&(t=+t)>=t&&(yield t)}const h0e=nA(ol),hp=h0e.right;nA(yU).center;class HR extends Map{constructor(n,t=v0e){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),n!=null)for(const[i,r]of n)this.set(i,r)}get(n){return super.get(UR(this,n))}has(n){return super.has(UR(this,n))}set(n,t){return super.set(m0e(this,n),t)}delete(n){return super.delete(p0e(this,n))}}function UR({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):t}function m0e({_intern:e,_key:n},t){const i=n(t);return e.has(i)?e.get(i):(e.set(i,t),t)}function p0e({_intern:e,_key:n},t){const i=n(t);return e.has(i)&&(t=e.get(i),e.delete(i)),t}function v0e(e){return e!==null&&typeof e=="object"?e.valueOf():e}function g0e(e=ol){if(e===ol)return bU;if(typeof e!="function")throw new TypeError("compare is not a function");return(n,t)=>{const i=e(n,t);return i||i===0?i:(e(t,t)===0)-(e(n,n)===0)}}function bU(e,n){return(e==null||!(e>=e))-(n==null||!(n>=n))||(e n?1:0)}const y0e=Math.sqrt(50),b0e=Math.sqrt(10),w0e=Math.sqrt(2);function c1(e,n,t){const i=(n-e)/Math.max(0,t),r=Math.floor(Math.log10(i)),a=i/Math.pow(10,r),o=a>=y0e?10:a>=b0e?5:a>=w0e?2:1;let l,f,c;return r<0?(c=Math.pow(10,-r)/o,l=Math.round(e*c),f=Math.round(n*c),l/c n&&--f,c=-c):(c=Math.pow(10,r)*o,l=Math.round(e/c),f=Math.round(n/c),l*c n&&--f),f 0))return[];if(e===n)return[e];const i=n =r))return[];const l=a-r+1,f=new Array(l);if(i)if(o<0)for(let c=0;c =i)&&(t=i);return t}function WR(e,n){let t;for(const i of e)i!=null&&(t>i||t===void 0&&i>=i)&&(t=i);return t}function wU(e,n,t=0,i=1/0,r){if(n=Math.floor(n),t=Math.floor(Math.max(0,t)),i=Math.floor(Math.min(e.length-1,i)),!(t<=n&&n<=i))return e;for(r=r===void 0?bU:g0e(r);i>t;){if(i-t>600){const f=i-t+1,c=n-t+1,h=Math.log(f),d=.5*Math.exp(2*h/3),p=.5*Math.sqrt(h*d*(f-d)/f)*(c-f/2<0?-1:1),v=Math.max(t,Math.floor(n-c*d/f+p)),b=Math.min(i,Math.floor(n+(f-c)*d/f+p));wU(e,n,v,b,r)}const a=e[n];let o=t,l=i;for(sh(e,t,n),r(e[i],a)>0&&sh(e,t,i);o 0;)--l}r(e[t],a)===0?sh(e,t,l):(++l,sh(e,l,i)),l<=n&&(t=l+1),n<=l&&(i=l-1)}return e}function sh(e,n,t){const i=e[n];e[n]=e[t],e[t]=i}function k0e(e,n,t){if(e=Float64Array.from(d0e(e)),!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return WR(e);if(n>=1)return VR(e);var i,r=(i-1)*n,a=Math.floor(r),o=VR(wU(e,a).subarray(0,a+1)),l=WR(e.subarray(a+1));return o+(l-o)*(r-a)}}function _0e(e,n,t=yU){if(!(!(i=e.length)||isNaN(n=+n))){if(n<=0||i<2)return+t(e[0],0,e);if(n>=1)return+t(e[i-1],i-1,e);var i,r=(i-1)*n,a=Math.floor(r),o=+t(e[a],a,e),l=+t(e[a+1],a+1,e);return o+(l-o)*(r-a)}}function x0e(e,n,t){e=+e,n=+n,t=(r=arguments.length)<2?(n=e,e=0,1):r<3?1:+t;for(var i=-1,r=Math.max(0,Math.ceil((n-e)/t))|0,a=new Array(r);++i >8&15|n>>4&240,n>>4&15|n&240,(n&15)<<4|n&15,1):t===8?Zv(n>>24&255,n>>16&255,n>>8&255,(n&255)/255):t===4?Zv(n>>12&15|n>>8&240,n>>8&15|n>>4&240,n>>4&15|n&240,((n&15)<<4|n&15)/255):null):(n=C0e.exec(e))?new _r(n[1],n[2],n[3],1):(n=A0e.exec(e))?new _r(n[1]*255/100,n[2]*255/100,n[3]*255/100,1):(n=O0e.exec(e))?Zv(n[1],n[2],n[3],n[4]):(n=j0e.exec(e))?Zv(n[1]*255/100,n[2]*255/100,n[3]*255/100,n[4]):(n=E0e.exec(e))?JR(n[1],n[2]/100,n[3]/100,1):(n=T0e.exec(e))?JR(n[1],n[2]/100,n[3]/100,n[4]):GR.hasOwnProperty(e)?XR(GR[e]):e==="transparent"?new _r(NaN,NaN,NaN,0):null}function XR(e){return new _r(e>>16&255,e>>8&255,e&255,1)}function Zv(e,n,t,i){return i<=0&&(e=n=t=NaN),new _r(e,n,t,i)}function R0e(e){return e instanceof mp||(e=hm(e)),e?(e=e.rgb(),new _r(e.r,e.g,e.b,e.opacity)):new _r}function j4(e,n,t,i){return arguments.length===1?R0e(e):new _r(e,n,t,i??1)}function _r(e,n,t,i){this.r=+e,this.g=+n,this.b=+t,this.opacity=+i}iA(_r,j4,_U(mp,{brighter(e){return e=e==null?d1:Math.pow(d1,e),new _r(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?cm:Math.pow(cm,e),new _r(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new _r(mu(this.r),mu(this.g),mu(this.b),h1(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ZR,formatHex:ZR,formatHex8:P0e,formatRgb:QR,toString:QR}));function ZR(){return`#${uu(this.r)}${uu(this.g)}${uu(this.b)}`}function P0e(){return`#${uu(this.r)}${uu(this.g)}${uu(this.b)}${uu((isNaN(this.opacity)?1:this.opacity)*255)}`}function QR(){const e=h1(this.opacity);return`${e===1?"rgb(":"rgba("}${mu(this.r)}, ${mu(this.g)}, ${mu(this.b)}${e===1?")":`, ${e})`}`}function h1(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function mu(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function uu(e){return e=mu(e),(e<16?"0":"")+e.toString(16)}function JR(e,n,t,i){return i<=0?e=n=t=NaN:t<=0||t>=1?e=n=NaN:n<=0&&(e=NaN),new La(e,n,t,i)}function xU(e){if(e instanceof La)return new La(e.h,e.s,e.l,e.opacity);if(e instanceof mp||(e=hm(e)),!e)return new La;if(e instanceof La)return e;e=e.rgb();var n=e.r/255,t=e.g/255,i=e.b/255,r=Math.min(n,t,i),a=Math.max(n,t,i),o=NaN,l=a-r,f=(a+r)/2;return l?(n===a?o=(t-i)/l+(t0&&f<1?0:o,new La(o,l,f,e.opacity)}function N0e(e,n,t,i){return arguments.length===1?xU(e):new La(e,n,t,i??1)}function La(e,n,t,i){this.h=+e,this.s=+n,this.l=+t,this.opacity=+i}iA(La,N0e,_U(mp,{brighter(e){return e=e==null?d1:Math.pow(d1,e),new La(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?cm:Math.pow(cm,e),new La(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,n=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,i=t+(t<.5?t:1-t)*n,r=2*t-i;return new _r(h3(e>=240?e-240:e+120,r,i),h3(e,r,i),h3(e<120?e+240:e-120,r,i),this.opacity)},clamp(){return new La(eP(this.h),Qv(this.s),Qv(this.l),h1(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=h1(this.opacity);return`${e===1?"hsl(":"hsla("}${eP(this.h)}, ${Qv(this.s)*100}%, ${Qv(this.l)*100}%${e===1?")":`, ${e})`}`}}));function eP(e){return e=(e||0)%360,e<0?e+360:e}function Qv(e){return Math.max(0,Math.min(1,e||0))}function h3(e,n,t){return(e<60?n+(t-n)*e/60:e<180?t:e<240?n+(t-n)*(240-e)/60:n)*255}const rA=e=>()=>e;function $0e(e,n){return function(t){return e+t*n}}function z0e(e,n,t){return e=Math.pow(e,t),n=Math.pow(n,t)-e,t=1/t,function(i){return Math.pow(e+i*n,t)}}function L0e(e){return(e=+e)==1?SU:function(n,t){return t-n?z0e(n,t,e):rA(isNaN(n)?t:n)}}function SU(e,n){var t=n-e;return t?$0e(e,t):rA(isNaN(e)?n:e)}const nP=(function e(n){var t=L0e(n);function i(r,a){var o=t((r=j4(r)).r,(a=j4(a)).r),l=t(r.g,a.g),f=t(r.b,a.b),c=SU(r.opacity,a.opacity);return function(h){return r.r=o(h),r.g=l(h),r.b=f(h),r.opacity=c(h),r+""}}return i.gamma=e,i})(1);function I0e(e,n){n||(n=[]);var t=e?Math.min(n.length,e.length):0,i=n.slice(),r;return function(a){for(r=0;r t&&(a=n.slice(t,a),l[o]?l[o]+=a:l[++o]=a),(i=i[0])===(r=r[0])?l[o]?l[o]+=r:l[++o]=r:(l[++o]=null,f.push({i:o,x:m1(i,r)})),t=m3.lastIndex;return t n&&(t=e,e=n,n=t),function(i){return Math.max(e,Math.min(n,i))}}function X0e(e,n,t){var i=e[0],r=e[1],a=n[0],o=n[1];return r2?Z0e:X0e,f=c=null,d}function d(p){return p==null||isNaN(p=+p)?a:(f||(f=l(e.map(i),n,t)))(i(o(p)))}return d.invert=function(p){return o(r((c||(c=l(n,e.map(i),m1)))(p)))},d.domain=function(p){return arguments.length?(e=Array.from(p,p1),h()):e.slice()},d.range=function(p){return arguments.length?(n=Array.from(p),h()):n.slice()},d.rangeRound=function(p){return n=Array.from(p),t=aA,h()},d.clamp=function(p){return arguments.length?(o=p?!0:ur,h()):o!==ur},d.interpolate=function(p){return arguments.length?(t=p,h()):t},d.unknown=function(p){return arguments.length?(a=p,d):a},function(p,v){return i=p,r=v,h()}}function oA(){return R0()(ur,ur)}function Q0e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function v1(e,n){if(!isFinite(e)||e===0)return null;var t=(e=n?e.toExponential(n-1):e.toExponential()).indexOf("e"),i=e.slice(0,t);return[i.length>1?i[0]+i.slice(2):i,+e.slice(t+1)]}function fc(e){return e=v1(Math.abs(e)),e?e[1]:NaN}function J0e(e,n){return function(t,i){for(var r=t.length,a=[],o=0,l=e[0],f=0;r>0&&l>0&&(f+l+1>i&&(l=Math.max(1,i-f)),a.push(t.substring(r-=l,r+l)),!((f+=l+1)>i));)l=e[o=(o+1)%e.length];return a.reverse().join(n)}}function ebe(e){return function(n){return n.replace(/[0-9]/g,function(t){return e[+t]})}}var nbe=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function mm(e){if(!(n=nbe.exec(e)))throw new Error("invalid format: "+e);var n;return new sA({fill:n[1],align:n[2],sign:n[3],symbol:n[4],zero:n[5],width:n[6],comma:n[7],precision:n[8]&&n[8].slice(1),trim:n[9],type:n[10]})}mm.prototype=sA.prototype;function sA(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}sA.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function tbe(e){e:for(var n=e.length,t=1,i=-1,r;t 0&&(i=0);break}return i>0?e.slice(0,i)+e.slice(r+1):e}var g1;function ibe(e,n){var t=v1(e,n);if(!t)return g1=void 0,e.toPrecision(n);var i=t[0],r=t[1],a=r-(g1=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,o=i.length;return a===o?i:a>o?i+new Array(a-o+1).join("0"):a>0?i.slice(0,a)+"."+i.slice(a):"0."+new Array(1-a).join("0")+v1(e,Math.max(0,n+a-1))[0]}function iP(e,n){var t=v1(e,n);if(!t)return e+"";var i=t[0],r=t[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const rP={"%":(e,n)=>(e*100).toFixed(n),b:e=>Math.round(e).toString(2),c:e=>e+"",d:Q0e,e:(e,n)=>e.toExponential(n),f:(e,n)=>e.toFixed(n),g:(e,n)=>e.toPrecision(n),o:e=>Math.round(e).toString(8),p:(e,n)=>iP(e*100,n),r:iP,s:ibe,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function aP(e){return e}var oP=Array.prototype.map,sP=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function rbe(e){var n=e.grouping===void 0||e.thousands===void 0?aP:J0e(oP.call(e.grouping,Number),e.thousands+""),t=e.currency===void 0?"":e.currency[0]+"",i=e.currency===void 0?"":e.currency[1]+"",r=e.decimal===void 0?".":e.decimal+"",a=e.numerals===void 0?aP:ebe(oP.call(e.numerals,String)),o=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",f=e.nan===void 0?"NaN":e.nan+"";function c(d,p){d=mm(d);var v=d.fill,b=d.align,w=d.sign,k=d.symbol,_=d.zero,C=d.width,x=d.comma,E=d.precision,O=d.trim,j=d.type;j==="n"?(x=!0,j="g"):rP[j]||(E===void 0&&(E=12),O=!0,j="g"),(_||v==="0"&&b==="=")&&(_=!0,v="0",b="=");var M=(p&&p.prefix!==void 0?p.prefix:"")+(k==="$"?t:k==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),N=(k==="$"?i:/[%p]/.test(j)?o:"")+(p&&p.suffix!==void 0?p.suffix:""),H=rP[j],P=/[defgprs%]/.test(j);E=E===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function z(F){var G=M,U=N,$,R,I;if(j==="c")U=H(F)+U,F="";else{F=+F;var q=F<0||1/F<0;if(F=isNaN(F)?f:H(Math.abs(F),E),O&&(F=tbe(F)),q&&+F==0&&w!=="+"&&(q=!1),G=(q?w==="("?w:l:w==="-"||w==="("?"":w)+G,U=(j==="s"&&!isNaN(F)&&g1!==void 0?sP[8+g1/3]:"")+U+(q&&w==="("?")":""),P){for($=-1,R=F.length;++$ I||I>57){U=(I===46?r+F.slice($+1):F.slice($))+U,F=F.slice(0,$);break}}}x&&!_&&(F=n(F,1/0));var Y=G.length+F.length+U.length,D=Y >1)+G+F+U+D.slice(Y);break;default:F=D+G+F+U;break}return a(F)}return z.toString=function(){return d+""},z}function h(d,p){var v=Math.max(-8,Math.min(8,Math.floor(fc(p)/3)))*3,b=Math.pow(10,-v),w=c((d=mm(d),d.type="f",d),{suffix:sP[8+v/3]});return function(k){return w(b*k)}}return{format:c,formatPrefix:h}}var Jv,lA,CU;abe({thousands:",",grouping:[3],currency:["$",""]});function abe(e){return Jv=rbe(e),lA=Jv.format,CU=Jv.formatPrefix,Jv}function obe(e){return Math.max(0,-fc(Math.abs(e)))}function sbe(e,n){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(fc(n)/3)))*3-fc(Math.abs(e)))}function lbe(e,n){return e=Math.abs(e),n=Math.abs(n)-e,Math.max(0,fc(n)-fc(e))+1}function AU(e,n,t,i){var r=A4(e,n,t),a;switch(i=mm(i??",f"),i.type){case"s":{var o=Math.max(Math.abs(e),Math.abs(n));return i.precision==null&&!isNaN(a=sbe(r,o))&&(i.precision=a),CU(i,o)}case"":case"e":case"g":case"p":case"r":{i.precision==null&&!isNaN(a=lbe(r,Math.max(Math.abs(e),Math.abs(n))))&&(i.precision=a-(i.type==="e"));break}case"f":case"%":{i.precision==null&&!isNaN(a=obe(r))&&(i.precision=a-(i.type==="%")*2);break}}return lA(i)}function xl(e){var n=e.domain;return e.ticks=function(t){var i=n();return S4(i[0],i[i.length-1],t??10)},e.tickFormat=function(t,i){var r=n();return AU(r[0],r[r.length-1],t??10,i)},e.nice=function(t){t==null&&(t=10);var i=n(),r=0,a=i.length-1,o=i[r],l=i[a],f,c,h=10;for(l 0;){if(c=C4(o,l,t),c===f)return i[r]=o,i[a]=l,n(i);if(c>0)o=Math.floor(o/c)*c,l=Math.ceil(l/c)*c;else if(c<0)o=Math.ceil(o*c)/c,l=Math.floor(l*c)/c;else break;f=c}return e},e}function y1(){var e=oA();return e.copy=function(){return pp(e,y1())},Aa.apply(e,arguments),xl(e)}function OU(e){var n;function t(i){return i==null||isNaN(i=+i)?n:i}return t.invert=t,t.domain=t.range=function(i){return arguments.length?(e=Array.from(i,p1),t):e.slice()},t.unknown=function(i){return arguments.length?(n=i,t):n},t.copy=function(){return OU(e).unknown(n)},e=arguments.length?Array.from(e,p1):[0,1],xl(t)}function jU(e,n){e=e.slice();var t=0,i=e.length-1,r=e[t],a=e[i],o;return a Math.pow(e,n)}function hbe(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),n=>Math.log(n)/e)}function fP(e){return(n,t)=>-e(-n,t)}function uA(e){const n=e(lP,uP),t=n.domain;let i=10,r,a;function o(){return r=hbe(i),a=dbe(i),t()[0]<0?(r=fP(r),a=fP(a),e(ube,fbe)):e(lP,uP),n}return n.base=function(l){return arguments.length?(i=+l,o()):i},n.domain=function(l){return arguments.length?(t(l),o()):t()},n.ticks=l=>{const f=t();let c=f[0],h=f[f.length-1];const d=h 0){for(;p<=v;++p)for(b=1;bh)break;_.push(w)}}else for(;p<=v;++p)for(b=i-1;b>=1;--b)if(w=p>0?b/a(-p):b*a(p),!(w h)break;_.push(w)}_.length*2 {if(l==null&&(l=10),f==null&&(f=i===10?"s":","),typeof f!="function"&&(!(i%1)&&(f=mm(f)).precision==null&&(f.trim=!0),f=lA(f)),l===1/0)return f;const c=Math.max(1,i*l/n.ticks().length);return h=>{let d=h/a(Math.round(r(h)));return d*i t(jU(t(),{floor:l=>a(Math.floor(r(l))),ceil:l=>a(Math.ceil(r(l)))})),n}function EU(){const e=uA(R0()).domain([1,10]);return e.copy=()=>pp(e,EU()).base(e.base()),Aa.apply(e,arguments),e}function cP(e){return function(n){return Math.sign(n)*Math.log1p(Math.abs(n/e))}}function dP(e){return function(n){return Math.sign(n)*Math.expm1(Math.abs(n))*e}}function fA(e){var n=1,t=e(cP(n),dP(n));return t.constant=function(i){return arguments.length?e(cP(n=+i),dP(n)):n},xl(t)}function TU(){var e=fA(R0());return e.copy=function(){return pp(e,TU()).constant(e.constant())},Aa.apply(e,arguments)}function hP(e){return function(n){return n<0?-Math.pow(-n,e):Math.pow(n,e)}}function mbe(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function pbe(e){return e<0?-e*e:e*e}function cA(e){var n=e(ur,ur),t=1;function i(){return t===1?e(ur,ur):t===.5?e(mbe,pbe):e(hP(t),hP(1/t))}return n.exponent=function(r){return arguments.length?(t=+r,i()):t},xl(n)}function dA(){var e=cA(R0());return e.copy=function(){return pp(e,dA()).exponent(e.exponent())},Aa.apply(e,arguments),e}function vbe(){return dA.apply(null,arguments).exponent(.5)}function mP(e){return Math.sign(e)*e*e}function gbe(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function MU(){var e=oA(),n=[0,1],t=!1,i;function r(a){var o=gbe(e(a));return isNaN(o)?i:t?Math.round(o):o}return r.invert=function(a){return e.invert(mP(a))},r.domain=function(a){return arguments.length?(e.domain(a),r):e.domain()},r.range=function(a){return arguments.length?(e.range((n=Array.from(a,p1)).map(mP)),r):n.slice()},r.rangeRound=function(a){return r.range(a).round(!0)},r.round=function(a){return arguments.length?(t=!!a,r):t},r.clamp=function(a){return arguments.length?(e.clamp(a),r):e.clamp()},r.unknown=function(a){return arguments.length?(i=a,r):i},r.copy=function(){return MU(e.domain(),n).round(t).clamp(e.clamp()).unknown(i)},Aa.apply(r,arguments),xl(r)}function DU(){var e=[],n=[],t=[],i;function r(){var o=0,l=Math.max(1,n.length);for(t=new Array(l-1);++o 0?t[l-1]:e[0],l =t?[i[t-1],n]:[i[c-1],i[c]]},o.unknown=function(f){return arguments.length&&(a=f),o},o.thresholds=function(){return i.slice()},o.copy=function(){return RU().domain([e,n]).range(r).unknown(a)},Aa.apply(xl(o),arguments)}function PU(){var e=[.5],n=[0,1],t,i=1;function r(a){return a!=null&&a<=a?n[hp(e,a,0,i)]:t}return r.domain=function(a){return arguments.length?(e=Array.from(a),i=Math.min(e.length,n.length-1),r):e.slice()},r.range=function(a){return arguments.length?(n=Array.from(a),i=Math.min(e.length,n.length-1),r):n.slice()},r.invertExtent=function(a){var o=n.indexOf(a);return[e[o-1],e[o]]},r.unknown=function(a){return arguments.length?(t=a,r):t},r.copy=function(){return PU().domain(e).range(n).unknown(t)},Aa.apply(r,arguments)}const p3=new Date,v3=new Date;function Ci(e,n,t,i){function r(a){return e(a=arguments.length===0?new Date:new Date(+a)),a}return r.floor=a=>(e(a=new Date(+a)),a),r.ceil=a=>(e(a=new Date(a-1)),n(a,1),e(a),a),r.round=a=>{const o=r(a),l=r.ceil(a);return a-o (n(a=new Date(+a),o==null?1:Math.floor(o)),a),r.range=(a,o,l)=>{const f=[];if(a=r.ceil(a),l=l==null?1:Math.floor(l),!(a 0))return f;let c;do f.push(c=new Date(+a)),n(a,l),e(a);while(cCi(o=>{if(o>=o)for(;e(o),!a(o);)o.setTime(o-1)},(o,l)=>{if(o>=o)if(l<0)for(;++l<=0;)for(;n(o,-1),!a(o););else for(;--l>=0;)for(;n(o,1),!a(o););}),t&&(r.count=(a,o)=>(p3.setTime(+a),v3.setTime(+o),e(p3),e(v3),Math.floor(t(p3,v3))),r.every=a=>(a=Math.floor(a),!isFinite(a)||!(a>0)?null:a>1?r.filter(i?o=>i(o)%a===0:o=>r.count(0,o)%a===0):r)),r}const b1=Ci(()=>{},(e,n)=>{e.setTime(+e+n)},(e,n)=>n-e);b1.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Ci(n=>{n.setTime(Math.floor(n/e)*e)},(n,t)=>{n.setTime(+n+t*e)},(n,t)=>(t-n)/e):b1);b1.range;const Vo=1e3,ma=Vo*60,Wo=ma*60,as=Wo*24,hA=as*7,pP=as*30,g3=as*365,fu=Ci(e=>{e.setTime(e-e.getMilliseconds())},(e,n)=>{e.setTime(+e+n*Vo)},(e,n)=>(n-e)/Vo,e=>e.getUTCSeconds());fu.range;const mA=Ci(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vo)},(e,n)=>{e.setTime(+e+n*ma)},(e,n)=>(n-e)/ma,e=>e.getMinutes());mA.range;const pA=Ci(e=>{e.setUTCSeconds(0,0)},(e,n)=>{e.setTime(+e+n*ma)},(e,n)=>(n-e)/ma,e=>e.getUTCMinutes());pA.range;const vA=Ci(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Vo-e.getMinutes()*ma)},(e,n)=>{e.setTime(+e+n*Wo)},(e,n)=>(n-e)/Wo,e=>e.getHours());vA.range;const gA=Ci(e=>{e.setUTCMinutes(0,0,0)},(e,n)=>{e.setTime(+e+n*Wo)},(e,n)=>(n-e)/Wo,e=>e.getUTCHours());gA.range;const vp=Ci(e=>e.setHours(0,0,0,0),(e,n)=>e.setDate(e.getDate()+n),(e,n)=>(n-e-(n.getTimezoneOffset()-e.getTimezoneOffset())*ma)/as,e=>e.getDate()-1);vp.range;const P0=Ci(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/as,e=>e.getUTCDate()-1);P0.range;const NU=Ci(e=>{e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCDate(e.getUTCDate()+n)},(e,n)=>(n-e)/as,e=>Math.floor(e/as));NU.range;function Bu(e){return Ci(n=>{n.setDate(n.getDate()-(n.getDay()+7-e)%7),n.setHours(0,0,0,0)},(n,t)=>{n.setDate(n.getDate()+t*7)},(n,t)=>(t-n-(t.getTimezoneOffset()-n.getTimezoneOffset())*ma)/hA)}const N0=Bu(0),w1=Bu(1),ybe=Bu(2),bbe=Bu(3),cc=Bu(4),wbe=Bu(5),kbe=Bu(6);N0.range;w1.range;ybe.range;bbe.range;cc.range;wbe.range;kbe.range;function Fu(e){return Ci(n=>{n.setUTCDate(n.getUTCDate()-(n.getUTCDay()+7-e)%7),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCDate(n.getUTCDate()+t*7)},(n,t)=>(t-n)/hA)}const $0=Fu(0),k1=Fu(1),_be=Fu(2),xbe=Fu(3),dc=Fu(4),Sbe=Fu(5),Cbe=Fu(6);$0.range;k1.range;_be.range;xbe.range;dc.range;Sbe.range;Cbe.range;const yA=Ci(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,n)=>{e.setMonth(e.getMonth()+n)},(e,n)=>n.getMonth()-e.getMonth()+(n.getFullYear()-e.getFullYear())*12,e=>e.getMonth());yA.range;const bA=Ci(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCMonth(e.getUTCMonth()+n)},(e,n)=>n.getUTCMonth()-e.getUTCMonth()+(n.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());bA.range;const os=Ci(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,n)=>{e.setFullYear(e.getFullYear()+n)},(e,n)=>n.getFullYear()-e.getFullYear(),e=>e.getFullYear());os.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ci(n=>{n.setFullYear(Math.floor(n.getFullYear()/e)*e),n.setMonth(0,1),n.setHours(0,0,0,0)},(n,t)=>{n.setFullYear(n.getFullYear()+t*e)});os.range;const ss=Ci(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n)},(e,n)=>n.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());ss.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Ci(n=>{n.setUTCFullYear(Math.floor(n.getUTCFullYear()/e)*e),n.setUTCMonth(0,1),n.setUTCHours(0,0,0,0)},(n,t)=>{n.setUTCFullYear(n.getUTCFullYear()+t*e)});ss.range;function $U(e,n,t,i,r,a){const o=[[fu,1,Vo],[fu,5,5*Vo],[fu,15,15*Vo],[fu,30,30*Vo],[a,1,ma],[a,5,5*ma],[a,15,15*ma],[a,30,30*ma],[r,1,Wo],[r,3,3*Wo],[r,6,6*Wo],[r,12,12*Wo],[i,1,as],[i,2,2*as],[t,1,hA],[n,1,pP],[n,3,3*pP],[e,1,g3]];function l(c,h,d){const p=h k).right(o,p);if(v===o.length)return e.every(A4(c/g3,h/g3,d));if(v===0)return b1.every(Math.max(A4(c,h,d),1));const[b,w]=o[p/o[v-1][2] 53)return null;"w"in ne||(ne.w=1),"Z"in ne?(we=b3(lh(ne.y,0,1)),Ce=we.getUTCDay(),we=Ce>4||Ce===0?k1.ceil(we):k1(we),we=P0.offset(we,(ne.V-1)*7),ne.y=we.getUTCFullYear(),ne.m=we.getUTCMonth(),ne.d=we.getUTCDate()+(ne.w+6)%7):(we=y3(lh(ne.y,0,1)),Ce=we.getDay(),we=Ce>4||Ce===0?w1.ceil(we):w1(we),we=vp.offset(we,(ne.V-1)*7),ne.y=we.getFullYear(),ne.m=we.getMonth(),ne.d=we.getDate()+(ne.w+6)%7)}else("W"in ne||"U"in ne)&&("w"in ne||(ne.w="u"in ne?ne.u%7:"W"in ne?1:0),Ce="Z"in ne?b3(lh(ne.y,0,1)).getUTCDay():y3(lh(ne.y,0,1)).getDay(),ne.m=0,ne.d="W"in ne?(ne.w+6)%7+ne.W*7-(Ce+5)%7:ne.w+ne.U*7-(Ce+6)%7);return"Z"in ne?(ne.H+=ne.Z/100|0,ne.M+=ne.Z%100,b3(ne)):y3(ne)}}function N(ae,le,_e,ne){for(var ze=0,we=le.length,Ce=_e.length,Ne,ge;ze =Ce)return-1;if(Ne=le.charCodeAt(ze++),Ne===37){if(Ne=le.charAt(ze++),ge=O[Ne in vP?le.charAt(ze++):Ne],!ge||(ne=ge(ae,_e,ne))<0)return-1}else if(Ne!=_e.charCodeAt(ne++))return-1}return ne}function H(ae,le,_e){var ne=c.exec(le.slice(_e));return ne?(ae.p=h.get(ne[0].toLowerCase()),_e+ne[0].length):-1}function P(ae,le,_e){var ne=v.exec(le.slice(_e));return ne?(ae.w=b.get(ne[0].toLowerCase()),_e+ne[0].length):-1}function z(ae,le,_e){var ne=d.exec(le.slice(_e));return ne?(ae.w=p.get(ne[0].toLowerCase()),_e+ne[0].length):-1}function F(ae,le,_e){var ne=_.exec(le.slice(_e));return ne?(ae.m=C.get(ne[0].toLowerCase()),_e+ne[0].length):-1}function G(ae,le,_e){var ne=w.exec(le.slice(_e));return ne?(ae.m=k.get(ne[0].toLowerCase()),_e+ne[0].length):-1}function U(ae,le,_e){return N(ae,n,le,_e)}function $(ae,le,_e){return N(ae,t,le,_e)}function R(ae,le,_e){return N(ae,i,le,_e)}function I(ae){return o[ae.getDay()]}function q(ae){return a[ae.getDay()]}function Y(ae){return f[ae.getMonth()]}function D(ae){return l[ae.getMonth()]}function W(ae){return r[+(ae.getHours()>=12)]}function V(ae){return 1+~~(ae.getMonth()/3)}function L(ae){return o[ae.getUTCDay()]}function X(ae){return a[ae.getUTCDay()]}function ee(ae){return f[ae.getUTCMonth()]}function re(ae){return l[ae.getUTCMonth()]}function se(ae){return r[+(ae.getUTCHours()>=12)]}function ye(ae){return 1+~~(ae.getUTCMonth()/3)}return{format:function(ae){var le=j(ae+="",x);return le.toString=function(){return ae},le},parse:function(ae){var le=M(ae+="",!1);return le.toString=function(){return ae},le},utcFormat:function(ae){var le=j(ae+="",E);return le.toString=function(){return ae},le},utcParse:function(ae){var le=M(ae+="",!0);return le.toString=function(){return ae},le}}}var vP={"-":"",_:" ",0:"0"},Di=/^\s*\d+/,Mbe=/^%/,Dbe=/[\\^$*+?|[\]().{}]/g;function ht(e,n,t){var i=e<0?"-":"",r=(i?-e:e)+"",a=r.length;return i+(a [n.toLowerCase(),t]))}function Pbe(e,n,t){var i=Di.exec(n.slice(t,t+1));return i?(e.w=+i[0],t+i[0].length):-1}function Nbe(e,n,t){var i=Di.exec(n.slice(t,t+1));return i?(e.u=+i[0],t+i[0].length):-1}function $be(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.U=+i[0],t+i[0].length):-1}function zbe(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.V=+i[0],t+i[0].length):-1}function Lbe(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.W=+i[0],t+i[0].length):-1}function gP(e,n,t){var i=Di.exec(n.slice(t,t+4));return i?(e.y=+i[0],t+i[0].length):-1}function yP(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.y=+i[0]+(+i[0]>68?1900:2e3),t+i[0].length):-1}function Ibe(e,n,t){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(n.slice(t,t+6));return i?(e.Z=i[1]?0:-(i[2]+(i[3]||"00")),t+i[0].length):-1}function Bbe(e,n,t){var i=Di.exec(n.slice(t,t+1));return i?(e.q=i[0]*3-3,t+i[0].length):-1}function Fbe(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.m=i[0]-1,t+i[0].length):-1}function bP(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.d=+i[0],t+i[0].length):-1}function qbe(e,n,t){var i=Di.exec(n.slice(t,t+3));return i?(e.m=0,e.d=+i[0],t+i[0].length):-1}function wP(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.H=+i[0],t+i[0].length):-1}function Hbe(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.M=+i[0],t+i[0].length):-1}function Ube(e,n,t){var i=Di.exec(n.slice(t,t+2));return i?(e.S=+i[0],t+i[0].length):-1}function Vbe(e,n,t){var i=Di.exec(n.slice(t,t+3));return i?(e.L=+i[0],t+i[0].length):-1}function Wbe(e,n,t){var i=Di.exec(n.slice(t,t+6));return i?(e.L=Math.floor(i[0]/1e3),t+i[0].length):-1}function Gbe(e,n,t){var i=Mbe.exec(n.slice(t,t+1));return i?t+i[0].length:-1}function Ybe(e,n,t){var i=Di.exec(n.slice(t));return i?(e.Q=+i[0],t+i[0].length):-1}function Kbe(e,n,t){var i=Di.exec(n.slice(t));return i?(e.s=+i[0],t+i[0].length):-1}function kP(e,n){return ht(e.getDate(),n,2)}function Xbe(e,n){return ht(e.getHours(),n,2)}function Zbe(e,n){return ht(e.getHours()%12||12,n,2)}function Qbe(e,n){return ht(1+vp.count(os(e),e),n,3)}function zU(e,n){return ht(e.getMilliseconds(),n,3)}function Jbe(e,n){return zU(e,n)+"000"}function ewe(e,n){return ht(e.getMonth()+1,n,2)}function nwe(e,n){return ht(e.getMinutes(),n,2)}function twe(e,n){return ht(e.getSeconds(),n,2)}function iwe(e){var n=e.getDay();return n===0?7:n}function rwe(e,n){return ht(N0.count(os(e)-1,e),n,2)}function LU(e){var n=e.getDay();return n>=4||n===0?cc(e):cc.ceil(e)}function awe(e,n){return e=LU(e),ht(cc.count(os(e),e)+(os(e).getDay()===4),n,2)}function owe(e){return e.getDay()}function swe(e,n){return ht(w1.count(os(e)-1,e),n,2)}function lwe(e,n){return ht(e.getFullYear()%100,n,2)}function uwe(e,n){return e=LU(e),ht(e.getFullYear()%100,n,2)}function fwe(e,n){return ht(e.getFullYear()%1e4,n,4)}function cwe(e,n){var t=e.getDay();return e=t>=4||t===0?cc(e):cc.ceil(e),ht(e.getFullYear()%1e4,n,4)}function dwe(e){var n=e.getTimezoneOffset();return(n>0?"-":(n*=-1,"+"))+ht(n/60|0,"0",2)+ht(n%60,"0",2)}function _P(e,n){return ht(e.getUTCDate(),n,2)}function hwe(e,n){return ht(e.getUTCHours(),n,2)}function mwe(e,n){return ht(e.getUTCHours()%12||12,n,2)}function pwe(e,n){return ht(1+P0.count(ss(e),e),n,3)}function IU(e,n){return ht(e.getUTCMilliseconds(),n,3)}function vwe(e,n){return IU(e,n)+"000"}function gwe(e,n){return ht(e.getUTCMonth()+1,n,2)}function ywe(e,n){return ht(e.getUTCMinutes(),n,2)}function bwe(e,n){return ht(e.getUTCSeconds(),n,2)}function wwe(e){var n=e.getUTCDay();return n===0?7:n}function kwe(e,n){return ht($0.count(ss(e)-1,e),n,2)}function BU(e){var n=e.getUTCDay();return n>=4||n===0?dc(e):dc.ceil(e)}function _we(e,n){return e=BU(e),ht(dc.count(ss(e),e)+(ss(e).getUTCDay()===4),n,2)}function xwe(e){return e.getUTCDay()}function Swe(e,n){return ht(k1.count(ss(e)-1,e),n,2)}function Cwe(e,n){return ht(e.getUTCFullYear()%100,n,2)}function Awe(e,n){return e=BU(e),ht(e.getUTCFullYear()%100,n,2)}function Owe(e,n){return ht(e.getUTCFullYear()%1e4,n,4)}function jwe(e,n){var t=e.getUTCDay();return e=t>=4||t===0?dc(e):dc.ceil(e),ht(e.getUTCFullYear()%1e4,n,4)}function Ewe(){return"+0000"}function xP(){return"%"}function SP(e){return+e}function CP(e){return Math.floor(+e/1e3)}var Mf,FU,qU;Twe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Twe(e){return Mf=Tbe(e),FU=Mf.format,Mf.parse,qU=Mf.utcFormat,Mf.utcParse,Mf}function Mwe(e){return new Date(e)}function Dwe(e){return e instanceof Date?+e:+new Date(+e)}function wA(e,n,t,i,r,a,o,l,f,c){var h=oA(),d=h.invert,p=h.domain,v=c(".%L"),b=c(":%S"),w=c("%I:%M"),k=c("%I %p"),_=c("%a %d"),C=c("%b %d"),x=c("%B"),E=c("%Y");function O(j){return(f(j) n(r/(e.length-1)))},t.quantiles=function(i){return Array.from({length:i+1},(r,a)=>k0e(e,a/i))},t.copy=function(){return WU(n).domain(e)},ys.apply(t,arguments)}function L0(){var e=0,n=.5,t=1,i=1,r,a,o,l,f,c=ur,h,d=!1,p;function v(w){return isNaN(w=+w)?p:(w=.5+((w=+h(w))-a)*(i*wt}return k3=e,k3}var _3,EP;function Lwe(){if(EP)return _3;EP=1;var e=XU(),n=zwe(),t=nd();function i(r){return r&&r.length?e(r,t,n):void 0}return _3=i,_3}var Iwe=Lwe();const nl=mt(Iwe);var x3,TP;function Bwe(){if(TP)return x3;TP=1;function e(n,t){return n e.e^a.s<0?1:-1;for(i=a.d.length,r=e.d.length,n=0,t=i e.d[n]^a.s<0?1:-1;return i===r?0:i>r^a.s<0?1:-1};sn.decimalPlaces=sn.dp=function(){var e=this,n=e.d.length-1,t=(n-e.e)*qt;if(n=e.d[n],n)for(;n%10==0;n/=10)t--;return t<0?0:t};sn.dividedBy=sn.div=function(e){return es(this,new this.constructor(e))};sn.dividedToIntegerBy=sn.idiv=function(e){var n=this,t=n.constructor;return Rt(es(n,new t(e),0,1),t.precision)};sn.equals=sn.eq=function(e){return!this.cmp(e)};sn.exponent=function(){return vi(this)};sn.greaterThan=sn.gt=function(e){return this.cmp(e)>0};sn.greaterThanOrEqualTo=sn.gte=function(e){return this.cmp(e)>=0};sn.isInteger=sn.isint=function(){return this.e>this.d.length-2};sn.isNegative=sn.isneg=function(){return this.s<0};sn.isPositive=sn.ispos=function(){return this.s>0};sn.isZero=function(){return this.s===0};sn.lessThan=sn.lt=function(e){return this.cmp(e)<0};sn.lessThanOrEqualTo=sn.lte=function(e){return this.cmp(e)<1};sn.logarithm=sn.log=function(e){var n,t=this,i=t.constructor,r=i.precision,a=r+5;if(e===void 0)e=new i(10);else if(e=new i(e),e.s<1||e.eq(Ur))throw Error(ba+"NaN");if(t.s<1)throw Error(ba+(t.s?"NaN":"-Infinity"));return t.eq(Ur)?new i(0):(Yt=!1,n=es(pm(t,a),pm(e,a),a),Yt=!0,Rt(n,r))};sn.minus=sn.sub=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?eV(n,e):QU(n,(e.s=-e.s,e))};sn.modulo=sn.mod=function(e){var n,t=this,i=t.constructor,r=i.precision;if(e=new i(e),!e.s)throw Error(ba+"NaN");return t.s?(Yt=!1,n=es(t,e,0,1).times(e),Yt=!0,t.minus(n)):Rt(new i(t),r)};sn.naturalExponential=sn.exp=function(){return JU(this)};sn.naturalLogarithm=sn.ln=function(){return pm(this)};sn.negated=sn.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};sn.plus=sn.add=function(e){var n=this;return e=new n.constructor(e),n.s==e.s?QU(n,e):eV(n,(e.s=-e.s,e))};sn.precision=sn.sd=function(e){var n,t,i,r=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(pu+e);if(n=vi(r)+1,i=r.d.length-1,t=i*qt+1,i=r.d[i],i){for(;i%10==0;i/=10)t--;for(i=r.d[0];i>=10;i/=10)t++}return e&&n>t?n:t};sn.squareRoot=sn.sqrt=function(){var e,n,t,i,r,a,o,l=this,f=l.constructor;if(l.s<1){if(!l.s)return new f(0);throw Error(ba+"NaN")}for(e=vi(l),Yt=!1,r=Math.sqrt(+l),r==0||r==1/0?(n=ao(l.d),(n.length+e)%2==0&&(n+="0"),r=Math.sqrt(n),e=rd((e+1)/2)-(e<0||e%2),r==1/0?n="5e"+e:(n=r.toExponential(),n=n.slice(0,n.indexOf("e")+1)+e),i=new f(n)):i=new f(r.toString()),t=f.precision,r=o=t+3;;)if(a=i,i=a.plus(es(l,a,o+2)).times(.5),ao(a.d).slice(0,o)===(n=ao(i.d)).slice(0,o)){if(n=n.slice(o-3,o+1),r==o&&n=="4999"){if(Rt(a,t+1,0),a.times(a).eq(l)){i=a;break}}else if(n!="9999")break;o+=4}return Yt=!0,Rt(i,t)};sn.times=sn.mul=function(e){var n,t,i,r,a,o,l,f,c,h=this,d=h.constructor,p=h.d,v=(e=new d(e)).d;if(!h.s||!e.s)return new d(0);for(e.s*=h.s,t=h.e+e.e,f=p.length,c=v.length,f =0;){for(n=0,r=f+i;r>i;)l=a[r]+v[i]*p[r-i-1]+n,a[r--]=l%Ei|0,n=l/Ei|0;a[r]=(a[r]+n)%Ei|0}for(;!a[--o];)a.pop();return n?++t:a.shift(),e.d=a,e.e=t,Yt?Rt(e,d.precision):e};sn.toDecimalPlaces=sn.todp=function(e,n){var t=this,i=t.constructor;return t=new i(t),e===void 0?t:(vo(e,0,id),n===void 0?n=i.rounding:vo(n,0,8),Rt(t,e+vi(t)+1,n))};sn.toExponential=function(e,n){var t,i=this,r=i.constructor;return e===void 0?t=Au(i,!0):(vo(e,0,id),n===void 0?n=r.rounding:vo(n,0,8),i=Rt(new r(i),e+1,n),t=Au(i,!0,e+1)),t};sn.toFixed=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?Au(r):(vo(e,0,id),n===void 0?n=a.rounding:vo(n,0,8),i=Rt(new a(r),e+vi(r)+1,n),t=Au(i.abs(),!1,e+vi(i)+1),r.isneg()&&!r.isZero()?"-"+t:t)};sn.toInteger=sn.toint=function(){var e=this,n=e.constructor;return Rt(new n(e),vi(e)+1,n.rounding)};sn.toNumber=function(){return+this};sn.toPower=sn.pow=function(e){var n,t,i,r,a,o,l=this,f=l.constructor,c=12,h=+(e=new f(e));if(!e.s)return new f(Ur);if(l=new f(l),!l.s){if(e.s<1)throw Error(ba+"Infinity");return l}if(l.eq(Ur))return l;if(i=f.precision,e.eq(Ur))return Rt(l,i);if(n=e.e,t=e.d.length-1,o=n>=t,a=l.s,o){if((t=h<0?-h:h)<=ZU){for(r=new f(Ur),n=Math.ceil(i/qt+4),Yt=!1;t%2&&(r=r.times(l),$P(r.d,n)),t=rd(t/2),t!==0;)l=l.times(l),$P(l.d,n);return Yt=!0,e.s<0?new f(Ur).div(r):Rt(r,i)}}else if(a<0)throw Error(ba+"NaN");return a=a<0&&e.d[Math.max(n,t)]&1?-1:1,l.s=1,Yt=!1,r=e.times(pm(l,i+c)),Yt=!0,r=JU(r),r.s=a,r};sn.toPrecision=function(e,n){var t,i,r=this,a=r.constructor;return e===void 0?(t=vi(r),i=Au(r,t<=a.toExpNeg||t>=a.toExpPos)):(vo(e,1,id),n===void 0?n=a.rounding:vo(n,0,8),r=Rt(new a(r),e,n),t=vi(r),i=Au(r,e<=t||t<=a.toExpNeg,e)),i};sn.toSignificantDigits=sn.tosd=function(e,n){var t=this,i=t.constructor;return e===void 0?(e=i.precision,n=i.rounding):(vo(e,1,id),n===void 0?n=i.rounding:vo(n,0,8)),Rt(new i(t),e,n)};sn.toString=sn.valueOf=sn.val=sn.toJSON=sn[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,n=vi(e),t=e.constructor;return Au(e,n<=t.toExpNeg||n>=t.toExpPos)};function QU(e,n){var t,i,r,a,o,l,f,c,h=e.constructor,d=h.precision;if(!e.s||!n.s)return n.s||(n=new h(e)),Yt?Rt(n,d):n;if(f=e.d,c=n.d,o=e.e,r=n.e,f=f.slice(),a=o-r,a){for(a<0?(i=f,a=-a,l=c.length):(i=c,r=o,l=f.length),o=Math.ceil(d/qt),l=o>l?o+1:l+1,a>l&&(a=l,i.length=1),i.reverse();a--;)i.push(0);i.reverse()}for(l=f.length,a=c.length,l-a<0&&(a=l,i=c,c=f,f=i),t=0;a;)t=(f[--a]=f[a]+c[a]+t)/Ei|0,f[a]%=Ei;for(t&&(f.unshift(t),++r),l=f.length;f[--l]==0;)f.pop();return n.d=f,n.e=r,Yt?Rt(n,d):n}function vo(e,n,t){if(e!==~~e||e t)throw Error(pu+e)}function ao(e){var n,t,i,r=e.length-1,a="",o=e[0];if(r>0){for(a+=o,n=1;n o?1:-1;else for(l=f=0;lr[l]?1:-1;break}return f}function t(i,r,a){for(var o=0;a--;)i[a]-=o,o=i[a] 1;)i.shift()}return function(i,r,a,o){var l,f,c,h,d,p,v,b,w,k,_,C,x,E,O,j,M,N,H=i.constructor,P=i.s==r.s?1:-1,z=i.d,F=r.d;if(!i.s)return new H(i);if(!r.s)throw Error(ba+"Division by zero");for(f=i.e-r.e,M=F.length,O=z.length,v=new H(P),b=v.d=[],c=0;F[c]==(z[c]||0);)++c;if(F[c]>(z[c]||0)&&--f,a==null?C=a=H.precision:o?C=a+(vi(i)-vi(r))+1:C=a,C<0)return new H(0);if(C=C/qt+2|0,c=0,M==1)for(h=0,F=F[0],C++;(c 1&&(F=e(F,h),z=e(z,h),M=F.length,O=z.length),E=M,w=z.slice(0,M),k=w.length;k =Ei/2&&++j;do h=0,l=n(F,w,M,k),l<0?(_=w[0],M!=k&&(_=_*Ei+(w[1]||0)),h=_/j|0,h>1?(h>=Ei&&(h=Ei-1),d=e(F,h),p=d.length,k=w.length,l=n(d,w,p,k),l==1&&(h--,t(d,M 16)throw Error(xA+vi(e));if(!e.s)return new h(Ur);for(Yt=!1,l=d,o=new h(.03125);e.abs().gte(.1);)e=e.times(o),c+=5;for(i=Math.log(iu(2,c))/Math.LN10*2+5|0,l+=i,t=r=a=new h(Ur),h.precision=l;;){if(r=Rt(r.times(e),l),t=t.times(++f),o=a.plus(es(r,t,l)),ao(o.d).slice(0,l)===ao(a.d).slice(0,l)){for(;c--;)a=Rt(a.times(a),l);return h.precision=d,n==null?(Yt=!0,Rt(a,d)):a}a=o}}function vi(e){for(var n=e.e*qt,t=e.d[0];t>=10;t/=10)n++;return n}function j3(e,n,t){if(n>e.LN10.sd())throw Yt=!0,t&&(e.precision=t),Error(ba+"LN10 precision limit exceeded");return Rt(new e(e.LN10),n)}function Ks(e){for(var n="";e--;)n+="0";return n}function pm(e,n){var t,i,r,a,o,l,f,c,h,d=1,p=10,v=e,b=v.d,w=v.constructor,k=w.precision;if(v.s<1)throw Error(ba+(v.s?"NaN":"-Infinity"));if(v.eq(Ur))return new w(0);if(n==null?(Yt=!1,c=k):c=n,v.eq(10))return n==null&&(Yt=!0),j3(w,c);if(c+=p,w.precision=c,t=ao(b),i=t.charAt(0),a=vi(v),Math.abs(a)<15e14){for(;i<7&&i!=1||i==1&&t.charAt(1)>3;)v=v.times(e),t=ao(v.d),i=t.charAt(0),d++;a=vi(v),i>1?(v=new w("0."+t),a++):v=new w(i+"."+t.slice(1))}else return f=j3(w,c+2,k).times(a+""),v=pm(new w(i+"."+t.slice(1)),c-p).plus(f),w.precision=k,n==null?(Yt=!0,Rt(v,k)):v;for(l=o=v=es(v.minus(Ur),v.plus(Ur),c),h=Rt(v.times(v),c),r=3;;){if(o=Rt(o.times(h),c),f=l.plus(es(o,new w(r),c)),ao(f.d).slice(0,c)===ao(l.d).slice(0,c))return l=l.times(2),a!==0&&(l=l.plus(j3(w,c+2,k).times(a+""))),l=es(l,new w(d),c),w.precision=k,n==null?(Yt=!0,Rt(l,k)):l;l=f,r+=2}}function NP(e,n){var t,i,r;for((t=n.indexOf("."))>-1&&(n=n.replace(".","")),(i=n.search(/e/i))>0?(t<0&&(t=i),t+=+n.slice(i+1),n=n.substring(0,i)):t<0&&(t=n.length),i=0;n.charCodeAt(i)===48;)++i;for(r=n.length;n.charCodeAt(r-1)===48;)--r;if(n=n.slice(i,r),n){if(r-=i,t=t-i-1,e.e=rd(t/qt),e.d=[],i=(t+1)%qt,t<0&&(i+=qt),i
_1||e.e<-_1))throw Error(xA+t)}else e.s=0,e.e=0,e.d=[0];return e}function Rt(e,n,t){var i,r,a,o,l,f,c,h,d=e.d;for(o=1,a=d[0];a>=10;a/=10)o++;if(i=n-o,i<0)i+=qt,r=n,c=d[h=0];else{if(h=Math.ceil((i+1)/qt),a=d.length,h>=a)return e;for(c=a=d[h],o=1;a>=10;a/=10)o++;i%=qt,r=i-qt+o}if(t!==void 0&&(a=iu(10,o-r-1),l=c/a%10|0,f=n<0||d[h+1]!==void 0||c%a,f=t<4?(l||f)&&(t==0||t==(e.s<0?3:2)):l>5||l==5&&(t==4||f||t==6&&(i>0?r>0?c/iu(10,o-r):0:d[h-1])%10&1||t==(e.s<0?8:7))),n<1||!d[0])return f?(a=vi(e),d.length=1,n=n-a-1,d[0]=iu(10,(qt-n%qt)%qt),e.e=rd(-n/qt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(i==0?(d.length=h,a=1,h--):(d.length=h+1,a=iu(10,qt-i),d[h]=r>0?(c/iu(10,o-r)%iu(10,r)|0)*a:0),f)for(;;)if(h==0){(d[0]+=a)==Ei&&(d[0]=1,++e.e);break}else{if(d[h]+=a,d[h]!=Ei)break;d[h--]=0,a=1}for(i=d.length;d[--i]===0;)d.pop();if(Yt&&(e.e>_1||e.e<-_1))throw Error(xA+vi(e));return e}function eV(e,n){var t,i,r,a,o,l,f,c,h,d,p=e.constructor,v=p.precision;if(!e.s||!n.s)return n.s?n.s=-n.s:n=new p(e),Yt?Rt(n,v):n;if(f=e.d,d=n.d,i=n.e,c=e.e,f=f.slice(),o=c-i,o){for(h=o<0,h?(t=f,o=-o,l=d.length):(t=d,i=c,l=f.length),r=Math.max(Math.ceil(v/qt),l)+2,o>r&&(o=r,t.length=1),t.reverse(),r=o;r--;)t.push(0);t.reverse()}else{for(r=f.length,l=d.length,h=r 0;--r)f[l++]=0;for(r=d.length;r>o;){if(f[--r] 0?a=a.charAt(0)+"."+a.slice(1)+Ks(i):o>1&&(a=a.charAt(0)+"."+a.slice(1)),a=a+(r<0?"e":"e+")+r):r<0?(a="0."+Ks(-r-1)+a,t&&(i=t-o)>0&&(a+=Ks(i))):r>=o?(a+=Ks(r+1-o),t&&(i=t-r-1)>0&&(a=a+"."+Ks(i))):((i=r+1) 0&&(r+1===o&&(a+="."),a+=Ks(i))),e.s<0?"-"+a:a}function $P(e,n){if(e.length>n)return e.length=n,!0}function nV(e){var n,t,i;function r(a){var o=this;if(!(o instanceof r))return new r(a);if(o.constructor=r,a instanceof r){o.s=a.s,o.e=a.e,o.d=(a=a.d)?a.slice():a;return}if(typeof a=="number"){if(a*0!==0)throw Error(pu+a);if(a>0)o.s=1;else if(a<0)a=-a,o.s=-1;else{o.s=0,o.e=0,o.d=[0];return}if(a===~~a&&a<1e7){o.e=0,o.d=[a];return}return NP(o,a.toString())}else if(typeof a!="string")throw Error(pu+a);if(a.charCodeAt(0)===45?(a=a.slice(1),o.s=-1):o.s=1,Xwe.test(a))NP(o,a);else throw Error(pu+a)}if(r.prototype=sn,r.ROUND_UP=0,r.ROUND_DOWN=1,r.ROUND_CEIL=2,r.ROUND_FLOOR=3,r.ROUND_HALF_UP=4,r.ROUND_HALF_DOWN=5,r.ROUND_HALF_EVEN=6,r.ROUND_HALF_CEIL=7,r.ROUND_HALF_FLOOR=8,r.clone=nV,r.config=r.set=Zwe,e===void 0&&(e={}),e)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n =r[n+1]&&i<=r[n+2])this[t]=i;else throw Error(pu+t+": "+i);if((i=e[t="LN10"])!==void 0)if(i==Math.LN10)this[t]=new this(i);else throw Error(pu+t+": "+i);return this}var SA=nV(Kwe);Ur=new SA(1);const jt=SA;function Qwe(e){return tke(e)||nke(e)||eke(e)||Jwe()}function Jwe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function eke(e,n){if(e){if(typeof e=="string")return M4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return M4(e,n)}}function nke(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function tke(e){if(Array.isArray(e))return M4(e)}function M4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =n?t.apply(void 0,r):e(n-o,zP(function(){for(var l=arguments.length,f=new Array(l),c=0;c e.length)&&(n=e.length);for(var t=0,i=new Array(n);t "u"||!(Symbol.iterator in Object(e)))){var t=[],i=!0,r=!1,a=void 0;try{for(var o=e[Symbol.iterator](),l;!(i=(l=o.next()).done)&&(t.push(l.value),!(n&&t.length===n));i=!0);}catch(f){r=!0,a=f}finally{try{!i&&o.return!=null&&o.return()}finally{if(r)throw a}}return t}}function gke(e){if(Array.isArray(e))return e}function oV(e){var n=vm(e,2),t=n[0],i=n[1],r=t,a=i;return t>i&&(r=i,a=t),[r,a]}function sV(e,n,t){if(e.lte(0))return new jt(0);var i=F0.getDigitCount(e.toNumber()),r=new jt(10).pow(i),a=e.div(r),o=i!==1?.05:.1,l=new jt(Math.ceil(a.div(o).toNumber())).add(t).mul(o),f=l.mul(r);return n?f:new jt(Math.ceil(f))}function yke(e,n,t){var i=1,r=new jt(e);if(!r.isint()&&t){var a=Math.abs(e);a<1?(i=new jt(10).pow(F0.getDigitCount(e)-1),r=new jt(Math.floor(r.div(i).toNumber())).mul(i)):a>1&&(r=new jt(Math.floor(e)))}else e===0?r=new jt(Math.floor((n-1)/2)):t||(r=new jt(Math.floor(e)));var o=Math.floor((n-1)/2),l=oke(ake(function(f){return r.add(new jt(f-o).mul(i)).toNumber()}),D4);return l(0,n)}function lV(e,n,t,i){var r=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-e)/(t-1)))return{step:new jt(0),tickMin:new jt(0),tickMax:new jt(0)};var a=sV(new jt(n).sub(e).div(t-1),i,r),o;e<=0&&n>=0?o=new jt(0):(o=new jt(e).add(n).div(2),o=o.sub(new jt(o).mod(a)));var l=Math.ceil(o.sub(e).div(a).toNumber()),f=Math.ceil(new jt(n).sub(o).div(a).toNumber()),c=l+f+1;return c>t?lV(e,n,t,i,r+1):(c 0?f+(t-c):f,l=n>0?l:l+(t-c)),{step:a,tickMin:o.sub(new jt(l).mul(a)),tickMax:o.add(new jt(f).mul(a))})}function bke(e){var n=vm(e,2),t=n[0],i=n[1],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=Math.max(r,2),l=oV([t,i]),f=vm(l,2),c=f[0],h=f[1];if(c===-1/0||h===1/0){var d=h===1/0?[c].concat(P4(D4(0,r-1).map(function(){return 1/0}))):[].concat(P4(D4(0,r-1).map(function(){return-1/0})),[h]);return t>i?R4(d):d}if(c===h)return yke(c,r,a);var p=lV(c,h,o,a),v=p.step,b=p.tickMin,w=p.tickMax,k=F0.rangeStep(b,w.add(new jt(.1).mul(v)),v);return t>i?R4(k):k}function wke(e,n){var t=vm(e,2),i=t[0],r=t[1],a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,o=oV([i,r]),l=vm(o,2),f=l[0],c=l[1];if(f===-1/0||c===1/0)return[i,r];if(f===c)return[f];var h=Math.max(n,2),d=sV(new jt(c).sub(f).div(h-1),a,0),p=[].concat(P4(F0.rangeStep(new jt(f),new jt(c).sub(new jt(.99).mul(d)),d)),[c]);return i>r?R4(p):p}var kke=rV(bke),_ke=rV(wke),xke="Invariant failed";function Ou(e,n){throw new Error(xke)}var Ske=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function mc(e){"@babel/helpers - typeof";return mc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},mc(e)}function x1(){return x1=Object.assign?Object.assign.bind():function(e){for(var n=1;n e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function Mke(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function Dke(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Rke(e,n){for(var t=0;t e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0,o=-1,l=(t=i==null?void 0:i.length)!==null&&t!==void 0?t:0;if(l<=1)return 0;if(a&&a.axisType==="angleAxis"&&Math.abs(Math.abs(a.range[1]-a.range[0])-360)<=1e-6)for(var f=a.range,c=0;c 0?r[c-1].coordinate:r[l-1].coordinate,d=r[c].coordinate,p=c>=l-1?r[0].coordinate:r[c+1].coordinate,v=void 0;if(Fa(d-h)!==Fa(p-d)){var b=[];if(Fa(p-d)===Fa(f[1]-f[0])){v=p;var w=d+f[1]-f[0];b[0]=Math.min(w,(w+h)/2),b[1]=Math.max(w,(w+h)/2)}else{v=h;var k=p+f[1]-f[0];b[0]=Math.min(d,(k+d)/2),b[1]=Math.max(d,(k+d)/2)}var _=[Math.min(d,(v+d)/2),Math.max(d,(v+d)/2)];if(n>_[0]&&n<=_[1]||n>=b[0]&&n<=b[1]){o=r[c].index;break}}else{var C=Math.min(h,p),x=Math.max(h,p);if(n>(C+d)/2&&n<=(x+d)/2){o=r[c].index;break}}}else for(var E=0;E 0&&E (i[E].coordinate+i[E-1].coordinate)/2&&n<=(i[E].coordinate+i[E+1].coordinate)/2||E===l-1&&n>(i[E].coordinate+i[E-1].coordinate)/2){o=i[E].index;break}return o},CA=function(n){var t,i=n,r=i.type.displayName,a=(t=n.type)!==null&&t!==void 0&&t.defaultProps?ni(ni({},n.type.defaultProps),n.props):n.props,o=a.stroke,l=a.fill,f;switch(r){case"Line":f=o;break;case"Area":case"Radar":f=o&&o!=="none"?o:l;break;default:f=l;break}return f},Xke=function(n){var t=n.barSize,i=n.totalSize,r=n.stackGroups,a=r===void 0?{}:r;if(!a)return{};for(var o={},l=Object.keys(a),f=0,c=l.length;f =0});if(_&&_.length){var C=_[0].type.defaultProps,x=C!==void 0?ni(ni({},C),_[0].props):_[0].props,E=x.barSize,O=x[k];o[O]||(o[O]=[]);var j=Gn(E)?t:E;o[O].push({item:_[0],stackList:_.slice(1),barSize:Gn(j)?void 0:Cu(j,i,0)})}}return o},Zke=function(n){var t=n.barGap,i=n.barCategoryGap,r=n.bandSize,a=n.sizeList,o=a===void 0?[]:a,l=n.maxBarSize,f=o.length;if(f<1)return null;var c=Cu(t,r,0,!0),h,d=[];if(o[0].barSize===+o[0].barSize){var p=!1,v=r/f,b=o.reduce(function(E,O){return E+O.barSize||0},0);b+=(f-1)*c,b>=r&&(b-=(f-1)*c,c=0),b>=r&&v>0&&(p=!0,v*=.9,b=f*v);var w=(r-b)/2>>0,k={offset:w-c,size:0};h=o.reduce(function(E,O){var j={item:O.item,position:{offset:k.offset+k.size+c,size:p?v:O.barSize}},M=[].concat(BP(E),[j]);return k=M[M.length-1].position,O.stackList&&O.stackList.length&&O.stackList.forEach(function(N){M.push({item:N,position:k})}),M},d)}else{var _=Cu(i,r,0,!0);r-2*_-(f-1)*c<=0&&(c=0);var C=(r-2*_-(f-1)*c)/f;C>1&&(C>>=0);var x=l===+l?Math.min(C,l):C;h=o.reduce(function(E,O,j){var M=[].concat(BP(E),[{item:O.item,position:{offset:_+(C+c)*j+(C-x)/2,size:x}}]);return O.stackList&&O.stackList.length&&O.stackList.forEach(function(N){M.push({item:N,position:M[M.length-1].position})}),M},d)}return h},Qke=function(n,t,i,r){var a=i.children,o=i.width,l=i.margin,f=o-(l.left||0)-(l.right||0),c=dV({children:a,legendWidth:f});if(c){var h=r||{},d=h.width,p=h.height,v=c.align,b=c.verticalAlign,w=c.layout;if((w==="vertical"||w==="horizontal"&&b==="middle")&&v!=="center"&&We(n[v]))return ni(ni({},n),{},Yf({},v,n[v]+(d||0)));if((w==="horizontal"||w==="vertical"&&v==="center")&&b!=="middle"&&We(n[b]))return ni(ni({},n),{},Yf({},b,n[b]+(p||0)))}return n},Jke=function(n,t,i){return Gn(t)?!0:n==="horizontal"?t==="yAxis":n==="vertical"||i==="x"?t==="xAxis":i==="y"?t==="yAxis":!0},hV=function(n,t,i,r,a){var o=t.props.children,l=va(o,gp).filter(function(c){return Jke(r,a,c.props.direction)});if(l&&l.length){var f=l.map(function(c){return c.props.dataKey});return n.reduce(function(c,h){var d=cr(h,i);if(Gn(d))return c;var p=Array.isArray(d)?[I0(d),nl(d)]:[d,d],v=f.reduce(function(b,w){var k=cr(h,w,0),_=p[0]-Math.abs(Array.isArray(k)?k[0]:k),C=p[1]+Math.abs(Array.isArray(k)?k[1]:k);return[Math.min(_,b[0]),Math.max(C,b[1])]},[1/0,-1/0]);return[Math.min(v[0],c[0]),Math.max(v[1],c[1])]},[1/0,-1/0])}return null},e_e=function(n,t,i,r,a){var o=t.map(function(l){return hV(n,l,i,a,r)}).filter(function(l){return!Gn(l)});return o&&o.length?o.reduce(function(l,f){return[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]):null},mV=function(n,t,i,r,a){var o=t.map(function(f){var c=f.props.dataKey;return i==="number"&&c&&hV(n,f,c,r)||Lh(n,c,i,a)});if(i==="number")return o.reduce(function(f,c){return[Math.min(f[0],c[0]),Math.max(f[1],c[1])]},[1/0,-1/0]);var l={};return o.reduce(function(f,c){for(var h=0,d=c.length;h =2?Fa(l[0]-l[1])*2*c:c,t&&(n.ticks||n.niceTicks)){var h=(n.ticks||n.niceTicks).map(function(d){var p=a?a.indexOf(d):d;return{coordinate:r(p)+c,value:d,offset:c}});return h.filter(function(d){return!Jc(d.coordinate)})}return n.isCategorical&&n.categoricalDomain?n.categoricalDomain.map(function(d,p){return{coordinate:r(d)+c,value:d,index:p,offset:c}}):r.ticks&&!i?r.ticks(n.tickCount).map(function(d){return{coordinate:r(d)+c,value:d,offset:c}}):r.domain().map(function(d,p){return{coordinate:r(d)+c,value:a?a[d]:d,index:p,offset:c}})},E3=new WeakMap,eg=function(n,t){if(typeof t!="function")return n;E3.has(n)||E3.set(n,new WeakMap);var i=E3.get(n);if(i.has(t))return i.get(t);var r=function(){n.apply(void 0,arguments),t.apply(void 0,arguments)};return i.set(t,r),r},n_e=function(n,t,i){var r=n.scale,a=n.type,o=n.layout,l=n.axisType;if(r==="auto")return o==="radial"&&l==="radiusAxis"?{scale:fm(),realScaleType:"band"}:o==="radial"&&l==="angleAxis"?{scale:y1(),realScaleType:"linear"}:a==="category"&&t&&(t.indexOf("LineChart")>=0||t.indexOf("AreaChart")>=0||t.indexOf("ComposedChart")>=0&&!i)?{scale:zh(),realScaleType:"point"}:a==="category"?{scale:fm(),realScaleType:"band"}:{scale:y1(),realScaleType:"linear"};if(Su(r)){var f="scale".concat(A0(r));return{scale:(AP[f]||zh)(),realScaleType:AP[f]?f:"point"}}return In(r)?{scale:r}:{scale:zh(),realScaleType:"point"}},qP=1e-4,t_e=function(n){var t=n.domain();if(!(!t||t.length<=2)){var i=t.length,r=n.range(),a=Math.min(r[0],r[1])-qP,o=Math.max(r[0],r[1])+qP,l=n(t[0]),f=n(t[i-1]);(lo||fo)&&n.domain([t[0],t[i-1]])}},i_e=function(n,t){if(!n)return null;for(var i=0,r=n.length;i r)&&(a[1]=r),a[0]>r&&(a[0]=r),a[1]=0?(n[l][i][0]=a,n[l][i][1]=a+f,a=n[l][i][1]):(n[l][i][0]=o,n[l][i][1]=o+f,o=n[l][i][1])}},o_e=function(n){var t=n.length;if(!(t<=0))for(var i=0,r=n[0].length;i =0?(n[o][i][0]=a,n[o][i][1]=a+l,a=n[o][i][1]):(n[o][i][0]=0,n[o][i][1]=0)}},s_e={sign:a_e,expand:Uve,none:ac,silhouette:Vve,wiggle:Wve,positive:o_e},l_e=function(n,t,i){var r=t.map(function(l){return l.props.dataKey}),a=s_e[i],o=Hve().keys(r).value(function(l,f){return+cr(l,f,0)}).order(h4).offset(a);return o(n)},u_e=function(n,t,i,r,a,o){if(!n)return null;var l=o?t.reverse():t,f={},c=l.reduce(function(d,p){var v,b=(v=p.type)!==null&&v!==void 0&&v.defaultProps?ni(ni({},p.type.defaultProps),p.props):p.props,w=b.stackId,k=b.hide;if(k)return d;var _=b[i],C=d[_]||{hasStack:!1,stackGroups:{}};if(_i(w)){var x=C.stackGroups[w]||{numericAxisId:i,cateAxisId:r,items:[]};x.items.push(p),C.hasStack=!0,C.stackGroups[w]=x}else C.stackGroups[ed("_stackId_")]={numericAxisId:i,cateAxisId:r,items:[p]};return ni(ni({},d),{},Yf({},_,C))},f),h={};return Object.keys(c).reduce(function(d,p){var v=c[p];if(v.hasStack){var b={};v.stackGroups=Object.keys(v.stackGroups).reduce(function(w,k){var _=v.stackGroups[k];return ni(ni({},w),{},Yf({},k,{numericAxisId:i,cateAxisId:r,items:_.items,stackedData:l_e(n,_.items,a)}))},b)}return ni(ni({},d),{},Yf({},p,v))},h)},f_e=function(n,t){var i=t.realScaleType,r=t.type,a=t.tickCount,o=t.originalDomain,l=t.allowDecimals,f=i||t.scale;if(f!=="auto"&&f!=="linear")return null;if(a&&r==="number"&&o&&(o[0]==="auto"||o[1]==="auto")){var c=n.domain();if(!c.length)return null;var h=kke(c,a,l);return n.domain([I0(h),nl(h)]),{niceTicks:h}}if(a&&r==="number"){var d=n.domain(),p=_ke(d,a,l);return{niceTicks:p}}return null};function C1(e){var n=e.axis,t=e.ticks,i=e.bandSize,r=e.entry,a=e.index,o=e.dataKey;if(n.type==="category"){if(!n.allowDuplicatedCategory&&n.dataKey&&!Gn(r[n.dataKey])){var l=Zg(t,"value",r[n.dataKey]);if(l)return l.coordinate+i/2}return t[a]?t[a].coordinate+i/2:null}var f=cr(r,Gn(o)?n.dataKey:o);return Gn(f)?null:n.scale(f)}var HP=function(n){var t=n.axis,i=n.ticks,r=n.offset,a=n.bandSize,o=n.entry,l=n.index;if(t.type==="category")return i[l]?i[l].coordinate+r:null;var f=cr(o,t.dataKey,t.domain[l]);return Gn(f)?null:t.scale(f)-a/2+r},c_e=function(n){var t=n.numericAxis,i=t.scale.domain();if(t.type==="number"){var r=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);return r<=0&&a>=0?0:a<0?a:r}return i[0]},d_e=function(n,t){var i,r=(i=n.type)!==null&&i!==void 0&&i.defaultProps?ni(ni({},n.type.defaultProps),n.props):n.props,a=r.stackId;if(_i(a)){var o=t[a];if(o){var l=o.items.indexOf(n);return l>=0?o.stackedData[l]:null}}return null},h_e=function(n){return n.reduce(function(t,i){return[I0(i.concat([t[0]]).filter(We)),nl(i.concat([t[1]]).filter(We))]},[1/0,-1/0])},gV=function(n,t,i){return Object.keys(n).reduce(function(r,a){var o=n[a],l=o.stackedData,f=l.reduce(function(c,h){var d=h_e(h.slice(t,i+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(f[0],r[0]),Math.max(f[1],r[1])]},[1/0,-1/0]).map(function(r){return r===1/0||r===-1/0?0:r})},UP=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,VP=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,L4=function(n,t,i){if(In(n))return n(t,i);if(!Array.isArray(n))return t;var r=[];if(We(n[0]))r[0]=i?n[0]:Math.min(n[0],t[0]);else if(UP.test(n[0])){var a=+UP.exec(n[0])[1];r[0]=t[0]-a}else In(n[0])?r[0]=n[0](t[0]):r[0]=t[0];if(We(n[1]))r[1]=i?n[1]:Math.max(n[1],t[1]);else if(VP.test(n[1])){var o=+VP.exec(n[1])[1];r[1]=t[1]+o}else In(n[1])?r[1]=n[1](t[1]):r[1]=t[1];return r},A1=function(n,t,i){if(n&&n.scale&&n.scale.bandwidth){var r=n.scale.bandwidth();if(!i||r>0)return r}if(n&&t&&t.length>=2){for(var a=Q9(t,function(d){return d.coordinate}),o=1/0,l=1,f=a.length;l o&&(c=2*Math.PI-c),{radius:l,angle:g_e(c),angleInRadian:c}},w_e=function(n){var t=n.startAngle,i=n.endAngle,r=Math.floor(t/360),a=Math.floor(i/360),o=Math.min(r,a);return{startAngle:t-o*360,endAngle:i-o*360}},k_e=function(n,t){var i=t.startAngle,r=t.endAngle,a=Math.floor(i/360),o=Math.floor(r/360),l=Math.min(a,o);return n+l*360},KP=function(n,t){var i=n.x,r=n.y,a=b_e({x:i,y:r},t),o=a.radius,l=a.angle,f=t.innerRadius,c=t.outerRadius;if(o c)return!1;if(o===0)return!0;var h=w_e(t),d=h.startAngle,p=h.endAngle,v=l,b;if(d<=p){for(;v>p;)v-=360;for(;v =d&&v<=p}else{for(;v>d;)v-=360;for(;v =p&&v<=d}return b?YP(YP({},t),{},{radius:o,angle:k_e(v,t)}):null};function wm(e){"@babel/helpers - typeof";return wm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},wm(e)}var __e=["offset"];function x_e(e){return O_e(e)||A_e(e)||C_e(e)||S_e()}function S_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C_e(e,n){if(e){if(typeof e=="string")return I4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return I4(e,n)}}function A_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function O_e(e){if(Array.isArray(e))return I4(e)}function I4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t
=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function E_e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}function XP(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),t.push.apply(t,i)}return t}function bi(e){for(var n=1;n =0?1:-1,x,E;r==="insideStart"?(x=v+C*o,E=w):r==="insideEnd"?(x=b-C*o,E=!w):r==="end"&&(x=b+C*o,E=w),E=_<=0?E:!E;var O=Fi(c,h,k,x),j=Fi(c,h,k,x+(E?1:-1)*359),M="M".concat(O.x,",").concat(O.y,` + A`).concat(k,",").concat(k,",0,1,").concat(E?0:1,`, + `).concat(j.x,",").concat(j.y),N=Gn(n.id)?ed("recharts-radial-line-"):n.id;return Q.createElement("text",km({},i,{dominantBaseline:"central",className:dn("recharts-radial-bar-label",l)}),Q.createElement("defs",null,Q.createElement("path",{id:N,d:M})),Q.createElement("textPath",{xlinkHref:"#".concat(N)},t))},$_e=function(n){var t=n.viewBox,i=n.offset,r=n.position,a=t,o=a.cx,l=a.cy,f=a.innerRadius,c=a.outerRadius,h=a.startAngle,d=a.endAngle,p=(h+d)/2;if(r==="outside"){var v=Fi(o,l,c+i,p),b=v.x,w=v.y;return{x:b,y:w,textAnchor:b>=o?"start":"end",verticalAnchor:"middle"}}if(r==="center")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"middle"};if(r==="centerTop")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"start"};if(r==="centerBottom")return{x:o,y:l,textAnchor:"middle",verticalAnchor:"end"};var k=(f+c)/2,_=Fi(o,l,k,p),C=_.x,x=_.y;return{x:C,y:x,textAnchor:"middle",verticalAnchor:"middle"}},z_e=function(n){var t=n.viewBox,i=n.parentViewBox,r=n.offset,a=n.position,o=t,l=o.x,f=o.y,c=o.width,h=o.height,d=h>=0?1:-1,p=d*r,v=d>0?"end":"start",b=d>0?"start":"end",w=c>=0?1:-1,k=w*r,_=w>0?"end":"start",C=w>0?"start":"end";if(a==="top"){var x={x:l+c/2,y:f-d*r,textAnchor:"middle",verticalAnchor:v};return bi(bi({},x),i?{height:Math.max(f-i.y,0),width:c}:{})}if(a==="bottom"){var E={x:l+c/2,y:f+h+p,textAnchor:"middle",verticalAnchor:b};return bi(bi({},E),i?{height:Math.max(i.y+i.height-(f+h),0),width:c}:{})}if(a==="left"){var O={x:l-k,y:f+h/2,textAnchor:_,verticalAnchor:"middle"};return bi(bi({},O),i?{width:Math.max(O.x-i.x,0),height:h}:{})}if(a==="right"){var j={x:l+c+k,y:f+h/2,textAnchor:C,verticalAnchor:"middle"};return bi(bi({},j),i?{width:Math.max(i.x+i.width-j.x,0),height:h}:{})}var M=i?{width:c,height:h}:{};return a==="insideLeft"?bi({x:l+k,y:f+h/2,textAnchor:C,verticalAnchor:"middle"},M):a==="insideRight"?bi({x:l+c-k,y:f+h/2,textAnchor:_,verticalAnchor:"middle"},M):a==="insideTop"?bi({x:l+c/2,y:f+p,textAnchor:"middle",verticalAnchor:b},M):a==="insideBottom"?bi({x:l+c/2,y:f+h-p,textAnchor:"middle",verticalAnchor:v},M):a==="insideTopLeft"?bi({x:l+k,y:f+p,textAnchor:C,verticalAnchor:b},M):a==="insideTopRight"?bi({x:l+c-k,y:f+p,textAnchor:_,verticalAnchor:b},M):a==="insideBottomLeft"?bi({x:l+k,y:f+h-p,textAnchor:C,verticalAnchor:v},M):a==="insideBottomRight"?bi({x:l+c-k,y:f+h-p,textAnchor:_,verticalAnchor:v},M):Qc(a)&&(We(a.x)||lu(a.x))&&(We(a.y)||lu(a.y))?bi({x:l+Cu(a.x,c),y:f+Cu(a.y,h),textAnchor:"end",verticalAnchor:"end"},M):bi({x:l+c/2,y:f+h/2,textAnchor:"middle",verticalAnchor:"middle"},M)},L_e=function(n){return"cx"in n&&We(n.cx)};function ti(e){var n=e.offset,t=n===void 0?5:n,i=j_e(e,__e),r=bi({offset:t},i),a=r.viewBox,o=r.position,l=r.value,f=r.children,c=r.content,h=r.className,d=h===void 0?"":h,p=r.textBreakAll;if(!a||Gn(l)&&Gn(f)&&!A.isValidElement(c)&&!In(c))return null;if(A.isValidElement(c))return A.cloneElement(c,r);var v;if(In(c)){if(v=A.createElement(c,r),A.isValidElement(v))return v}else v=R_e(r);var b=L_e(a),w=Hn(r,!0);if(b&&(o==="insideStart"||o==="insideEnd"||o==="end"))return N_e(r,v,w);var k=b?$_e(r):z_e(r);return Q.createElement(f1,km({className:dn("recharts-label",d)},w,k,{breakAll:p}),v)}ti.displayName="Label";var bV=function(n){var t=n.cx,i=n.cy,r=n.angle,a=n.startAngle,o=n.endAngle,l=n.r,f=n.radius,c=n.innerRadius,h=n.outerRadius,d=n.x,p=n.y,v=n.top,b=n.left,w=n.width,k=n.height,_=n.clockWise,C=n.labelViewBox;if(C)return C;if(We(w)&&We(k)){if(We(d)&&We(p))return{x:d,y:p,width:w,height:k};if(We(v)&&We(b))return{x:v,y:b,width:w,height:k}}return We(d)&&We(p)?{x:d,y:p,width:0,height:0}:We(t)&&We(i)?{cx:t,cy:i,startAngle:a||r||0,endAngle:o||r||0,innerRadius:c||0,outerRadius:h||f||l||0,clockWise:_}:n.viewBox?n.viewBox:{}},I_e=function(n,t){return n?n===!0?Q.createElement(ti,{key:"label-implicit",viewBox:t}):_i(n)?Q.createElement(ti,{key:"label-implicit",viewBox:t,value:n}):A.isValidElement(n)?n.type===ti?A.cloneElement(n,{key:"label-implicit",viewBox:t}):Q.createElement(ti,{key:"label-implicit",content:n,viewBox:t}):In(n)?Q.createElement(ti,{key:"label-implicit",content:n,viewBox:t}):Qc(n)?Q.createElement(ti,km({viewBox:t},n,{key:"label-implicit"})):null:null},B_e=function(n,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!n||!n.children&&i&&!n.label)return null;var r=n.children,a=bV(n),o=va(r,ti).map(function(f,c){return A.cloneElement(f,{viewBox:t||a,key:"label-".concat(c)})});if(!i)return o;var l=I_e(n.label,t||a);return[l].concat(x_e(o))};ti.parseViewBox=bV;ti.renderCallByParent=B_e;var T3,ZP;function F_e(){if(ZP)return T3;ZP=1;function e(n){var t=n==null?0:n.length;return t?n[t-1]:void 0}return T3=e,T3}var q_e=F_e();const H_e=mt(q_e);function _m(e){"@babel/helpers - typeof";return _m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},_m(e)}var U_e=["valueAccessor"],V_e=["data","dataKey","clockWise","id","textBreakAll"];function W_e(e){return X_e(e)||K_e(e)||Y_e(e)||G_e()}function G_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Y_e(e,n){if(e){if(typeof e=="string")return B4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return B4(e,n)}}function K_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function X_e(e){if(Array.isArray(e))return B4(e)}function B4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function e2e(e,n){if(e==null)return{};var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){if(n.indexOf(i)>=0)continue;t[i]=e[i]}return t}var n2e=function(n){return Array.isArray(n.value)?H_e(n.value):n.value};function fo(e){var n=e.valueAccessor,t=n===void 0?n2e:n,i=eN(e,U_e),r=i.data,a=i.dataKey,o=i.clockWise,l=i.id,f=i.textBreakAll,c=eN(i,V_e);return!r||!r.length?null:Q.createElement(It,{className:"recharts-label-list"},r.map(function(h,d){var p=Gn(a)?t(h,d):cr(h&&h.payload,a),v=Gn(l)?{}:{id:"".concat(l,"-").concat(d)};return Q.createElement(ti,j1({},Hn(h,!0),c,v,{parentViewBox:h.parentViewBox,value:p,textBreakAll:f,viewBox:ti.parseViewBox(Gn(o)?h:JP(JP({},h),{},{clockWise:o})),key:"label-".concat(d),index:d}))}))}fo.displayName="LabelList";function t2e(e,n){return e?e===!0?Q.createElement(fo,{key:"labelList-implicit",data:n}):Q.isValidElement(e)||In(e)?Q.createElement(fo,{key:"labelList-implicit",data:n,content:e}):Qc(e)?Q.createElement(fo,j1({data:n},e,{key:"labelList-implicit"})):null:null}function i2e(e,n){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&t&&!e.label)return null;var i=e.children,r=va(i,fo).map(function(o,l){return A.cloneElement(o,{data:n,key:"labelList-".concat(l)})});if(!t)return r;var a=t2e(e.label,n);return[a].concat(W_e(r))}fo.renderCallByParent=i2e;function xm(e){"@babel/helpers - typeof";return xm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},xm(e)}function F4(){return F4=Object.assign?Object.assign.bind():function(e){for(var n=1;n 180),",").concat(+(o>c),`, + `).concat(d.x,",").concat(d.y,` + `);if(r>0){var v=Fi(t,i,r,o),b=Fi(t,i,r,c);p+="L ".concat(b.x,",").concat(b.y,` + A `).concat(r,",").concat(r,`,0, + `).concat(+(Math.abs(f)>180),",").concat(+(o<=c),`, + `).concat(v.x,",").concat(v.y," Z")}else p+="L ".concat(t,",").concat(i," Z");return p},l2e=function(n){var t=n.cx,i=n.cy,r=n.innerRadius,a=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,f=n.cornerIsExternal,c=n.startAngle,h=n.endAngle,d=Fa(h-c),p=ng({cx:t,cy:i,radius:a,angle:c,sign:d,cornerRadius:o,cornerIsExternal:f}),v=p.circleTangency,b=p.lineTangency,w=p.theta,k=ng({cx:t,cy:i,radius:a,angle:h,sign:-d,cornerRadius:o,cornerIsExternal:f}),_=k.circleTangency,C=k.lineTangency,x=k.theta,E=f?Math.abs(c-h):Math.abs(c-h)-w-x;if(E<0)return l?"M ".concat(b.x,",").concat(b.y,` + a`).concat(o,",").concat(o,",0,0,1,").concat(o*2,`,0 + a`).concat(o,",").concat(o,",0,0,1,").concat(-o*2,`,0 + `):wV({cx:t,cy:i,innerRadius:r,outerRadius:a,startAngle:c,endAngle:h});var O="M ".concat(b.x,",").concat(b.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(v.x,",").concat(v.y,` + A`).concat(a,",").concat(a,",0,").concat(+(E>180),",").concat(+(d<0),",").concat(_.x,",").concat(_.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(C.x,",").concat(C.y,` + `);if(r>0){var j=ng({cx:t,cy:i,radius:r,angle:c,sign:d,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),M=j.circleTangency,N=j.lineTangency,H=j.theta,P=ng({cx:t,cy:i,radius:r,angle:h,sign:-d,isExternal:!0,cornerRadius:o,cornerIsExternal:f}),z=P.circleTangency,F=P.lineTangency,G=P.theta,U=f?Math.abs(c-h):Math.abs(c-h)-H-G;if(U<0&&o===0)return"".concat(O,"L").concat(t,",").concat(i,"Z");O+="L".concat(F.x,",").concat(F.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(z.x,",").concat(z.y,` + A`).concat(r,",").concat(r,",0,").concat(+(U>180),",").concat(+(d>0),",").concat(M.x,",").concat(M.y,` + A`).concat(o,",").concat(o,",0,0,").concat(+(d<0),",").concat(N.x,",").concat(N.y,"Z")}else O+="L".concat(t,",").concat(i,"Z");return O},u2e={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},kV=function(n){var t=tN(tN({},u2e),n),i=t.cx,r=t.cy,a=t.innerRadius,o=t.outerRadius,l=t.cornerRadius,f=t.forceCornerRadius,c=t.cornerIsExternal,h=t.startAngle,d=t.endAngle,p=t.className;if(o0&&Math.abs(h-d)<360?k=l2e({cx:i,cy:r,innerRadius:a,outerRadius:o,cornerRadius:Math.min(w,b/2),forceCornerRadius:f,cornerIsExternal:c,startAngle:h,endAngle:d}):k=wV({cx:i,cy:r,innerRadius:a,outerRadius:o,startAngle:h,endAngle:d}),Q.createElement("path",F4({},Hn(t,!0),{className:v,d:k,role:"img"}))};function Sm(e){"@babel/helpers - typeof";return Sm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Sm(e)}function q4(){return q4=Object.assign?Object.assign.bind():function(e){for(var n=1;n g2e.call(e,n));function qu(e,n){return e===n||!e&&!n&&e!==e&&n!==n}const w2e="__v",k2e="__o",_2e="_owner",{getOwnPropertyDescriptor:sN,keys:lN}=Object;function x2e(e,n){return e.byteLength===n.byteLength&&E1(new Uint8Array(e),new Uint8Array(n))}function S2e(e,n,t){let i=e.length;if(n.length!==i)return!1;for(;i-- >0;)if(!t.equals(e[i],n[i],i,i,e,n,t))return!1;return!0}function C2e(e,n){return e.byteLength===n.byteLength&&E1(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(n.buffer,n.byteOffset,n.byteLength))}function A2e(e,n){return qu(e.getTime(),n.getTime())}function O2e(e,n){return e.name===n.name&&e.message===n.message&&e.cause===n.cause&&e.stack===n.stack}function j2e(e,n){return e===n}function uN(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.entries();let o,l,f=0;for(;(o=a.next())&&!o.done;){const c=n.entries();let h=!1,d=0;for(;(l=c.next())&&!l.done;){if(r[d]){d++;continue}const p=o.value,v=l.value;if(t.equals(p[0],v[0],f,d,e,n,t)&&t.equals(p[1],v[1],p[0],v[0],e,n,t)){h=r[d]=!0;break}d++}if(!h)return!1;f++}return!0}const E2e=qu;function T2e(e,n,t){const i=lN(e);let r=i.length;if(lN(n).length!==r)return!1;for(;r-- >0;)if(!_V(e,n,t,i[r]))return!1;return!0}function hh(e,n,t){const i=oN(e);let r=i.length;if(oN(n).length!==r)return!1;let a,o,l;for(;r-- >0;)if(a=i[r],!_V(e,n,t,a)||(o=sN(e,a),l=sN(n,a),(o||l)&&(!o||!l||o.configurable!==l.configurable||o.enumerable!==l.enumerable||o.writable!==l.writable)))return!1;return!0}function M2e(e,n){return qu(e.valueOf(),n.valueOf())}function D2e(e,n){return e.source===n.source&&e.flags===n.flags}function fN(e,n,t){const i=e.size;if(i!==n.size)return!1;if(!i)return!0;const r=new Array(i),a=e.values();let o,l;for(;(o=a.next())&&!o.done;){const f=n.values();let c=!1,h=0;for(;(l=f.next())&&!l.done;){if(!r[h]&&t.equals(o.value,l.value,o.value,l.value,e,n,t)){c=r[h]=!0;break}h++}if(!c)return!1}return!0}function E1(e,n){let t=e.byteLength;if(n.byteLength!==t||e.byteOffset!==n.byteOffset)return!1;for(;t-- >0;)if(e[t]!==n[t])return!1;return!0}function R2e(e,n){return e.hostname===n.hostname&&e.pathname===n.pathname&&e.protocol===n.protocol&&e.port===n.port&&e.hash===n.hash&&e.username===n.username&&e.password===n.password}function _V(e,n,t,i){return(i===_2e||i===k2e||i===w2e)&&(e.$$typeof||n.$$typeof)?!0:b2e(n,i)&&t.equals(e[i],n[i],i,i,e,n,t)}const P2e="[object ArrayBuffer]",N2e="[object Arguments]",$2e="[object Boolean]",z2e="[object DataView]",L2e="[object Date]",I2e="[object Error]",B2e="[object Map]",F2e="[object Number]",q2e="[object Object]",H2e="[object RegExp]",U2e="[object Set]",V2e="[object String]",W2e={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},G2e="[object URL]",Y2e=Object.prototype.toString;function K2e({areArrayBuffersEqual:e,areArraysEqual:n,areDataViewsEqual:t,areDatesEqual:i,areErrorsEqual:r,areFunctionsEqual:a,areMapsEqual:o,areNumbersEqual:l,areObjectsEqual:f,arePrimitiveWrappersEqual:c,areRegExpsEqual:h,areSetsEqual:d,areTypedArraysEqual:p,areUrlsEqual:v,unknownTagComparators:b}){return function(k,_,C){if(k===_)return!0;if(k==null||_==null)return!1;const x=typeof k;if(x!==typeof _)return!1;if(x!=="object")return x==="number"?l(k,_,C):x==="function"?a(k,_,C):!1;const E=k.constructor;if(E!==_.constructor)return!1;if(E===Object)return f(k,_,C);if(Array.isArray(k))return n(k,_,C);if(E===Date)return i(k,_,C);if(E===RegExp)return h(k,_,C);if(E===Map)return o(k,_,C);if(E===Set)return d(k,_,C);const O=Y2e.call(k);if(O===L2e)return i(k,_,C);if(O===H2e)return h(k,_,C);if(O===B2e)return o(k,_,C);if(O===U2e)return d(k,_,C);if(O===q2e)return typeof k.then!="function"&&typeof _.then!="function"&&f(k,_,C);if(O===G2e)return v(k,_,C);if(O===I2e)return r(k,_,C);if(O===N2e)return f(k,_,C);if(W2e[O])return p(k,_,C);if(O===P2e)return e(k,_,C);if(O===z2e)return t(k,_,C);if(O===$2e||O===F2e||O===V2e)return c(k,_,C);if(b){let j=b[O];if(!j){const M=y2e(k);M&&(j=b[M])}if(j)return j(k,_,C)}return!1}}function X2e({circular:e,createCustomConfig:n,strict:t}){let i={areArrayBuffersEqual:x2e,areArraysEqual:t?hh:S2e,areDataViewsEqual:C2e,areDatesEqual:A2e,areErrorsEqual:O2e,areFunctionsEqual:j2e,areMapsEqual:t?M3(uN,hh):uN,areNumbersEqual:E2e,areObjectsEqual:t?hh:T2e,arePrimitiveWrappersEqual:M2e,areRegExpsEqual:D2e,areSetsEqual:t?M3(fN,hh):fN,areTypedArraysEqual:t?M3(E1,hh):E1,areUrlsEqual:R2e,unknownTagComparators:void 0};if(n&&(i=Object.assign({},i,n(i))),e){const r=ig(i.areArraysEqual),a=ig(i.areMapsEqual),o=ig(i.areObjectsEqual),l=ig(i.areSetsEqual);i=Object.assign({},i,{areArraysEqual:r,areMapsEqual:a,areObjectsEqual:o,areSetsEqual:l})}return i}function Z2e(e){return function(n,t,i,r,a,o,l){return e(n,t,l)}}function Q2e({circular:e,comparator:n,createState:t,equals:i,strict:r}){if(t)return function(l,f){const{cache:c=e?new WeakMap:void 0,meta:h}=t();return n(l,f,{cache:c,equals:i,meta:h,strict:r})};if(e)return function(l,f){return n(l,f,{cache:new WeakMap,equals:i,meta:void 0,strict:r})};const a={cache:void 0,equals:i,meta:void 0,strict:r};return function(l,f){return n(l,f,a)}}const J2e=Cl();Cl({strict:!0});Cl({circular:!0});Cl({circular:!0,strict:!0});Cl({createInternalComparator:()=>qu});Cl({strict:!0,createInternalComparator:()=>qu});Cl({circular:!0,createInternalComparator:()=>qu});Cl({circular:!0,createInternalComparator:()=>qu,strict:!0});function Cl(e={}){const{circular:n=!1,createInternalComparator:t,createState:i,strict:r=!1}=e,a=X2e(e),o=K2e(a),l=t?t(o):Z2e(o);return Q2e({circular:n,comparator:o,createState:i,equals:l,strict:r})}function exe(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function cN(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=-1,i=function r(a){t<0&&(t=a),a-t>n?(e(a),t=-1):exe(r)};requestAnimationFrame(i)}function H4(e){"@babel/helpers - typeof";return H4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},H4(e)}function nxe(e){return axe(e)||rxe(e)||ixe(e)||txe()}function txe(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ixe(e,n){if(e){if(typeof e=="string")return dN(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return dN(e,n)}}function dN(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t e.length)&&(n=e.length);for(var t=0,i=new Array(n);t 1?1:_<0?0:_},w=function(_){for(var C=_>1?1:_,x=C,E=0;E<8;++E){var O=d(x)-C,j=v(x);if(Math.abs(O-C) 0&&arguments[0]!==void 0?arguments[0]:{},t=n.stiff,i=t===void 0?100:t,r=n.damping,a=r===void 0?8:r,o=n.dt,l=o===void 0?17:o,f=function(h,d,p){var v=-(h-d)*i,b=p*a,w=p+(v-b)*l/1e3,k=p*l/1e3+h;return Math.abs(k-d) e.length)&&(n=e.length);for(var t=0,i=new Array(n);t =0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}function $xe(e,n){if(e==null)return{};var t={},i=Object.keys(e),r,a;for(a=0;a =0)&&(t[r]=e[r]);return t}function D3(e){return Bxe(e)||Ixe(e)||Lxe(e)||zxe()}function zxe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Lxe(e,n){if(e){if(typeof e=="string")return Y4(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);if(t==="Object"&&e.constructor&&(t=e.constructor.name),t==="Map"||t==="Set")return Array.from(e);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Y4(e,n)}}function Ixe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Bxe(e){if(Array.isArray(e))return Y4(e)}function Y4(e,n){(n==null||n>e.length)&&(n=e.length);for(var t=0,i=new Array(n);t "u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function D1(e){return D1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D1(e)}var go=(function(e){Vxe(t,e);var n=Wxe(t);function t(i,r){var a;Fxe(this,t),a=n.call(this,i,r);var o=a.props,l=o.isActive,f=o.attributeName,c=o.from,h=o.to,d=o.steps,p=o.children,v=o.duration;if(a.handleStyleChange=a.handleStyleChange.bind(Z4(a)),a.changeStyle=a.changeStyle.bind(Z4(a)),!l||v<=0)return a.state={style:{}},typeof p=="function"&&(a.state={style:h}),X4(a);if(d&&d.length)a.state={style:d[0].style};else if(c){if(typeof p=="function")return a.state={style:c},X4(a);a.state={style:f?Ah({},f,c):c}}else a.state={style:{}};return a}return Hxe(t,[{key:"componentDidMount",value:function(){var r=this.props,a=r.isActive,o=r.canBegin;this.mounted=!0,!(!a||!o)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(r){var a=this.props,o=a.isActive,l=a.canBegin,f=a.attributeName,c=a.shouldReAnimate,h=a.to,d=a.from,p=this.state.style;if(l){if(!o){var v={style:f?Ah({},f,h):h};this.state&&p&&(f&&p[f]!==h||!f&&p!==h)&&this.setState(v);return}if(!(J2e(r.to,h)&&r.canBegin&&r.isActive)){var b=!r.canBegin||!r.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var w=b||c?d:r.to;if(this.state&&p){var k={style:f?Ah({},f,w):w};(f&&p[f]!==w||!f&&p!==w)&&this.setState(k)}this.runAnimation(Pa(Pa({},this.props),{},{from:w,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var r=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),r&&r()}},{key:"handleStyleChange",value:function(r){this.changeStyle(r)}},{key:"changeStyle",value:function(r){this.mounted&&this.setState({style:r})}},{key:"runJSAnimation",value:function(r){var a=this,o=r.from,l=r.to,f=r.duration,c=r.easing,h=r.begin,d=r.onAnimationEnd,p=r.onAnimationStart,v=Rxe(o,l,_xe(c),f,this.changeStyle),b=function(){a.stopJSAnimation=v()};this.manager.start([p,h,b,f,d])}},{key:"runStepAnimation",value:function(r){var a=this,o=r.steps,l=r.begin,f=r.onAnimationStart,c=o[0],h=c.style,d=c.duration,p=d===void 0?0:d,v=function(w,k,_){if(_===0)return w;var C=k.duration,x=k.easing,E=x===void 0?"ease":x,O=k.style,j=k.properties,M=k.onAnimationEnd,N=_>0?o[_-1]:k,H=j||Object.keys(O);if(typeof E=="function"||E==="spring")return[].concat(D3(w),[a.runJSAnimation.bind(a,{from:N.style,to:O,duration:C,easing:E}),C]);var P=pN(H,C,E),z=Pa(Pa(Pa({},N.style),O),{},{transition:P});return[].concat(D3(w),[z,C,M]).filter(fxe)};return this.manager.start([f].concat(D3(o.reduce(v,[h,Math.max(p,l)])),[r.onAnimationEnd]))}},{key:"runAnimation",value:function(r){this.manager||(this.manager=oxe());var a=r.begin,o=r.duration,l=r.attributeName,f=r.to,c=r.easing,h=r.onAnimationStart,d=r.onAnimationEnd,p=r.steps,v=r.children,b=this.manager;if(this.unSubscribe=b.subscribe(this.handleStyleChange),typeof c=="function"||typeof v=="function"||c==="spring"){this.runJSAnimation(r);return}if(p.length>1){this.runStepAnimation(r);return}var w=l?Ah({},l,f):f,k=pN(Object.keys(w),o,c);b.start([h,a,Pa(Pa({},w),{},{transition:k}),o,d])}},{key:"render",value:function(){var r=this.props,a=r.children;r.begin;var o=r.duration;r.attributeName,r.easing;var l=r.isActive;r.steps,r.from,r.to,r.canBegin,r.onAnimationEnd,r.shouldReAnimate,r.onAnimationReStart;var f=Nxe(r,Pxe),c=A.Children.count(a),h=this.state.style;if(typeof a=="function")return a(h);if(!l||c===0||o<=0)return a;var d=function(v){var b=v.props,w=b.style,k=w===void 0?{}:w,_=b.className,C=A.cloneElement(v,Pa(Pa({},f),{},{style:Pa(Pa({},k),h),className:_}));return C};return c===1?d(A.Children.only(a)):Q.createElement("div",null,A.Children.map(a,function(p){return d(p)}))}}]),t})(A.PureComponent);go.displayName="Animate";go.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};go.propTypes={from:vt.oneOfType([vt.object,vt.string]),to:vt.oneOfType([vt.object,vt.string]),attributeName:vt.string,duration:vt.number,begin:vt.number,easing:vt.oneOfType([vt.string,vt.func]),steps:vt.arrayOf(vt.shape({duration:vt.number.isRequired,style:vt.object.isRequired,easing:vt.oneOfType([vt.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),vt.func]),properties:vt.arrayOf("string"),onAnimationEnd:vt.func})),children:vt.oneOfType([vt.node,vt.func]),isActive:vt.bool,canBegin:vt.bool,onAnimationEnd:vt.func,shouldReAnimate:vt.bool,onAnimationStart:vt.func,onAnimationReStart:vt.func};function Om(e){"@babel/helpers - typeof";return Om=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},Om(e)}function R1(){return R1=Object.assign?Object.assign.bind():function(e){for(var n=1;n