diff --git "a/assets/embed-DSsDnZHG.js" "b/assets/embed-DSsDnZHG.js" deleted file mode 100644 --- "a/assets/embed-DSsDnZHG.js" +++ /dev/null @@ -1,151 +0,0 @@ -import{a as zx,f as Ei,c as wi,d as Qy,J as kx}from"./protocol-yMW1n-O_.js";import{a as yp,d as Cd,m as Nx,r as Td}from"./index-CsmyDA4N.js";function Dx(t,r){for(var o=0;oi[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}function Vv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ed={exports:{}},ai={};var Zy;function jx(){if(Zy)return ai;Zy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function o(i,s,c){var d=null;if(c!==void 0&&(d=""+c),s.key!==void 0&&(d=""+s.key),"key"in s){c={};for(var p in s)p!=="key"&&(c[p]=s[p])}else c=s;return s=c.ref,{$$typeof:t,type:i,key:d,ref:s!==void 0?s:null,props:c}}return ai.Fragment=r,ai.jsx=o,ai.jsxs=o,ai}var Wy;function Bx(){return Wy||(Wy=1,Ed.exports=jx()),Ed.exports}var A=Bx(),wd={exports:{}},Be={};var Jy;function Lx(){if(Jy)return Be;Jy=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),w=Symbol.iterator;function b(z){return z===null||typeof z!="object"?null:(z=w&&z[w]||z["@@iterator"],typeof z=="function"?z:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,M={};function D(z,V,ne){this.props=z,this.context=V,this.refs=M,this.updater=ne||E}D.prototype.isReactComponent={},D.prototype.setState=function(z,V){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,V,"setState")},D.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function L(){}L.prototype=D.prototype;function O(z,V,ne){this.props=z,this.context=V,this.refs=M,this.updater=ne||E}var R=O.prototype=new L;R.constructor=O,C(R,D.prototype),R.isPureReactComponent=!0;var N=Array.isArray;function j(){}var $={H:null,A:null,T:null,S:null},P=Object.prototype.hasOwnProperty;function Y(z,V,ne){var le=ne.ref;return{$$typeof:t,type:z,key:V,ref:le!==void 0?le:null,props:ne}}function q(z,V){return Y(z.type,V,z.props)}function Q(z){return typeof z=="object"&&z!==null&&z.$$typeof===t}function x(z){var V={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(ne){return V[ne]})}var H=/\/+/g;function X(z,V){return typeof z=="object"&&z!==null&&z.key!=null?x(""+z.key):V.toString(36)}function W(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(j,j):(z.status="pending",z.then(function(V){z.status==="pending"&&(z.status="fulfilled",z.value=V)},function(V){z.status==="pending"&&(z.status="rejected",z.reason=V)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function k(z,V,ne,le,ce){var se=typeof z;(se==="undefined"||se==="boolean")&&(z=null);var de=!1;if(z===null)de=!0;else switch(se){case"bigint":case"string":case"number":de=!0;break;case"object":switch(z.$$typeof){case t:case r:de=!0;break;case y:return de=z._init,k(de(z._payload),V,ne,le,ce)}}if(de)return ce=ce(z),de=le===""?"."+X(z,0):le,N(ce)?(ne="",de!=null&&(ne=de.replace(H,"$&/")+"/"),k(ce,V,ne,"",function(xe){return xe})):ce!=null&&(Q(ce)&&(ce=q(ce,ne+(ce.key==null||z&&z.key===ce.key?"":(""+ce.key).replace(H,"$&/")+"/")+de)),V.push(ce)),1;de=0;var ze=le===""?".":le+":";if(N(z))for(var ye=0;ye>>1,pe=k[ae];if(0>>1;aes(ne,J))les(ce,ne)?(k[ae]=ce,k[le]=J,ae=le):(k[ae]=ne,k[V]=J,ae=V);else if(les(ce,J))k[ae]=ce,k[le]=J,ae=le;else break e}}return I}function s(k,I){var J=k.sortIndex-I.sortIndex;return J!==0?J:k.id-I.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();t.unstable_now=function(){return d.now()-p}}var m=[],h=[],y=1,v=null,w=3,b=!1,E=!1,C=!1,M=!1,D=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function R(k){for(var I=o(h);I!==null;){if(I.callback===null)i(h);else if(I.startTime<=k)i(h),I.sortIndex=I.expirationTime,r(m,I);else break;I=o(h)}}function N(k){if(C=!1,R(k),!E)if(o(m)!==null)E=!0,j||(j=!0,x());else{var I=o(h);I!==null&&W(N,I.startTime-k)}}var j=!1,$=-1,P=5,Y=-1;function q(){return M?!0:!(t.unstable_now()-Yk&&q());){var ae=v.callback;if(typeof ae=="function"){v.callback=null,w=v.priorityLevel;var pe=ae(v.expirationTime<=k);if(k=t.unstable_now(),typeof pe=="function"){v.callback=pe,R(k),I=!0;break t}v===o(m)&&i(m),R(k)}else i(m);v=o(m)}if(v!==null)I=!0;else{var z=o(h);z!==null&&W(N,z.startTime-k),I=!1}}break e}finally{v=null,w=J,b=!1}I=void 0}}finally{I?x():j=!1}}}var x;if(typeof O=="function")x=function(){O(Q)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,X=H.port2;H.port1.onmessage=Q,x=function(){X.postMessage(null)}}else x=function(){D(Q,0)};function W(k,I){$=D(function(){k(t.unstable_now())},I)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(k){k.callback=null},t.unstable_forceFrameRate=function(k){0>k||125ae?(k.sortIndex=J,r(h,k),o(m)===null&&k===o(h)&&(C?(L($),$=-1):C=!0,W(N,J-ae))):(k.sortIndex=pe,r(m,k),E||b||(E=!0,j||(j=!0,x()))),k},t.unstable_shouldYield=q,t.unstable_wrapCallback=function(k){var I=w;return function(){var J=w;w=I;try{return k.apply(this,arguments)}finally{w=J}}}})(Md)),Md}var n0;function $x(){return n0||(n0=1,Rd.exports=_x()),Rd.exports}var Od={exports:{}},fn={};var a0;function Hx(){if(a0)return fn;a0=1;var t=vp();function r(m){var h="https://react.dev/errors/"+m;if(1"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Od.exports=Hx(),Od.exports}var o0;function Ux(){if(o0)return ri;o0=1;var t=$x(),r=vp(),o=qv();function i(e){var n="https://react.dev/errors/"+e;if(1pe||(e.current=ae[pe],ae[pe]=null,pe--)}function ne(e,n){pe++,ae[pe]=e.current,e.current=n}var le=z(null),ce=z(null),se=z(null),de=z(null);function ze(e,n){switch(ne(se,n),ne(ce,e),ne(le,null),n.nodeType){case 9:case 11:e=(e=n.documentElement)&&(e=e.namespaceURI)?by(e):0;break;default:if(e=n.tagName,n=n.namespaceURI)n=by(n),e=Sy(n,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}V(le),ne(le,e)}function ye(){V(le),V(ce),V(se)}function xe(e){e.memoizedState!==null&&ne(de,e);var n=le.current,a=Sy(n,e.type);n!==a&&(ne(ce,e),ne(le,a))}function Ae(e){ce.current===e&&(V(le),V(ce)),de.current===e&&(V(de),Jl._currentValue=J)}var Re,Le;function be(e){if(Re===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);Re=n&&n[1]||"",Le=-1)":-1u||B[l]!==F[u]){var ee=` -`+B[l].replace(" at new "," at ");return e.displayName&&ee.includes("")&&(ee=ee.replace("",e.displayName)),ee}while(1<=l&&0<=u);break}}}finally{$e=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?be(a):""}function De(e,n){switch(e.tag){case 26:case 27:case 5:return be(e.type);case 16:return be("Lazy");case 13:return e.child!==n&&n!==null?be("Suspense Fallback"):be("Suspense");case 19:return be("SuspenseList");case 0:case 15:return Ze(e.type,!1);case 11:return Ze(e.type.render,!1);case 1:return Ze(e.type,!0);case 31:return be("Activity");default:return""}}function Pe(e){try{var n="",a=null;do n+=De(e,a),a=e,e=e.return;while(e);return n}catch(l){return` -Error generating stack: `+l.message+` -`+l.stack}}var Ie=Object.prototype.hasOwnProperty,We=t.unstable_scheduleCallback,Ve=t.unstable_cancelCallback,ge=t.unstable_shouldYield,Mt=t.unstable_requestPaint,He=t.unstable_now,fe=t.unstable_getCurrentPriorityLevel,ie=t.unstable_ImmediatePriority,me=t.unstable_UserBlockingPriority,Se=t.unstable_NormalPriority,Ce=t.unstable_LowPriority,ke=t.unstable_IdlePriority,we=t.log,ut=t.unstable_setDisableYieldValue,je=null,Ye=null;function Vt(e){if(typeof we=="function"&&ut(e),Ye&&typeof Ye.setStrictMode=="function")try{Ye.setStrictMode(je,e)}catch{}}var Nt=Math.clz32?Math.clz32:Te,Oa=Math.log,ra=Math.LN2;function Te(e){return e>>>=0,e===0?32:31-(Oa(e)/ra|0)|0}var Ge=256,wt=262144,nt=4194304;function pt(e){var n=e&42;if(n!==0)return n;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function da(e,n,a){var l=e.pendingLanes;if(l===0)return 0;var u=0,f=e.suspendedLanes,g=e.pingedLanes;e=e.warmLanes;var T=l&134217727;return T!==0?(l=T&~f,l!==0?u=pt(l):(g&=T,g!==0?u=pt(g):a||(a=T&~e,a!==0&&(u=pt(a))))):(T=l&~f,T!==0?u=pt(T):g!==0?u=pt(g):a||(a=l&~e,a!==0&&(u=pt(a)))),u===0?0:n!==0&&n!==u&&(n&f)===0&&(f=u&-u,a=n&-n,f>=a||f===32&&(a&4194048)!==0)?n:u}function $n(e,n){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&n)===0}function Rn(e,n){switch(e){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 _e(){var e=nt;return nt<<=1,(nt&62914560)===0&&(nt=4194304),e}function Jt(e){for(var n=[],a=0;31>a;a++)n.push(e);return n}function za(e,n){e.pendingLanes|=n,n!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function v1(e,n,a,l,u,f){var g=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var T=e.entanglements,B=e.expirationTimes,F=e.hiddenUpdates;for(a=g&~a;0"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var E1=/[\n"\\]/g;function Un(e){return e.replace(E1,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function hc(e,n,a,l,u,f,g,T){e.name="",g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"?e.type=g:e.removeAttribute("type"),n!=null?g==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+Hn(n)):e.value!==""+Hn(n)&&(e.value=""+Hn(n)):g!=="submit"&&g!=="reset"||e.removeAttribute("value"),n!=null?gc(e,g,Hn(n)):a!=null?gc(e,g,Hn(a)):l!=null&&e.removeAttribute("value"),u==null&&f!=null&&(e.defaultChecked=!!f),u!=null&&(e.checked=u&&typeof u!="function"&&typeof u!="symbol"),T!=null&&typeof T!="function"&&typeof T!="symbol"&&typeof T!="boolean"?e.name=""+Hn(T):e.removeAttribute("name")}function pm(e,n,a,l,u,f,g,T){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),n!=null||a!=null){if(!(f!=="submit"&&f!=="reset"||n!=null)){mc(e);return}a=a!=null?""+Hn(a):"",n=n!=null?""+Hn(n):a,T||n===e.value||(e.value=n),e.defaultValue=n}l=l??u,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=T?e.checked:!!l,e.defaultChecked=!!l,g!=null&&typeof g!="function"&&typeof g!="symbol"&&typeof g!="boolean"&&(e.name=g),mc(e)}function gc(e,n,a){n==="number"&&qi(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function so(e,n,a,l){if(e=e.options,n){n={};for(var u=0;u"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),xc=!1;if(Da)try{var yl={};Object.defineProperty(yl,"passive",{get:function(){xc=!0}}),window.addEventListener("test",yl,yl),window.removeEventListener("test",yl,yl)}catch{xc=!1}var tr=null,Cc=null,Ii=null;function Sm(){if(Ii)return Ii;var e,n=Cc,a=n.length,l,u="value"in tr?tr.value:tr.textContent,f=u.length;for(e=0;e=Sl),Am=" ",Rm=!1;function Mm(e,n){switch(e){case"keyup":return W1.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Om(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var po=!1;function eS(e,n){switch(e){case"compositionend":return Om(n);case"keypress":return n.which!==32?null:(Rm=!0,Am);case"textInput":return e=n.data,e===Am&&Rm?null:e;default:return null}}function tS(e,n){if(po)return e==="compositionend"||!Rc&&Mm(e,n)?(e=Sm(),Ii=Cc=tr=null,po=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:a,offset:n-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=_m(a)}}function Hm(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Hm(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Um(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var n=qi(e.document);n instanceof e.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)e=n.contentWindow;else break;n=qi(e.document)}return n}function zc(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}var uS=Da&&"documentMode"in document&&11>=document.documentMode,mo=null,kc=null,El=null,Nc=!1;function Pm(e,n,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Nc||mo==null||mo!==qi(l)||(l=mo,"selectionStart"in l&&zc(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),El&&Tl(El,l)||(El=l,l=$s(kc,"onSelect"),0>=g,u-=g,pa=1<<32-Nt(n)+u|a<qe?(et=Ee,Ee=null):et=Ee.sibling;var st=K(U,Ee,G[qe],re);if(st===null){Ee===null&&(Ee=et);break}e&&Ee&&st.alternate===null&&n(U,Ee),_=f(st,_,qe),it===null?Me=st:it.sibling=st,it=st,Ee=et}if(qe===G.length)return a(U,Ee),tt&&Ba(U,qe),Me;if(Ee===null){for(;qeqe?(et=Ee,Ee=null):et=Ee.sibling;var Tr=K(U,Ee,st.value,re);if(Tr===null){Ee===null&&(Ee=et);break}e&&Ee&&Tr.alternate===null&&n(U,Ee),_=f(Tr,_,qe),it===null?Me=Tr:it.sibling=Tr,it=Tr,Ee=et}if(st.done)return a(U,Ee),tt&&Ba(U,qe),Me;if(Ee===null){for(;!st.done;qe++,st=G.next())st=oe(U,st.value,re),st!==null&&(_=f(st,_,qe),it===null?Me=st:it.sibling=st,it=st);return tt&&Ba(U,qe),Me}for(Ee=l(Ee);!st.done;qe++,st=G.next())st=Z(Ee,U,qe,st.value,re),st!==null&&(e&&st.alternate!==null&&Ee.delete(st.key===null?qe:st.key),_=f(st,_,qe),it===null?Me=st:it.sibling=st,it=st);return e&&Ee.forEach(function(Ox){return n(U,Ox)}),tt&&Ba(U,qe),Me}function xt(U,_,G,re){if(typeof G=="object"&&G!==null&&G.type===C&&G.key===null&&(G=G.props.children),typeof G=="object"&&G!==null){switch(G.$$typeof){case b:e:{for(var Me=G.key;_!==null;){if(_.key===Me){if(Me=G.type,Me===C){if(_.tag===7){a(U,_.sibling),re=u(_,G.props.children),re.return=U,U=re;break e}}else if(_.elementType===Me||typeof Me=="object"&&Me!==null&&Me.$$typeof===P&&Ur(Me)===_.type){a(U,_.sibling),re=u(_,G.props),zl(re,G),re.return=U,U=re;break e}a(U,_);break}else n(U,_);_=_.sibling}G.type===C?(re=Br(G.props.children,U.mode,re,G.key),re.return=U,U=re):(re=ts(G.type,G.key,G.props,null,U.mode,re),zl(re,G),re.return=U,U=re)}return g(U);case E:e:{for(Me=G.key;_!==null;){if(_.key===Me)if(_.tag===4&&_.stateNode.containerInfo===G.containerInfo&&_.stateNode.implementation===G.implementation){a(U,_.sibling),re=u(_,G.children||[]),re.return=U,U=re;break e}else{a(U,_);break}else n(U,_);_=_.sibling}re=Hc(G,U.mode,re),re.return=U,U=re}return g(U);case P:return G=Ur(G),xt(U,_,G,re)}if(W(G))return ve(U,_,G,re);if(x(G)){if(Me=x(G),typeof Me!="function")throw Error(i(150));return G=Me.call(G),Ne(U,_,G,re)}if(typeof G.then=="function")return xt(U,_,ss(G),re);if(G.$$typeof===O)return xt(U,_,rs(U,G),re);us(U,G)}return typeof G=="string"&&G!==""||typeof G=="number"||typeof G=="bigint"?(G=""+G,_!==null&&_.tag===6?(a(U,_.sibling),re=u(_,G),re.return=U,U=re):(a(U,_),re=$c(G,U.mode,re),re.return=U,U=re),g(U)):a(U,_)}return function(U,_,G,re){try{Ol=0;var Me=xt(U,_,G,re);return wo=null,Me}catch(Ee){if(Ee===Eo||Ee===ls)throw Ee;var it=On(29,Ee,null,U.mode);return it.lanes=re,it.return=U,it}}}var Vr=ch(!0),fh=ch(!1),lr=!1;function Zc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Wc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ir(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function sr(e,n,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(ct&2)!==0){var u=l.pending;return u===null?n.next=n:(n.next=u.next,u.next=n),l.pending=n,n=es(e),Fm(e,null,a),n}return Ji(e,l,n,a),es(e)}function kl(e,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,nm(e,a)}}function Jc(e,n){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var u=null,f=null;if(a=a.firstBaseUpdate,a!==null){do{var g={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};f===null?u=f=g:f=f.next=g,a=a.next}while(a!==null);f===null?u=f=n:f=f.next=n}else u=f=n;a={baseState:l.baseState,firstBaseUpdate:u,lastBaseUpdate:f,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=n:e.next=n,a.lastBaseUpdate=n}var ef=!1;function Nl(){if(ef){var e=To;if(e!==null)throw e}}function Dl(e,n,a,l){ef=!1;var u=e.updateQueue;lr=!1;var f=u.firstBaseUpdate,g=u.lastBaseUpdate,T=u.shared.pending;if(T!==null){u.shared.pending=null;var B=T,F=B.next;B.next=null,g===null?f=F:g.next=F,g=B;var ee=e.alternate;ee!==null&&(ee=ee.updateQueue,T=ee.lastBaseUpdate,T!==g&&(T===null?ee.firstBaseUpdate=F:T.next=F,ee.lastBaseUpdate=B))}if(f!==null){var oe=u.baseState;g=0,ee=F=B=null,T=f;do{var K=T.lane&-536870913,Z=K!==T.lane;if(Z?(Je&K)===K:(l&K)===K){K!==0&&K===Co&&(ef=!0),ee!==null&&(ee=ee.next={lane:0,tag:T.tag,payload:T.payload,callback:null,next:null});e:{var ve=e,Ne=T;K=n;var xt=a;switch(Ne.tag){case 1:if(ve=Ne.payload,typeof ve=="function"){oe=ve.call(xt,oe,K);break e}oe=ve;break e;case 3:ve.flags=ve.flags&-65537|128;case 0:if(ve=Ne.payload,K=typeof ve=="function"?ve.call(xt,oe,K):ve,K==null)break e;oe=v({},oe,K);break e;case 2:lr=!0}}K=T.callback,K!==null&&(e.flags|=64,Z&&(e.flags|=8192),Z=u.callbacks,Z===null?u.callbacks=[K]:Z.push(K))}else Z={lane:K,tag:T.tag,payload:T.payload,callback:T.callback,next:null},ee===null?(F=ee=Z,B=oe):ee=ee.next=Z,g|=K;if(T=T.next,T===null){if(T=u.shared.pending,T===null)break;Z=T,T=Z.next,Z.next=null,u.lastBaseUpdate=Z,u.shared.pending=null}}while(!0);ee===null&&(B=oe),u.baseState=B,u.firstBaseUpdate=F,u.lastBaseUpdate=ee,f===null&&(u.shared.lanes=0),pr|=g,e.lanes=g,e.memoizedState=oe}}function dh(e,n){if(typeof e!="function")throw Error(i(191,e));e.call(n)}function ph(e,n){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;ef?f:8;var g=k.T,T={};k.T=T,Sf(e,!1,n,a);try{var B=u(),F=k.S;if(F!==null&&F(T,B),B!==null&&typeof B=="object"&&typeof B.then=="function"){var ee=vS(B,l);Ll(e,n,ee,jn(e))}else Ll(e,n,l,jn(e))}catch(oe){Ll(e,n,{then:function(){},status:"rejected",reason:oe},jn())}finally{I.p=f,g!==null&&T.types!==null&&(g.types=T.types),k.T=g}}function ES(){}function vf(e,n,a,l){if(e.tag!==5)throw Error(i(476));var u=Ih(e).queue;Yh(e,u,n,J,a===null?ES:function(){return Gh(e),a(l)})}function Ih(e){var n=e.memoizedState;if(n!==null)return n;n={memoizedState:J,baseState:J,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:J},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ha,lastRenderedState:a},next:null},e.memoizedState=n,e=e.alternate,e!==null&&(e.memoizedState=n),n}function Gh(e){var n=Ih(e);n.next===null&&(n=e.alternate.memoizedState),Ll(e,n.next.queue,{},jn())}function bf(){return ln(Jl)}function Xh(){return Ht().memoizedState}function Fh(){return Ht().memoizedState}function wS(e){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var a=jn();e=ir(a);var l=sr(n,e,a);l!==null&&(xn(l,n,a),kl(l,n,a)),n={cache:Xc()},e.payload=n;return}n=n.return}}function AS(e,n,a){var l=jn();a={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null},bs(e)?Qh(n,a):(a=Lc(e,n,a,l),a!==null&&(xn(a,e,l),Zh(a,n,l)))}function Kh(e,n,a){var l=jn();Ll(e,n,a,l)}function Ll(e,n,a,l){var u={lane:l,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(bs(e))Qh(n,u);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,T=f(g,a);if(u.hasEagerState=!0,u.eagerState=T,Mn(T,g))return Ji(e,n,u,0),Et===null&&Wi(),!1}catch{}if(a=Lc(e,n,u,l),a!==null)return xn(a,e,l),Zh(a,n,l),!0}return!1}function Sf(e,n,a,l){if(l={lane:2,revertLane:Wf(),gesture:null,action:l,hasEagerState:!1,eagerState:null,next:null},bs(e)){if(n)throw Error(i(479))}else n=Lc(e,a,l,2),n!==null&&xn(n,e,2)}function bs(e){var n=e.alternate;return e===Ue||n!==null&&n===Ue}function Qh(e,n){Ro=ds=!0;var a=e.pending;a===null?n.next=n:(n.next=a.next,a.next=n),e.pending=n}function Zh(e,n,a){if((a&4194048)!==0){var l=n.lanes;l&=e.pendingLanes,a|=l,n.lanes=a,nm(e,a)}}var _l={readContext:ln,use:hs,useCallback:Dt,useContext:Dt,useEffect:Dt,useImperativeHandle:Dt,useLayoutEffect:Dt,useInsertionEffect:Dt,useMemo:Dt,useReducer:Dt,useRef:Dt,useState:Dt,useDebugValue:Dt,useDeferredValue:Dt,useTransition:Dt,useSyncExternalStore:Dt,useId:Dt,useHostTransitionStatus:Dt,useFormState:Dt,useActionState:Dt,useOptimistic:Dt,useMemoCache:Dt,useCacheRefresh:Dt};_l.useEffectEvent=Dt;var Wh={readContext:ln,use:hs,useCallback:function(e,n){return pn().memoizedState=[e,n===void 0?null:n],e},useContext:ln,useEffect:Bh,useImperativeHandle:function(e,n,a){a=a!=null?a.concat([e]):null,ys(4194308,4,Hh.bind(null,n,e),a)},useLayoutEffect:function(e,n){return ys(4194308,4,e,n)},useInsertionEffect:function(e,n){ys(4,2,e,n)},useMemo:function(e,n){var a=pn();n=n===void 0?null:n;var l=e();if(qr){Vt(!0);try{e()}finally{Vt(!1)}}return a.memoizedState=[l,n],l},useReducer:function(e,n,a){var l=pn();if(a!==void 0){var u=a(n);if(qr){Vt(!0);try{a(n)}finally{Vt(!1)}}}else u=n;return l.memoizedState=l.baseState=u,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:u},l.queue=e,e=e.dispatch=AS.bind(null,Ue,e),[l.memoizedState,e]},useRef:function(e){var n=pn();return e={current:e},n.memoizedState=e},useState:function(e){e=pf(e);var n=e.queue,a=Kh.bind(null,Ue,n);return n.dispatch=a,[e.memoizedState,a]},useDebugValue:gf,useDeferredValue:function(e,n){var a=pn();return yf(a,e,n)},useTransition:function(){var e=pf(!1);return e=Yh.bind(null,Ue,e.queue,!0,!1),pn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,n,a){var l=Ue,u=pn();if(tt){if(a===void 0)throw Error(i(407));a=a()}else{if(a=n(),Et===null)throw Error(i(349));(Je&127)!==0||bh(l,n,a)}u.memoizedState=a;var f={value:a,getSnapshot:n};return u.queue=f,Bh(xh.bind(null,l,f,e),[e]),l.flags|=2048,Oo(9,{destroy:void 0},Sh.bind(null,l,f,a,n),null),a},useId:function(){var e=pn(),n=Et.identifierPrefix;if(tt){var a=ma,l=pa;a=(l&~(1<<32-Nt(l)-1)).toString(32)+a,n="_"+n+"R_"+a,a=ps++,0<\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof l.is=="string"?g.createElement("select",{is:l.is}):g.createElement("select"),l.multiple?f.multiple=!0:l.size&&(f.size=l.size);break;default:f=typeof l.is=="string"?g.createElement(u,{is:l.is}):g.createElement(u)}}f[rn]=n,f[hn]=l;e:for(g=n.child;g!==null;){if(g.tag===5||g.tag===6)f.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===n)break e;for(;g.sibling===null;){if(g.return===null||g.return===n)break e;g=g.return}g.sibling.return=g.return,g=g.sibling}n.stateNode=f;e:switch(un(f,u,l),u){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}l&&Pa(n)}}return Rt(n),jf(n,n.type,e===null?null:e.memoizedProps,n.pendingProps,a),null;case 6:if(e&&n.stateNode!=null)e.memoizedProps!==l&&Pa(n);else{if(typeof l!="string"&&n.stateNode===null)throw Error(i(166));if(e=se.current,So(n)){if(e=n.stateNode,a=n.memoizedProps,l=null,u=on,u!==null)switch(u.tag){case 27:case 5:l=u.memoizedProps}e[rn]=n,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||yy(e.nodeValue,a)),e||rr(n,!0)}else e=Hs(e).createTextNode(l),e[rn]=n,n.stateNode=e}return Rt(n),null;case 31:if(a=n.memoizedState,e===null||e.memoizedState!==null){if(l=So(n),a!==null){if(e===null){if(!l)throw Error(i(318));if(e=n.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(i(557));e[rn]=n}else Lr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Rt(n),e=!1}else a=qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e)return n.flags&256?(kn(n),n):(kn(n),null);if((n.flags&128)!==0)throw Error(i(558))}return Rt(n),null;case 13:if(l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(u=So(n),l!==null&&l.dehydrated!==null){if(e===null){if(!u)throw Error(i(318));if(u=n.memoizedState,u=u!==null?u.dehydrated:null,!u)throw Error(i(317));u[rn]=n}else Lr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;Rt(n),u=!1}else u=qc(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=u),u=!0;if(!u)return n.flags&256?(kn(n),n):(kn(n),null)}return kn(n),(n.flags&128)!==0?(n.lanes=a,n):(a=l!==null,e=e!==null&&e.memoizedState!==null,a&&(l=n.child,u=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(u=l.alternate.memoizedState.cachePool.pool),f=null,l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(f=l.memoizedState.cachePool.pool),f!==u&&(l.flags|=2048)),a!==e&&a&&(n.child.flags|=8192),Es(n,n.updateQueue),Rt(n),null);case 4:return ye(),e===null&&nd(n.stateNode.containerInfo),Rt(n),null;case 10:return _a(n.type),Rt(n),null;case 19:if(V($t),l=n.memoizedState,l===null)return Rt(n),null;if(u=(n.flags&128)!==0,f=l.rendering,f===null)if(u)Hl(l,!1);else{if(jt!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(f=fs(e),f!==null){for(n.flags|=128,Hl(l,!1),e=f.updateQueue,n.updateQueue=e,Es(n,e),n.subtreeFlags=0,e=a,a=n.child;a!==null;)Km(a,e),a=a.sibling;return ne($t,$t.current&1|2),tt&&Ba(n,l.treeForkCount),n.child}e=e.sibling}l.tail!==null&&He()>Os&&(n.flags|=128,u=!0,Hl(l,!1),n.lanes=4194304)}else{if(!u)if(e=fs(f),e!==null){if(n.flags|=128,u=!0,e=e.updateQueue,n.updateQueue=e,Es(n,e),Hl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!f.alternate&&!tt)return Rt(n),null}else 2*He()-l.renderingStartTime>Os&&a!==536870912&&(n.flags|=128,u=!0,Hl(l,!1),n.lanes=4194304);l.isBackwards?(f.sibling=n.child,n.child=f):(e=l.last,e!==null?e.sibling=f:n.child=f,l.last=f)}return l.tail!==null?(e=l.tail,l.rendering=e,l.tail=e.sibling,l.renderingStartTime=He(),e.sibling=null,a=$t.current,ne($t,u?a&1|2:a&1),tt&&Ba(n,l.treeForkCount),e):(Rt(n),null);case 22:case 23:return kn(n),nf(),l=n.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(n.flags|=8192):l&&(n.flags|=8192),l?(a&536870912)!==0&&(n.flags&128)===0&&(Rt(n),n.subtreeFlags&6&&(n.flags|=8192)):Rt(n),a=n.updateQueue,a!==null&&Es(n,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(l=n.memoizedState.cachePool.pool),l!==a&&(n.flags|=2048),e!==null&&V(Hr),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),_a(qt),Rt(n),null;case 25:return null;case 30:return null}throw Error(i(156,n.tag))}function kS(e,n){switch(Pc(n),n.tag){case 1:return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return _a(qt),ye(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 26:case 27:case 5:return Ae(n),null;case 31:if(n.memoizedState!==null){if(kn(n),n.alternate===null)throw Error(i(340));Lr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 13:if(kn(n),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(i(340));Lr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return V($t),null;case 4:return ye(),null;case 10:return _a(n.type),null;case 22:case 23:return kn(n),nf(),e!==null&&V(Hr),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 24:return _a(qt),null;case 25:return null;default:return null}}function Cg(e,n){switch(Pc(n),n.tag){case 3:_a(qt),ye();break;case 26:case 27:case 5:Ae(n);break;case 4:ye();break;case 31:n.memoizedState!==null&&kn(n);break;case 13:kn(n);break;case 19:V($t);break;case 10:_a(n.type);break;case 22:case 23:kn(n),nf(),e!==null&&V(Hr);break;case 24:_a(qt)}}function Ul(e,n){try{var a=n.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var u=l.next;a=u;do{if((a.tag&e)===e){l=void 0;var f=a.create,g=a.inst;l=f(),g.destroy=l}a=a.next}while(a!==u)}}catch(T){gt(n,n.return,T)}}function fr(e,n,a){try{var l=n.updateQueue,u=l!==null?l.lastEffect:null;if(u!==null){var f=u.next;l=f;do{if((l.tag&e)===e){var g=l.inst,T=g.destroy;if(T!==void 0){g.destroy=void 0,u=n;var B=a,F=T;try{F()}catch(ee){gt(u,B,ee)}}}l=l.next}while(l!==f)}}catch(ee){gt(n,n.return,ee)}}function Tg(e){var n=e.updateQueue;if(n!==null){var a=e.stateNode;try{ph(n,a)}catch(l){gt(e,e.return,l)}}}function Eg(e,n,a){a.props=Yr(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){gt(e,n,l)}}function Pl(e,n){try{var a=e.ref;if(a!==null){switch(e.tag){case 26:case 27:case 5:var l=e.stateNode;break;case 30:l=e.stateNode;break;default:l=e.stateNode}typeof a=="function"?e.refCleanup=a(l):a.current=l}}catch(u){gt(e,n,u)}}function ha(e,n){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(u){gt(e,n,u)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(u){gt(e,n,u)}else a.current=null}function wg(e){var n=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(u){gt(e,e.return,u)}}function Bf(e,n,a){try{var l=e.stateNode;JS(l,e.type,a,n),l[hn]=n}catch(u){gt(e,e.return,u)}}function Ag(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&vr(e.type)||e.tag===4}function Lf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ag(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&vr(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function _f(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,n):(n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(e),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Na));else if(l!==4&&(l===27&&vr(e.type)&&(a=e.stateNode,n=null),e=e.child,e!==null))for(_f(e,n,a),e=e.sibling;e!==null;)_f(e,n,a),e=e.sibling}function ws(e,n,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?a.insertBefore(e,n):a.appendChild(e);else if(l!==4&&(l===27&&vr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(ws(e,n,a),e=e.sibling;e!==null;)ws(e,n,a),e=e.sibling}function Rg(e){var n=e.stateNode,a=e.memoizedProps;try{for(var l=e.type,u=n.attributes;u.length;)n.removeAttributeNode(u[0]);un(n,l,a),n[rn]=e,n[hn]=a}catch(f){gt(e,e.return,f)}}var Va=!1,Gt=!1,$f=!1,Mg=typeof WeakSet=="function"?WeakSet:Set,tn=null;function NS(e,n){if(e=e.containerInfo,od=Gs,e=Um(e),zc(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var u=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{a.nodeType,f.nodeType}catch{a=null;break e}var g=0,T=-1,B=-1,F=0,ee=0,oe=e,K=null;t:for(;;){for(var Z;oe!==a||u!==0&&oe.nodeType!==3||(T=g+u),oe!==f||l!==0&&oe.nodeType!==3||(B=g+l),oe.nodeType===3&&(g+=oe.nodeValue.length),(Z=oe.firstChild)!==null;)K=oe,oe=Z;for(;;){if(oe===e)break t;if(K===a&&++F===u&&(T=g),K===f&&++ee===l&&(B=g),(Z=oe.nextSibling)!==null)break;oe=K,K=oe.parentNode}oe=Z}a=T===-1||B===-1?null:{start:T,end:B}}else a=null}a=a||{start:0,end:0}}else a=null;for(ld={focusedElem:e,selectionRange:a},Gs=!1,tn=n;tn!==null;)if(n=tn,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,tn=e;else for(;tn!==null;){switch(n=tn,f=n.alternate,e=n.flags,n.tag){case 0:if((e&4)!==0&&(e=n.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a title"))),un(f,l,a),f[rn]=e,en(f),l=f;break e;case"link":var g=jy("link","href",u).get(l+(a.href||""));if(g){for(var T=0;Txt&&(g=xt,xt=Ne,Ne=g);var U=$m(T,Ne),_=$m(T,xt);if(U&&_&&(Z.rangeCount!==1||Z.anchorNode!==U.node||Z.anchorOffset!==U.offset||Z.focusNode!==_.node||Z.focusOffset!==_.offset)){var G=oe.createRange();G.setStart(U.node,U.offset),Z.removeAllRanges(),Ne>xt?(Z.addRange(G),Z.extend(_.node,_.offset)):(G.setEnd(_.node,_.offset),Z.addRange(G))}}}}for(oe=[],Z=T;Z=Z.parentNode;)Z.nodeType===1&&oe.push({element:Z,left:Z.scrollLeft,top:Z.scrollTop});for(typeof T.focus=="function"&&T.focus(),T=0;Ta?32:a,k.T=null,a=If,If=null;var f=hr,g=Xa;if(Ft=0,jo=hr=null,Xa=0,(ct&6)!==0)throw Error(i(331));var T=ct;if(ct|=4,Hg(f.current),Lg(f,f.current,g,a),ct=T,Xl(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot=="function")try{Ye.onPostCommitFiberRoot(je,f)}catch{}return!0}finally{I.p=u,k.T=l,ay(e,n)}}function oy(e,n,a){n=Vn(a,n),n=Ef(e.stateNode,n,2),e=sr(e,n,2),e!==null&&(za(e,2),ga(e))}function gt(e,n,a){if(e.tag===3)oy(e,e,a);else for(;n!==null;){if(n.tag===3){oy(n,e,a);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(mr===null||!mr.has(l))){e=Vn(a,e),a=lg(2),l=sr(n,a,2),l!==null&&(ig(a,l,n,e),za(l,2),ga(l));break}}n=n.return}}function Kf(e,n,a){var l=e.pingCache;if(l===null){l=e.pingCache=new BS;var u=new Set;l.set(n,u)}else u=l.get(n),u===void 0&&(u=new Set,l.set(n,u));u.has(a)||(Pf=!0,u.add(a),e=US.bind(null,e,n,a),n.then(e,e))}function US(e,n,a){var l=e.pingCache;l!==null&&l.delete(n),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,Et===e&&(Je&a)===a&&(jt===4||jt===3&&(Je&62914560)===Je&&300>He()-Ms?(ct&2)===0&&Bo(e,0):Vf|=a,Do===Je&&(Do=0)),ga(e)}function ly(e,n){n===0&&(n=_e()),e=jr(e,n),e!==null&&(za(e,n),ga(e))}function PS(e){var n=e.memoizedState,a=0;n!==null&&(a=n.retryLane),ly(e,a)}function VS(e,n){var a=0;switch(e.tag){case 31:case 13:var l=e.stateNode,u=e.memoizedState;u!==null&&(a=u.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(i(314))}l!==null&&l.delete(n),ly(e,a)}function qS(e,n){return We(e,n)}var Bs=null,_o=null,Qf=!1,Ls=!1,Zf=!1,yr=0;function ga(e){e!==_o&&e.next===null&&(_o===null?Bs=_o=e:_o=_o.next=e),Ls=!0,Qf||(Qf=!0,IS())}function Xl(e,n){if(!Zf&&Ls){Zf=!0;do for(var a=!1,l=Bs;l!==null;){if(e!==0){var u=l.pendingLanes;if(u===0)var f=0;else{var g=l.suspendedLanes,T=l.pingedLanes;f=(1<<31-Nt(42|e)+1)-1,f&=u&~(g&~T),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(a=!0,cy(l,f))}else f=Je,f=da(l,l===Et?f:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(f&3)===0||$n(l,f)||(a=!0,cy(l,f));l=l.next}while(a);Zf=!1}}function YS(){iy()}function iy(){Ls=Qf=!1;var e=0;yr!==0&&tx()&&(e=yr);for(var n=He(),a=null,l=Bs;l!==null;){var u=l.next,f=sy(l,n);f===0?(l.next=null,a===null?Bs=u:a.next=u,u===null&&(_o=a)):(a=l,(e!==0||(f&3)!==0)&&(Ls=!0)),l=u}Ft!==0&&Ft!==5||Xl(e),yr!==0&&(yr=0)}function sy(e,n){for(var a=e.suspendedLanes,l=e.pingedLanes,u=e.expirationTimes,f=e.pendingLanes&-62914561;0T)break;var ee=B.transferSize,oe=B.initiatorType;ee&&vy(oe)&&(B=B.responseEnd,g+=ee*(B"u"?null:document;function zy(e,n,a){var l=$o;if(l&&typeof n=="string"&&n){var u=Un(n);u='link[rel="'+e+'"][href="'+u+'"]',typeof a=="string"&&(u+='[crossorigin="'+a+'"]'),Oy.has(u)||(Oy.add(u),e={rel:e,crossOrigin:a,href:n},l.querySelector(u)===null&&(n=l.createElement("link"),un(n,"link",e),en(n),l.head.appendChild(n)))}}function cx(e){Fa.D(e),zy("dns-prefetch",e,null)}function fx(e,n){Fa.C(e,n),zy("preconnect",e,n)}function dx(e,n,a){Fa.L(e,n,a);var l=$o;if(l&&e&&n){var u='link[rel="preload"][as="'+Un(n)+'"]';n==="image"&&a&&a.imageSrcSet?(u+='[imagesrcset="'+Un(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(u+='[imagesizes="'+Un(a.imageSizes)+'"]')):u+='[href="'+Un(e)+'"]';var f=u;switch(n){case"style":f=Ho(e);break;case"script":f=Uo(e)}Fn.has(f)||(e=v({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:e,as:n},a),Fn.set(f,e),l.querySelector(u)!==null||n==="style"&&l.querySelector(Zl(f))||n==="script"&&l.querySelector(Wl(f))||(n=l.createElement("link"),un(n,"link",e),en(n),l.head.appendChild(n)))}}function px(e,n){Fa.m(e,n);var a=$o;if(a&&e){var l=n&&typeof n.as=="string"?n.as:"script",u='link[rel="modulepreload"][as="'+Un(l)+'"][href="'+Un(e)+'"]',f=u;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=Uo(e)}if(!Fn.has(f)&&(e=v({rel:"modulepreload",href:e},n),Fn.set(f,e),a.querySelector(u)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(Wl(f)))return}l=a.createElement("link"),un(l,"link",e),en(l),a.head.appendChild(l)}}}function mx(e,n,a){Fa.S(e,n,a);var l=$o;if(l&&e){var u=lo(l).hoistableStyles,f=Ho(e);n=n||"default";var g=u.get(f);if(!g){var T={loading:0,preload:null};if(g=l.querySelector(Zl(f)))T.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":n},a),(a=Fn.get(f))&&pd(e,a);var B=g=l.createElement("link");en(B),un(B,"link",e),B._p=new Promise(function(F,ee){B.onload=F,B.onerror=ee}),B.addEventListener("load",function(){T.loading|=1}),B.addEventListener("error",function(){T.loading|=2}),T.loading|=4,Ps(g,n,l)}g={type:"stylesheet",instance:g,count:1,state:T},u.set(f,g)}}}function hx(e,n){Fa.X(e,n);var a=$o;if(a&&e){var l=lo(a).hoistableScripts,u=Uo(e),f=l.get(u);f||(f=a.querySelector(Wl(u)),f||(e=v({src:e,async:!0},n),(n=Fn.get(u))&&md(e,n),f=a.createElement("script"),en(f),un(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(u,f))}}function gx(e,n){Fa.M(e,n);var a=$o;if(a&&e){var l=lo(a).hoistableScripts,u=Uo(e),f=l.get(u);f||(f=a.querySelector(Wl(u)),f||(e=v({src:e,async:!0,type:"module"},n),(n=Fn.get(u))&&md(e,n),f=a.createElement("script"),en(f),un(f,"link",e),a.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},l.set(u,f))}}function ky(e,n,a,l){var u=(u=se.current)?Us(u):null;if(!u)throw Error(i(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(n=Ho(a.href),a=lo(u).hoistableStyles,l=a.get(n),l||(l={type:"style",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=Ho(a.href);var f=lo(u).hoistableStyles,g=f.get(e);if(g||(u=u.ownerDocument||u,g={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,g),(f=u.querySelector(Zl(e)))&&!f._p&&(g.instance=f,g.state.loading=5),Fn.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},Fn.set(e,a),f||yx(u,e,a,g.state))),n&&l===null)throw Error(i(528,""));return g}if(n&&l!==null)throw Error(i(529,""));return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(n=Uo(a),a=lo(u).hoistableScripts,l=a.get(n),l||(l={type:"script",instance:null,count:0,state:null},a.set(n,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Ho(e){return'href="'+Un(e)+'"'}function Zl(e){return'link[rel="stylesheet"]['+e+"]"}function Ny(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function yx(e,n,a,l){e.querySelector('link[rel="preload"][as="style"]['+n+"]")?l.loading=1:(n=e.createElement("link"),l.preload=n,n.addEventListener("load",function(){return l.loading|=1}),n.addEventListener("error",function(){return l.loading|=2}),un(n,"link",a),en(n),e.head.appendChild(n))}function Uo(e){return'[src="'+Un(e)+'"]'}function Wl(e){return"script[async]"+e}function Dy(e,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var l=e.querySelector('style[data-href~="'+Un(a.href)+'"]');if(l)return n.instance=l,en(l),l;var u=v({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),en(l),un(l,"style",u),Ps(l,a.precedence,e),n.instance=l;case"stylesheet":u=Ho(a.href);var f=e.querySelector(Zl(u));if(f)return n.state.loading|=4,n.instance=f,en(f),f;l=Ny(a),(u=Fn.get(u))&&pd(l,u),f=(e.ownerDocument||e).createElement("link"),en(f);var g=f;return g._p=new Promise(function(T,B){g.onload=T,g.onerror=B}),un(f,"link",l),n.state.loading|=4,Ps(f,a.precedence,e),n.instance=f;case"script":return f=Uo(a.src),(u=e.querySelector(Wl(f)))?(n.instance=u,en(u),u):(l=a,(u=Fn.get(f))&&(l=v({},a),md(l,u)),e=e.ownerDocument||e,u=e.createElement("script"),en(u),un(u,"link",l),e.head.appendChild(u),n.instance=u);case"void":return null;default:throw Error(i(443,n.type))}else n.type==="stylesheet"&&(n.state.loading&4)===0&&(l=n.instance,n.state.loading|=4,Ps(l,a.precedence,e));return n.instance}function Ps(e,n,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),u=l.length?l[l.length-1]:null,f=u,g=0;g title"):null)}function vx(e,n,a){if(a===1||n.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href==="")break;return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError)break;return n.rel==="stylesheet"?(e=n.disabled,typeof n.precedence=="string"&&e==null):!0;case"script":if(n.async&&typeof n.async!="function"&&typeof n.async!="symbol"&&!n.onLoad&&!n.onError&&n.src&&typeof n.src=="string")return!0}return!1}function Ly(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function bx(e,n,a,l){if(a.type==="stylesheet"&&(typeof l.media!="string"||matchMedia(l.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var u=Ho(l.href),f=n.querySelector(Zl(u));if(f){n=f._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(e.count++,e=qs.bind(e),n.then(e,e)),a.state.loading|=4,a.instance=f,en(f);return}f=n.ownerDocument||n,l=Ny(l),(u=Fn.get(u))&&pd(l,u),f=f.createElement("link"),en(f);var g=f;g._p=new Promise(function(T,B){g.onload=T,g.onerror=B}),un(f,"link",l),a.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(e.count++,a=qs.bind(e),n.addEventListener("load",a),n.addEventListener("error",a))}}var hd=0;function Sx(e,n){return e.stylesheets&&e.count===0&&Is(e,e.stylesheets),0hd?50:800)+n);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(l),clearTimeout(u)}}:null}function qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Is(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Ys=null;function Is(e,n){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Ys=new Map,n.forEach(xx,e),Ys=null,qs.call(e))}function xx(e,n){if(!(n.state.loading&4)){var a=Ys.get(e);if(a)var l=a.get(null);else{a=new Map,Ys.set(e,a);for(var u=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(r){console.error(r)}}return t(),Ad.exports=Ux(),Ad.exports}var Vx=Px();const Ai={black:"#000",white:"#fff"},Vo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},qo={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Yo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Io={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Go={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},oi={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},qx={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Za(t,...r){const o=new URL(`https://mui.com/production-error/?code=${t}`);return r.forEach(i=>o.searchParams.append("args[]",i)),`Minified MUI error #${t}; visit ${o} for the full message.`}const ua="$$material";function xu(){return xu=Object.assign?Object.assign.bind():function(t){for(var r=1;r0?cn(ul,--En):0,tl--,Xt===10&&(tl=1,Hu--),Xt}function Ln(){return Xt=En2||Mi(Xt)>3?"":" "}function a2(t,r){for(;--r&&Ln()&&!(Xt<48||Xt>102||Xt>57&&Xt<65||Xt>70&&Xt<97););return Di(t,mu()+(r<6&&Ea()==32&&Ln()==32))}function Qd(t){for(;Ln();)switch(Xt){case t:return En;case 34:case 39:t!==34&&t!==39&&Qd(Xt);break;case 40:t===41&&Qd(t);break;case 92:Ln();break}return En}function r2(t,r){for(;Ln()&&t+Xt!==57;)if(t+Xt===84&&Ea()===47)break;return"/*"+Di(r,En-1)+"*"+$u(t===47?t:Ln())}function o2(t){for(;!Mi(Ea());)Ln();return Di(t,En)}function l2(t){return Kv(gu("",null,null,null,[""],t=Fv(t),0,[0],t))}function gu(t,r,o,i,s,c,d,p,m){for(var h=0,y=0,v=d,w=0,b=0,E=0,C=1,M=1,D=1,L=0,O="",R=s,N=c,j=i,$=O;M;)switch(E=L,L=Ln()){case 40:if(E!=108&&cn($,v-1)==58){Kd($+=dt(hu(L),"&","&\f"),"&\f")!=-1&&(D=-1);break}case 34:case 39:case 91:$+=hu(L);break;case 9:case 10:case 13:case 32:$+=n2(E);break;case 92:$+=a2(mu()-1,7);continue;case 47:switch(Ea()){case 42:case 47:Js(i2(r2(Ln(),mu()),r,o),m);break;default:$+="/"}break;case 123*C:p[h++]=Sa($)*D;case 125*C:case 59:case 0:switch(L){case 0:case 125:M=0;case 59+y:D==-1&&($=dt($,/\f/g,"")),b>0&&Sa($)-v&&Js(b>32?s0($+";",i,o,v-1):s0(dt($," ","")+";",i,o,v-2),m);break;case 59:$+=";";default:if(Js(j=i0($,r,o,h,y,s,p,O,R=[],N=[],v),c),L===123)if(y===0)gu($,r,j,j,R,c,v,p,N);else switch(w===99&&cn($,3)===110?100:w){case 100:case 108:case 109:case 115:gu(t,j,j,i&&Js(i0(t,j,j,0,0,s,p,O,s,R=[],v),N),s,N,v,p,i?R:N);break;default:gu($,j,j,j,[""],N,0,p,N)}}h=y=b=0,C=D=1,O=$="",v=d;break;case 58:v=1+Sa($),b=E;default:if(C<1){if(L==123)--C;else if(L==125&&C++==0&&t2()==125)continue}switch($+=$u(L),L*C){case 38:D=y>0?1:($+="\f",-1);break;case 44:p[h++]=(Sa($)-1)*D,D=1;break;case 64:Ea()===45&&($+=hu(Ln())),w=Ea(),y=v=Sa(O=$+=o2(mu())),L++;break;case 45:E===45&&Sa($)==2&&(C=0)}}return c}function i0(t,r,o,i,s,c,d,p,m,h,y){for(var v=s-1,w=s===0?c:[""],b=xp(w),E=0,C=0,M=0;E0?w[D]+" "+L:dt(L,/&\f/g,w[D])))&&(m[M++]=O);return Uu(t,r,o,s===0?bp:p,m,h,y)}function i2(t,r,o){return Uu(t,r,o,Yv,$u(e2()),Ri(t,2,-2),0)}function s0(t,r,o,i){return Uu(t,r,o,Sp,Ri(t,0,i),Ri(t,i+1,-1),i)}function Jo(t,r){for(var o="",i=xp(t),s=0;s6)switch(cn(t,r+1)){case 109:if(cn(t,r+4)!==45)break;case 102:return dt(t,/(.+:)(.+)-([^]+)/,"$1"+ft+"$2-$3$1"+Cu+(cn(t,r+3)==108?"$3":"$2-$3"))+t;case 115:return~Kd(t,"stretch")?Zv(dt(t,"stretch","fill-available"),r)+t:t}break;case 4949:if(cn(t,r+1)!==115)break;case 6444:switch(cn(t,Sa(t)-3-(~Kd(t,"!important")&&10))){case 107:return dt(t,":",":"+ft)+t;case 101:return dt(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ft+(cn(t,14)===45?"inline-":"")+"box$3$1"+ft+"$2$3$1"+dn+"$2box$3")+t}break;case 5936:switch(cn(t,r+11)){case 114:return ft+t+dn+dt(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return ft+t+dn+dt(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return ft+t+dn+dt(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return ft+t+dn+t+t}return t}var g2=function(r,o,i,s){if(r.length>-1&&!r.return)switch(r.type){case Sp:r.return=Zv(r.value,r.length);break;case Iv:return Jo([li(r,{value:dt(r.value,"@","@"+ft)})],s);case bp:if(r.length)return Jx(r.props,function(c){switch(Wx(c,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jo([li(r,{props:[dt(c,/:(read-\w+)/,":"+Cu+"$1")]})],s);case"::placeholder":return Jo([li(r,{props:[dt(c,/:(plac\w+)/,":"+ft+"input-$1")]}),li(r,{props:[dt(c,/:(plac\w+)/,":"+Cu+"$1")]}),li(r,{props:[dt(c,/:(plac\w+)/,dn+"input-$1")]})],s)}return""})}},y2=[g2],v2=function(r){var o=r.key;if(o==="css"){var i=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(i,function(C){var M=C.getAttribute("data-emotion");M.indexOf(" ")!==-1&&(document.head.appendChild(C),C.setAttribute("data-s",""))})}var s=r.stylisPlugins||y2,c={},d,p=[];d=r.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+o+' "]'),function(C){for(var M=C.getAttribute("data-emotion").split(" "),D=1;D=4;++i,s-=4)o=t.charCodeAt(i)&255|(t.charCodeAt(++i)&255)<<8|(t.charCodeAt(++i)&255)<<16|(t.charCodeAt(++i)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,r=(o&65535)*1540483477+((o>>>16)*59797<<16)^(r&65535)*1540483477+((r>>>16)*59797<<16);switch(s){case 3:r^=(t.charCodeAt(i+2)&255)<<16;case 2:r^=(t.charCodeAt(i+1)&255)<<8;case 1:r^=t.charCodeAt(i)&255,r=(r&65535)*1540483477+((r>>>16)*59797<<16)}return r^=r>>>13,r=(r&65535)*1540483477+((r>>>16)*59797<<16),((r^r>>>15)>>>0).toString(36)}var E2={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},w2=/[A-Z]|^ms/g,A2=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Jv=function(r){return r.charCodeAt(1)===45},p0=function(r){return r!=null&&typeof r!="boolean"},Nd=Qv(function(t){return Jv(t)?t:t.replace(w2,"-$&").toLowerCase()}),m0=function(r,o){switch(r){case"animation":case"animationName":if(typeof o=="string")return o.replace(A2,function(i,s,c){return xa={name:s,styles:c,next:xa},s})}return E2[r]!==1&&!Jv(r)&&typeof o=="number"&&o!==0?o+"px":o};function Oi(t,r,o){if(o==null)return"";var i=o;if(i.__emotion_styles!==void 0)return i;switch(typeof o){case"boolean":return"";case"object":{var s=o;if(s.anim===1)return xa={name:s.name,styles:s.styles,next:xa},s.name;var c=o;if(c.styles!==void 0){var d=c.next;if(d!==void 0)for(;d!==void 0;)xa={name:d.name,styles:d.styles,next:xa},d=d.next;var p=c.styles+";";return p}return R2(t,r,o)}case"function":{if(t!==void 0){var m=xa,h=o(t);return xa=m,Oi(t,r,h)}break}}var y=o;if(r==null)return y;var v=r[y];return v!==void 0?v:y}function R2(t,r,o){var i="";if(Array.isArray(o))for(var s=0;s96?L2:_2},b0=function(r,o,i){var s;if(o){var c=o.shouldForwardProp;s=r.__emotion_forwardProp&&c?function(d){return r.__emotion_forwardProp(d)&&c(d)}:c}return typeof s!="function"&&i&&(s=r.__emotion_forwardProp),s},$2=function(r){var o=r.cache,i=r.serialized,s=r.isStringTag;return Cp(o,i,s),tb(function(){return Tp(o,i,s)}),null},H2=function t(r,o){var i=r.__emotion_real===r,s=i&&r.__emotion_base||r,c,d;o!==void 0&&(c=o.label,d=o.target);var p=b0(r,o,i),m=p||v0(s),h=!m("as");return function(){var y=arguments,v=i&&r.__emotion_styles!==void 0?r.__emotion_styles.slice(0):[];if(c!==void 0&&v.push("label:"+c+";"),y[0]==null||y[0].raw===void 0)v.push.apply(v,y);else{var w=y[0];v.push(w[0]);for(var b=y.length,E=1;Er(P2(s)?o:s):r;return A.jsx(D2,{styles:i})}function rb(t,r){return Wd(t,r)}function V2(t,r){Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=r(t.__emotion_styles))}const S0=[];function wr(t){return S0[0]=t,ji(S0)}var Dd={exports:{}},Ct={};var x0;function q2(){if(x0)return Ct;x0=1;var t=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),h=Symbol.for("react.suspense_list"),y=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),w=Symbol.for("react.view_transition"),b=Symbol.for("react.client.reference");function E(C){if(typeof C=="object"&&C!==null){var M=C.$$typeof;switch(M){case t:switch(C=C.type,C){case o:case s:case i:case m:case h:case w:return C;default:switch(C=C&&C.$$typeof,C){case d:case p:case v:case y:return C;case c:return C;default:return M}}case r:return M}}}return Ct.ContextConsumer=c,Ct.ContextProvider=d,Ct.Element=t,Ct.ForwardRef=p,Ct.Fragment=o,Ct.Lazy=v,Ct.Memo=y,Ct.Portal=r,Ct.Profiler=s,Ct.StrictMode=i,Ct.Suspense=m,Ct.SuspenseList=h,Ct.isContextConsumer=function(C){return E(C)===c},Ct.isContextProvider=function(C){return E(C)===d},Ct.isElement=function(C){return typeof C=="object"&&C!==null&&C.$$typeof===t},Ct.isForwardRef=function(C){return E(C)===p},Ct.isFragment=function(C){return E(C)===o},Ct.isLazy=function(C){return E(C)===v},Ct.isMemo=function(C){return E(C)===y},Ct.isPortal=function(C){return E(C)===r},Ct.isProfiler=function(C){return E(C)===s},Ct.isStrictMode=function(C){return E(C)===i},Ct.isSuspense=function(C){return E(C)===m},Ct.isSuspenseList=function(C){return E(C)===h},Ct.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===o||C===s||C===i||C===m||C===h||typeof C=="object"&&C!==null&&(C.$$typeof===v||C.$$typeof===y||C.$$typeof===d||C.$$typeof===c||C.$$typeof===p||C.$$typeof===b||C.getModuleId!==void 0)},Ct.typeOf=E,Ct}var C0;function Y2(){return C0||(C0=1,Dd.exports=q2()),Dd.exports}var ob=Y2();function Ca(t){if(typeof t!="object"||t===null)return!1;const r=Object.getPrototypeOf(t);return(r===null||r===Object.prototype||Object.getPrototypeOf(r)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)}function lb(t){if(S.isValidElement(t)||ob.isValidElementType(t)||!Ca(t))return t;const r={};return Object.keys(t).forEach(o=>{r[o]=lb(t[o])}),r}function an(t,r,o={clone:!0}){const i=o.clone?{...t}:t;return Ca(t)&&Ca(r)&&Object.keys(r).forEach(s=>{S.isValidElement(r[s])||ob.isValidElementType(r[s])?i[s]=r[s]:Ca(r[s])&&Object.prototype.hasOwnProperty.call(t,s)&&Ca(t[s])?i[s]=an(t[s],r[s],o):o.clone?i[s]=Ca(r[s])?lb(r[s]):r[s]:i[s]=r[s]}),i}const I2=t=>{const r=Object.keys(t).map(o=>({key:o,val:t[o]}))||[];return r.sort((o,i)=>o.val-i.val),r.reduce((o,i)=>({...o,[i.key]:i.val}),{})};function G2(t){const{values:r={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:o="px",step:i=5,...s}=t,c=I2(r),d=Object.keys(c);function p(w){return`@media (min-width:${typeof r[w]=="number"?r[w]:w}${o})`}function m(w){return`@media (max-width:${(typeof r[w]=="number"?r[w]:w)-i/100}${o})`}function h(w,b){const E=d.indexOf(b);return`@media (min-width:${typeof r[w]=="number"?r[w]:w}${o}) and (max-width:${(E!==-1&&typeof r[d[E]]=="number"?r[d[E]]:b)-i/100}${o})`}function y(w){return d.indexOf(w)+1i.startsWith("@container")).sort((i,s)=>{const c=/min-width:\s*([0-9.]+)/;return+(i.match(c)?.[1]||0)-+(s.match(c)?.[1]||0)});return o.length?o.reduce((i,s)=>{const c=r[s];return delete i[s],i[s]=c,i},{...r}):r}function X2(t,r){return r==="@"||r.startsWith("@")&&(t.some(o=>r.startsWith(`@${o}`))||!!r.match(/^@\d/))}function F2(t,r){const o=r.match(/^@([^/]+)?\/?(.+)?$/);if(!o)return null;const[,i,s]=o,c=Number.isNaN(+i)?i||0:+i;return t.containerQueries(s).up(c)}function K2(t){const r=(c,d)=>c.replace("@media",d?`@container ${d}`:"@container");function o(c,d){c.up=(...p)=>r(t.breakpoints.up(...p),d),c.down=(...p)=>r(t.breakpoints.down(...p),d),c.between=(...p)=>r(t.breakpoints.between(...p),d),c.only=(...p)=>r(t.breakpoints.only(...p),d),c.not=(...p)=>{const m=r(t.breakpoints.not(...p),d);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const i={},s=c=>(o(i,c),i);return o(s),{...t,containerQueries:s}}const Q2={borderRadius:4};function gi(t,r){return r?an(t,r,{clone:!1}):t}const Pu={xs:0,sm:600,md:900,lg:1200,xl:1536},E0={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${Pu[t]}px)`},Z2={containerQueries:t=>({up:r=>{let o=typeof r=="number"?r:Pu[r]||r;return typeof o=="number"&&(o=`${o}px`),t?`@container ${t} (min-width:${o})`:`@container (min-width:${o})`}})};function ca(t,r,o){const i=t.theme||{};if(Array.isArray(r)){const c=i.breakpoints||E0;return r.reduce((d,p,m)=>(d[c.up(c.keys[m])]=o(r[m]),d),{})}if(typeof r=="object"){const c=i.breakpoints||E0;return Object.keys(r).reduce((d,p)=>{if(X2(c.keys,p)){const m=F2(i.containerQueries?i:Z2,p);m&&(d[m]=o(r[p],p))}else if(Object.keys(c.values||Pu).includes(p)){const m=c.up(p);d[m]=o(r[p],p)}else{const m=p;d[m]=r[m]}return d},{})}return o(r)}function ib(t={}){return t.keys?.reduce((o,i)=>{const s=t.up(i);return o[s]={},o},{})||{}}function Jd(t,r){return t.reduce((o,i)=>{const s=o[i];return(!s||Object.keys(s).length===0)&&delete o[i],o},r)}function W2(t,...r){const o=ib(t),i=[o,...r].reduce((s,c)=>an(s,c),{});return Jd(Object.keys(o),i)}function J2(t,r){if(typeof t!="object")return{};const o={},i=Object.keys(r);return Array.isArray(t)?i.forEach((s,c)=>{c{t[s]!=null&&(o[s]=!0)}),o}function jd({values:t,breakpoints:r,base:o}){const i=o||J2(t,r),s=Object.keys(i);if(s.length===0)return t;let c;return s.reduce((d,p,m)=>(Array.isArray(t)?(d[p]=t[m]!=null?t[m]:t[c],c=m):typeof t=="object"?(d[p]=t[p]!=null?t[p]:t[c],c=p):d[p]=t,d),{})}function ue(t){if(typeof t!="string")throw new Error(Za(7));return t.charAt(0).toUpperCase()+t.slice(1)}function Vu(t,r,o=!0){if(!r||typeof r!="string")return null;if(t&&t.vars&&o){const i=`vars.${r}`.split(".").reduce((s,c)=>s&&s[c]?s[c]:null,t);if(i!=null)return i}return r.split(".").reduce((i,s)=>i&&i[s]!=null?i[s]:null,t)}function Tu(t,r,o,i=o){let s;return typeof t=="function"?s=t(o):Array.isArray(t)?s=t[o]||i:s=Vu(t,o)||i,r&&(s=r(s,i,t)),s}function Pt(t){const{prop:r,cssProperty:o=t.prop,themeKey:i,transform:s}=t,c=d=>{if(d[r]==null)return null;const p=d[r],m=d.theme,h=Vu(m,i)||{};return ca(d,p,v=>{let w=Tu(h,s,v);return v===w&&typeof v=="string"&&(w=Tu(h,s,`${r}${v==="default"?"":ue(v)}`,v)),o===!1?w:{[o]:w}})};return c.propTypes={},c.filterProps=[r],c}function eC(t){const r={};return o=>(r[o]===void 0&&(r[o]=t(o)),r[o])}const tC={m:"margin",p:"padding"},nC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},w0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},aC=eC(t=>{if(t.length>2)if(w0[t])t=w0[t];else return[t];const[r,o]=t.split(""),i=tC[r],s=nC[o]||"";return Array.isArray(s)?s.map(c=>i+c):[i+s]}),Rp=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Mp=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Rp,...Mp];function _i(t,r,o,i){const s=Vu(t,r,!0)??o;return typeof s=="number"||typeof s=="string"?c=>typeof c=="string"?c:typeof s=="string"?s.startsWith("var(")&&c===0?0:s.startsWith("var(")&&c===1?s:`calc(${c} * ${s})`:s*c:Array.isArray(s)?c=>{if(typeof c=="string")return c;const d=Math.abs(c),p=s[d];return c>=0?p:typeof p=="number"?-p:typeof p=="string"&&p.startsWith("var(")?`calc(-1 * ${p})`:`-${p}`}:typeof s=="function"?s:()=>{}}function qu(t){return _i(t,"spacing",8)}function to(t,r){return typeof r=="string"||r==null?r:t(r)}function rC(t,r){return o=>t.reduce((i,s)=>(i[s]=to(r,o),i),{})}function oC(t,r,o,i){if(!r.includes(o))return null;const s=aC(o),c=rC(s,i),d=t[o];return ca(t,d,c)}function sb(t,r){const o=qu(t.theme);return Object.keys(t).map(i=>oC(t,r,i,o)).reduce(gi,{})}function Bt(t){return sb(t,Rp)}Bt.propTypes={};Bt.filterProps=Rp;function Lt(t){return sb(t,Mp)}Lt.propTypes={};Lt.filterProps=Mp;function ub(t=8,r=qu({spacing:t})){if(t.mui)return t;const o=(...i)=>(i.length===0?[1]:i).map(c=>{const d=r(c);return typeof d=="number"?`${d}px`:d}).join(" ");return o.mui=!0,o}function Yu(...t){const r=t.reduce((i,s)=>(s.filterProps.forEach(c=>{i[c]=s}),i),{}),o=i=>Object.keys(i).reduce((s,c)=>r[c]?gi(s,r[c](i)):s,{});return o.propTypes={},o.filterProps=t.reduce((i,s)=>i.concat(s.filterProps),[]),o}function Qn(t){return typeof t!="number"?t:`${t}px solid`}function aa(t,r){return Pt({prop:t,themeKey:"borders",transform:r})}const lC=aa("border",Qn),iC=aa("borderTop",Qn),sC=aa("borderRight",Qn),uC=aa("borderBottom",Qn),cC=aa("borderLeft",Qn),fC=aa("borderColor"),dC=aa("borderTopColor"),pC=aa("borderRightColor"),mC=aa("borderBottomColor"),hC=aa("borderLeftColor"),gC=aa("outline",Qn),yC=aa("outlineColor"),Iu=t=>{if(t.borderRadius!==void 0&&t.borderRadius!==null){const r=_i(t.theme,"shape.borderRadius",4),o=i=>({borderRadius:to(r,i)});return ca(t,t.borderRadius,o)}return null};Iu.propTypes={};Iu.filterProps=["borderRadius"];Yu(lC,iC,sC,uC,cC,fC,dC,pC,mC,hC,Iu,gC,yC);const Gu=t=>{if(t.gap!==void 0&&t.gap!==null){const r=_i(t.theme,"spacing",8),o=i=>({gap:to(r,i)});return ca(t,t.gap,o)}return null};Gu.propTypes={};Gu.filterProps=["gap"];const Xu=t=>{if(t.columnGap!==void 0&&t.columnGap!==null){const r=_i(t.theme,"spacing",8),o=i=>({columnGap:to(r,i)});return ca(t,t.columnGap,o)}return null};Xu.propTypes={};Xu.filterProps=["columnGap"];const Fu=t=>{if(t.rowGap!==void 0&&t.rowGap!==null){const r=_i(t.theme,"spacing",8),o=i=>({rowGap:to(r,i)});return ca(t,t.rowGap,o)}return null};Fu.propTypes={};Fu.filterProps=["rowGap"];const vC=Pt({prop:"gridColumn"}),bC=Pt({prop:"gridRow"}),SC=Pt({prop:"gridAutoFlow"}),xC=Pt({prop:"gridAutoColumns"}),CC=Pt({prop:"gridAutoRows"}),TC=Pt({prop:"gridTemplateColumns"}),EC=Pt({prop:"gridTemplateRows"}),wC=Pt({prop:"gridTemplateAreas"}),AC=Pt({prop:"gridArea"});Yu(Gu,Xu,Fu,vC,bC,SC,xC,CC,TC,EC,wC,AC);function el(t,r){return r==="grey"?r:t}const RC=Pt({prop:"color",themeKey:"palette",transform:el}),MC=Pt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:el}),OC=Pt({prop:"backgroundColor",themeKey:"palette",transform:el});Yu(RC,MC,OC);function Bn(t){return t<=1&&t!==0?`${t*100}%`:t}const zC=Pt({prop:"width",transform:Bn}),Op=t=>{if(t.maxWidth!==void 0&&t.maxWidth!==null){const r=o=>{const i=t.theme?.breakpoints?.values?.[o]||Pu[o];return i?t.theme?.breakpoints?.unit!=="px"?{maxWidth:`${i}${t.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Bn(o)}};return ca(t,t.maxWidth,r)}return null};Op.filterProps=["maxWidth"];const kC=Pt({prop:"minWidth",transform:Bn}),NC=Pt({prop:"height",transform:Bn}),DC=Pt({prop:"maxHeight",transform:Bn}),jC=Pt({prop:"minHeight",transform:Bn});Pt({prop:"size",cssProperty:"width",transform:Bn});Pt({prop:"size",cssProperty:"height",transform:Bn});const BC=Pt({prop:"boxSizing"});Yu(zC,Op,kC,NC,DC,jC,BC);const $i={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Iu},color:{themeKey:"palette",transform:el},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:el},backgroundColor:{themeKey:"palette",transform:el},p:{style:Lt},pt:{style:Lt},pr:{style:Lt},pb:{style:Lt},pl:{style:Lt},px:{style:Lt},py:{style:Lt},padding:{style:Lt},paddingTop:{style:Lt},paddingRight:{style:Lt},paddingBottom:{style:Lt},paddingLeft:{style:Lt},paddingX:{style:Lt},paddingY:{style:Lt},paddingInline:{style:Lt},paddingInlineStart:{style:Lt},paddingInlineEnd:{style:Lt},paddingBlock:{style:Lt},paddingBlockStart:{style:Lt},paddingBlockEnd:{style:Lt},m:{style:Bt},mt:{style:Bt},mr:{style:Bt},mb:{style:Bt},ml:{style:Bt},mx:{style:Bt},my:{style:Bt},margin:{style:Bt},marginTop:{style:Bt},marginRight:{style:Bt},marginBottom:{style:Bt},marginLeft:{style:Bt},marginX:{style:Bt},marginY:{style:Bt},marginInline:{style:Bt},marginInlineStart:{style:Bt},marginInlineEnd:{style:Bt},marginBlock:{style:Bt},marginBlockStart:{style:Bt},marginBlockEnd:{style:Bt},displayPrint:{cssProperty:!1,transform:t=>({"@media print":{display:t}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gu},rowGap:{style:Fu},columnGap:{style:Xu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bn},maxWidth:{style:Op},minWidth:{transform:Bn},height:{transform:Bn},maxHeight:{transform:Bn},minHeight:{transform:Bn},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function LC(...t){const r=t.reduce((i,s)=>i.concat(Object.keys(s)),[]),o=new Set(r);return t.every(i=>o.size===Object.keys(i).length)}function _C(t,r){return typeof t=="function"?t(r):t}function $C(){function t(o,i,s,c){const d={[o]:i,theme:s},p=c[o];if(!p)return{[o]:i};const{cssProperty:m=o,themeKey:h,transform:y,style:v}=p;if(i==null)return null;if(h==="typography"&&i==="inherit")return{[o]:i};const w=Vu(s,h)||{};return v?v(d):ca(d,i,E=>{let C=Tu(w,y,E);return E===C&&typeof E=="string"&&(C=Tu(w,y,`${o}${E==="default"?"":ue(E)}`,E)),m===!1?C:{[m]:C}})}function r(o){const{sx:i,theme:s={},nested:c}=o||{};if(!i)return null;const d=s.unstable_sxConfig??$i;function p(m){let h=m;if(typeof m=="function")h=m(s);else if(typeof m!="object")return m;if(!h)return null;const y=ib(s.breakpoints),v=Object.keys(y);let w=y;return Object.keys(h).forEach(b=>{const E=_C(h[b],s);if(E!=null)if(typeof E=="object")if(d[b])w=gi(w,t(b,E,s,d));else{const C=ca({theme:s},E,M=>({[b]:M}));LC(C,E)?w[b]=r({sx:E,theme:s,nested:!0}):w=gi(w,C)}else w=gi(w,t(b,E,s,d))}),!c&&s.modularCssLayers?{"@layer sx":T0(s,Jd(v,w))}:T0(s,Jd(v,w))}return Array.isArray(i)?i.map(p):p(i)}return r}const Rr=$C();Rr.filterProps=["sx"];function HC(t,r){const o=this;if(o.vars){if(!o.colorSchemes?.[t]||typeof o.getColorSchemeSelector!="function")return{};let i=o.getColorSchemeSelector(t);return i==="&"?r:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:r})}return o.palette.mode===t?r:{}}function Ku(t={},...r){const{breakpoints:o={},palette:i={},spacing:s,shape:c={},...d}=t,p=G2(o),m=ub(s);let h=an({breakpoints:p,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:m,shape:{...Q2,...c}},d);return h=K2(h),h.applyStyles=HC,h=r.reduce((y,v)=>an(y,v),h),h.unstable_sxConfig={...$i,...d?.unstable_sxConfig},h.unstable_sx=function(v){return Rr({sx:v,theme:this})},h}function UC(t){return Object.keys(t).length===0}function Qu(t=null){const r=S.useContext(Bi);return!r||UC(r)?t:r}const PC=Ku();function Zu(t=PC){return Qu(t)}function Bd(t){const r=wr(t);return t!==r&&r.styles?(r.styles.match(/^@layer\s+[^{]*$/)||(r.styles=`@layer global{${r.styles}}`),r):t}function cb({styles:t,themeId:r,defaultTheme:o={}}){const i=Zu(o),s=r&&i[r]||i;let c=typeof t=="function"?t(s):t;return s.modularCssLayers&&(Array.isArray(c)?c=c.map(d=>Bd(typeof d=="function"?d(s):d)):c=Bd(c)),A.jsx(ab,{styles:c})}const VC=t=>{const r={systemProps:{},otherProps:{}},o=t?.theme?.unstable_sxConfig??$i;return Object.keys(t).forEach(i=>{o[i]?r.systemProps[i]=t[i]:r.otherProps[i]=t[i]}),r};function zp(t){const{sx:r,...o}=t,{systemProps:i,otherProps:s}=VC(o);let c;return Array.isArray(r)?c=[i,...r]:typeof r=="function"?c=(...d)=>{const p=r(...d);return Ca(p)?{...i,...p}:i}:c={...i,...r},{...s,sx:c}}const A0=t=>t,qC=()=>{let t=A0;return{configure(r){t=r},generate(r){return t(r)},reset(){t=A0}}},fb=qC();function db(t){var r,o,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var s=t.length;for(r=0;rp!=="theme"&&p!=="sx"&&p!=="as"})(Rr);return S.forwardRef(function(m,h){const y=Zu(o),{className:v,component:w="div",...b}=zp(m);return A.jsx(c,{as:w,ref:h,className:Oe(v,s?s(i):i),theme:r&&y[r]||y,...b})})}const IC={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function at(t,r,o="Mui"){const i=IC[r];return i?`${o}-${i}`:`${fb.generate(t)}-${r}`}function rt(t,r,o="Mui"){const i={};return r.forEach(s=>{i[s]=at(t,s,o)}),i}function pb(t){const{variants:r,...o}=t,i={variants:r,style:wr(o),isProcessed:!0};return i.style===o||r&&r.forEach(s=>{typeof s.style!="function"&&(s.style=wr(s.style))}),i}const GC=Ku();function Ld(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}function Wr(t,r){return r&&t&&typeof t=="object"&&t.styles&&!t.styles.startsWith("@layer")&&(t.styles=`@layer ${r}{${String(t.styles)}}`),t}function XC(t){return t?(r,o)=>o[t]:null}function FC(t,r,o){t.theme=QC(t.theme)?o:t.theme[r]||t.theme}function yu(t,r,o){const i=typeof r=="function"?r(t):r;if(Array.isArray(i))return i.flatMap(s=>yu(t,s,o));if(Array.isArray(i?.variants)){let s;if(i.isProcessed)s=o?Wr(i.style,o):i.style;else{const{variants:c,...d}=i;s=o?Wr(wr(d),o):d}return mb(t,i.variants,[s],o)}return i?.isProcessed?o?Wr(wr(i.style),o):i.style:o?Wr(wr(i),o):i}function mb(t,r,o=[],i=void 0){let s;e:for(let c=0;c{V2(p,j=>j.filter($=>$!==Rr));const{name:h,slot:y,skipVariantsResolver:v,skipSx:w,overridesResolver:b=XC(WC(y)),...E}=m,C=h&&h.startsWith("Mui")||y?"components":"custom",M=v!==void 0?v:y&&y!=="Root"&&y!=="root"||!1,D=w||!1;let L=Ld;y==="Root"||y==="root"?L=i:y?L=s:ZC(p)&&(L=void 0);const O=rb(p,{shouldForwardProp:L,label:KC(),...E}),R=j=>{if(j.__emotion_real===j)return j;if(typeof j=="function")return function(P){return yu(P,j,P.theme.modularCssLayers?C:void 0)};if(Ca(j)){const $=pb(j);return function(Y){return $.variants?yu(Y,$,Y.theme.modularCssLayers?C:void 0):Y.theme.modularCssLayers?Wr($.style,C):$.style}}return j},N=(...j)=>{const $=[],P=j.map(R),Y=[];if($.push(c),h&&b&&Y.push(function(H){const W=H.theme.components?.[h]?.styleOverrides;if(!W)return null;const k={};for(const I in W)k[I]=yu(H,W[I],H.theme.modularCssLayers?"theme":void 0);return b(H,k)}),h&&!M&&Y.push(function(H){const W=H.theme?.components?.[h]?.variants;return W?mb(H,W,[],H.theme.modularCssLayers?"theme":void 0):null}),D||Y.push(Rr),Array.isArray(P[0])){const x=P.shift(),H=new Array($.length).fill(""),X=new Array(Y.length).fill("");let W;W=[...H,...x,...X],W.raw=[...H,...x.raw,...X],$.unshift(W)}const q=[...$,...P,...Y],Q=O(...q);return p.muiName&&(Q.muiName=p.muiName),Q};return O.withConfig&&(N.withConfig=O.withConfig),N}}function KC(t,r){return void 0}function QC(t){for(const r in t)return!1;return!0}function ZC(t){return typeof t=="string"&&t.charCodeAt(0)>96}function WC(t){return t&&t.charAt(0).toLowerCase()+t.slice(1)}const JC=hb();function nl(t,r,o=!1){const i={...r};for(const s in t)if(Object.prototype.hasOwnProperty.call(t,s)){const c=s;if(c==="components"||c==="slots")i[c]={...t[c],...i[c]};else if(c==="componentsProps"||c==="slotProps"){const d=t[c],p=r[c];if(!p)i[c]=d||{};else if(!d)i[c]=p;else{i[c]={...p};for(const m in d)if(Object.prototype.hasOwnProperty.call(d,m)){const h=m;i[c][h]=nl(d[h],p[h],o)}}}else c==="className"&&o&&r.className?i.className=Oe(t?.className,r?.className):c==="style"&&o&&r.style?i.style={...t?.style,...r?.style}:i[c]===void 0&&(i[c]=t[c])}return i}function gb(t){const{theme:r,name:o,props:i}=t;return!r||!r.components||!r.components[o]||!r.components[o].defaultProps?i:nl(r.components[o].defaultProps,i)}function eT({props:t,name:r,defaultTheme:o,themeId:i}){let s=Zu(o);return i&&(s=s[i]||s),gb({theme:s,name:r,props:t})}const wn=typeof window<"u"?S.useLayoutEffect:S.useEffect;function tT(t,r,o,i,s){const[c,d]=S.useState(()=>s&&o?o(t).matches:i?i(t).matches:r);return wn(()=>{if(!o)return;const p=o(t),m=()=>{d(p.matches)};return m(),p.addEventListener("change",m),()=>{p.removeEventListener("change",m)}},[t,o]),c}const nT={...Su},yb=nT.useSyncExternalStore;function aT(t,r,o,i,s){const c=S.useCallback(()=>r,[r]),d=S.useMemo(()=>{if(s&&o)return()=>o(t).matches;if(i!==null){const{matches:y}=i(t);return()=>y}return c},[c,t,i,s,o]),[p,m]=S.useMemo(()=>{if(o===null)return[c,()=>()=>{}];const y=o(t);return[()=>y.matches,v=>(y.addEventListener("change",v),()=>{y.removeEventListener("change",v)})]},[c,o,t]);return yb(m,p,d)}function vb(t={}){const{themeId:r}=t;return function(i,s={}){let c=Qu();c&&r&&(c=c[r]||c);const d=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:p=!1,matchMedia:m=d?window.matchMedia:null,ssrMatchMedia:h=null,noSsr:y=!1}=gb({name:"MuiUseMediaQuery",props:s,theme:c});let v=typeof i=="function"?i(c):i;return v=v.replace(/^@media( ?)/m,""),v.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(` -`)),(yb!==void 0?aT:tT)(v,p,m,h,y)}}vb();function Qo(t,r=Number.MIN_SAFE_INTEGER,o=Number.MAX_SAFE_INTEGER){return Math.max(r,Math.min(t,o))}function kp(t,r=0,o=1){return Qo(t,r,o)}function rT(t){t=t.slice(1);const r=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let o=t.match(r);return o&&o[0].length===1&&(o=o.map(i=>i+i)),o?`rgb${o.length===4?"a":""}(${o.map((i,s)=>s<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function Mr(t){if(t.type)return t;if(t.charAt(0)==="#")return Mr(rT(t));const r=t.indexOf("("),o=t.substring(0,r);if(!["rgb","rgba","hsl","hsla","color"].includes(o))throw new Error(Za(9,t));let i=t.substring(r+1,t.length-1),s;if(o==="color"){if(i=i.split(" "),s=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error(Za(10,s))}else i=i.split(",");return i=i.map(c=>parseFloat(c)),{type:o,values:i,colorSpace:s}}const oT=t=>{const r=Mr(t);return r.values.slice(0,3).map((o,i)=>r.type.includes("hsl")&&i!==0?`${o}%`:o).join(" ")},di=(t,r)=>{try{return oT(t)}catch{return t}};function Wu(t){const{type:r,colorSpace:o}=t;let{values:i}=t;return r.includes("rgb")?i=i.map((s,c)=>c<3?parseInt(s,10):s):r.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),r.includes("color")?i=`${o} ${i.join(" ")}`:i=`${i.join(", ")}`,`${r}(${i})`}function bb(t){t=Mr(t);const{values:r}=t,o=r[0],i=r[1]/100,s=r[2]/100,c=i*Math.min(s,1-s),d=(h,y=(h+o/30)%12)=>s-c*Math.max(Math.min(y-3,9-y,1),-1);let p="rgb";const m=[Math.round(d(0)*255),Math.round(d(8)*255),Math.round(d(4)*255)];return t.type==="hsla"&&(p+="a",m.push(r[3])),Wu({type:p,values:m})}function ep(t){t=Mr(t);let r=t.type==="hsl"||t.type==="hsla"?Mr(bb(t)).values:t.values;return r=r.map(o=>(t.type!=="color"&&(o/=255),o<=.03928?o/12.92:((o+.055)/1.055)**2.4)),Number((.2126*r[0]+.7152*r[1]+.0722*r[2]).toFixed(3))}function lT(t,r){const o=ep(t),i=ep(r);return(Math.max(o,i)+.05)/(Math.min(o,i)+.05)}function Eu(t,r){return t=Mr(t),r=kp(r),(t.type==="rgb"||t.type==="hsl")&&(t.type+="a"),t.type==="color"?t.values[3]=`/${r}`:t.values[3]=r,Wu(t)}function Xr(t,r,o){try{return Eu(t,r)}catch{return t}}function Ju(t,r){if(t=Mr(t),r=kp(r),t.type.includes("hsl"))t.values[2]*=1-r;else if(t.type.includes("rgb")||t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]*=1-r;return Wu(t)}function yt(t,r,o){try{return Ju(t,r)}catch{return t}}function ec(t,r){if(t=Mr(t),r=kp(r),t.type.includes("hsl"))t.values[2]+=(100-t.values[2])*r;else if(t.type.includes("rgb"))for(let o=0;o<3;o+=1)t.values[o]+=(255-t.values[o])*r;else if(t.type.includes("color"))for(let o=0;o<3;o+=1)t.values[o]+=(1-t.values[o])*r;return Wu(t)}function vt(t,r,o){try{return ec(t,r)}catch{return t}}function iT(t,r=.15){return ep(t)>.5?Ju(t,r):ec(t,r)}function eu(t,r,o){try{return iT(t,r)}catch{return t}}const Sb=S.createContext(null);function Np(){return S.useContext(Sb)}const sT=typeof Symbol=="function"&&Symbol.for,uT=sT?Symbol.for("mui.nested"):"__THEME_NESTED__";function cT(t,r){return typeof r=="function"?r(t):{...t,...r}}function fT(t){const{children:r,theme:o}=t,i=Np(),s=S.useMemo(()=>{const c=i===null?{...o}:cT(i,o);return c!=null&&(c[uT]=i!==null),c},[o,i]);return A.jsx(Sb.Provider,{value:s,children:r})}const xb=S.createContext();function dT({value:t,...r}){return A.jsx(xb.Provider,{value:t??!0,...r})}const tc=()=>S.useContext(xb)??!1,Cb=S.createContext(void 0);function pT({value:t,children:r}){return A.jsx(Cb.Provider,{value:t,children:r})}function mT(t){const{theme:r,name:o,props:i}=t;if(!r||!r.components||!r.components[o])return i;const s=r.components[o];return s.defaultProps?nl(s.defaultProps,i,r.components.mergeClassNameAndStyle):!s.styleOverrides&&!s.variants?nl(s,i,r.components.mergeClassNameAndStyle):i}function hT({props:t,name:r}){const o=S.useContext(Cb);return mT({props:t,name:r,theme:{components:o}})}let R0=0;function gT(t){const[r,o]=S.useState(t),i=t||r;return S.useEffect(()=>{r==null&&(R0+=1,o(`mui-${R0}`))},[r]),i}const yT={...Su},M0=yT.useId;function cl(t){if(M0!==void 0){const r=M0();return t??r}return gT(t)}function vT(t){const r=Qu(),o=cl()||"",{modularCssLayers:i}=t;let s="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return!i||r!==null?s="":typeof i=="string"?s=i.replace(/mui(?!\.)/g,s):s=`@layer ${s};`,wn(()=>{const c=document.querySelector("head");if(!c)return;const d=c.firstChild;if(s){if(d&&d.hasAttribute?.("data-mui-layer-order")&&d.getAttribute("data-mui-layer-order")===o)return;const p=document.createElement("style");p.setAttribute("data-mui-layer-order",o),p.textContent=s,c.prepend(p)}else c.querySelector(`style[data-mui-layer-order="${o}"]`)?.remove()},[s,o]),s?A.jsx(cb,{styles:s}):null}const O0={};function z0(t,r,o,i=!1){return S.useMemo(()=>{const s=t&&r[t]||r;if(typeof o=="function"){const c=o(s),d=t?{...r,[t]:c}:c;return i?()=>d:d}return t?{...r,[t]:o}:{...r,...o}},[t,r,o,i])}function Tb(t){const{children:r,theme:o,themeId:i}=t,s=Qu(O0),c=Np()||O0,d=z0(i,s,o),p=z0(i,c,o,!0),m=(i?d[i]:d).direction==="rtl",h=vT(d);return A.jsx(fT,{theme:p,children:A.jsx(Bi.Provider,{value:d,children:A.jsx(dT,{value:m,children:A.jsxs(pT,{value:i?d[i].components:d.components,children:[h,r]})})})})}const k0={theme:void 0};function bT(t){let r,o;return function(s){let c=r;return(c===void 0||s.theme!==o)&&(k0.theme=s.theme,c=pb(t(k0)),r=c,o=s.theme),c}}const Dp="mode",jp="color-scheme",ST="data-color-scheme";function xT(t){const{defaultMode:r="system",defaultLightColorScheme:o="light",defaultDarkColorScheme:i="dark",modeStorageKey:s=Dp,colorSchemeStorageKey:c=jp,attribute:d=ST,colorSchemeNode:p="document.documentElement",nonce:m}=t||{};let h="",y=d;if(d==="class"&&(y=".%s"),d==="data"&&(y="[data-%s]"),y.startsWith(".")){const w=y.substring(1);h+=`${p}.classList.remove('${w}'.replace('%s', light), '${w}'.replace('%s', dark)); - ${p}.classList.add('${w}'.replace('%s', colorScheme));`}const v=y.match(/\[([^[\]]+)\]/);if(v){const[w,b]=v[1].split("=");b||(h+=`${p}.removeAttribute('${w}'.replace('%s', light)); - ${p}.removeAttribute('${w}'.replace('%s', dark));`),h+=` - ${p}.setAttribute('${w}'.replace('%s', colorScheme), ${b?`${b}.replace('%s', colorScheme)`:'""'});`}else y!==".%s"&&(h+=`${p}.setAttribute('${y}', colorScheme);`);return A.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?m:"",dangerouslySetInnerHTML:{__html:`(function() { -try { - let colorScheme = ''; - const mode = localStorage.getItem('${s}') || '${r}'; - const dark = localStorage.getItem('${c}-dark') || '${i}'; - const light = localStorage.getItem('${c}-light') || '${o}'; - if (mode === 'system') { - // handle system mode - const mql = window.matchMedia('(prefers-color-scheme: dark)'); - if (mql.matches) { - colorScheme = dark - } else { - colorScheme = light - } - } - if (mode === 'light') { - colorScheme = light; - } - if (mode === 'dark') { - colorScheme = dark; - } - if (colorScheme) { - ${h} - } -} catch(e){}})();`}},"mui-color-scheme-init")}function CT(){}const TT=({key:t,storageWindow:r})=>(!r&&typeof window<"u"&&(r=window),{get(o){if(typeof window>"u")return;if(!r)return o;let i;try{i=r.localStorage.getItem(t)}catch{}return i||o},set:o=>{if(r)try{r.localStorage.setItem(t,o)}catch{}},subscribe:o=>{if(!r)return CT;const i=s=>{const c=s.newValue;s.key===t&&o(c)};return r.addEventListener("storage",i),()=>{r.removeEventListener("storage",i)}}});function _d(){}function N0(t){if(typeof window<"u"&&typeof window.matchMedia=="function"&&t==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function Eb(t,r){if(t.mode==="light"||t.mode==="system"&&t.systemMode==="light")return r("light");if(t.mode==="dark"||t.mode==="system"&&t.systemMode==="dark")return r("dark")}function ET(t){return Eb(t,r=>{if(r==="light")return t.lightColorScheme;if(r==="dark")return t.darkColorScheme})}function wT(t){const{defaultMode:r="light",defaultLightColorScheme:o,defaultDarkColorScheme:i,supportedColorSchemes:s=[],modeStorageKey:c=Dp,colorSchemeStorageKey:d=jp,storageWindow:p=typeof window>"u"?void 0:window,storageManager:m=TT,noSsr:h=!1}=t,y=s.join(","),v=s.length>1,w=S.useMemo(()=>m?.({key:c,storageWindow:p}),[m,c,p]),b=S.useMemo(()=>m?.({key:`${d}-light`,storageWindow:p}),[m,d,p]),E=S.useMemo(()=>m?.({key:`${d}-dark`,storageWindow:p}),[m,d,p]),[C,M]=S.useState(()=>{const P=w?.get(r)||r,Y=b?.get(o)||o,q=E?.get(i)||i;return{mode:P,systemMode:N0(P),lightColorScheme:Y,darkColorScheme:q}}),[D,L]=S.useState(h||!v);S.useEffect(()=>{L(!0)},[]);const O=ET(C),R=S.useCallback(P=>{M(Y=>{if(P===Y.mode)return Y;const q=P??r;return w?.set(q),{...Y,mode:q,systemMode:N0(q)}})},[w,r]),N=S.useCallback(P=>{P?typeof P=="string"?P&&!y.includes(P)?console.error(`\`${P}\` does not exist in \`theme.colorSchemes\`.`):M(Y=>{const q={...Y};return Eb(Y,Q=>{Q==="light"&&(b?.set(P),q.lightColorScheme=P),Q==="dark"&&(E?.set(P),q.darkColorScheme=P)}),q}):M(Y=>{const q={...Y},Q=P.light===null?o:P.light,x=P.dark===null?i:P.dark;return Q&&(y.includes(Q)?(q.lightColorScheme=Q,b?.set(Q)):console.error(`\`${Q}\` does not exist in \`theme.colorSchemes\`.`)),x&&(y.includes(x)?(q.darkColorScheme=x,E?.set(x)):console.error(`\`${x}\` does not exist in \`theme.colorSchemes\`.`)),q}):M(Y=>(b?.set(o),E?.set(i),{...Y,lightColorScheme:o,darkColorScheme:i}))},[y,b,E,o,i]),j=S.useCallback(P=>{C.mode==="system"&&M(Y=>{const q=P?.matches?"dark":"light";return Y.systemMode===q?Y:{...Y,systemMode:q}})},[C.mode]),$=S.useRef(j);return $.current=j,S.useEffect(()=>{if(typeof window.matchMedia!="function"||!v)return;const P=(...q)=>$.current(...q),Y=window.matchMedia("(prefers-color-scheme: dark)");return Y.addListener(P),P(Y),()=>{Y.removeListener(P)}},[v]),S.useEffect(()=>{if(v){const P=w?.subscribe(Q=>{(!Q||["light","dark","system"].includes(Q))&&R(Q||r)})||_d,Y=b?.subscribe(Q=>{(!Q||y.match(Q))&&N({light:Q})})||_d,q=E?.subscribe(Q=>{(!Q||y.match(Q))&&N({dark:Q})})||_d;return()=>{P(),Y(),q()}}},[N,R,y,r,p,v,w,b,E]),{...C,mode:D?C.mode:void 0,systemMode:D?C.systemMode:void 0,colorScheme:D?O:void 0,setMode:R,setColorScheme:N}}const AT="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function RT(t){const{themeId:r,theme:o={},modeStorageKey:i=Dp,colorSchemeStorageKey:s=jp,disableTransitionOnChange:c=!1,defaultColorScheme:d,resolveTheme:p}=t,m={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},h=S.createContext(void 0),y=()=>S.useContext(h)||m,v={},w={};function b(D){const{children:L,theme:O,modeStorageKey:R=i,colorSchemeStorageKey:N=s,disableTransitionOnChange:j=c,storageManager:$,storageWindow:P=typeof window>"u"?void 0:window,documentNode:Y=typeof document>"u"?void 0:document,colorSchemeNode:q=typeof document>"u"?void 0:document.documentElement,disableNestedContext:Q=!1,disableStyleSheetGeneration:x=!1,defaultMode:H="system",forceThemeRerender:X=!1,noSsr:W}=D,k=S.useRef(!1),I=Np(),J=S.useContext(h),ae=!!J&&!Q,pe=S.useMemo(()=>O||(typeof o=="function"?o():o),[O]),z=pe[r],V=z||pe,{colorSchemes:ne=v,components:le=w,cssVarPrefix:ce}=V,se=Object.keys(ne).filter(ie=>!!ne[ie]).join(","),de=S.useMemo(()=>se.split(","),[se]),ze=typeof d=="string"?d:d.light,ye=typeof d=="string"?d:d.dark,xe=ne[ze]&&ne[ye]?H:ne[V.defaultColorScheme]?.palette?.mode||V.palette?.mode,{mode:Ae,setMode:Re,systemMode:Le,lightColorScheme:be,darkColorScheme:$e,colorScheme:Ze,setColorScheme:De}=wT({supportedColorSchemes:de,defaultLightColorScheme:ze,defaultDarkColorScheme:ye,modeStorageKey:R,colorSchemeStorageKey:N,defaultMode:xe,storageManager:$,storageWindow:P,noSsr:W});let Pe=Ae,Ie=Ze;ae&&(Pe=J.mode,Ie=J.colorScheme);let We=Ie||V.defaultColorScheme;V.vars&&!X&&(We=V.defaultColorScheme);const Ve=S.useMemo(()=>{const ie=V.generateThemeVars?.()||V.vars,me={...V,components:le,colorSchemes:ne,cssVarPrefix:ce,vars:ie};if(typeof me.generateSpacing=="function"&&(me.spacing=me.generateSpacing()),We){const Se=ne[We];Se&&typeof Se=="object"&&Object.keys(Se).forEach(Ce=>{Se[Ce]&&typeof Se[Ce]=="object"?me[Ce]={...me[Ce],...Se[Ce]}:me[Ce]=Se[Ce]})}return p?p(me):me},[V,We,le,ne,ce]),ge=V.colorSchemeSelector;wn(()=>{if(Ie&&q&&ge&&ge!=="media"){const ie=ge;let me=ge;if(ie==="class"&&(me=".%s"),ie==="data"&&(me="[data-%s]"),ie?.startsWith("data-")&&!ie.includes("%s")&&(me=`[${ie}="%s"]`),me.startsWith("."))q.classList.remove(...de.map(Se=>me.substring(1).replace("%s",Se))),q.classList.add(me.substring(1).replace("%s",Ie));else{const Se=me.replace("%s",Ie).match(/\[([^\]]+)\]/);if(Se){const[Ce,ke]=Se[1].split("=");ke||de.forEach(we=>{q.removeAttribute(Ce.replace(Ie,we))}),q.setAttribute(Ce,ke?ke.replace(/"|'/g,""):"")}else q.setAttribute(me,Ie)}}},[Ie,ge,q,de]),S.useEffect(()=>{let ie;if(j&&k.current&&Y){const me=Y.createElement("style");me.appendChild(Y.createTextNode(AT)),Y.head.appendChild(me),window.getComputedStyle(Y.body),ie=setTimeout(()=>{Y.head.removeChild(me)},1)}return()=>{clearTimeout(ie)}},[Ie,j,Y]),S.useEffect(()=>(k.current=!0,()=>{k.current=!1}),[]);const Mt=S.useMemo(()=>({allColorSchemes:de,colorScheme:Ie,darkColorScheme:$e,lightColorScheme:be,mode:Pe,setColorScheme:De,setMode:Re,systemMode:Le}),[de,Ie,$e,be,Pe,De,Re,Le,Ve.colorSchemeSelector]);let He=!0;(x||V.cssVariables===!1||ae&&I?.cssVarPrefix===ce)&&(He=!1);const fe=A.jsxs(S.Fragment,{children:[A.jsx(Tb,{themeId:z?r:void 0,theme:Ve,children:L}),He&&A.jsx(ab,{styles:Ve.generateStyleSheets?.()||[]})]});return ae?fe:A.jsx(h.Provider,{value:Mt,children:fe})}const E=typeof d=="string"?d:d.light,C=typeof d=="string"?d:d.dark;return{CssVarsProvider:b,useColorScheme:y,getInitColorSchemeScript:D=>xT({colorSchemeStorageKey:s,defaultLightColorScheme:E,defaultDarkColorScheme:C,modeStorageKey:i,...D})}}function MT(t=""){function r(...i){if(!i.length)return"";const s=i[0];return typeof s=="string"&&!s.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${t?`${t}-`:""}${s}${r(...i.slice(1))})`:`, ${s}`}return(i,...s)=>`var(--${t?`${t}-`:""}${i}${r(...s)})`}const D0=(t,r,o,i=[])=>{let s=t;r.forEach((c,d)=>{d===r.length-1?Array.isArray(s)?s[Number(c)]=o:s&&typeof s=="object"&&(s[c]=o):s&&typeof s=="object"&&(s[c]||(s[c]=i.includes(c)?[]:{}),s=s[c])})},OT=(t,r,o)=>{function i(s,c=[],d=[]){Object.entries(s).forEach(([p,m])=>{(!o||o&&!o([...c,p]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?i(m,[...c,p],Array.isArray(m)?[...d,p]:d):r([...c,p],m,d))})}i(t)},zT=(t,r)=>typeof r=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(i=>t.includes(i))||t[t.length-1].toLowerCase().includes("opacity")?r:`${r}px`:r;function $d(t,r){const{prefix:o,shouldSkipGeneratingVar:i}=r||{},s={},c={},d={};return OT(t,(p,m,h)=>{if((typeof m=="string"||typeof m=="number")&&(!i||!i(p,m))){const y=`--${o?`${o}-`:""}${p.join("-")}`,v=zT(p,m);Object.assign(s,{[y]:v}),D0(c,p,`var(${y})`,h),D0(d,p,`var(${y}, ${v})`,h)}},p=>p[0]==="vars"),{css:s,vars:c,varsWithDefaults:d}}function kT(t,r={}){const{getSelector:o=D,disableCssColorScheme:i,colorSchemeSelector:s,enableContrastVars:c}=r,{colorSchemes:d={},components:p,defaultColorScheme:m="light",...h}=t,{vars:y,css:v,varsWithDefaults:w}=$d(h,r);let b=w;const E={},{[m]:C,...M}=d;if(Object.entries(M||{}).forEach(([R,N])=>{const{vars:j,css:$,varsWithDefaults:P}=$d(N,r);b=an(b,P),E[R]={css:$,vars:j}}),C){const{css:R,vars:N,varsWithDefaults:j}=$d(C,r);b=an(b,j),E[m]={css:R,vars:N}}function D(R,N){let j=s;if(s==="class"&&(j=".%s"),s==="data"&&(j="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(j=`[${s}="%s"]`),R){if(j==="media")return t.defaultColorScheme===R?":root":{[`@media (prefers-color-scheme: ${d[R]?.palette?.mode||R})`]:{":root":N}};if(j)return t.defaultColorScheme===R?`:root, ${j.replace("%s",String(R))}`:j.replace("%s",String(R))}return":root"}return{vars:b,generateThemeVars:()=>{let R={...y};return Object.entries(E).forEach(([,{vars:N}])=>{R=an(R,N)}),R},generateStyleSheets:()=>{const R=[],N=t.defaultColorScheme||"light";function j(Y,q){Object.keys(q).length&&R.push(typeof Y=="string"?{[Y]:{...q}}:Y)}j(o(void 0,{...v}),v);const{[N]:$,...P}=E;if($){const{css:Y}=$,q=d[N]?.palette?.mode,Q=!i&&q?{colorScheme:q,...Y}:{...Y};j(o(N,{...Q}),Q)}return Object.entries(P).forEach(([Y,{css:q}])=>{const Q=d[Y]?.palette?.mode,x=!i&&Q?{colorScheme:Q,...q}:{...q};j(o(Y,{...x}),x)}),c&&R.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),R}}}function NT(t){return function(o){return t==="media"?`@media (prefers-color-scheme: ${o})`:t?t.startsWith("data-")&&!t.includes("%s")?`[${t}="${o}"] &`:t==="class"?`.${o} &`:t==="data"?`[data-${o}] &`:`${t.replace("%s",o)} &`:"&"}}function ot(t,r,o=void 0){const i={};for(const s in t){const c=t[s];let d="",p=!0;for(let m=0;m(i.push(s),c({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[t],$T=({ownerState:t,theme:r})=>{let o={display:"flex",flexDirection:"column",...ca({theme:r},jd({values:t.direction,breakpoints:r.breakpoints.values}),i=>({flexDirection:i}))};if(t.spacing){const i=qu(r),s=Object.keys(r.breakpoints.values).reduce((m,h)=>((typeof t.spacing=="object"&&t.spacing[h]!=null||typeof t.direction=="object"&&t.direction[h]!=null)&&(m[h]=!0),m),{}),c=jd({values:t.direction,base:s}),d=jd({values:t.spacing,base:s});typeof c=="object"&&Object.keys(c).forEach((m,h,y)=>{if(!c[m]){const w=h>0?c[y[h-1]]:"column";c[m]=w}}),o=an(o,ca({theme:r},d,(m,h)=>t.useFlexGap?{gap:to(i,m)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${_T(h?c[h]:t.direction)}`]:to(i,m)}}))}return o=W2(r.breakpoints,o),o};function HT(t={}){const{createStyledComponent:r=jT,useThemeProps:o=BT,componentName:i="MuiStack"}=t,s=()=>ot({root:["root"]},m=>at(i,m),{}),c=r($T);return S.forwardRef(function(m,h){const y=o(m),v=zp(y),{component:w="div",direction:b="column",spacing:E=0,divider:C,children:M,className:D,useFlexGap:L=!1,...O}=v,R={direction:b,spacing:E,useFlexGap:L},N=s();return A.jsx(c,{as:w,ownerState:R,ref:h,className:Oe(N.root,D),...O,children:C?LT(M,C):M})})}function wb(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Ai.white,default:Ai.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const Ab=wb();function Rb(){return{text:{primary:Ai.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Ai.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const tp=Rb();function j0(t,r,o,i){const s=i.light||i,c=i.dark||i*1.5;t[r]||(t.hasOwnProperty(o)?t[r]=t[o]:r==="light"?t.light=ec(t.main,s):r==="dark"&&(t.dark=Ju(t.main,c)))}function B0(t,r,o,i,s){const c=s.light||s,d=s.dark||s*1.5;r[o]||(r.hasOwnProperty(i)?r[o]=r[i]:o==="light"?r.light=`color-mix(in ${t}, ${r.main}, #fff ${(c*100).toFixed(0)}%)`:o==="dark"&&(r.dark=`color-mix(in ${t}, ${r.main}, #000 ${(d*100).toFixed(0)}%)`))}function UT(t="light"){return t==="dark"?{main:Yo[200],light:Yo[50],dark:Yo[400]}:{main:Yo[700],light:Yo[400],dark:Yo[800]}}function PT(t="light"){return t==="dark"?{main:qo[200],light:qo[50],dark:qo[400]}:{main:qo[500],light:qo[300],dark:qo[700]}}function VT(t="light"){return t==="dark"?{main:Vo[500],light:Vo[300],dark:Vo[700]}:{main:Vo[700],light:Vo[400],dark:Vo[800]}}function qT(t="light"){return t==="dark"?{main:Io[400],light:Io[300],dark:Io[700]}:{main:Io[700],light:Io[500],dark:Io[900]}}function YT(t="light"){return t==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:Go[800],light:Go[500],dark:Go[900]}}function IT(t="light"){return t==="dark"?{main:oi[400],light:oi[300],dark:oi[700]}:{main:"#ed6c02",light:oi[500],dark:oi[900]}}function GT(t){return`oklch(from ${t} var(--__l) 0 h / var(--__a))`}function Bp(t){const{mode:r="light",contrastThreshold:o=3,tonalOffset:i=.2,colorSpace:s,...c}=t,d=t.primary||UT(r),p=t.secondary||PT(r),m=t.error||VT(r),h=t.info||qT(r),y=t.success||YT(r),v=t.warning||IT(r);function w(M){return s?GT(M):lT(M,tp.text.primary)>=o?tp.text.primary:Ab.text.primary}const b=({color:M,name:D,mainShade:L=500,lightShade:O=300,darkShade:R=700})=>{if(M={...M},!M.main&&M[L]&&(M.main=M[L]),!M.hasOwnProperty("main"))throw new Error(Za(11,D?` (${D})`:"",L));if(typeof M.main!="string")throw new Error(Za(12,D?` (${D})`:"",JSON.stringify(M.main)));return s?(B0(s,M,"light",O,i),B0(s,M,"dark",R,i)):(j0(M,"light",O,i),j0(M,"dark",R,i)),M.contrastText||(M.contrastText=w(M.main)),M};let E;return r==="light"?E=wb():r==="dark"&&(E=Rb()),an({common:{...Ai},mode:r,primary:b({color:d,name:"primary"}),secondary:b({color:p,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:m,name:"error"}),warning:b({color:v,name:"warning"}),info:b({color:h,name:"info"}),success:b({color:y,name:"success"}),grey:qx,contrastThreshold:o,getContrastText:w,augmentColor:b,tonalOffset:i,...E},c)}function XT(t){const r={};return Object.entries(t).forEach(i=>{const[s,c]=i;typeof c=="object"&&(r[s]=`${c.fontStyle?`${c.fontStyle} `:""}${c.fontVariant?`${c.fontVariant} `:""}${c.fontWeight?`${c.fontWeight} `:""}${c.fontStretch?`${c.fontStretch} `:""}${c.fontSize||""}${c.lineHeight?`/${c.lineHeight} `:""}${c.fontFamily||""}`)}),r}function FT(t,r){return{toolbar:{minHeight:56,[t.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[t.up("sm")]:{minHeight:64}},...r}}function KT(t){return Math.round(t*1e5)/1e5}const L0={textTransform:"uppercase"},_0='"Roboto", "Helvetica", "Arial", sans-serif';function Mb(t,r){const{fontFamily:o=_0,fontSize:i=14,fontWeightLight:s=300,fontWeightRegular:c=400,fontWeightMedium:d=500,fontWeightBold:p=700,htmlFontSize:m=16,allVariants:h,pxToRem:y,...v}=typeof r=="function"?r(t):r,w=i/14,b=y||(M=>`${M/m*w}rem`),E=(M,D,L,O,R)=>({fontFamily:o,fontWeight:M,fontSize:b(D),lineHeight:L,...o===_0?{letterSpacing:`${KT(O/D)}em`}:{},...R,...h}),C={h1:E(s,96,1.167,-1.5),h2:E(s,60,1.2,-.5),h3:E(c,48,1.167,0),h4:E(c,34,1.235,.25),h5:E(c,24,1.334,0),h6:E(d,20,1.6,.15),subtitle1:E(c,16,1.75,.15),subtitle2:E(d,14,1.57,.1),body1:E(c,16,1.5,.15),body2:E(c,14,1.43,.15),button:E(d,14,1.75,.4,L0),caption:E(c,12,1.66,.4),overline:E(c,12,2.66,1,L0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return an({htmlFontSize:m,pxToRem:b,fontFamily:o,fontSize:i,fontWeightLight:s,fontWeightRegular:c,fontWeightMedium:d,fontWeightBold:p,...C},v,{clone:!1})}const QT=.2,ZT=.14,WT=.12;function zt(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,${QT})`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,${ZT})`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,${WT})`].join(",")}const JT=["none",zt(0,2,1,-1,0,1,1,0,0,1,3,0),zt(0,3,1,-2,0,2,2,0,0,1,5,0),zt(0,3,3,-2,0,3,4,0,0,1,8,0),zt(0,2,4,-1,0,4,5,0,0,1,10,0),zt(0,3,5,-1,0,5,8,0,0,1,14,0),zt(0,3,5,-1,0,6,10,0,0,1,18,0),zt(0,4,5,-2,0,7,10,1,0,2,16,1),zt(0,5,5,-3,0,8,10,1,0,3,14,2),zt(0,5,6,-3,0,9,12,1,0,3,16,2),zt(0,6,6,-3,0,10,14,1,0,4,18,3),zt(0,6,7,-4,0,11,15,1,0,4,20,3),zt(0,7,8,-4,0,12,17,2,0,5,22,4),zt(0,7,8,-4,0,13,19,2,0,5,24,4),zt(0,7,9,-4,0,14,21,2,0,5,26,4),zt(0,8,9,-5,0,15,22,2,0,6,28,5),zt(0,8,10,-5,0,16,24,2,0,6,30,5),zt(0,8,11,-5,0,17,26,2,0,6,32,5),zt(0,9,11,-5,0,18,28,2,0,7,34,6),zt(0,9,12,-6,0,19,29,2,0,7,36,6),zt(0,10,13,-6,0,20,31,3,0,8,38,7),zt(0,10,13,-6,0,21,33,3,0,8,40,7),zt(0,10,14,-6,0,22,35,3,0,8,42,7),zt(0,11,14,-7,0,23,36,3,0,9,44,8),zt(0,11,15,-7,0,24,38,3,0,9,46,8)],e5={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},t5={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function $0(t){return`${Math.round(t)}ms`}function n5(t){if(!t)return 0;const r=t/36;return Math.min(Math.round((4+15*r**.25+r/5)*10),3e3)}function a5(t){const r={...e5,...t.easing},o={...t5,...t.duration};return{getAutoHeightDuration:n5,create:(s=["all"],c={})=>{const{duration:d=o.standard,easing:p=r.easeInOut,delay:m=0,...h}=c;return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof d=="string"?d:$0(d)} ${p} ${typeof m=="string"?m:$0(m)}`).join(",")},...t,easing:r,duration:o}}const r5={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function o5(t){return Ca(t)||typeof t>"u"||typeof t=="string"||typeof t=="boolean"||typeof t=="number"||Array.isArray(t)}function Ob(t={}){const r={...t};function o(i){const s=Object.entries(i);for(let c=0;c{if(!Number.isNaN(+t))return+t;const r=t.match(/\d*\.?\d+/g);if(!r)return 0;let o=0;for(let i=0;ian(E,C),b),b.unstable_sxConfig={...$i,...y?.unstable_sxConfig},b.unstable_sx=function(C){return Rr({sx:C,theme:this})},b.toRuntimeSource=Ob,i5(b),b}function ap(t){let r;return t<1?r=5.11916*t**2:r=4.5*Math.log(t+1)+2,Math.round(r*10)/1e3}const s5=[...Array(25)].map((t,r)=>{if(r===0)return"none";const o=ap(r);return`linear-gradient(rgba(255 255 255 / ${o}), rgba(255 255 255 / ${o}))`});function zb(t){return{inputPlaceholder:t==="dark"?.5:.42,inputUnderline:t==="dark"?.7:.42,switchTrackDisabled:t==="dark"?.2:.12,switchTrack:t==="dark"?.3:.38}}function kb(t){return t==="dark"?s5:[]}function u5(t){const{palette:r={mode:"light"},opacity:o,overlays:i,colorSpace:s,...c}=t,d=Bp({...r,colorSpace:s});return{palette:d,opacity:{...zb(d.mode),...o},overlays:i||kb(d.mode),...c}}function c5(t){return!!t[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!t[0].match(/sxConfig$/)||t[0]==="palette"&&!!t[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const f5=t=>[...[...Array(25)].map((r,o)=>`--${t?`${t}-`:""}overlays-${o}`),`--${t?`${t}-`:""}palette-AppBar-darkBg`,`--${t?`${t}-`:""}palette-AppBar-darkColor`],d5=t=>(r,o)=>{const i=t.rootSelector||":root",s=t.colorSchemeSelector;let c=s;if(s==="class"&&(c=".%s"),s==="data"&&(c="[data-%s]"),s?.startsWith("data-")&&!s.includes("%s")&&(c=`[${s}="%s"]`),t.defaultColorScheme===r){if(r==="dark"){const d={};return f5(t.cssVarPrefix).forEach(p=>{d[p]=o[p],delete o[p]}),c==="media"?{[i]:o,"@media (prefers-color-scheme: dark)":{[i]:d}}:c?{[c.replace("%s",r)]:d,[`${i}, ${c.replace("%s",r)}`]:o}:{[i]:{...o,...d}}}if(c&&c!=="media")return`${i}, ${c.replace("%s",String(r))}`}else if(r){if(c==="media")return{[`@media (prefers-color-scheme: ${String(r)})`]:{[i]:o}};if(c)return c.replace("%s",String(r))}return i};function p5(t,r){r.forEach(o=>{t[o]||(t[o]={})})}function te(t,r,o){!t[r]&&o&&(t[r]=o)}function pi(t){return typeof t!="string"||!t.startsWith("hsl")?t:bb(t)}function Ka(t,r){`${r}Channel`in t||(t[`${r}Channel`]=di(pi(t[r])))}function m5(t){return typeof t=="number"?`${t}px`:typeof t=="string"||typeof t=="function"||Array.isArray(t)?t:"8px"}const ya=t=>{try{return t()}catch{}},h5=(t="mui")=>MT(t);function Ud(t,r,o,i,s){if(!o)return;o=o===!0?{}:o;const c=s==="dark"?"dark":"light";if(!i){r[s]=u5({...o,palette:{mode:c,...o?.palette},colorSpace:t});return}const{palette:d,...p}=np({...i,palette:{mode:c,...o?.palette},colorSpace:t});return r[s]={...o,palette:d,opacity:{...zb(c),...o?.opacity},overlays:o?.overlays||kb(c)},p}function g5(t={},...r){const{colorSchemes:o={light:!0},defaultColorScheme:i,disableCssColorScheme:s=!1,cssVarPrefix:c="mui",nativeColor:d=!1,shouldSkipGeneratingVar:p=c5,colorSchemeSelector:m=o.light&&o.dark?"media":void 0,rootSelector:h=":root",...y}=t,v=Object.keys(o)[0],w=i||(o.light&&v!=="light"?"light":v),b=h5(c),{[w]:E,light:C,dark:M,...D}=o,L={...D};let O=E;if((w==="dark"&&!("dark"in o)||w==="light"&&!("light"in o))&&(O=!0),!O)throw new Error(Za(21,w));let R;d&&(R="oklch");const N=Ud(R,L,O,y,w);C&&!L.light&&Ud(R,L,C,void 0,"light"),M&&!L.dark&&Ud(R,L,M,void 0,"dark");let j={defaultColorScheme:w,...N,cssVarPrefix:c,colorSchemeSelector:m,rootSelector:h,getCssVar:b,colorSchemes:L,font:{...XT(N.typography),...N.font},spacing:m5(y.spacing)};Object.keys(j.colorSchemes).forEach(Q=>{const x=j.colorSchemes[Q].palette,H=W=>{const k=W.split("-"),I=k[1],J=k[2];return b(W,x[I][J])};x.mode==="light"&&(te(x.common,"background","#fff"),te(x.common,"onBackground","#000")),x.mode==="dark"&&(te(x.common,"background","#000"),te(x.common,"onBackground","#fff"));function X(W,k,I){if(R){let J;return W===Xr&&(J=`transparent ${((1-I)*100).toFixed(0)}%`),W===yt&&(J=`#000 ${(I*100).toFixed(0)}%`),W===vt&&(J=`#fff ${(I*100).toFixed(0)}%`),`color-mix(in ${R}, ${k}, ${J})`}return W(k,I)}if(p5(x,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),x.mode==="light"){te(x.Alert,"errorColor",X(yt,d?b("palette-error-light"):x.error.light,.6)),te(x.Alert,"infoColor",X(yt,d?b("palette-info-light"):x.info.light,.6)),te(x.Alert,"successColor",X(yt,d?b("palette-success-light"):x.success.light,.6)),te(x.Alert,"warningColor",X(yt,d?b("palette-warning-light"):x.warning.light,.6)),te(x.Alert,"errorFilledBg",H("palette-error-main")),te(x.Alert,"infoFilledBg",H("palette-info-main")),te(x.Alert,"successFilledBg",H("palette-success-main")),te(x.Alert,"warningFilledBg",H("palette-warning-main")),te(x.Alert,"errorFilledColor",ya(()=>x.getContrastText(x.error.main))),te(x.Alert,"infoFilledColor",ya(()=>x.getContrastText(x.info.main))),te(x.Alert,"successFilledColor",ya(()=>x.getContrastText(x.success.main))),te(x.Alert,"warningFilledColor",ya(()=>x.getContrastText(x.warning.main))),te(x.Alert,"errorStandardBg",X(vt,d?b("palette-error-light"):x.error.light,.9)),te(x.Alert,"infoStandardBg",X(vt,d?b("palette-info-light"):x.info.light,.9)),te(x.Alert,"successStandardBg",X(vt,d?b("palette-success-light"):x.success.light,.9)),te(x.Alert,"warningStandardBg",X(vt,d?b("palette-warning-light"):x.warning.light,.9)),te(x.Alert,"errorIconColor",H("palette-error-main")),te(x.Alert,"infoIconColor",H("palette-info-main")),te(x.Alert,"successIconColor",H("palette-success-main")),te(x.Alert,"warningIconColor",H("palette-warning-main")),te(x.AppBar,"defaultBg",H("palette-grey-100")),te(x.Avatar,"defaultBg",H("palette-grey-400")),te(x.Button,"inheritContainedBg",H("palette-grey-300")),te(x.Button,"inheritContainedHoverBg",H("palette-grey-A100")),te(x.Chip,"defaultBorder",H("palette-grey-400")),te(x.Chip,"defaultAvatarColor",H("palette-grey-700")),te(x.Chip,"defaultIconColor",H("palette-grey-700")),te(x.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),te(x.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),te(x.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),te(x.LinearProgress,"primaryBg",X(vt,d?b("palette-primary-main"):x.primary.main,.62)),te(x.LinearProgress,"secondaryBg",X(vt,d?b("palette-secondary-main"):x.secondary.main,.62)),te(x.LinearProgress,"errorBg",X(vt,d?b("palette-error-main"):x.error.main,.62)),te(x.LinearProgress,"infoBg",X(vt,d?b("palette-info-main"):x.info.main,.62)),te(x.LinearProgress,"successBg",X(vt,d?b("palette-success-main"):x.success.main,.62)),te(x.LinearProgress,"warningBg",X(vt,d?b("palette-warning-light"):x.warning.main,.62)),te(x.Skeleton,"bg",R?X(Xr,d?b("palette-text-primary"):x.text.primary,.11):`rgba(${H("palette-text-primaryChannel")} / 0.11)`),te(x.Slider,"primaryTrack",X(vt,d?b("palette-primary-main"):x.primary.main,.62)),te(x.Slider,"secondaryTrack",X(vt,d?b("palette-secondary-main"):x.secondary.main,.62)),te(x.Slider,"errorTrack",X(vt,d?b("palette-error-main"):x.error.main,.62)),te(x.Slider,"infoTrack",X(vt,d?b("palette-info-main"):x.info.main,.62)),te(x.Slider,"successTrack",X(vt,d?b("palette-success-main"):x.success.main,.62)),te(x.Slider,"warningTrack",X(vt,d?b("palette-warning-main"):x.warning.main,.62));const W=R?X(yt,d?b("palette-background-default"):x.background.default,.6825):eu(x.background.default,.8);te(x.SnackbarContent,"bg",W),te(x.SnackbarContent,"color",ya(()=>R?tp.text.primary:x.getContrastText(W))),te(x.SpeedDialAction,"fabHoverBg",eu(x.background.paper,.15)),te(x.StepConnector,"border",H("palette-grey-400")),te(x.StepContent,"border",H("palette-grey-400")),te(x.Switch,"defaultColor",H("palette-common-white")),te(x.Switch,"defaultDisabledColor",H("palette-grey-100")),te(x.Switch,"primaryDisabledColor",X(vt,d?b("palette-primary-main"):x.primary.main,.62)),te(x.Switch,"secondaryDisabledColor",X(vt,d?b("palette-secondary-main"):x.secondary.main,.62)),te(x.Switch,"errorDisabledColor",X(vt,d?b("palette-error-main"):x.error.main,.62)),te(x.Switch,"infoDisabledColor",X(vt,d?b("palette-info-main"):x.info.main,.62)),te(x.Switch,"successDisabledColor",X(vt,d?b("palette-success-main"):x.success.main,.62)),te(x.Switch,"warningDisabledColor",X(vt,d?b("palette-warning-main"):x.warning.main,.62)),te(x.TableCell,"border",X(vt,Xr(d?b("palette-divider"):x.divider,1),.88)),te(x.Tooltip,"bg",X(Xr,d?b("palette-grey-700"):x.grey[700],.92))}if(x.mode==="dark"){te(x.Alert,"errorColor",X(vt,d?b("palette-error-light"):x.error.light,.6)),te(x.Alert,"infoColor",X(vt,d?b("palette-info-light"):x.info.light,.6)),te(x.Alert,"successColor",X(vt,d?b("palette-success-light"):x.success.light,.6)),te(x.Alert,"warningColor",X(vt,d?b("palette-warning-light"):x.warning.light,.6)),te(x.Alert,"errorFilledBg",H("palette-error-dark")),te(x.Alert,"infoFilledBg",H("palette-info-dark")),te(x.Alert,"successFilledBg",H("palette-success-dark")),te(x.Alert,"warningFilledBg",H("palette-warning-dark")),te(x.Alert,"errorFilledColor",ya(()=>x.getContrastText(x.error.dark))),te(x.Alert,"infoFilledColor",ya(()=>x.getContrastText(x.info.dark))),te(x.Alert,"successFilledColor",ya(()=>x.getContrastText(x.success.dark))),te(x.Alert,"warningFilledColor",ya(()=>x.getContrastText(x.warning.dark))),te(x.Alert,"errorStandardBg",X(yt,d?b("palette-error-light"):x.error.light,.9)),te(x.Alert,"infoStandardBg",X(yt,d?b("palette-info-light"):x.info.light,.9)),te(x.Alert,"successStandardBg",X(yt,d?b("palette-success-light"):x.success.light,.9)),te(x.Alert,"warningStandardBg",X(yt,d?b("palette-warning-light"):x.warning.light,.9)),te(x.Alert,"errorIconColor",H("palette-error-main")),te(x.Alert,"infoIconColor",H("palette-info-main")),te(x.Alert,"successIconColor",H("palette-success-main")),te(x.Alert,"warningIconColor",H("palette-warning-main")),te(x.AppBar,"defaultBg",H("palette-grey-900")),te(x.AppBar,"darkBg",H("palette-background-paper")),te(x.AppBar,"darkColor",H("palette-text-primary")),te(x.Avatar,"defaultBg",H("palette-grey-600")),te(x.Button,"inheritContainedBg",H("palette-grey-800")),te(x.Button,"inheritContainedHoverBg",H("palette-grey-700")),te(x.Chip,"defaultBorder",H("palette-grey-700")),te(x.Chip,"defaultAvatarColor",H("palette-grey-300")),te(x.Chip,"defaultIconColor",H("palette-grey-300")),te(x.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),te(x.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),te(x.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),te(x.LinearProgress,"primaryBg",X(yt,d?b("palette-primary-main"):x.primary.main,.5)),te(x.LinearProgress,"secondaryBg",X(yt,d?b("palette-secondary-main"):x.secondary.main,.5)),te(x.LinearProgress,"errorBg",X(yt,d?b("palette-error-main"):x.error.main,.5)),te(x.LinearProgress,"infoBg",X(yt,d?b("palette-info-main"):x.info.main,.5)),te(x.LinearProgress,"successBg",X(yt,d?b("palette-success-main"):x.success.main,.5)),te(x.LinearProgress,"warningBg",X(yt,d?b("palette-warning-main"):x.warning.main,.5)),te(x.Skeleton,"bg",R?X(Xr,d?b("palette-text-primary"):x.text.primary,.13):`rgba(${H("palette-text-primaryChannel")} / 0.13)`),te(x.Slider,"primaryTrack",X(yt,d?b("palette-primary-main"):x.primary.main,.5)),te(x.Slider,"secondaryTrack",X(yt,d?b("palette-secondary-main"):x.secondary.main,.5)),te(x.Slider,"errorTrack",X(yt,d?b("palette-error-main"):x.error.main,.5)),te(x.Slider,"infoTrack",X(yt,d?b("palette-info-main"):x.info.main,.5)),te(x.Slider,"successTrack",X(yt,d?b("palette-success-main"):x.success.main,.5)),te(x.Slider,"warningTrack",X(yt,d?b("palette-warning-light"):x.warning.main,.5));const W=R?X(vt,d?b("palette-background-default"):x.background.default,.985):eu(x.background.default,.98);te(x.SnackbarContent,"bg",W),te(x.SnackbarContent,"color",ya(()=>R?Ab.text.primary:x.getContrastText(W))),te(x.SpeedDialAction,"fabHoverBg",eu(x.background.paper,.15)),te(x.StepConnector,"border",H("palette-grey-600")),te(x.StepContent,"border",H("palette-grey-600")),te(x.Switch,"defaultColor",H("palette-grey-300")),te(x.Switch,"defaultDisabledColor",H("palette-grey-600")),te(x.Switch,"primaryDisabledColor",X(yt,d?b("palette-primary-main"):x.primary.main,.55)),te(x.Switch,"secondaryDisabledColor",X(yt,d?b("palette-secondary-main"):x.secondary.main,.55)),te(x.Switch,"errorDisabledColor",X(yt,d?b("palette-error-main"):x.error.main,.55)),te(x.Switch,"infoDisabledColor",X(yt,d?b("palette-info-main"):x.info.main,.55)),te(x.Switch,"successDisabledColor",X(yt,d?b("palette-success-main"):x.success.main,.55)),te(x.Switch,"warningDisabledColor",X(yt,d?b("palette-warning-light"):x.warning.main,.55)),te(x.TableCell,"border",X(yt,Xr(d?b("palette-divider"):x.divider,1),.68)),te(x.Tooltip,"bg",X(Xr,d?b("palette-grey-700"):x.grey[700],.92))}d||(Ka(x.background,"default"),Ka(x.background,"paper"),Ka(x.common,"background"),Ka(x.common,"onBackground"),Ka(x,"divider")),Object.keys(x).forEach(W=>{const k=x[W];W!=="tonalOffset"&&!d&&k&&typeof k=="object"&&(k.main&&te(x[W],"mainChannel",di(pi(k.main))),k.light&&te(x[W],"lightChannel",di(pi(k.light))),k.dark&&te(x[W],"darkChannel",di(pi(k.dark))),k.contrastText&&te(x[W],"contrastTextChannel",di(pi(k.contrastText))),W==="text"&&(Ka(x[W],"primary"),Ka(x[W],"secondary")),W==="action"&&(k.active&&Ka(x[W],"active"),k.selected&&Ka(x[W],"selected")))})}),j=r.reduce((Q,x)=>an(Q,x),j);const $={prefix:c,disableCssColorScheme:s,shouldSkipGeneratingVar:p,getSelector:d5(j),enableContrastVars:d},{vars:P,generateThemeVars:Y,generateStyleSheets:q}=kT(j,$);return j.vars=P,Object.entries(j.colorSchemes[j.defaultColorScheme]).forEach(([Q,x])=>{j[Q]=x}),j.generateThemeVars=Y,j.generateStyleSheets=q,j.generateSpacing=function(){return ub(y.spacing,qu(this))},j.getColorSchemeSelector=NT(m),j.spacing=j.generateSpacing(),j.shouldSkipGeneratingVar=p,j.unstable_sxConfig={...$i,...y?.unstable_sxConfig},j.unstable_sx=function(x){return Rr({sx:x,theme:this})},j.toRuntimeSource=Ob,j}function U0(t,r,o){t.colorSchemes&&o&&(t.colorSchemes[r]={...o!==!0&&o,palette:Bp({...o===!0?{}:o.palette,mode:r})})}function nc(t={},...r){const{palette:o,cssVariables:i=!1,colorSchemes:s=o?void 0:{light:!0},defaultColorScheme:c=o?.mode,...d}=t,p=c||"light",m=s?.[p],h={...s,...o?{[p]:{...typeof m!="boolean"&&m,palette:o}}:void 0};if(i===!1){if(!("colorSchemes"in t))return np(t,...r);let y=o;"palette"in t||h[p]&&(h[p]!==!0?y=h[p].palette:p==="dark"&&(y={mode:"dark"}));const v=np({...t,palette:y},...r);return v.defaultColorScheme=p,v.colorSchemes=h,v.palette.mode==="light"&&(v.colorSchemes.light={...h.light!==!0&&h.light,palette:v.palette},U0(v,"dark",h.dark)),v.palette.mode==="dark"&&(v.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:v.palette},U0(v,"light",h.light)),v}return!o&&!("light"in h)&&p==="light"&&(h.light=!0),g5({...d,colorSchemes:h,defaultColorScheme:p,...typeof i!="boolean"&&i},...r)}const Lp=nc();function An(){const t=Zu(Lp);return t[ua]||t}function ac(t){return t!=="ownerState"&&t!=="theme"&&t!=="sx"&&t!=="as"}const fa=t=>ac(t)&&t!=="classes",he=hb({themeId:ua,defaultTheme:Lp,rootShouldForwardProp:fa});function y5({theme:t,...r}){const o=ua in t?t[ua]:void 0;return A.jsx(Tb,{...r,themeId:o?ua:void 0,theme:o||t})}const tu={colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:v5}=RT({themeId:ua,theme:()=>nc({cssVariables:!0}),colorSchemeStorageKey:tu.colorSchemeStorageKey,modeStorageKey:tu.modeStorageKey,defaultColorScheme:{light:tu.defaultLightColorScheme,dark:tu.defaultDarkColorScheme},resolveTheme:t=>{const r={...t,typography:Mb(t.palette,t.typography)};return r.unstable_sx=function(i){return Rr({sx:i,theme:this})},r}}),b5=v5;function S5({theme:t,...r}){const o=S.useMemo(()=>{if(typeof t=="function")return t;const i=ua in t?t[ua]:t;return"colorSchemes"in i?null:"vars"in i?t:{...t,vars:null}},[t]);return o?A.jsx(y5,{theme:o,...r}):A.jsx(b5,{theme:t,...r})}function P0(...t){return t.reduce((r,o)=>o==null?r:function(...s){r.apply(this,s),o.apply(this,s)},()=>{})}function x5(t){return A.jsx(cb,{...t,defaultTheme:Lp,themeId:ua})}function _p(t){return function(o){return A.jsx(x5,{styles:typeof t=="function"?i=>t({theme:i,...o}):t})}}function C5(){return zp}const Qe=bT;function lt(t){return hT(t)}function T5(t){return at("MuiSvgIcon",t)}rt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const E5=t=>{const{color:r,fontSize:o,classes:i}=t,s={root:["root",r!=="inherit"&&`color${ue(r)}`,`fontSize${ue(o)}`]};return ot(s,T5,i)},w5=he("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.color!=="inherit"&&r[`color${ue(o.color)}`],r[`fontSize${ue(o.fontSize)}`]]}})(Qe(({theme:t})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:t.transitions?.create?.("fill",{duration:(t.vars??t).transitions?.duration?.shorter}),variants:[{props:r=>!r.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:t.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:t.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:t.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((t.vars??t).palette).filter(([,r])=>r&&r.main).map(([r])=>({props:{color:r},style:{color:(t.vars??t).palette?.[r]?.main}})),{props:{color:"action"},style:{color:(t.vars??t).palette?.action?.active}},{props:{color:"disabled"},style:{color:(t.vars??t).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),rp=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiSvgIcon"}),{children:s,className:c,color:d="inherit",component:p="svg",fontSize:m="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:v,viewBox:w="0 0 24 24",...b}=i,E=S.isValidElement(s)&&s.type==="svg",C={...i,color:d,component:p,fontSize:m,instanceFontSize:r.fontSize,inheritViewBox:y,viewBox:w,hasSvgAsChild:E},M={};y||(M.viewBox=w);const D=E5(C);return A.jsxs(w5,{as:p,className:Oe(D.root,c),focusable:"false",color:h,"aria-hidden":v?void 0:!0,role:v?"img":void 0,ref:o,...M,...b,...E&&s.props,ownerState:C,children:[E?s.props.children:s,v?A.jsx("title",{children:v}):null]})});rp.muiName="SvgIcon";function Wt(t,r){function o(i,s){return A.jsx(rp,{"data-testid":void 0,ref:s,...i,children:t})}return o.muiName=rp.muiName,S.memo(S.forwardRef(o))}function Nb(t,r=166){let o;function i(...s){const c=()=>{t.apply(this,s)};clearTimeout(o),o=setTimeout(c,r)}return i.clear=()=>{clearTimeout(o)},i}function Kt(t){return t&&t.ownerDocument||document}function Wa(t){return Kt(t).defaultView||window}function V0(t,r){typeof t=="function"?t(r):t&&(t.current=r)}function wu(t){const{controlled:r,default:o,name:i,state:s="value"}=t,{current:c}=S.useRef(r!==void 0),[d,p]=S.useState(o),m=c?r:d,h=S.useCallback(y=>{c||p(y)},[]);return[m,h]}function Jn(t){const r=S.useRef(t);return wn(()=>{r.current=t}),S.useRef((...o)=>(0,r.current)(...o)).current}function Zt(...t){const r=S.useRef(void 0),o=S.useCallback(i=>{const s=t.map(c=>{if(c==null)return null;if(typeof c=="function"){const d=c,p=d(i);return typeof p=="function"?p:()=>{d(null)}}return c.current=i,()=>{c.current=null}});return()=>{s.forEach(c=>c?.())}},t);return S.useMemo(()=>t.every(i=>i==null)?null:i=>{r.current&&(r.current(),r.current=void 0),i!=null&&(r.current=o(i))},t)}function A5(t,r){const o=t.charCodeAt(2);return t[0]==="o"&&t[1]==="n"&&o>=65&&o<=90&&typeof r=="function"}function R5(t,r){if(!t)return r;function o(d,p){const m={};return Object.keys(p).forEach(h=>{A5(h,p[h])&&typeof d[h]=="function"&&(m[h]=(...y)=>{d[h](...y),p[h](...y)})}),m}if(typeof t=="function"||typeof r=="function")return d=>{const p=typeof r=="function"?r(d):r,m=typeof t=="function"?t({...d,...p}):t,h=Oe(d?.className,p?.className,m?.className),y=o(m,p);return{...p,...m,...y,...!!h&&{className:h},...p?.style&&m?.style&&{style:{...p.style,...m.style}},...p?.sx&&m?.sx&&{sx:[...Array.isArray(p.sx)?p.sx:[p.sx],...Array.isArray(m.sx)?m.sx:[m.sx]]}}};const i=r,s=o(t,i),c=Oe(i?.className,t?.className);return{...r,...t,...s,...!!c&&{className:c},...i?.style&&t?.style&&{style:{...i.style,...t.style}},...i?.sx&&t?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(t.sx)?t.sx:[t.sx]]}}}function Db(t,r){if(t==null)return{};var o={};for(var i in t)if({}.hasOwnProperty.call(t,i)){if(r.indexOf(i)!==-1)continue;o[i]=t[i]}return o}function op(t,r){return op=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,i){return o.__proto__=i,o},op(t,r)}function jb(t,r){t.prototype=Object.create(r.prototype),t.prototype.constructor=t,op(t,r)}var Bb=qv();const nu=Vv(Bb),q0={disabled:!1},Au=Ta.createContext(null);var M5=function(r){return r.scrollTop},mi="unmounted",Qr="exited",Zr="entering",Zo="entered",lp="exiting",Ra=(function(t){jb(r,t);function r(i,s){var c;c=t.call(this,i,s)||this;var d=s,p=d&&!d.isMounting?i.enter:i.appear,m;return c.appearStatus=null,i.in?p?(m=Qr,c.appearStatus=Zr):m=Zo:i.unmountOnExit||i.mountOnEnter?m=mi:m=Qr,c.state={status:m},c.nextCallback=null,c}r.getDerivedStateFromProps=function(s,c){var d=s.in;return d&&c.status===mi?{status:Qr}:null};var o=r.prototype;return o.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},o.componentDidUpdate=function(s){var c=null;if(s!==this.props){var d=this.state.status;this.props.in?d!==Zr&&d!==Zo&&(c=Zr):(d===Zr||d===Zo)&&(c=lp)}this.updateStatus(!1,c)},o.componentWillUnmount=function(){this.cancelNextCallback()},o.getTimeouts=function(){var s=this.props.timeout,c,d,p;return c=d=p=s,s!=null&&typeof s!="number"&&(c=s.exit,d=s.enter,p=s.appear!==void 0?s.appear:d),{exit:c,enter:d,appear:p}},o.updateStatus=function(s,c){if(s===void 0&&(s=!1),c!==null)if(this.cancelNextCallback(),c===Zr){if(this.props.unmountOnExit||this.props.mountOnEnter){var d=this.props.nodeRef?this.props.nodeRef.current:nu.findDOMNode(this);d&&M5(d)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Qr&&this.setState({status:mi})},o.performEnter=function(s){var c=this,d=this.props.enter,p=this.context?this.context.isMounting:s,m=this.props.nodeRef?[p]:[nu.findDOMNode(this),p],h=m[0],y=m[1],v=this.getTimeouts(),w=p?v.appear:v.enter;if(!s&&!d||q0.disabled){this.safeSetState({status:Zo},function(){c.props.onEntered(h)});return}this.props.onEnter(h,y),this.safeSetState({status:Zr},function(){c.props.onEntering(h,y),c.onTransitionEnd(w,function(){c.safeSetState({status:Zo},function(){c.props.onEntered(h,y)})})})},o.performExit=function(){var s=this,c=this.props.exit,d=this.getTimeouts(),p=this.props.nodeRef?void 0:nu.findDOMNode(this);if(!c||q0.disabled){this.safeSetState({status:Qr},function(){s.props.onExited(p)});return}this.props.onExit(p),this.safeSetState({status:lp},function(){s.props.onExiting(p),s.onTransitionEnd(d.exit,function(){s.safeSetState({status:Qr},function(){s.props.onExited(p)})})})},o.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},o.safeSetState=function(s,c){c=this.setNextCallback(c),this.setState(s,c)},o.setNextCallback=function(s){var c=this,d=!0;return this.nextCallback=function(p){d&&(d=!1,c.nextCallback=null,s(p))},this.nextCallback.cancel=function(){d=!1},this.nextCallback},o.onTransitionEnd=function(s,c){this.setNextCallback(c);var d=this.props.nodeRef?this.props.nodeRef.current:nu.findDOMNode(this),p=s==null&&!this.props.addEndListener;if(!d||p){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[d,this.nextCallback],h=m[0],y=m[1];this.props.addEndListener(h,y)}s!=null&&setTimeout(this.nextCallback,s)},o.render=function(){var s=this.state.status;if(s===mi)return null;var c=this.props,d=c.children;c.in,c.mountOnEnter,c.unmountOnExit,c.appear,c.enter,c.exit,c.timeout,c.addEndListener,c.onEnter,c.onEntering,c.onEntered,c.onExit,c.onExiting,c.onExited,c.nodeRef;var p=Db(c,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ta.createElement(Au.Provider,{value:null},typeof d=="function"?d(s,p):Ta.cloneElement(Ta.Children.only(d),p))},r})(Ta.Component);Ra.contextType=Au;Ra.propTypes={};function Xo(){}Ra.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Xo,onEntering:Xo,onEntered:Xo,onExit:Xo,onExiting:Xo,onExited:Xo};Ra.UNMOUNTED=mi;Ra.EXITED=Qr;Ra.ENTERING=Zr;Ra.ENTERED=Zo;Ra.EXITING=lp;function O5(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $p(t,r){var o=function(c){return r&&S.isValidElement(c)?r(c):c},i=Object.create(null);return t&&S.Children.map(t,function(s){return s}).forEach(function(s){i[s.key]=o(s)}),i}function z5(t,r){t=t||{},r=r||{};function o(y){return y in r?r[y]:t[y]}var i=Object.create(null),s=[];for(var c in t)c in r?s.length&&(i[c]=s,s=[]):s.push(c);var d,p={};for(var m in r){if(i[m])for(d=0;d{this.currentId=null,o()},r)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Wo(){const t=Lb(rc.create).current;return L5(t.disposeEffect),t}const _b=t=>t.scrollTop;function Zn(t,r){return o=>{if(r){const i=t.current;o===void 0?r(i):r(i,o)}}}function $b(t,r,o,i,s,c){const d=t==="exited"&&!r?i:o[t]||o.exited;return s||c?{...d,...s,...c}:d}function Ru(t,r){const{timeout:o,easing:i,style:s={}}=t;return{duration:s.transitionDuration??(typeof o=="number"?o:o[r.mode]||0),easing:s.transitionTimingFunction??(typeof i=="object"?i[r.mode]:i),delay:s.transitionDelay}}function Ar(t){return typeof t=="string"}function Hb(t,r,o){return t===void 0||Ar(t)?r:{...r,ownerState:{...r.ownerState,...o}}}function Ub(t,r,o){return typeof t=="function"?t(r,o):t}function yi(t,r=[]){if(t===void 0)return{};const o={};return Object.keys(t).filter(i=>i.match(/^on[A-Z]/)&&typeof t[i]=="function"&&!r.includes(i)).forEach(i=>{o[i]=t[i]}),o}function I0(t){if(t===void 0)return{};const r={};return Object.keys(t).filter(o=>!(o.match(/^on[A-Z]/)&&typeof t[o]=="function")).forEach(o=>{r[o]=t[o]}),r}function Pb(t){const{getSlotProps:r,additionalProps:o,externalSlotProps:i,externalForwardedProps:s,className:c}=t;if(!r){const b=Oe(o?.className,c,s?.className,i?.className),E={...o?.style,...s?.style,...i?.style},C={...o,...s,...i};return b.length>0&&(C.className=b),Object.keys(E).length>0&&(C.style=E),{props:C,internalRef:void 0}}const d=yi({...s,...i}),p=I0(i),m=I0(s),h=r(d),y=Oe(h?.className,o?.className,c,s?.className,i?.className),v={...h?.style,...o?.style,...s?.style,...i?.style},w={...h,...o,...m,...p};return y.length>0&&(w.className=y),Object.keys(v).length>0&&(w.style=v),{props:w,internalRef:h.ref}}function Tt(t,r){const{className:o,elementType:i,ownerState:s,externalForwardedProps:c,internalForwardedProps:d,shouldForwardComponentProp:p=!1,...m}=r,{component:h,slots:y={[t]:void 0},slotProps:v={[t]:void 0},...w}=c,b=y[t]||i,E=Ub(v[t],s),{props:{component:C,...M},internalRef:D}=Pb({className:o,...m,externalForwardedProps:t==="root"?w:void 0,externalSlotProps:E}),L=Zt(D,E?.ref,r.ref),O=t==="root"?C||h:C,R=Hb(b,{...t==="root"&&!h&&!y[t]&&d,...t!=="root"&&!y[t]&&d,...M,...O&&!p&&{as:O},...O&&p&&{component:O},ref:L},s);return[b,R]}function _5(t){return at("MuiPaper",t)}rt("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const $5=t=>{const{square:r,elevation:o,variant:i,classes:s}=t,c={root:["root",i,!r&&"rounded",i==="elevation"&&`elevation${o}`]};return ot(c,_5,s)},H5=he("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[o.variant],!o.square&&r.rounded,o.variant==="elevation"&&r[`elevation${o.elevation}`]]}})(Qe(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow"),variants:[{props:({ownerState:r})=>!r.square,style:{borderRadius:t.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(t.vars||t).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ma=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiPaper"}),s=An(),{className:c,component:d="div",elevation:p=1,square:m=!1,variant:h="elevation",...y}=i,v={...i,component:d,elevation:p,square:m,variant:h},w=$5(v);return A.jsx(H5,{as:d,ownerState:v,className:Oe(w.root,c),ref:o,...y,style:{...h==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[p],...s.vars&&{"--Paper-overlay":s.vars.overlays?.[p]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Eu("#fff",ap(p))}, ${Eu("#fff",ap(p))})`}},...y.style}})});function al(t){try{return t.matches(":focus-visible")}catch{}return!1}class Mu{static create(){return new Mu}static use(){const r=Lb(Mu.create).current,[o,i]=S.useState(!1);return r.shouldMount=o,r.setShouldMount=i,S.useEffect(r.mountEffect,[o]),r}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=P5(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...r){this.mount().then(()=>this.ref.current?.start(...r))}stop(...r){this.mount().then(()=>this.ref.current?.stop(...r))}pulsate(...r){this.mount().then(()=>this.ref.current?.pulsate(...r))}}function U5(){return Mu.use()}function P5(){let t,r;const o=new Promise((i,s)=>{t=i,r=s});return o.resolve=t,o.reject=r,o}function V5(t){const{className:r,classes:o,pulsate:i=!1,rippleX:s,rippleY:c,rippleSize:d,in:p,onExited:m,timeout:h}=t,[y,v]=S.useState(!1),w=Oe(r,o.ripple,o.rippleVisible,i&&o.ripplePulsate),b={width:d,height:d,top:-(d/2)+c,left:-(d/2)+s},E=Oe(o.child,y&&o.childLeaving,i&&o.childPulsate);return!p&&!y&&v(!0),S.useEffect(()=>{if(!p&&m!=null){const C=setTimeout(m,h);return()=>{clearTimeout(C)}}},[m,p,h]),A.jsx("span",{className:w,style:b,children:A.jsx("span",{className:E})})}const Kn=rt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),ip=550,q5=80,Y5=Li` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`,I5=Li` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`,G5=Li` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`,X5=he("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),F5=he(V5,{name:"MuiTouchRipple",slot:"Ripple"})` - opacity: 0; - position: absolute; - - &.${Kn.rippleVisible} { - opacity: 0.3; - transform: scale(1); - animation-name: ${Y5}; - animation-duration: ${ip}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - &.${Kn.ripplePulsate} { - animation-duration: ${({theme:t})=>t.transitions.duration.shorter}ms; - } - - & .${Kn.child} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${Kn.childLeaving} { - opacity: 0; - animation-name: ${I5}; - animation-duration: ${ip}ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - } - - & .${Kn.childPulsate} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${G5}; - animation-duration: 2500ms; - animation-timing-function: ${({theme:t})=>t.transitions.easing.easeInOut}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`,K5=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiTouchRipple"}),{center:s=!1,classes:c={},className:d,...p}=i,[m,h]=S.useState([]),y=S.useRef(0),v=S.useRef(null);S.useEffect(()=>{v.current&&(v.current(),v.current=null)},[m]);const w=S.useRef(!1),b=Wo(),E=S.useRef(null),C=S.useRef(null),M=S.useCallback(R=>{const{pulsate:N,rippleX:j,rippleY:$,rippleSize:P,cb:Y}=R;h(q=>[...q,A.jsx(F5,{classes:{ripple:Oe(c.ripple,Kn.ripple),rippleVisible:Oe(c.rippleVisible,Kn.rippleVisible),ripplePulsate:Oe(c.ripplePulsate,Kn.ripplePulsate),child:Oe(c.child,Kn.child),childLeaving:Oe(c.childLeaving,Kn.childLeaving),childPulsate:Oe(c.childPulsate,Kn.childPulsate)},timeout:ip,pulsate:N,rippleX:j,rippleY:$,rippleSize:P},y.current)]),y.current+=1,v.current=Y},[c]),D=S.useCallback((R={},N={},j=()=>{})=>{const{pulsate:$=!1,center:P=s||N.pulsate,fakeElement:Y=!1}=N;if(R?.type==="mousedown"&&w.current){w.current=!1;return}R?.type==="touchstart"&&(w.current=!0);const q=Y?null:C.current,Q=q?q.getBoundingClientRect():{width:0,height:0,left:0,top:0};let x,H,X;if(P||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)x=Math.round(Q.width/2),H=Math.round(Q.height/2);else{const{clientX:W,clientY:k}=R.touches&&R.touches.length>0?R.touches[0]:R;x=Math.round(W-Q.left),H=Math.round(k-Q.top)}if(P)X=Math.sqrt((2*Q.width**2+Q.height**2)/3),X%2===0&&(X+=1);else{const W=Math.max(Math.abs((q?q.clientWidth:0)-x),x)*2+2,k=Math.max(Math.abs((q?q.clientHeight:0)-H),H)*2+2;X=Math.sqrt(W**2+k**2)}R?.touches?E.current===null&&(E.current=()=>{M({pulsate:$,rippleX:x,rippleY:H,rippleSize:X,cb:j})},b.start(q5,()=>{E.current&&(E.current(),E.current=null)})):M({pulsate:$,rippleX:x,rippleY:H,rippleSize:X,cb:j})},[s,M,b]),L=S.useCallback(()=>{D({},{pulsate:!0})},[D]),O=S.useCallback((R,N)=>{if(b.clear(),R?.type==="touchend"&&E.current){E.current(),E.current=null,b.start(0,()=>{O(R,N)});return}E.current=null,h(j=>j.length>0?j.slice(1):j),v.current=N},[b]);return S.useImperativeHandle(o,()=>({pulsate:L,start:D,stop:O}),[L,D,O]),A.jsx(X5,{className:Oe(Kn.root,c.root,d),ref:C,...p,children:A.jsx(Hp,{component:null,exit:!0,children:m})})});function Q5(t){return at("MuiButtonBase",t)}const Z5=rt("MuiButtonBase",["root","disabled","focusVisible"]),W5=t=>{const{disabled:r,focusVisible:o,focusVisibleClassName:i,classes:s}=t,d=ot({root:["root",r&&"disabled",o&&"focusVisible"]},Q5,s);return o&&i&&(d.root+=` ${i}`),d},J5=he("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Z5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zi=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiButtonBase"}),{action:s,centerRipple:c=!1,children:d,className:p,component:m="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:v=!1,focusRipple:w=!1,focusVisibleClassName:b,LinkComponent:E="a",onBlur:C,onClick:M,onContextMenu:D,onDragLeave:L,onFocus:O,onFocusVisible:R,onKeyDown:N,onKeyUp:j,onMouseDown:$,onMouseLeave:P,onMouseUp:Y,onTouchEnd:q,onTouchMove:Q,onTouchStart:x,tabIndex:H=0,TouchRippleProps:X,touchRippleRef:W,type:k,...I}=i,J=S.useRef(null),ae=U5(),pe=Zt(ae.ref,W),[z,V]=S.useState(!1);h&&z&&V(!1),S.useImperativeHandle(s,()=>({focusVisible:()=>{V(!0),J.current.focus()}}),[]);const ne=ae.shouldMount&&!y&&!h;S.useEffect(()=>{z&&w&&!y&&ae.pulsate()},[y,w,z,ae]);const le=Qa(ae,"start",$,v),ce=Qa(ae,"stop",D,v),se=Qa(ae,"stop",L,v),de=Qa(ae,"stop",Y,v),ze=Qa(ae,"stop",ge=>{z&&ge.preventDefault(),P&&P(ge)},v),ye=Qa(ae,"start",x,v),xe=Qa(ae,"stop",q,v),Ae=Qa(ae,"stop",Q,v),Re=Qa(ae,"stop",ge=>{al(ge.target)||V(!1),C&&C(ge)},!1),Le=Jn(ge=>{J.current||(J.current=ge.currentTarget),al(ge.target)&&(V(!0),R&&R(ge)),O&&O(ge)}),be=()=>{const ge=J.current;return ge?ge.tagName==="BUTTON"?!1:!(ge.tagName==="A"&&ge.href):m&&m!=="button"},$e=Jn(ge=>{w&&!ge.repeat&&z&&ge.key===" "&&ae.stop(ge,()=>{ae.start(ge)}),ge.target===ge.currentTarget&&be()&&ge.key===" "&&ge.preventDefault(),N&&N(ge),ge.target===ge.currentTarget&&be()&&ge.key==="Enter"&&!h&&(ge.preventDefault(),M&&M(ge))}),Ze=Jn(ge=>{w&&ge.key===" "&&z&&!ge.defaultPrevented&&ae.stop(ge,()=>{ae.pulsate(ge)}),j&&j(ge),M&&ge.target===ge.currentTarget&&be()&&ge.key===" "&&!ge.defaultPrevented&&!h&&M(ge)});let De=m;De==="button"&&(I.href||I.to)&&(De=E);const Pe={};if(De==="button"){const ge=!!I.formAction;Pe.type=k===void 0&&!ge?"button":k,Pe.disabled=h}else!I.href&&!I.to&&(Pe.role="button"),h&&(Pe["aria-disabled"]=h);const Ie=Zt(o,J),We={...i,centerRipple:c,component:m,disabled:h,disableRipple:y,disableTouchRipple:v,focusRipple:w,tabIndex:H,focusVisible:z},Ve=W5(We);return A.jsxs(J5,{as:De,className:Oe(Ve.root,p),ownerState:We,onBlur:Re,onClick:M,onContextMenu:ce,onFocus:Le,onKeyDown:$e,onKeyUp:Ze,onMouseDown:le,onMouseLeave:ze,onMouseUp:de,onDragLeave:se,onTouchEnd:xe,onTouchMove:Ae,onTouchStart:ye,ref:Ie,tabIndex:h?-1:H,type:k,...Pe,...I,children:[d,ne?A.jsx(K5,{ref:pe,center:c,...X}):null]})});function Qa(t,r,o,i=!1){return Jn(s=>(o&&o(s),i||t[r](s),!0))}function eE(t){return typeof t.main=="string"}function tE(t,r=[]){if(!eE(t))return!1;for(const o of r)if(!t.hasOwnProperty(o)||typeof t[o]!="string")return!1;return!0}function Ut(t=[]){return([,r])=>r&&tE(r,t)}function nE(t){return at("MuiAlert",t)}const G0=rt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function aE(t){return at("MuiCircularProgress",t)}rt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","track","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const sa=44,sp=Li` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`,up=Li` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: -126px; - } -`,rE=typeof sp!="string"?Ap` - animation: ${sp} 1.4s linear infinite; - `:null,oE=typeof up!="string"?Ap` - animation: ${up} 1.4s ease-in-out infinite; - `:null,lE=t=>{const{classes:r,variant:o,color:i,disableShrink:s}=t,c={root:["root",o,`color${ue(i)}`],svg:["svg"],track:["track"],circle:["circle",`circle${ue(o)}`,s&&"circleDisableShrink"]};return ot(c,aE,r)},iE=he("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[o.variant],r[`color${ue(o.color)}`]]}})(Qe(({theme:t})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("transform")}},{props:{variant:"indeterminate"},style:rE||{animation:`${sp} 1.4s linear infinite`}},...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}}))]}))),sE=he("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),uE=he("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.circle,r[`circle${ue(o.variant)}`],o.disableShrink&&r.circleDisableShrink]}})(Qe(({theme:t})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:t.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:r})=>r.variant==="indeterminate"&&!r.disableShrink,style:oE||{animation:`${up} 1.4s ease-in-out infinite`}}]}))),cE=he("circle",{name:"MuiCircularProgress",slot:"Track"})(Qe(({theme:t})=>({stroke:"currentColor",opacity:(t.vars||t).palette.action.activatedOpacity}))),Vb=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiCircularProgress"}),{className:s,color:c="primary",disableShrink:d=!1,enableTrackSlot:p=!1,size:m=40,style:h,thickness:y=3.6,value:v=0,variant:w="indeterminate",...b}=i,E={...i,color:c,disableShrink:d,size:m,thickness:y,value:v,variant:w,enableTrackSlot:p},C=lE(E),M={},D={},L={};if(w==="determinate"){const O=2*Math.PI*((sa-y)/2);M.strokeDasharray=O.toFixed(3),L["aria-valuenow"]=Math.round(v),M.strokeDashoffset=`${((100-v)/100*O).toFixed(3)}px`,D.transform="rotate(-90deg)"}return A.jsx(iE,{className:Oe(C.root,s),style:{width:m,height:m,...D,...h},ownerState:E,ref:o,role:"progressbar",...L,...b,children:A.jsxs(sE,{className:C.svg,ownerState:E,viewBox:`${sa/2} ${sa/2} ${sa} ${sa}`,children:[p?A.jsx(cE,{className:C.track,ownerState:E,cx:sa,cy:sa,r:(sa-y)/2,fill:"none",strokeWidth:y,"aria-hidden":"true"}):null,A.jsx(uE,{className:C.circle,style:M,ownerState:E,cx:sa,cy:sa,r:(sa-y)/2,fill:"none",strokeWidth:y})]})})});function fE(t){return at("MuiIconButton",t)}const X0=rt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),dE=t=>{const{classes:r,disabled:o,color:i,edge:s,size:c,loading:d}=t,p={root:["root",d&&"loading",o&&"disabled",i!=="default"&&`color${ue(i)}`,s&&`edge${ue(s)}`,`size${ue(c)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ot(p,fE,r)},pE=he(zi,{name:"MuiIconButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.loading&&r.loading,o.color!=="default"&&r[`color${ue(o.color)}`],o.edge&&r[`edge${ue(o.edge)}`],r[`size${ue(o.size)}`]]}})(Qe(({theme:t})=>({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),variants:[{props:r=>!r.disableRipple,style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette.action.active,(t.vars||t).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Qe(({theme:t})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{"--IconButton-hoverBg":t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:t.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:t.typography.pxToRem(28)}}],[`&.${X0.disabled}`]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled},[`&.${X0.loading}`]:{color:"transparent"}}))),mE=he("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(t.vars||t).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),qb=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiIconButton"}),{edge:s=!1,children:c,className:d,color:p="default",disabled:m=!1,disableFocusRipple:h=!1,size:y="medium",id:v,loading:w=null,loadingIndicator:b,...E}=i,C=cl(v),M=b??A.jsx(Vb,{"aria-labelledby":C,color:"inherit",size:16}),D={...i,edge:s,color:p,disabled:m,disableFocusRipple:h,loading:w,loadingIndicator:M,size:y},L=dE(D);return A.jsxs(pE,{id:w?C:v,className:Oe(L.root,d),centerRipple:!0,focusRipple:!h,disabled:m||w,ref:o,...E,ownerState:D,children:[typeof w=="boolean"&&A.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:A.jsx(mE,{className:L.loadingIndicator,ownerState:D,children:w&&M})}),c]})}),hE=Wt(A.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),gE=Wt(A.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),yE=Wt(A.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),vE=Wt(A.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),bE=Wt(A.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),SE=t=>{const{variant:r,color:o,severity:i,classes:s}=t,c={root:["root",`color${ue(o||i)}`,`${r}${ue(o||i)}`,`${r}`],icon:["icon"],message:["message"],action:["action"]};return ot(c,nE,s)},xE=he(Ma,{name:"MuiAlert",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[o.variant],r[`${o.variant}${ue(o.color||o.severity)}`]]}})(Qe(({theme:t})=>{const r=t.palette.mode==="light"?t.darken:t.lighten,o=t.palette.mode==="light"?t.lighten:t.darken;return{...t.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(t.palette).filter(Ut(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"standard"},style:{color:t.vars?t.vars.palette.Alert[`${i}Color`]:r(t.palette[i].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[`${i}StandardBg`]:o(t.palette[i].light,.9),[`& .${G0.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}}})),...Object.entries(t.palette).filter(Ut(["light"])).map(([i])=>({props:{colorSeverity:i,variant:"outlined"},style:{color:t.vars?t.vars.palette.Alert[`${i}Color`]:r(t.palette[i].light,.6),border:`1px solid ${(t.vars||t).palette[i].light}`,[`& .${G0.icon}`]:t.vars?{color:t.vars.palette.Alert[`${i}IconColor`]}:{color:t.palette[i].main}}})),...Object.entries(t.palette).filter(Ut(["dark"])).map(([i])=>({props:{colorSeverity:i,variant:"filled"},style:{fontWeight:t.typography.fontWeightMedium,...t.vars?{color:t.vars.palette.Alert[`${i}FilledColor`],backgroundColor:t.vars.palette.Alert[`${i}FilledBg`]}:{backgroundColor:t.palette.mode==="dark"?t.palette[i].dark:t.palette[i].main,color:t.palette.getContrastText(t.palette[i].main)}}}))]}})),CE=he("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),TE=he("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),EE=he("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),F0={success:A.jsx(hE,{fontSize:"inherit"}),warning:A.jsx(gE,{fontSize:"inherit"}),error:A.jsx(yE,{fontSize:"inherit"}),info:A.jsx(vE,{fontSize:"inherit"})},wE=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiAlert"}),{action:s,children:c,className:d,closeText:p="Close",color:m,components:h={},componentsProps:y={},icon:v,iconMapping:w=F0,onClose:b,role:E="alert",severity:C="success",slotProps:M={},slots:D={},variant:L="standard",...O}=i,R={...i,color:m,severity:C,variant:L,colorSeverity:m||C},N=SE(R),j={slots:{closeButton:h.CloseButton,closeIcon:h.CloseIcon,...D},slotProps:{...y,...M}},[$,P]=Tt("root",{ref:o,shouldForwardComponentProp:!0,className:Oe(N.root,d),elementType:xE,externalForwardedProps:{...j,...O},ownerState:R,additionalProps:{role:E,elevation:0}}),[Y,q]=Tt("icon",{className:N.icon,elementType:CE,externalForwardedProps:j,ownerState:R}),[Q,x]=Tt("message",{className:N.message,elementType:TE,externalForwardedProps:j,ownerState:R}),[H,X]=Tt("action",{className:N.action,elementType:EE,externalForwardedProps:j,ownerState:R}),[W,k]=Tt("closeButton",{elementType:qb,externalForwardedProps:j,ownerState:R}),[I,J]=Tt("closeIcon",{elementType:bE,externalForwardedProps:j,ownerState:R});return A.jsxs($,{...P,children:[v!==!1?A.jsx(Y,{...q,children:v||w[C]||F0[C]}):null,A.jsx(Q,{...x,children:c}),s!=null?A.jsx(H,{...X,children:s}):null,s==null&&b?A.jsx(H,{...X,children:A.jsx(W,{size:"small","aria-label":p,title:p,color:"inherit",onClick:b,...k,children:A.jsx(I,{fontSize:"small",...J})})}):null]})});function AE(t){return at("MuiTypography",t)}rt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const RE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},ME=C5(),OE=t=>{const{align:r,gutterBottom:o,noWrap:i,paragraph:s,variant:c,classes:d}=t,p={root:["root",c,t.align!=="inherit"&&`align${ue(r)}`,o&&"gutterBottom",i&&"noWrap",s&&"paragraph"]};return ot(p,AE,d)},zE=he("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.variant&&r[o.variant],o.align!=="inherit"&&r[`align${ue(o.align)}`],o.noWrap&&r.noWrap,o.gutterBottom&&r.gutterBottom,o.paragraph&&r.paragraph]}})(Qe(({theme:t})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(t.typography).filter(([r,o])=>r!=="inherit"&&o&&typeof o=="object").map(([r,o])=>({props:{variant:r},style:o})),...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),...Object.entries(t.palette?.text||{}).filter(([,r])=>typeof r=="string").map(([r])=>({props:{color:`text${ue(r)}`},style:{color:(t.vars||t).palette.text[r]}})),{props:({ownerState:r})=>r.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:r})=>r.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:r})=>r.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:r})=>r.paragraph,style:{marginBottom:16}}]}))),K0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Qt=S.forwardRef(function(r,o){const{color:i,...s}=lt({props:r,name:"MuiTypography"}),c=!RE[i],d=ME({...s,...c&&{color:i}}),{align:p="inherit",className:m,component:h,gutterBottom:y=!1,noWrap:v=!1,paragraph:w=!1,variant:b="body1",variantMapping:E=K0,...C}=d,M={...d,align:p,color:i,className:m,component:h,gutterBottom:y,noWrap:v,paragraph:w,variant:b,variantMapping:E},D=h||(w?"p":E[b]||K0[b])||"span",L=OE(M);return A.jsx(zE,{as:D,ref:o,className:Oe(L.root,m),...C,ownerState:M,style:{...p!=="inherit"&&{"--Typography-textAlign":p},...C.style}})});function kE(t){return at("MuiAppBar",t)}rt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const NE=t=>{const{color:r,position:o,classes:i}=t,s={root:["root",`color${ue(r)}`,`position${ue(o)}`]};return ot(s,kE,i)},Q0=(t,r)=>t?`${t.replace(")","")}, ${r})`:r,DE=he(Ma,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[`position${ue(o.position)}`],r[`color${ue(o.color)}`]]}})(Qe(({theme:t})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit",color:"var(--AppBar-color)"}},{props:{color:"default"},style:{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[100],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[100]),...t.applyStyles("dark",{"--AppBar-background":t.vars?t.vars.palette.AppBar.defaultBg:t.palette.grey[900],"--AppBar-color":t.vars?t.vars.palette.text.primary:t.palette.getContrastText(t.palette.grey[900])})}},...Object.entries(t.palette).filter(Ut(["contrastText"])).map(([r])=>({props:{color:r},style:{"--AppBar-background":(t.vars??t).palette[r].main,"--AppBar-color":(t.vars??t).palette[r].contrastText}})),{props:r=>r.enableColorOnDark===!0&&!["inherit","transparent"].includes(r.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:r=>r.enableColorOnDark===!1&&!["inherit","transparent"].includes(r.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundColor:t.vars?Q0(t.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:t.vars?Q0(t.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...t.applyStyles("dark",{backgroundImage:"none"})}}]}))),jE=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiAppBar"}),{className:s,color:c="primary",enableColorOnDark:d=!1,position:p="fixed",...m}=i,h={...i,color:c,position:p,enableColorOnDark:d},y=NE(h);return A.jsx(DE,{square:!0,component:"header",ownerState:h,elevation:4,className:Oe(y.root,s,p==="fixed"&&"mui-fixed"),ref:o,...m})});function Ou(t,r){if(!t||!r)return!1;if(t.contains(r))return!0;const o=r.getRootNode?.();if(o&&o instanceof ShadowRoot){let i=r;for(;i;){if(t===i)return!0;i=i.parentNode??i.host??null}}return!1}var Cn="top",ta="bottom",na="right",Tn="left",Up="auto",Hi=[Cn,ta,na,Tn],rl="start",ki="end",BE="clippingParents",Yb="viewport",ii="popper",LE="reference",Z0=Hi.reduce(function(t,r){return t.concat([r+"-"+rl,r+"-"+ki])},[]),Ib=[].concat(Hi,[Up]).reduce(function(t,r){return t.concat([r,r+"-"+rl,r+"-"+ki])},[]),_E="beforeRead",$E="read",HE="afterRead",UE="beforeMain",PE="main",VE="afterMain",qE="beforeWrite",YE="write",IE="afterWrite",GE=[_E,$E,HE,UE,PE,VE,qE,YE,IE];function Aa(t){return t?(t.nodeName||"").toLowerCase():null}function _n(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var r=t.ownerDocument;return r&&r.defaultView||window}return t}function no(t){var r=_n(t).Element;return t instanceof r||t instanceof Element}function ea(t){var r=_n(t).HTMLElement;return t instanceof r||t instanceof HTMLElement}function Pp(t){if(typeof ShadowRoot>"u")return!1;var r=_n(t).ShadowRoot;return t instanceof r||t instanceof ShadowRoot}function XE(t){var r=t.state;Object.keys(r.elements).forEach(function(o){var i=r.styles[o]||{},s=r.attributes[o]||{},c=r.elements[o];!ea(c)||!Aa(c)||(Object.assign(c.style,i),Object.keys(s).forEach(function(d){var p=s[d];p===!1?c.removeAttribute(d):c.setAttribute(d,p===!0?"":p)}))})}function FE(t){var r=t.state,o={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(r.elements.popper.style,o.popper),r.styles=o,r.elements.arrow&&Object.assign(r.elements.arrow.style,o.arrow),function(){Object.keys(r.elements).forEach(function(i){var s=r.elements[i],c=r.attributes[i]||{},d=Object.keys(r.styles.hasOwnProperty(i)?r.styles[i]:o[i]),p=d.reduce(function(m,h){return m[h]="",m},{});!ea(s)||!Aa(s)||(Object.assign(s.style,p),Object.keys(c).forEach(function(m){s.removeAttribute(m)}))})}}const KE={name:"applyStyles",enabled:!0,phase:"write",fn:XE,effect:FE,requires:["computeStyles"]};function wa(t){return t.split("-")[0]}var eo=Math.max,zu=Math.min,ol=Math.round;function cp(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(r){return r.brand+"/"+r.version}).join(" "):navigator.userAgent}function Gb(){return!/^((?!chrome|android).)*safari/i.test(cp())}function ll(t,r,o){r===void 0&&(r=!1),o===void 0&&(o=!1);var i=t.getBoundingClientRect(),s=1,c=1;r&&ea(t)&&(s=t.offsetWidth>0&&ol(i.width)/t.offsetWidth||1,c=t.offsetHeight>0&&ol(i.height)/t.offsetHeight||1);var d=no(t)?_n(t):window,p=d.visualViewport,m=!Gb()&&o,h=(i.left+(m&&p?p.offsetLeft:0))/s,y=(i.top+(m&&p?p.offsetTop:0))/c,v=i.width/s,w=i.height/c;return{width:v,height:w,top:y,right:h+v,bottom:y+w,left:h,x:h,y}}function Vp(t){var r=ll(t),o=t.offsetWidth,i=t.offsetHeight;return Math.abs(r.width-o)<=1&&(o=r.width),Math.abs(r.height-i)<=1&&(i=r.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:i}}function Xb(t,r){var o=r.getRootNode&&r.getRootNode();if(t.contains(r))return!0;if(o&&Pp(o)){var i=r;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ja(t){return _n(t).getComputedStyle(t)}function QE(t){return["table","td","th"].indexOf(Aa(t))>=0}function Or(t){return((no(t)?t.ownerDocument:t.document)||window.document).documentElement}function oc(t){return Aa(t)==="html"?t:t.assignedSlot||t.parentNode||(Pp(t)?t.host:null)||Or(t)}function W0(t){return!ea(t)||Ja(t).position==="fixed"?null:t.offsetParent}function ZE(t){var r=/firefox/i.test(cp()),o=/Trident/i.test(cp());if(o&&ea(t)){var i=Ja(t);if(i.position==="fixed")return null}var s=oc(t);for(Pp(s)&&(s=s.host);ea(s)&&["html","body"].indexOf(Aa(s))<0;){var c=Ja(s);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||r&&c.willChange==="filter"||r&&c.filter&&c.filter!=="none")return s;s=s.parentNode}return null}function Ui(t){for(var r=_n(t),o=W0(t);o&&QE(o)&&Ja(o).position==="static";)o=W0(o);return o&&(Aa(o)==="html"||Aa(o)==="body"&&Ja(o).position==="static")?r:o||ZE(t)||r}function qp(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function vi(t,r,o){return eo(t,zu(r,o))}function WE(t,r,o){var i=vi(t,r,o);return i>o?o:i}function Fb(){return{top:0,right:0,bottom:0,left:0}}function Kb(t){return Object.assign({},Fb(),t)}function Qb(t,r){return r.reduce(function(o,i){return o[i]=t,o},{})}var JE=function(r,o){return r=typeof r=="function"?r(Object.assign({},o.rects,{placement:o.placement})):r,Kb(typeof r!="number"?r:Qb(r,Hi))};function ew(t){var r,o=t.state,i=t.name,s=t.options,c=o.elements.arrow,d=o.modifiersData.popperOffsets,p=wa(o.placement),m=qp(p),h=[Tn,na].indexOf(p)>=0,y=h?"height":"width";if(!(!c||!d)){var v=JE(s.padding,o),w=Vp(c),b=m==="y"?Cn:Tn,E=m==="y"?ta:na,C=o.rects.reference[y]+o.rects.reference[m]-d[m]-o.rects.popper[y],M=d[m]-o.rects.reference[m],D=Ui(c),L=D?m==="y"?D.clientHeight||0:D.clientWidth||0:0,O=C/2-M/2,R=v[b],N=L-w[y]-v[E],j=L/2-w[y]/2+O,$=vi(R,j,N),P=m;o.modifiersData[i]=(r={},r[P]=$,r.centerOffset=$-j,r)}}function tw(t){var r=t.state,o=t.options,i=o.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=r.elements.popper.querySelector(s),!s)||Xb(r.elements.popper,s)&&(r.elements.arrow=s))}const nw={name:"arrow",enabled:!0,phase:"main",fn:ew,effect:tw,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function il(t){return t.split("-")[1]}var aw={top:"auto",right:"auto",bottom:"auto",left:"auto"};function rw(t,r){var o=t.x,i=t.y,s=r.devicePixelRatio||1;return{x:ol(o*s)/s||0,y:ol(i*s)/s||0}}function J0(t){var r,o=t.popper,i=t.popperRect,s=t.placement,c=t.variation,d=t.offsets,p=t.position,m=t.gpuAcceleration,h=t.adaptive,y=t.roundOffsets,v=t.isFixed,w=d.x,b=w===void 0?0:w,E=d.y,C=E===void 0?0:E,M=typeof y=="function"?y({x:b,y:C}):{x:b,y:C};b=M.x,C=M.y;var D=d.hasOwnProperty("x"),L=d.hasOwnProperty("y"),O=Tn,R=Cn,N=window;if(h){var j=Ui(o),$="clientHeight",P="clientWidth";if(j===_n(o)&&(j=Or(o),Ja(j).position!=="static"&&p==="absolute"&&($="scrollHeight",P="scrollWidth")),j=j,s===Cn||(s===Tn||s===na)&&c===ki){R=ta;var Y=v&&j===N&&N.visualViewport?N.visualViewport.height:j[$];C-=Y-i.height,C*=m?1:-1}if(s===Tn||(s===Cn||s===ta)&&c===ki){O=na;var q=v&&j===N&&N.visualViewport?N.visualViewport.width:j[P];b-=q-i.width,b*=m?1:-1}}var Q=Object.assign({position:p},h&&aw),x=y===!0?rw({x:b,y:C},_n(o)):{x:b,y:C};if(b=x.x,C=x.y,m){var H;return Object.assign({},Q,(H={},H[R]=L?"0":"",H[O]=D?"0":"",H.transform=(N.devicePixelRatio||1)<=1?"translate("+b+"px, "+C+"px)":"translate3d("+b+"px, "+C+"px, 0)",H))}return Object.assign({},Q,(r={},r[R]=L?C+"px":"",r[O]=D?b+"px":"",r.transform="",r))}function ow(t){var r=t.state,o=t.options,i=o.gpuAcceleration,s=i===void 0?!0:i,c=o.adaptive,d=c===void 0?!0:c,p=o.roundOffsets,m=p===void 0?!0:p,h={placement:wa(r.placement),variation:il(r.placement),popper:r.elements.popper,popperRect:r.rects.popper,gpuAcceleration:s,isFixed:r.options.strategy==="fixed"};r.modifiersData.popperOffsets!=null&&(r.styles.popper=Object.assign({},r.styles.popper,J0(Object.assign({},h,{offsets:r.modifiersData.popperOffsets,position:r.options.strategy,adaptive:d,roundOffsets:m})))),r.modifiersData.arrow!=null&&(r.styles.arrow=Object.assign({},r.styles.arrow,J0(Object.assign({},h,{offsets:r.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:m})))),r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-placement":r.placement})}const lw={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ow,data:{}};var au={passive:!0};function iw(t){var r=t.state,o=t.instance,i=t.options,s=i.scroll,c=s===void 0?!0:s,d=i.resize,p=d===void 0?!0:d,m=_n(r.elements.popper),h=[].concat(r.scrollParents.reference,r.scrollParents.popper);return c&&h.forEach(function(y){y.addEventListener("scroll",o.update,au)}),p&&m.addEventListener("resize",o.update,au),function(){c&&h.forEach(function(y){y.removeEventListener("scroll",o.update,au)}),p&&m.removeEventListener("resize",o.update,au)}}const sw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:iw,data:{}};var uw={left:"right",right:"left",bottom:"top",top:"bottom"};function vu(t){return t.replace(/left|right|bottom|top/g,function(r){return uw[r]})}var cw={start:"end",end:"start"};function ev(t){return t.replace(/start|end/g,function(r){return cw[r]})}function Yp(t){var r=_n(t),o=r.pageXOffset,i=r.pageYOffset;return{scrollLeft:o,scrollTop:i}}function Ip(t){return ll(Or(t)).left+Yp(t).scrollLeft}function fw(t,r){var o=_n(t),i=Or(t),s=o.visualViewport,c=i.clientWidth,d=i.clientHeight,p=0,m=0;if(s){c=s.width,d=s.height;var h=Gb();(h||!h&&r==="fixed")&&(p=s.offsetLeft,m=s.offsetTop)}return{width:c,height:d,x:p+Ip(t),y:m}}function dw(t){var r,o=Or(t),i=Yp(t),s=(r=t.ownerDocument)==null?void 0:r.body,c=eo(o.scrollWidth,o.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),d=eo(o.scrollHeight,o.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),p=-i.scrollLeft+Ip(t),m=-i.scrollTop;return Ja(s||o).direction==="rtl"&&(p+=eo(o.clientWidth,s?s.clientWidth:0)-c),{width:c,height:d,x:p,y:m}}function Gp(t){var r=Ja(t),o=r.overflow,i=r.overflowX,s=r.overflowY;return/auto|scroll|overlay|hidden/.test(o+s+i)}function Zb(t){return["html","body","#document"].indexOf(Aa(t))>=0?t.ownerDocument.body:ea(t)&&Gp(t)?t:Zb(oc(t))}function bi(t,r){var o;r===void 0&&(r=[]);var i=Zb(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),c=_n(i),d=s?[c].concat(c.visualViewport||[],Gp(i)?i:[]):i,p=r.concat(d);return s?p:p.concat(bi(oc(d)))}function fp(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function pw(t,r){var o=ll(t,!1,r==="fixed");return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}function tv(t,r,o){return r===Yb?fp(fw(t,o)):no(r)?pw(r,o):fp(dw(Or(t)))}function mw(t){var r=bi(oc(t)),o=["absolute","fixed"].indexOf(Ja(t).position)>=0,i=o&&ea(t)?Ui(t):t;return no(i)?r.filter(function(s){return no(s)&&Xb(s,i)&&Aa(s)!=="body"}):[]}function hw(t,r,o,i){var s=r==="clippingParents"?mw(t):[].concat(r),c=[].concat(s,[o]),d=c[0],p=c.reduce(function(m,h){var y=tv(t,h,i);return m.top=eo(y.top,m.top),m.right=zu(y.right,m.right),m.bottom=zu(y.bottom,m.bottom),m.left=eo(y.left,m.left),m},tv(t,d,i));return p.width=p.right-p.left,p.height=p.bottom-p.top,p.x=p.left,p.y=p.top,p}function Wb(t){var r=t.reference,o=t.element,i=t.placement,s=i?wa(i):null,c=i?il(i):null,d=r.x+r.width/2-o.width/2,p=r.y+r.height/2-o.height/2,m;switch(s){case Cn:m={x:d,y:r.y-o.height};break;case ta:m={x:d,y:r.y+r.height};break;case na:m={x:r.x+r.width,y:p};break;case Tn:m={x:r.x-o.width,y:p};break;default:m={x:r.x,y:r.y}}var h=s?qp(s):null;if(h!=null){var y=h==="y"?"height":"width";switch(c){case rl:m[h]=m[h]-(r[y]/2-o[y]/2);break;case ki:m[h]=m[h]+(r[y]/2-o[y]/2);break}}return m}function Ni(t,r){r===void 0&&(r={});var o=r,i=o.placement,s=i===void 0?t.placement:i,c=o.strategy,d=c===void 0?t.strategy:c,p=o.boundary,m=p===void 0?BE:p,h=o.rootBoundary,y=h===void 0?Yb:h,v=o.elementContext,w=v===void 0?ii:v,b=o.altBoundary,E=b===void 0?!1:b,C=o.padding,M=C===void 0?0:C,D=Kb(typeof M!="number"?M:Qb(M,Hi)),L=w===ii?LE:ii,O=t.rects.popper,R=t.elements[E?L:w],N=hw(no(R)?R:R.contextElement||Or(t.elements.popper),m,y,d),j=ll(t.elements.reference),$=Wb({reference:j,element:O,placement:s}),P=fp(Object.assign({},O,$)),Y=w===ii?P:j,q={top:N.top-Y.top+D.top,bottom:Y.bottom-N.bottom+D.bottom,left:N.left-Y.left+D.left,right:Y.right-N.right+D.right},Q=t.modifiersData.offset;if(w===ii&&Q){var x=Q[s];Object.keys(q).forEach(function(H){var X=[na,ta].indexOf(H)>=0?1:-1,W=[Cn,ta].indexOf(H)>=0?"y":"x";q[H]+=x[W]*X})}return q}function gw(t,r){r===void 0&&(r={});var o=r,i=o.placement,s=o.boundary,c=o.rootBoundary,d=o.padding,p=o.flipVariations,m=o.allowedAutoPlacements,h=m===void 0?Ib:m,y=il(i),v=y?p?Z0:Z0.filter(function(E){return il(E)===y}):Hi,w=v.filter(function(E){return h.indexOf(E)>=0});w.length===0&&(w=v);var b=w.reduce(function(E,C){return E[C]=Ni(t,{placement:C,boundary:s,rootBoundary:c,padding:d})[wa(C)],E},{});return Object.keys(b).sort(function(E,C){return b[E]-b[C]})}function yw(t){if(wa(t)===Up)return[];var r=vu(t);return[ev(t),r,ev(r)]}function vw(t){var r=t.state,o=t.options,i=t.name;if(!r.modifiersData[i]._skip){for(var s=o.mainAxis,c=s===void 0?!0:s,d=o.altAxis,p=d===void 0?!0:d,m=o.fallbackPlacements,h=o.padding,y=o.boundary,v=o.rootBoundary,w=o.altBoundary,b=o.flipVariations,E=b===void 0?!0:b,C=o.allowedAutoPlacements,M=r.options.placement,D=wa(M),L=D===M,O=m||(L||!E?[vu(M)]:yw(M)),R=[M].concat(O).reduce(function(le,ce){return le.concat(wa(ce)===Up?gw(r,{placement:ce,boundary:y,rootBoundary:v,padding:h,flipVariations:E,allowedAutoPlacements:C}):ce)},[]),N=r.rects.reference,j=r.rects.popper,$=new Map,P=!0,Y=R[0],q=0;q=0,W=X?"width":"height",k=Ni(r,{placement:Q,boundary:y,rootBoundary:v,altBoundary:w,padding:h}),I=X?H?na:Tn:H?ta:Cn;N[W]>j[W]&&(I=vu(I));var J=vu(I),ae=[];if(c&&ae.push(k[x]<=0),p&&ae.push(k[I]<=0,k[J]<=0),ae.every(function(le){return le})){Y=Q,P=!1;break}$.set(Q,ae)}if(P)for(var pe=E?3:1,z=function(ce){var se=R.find(function(de){var ze=$.get(de);if(ze)return ze.slice(0,ce).every(function(ye){return ye})});if(se)return Y=se,"break"},V=pe;V>0;V--){var ne=z(V);if(ne==="break")break}r.placement!==Y&&(r.modifiersData[i]._skip=!0,r.placement=Y,r.reset=!0)}}const bw={name:"flip",enabled:!0,phase:"main",fn:vw,requiresIfExists:["offset"],data:{_skip:!1}};function nv(t,r,o){return o===void 0&&(o={x:0,y:0}),{top:t.top-r.height-o.y,right:t.right-r.width+o.x,bottom:t.bottom-r.height+o.y,left:t.left-r.width-o.x}}function av(t){return[Cn,na,ta,Tn].some(function(r){return t[r]>=0})}function Sw(t){var r=t.state,o=t.name,i=r.rects.reference,s=r.rects.popper,c=r.modifiersData.preventOverflow,d=Ni(r,{elementContext:"reference"}),p=Ni(r,{altBoundary:!0}),m=nv(d,i),h=nv(p,s,c),y=av(m),v=av(h);r.modifiersData[o]={referenceClippingOffsets:m,popperEscapeOffsets:h,isReferenceHidden:y,hasPopperEscaped:v},r.attributes.popper=Object.assign({},r.attributes.popper,{"data-popper-reference-hidden":y,"data-popper-escaped":v})}const xw={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sw};function Cw(t,r,o){var i=wa(t),s=[Tn,Cn].indexOf(i)>=0?-1:1,c=typeof o=="function"?o(Object.assign({},r,{placement:t})):o,d=c[0],p=c[1];return d=d||0,p=(p||0)*s,[Tn,na].indexOf(i)>=0?{x:p,y:d}:{x:d,y:p}}function Tw(t){var r=t.state,o=t.options,i=t.name,s=o.offset,c=s===void 0?[0,0]:s,d=Ib.reduce(function(y,v){return y[v]=Cw(v,r.rects,c),y},{}),p=d[r.placement],m=p.x,h=p.y;r.modifiersData.popperOffsets!=null&&(r.modifiersData.popperOffsets.x+=m,r.modifiersData.popperOffsets.y+=h),r.modifiersData[i]=d}const Ew={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Tw};function ww(t){var r=t.state,o=t.name;r.modifiersData[o]=Wb({reference:r.rects.reference,element:r.rects.popper,placement:r.placement})}const Aw={name:"popperOffsets",enabled:!0,phase:"read",fn:ww,data:{}};function Rw(t){return t==="x"?"y":"x"}function Mw(t){var r=t.state,o=t.options,i=t.name,s=o.mainAxis,c=s===void 0?!0:s,d=o.altAxis,p=d===void 0?!1:d,m=o.boundary,h=o.rootBoundary,y=o.altBoundary,v=o.padding,w=o.tether,b=w===void 0?!0:w,E=o.tetherOffset,C=E===void 0?0:E,M=Ni(r,{boundary:m,rootBoundary:h,padding:v,altBoundary:y}),D=wa(r.placement),L=il(r.placement),O=!L,R=qp(D),N=Rw(R),j=r.modifiersData.popperOffsets,$=r.rects.reference,P=r.rects.popper,Y=typeof C=="function"?C(Object.assign({},r.rects,{placement:r.placement})):C,q=typeof Y=="number"?{mainAxis:Y,altAxis:Y}:Object.assign({mainAxis:0,altAxis:0},Y),Q=r.modifiersData.offset?r.modifiersData.offset[r.placement]:null,x={x:0,y:0};if(j){if(c){var H,X=R==="y"?Cn:Tn,W=R==="y"?ta:na,k=R==="y"?"height":"width",I=j[R],J=I+M[X],ae=I-M[W],pe=b?-P[k]/2:0,z=L===rl?$[k]:P[k],V=L===rl?-P[k]:-$[k],ne=r.elements.arrow,le=b&&ne?Vp(ne):{width:0,height:0},ce=r.modifiersData["arrow#persistent"]?r.modifiersData["arrow#persistent"].padding:Fb(),se=ce[X],de=ce[W],ze=vi(0,$[k],le[k]),ye=O?$[k]/2-pe-ze-se-q.mainAxis:z-ze-se-q.mainAxis,xe=O?-$[k]/2+pe+ze+de+q.mainAxis:V+ze+de+q.mainAxis,Ae=r.elements.arrow&&Ui(r.elements.arrow),Re=Ae?R==="y"?Ae.clientTop||0:Ae.clientLeft||0:0,Le=(H=Q?.[R])!=null?H:0,be=I+ye-Le-Re,$e=I+xe-Le,Ze=vi(b?zu(J,be):J,I,b?eo(ae,$e):ae);j[R]=Ze,x[R]=Ze-I}if(p){var De,Pe=R==="x"?Cn:Tn,Ie=R==="x"?ta:na,We=j[N],Ve=N==="y"?"height":"width",ge=We+M[Pe],Mt=We-M[Ie],He=[Cn,Tn].indexOf(D)!==-1,fe=(De=Q?.[N])!=null?De:0,ie=He?ge:We-$[Ve]-P[Ve]-fe+q.altAxis,me=He?We+$[Ve]+P[Ve]-fe-q.altAxis:Mt,Se=b&&He?WE(ie,We,me):vi(b?ie:ge,We,b?me:Mt);j[N]=Se,x[N]=Se-We}r.modifiersData[i]=x}}const Ow={name:"preventOverflow",enabled:!0,phase:"main",fn:Mw,requiresIfExists:["offset"]};function zw(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function kw(t){return t===_n(t)||!ea(t)?Yp(t):zw(t)}function Nw(t){var r=t.getBoundingClientRect(),o=ol(r.width)/t.offsetWidth||1,i=ol(r.height)/t.offsetHeight||1;return o!==1||i!==1}function Dw(t,r,o){o===void 0&&(o=!1);var i=ea(r),s=ea(r)&&Nw(r),c=Or(r),d=ll(t,s,o),p={scrollLeft:0,scrollTop:0},m={x:0,y:0};return(i||!i&&!o)&&((Aa(r)!=="body"||Gp(c))&&(p=kw(r)),ea(r)?(m=ll(r,!0),m.x+=r.clientLeft,m.y+=r.clientTop):c&&(m.x=Ip(c))),{x:d.left+p.scrollLeft-m.x,y:d.top+p.scrollTop-m.y,width:d.width,height:d.height}}function jw(t){var r=new Map,o=new Set,i=[];t.forEach(function(c){r.set(c.name,c)});function s(c){o.add(c.name);var d=[].concat(c.requires||[],c.requiresIfExists||[]);d.forEach(function(p){if(!o.has(p)){var m=r.get(p);m&&s(m)}}),i.push(c)}return t.forEach(function(c){o.has(c.name)||s(c)}),i}function Bw(t){var r=jw(t);return GE.reduce(function(o,i){return o.concat(r.filter(function(s){return s.phase===i}))},[])}function Lw(t){var r;return function(){return r||(r=new Promise(function(o){Promise.resolve().then(function(){r=void 0,o(t())})})),r}}function _w(t){var r=t.reduce(function(o,i){var s=o[i.name];return o[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,o},{});return Object.keys(r).map(function(o){return r[o]})}var rv={placement:"bottom",modifiers:[],strategy:"absolute"};function ov(){for(var t=arguments.length,r=new Array(t),o=0;o=19?t?.props?.ref||null:t?.ref||null}function Pw(t){return typeof t=="function"?t():t}const Jb=S.forwardRef(function(r,o){const{children:i,container:s,disablePortal:c=!1}=r,[d,p]=S.useState(null),m=Zt(S.isValidElement(i)?fl(i):null,o);if(wn(()=>{c||p(Pw(s)||document.body)},[s,c]),wn(()=>{if(d&&!c)return V0(o,d),()=>{V0(o,null)}},[o,d,c]),c){if(S.isValidElement(i)){const h={ref:m};return S.cloneElement(i,h)}return i}return d&&Bb.createPortal(i,d)});function Vw(t){return at("MuiPopper",t)}rt("MuiPopper",["root"]);function qw(t,r){if(r==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function dp(t){return typeof t=="function"?t():t}function Yw(t){return t.nodeType!==void 0}const Iw=t=>{const{classes:r}=t;return ot({root:["root"]},Vw,r)},Gw={},Xw=S.forwardRef(function(r,o){const{anchorEl:i,children:s,direction:c,disablePortal:d,modifiers:p,open:m,placement:h,popperOptions:y,popperRef:v,slotProps:w={},slots:b={},TransitionProps:E,ownerState:C,...M}=r,D=S.useRef(null),L=Zt(D,o),O=S.useRef(null),R=Zt(O,v),N=S.useRef(R);wn(()=>{N.current=R},[R]),S.useImperativeHandle(v,()=>O.current,[]);const j=qw(h,c),[$,P]=S.useState(j),[Y,q]=S.useState(dp(i));S.useEffect(()=>{O.current&&O.current.forceUpdate()}),S.useEffect(()=>{i&&q(dp(i))},[i]),wn(()=>{if(!Y||!m)return;const W=ae=>{P(ae.placement)};let k=[{name:"preventOverflow",options:{altBoundary:d}},{name:"flip",options:{altBoundary:d}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ae})=>{W(ae)}}];p!=null&&(k=k.concat(p)),y&&y.modifiers!=null&&(k=k.concat(y.modifiers));const I=Uw(Y,D.current,{placement:j,...y,modifiers:k});N.current(I);const J=D.current;return()=>{if(J){const{style:ae}=J,pe=ae.position,z=ae.top,V=ae.left,ne=ae.transform;I.destroy(),ae.position=pe,ae.top=z,ae.left=V,ae.transform=ne}else I.destroy();N.current(null)}},[Y,d,p,m,y,j]);const Q={placement:$};E!==null&&(Q.TransitionProps=E);const x=Iw(r),H=b.root??"div",X=ba({elementType:H,externalSlotProps:w.root,externalForwardedProps:M,additionalProps:{role:"tooltip",ref:L},ownerState:r,className:x.root});return A.jsx(H,{...X,children:typeof s=="function"?s(Q):s})}),Fw=S.forwardRef(function(r,o){const{anchorEl:i,children:s,container:c,direction:d="ltr",disablePortal:p=!1,keepMounted:m=!1,modifiers:h,open:y,placement:v="bottom",popperOptions:w=Gw,popperRef:b,style:E,transition:C=!1,slotProps:M={},slots:D={},...L}=r,[O,R]=S.useState(!0),N=()=>{R(!1)},j=()=>{R(!0)};if(!m&&!y&&(!C||O))return null;let $;if(c)$=c;else if(i){const q=dp(i);$=q&&Yw(q)?Kt(q).body:Kt(null).body}const P=!y&&m&&(!C||O)?"none":void 0,Y=C?{in:y,onEnter:N,onExited:j}:void 0;return A.jsx(Jb,{disablePortal:p,container:$,children:A.jsx(Xw,{anchorEl:i,direction:d,disablePortal:p,modifiers:h,ref:o,open:C?!O:y,placement:v,popperOptions:w,popperRef:b,slotProps:M,slots:D,...L,style:{position:"fixed",top:0,left:0,display:P,...E},TransitionProps:Y,children:s})})}),Kw=he(Fw,{name:"MuiPopper",slot:"Root"})({}),e1=S.forwardRef(function(r,o){const i=tc(),s=lt({props:r,name:"MuiPopper"}),{anchorEl:c,component:d,components:p,componentsProps:m,container:h,disablePortal:y,keepMounted:v,modifiers:w,open:b,placement:E,popperOptions:C,popperRef:M,transition:D,slots:L,slotProps:O,...R}=s,N=L?.root??p?.Root,j={anchorEl:c,container:h,disablePortal:y,keepMounted:v,modifiers:w,open:b,placement:E,popperOptions:C,popperRef:M,transition:D,...R};return A.jsx(Kw,{as:d,direction:i?"rtl":"ltr",slots:{root:N},slotProps:O??m,...j,ref:o})}),Qw=Wt(A.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function Zw(t){return at("MuiChip",t)}const Ke=rt("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),Ww=t=>{const{classes:r,disabled:o,size:i,color:s,iconColor:c,onDelete:d,clickable:p,variant:m}=t,h={root:["root",m,o&&"disabled",`size${ue(i)}`,`color${ue(s)}`,p&&"clickable",p&&`clickableColor${ue(s)}`,d&&"deletable",d&&`deletableColor${ue(s)}`,`${m}${ue(s)}`],label:["label",`label${ue(i)}`],avatar:["avatar",`avatar${ue(i)}`,`avatarColor${ue(s)}`],icon:["icon",`icon${ue(i)}`,`iconColor${ue(c)}`],deleteIcon:["deleteIcon",`deleteIcon${ue(i)}`,`deleteIconColor${ue(s)}`,`deleteIcon${ue(m)}Color${ue(s)}`]};return ot(h,Zw,r)},Jw=he("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t,{color:i,iconColor:s,clickable:c,onDelete:d,size:p,variant:m}=o;return[{[`& .${Ke.avatar}`]:r.avatar},{[`& .${Ke.avatar}`]:r[`avatar${ue(p)}`]},{[`& .${Ke.avatar}`]:r[`avatarColor${ue(i)}`]},{[`& .${Ke.icon}`]:r.icon},{[`& .${Ke.icon}`]:r[`icon${ue(p)}`]},{[`& .${Ke.icon}`]:r[`iconColor${ue(s)}`]},{[`& .${Ke.deleteIcon}`]:r.deleteIcon},{[`& .${Ke.deleteIcon}`]:r[`deleteIcon${ue(p)}`]},{[`& .${Ke.deleteIcon}`]:r[`deleteIconColor${ue(i)}`]},{[`& .${Ke.deleteIcon}`]:r[`deleteIcon${ue(m)}Color${ue(i)}`]},r.root,r[`size${ue(p)}`],r[`color${ue(i)}`],c&&r.clickable,c&&i!=="default"&&r[`clickableColor${ue(i)}`],d&&r.deletable,d&&i!=="default"&&r[`deletableColor${ue(i)}`],r[m],r[`${m}${ue(i)}`]]}})(Qe(({theme:t})=>{const r=t.palette.mode==="light"?t.palette.grey[700]:t.palette.grey[300];return{maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Ke.disabled}`]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Ke.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:r,fontSize:t.typography.pxToRem(12)},[`& .${Ke.avatarColorPrimary}`]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},[`& .${Ke.avatarColorSecondary}`]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},[`& .${Ke.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},[`& .${Ke.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Ke.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:t.alpha((t.vars||t).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.alpha((t.vars||t).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Ke.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Ke.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(t.palette).filter(Ut(["contrastText"])).map(([o])=>({props:{color:o},style:{backgroundColor:(t.vars||t).palette[o].main,color:(t.vars||t).palette[o].contrastText,[`& .${Ke.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[o].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[o].contrastText}}}})),{props:o=>o.iconColor===o.color,style:{[`& .${Ke.icon}`]:{color:t.vars?t.vars.palette.Chip.defaultIconColor:r}}},{props:o=>o.iconColor===o.color&&o.color!=="default",style:{[`& .${Ke.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)}}},...Object.entries(t.palette).filter(Ut(["dark"])).map(([o])=>({props:{color:o,onDelete:!0},style:{[`&.${Ke.focusVisible}`]:{background:(t.vars||t).palette[o].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`)},[`&.${Ke.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette.action.selected,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.focusOpacity}`)},"&:active":{boxShadow:(t.vars||t).shadows[1]}}},...Object.entries(t.palette).filter(Ut(["dark"])).map(([o])=>({props:{color:o,clickable:!0},style:{[`&:hover, &.${Ke.focusVisible}`]:{backgroundColor:(t.vars||t).palette[o].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:t.vars?`1px solid ${t.vars.palette.Chip.defaultBorder}`:`1px solid ${t.palette.mode==="light"?t.palette.grey[400]:t.palette.grey[700]}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},[`&.${Ke.focusVisible}`]:{backgroundColor:(t.vars||t).palette.action.focus},[`& .${Ke.avatar}`]:{marginLeft:4},[`& .${Ke.avatarSmall}`]:{marginLeft:2},[`& .${Ke.icon}`]:{marginLeft:4},[`& .${Ke.iconSmall}`]:{marginLeft:2},[`& .${Ke.deleteIcon}`]:{marginRight:5},[`& .${Ke.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(t.palette).filter(Ut()).map(([o])=>({props:{variant:"outlined",color:o},style:{color:(t.vars||t).palette[o].main,border:`1px solid ${t.alpha((t.vars||t).palette[o].main,.7)}`,[`&.${Ke.clickable}:hover`]:{backgroundColor:t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.hoverOpacity)},[`&.${Ke.focusVisible}`]:{backgroundColor:t.alpha((t.vars||t).palette[o].main,(t.vars||t).palette.action.focusOpacity)},[`& .${Ke.deleteIcon}`]:{color:t.alpha((t.vars||t).palette[o].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[o].main}}}}))]}})),eA=he("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,r)=>{const{ownerState:o}=t,{size:i}=o;return[r.label,r[`label${ue(i)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function lv(t){return t.key==="Backspace"||t.key==="Delete"}const ku=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiChip"}),{avatar:s,className:c,clickable:d,color:p="default",component:m,deleteIcon:h,disabled:y=!1,icon:v,label:w,onClick:b,onDelete:E,onKeyDown:C,onKeyUp:M,size:D="medium",variant:L="filled",tabIndex:O,skipFocusWhenDisabled:R=!1,slots:N={},slotProps:j={},...$}=i,P=S.useRef(null),Y=Zt(P,o),q=se=>{se.stopPropagation(),E(se)},Q=se=>{se.currentTarget===se.target&&lv(se)&&se.preventDefault(),C&&C(se)},x=se=>{se.currentTarget===se.target&&E&&lv(se)&&E(se),M&&M(se)},H=d!==!1&&b?!0:d,X=H||E?zi:m||"div",W={...i,component:X,disabled:y,size:D,color:p,iconColor:S.isValidElement(v)&&v.props.color||p,onDelete:!!E,clickable:H,variant:L},k=Ww(W),I=X===zi?{component:m||"div",focusVisibleClassName:k.focusVisible,...E&&{disableRipple:!0}}:{};let J=null;E&&(J=h&&S.isValidElement(h)?S.cloneElement(h,{className:Oe(h.props.className,k.deleteIcon),onClick:q}):A.jsx(Qw,{className:k.deleteIcon,onClick:q}));let ae=null;s&&S.isValidElement(s)&&(ae=S.cloneElement(s,{className:Oe(k.avatar,s.props.className)}));let pe=null;v&&S.isValidElement(v)&&(pe=S.cloneElement(v,{className:Oe(k.icon,v.props.className)}));const z={slots:N,slotProps:j},[V,ne]=Tt("root",{elementType:Jw,externalForwardedProps:{...z,...$},ownerState:W,shouldForwardComponentProp:!0,ref:Y,className:Oe(k.root,c),additionalProps:{disabled:H&&y?!0:void 0,tabIndex:R&&y?-1:O,...I},getSlotProps:se=>({...se,onClick:de=>{se.onClick?.(de),b?.(de)},onKeyDown:de=>{se.onKeyDown?.(de),Q(de)},onKeyUp:de=>{se.onKeyUp?.(de),x(de)}})}),[le,ce]=Tt("label",{elementType:eA,externalForwardedProps:z,ownerState:W,className:k.label});return A.jsxs(V,{as:X,...ne,children:[ae||pe,A.jsx(le,{...ce,children:w}),J]})});function ru(t){return parseInt(t,10)||0}const tA={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function nA(t){for(const r in t)return!1;return!0}function iv(t){return nA(t)||t.outerHeightStyle===0&&!t.overflowing}const aA=S.forwardRef(function(r,o){const{onChange:i,maxRows:s,minRows:c=1,style:d,value:p,...m}=r,{current:h}=S.useRef(p!=null),y=S.useRef(null),v=Zt(o,y),w=S.useRef(null),b=S.useRef(null),E=S.useCallback(()=>{const O=y.current,R=b.current;if(!O||!R)return;const j=Wa(O).getComputedStyle(O);if(j.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=j.width,R.value=O.value||r.placeholder||"x",R.value.slice(-1)===` -`&&(R.value+=" ");const $=j.boxSizing,P=ru(j.paddingBottom)+ru(j.paddingTop),Y=ru(j.borderBottomWidth)+ru(j.borderTopWidth),q=R.scrollHeight;R.value="x";const Q=R.scrollHeight;let x=q;c&&(x=Math.max(Number(c)*Q,x)),s&&(x=Math.min(Number(s)*Q,x)),x=Math.max(x,Q);const H=x+($==="border-box"?P+Y:0),X=Math.abs(x-q)<=1;return{outerHeightStyle:H,overflowing:X}},[s,c,r.placeholder]),C=Jn(()=>{const O=y.current,R=E();if(!O||!R||iv(R))return!1;const N=R.outerHeightStyle;return w.current!=null&&w.current!==N}),M=S.useCallback(()=>{const O=y.current,R=E();if(!O||!R||iv(R))return;const N=R.outerHeightStyle;w.current!==N&&(w.current=N,O.style.height=`${N}px`),O.style.overflow=R.overflowing?"hidden":""},[E]),D=S.useRef(-1);wn(()=>{const O=Nb(M),R=y?.current;if(!R)return;const N=Wa(R);N.addEventListener("resize",O);let j;return typeof ResizeObserver<"u"&&(j=new ResizeObserver(()=>{C()&&(j.unobserve(R),cancelAnimationFrame(D.current),M(),D.current=requestAnimationFrame(()=>{j.observe(R)}))}),j.observe(R)),()=>{O.clear(),cancelAnimationFrame(D.current),N.removeEventListener("resize",O),j&&j.disconnect()}},[E,M,C]),wn(()=>{M()});const L=O=>{h||M();const R=O.target,N=R.value.length,j=R.value.endsWith(` -`),$=R.selectionStart===N;j&&$&&R.setSelectionRange(N,N),i&&i(O)};return A.jsxs(S.Fragment,{children:[A.jsx("textarea",{value:p,onChange:L,ref:v,rows:c,style:d,...m}),A.jsx("textarea",{"aria-hidden":!0,className:r.className,readOnly:!0,ref:b,tabIndex:-1,style:{...tA.shadow,...d,paddingTop:0,paddingBottom:0}})]})});function dl({props:t,states:r,muiFormControl:o}){return r.reduce((i,s)=>(i[s]=t[s],o&&typeof t[s]>"u"&&(i[s]=o[s]),i),{})}const Xp=S.createContext(void 0);function pl(){return S.useContext(Xp)}function Er(t){let r=t.activeElement;for(;r?.shadowRoot?.activeElement!=null;)r=r.shadowRoot.activeElement;return r}function sv(t){return t!=null&&!(Array.isArray(t)&&t.length===0)}function Nu(t,r=!1){return t&&(sv(t.value)&&t.value!==""||r&&sv(t.defaultValue)&&t.defaultValue!=="")}function rA(t){return t.startAdornment}function oA(t){return at("MuiInputBase",t)}const sl=rt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var uv;const pp="mui-auto-fill",Du="mui-auto-fill-cancel",lc=(t,r)=>{const{ownerState:o}=t;return[r.root,o.formControl&&r.formControl,o.startAdornment&&r.adornedStart,o.endAdornment&&r.adornedEnd,o.error&&r.error,o.size==="small"&&r.sizeSmall,o.multiline&&r.multiline,o.color&&r[`color${ue(o.color)}`],o.fullWidth&&r.fullWidth,o.hiddenLabel&&r.hiddenLabel]},ic=(t,r)=>{const{ownerState:o}=t;return[r.input,o.size==="small"&&r.inputSizeSmall,o.multiline&&r.inputMultiline,o.type==="search"&&r.inputTypeSearch,o.startAdornment&&r.inputAdornedStart,o.endAdornment&&r.inputAdornedEnd,o.hiddenLabel&&r.inputHiddenLabel]},lA=t=>{const{classes:r,color:o,disabled:i,error:s,endAdornment:c,focused:d,formControl:p,fullWidth:m,hiddenLabel:h,multiline:y,readOnly:v,size:w,startAdornment:b,type:E}=t,C={root:["root",`color${ue(o)}`,i&&"disabled",s&&"error",m&&"fullWidth",d&&"focused",p&&"formControl",w&&w!=="medium"&&`size${ue(w)}`,y&&"multiline",b&&"adornedStart",c&&"adornedEnd",h&&"hiddenLabel",v&&"readOnly"],input:["input",i&&"disabled",E==="search"&&"inputTypeSearch",y&&"inputMultiline",w==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",b&&"inputAdornedStart",c&&"inputAdornedEnd",v&&"readOnly"]};return ot(C,oA,r)},sc=he("div",{name:"MuiInputBase",slot:"Root",overridesResolver:lc})(Qe(({theme:t})=>({...t.typography.body1,color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${sl.disabled}`]:{color:(t.vars||t).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:r})=>r.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:r,size:o})=>r.multiline&&o==="small",style:{paddingTop:1}},{props:({ownerState:r})=>r.fullWidth,style:{width:"100%"}}]}))),uc=he("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ic})(Qe(({theme:t})=>{const r=t.palette.mode==="light",o={color:"currentColor",...t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5},transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})},i={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:r?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${sl.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${sl.disabled}`]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},variants:[{props:({ownerState:c})=>!c.disableInjectingGlobalStyles,style:{animationName:Du,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:pp}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:c})=>c.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),cv=_p({[`@keyframes ${pp}`]:{from:{animationName:pp}},[`@keyframes ${Du}`]:{from:{animationName:Du}}}),Fp=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:c,autoFocus:d,className:p,color:m,components:h={},componentsProps:y={},defaultValue:v,disabled:w,disableInjectingGlobalStyles:b,endAdornment:E,error:C,fullWidth:M=!1,id:D,inputComponent:L="input",inputProps:O={},inputRef:R,margin:N,maxRows:j,minRows:$,multiline:P=!1,name:Y,onBlur:q,onChange:Q,onClick:x,onFocus:H,onKeyDown:X,onKeyUp:W,placeholder:k,readOnly:I,renderSuffix:J,rows:ae,size:pe,slotProps:z={},slots:V={},startAdornment:ne,type:le="text",value:ce,...se}=i,de=O.value!=null?O.value:ce,{current:ze}=S.useRef(de!=null),ye=S.useRef(),xe=S.useCallback(we=>{},[]),Ae=Zt(ye,R,O.ref,xe),[Re,Le]=S.useState(!1),be=pl(),$e=dl({props:i,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});$e.focused=be?be.focused:Re,S.useEffect(()=>{!be&&w&&Re&&(Le(!1),q&&q())},[be,w,Re,q]);const Ze=be&&be.onFilled,De=be&&be.onEmpty,Pe=S.useCallback(we=>{Nu(we)?Ze&&Ze():De&&De()},[Ze,De]);wn(()=>{ze&&Pe({value:de})},[de,Pe,ze]),wn(()=>{if(!d)return;const we=ye.current;if(!we)return;const ut=Kt(we),je=Er(ut),Ye=je==null||je===ut.body||je===ut.documentElement;we===je?be&&be.onFocus?be.onFocus():Le(!0):Ye&&we.focus()},[d]);const Ie=we=>{H&&H(we),O.onFocus&&O.onFocus(we),be&&be.onFocus?be.onFocus(we):Le(!0)},We=we=>{q&&q(we),O.onBlur&&O.onBlur(we),be&&be.onBlur?be.onBlur(we):Le(!1)},Ve=(we,...ut)=>{if(!ze){const je=we.target||ye.current;if(je==null)throw new Error(Za(1));Pe({value:je.value})}O.onChange&&O.onChange(we,...ut),Q&&Q(we,...ut)};S.useEffect(()=>{Pe(ye.current)},[]);const ge=we=>{ye.current&&we.currentTarget===we.target&&ye.current.focus(),x&&x(we)};let Mt=L,He=O;P&&Mt==="input"&&(ae?He={type:void 0,minRows:ae,maxRows:ae,...He}:He={type:void 0,maxRows:j,minRows:$,...He},Mt=aA);const fe=we=>{Pe(we.animationName===Du?ye.current:{value:"x"})};S.useEffect(()=>{be&&be.setAdornedStart(!!ne)},[be,ne]);const ie={...i,color:$e.color||"primary",disabled:$e.disabled,endAdornment:E,error:$e.error,focused:$e.focused,formControl:be,fullWidth:M,hiddenLabel:$e.hiddenLabel,multiline:P,size:$e.size,startAdornment:ne,type:le},me=lA(ie),Se=V.root||h.Root||sc,Ce=z.root||y.root||{},ke=V.input||h.Input||uc;return He={...He,...z.input??y.input},A.jsxs(S.Fragment,{children:[!b&&typeof cv=="function"&&(uv||(uv=A.jsx(cv,{}))),A.jsxs(Se,{...Ce,ref:o,onClick:ge,...se,...!Ar(Se)&&{ownerState:{...ie,...Ce.ownerState}},className:Oe(me.root,Ce.className,p,I&&"MuiInputBase-readOnly"),children:[ne,A.jsx(Xp.Provider,{value:null,children:A.jsx(ke,{"aria-invalid":$e.error,"aria-describedby":s,autoComplete:c,autoFocus:d,defaultValue:v,disabled:$e.disabled,id:D,onAnimationStart:fe,name:Y,placeholder:k,readOnly:I,required:$e.required,rows:ae,value:de,onKeyDown:X,onKeyUp:W,type:le,...He,...!Ar(ke)&&{as:Mt,ownerState:{...ie,...He.ownerState}},ref:Ae,className:Oe(me.input,He.className,I&&"MuiInputBase-readOnly"),onBlur:We,onChange:Ve,onFocus:Ie})}),E,J?J({...$e,startAdornment:ne}):null]})]})});function iA(t){return at("MuiInput",t)}const si={...sl,...rt("MuiInput",["root","underline","input"])};function sA(t){return at("MuiOutlinedInput",t)}const va={...sl,...rt("MuiOutlinedInput",["root","notchedOutline","input"])};function uA(t){return at("MuiFilledInput",t)}const Fr={...sl,...rt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},cA=Wt(A.jsx("path",{d:"M7 10l5 5 5-5z"})),fA={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},dA={opacity:0,visibility:"hidden"},pA=S.forwardRef(function(r,o){const i=An(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{addEndListener:c,appear:d=!0,children:p,easing:m,in:h,onEnter:y,onEntered:v,onEntering:w,onExit:b,onExited:E,onExiting:C,style:M,timeout:D=s,...L}=r,O=S.useRef(null),R=Zt(O,fl(p),o),N=Zn(O,w),j=Zn(O,(x,H)=>{_b(x);const X=Ru({style:M,timeout:D,easing:m},{mode:"enter"});x.style.transition=i.transitions.create("opacity",X),y&&y(x,H)}),$=Zn(O,v),P=Zn(O,C),Y=Zn(O,x=>{const H=Ru({style:M,timeout:D,easing:m},{mode:"exit"});x.style.transition=i.transitions.create("opacity",H),b&&b(x)}),q=Zn(O,x=>{x.style.transition="",E&&E(x)}),Q=x=>{c&&c(O.current,x)};return A.jsx(Ra,{appear:d,in:h,nodeRef:O,onEnter:j,onEntered:$,onEntering:N,onExit:Y,onExited:q,onExiting:P,addEndListener:Q,timeout:D,...L,children:(x,{ownerState:H,...X})=>{const W=$b(x,h,fA,dA,M,p.props.style);return S.cloneElement(p,{style:W,ref:R,...X})}})});function mA(t){return at("MuiBackdrop",t)}rt("MuiBackdrop",["root","invisible"]);const hA=t=>{const{classes:r,invisible:o}=t;return ot({root:["root",o&&"invisible"]},mA,r)},gA=he("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.invisible&&r.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),yA=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiBackdrop"}),{children:s,className:c,component:d="div",invisible:p=!1,open:m,components:h={},componentsProps:y={},slotProps:v={},slots:w={},TransitionComponent:b,transitionDuration:E,...C}=i,M={...i,component:d,invisible:p},D=hA(M),L={transition:b,root:h.Root,...w},O={...y,...v},R={component:d,slots:L,slotProps:O},[N,j]=Tt("root",{elementType:gA,externalForwardedProps:R,className:Oe(D.root,c),ownerState:M}),[$,P]=Tt("transition",{elementType:pA,externalForwardedProps:R,ownerState:M});return A.jsx($,{in:m,timeout:E,...C,...P,children:A.jsx(N,{"aria-hidden":!0,...j,ref:o,children:s})})}),vA=rt("MuiBox",["root"]),bA=nc(),kt=YC({themeId:ua,defaultTheme:bA,defaultClassName:vA.root,generateClassName:fb.generate});function SA(t){return at("MuiButton",t)}const Kr=rt("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),xA=S.createContext({}),CA=S.createContext(void 0),TA=t=>{const{color:r,disableElevation:o,fullWidth:i,size:s,variant:c,loading:d,loadingPosition:p,classes:m}=t,h={root:["root",d&&"loading",c,`${c}${ue(r)}`,`size${ue(s)}`,`${c}Size${ue(s)}`,`color${ue(r)}`,o&&"disableElevation",i&&"fullWidth",d&&`loadingPosition${ue(p)}`],startIcon:["icon","startIcon",`iconSize${ue(s)}`],endIcon:["icon","endIcon",`iconSize${ue(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},y=ot(h,SA,m);return{...m,...y}},t1=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],EA=he(zi,{shouldForwardProp:t=>fa(t)||t==="classes",name:"MuiButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[o.variant],r[`${o.variant}${ue(o.color)}`],r[`size${ue(o.size)}`],r[`${o.variant}Size${ue(o.size)}`],o.color==="inherit"&&r.colorInherit,o.disableElevation&&r.disableElevation,o.fullWidth&&r.fullWidth,o.loading&&r.loading]}})(Qe(({theme:t})=>{const r=t.palette.mode==="light"?t.palette.grey[300]:t.palette.grey[800],o=t.palette.mode==="light"?t.palette.grey.A100:t.palette.grey[700];return{...t.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Kr.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:i})=>i.startIcon||i.loading&&i.loadingPosition==="start",style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(t.vars||t).shadows[2],"&:hover":{boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2]}},"&:active":{boxShadow:(t.vars||t).shadows[8]},[`&.${Kr.focusVisible}`]:{boxShadow:(t.vars||t).shadows[6]},[`&.${Kr.disabled}`]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${Kr.disabled}`]:{border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(t.palette).filter(Ut()).map(([i])=>({props:{color:i},style:{"--variant-textColor":(t.vars||t).palette[i].main,"--variant-outlinedColor":(t.vars||t).palette[i].main,"--variant-outlinedBorder":t.alpha((t.vars||t).palette[i].main,.5),"--variant-containedColor":(t.vars||t).palette[i].contrastText,"--variant-containedBg":(t.vars||t).palette[i].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(t.vars||t).palette[i].dark,"--variant-textBg":t.alpha((t.vars||t).palette[i].main,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBorder":(t.vars||t).palette[i].main,"--variant-outlinedBg":t.alpha((t.vars||t).palette[i].main,(t.vars||t).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedBg:r,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":t.vars?t.vars.palette.Button.inheritContainedHoverBg:o,"--variant-textBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"--variant-outlinedBg":t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:t.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:t.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:t.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Kr.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Kr.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),[`&.${Kr.loading}`]:{color:"transparent"}}}]}})),wA=he("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.startIcon,o.loading&&r.startIconLoadingStart,r[`iconSize${ue(o.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...t1]})),AA=he("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.endIcon,o.loading&&r.endIconLoadingEnd,r[`iconSize${ue(o.size)}`]]}})(({theme:t})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:t.transitions.create(["opacity"],{duration:t.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...t1]})),RA=he("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:t})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(t.vars||t).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),fv=he("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),Si=S.forwardRef(function(r,o){const i=S.useContext(xA),s=S.useContext(CA),c=nl(i,r),d=lt({props:c,name:"MuiButton"}),{children:p,color:m="primary",component:h="button",className:y,disabled:v=!1,disableElevation:w=!1,disableFocusRipple:b=!1,endIcon:E,focusVisibleClassName:C,fullWidth:M=!1,id:D,loading:L=null,loadingIndicator:O,loadingPosition:R="center",size:N="medium",startIcon:j,type:$,variant:P="text",...Y}=d,q=cl(D),Q=O??A.jsx(Vb,{"aria-labelledby":q,color:"inherit",size:16}),x={...d,color:m,component:h,disabled:v,disableElevation:w,disableFocusRipple:b,fullWidth:M,loading:L,loadingIndicator:Q,loadingPosition:R,size:N,type:$,variant:P},H=TA(x),X=(j||L&&R==="start")&&A.jsx(wA,{className:H.startIcon,ownerState:x,children:j||A.jsx(fv,{className:H.loadingIconPlaceholder,ownerState:x})}),W=(E||L&&R==="end")&&A.jsx(AA,{className:H.endIcon,ownerState:x,children:E||A.jsx(fv,{className:H.loadingIconPlaceholder,ownerState:x})}),k=s||"",I=typeof L=="boolean"?A.jsx("span",{className:H.loadingWrapper,style:{display:"contents"},children:L&&A.jsx(RA,{className:H.loadingIndicator,ownerState:x,children:Q})}):null,{root:J,...ae}=H;return A.jsxs(EA,{ownerState:x,className:Oe(i.className,H.root,y,k),component:h,disabled:v||L,focusRipple:!b,focusVisibleClassName:Oe(H.focusVisible,C),ref:o,type:$,id:L?q:D,...Y,classes:ae,children:[X,R!=="end"&&I,p,R==="end"&&I,W]})}),mp=typeof _p({})=="function",MA=(t,r)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...r&&!t.vars&&{colorScheme:t.palette.mode}}),OA=t=>({color:(t.vars||t).palette.text.primary,...t.typography.body1,backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}}),n1=(t,r=!1)=>{const o={};r&&t.colorSchemes&&typeof t.getColorSchemeSelector=="function"&&Object.entries(t.colorSchemes).forEach(([c,d])=>{const p=t.getColorSchemeSelector(c);p.startsWith("@")?o[p]={":root":{colorScheme:d.palette?.mode}}:o[p.replace(/\s*&/,"")]={colorScheme:d.palette?.mode}});let i={html:MA(t,r),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:{margin:0,...OA(t),"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}},...o};const s=t.components?.MuiCssBaseline?.styleOverrides;return s&&(i=[i,s]),i},bu="mui-ecs",zA=t=>{const r=n1(t,!1),o=Array.isArray(r)?r[0]:r;return!t.vars&&o&&(o.html[`:root:has(${bu})`]={colorScheme:t.palette.mode}),t.colorSchemes&&Object.entries(t.colorSchemes).forEach(([i,s])=>{const c=t.getColorSchemeSelector(i);c.startsWith("@")?o[c]={[`:root:not(:has(.${bu}))`]:{colorScheme:s.palette?.mode}}:o[c.replace(/\s*&/,"")]={[`&:not(:has(.${bu}))`]:{colorScheme:s.palette?.mode}}}),r},kA=_p(mp?({theme:t,enableColorScheme:r})=>n1(t,r):({theme:t})=>zA(t));function NA(t){const r=lt({props:t,name:"MuiCssBaseline"}),{children:o,enableColorScheme:i=!1}=r;return A.jsxs(S.Fragment,{children:[mp&&A.jsx(kA,{enableColorScheme:i}),!mp&&!i&&A.jsx("span",{className:bu,style:{display:"none"}}),o]})}function a1(t=window){const r=t.document.documentElement.clientWidth;return t.innerWidth-r}function DA(t){const r=Kt(t);return r.body===t?Wa(t).innerWidth>r.documentElement.clientWidth:t.scrollHeight>t.clientHeight}function xi(t,r){r?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function dv(t){return parseFloat(Wa(t).getComputedStyle(t).paddingRight)||0}function jA(t){const o=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(t.tagName),i=t.tagName==="INPUT"&&t.getAttribute("type")==="hidden";return o||i}function pv(t,r,o,i,s){const c=[r,o,...i];[].forEach.call(t.children,d=>{const p=!c.includes(d),m=!jA(d);p&&m&&xi(d,s)})}function Pd(t,r){let o=-1;return t.some((i,s)=>r(i)?(o=s,!0):!1),o}function BA(t,r){const o=[],i=t.container;if(!r.disableScrollLock){if(DA(i)){const d=a1(Wa(i));o.push({value:i.style.paddingRight,property:"padding-right",el:i}),i.style.paddingRight=`${dv(i)+d}px`;const p=Kt(i).querySelectorAll(".mui-fixed");[].forEach.call(p,m=>{o.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${dv(m)+d}px`})}let c;if(i.parentNode instanceof DocumentFragment)c=Kt(i).body;else{const d=i.parentElement,p=Wa(i);c=d?.nodeName==="HTML"&&p.getComputedStyle(d).overflowY==="scroll"?d:i}o.push({value:c.style.overflow,property:"overflow",el:c},{value:c.style.overflowX,property:"overflow-x",el:c},{value:c.style.overflowY,property:"overflow-y",el:c}),c.style.overflow="hidden"}return()=>{o.forEach(({value:c,el:d,property:p})=>{c?d.style.setProperty(p,c):d.style.removeProperty(p)})}}function LA(t){const r=[];return[].forEach.call(t.children,o=>{o.getAttribute("aria-hidden")==="true"&&r.push(o)}),r}class _A{constructor(){this.modals=[],this.containers=[]}add(r,o){let i=this.modals.indexOf(r);if(i!==-1)return i;i=this.modals.length,this.modals.push(r),r.modalRef&&xi(r.modalRef,!1);const s=LA(o);pv(o,r.mount,r.modalRef,s,!0);const c=Pd(this.containers,d=>d.container===o);return c!==-1?(this.containers[c].modals.push(r),i):(this.containers.push({modals:[r],container:o,restore:null,hiddenSiblings:s}),i)}mount(r,o){const i=Pd(this.containers,c=>c.modals.includes(r)),s=this.containers[i];s.restore||(s.restore=BA(s,o))}remove(r,o=!0){const i=this.modals.indexOf(r);if(i===-1)return i;const s=Pd(this.containers,d=>d.modals.includes(r)),c=this.containers[s];if(c.modals.splice(c.modals.indexOf(r),1),this.modals.splice(i,1),c.modals.length===0)c.restore&&c.restore(),r.modalRef&&xi(r.modalRef,o),pv(c.container,r.mount,r.modalRef,c.hiddenSiblings,!1),this.containers.splice(s,1);else{const d=c.modals[c.modals.length-1];d.modalRef&&xi(d.modalRef,!1)}return i}isTopModal(r){return this.modals.length>0&&this.modals[this.modals.length-1]===r}}const mv="data-mui-focusable";function $A(t){return t?t.hasAttribute(mv)?t:t.querySelector(`[${mv}]`):null}const HA=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function UA(t){const r=parseInt(t.getAttribute("tabindex")||"",10);return Number.isNaN(r)?t.contentEditable==="true"||(t.nodeName==="AUDIO"||t.nodeName==="VIDEO"||t.nodeName==="DETAILS")&&t.getAttribute("tabindex")===null?0:t.tabIndex:r}function PA(t){if(t.tagName!=="INPUT"||t.type!=="radio"||!t.name)return!1;const r=i=>t.ownerDocument.querySelector(`input[type="radio"]${i}`);let o=r(`[name="${t.name}"]:checked`);return o||(o=r(`[name="${t.name}"]`)),o!==t}function VA(t){return!(t.disabled||t.tagName==="INPUT"&&t.type==="hidden"||PA(t))}function qA(t){const r=[],o=[];return Array.from(t.querySelectorAll(HA)).forEach((i,s)=>{const c=UA(i);c===-1||!VA(i)||(c===0?r.push(i):o.push({documentOrder:s,tabIndex:c,node:i}))}),o.sort((i,s)=>i.tabIndex===s.tabIndex?i.documentOrder-s.documentOrder:i.tabIndex-s.tabIndex).map(i=>i.node).concat(r)}function YA(){return!0}function IA(t){const{children:r,disableAutoFocus:o=!1,disableEnforceFocus:i=!1,disableRestoreFocus:s=!1,getTabbable:c=qA,isEnabled:d=YA,open:p}=t,m=S.useRef(!1),h=S.useRef(null),y=S.useRef(null),v=S.useRef(null),w=S.useRef(null),b=S.useRef(!1),E=S.useRef(null),C=Zt(fl(r),E),M=S.useRef(null);S.useEffect(()=>{!p||!E.current||(b.current=!o)},[o,p]),S.useEffect(()=>{if(m.current=!1,!p||!E.current)return;const O=Kt(E.current),R=Er(O),N=$A(E.current)??E.current;return Ou(E.current,R)||(N.hasAttribute("tabIndex")||N.setAttribute("tabIndex","-1"),b.current&&N.focus()),()=>{s||(v.current&&v.current.focus&&(m.current=!0,v.current.focus()),v.current=null)}},[p]),S.useEffect(()=>{if(!p||!E.current)return;const O=Kt(E.current),R=$=>{if(M.current=$,i||!d()||$.key!=="Tab")return;Er(O)===E.current&&$.shiftKey&&(m.current=!0,y.current&&y.current.focus())},N=()=>{const $=E.current;if($===null)return;const P=Er(O);if(!O.hasFocus()||!d()||m.current){m.current=!1;return}if(Ou($,P)||i&&P!==h.current&&P!==y.current)return;if(P!==w.current)w.current=null;else if(w.current!==null)return;if(!b.current)return;let Y=[];if((P===h.current||P===y.current)&&(Y=c(E.current)),Y.length>0){const q=!!(M.current?.shiftKey&&M.current?.key==="Tab"),Q=Y[0],x=Y[Y.length-1];typeof Q!="string"&&typeof x!="string"&&(q?x.focus():Q.focus())}else $.focus()};O.addEventListener("focusin",N),O.addEventListener("keydown",R,!0);const j=setInterval(()=>{const $=Er(O);$&&$.tagName==="BODY"&&N()},50);return()=>{clearInterval(j),O.removeEventListener("focusin",N),O.removeEventListener("keydown",R,!0)}},[o,i,s,d,p,c]);const D=O=>{v.current===null&&(v.current=O.relatedTarget),b.current=!0,w.current=O.target;const R=r.props.onFocus;R&&R(O)},L=O=>{v.current===null&&(v.current=O.relatedTarget),b.current=!0};return A.jsxs(S.Fragment,{children:[A.jsx("div",{tabIndex:p?0:-1,onFocus:L,ref:h,"data-testid":"sentinelStart"}),S.cloneElement(r,{ref:C,onFocus:D}),A.jsx("div",{tabIndex:p?0:-1,onFocus:L,ref:y,"data-testid":"sentinelEnd"})]})}function GA(t){return typeof t=="function"?t():t}function XA(t){return t?t.props.hasOwnProperty("in"):!1}const hv=()=>{},ou=new _A;function FA(t){const{container:r,disableEscapeKeyDown:o=!1,disableScrollLock:i=!1,closeAfterTransition:s=!1,onTransitionEnter:c,onTransitionExited:d,children:p,onClose:m,open:h,rootRef:y}=t,v=S.useRef({}),w=S.useRef(null),b=S.useRef(null),E=Zt(b,y),[C,M]=S.useState(!h),D=XA(p);let L=!0;(t["aria-hidden"]==="false"||t["aria-hidden"]===!1)&&(L=!1);const O=()=>Kt(w.current),R=()=>(v.current.modalRef=b.current,v.current.mount=w.current,v.current),N=()=>{ou.mount(R(),{disableScrollLock:i}),b.current&&(b.current.scrollTop=0)},j=Jn(()=>{const W=GA(r)||O().body;ou.add(R(),W),b.current&&N()}),$=()=>ou.isTopModal(R()),P=Jn(W=>{w.current=W,W&&(h&&$()?N():b.current&&xi(b.current,L))}),Y=S.useCallback(()=>{ou.remove(R(),L)},[L]);S.useEffect(()=>()=>{Y()},[Y]),S.useEffect(()=>{h?j():(!D||!s)&&Y()},[h,Y,D,s,j]);const q=W=>k=>{W.onKeyDown?.(k),!(k.key!=="Escape"||k.which===229||!$())&&(o||(k.stopPropagation(),m&&m(k,"escapeKeyDown")))},Q=W=>k=>{W.onClick?.(k),k.target===k.currentTarget&&m&&m(k,"backdropClick")};return{getRootProps:(W={})=>{const k=yi(t);delete k.onTransitionEnter,delete k.onTransitionExited;const I={...k,...W};return{role:"presentation",...I,onKeyDown:q(I),ref:E}},getBackdropProps:(W={})=>{const k=W;return{"aria-hidden":!0,...k,onClick:Q(k),open:h}},getTransitionProps:()=>{const W=()=>{M(!1),c&&c()},k=()=>{M(!0),d&&d(),s&&Y()};return{onEnter:P0(W,p?.props.onEnter??hv),onExited:P0(k,p?.props.onExited??hv)}},rootRef:E,portalRef:P,isTopModal:$,exited:C,hasTransition:D}}function KA(t){return at("MuiModal",t)}rt("MuiModal",["root","hidden","backdrop"]);const QA=t=>{const{open:r,exited:o,classes:i}=t;return ot({root:["root",!r&&o&&"hidden"],backdrop:["backdrop"]},KA,i)},ZA=he("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,!o.open&&o.exited&&r.hidden]}})(Qe(({theme:t})=>({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:r})=>!r.open&&r.exited,style:{visibility:"hidden"}}]}))),WA=he(yA,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),JA=S.forwardRef(function(r,o){const i=lt({name:"MuiModal",props:r}),{BackdropComponent:s=WA,BackdropProps:c,classes:d,className:p,closeAfterTransition:m=!1,children:h,container:y,component:v,components:w={},componentsProps:b={},disableAutoFocus:E=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:M=!1,disablePortal:D=!1,disableRestoreFocus:L=!1,disableScrollLock:O=!1,hideBackdrop:R=!1,keepMounted:N=!1,onClose:j,onTransitionEnter:$,onTransitionExited:P,open:Y,slotProps:q={},slots:Q={},theme:x,...H}=i,X={...i,closeAfterTransition:m,disableAutoFocus:E,disableEnforceFocus:C,disableEscapeKeyDown:M,disablePortal:D,disableRestoreFocus:L,disableScrollLock:O,hideBackdrop:R,keepMounted:N},{getRootProps:W,getBackdropProps:k,getTransitionProps:I,portalRef:J,isTopModal:ae,exited:pe,hasTransition:z}=FA({...X,rootRef:o}),V={...X,exited:pe},ne=QA(V),le={};if(h.props.tabIndex===void 0&&(le.tabIndex="-1"),z){const{onEnter:xe,onExited:Ae}=I();le.onEnter=xe,le.onExited=Ae}const ce={slots:{root:w.Root,backdrop:w.Backdrop,...Q},slotProps:{...b,...q}},[se,de]=Tt("root",{ref:o,elementType:ZA,externalForwardedProps:{...ce,...H,component:v},getSlotProps:W,ownerState:V,className:Oe(p,ne?.root,!V.open&&V.exited&&ne?.hidden)}),[ze,ye]=Tt("backdrop",{ref:c?.ref,elementType:s,externalForwardedProps:ce,shouldForwardComponentProp:!0,additionalProps:c,getSlotProps:xe=>k({...xe,onClick:Ae=>{xe?.onClick&&xe.onClick(Ae)}}),className:Oe(c?.className,ne?.backdrop),ownerState:V});return!N&&!Y&&(!z||pe)?null:A.jsx(Jb,{ref:J,container:y,disablePortal:D,children:A.jsxs(se,{...de,children:[!R&&s?A.jsx(ze,{...ye}):null,A.jsx(IA,{disableEnforceFocus:C,disableAutoFocus:E,disableRestoreFocus:L,isEnabled:ae,open:Y,children:S.cloneElement(h,le)})]})})}),eR=t=>{const{classes:r,disableUnderline:o,startAdornment:i,endAdornment:s,size:c,hiddenLabel:d,multiline:p}=t,m={root:["root",!o&&"underline",i&&"adornedStart",s&&"adornedEnd",c==="small"&&`size${ue(c)}`,d&&"hiddenLabel",p&&"multiline"],input:["input"]},h=ot(m,uA,r);return{...r,...h}},tR=he(sc,{shouldForwardProp:t=>fa(t)||t==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[...lc(t,r),!o.disableUnderline&&r.underline]}})(Qe(({theme:t})=>{const r=t.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i}},[`&.${Fr.focused}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:i},[`&.${Fr.disabled}`]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:c},variants:[{props:({ownerState:d})=>!d.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Fr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Fr.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${t.vars?t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline):o}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Fr.disabled}, .${Fr.error}):before`]:{borderBottom:`1px solid ${(t.vars||t).palette.text.primary}`},[`&.${Fr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Ut()).map(([d])=>({props:{disableUnderline:!1,color:d},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[d]?.main}`}}})),{props:({ownerState:d})=>d.startAdornment,style:{paddingLeft:12}},{props:({ownerState:d})=>d.endAdornment,style:{paddingRight:12}},{props:({ownerState:d})=>d.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:d,size:p})=>d.multiline&&p==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:d})=>d.multiline&&d.hiddenLabel&&d.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),nR=he(uc,{name:"MuiFilledInput",slot:"Input",overridesResolver:ic})(Qe(({theme:t})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:r})=>r.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}},{props:({ownerState:r})=>r.hiddenLabel&&r.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:r})=>r.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Kp=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:c={},componentsProps:d,fullWidth:p=!1,hiddenLabel:m,inputComponent:h="input",multiline:y=!1,slotProps:v,slots:w={},type:b="text",...E}=i,C={...i,disableUnderline:s,fullWidth:p,inputComponent:h,multiline:y,type:b},M=eR(i),D={root:{ownerState:C},input:{ownerState:C}},L=v??d?an(D,v??d):D,O=w.root??c.Root??tR,R=w.input??c.Input??nR;return A.jsx(Fp,{slots:{root:O,input:R},slotProps:L,fullWidth:p,inputComponent:h,multiline:y,ref:o,type:b,...E,classes:M})});Kp.muiName="Input";function aR(t){return at("MuiFormControl",t)}rt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const rR=t=>{const{classes:r,margin:o,fullWidth:i}=t,s={root:["root",o!=="none"&&`margin${ue(o)}`,i&&"fullWidth"]};return ot(s,aR,r)},oR=he("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[`margin${ue(o.margin)}`],o.fullWidth&&r.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),lR=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiFormControl"}),{children:s,className:c,color:d="primary",component:p="div",disabled:m=!1,error:h=!1,focused:y,fullWidth:v=!1,hiddenLabel:w=!1,margin:b="none",required:E=!1,size:C="medium",variant:M="outlined",...D}=i,L={...i,color:d,component:p,disabled:m,error:h,fullWidth:v,hiddenLabel:w,margin:b,required:E,size:C,variant:M},O=rR(L),[R,N]=S.useState(()=>{let W=!1;return s&&S.Children.forEach(s,k=>{if(!Hd(k,["Input","Select"]))return;const I=Hd(k,["Select"])?k.props.input:k;I&&rA(I.props)&&(W=!0)}),W}),[j,$]=S.useState(()=>{let W=!1;return s&&S.Children.forEach(s,k=>{Hd(k,["Input","Select"])&&(Nu(k.props,!0)||Nu(k.props.inputProps,!0))&&(W=!0)}),W}),[P,Y]=S.useState(!1);m&&P&&Y(!1);const q=y!==void 0&&!m?y:P;let Q;S.useRef(!1);const x=S.useCallback(()=>{$(!0)},[]),H=S.useCallback(()=>{$(!1)},[]),X=S.useMemo(()=>({adornedStart:R,setAdornedStart:N,color:d,disabled:m,error:h,filled:j,focused:q,fullWidth:v,hiddenLabel:w,size:C,onBlur:()=>{Y(!1)},onFocus:()=>{Y(!0)},onEmpty:H,onFilled:x,registerEffect:Q,required:E,variant:M}),[R,d,m,h,j,q,v,w,Q,H,x,E,C,M]);return A.jsx(Xp.Provider,{value:X,children:A.jsx(oR,{as:p,ownerState:L,className:Oe(O.root,c),ref:o,...D,children:s})})});function iR(t){return at("MuiFormHelperText",t)}const gv=rt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var yv;const sR=t=>{const{classes:r,contained:o,size:i,disabled:s,error:c,filled:d,focused:p,required:m}=t,h={root:["root",s&&"disabled",c&&"error",i&&`size${ue(i)}`,o&&"contained",p&&"focused",d&&"filled",m&&"required"]};return ot(h,iR,r)},uR=he("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.size&&r[`size${ue(o.size)}`],o.contained&&r.contained,o.filled&&r.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gv.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${gv.error}`]:{color:(t.vars||t).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:r})=>r.contained,style:{marginLeft:14,marginRight:14}}]}))),cR=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiFormHelperText"}),{children:s,className:c,component:d="p",disabled:p,error:m,filled:h,focused:y,margin:v,required:w,variant:b,...E}=i,C=pl(),M=dl({props:i,muiFormControl:C,states:["variant","size","disabled","error","filled","focused","required"]}),D={...i,component:d,contained:M.variant==="filled"||M.variant==="outlined",variant:M.variant,size:M.size,disabled:M.disabled,error:M.error,filled:M.filled,focused:M.focused,required:M.required};delete D.ownerState;const L=sR(D);return A.jsx(uR,{as:d,className:Oe(L.root,c),ref:o,...E,ownerState:D,children:s===" "?yv||(yv=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):s})});function fR(t){return at("MuiFormLabel",t)}const Ci=rt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),dR=t=>{const{classes:r,color:o,focused:i,disabled:s,error:c,filled:d,required:p}=t,m={root:["root",`color${ue(o)}`,s&&"disabled",c&&"error",d&&"filled",i&&"focused",p&&"required"],asterisk:["asterisk",c&&"error"]};return ot(m,fR,r)},pR=he("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,o.color==="secondary"&&r.colorSecondary,o.filled&&r.filled]}})(Qe(({theme:t})=>({color:(t.vars||t).palette.text.secondary,...t.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{[`&.${Ci.focused}`]:{color:(t.vars||t).palette[r].main}}})),{props:{},style:{[`&.${Ci.disabled}`]:{color:(t.vars||t).palette.text.disabled},[`&.${Ci.error}`]:{color:(t.vars||t).palette.error.main}}}]}))),mR=he("span",{name:"MuiFormLabel",slot:"Asterisk"})(Qe(({theme:t})=>({[`&.${Ci.error}`]:{color:(t.vars||t).palette.error.main}}))),hR=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiFormLabel"}),{children:s,className:c,color:d,component:p="label",disabled:m,error:h,filled:y,focused:v,required:w,...b}=i,E=pl(),C=dl({props:i,muiFormControl:E,states:["color","required","focused","disabled","error","filled"]}),M={...i,color:C.color||"primary",component:p,disabled:C.disabled,error:C.error,filled:C.filled,focused:C.focused,required:C.required},D=dR(M);return A.jsxs(pR,{as:p,ownerState:M,className:Oe(D.root,c),ref:o,...b,children:[s,C.required&&A.jsxs(mR,{ownerState:M,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]})});function Ti(t){return`scale(${t}, ${t**2})`}const gR={entering:{opacity:1,transform:Ti(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Ti(.75)},exited:{opacity:0,transform:Ti(.75)}},yR={opacity:0,transform:Ti(.75),visibility:"hidden"},ju=S.forwardRef(function(r,o){const{addEndListener:i,appear:s=!0,children:c,easing:d,in:p,onEnter:m,onEntered:h,onEntering:y,onExit:v,onExited:w,onExiting:b,style:E,timeout:C="auto",...M}=r,D=Wo(),L=S.useRef(),O=An(),R=S.useRef(null),N=Zt(R,fl(c),o),j=Zn(R,y),$=Zn(R,(H,X)=>{_b(H);const{duration:W,delay:k,easing:I}=Ru({style:E,timeout:C,easing:d},{mode:"enter"});let J;C==="auto"?(J=O.transitions.getAutoHeightDuration(H.clientHeight),L.current=J):J=W,H.style.transition=[O.transitions.create("opacity",{duration:J,delay:k}),O.transitions.create("transform",{duration:J*.666,delay:k,easing:I})].join(","),m&&m(H,X)}),P=Zn(R,h),Y=Zn(R,b),q=Zn(R,H=>{const{duration:X,delay:W,easing:k}=Ru({style:E,timeout:C,easing:d},{mode:"exit"});let I;C==="auto"?(I=O.transitions.getAutoHeightDuration(H.clientHeight),L.current=I):I=X,H.style.transition=[O.transitions.create("opacity",{duration:I,delay:W}),O.transitions.create("transform",{duration:I*.666,delay:W||I*.333,easing:k})].join(","),H.style.opacity=0,H.style.transform=Ti(.75),v&&v(H)}),Q=Zn(R,H=>{H.style.transition="",w&&w(H)}),x=H=>{C==="auto"&&D.start(L.current||0,H),i&&i(R.current,H)};return A.jsx(Ra,{appear:s,in:p,nodeRef:R,onEnter:$,onEntered:P,onEntering:j,onExit:q,onExited:Q,onExiting:Y,addEndListener:x,timeout:C==="auto"?null:C,...M,children:(H,{ownerState:X,...W})=>{const k=$b(H,p,gR,yR,E,c.props.style);return S.cloneElement(c,{style:k,ref:N,...W})}})});ju&&(ju.muiSupportAuto=!0);const vR=t=>{const{classes:r,disableUnderline:o}=t,s=ot({root:["root",!o&&"underline"],input:["input"]},iA,r);return{...r,...s}},bR=he(sc,{shouldForwardProp:t=>fa(t)||t==="classes",name:"MuiInput",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[...lc(t,r),!o.disableUnderline&&r.underline]}})(Qe(({theme:t})=>{let o=t.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(o=t.alpha(t.vars.palette.common.onBackground,t.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:i})=>i.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${si.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${si.error}`]:{"&::before, &::after":{borderBottomColor:(t.vars||t).palette.error.main}},"&::before":{borderBottom:`1px solid ${o}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${si.disabled}, .${si.error}):before`]:{borderBottom:`2px solid ${(t.vars||t).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${o}`}},[`&.${si.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(t.palette).filter(Ut()).map(([i])=>({props:{color:i,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(t.vars||t).palette[i].main}`}}}))]}})),SR=he(uc,{name:"MuiInput",slot:"Input",overridesResolver:ic})({}),Qp=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiInput"}),{disableUnderline:s=!1,components:c={},componentsProps:d,fullWidth:p=!1,inputComponent:m="input",multiline:h=!1,slotProps:y,slots:v={},type:w="text",...b}=i,E=vR(i),M={root:{ownerState:{disableUnderline:s}}},D=y??d?an(y??d,M):M,L=v.root??c.Root??bR,O=v.input??c.Input??SR;return A.jsx(Fp,{slots:{root:L,input:O},slotProps:D,fullWidth:p,inputComponent:m,multiline:h,ref:o,type:w,...b,classes:E})});Qp.muiName="Input";function xR(t){return at("MuiInputLabel",t)}rt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const CR=t=>{const{classes:r,formControl:o,size:i,shrink:s,disableAnimation:c,variant:d,required:p}=t,m={root:["root",o&&"formControl",!c&&"animated",s&&"shrink",i&&i!=="medium"&&`size${ue(i)}`,d],asterisk:[p&&"asterisk"]},h=ot(m,xR,r);return{...r,...h}},TR=he(hR,{shouldForwardProp:t=>fa(t)||t==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[{[`& .${Ci.asterisk}`]:r.asterisk},r.root,o.formControl&&r.formControl,o.size==="small"&&r.sizeSmall,o.shrink&&r.shrink,!o.disableAnimation&&r.animated,o.focused&&r.focused,r[o.variant]]}})(Qe(({theme:t})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:r})=>r.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:r})=>r.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:r})=>!r.disableAnimation,style:{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:r,ownerState:o})=>r==="filled"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:r,ownerState:o,size:i})=>r==="filled"&&o.shrink&&i==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:r,ownerState:o})=>r==="outlined"&&o.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),ER=S.forwardRef(function(r,o){const i=lt({name:"MuiInputLabel",props:r}),{disableAnimation:s=!1,margin:c,shrink:d,variant:p,className:m,...h}=i,y=pl();let v=d;typeof v>"u"&&y&&(v=y.filled||y.focused||y.adornedStart);const w=dl({props:i,muiFormControl:y,states:["size","variant","required","focused"]}),b={...i,disableAnimation:s,formControl:y,shrink:v,size:w.size,variant:w.variant,required:w.required,focused:w.focused},E=CR(b);return A.jsx(TR,{"data-shrink":v,ref:o,className:Oe(E.root,m),...h,ownerState:b,classes:E})}),wR=S.createContext({});function AR(t){return at("MuiList",t)}rt("MuiList",["root","padding","dense","subheader"]);const RR=t=>{const{classes:r,disablePadding:o,dense:i,subheader:s}=t;return ot({root:["root",!o&&"padding",i&&"dense",s&&"subheader"]},AR,r)},MR=he("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,!o.disablePadding&&r.padding,o.dense&&r.dense,o.subheader&&r.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>t.subheader,style:{paddingTop:0}}]}),OR=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiList"}),{children:s,className:c,component:d="ul",dense:p=!1,disablePadding:m=!1,subheader:h,...y}=i,v=S.useMemo(()=>({dense:p}),[p]),w={...i,component:d,dense:p,disablePadding:m},b=RR(w);return A.jsx(wR.Provider,{value:v,children:A.jsxs(MR,{as:d,className:Oe(b.root,c),ref:o,ownerState:w,...y,children:[h,s]})})});function Vd(t,r,o){return t===r?t.firstChild:r&&r.nextElementSibling?r.nextElementSibling:o?null:t.firstChild}function vv(t,r,o){return t===r?o?t.firstChild:t.lastChild:r&&r.previousElementSibling?r.previousElementSibling:o?null:t.lastChild}function r1(t,r){if(r===void 0)return!0;let o=t.innerText;return o===void 0&&(o=t.textContent),o=o.trim().toLowerCase(),o.length===0?!1:r.repeating?o[0]===r.keys[0]:o.startsWith(r.keys.join(""))}function ui(t,r,o,i,s,c){let d=!1,p=s(t,r,r?o:!1);for(;p;){if(p===t.firstChild){if(d)return!1;d=!0}const m=i?!1:p.disabled||p.getAttribute("aria-disabled")==="true";if(!p.hasAttribute("tabindex")||!r1(p,c)||m)p=s(t,p,o);else return p.focus(),!0}return!1}const zR=S.forwardRef(function(r,o){const{actions:i,autoFocus:s=!1,autoFocusItem:c=!1,children:d,className:p,disabledItemsFocusable:m=!1,disableListWrap:h=!1,onKeyDown:y,variant:v="selectedMenu",...w}=r,b=S.useRef(null),E=S.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});wn(()=>{s&&b.current.focus()},[s]),S.useImperativeHandle(i,()=>({adjustStyleForScrollbar:(O,{direction:R})=>{const N=!b.current.style.width;if(O.clientHeight{const R=b.current,N=O.key;if(O.ctrlKey||O.metaKey||O.altKey){y&&y(O);return}const $=Er(Kt(R));if(N==="ArrowDown")O.preventDefault(),ui(R,$,h,m,Vd);else if(N==="ArrowUp")O.preventDefault(),ui(R,$,h,m,vv);else if(N==="Home")O.preventDefault(),ui(R,null,h,m,Vd);else if(N==="End")O.preventDefault(),ui(R,null,h,m,vv);else if(N.length===1){const P=E.current,Y=N.toLowerCase(),q=performance.now();P.keys.length>0&&(q-P.lastTime>500?(P.keys=[],P.repeating=!0,P.previousKeyMatched=!0):P.repeating&&Y!==P.keys[0]&&(P.repeating=!1)),P.lastTime=q,P.keys.push(Y);const Q=$&&!P.repeating&&r1($,P);P.previousKeyMatched&&(Q||ui(R,$,!1,m,Vd,P))?O.preventDefault():P.previousKeyMatched=!1}y&&y(O)},M=Zt(b,o);let D=-1;S.Children.forEach(d,(O,R)=>{if(!S.isValidElement(O)){D===R&&(D+=1,D>=d.length&&(D=-1));return}O.props.disabled||(v==="selectedMenu"&&O.props.selected||D===-1)&&(D=R),D===R&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(D+=1,D>=d.length&&(D=-1))});const L=S.Children.map(d,(O,R)=>{if(R===D){const N={};return c&&(N.autoFocus=!0),O.props.tabIndex===void 0&&v==="selectedMenu"&&(N.tabIndex=0),S.cloneElement(O,N)}return O});return A.jsx(OR,{role:"menu",ref:M,className:p,onKeyDown:C,tabIndex:s?0:-1,...w,children:L})});function kR(t){return at("MuiPopover",t)}rt("MuiPopover",["root","paper"]);function bv(t,r){let o=0;return typeof r=="number"?o=r:r==="center"?o=t.height/2:r==="bottom"&&(o=t.height),o}function Sv(t,r){let o=0;return typeof r=="number"?o=r:r==="center"?o=t.width/2:r==="right"&&(o=t.width),o}function xv(t){return[t.horizontal,t.vertical].map(r=>typeof r=="number"?`${r}px`:r).join(" ")}function lu(t){return typeof t=="function"?t():t}const NR=t=>{const{classes:r}=t;return ot({root:["root"],paper:["paper"]},kR,r)},DR=he(JA,{name:"MuiPopover",slot:"Root"})({}),o1=he(Ma,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jR=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiPopover"}),{action:s,anchorEl:c,anchorOrigin:d={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:h,className:y,container:v,elevation:w=8,marginThreshold:b=16,open:E,PaperProps:C={},slots:M={},slotProps:D={},transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:R="auto",TransitionProps:N={},disableScrollLock:j=!1,...$}=i,P=S.useRef(),Y={...i,anchorOrigin:d,anchorReference:m,elevation:w,marginThreshold:b,transformOrigin:L,TransitionComponent:O,transitionDuration:R,TransitionProps:N},q=NR(Y),Q=S.useCallback(()=>{if(m==="anchorPosition")return p;const xe=lu(c),Re=(xe&&xe.nodeType===1?xe:Kt(P.current).body).getBoundingClientRect();return{top:Re.top+bv(Re,d.vertical),left:Re.left+Sv(Re,d.horizontal)}},[c,d.horizontal,d.vertical,p,m]),x=S.useCallback(xe=>({vertical:bv(xe,L.vertical),horizontal:Sv(xe,L.horizontal)}),[L.horizontal,L.vertical]),H=S.useCallback(xe=>{const Ae={width:xe.offsetWidth,height:xe.offsetHeight},Re=x(Ae);if(m==="none")return{top:null,left:null,transformOrigin:xv(Re)};const Le=Q();let be=Le.top-Re.vertical,$e=Le.left-Re.horizontal;const Ze=be+Ae.height,De=$e+Ae.width,Pe=Wa(lu(c)),Ie=Pe.innerHeight-b,We=Pe.innerWidth-b;if(b!==null&&beIe){const Ve=Ze-Ie;be-=Ve,Re.vertical+=Ve}if(b!==null&&$eWe){const Ve=De-We;$e-=Ve,Re.horizontal+=Ve}return{top:`${Math.round(be)}px`,left:`${Math.round($e)}px`,transformOrigin:xv(Re)}},[c,m,Q,x,b]),[X,W]=S.useState(E),k=S.useCallback(()=>{const xe=P.current;if(!xe)return;const Ae=H(xe);Ae.top!==null&&xe.style.setProperty("top",Ae.top),Ae.left!==null&&(xe.style.left=Ae.left),xe.style.transformOrigin=Ae.transformOrigin,W(!0)},[H]);S.useEffect(()=>(j&&window.addEventListener("scroll",k),()=>window.removeEventListener("scroll",k)),[c,j,k]);const I=()=>{k()},J=()=>{W(!1)};S.useEffect(()=>{E&&k()}),S.useImperativeHandle(s,()=>E?{updatePosition:()=>{k()}}:null,[E,k]),S.useEffect(()=>{if(!E)return;const xe=Nb(()=>{k()}),Ae=Wa(lu(c));return Ae.addEventListener("resize",xe),()=>{xe.clear(),Ae.removeEventListener("resize",xe)}},[c,E,k]);let ae=R;const pe={slots:{transition:O,...M},slotProps:{transition:N,paper:C,...D}},[z,V]=Tt("transition",{elementType:ju,externalForwardedProps:pe,ownerState:Y,getSlotProps:xe=>({...xe,onEntering:(Ae,Re)=>{xe.onEntering?.(Ae,Re),I()},onExited:Ae=>{xe.onExited?.(Ae),J()}}),additionalProps:{appear:!0,in:E}});R==="auto"&&!z.muiSupportAuto&&(ae=void 0);const ne=v||(c?Kt(lu(c)).body:void 0),[le,{slots:ce,slotProps:se,...de}]=Tt("root",{ref:o,elementType:DR,externalForwardedProps:{...pe,...$},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:M.backdrop},slotProps:{backdrop:R5(typeof D.backdrop=="function"?D.backdrop(Y):D.backdrop,{invisible:!0})},container:ne,open:E},ownerState:Y,className:Oe(q.root,y)}),[ze,ye]=Tt("paper",{ref:P,className:q.paper,elementType:o1,externalForwardedProps:pe,shouldForwardComponentProp:!0,additionalProps:{elevation:w,style:X?void 0:{opacity:0}},ownerState:Y});return A.jsx(le,{...de,...!Ar(le)&&{slots:ce,slotProps:se,disableScrollLock:j},children:A.jsx(z,{...V,timeout:ae,children:A.jsx(ze,{...ye,children:h})})})});function BR(t){return at("MuiMenu",t)}rt("MuiMenu",["root","paper","list"]);const LR={vertical:"top",horizontal:"right"},_R={vertical:"top",horizontal:"left"},$R=t=>{const{classes:r}=t;return ot({root:["root"],paper:["paper"],list:["list"]},BR,r)},HR=he(jR,{shouldForwardProp:t=>fa(t)||t==="classes",name:"MuiMenu",slot:"Root"})({}),UR=he(o1,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),PR=he(zR,{name:"MuiMenu",slot:"List"})({outline:0}),VR=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiMenu"}),{autoFocus:s=!0,children:c,className:d,disableAutoFocusItem:p=!1,MenuListProps:m={},onClose:h,open:y,PaperProps:v={},PopoverClasses:w,transitionDuration:b="auto",TransitionProps:{onEntering:E,...C}={},variant:M="selectedMenu",slots:D={},slotProps:L={},...O}=i,R=tc(),N={...i,autoFocus:s,disableAutoFocusItem:p,MenuListProps:m,onEntering:E,PaperProps:v,transitionDuration:b,TransitionProps:C,variant:M},j=$R(N),$=s&&!p&&y,P=S.useRef(null),Y=(ae,pe)=>{P.current&&P.current.adjustStyleForScrollbar(ae,{direction:R?"rtl":"ltr"}),E&&E(ae,pe)},q=ae=>{ae.key==="Tab"&&(ae.preventDefault(),h&&h(ae,"tabKeyDown"))};let Q=-1;S.Children.map(c,(ae,pe)=>{S.isValidElement(ae)&&(ae.props.disabled||(M==="selectedMenu"&&ae.props.selected||Q===-1)&&(Q=pe))});const x={slots:D,slotProps:{list:m,transition:C,paper:v,...L}},H=ba({elementType:D.root,externalSlotProps:L.root,ownerState:N,className:[j.root,d]}),[X,W]=Tt("paper",{className:j.paper,elementType:UR,externalForwardedProps:x,shouldForwardComponentProp:!0,ownerState:N}),[k,I]=Tt("list",{className:Oe(j.list,m.className),elementType:PR,shouldForwardComponentProp:!0,externalForwardedProps:x,getSlotProps:ae=>({...ae,onKeyDown:pe=>{q(pe),ae.onKeyDown?.(pe)}}),ownerState:N}),J=typeof x.slotProps.transition=="function"?x.slotProps.transition(N):x.slotProps.transition;return A.jsx(HR,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?LR:_R,slots:{root:D.root,paper:X,backdrop:D.backdrop,...D.transition&&{transition:D.transition}},slotProps:{root:H,paper:W,backdrop:typeof L.backdrop=="function"?L.backdrop(N):L.backdrop,transition:{...J,onEntering:(...ae)=>{Y(...ae),J?.onEntering?.(...ae)}}},open:y,ref:o,transitionDuration:b,ownerState:N,...O,classes:w,children:A.jsx(k,{actions:P,autoFocus:s&&(Q===-1||p),autoFocusItem:$,variant:M,...I,children:c})})});function qR(t){return at("MuiNativeSelect",t)}const Zp=rt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),YR=t=>{const{classes:r,variant:o,disabled:i,multiple:s,open:c,error:d}=t,p={select:["select",o,i&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${ue(o)}`,c&&"iconOpen",i&&"disabled"]};return ot(p,qR,r)},l1=he("select",{name:"MuiNativeSelect"})(({theme:t})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Zp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},variants:[{props:({ownerState:r})=>r.variant!=="filled"&&r.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}}]})),IR=he(l1,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:fa,overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.select,r[o.variant],o.error&&r.error,{[`&.${Zp.multiple}`]:r.multiple}]}})({}),i1=he("svg",{name:"MuiNativeSelect"})(({theme:t})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Zp.disabled}`]:{color:(t.vars||t).palette.action.disabled},variants:[{props:({ownerState:r})=>r.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),GR=he(i1,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.icon,o.variant&&r[`icon${ue(o.variant)}`],o.open&&r.iconOpen]}})({}),XR=S.forwardRef(function(r,o){const{className:i,disabled:s,error:c,IconComponent:d,inputRef:p,variant:m="standard",...h}=r,y={...r,disabled:s,variant:m,error:c},v=YR(y);return A.jsxs(S.Fragment,{children:[A.jsx(IR,{ownerState:y,className:Oe(v.select,i),disabled:s,ref:p||o,...h}),r.multiple?null:A.jsx(GR,{as:d,ownerState:y,className:v.icon})]})});function s1(t){return at("MuiSelect",t)}const ci=rt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);function FR(t){return t?t.type==="mousedown"||t.type==="pointerdown"||t.type==="touchstart"?"pointer":t.type==="keydown"||t.type==="click"&&t.detail===0?"keyboard":null:null}function KR(t){return t==null||typeof t=="string"&&!t.trim()}function Cv(t,r){return typeof r=="object"&&r!==null?t===r:String(t)===String(r)}const QR=S.createContext(null),ZR=QR.Provider;var Tv;const WR=he(l1,{name:"MuiSelect",slot:"Select",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[{[`&.${ci.select}`]:r.select},{[`&.${ci.select}`]:r[o.variant]},{[`&.${ci.error}`]:r.error},{[`&.${ci.multiple}`]:r.multiple}]}})({[`&.${ci.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),JR=he(i1,{name:"MuiSelect",slot:"Icon",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.icon,o.variant&&r[`icon${ue(o.variant)}`],o.open&&r.iconOpen]}})({}),eM=he("input",{shouldForwardProp:t=>ac(t)&&t!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"}),tM=t=>{const{classes:r,variant:o,disabled:i,multiple:s,open:c,error:d}=t,p={select:["select",o,i&&"disabled",s&&"multiple",d&&"error"],icon:["icon",`icon${ue(o)}`,c&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return ot(p,s1,r)},nM=S.forwardRef(function(r,o){const{"aria-describedby":i,"aria-label":s,autoFocus:c,autoWidth:d,children:p,className:m,defaultOpen:h,defaultValue:y,disabled:v,displayEmpty:w,error:b=!1,IconComponent:E,inputRef:C,labelId:M,MenuProps:D={},multiple:L,name:O,onBlur:R,onChange:N,onClose:j,onFocus:$,onKeyDown:P,onMouseDown:Y,onOpen:q,open:Q,readOnly:x,renderValue:H,required:X,SelectDisplayProps:W={},tabIndex:k,type:I,value:J,variant:ae="standard",...pe}=r,[z,V]=wu({controlled:J,default:y,name:"Select"}),[ne,le]=wu({controlled:Q,default:h,name:"Select"}),ce=S.useRef(null),se=S.useRef(null),[de,ze]=S.useState(null),{current:ye}=S.useRef(Q!=null),[xe,Ae]=S.useState(),[Re,Le]=S.useState(null),be=Zt(o,C),$e=S.useCallback(Te=>{se.current=Te,Te&&ze(Te)},[]),Ze=de?.parentNode;S.useImperativeHandle(be,()=>({focus:()=>{se.current.focus()},node:ce.current,value:z}),[z]);const De=de!==null&≠S.useEffect(()=>{if(!De||!Ze||d||typeof ResizeObserver>"u")return;const Te=new ResizeObserver(()=>{Ae(Ze.clientWidth)});return Te.observe(Ze),()=>{Te.disconnect()}},[De,Ze,d]),S.useEffect(()=>{h&&ne&&de&&!ye&&(Ae(d?null:Ze.clientWidth),se.current.focus())},[de,d]),S.useEffect(()=>{c&&se.current.focus()},[c]),S.useEffect(()=>{if(!M)return;const Te=Kt(se.current).getElementById(M);if(Te){const Ge=()=>{getSelection().isCollapsed&&se.current.focus()};return Te.addEventListener("click",Ge),()=>{Te.removeEventListener("click",Ge)}}},[M]);const Pe=(Te,Ge)=>{Te?(Le(FR(Ge)),q&&q(Ge)):(Le(null),j&&j(Ge)),ye||(Ae(d?null:Ze.clientWidth),le(Te))},Ie=Te=>{Y?.(Te),Te.button===0&&(Te.preventDefault(),se.current.focus(),Pe(!0,Te))},We=Te=>{Pe(!1,Te)},Ve=S.Children.toArray(p),ge=Te=>{const Ge=Ve.find(wt=>wt.props.value===Te.target.value);Ge!==void 0&&(V(Ge.props.value),N&&N(Te,Ge))},Mt=Te=>Ge=>{let wt;if(Ge.currentTarget.hasAttribute("tabindex")){if(L){wt=Array.isArray(z)?z.slice():[];const nt=z.indexOf(Te.props.value);nt===-1?wt.push(Te.props.value):wt.splice(nt,1)}else wt=Te.props.value;if(Te.props.onClick&&Te.props.onClick(Ge),z!==wt&&(V(wt),N)){const nt=Ge.nativeEvent||Ge,pt=new nt.constructor(nt.type,nt);Object.defineProperty(pt,"target",{writable:!0,value:{value:wt,name:O}}),N(pt,Te)}L||Pe(!1,Ge)}},He=Te=>{x||([" ","ArrowUp","ArrowDown","Enter"].includes(Te.key)&&(Te.preventDefault(),Pe(!0,Te)),P?.(Te))},fe=Te=>{!De&&R&&(Object.defineProperty(Te,"target",{writable:!0,value:{value:z,name:O}}),R(Te))};delete pe["aria-invalid"];let ie,me;const Se=[];let Ce=!1;(Nu({value:z})||w)&&(H?ie=H(z):Ce=!0);const ke=Ve.map(Te=>{if(!S.isValidElement(Te))return null;let Ge;if(L){if(!Array.isArray(z))throw new Error(Za(2));Ge=z.some(wt=>Cv(wt,Te.props.value)),Ge&&Ce&&Se.push(Te.props.children)}else Ge=Cv(z,Te.props.value),Ge&&Ce&&(me=Te.props.children);return S.cloneElement(Te,{"aria-selected":Ge?"true":"false",onClick:Mt(Te),onKeyUp:wt=>{wt.key===" "&&wt.preventDefault(),Te.props.onKeyUp&&Te.props.onKeyUp(wt)},role:"option",selected:Ge,value:void 0,"data-value":Te.props.value})});Ce&&(L?Se.length===0?ie=null:ie=Se.reduce((Te,Ge,wt)=>(Te.push(Ge),wt({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:r})=>!r.withLabel,style:{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})}},{props:({ownerState:r})=>r.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:r})=>r.withLabel&&r.notched,style:{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})}}]})));function oM(t){const{children:r,classes:o,className:i,label:s,notched:c,...d}=t,p=s!=null&&s!=="",m={...t,notched:c,withLabel:p};return A.jsx(aM,{"aria-hidden":!0,className:i,ownerState:m,...d,children:A.jsx(rM,{ownerState:m,children:p?A.jsx("span",{children:s}):Ev||(Ev=A.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const lM=t=>{const{classes:r}=t,i=ot({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},sA,r);return{...r,...i}},iM=he(sc,{shouldForwardProp:t=>fa(t)||t==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:lc})(Qe(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(t.vars||t).shape.borderRadius,[`&:hover .${va.notchedOutline}`]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{[`&:hover .${va.notchedOutline}`]:{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):r}},[`&.${va.focused} .${va.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(t.palette).filter(Ut()).map(([o])=>({props:{color:o},style:{[`&.${va.focused} .${va.notchedOutline}`]:{borderColor:(t.vars||t).palette[o].main}}})),{props:{},style:{[`&.${va.error} .${va.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${va.disabled} .${va.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}}},{props:({ownerState:o})=>o.startAdornment,style:{paddingLeft:14}},{props:({ownerState:o})=>o.endAdornment,style:{paddingRight:14}},{props:({ownerState:o})=>o.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:o,size:i})=>o.multiline&&i==="small",style:{padding:"8.5px 14px"}}]}})),sM=he(oM,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Qe(({theme:t})=>{const r=t.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?t.alpha(t.vars.palette.common.onBackground,.23):r}})),uM=he(uc,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ic})(Qe(({theme:t})=>({padding:"16.5px 14px",...!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:t.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:t.palette.mode==="light"?null:"#fff",caretColor:t.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:r})=>r.multiline,style:{padding:0}},{props:({ownerState:r})=>r.startAdornment,style:{paddingLeft:0}},{props:({ownerState:r})=>r.endAdornment,style:{paddingRight:0}}]}))),Wp=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:d="input",label:p,multiline:m=!1,notched:h,slots:y={},slotProps:v={},type:w="text",...b}=i,E=lM(i),C=pl(),M=dl({props:i,muiFormControl:C,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),D={...i,color:M.color||"primary",disabled:M.disabled,error:M.error,focused:M.focused,formControl:C,fullWidth:c,hiddenLabel:M.hiddenLabel,multiline:m,size:M.size,type:w},L=y.root??s.Root??iM,O=y.input??s.Input??uM,[R,N]=Tt("notchedOutline",{elementType:sM,className:E.notchedOutline,shouldForwardComponentProp:!0,ownerState:D,externalForwardedProps:{slots:y,slotProps:v},additionalProps:{label:p!=null&&p!==""&&M.required?A.jsxs(S.Fragment,{children:[p," ","*"]}):p}});return A.jsx(Fp,{slots:{root:L,input:O},slotProps:v,renderSuffix:j=>A.jsx(R,{...N,notched:typeof h<"u"?h:!!(j.startAdornment||j.filled||j.focused)}),fullWidth:c,inputComponent:d,multiline:m,ref:o,type:w,...b,classes:{...E,notchedOutline:null}})});Wp.muiName="Input";const cM=t=>{const{classes:r}=t,i=ot({root:["root"]},s1,r);return{...r,...i}},Jp={name:"MuiSelect",slot:"Root",shouldForwardProp:t=>fa(t)&&t!=="variant"},fM=he(Qp,Jp)(""),dM=he(Wp,Jp)(""),pM=he(Kp,Jp)(""),u1=S.forwardRef(function(r,o){const i=lt({name:"MuiSelect",props:r}),{autoWidth:s=!1,children:c,classes:d={},className:p,defaultOpen:m=!1,displayEmpty:h=!1,IconComponent:y=cA,id:v,input:w,inputProps:b,label:E,labelId:C,MenuProps:M,multiple:D=!1,native:L=!1,onClose:O,onOpen:R,open:N,renderValue:j,SelectDisplayProps:$,variant:P="outlined",...Y}=i,q=L?XR:nM,Q=pl(),x=dl({props:i,muiFormControl:Q,states:["variant","error"]}),H=x.variant||P,X={...i,variant:H,classes:d},W=cM(X),{root:k,...I}=W,J=w||{standard:A.jsx(fM,{ownerState:X}),outlined:A.jsx(dM,{label:E,ownerState:X}),filled:A.jsx(pM,{ownerState:X})}[H],ae=Zt(o,fl(J));return A.jsx(S.Fragment,{children:S.cloneElement(J,{inputComponent:q,inputProps:{children:c,error:x.error,IconComponent:y,variant:H,type:void 0,multiple:D,...L?{id:v}:{autoWidth:s,defaultOpen:m,displayEmpty:h,labelId:C,MenuProps:M,onClose:O,onOpen:R,open:N,renderValue:j,SelectDisplayProps:{id:v,...$}},...b,classes:b?an(I,b.classes):I,...w?w.props.inputProps:{}},...(D&&L||h)&&H==="outlined"?{notched:!0}:{},ref:ae,className:Oe(J.props.className,p,W.root),...!w&&{variant:H},...Y})})});u1.muiName="Select";const mM={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function hM(t,r,o=(i,s)=>i===s){return t.length===r.length&&t.every((i,s)=>o(i,r[s]))}const gM=2;function Fo(t,r,o,i,s){return o===1?Math.min(t+r,s):Math.max(t-r,i)}function c1(t,r){return t-r}function wv(t,r){const{index:o}=t.reduce((i,s,c)=>{const d=Math.abs(r-s);return i===null||d({left:`${t}%`}),leap:t=>({width:`${t}%`})},"horizontal-reverse":{offset:t=>({right:`${t}%`}),leap:t=>({width:`${t}%`})},vertical:{offset:t=>({bottom:`${t}%`}),leap:t=>({height:`${t}%`})}},xM=t=>t;let cu;function Rv(){return cu===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?cu=CSS.supports("touch-action","none"):cu=!0),cu}function CM(t){const{"aria-labelledby":r,defaultValue:o,disabled:i=!1,disableSwap:s=!1,isRtl:c=!1,marks:d=!1,max:p=100,min:m=0,name:h,onChange:y,onChangeCommitted:v,orientation:w="horizontal",rootRef:b,scale:E=xM,step:C=1,shiftStep:M=10,tabIndex:D,value:L}=t,O=S.useRef(void 0),[R,N]=S.useState(-1),[j,$]=S.useState(-1),[P,Y]=S.useState(!1),q=S.useRef(0),Q=S.useRef(null),[x,H]=wu({controlled:L,default:o??m,name:"Slider"}),X=y&&((fe,ie,me)=>{const Se=fe.nativeEvent||fe,Ce=new Se.constructor(Se.type,Se);Object.defineProperty(Ce,"target",{writable:!0,value:{value:ie,name:h}}),Q.current=ie,y(Ce,ie,me)}),W=Array.isArray(x);let k=W?x.slice().sort(c1):[x];k=k.map(fe=>fe==null?m:Qo(fe,m,p));const I=d===!0&&C!==null?[...Array(Math.floor((p-m)/C)+1)].map((fe,ie)=>({value:m+C*ie})):d||[],J=I.map(fe=>fe.value),[ae,pe]=S.useState(-1),z=S.useRef(null),V=Zt(b,z),ne=fe=>ie=>{const me=Number(ie.currentTarget.getAttribute("data-index"));al(ie.target)&&pe(me),$(me),fe?.onFocus?.(ie)},le=fe=>ie=>{al(ie.target)||pe(-1),$(-1),fe?.onBlur?.(ie)},ce=(fe,ie)=>{const me=Number(fe.currentTarget.getAttribute("data-index")),Se=k[me],Ce=J.indexOf(Se);let ke=ie;if(I&&C==null){const we=J[J.length-1];ke>=we?ke=we:ke<=J[0]?ke=J[0]:ke=keie=>{if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","PageUp","PageDown","Home","End"].includes(ie.key)){ie.preventDefault();const me=Number(ie.currentTarget.getAttribute("data-index")),Se=k[me];let Ce=null;if(C!=null){const ke=ie.shiftKey?M:C;switch(ie.key){case"ArrowUp":Ce=Fo(Se,ke,1,m,p);break;case"ArrowRight":Ce=Fo(Se,ke,c?-1:1,m,p);break;case"ArrowDown":Ce=Fo(Se,ke,-1,m,p);break;case"ArrowLeft":Ce=Fo(Se,ke,c?1:-1,m,p);break;case"PageUp":Ce=Fo(Se,M,1,m,p);break;case"PageDown":Ce=Fo(Se,M,-1,m,p);break;case"Home":Ce=m;break;case"End":Ce=p;break}}else if(I){const ke=J[J.length-1],we=J.indexOf(Se),ut=[c?"ArrowRight":"ArrowLeft","ArrowDown","PageDown","Home"],je=[c?"ArrowLeft":"ArrowRight","ArrowUp","PageUp","End"];ut.includes(ie.key)?we===0?Ce=J[0]:Ce=J[we-1]:je.includes(ie.key)&&(we===J.length-1?Ce=ke:Ce=J[we+1])}Ce!=null&&ce(ie,Ce)}fe?.onKeyDown?.(ie)};wn(()=>{const fe=Er(Kt(z.current));i&&Ou(z.current,fe)&&document.activeElement?.blur()},[i]),i&&R!==-1&&N(-1),i&&ae!==-1&&pe(-1);const de=fe=>ie=>{fe.onChange?.(ie),ce(ie,ie.target.valueAsNumber)},ze=S.useRef(void 0);let ye=w;c&&w==="horizontal"&&(ye+="-reverse");const xe=({finger:fe,move:ie=!1})=>{const{current:me}=z,{width:Se,height:Ce,bottom:ke,left:we}=me.getBoundingClientRect();let ut;ye.startsWith("vertical")?ut=(ke-fe.y)/Ce:ut=(fe.x-we)/Se,ye.includes("-reverse")&&(ut=1-ut);let je;if(je=yM(ut,m,p),C)je=bM(je,C,m);else{const Vt=wv(J,je);je=J[Vt]}je=Qo(je,m,p);let Ye=0;if(W){ie?Ye=ze.current:Ye=wv(k,je),s&&(je=Qo(je,k[Ye-1]||-1/0,k[Ye+1]||1/0));const Vt=je;je=Av({values:k,newValue:je,index:Ye}),s&&ie||(Ye=je.indexOf(Vt),ze.current=Ye)}return{newValue:je,activeIndex:Ye}},Ae=Jn(fe=>{const ie=iu(fe,O);if(!ie)return;if(q.current+=1,fe.type==="mousemove"&&fe.buttons===0){Re(fe);return}const{newValue:me,activeIndex:Se}=xe({finger:ie,move:!0});su({sliderRef:z,activeIndex:Se,setActive:N}),H(me),!P&&q.current>gM&&Y(!0),X&&!uu(me,x)&&X(fe,me,Se)}),Re=Jn(fe=>{const ie=iu(fe,O);if(Y(!1),!ie)return;const{newValue:me}=xe({finger:ie,move:!0});N(-1),fe.type==="touchend"&&$(-1),v&&v(fe,Q.current??me),O.current=void 0,be()}),Le=Jn(fe=>{if(i)return;Rv()||fe.preventDefault();const ie=fe.changedTouches[0];ie!=null&&(O.current=ie.identifier);const me=iu(fe,O);if(me!==!1){const{newValue:Ce,activeIndex:ke}=xe({finger:me});su({sliderRef:z,activeIndex:ke,setActive:N}),H(Ce),X&&!uu(Ce,x)&&X(fe,Ce,ke)}q.current=0;const Se=Kt(z.current);Se.addEventListener("touchmove",Ae,{passive:!0}),Se.addEventListener("touchend",Re,{passive:!0})}),be=S.useCallback(()=>{const fe=Kt(z.current);fe.removeEventListener("mousemove",Ae),fe.removeEventListener("mouseup",Re),fe.removeEventListener("touchmove",Ae),fe.removeEventListener("touchend",Re)},[Re,Ae]);S.useEffect(()=>{const{current:fe}=z;return fe.addEventListener("touchstart",Le,{passive:Rv()}),()=>{fe.removeEventListener("touchstart",Le),be()}},[be,Le]),S.useEffect(()=>{i&&be()},[i,be]);const $e=fe=>ie=>{if(fe.onMouseDown?.(ie),i||ie.defaultPrevented||ie.button!==0)return;ie.preventDefault();const me=iu(ie,O);if(me!==!1){const{newValue:Ce,activeIndex:ke}=xe({finger:me});su({sliderRef:z,activeIndex:ke,setActive:N}),H(Ce),X&&!uu(Ce,x)&&X(ie,Ce,ke)}q.current=0;const Se=Kt(z.current);Se.addEventListener("mousemove",Ae,{passive:!0}),Se.addEventListener("mouseup",Re)},Ze=Bu(W?k[0]:m,m,p),De=Bu(k[k.length-1],m,p)-Ze,Pe=(fe={})=>{const ie=yi(fe),me={onMouseDown:$e(ie||{})},Se={...ie,...me};return{...fe,ref:V,...Se}},Ie=fe=>ie=>{fe.onMouseOver?.(ie);const me=Number(ie.currentTarget.getAttribute("data-index"));$(me)},We=fe=>ie=>{fe.onMouseLeave?.(ie),$(-1)},Ve=(fe={})=>{const ie=yi(fe),me={onMouseOver:Ie(ie||{}),onMouseLeave:We(ie||{})};return{...fe,...ie,...me}},ge=fe=>({pointerEvents:R!==-1&&R!==fe?"none":void 0});let Mt;return w==="vertical"&&(Mt=c?"vertical-rl":"vertical-lr"),{active:R,axis:ye,axisProps:SM,dragging:P,focusedThumbIndex:ae,getHiddenInputProps:(fe={})=>{const ie=yi(fe),me={onChange:de(ie||{}),onFocus:ne(ie||{}),onBlur:le(ie||{}),onKeyDown:se(ie||{})},Se={...ie,...me};return{tabIndex:D,"aria-labelledby":r,"aria-orientation":w,"aria-valuemax":E(p),"aria-valuemin":E(m),name:h,type:"range",min:t.min,max:t.max,step:t.step===null&&t.marks?"any":t.step??void 0,disabled:i,...fe,...Se,style:{...mM,direction:c?"rtl":"ltr",width:"100%",height:"100%",writingMode:Mt}}},getRootProps:Pe,getThumbProps:Ve,marks:I,open:j,range:W,rootRef:V,trackLeap:De,trackOffset:Ze,values:k,getThumbStyle:ge}}const TM=t=>!t||!Ar(t);function EM(t){return at("MuiSlider",t)}const Wn=rt("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),wM=t=>{const{open:r}=t;return{offset:Oe(r&&Wn.valueLabelOpen),circle:Wn.valueLabelCircle,label:Wn.valueLabelLabel}};function AM(t){const{children:r,className:o,value:i}=t,s=wM(t);return r?S.cloneElement(r,{className:r.props.className},A.jsxs(S.Fragment,{children:[r.props.children,A.jsx("span",{className:Oe(s.offset,o),"aria-hidden":!0,children:A.jsx("span",{className:s.circle,children:A.jsx("span",{className:s.label,children:i})})})]})):null}function Mv(t){return t}const RM=he("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[`color${ue(o.color)}`],o.size!=="medium"&&r[`size${ue(o.size)}`],o.marked&&r.marked,o.orientation==="vertical"&&r.vertical,o.track==="inverted"&&r.trackInverted,o.track===!1&&r.trackFalse]}})(Qe(({theme:t})=>({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Wn.disabled}`]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},[`&.${Wn.dragging}`]:{[`& .${Wn.thumb}, & .${Wn.track}`]:{transition:"none"}},variants:[...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{color:(t.vars||t).palette[r].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}))),MM=he("span",{name:"MuiSlider",slot:"Rail"})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),OM=he("span",{name:"MuiSlider",slot:"Track"})(Qe(({theme:t})=>({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r,track:"inverted"},style:{...t.vars?{backgroundColor:t.vars.palette.Slider[`${r}Track`],borderColor:t.vars.palette.Slider[`${r}Track`]}:{backgroundColor:t.lighten(t.palette[r].main,.62),borderColor:t.lighten(t.palette[r].main,.62),...t.applyStyles("dark",{backgroundColor:t.darken(t.palette[r].main,.5)}),...t.applyStyles("dark",{borderColor:t.darken(t.palette[r].main,.5)})}}}))]}))),zM=he("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.thumb,r[`thumbColor${ue(o.color)}`],o.size!=="medium"&&r[`thumbSize${ue(o.size)}`]]}})(Qe(({theme:t})=>({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Wn.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{[`&:hover, &.${Wn.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${t.alpha((t.vars||t).palette[r].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${Wn.active}`]:{boxShadow:`0px 0px 0px 14px ${t.alpha((t.vars||t).palette[r].main,.16)}`}}}))]}))),kM=he(AM,{name:"MuiSlider",slot:"ValueLabel"})(Qe(({theme:t})=>({zIndex:1,whiteSpace:"nowrap",...t.typography.body2,fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Wn.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Wn.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]}))),NM=he("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>ac(t)&&t!=="markActive",overridesResolver:(t,r)=>{const{markActive:o}=t;return[r.mark,o&&r.markActive]}})(Qe(({theme:t})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8}}]}))),DM=he("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>ac(t)&&t!=="markLabelActive"})(Qe(({theme:t})=>({...t.typography.body2,color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(t.vars||t).palette.text.primary}}]}))),jM=t=>{const{disabled:r,dragging:o,marked:i,orientation:s,track:c,classes:d,color:p,size:m}=t,h={root:["root",r&&"disabled",o&&"dragging",i&&"marked",s==="vertical"&&"vertical",c==="inverted"&&"trackInverted",c===!1&&"trackFalse",p&&`color${ue(p)}`,m&&`size${ue(m)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",r&&"disabled",m&&`thumbSize${ue(m)}`,p&&`thumbColor${ue(p)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return ot(h,EM,d)},BM=({children:t})=>t,em=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiSlider"}),s=tc(),{"aria-label":c,"aria-valuetext":d,"aria-labelledby":p,component:m="span",components:h={},componentsProps:y={},color:v="primary",classes:w,className:b,disableSwap:E=!1,disabled:C=!1,getAriaLabel:M,getAriaValueText:D,marks:L=!1,max:O=100,min:R=0,name:N,onChange:j,onChangeCommitted:$,orientation:P="horizontal",shiftStep:Y=10,size:q="medium",step:Q=1,scale:x=Mv,slotProps:H,slots:X,tabIndex:W,track:k="normal",value:I,valueLabelDisplay:J="off",valueLabelFormat:ae=Mv,...pe}=i,z={...i,isRtl:s,max:O,min:R,classes:w,disabled:C,disableSwap:E,orientation:P,marks:L,color:v,size:q,step:Q,shiftStep:Y,scale:x,track:k,valueLabelDisplay:J,valueLabelFormat:ae},{axisProps:V,getRootProps:ne,getHiddenInputProps:le,getThumbProps:ce,open:se,active:de,axis:ze,focusedThumbIndex:ye,range:xe,dragging:Ae,marks:Re,values:Le,trackOffset:be,trackLeap:$e,getThumbStyle:Ze}=CM({...z,rootRef:o});z.marked=Re.length>0&&Re.some(nt=>nt.label),z.dragging=Ae,z.focusedThumbIndex=ye;const De=jM(z),Pe=X?.root??h.Root??RM,Ie=X?.rail??h.Rail??MM,We=X?.track??h.Track??OM,Ve=X?.thumb??h.Thumb??zM,ge=X?.valueLabel??h.ValueLabel??kM,Mt=X?.mark??h.Mark??NM,He=X?.markLabel??h.MarkLabel??DM,fe=X?.input??h.Input??"input",ie=H?.root??y.root,me=H?.rail??y.rail,Se=H?.track??y.track,Ce=H?.thumb??y.thumb,ke=H?.valueLabel??y.valueLabel,we=H?.mark??y.mark,ut=H?.markLabel??y.markLabel,je=H?.input??y.input,Ye=ba({elementType:Pe,getSlotProps:ne,externalSlotProps:ie,externalForwardedProps:pe,additionalProps:{...TM(Pe)&&{as:m}},ownerState:{...z,...ie?.ownerState},className:[De.root,b]}),Vt=ba({elementType:Ie,externalSlotProps:me,ownerState:z,className:De.rail}),Nt=ba({elementType:We,externalSlotProps:Se,additionalProps:{style:{...V[ze].offset(be),...V[ze].leap($e)}},ownerState:{...z,...Se?.ownerState},className:De.track}),Oa=ba({elementType:Ve,getSlotProps:ce,externalSlotProps:Ce,ownerState:{...z,...Ce?.ownerState},className:De.thumb}),ra=ba({elementType:ge,externalSlotProps:ke,ownerState:{...z,...ke?.ownerState},className:De.valueLabel}),Te=ba({elementType:Mt,externalSlotProps:we,ownerState:z,className:De.mark}),Ge=ba({elementType:He,externalSlotProps:ut,ownerState:z,className:De.markLabel}),wt=ba({elementType:fe,getSlotProps:le,externalSlotProps:je,ownerState:z});return A.jsxs(Pe,{...Ye,children:[A.jsx(Ie,{...Vt}),A.jsx(We,{...Nt}),Re.filter(nt=>nt.value>=R&&nt.value<=O).map((nt,pt)=>{const da=Bu(nt.value,R,O),$n=V[ze].offset(da);let Rn;return k===!1?Rn=Le.includes(nt.value):Rn=k==="normal"&&(xe?nt.value>=Le[0]&&nt.value<=Le[Le.length-1]:nt.value<=Le[0])||k==="inverted"&&(xe?nt.value<=Le[0]||nt.value>=Le[Le.length-1]:nt.value>=Le[0]),A.jsxs(S.Fragment,{children:[A.jsx(Mt,{"data-index":pt,...Te,...!Ar(Mt)&&{markActive:Rn},style:{...$n,...Te.style},className:Oe(Te.className,Rn&&De.markActive)}),nt.label!=null?A.jsx(He,{"aria-hidden":!0,"data-index":pt,...Ge,...!Ar(He)&&{markLabelActive:Rn},style:{...$n,...Ge.style},className:Oe(De.markLabel,Ge.className,Rn&&De.markLabelActive),children:nt.label}):null]},pt)}),Le.map((nt,pt)=>{const da=Bu(nt,R,O),$n=V[ze].offset(da),Rn=J==="off"?BM:ge;return A.jsx(Rn,{...!Ar(Rn)&&{valueLabelFormat:ae,valueLabelDisplay:J,value:typeof ae=="function"?ae(x(nt),pt):ae,index:pt,open:se===pt||de===pt||J==="on",disabled:C},...ra,children:A.jsx(Ve,{"data-index":pt,...Oa,className:Oe(De.thumb,Oa.className,de===pt&&De.active,ye===pt&&De.focusVisible),style:{...$n,...Ze(pt),...Oa.style},children:A.jsx(fe,{"data-index":pt,"aria-label":M?M(pt):c,"aria-valuenow":x(nt),"aria-labelledby":p,"aria-valuetext":D?D(x(nt),pt):d,value:Le[pt],...wt})})},pt)})]})});function LM(t){return at("MuiTooltip",t)}const _t=rt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function _M(t){return Math.round(t*1e5)/1e5}const $M=t=>{const{classes:r,disableInteractive:o,arrow:i,touch:s,placement:c}=t,d={popper:["popper",!o&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",s&&"touch",`tooltipPlacement${ue(c.split("-")[0])}`],arrow:["arrow"]};return ot(d,LM,r)},HM=he(e1,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.popper,!o.disableInteractive&&r.popperInteractive,o.arrow&&r.popperArrow,!o.open&&r.popperClose]}})(Qe(({theme:t})=>({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:r})=>!r.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:r})=>!r,style:{pointerEvents:"none"}},{props:({ownerState:r})=>r.arrow,style:{[`&[data-popper-placement*="bottom"] .${_t.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_t.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_t.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${_t.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:r})=>r.arrow&&!r.isRtl,style:{[`&[data-popper-placement*="right"] .${_t.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:r})=>r.arrow&&!!r.isRtl,style:{[`&[data-popper-placement*="right"] .${_t.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:r})=>r.arrow&&!r.isRtl,style:{[`&[data-popper-placement*="left"] .${_t.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:r})=>r.arrow&&!!r.isRtl,style:{[`&[data-popper-placement*="left"] .${_t.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),UM=he("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.tooltip,o.touch&&r.touch,o.arrow&&r.tooltipArrow,r[`tooltipPlacement${ue(o.placement.split("-")[0])}`]]}})(Qe(({theme:t})=>({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium,[`.${_t.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${_t.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${_t.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${_t.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:r})=>r.arrow,style:{position:"relative",margin:0}},{props:({ownerState:r})=>r.touch,style:{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:`${_M(16/14)}em`,fontWeight:t.typography.fontWeightRegular}},{props:({ownerState:r})=>!r.isRtl,style:{[`.${_t.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${_t.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:r})=>!r.isRtl&&r.touch,style:{[`.${_t.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${_t.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:r})=>!!r.isRtl,style:{[`.${_t.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${_t.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:r})=>!!r.isRtl&&r.touch,style:{[`.${_t.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${_t.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:r})=>r.touch,style:{[`.${_t.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:r})=>r.touch,style:{[`.${_t.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),PM=he("span",{name:"MuiTooltip",slot:"Arrow"})(Qe(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:t.alpha(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let fu=!1;const Ov=new rc;let fi={x:0,y:0};function du(t,r){return(o,...i)=>{r&&r(o,...i),t(o,...i)}}const hp=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiTooltip"}),{arrow:s=!1,children:c,classes:d,components:p={},componentsProps:m={},describeChild:h=!1,disableFocusListener:y=!1,disableHoverListener:v=!1,disableInteractive:w=!1,disableTouchListener:b=!1,enterDelay:E=100,enterNextDelay:C=0,enterTouchDelay:M=700,followCursor:D=!1,id:L,leaveDelay:O=0,leaveTouchDelay:R=1500,onClose:N,onOpen:j,open:$,placement:P="bottom",PopperComponent:Y,PopperProps:q={},slotProps:Q={},slots:x={},title:H,TransitionComponent:X,TransitionProps:W,...k}=i,I=S.isValidElement(c)?c:A.jsx("span",{children:c}),J=An(),ae=tc(),[pe,z]=S.useState(),[V,ne]=S.useState(null),le=S.useRef(!1),ce=w||D,se=Wo(),de=Wo(),ze=Wo(),ye=Wo(),[xe,Ae]=wu({controlled:$,default:!1,name:"Tooltip",state:"open"});let Re=xe;const Le=cl(L),be=S.useRef(),$e=Jn(()=>{be.current!==void 0&&(document.body.style.WebkitUserSelect=be.current,be.current=void 0),ye.clear()});S.useEffect(()=>$e,[$e]);const Ze=_e=>{Ov.clear(),fu=!0,Ae(!0),j&&!Re&&j(_e)},De=Jn(_e=>{Ov.start(800+O,()=>{fu=!1}),Ae(!1),N&&Re&&N(_e),se.start(J.transitions.duration.shortest,()=>{le.current=!1})}),Pe=_e=>{le.current&&_e.type!=="touchstart"||(pe&&pe.removeAttribute("title"),de.clear(),ze.clear(),E||fu&&C?de.start(fu?C:E,()=>{Ze(_e)}):Ze(_e))},Ie=_e=>{de.clear(),ze.start(O,()=>{De(_e)})},[,We]=S.useState(!1),Ve=_e=>{const Jt=_e?.target??pe;if(!Jt||!al(Jt)){We(!1);const za=_e??new Event("blur");!_e&&Jt&&(Object.defineProperty(za,"target",{value:Jt}),Object.defineProperty(za,"currentTarget",{value:Jt})),Ie(za)}},ge=_e=>{pe||z(_e.currentTarget),al(_e.target)&&(We(!0),Pe(_e))},Mt=_e=>{le.current=!0;const Jt=I.props;Jt.onTouchStart&&Jt.onTouchStart(_e)},He=_e=>{Mt(_e),ze.clear(),se.clear(),$e(),be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ye.start(M,()=>{document.body.style.WebkitUserSelect=be.current,Pe(_e)})},fe=_e=>{I.props.onTouchEnd&&I.props.onTouchEnd(_e),$e(),ze.start(R,()=>{De(_e)})};S.useEffect(()=>{if(!Re)return;function _e(Jt){Jt.key==="Escape"&&De(Jt)}return document.addEventListener("keydown",_e),()=>{document.removeEventListener("keydown",_e)}},[De,Re]);const ie=Zt(fl(I),z,o);!H&&H!==0&&(Re=!1);const me=S.useRef(),Se=_e=>{const Jt=I.props;Jt.onMouseMove&&Jt.onMouseMove(_e),fi={x:_e.clientX,y:_e.clientY},me.current&&me.current.update()},Ce={},ke=typeof H=="string";h?(Ce.title=!Re&&ke&&!v?H:null,Ce["aria-describedby"]=Re?Le:null):(Ce["aria-label"]=ke?H:null,Ce["aria-labelledby"]=Re&&!ke?Le:null);const we={...Ce,...k,...I.props,className:Oe(k.className,I.props.className),onTouchStart:Mt,ref:ie,...D?{onMouseMove:Se}:{}},ut={};b||(we.onTouchStart=He,we.onTouchEnd=fe),v||(we.onMouseOver=du(Pe,we.onMouseOver),we.onMouseLeave=du(Ie,we.onMouseLeave),ce||(ut.onMouseOver=Pe,ut.onMouseLeave=Ie)),y||(we.onFocus=du(ge,we.onFocus),we.onBlur=du(Ve,we.onBlur),ce||(ut.onFocus=ge,ut.onBlur=Ve));const je={...i,isRtl:ae,arrow:s,disableInteractive:ce,placement:P,PopperComponentProp:Y,touch:le.current},Ye=typeof Q.popper=="function"?Q.popper(je):Q.popper,Vt=S.useMemo(()=>{let _e=[{name:"arrow",enabled:!!V,options:{element:V,padding:4}}];return q.popperOptions?.modifiers&&(_e=_e.concat(q.popperOptions.modifiers)),Ye?.popperOptions?.modifiers&&(_e=_e.concat(Ye.popperOptions.modifiers)),{...q.popperOptions,...Ye?.popperOptions,modifiers:_e}},[V,q.popperOptions,Ye?.popperOptions]),Nt=$M(je),Oa=typeof Q.transition=="function"?Q.transition(je):Q.transition,ra={slots:{popper:p.Popper,transition:p.Transition??X,tooltip:p.Tooltip,arrow:p.Arrow,...x},slotProps:{arrow:Q.arrow??m.arrow,popper:{...q,...Ye??m.popper},tooltip:Q.tooltip??m.tooltip,transition:{...W,...Oa??m.transition}}},[Te,Ge]=Tt("popper",{elementType:HM,externalForwardedProps:ra,ownerState:je,className:Oe(Nt.popper,q?.className)}),[wt,nt]=Tt("transition",{elementType:ju,externalForwardedProps:ra,ownerState:je}),[pt,da]=Tt("tooltip",{elementType:UM,className:Nt.tooltip,externalForwardedProps:ra,ownerState:je}),[$n,Rn]=Tt("arrow",{elementType:PM,className:Nt.arrow,externalForwardedProps:ra,ownerState:je,ref:ne});return A.jsxs(S.Fragment,{children:[S.cloneElement(I,we),A.jsx(Te,{as:Y??e1,placement:P,anchorEl:D?{getBoundingClientRect:()=>({top:fi.y,left:fi.x,right:fi.x,bottom:fi.y,width:0,height:0})}:pe,popperRef:me,open:pe?Re:!1,id:Le,transition:!0,...ut,...Ge,popperOptions:Vt,children:({TransitionProps:_e})=>A.jsx(wt,{timeout:J.transitions.duration.shorter,..._e,...nt,children:A.jsxs(pt,{...da,children:[H,s?A.jsx($n,{...Rn}):null]})})})]})}),mn=HT({createStyledComponent:he("div",{name:"MuiStack",slot:"Root"}),useThemeProps:t=>lt({props:t,name:"MuiStack"})});function VM(t){return at("MuiToolbar",t)}rt("MuiToolbar",["root","gutters","regular","dense"]);const qM=t=>{const{classes:r,disableGutters:o,variant:i}=t;return ot({root:["root",!o&&"gutters",i]},VM,r)},YM=he("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,!o.disableGutters&&r.gutters,r[o.variant]]}})(Qe(({theme:t})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:r})=>!r.disableGutters,style:{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:t.mixins.toolbar}]}))),IM=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiToolbar"}),{className:s,component:c="div",disableGutters:d=!1,variant:p="regular",...m}=i,h={...i,component:c,disableGutters:d,variant:p},y=qM(h);return A.jsx(YM,{as:c,className:Oe(y.root,s),ref:o,ownerState:h,...m})});function GM(t){return at("MuiTextField",t)}rt("MuiTextField",["root"]);const XM={standard:Qp,filled:Kp,outlined:Wp},FM=t=>{const{classes:r}=t;return ot({root:["root"]},GM,r)},KM=he(lR,{name:"MuiTextField",slot:"Root"})({}),f1=S.forwardRef(function(r,o){const i=lt({props:r,name:"MuiTextField"}),{autoComplete:s,autoFocus:c=!1,children:d,className:p,color:m="primary",defaultValue:h,disabled:y=!1,error:v=!1,FormHelperTextProps:w,fullWidth:b=!1,helperText:E,id:C,InputLabelProps:M,inputProps:D,InputProps:L,inputRef:O,label:R,maxRows:N,minRows:j,multiline:$=!1,name:P,onBlur:Y,onChange:q,onFocus:Q,placeholder:x,required:H=!1,rows:X,select:W=!1,SelectProps:k,slots:I={},slotProps:J={},type:ae,value:pe,variant:z="outlined",...V}=i,ne={...i,autoFocus:c,color:m,disabled:y,error:v,fullWidth:b,multiline:$,required:H,select:W,variant:z},le=FM(ne),ce=cl(C),se=E&&ce?`${ce}-helper-text`:void 0,de=R&&ce?`${ce}-label`:void 0,ze=XM[z],ye={slots:I,slotProps:{input:L,inputLabel:M,htmlInput:D,formHelperText:w,select:k,...J}},xe={},Ae=ye.slotProps.inputLabel;z==="outlined"&&(Ae&&typeof Ae.shrink<"u"&&(xe.notched=Ae.shrink),xe.label=R),W&&((!k||!k.native)&&(xe.id=void 0),xe["aria-describedby"]=void 0);const[Re,Le]=Tt("root",{elementType:KM,shouldForwardComponentProp:!0,externalForwardedProps:{...ye,...V},ownerState:ne,className:Oe(le.root,p),ref:o,additionalProps:{disabled:y,error:v,fullWidth:b,required:H,color:m,variant:z}}),[be,$e]=Tt("input",{elementType:ze,externalForwardedProps:ye,additionalProps:xe,ownerState:ne}),[Ze,De]=Tt("inputLabel",{elementType:ER,externalForwardedProps:ye,ownerState:ne}),[Pe,Ie]=Tt("htmlInput",{elementType:"input",externalForwardedProps:ye,ownerState:ne}),[We,Ve]=Tt("formHelperText",{elementType:cR,externalForwardedProps:ye,ownerState:ne}),[ge,Mt]=Tt("select",{elementType:u1,externalForwardedProps:ye,ownerState:ne}),He=A.jsx(be,{"aria-describedby":se,autoComplete:s,autoFocus:c,defaultValue:h,fullWidth:b,multiline:$,name:P,rows:X,maxRows:N,minRows:j,type:ae,value:pe,id:ce,inputRef:O,onBlur:Y,onChange:q,onFocus:Q,placeholder:x,inputProps:Ie,slots:{input:I.htmlInput?Pe:void 0},...$e});return A.jsxs(Re,{...Le,children:[R!=null&&R!==""&&A.jsx(Ze,{htmlFor:ce,id:de,...De,children:R}),W?A.jsx(ge,{"aria-describedby":se,id:ce,labelId:de,value:pe,input:He,...Mt,children:d}):He,E&&A.jsx(We,{id:se,...Ve,children:E})]})});function QM(t){return at("MuiToggleButton",t)}const qd=rt("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),ZM=S.createContext({}),WM=S.createContext(void 0);function JM(t,r){return r===void 0||t===void 0?!1:Array.isArray(r)?r.includes(t):t===r}const e3=t=>{const{classes:r,fullWidth:o,selected:i,disabled:s,size:c,color:d}=t,p={root:["root",i&&"selected",s&&"disabled",o&&"fullWidth",`size${ue(c)}`,d]};return ot(p,QM,r)},t3=he(zi,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,r)=>{const{ownerState:o}=t;return[r.root,r[`size${ue(o.size)}`]]}})(Qe(({theme:t})=>({...t.typography.button,borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:`1px solid ${(t.vars||t).palette.divider}`,color:(t.vars||t).palette.action.active,[`&.${qd.disabled}`]:{color:(t.vars||t).palette.action.disabled,border:`1px solid ${(t.vars||t).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{color:"standard"},style:{[`&.${qd.selected}`]:{color:(t.vars||t).palette.text.primary,backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette.text.primary,(t.vars||t).palette.action.selectedOpacity)}}}}},...Object.entries(t.palette).filter(Ut()).map(([r])=>({props:{color:r},style:{[`&.${qd.selected}`]:{color:(t.vars||t).palette[r].main,backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.selectedOpacity),"&:hover":{backgroundColor:t.alpha((t.vars||t).palette[r].main,`${(t.vars||t).palette.action.selectedOpacity} + ${(t.vars||t).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:t.alpha((t.vars||t).palette[r].main,(t.vars||t).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{padding:7,fontSize:t.typography.pxToRem(13)}},{props:{size:"large"},style:{padding:15,fontSize:t.typography.pxToRem(15)}}]}))),n3=S.forwardRef(function(r,o){const{value:i,...s}=S.useContext(ZM),c=S.useContext(WM),d=nl({...s,selected:JM(r.value,i)},r),p=lt({props:d,name:"MuiToggleButton"}),{children:m,className:h,color:y="standard",disabled:v=!1,disableFocusRipple:w=!1,fullWidth:b=!1,onChange:E,onClick:C,selected:M,size:D="medium",value:L,...O}=p,R={...p,color:y,disabled:v,disableFocusRipple:w,fullWidth:b,size:D},N=e3(R),j=P=>{C&&(C(P,L),P.defaultPrevented)||E&&E(P,L)},$=c||"";return A.jsx(t3,{className:Oe(s.className,N.root,h,$),disabled:v,focusRipple:!w,ref:o,onClick:j,onChange:E,value:L,ownerState:R,"aria-pressed":M,...O,children:m})}),a3=vb({themeId:ua}),zv=8e3,r3=2e3,o3=900*1e3;let Yd=null,Lu="*";function l3(){try{if(typeof document<"u"&&document.referrer)return new URL(document.referrer).origin}catch{}return"*"}async function d1(t={}){return Yd||(Yd=i3(t)),await Yd}async function i3(t){Lu=l3();const r=t.expectedOrigin??Lu,o=zx(window.location.hash);if(u3(),!o)throw new Error("[reachy-mini-sdk/host/embed] no creds bundle found in URL hash. Was the embed mounted directly without ?embedded=1#creds=...?");if(!await f3(zv))throw new Error(`[reachy-mini-sdk/host/embed] window.ReachyMini did not become available within ${zv}ms - check the SDK CDN tag.`);const i=o.userName??o.username??null;o.hfToken&&i&&c3(o.hfToken,i);const s=new window.ReachyMini({appName:o.appName,signalingUrl:o.signalingUrl,...t.sdkOptions}),c=s3(r);_u({source:wi,type:"embed:ready",version:Ei}),c.start();const d=await c.awaitHostInit(r3,o);hi("connecting","link"),nn("boot:link:start",{robotPeerId:d.robotPeerId}),await s.authenticate(),nn("boot:authenticate:ok",{state:s.state}),await s.connect(),nn("boot:connect:ok",{state:s.state,robots:(s.robots??[]).length}),hi("connecting","session"),nn("boot:session:start",{robotPeerId:d.robotPeerId}),p3(s);try{await s.startSession(d.robotPeerId),nn("boot:session:ok")}catch(p){throw nn("boot:session:error",{message:p?.message??String(p)}),p}return hi("connecting","wake"),nn("boot:wake:start"),await s.ensureAwake(),nn("boot:wake:ok"),c.attachPageHide(s),hi("live",null),c.buildHandle(s,d)}function kv(t){return{theme:t.theme,config:t.config,appName:t.appName,hostName:t.hostName,userName:t.userName??null,robotPeerId:t.robotPeerId}}function Nv(t){return{theme:t.theme,config:t.config,appName:t.appName,hostName:t.hostName,userName:t.userName??null,robotPeerId:t.robotPeerId}}function s3(t){const r=new Set,o=new Set,i=new Set;let s=null,c=!1,d=!1,p=null;function m(y){switch(y.type){case"host:init":{s=Nv(y),o.forEach(v=>v(s.theme)),i.forEach(v=>v(s.config));break}case"host:theme-changed":{s&&(s.theme=y.theme),o.forEach(v=>v(y.theme));break}case"host:config-changed":{s&&(s.config=y.config),i.forEach(v=>v(y.config));break}case"host:leaving":{h();break}}}function h(){c||(c=!0,r.forEach(y=>{try{y()}catch(v){console.warn("[reachy-mini-sdk/host/embed] onLeave threw",v)}}))}return{start(){d||(d=!0,p=y=>{t!=="*"&&y.origin!==t||Qy(y.data)&&m(y.data)},window.addEventListener("message",p))},async awaitHostInit(y,v){return window.parent!==window?s||new Promise(w=>{const b=C=>{if(t!=="*"&&C.origin!==t||!Qy(C.data))return;const M=C.data;M.type==="host:init"&&(window.removeEventListener("message",b),window.clearTimeout(E),s=Nv(M),w(s))},E=window.setTimeout(()=>{window.removeEventListener("message",b),s||(s=kv(v)),w(s)},y);window.addEventListener("message",b)}):(s=kv(v),s)},attachPageHide(y){const v=()=>{h();try{y.stopSession()}catch{}};window.addEventListener("pagehide",v,{once:!0})},buildHandle(y,v){s=v;const w=d3(y);return{reachy:y,media:w,get theme(){return s.theme},get config(){return s.config},get appName(){return s.appName},get hostName(){return s.hostName},get userName(){return s.userName},onLeave(b){return r.add(b),()=>r.delete(b)},onThemeChange(b){return o.add(b),()=>o.delete(b)},onConfigChange(b){const E=C=>b(C);return i.add(E),()=>i.delete(E)},setAppState(b){hi(b.phase,b.connectingStep??null,b.message??null)},requestLeave(){_u({source:wi,type:"embed:request-leave",version:Ei})},reportError(b,E){_u({source:wi,type:"embed:error",version:Ei,message:b,fatal:E?.fatal===!0,detail:E?.detail})}}}}}function u3(){try{const t=window.location.pathname+window.location.search;history.replaceState(history.state,document.title,t)}catch{}}function c3(t,r){try{sessionStorage.setItem("hf_token",t),sessionStorage.setItem("hf_username",r),sessionStorage.setItem("hf_token_expires",new Date(Date.now()+o3).toISOString())}catch{}}function f3(t){return new Promise(r=>{if(typeof window>"u"){r(!1);return}if(window.ReachyMini){r(!0);return}let o=!1;const i=()=>{o||(o=!0,window.removeEventListener("reachymini:ready",i),window.clearTimeout(s),r(!!window.ReachyMini))},s=window.setTimeout(()=>{o||(o=!0,window.removeEventListener("reachymini:ready",i),r(!1))},t);window.addEventListener("reachymini:ready",i)})}function _u(t){if(!(typeof window>"u"))try{window.parent.postMessage(t,Lu)}catch(r){console.warn("[reachy-mini-sdk/host/embed] postMessage to host failed",r)}}function hi(t,r,o=null){_u({source:wi,type:"embed:app-state",version:Ei,phase:t,connectingStep:r,message:o})}function nn(t,r={}){if(!(typeof window>"u")){try{window.parent.postMessage({source:wi,type:"embed:debug",version:Ei,tag:t,payload:r},Lu)}catch{}try{let o="";try{o=JSON.stringify(r)}catch{o=""}console.info(`[embed-debug] ${t} ${o}`)}catch{}}}function d3(t){let r=null;const o=t,i=()=>{const d=o._pc;if(!d)return null;const p=d.getReceivers().map(m=>m.track).filter(m=>m!==null&&m.kind!==""&&m.readyState==="live");return p.length===0?null:new MediaStream(p)},s=()=>r||(r=i(),r&&nn("media:cache:init",{videoTracks:r.getVideoTracks().length,audioTracks:r.getAudioTracks().length}),r),c=()=>{r&&(r=null,nn("media:cache:clear"))};return t.addEventListener("sessionStopped",c),{attachVideo(d){const p=t.attachVideo(d),m=s();if(m&&d.srcObject!==m)try{d.srcObject=m,d.play().catch(()=>{}),nn("media:attach:replay",{videoTracks:m.getVideoTracks().length,audioTracks:m.getAudioTracks().length})}catch(h){nn("media:attach:replay:error",{message:h?.message??String(h)})}return p},get robotStream(){return s()},get micStream(){return o._micStream}}}function p3(t){const r=["connected","disconnected","streaming","sessionStopped","sessionRejected","robotsChanged","error","state","log","message"];for(const s of r)try{t.addEventListener(s,c=>{let d={};const p=c;if(p&&typeof p=="object"&&"detail"in p)try{d=JSON.parse(JSON.stringify(p.detail??null))}catch{d={_unserializable:!0}}nn(`sdk:${s}`,d)})}catch{}try{const s=t,c=s._handleSignalingMessage;if(typeof c=="function"){const d=s._sendToServer;typeof d=="function"&&(s._sendToServer=async function(p){const m=p,h={type:m?.type??"?"};if(m&&"peerId"in m&&(h.peerId=String(m.peerId)),m&&"sessionId"in m&&(h.sessionId=String(m.sessionId)),m&&"sdp"in m){const y=m.sdp;h.sdpType=y?.type??"?",h.sdpLen=y?.sdp?.length??0}if(m&&"ice"in m){const y=m.ice;h.iceCand=(y?.candidate??"").slice(0,60)||""}nn("sdk:send",h);try{const y=await d.call(this,p),v=y;return nn("sdk:send:res",{inFor:h.type,resType:v?.type??null,keys:v?Object.keys(v):[]}),y}catch(y){throw nn("sdk:send:err",{inFor:h.type,msg:y?.message??String(y)}),y}}),s._handleSignalingMessage=function(p){const m=p,h={type:m?.type??"?"};if("sessionId"in m&&(h.sessionId=String(m.sessionId)),"peerId"in m&&(h.peerId=String(m.peerId)),"sdp"in m){const y=m.sdp;h.sdpType=y?.type??"?",h.sdpLen=y?.sdp?.length??0}if("ice"in m){const y=m.ice;h.iceCand=(y?.candidate??"").slice(0,60)||""}return"reason"in m&&(h.reason=String(m.reason)),nn("sdk:sse",h),c.call(this,p)}}}catch{}const o=Date.now(),i=window.setInterval(()=>{const s=t,c=s._pc,d=s._dc;nn("sdk:probe",{elapsedMs:Date.now()-o,myPeerId:s._peerId??null,state:s._state??null,sseAborted:s._sseAbortController?.signal?.aborted??null,pcState:c?.connectionState??null,iceState:c?.iceConnectionState??null,iceGather:c?.iceGatheringState??null,signalingState:c?.signalingState??null,dcState:d?.readyState??null,sessionId:s._sessionId??null}),Date.now()-o>3e4&&window.clearInterval(i)},1500)}typeof window<"u"&&(window.ReachyMini||(window.ReachyMini=kx,window.dispatchEvent(new Event("reachymini:ready"))),window.ReachyMiniHostEmbed={connectToHost:d1});const m3=Wt(A.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20z"}));function p1({stats:t,verbose:r=!1}){const{rttMs:o,bufferLagMs:i,videoJitterMs:s,audioJitterMs:c,health:d}=t,p=[];o!=null&&p.push(`${o}ms rtt`),i!=null&&p.push(`${i}ms buf`);const m=p.join(" · ")||"—",h=[];o!=null&&h.push(`rtt ${o}ms`),i!=null&&h.push(`buf ${i}ms`),s!=null&&h.push(`v-jit ${s}ms`),c!=null&&h.push(`a-jit ${c}ms`);const y=h.join(" · ")||"—",v=h3[d];return A.jsx(hp,{title:y,placement:"bottom",children:A.jsxs(kt,{component:"span","aria-label":`Link latency ${y}`,sx:w=>({display:"inline-flex",alignItems:"center",gap:.5,height:22,px:1,borderRadius:999,fontFamily:"monospace",fontSize:11,fontWeight:600,letterSpacing:.2,color:w.palette.mode==="dark"?v.fgDark:v.fgLight,bgcolor:w.palette.mode==="dark"?v.bgDark:v.bgLight,whiteSpace:"nowrap"}),children:[A.jsx(kt,{component:"span","aria-hidden":!0,sx:{width:6,height:6,borderRadius:"50%",bgcolor:"currentColor",opacity:d==="unknown"?.4:.9}}),r?y:m]})})}const h3={good:{fgDark:"rgba(155, 227, 155, 0.95)",fgLight:"rgba(31, 122, 49, 0.95)",bgDark:"rgba(155, 227, 155, 0.12)",bgLight:"rgba(31, 122, 49, 0.10)"},ok:{fgDark:"rgba(255, 196, 102, 0.95)",fgLight:"rgba(176, 102, 0, 0.95)",bgDark:"rgba(255, 196, 102, 0.14)",bgLight:"rgba(255, 196, 102, 0.18)"},bad:{fgDark:"rgba(255, 140, 140, 0.95)",fgLight:"rgba(160, 40, 40, 0.95)",bgDark:"rgba(255, 140, 140, 0.14)",bgLight:"rgba(255, 140, 140, 0.18)"},unknown:{fgDark:"rgba(255,255,255,0.6)",fgLight:"rgba(0,0,0,0.6)",bgDark:"rgba(255,255,255,0.05)",bgLight:"rgba(0,0,0,0.05)"}};function g3({userName:t,daemonVersion:r,latency:o,motorMode:i,onLeave:s}){const c=i!=null&&i!=="disabled";return A.jsx(jE,{position:"sticky",color:"default",elevation:0,sx:d=>({bgcolor:"background.paper",borderBottom:`1px solid ${d.palette.divider}`,backdropFilter:"saturate(180%) blur(8px)",WebkitBackdropFilter:"saturate(180%) blur(8px)"}),children:A.jsxs(IM,{sx:{gap:1,minHeight:{xs:52,sm:56},px:{xs:1.5,sm:2},maxWidth:1280,mx:"auto",width:"100%"},children:[A.jsx(kt,{component:"img",src:"/icon.svg",alt:"","aria-hidden":!0,sx:{width:22,height:22,mr:.5}}),A.jsxs(Qt,{variant:"h6",sx:{fontSize:{xs:14,sm:15},fontWeight:700,mr:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",minWidth:0},children:["Reachy Mini"," ",A.jsx(kt,{component:"span",sx:{color:"text.secondary",fontWeight:500},children:"Dashboard"})]}),A.jsx(kt,{sx:{flex:1}}),A.jsxs(mn,{direction:"row",spacing:1,alignItems:"center",children:[A.jsx(y3,{awake:c,mode:i}),A.jsx(p1,{stats:o}),r&&A.jsx(hp,{title:"Daemon version",placement:"bottom",children:A.jsx(ku,{size:"small",label:`v${r}`,sx:{display:{xs:"none",sm:"flex"},height:22,fontFamily:"monospace",fontSize:11}})}),t&&A.jsx(ku,{size:"small",label:`@${t}`,sx:{display:{xs:"none",md:"flex"},height:22,fontSize:11}}),A.jsx(hp,{title:"Back to apps",placement:"bottom",children:A.jsx(qb,{size:"small",onClick:s,"aria-label":"End session and return to the host",children:A.jsx(m3,{fontSize:"small"})})})]})]})})}function y3({awake:t,mode:r}){const o=r==="gravity_compensation"?"gravity-comp":t?"live":"torque off";return A.jsx(ku,{size:"small",label:o,sx:i=>({height:22,fontSize:11,fontWeight:600,letterSpacing:.3,textTransform:"uppercase",color:t?"primary.main":"text.secondary",bgcolor:t?i.palette.mode==="dark"?"rgba(255, 149, 0, 0.14)":"rgba(255, 149, 0, 0.12)":i.palette.mode==="dark"?"rgba(255,255,255,0.06)":"rgba(0,0,0,0.05)"})})}const v3=Wt(A.jsx("path",{d:"m21 6.5-4 4V7c0-.55-.45-1-1-1H9.82L21 17.18zM3.27 2 2 3.27 4.73 6H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.21 0 .39-.08.54-.18L19.73 21 21 19.73z"})),m1=Wt(A.jsx("path",{d:"M12 14c1.66 0 2.99-1.34 2.99-3L15 5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3m5.3-3c0 3-2.54 5.1-5.3 5.1S6.7 14 6.7 11H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c3.28-.48 6-3.3 6-6.72z"})),h1=Wt(A.jsx("path",{d:"M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28m-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18zM4.27 3 3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73z"})),gp=Wt(A.jsx("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"})),g1=Wt(A.jsx("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}));function b3({attachVideo:t,micMuted:r,audioMuted:o,latency:i}){const s=An(),c=S.useRef(null),[d,p]=S.useState(!1);return S.useEffect(()=>{const m=c.current;if(!m)return;const h=t(m);return i.setVideoElement(m),()=>{h(),i.setVideoElement(null)}},[t,i]),S.useEffect(()=>{const m=c.current;m&&(m.muted=o)},[o]),S.useEffect(()=>{const m=c.current;if(!m)return;const h=()=>p(!0),y=()=>p(!1),v=()=>{m.srcObject||p(!1)};return m.addEventListener("playing",h),m.addEventListener("emptied",y),m.addEventListener("suspend",v),()=>{m.removeEventListener("playing",h),m.removeEventListener("emptied",y),m.removeEventListener("suspend",v)}},[]),A.jsxs(Ma,{elevation:0,sx:{position:"relative",width:"100%",aspectRatio:"4 / 3",overflow:"hidden",borderRadius:1,border:"none",boxShadow:s.palette.mode==="dark"?"inset 0 0 0 1px rgba(255, 255, 255, 0.08)":"inset 0 0 0 1px rgba(0, 0, 0, 0.06)",backgroundColor:s.palette.mode==="dark"?"rgba(0, 0, 0, 0.6)":"rgba(0, 0, 0, 0.85)"},children:[A.jsx(kt,{component:"video",ref:c,playsInline:!0,autoPlay:!0,sx:{width:"100%",height:"100%",objectFit:"cover",display:d?"block":"none"}}),!d&&A.jsxs(kt,{sx:{position:"absolute",inset:0,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:.75,color:"rgba(255, 255, 255, 0.65)"},children:[A.jsx(v3,{sx:{fontSize:26}}),A.jsx(Qt,{sx:{fontSize:11,fontWeight:600,letterSpacing:.4,textTransform:"uppercase"},children:"Waiting for camera"})]}),A.jsxs(mn,{direction:"row",spacing:.6,alignItems:"center",sx:{position:"absolute",top:10,left:12,backgroundColor:"rgba(0, 0, 0, 0.45)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",padding:"4px 8px 4px 6px",borderRadius:999,pointerEvents:"none"},"aria-hidden":!0,children:[A.jsx(kt,{sx:{width:6,height:6,borderRadius:"50%",backgroundColor:d?"#9be39b":"rgba(255,255,255,0.45)",animation:d?"videoLivePulse 1.6s ease-in-out infinite":"none","@keyframes videoLivePulse":{"0%, 100%":{opacity:1},"50%":{opacity:.45}}}}),A.jsx(Qt,{component:"span",sx:{fontSize:10,fontWeight:700,letterSpacing:.5,color:"rgba(255, 255, 255, 0.95)",lineHeight:1,textTransform:"uppercase"},children:d?"Live":"Camera"})]}),i.health!=="unknown"&&A.jsx(kt,{sx:{position:"absolute",top:10,right:12},children:A.jsx(p1,{stats:i,verbose:!0})}),A.jsxs(mn,{direction:"row",spacing:.6,alignItems:"center",sx:{position:"absolute",bottom:10,left:12,backgroundColor:"rgba(0, 0, 0, 0.45)",backdropFilter:"blur(6px)",WebkitBackdropFilter:"blur(6px)",padding:"4px 8px",borderRadius:999,color:"rgba(255, 255, 255, 0.95)"},"aria-hidden":!0,children:[r?A.jsx(h1,{sx:{fontSize:14,color:"rgba(255,180,180,0.95)"}}):A.jsx(m1,{sx:{fontSize:14,color:"#9be39b"}}),o?A.jsx(g1,{sx:{fontSize:14,color:"rgba(255,180,180,0.95)"}}):A.jsx(gp,{sx:{fontSize:14,color:"#9be39b"}})]})]})}const S3=Wt(A.jsx("path",{d:"M7 18h2V6H7zm4 4h2V2h-2zm-8-8h2v-4H3zm12 4h2V6h-2zm4-8v4h2v-4z"})),Dv=64;function x3(t,r){const o=S.useRef(null);if(o.current===null){const i=new Uint8Array(new ArrayBuffer(Dv/2));o.current={buffer:i,binCount:i.length}}return S.useEffect(()=>{const i=o.current;if(!t||!r){i.buffer.fill(0);return}const s=t.getAudioTracks();if(s.length===0)return;const c=new MediaStream(s),d=window.AudioContext||window.webkitAudioContext;if(!d)return;let p;try{p=new d}catch(w){console.warn("[frequency-data] AudioContext creation failed:",w);return}let m;try{m=p.createMediaStreamSource(c)}catch(w){console.warn("[frequency-data] createMediaStreamSource failed:",w),p.close();return}const h=p.createAnalyser();h.fftSize=Dv,h.smoothingTimeConstant=.7,m.connect(h);let y=0;const v=()=>{h.getByteFrequencyData(i.buffer),y=requestAnimationFrame(v)};return y=requestAnimationFrame(v),()=>{cancelAnimationFrame(y);try{m.disconnect()}catch{}try{h.disconnect()}catch{}i.buffer.fill(0),p.close().catch(()=>{})}},[t,r]),o.current}const Id=24,C3=.9,T3=2;function E3({stream:t,active:r}){const o=An(),i=x3(t,r),s=S.useRef(Array.from({length:Id},()=>null));S.useEffect(()=>{let p=0;const m=()=>{const h=i.buffer,y=Math.min(Id,i.binCount);for(let v=0;vcancelAnimationFrame(p)},[i]);const c=r?o.palette.primary.main:o.palette.action.disabled,d=S.useMemo(()=>Array.from({length:Id},(p,m)=>m),[]);return A.jsx(kt,{sx:{position:"relative",width:"100%",height:36,bgcolor:o.palette.mode==="dark"?"rgba(255,255,255,0.03)":"rgba(0,0,0,0.025)",borderRadius:1,px:.75,py:.5,overflow:"hidden",opacity:r?1:.45,transition:"opacity 200ms ease"},"aria-hidden":!0,children:A.jsx(kt,{sx:{position:"absolute",top:4,bottom:4,left:6,right:6,display:"flex",alignItems:"flex-end",gap:"2px"},children:d.map(p=>A.jsx("div",{ref:m=>{s.current[p]=m},style:{flex:1,height:"100%",minWidth:1,maxWidth:6,backgroundColor:c,borderRadius:1,transformOrigin:"bottom center",minHeight:T3,transform:"scaleY(0)",willChange:"transform",transition:"background-color 220ms ease"}},p))})})}function w3({robot:t,micStream:r,robotStream:o,micMuted:i,audioMuted:s,micSupported:c,onToggleMic:d,onToggleSpeaker:p}){const m=An(),[h,y]=S.useState(null),[v,w]=S.useState(null),[b,E]=S.useState(!1),[C,M]=S.useState(!1);S.useEffect(()=>{let O=!1;return(async()=>{try{const R=typeof t.getVolume=="function"?await t.getVolume():null,N=typeof t.getMicrophoneVolume=="function"?await t.getMicrophoneVolume():null;if(O)return;R!=null&&y(R),N!=null&&w(N)}catch(R){console.warn("[audio] volume sync failed:",R)}})(),()=>{O=!0}},[t]);const D=async O=>{if(typeof t.setVolume=="function"){y(O),E(!0);try{const R=await t.setVolume(O);R!=null&&y(R)}catch(R){console.warn("[audio] setVolume failed:",R)}finally{E(!1)}}},L=async O=>{if(typeof t.setMicrophoneVolume=="function"){w(O),M(!0);try{const R=await t.setMicrophoneVolume(O);R!=null&&w(R)}catch(R){console.warn("[audio] setMicrophoneVolume failed:",R)}finally{M(!1)}}};return A.jsxs(Ma,{elevation:0,sx:{p:1.75,display:"flex",flexDirection:"column",gap:1.5,borderRadius:1,border:`1px solid ${m.palette.divider}`,boxShadow:"none",backgroundColor:m.palette.background.paper},children:[A.jsx(mn,{direction:"row",spacing:1,alignItems:"baseline",children:A.jsx(Qt,{variant:"h6",sx:{flex:1},children:"Audio"})}),!c&&A.jsx(wE,{severity:"info",icon:!1,sx:{py:.25,px:1,fontSize:11,lineHeight:1.4,backgroundColor:m.palette.mode==="dark"?"rgba(255, 149, 0, 0.08)":"rgba(255, 149, 0, 0.12)",color:m.palette.text.primary,border:"none",borderRadius:1},children:"The robot reports no microphone support. You can hear it but your voice won't be sent."}),A.jsxs(mn,{direction:{xs:"column",sm:"row"},spacing:1.5,sx:{width:"100%"},children:[A.jsx(jv,{channelLabel:"Mic",isOn:!i&&c,onIcon:A.jsx(m1,{fontSize:"small"}),offIcon:A.jsx(h1,{fontSize:"small"}),disabled:!c,onToggle:d,stream:r,vizActive:!i&&c&&r!=null,sliderIcon:A.jsx(S3,{sx:{fontSize:14}}),sliderLabel:"Mic gain",sliderValue:v,sliderPending:C,onSliderChange:O=>w(O),onSliderCommit:O=>{L(O)}}),A.jsx(jv,{channelLabel:"Sound",isOn:!s,onIcon:A.jsx(gp,{fontSize:"small"}),offIcon:A.jsx(g1,{fontSize:"small"}),onToggle:p,stream:o,vizActive:!s&&o!=null,sliderIcon:A.jsx(gp,{sx:{fontSize:14}}),sliderLabel:"Speaker",sliderValue:h,sliderPending:b,onSliderChange:O=>y(O),onSliderCommit:O=>{D(O)}})]})]})}function jv({channelLabel:t,isOn:r,disabled:o=!1,onIcon:i,offIcon:s,onToggle:c,stream:d,vizActive:p,sliderIcon:m,sliderLabel:h,sliderValue:y,sliderPending:v,onSliderChange:w,onSliderCommit:b}){const E=An();return A.jsxs(kt,{sx:{flex:1,minWidth:0,display:"flex",flexDirection:"column",gap:1},children:[A.jsx(E3,{stream:d,active:p}),A.jsxs(n3,{value:"channel",selected:r,onChange:c,disabled:o,"aria-label":`${t} ${r?"off":"on"}`,sx:{gap:1,py:1,px:1.25,borderRadius:1,border:"none",textTransform:"none",color:"text.secondary",backgroundColor:E.palette.mode==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.035)",transition:E.transitions.create(["background-color","color"],{duration:E.transitions.duration.shortest}),"&:hover":{backgroundColor:E.palette.mode==="dark"?"rgba(255,255,255,0.07)":"rgba(0,0,0,0.06)"},"&.Mui-selected":{color:"primary.main",backgroundColor:E.palette.mode==="dark"?"rgba(255, 149, 0, 0.14)":"rgba(255, 149, 0, 0.1)","&:hover":{backgroundColor:E.palette.mode==="dark"?"rgba(255, 149, 0, 0.2)":"rgba(255, 149, 0, 0.16)"}}},children:[r?i:s,A.jsxs(Qt,{variant:"caption",sx:{fontWeight:600,fontSize:12,letterSpacing:.15},children:[t," ",r?"on":"off"]})]}),A.jsxs(kt,{children:[A.jsxs(mn,{direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,sx:{mb:.25},children:[A.jsxs(mn,{direction:"row",alignItems:"center",spacing:.6,children:[A.jsx(kt,{sx:{display:"flex",alignItems:"center",color:"text.secondary"},children:m}),A.jsx(Qt,{variant:"caption",sx:{color:"text.secondary",fontSize:11.5},children:h})]}),A.jsx(Qt,{variant:"caption",sx:{color:"text.secondary",fontFamily:"monospace",fontSize:11,opacity:v?.5:1},children:y===null?"— %":`${y}%`})]}),A.jsx(em,{"aria-label":h,value:y??0,min:0,max:100,disabled:y===null||o,onChange:(C,M)=>{typeof M=="number"&&w(M)},onChangeCommitted:(C,M)=>{typeof M=="number"&&b(M)},size:"small"})]})]})}const Bv=[-30,30],Lv=[-30,30],_v=[-160,160];function A3({robot:t,robotState:r}){const o=An(),[i,s]=S.useState(0),[c,d]=S.useState(0),[p,m]=S.useState(0),h=S.useRef({roll:!1,pitch:!1,yaw:!1});S.useEffect(()=>{const b=r.headRpy;b&&(h.current.roll||s(b.roll),h.current.pitch||d(b.pitch),h.current.yaw||m(b.yaw))},[r.headRpy]);const y=b=>{try{t.setTarget({head:yp(b.roll,b.pitch,b.yaw).flat()})}catch(E){console.warn("[head] setTarget failed:",E)}},v=b=>(E,C)=>{typeof C=="number"&&(h.current[b]=!0,b==="roll"&&s(C),b==="pitch"&&d(C),b==="yaw"&&m(C),y({roll:b==="roll"?C:i,pitch:b==="pitch"?C:c,yaw:b==="yaw"?C:p}))},w=b=>()=>{h.current[b]=!1};return A.jsxs(Ma,{elevation:0,sx:{p:1.75,display:"flex",flexDirection:"column",gap:1.25,borderRadius:1,border:`1px solid ${o.palette.divider}`,boxShadow:"none"},children:[A.jsx(Qt,{variant:"h6",children:"Head"}),A.jsx(Gd,{label:"Roll",value:i,min:Bv[0],max:Bv[1],step:.5,onChange:v("roll"),onCommit:w("roll")}),A.jsx(Gd,{label:"Pitch",value:c,min:Lv[0],max:Lv[1],step:.5,onChange:v("pitch"),onCommit:w("pitch")}),A.jsx(Gd,{label:"Yaw",value:p,min:_v[0],max:_v[1],step:.5,onChange:v("yaw"),onCommit:w("yaw")})]})}function Gd({label:t,value:r,min:o,max:i,step:s,onChange:c,onCommit:d}){return A.jsxs(mn,{direction:"row",alignItems:"center",spacing:1.5,sx:{width:"100%"},children:[A.jsx(Qt,{variant:"caption",sx:{color:"text.secondary",fontSize:11.5,width:44,flexShrink:0},children:t}),A.jsx(em,{"aria-label":`Head ${t.toLowerCase()}`,value:r,min:o,max:i,step:s,onChange:c,onChangeCommitted:d,size:"small",sx:{flex:1}}),A.jsxs(Qt,{variant:"caption",sx:{color:"text.secondary",fontFamily:"monospace",fontSize:11,width:52,textAlign:"right",flexShrink:0},children:[r.toFixed(1),"°"]})]})}const $v=[-160,160],Hv=[-160,160],pu=[-175,175];function R3({robot:t,robotState:r}){const o=An(),[i,s]=S.useState(0),[c,d]=S.useState(0),[p,m]=S.useState(0),h=S.useRef(0),y=S.useRef(!1),v=S.useRef(!1),w=S.useRef(!1);S.useEffect(()=>{!y.current&&r.bodyYawDeg!=null&&(s(r.bodyYawDeg),h.current=r.bodyYawDeg)},[r.bodyYawDeg]),S.useEffect(()=>{r.antennasDeg&&(v.current||d(r.antennasDeg[0]),w.current||m(r.antennasDeg[1]))},[r.antennasDeg]);const b=(C,M)=>{if(typeof M!="number")return;y.current=!0;const D=M-h.current;h.current=M,s(M);let L=(r.headRpy?.yaw??0)+D;L=Math.max(Hv[0],Math.min(Hv[1],L));try{const O=yp(r.headRpy?.roll??0,r.headRpy?.pitch??0,L).flat();t.setTarget({head:O,body_yaw:Cd(M)})}catch(O){console.warn("[body] tank-coupled setTarget failed:",O)}},E=C=>(M,D)=>{if(typeof D=="number"){C==="right"?(v.current=!0,d(D)):(w.current=!0,m(D));try{t.setTarget({antennas:[Cd(C==="right"?D:c),Cd(C==="left"?D:p)]})}catch(L){console.warn("[antennas] setTarget failed:",L)}}};return A.jsxs(Ma,{elevation:0,sx:{p:1.75,display:"flex",flexDirection:"column",gap:1.25,borderRadius:1,border:`1px solid ${o.palette.divider}`,boxShadow:"none"},children:[A.jsx(Qt,{variant:"h6",children:"Body & Antennas"}),A.jsx(Xd,{label:"Body",value:i,min:$v[0],max:$v[1],step:1,decimals:0,onChange:b,onCommit:()=>{y.current=!1}}),A.jsx(Xd,{label:"Right",value:c,min:pu[0],max:pu[1],step:1,decimals:0,onChange:E("right"),onCommit:()=>{v.current=!1}}),A.jsx(Xd,{label:"Left",value:p,min:pu[0],max:pu[1],step:1,decimals:0,onChange:E("left"),onCommit:()=>{w.current=!1}})]})}function Xd({label:t,value:r,min:o,max:i,step:s,decimals:c,onChange:d,onCommit:p}){return A.jsxs(mn,{direction:"row",alignItems:"center",spacing:1.5,children:[A.jsx(Qt,{variant:"caption",sx:{color:"text.secondary",fontSize:11.5,width:44,flexShrink:0},children:t}),A.jsx(em,{"aria-label":t,value:r,min:o,max:i,step:s,onChange:d,onChangeCommitted:p,size:"small",sx:{flex:1}}),A.jsxs(Qt,{variant:"caption",sx:{color:"text.secondary",fontFamily:"monospace",fontSize:11,width:52,textAlign:"right",flexShrink:0},children:[r.toFixed(c),"°"]})]})}const M3=Wt(A.jsx("path",{d:"M13 3h-2v10h2zm4.83 2.17-1.42 1.42C17.99 7.86 19 9.81 19 12c0 3.87-3.13 7-7 7s-7-3.13-7-7c0-2.19 1.01-4.14 2.58-5.42L6.17 5.17C4.23 6.82 3 9.26 3 12c0 4.97 4.03 9 9 9s9-4.03 9-9c0-2.74-1.23-5.18-3.17-6.83"})),O3=Wt([A.jsx("path",{d:"M11.1 12.08c-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.62-.27 1.29-.42 2-.42 1.66 0 3.18.83 4.1 2.15 1.67.48 2.9 2.02 2.9 3.85 0 1.52-.87 2.83-2.12 3.51.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-2.36.23-6.98-.97-9.26-5.41"},"0"),A.jsx("path",{d:"M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2"},"1")]),z3=Wt(A.jsx("path",{d:"M11 21h-1l1-7H7.5c-.58 0-.57-.32-.38-.66s.05-.08.07-.12C8.48 10.94 10.42 7.54 13 3h1l-1 7h3.5c.49 0 .56.33.47.51l-.07.15C12.96 17.55 11 21 11 21"}));function k3({motorMode:t,isAwake:r,isMoveRunning:o,onWake:i,onSleep:s,onToggleTorque:c}){const d=An(),p=t==null?"Torque …":t==="disabled"?"Torque: off":t==="gravity_compensation"?"Torque: gravity":"Torque: on";return A.jsxs(Ma,{elevation:0,sx:{p:1.75,display:"flex",flexDirection:"column",gap:1.25,borderRadius:1,border:`1px solid ${d.palette.divider}`,boxShadow:"none"},children:[A.jsx(Qt,{variant:"h6",children:"Motion"}),A.jsxs(mn,{direction:{xs:"column",sm:"row"},spacing:1,sx:{width:"100%"},children:[A.jsx(Si,{variant:r?"outlined":"contained",color:"primary",startIcon:A.jsx(M3,{}),disabled:o,onClick:i,sx:{flex:1},children:"Wake up"}),A.jsx(Si,{variant:"outlined",startIcon:A.jsx(O3,{}),disabled:o,onClick:s,sx:{flex:1},children:"Sleep"})]}),A.jsx(Si,{variant:t==="disabled"?"contained":"outlined",color:"primary",startIcon:A.jsx(z3,{}),onClick:c,sx:{width:"100%"},children:p}),o&&A.jsx(Qt,{variant:"caption",sx:{color:"text.secondary",fontSize:11,fontStyle:"italic"},"aria-live":"polite",children:"Move in progress on the daemon…"})]})}const N3=Wt(A.jsx("path",{d:"M8 5v14l11-7z"})),D3=["wake_up.wav","go_sleep.wav","yes.wav","no.wav","hello.wav","ping.wav"];function j3({robot:t,initialPreset:r}){const o=An(),[i,s]=S.useState(r??""),[c,d]=S.useState(null),p=S.useRef(null);S.useEffect(()=>{r!=null&&s(r)},[r]),S.useEffect(()=>()=>{p.current!=null&&window.clearTimeout(p.current)},[]);const m=h=>{if(h)try{t.playSound(h),d(h),p.current!=null&&window.clearTimeout(p.current),p.current=window.setTimeout(()=>d(null),900)}catch(y){console.warn("[sound] playSound failed:",y)}};return A.jsxs(Ma,{elevation:0,sx:{p:1.75,display:"flex",flexDirection:"column",gap:1.25,borderRadius:1,border:`1px solid ${o.palette.divider}`,boxShadow:"none"},children:[A.jsxs(mn,{direction:"row",alignItems:"baseline",spacing:1,children:[A.jsx(Qt,{variant:"h6",sx:{flex:1},children:"Sound"}),c&&A.jsxs(Qt,{variant:"caption",sx:{color:"primary.main",fontSize:11,fontFamily:"monospace"},"aria-live":"polite",children:["▶ ",c]})]}),A.jsxs(mn,{direction:"row",spacing:1,children:[A.jsx(f1,{size:"small",fullWidth:!0,value:i,onChange:h=>s(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m(i.trim())},placeholder:"e.g. wake_up.wav",inputProps:{"aria-label":"Sound file name",spellCheck:!1,autoCapitalize:"off",autoComplete:"off"},sx:{"& .MuiInputBase-input":{fontFamily:"monospace",fontSize:12}}}),A.jsx(Si,{variant:"contained",color:"primary",startIcon:A.jsx(N3,{}),disabled:!i.trim(),onClick:()=>m(i.trim()),children:"Play"})]}),A.jsx(kt,{children:A.jsx(mn,{direction:"row",sx:{flexWrap:"wrap",gap:.75},children:D3.map(h=>A.jsx(ku,{label:h,size:"small",onClick:()=>{s(h),m(h)},sx:{fontFamily:"monospace",fontSize:11,height:22,bgcolor:o.palette.mode==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.04)","&:hover":{bgcolor:o.palette.mode==="dark"?"rgba(255, 149, 0, 0.14)":"rgba(255, 149, 0, 0.12)",color:"primary.main"}}},h))})})]})}const B3=Wt(A.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"})),L3=800,_3=4;function $3({robot:t,filterRef:r}){const o=An(),[i,s]=S.useState(""),[c,d]=S.useState(0),[p,m]=S.useState(0),[h,y]=S.useState("idle"),v=S.useRef(null),w=S.useRef([]);S.useEffect(()=>{const C=i.trim().toLowerCase();let M=0;for(const{node:D,text:L}of w.current){const O=!C||L.toLowerCase().includes(C);D.style.display=O?"":"none",O&&(M+=1)}m(M)},[i]),S.useEffect(()=>{if(typeof t.subscribeLogs!="function"){y("unsupported");return}y("subscribed");let C=null;try{C=t.subscribeLogs({onLine:({timestamp:M,line:D})=>{const L=v.current;if(!L)return;const O=L.scrollTop+L.clientHeight>=L.scrollHeight-_3,R=document.createElement("div"),N=M?`${M} ${D}`:D;R.textContent=N,R.style.whiteSpace="pre-wrap",R.style.wordBreak="break-word",L.appendChild(R);const j={node:R,text:N};w.current.push(j);const $=i.trim().toLowerCase(),P=!$||N.toLowerCase().includes($);for(R.style.display=P?"":"none";w.current.length>L3;){const Y=w.current.shift();Y&&Y.node.remove()}d(w.current.length),m(Y=>P?Y+1:Y),O&&(L.scrollTop=L.scrollHeight)},onError:M=>{const D=v.current;if(!D)return;const L=document.createElement("div");L.textContent=`[log_stream_error] ${M}`,L.style.color="var(--logs-error, #ff8c8c)",D.appendChild(L),w.current.push({node:L,text:L.textContent}),d(w.current.length)}})}catch(M){console.warn("[logs] subscribeLogs threw:",M),y("unsupported")}return()=>{try{C?.()}catch(M){console.warn("[logs] unsubscribe threw:",M)}}},[t]);const b=()=>{const C=v.current;C&&(C.innerHTML=""),w.current=[],d(0),m(0)},E=i&&c>0&&p!==c?`${p} / ${c} lines`:`${c} line${c===1?"":"s"}`;return A.jsxs(Ma,{elevation:0,sx:{display:"flex",flexDirection:"column",gap:1,p:1.75,borderRadius:1,border:`1px solid ${o.palette.divider}`,boxShadow:"none","--logs-error":o.palette.mode==="dark"?"#ff8c8c":"#b03434"},children:[A.jsxs(mn,{direction:"row",alignItems:"center",spacing:1,children:[A.jsx(Qt,{variant:"h6",sx:{flex:1},children:"Daemon logs"}),A.jsx(Qt,{variant:"caption",sx:{color:"text.secondary",fontFamily:"monospace",fontSize:11},"aria-live":"polite",children:E}),A.jsx(Si,{size:"small",variant:"outlined",startIcon:A.jsx(B3,{}),onClick:b,disabled:c===0,children:"Clear"})]}),A.jsx(f1,{size:"small",fullWidth:!0,value:i,onChange:C=>s(C.target.value),placeholder:"Filter (press / to focus)",inputRef:C=>{r.current=C},inputProps:{"aria-label":"Log filter",spellCheck:!1,autoCapitalize:"off",autoComplete:"off"},sx:{"& .MuiInputBase-input":{fontFamily:"monospace",fontSize:12}}}),A.jsxs(kt,{ref:v,component:"pre",sx:{m:0,p:1,height:{xs:220,sm:280,md:320},overflow:"auto",fontFamily:"monospace",fontSize:11.5,lineHeight:1.5,color:"text.secondary",bgcolor:o.palette.mode==="dark"?"rgba(0,0,0,0.35)":"rgba(0,0,0,0.03)",borderRadius:1,border:`1px solid ${o.palette.divider}`},"aria-label":"Daemon log stream",children:[h==="unsupported"&&A.jsx("span",{style:{opacity:.7},children:"subscribeLogs not exposed by this SDK build — upgrade the SDK pin to surface daemon logs."}),h==="subscribed"&&c===0&&A.jsx("span",{style:{opacity:.5},children:"Waiting for stream…"})]})]})}const H3={raw:{},headRpy:null,antennasDeg:null,bodyYawDeg:null,motorMode:null,isAwake:!1,isMoveRunning:!1};function U3(t){const[r,o]=S.useState(()=>Uv(t.robotState??{}));return S.useEffect(()=>{const i=s=>{const c=s.detail??{};o(Uv(c))};t.addEventListener("state",i);try{t.requestState()}catch{}return()=>t.removeEventListener("state",i)},[t]),r}function Uv(t){const r={...H3,raw:t};if(Array.isArray(t.head)&&t.head.length===16)try{const o=[t.head.slice(0,4),t.head.slice(4,8),t.head.slice(8,12),t.head.slice(12,16)],{roll:i,pitch:s,yaw:c}=Nx(o);r.headRpy={roll:i,pitch:s,yaw:c}}catch{}return Array.isArray(t.antennas)&&t.antennas.length===2&&(r.antennasDeg=[Td(t.antennas[0]??0),Td(t.antennas[1]??0)]),typeof t.body_yaw=="number"&&(r.bodyYawDeg=Td(t.body_yaw)),typeof t.motor_mode=="string"&&(r.motorMode=t.motor_mode,r.isAwake=t.motor_mode!=="disabled"),typeof t.is_move_running=="boolean"&&(r.isMoveRunning=t.is_move_running),r}const P3={rttMs:null,bufferLagMs:null,videoJitterMs:null,audioJitterMs:null,health:"unknown"};function V3(t){const[r,o]=S.useState(P3),i=S.useRef(null);return S.useEffect(()=>{const s=window.setInterval(async()=>{let c=null;const d=i.current;if(d&&d.buffered&&d.buffered.length>0){const w=d.buffered.end(d.buffered.length-1);c=Math.round((w-d.currentTime)*1e3)}let p=null,m=null,h=null;const y=t._pc;if(y)try{(await y.getStats()).forEach(b=>{if(b.type==="candidate-pair"&&b.currentRoundTripTime!=null&&(p=Math.round((b.currentRoundTripTime??0)*1e3)),b.type==="inbound-rtp"&&"jitterBufferDelay"in b&&"jitterBufferEmittedCount"in b){const E=b,C=E.jitterBufferDelay,M=E.jitterBufferEmittedCount;if(C!=null&&M!=null&&M>0){const D=Math.round(C/M*1e3);E.kind==="video"&&(m=D),E.kind==="audio"&&(h=D)}}})}catch{}const v=q3(p,c);o({rttMs:p,bufferLagMs:c,videoJitterMs:m,audioJitterMs:h,health:v})},1e3);return()=>{window.clearInterval(s)}},[t]),{...r,setVideoElement:s=>{i.current=s}}}function q3(t,r){const o=r??t;return o==null?"unknown":o<200?"good":o<500?"ok":"bad"}function Y3(t){const r=o=>{const i=o.target,s=(i?.tagName||"").toLowerCase(),c=s==="input"||s==="textarea"||i?.isContentEditable===!0;if(o.key==="/"&&!c){o.preventDefault(),t.onFocusLogFilter();return}if(!c&&!(o.metaKey||o.ctrlKey||o.altKey))switch(o.key.toLowerCase()){case"m":t.onToggleSpeaker();break;case"n":t.onToggleMic();break;case"t":t.onToggleTorque();break;case"w":t.onWake();break;case"s":t.onSleep();break;default:return}};return window.addEventListener("keydown",r),()=>window.removeEventListener("keydown",r)}function I3({handle:t,initialPreset:r}){const{reachy:o,media:i,userName:s,requestLeave:c}=t,d=An(),p=a3(d.breakpoints.up("md")),m=U3(o),[h,y]=S.useState(o.micMuted),[v,w]=S.useState(o.audioMuted),[b,E]=S.useState(o.micSupported),C=V3(o),[M,D]=S.useState(null),L=S.useRef(null);S.useEffect(()=>{let q=!1;return o.getVersion().then(Q=>{q||D(Q)}),()=>{q=!0}},[o]),S.useEffect(()=>{const q=()=>E(o.micSupported);return o.addEventListener("micSupported",q),()=>o.removeEventListener("micSupported",q)},[o]);const O=()=>{const q=!o.micMuted;o.setMicMuted(q),y(o.micMuted)},R=()=>{const q=!o.audioMuted;o.setAudioMuted(q),w(o.audioMuted)},N=()=>{if(typeof o.setMotorMode!="function")return;const q=m.motorMode!=null&&m.motorMode!=="disabled";o.setMotorMode(q?"disabled":"enabled")},j=()=>{typeof o.wakeUp=="function"&&o.wakeUp().catch(q=>{console.warn("[dashboard] wakeUp failed:",q)})},$=()=>{typeof o.gotoSleep=="function"&&o.gotoSleep().catch(q=>{console.warn("[dashboard] gotoSleep failed:",q)})},P=()=>{L.current?.focus()},Y=S.useMemo(()=>({onToggleSpeaker:R,onToggleMic:O,onToggleTorque:N,onWake:j,onSleep:$,onFocusLogFilter:P}),[o,m.motorMode]);return S.useEffect(()=>Y3(Y),[Y]),A.jsxs(kt,{sx:{minHeight:"100dvh",display:"flex",flexDirection:"column",bgcolor:"background.default"},children:[A.jsx(g3,{userName:s,daemonVersion:M,latency:C,motorMode:m.motorMode,onLeave:c}),A.jsxs(kt,{component:"main",sx:{flex:1,width:"100%",maxWidth:1280,mx:"auto",px:{xs:1.5,sm:2},py:{xs:1.5,sm:2},pb:`calc(${d.spacing(2)} + env(safe-area-inset-bottom, 0px))`,display:"grid",gap:2,gridTemplateColumns:p?"minmax(0, 1fr) 360px":"1fr",gridTemplateAreas:p?`"video aside" - "audio aside" - "logs logs"`:`"video" - "audio" - "aside" - "logs"`},children:[A.jsx(kt,{sx:{gridArea:"video",minWidth:0},children:A.jsx(b3,{attachVideo:i.attachVideo,micMuted:h,audioMuted:v,latency:C})}),A.jsx(kt,{sx:{gridArea:"audio",minWidth:0},children:A.jsx(w3,{robot:o,micStream:i.micStream,robotStream:i.robotStream,micMuted:h,audioMuted:v,micSupported:b,onToggleMic:O,onToggleSpeaker:R})}),A.jsxs(kt,{sx:{gridArea:"aside",minWidth:0,display:"flex",flexDirection:"column",gap:2},children:[A.jsx(A3,{robot:o,robotState:m}),A.jsx(R3,{robot:o,robotState:m}),A.jsx(k3,{motorMode:m.motorMode,isAwake:m.isAwake,isMoveRunning:m.isMoveRunning,onWake:j,onSleep:$,onToggleTorque:N}),A.jsx(j3,{robot:o,initialPreset:r})]}),A.jsx(kt,{sx:{gridArea:"logs",minWidth:0},children:A.jsx($3,{robot:o,filterRef:L})})]}),A.jsxs(mn,{direction:"row",spacing:2,sx:{display:{xs:"none",md:"flex"},justifyContent:"center",py:1,color:"text.secondary",fontSize:11,opacity:.6},"aria-hidden":!0,children:[A.jsx(Ko,{k:"M",label:"speaker"}),A.jsx(Ko,{k:"N",label:"mic"}),A.jsx(Ko,{k:"T",label:"torque"}),A.jsx(Ko,{k:"W",label:"wake"}),A.jsx(Ko,{k:"S",label:"sleep"}),A.jsx(Ko,{k:"/",label:"filter logs"})]})]})}function Ko({k:t,label:r}){return A.jsxs(kt,{component:"span",sx:{display:"inline-flex",gap:.5,alignItems:"baseline"},children:[A.jsx(kt,{component:"kbd",sx:o=>({display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:18,height:18,px:.5,borderRadius:.75,border:`1px solid ${o.palette.divider}`,fontFamily:"monospace",fontSize:10,lineHeight:1,color:"text.primary",bgcolor:o.palette.mode==="dark"?"rgba(255,255,255,0.04)":"rgba(0,0,0,0.04)"}),children:t}),A.jsx("span",{children:r})]})}const G3="#FF9500",Fd=12,X3='Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif';function y1(t){const r=t==="dark";return nc({palette:{mode:t,primary:{main:G3},background:{default:r?"#101013":"#fafafa",paper:r?"#1a1a1a":"#ffffff"},text:{primary:r?"#f5f5f5":"#111111",secondary:r?"rgba(255,255,255,0.72)":"rgba(0,0,0,0.65)"},divider:r?"rgba(255,255,255,0.08)":"rgba(0,0,0,0.08)"},typography:{fontFamily:X3,button:{textTransform:"none",fontWeight:600},h6:{fontSize:14,fontWeight:700,letterSpacing:"0.2px"}},shape:{borderRadius:Fd},components:{MuiCssBaseline:{styleOverrides:{html:{backgroundColor:r?"#101013":"#fafafa",minHeight:["100vh","100dvh"]},body:{backgroundColor:r?"#101013":"#fafafa",minHeight:["100vh","100dvh"],margin:0,WebkitTapHighlightColor:"transparent",overscrollBehaviorY:"contain",userSelect:"none",WebkitUserSelect:"none",'& input, & textarea, & [contenteditable="true"]':{userSelect:"text",WebkitUserSelect:"text"}},"#root":{minHeight:["100vh","100dvh"],display:"flex",flexDirection:"column"}}},MuiButton:{defaultProps:{disableElevation:!0,variant:"outlined"},styleOverrides:{root:{borderRadius:Fd,paddingInline:16,paddingBlock:8},outlined:{borderWidth:1.5},outlinedPrimary:({theme:o})=>({borderColor:o.palette.primary.main,"&:hover":{borderWidth:1.5,backgroundColor:`rgba(255, 149, 0, ${o.palette.mode==="dark"?.1:.08})`}})}},MuiPaper:{styleOverrides:{root:{backgroundImage:"none"}}},MuiCard:{styleOverrides:{root:{borderRadius:Fd}}},MuiTooltip:{styleOverrides:{tooltip:{fontSize:12,paddingBlock:6,paddingInline:10}}},MuiSlider:{styleOverrides:{thumb:{width:14,height:14,boxShadow:"0 1px 2px rgba(0,0,0,0.18)"},rail:{opacity:.35}}}}})}const F3=y1("light"),K3=y1("dark");function Pv(t){if(t==null||typeof t!="object")return!1;const r=t;return r.initialSoundPreset===void 0||typeof r.initialSoundPreset=="string"}async function Q3(){const t=await d1(),r=document.getElementById("root");if(!r)throw new Error("Missing #root element");t.onLeave(()=>{try{t.reachy.setMotorMode("enabled");const o=yp(0,0,0).flat();t.reachy.gotoTarget({head:o,antennas:[-.1745,.1745],body_yaw:0,duration:1})}catch(o){console.warn("[dashboard] safe-return dispatch failed:",o)}}),Vx.createRoot(r).render(A.jsx(S.StrictMode,{children:A.jsx(Z3,{handle:t})}))}function Z3({handle:t}){const[r,o]=S.useState(t.theme),[i,s]=S.useState(Pv(t.config)?t.config:null);S.useEffect(()=>t.onThemeChange(d=>o(d)),[t]),S.useEffect(()=>t.onConfigChange(d=>{s(Pv(d)?d:null)}),[t]);const c=r==="dark"?K3:F3;return A.jsxs(S5,{theme:c,children:[A.jsx(NA,{}),A.jsx(I3,{handle:t,initialPreset:i?.initialSoundPreset})]})}Q3().catch(t=>{console.error("[dashboard/embed] bootstrap failed",t);try{window.parent.postMessage({source:"reachy-mini",type:"embed:error",version:1,message:t instanceof Error?t.message:String(t),fatal:!0},window.location.origin)}catch{}});