index-ac765696.js
1 var AO=Object.defineProperty;var $O=(e,t,n)=>t in e?AO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var qa=(e,t,n)=>($O(e,typeof t!="symbol"?t+"":t,n),n);function DO(e,t){for(var n=0;n<t.length;n++){const o=t[n];if(typeof o!="string"&&!Array.isArray(o)){for(const r in o)if(r!=="default"&&!(r in e)){const l=Object.getOwnPropertyDescriptor(o,r);l&&Object.defineProperty(e,r,l.get?l:{enumerable:!0,get:()=>o[r]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))o(r);new MutationObserver(r=>{for(const l of r)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&o(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const l={};return r.integrity&&(l.integrity=r.integrity),r.referrerPolicy&&(l.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?l.credentials="include":r.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function o(r){if(r.ep)return;r.ep=!0;const l=n(r);fetch(r.href,l)}})();function fp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bx={exports:{}},pp={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var LO=Symbol.for("react.transitional.element"),zO=Symbol.for("react.fragment");function Hx(e,t,n){var o=null;if(n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),"key"in t){n={};for(var r in t)r!=="key"&&(n[r]=t[r])}else n=t;return t=n.ref,{$$typeof:LO,type:e,key:o,ref:t!==void 0?t:null,props:n}}pp.Fragment=zO;pp.jsx=Hx;pp.jsxs=Hx;Bx.exports=pp;var x=Bx.exports,Nx={exports:{}},hp={},jx={exports:{}},Gx={};/** 10 * @license React 11 * scheduler.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */(function(e){function t(I,$){var B=I.length;I.push($);e:for(;0<B;){var G=B-1>>>1,j=I[G];if(0<r(j,$))I[G]=$,I[B]=j,B=G;else break e}}function n(I){return I.length===0?null:I[0]}function o(I){if(I.length===0)return null;var $=I[0],B=I.pop();if(B!==$){I[0]=B;e:for(var G=0,j=I.length,N=j>>>1;G<N;){var H=2*(G+1)-1,_=I[H],U=H+1,K=I[U];if(0>r(_,B))U<j&&0>r(K,_)?(I[G]=K,I[U]=B,G=U):(I[G]=_,I[H]=B,G=H);else if(U<j&&0>r(K,B))I[G]=K,I[U]=B,G=U;else break e}}return $}function r(I,$){var B=I.sortIndex-$.sortIndex;return B!==0?B:I.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;e.unstable_now=function(){return l.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var a=[],u=[],c=1,d=null,p=3,h=!1,g=!1,y=!1,w=!1,m=typeof setTimeout=="function"?setTimeout:null,b=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;function S(I){for(var $=n(u);$!==null;){if($.callback===null)o(u);else if($.startTime<=I)o(u),$.sortIndex=$.expirationTime,t(a,$);else break;$=n(u)}}function M(I){if(y=!1,S(I),!g)if(n(a)!==null)g=!0,R||(R=!0,A());else{var $=n(u);$!==null&&D(M,$.startTime-I)}}var R=!1,k=-1,E=5,P=-1;function C(){return w?!0:!(e.unstable_now()-P<E)}function T(){if(w=!1,R){var I=e.unstable_now();P=I;var $=!0;try{e:{g=!1,y&&(y=!1,b(k),k=-1),h=!0;var B=p;try{t:{for(S(I),d=n(a);d!==null&&!(d.expirationTime>I&&C());){var G=d.callback;if(typeof G=="function"){d.callback=null,p=d.priorityLevel;var j=G(d.expirationTime<=I);if(I=e.unstable_now(),typeof j=="function"){d.callback=j,S(I),$=!0;break t}d===n(a)&&o(a),S(I)}else o(a);d=n(a)}if(d!==null)$=!0;else{var N=n(u);N!==null&&D(M,N.startTime-I),$=!1}}break e}finally{d=null,p=B,h=!1}$=void 0}}finally{$?A():R=!1}}}var A;if(typeof v=="function")A=function(){v(T)};else if(typeof MessageChannel<"u"){var L=new MessageChannel,F=L.port2;L.port1.onmessage=T,A=function(){F.postMessage(null)}}else A=function(){m(T,0)};function D(I,$){k=m(function(){I(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(I){switch(p){case 1:case 2:case 3:var $=3;break;default:$=p}var B=p;p=$;try{return I()}finally{p=B}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(I,$){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var B=p;p=I;try{return $()}finally{p=B}},e.unstable_scheduleCallback=function(I,$,B){var G=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?G+B:G):B=G,I){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=B+j,I={id:c++,callback:$,priorityLevel:I,startTime:B,expirationTime:j,sortIndex:-1},B>G?(I.sortIndex=B,t(u,I),n(a)===null&&I===n(u)&&(y?(b(k),k=-1):y=!0,D(M,B-G))):(I.sortIndex=j,t(a,I),g||h||(g=!0,R||(R=!0,A()))),I},e.unstable_shouldYield=C,e.unstable_wrapCallback=function(I){var $=p;return function(){var B=p;p=$;try{return I.apply(this,arguments)}finally{p=B}}}})(Gx);jx.exports=Gx;var FO=jx.exports,_x={exports:{}},it={};/** 18 * @license React 19 * react.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var Vb=Symbol.for("react.transitional.element"),BO=Symbol.for("react.portal"),HO=Symbol.for("react.fragment"),NO=Symbol.for("react.strict_mode"),jO=Symbol.for("react.profiler"),GO=Symbol.for("react.consumer"),_O=Symbol.for("react.context"),VO=Symbol.for("react.forward_ref"),UO=Symbol.for("react.suspense"),WO=Symbol.for("react.memo"),Vx=Symbol.for("react.lazy"),fC=Symbol.iterator;function qO(e){return e===null||typeof e!="object"?null:(e=fC&&e[fC]||e["@@iterator"],typeof e=="function"?e:null)}var Ux={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Wx=Object.assign,qx={};function Ea(e,t,n){this.props=e,this.context=t,this.refs=qx,this.updater=n||Ux}Ea.prototype.isReactComponent={};Ea.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ea.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Kx(){}Kx.prototype=Ea.prototype;function Ub(e,t,n){this.props=e,this.context=t,this.refs=qx,this.updater=n||Ux}var Wb=Ub.prototype=new Kx;Wb.constructor=Ub;Wx(Wb,Ea.prototype);Wb.isPureReactComponent=!0;var pC=Array.isArray,Wt={H:null,A:null,T:null,S:null,V:null},Yx=Object.prototype.hasOwnProperty;function qb(e,t,n,o,r,l){return n=l.ref,{$$typeof:Vb,type:e,key:t,ref:n!==void 0?n:null,props:l}}function KO(e,t){return qb(e.type,t,void 0,void 0,void 0,e.props)}function Kb(e){return typeof e=="object"&&e!==null&&e.$$typeof===Vb}function YO(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var hC=/\/+/g;function Nh(e,t){return typeof e=="object"&&e!==null&&e.key!=null?YO(""+e.key):t.toString(36)}function gC(){}function XO(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(gC,gC):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function vs(e,t,n,o,r){var l=typeof e;(l==="undefined"||l==="boolean")&&(e=null);var i=!1;if(e===null)i=!0;else switch(l){case"bigint":case"string":case"number":i=!0;break;case"object":switch(e.$$typeof){case Vb:case BO:i=!0;break;case Vx:return i=e._init,vs(i(e._payload),t,n,o,r)}}if(i)return r=r(e),i=o===""?"."+Nh(e,0):o,pC(r)?(n="",i!=null&&(n=i.replace(hC,"$&/")+"/"),vs(r,t,n,"",function(u){return u})):r!=null&&(Kb(r)&&(r=KO(r,n+(r.key==null||e&&e.key===r.key?"":(""+r.key).replace(hC,"$&/")+"/")+i)),t.push(r)),1;i=0;var s=o===""?".":o+":";if(pC(e))for(var a=0;a<e.length;a++)o=e[a],l=s+Nh(o,a),i+=vs(o,t,n,l,r);else if(a=qO(e),typeof a=="function")for(e=a.call(e),a=0;!(o=e.next()).done;)o=o.value,l=s+Nh(o,a++),i+=vs(o,t,n,l,r);else if(l==="object"){if(typeof e.then=="function")return vs(XO(e),t,n,o,r);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return i}function sd(e,t,n){if(e==null)return e;var o=[],r=0;return vs(e,o,"","",function(l){return t.call(n,l,r++)}),o}function QO(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var mC=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function ZO(){}it.Children={map:sd,forEach:function(e,t,n){sd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return sd(e,function(){t++}),t},toArray:function(e){return sd(e,function(t){return t})||[]},only:function(e){if(!Kb(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};it.Component=Ea;it.Fragment=HO;it.Profiler=jO;it.PureComponent=Ub;it.StrictMode=NO;it.Suspense=UO;it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Wt;it.__COMPILER_RUNTIME={__proto__:null,c:function(e){return Wt.H.useMemoCache(e)}};it.cache=function(e){return function(){return e.apply(null,arguments)}};it.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Wx({},e.props),r=e.key,l=void 0;if(t!=null)for(i in t.ref!==void 0&&(l=void 0),t.key!==void 0&&(r=""+t.key),t)!Yx.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(o[i]=t[i]);var i=arguments.length-2;if(i===1)o.children=n;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];o.children=s}return qb(e.type,r,void 0,void 0,l,o)};it.createContext=function(e){return e={$$typeof:_O,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:GO,_context:e},e};it.createElement=function(e,t,n){var o,r={},l=null;if(t!=null)for(o in t.key!==void 0&&(l=""+t.key),t)Yx.call(t,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(r[o]=t[o]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var s=Array(i),a=0;a<i;a++)s[a]=arguments[a+2];r.children=s}if(e&&e.defaultProps)for(o in i=e.defaultProps,i)r[o]===void 0&&(r[o]=i[o]);return qb(e,l,void 0,void 0,null,r)};it.createRef=function(){return{current:null}};it.forwardRef=function(e){return{$$typeof:VO,render:e}};it.isValidElement=Kb;it.lazy=function(e){return{$$typeof:Vx,_payload:{_status:-1,_result:e},_init:QO}};it.memo=function(e,t){return{$$typeof:WO,type:e,compare:t===void 0?null:t}};it.startTransition=function(e){var t=Wt.T,n={};Wt.T=n;try{var o=e(),r=Wt.S;r!==null&&r(n,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(ZO,mC)}catch(l){mC(l)}finally{Wt.T=t}};it.unstable_useCacheRefresh=function(){return Wt.H.useCacheRefresh()};it.use=function(e){return Wt.H.use(e)};it.useActionState=function(e,t,n){return Wt.H.useActionState(e,t,n)};it.useCallback=function(e,t){return Wt.H.useCallback(e,t)};it.useContext=function(e){return Wt.H.useContext(e)};it.useDebugValue=function(){};it.useDeferredValue=function(e,t){return Wt.H.useDeferredValue(e,t)};it.useEffect=function(e,t,n){var o=Wt.H;if(typeof n=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return o.useEffect(e,t)};it.useId=function(){return Wt.H.useId()};it.useImperativeHandle=function(e,t,n){return Wt.H.useImperativeHandle(e,t,n)};it.useInsertionEffect=function(e,t){return Wt.H.useInsertionEffect(e,t)};it.useLayoutEffect=function(e,t){return Wt.H.useLayoutEffect(e,t)};it.useMemo=function(e,t){return Wt.H.useMemo(e,t)};it.useOptimistic=function(e,t){return Wt.H.useOptimistic(e,t)};it.useReducer=function(e,t,n){return Wt.H.useReducer(e,t,n)};it.useRef=function(e){return Wt.H.useRef(e)};it.useState=function(e){return Wt.H.useState(e)};it.useSyncExternalStore=function(e,t,n){return Wt.H.useSyncExternalStore(e,t,n)};it.useTransition=function(){return Wt.H.useTransition()};it.version="19.1.0";_x.exports=it;var f=_x.exports;const Rr=fp(f),Jg=DO({__proto__:null,default:Rr},[f]);var Xx={exports:{}},to={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var JO=f;function Qx(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Il(){}var Jn={d:{f:Il,r:function(){throw Error(Qx(522))},D:Il,C:Il,L:Il,m:Il,X:Il,S:Il,M:Il},p:0,findDOMNode:null},eR=Symbol.for("react.portal");function tR(e,t,n){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:eR,key:o==null?null:""+o,children:e,containerInfo:t,implementation:n}}var Mc=JO.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function gp(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}to.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Jn;to.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(Qx(299));return tR(e,t,null,n)};to.flushSync=function(e){var t=Mc.T,n=Jn.p;try{if(Mc.T=null,Jn.p=2,e)return e()}finally{Mc.T=t,Jn.p=n,Jn.d.f()}};to.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Jn.d.C(e,t))};to.prefetchDNS=function(e){typeof e=="string"&&Jn.d.D(e)};to.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,o=gp(n,t.crossOrigin),r=typeof t.integrity=="string"?t.integrity:void 0,l=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?Jn.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:o,integrity:r,fetchPriority:l}):n==="script"&&Jn.d.X(e,{crossOrigin:o,integrity:r,fetchPriority:l,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};to.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=gp(t.as,t.crossOrigin);Jn.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Jn.d.M(e)};to.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,o=gp(n,t.crossOrigin);Jn.d.L(e,n,{crossOrigin:o,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};to.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=gp(t.as,t.crossOrigin);Jn.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Jn.d.m(e)};to.requestFormReset=function(e){Jn.d.r(e)};to.unstable_batchedUpdates=function(e,t){return e(t)};to.useFormState=function(e,t,n){return Mc.H.useFormState(e,t,n)};to.useFormStatus=function(){return Mc.H.useHostTransitionStatus()};to.version="19.1.0";function Zx(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Zx)}catch(e){console.error(e)}}Zx(),Xx.exports=to;var mp=Xx.exports;const ad=fp(mp);/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var xn=FO,Jx=f,nR=mp;function he(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function e1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Cu(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function t1(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function bC(e){if(Cu(e)!==e)throw Error(he(188))}function oR(e){var t=e.alternate;if(!t){if(t=Cu(e),t===null)throw Error(he(188));return t!==e?null:e}for(var n=e,o=t;;){var r=n.return;if(r===null)break;var l=r.alternate;if(l===null){if(o=r.return,o!==null){n=o;continue}break}if(r.child===l.child){for(l=r.child;l;){if(l===n)return bC(r),e;if(l===o)return bC(r),t;l=l.sibling}throw Error(he(188))}if(n.return!==o.return)n=r,o=l;else{for(var i=!1,s=r.child;s;){if(s===n){i=!0,n=r,o=l;break}if(s===o){i=!0,o=r,n=l;break}s=s.sibling}if(!i){for(s=l.child;s;){if(s===n){i=!0,n=l,o=r;break}if(s===o){i=!0,o=l,n=r;break}s=s.sibling}if(!i)throw Error(he(189))}}if(n.alternate!==o)throw Error(he(190))}if(n.tag!==3)throw Error(he(188));return n.stateNode.current===n?e:t}function n1(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=n1(e),t!==null)return t;e=e.sibling}return null}var _t=Object.assign,rR=Symbol.for("react.element"),cd=Symbol.for("react.transitional.element"),gc=Symbol.for("react.portal"),Ts=Symbol.for("react.fragment"),o1=Symbol.for("react.strict_mode"),em=Symbol.for("react.profiler"),lR=Symbol.for("react.provider"),r1=Symbol.for("react.consumer"),tl=Symbol.for("react.context"),Yb=Symbol.for("react.forward_ref"),tm=Symbol.for("react.suspense"),nm=Symbol.for("react.suspense_list"),Xb=Symbol.for("react.memo"),zl=Symbol.for("react.lazy"),om=Symbol.for("react.activity"),iR=Symbol.for("react.memo_cache_sentinel"),yC=Symbol.iterator;function Ka(e){return e===null||typeof e!="object"?null:(e=yC&&e[yC]||e["@@iterator"],typeof e=="function"?e:null)}var sR=Symbol.for("react.client.reference");function rm(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===sR?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ts:return"Fragment";case em:return"Profiler";case o1:return"StrictMode";case tm:return"Suspense";case nm:return"SuspenseList";case om:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case gc:return"Portal";case tl:return(e.displayName||"Context")+".Provider";case r1:return(e._context.displayName||"Context")+".Consumer";case Yb:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Xb:return t=e.displayName||null,t!==null?t:rm(e.type)||"Memo";case zl:t=e._payload,e=e._init;try{return rm(e(t))}catch{}}return null}var mc=Array.isArray,Qe=Jx.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Et=nR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ki={pending:!1,data:null,method:null,action:null},lm=[],Ps=-1;function _r(e){return{current:e}}function kn(e){0>Ps||(e.current=lm[Ps],lm[Ps]=null,Ps--)}function qt(e,t){Ps++,lm[Ps]=e.current,e.current=t}var Lr=_r(null),qc=_r(null),Zl=_r(null),pf=_r(null);function hf(e,t){switch(qt(Zl,t),qt(qc,e),qt(Lr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?xS(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=xS(t),e=SE(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}kn(Lr),qt(Lr,e)}function ta(){kn(Lr),kn(qc),kn(Zl)}function im(e){e.memoizedState!==null&&qt(pf,e);var t=Lr.current,n=SE(t,e.type);t!==n&&(qt(qc,e),qt(Lr,n))}function gf(e){qc.current===e&&(kn(Lr),kn(qc)),pf.current===e&&(kn(pf),ou._currentValue=ki)}var sm=Object.prototype.hasOwnProperty,Qb=xn.unstable_scheduleCallback,jh=xn.unstable_cancelCallback,aR=xn.unstable_shouldYield,cR=xn.unstable_requestPaint,zr=xn.unstable_now,uR=xn.unstable_getCurrentPriorityLevel,l1=xn.unstable_ImmediatePriority,i1=xn.unstable_UserBlockingPriority,mf=xn.unstable_NormalPriority,dR=xn.unstable_LowPriority,s1=xn.unstable_IdlePriority,fR=xn.log,pR=xn.unstable_setDisableYieldValue,Su=null,Co=null;function Kl(e){if(typeof fR=="function"&&pR(e),Co&&typeof Co.setStrictMode=="function")try{Co.setStrictMode(Su,e)}catch{}}var So=Math.clz32?Math.clz32:mR,hR=Math.log,gR=Math.LN2;function mR(e){return e>>>=0,e===0?32:31-(hR(e)/gR|0)|0}var ud=256,dd=4194304;function xi(e){var t=e&42;if(t!==0)return t;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:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 bp(e,t,n){var o=e.pendingLanes;if(o===0)return 0;var r=0,l=e.suspendedLanes,i=e.pingedLanes;e=e.warmLanes;var s=o&134217727;return s!==0?(o=s&~l,o!==0?r=xi(o):(i&=s,i!==0?r=xi(i):n||(n=s&~e,n!==0&&(r=xi(n))))):(s=o&~l,s!==0?r=xi(s):i!==0?r=xi(i):n||(n=o&~e,n!==0&&(r=xi(n)))),r===0?0:t!==0&&t!==r&&!(t&l)&&(l=r&-r,n=t&-t,l>=n||l===32&&(n&4194048)!==0)?t:r}function wu(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function bR(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 a1(){var e=ud;return ud<<=1,!(ud&4194048)&&(ud=256),e}function c1(){var e=dd;return dd<<=1,!(dd&62914560)&&(dd=4194304),e}function Gh(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function xu(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function yR(e,t,n,o,r,l){var i=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,a=e.expirationTimes,u=e.hiddenUpdates;for(n=i&~n;0<n;){var c=31-So(n),d=1<<c;s[c]=0,a[c]=-1;var p=u[c];if(p!==null)for(u[c]=null,c=0;c<p.length;c++){var h=p[c];h!==null&&(h.lane&=-536870913)}n&=~d}o!==0&&u1(e,o,0),l!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=l&~(i&~t))}function u1(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-So(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|n&4194090}function d1(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var o=31-So(n),r=1<<o;r&t|e[o]&t&&(e[o]|=t),n&=~r}}function Zb(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Jb(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function f1(){var e=Et.p;return e!==0?e:(e=window.event,e===void 0?32:kE(e.type))}function vR(e,t){var n=Et.p;try{return Et.p=e,t()}finally{Et.p=n}}var pi=Math.random().toString(36).slice(2),Un="__reactFiber$"+pi,co="__reactProps$"+pi,Ta="__reactContainer$"+pi,am="__reactEvents$"+pi,CR="__reactListeners$"+pi,SR="__reactHandles$"+pi,vC="__reactResources$"+pi,Mu="__reactMarker$"+pi;function ey(e){delete e[Un],delete e[co],delete e[am],delete e[CR],delete e[SR]}function Is(e){var t=e[Un];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ta]||n[Un]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=TS(e);e!==null;){if(n=e[Un])return n;e=TS(e)}return t}e=n,n=e.parentNode}return null}function Pa(e){if(e=e[Un]||e[Ta]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function bc(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(he(33))}function _s(e){var t=e[vC];return t||(t=e[vC]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function In(e){e[Mu]=!0}var p1=new Set,h1={};function Qi(e,t){na(e,t),na(e+"Capture",t)}function na(e,t){for(h1[e]=t,e=0;e<t.length;e++)p1.add(t[e])}var wR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),CC={},SC={};function xR(e){return sm.call(SC,e)?!0:sm.call(CC,e)?!1:wR.test(e)?SC[e]=!0:(CC[e]=!0,!1)}function Bd(e,t,n){if(xR(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function fd(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function qr(e,t,n,o){if(o===null)e.removeAttribute(n);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+o)}}var _h,wC;function Cs(e){if(_h===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_h=t&&t[1]||"",wC=-1<n.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return` 43 `+_h+e+wC}var Vh=!1;function Uh(e,t){if(!e||Vh)return"";Vh=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(h){var p=h}Reflect.construct(e,[],d)}else{try{d.call()}catch(h){p=h}e.call(d.prototype)}}else{try{throw Error()}catch(h){p=h}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(h){if(h&&p&&typeof h.stack=="string")return[h.stack,p.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var l=o.DetermineComponentFrameRoot(),i=l[0],s=l[1];if(i&&s){var a=i.split(` 44 `),u=s.split(` 45 `);for(r=o=0;o<a.length&&!a[o].includes("DetermineComponentFrameRoot");)o++;for(;r<u.length&&!u[r].includes("DetermineComponentFrameRoot");)r++;if(o===a.length||r===u.length)for(o=a.length-1,r=u.length-1;1<=o&&0<=r&&a[o]!==u[r];)r--;for(;1<=o&&0<=r;o--,r--)if(a[o]!==u[r]){if(o!==1||r!==1)do if(o--,r--,0>r||a[o]!==u[r]){var c=` 46 `+a[o].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=o&&0<=r);break}}}finally{Vh=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?Cs(n):""}function MR(e){switch(e.tag){case 26:case 27:case 5:return Cs(e.type);case 16:return Cs("Lazy");case 13:return Cs("Suspense");case 19:return Cs("SuspenseList");case 0:case 15:return Uh(e.type,!1);case 11:return Uh(e.type.render,!1);case 1:return Uh(e.type,!0);case 31:return Cs("Activity");default:return""}}function xC(e){try{var t="";do t+=MR(e),e=e.return;while(e);return t}catch(n){return` 47 Error generating stack: `+n.message+` 48 `+n.stack}}function Fo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function g1(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ER(e){var t=g1(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),o=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var r=n.get,l=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(i){o=""+i,l.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return o},setValue:function(i){o=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bf(e){e._valueTracker||(e._valueTracker=ER(e))}function m1(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),o="";return e&&(o=g1(e)?e.checked?"true":"false":e.value),e=o,e!==n?(t.setValue(e),!0):!1}function yf(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var TR=/[\n"\\]/g;function _o(e){return e.replace(TR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function cm(e,t,n,o,r,l,i,s){e.name="",i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.type=i:e.removeAttribute("type"),t!=null?i==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Fo(t)):e.value!==""+Fo(t)&&(e.value=""+Fo(t)):i!=="submit"&&i!=="reset"||e.removeAttribute("value"),t!=null?um(e,i,Fo(t)):n!=null?um(e,i,Fo(n)):o!=null&&e.removeAttribute("value"),r==null&&l!=null&&(e.defaultChecked=!!l),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.name=""+Fo(s):e.removeAttribute("name")}function b1(e,t,n,o,r,l,i,s){if(l!=null&&typeof l!="function"&&typeof l!="symbol"&&typeof l!="boolean"&&(e.type=l),t!=null||n!=null){if(!(l!=="submit"&&l!=="reset"||t!=null))return;n=n!=null?""+Fo(n):"",t=t!=null?""+Fo(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}o=o??r,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=s?e.checked:!!o,e.defaultChecked=!!o,i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.name=i)}function um(e,t,n){t==="number"&&yf(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Vs(e,t,n,o){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&o&&(e[n].defaultSelected=!0)}else{for(n=""+Fo(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,o&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function y1(e,t,n){if(t!=null&&(t=""+Fo(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Fo(n):""}function v1(e,t,n,o){if(t==null){if(o!=null){if(n!=null)throw Error(he(92));if(mc(o)){if(1<o.length)throw Error(he(93));o=o[0]}n=o}n==null&&(n=""),t=n}n=Fo(t),e.defaultValue=n,o=e.textContent,o===n&&o!==""&&o!==null&&(e.value=o)}function oa(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var PR=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function MC(e,t,n){var o=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,n):typeof n!="number"||n===0||PR.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function C1(e,t,n){if(t!=null&&typeof t!="object")throw Error(he(62));if(e=e.style,n!=null){for(var o in n)!n.hasOwnProperty(o)||t!=null&&t.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var r in t)o=t[r],t.hasOwnProperty(r)&&n[r]!==o&&MC(e,r,o)}else for(var l in t)t.hasOwnProperty(l)&&MC(e,l,t[l])}function ty(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var IR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),OR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Hd(e){return OR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var dm=null;function ny(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Os=null,Us=null;function EC(e){var t=Pa(e);if(t&&(e=t.stateNode)){var n=e[co]||null;e:switch(e=t.stateNode,t.type){case"input":if(cm(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+_o(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var o=n[t];if(o!==e&&o.form===e.form){var r=o[co]||null;if(!r)throw Error(he(90));cm(o,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)o=n[t],o.form===e.form&&m1(o)}break e;case"textarea":y1(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Vs(e,!!n.multiple,t,!1)}}}var Wh=!1;function S1(e,t,n){if(Wh)return e(t,n);Wh=!0;try{var o=e(t);return o}finally{if(Wh=!1,(Os!==null||Us!==null)&&(Pp(),Os&&(t=Os,e=Us,Us=Os=null,EC(t),e)))for(t=0;t<e.length;t++)EC(e[t])}}function Kc(e,t){var n=e.stateNode;if(n===null)return null;var o=n[co]||null;if(o===null)return null;n=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(he(231,t,typeof n));return n}var dl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fm=!1;if(dl)try{var Ya={};Object.defineProperty(Ya,"passive",{get:function(){fm=!0}}),window.addEventListener("test",Ya,Ya),window.removeEventListener("test",Ya,Ya)}catch{fm=!1}var Yl=null,oy=null,Nd=null;function w1(){if(Nd)return Nd;var e,t=oy,n=t.length,o,r="value"in Yl?Yl.value:Yl.textContent,l=r.length;for(e=0;e<n&&t[e]===r[e];e++);var i=n-e;for(o=1;o<=i&&t[n-o]===r[l-o];o++);return Nd=r.slice(e,1<o?1-o:void 0)}function jd(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function pd(){return!0}function TC(){return!1}function fo(e){function t(n,o,r,l,i){this._reactName=n,this._targetInst=r,this.type=o,this.nativeEvent=l,this.target=i,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(l):l[s]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?pd:TC,this.isPropagationStopped=TC,this}return _t(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=pd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=pd)},persist:function(){},isPersistent:pd}),t}var Zi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},yp=fo(Zi),Eu=_t({},Zi,{view:0,detail:0}),RR=fo(Eu),qh,Kh,Xa,vp=_t({},Eu,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ry,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Xa&&(Xa&&e.type==="mousemove"?(qh=e.screenX-Xa.screenX,Kh=e.screenY-Xa.screenY):Kh=qh=0,Xa=e),qh)},movementY:function(e){return"movementY"in e?e.movementY:Kh}}),PC=fo(vp),kR=_t({},vp,{dataTransfer:0}),AR=fo(kR),$R=_t({},Eu,{relatedTarget:0}),Yh=fo($R),DR=_t({},Zi,{animationName:0,elapsedTime:0,pseudoElement:0}),LR=fo(DR),zR=_t({},Zi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),FR=fo(zR),BR=_t({},Zi,{data:0}),IC=fo(BR),HR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},NR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},jR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GR(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=jR[e])?!!t[e]:!1}function ry(){return GR}var _R=_t({},Eu,{key:function(e){if(e.key){var t=HR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=jd(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?NR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ry,charCode:function(e){return e.type==="keypress"?jd(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?jd(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VR=fo(_R),UR=_t({},vp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),OC=fo(UR),WR=_t({},Eu,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ry}),qR=fo(WR),KR=_t({},Zi,{propertyName:0,elapsedTime:0,pseudoElement:0}),YR=fo(KR),XR=_t({},vp,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),QR=fo(XR),ZR=_t({},Zi,{newState:0,oldState:0}),JR=fo(ZR),ek=[9,13,27,32],ly=dl&&"CompositionEvent"in window,Ec=null;dl&&"documentMode"in document&&(Ec=document.documentMode);var tk=dl&&"TextEvent"in window&&!Ec,x1=dl&&(!ly||Ec&&8<Ec&&11>=Ec),RC=String.fromCharCode(32),kC=!1;function M1(e,t){switch(e){case"keyup":return ek.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function E1(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Rs=!1;function nk(e,t){switch(e){case"compositionend":return E1(t);case"keypress":return t.which!==32?null:(kC=!0,RC);case"textInput":return e=t.data,e===RC&&kC?null:e;default:return null}}function ok(e,t){if(Rs)return e==="compositionend"||!ly&&M1(e,t)?(e=w1(),Nd=oy=Yl=null,Rs=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return x1&&t.locale!=="ko"?null:t.data;default:return null}}var rk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function AC(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!rk[e.type]:t==="textarea"}function T1(e,t,n,o){Os?Us?Us.push(o):Us=[o]:Os=o,t=zf(t,"onChange"),0<t.length&&(n=new yp("onChange","change",null,n,o),e.push({event:n,listeners:t}))}var Tc=null,Yc=null;function lk(e){yE(e,0)}function Cp(e){var t=bc(e);if(m1(t))return e}function $C(e,t){if(e==="change")return t}var P1=!1;if(dl){var Xh;if(dl){var Qh="oninput"in document;if(!Qh){var DC=document.createElement("div");DC.setAttribute("oninput","return;"),Qh=typeof DC.oninput=="function"}Xh=Qh}else Xh=!1;P1=Xh&&(!document.documentMode||9<document.documentMode)}function LC(){Tc&&(Tc.detachEvent("onpropertychange",I1),Yc=Tc=null)}function I1(e){if(e.propertyName==="value"&&Cp(Yc)){var t=[];T1(t,Yc,e,ny(e)),S1(lk,t)}}function ik(e,t,n){e==="focusin"?(LC(),Tc=t,Yc=n,Tc.attachEvent("onpropertychange",I1)):e==="focusout"&&LC()}function sk(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Cp(Yc)}function ak(e,t){if(e==="click")return Cp(t)}function ck(e,t){if(e==="input"||e==="change")return Cp(t)}function uk(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Po=typeof Object.is=="function"?Object.is:uk;function Xc(e,t){if(Po(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(o=0;o<n.length;o++){var r=n[o];if(!sm.call(t,r)||!Po(e[r],t[r]))return!1}return!0}function zC(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function FC(e,t){var n=zC(e);e=0;for(var o;n;){if(n.nodeType===3){if(o=e+n.textContent.length,e<=t&&o>=t)return{node:n,offset:t-e};e=o}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=zC(n)}}function O1(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?O1(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function R1(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=yf(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=yf(e.document)}return t}function iy(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var dk=dl&&"documentMode"in document&&11>=document.documentMode,ks=null,pm=null,Pc=null,hm=!1;function BC(e,t,n){var o=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;hm||ks==null||ks!==yf(o)||(o=ks,"selectionStart"in o&&iy(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Pc&&Xc(Pc,o)||(Pc=o,o=zf(pm,"onSelect"),0<o.length&&(t=new yp("onSelect","select",null,t,n),e.push({event:t,listeners:o}),t.target=ks)))}function Ci(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var As={animationend:Ci("Animation","AnimationEnd"),animationiteration:Ci("Animation","AnimationIteration"),animationstart:Ci("Animation","AnimationStart"),transitionrun:Ci("Transition","TransitionRun"),transitionstart:Ci("Transition","TransitionStart"),transitioncancel:Ci("Transition","TransitionCancel"),transitionend:Ci("Transition","TransitionEnd")},Zh={},k1={};dl&&(k1=document.createElement("div").style,"AnimationEvent"in window||(delete As.animationend.animation,delete As.animationiteration.animation,delete As.animationstart.animation),"TransitionEvent"in window||delete As.transitionend.transition);function Ji(e){if(Zh[e])return Zh[e];if(!As[e])return e;var t=As[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in k1)return Zh[e]=t[n];return e}var A1=Ji("animationend"),$1=Ji("animationiteration"),D1=Ji("animationstart"),fk=Ji("transitionrun"),pk=Ji("transitionstart"),hk=Ji("transitioncancel"),L1=Ji("transitionend"),z1=new Map,gm="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");gm.push("scrollEnd");function yr(e,t){z1.set(e,t),Qi(t,[e])}var HC=new WeakMap;function Vo(e,t){if(typeof e=="object"&&e!==null){var n=HC.get(e);return n!==void 0?n:(t={value:e,source:t,stack:xC(t)},HC.set(e,t),t)}return{value:e,source:t,stack:xC(t)}}var Do=[],$s=0,sy=0;function Sp(){for(var e=$s,t=sy=$s=0;t<e;){var n=Do[t];Do[t++]=null;var o=Do[t];Do[t++]=null;var r=Do[t];Do[t++]=null;var l=Do[t];if(Do[t++]=null,o!==null&&r!==null){var i=o.pending;i===null?r.next=r:(r.next=i.next,i.next=r),o.pending=r}l!==0&&F1(n,r,l)}}function wp(e,t,n,o){Do[$s++]=e,Do[$s++]=t,Do[$s++]=n,Do[$s++]=o,sy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function ay(e,t,n,o){return wp(e,t,n,o),vf(e)}function Ia(e,t){return wp(e,null,null,t),vf(e)}function F1(e,t,n){e.lanes|=n;var o=e.alternate;o!==null&&(o.lanes|=n);for(var r=!1,l=e.return;l!==null;)l.childLanes|=n,o=l.alternate,o!==null&&(o.childLanes|=n),l.tag===22&&(e=l.stateNode,e===null||e._visibility&1||(r=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,r&&t!==null&&(r=31-So(n),e=l.hiddenUpdates,o=e[r],o===null?e[r]=[t]:o.push(t),t.lane=n|536870912),l):null}function vf(e){if(50<Fc)throw Fc=0,zm=null,Error(he(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ds={};function gk(e,t,n,o){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function yo(e,t,n,o){return new gk(e,t,n,o)}function cy(e){return e=e.prototype,!(!e||!e.isReactComponent)}function sl(e,t){var n=e.alternate;return n===null?(n=yo(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function B1(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Gd(e,t,n,o,r,l){var i=0;if(o=e,typeof e=="function")cy(e)&&(i=1);else if(typeof e=="string")i=b2(e,n,Lr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case om:return e=yo(31,n,t,r),e.elementType=om,e.lanes=l,e;case Ts:return Ai(n.children,r,l,t);case o1:i=8,r|=24;break;case em:return e=yo(12,n,t,r|2),e.elementType=em,e.lanes=l,e;case tm:return e=yo(13,n,t,r),e.elementType=tm,e.lanes=l,e;case nm:return e=yo(19,n,t,r),e.elementType=nm,e.lanes=l,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case lR:case tl:i=10;break e;case r1:i=9;break e;case Yb:i=11;break e;case Xb:i=14;break e;case zl:i=16,o=null;break e}i=29,n=Error(he(130,e===null?"null":typeof e,"")),o=null}return t=yo(i,n,t,r),t.elementType=e,t.type=o,t.lanes=l,t}function Ai(e,t,n,o){return e=yo(7,e,o,t),e.lanes=n,e}function Jh(e,t,n){return e=yo(6,e,null,t),e.lanes=n,e}function eg(e,t,n){return t=yo(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ls=[],zs=0,Cf=null,Sf=0,Bo=[],Ho=0,$i=null,nl=1,ol="";function Mi(e,t){Ls[zs++]=Sf,Ls[zs++]=Cf,Cf=e,Sf=t}function H1(e,t,n){Bo[Ho++]=nl,Bo[Ho++]=ol,Bo[Ho++]=$i,$i=e;var o=nl;e=ol;var r=32-So(o)-1;o&=~(1<<r),n+=1;var l=32-So(t)+r;if(30<l){var i=r-r%5;l=(o&(1<<i)-1).toString(32),o>>=i,r-=i,nl=1<<32-So(t)+r|n<<r|o,ol=l+e}else nl=1<<l|n<<r|o,ol=e}function uy(e){e.return!==null&&(Mi(e,1),H1(e,1,0))}function dy(e){for(;e===Cf;)Cf=Ls[--zs],Ls[zs]=null,Sf=Ls[--zs],Ls[zs]=null;for(;e===$i;)$i=Bo[--Ho],Bo[Ho]=null,ol=Bo[--Ho],Bo[Ho]=null,nl=Bo[--Ho],Bo[Ho]=null}var Zn=null,on=null,Mt=!1,Di=null,Ir=!1,mm=Error(he(519));function ji(e){var t=Error(he(418,""));throw Qc(Vo(t,e)),mm}function NC(e){var t=e.stateNode,n=e.type,o=e.memoizedProps;switch(t[Un]=e,t[co]=o,n){case"dialog":ft("cancel",t),ft("close",t);break;case"iframe":case"object":case"embed":ft("load",t);break;case"video":case"audio":for(n=0;n<eu.length;n++)ft(eu[n],t);break;case"source":ft("error",t);break;case"img":case"image":case"link":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"input":ft("invalid",t),b1(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),bf(t);break;case"select":ft("invalid",t);break;case"textarea":ft("invalid",t),v1(t,o.value,o.defaultValue,o.children),bf(t)}n=o.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||o.suppressHydrationWarning===!0||CE(t.textContent,n)?(o.popover!=null&&(ft("beforetoggle",t),ft("toggle",t)),o.onScroll!=null&&ft("scroll",t),o.onScrollEnd!=null&&ft("scrollend",t),o.onClick!=null&&(t.onclick=Rp),t=!0):t=!1,t||ji(e)}function jC(e){for(Zn=e.return;Zn;)switch(Zn.tag){case 5:case 13:Ir=!1;return;case 27:case 3:Ir=!0;return;default:Zn=Zn.return}}function Qa(e){if(e!==Zn)return!1;if(!Mt)return jC(e),Mt=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Gm(e.type,e.memoizedProps)),n=!n),n&&on&&ji(e),jC(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(he(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(n=e.data,n==="/$"){if(t===0){on=pr(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++;e=e.nextSibling}on=null}}else t===27?(t=on,hi(e.type)?(e=Um,Um=null,on=e):on=t):on=Zn?pr(e.stateNode.nextSibling):null;return!0}function Tu(){on=Zn=null,Mt=!1}function GC(){var e=Di;return e!==null&&(lo===null?lo=e:lo.push.apply(lo,e),Di=null),e}function Qc(e){Di===null?Di=[e]:Di.push(e)}var bm=_r(null),es=null,rl=null;function Nl(e,t,n){qt(bm,t._currentValue),t._currentValue=n}function al(e){e._currentValue=bm.current,kn(bm)}function ym(e,t,n){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===n)break;e=e.return}}function vm(e,t,n,o){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var l=r.dependencies;if(l!==null){var i=r.child;l=l.firstContext;e:for(;l!==null;){var s=l;l=r;for(var a=0;a<t.length;a++)if(s.context===t[a]){l.lanes|=n,s=l.alternate,s!==null&&(s.lanes|=n),ym(l.return,n,e),o||(i=null);break e}l=s.next}}else if(r.tag===18){if(i=r.return,i===null)throw Error(he(341));i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),ym(i,n,e),i=null}else i=r.child;if(i!==null)i.return=r;else for(i=r;i!==null;){if(i===e){i=null;break}if(r=i.sibling,r!==null){r.return=i.return,i=r;break}i=i.return}r=i}}function Pu(e,t,n,o){e=null;for(var r=t,l=!1;r!==null;){if(!l){if(r.flags&524288)l=!0;else if(r.flags&262144)break}if(r.tag===10){var i=r.alternate;if(i===null)throw Error(he(387));if(i=i.memoizedProps,i!==null){var s=r.type;Po(r.pendingProps.value,i.value)||(e!==null?e.push(s):e=[s])}}else if(r===pf.current){if(i=r.alternate,i===null)throw Error(he(387));i.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(ou):e=[ou])}r=r.return}e!==null&&vm(t,e,n,o),t.flags|=262144}function wf(e){for(e=e.firstContext;e!==null;){if(!Po(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Gi(e){es=e,rl=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Wn(e){return N1(es,e)}function hd(e,t){return es===null&&Gi(e),N1(e,t)}function N1(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},rl===null){if(e===null)throw Error(he(308));rl=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else rl=rl.next=t;return n}var mk=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},bk=xn.unstable_scheduleCallback,yk=xn.unstable_NormalPriority,Sn={$$typeof:tl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function fy(){return{controller:new mk,data:new Map,refCount:0}}function Iu(e){e.refCount--,e.refCount===0&&bk(yk,function(){e.controller.abort()})}var Ic=null,Cm=0,ra=0,Ws=null;function vk(e,t){if(Ic===null){var n=Ic=[];Cm=0,ra=Ly(),Ws={status:"pending",value:void 0,then:function(o){n.push(o)}}}return Cm++,t.then(_C,_C),t}function _C(){if(--Cm===0&&Ic!==null){Ws!==null&&(Ws.status="fulfilled");var e=Ic;Ic=null,ra=0,Ws=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Ck(e,t){var n=[],o={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(o.status="rejected",o.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),o}var VC=Qe.S;Qe.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&vk(e,t),VC!==null&&VC(e,t)};var Li=_r(null);function py(){var e=Li.current;return e!==null?e:Nt.pooledCache}function _d(e,t){t===null?qt(Li,Li.current):qt(Li,t.pool)}function j1(){var e=py();return e===null?null:{parent:Sn._currentValue,pool:e}}var Ou=Error(he(460)),G1=Error(he(474)),xp=Error(he(542)),Sm={then:function(){}};function UC(e){return e=e.status,e==="fulfilled"||e==="rejected"}function gd(){}function _1(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gd,gd),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qC(e),e;default:if(typeof t.status=="string")t.then(gd,gd);else{if(e=Nt,e!==null&&100<e.shellSuspendCounter)throw Error(he(482));e=t,e.status="pending",e.then(function(o){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=o}},function(o){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=o}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,qC(e),e}throw Oc=t,Ou}}var Oc=null;function WC(){if(Oc===null)throw Error(he(459));var e=Oc;return Oc=null,e}function qC(e){if(e===Ou||e===xp)throw Error(he(483))}var Fl=!1;function hy(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function wm(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Jl(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ei(e,t,n){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,It&2){var r=o.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),o.pending=t,t=vf(e),F1(e,null,n),t}return wp(e,o,t,n),vf(e)}function Rc(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,d1(e,n)}}function tg(e,t){var n=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,n===o)){var r=null,l=null;if(n=n.firstBaseUpdate,n!==null){do{var i={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};l===null?r=l=i:l=l.next=i,n=n.next}while(n!==null);l===null?r=l=t:l=l.next=t}else r=l=t;n={baseState:o.baseState,firstBaseUpdate:r,lastBaseUpdate:l,shared:o.shared,callbacks:o.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var xm=!1;function kc(){if(xm){var e=Ws;if(e!==null)throw e}}function Ac(e,t,n,o){xm=!1;var r=e.updateQueue;Fl=!1;var l=r.firstBaseUpdate,i=r.lastBaseUpdate,s=r.shared.pending;if(s!==null){r.shared.pending=null;var a=s,u=a.next;a.next=null,i===null?l=u:i.next=u,i=a;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=a))}if(l!==null){var d=r.baseState;i=0,c=u=a=null,s=l;do{var p=s.lane&-536870913,h=p!==s.lane;if(h?(mt&p)===p:(o&p)===p){p!==0&&p===ra&&(xm=!0),c!==null&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var g=e,y=s;p=t;var w=n;switch(y.tag){case 1:if(g=y.payload,typeof g=="function"){d=g.call(w,d,p);break e}d=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,p=typeof g=="function"?g.call(w,d,p):g,p==null)break e;d=_t({},d,p);break e;case 2:Fl=!0}}p=s.callback,p!==null&&(e.flags|=64,h&&(e.flags|=8192),h=r.callbacks,h===null?r.callbacks=[p]:h.push(p))}else h={lane:p,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(u=c=h,a=d):c=c.next=h,i|=p;if(s=s.next,s===null){if(s=r.shared.pending,s===null)break;h=s,s=h.next,h.next=null,r.lastBaseUpdate=h,r.shared.pending=null}}while(1);c===null&&(a=d),r.baseState=a,r.firstBaseUpdate=u,r.lastBaseUpdate=c,l===null&&(r.shared.lanes=0),ci|=i,e.lanes=i,e.memoizedState=d}}function V1(e,t){if(typeof e!="function")throw Error(he(191,e));e.call(t)}function U1(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)V1(n[e],t)}var la=_r(null),xf=_r(0);function KC(e,t){e=hl,qt(xf,e),qt(la,t),hl=e|t.baseLanes}function Mm(){qt(xf,hl),qt(la,la.current)}function gy(){hl=xf.current,kn(la),kn(xf)}var si=0,st=null,Dt=null,pn=null,Mf=!1,qs=!1,_i=!1,Ef=0,Zc=0,Ks=null,Sk=0;function an(){throw Error(he(321))}function my(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Po(e[n],t[n]))return!1;return!0}function by(e,t,n,o,r,l){return si=l,st=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Qe.H=e===null||e.memoizedState===null?wM:xM,_i=!1,l=n(o,r),_i=!1,qs&&(l=q1(t,n,o,r)),W1(e),l}function W1(e){Qe.H=Tf;var t=Dt!==null&&Dt.next!==null;if(si=0,pn=Dt=st=null,Mf=!1,Zc=0,Ks=null,t)throw Error(he(300));e===null||Rn||(e=e.dependencies,e!==null&&wf(e)&&(Rn=!0))}function q1(e,t,n,o){st=e;var r=0;do{if(qs&&(Ks=null),Zc=0,qs=!1,25<=r)throw Error(he(301));if(r+=1,pn=Dt=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}Qe.H=Ik,l=t(n,o)}while(qs);return l}function wk(){var e=Qe.H,t=e.useState()[0];return t=typeof t.then=="function"?Ru(t):t,e=e.useState()[0],(Dt!==null?Dt.memoizedState:null)!==e&&(st.flags|=1024),t}function yy(){var e=Ef!==0;return Ef=0,e}function vy(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Cy(e){if(Mf){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Mf=!1}si=0,pn=Dt=st=null,qs=!1,Zc=Ef=0,Ks=null}function oo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return pn===null?st.memoizedState=pn=e:pn=pn.next=e,pn}function gn(){if(Dt===null){var e=st.alternate;e=e!==null?e.memoizedState:null}else e=Dt.next;var t=pn===null?st.memoizedState:pn.next;if(t!==null)pn=t,Dt=e;else{if(e===null)throw st.alternate===null?Error(he(467)):Error(he(310));Dt=e,e={memoizedState:Dt.memoizedState,baseState:Dt.baseState,baseQueue:Dt.baseQueue,queue:Dt.queue,next:null},pn===null?st.memoizedState=pn=e:pn=pn.next=e}return pn}function Sy(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ru(e){var t=Zc;return Zc+=1,Ks===null&&(Ks=[]),e=_1(Ks,e,t),t=st,(pn===null?t.memoizedState:pn.next)===null&&(t=t.alternate,Qe.H=t===null||t.memoizedState===null?wM:xM),e}function Mp(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return Ru(e);if(e.$$typeof===tl)return Wn(e)}throw Error(he(438,String(e)))}function wy(e){var t=null,n=st.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var o=st.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=Sy(),st.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),o=0;o<e;o++)n[o]=iR;return t.index++,n}function fl(e,t){return typeof t=="function"?t(e):t}function Vd(e){var t=gn();return xy(t,Dt,e)}function xy(e,t,n){var o=e.queue;if(o===null)throw Error(he(311));o.lastRenderedReducer=n;var r=e.baseQueue,l=o.pending;if(l!==null){if(r!==null){var i=r.next;r.next=l.next,l.next=i}t.baseQueue=r=l,o.pending=null}if(l=e.baseState,r===null)e.memoizedState=l;else{t=r.next;var s=i=null,a=null,u=t,c=!1;do{var d=u.lane&-536870913;if(d!==u.lane?(mt&d)===d:(si&d)===d){var p=u.revertLane;if(p===0)a!==null&&(a=a.next={lane:0,revertLane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),d===ra&&(c=!0);else if((si&p)===p){u=u.next,p===ra&&(c=!0);continue}else d={lane:0,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},a===null?(s=a=d,i=l):a=a.next=d,st.lanes|=p,ci|=p;d=u.action,_i&&n(l,d),l=u.hasEagerState?u.eagerState:n(l,d)}else p={lane:d,revertLane:u.revertLane,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},a===null?(s=a=p,i=l):a=a.next=p,st.lanes|=d,ci|=d;u=u.next}while(u!==null&&u!==t);if(a===null?i=l:a.next=s,!Po(l,e.memoizedState)&&(Rn=!0,c&&(n=Ws,n!==null)))throw n;e.memoizedState=l,e.baseState=i,e.baseQueue=a,o.lastRenderedState=l}return r===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ng(e){var t=gn(),n=t.queue;if(n===null)throw Error(he(311));n.lastRenderedReducer=e;var o=n.dispatch,r=n.pending,l=t.memoizedState;if(r!==null){n.pending=null;var i=r=r.next;do l=e(l,i.action),i=i.next;while(i!==r);Po(l,t.memoizedState)||(Rn=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),n.lastRenderedState=l}return[l,o]}function K1(e,t,n){var o=st,r=gn(),l=Mt;if(l){if(n===void 0)throw Error(he(407));n=n()}else n=t();var i=!Po((Dt||r).memoizedState,n);i&&(r.memoizedState=n,Rn=!0),r=r.queue;var s=Q1.bind(null,o,r,e);if(ku(2048,8,s,[e]),r.getSnapshot!==t||i||pn!==null&&pn.memoizedState.tag&1){if(o.flags|=2048,ia(9,Ep(),X1.bind(null,o,r,n,t),null),Nt===null)throw Error(he(349));l||si&124||Y1(o,t,n)}return n}function Y1(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=st.updateQueue,t===null?(t=Sy(),st.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function X1(e,t,n,o){t.value=n,t.getSnapshot=o,Z1(t)&&J1(e)}function Q1(e,t,n){return n(function(){Z1(t)&&J1(e)})}function Z1(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Po(e,n)}catch{return!0}}function J1(e){var t=Ia(e,2);t!==null&&xo(t,e,2)}function Em(e){var t=oo();if(typeof e=="function"){var n=e;if(e=n(),_i){Kl(!0);try{n()}finally{Kl(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:e},t}function eM(e,t,n,o){return e.baseState=n,xy(e,Dt,typeof o=="function"?o:fl)}function xk(e,t,n,o,r){if(Tp(e))throw Error(he(485));if(e=t.action,e!==null){var l={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(i){l.listeners.push(i)}};Qe.T!==null?n(!0):l.isTransition=!1,o(l),n=t.pending,n===null?(l.next=t.pending=l,tM(t,l)):(l.next=n.next,t.pending=n.next=l)}}function tM(e,t){var n=t.action,o=t.payload,r=e.state;if(t.isTransition){var l=Qe.T,i={};Qe.T=i;try{var s=n(r,o),a=Qe.S;a!==null&&a(i,s),YC(e,t,s)}catch(u){Tm(e,t,u)}finally{Qe.T=l}}else try{l=n(r,o),YC(e,t,l)}catch(u){Tm(e,t,u)}}function YC(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(o){XC(e,t,o)},function(o){return Tm(e,t,o)}):XC(e,t,n)}function XC(e,t,n){t.status="fulfilled",t.value=n,nM(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,tM(e,n)))}function Tm(e,t,n){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=n,nM(t),t=t.next;while(t!==o)}e.action=null}function nM(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oM(e,t){return t}function QC(e,t){if(Mt){var n=Nt.formState;if(n!==null){e:{var o=st;if(Mt){if(on){t:{for(var r=on,l=Ir;r.nodeType!==8;){if(!l){r=null;break t}if(r=pr(r.nextSibling),r===null){r=null;break t}}l=r.data,r=l==="F!"||l==="F"?r:null}if(r){on=pr(r.nextSibling),o=r.data==="F!";break e}}ji(o)}o=!1}o&&(t=n[0])}}return n=oo(),n.memoizedState=n.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oM,lastRenderedState:t},n.queue=o,n=vM.bind(null,st,o),o.dispatch=n,o=Em(!1),l=Py.bind(null,st,!1,o.queue),o=oo(),r={state:t,dispatch:null,action:e,pending:null},o.queue=r,n=xk.bind(null,st,r,l,n),r.dispatch=n,o.memoizedState=e,[t,n,!1]}function ZC(e){var t=gn();return rM(t,Dt,e)}function rM(e,t,n){if(t=xy(e,t,oM)[0],e=Vd(fl)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var o=Ru(t)}catch(i){throw i===Ou?xp:i}else o=t;t=gn();var r=t.queue,l=r.dispatch;return n!==t.memoizedState&&(st.flags|=2048,ia(9,Ep(),Mk.bind(null,r,n),null)),[o,l,e]}function Mk(e,t){e.action=t}function JC(e){var t=gn(),n=Dt;if(n!==null)return rM(t,n,e);gn(),t=t.memoizedState,n=gn();var o=n.queue.dispatch;return n.memoizedState=e,[t,o,!1]}function ia(e,t,n,o){return e={tag:e,create:n,deps:o,inst:t,next:null},t=st.updateQueue,t===null&&(t=Sy(),st.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(o=n.next,n.next=e,e.next=o,t.lastEffect=e),e}function Ep(){return{destroy:void 0,resource:void 0}}function lM(){return gn().memoizedState}function Ud(e,t,n,o){var r=oo();o=o===void 0?null:o,st.flags|=e,r.memoizedState=ia(1|t,Ep(),n,o)}function ku(e,t,n,o){var r=gn();o=o===void 0?null:o;var l=r.memoizedState.inst;Dt!==null&&o!==null&&my(o,Dt.memoizedState.deps)?r.memoizedState=ia(t,l,n,o):(st.flags|=e,r.memoizedState=ia(1|t,l,n,o))}function eS(e,t){Ud(8390656,8,e,t)}function iM(e,t){ku(2048,8,e,t)}function sM(e,t){return ku(4,2,e,t)}function aM(e,t){return ku(4,4,e,t)}function cM(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function uM(e,t,n){n=n!=null?n.concat([e]):null,ku(4,4,cM.bind(null,t,e),n)}function My(){}function dM(e,t){var n=gn();t=t===void 0?null:t;var o=n.memoizedState;return t!==null&&my(t,o[1])?o[0]:(n.memoizedState=[e,t],e)}function fM(e,t){var n=gn();t=t===void 0?null:t;var o=n.memoizedState;if(t!==null&&my(t,o[1]))return o[0];if(o=e(),_i){Kl(!0);try{e()}finally{Kl(!1)}}return n.memoizedState=[o,t],o}function Ey(e,t,n){return n===void 0||si&1073741824?e.memoizedState=t:(e.memoizedState=n,e=nE(),st.lanes|=e,ci|=e,n)}function pM(e,t,n,o){return Po(n,t)?n:la.current!==null?(e=Ey(e,n,o),Po(e,t)||(Rn=!0),e):si&42?(e=nE(),st.lanes|=e,ci|=e,t):(Rn=!0,e.memoizedState=n)}function hM(e,t,n,o,r){var l=Et.p;Et.p=l!==0&&8>l?l:8;var i=Qe.T,s={};Qe.T=s,Py(e,!1,t,n);try{var a=r(),u=Qe.S;if(u!==null&&u(s,a),a!==null&&typeof a=="object"&&typeof a.then=="function"){var c=Ck(a,o);$c(e,t,c,wo(e))}else $c(e,t,o,wo(e))}catch(d){$c(e,t,{then:function(){},status:"rejected",reason:d},wo())}finally{Et.p=l,Qe.T=i}}function Ek(){}function Pm(e,t,n,o){if(e.tag!==5)throw Error(he(476));var r=gM(e).queue;hM(e,r,t,ki,n===null?Ek:function(){return mM(e),n(o)})}function gM(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ki,baseState:ki,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:ki},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fl,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function mM(e){var t=gM(e).next.queue;$c(e,t,{},wo())}function Ty(){return Wn(ou)}function bM(){return gn().memoizedState}function yM(){return gn().memoizedState}function Tk(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=wo();e=Jl(n);var o=ei(t,e,n);o!==null&&(xo(o,t,n),Rc(o,t,n)),t={cache:fy()},e.payload=t;return}t=t.return}}function Pk(e,t,n){var o=wo();n={lane:o,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null},Tp(e)?CM(t,n):(n=ay(e,t,n,o),n!==null&&(xo(n,e,o),SM(n,t,o)))}function vM(e,t,n){var o=wo();$c(e,t,n,o)}function $c(e,t,n,o){var r={lane:o,revertLane:0,action:n,hasEagerState:!1,eagerState:null,next:null};if(Tp(e))CM(t,r);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null))try{var i=t.lastRenderedState,s=l(i,n);if(r.hasEagerState=!0,r.eagerState=s,Po(s,i))return wp(e,t,r,0),Nt===null&&Sp(),!1}catch{}finally{}if(n=ay(e,t,r,o),n!==null)return xo(n,e,o),SM(n,t,o),!0}return!1}function Py(e,t,n,o){if(o={lane:2,revertLane:Ly(),action:o,hasEagerState:!1,eagerState:null,next:null},Tp(e)){if(t)throw Error(he(479))}else t=ay(e,n,o,2),t!==null&&xo(t,e,2)}function Tp(e){var t=e.alternate;return e===st||t!==null&&t===st}function CM(e,t){qs=Mf=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function SM(e,t,n){if(n&4194048){var o=t.lanes;o&=e.pendingLanes,n|=o,t.lanes=n,d1(e,n)}}var Tf={readContext:Wn,use:Mp,useCallback:an,useContext:an,useEffect:an,useImperativeHandle:an,useLayoutEffect:an,useInsertionEffect:an,useMemo:an,useReducer:an,useRef:an,useState:an,useDebugValue:an,useDeferredValue:an,useTransition:an,useSyncExternalStore:an,useId:an,useHostTransitionStatus:an,useFormState:an,useActionState:an,useOptimistic:an,useMemoCache:an,useCacheRefresh:an},wM={readContext:Wn,use:Mp,useCallback:function(e,t){return oo().memoizedState=[e,t===void 0?null:t],e},useContext:Wn,useEffect:eS,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ud(4194308,4,cM.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ud(4194308,4,e,t)},useInsertionEffect:function(e,t){Ud(4,2,e,t)},useMemo:function(e,t){var n=oo();t=t===void 0?null:t;var o=e();if(_i){Kl(!0);try{e()}finally{Kl(!1)}}return n.memoizedState=[o,t],o},useReducer:function(e,t,n){var o=oo();if(n!==void 0){var r=n(t);if(_i){Kl(!0);try{n(t)}finally{Kl(!1)}}}else r=t;return o.memoizedState=o.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},o.queue=e,e=e.dispatch=Pk.bind(null,st,e),[o.memoizedState,e]},useRef:function(e){var t=oo();return e={current:e},t.memoizedState=e},useState:function(e){e=Em(e);var t=e.queue,n=vM.bind(null,st,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:My,useDeferredValue:function(e,t){var n=oo();return Ey(n,e,t)},useTransition:function(){var e=Em(!1);return e=hM.bind(null,st,e.queue,!0,!1),oo().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var o=st,r=oo();if(Mt){if(n===void 0)throw Error(he(407));n=n()}else{if(n=t(),Nt===null)throw Error(he(349));mt&124||Y1(o,t,n)}r.memoizedState=n;var l={value:n,getSnapshot:t};return r.queue=l,eS(Q1.bind(null,o,l,e),[e]),o.flags|=2048,ia(9,Ep(),X1.bind(null,o,l,n,t),null),n},useId:function(){var e=oo(),t=Nt.identifierPrefix;if(Mt){var n=ol,o=nl;n=(o&~(1<<32-So(o)-1)).toString(32)+n,t="«"+t+"R"+n,n=Ef++,0<n&&(t+="H"+n.toString(32)),t+="»"}else n=Sk++,t="«"+t+"r"+n.toString(32)+"»";return e.memoizedState=t},useHostTransitionStatus:Ty,useFormState:QC,useActionState:QC,useOptimistic:function(e){var t=oo();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Py.bind(null,st,!0,n),n.dispatch=t,[e,t]},useMemoCache:wy,useCacheRefresh:function(){return oo().memoizedState=Tk.bind(null,st)}},xM={readContext:Wn,use:Mp,useCallback:dM,useContext:Wn,useEffect:iM,useImperativeHandle:uM,useInsertionEffect:sM,useLayoutEffect:aM,useMemo:fM,useReducer:Vd,useRef:lM,useState:function(){return Vd(fl)},useDebugValue:My,useDeferredValue:function(e,t){var n=gn();return pM(n,Dt.memoizedState,e,t)},useTransition:function(){var e=Vd(fl)[0],t=gn().memoizedState;return[typeof e=="boolean"?e:Ru(e),t]},useSyncExternalStore:K1,useId:bM,useHostTransitionStatus:Ty,useFormState:ZC,useActionState:ZC,useOptimistic:function(e,t){var n=gn();return eM(n,Dt,e,t)},useMemoCache:wy,useCacheRefresh:yM},Ik={readContext:Wn,use:Mp,useCallback:dM,useContext:Wn,useEffect:iM,useImperativeHandle:uM,useInsertionEffect:sM,useLayoutEffect:aM,useMemo:fM,useReducer:ng,useRef:lM,useState:function(){return ng(fl)},useDebugValue:My,useDeferredValue:function(e,t){var n=gn();return Dt===null?Ey(n,e,t):pM(n,Dt.memoizedState,e,t)},useTransition:function(){var e=ng(fl)[0],t=gn().memoizedState;return[typeof e=="boolean"?e:Ru(e),t]},useSyncExternalStore:K1,useId:bM,useHostTransitionStatus:Ty,useFormState:JC,useActionState:JC,useOptimistic:function(e,t){var n=gn();return Dt!==null?eM(n,Dt,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:wy,useCacheRefresh:yM},Ys=null,Jc=0;function md(e){var t=Jc;return Jc+=1,Ys===null&&(Ys=[]),_1(Ys,e,t)}function Za(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function bd(e,t){throw t.$$typeof===rR?Error(he(525)):(e=Object.prototype.toString.call(t),Error(he(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function tS(e){var t=e._init;return t(e._payload)}function MM(e){function t(m,b){if(e){var v=m.deletions;v===null?(m.deletions=[b],m.flags|=16):v.push(b)}}function n(m,b){if(!e)return null;for(;b!==null;)t(m,b),b=b.sibling;return null}function o(m){for(var b=new Map;m!==null;)m.key!==null?b.set(m.key,m):b.set(m.index,m),m=m.sibling;return b}function r(m,b){return m=sl(m,b),m.index=0,m.sibling=null,m}function l(m,b,v){return m.index=v,e?(v=m.alternate,v!==null?(v=v.index,v<b?(m.flags|=67108866,b):v):(m.flags|=67108866,b)):(m.flags|=1048576,b)}function i(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function s(m,b,v,S){return b===null||b.tag!==6?(b=Jh(v,m.mode,S),b.return=m,b):(b=r(b,v),b.return=m,b)}function a(m,b,v,S){var M=v.type;return M===Ts?c(m,b,v.props.children,S,v.key):b!==null&&(b.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zl&&tS(M)===b.type)?(b=r(b,v.props),Za(b,v),b.return=m,b):(b=Gd(v.type,v.key,v.props,null,m.mode,S),Za(b,v),b.return=m,b)}function u(m,b,v,S){return b===null||b.tag!==4||b.stateNode.containerInfo!==v.containerInfo||b.stateNode.implementation!==v.implementation?(b=eg(v,m.mode,S),b.return=m,b):(b=r(b,v.children||[]),b.return=m,b)}function c(m,b,v,S,M){return b===null||b.tag!==7?(b=Ai(v,m.mode,S,M),b.return=m,b):(b=r(b,v),b.return=m,b)}function d(m,b,v){if(typeof b=="string"&&b!==""||typeof b=="number"||typeof b=="bigint")return b=Jh(""+b,m.mode,v),b.return=m,b;if(typeof b=="object"&&b!==null){switch(b.$$typeof){case cd:return v=Gd(b.type,b.key,b.props,null,m.mode,v),Za(v,b),v.return=m,v;case gc:return b=eg(b,m.mode,v),b.return=m,b;case zl:var S=b._init;return b=S(b._payload),d(m,b,v)}if(mc(b)||Ka(b))return b=Ai(b,m.mode,v,null),b.return=m,b;if(typeof b.then=="function")return d(m,md(b),v);if(b.$$typeof===tl)return d(m,hd(m,b),v);bd(m,b)}return null}function p(m,b,v,S){var M=b!==null?b.key:null;if(typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint")return M!==null?null:s(m,b,""+v,S);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case cd:return v.key===M?a(m,b,v,S):null;case gc:return v.key===M?u(m,b,v,S):null;case zl:return M=v._init,v=M(v._payload),p(m,b,v,S)}if(mc(v)||Ka(v))return M!==null?null:c(m,b,v,S,null);if(typeof v.then=="function")return p(m,b,md(v),S);if(v.$$typeof===tl)return p(m,b,hd(m,v),S);bd(m,v)}return null}function h(m,b,v,S,M){if(typeof S=="string"&&S!==""||typeof S=="number"||typeof S=="bigint")return m=m.get(v)||null,s(b,m,""+S,M);if(typeof S=="object"&&S!==null){switch(S.$$typeof){case cd:return m=m.get(S.key===null?v:S.key)||null,a(b,m,S,M);case gc:return m=m.get(S.key===null?v:S.key)||null,u(b,m,S,M);case zl:var R=S._init;return S=R(S._payload),h(m,b,v,S,M)}if(mc(S)||Ka(S))return m=m.get(v)||null,c(b,m,S,M,null);if(typeof S.then=="function")return h(m,b,v,md(S),M);if(S.$$typeof===tl)return h(m,b,v,hd(b,S),M);bd(b,S)}return null}function g(m,b,v,S){for(var M=null,R=null,k=b,E=b=0,P=null;k!==null&&E<v.length;E++){k.index>E?(P=k,k=null):P=k.sibling;var C=p(m,k,v[E],S);if(C===null){k===null&&(k=P);break}e&&k&&C.alternate===null&&t(m,k),b=l(C,b,E),R===null?M=C:R.sibling=C,R=C,k=P}if(E===v.length)return n(m,k),Mt&&Mi(m,E),M;if(k===null){for(;E<v.length;E++)k=d(m,v[E],S),k!==null&&(b=l(k,b,E),R===null?M=k:R.sibling=k,R=k);return Mt&&Mi(m,E),M}for(k=o(k);E<v.length;E++)P=h(k,m,E,v[E],S),P!==null&&(e&&P.alternate!==null&&k.delete(P.key===null?E:P.key),b=l(P,b,E),R===null?M=P:R.sibling=P,R=P);return e&&k.forEach(function(T){return t(m,T)}),Mt&&Mi(m,E),M}function y(m,b,v,S){if(v==null)throw Error(he(151));for(var M=null,R=null,k=b,E=b=0,P=null,C=v.next();k!==null&&!C.done;E++,C=v.next()){k.index>E?(P=k,k=null):P=k.sibling;var T=p(m,k,C.value,S);if(T===null){k===null&&(k=P);break}e&&k&&T.alternate===null&&t(m,k),b=l(T,b,E),R===null?M=T:R.sibling=T,R=T,k=P}if(C.done)return n(m,k),Mt&&Mi(m,E),M;if(k===null){for(;!C.done;E++,C=v.next())C=d(m,C.value,S),C!==null&&(b=l(C,b,E),R===null?M=C:R.sibling=C,R=C);return Mt&&Mi(m,E),M}for(k=o(k);!C.done;E++,C=v.next())C=h(k,m,E,C.value,S),C!==null&&(e&&C.alternate!==null&&k.delete(C.key===null?E:C.key),b=l(C,b,E),R===null?M=C:R.sibling=C,R=C);return e&&k.forEach(function(A){return t(m,A)}),Mt&&Mi(m,E),M}function w(m,b,v,S){if(typeof v=="object"&&v!==null&&v.type===Ts&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case cd:e:{for(var M=v.key;b!==null;){if(b.key===M){if(M=v.type,M===Ts){if(b.tag===7){n(m,b.sibling),S=r(b,v.props.children),S.return=m,m=S;break e}}else if(b.elementType===M||typeof M=="object"&&M!==null&&M.$$typeof===zl&&tS(M)===b.type){n(m,b.sibling),S=r(b,v.props),Za(S,v),S.return=m,m=S;break e}n(m,b);break}else t(m,b);b=b.sibling}v.type===Ts?(S=Ai(v.props.children,m.mode,S,v.key),S.return=m,m=S):(S=Gd(v.type,v.key,v.props,null,m.mode,S),Za(S,v),S.return=m,m=S)}return i(m);case gc:e:{for(M=v.key;b!==null;){if(b.key===M)if(b.tag===4&&b.stateNode.containerInfo===v.containerInfo&&b.stateNode.implementation===v.implementation){n(m,b.sibling),S=r(b,v.children||[]),S.return=m,m=S;break e}else{n(m,b);break}else t(m,b);b=b.sibling}S=eg(v,m.mode,S),S.return=m,m=S}return i(m);case zl:return M=v._init,v=M(v._payload),w(m,b,v,S)}if(mc(v))return g(m,b,v,S);if(Ka(v)){if(M=Ka(v),typeof M!="function")throw Error(he(150));return v=M.call(v),y(m,b,v,S)}if(typeof v.then=="function")return w(m,b,md(v),S);if(v.$$typeof===tl)return w(m,b,hd(m,v),S);bd(m,v)}return typeof v=="string"&&v!==""||typeof v=="number"||typeof v=="bigint"?(v=""+v,b!==null&&b.tag===6?(n(m,b.sibling),S=r(b,v),S.return=m,m=S):(n(m,b),S=Jh(v,m.mode,S),S.return=m,m=S),i(m)):n(m,b)}return function(m,b,v,S){try{Jc=0;var M=w(m,b,v,S);return Ys=null,M}catch(k){if(k===Ou||k===xp)throw k;var R=yo(29,k,null,m.mode);return R.lanes=S,R.return=m,R}finally{}}}var sa=MM(!0),EM=MM(!1),Qo=_r(null),Fr=null;function jl(e){var t=e.alternate;qt(wn,wn.current&1),qt(Qo,e),Fr===null&&(t===null||la.current!==null||t.memoizedState!==null)&&(Fr=e)}function TM(e){if(e.tag===22){if(qt(wn,wn.current),qt(Qo,e),Fr===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(Fr=e)}}else Gl()}function Gl(){qt(wn,wn.current),qt(Qo,Qo.current)}function ll(e){kn(Qo),Fr===e&&(Fr=null),kn(wn)}var wn=_r(0);function Pf(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||Vm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function og(e,t,n,o){t=e.memoizedState,n=n(o,t),n=n==null?t:_t({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Im={enqueueSetState:function(e,t,n){e=e._reactInternals;var o=wo(),r=Jl(o);r.payload=t,n!=null&&(r.callback=n),t=ei(e,r,o),t!==null&&(xo(t,e,o),Rc(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var o=wo(),r=Jl(o);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=ei(e,r,o),t!==null&&(xo(t,e,o),Rc(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=wo(),o=Jl(n);o.tag=2,t!=null&&(o.callback=t),t=ei(e,o,n),t!==null&&(xo(t,e,n),Rc(t,e,n))}};function nS(e,t,n,o,r,l,i){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,l,i):t.prototype&&t.prototype.isPureReactComponent?!Xc(n,o)||!Xc(r,l):!0}function oS(e,t,n,o){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,o),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,o),t.state!==e&&Im.enqueueReplaceState(t,t.state,null)}function Vi(e,t){var n=t;if("ref"in t){n={};for(var o in t)o!=="ref"&&(n[o]=t[o])}if(e=e.defaultProps){n===t&&(n=_t({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}var If=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function PM(e){If(e)}function IM(e){console.error(e)}function OM(e){If(e)}function Of(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(o){setTimeout(function(){throw o})}}function rS(e,t,n){try{var o=e.onCaughtError;o(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function Om(e,t,n){return n=Jl(n),n.tag=3,n.payload={element:null},n.callback=function(){Of(e,t)},n}function RM(e){return e=Jl(e),e.tag=3,e}function kM(e,t,n,o){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var l=o.value;e.payload=function(){return r(l)},e.callback=function(){rS(t,n,o)}}var i=n.stateNode;i!==null&&typeof i.componentDidCatch=="function"&&(e.callback=function(){rS(t,n,o),typeof r!="function"&&(ti===null?ti=new Set([this]):ti.add(this));var s=o.stack;this.componentDidCatch(o.value,{componentStack:s!==null?s:""})})}function Ok(e,t,n,o,r){if(n.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(t=n.alternate,t!==null&&Pu(t,n,r,!0),n=Qo.current,n!==null){switch(n.tag){case 13:return Fr===null?Fm():n.alternate===null&&rn===0&&(rn=3),n.flags&=-257,n.flags|=65536,n.lanes=r,o===Sm?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([o]):t.add(o),hg(e,o,r)),!1;case 22:return n.flags|=65536,o===Sm?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([o]):n.add(o)),hg(e,o,r)),!1}throw Error(he(435,n.tag))}return hg(e,o,r),Fm(),!1}if(Mt)return t=Qo.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=r,o!==mm&&(e=Error(he(422),{cause:o}),Qc(Vo(e,n)))):(o!==mm&&(t=Error(he(423),{cause:o}),Qc(Vo(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,o=Vo(o,n),r=Om(e.stateNode,o,r),tg(e,r),rn!==4&&(rn=2)),!1;var l=Error(he(520),{cause:o});if(l=Vo(l,n),zc===null?zc=[l]:zc.push(l),rn!==4&&(rn=2),t===null)return!0;o=Vo(o,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=Om(n.stateNode,o,e),tg(n,e),!1;case 1:if(t=n.type,l=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||l!==null&&typeof l.componentDidCatch=="function"&&(ti===null||!ti.has(l))))return n.flags|=65536,r&=-r,n.lanes|=r,r=RM(r),kM(r,e,n,o),tg(n,r),!1}n=n.return}while(n!==null);return!1}var AM=Error(he(461)),Rn=!1;function Fn(e,t,n,o){t.child=e===null?EM(t,null,n,o):sa(t,e.child,n,o)}function lS(e,t,n,o,r){n=n.render;var l=t.ref;if("ref"in o){var i={};for(var s in o)s!=="ref"&&(i[s]=o[s])}else i=o;return Gi(t),o=by(e,t,n,i,l,r),s=yy(),e!==null&&!Rn?(vy(e,t,r),pl(e,t,r)):(Mt&&s&&uy(t),t.flags|=1,Fn(e,t,o,r),t.child)}function iS(e,t,n,o,r){if(e===null){var l=n.type;return typeof l=="function"&&!cy(l)&&l.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=l,$M(e,t,l,o,r)):(e=Gd(n.type,null,o,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(l=e.child,!Iy(e,r)){var i=l.memoizedProps;if(n=n.compare,n=n!==null?n:Xc,n(i,o)&&e.ref===t.ref)return pl(e,t,r)}return t.flags|=1,e=sl(l,o),e.ref=t.ref,e.return=t,t.child=e}function $M(e,t,n,o,r){if(e!==null){var l=e.memoizedProps;if(Xc(l,o)&&e.ref===t.ref)if(Rn=!1,t.pendingProps=o=l,Iy(e,r))e.flags&131072&&(Rn=!0);else return t.lanes=e.lanes,pl(e,t,r)}return Rm(e,t,n,o,r)}function DM(e,t,n){var o=t.pendingProps,r=o.children,l=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if(t.flags&128){if(o=l!==null?l.baseLanes|n:n,e!==null){for(r=t.child=e.child,l=0;r!==null;)l=l|r.lanes|r.childLanes,r=r.sibling;t.childLanes=l&~o}else t.childLanes=0,t.child=null;return sS(e,t,o,n)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&_d(t,l!==null?l.cachePool:null),l!==null?KC(t,l):Mm(),TM(t);else return t.lanes=t.childLanes=536870912,sS(e,t,l!==null?l.baseLanes|n:n,n)}else l!==null?(_d(t,l.cachePool),KC(t,l),Gl(),t.memoizedState=null):(e!==null&&_d(t,null),Mm(),Gl());return Fn(e,t,r,n),t.child}function sS(e,t,n,o){var r=py();return r=r===null?null:{parent:Sn._currentValue,pool:r},t.memoizedState={baseLanes:n,cachePool:r},e!==null&&_d(t,null),Mm(),TM(t),e!==null&&Pu(e,t,o,!0),null}function Wd(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(he(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Rm(e,t,n,o,r){return Gi(t),n=by(e,t,n,o,void 0,r),o=yy(),e!==null&&!Rn?(vy(e,t,r),pl(e,t,r)):(Mt&&o&&uy(t),t.flags|=1,Fn(e,t,n,r),t.child)}function aS(e,t,n,o,r,l){return Gi(t),t.updateQueue=null,n=q1(t,o,n,r),W1(e),o=yy(),e!==null&&!Rn?(vy(e,t,l),pl(e,t,l)):(Mt&&o&&uy(t),t.flags|=1,Fn(e,t,n,l),t.child)}function cS(e,t,n,o,r){if(Gi(t),t.stateNode===null){var l=Ds,i=n.contextType;typeof i=="object"&&i!==null&&(l=Wn(i)),l=new n(o,l),t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Im,t.stateNode=l,l._reactInternals=t,l=t.stateNode,l.props=o,l.state=t.memoizedState,l.refs={},hy(t),i=n.contextType,l.context=typeof i=="object"&&i!==null?Wn(i):Ds,l.state=t.memoizedState,i=n.getDerivedStateFromProps,typeof i=="function"&&(og(t,n,i,o),l.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof l.getSnapshotBeforeUpdate=="function"||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(i=l.state,typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount(),i!==l.state&&Im.enqueueReplaceState(l,l.state,null),Ac(t,o,l,r),kc(),l.state=t.memoizedState),typeof l.componentDidMount=="function"&&(t.flags|=4194308),o=!0}else if(e===null){l=t.stateNode;var s=t.memoizedProps,a=Vi(n,s);l.props=a;var u=l.context,c=n.contextType;i=Ds,typeof c=="object"&&c!==null&&(i=Wn(c));var d=n.getDerivedStateFromProps;c=typeof d=="function"||typeof l.getSnapshotBeforeUpdate=="function",s=t.pendingProps!==s,c||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(s||u!==i)&&oS(t,l,o,i),Fl=!1;var p=t.memoizedState;l.state=p,Ac(t,o,l,r),kc(),u=t.memoizedState,s||p!==u||Fl?(typeof d=="function"&&(og(t,n,d,o),u=t.memoizedState),(a=Fl||nS(t,n,a,o,p,u,i))?(c||typeof l.UNSAFE_componentWillMount!="function"&&typeof l.componentWillMount!="function"||(typeof l.componentWillMount=="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount=="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount=="function"&&(t.flags|=4194308)):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=o,t.memoizedState=u),l.props=o,l.state=u,l.context=i,o=a):(typeof l.componentDidMount=="function"&&(t.flags|=4194308),o=!1)}else{l=t.stateNode,wm(e,t),i=t.memoizedProps,c=Vi(n,i),l.props=c,d=t.pendingProps,p=l.context,u=n.contextType,a=Ds,typeof u=="object"&&u!==null&&(a=Wn(u)),s=n.getDerivedStateFromProps,(u=typeof s=="function"||typeof l.getSnapshotBeforeUpdate=="function")||typeof l.UNSAFE_componentWillReceiveProps!="function"&&typeof l.componentWillReceiveProps!="function"||(i!==d||p!==a)&&oS(t,l,o,a),Fl=!1,p=t.memoizedState,l.state=p,Ac(t,o,l,r),kc();var h=t.memoizedState;i!==d||p!==h||Fl||e!==null&&e.dependencies!==null&&wf(e.dependencies)?(typeof s=="function"&&(og(t,n,s,o),h=t.memoizedState),(c=Fl||nS(t,n,c,o,p,h,a)||e!==null&&e.dependencies!==null&&wf(e.dependencies))?(u||typeof l.UNSAFE_componentWillUpdate!="function"&&typeof l.componentWillUpdate!="function"||(typeof l.componentWillUpdate=="function"&&l.componentWillUpdate(o,h,a),typeof l.UNSAFE_componentWillUpdate=="function"&&l.UNSAFE_componentWillUpdate(o,h,a)),typeof l.componentDidUpdate=="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=h),l.props=o,l.state=h,l.context=a,o=c):(typeof l.componentDidUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!="function"||i===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),o=!1)}return l=o,Wd(e,t),o=(t.flags&128)!==0,l||o?(l=t.stateNode,n=o&&typeof n.getDerivedStateFromError!="function"?null:l.render(),t.flags|=1,e!==null&&o?(t.child=sa(t,e.child,null,r),t.child=sa(t,null,n,r)):Fn(e,t,n,r),t.memoizedState=l.state,e=t.child):e=pl(e,t,r),e}function uS(e,t,n,o){return Tu(),t.flags|=256,Fn(e,t,n,o),t.child}var rg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function lg(e){return{baseLanes:e,cachePool:j1()}}function ig(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=Uo),e}function LM(e,t,n){var o=t.pendingProps,r=!1,l=(t.flags&128)!==0,i;if((i=l)||(i=e!==null&&e.memoizedState===null?!1:(wn.current&2)!==0),i&&(r=!0,t.flags&=-129),i=(t.flags&32)!==0,t.flags&=-33,e===null){if(Mt){if(r?jl(t):Gl(),Mt){var s=on,a;if(a=s){e:{for(a=s,s=Ir;a.nodeType!==8;){if(!s){s=null;break e}if(a=pr(a.nextSibling),a===null){s=null;break e}}s=a}s!==null?(t.memoizedState={dehydrated:s,treeContext:$i!==null?{id:nl,overflow:ol}:null,retryLane:536870912,hydrationErrors:null},a=yo(18,null,null,0),a.stateNode=s,a.return=t,t.child=a,Zn=t,on=null,a=!0):a=!1}a||ji(t)}if(s=t.memoizedState,s!==null&&(s=s.dehydrated,s!==null))return Vm(s)?t.lanes=32:t.lanes=536870912,null;ll(t)}return s=o.children,o=o.fallback,r?(Gl(),r=t.mode,s=Rf({mode:"hidden",children:s},r),o=Ai(o,r,n,null),s.return=t,o.return=t,s.sibling=o,t.child=s,r=t.child,r.memoizedState=lg(n),r.childLanes=ig(e,i,n),t.memoizedState=rg,o):(jl(t),km(t,s))}if(a=e.memoizedState,a!==null&&(s=a.dehydrated,s!==null)){if(l)t.flags&256?(jl(t),t.flags&=-257,t=sg(e,t,n)):t.memoizedState!==null?(Gl(),t.child=e.child,t.flags|=128,t=null):(Gl(),r=o.fallback,s=t.mode,o=Rf({mode:"visible",children:o.children},s),r=Ai(r,s,n,null),r.flags|=2,o.return=t,r.return=t,o.sibling=r,t.child=o,sa(t,e.child,null,n),o=t.child,o.memoizedState=lg(n),o.childLanes=ig(e,i,n),t.memoizedState=rg,t=r);else if(jl(t),Vm(s)){if(i=s.nextSibling&&s.nextSibling.dataset,i)var u=i.dgst;i=u,o=Error(he(419)),o.stack="",o.digest=i,Qc({value:o,source:null,stack:null}),t=sg(e,t,n)}else if(Rn||Pu(e,t,n,!1),i=(n&e.childLanes)!==0,Rn||i){if(i=Nt,i!==null&&(o=n&-n,o=o&42?1:Zb(o),o=o&(i.suspendedLanes|n)?0:o,o!==0&&o!==a.retryLane))throw a.retryLane=o,Ia(e,o),xo(i,e,o),AM;s.data==="$?"||Fm(),t=sg(e,t,n)}else s.data==="$?"?(t.flags|=192,t.child=e.child,t=null):(e=a.treeContext,on=pr(s.nextSibling),Zn=t,Mt=!0,Di=null,Ir=!1,e!==null&&(Bo[Ho++]=nl,Bo[Ho++]=ol,Bo[Ho++]=$i,nl=e.id,ol=e.overflow,$i=t),t=km(t,o.children),t.flags|=4096);return t}return r?(Gl(),r=o.fallback,s=t.mode,a=e.child,u=a.sibling,o=sl(a,{mode:"hidden",children:o.children}),o.subtreeFlags=a.subtreeFlags&65011712,u!==null?r=sl(u,r):(r=Ai(r,s,n,null),r.flags|=2),r.return=t,o.return=t,o.sibling=r,t.child=o,o=r,r=t.child,s=e.child.memoizedState,s===null?s=lg(n):(a=s.cachePool,a!==null?(u=Sn._currentValue,a=a.parent!==u?{parent:u,pool:u}:a):a=j1(),s={baseLanes:s.baseLanes|n,cachePool:a}),r.memoizedState=s,r.childLanes=ig(e,i,n),t.memoizedState=rg,o):(jl(t),n=e.child,e=n.sibling,n=sl(n,{mode:"visible",children:o.children}),n.return=t,n.sibling=null,e!==null&&(i=t.deletions,i===null?(t.deletions=[e],t.flags|=16):i.push(e)),t.child=n,t.memoizedState=null,n)}function km(e,t){return t=Rf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Rf(e,t){return e=yo(22,e,null,t),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function sg(e,t,n){return sa(t,e.child,null,n),e=km(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function dS(e,t,n){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ym(e.return,t,n)}function ag(e,t,n,o,r){var l=e.memoizedState;l===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:n,tailMode:r}:(l.isBackwards=t,l.rendering=null,l.renderingStartTime=0,l.last=o,l.tail=n,l.tailMode=r)}function zM(e,t,n){var o=t.pendingProps,r=o.revealOrder,l=o.tail;if(Fn(e,t,o.children,n),o=wn.current,o&2)o=o&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&dS(e,n,t);else if(e.tag===19)dS(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(qt(wn,o),r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&Pf(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),ag(t,!1,r,n,l);break;case"backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&Pf(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}ag(t,!0,n,null,l);break;case"together":ag(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function pl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),ci|=t.lanes,!(n&t.childLanes))if(e!==null){if(Pu(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(he(153));if(t.child!==null){for(e=t.child,n=sl(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=sl(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Iy(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&wf(e)))}function Rk(e,t,n){switch(t.tag){case 3:hf(t,t.stateNode.containerInfo),Nl(t,Sn,e.memoizedState.cache),Tu();break;case 27:case 5:im(t);break;case 4:hf(t,t.stateNode.containerInfo);break;case 10:Nl(t,t.type,t.memoizedProps.value);break;case 13:var o=t.memoizedState;if(o!==null)return o.dehydrated!==null?(jl(t),t.flags|=128,null):n&t.child.childLanes?LM(e,t,n):(jl(t),e=pl(e,t,n),e!==null?e.sibling:null);jl(t);break;case 19:var r=(e.flags&128)!==0;if(o=(n&t.childLanes)!==0,o||(Pu(e,t,n,!1),o=(n&t.childLanes)!==0),r){if(o)return zM(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),qt(wn,wn.current),o)break;return null;case 22:case 23:return t.lanes=0,DM(e,t,n);case 24:Nl(t,Sn,e.memoizedState.cache)}return pl(e,t,n)}function FM(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Rn=!0;else{if(!Iy(e,n)&&!(t.flags&128))return Rn=!1,Rk(e,t,n);Rn=!!(e.flags&131072)}else Rn=!1,Mt&&t.flags&1048576&&H1(t,Sf,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var o=t.elementType,r=o._init;if(o=r(o._payload),t.type=o,typeof o=="function")cy(o)?(e=Vi(o,e),t.tag=1,t=cS(null,t,o,e,n)):(t.tag=0,t=Rm(null,t,o,e,n));else{if(o!=null){if(r=o.$$typeof,r===Yb){t.tag=11,t=lS(null,t,o,e,n);break e}else if(r===Xb){t.tag=14,t=iS(null,t,o,e,n);break e}}throw t=rm(o)||o,Error(he(306,t,""))}}return t;case 0:return Rm(e,t,t.type,t.pendingProps,n);case 1:return o=t.type,r=Vi(o,t.pendingProps),cS(e,t,o,r,n);case 3:e:{if(hf(t,t.stateNode.containerInfo),e===null)throw Error(he(387));o=t.pendingProps;var l=t.memoizedState;r=l.element,wm(e,t),Ac(t,o,null,n);var i=t.memoizedState;if(o=i.cache,Nl(t,Sn,o),o!==l.cache&&vm(t,[Sn],n,!0),kc(),o=i.element,l.isDehydrated)if(l={element:o,isDehydrated:!1,cache:i.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=uS(e,t,o,n);break e}else if(o!==r){r=Vo(Error(he(424)),t),Qc(r),t=uS(e,t,o,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(on=pr(e.firstChild),Zn=t,Mt=!0,Di=null,Ir=!0,n=EM(t,null,o,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Tu(),o===r){t=pl(e,t,n);break e}Fn(e,t,o,n)}t=t.child}return t;case 26:return Wd(e,t),e===null?(n=IS(t.type,null,t.pendingProps,null))?t.memoizedState=n:Mt||(n=t.type,e=t.pendingProps,o=Ff(Zl.current).createElement(n),o[Un]=t,o[co]=e,Gn(o,n,e),In(o),t.stateNode=o):t.memoizedState=IS(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return im(t),e===null&&Mt&&(o=t.stateNode=xE(t.type,t.pendingProps,Zl.current),Zn=t,Ir=!0,r=on,hi(t.type)?(Um=r,on=pr(o.firstChild)):on=r),Fn(e,t,t.pendingProps.children,n),Wd(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Mt&&((r=o=on)&&(o=r2(o,t.type,t.pendingProps,Ir),o!==null?(t.stateNode=o,Zn=t,on=pr(o.firstChild),Ir=!1,r=!0):r=!1),r||ji(t)),im(t),r=t.type,l=t.pendingProps,i=e!==null?e.memoizedProps:null,o=l.children,Gm(r,l)?o=null:i!==null&&Gm(r,i)&&(t.flags|=32),t.memoizedState!==null&&(r=by(e,t,wk,null,null,n),ou._currentValue=r),Wd(e,t),Fn(e,t,o,n),t.child;case 6:return e===null&&Mt&&((e=n=on)&&(n=l2(n,t.pendingProps,Ir),n!==null?(t.stateNode=n,Zn=t,on=null,e=!0):e=!1),e||ji(t)),null;case 13:return LM(e,t,n);case 4:return hf(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=sa(t,null,o,n):Fn(e,t,o,n),t.child;case 11:return lS(e,t,t.type,t.pendingProps,n);case 7:return Fn(e,t,t.pendingProps,n),t.child;case 8:return Fn(e,t,t.pendingProps.children,n),t.child;case 12:return Fn(e,t,t.pendingProps.children,n),t.child;case 10:return o=t.pendingProps,Nl(t,t.type,o.value),Fn(e,t,o.children,n),t.child;case 9:return r=t.type._context,o=t.pendingProps.children,Gi(t),r=Wn(r),o=o(r),t.flags|=1,Fn(e,t,o,n),t.child;case 14:return iS(e,t,t.type,t.pendingProps,n);case 15:return $M(e,t,t.type,t.pendingProps,n);case 19:return zM(e,t,n);case 31:return o=t.pendingProps,n=t.mode,o={mode:o.mode,children:o.children},e===null?(n=Rf(o,n),n.ref=t.ref,t.child=n,n.return=t,t=n):(n=sl(e.child,o),n.ref=t.ref,t.child=n,n.return=t,t=n),t;case 22:return DM(e,t,n);case 24:return Gi(t),o=Wn(Sn),e===null?(r=py(),r===null&&(r=Nt,l=fy(),r.pooledCache=l,l.refCount++,l!==null&&(r.pooledCacheLanes|=n),r=l),t.memoizedState={parent:o,cache:r},hy(t),Nl(t,Sn,r)):(e.lanes&n&&(wm(e,t),Ac(t,null,null,n),kc()),r=e.memoizedState,l=t.memoizedState,r.parent!==o?(r={parent:o,cache:o},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Nl(t,Sn,o)):(o=l.cache,Nl(t,Sn,o),o!==r.cache&&vm(t,[Sn],n,!0))),Fn(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(he(156,t.tag))}function Kr(e){e.flags|=4}function fS(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!TE(t)){if(t=Qo.current,t!==null&&((mt&4194048)===mt?Fr!==null:(mt&62914560)!==mt&&!(mt&536870912)||t!==Fr))throw Oc=Sm,G1;e.flags|=8192}}function yd(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?c1():536870912,e.lanes|=t,aa|=t)}function Ja(e,t){if(!Mt)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Zt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,o=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags&65011712,o|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,o|=r.subtreeFlags,o|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=o,e.childLanes=n,t}function kk(e,t,n){var o=t.pendingProps;switch(dy(t),t.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zt(t),null;case 1:return Zt(t),null;case 3:return n=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),al(Sn),ta(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Qa(t)?Kr(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,GC())),Zt(t),null;case 26:return n=t.memoizedState,e===null?(Kr(t),n!==null?(Zt(t),fS(t,n)):(Zt(t),t.flags&=-16777217)):n?n!==e.memoizedState?(Kr(t),Zt(t),fS(t,n)):(Zt(t),t.flags&=-16777217):(e.memoizedProps!==o&&Kr(t),Zt(t),t.flags&=-16777217),null;case 27:gf(t),n=Zl.current;var r=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Kr(t);else{if(!o){if(t.stateNode===null)throw Error(he(166));return Zt(t),null}e=Lr.current,Qa(t)?NC(t):(e=xE(r,o,n),t.stateNode=e,Kr(t))}return Zt(t),null;case 5:if(gf(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&Kr(t);else{if(!o){if(t.stateNode===null)throw Error(he(166));return Zt(t),null}if(e=Lr.current,Qa(t))NC(t);else{switch(r=Ff(Zl.current),e){case 1:e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case 2:e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;default:switch(n){case"svg":e=r.createElementNS("http://www.w3.org/2000/svg",n);break;case"math":e=r.createElementNS("http://www.w3.org/1998/Math/MathML",n);break;case"script":e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?r.createElement("select",{is:o.is}):r.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?r.createElement(n,{is:o.is}):r.createElement(n)}}e[Un]=t,e[co]=o;e:for(r=t.child;r!==null;){if(r.tag===5||r.tag===6)e.appendChild(r.stateNode);else if(r.tag!==4&&r.tag!==27&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}t.stateNode=e;e:switch(Gn(e,n,o),n){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Kr(t)}}return Zt(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&Kr(t);else{if(typeof o!="string"&&t.stateNode===null)throw Error(he(166));if(e=Zl.current,Qa(t)){if(e=t.stateNode,n=t.memoizedProps,o=null,r=Zn,r!==null)switch(r.tag){case 27:case 5:o=r.memoizedProps}e[Un]=t,e=!!(e.nodeValue===n||o!==null&&o.suppressHydrationWarning===!0||CE(e.nodeValue,n)),e||ji(t)}else e=Ff(e).createTextNode(o),e[Un]=t,t.stateNode=e}return Zt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Qa(t),o!==null&&o.dehydrated!==null){if(e===null){if(!r)throw Error(he(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(he(317));r[Un]=t}else Tu(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Zt(t),r=!1}else r=GC(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(ll(t),t):(ll(t),null)}if(ll(t),t.flags&128)return t.lanes=n,t;if(n=o!==null,e=e!==null&&e.memoizedState!==null,n){o=t.child,r=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(r=o.alternate.memoizedState.cachePool.pool);var l=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),l!==r&&(o.flags|=2048)}return n!==e&&n&&(t.child.flags|=8192),yd(t,t.updateQueue),Zt(t),null;case 4:return ta(),e===null&&zy(t.stateNode.containerInfo),Zt(t),null;case 10:return al(t.type),Zt(t),null;case 19:if(kn(wn),r=t.memoizedState,r===null)return Zt(t),null;if(o=(t.flags&128)!==0,l=r.rendering,l===null)if(o)Ja(r,!1);else{if(rn!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(l=Pf(e),l!==null){for(t.flags|=128,Ja(r,!1),e=l.updateQueue,t.updateQueue=e,yd(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)B1(n,e),n=n.sibling;return qt(wn,wn.current&1|2),t.child}e=e.sibling}r.tail!==null&&zr()>Af&&(t.flags|=128,o=!0,Ja(r,!1),t.lanes=4194304)}else{if(!o)if(e=Pf(l),e!==null){if(t.flags|=128,o=!0,e=e.updateQueue,t.updateQueue=e,yd(t,e),Ja(r,!0),r.tail===null&&r.tailMode==="hidden"&&!l.alternate&&!Mt)return Zt(t),null}else 2*zr()-r.renderingStartTime>Af&&n!==536870912&&(t.flags|=128,o=!0,Ja(r,!1),t.lanes=4194304);r.isBackwards?(l.sibling=t.child,t.child=l):(e=r.last,e!==null?e.sibling=l:t.child=l,r.last=l)}return r.tail!==null?(t=r.tail,r.rendering=t,r.tail=t.sibling,r.renderingStartTime=zr(),t.sibling=null,e=wn.current,qt(wn,o?e&1|2:e&1),t):(Zt(t),null);case 22:case 23:return ll(t),gy(),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?n&536870912&&!(t.flags&128)&&(Zt(t),t.subtreeFlags&6&&(t.flags|=8192)):Zt(t),n=t.updateQueue,n!==null&&yd(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==n&&(t.flags|=2048),e!==null&&kn(Li),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),al(Sn),Zt(t),null;case 25:return null;case 30:return null}throw Error(he(156,t.tag))}function Ak(e,t){switch(dy(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return al(Sn),ta(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return gf(t),null;case 13:if(ll(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(he(340));Tu()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return kn(wn),null;case 4:return ta(),null;case 10:return al(t.type),null;case 22:case 23:return ll(t),gy(),e!==null&&kn(Li),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return al(Sn),null;case 25:return null;default:return null}}function BM(e,t){switch(dy(t),t.tag){case 3:al(Sn),ta();break;case 26:case 27:case 5:gf(t);break;case 4:ta();break;case 13:ll(t);break;case 19:kn(wn);break;case 10:al(t.type);break;case 22:case 23:ll(t),gy(),e!==null&&kn(Li);break;case 24:al(Sn)}}function Au(e,t){try{var n=t.updateQueue,o=n!==null?n.lastEffect:null;if(o!==null){var r=o.next;n=r;do{if((n.tag&e)===e){o=void 0;var l=n.create,i=n.inst;o=l(),i.destroy=o}n=n.next}while(n!==r)}}catch(s){Bt(t,t.return,s)}}function ai(e,t,n){try{var o=t.updateQueue,r=o!==null?o.lastEffect:null;if(r!==null){var l=r.next;o=l;do{if((o.tag&e)===e){var i=o.inst,s=i.destroy;if(s!==void 0){i.destroy=void 0,r=t;var a=n,u=s;try{u()}catch(c){Bt(r,a,c)}}}o=o.next}while(o!==l)}}catch(c){Bt(t,t.return,c)}}function HM(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{U1(t,n)}catch(o){Bt(e,e.return,o)}}}function NM(e,t,n){n.props=Vi(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(o){Bt(e,t,o)}}function Dc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof n=="function"?e.refCleanup=n(o):n.current=o}}catch(r){Bt(e,t,r)}}function kr(e,t){var n=e.ref,o=e.refCleanup;if(n!==null)if(typeof o=="function")try{o()}catch(r){Bt(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Bt(e,t,r)}else n.current=null}function jM(e){var t=e.type,n=e.memoizedProps,o=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&o.focus();break e;case"img":n.src?o.src=n.src:n.srcSet&&(o.srcset=n.srcSet)}}catch(r){Bt(e,e.return,r)}}function cg(e,t,n){try{var o=e.stateNode;Jk(o,e.type,n,t),o[co]=t}catch(r){Bt(e,e.return,r)}}function GM(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&hi(e.type)||e.tag===4}function ug(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GM(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&&hi(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 Am(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Rp));else if(o!==4&&(o===27&&hi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Am(e,t,n),e=e.sibling;e!==null;)Am(e,t,n),e=e.sibling}function kf(e,t,n){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(o!==4&&(o===27&&hi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(kf(e,t,n),e=e.sibling;e!==null;)kf(e,t,n),e=e.sibling}function _M(e){var t=e.stateNode,n=e.memoizedProps;try{for(var o=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);Gn(t,o,n),t[Un]=e,t[co]=n}catch(l){Bt(e,e.return,l)}}var el=!1,cn=!1,dg=!1,pS=typeof WeakSet=="function"?WeakSet:Set,Pn=null;function $k(e,t){if(e=e.containerInfo,Nm=jf,e=R1(e),iy(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var o=n.getSelection&&n.getSelection();if(o&&o.rangeCount!==0){n=o.anchorNode;var r=o.anchorOffset,l=o.focusNode;o=o.focusOffset;try{n.nodeType,l.nodeType}catch{n=null;break e}var i=0,s=-1,a=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var h;d!==n||r!==0&&d.nodeType!==3||(s=i+r),d!==l||o!==0&&d.nodeType!==3||(a=i+o),d.nodeType===3&&(i+=d.nodeValue.length),(h=d.firstChild)!==null;)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++u===r&&(s=i),p===l&&++c===o&&(a=i),(h=d.nextSibling)!==null)break;d=p,p=d.parentNode}d=h}n=s===-1||a===-1?null:{start:s,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(jm={focusedElem:e,selectionRange:n},jf=!1,Pn=t;Pn!==null;)if(t=Pn,e=t.child,(t.subtreeFlags&1024)!==0&&e!==null)e.return=t,Pn=e;else for(;Pn!==null;){switch(t=Pn,l=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if(e&1024&&l!==null){e=void 0,n=t,r=l.memoizedProps,l=l.memoizedState,o=n.stateNode;try{var g=Vi(n.type,r,n.elementType===n.type);e=o.getSnapshotBeforeUpdate(g,l),o.__reactInternalSnapshotBeforeUpdate=e}catch(y){Bt(n,n.return,y)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)_m(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":_m(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(he(163))}if(e=t.sibling,e!==null){e.return=t.return,Pn=e;break}Pn=t.return}}function VM(e,t,n){var o=n.flags;switch(n.tag){case 0:case 11:case 15:Ol(e,n),o&4&&Au(5,n);break;case 1:if(Ol(e,n),o&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(i){Bt(n,n.return,i)}else{var r=Vi(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Bt(n,n.return,i)}}o&64&&HM(n),o&512&&Dc(n,n.return);break;case 3:if(Ol(e,n),o&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{U1(e,t)}catch(i){Bt(n,n.return,i)}}break;case 27:t===null&&o&4&&_M(n);case 26:case 5:Ol(e,n),t===null&&o&4&&jM(n),o&512&&Dc(n,n.return);break;case 12:Ol(e,n);break;case 13:Ol(e,n),o&4&&qM(e,n),o&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Gk.bind(null,n),i2(e,n))));break;case 22:if(o=n.memoizedState!==null||el,!o){t=t!==null&&t.memoizedState!==null||cn,r=el;var l=cn;el=o,(cn=t)&&!l?Dl(e,n,(n.subtreeFlags&8772)!==0):Ol(e,n),el=r,cn=l}break;case 30:break;default:Ol(e,n)}}function UM(e){var t=e.alternate;t!==null&&(e.alternate=null,UM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ey(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ut=null,ro=!1;function Yr(e,t,n){for(n=n.child;n!==null;)WM(e,t,n),n=n.sibling}function WM(e,t,n){if(Co&&typeof Co.onCommitFiberUnmount=="function")try{Co.onCommitFiberUnmount(Su,n)}catch{}switch(n.tag){case 26:cn||kr(n,t),Yr(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:cn||kr(n,t);var o=Ut,r=ro;hi(n.type)&&(Ut=n.stateNode,ro=!1),Yr(e,t,n),Bc(n.stateNode),Ut=o,ro=r;break;case 5:cn||kr(n,t);case 6:if(o=Ut,r=ro,Ut=null,Yr(e,t,n),Ut=o,ro=r,Ut!==null)if(ro)try{(Ut.nodeType===9?Ut.body:Ut.nodeName==="HTML"?Ut.ownerDocument.body:Ut).removeChild(n.stateNode)}catch(l){Bt(n,t,l)}else try{Ut.removeChild(n.stateNode)}catch(l){Bt(n,t,l)}break;case 18:Ut!==null&&(ro?(e=Ut,ES(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),iu(e)):ES(Ut,n.stateNode));break;case 4:o=Ut,r=ro,Ut=n.stateNode.containerInfo,ro=!0,Yr(e,t,n),Ut=o,ro=r;break;case 0:case 11:case 14:case 15:cn||ai(2,n,t),cn||ai(4,n,t),Yr(e,t,n);break;case 1:cn||(kr(n,t),o=n.stateNode,typeof o.componentWillUnmount=="function"&&NM(n,t,o)),Yr(e,t,n);break;case 21:Yr(e,t,n);break;case 22:cn=(o=cn)||n.memoizedState!==null,Yr(e,t,n),cn=o;break;default:Yr(e,t,n)}}function qM(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{iu(e)}catch(n){Bt(t,t.return,n)}}function Dk(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new pS),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new pS),t;default:throw Error(he(435,e.tag))}}function fg(e,t){var n=Dk(e);t.forEach(function(o){var r=_k.bind(null,e,o);n.has(o)||(n.add(o),o.then(r,r))})}function ho(e,t){var n=t.deletions;if(n!==null)for(var o=0;o<n.length;o++){var r=n[o],l=e,i=t,s=i;e:for(;s!==null;){switch(s.tag){case 27:if(hi(s.type)){Ut=s.stateNode,ro=!1;break e}break;case 5:Ut=s.stateNode,ro=!1;break e;case 3:case 4:Ut=s.stateNode.containerInfo,ro=!0;break e}s=s.return}if(Ut===null)throw Error(he(160));WM(l,i,r),Ut=null,ro=!1,l=r.alternate,l!==null&&(l.return=null),r.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)KM(t,e),t=t.sibling}var ur=null;function KM(e,t){var n=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ho(t,e),go(e),o&4&&(ai(3,e,e.return),Au(3,e),ai(5,e,e.return));break;case 1:ho(t,e),go(e),o&512&&(cn||n===null||kr(n,n.return)),o&64&&el&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?o:n.concat(o))));break;case 26:var r=ur;if(ho(t,e),go(e),o&512&&(cn||n===null||kr(n,n.return)),o&4){var l=n!==null?n.memoizedState:null;if(o=e.memoizedState,n===null)if(o===null)if(e.stateNode===null){e:{o=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(o){case"title":l=r.getElementsByTagName("title")[0],(!l||l[Mu]||l[Un]||l.namespaceURI==="http://www.w3.org/2000/svg"||l.hasAttribute("itemprop"))&&(l=r.createElement(o),r.head.insertBefore(l,r.querySelector("head > title"))),Gn(l,o,n),l[Un]=e,In(l),o=l;break e;case"link":var i=RS("link","href",r).get(o+(n.href||""));if(i){for(var s=0;s<i.length;s++)if(l=i[s],l.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&l.getAttribute("rel")===(n.rel==null?null:n.rel)&&l.getAttribute("title")===(n.title==null?null:n.title)&&l.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){i.splice(s,1);break t}}l=r.createElement(o),Gn(l,o,n),r.head.appendChild(l);break;case"meta":if(i=RS("meta","content",r).get(o+(n.content||""))){for(s=0;s<i.length;s++)if(l=i[s],l.getAttribute("content")===(n.content==null?null:""+n.content)&&l.getAttribute("name")===(n.name==null?null:n.name)&&l.getAttribute("property")===(n.property==null?null:n.property)&&l.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&l.getAttribute("charset")===(n.charSet==null?null:n.charSet)){i.splice(s,1);break t}}l=r.createElement(o),Gn(l,o,n),r.head.appendChild(l);break;default:throw Error(he(468,o))}l[Un]=e,In(l),o=l}e.stateNode=o}else kS(r,e.type,e.stateNode);else e.stateNode=OS(r,o,e.memoizedProps);else l!==o?(l===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):l.count--,o===null?kS(r,e.type,e.stateNode):OS(r,o,e.memoizedProps)):o===null&&e.stateNode!==null&&cg(e,e.memoizedProps,n.memoizedProps)}break;case 27:ho(t,e),go(e),o&512&&(cn||n===null||kr(n,n.return)),n!==null&&o&4&&cg(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ho(t,e),go(e),o&512&&(cn||n===null||kr(n,n.return)),e.flags&32){r=e.stateNode;try{oa(r,"")}catch(h){Bt(e,e.return,h)}}o&4&&e.stateNode!=null&&(r=e.memoizedProps,cg(e,r,n!==null?n.memoizedProps:r)),o&1024&&(dg=!0);break;case 6:if(ho(t,e),go(e),o&4){if(e.stateNode===null)throw Error(he(162));o=e.memoizedProps,n=e.stateNode;try{n.nodeValue=o}catch(h){Bt(e,e.return,h)}}break;case 3:if(Yd=null,r=ur,ur=Bf(t.containerInfo),ho(t,e),ur=r,go(e),o&4&&n!==null&&n.memoizedState.isDehydrated)try{iu(t.containerInfo)}catch(h){Bt(e,e.return,h)}dg&&(dg=!1,YM(e));break;case 4:o=ur,ur=Bf(e.stateNode.containerInfo),ho(t,e),go(e),ur=o;break;case 12:ho(t,e),go(e);break;case 13:ho(t,e),go(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($y=zr()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,fg(e,o)));break;case 22:r=e.memoizedState!==null;var a=n!==null&&n.memoizedState!==null,u=el,c=cn;if(el=u||r,cn=c||a,ho(t,e),cn=c,el=u,go(e),o&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||a||el||cn||Ei(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){a=n=t;try{if(l=a.stateNode,r)i=l.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none";else{s=a.stateNode;var d=a.memoizedProps.style,p=d!=null&&d.hasOwnProperty("display")?d.display:null;s.style.display=p==null||typeof p=="boolean"?"":(""+p).trim()}}catch(h){Bt(a,a.return,h)}}}else if(t.tag===6){if(n===null){a=t;try{a.stateNode.nodeValue=r?"":a.memoizedProps}catch(h){Bt(a,a.return,h)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}o&4&&(o=e.updateQueue,o!==null&&(n=o.retryQueue,n!==null&&(o.retryQueue=null,fg(e,n))));break;case 19:ho(t,e),go(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,fg(e,o)));break;case 30:break;case 21:break;default:ho(t,e),go(e)}}function go(e){var t=e.flags;if(t&2){try{for(var n,o=e.return;o!==null;){if(GM(o)){n=o;break}o=o.return}if(n==null)throw Error(he(160));switch(n.tag){case 27:var r=n.stateNode,l=ug(e);kf(e,l,r);break;case 5:var i=n.stateNode;n.flags&32&&(oa(i,""),n.flags&=-33);var s=ug(e);kf(e,s,i);break;case 3:case 4:var a=n.stateNode.containerInfo,u=ug(e);Am(e,u,a);break;default:throw Error(he(161))}}catch(c){Bt(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function YM(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;YM(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ol(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)VM(e,t.alternate,t),t=t.sibling}function Ei(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:ai(4,t,t.return),Ei(t);break;case 1:kr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&NM(t,t.return,n),Ei(t);break;case 27:Bc(t.stateNode);case 26:case 5:kr(t,t.return),Ei(t);break;case 22:t.memoizedState===null&&Ei(t);break;case 30:Ei(t);break;default:Ei(t)}e=e.sibling}}function Dl(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var o=t.alternate,r=e,l=t,i=l.flags;switch(l.tag){case 0:case 11:case 15:Dl(r,l,n),Au(4,l);break;case 1:if(Dl(r,l,n),o=l,r=o.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(u){Bt(o,o.return,u)}if(o=l,r=o.updateQueue,r!==null){var s=o.stateNode;try{var a=r.shared.hiddenCallbacks;if(a!==null)for(r.shared.hiddenCallbacks=null,r=0;r<a.length;r++)V1(a[r],s)}catch(u){Bt(o,o.return,u)}}n&&i&64&&HM(l),Dc(l,l.return);break;case 27:_M(l);case 26:case 5:Dl(r,l,n),n&&o===null&&i&4&&jM(l),Dc(l,l.return);break;case 12:Dl(r,l,n);break;case 13:Dl(r,l,n),n&&i&4&&qM(r,l);break;case 22:l.memoizedState===null&&Dl(r,l,n),Dc(l,l.return);break;case 30:break;default:Dl(r,l,n)}t=t.sibling}}function Oy(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Iu(n))}function Ry(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Iu(e))}function xr(e,t,n,o){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)XM(e,t,n,o),t=t.sibling}function XM(e,t,n,o){var r=t.flags;switch(t.tag){case 0:case 11:case 15:xr(e,t,n,o),r&2048&&Au(9,t);break;case 1:xr(e,t,n,o);break;case 3:xr(e,t,n,o),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Iu(e)));break;case 12:if(r&2048){xr(e,t,n,o),e=t.stateNode;try{var l=t.memoizedProps,i=l.id,s=l.onPostCommit;typeof s=="function"&&s(i,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(a){Bt(t,t.return,a)}}else xr(e,t,n,o);break;case 13:xr(e,t,n,o);break;case 23:break;case 22:l=t.stateNode,i=t.alternate,t.memoizedState!==null?l._visibility&2?xr(e,t,n,o):Lc(e,t):l._visibility&2?xr(e,t,n,o):(l._visibility|=2,Ss(e,t,n,o,(t.subtreeFlags&10256)!==0)),r&2048&&Oy(i,t);break;case 24:xr(e,t,n,o),r&2048&&Ry(t.alternate,t);break;default:xr(e,t,n,o)}}function Ss(e,t,n,o,r){for(r=r&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var l=e,i=t,s=n,a=o,u=i.flags;switch(i.tag){case 0:case 11:case 15:Ss(l,i,s,a,r),Au(8,i);break;case 23:break;case 22:var c=i.stateNode;i.memoizedState!==null?c._visibility&2?Ss(l,i,s,a,r):Lc(l,i):(c._visibility|=2,Ss(l,i,s,a,r)),r&&u&2048&&Oy(i.alternate,i);break;case 24:Ss(l,i,s,a,r),r&&u&2048&&Ry(i.alternate,i);break;default:Ss(l,i,s,a,r)}t=t.sibling}}function Lc(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,o=t,r=o.flags;switch(o.tag){case 22:Lc(n,o),r&2048&&Oy(o.alternate,o);break;case 24:Lc(n,o),r&2048&&Ry(o.alternate,o);break;default:Lc(n,o)}t=t.sibling}}var yc=8192;function is(e){if(e.subtreeFlags&yc)for(e=e.child;e!==null;)QM(e),e=e.sibling}function QM(e){switch(e.tag){case 26:is(e),e.flags&yc&&e.memoizedState!==null&&v2(ur,e.memoizedState,e.memoizedProps);break;case 5:is(e);break;case 3:case 4:var t=ur;ur=Bf(e.stateNode.containerInfo),is(e),ur=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=yc,yc=16777216,is(e),yc=t):is(e));break;default:is(e)}}function ZM(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ec(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var o=t[n];Pn=o,eE(o,e)}ZM(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)JM(e),e=e.sibling}function JM(e){switch(e.tag){case 0:case 11:case 15:ec(e),e.flags&2048&&ai(9,e,e.return);break;case 3:ec(e);break;case 12:ec(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,qd(e)):ec(e);break;default:ec(e)}}function qd(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var o=t[n];Pn=o,eE(o,e)}ZM(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:ai(8,t,t.return),qd(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,qd(t));break;default:qd(t)}e=e.sibling}}function eE(e,t){for(;Pn!==null;){var n=Pn;switch(n.tag){case 0:case 11:case 15:ai(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var o=n.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Iu(n.memoizedState.cache)}if(o=n.child,o!==null)o.return=n,Pn=o;else e:for(n=e;Pn!==null;){o=Pn;var r=o.sibling,l=o.return;if(UM(o),o===n){Pn=null;break e}if(r!==null){r.return=l,Pn=r;break e}Pn=l}}}var Lk={getCacheForType:function(e){var t=Wn(Sn),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n}},zk=typeof WeakMap=="function"?WeakMap:Map,It=0,Nt=null,pt=null,mt=0,Pt=0,mo=null,Xl=!1,Oa=!1,ky=!1,hl=0,rn=0,ci=0,zi=0,Ay=0,Uo=0,aa=0,zc=null,lo=null,$m=!1,$y=0,Af=1/0,$f=null,ti=null,Nn=0,ni=null,ca=null,Xs=0,Dm=0,Lm=null,tE=null,Fc=0,zm=null;function wo(){if(It&2&&mt!==0)return mt&-mt;if(Qe.T!==null){var e=ra;return e!==0?e:Ly()}return f1()}function nE(){Uo===0&&(Uo=!(mt&536870912)||Mt?a1():536870912);var e=Qo.current;return e!==null&&(e.flags|=32),Uo}function xo(e,t,n){(e===Nt&&(Pt===2||Pt===9)||e.cancelPendingCommit!==null)&&(ua(e,0),Ql(e,mt,Uo,!1)),xu(e,n),(!(It&2)||e!==Nt)&&(e===Nt&&(!(It&2)&&(zi|=n),rn===4&&Ql(e,mt,Uo,!1)),Vr(e))}function oE(e,t,n){if(It&6)throw Error(he(327));var o=!n&&(t&124)===0&&(t&e.expiredLanes)===0||wu(e,t),r=o?Hk(e,t):pg(e,t,!0),l=o;do{if(r===0){Oa&&!o&&Ql(e,t,0,!1);break}else{if(n=e.current.alternate,l&&!Fk(n)){r=pg(e,t,!1),l=!1;continue}if(r===2){if(l=t,e.errorRecoveryDisabledLanes&l)var i=0;else i=e.pendingLanes&-536870913,i=i!==0?i:i&536870912?536870912:0;if(i!==0){t=i;e:{var s=e;r=zc;var a=s.current.memoizedState.isDehydrated;if(a&&(ua(s,i).flags|=256),i=pg(s,i,!1),i!==2){if(ky&&!a){s.errorRecoveryDisabledLanes|=l,zi|=l,r=4;break e}l=lo,lo=r,l!==null&&(lo===null?lo=l:lo.push.apply(lo,l))}r=i}if(l=!1,r!==2)continue}}if(r===1){ua(e,0),Ql(e,t,0,!0);break}e:{switch(o=e,l=r,l){case 0:case 1:throw Error(he(345));case 4:if((t&4194048)!==t)break;case 6:Ql(o,t,Uo,!Xl);break e;case 2:lo=null;break;case 3:case 5:break;default:throw Error(he(329))}if((t&62914560)===t&&(r=$y+300-zr(),10<r)){if(Ql(o,t,Uo,!Xl),bp(o,0,!0)!==0)break e;o.timeoutHandle=wE(hS.bind(null,o,n,lo,$f,$m,t,Uo,zi,aa,Xl,l,2,-0,0),r);break e}hS(o,n,lo,$f,$m,t,Uo,zi,aa,Xl,l,0,-0,0)}}break}while(1);Vr(e)}function hS(e,t,n,o,r,l,i,s,a,u,c,d,p,h){if(e.timeoutHandle=-1,d=t.subtreeFlags,(d&8192||(d&16785408)===16785408)&&(nu={stylesheets:null,count:0,unsuspend:y2},QM(t),d=C2(),d!==null)){e.cancelPendingCommit=d(mS.bind(null,e,t,l,n,o,r,i,s,a,c,1,p,h)),Ql(e,l,i,!u);return}mS(e,t,l,n,o,r,i,s,a)}function Fk(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var o=0;o<n.length;o++){var r=n[o],l=r.getSnapshot;r=r.value;try{if(!Po(l(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ql(e,t,n,o){t&=~Ay,t&=~zi,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var r=t;0<r;){var l=31-So(r),i=1<<l;o[l]=-1,r&=~i}n!==0&&u1(e,n,t)}function Pp(){return It&6?!0:($u(0,!1),!1)}function Dy(){if(pt!==null){if(Pt===0)var e=pt.return;else e=pt,rl=es=null,Cy(e),Ys=null,Jc=0,e=pt;for(;e!==null;)BM(e.alternate,e),e=e.return;pt=null}}function ua(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,t2(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Dy(),Nt=e,pt=n=sl(e.current,null),mt=t,Pt=0,mo=null,Xl=!1,Oa=wu(e,t),ky=!1,aa=Uo=Ay=zi=ci=rn=0,lo=zc=null,$m=!1,t&8&&(t|=t&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=t;0<o;){var r=31-So(o),l=1<<r;t|=e[r],o&=~l}return hl=t,Sp(),n}function rE(e,t){st=null,Qe.H=Tf,t===Ou||t===xp?(t=WC(),Pt=3):t===G1?(t=WC(),Pt=4):Pt=t===AM?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,mo=t,pt===null&&(rn=1,Of(e,Vo(t,e.current)))}function lE(){var e=Qe.H;return Qe.H=Tf,e===null?Tf:e}function iE(){var e=Qe.A;return Qe.A=Lk,e}function Fm(){rn=4,Xl||(mt&4194048)!==mt&&Qo.current!==null||(Oa=!0),!(ci&134217727)&&!(zi&134217727)||Nt===null||Ql(Nt,mt,Uo,!1)}function pg(e,t,n){var o=It;It|=2;var r=lE(),l=iE();(Nt!==e||mt!==t)&&($f=null,ua(e,t)),t=!1;var i=rn;e:do try{if(Pt!==0&&pt!==null){var s=pt,a=mo;switch(Pt){case 8:Dy(),i=6;break e;case 3:case 2:case 9:case 6:Qo.current===null&&(t=!0);var u=Pt;if(Pt=0,mo=null,Fs(e,s,a,u),n&&Oa){i=0;break e}break;default:u=Pt,Pt=0,mo=null,Fs(e,s,a,u)}}Bk(),i=rn;break}catch(c){rE(e,c)}while(1);return t&&e.shellSuspendCounter++,rl=es=null,It=o,Qe.H=r,Qe.A=l,pt===null&&(Nt=null,mt=0,Sp()),i}function Bk(){for(;pt!==null;)sE(pt)}function Hk(e,t){var n=It;It|=2;var o=lE(),r=iE();Nt!==e||mt!==t?($f=null,Af=zr()+500,ua(e,t)):Oa=wu(e,t);e:do try{if(Pt!==0&&pt!==null){t=pt;var l=mo;t:switch(Pt){case 1:Pt=0,mo=null,Fs(e,t,l,1);break;case 2:case 9:if(UC(l)){Pt=0,mo=null,gS(t);break}t=function(){Pt!==2&&Pt!==9||Nt!==e||(Pt=7),Vr(e)},l.then(t,t);break e;case 3:Pt=7;break e;case 4:Pt=5;break e;case 7:UC(l)?(Pt=0,mo=null,gS(t)):(Pt=0,mo=null,Fs(e,t,l,7));break;case 5:var i=null;switch(pt.tag){case 26:i=pt.memoizedState;case 5:case 27:var s=pt;if(!i||TE(i)){Pt=0,mo=null;var a=s.sibling;if(a!==null)pt=a;else{var u=s.return;u!==null?(pt=u,Ip(u)):pt=null}break t}}Pt=0,mo=null,Fs(e,t,l,5);break;case 6:Pt=0,mo=null,Fs(e,t,l,6);break;case 8:Dy(),rn=6;break e;default:throw Error(he(462))}}Nk();break}catch(c){rE(e,c)}while(1);return rl=es=null,Qe.H=o,Qe.A=r,It=n,pt!==null?0:(Nt=null,mt=0,Sp(),rn)}function Nk(){for(;pt!==null&&!aR();)sE(pt)}function sE(e){var t=FM(e.alternate,e,hl);e.memoizedProps=e.pendingProps,t===null?Ip(e):pt=t}function gS(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=aS(n,t,t.pendingProps,t.type,void 0,mt);break;case 11:t=aS(n,t,t.pendingProps,t.type.render,t.ref,mt);break;case 5:Cy(t);default:BM(n,t),t=pt=B1(t,hl),t=FM(n,t,hl)}e.memoizedProps=e.pendingProps,t===null?Ip(e):pt=t}function Fs(e,t,n,o){rl=es=null,Cy(t),Ys=null,Jc=0;var r=t.return;try{if(Ok(e,r,t,n,mt)){rn=1,Of(e,Vo(n,e.current)),pt=null;return}}catch(l){if(r!==null)throw pt=r,l;rn=1,Of(e,Vo(n,e.current)),pt=null;return}t.flags&32768?(Mt||o===1?e=!0:Oa||mt&536870912?e=!1:(Xl=e=!0,(o===2||o===9||o===3||o===6)&&(o=Qo.current,o!==null&&o.tag===13&&(o.flags|=16384))),aE(t,e)):Ip(t)}function Ip(e){var t=e;do{if(t.flags&32768){aE(t,Xl);return}e=t.return;var n=kk(t.alternate,t,hl);if(n!==null){pt=n;return}if(t=t.sibling,t!==null){pt=t;return}pt=t=e}while(t!==null);rn===0&&(rn=5)}function aE(e,t){do{var n=Ak(e.alternate,e);if(n!==null){n.flags&=32767,pt=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){pt=e;return}pt=e=n}while(e!==null);rn=6,pt=null}function mS(e,t,n,o,r,l,i,s,a){e.cancelPendingCommit=null;do Op();while(Nn!==0);if(It&6)throw Error(he(327));if(t!==null){if(t===e.current)throw Error(he(177));if(l=t.lanes|t.childLanes,l|=sy,yR(e,n,l,i,s,a),e===Nt&&(pt=Nt=null,mt=0),ca=t,ni=e,Xs=n,Dm=l,Lm=r,tE=o,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Vk(mf,function(){return pE(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(t.flags&13878)!==0,t.subtreeFlags&13878||o){o=Qe.T,Qe.T=null,r=Et.p,Et.p=2,i=It,It|=4;try{$k(e,t,n)}finally{It=i,Et.p=r,Qe.T=o}}Nn=1,cE(),uE(),dE()}}function cE(){if(Nn===1){Nn=0;var e=ni,t=ca,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=Qe.T,Qe.T=null;var o=Et.p;Et.p=2;var r=It;It|=4;try{KM(t,e);var l=jm,i=R1(e.containerInfo),s=l.focusedElem,a=l.selectionRange;if(i!==s&&s&&s.ownerDocument&&O1(s.ownerDocument.documentElement,s)){if(a!==null&&iy(s)){var u=a.start,c=a.end;if(c===void 0&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,p=d&&d.defaultView||window;if(p.getSelection){var h=p.getSelection(),g=s.textContent.length,y=Math.min(a.start,g),w=a.end===void 0?y:Math.min(a.end,g);!h.extend&&y>w&&(i=w,w=y,y=i);var m=FC(s,y),b=FC(s,w);if(m&&b&&(h.rangeCount!==1||h.anchorNode!==m.node||h.anchorOffset!==m.offset||h.focusNode!==b.node||h.focusOffset!==b.offset)){var v=d.createRange();v.setStart(m.node,m.offset),h.removeAllRanges(),y>w?(h.addRange(v),h.extend(b.node,b.offset)):(v.setEnd(b.node,b.offset),h.addRange(v))}}}}for(d=[],h=s;h=h.parentNode;)h.nodeType===1&&d.push({element:h,left:h.scrollLeft,top:h.scrollTop});for(typeof s.focus=="function"&&s.focus(),s=0;s<d.length;s++){var S=d[s];S.element.scrollLeft=S.left,S.element.scrollTop=S.top}}jf=!!Nm,jm=Nm=null}finally{It=r,Et.p=o,Qe.T=n}}e.current=t,Nn=2}}function uE(){if(Nn===2){Nn=0;var e=ni,t=ca,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=Qe.T,Qe.T=null;var o=Et.p;Et.p=2;var r=It;It|=4;try{VM(e,t.alternate,t)}finally{It=r,Et.p=o,Qe.T=n}}Nn=3}}function dE(){if(Nn===4||Nn===3){Nn=0,cR();var e=ni,t=ca,n=Xs,o=tE;t.subtreeFlags&10256||t.flags&10256?Nn=5:(Nn=0,ca=ni=null,fE(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(ti=null),Jb(n),t=t.stateNode,Co&&typeof Co.onCommitFiberRoot=="function")try{Co.onCommitFiberRoot(Su,t,void 0,(t.current.flags&128)===128)}catch{}if(o!==null){t=Qe.T,r=Et.p,Et.p=2,Qe.T=null;try{for(var l=e.onRecoverableError,i=0;i<o.length;i++){var s=o[i];l(s.value,{componentStack:s.stack})}}finally{Qe.T=t,Et.p=r}}Xs&3&&Op(),Vr(e),r=e.pendingLanes,n&4194090&&r&42?e===zm?Fc++:(Fc=0,zm=e):Fc=0,$u(0,!1)}}function fE(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Iu(t)))}function Op(e){return cE(),uE(),dE(),pE()}function pE(){if(Nn!==5)return!1;var e=ni,t=Dm;Dm=0;var n=Jb(Xs),o=Qe.T,r=Et.p;try{Et.p=32>n?32:n,Qe.T=null,n=Lm,Lm=null;var l=ni,i=Xs;if(Nn=0,ca=ni=null,Xs=0,It&6)throw Error(he(331));var s=It;if(It|=4,JM(l.current),XM(l,l.current,i,n),It=s,$u(0,!1),Co&&typeof Co.onPostCommitFiberRoot=="function")try{Co.onPostCommitFiberRoot(Su,l)}catch{}return!0}finally{Et.p=r,Qe.T=o,fE(e,t)}}function bS(e,t,n){t=Vo(n,t),t=Om(e.stateNode,t,2),e=ei(e,t,2),e!==null&&(xu(e,2),Vr(e))}function Bt(e,t,n){if(e.tag===3)bS(e,e,n);else for(;t!==null;){if(t.tag===3){bS(t,e,n);break}else if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(ti===null||!ti.has(o))){e=Vo(n,e),n=RM(2),o=ei(t,n,2),o!==null&&(kM(n,o,t,e),xu(o,2),Vr(o));break}}t=t.return}}function hg(e,t,n){var o=e.pingCache;if(o===null){o=e.pingCache=new zk;var r=new Set;o.set(t,r)}else r=o.get(t),r===void 0&&(r=new Set,o.set(t,r));r.has(n)||(ky=!0,r.add(n),e=jk.bind(null,e,t,n),t.then(e,e))}function jk(e,t,n){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Nt===e&&(mt&n)===n&&(rn===4||rn===3&&(mt&62914560)===mt&&300>zr()-$y?!(It&2)&&ua(e,0):Ay|=n,aa===mt&&(aa=0)),Vr(e)}function hE(e,t){t===0&&(t=c1()),e=Ia(e,t),e!==null&&(xu(e,t),Vr(e))}function Gk(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hE(e,n)}function _k(e,t){var n=0;switch(e.tag){case 13:var o=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(he(314))}o!==null&&o.delete(t),hE(e,n)}function Vk(e,t){return Qb(e,t)}var Df=null,ws=null,Bm=!1,Lf=!1,gg=!1,Fi=0;function Vr(e){e!==ws&&e.next===null&&(ws===null?Df=ws=e:ws=ws.next=e),Lf=!0,Bm||(Bm=!0,Wk())}function $u(e,t){if(!gg&&Lf){gg=!0;do for(var n=!1,o=Df;o!==null;){if(!t)if(e!==0){var r=o.pendingLanes;if(r===0)var l=0;else{var i=o.suspendedLanes,s=o.pingedLanes;l=(1<<31-So(42|e)+1)-1,l&=r&~(i&~s),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(n=!0,yS(o,l))}else l=mt,l=bp(o,o===Nt?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),!(l&3)||wu(o,l)||(n=!0,yS(o,l));o=o.next}while(n);gg=!1}}function Uk(){gE()}function gE(){Lf=Bm=!1;var e=0;Fi!==0&&(e2()&&(e=Fi),Fi=0);for(var t=zr(),n=null,o=Df;o!==null;){var r=o.next,l=mE(o,t);l===0?(o.next=null,n===null?Df=r:n.next=r,r===null&&(ws=n)):(n=o,(e!==0||l&3)&&(Lf=!0)),o=r}$u(e,!1)}function mE(e,t){for(var n=e.suspendedLanes,o=e.pingedLanes,r=e.expirationTimes,l=e.pendingLanes&-62914561;0<l;){var i=31-So(l),s=1<<i,a=r[i];a===-1?(!(s&n)||s&o)&&(r[i]=bR(s,t)):a<=t&&(e.expiredLanes|=s),l&=~s}if(t=Nt,n=mt,n=bp(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,n===0||e===t&&(Pt===2||Pt===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&jh(o),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||wu(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(o!==null&&jh(o),Jb(n)){case 2:case 8:n=i1;break;case 32:n=mf;break;case 268435456:n=s1;break;default:n=mf}return o=bE.bind(null,e),n=Qb(n,o),e.callbackPriority=t,e.callbackNode=n,t}return o!==null&&o!==null&&jh(o),e.callbackPriority=2,e.callbackNode=null,2}function bE(e,t){if(Nn!==0&&Nn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Op()&&e.callbackNode!==n)return null;var o=mt;return o=bp(e,e===Nt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(oE(e,o,t),mE(e,zr()),e.callbackNode!=null&&e.callbackNode===n?bE.bind(null,e):null)}function yS(e,t){if(Op())return null;oE(e,t,!0)}function Wk(){n2(function(){It&6?Qb(l1,Uk):gE()})}function Ly(){return Fi===0&&(Fi=a1()),Fi}function vS(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Hd(""+e)}function CS(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function qk(e,t,n,o,r){if(t==="submit"&&n&&n.stateNode===r){var l=vS((r[co]||null).action),i=o.submitter;i&&(t=(t=i[co]||null)?vS(t.formAction):i.getAttribute("formAction"),t!==null&&(l=t,i=null));var s=new yp("action","action",null,o,r);e.push({event:s,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Fi!==0){var a=i?CS(r,i):new FormData(r);Pm(n,{pending:!0,data:a,method:r.method,action:l},null,a)}}else typeof l=="function"&&(s.preventDefault(),a=i?CS(r,i):new FormData(r),Pm(n,{pending:!0,data:a,method:r.method,action:l},l,a))},currentTarget:r}]})}}for(var mg=0;mg<gm.length;mg++){var bg=gm[mg],Kk=bg.toLowerCase(),Yk=bg[0].toUpperCase()+bg.slice(1);yr(Kk,"on"+Yk)}yr(A1,"onAnimationEnd");yr($1,"onAnimationIteration");yr(D1,"onAnimationStart");yr("dblclick","onDoubleClick");yr("focusin","onFocus");yr("focusout","onBlur");yr(fk,"onTransitionRun");yr(pk,"onTransitionStart");yr(hk,"onTransitionCancel");yr(L1,"onTransitionEnd");na("onMouseEnter",["mouseout","mouseover"]);na("onMouseLeave",["mouseout","mouseover"]);na("onPointerEnter",["pointerout","pointerover"]);na("onPointerLeave",["pointerout","pointerover"]);Qi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Qi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Qi("onBeforeInput",["compositionend","keypress","textInput","paste"]);Qi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Qi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var eu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Xk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(eu));function yE(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var o=e[n],r=o.event;o=o.listeners;e:{var l=void 0;if(t)for(var i=o.length-1;0<=i;i--){var s=o[i],a=s.instance,u=s.currentTarget;if(s=s.listener,a!==l&&r.isPropagationStopped())break e;l=s,r.currentTarget=u;try{l(r)}catch(c){If(c)}r.currentTarget=null,l=a}else for(i=0;i<o.length;i++){if(s=o[i],a=s.instance,u=s.currentTarget,s=s.listener,a!==l&&r.isPropagationStopped())break e;l=s,r.currentTarget=u;try{l(r)}catch(c){If(c)}r.currentTarget=null,l=a}}}}function ft(e,t){var n=t[am];n===void 0&&(n=t[am]=new Set);var o=e+"__bubble";n.has(o)||(vE(t,e,2,!1),n.add(o))}function yg(e,t,n){var o=0;t&&(o|=4),vE(n,e,o,t)}var vd="_reactListening"+Math.random().toString(36).slice(2);function zy(e){if(!e[vd]){e[vd]=!0,p1.forEach(function(n){n!=="selectionchange"&&(Xk.has(n)||yg(n,!1,e),yg(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[vd]||(t[vd]=!0,yg("selectionchange",!1,t))}}function vE(e,t,n,o){switch(kE(t)){case 2:var r=x2;break;case 8:r=M2;break;default:r=Ny}n=r.bind(null,t,n,e),r=void 0,!fm||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),o?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function vg(e,t,n,o,r){var l=o;if(!(t&1)&&!(t&2)&&o!==null)e:for(;;){if(o===null)return;var i=o.tag;if(i===3||i===4){var s=o.stateNode.containerInfo;if(s===r)break;if(i===4)for(i=o.return;i!==null;){var a=i.tag;if((a===3||a===4)&&i.stateNode.containerInfo===r)return;i=i.return}for(;s!==null;){if(i=Is(s),i===null)return;if(a=i.tag,a===5||a===6||a===26||a===27){o=l=i;continue e}s=s.parentNode}}o=o.return}S1(function(){var u=l,c=ny(n),d=[];e:{var p=z1.get(e);if(p!==void 0){var h=yp,g=e;switch(e){case"keypress":if(jd(n)===0)break e;case"keydown":case"keyup":h=VR;break;case"focusin":g="focus",h=Yh;break;case"focusout":g="blur",h=Yh;break;case"beforeblur":case"afterblur":h=Yh;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=PC;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=AR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=qR;break;case A1:case $1:case D1:h=LR;break;case L1:h=YR;break;case"scroll":case"scrollend":h=RR;break;case"wheel":h=QR;break;case"copy":case"cut":case"paste":h=FR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=OC;break;case"toggle":case"beforetoggle":h=JR}var y=(t&4)!==0,w=!y&&(e==="scroll"||e==="scrollend"),m=y?p!==null?p+"Capture":null:p;y=[];for(var b=u,v;b!==null;){var S=b;if(v=S.stateNode,S=S.tag,S!==5&&S!==26&&S!==27||v===null||m===null||(S=Kc(b,m),S!=null&&y.push(tu(b,S,v))),w)break;b=b.return}0<y.length&&(p=new h(p,g,null,n,c),d.push({event:p,listeners:y}))}}if(!(t&7)){e:{if(p=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",p&&n!==dm&&(g=n.relatedTarget||n.fromElement)&&(Is(g)||g[Ta]))break e;if((h||p)&&(p=c.window===c?c:(p=c.ownerDocument)?p.defaultView||p.parentWindow:window,h?(g=n.relatedTarget||n.toElement,h=u,g=g?Is(g):null,g!==null&&(w=Cu(g),y=g.tag,g!==w||y!==5&&y!==27&&y!==6)&&(g=null)):(h=null,g=u),h!==g)){if(y=PC,S="onMouseLeave",m="onMouseEnter",b="mouse",(e==="pointerout"||e==="pointerover")&&(y=OC,S="onPointerLeave",m="onPointerEnter",b="pointer"),w=h==null?p:bc(h),v=g==null?p:bc(g),p=new y(S,b+"leave",h,n,c),p.target=w,p.relatedTarget=v,S=null,Is(c)===u&&(y=new y(m,b+"enter",g,n,c),y.target=v,y.relatedTarget=w,S=y),w=S,h&&g)t:{for(y=h,m=g,b=0,v=y;v;v=ss(v))b++;for(v=0,S=m;S;S=ss(S))v++;for(;0<b-v;)y=ss(y),b--;for(;0<v-b;)m=ss(m),v--;for(;b--;){if(y===m||m!==null&&y===m.alternate)break t;y=ss(y),m=ss(m)}y=null}else y=null;h!==null&&SS(d,p,h,y,!1),g!==null&&w!==null&&SS(d,w,g,y,!0)}}e:{if(p=u?bc(u):window,h=p.nodeName&&p.nodeName.toLowerCase(),h==="select"||h==="input"&&p.type==="file")var M=$C;else if(AC(p))if(P1)M=ck;else{M=sk;var R=ik}else h=p.nodeName,!h||h.toLowerCase()!=="input"||p.type!=="checkbox"&&p.type!=="radio"?u&&ty(u.elementType)&&(M=$C):M=ak;if(M&&(M=M(e,u))){T1(d,M,n,c);break e}R&&R(e,p,u),e==="focusout"&&u&&p.type==="number"&&u.memoizedProps.value!=null&&um(p,"number",p.value)}switch(R=u?bc(u):window,e){case"focusin":(AC(R)||R.contentEditable==="true")&&(ks=R,pm=u,Pc=null);break;case"focusout":Pc=pm=ks=null;break;case"mousedown":hm=!0;break;case"contextmenu":case"mouseup":case"dragend":hm=!1,BC(d,n,c);break;case"selectionchange":if(dk)break;case"keydown":case"keyup":BC(d,n,c)}var k;if(ly)e:{switch(e){case"compositionstart":var E="onCompositionStart";break e;case"compositionend":E="onCompositionEnd";break e;case"compositionupdate":E="onCompositionUpdate";break e}E=void 0}else Rs?M1(e,n)&&(E="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(E="onCompositionStart");E&&(x1&&n.locale!=="ko"&&(Rs||E!=="onCompositionStart"?E==="onCompositionEnd"&&Rs&&(k=w1()):(Yl=c,oy="value"in Yl?Yl.value:Yl.textContent,Rs=!0)),R=zf(u,E),0<R.length&&(E=new IC(E,e,null,n,c),d.push({event:E,listeners:R}),k?E.data=k:(k=E1(n),k!==null&&(E.data=k)))),(k=tk?nk(e,n):ok(e,n))&&(E=zf(u,"onBeforeInput"),0<E.length&&(R=new IC("onBeforeInput","beforeinput",null,n,c),d.push({event:R,listeners:E}),R.data=k)),qk(d,e,u,n,c)}yE(d,t)})}function tu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function zf(e,t){for(var n=t+"Capture",o=[];e!==null;){var r=e,l=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||l===null||(r=Kc(e,n),r!=null&&o.unshift(tu(e,r,l)),r=Kc(e,t),r!=null&&o.push(tu(e,r,l))),e.tag===3)return o;e=e.return}return[]}function ss(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function SS(e,t,n,o,r){for(var l=t._reactName,i=[];n!==null&&n!==o;){var s=n,a=s.alternate,u=s.stateNode;if(s=s.tag,a!==null&&a===o)break;s!==5&&s!==26&&s!==27||u===null||(a=u,r?(u=Kc(n,l),u!=null&&i.unshift(tu(n,u,a))):r||(u=Kc(n,l),u!=null&&i.push(tu(n,u,a)))),n=n.return}i.length!==0&&e.push({event:t,listeners:i})}var Qk=/\r\n?/g,Zk=/\u0000|\uFFFD/g;function wS(e){return(typeof e=="string"?e:""+e).replace(Qk,` 49 `).replace(Zk,"")}function CE(e,t){return t=wS(t),wS(e)===t}function Rp(){}function $t(e,t,n,o,r,l){switch(n){case"children":typeof o=="string"?t==="body"||t==="textarea"&&o===""||oa(e,o):(typeof o=="number"||typeof o=="bigint")&&t!=="body"&&oa(e,""+o);break;case"className":fd(e,"class",o);break;case"tabIndex":fd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":fd(e,n,o);break;case"style":C1(e,o,l);break;case"data":if(t!=="object"){fd(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(n);break}o=Hd(""+o),e.setAttribute(n,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof l=="function"&&(n==="formAction"?(t!=="input"&&$t(e,t,"name",r.name,r,null),$t(e,t,"formEncType",r.formEncType,r,null),$t(e,t,"formMethod",r.formMethod,r,null),$t(e,t,"formTarget",r.formTarget,r,null)):($t(e,t,"encType",r.encType,r,null),$t(e,t,"method",r.method,r,null),$t(e,t,"target",r.target,r,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(n);break}o=Hd(""+o),e.setAttribute(n,o);break;case"onClick":o!=null&&(e.onclick=Rp);break;case"onScroll":o!=null&&ft("scroll",e);break;case"onScrollEnd":o!=null&&ft("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(he(61));if(n=o.__html,n!=null){if(r.children!=null)throw Error(he(60));e.innerHTML=n}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}n=Hd(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(n,""+o):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":o===!0?e.setAttribute(n,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(n,o):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(n,o):e.removeAttribute(n);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(n):e.setAttribute(n,o);break;case"popover":ft("beforetoggle",e),ft("toggle",e),Bd(e,"popover",o);break;case"xlinkActuate":qr(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":qr(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":qr(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":qr(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":qr(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":qr(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":qr(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":qr(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":qr(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Bd(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=IR.get(n)||n,Bd(e,n,o))}}function Hm(e,t,n,o,r,l){switch(n){case"style":C1(e,o,l);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(he(61));if(n=o.__html,n!=null){if(r.children!=null)throw Error(he(60));e.innerHTML=n}}break;case"children":typeof o=="string"?oa(e,o):(typeof o=="number"||typeof o=="bigint")&&oa(e,""+o);break;case"onScroll":o!=null&&ft("scroll",e);break;case"onScrollEnd":o!=null&&ft("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Rp);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!h1.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),l=e[co]||null,l=l!=null?l[n]:null,typeof l=="function"&&e.removeEventListener(t,l,r),typeof o=="function")){typeof l!="function"&&l!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,o,r);break e}n in e?e[n]=o:o===!0?e.setAttribute(n,""):Bd(e,n,o)}}}function Gn(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var o=!1,r=!1,l;for(l in n)if(n.hasOwnProperty(l)){var i=n[l];if(i!=null)switch(l){case"src":o=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(he(137,t));default:$t(e,t,l,i,n,null)}}r&&$t(e,t,"srcSet",n.srcSet,n,null),o&&$t(e,t,"src",n.src,n,null);return;case"input":ft("invalid",e);var s=l=i=r=null,a=null,u=null;for(o in n)if(n.hasOwnProperty(o)){var c=n[o];if(c!=null)switch(o){case"name":r=c;break;case"type":i=c;break;case"checked":a=c;break;case"defaultChecked":u=c;break;case"value":l=c;break;case"defaultValue":s=c;break;case"children":case"dangerouslySetInnerHTML":if(c!=null)throw Error(he(137,t));break;default:$t(e,t,o,c,n,null)}}b1(e,l,s,a,u,i,r,!1),bf(e);return;case"select":ft("invalid",e),o=i=l=null;for(r in n)if(n.hasOwnProperty(r)&&(s=n[r],s!=null))switch(r){case"value":l=s;break;case"defaultValue":i=s;break;case"multiple":o=s;default:$t(e,t,r,s,n,null)}t=l,n=i,e.multiple=!!o,t!=null?Vs(e,!!o,t,!1):n!=null&&Vs(e,!!o,n,!0);return;case"textarea":ft("invalid",e),l=r=o=null;for(i in n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case"value":o=s;break;case"defaultValue":r=s;break;case"children":l=s;break;case"dangerouslySetInnerHTML":if(s!=null)throw Error(he(91));break;default:$t(e,t,i,s,n,null)}v1(e,o,r,l),bf(e);return;case"option":for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:$t(e,t,a,o,n,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(o=0;o<eu.length;o++)ft(eu[o],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(u in n)if(n.hasOwnProperty(u)&&(o=n[u],o!=null))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(he(137,t));default:$t(e,t,u,o,n,null)}return;default:if(ty(t)){for(c in n)n.hasOwnProperty(c)&&(o=n[c],o!==void 0&&Hm(e,t,c,o,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(o=n[s],o!=null&&$t(e,t,s,o,n,null))}function Jk(e,t,n,o){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,l=null,i=null,s=null,a=null,u=null,c=null;for(h in n){var d=n[h];if(n.hasOwnProperty(h)&&d!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":a=d;default:o.hasOwnProperty(h)||$t(e,t,h,null,o,d)}}for(var p in o){var h=o[p];if(d=n[p],o.hasOwnProperty(p)&&(h!=null||d!=null))switch(p){case"type":l=h;break;case"name":r=h;break;case"checked":u=h;break;case"defaultChecked":c=h;break;case"value":i=h;break;case"defaultValue":s=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(he(137,t));break;default:h!==d&&$t(e,t,p,h,o,d)}}cm(e,i,s,a,u,c,l,r);return;case"select":h=i=s=p=null;for(l in n)if(a=n[l],n.hasOwnProperty(l)&&a!=null)switch(l){case"value":break;case"multiple":h=a;default:o.hasOwnProperty(l)||$t(e,t,l,null,o,a)}for(r in o)if(l=o[r],a=n[r],o.hasOwnProperty(r)&&(l!=null||a!=null))switch(r){case"value":p=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:l!==a&&$t(e,t,r,l,o,a)}t=s,n=i,o=h,p!=null?Vs(e,!!n,p,!1):!!o!=!!n&&(t!=null?Vs(e,!!n,t,!0):Vs(e,!!n,n?[]:"",!1));return;case"textarea":h=p=null;for(s in n)if(r=n[s],n.hasOwnProperty(s)&&r!=null&&!o.hasOwnProperty(s))switch(s){case"value":break;case"children":break;default:$t(e,t,s,null,o,r)}for(i in o)if(r=o[i],l=n[i],o.hasOwnProperty(i)&&(r!=null||l!=null))switch(i){case"value":p=r;break;case"defaultValue":h=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(he(91));break;default:r!==l&&$t(e,t,i,r,o,l)}y1(e,p,h);return;case"option":for(var g in n)if(p=n[g],n.hasOwnProperty(g)&&p!=null&&!o.hasOwnProperty(g))switch(g){case"selected":e.selected=!1;break;default:$t(e,t,g,null,o,p)}for(a in o)if(p=o[a],h=n[a],o.hasOwnProperty(a)&&p!==h&&(p!=null||h!=null))switch(a){case"selected":e.selected=p&&typeof p!="function"&&typeof p!="symbol";break;default:$t(e,t,a,p,o,h)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var y in n)p=n[y],n.hasOwnProperty(y)&&p!=null&&!o.hasOwnProperty(y)&&$t(e,t,y,null,o,p);for(u in o)if(p=o[u],h=n[u],o.hasOwnProperty(u)&&p!==h&&(p!=null||h!=null))switch(u){case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(he(137,t));break;default:$t(e,t,u,p,o,h)}return;default:if(ty(t)){for(var w in n)p=n[w],n.hasOwnProperty(w)&&p!==void 0&&!o.hasOwnProperty(w)&&Hm(e,t,w,void 0,o,p);for(c in o)p=o[c],h=n[c],!o.hasOwnProperty(c)||p===h||p===void 0&&h===void 0||Hm(e,t,c,p,o,h);return}}for(var m in n)p=n[m],n.hasOwnProperty(m)&&p!=null&&!o.hasOwnProperty(m)&&$t(e,t,m,null,o,p);for(d in o)p=o[d],h=n[d],!o.hasOwnProperty(d)||p===h||p==null&&h==null||$t(e,t,d,p,o,h)}var Nm=null,jm=null;function Ff(e){return e.nodeType===9?e:e.ownerDocument}function xS(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function SE(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Gm(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Cg=null;function e2(){var e=window.event;return e&&e.type==="popstate"?e===Cg?!1:(Cg=e,!0):(Cg=null,!1)}var wE=typeof setTimeout=="function"?setTimeout:void 0,t2=typeof clearTimeout=="function"?clearTimeout:void 0,MS=typeof Promise=="function"?Promise:void 0,n2=typeof queueMicrotask=="function"?queueMicrotask:typeof MS<"u"?function(e){return MS.resolve(null).then(e).catch(o2)}:wE;function o2(e){setTimeout(function(){throw e})}function hi(e){return e==="head"}function ES(e,t){var n=t,o=0,r=0;do{var l=n.nextSibling;if(e.removeChild(n),l&&l.nodeType===8)if(n=l.data,n==="/$"){if(0<o&&8>o){n=o;var i=e.ownerDocument;if(n&1&&Bc(i.documentElement),n&2&&Bc(i.body),n&4)for(n=i.head,Bc(n),i=n.firstChild;i;){var s=i.nextSibling,a=i.nodeName;i[Mu]||a==="SCRIPT"||a==="STYLE"||a==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=s}}if(r===0){e.removeChild(l),iu(t);return}r--}else n==="$"||n==="$?"||n==="$!"?r++:o=n.charCodeAt(0)-48;else o=0;n=l}while(n);iu(t)}function _m(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":_m(n),ey(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function r2(e,t,n,o){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Mu])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(l!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var l=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;if(e=pr(e.nextSibling),e===null)break}return null}function l2(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=pr(e.nextSibling),e===null))return null;return e}function Vm(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function i2(e,t){var n=e.ownerDocument;if(e.data!=="$?"||n.readyState==="complete")t();else{var o=function(){t(),n.removeEventListener("DOMContentLoaded",o)};n.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function pr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}var Um=null;function TS(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}function xE(e,t,n){switch(t=Ff(n),e){case"html":if(e=t.documentElement,!e)throw Error(he(452));return e;case"head":if(e=t.head,!e)throw Error(he(453));return e;case"body":if(e=t.body,!e)throw Error(he(454));return e;default:throw Error(he(451))}}function Bc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ey(e)}var Zo=new Map,PS=new Set;function Bf(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var yl=Et.d;Et.d={f:s2,r:a2,D:c2,C:u2,L:d2,m:f2,X:h2,S:p2,M:g2};function s2(){var e=yl.f(),t=Pp();return e||t}function a2(e){var t=Pa(e);t!==null&&t.tag===5&&t.type==="form"?mM(t):yl.r(e)}var Ra=typeof document>"u"?null:document;function ME(e,t,n){var o=Ra;if(o&&typeof t=="string"&&t){var r=_o(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),PS.has(r)||(PS.add(r),e={rel:e,crossOrigin:n,href:t},o.querySelector(r)===null&&(t=o.createElement("link"),Gn(t,"link",e),In(t),o.head.appendChild(t)))}}function c2(e){yl.D(e),ME("dns-prefetch",e,null)}function u2(e,t){yl.C(e,t),ME("preconnect",e,t)}function d2(e,t,n){yl.L(e,t,n);var o=Ra;if(o&&e&&t){var r='link[rel="preload"][as="'+_o(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+_o(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+_o(n.imageSizes)+'"]')):r+='[href="'+_o(e)+'"]';var l=r;switch(t){case"style":l=da(e);break;case"script":l=ka(e)}Zo.has(l)||(e=_t({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Zo.set(l,e),o.querySelector(r)!==null||t==="style"&&o.querySelector(Du(l))||t==="script"&&o.querySelector(Lu(l))||(t=o.createElement("link"),Gn(t,"link",e),In(t),o.head.appendChild(t)))}}function f2(e,t){yl.m(e,t);var n=Ra;if(n&&e){var o=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+_o(o)+'"][href="'+_o(e)+'"]',l=r;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=ka(e)}if(!Zo.has(l)&&(e=_t({rel:"modulepreload",href:e},t),Zo.set(l,e),n.querySelector(r)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Lu(l)))return}o=n.createElement("link"),Gn(o,"link",e),In(o),n.head.appendChild(o)}}}function p2(e,t,n){yl.S(e,t,n);var o=Ra;if(o&&e){var r=_s(o).hoistableStyles,l=da(e);t=t||"default";var i=r.get(l);if(!i){var s={loading:0,preload:null};if(i=o.querySelector(Du(l)))s.loading=5;else{e=_t({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Zo.get(l))&&Fy(e,n);var a=i=o.createElement("link");In(a),Gn(a,"link",e),a._p=new Promise(function(u,c){a.onload=u,a.onerror=c}),a.addEventListener("load",function(){s.loading|=1}),a.addEventListener("error",function(){s.loading|=2}),s.loading|=4,Kd(i,t,o)}i={type:"stylesheet",instance:i,count:1,state:s},r.set(l,i)}}}function h2(e,t){yl.X(e,t);var n=Ra;if(n&&e){var o=_s(n).hoistableScripts,r=ka(e),l=o.get(r);l||(l=n.querySelector(Lu(r)),l||(e=_t({src:e,async:!0},t),(t=Zo.get(r))&&By(e,t),l=n.createElement("script"),In(l),Gn(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(r,l))}}function g2(e,t){yl.M(e,t);var n=Ra;if(n&&e){var o=_s(n).hoistableScripts,r=ka(e),l=o.get(r);l||(l=n.querySelector(Lu(r)),l||(e=_t({src:e,async:!0,type:"module"},t),(t=Zo.get(r))&&By(e,t),l=n.createElement("script"),In(l),Gn(l,"link",e),n.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(r,l))}}function IS(e,t,n,o){var r=(r=Zl.current)?Bf(r):null;if(!r)throw Error(he(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=da(n.href),n=_s(r).hoistableStyles,o=n.get(t),o||(o={type:"style",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=da(n.href);var l=_s(r).hoistableStyles,i=l.get(e);if(i||(r=r.ownerDocument||r,i={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},l.set(e,i),(l=r.querySelector(Du(e)))&&!l._p&&(i.instance=l,i.state.loading=5),Zo.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Zo.set(e,n),l||m2(r,e,n,i.state))),t&&o===null)throw Error(he(528,""));return i}if(t&&o!==null)throw Error(he(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=ka(n),n=_s(r).hoistableScripts,o=n.get(t),o||(o={type:"script",instance:null,count:0,state:null},n.set(t,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(he(444,e))}}function da(e){return'href="'+_o(e)+'"'}function Du(e){return'link[rel="stylesheet"]['+e+"]"}function EE(e){return _t({},e,{"data-precedence":e.precedence,precedence:null})}function m2(e,t,n,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=1:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=1}),t.addEventListener("error",function(){return o.loading|=2}),Gn(t,"link",n),In(t),e.head.appendChild(t))}function ka(e){return'[src="'+_o(e)+'"]'}function Lu(e){return"script[async]"+e}function OS(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+_o(n.href)+'"]');if(o)return t.instance=o,In(o),o;var r=_t({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),In(o),Gn(o,"style",r),Kd(o,n.precedence,e),t.instance=o;case"stylesheet":r=da(n.href);var l=e.querySelector(Du(r));if(l)return t.state.loading|=4,t.instance=l,In(l),l;o=EE(n),(r=Zo.get(r))&&Fy(o,r),l=(e.ownerDocument||e).createElement("link"),In(l);var i=l;return i._p=new Promise(function(s,a){i.onload=s,i.onerror=a}),Gn(l,"link",o),t.state.loading|=4,Kd(l,n.precedence,e),t.instance=l;case"script":return l=ka(n.src),(r=e.querySelector(Lu(l)))?(t.instance=r,In(r),r):(o=n,(r=Zo.get(l))&&(o=_t({},n),By(o,r)),e=e.ownerDocument||e,r=e.createElement("script"),In(r),Gn(r,"link",o),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(he(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(o=t.instance,t.state.loading|=4,Kd(o,n.precedence,e));return t.instance}function Kd(e,t,n){for(var o=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=o.length?o[o.length-1]:null,l=r,i=0;i<o.length;i++){var s=o[i];if(s.dataset.precedence===t)l=s;else if(l!==r)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Fy(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function By(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Yd=null;function RS(e,t,n){if(Yd===null){var o=new Map,r=Yd=new Map;r.set(n,o)}else r=Yd,o=r.get(n),o||(o=new Map,r.set(n,o));if(o.has(e))return o;for(o.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var l=n[r];if(!(l[Mu]||l[Un]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!=="http://www.w3.org/2000/svg"){var i=l.getAttribute(t)||"";i=e+i;var s=o.get(i);s?s.push(l):o.set(i,[l])}}return o}function kS(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function b2(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function TE(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}var nu=null;function y2(){}function v2(e,t,n){if(nu===null)throw Error(he(475));var o=nu;if(t.type==="stylesheet"&&(typeof n.media!="string"||matchMedia(n.media).matches!==!1)&&!(t.state.loading&4)){if(t.instance===null){var r=da(n.href),l=e.querySelector(Du(r));if(l){e=l._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=Hf.bind(o),e.then(o,o)),t.state.loading|=4,t.instance=l,In(l);return}l=e.ownerDocument||e,n=EE(n),(r=Zo.get(r))&&Fy(n,r),l=l.createElement("link"),In(l);var i=l;i._p=new Promise(function(s,a){i.onload=s,i.onerror=a}),Gn(l,"link",n),t.instance=l}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(t,e),(e=t.state.preload)&&!(t.state.loading&3)&&(o.count++,t=Hf.bind(o),e.addEventListener("load",t),e.addEventListener("error",t))}}function C2(){if(nu===null)throw Error(he(475));var e=nu;return e.stylesheets&&e.count===0&&Wm(e,e.stylesheets),0<e.count?function(t){var n=setTimeout(function(){if(e.stylesheets&&Wm(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(n)}}:null}function Hf(){if(this.count--,this.count===0){if(this.stylesheets)Wm(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Nf=null;function Wm(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Nf=new Map,t.forEach(S2,e),Nf=null,Hf.call(e))}function S2(e,t){if(!(t.state.loading&4)){var n=Nf.get(e);if(n)var o=n.get(null);else{n=new Map,Nf.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<r.length;l++){var i=r[l];(i.nodeName==="LINK"||i.getAttribute("media")!=="not all")&&(n.set(i.dataset.precedence,i),o=i)}o&&n.set(null,o)}r=t.instance,i=r.getAttribute("data-precedence"),l=n.get(i)||o,l===o&&n.set(null,r),n.set(i,r),this.count++,o=Hf.bind(this),r.addEventListener("load",o),r.addEventListener("error",o),l?l.parentNode.insertBefore(r,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var ou={$$typeof:tl,Provider:null,Consumer:null,_currentValue:ki,_currentValue2:ki,_threadCount:0};function w2(e,t,n,o,r,l,i,s){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Gh(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Gh(0),this.hiddenUpdates=Gh(null),this.identifierPrefix=o,this.onUncaughtError=r,this.onCaughtError=l,this.onRecoverableError=i,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=s,this.incompleteTransitions=new Map}function PE(e,t,n,o,r,l,i,s,a,u,c,d){return e=new w2(e,t,n,i,s,a,u,d),t=1,l===!0&&(t|=24),l=yo(3,null,null,t),e.current=l,l.stateNode=e,t=fy(),t.refCount++,e.pooledCache=t,t.refCount++,l.memoizedState={element:o,isDehydrated:n,cache:t},hy(l),e}function IE(e){return e?(e=Ds,e):Ds}function OE(e,t,n,o,r,l){r=IE(r),o.context===null?o.context=r:o.pendingContext=r,o=Jl(t),o.payload={element:n},l=l===void 0?null:l,l!==null&&(o.callback=l),n=ei(e,o,t),n!==null&&(xo(n,e,t),Rc(n,e,t))}function AS(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Hy(e,t){AS(e,t),(e=e.alternate)&&AS(e,t)}function RE(e){if(e.tag===13){var t=Ia(e,67108864);t!==null&&xo(t,e,67108864),Hy(e,67108864)}}var jf=!0;function x2(e,t,n,o){var r=Qe.T;Qe.T=null;var l=Et.p;try{Et.p=2,Ny(e,t,n,o)}finally{Et.p=l,Qe.T=r}}function M2(e,t,n,o){var r=Qe.T;Qe.T=null;var l=Et.p;try{Et.p=8,Ny(e,t,n,o)}finally{Et.p=l,Qe.T=r}}function Ny(e,t,n,o){if(jf){var r=qm(o);if(r===null)vg(e,t,o,Gf,n),$S(e,o);else if(T2(r,e,t,n,o))o.stopPropagation();else if($S(e,o),t&4&&-1<E2.indexOf(e)){for(;r!==null;){var l=Pa(r);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var i=xi(l.pendingLanes);if(i!==0){var s=l;for(s.pendingLanes|=2,s.entangledLanes|=2;i;){var a=1<<31-So(i);s.entanglements[1]|=a,i&=~a}Vr(l),!(It&6)&&(Af=zr()+500,$u(0,!1))}}break;case 13:s=Ia(l,2),s!==null&&xo(s,l,2),Pp(),Hy(l,2)}if(l=qm(o),l===null&&vg(e,t,o,Gf,n),l===r)break;r=l}r!==null&&o.stopPropagation()}else vg(e,t,o,null,n)}}function qm(e){return e=ny(e),jy(e)}var Gf=null;function jy(e){if(Gf=null,e=Is(e),e!==null){var t=Cu(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=t1(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Gf=e,null}function kE(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(uR()){case l1:return 2;case i1:return 8;case mf:case dR:return 32;case s1:return 268435456;default:return 32}default:return 32}}var Km=!1,oi=null,ri=null,li=null,ru=new Map,lu=new Map,_l=[],E2="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function $S(e,t){switch(e){case"focusin":case"focusout":oi=null;break;case"dragenter":case"dragleave":ri=null;break;case"mouseover":case"mouseout":li=null;break;case"pointerover":case"pointerout":ru.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lu.delete(t.pointerId)}}function tc(e,t,n,o,r,l){return e===null||e.nativeEvent!==l?(e={blockedOn:t,domEventName:n,eventSystemFlags:o,nativeEvent:l,targetContainers:[r]},t!==null&&(t=Pa(t),t!==null&&RE(t)),e):(e.eventSystemFlags|=o,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function T2(e,t,n,o,r){switch(t){case"focusin":return oi=tc(oi,e,t,n,o,r),!0;case"dragenter":return ri=tc(ri,e,t,n,o,r),!0;case"mouseover":return li=tc(li,e,t,n,o,r),!0;case"pointerover":var l=r.pointerId;return ru.set(l,tc(ru.get(l)||null,e,t,n,o,r)),!0;case"gotpointercapture":return l=r.pointerId,lu.set(l,tc(lu.get(l)||null,e,t,n,o,r)),!0}return!1}function AE(e){var t=Is(e.target);if(t!==null){var n=Cu(t);if(n!==null){if(t=n.tag,t===13){if(t=t1(n),t!==null){e.blockedOn=t,vR(e.priority,function(){if(n.tag===13){var o=wo();o=Zb(o);var r=Ia(n,o);r!==null&&xo(r,n,o),Hy(n,o)}});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Xd(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=qm(e.nativeEvent);if(n===null){n=e.nativeEvent;var o=new n.constructor(n.type,n);dm=o,n.target.dispatchEvent(o),dm=null}else return t=Pa(n),t!==null&&RE(t),e.blockedOn=n,!1;t.shift()}return!0}function DS(e,t,n){Xd(e)&&n.delete(t)}function P2(){Km=!1,oi!==null&&Xd(oi)&&(oi=null),ri!==null&&Xd(ri)&&(ri=null),li!==null&&Xd(li)&&(li=null),ru.forEach(DS),lu.forEach(DS)}function Cd(e,t){e.blockedOn===t&&(e.blockedOn=null,Km||(Km=!0,xn.unstable_scheduleCallback(xn.unstable_NormalPriority,P2)))}var Sd=null;function LS(e){Sd!==e&&(Sd=e,xn.unstable_scheduleCallback(xn.unstable_NormalPriority,function(){Sd===e&&(Sd=null);for(var t=0;t<e.length;t+=3){var n=e[t],o=e[t+1],r=e[t+2];if(typeof o!="function"){if(jy(o||n)===null)continue;break}var l=Pa(n);l!==null&&(e.splice(t,3),t-=3,Pm(l,{pending:!0,data:r,method:n.method,action:o},o,r))}}))}function iu(e){function t(a){return Cd(a,e)}oi!==null&&Cd(oi,e),ri!==null&&Cd(ri,e),li!==null&&Cd(li,e),ru.forEach(t),lu.forEach(t);for(var n=0;n<_l.length;n++){var o=_l[n];o.blockedOn===e&&(o.blockedOn=null)}for(;0<_l.length&&(n=_l[0],n.blockedOn===null);)AE(n),n.blockedOn===null&&_l.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(o=0;o<n.length;o+=3){var r=n[o],l=n[o+1],i=r[co]||null;if(typeof l=="function")i||LS(n);else if(i){var s=null;if(l&&l.hasAttribute("formAction")){if(r=l,i=l[co]||null)s=i.formAction;else if(jy(r)!==null)continue}else s=i.action;typeof s=="function"?n[o+1]=s:(n.splice(o,3),o-=3),LS(n)}}}function Gy(e){this._internalRoot=e}kp.prototype.render=Gy.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(he(409));var n=t.current,o=wo();OE(n,o,e,t,null,null)};kp.prototype.unmount=Gy.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;OE(e.current,2,null,e,null,null),Pp(),t[Ta]=null}};function kp(e){this._internalRoot=e}kp.prototype.unstable_scheduleHydration=function(e){if(e){var t=f1();e={blockedOn:null,target:e,priority:t};for(var n=0;n<_l.length&&t!==0&&t<_l[n].priority;n++);_l.splice(n,0,e),n===0&&AE(e)}};var zS=Jx.version;if(zS!=="19.1.0")throw Error(he(527,zS,"19.1.0"));Et.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(he(188)):(e=Object.keys(e).join(","),Error(he(268,e)));return e=oR(t),e=e!==null?n1(e):null,e=e===null?null:e.stateNode,e};var I2={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:Qe,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var wd=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!wd.isDisabled&&wd.supportsFiber)try{Su=wd.inject(I2),Co=wd}catch{}}hp.createRoot=function(e,t){if(!e1(e))throw Error(he(299));var n=!1,o="",r=PM,l=IM,i=OM,s=null;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(s=t.unstable_transitionCallbacks)),t=PE(e,1,!1,null,null,n,o,r,l,i,s,null),e[Ta]=t.current,zy(e),new Gy(t)};hp.hydrateRoot=function(e,t,n){if(!e1(e))throw Error(he(299));var o=!1,r="",l=PM,i=IM,s=OM,a=null,u=null;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(l=n.onUncaughtError),n.onCaughtError!==void 0&&(i=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.unstable_transitionCallbacks!==void 0&&(a=n.unstable_transitionCallbacks),n.formState!==void 0&&(u=n.formState)),t=PE(e,1,!0,t,n??null,o,r,l,i,s,a,u),t.context=IE(null),n=t.current,o=wo(),o=Zb(o),r=Jl(o),r.callback=null,ei(n,r,o),n=o,t.current.lanes=n,xu(t,n),Vr(t),e[Ta]=t.current,zy(e),new kp(t)};hp.version="19.1.0";function $E(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE($E)}catch(e){console.error(e)}}$E(),Nx.exports=hp;var O2=Nx.exports;const R2=fp(O2);function DE(e,t){return function(){return e.apply(t,arguments)}}const{toString:k2}=Object.prototype,{getPrototypeOf:_y}=Object,Ap=(e=>t=>{const n=k2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ur=e=>(e=e.toLowerCase(),t=>Ap(t)===e),$p=e=>t=>typeof t===e,{isArray:Aa}=Array,su=$p("undefined");function A2(e){return e!==null&&!su(e)&&e.constructor!==null&&!su(e.constructor)&&Ko(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const LE=Ur("ArrayBuffer");function $2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&LE(e.buffer),t}const D2=$p("string"),Ko=$p("function"),zE=$p("number"),Dp=e=>e!==null&&typeof e=="object",L2=e=>e===!0||e===!1,Qd=e=>{if(Ap(e)!=="object")return!1;const t=_y(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},z2=Ur("Date"),F2=Ur("File"),B2=Ur("Blob"),H2=Ur("FileList"),N2=e=>Dp(e)&&Ko(e.pipe),j2=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Ko(e.append)&&((t=Ap(e))==="formdata"||t==="object"&&Ko(e.toString)&&e.toString()==="[object FormData]"))},G2=Ur("URLSearchParams"),_2=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function zu(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let o,r;if(typeof e!="object"&&(e=[e]),Aa(e))for(o=0,r=e.length;o<r;o++)t.call(null,e[o],o,e);else{const l=n?Object.getOwnPropertyNames(e):Object.keys(e),i=l.length;let s;for(o=0;o<i;o++)s=l[o],t.call(null,e[s],s,e)}}function FE(e,t){t=t.toLowerCase();const n=Object.keys(e);let o=n.length,r;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const BE=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),HE=e=>!su(e)&&e!==BE;function Ym(){const{caseless:e}=HE(this)&&this||{},t={},n=(o,r)=>{const l=e&&FE(t,r)||r;Qd(t[l])&&Qd(o)?t[l]=Ym(t[l],o):Qd(o)?t[l]=Ym({},o):Aa(o)?t[l]=o.slice():t[l]=o};for(let o=0,r=arguments.length;o<r;o++)arguments[o]&&zu(arguments[o],n);return t}const V2=(e,t,n,{allOwnKeys:o}={})=>(zu(t,(r,l)=>{n&&Ko(r)?e[l]=DE(r,n):e[l]=r},{allOwnKeys:o}),e),U2=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),W2=(e,t,n,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},q2=(e,t,n,o)=>{let r,l,i;const s={};if(t=t||{},e==null)return t;do{for(r=Object.getOwnPropertyNames(e),l=r.length;l-- >0;)i=r[l],(!o||o(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&_y(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},K2=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const o=e.indexOf(t,n);return o!==-1&&o===n},Y2=e=>{if(!e)return null;if(Aa(e))return e;let t=e.length;if(!zE(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},X2=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&_y(Uint8Array)),Q2=(e,t)=>{const o=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=o.next())&&!r.done;){const l=r.value;t.call(e,l[0],l[1])}},Z2=(e,t)=>{let n;const o=[];for(;(n=e.exec(t))!==null;)o.push(n);return o},J2=Ur("HTMLFormElement"),eA=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,o,r){return o.toUpperCase()+r}),FS=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tA=Ur("RegExp"),NE=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),o={};zu(n,(r,l)=>{let i;(i=t(r,l,e))!==!1&&(o[l]=i||r)}),Object.defineProperties(e,o)},nA=e=>{NE(e,(t,n)=>{if(Ko(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const o=e[n];if(Ko(o)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},oA=(e,t)=>{const n={},o=r=>{r.forEach(l=>{n[l]=!0})};return Aa(e)?o(e):o(String(e).split(t)),n},rA=()=>{},lA=(e,t)=>(e=+e,Number.isFinite(e)?e:t),Sg="abcdefghijklmnopqrstuvwxyz",BS="0123456789",jE={DIGIT:BS,ALPHA:Sg,ALPHA_DIGIT:Sg+Sg.toUpperCase()+BS},iA=(e=16,t=jE.ALPHA_DIGIT)=>{let n="";const{length:o}=t;for(;e--;)n+=t[Math.random()*o|0];return n};function sA(e){return!!(e&&Ko(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const aA=e=>{const t=new Array(10),n=(o,r)=>{if(Dp(o)){if(t.indexOf(o)>=0)return;if(!("toJSON"in o)){t[r]=o;const l=Aa(o)?[]:{};return zu(o,(i,s)=>{const a=n(i,r+1);!su(a)&&(l[s]=a)}),t[r]=void 0,l}}return o};return n(e,0)},cA=Ur("AsyncFunction"),uA=e=>e&&(Dp(e)||Ko(e))&&Ko(e.then)&&Ko(e.catch),fe={isArray:Aa,isArrayBuffer:LE,isBuffer:A2,isFormData:j2,isArrayBufferView:$2,isString:D2,isNumber:zE,isBoolean:L2,isObject:Dp,isPlainObject:Qd,isUndefined:su,isDate:z2,isFile:F2,isBlob:B2,isRegExp:tA,isFunction:Ko,isStream:N2,isURLSearchParams:G2,isTypedArray:X2,isFileList:H2,forEach:zu,merge:Ym,extend:V2,trim:_2,stripBOM:U2,inherits:W2,toFlatObject:q2,kindOf:Ap,kindOfTest:Ur,endsWith:K2,toArray:Y2,forEachEntry:Q2,matchAll:Z2,isHTMLForm:J2,hasOwnProperty:FS,hasOwnProp:FS,reduceDescriptors:NE,freezeMethods:nA,toObjectSet:oA,toCamelCase:eA,noop:rA,toFiniteNumber:lA,findKey:FE,global:BE,isContextDefined:HE,ALPHABET:jE,generateString:iA,isSpecCompliantForm:sA,toJSONObject:aA,isAsyncFn:cA,isThenable:uA};function gt(e,t,n,o,r){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),r&&(this.response=r)}fe.inherits(gt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:fe.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const GE=gt.prototype,_E={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{_E[e]={value:e}});Object.defineProperties(gt,_E);Object.defineProperty(GE,"isAxiosError",{value:!0});gt.from=(e,t,n,o,r,l)=>{const i=Object.create(GE);return fe.toFlatObject(e,i,function(a){return a!==Error.prototype},s=>s!=="isAxiosError"),gt.call(i,e.message,t,n,o,r),i.cause=e,i.name=e.name,l&&Object.assign(i,l),i};const dA=null;function Xm(e){return fe.isPlainObject(e)||fe.isArray(e)}function VE(e){return fe.endsWith(e,"[]")?e.slice(0,-2):e}function HS(e,t,n){return e?e.concat(t).map(function(r,l){return r=VE(r),!n&&l?"["+r+"]":r}).join(n?".":""):t}function fA(e){return fe.isArray(e)&&!e.some(Xm)}const pA=fe.toFlatObject(fe,{},null,function(t){return/^is[A-Z]/.test(t)});function Lp(e,t,n){if(!fe.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=fe.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!fe.isUndefined(w[y])});const o=n.metaTokens,r=n.visitor||c,l=n.dots,i=n.indexes,a=(n.Blob||typeof Blob<"u"&&Blob)&&fe.isSpecCompliantForm(t);if(!fe.isFunction(r))throw new TypeError("visitor must be a function");function u(g){if(g===null)return"";if(fe.isDate(g))return g.toISOString();if(!a&&fe.isBlob(g))throw new gt("Blob is not supported. Use a Buffer instead.");return fe.isArrayBuffer(g)||fe.isTypedArray(g)?a&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,y,w){let m=g;if(g&&!w&&typeof g=="object"){if(fe.endsWith(y,"{}"))y=o?y:y.slice(0,-2),g=JSON.stringify(g);else if(fe.isArray(g)&&fA(g)||(fe.isFileList(g)||fe.endsWith(y,"[]"))&&(m=fe.toArray(g)))return y=VE(y),m.forEach(function(v,S){!(fe.isUndefined(v)||v===null)&&t.append(i===!0?HS([y],S,l):i===null?y:y+"[]",u(v))}),!1}return Xm(g)?!0:(t.append(HS(w,y,l),u(g)),!1)}const d=[],p=Object.assign(pA,{defaultVisitor:c,convertValue:u,isVisitable:Xm});function h(g,y){if(!fe.isUndefined(g)){if(d.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));d.push(g),fe.forEach(g,function(m,b){(!(fe.isUndefined(m)||m===null)&&r.call(t,m,fe.isString(b)?b.trim():b,y,p))===!0&&h(m,y?y.concat(b):[b])}),d.pop()}}if(!fe.isObject(e))throw new TypeError("data must be an object");return h(e),t}function NS(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return t[o]})}function Vy(e,t){this._pairs=[],e&&Lp(e,this,t)}const UE=Vy.prototype;UE.append=function(t,n){this._pairs.push([t,n])};UE.toString=function(t){const n=t?function(o){return t.call(this,o,NS)}:NS;return this._pairs.map(function(r){return n(r[0])+"="+n(r[1])},"").join("&")};function hA(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function WE(e,t,n){if(!t)return e;const o=n&&n.encode||hA,r=n&&n.serialize;let l;if(r?l=r(t,n):l=fe.isURLSearchParams(t)?t.toString():new Vy(t,n).toString(o),l){const i=e.indexOf("#");i!==-1&&(e=e.slice(0,i)),e+=(e.indexOf("?")===-1?"?":"&")+l}return e}class gA{constructor(){this.handlers=[]}use(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){fe.forEach(this.handlers,function(o){o!==null&&t(o)})}}const jS=gA,qE={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mA=typeof URLSearchParams<"u"?URLSearchParams:Vy,bA=typeof FormData<"u"?FormData:null,yA=typeof Blob<"u"?Blob:null,vA=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),CA=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ar={isBrowser:!0,classes:{URLSearchParams:mA,FormData:bA,Blob:yA},isStandardBrowserEnv:vA,isStandardBrowserWebWorkerEnv:CA,protocols:["http","https","file","blob","url","data"]};function SA(e,t){return Lp(e,new Ar.classes.URLSearchParams,Object.assign({visitor:function(n,o,r,l){return Ar.isNode&&fe.isBuffer(n)?(this.append(o,n.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},t))}function wA(e){return fe.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function xA(e){const t={},n=Object.keys(e);let o;const r=n.length;let l;for(o=0;o<r;o++)l=n[o],t[l]=e[l];return t}function KE(e){function t(n,o,r,l){let i=n[l++];const s=Number.isFinite(+i),a=l>=n.length;return i=!i&&fe.isArray(r)?r.length:i,a?(fe.hasOwnProp(r,i)?r[i]=[r[i],o]:r[i]=o,!s):((!r[i]||!fe.isObject(r[i]))&&(r[i]=[]),t(n,o,r[i],l)&&fe.isArray(r[i])&&(r[i]=xA(r[i])),!s)}if(fe.isFormData(e)&&fe.isFunction(e.entries)){const n={};return fe.forEachEntry(e,(o,r)=>{t(wA(o),r,n,0)}),n}return null}function MA(e,t,n){if(fe.isString(e))try{return(t||JSON.parse)(e),fe.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}const Uy={transitional:qE,adapter:["xhr","http"],transformRequest:[function(t,n){const o=n.getContentType()||"",r=o.indexOf("application/json")>-1,l=fe.isObject(t);if(l&&fe.isHTMLForm(t)&&(t=new FormData(t)),fe.isFormData(t))return r&&r?JSON.stringify(KE(t)):t;if(fe.isArrayBuffer(t)||fe.isBuffer(t)||fe.isStream(t)||fe.isFile(t)||fe.isBlob(t))return t;if(fe.isArrayBufferView(t))return t.buffer;if(fe.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(l){if(o.indexOf("application/x-www-form-urlencoded")>-1)return SA(t,this.formSerializer).toString();if((s=fe.isFileList(t))||o.indexOf("multipart/form-data")>-1){const a=this.env&&this.env.FormData;return Lp(s?{"files[]":t}:t,a&&new a,this.formSerializer)}}return l||r?(n.setContentType("application/json",!1),MA(t)):t}],transformResponse:[function(t){const n=this.transitional||Uy.transitional,o=n&&n.forcedJSONParsing,r=this.responseType==="json";if(t&&fe.isString(t)&&(o&&!this.responseType||r)){const i=!(n&&n.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(s){if(i)throw s.name==="SyntaxError"?gt.from(s,gt.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ar.classes.FormData,Blob:Ar.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};fe.forEach(["delete","get","head","post","put","patch"],e=>{Uy.headers[e]={}});const Wy=Uy,EA=fe.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),TA=e=>{const t={};let n,o,r;return e&&e.split(` 50 `).forEach(function(i){r=i.indexOf(":"),n=i.substring(0,r).trim().toLowerCase(),o=i.substring(r+1).trim(),!(!n||t[n]&&EA[n])&&(n==="set-cookie"?t[n]?t[n].push(o):t[n]=[o]:t[n]=t[n]?t[n]+", "+o:o)}),t},GS=Symbol("internals");function nc(e){return e&&String(e).trim().toLowerCase()}function Zd(e){return e===!1||e==null?e:fe.isArray(e)?e.map(Zd):String(e)}function PA(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=n.exec(e);)t[o[1]]=o[2];return t}const IA=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function wg(e,t,n,o,r){if(fe.isFunction(o))return o.call(this,t,n);if(r&&(t=n),!!fe.isString(t)){if(fe.isString(o))return t.indexOf(o)!==-1;if(fe.isRegExp(o))return o.test(t)}}function OA(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,o)=>n.toUpperCase()+o)}function RA(e,t){const n=fe.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+n,{value:function(r,l,i){return this[o].call(this,t,r,l,i)},configurable:!0})})}class zp{constructor(t){t&&this.set(t)}set(t,n,o){const r=this;function l(s,a,u){const c=nc(a);if(!c)throw new Error("header name must be a non-empty string");const d=fe.findKey(r,c);(!d||r[d]===void 0||u===!0||u===void 0&&r[d]!==!1)&&(r[d||a]=Zd(s))}const i=(s,a)=>fe.forEach(s,(u,c)=>l(u,c,a));return fe.isPlainObject(t)||t instanceof this.constructor?i(t,n):fe.isString(t)&&(t=t.trim())&&!IA(t)?i(TA(t),n):t!=null&&l(n,t,o),this}get(t,n){if(t=nc(t),t){const o=fe.findKey(this,t);if(o){const r=this[o];if(!n)return r;if(n===!0)return PA(r);if(fe.isFunction(n))return n.call(this,r,o);if(fe.isRegExp(n))return n.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=nc(t),t){const o=fe.findKey(this,t);return!!(o&&this[o]!==void 0&&(!n||wg(this,this[o],o,n)))}return!1}delete(t,n){const o=this;let r=!1;function l(i){if(i=nc(i),i){const s=fe.findKey(o,i);s&&(!n||wg(o,o[s],s,n))&&(delete o[s],r=!0)}}return fe.isArray(t)?t.forEach(l):l(t),r}clear(t){const n=Object.keys(this);let o=n.length,r=!1;for(;o--;){const l=n[o];(!t||wg(this,this[l],l,t,!0))&&(delete this[l],r=!0)}return r}normalize(t){const n=this,o={};return fe.forEach(this,(r,l)=>{const i=fe.findKey(o,l);if(i){n[i]=Zd(r),delete n[l];return}const s=t?OA(l):String(l).trim();s!==l&&delete n[l],n[s]=Zd(r),o[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return fe.forEach(this,(o,r)=>{o!=null&&o!==!1&&(n[r]=t&&fe.isArray(o)?o.join(", "):o)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` 51 `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const o=new this(t);return n.forEach(r=>o.set(r)),o}static accessor(t){const o=(this[GS]=this[GS]={accessors:{}}).accessors,r=this.prototype;function l(i){const s=nc(i);o[s]||(RA(r,i),o[s]=!0)}return fe.isArray(t)?t.forEach(l):l(t),this}}zp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);fe.reduceDescriptors(zp.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(o){this[n]=o}}});fe.freezeMethods(zp);const cl=zp;function xg(e,t){const n=this||Wy,o=t||n,r=cl.from(o.headers);let l=o.data;return fe.forEach(e,function(s){l=s.call(n,l,r.normalize(),t?t.status:void 0)}),r.normalize(),l}function YE(e){return!!(e&&e.__CANCEL__)}function Fu(e,t,n){gt.call(this,e??"canceled",gt.ERR_CANCELED,t,n),this.name="CanceledError"}fe.inherits(Fu,gt,{__CANCEL__:!0});function kA(e,t,n){const o=n.config.validateStatus;!n.status||!o||o(n.status)?e(n):t(new gt("Request failed with status code "+n.status,[gt.ERR_BAD_REQUEST,gt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const AA=Ar.isStandardBrowserEnv?function(){return{write:function(n,o,r,l,i,s){const a=[];a.push(n+"="+encodeURIComponent(o)),fe.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),fe.isString(l)&&a.push("path="+l),fe.isString(i)&&a.push("domain="+i),s===!0&&a.push("secure"),document.cookie=a.join("; ")},read:function(n){const o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function $A(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function DA(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}function XE(e,t){return e&&!$A(t)?DA(e,t):t}const LA=Ar.isStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let o;function r(l){let i=l;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return o=r(window.location.href),function(i){const s=fe.isString(i)?r(i):i;return s.protocol===o.protocol&&s.host===o.host}}():function(){return function(){return!0}}();function zA(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function FA(e,t){e=e||10;const n=new Array(e),o=new Array(e);let r=0,l=0,i;return t=t!==void 0?t:1e3,function(a){const u=Date.now(),c=o[l];i||(i=u),n[r]=a,o[r]=u;let d=l,p=0;for(;d!==r;)p+=n[d++],d=d%e;if(r=(r+1)%e,r===l&&(l=(l+1)%e),u-i<t)return;const h=c&&u-c;return h?Math.round(p*1e3/h):void 0}}function _S(e,t){let n=0;const o=FA(50,250);return r=>{const l=r.loaded,i=r.lengthComputable?r.total:void 0,s=l-n,a=o(s),u=l<=i;n=l;const c={loaded:l,total:i,progress:i?l/i:void 0,bytes:s,rate:a||void 0,estimated:a&&i&&u?(i-l)/a:void 0,event:r};c[t?"download":"upload"]=!0,e(c)}}const BA=typeof XMLHttpRequest<"u",HA=BA&&function(e){return new Promise(function(n,o){let r=e.data;const l=cl.from(e.headers).normalize(),i=e.responseType;let s;function a(){e.cancelToken&&e.cancelToken.unsubscribe(s),e.signal&&e.signal.removeEventListener("abort",s)}let u;fe.isFormData(r)&&(Ar.isStandardBrowserEnv||Ar.isStandardBrowserWebWorkerEnv?l.setContentType(!1):l.getContentType(/^\s*multipart\/form-data/)?fe.isString(u=l.getContentType())&&l.setContentType(u.replace(/^\s*(multipart\/form-data);+/,"$1")):l.setContentType("multipart/form-data"));let c=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",y=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";l.set("Authorization","Basic "+btoa(g+":"+y))}const d=XE(e.baseURL,e.url);c.open(e.method.toUpperCase(),WE(d,e.params,e.paramsSerializer),!0),c.timeout=e.timeout;function p(){if(!c)return;const g=cl.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),w={data:!i||i==="text"||i==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:g,config:e,request:c};kA(function(b){n(b),a()},function(b){o(b),a()},w),c=null}if("onloadend"in c?c.onloadend=p:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(p)},c.onabort=function(){c&&(o(new gt("Request aborted",gt.ECONNABORTED,e,c)),c=null)},c.onerror=function(){o(new gt("Network Error",gt.ERR_NETWORK,e,c)),c=null},c.ontimeout=function(){let y=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const w=e.transitional||qE;e.timeoutErrorMessage&&(y=e.timeoutErrorMessage),o(new gt(y,w.clarifyTimeoutError?gt.ETIMEDOUT:gt.ECONNABORTED,e,c)),c=null},Ar.isStandardBrowserEnv){const g=LA(d)&&e.xsrfCookieName&&AA.read(e.xsrfCookieName);g&&l.set(e.xsrfHeaderName,g)}r===void 0&&l.setContentType(null),"setRequestHeader"in c&&fe.forEach(l.toJSON(),function(y,w){c.setRequestHeader(w,y)}),fe.isUndefined(e.withCredentials)||(c.withCredentials=!!e.withCredentials),i&&i!=="json"&&(c.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&c.addEventListener("progress",_S(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",_S(e.onUploadProgress)),(e.cancelToken||e.signal)&&(s=g=>{c&&(o(!g||g.type?new Fu(null,e,c):g),c.abort(),c=null)},e.cancelToken&&e.cancelToken.subscribe(s),e.signal&&(e.signal.aborted?s():e.signal.addEventListener("abort",s)));const h=zA(d);if(h&&Ar.protocols.indexOf(h)===-1){o(new gt("Unsupported protocol "+h+":",gt.ERR_BAD_REQUEST,e));return}c.send(r||null)})},Qm={http:dA,xhr:HA};fe.forEach(Qm,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const VS=e=>`- ${e}`,NA=e=>fe.isFunction(e)||e===null||e===!1,QE={getAdapter:e=>{e=fe.isArray(e)?e:[e];const{length:t}=e;let n,o;const r={};for(let l=0;l<t;l++){n=e[l];let i;if(o=n,!NA(n)&&(o=Qm[(i=String(n)).toLowerCase()],o===void 0))throw new gt(`Unknown adapter '${i}'`);if(o)break;r[i||"#"+l]=o}if(!o){const l=Object.entries(r).map(([s,a])=>`adapter ${s} `+(a===!1?"is not supported by the environment":"is not available in the build"));let i=t?l.length>1?`since : 52 `+l.map(VS).join(` 53 `):" "+VS(l[0]):"as no adapter specified";throw new gt("There is no suitable adapter to dispatch the request "+i,"ERR_NOT_SUPPORT")}return o},adapters:Qm};function Mg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fu(null,e)}function US(e){return Mg(e),e.headers=cl.from(e.headers),e.data=xg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),QE.getAdapter(e.adapter||Wy.adapter)(e).then(function(o){return Mg(e),o.data=xg.call(e,e.transformResponse,o),o.headers=cl.from(o.headers),o},function(o){return YE(o)||(Mg(e),o&&o.response&&(o.response.data=xg.call(e,e.transformResponse,o.response),o.response.headers=cl.from(o.response.headers))),Promise.reject(o)})}const WS=e=>e instanceof cl?e.toJSON():e;function fa(e,t){t=t||{};const n={};function o(u,c,d){return fe.isPlainObject(u)&&fe.isPlainObject(c)?fe.merge.call({caseless:d},u,c):fe.isPlainObject(c)?fe.merge({},c):fe.isArray(c)?c.slice():c}function r(u,c,d){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return o(void 0,u,d)}else return o(u,c,d)}function l(u,c){if(!fe.isUndefined(c))return o(void 0,c)}function i(u,c){if(fe.isUndefined(c)){if(!fe.isUndefined(u))return o(void 0,u)}else return o(void 0,c)}function s(u,c,d){if(d in t)return o(u,c);if(d in e)return o(void 0,u)}const a={url:l,method:l,data:l,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(u,c)=>r(WS(u),WS(c),!0)};return fe.forEach(Object.keys(Object.assign({},e,t)),function(c){const d=a[c]||r,p=d(e[c],t[c],c);fe.isUndefined(p)&&d!==s||(n[c]=p)}),n}const ZE="1.6.0",qy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qy[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});const qS={};qy.transitional=function(t,n,o){function r(l,i){return"[Axios v"+ZE+"] Transitional option '"+l+"'"+i+(o?". "+o:"")}return(l,i,s)=>{if(t===!1)throw new gt(r(i," has been removed"+(n?" in "+n:"")),gt.ERR_DEPRECATED);return n&&!qS[i]&&(qS[i]=!0,console.warn(r(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(l,i,s):!0}};function jA(e,t,n){if(typeof e!="object")throw new gt("options must be an object",gt.ERR_BAD_OPTION_VALUE);const o=Object.keys(e);let r=o.length;for(;r-- >0;){const l=o[r],i=t[l];if(i){const s=e[l],a=s===void 0||i(s,l,e);if(a!==!0)throw new gt("option "+l+" must be "+a,gt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new gt("Unknown option "+l,gt.ERR_BAD_OPTION)}}const Zm={assertOptions:jA,validators:qy},Rl=Zm.validators;class _f{constructor(t){this.defaults=t,this.interceptors={request:new jS,response:new jS}}request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=fa(this.defaults,n);const{transitional:o,paramsSerializer:r,headers:l}=n;o!==void 0&&Zm.assertOptions(o,{silentJSONParsing:Rl.transitional(Rl.boolean),forcedJSONParsing:Rl.transitional(Rl.boolean),clarifyTimeoutError:Rl.transitional(Rl.boolean)},!1),r!=null&&(fe.isFunction(r)?n.paramsSerializer={serialize:r}:Zm.assertOptions(r,{encode:Rl.function,serialize:Rl.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=l&&fe.merge(l.common,l[n.method]);l&&fe.forEach(["delete","get","head","post","put","patch","common"],g=>{delete l[g]}),n.headers=cl.concat(i,l);const s=[];let a=!0;this.interceptors.request.forEach(function(y){typeof y.runWhen=="function"&&y.runWhen(n)===!1||(a=a&&y.synchronous,s.unshift(y.fulfilled,y.rejected))});const u=[];this.interceptors.response.forEach(function(y){u.push(y.fulfilled,y.rejected)});let c,d=0,p;if(!a){const g=[US.bind(this),void 0];for(g.unshift.apply(g,s),g.push.apply(g,u),p=g.length,c=Promise.resolve(n);d<p;)c=c.then(g[d++],g[d++]);return c}p=s.length;let h=n;for(d=0;d<p;){const g=s[d++],y=s[d++];try{h=g(h)}catch(w){y.call(this,w);break}}try{c=US.call(this,h)}catch(g){return Promise.reject(g)}for(d=0,p=u.length;d<p;)c=c.then(u[d++],u[d++]);return c}getUri(t){t=fa(this.defaults,t);const n=XE(t.baseURL,t.url);return WE(n,t.params,t.paramsSerializer)}}fe.forEach(["delete","get","head","options"],function(t){_f.prototype[t]=function(n,o){return this.request(fa(o||{},{method:t,url:n,data:(o||{}).data}))}});fe.forEach(["post","put","patch"],function(t){function n(o){return function(l,i,s){return this.request(fa(s||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:l,data:i}))}}_f.prototype[t]=n(),_f.prototype[t+"Form"]=n(!0)});const Jd=_f;class Ky{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(l){n=l});const o=this;this.promise.then(r=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](r);o._listeners=null}),this.promise.then=r=>{let l;const i=new Promise(s=>{o.subscribe(s),l=s}).then(r);return i.cancel=function(){o.unsubscribe(l)},i},t(function(l,i,s){o.reason||(o.reason=new Fu(l,i,s),n(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Ky(function(r){t=r}),cancel:t}}}const GA=Ky;function _A(e){return function(n){return e.apply(null,n)}}function VA(e){return fe.isObject(e)&&e.isAxiosError===!0}const Jm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Jm).forEach(([e,t])=>{Jm[t]=e});const UA=Jm;function JE(e){const t=new Jd(e),n=DE(Jd.prototype.request,t);return fe.extend(n,Jd.prototype,t,{allOwnKeys:!0}),fe.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return JE(fa(e,r))},n}const mn=JE(Wy);mn.Axios=Jd;mn.CanceledError=Fu;mn.CancelToken=GA;mn.isCancel=YE;mn.VERSION=ZE;mn.toFormData=Lp;mn.AxiosError=gt;mn.Cancel=mn.CanceledError;mn.all=function(t){return Promise.all(t)};mn.spread=_A;mn.isAxiosError=VA;mn.mergeConfig=fa;mn.AxiosHeaders=cl;mn.formToJSON=e=>KE(fe.isHTMLForm(e)?new FormData(e):e);mn.getAdapter=QE.getAdapter;mn.HttpStatusCode=UA;mn.default=mn;const WA=mn,qA={black:"#000",white:"#fff"},au=qA,KA={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},as=KA,YA={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},cs=YA,XA={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},us=XA,QA={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ds=QA,ZA={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},fs=ZA,JA={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},oc=JA,e$={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"},t$=e$;function gl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Br="$$material";function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},O.apply(null,arguments)}var n$=!1;function o$(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function r$(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var l$=function(){function e(n){var o=this;this._insertTag=function(r){var l;o.tags.length===0?o.insertionPoint?l=o.insertionPoint.nextSibling:o.prepend?l=o.container.firstChild:l=o.before:l=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(r,l),o.tags.push(r)},this.isSpeedy=n.speedy===void 0?!n$:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(r$(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var l=o$(r);try{l.insertRule(o,l.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var r;return(r=o.parentNode)==null?void 0:r.removeChild(o)}),this.tags=[],this.ctr=0},e}(),Vn="-ms-",Vf="-moz-",St="-webkit-",eT="comm",Yy="rule",Xy="decl",i$="@import",tT="@keyframes",s$="@layer",a$=Math.abs,Fp=String.fromCharCode,c$=Object.assign;function u$(e,t){return Bn(e,0)^45?(((t<<2^Bn(e,0))<<2^Bn(e,1))<<2^Bn(e,2))<<2^Bn(e,3):0}function nT(e){return e.trim()}function d$(e,t){return(e=t.exec(e))?e[0]:e}function wt(e,t,n){return e.replace(t,n)}function eb(e,t){return e.indexOf(t)}function Bn(e,t){return e.charCodeAt(t)|0}function cu(e,t,n){return e.slice(t,n)}function Tr(e){return e.length}function Qy(e){return e.length}function xd(e,t){return t.push(e),e}function f$(e,t){return e.map(t).join("")}var Bp=1,pa=1,oT=0,uo=0,hn=0,$a="";function Hp(e,t,n,o,r,l,i){return{value:e,root:t,parent:n,type:o,props:r,children:l,line:Bp,column:pa,length:i,return:""}}function rc(e,t){return c$(Hp("",null,null,"",null,null,0),e,{length:-e.length},t)}function p$(){return hn}function h$(){return hn=uo>0?Bn($a,--uo):0,pa--,hn===10&&(pa=1,Bp--),hn}function Mo(){return hn=uo<oT?Bn($a,uo++):0,pa++,hn===10&&(pa=1,Bp++),hn}function Hr(){return Bn($a,uo)}function ef(){return uo}function Bu(e,t){return cu($a,e,t)}function uu(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function rT(e){return Bp=pa=1,oT=Tr($a=e),uo=0,[]}function lT(e){return $a="",e}function tf(e){return nT(Bu(uo-1,tb(e===91?e+2:e===40?e+1:e)))}function g$(e){for(;(hn=Hr())&&hn<33;)Mo();return uu(e)>2||uu(hn)>3?"":" "}function m$(e,t){for(;--t&&Mo()&&!(hn<48||hn>102||hn>57&&hn<65||hn>70&&hn<97););return Bu(e,ef()+(t<6&&Hr()==32&&Mo()==32))}function tb(e){for(;Mo();)switch(hn){case e:return uo;case 34:case 39:e!==34&&e!==39&&tb(hn);break;case 40:e===41&&tb(e);break;case 92:Mo();break}return uo}function b$(e,t){for(;Mo()&&e+hn!==47+10;)if(e+hn===42+42&&Hr()===47)break;return"/*"+Bu(t,uo-1)+"*"+Fp(e===47?e:Mo())}function y$(e){for(;!uu(Hr());)Mo();return Bu(e,uo)}function v$(e){return lT(nf("",null,null,null,[""],e=rT(e),0,[0],e))}function nf(e,t,n,o,r,l,i,s,a){for(var u=0,c=0,d=i,p=0,h=0,g=0,y=1,w=1,m=1,b=0,v="",S=r,M=l,R=o,k=v;w;)switch(g=b,b=Mo()){case 40:if(g!=108&&Bn(k,d-1)==58){eb(k+=wt(tf(b),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:k+=tf(b);break;case 9:case 10:case 13:case 32:k+=g$(g);break;case 92:k+=m$(ef()-1,7);continue;case 47:switch(Hr()){case 42:case 47:xd(C$(b$(Mo(),ef()),t,n),a);break;default:k+="/"}break;case 123*y:s[u++]=Tr(k)*m;case 125*y:case 59:case 0:switch(b){case 0:case 125:w=0;case 59+c:m==-1&&(k=wt(k,/\f/g,"")),h>0&&Tr(k)-d&&xd(h>32?YS(k+";",o,n,d-1):YS(wt(k," ","")+";",o,n,d-2),a);break;case 59:k+=";";default:if(xd(R=KS(k,t,n,u,c,r,s,v,S=[],M=[],d),l),b===123)if(c===0)nf(k,t,R,R,S,l,d,s,M);else switch(p===99&&Bn(k,3)===110?100:p){case 100:case 108:case 109:case 115:nf(e,R,R,o&&xd(KS(e,R,R,0,0,r,s,v,r,S=[],d),M),r,M,d,s,o?S:M);break;default:nf(k,R,R,R,[""],M,0,s,M)}}u=c=h=0,y=m=1,v=k="",d=i;break;case 58:d=1+Tr(k),h=g;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&h$()==125)continue}switch(k+=Fp(b),b*y){case 38:m=c>0?1:(k+="\f",-1);break;case 44:s[u++]=(Tr(k)-1)*m,m=1;break;case 64:Hr()===45&&(k+=tf(Mo())),p=Hr(),c=d=Tr(v=k+=y$(ef())),b++;break;case 45:g===45&&Tr(k)==2&&(y=0)}}return l}function KS(e,t,n,o,r,l,i,s,a,u,c){for(var d=r-1,p=r===0?l:[""],h=Qy(p),g=0,y=0,w=0;g<o;++g)for(var m=0,b=cu(e,d+1,d=a$(y=i[g])),v=e;m<h;++m)(v=nT(y>0?p[m]+" "+b:wt(b,/&\f/g,p[m])))&&(a[w++]=v);return Hp(e,t,n,r===0?Yy:s,a,u,c)}function C$(e,t,n){return Hp(e,t,n,eT,Fp(p$()),cu(e,2,-2),0)}function YS(e,t,n,o){return Hp(e,t,n,Xy,cu(e,0,o),cu(e,o+1,-1),o)}function Qs(e,t){for(var n="",o=Qy(e),r=0;r<o;r++)n+=t(e[r],r,e,t)||"";return n}function S$(e,t,n,o){switch(e.type){case s$:if(e.children.length)break;case i$:case Xy:return e.return=e.return||e.value;case eT:return"";case tT:return e.return=e.value+"{"+Qs(e.children,o)+"}";case Yy:e.value=e.props.join(",")}return Tr(n=Qs(e.children,o))?e.return=e.value+"{"+n+"}":""}function w$(e){var t=Qy(e);return function(n,o,r,l){for(var i="",s=0;s<t;s++)i+=e[s](n,o,r,l)||"";return i}}function x$(e){return function(t){t.root||(t=t.return)&&e(t)}}function iT(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var M$=function(t,n,o){for(var r=0,l=0;r=l,l=Hr(),r===38&&l===12&&(n[o]=1),!uu(l);)Mo();return Bu(t,uo)},E$=function(t,n){var o=-1,r=44;do switch(uu(r)){case 0:r===38&&Hr()===12&&(n[o]=1),t[o]+=M$(uo-1,n,o);break;case 2:t[o]+=tf(r);break;case 4:if(r===44){t[++o]=Hr()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=Fp(r)}while(r=Mo());return t},T$=function(t,n){return lT(E$(rT(t),n))},XS=new WeakMap,P$=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,r=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!XS.get(o))&&!r){XS.set(t,!0);for(var l=[],i=T$(n,l),s=o.props,a=0,u=0;a<i.length;a++)for(var c=0;c<s.length;c++,u++)t.props[u]=l[a]?i[a].replace(/&\f/g,s[c]):s[c]+" "+i[a]}}},I$=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function sT(e,t){switch(u$(e,t)){case 5103:return St+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return St+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return St+e+Vf+e+Vn+e+e;case 6828:case 4268:return St+e+Vn+e+e;case 6165:return St+e+Vn+"flex-"+e+e;case 5187:return St+e+wt(e,/(\w+).+(:[^]+)/,St+"box-$1$2"+Vn+"flex-$1$2")+e;case 5443:return St+e+Vn+"flex-item-"+wt(e,/flex-|-self/,"")+e;case 4675:return St+e+Vn+"flex-line-pack"+wt(e,/align-content|flex-|-self/,"")+e;case 5548:return St+e+Vn+wt(e,"shrink","negative")+e;case 5292:return St+e+Vn+wt(e,"basis","preferred-size")+e;case 6060:return St+"box-"+wt(e,"-grow","")+St+e+Vn+wt(e,"grow","positive")+e;case 4554:return St+wt(e,/([^-])(transform)/g,"$1"+St+"$2")+e;case 6187:return wt(wt(wt(e,/(zoom-|grab)/,St+"$1"),/(image-set)/,St+"$1"),e,"")+e;case 5495:case 3959:return wt(e,/(image-set\([^]*)/,St+"$1$`$1");case 4968:return wt(wt(e,/(.+:)(flex-)?(.*)/,St+"box-pack:$3"+Vn+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+St+e+e;case 4095:case 3583:case 4068:case 2532:return wt(e,/(.+)-inline(.+)/,St+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tr(e)-1-t>6)switch(Bn(e,t+1)){case 109:if(Bn(e,t+4)!==45)break;case 102:return wt(e,/(.+:)(.+)-([^]+)/,"$1"+St+"$2-$3$1"+Vf+(Bn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~eb(e,"stretch")?sT(wt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Bn(e,t+1)!==115)break;case 6444:switch(Bn(e,Tr(e)-3-(~eb(e,"!important")&&10))){case 107:return wt(e,":",":"+St)+e;case 101:return wt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+St+(Bn(e,14)===45?"inline-":"")+"box$3$1"+St+"$2$3$1"+Vn+"$2box$3")+e}break;case 5936:switch(Bn(e,t+11)){case 114:return St+e+Vn+wt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return St+e+Vn+wt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return St+e+Vn+wt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return St+e+Vn+e+e}return e}var O$=function(t,n,o,r){if(t.length>-1&&!t.return)switch(t.type){case Xy:t.return=sT(t.value,t.length);break;case tT:return Qs([rc(t,{value:wt(t.value,"@","@"+St)})],r);case Yy:if(t.length)return f$(t.props,function(l){switch(d$(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Qs([rc(t,{props:[wt(l,/:(read-\w+)/,":"+Vf+"$1")]})],r);case"::placeholder":return Qs([rc(t,{props:[wt(l,/:(plac\w+)/,":"+St+"input-$1")]}),rc(t,{props:[wt(l,/:(plac\w+)/,":"+Vf+"$1")]}),rc(t,{props:[wt(l,/:(plac\w+)/,Vn+"input-$1")]})],r)}return""})}},R$=[O$],k$=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(y){var w=y.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var r=t.stylisPlugins||R$,l={},i,s=[];i=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var w=y.getAttribute("data-emotion").split(" "),m=1;m<w.length;m++)l[w[m]]=!0;s.push(y)});var a,u=[P$,I$];{var c,d=[S$,x$(function(y){c.insert(y)})],p=w$(u.concat(r,d)),h=function(w){return Qs(v$(w),p)};a=function(w,m,b,v){c=b,h(w?w+"{"+m.styles+"}":m.styles),v&&(g.inserted[m.name]=!0)}}var g={key:n,sheet:new l$({key:n,container:i,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:l,registered:{},insert:a};return g.sheet.hydrate(s),g},aT={exports:{}},Rt={};/** @license React v16.13.1 54 * react-is.production.min.js 55 * 56 * Copyright (c) Facebook, Inc. and its affiliates. 57 * 58 * This source code is licensed under the MIT license found in the 59 * LICENSE file in the root directory of this source tree. 60 */var An=typeof Symbol=="function"&&Symbol.for,Zy=An?Symbol.for("react.element"):60103,Jy=An?Symbol.for("react.portal"):60106,Np=An?Symbol.for("react.fragment"):60107,jp=An?Symbol.for("react.strict_mode"):60108,Gp=An?Symbol.for("react.profiler"):60114,_p=An?Symbol.for("react.provider"):60109,Vp=An?Symbol.for("react.context"):60110,ev=An?Symbol.for("react.async_mode"):60111,Up=An?Symbol.for("react.concurrent_mode"):60111,Wp=An?Symbol.for("react.forward_ref"):60112,qp=An?Symbol.for("react.suspense"):60113,A$=An?Symbol.for("react.suspense_list"):60120,Kp=An?Symbol.for("react.memo"):60115,Yp=An?Symbol.for("react.lazy"):60116,$$=An?Symbol.for("react.block"):60121,D$=An?Symbol.for("react.fundamental"):60117,L$=An?Symbol.for("react.responder"):60118,z$=An?Symbol.for("react.scope"):60119;function Oo(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zy:switch(e=e.type,e){case ev:case Up:case Np:case Gp:case jp:case qp:return e;default:switch(e=e&&e.$$typeof,e){case Vp:case Wp:case Yp:case Kp:case _p:return e;default:return t}}case Jy:return t}}}function cT(e){return Oo(e)===Up}Rt.AsyncMode=ev;Rt.ConcurrentMode=Up;Rt.ContextConsumer=Vp;Rt.ContextProvider=_p;Rt.Element=Zy;Rt.ForwardRef=Wp;Rt.Fragment=Np;Rt.Lazy=Yp;Rt.Memo=Kp;Rt.Portal=Jy;Rt.Profiler=Gp;Rt.StrictMode=jp;Rt.Suspense=qp;Rt.isAsyncMode=function(e){return cT(e)||Oo(e)===ev};Rt.isConcurrentMode=cT;Rt.isContextConsumer=function(e){return Oo(e)===Vp};Rt.isContextProvider=function(e){return Oo(e)===_p};Rt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zy};Rt.isForwardRef=function(e){return Oo(e)===Wp};Rt.isFragment=function(e){return Oo(e)===Np};Rt.isLazy=function(e){return Oo(e)===Yp};Rt.isMemo=function(e){return Oo(e)===Kp};Rt.isPortal=function(e){return Oo(e)===Jy};Rt.isProfiler=function(e){return Oo(e)===Gp};Rt.isStrictMode=function(e){return Oo(e)===jp};Rt.isSuspense=function(e){return Oo(e)===qp};Rt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Np||e===Up||e===Gp||e===jp||e===qp||e===A$||typeof e=="object"&&e!==null&&(e.$$typeof===Yp||e.$$typeof===Kp||e.$$typeof===_p||e.$$typeof===Vp||e.$$typeof===Wp||e.$$typeof===D$||e.$$typeof===L$||e.$$typeof===z$||e.$$typeof===$$)};Rt.typeOf=Oo;aT.exports=Rt;var F$=aT.exports,uT=F$,B$={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},H$={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},dT={};dT[uT.ForwardRef]=B$;dT[uT.Memo]=H$;var N$=!0;function fT(e,t,n){var o="";return n.split(" ").forEach(function(r){e[r]!==void 0?t.push(e[r]+";"):r&&(o+=r+" ")}),o}var tv=function(t,n,o){var r=t.key+"-"+n.name;(o===!1||N$===!1)&&t.registered[r]===void 0&&(t.registered[r]=n.styles)},nv=function(t,n,o){tv(t,n,o);var r=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var l=n;do t.insert(n===l?"."+r:"",l,t.sheet,!0),l=l.next;while(l!==void 0)}};function j$(e){for(var t=0,n,o=0,r=e.length;r>=4;++o,r-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var G$={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},_$=!1,V$=/[A-Z]|^ms/g,U$=/_EMO_([^_]+?)_([^]*?)_EMO_/g,pT=function(t){return t.charCodeAt(1)===45},QS=function(t){return t!=null&&typeof t!="boolean"},Eg=iT(function(e){return pT(e)?e:e.replace(V$,"-$&").toLowerCase()}),ZS=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(U$,function(o,r,l){return Pr={name:r,styles:l,next:Pr},r})}return G$[t]!==1&&!pT(t)&&typeof n=="number"&&n!==0?n+"px":n},W$="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function du(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var r=n;if(r.anim===1)return Pr={name:r.name,styles:r.styles,next:Pr},r.name;var l=n;if(l.styles!==void 0){var i=l.next;if(i!==void 0)for(;i!==void 0;)Pr={name:i.name,styles:i.styles,next:Pr},i=i.next;var s=l.styles+";";return s}return q$(e,t,n)}case"function":{if(e!==void 0){var a=Pr,u=n(e);return Pr=a,du(e,t,u)}break}}var c=n;if(t==null)return c;var d=t[c];return d!==void 0?d:c}function q$(e,t,n){var o="";if(Array.isArray(n))for(var r=0;r<n.length;r++)o+=du(e,t,n[r])+";";else for(var l in n){var i=n[l];if(typeof i!="object"){var s=i;t!=null&&t[s]!==void 0?o+=l+"{"+t[s]+"}":QS(s)&&(o+=Eg(l)+":"+ZS(l,s)+";")}else{if(l==="NO_COMPONENT_SELECTOR"&&_$)throw new Error(W$);if(Array.isArray(i)&&typeof i[0]=="string"&&(t==null||t[i[0]]===void 0))for(var a=0;a<i.length;a++)QS(i[a])&&(o+=Eg(l)+":"+ZS(l,i[a])+";");else{var u=du(e,t,i);switch(l){case"animation":case"animationName":{o+=Eg(l)+":"+u+";";break}default:o+=l+"{"+u+"}"}}}}return o}var JS=/label:\s*([^\s;{]+)\s*(;|$)/g,Pr;function Hu(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,r="";Pr=void 0;var l=e[0];if(l==null||l.raw===void 0)o=!1,r+=du(n,t,l);else{var i=l;r+=i[0]}for(var s=1;s<e.length;s++)if(r+=du(n,t,e[s]),o){var a=l;r+=a[s]}JS.lastIndex=0;for(var u="",c;(c=JS.exec(r))!==null;)u+="-"+c[1];var d=j$(r)+u;return{name:d,styles:r,next:Pr}}var K$=function(t){return t()},hT=Jg["useInsertionEffect"]?Jg["useInsertionEffect"]:!1,gT=hT||K$,e0=hT||f.useLayoutEffect,Y$=!1,mT=f.createContext(typeof HTMLElement<"u"?k$({key:"css"}):null);mT.Provider;var ov=function(t){return f.forwardRef(function(n,o){var r=f.useContext(mT);return t(n,r,o)})},Nu=f.createContext({}),rv={}.hasOwnProperty,nb="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",X$=function(t,n){var o={};for(var r in n)rv.call(n,r)&&(o[r]=n[r]);return o[nb]=t,o},Q$=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return tv(n,o,r),gT(function(){return nv(n,o,r)}),null},Z$=ov(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var r=e[nb],l=[o],i="";typeof e.className=="string"?i=fT(t.registered,l,e.className):e.className!=null&&(i=e.className+" ");var s=Hu(l,void 0,f.useContext(Nu));i+=t.key+"-"+s.name;var a={};for(var u in e)rv.call(e,u)&&u!=="css"&&u!==nb&&!Y$&&(a[u]=e[u]);return a.className=i,n&&(a.ref=n),f.createElement(f.Fragment,null,f.createElement(Q$,{cache:t,serialized:s,isStringTag:typeof r=="string"}),f.createElement(r,a))}),J$=Z$,t0=function(t,n){var o=arguments;if(n==null||!rv.call(n,"css"))return f.createElement.apply(void 0,o);var r=o.length,l=new Array(r);l[0]=J$,l[1]=X$(t,n);for(var i=2;i<r;i++)l[i]=o[i];return f.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(t0||(t0={}));var eD=ov(function(e,t){var n=e.styles,o=Hu([n],void 0,f.useContext(Nu)),r=f.useRef();return e0(function(){var l=t.key+"-global",i=new t.sheet.constructor({key:l,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),s=!1,a=document.querySelector('style[data-emotion="'+l+" "+o.name+'"]');return t.sheet.tags.length&&(i.before=t.sheet.tags[0]),a!==null&&(s=!0,a.setAttribute("data-emotion",l),i.hydrate([a])),r.current=[i,s],function(){i.flush()}},[t]),e0(function(){var l=r.current,i=l[0],s=l[1];if(s){l[1]=!1;return}if(o.next!==void 0&&nv(t,o.next,!0),i.tags.length){var a=i.tags[i.tags.length-1].nextElementSibling;i.before=a,i.flush()}t.insert("",o,i,!1)},[t,o.name]),null});function gi(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Hu(t)}function tr(){var e=gi.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var tD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nD=iT(function(e){return tD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),oD=!1,rD=nD,lD=function(t){return t!=="theme"},n0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?rD:lD},o0=function(t,n,o){var r;if(n){var l=n.shouldForwardProp;r=t.__emotion_forwardProp&&l?function(i){return t.__emotion_forwardProp(i)&&l(i)}:l}return typeof r!="function"&&o&&(r=t.__emotion_forwardProp),r},iD=function(t){var n=t.cache,o=t.serialized,r=t.isStringTag;return tv(n,o,r),gT(function(){return nv(n,o,r)}),null},sD=function e(t,n){var o=t.__emotion_real===t,r=o&&t.__emotion_base||t,l,i;n!==void 0&&(l=n.label,i=n.target);var s=o0(t,n,o),a=s||n0(r),u=!a("as");return function(){var c=arguments,d=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(l!==void 0&&d.push("label:"+l+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{var p=c[0];d.push(p[0]);for(var h=c.length,g=1;g<h;g++)d.push(c[g],p[g])}var y=ov(function(w,m,b){var v=u&&w.as||r,S="",M=[],R=w;if(w.theme==null){R={};for(var k in w)R[k]=w[k];R.theme=f.useContext(Nu)}typeof w.className=="string"?S=fT(m.registered,M,w.className):w.className!=null&&(S=w.className+" ");var E=Hu(d.concat(M),m.registered,R);S+=m.key+"-"+E.name,i!==void 0&&(S+=" "+i);var P=u&&s===void 0?n0(v):a,C={};for(var T in w)u&&T==="as"||P(T)&&(C[T]=w[T]);return C.className=S,b&&(C.ref=b),f.createElement(f.Fragment,null,f.createElement(iD,{cache:m,serialized:E,isStringTag:typeof v=="string"}),f.createElement(v,C))});return y.displayName=l!==void 0?l:"Styled("+(typeof r=="string"?r:r.displayName||r.name||"Component")+")",y.defaultProps=t.defaultProps,y.__emotion_real=y,y.__emotion_base=r,y.__emotion_styles=d,y.__emotion_forwardProp=s,Object.defineProperty(y,"toString",{value:function(){return i===void 0&&oD?"NO_COMPONENT_SELECTOR":"."+i}}),y.withComponent=function(w,m){var b=e(w,O({},n,m,{shouldForwardProp:o0(y,m,!0)}));return b.apply(void 0,d)},y}},aD=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ob=sD.bind(null);aD.forEach(function(e){ob[e]=ob(e)});var bT={exports:{}},cD="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",uD=cD,dD=uD;function yT(){}function vT(){}vT.resetWarningCache=yT;var fD=function(){function e(o,r,l,i,s,a){if(a!==dD){var u=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw u.name="Invariant Violation",u}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:vT,resetWarningCache:yT};return n.PropTypes=n,n};bT.exports=fD();var pD=bT.exports;const q=fp(pD);function hD(e){return e==null||Object.keys(e).length===0}function CT(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?r=>t(hD(r)?n:r):t;return x.jsx(eD,{styles:o})}/** 61 * @mui/styled-engine v7.1.0 62 * 63 * @license MIT 64 * This source code is licensed under the MIT license found in the 65 * LICENSE file in the root directory of this source tree. 66 */function ST(e,t){return ob(e,t)}function gD(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const r0=[];function l0(e){return r0[0]=e,Hu(r0)}var wT={exports:{}},Ht={};/** 67 * @license React 68 * react-is.production.js 69 * 70 * Copyright (c) Meta Platforms, Inc. and affiliates. 71 * 72 * This source code is licensed under the MIT license found in the 73 * LICENSE file in the root directory of this source tree. 74 */var lv=Symbol.for("react.transitional.element"),iv=Symbol.for("react.portal"),Xp=Symbol.for("react.fragment"),Qp=Symbol.for("react.strict_mode"),Zp=Symbol.for("react.profiler"),Jp=Symbol.for("react.consumer"),eh=Symbol.for("react.context"),th=Symbol.for("react.forward_ref"),nh=Symbol.for("react.suspense"),oh=Symbol.for("react.suspense_list"),rh=Symbol.for("react.memo"),lh=Symbol.for("react.lazy"),mD=Symbol.for("react.view_transition"),bD=Symbol.for("react.client.reference");function nr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case lv:switch(e=e.type,e){case Xp:case Zp:case Qp:case nh:case oh:case mD:return e;default:switch(e=e&&e.$$typeof,e){case eh:case th:case lh:case rh:return e;case Jp:return e;default:return t}}case iv:return t}}}Ht.ContextConsumer=Jp;Ht.ContextProvider=eh;Ht.Element=lv;Ht.ForwardRef=th;Ht.Fragment=Xp;Ht.Lazy=lh;Ht.Memo=rh;Ht.Portal=iv;Ht.Profiler=Zp;Ht.StrictMode=Qp;Ht.Suspense=nh;Ht.SuspenseList=oh;Ht.isContextConsumer=function(e){return nr(e)===Jp};Ht.isContextProvider=function(e){return nr(e)===eh};Ht.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===lv};Ht.isForwardRef=function(e){return nr(e)===th};Ht.isFragment=function(e){return nr(e)===Xp};Ht.isLazy=function(e){return nr(e)===lh};Ht.isMemo=function(e){return nr(e)===rh};Ht.isPortal=function(e){return nr(e)===iv};Ht.isProfiler=function(e){return nr(e)===Zp};Ht.isStrictMode=function(e){return nr(e)===Qp};Ht.isSuspense=function(e){return nr(e)===nh};Ht.isSuspenseList=function(e){return nr(e)===oh};Ht.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Xp||e===Zp||e===Qp||e===nh||e===oh||typeof e=="object"&&e!==null&&(e.$$typeof===lh||e.$$typeof===rh||e.$$typeof===eh||e.$$typeof===Jp||e.$$typeof===th||e.$$typeof===bD||e.getModuleId!==void 0)};Ht.typeOf=nr;wT.exports=Ht;var xT=wT.exports;function Or(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function MT(e){if(f.isValidElement(e)||xT.isValidElementType(e)||!Or(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=MT(e[n])}),t}function qn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return Or(e)&&Or(t)&&Object.keys(t).forEach(r=>{f.isValidElement(t[r])||xT.isValidElementType(t[r])?o[r]=t[r]:Or(t[r])&&Object.prototype.hasOwnProperty.call(e,r)&&Or(e[r])?o[r]=qn(e[r],t[r],n):n.clone?o[r]=Or(t[r])?MT(t[r]):t[r]:o[r]=t[r]}),o}const yD=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function vD(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...r}=e,l=yD(t),i=Object.keys(l);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function a(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-o/100}${n})`}function u(p,h){const g=i.indexOf(h);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(g!==-1&&typeof t[i[g]]=="number"?t[i[g]]:h)-o/100}${n})`}function c(p){return i.indexOf(p)+1<i.length?u(p,i[i.indexOf(p)+1]):s(p)}function d(p){const h=i.indexOf(p);return h===0?s(i[1]):h===i.length-1?a(i[h]):u(p,i[i.indexOf(p)+1]).replace("@media","@media not all and")}return{keys:i,values:l,up:s,down:a,between:u,only:c,not:d,unit:n,...r}}function CD(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,r)=>{var i,s;const l=/min-width:\s*([0-9.]+)/;return+(((i=o.match(l))==null?void 0:i[1])||0)-+(((s=r.match(l))==null?void 0:s[1])||0)});return n.length?n.reduce((o,r)=>{const l=t[r];return delete o[r],o[r]=l,o},{...t}):t}function SD(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function wD(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,r]=n,l=Number.isNaN(+o)?o||0:+o;return e.containerQueries(r).up(l)}function xD(e){const t=(l,i)=>l.replace("@media",i?`@container ${i}`:"@container");function n(l,i){l.up=(...s)=>t(e.breakpoints.up(...s),i),l.down=(...s)=>t(e.breakpoints.down(...s),i),l.between=(...s)=>t(e.breakpoints.between(...s),i),l.only=(...s)=>t(e.breakpoints.only(...s),i),l.not=(...s)=>{const a=t(e.breakpoints.not(...s),i);return a.includes("not all and")?a.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):a}}const o={},r=l=>(n(o,l),o);return n(r),{...e,containerQueries:r}}const MD={borderRadius:4},ED=MD;function Hc(e,t){return t?qn(e,t,{clone:!1}):e}const ih={xs:0,sm:600,md:900,lg:1200,xl:1536},i0={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${ih[e]}px)`},TD={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:ih[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function ml(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const l=o.breakpoints||i0;return t.reduce((i,s,a)=>(i[l.up(l.keys[a])]=n(t[a]),i),{})}if(typeof t=="object"){const l=o.breakpoints||i0;return Object.keys(t).reduce((i,s)=>{if(SD(l.keys,s)){const a=wD(o.containerQueries?o:TD,s);a&&(i[a]=n(t[s],s))}else if(Object.keys(l.values||ih).includes(s)){const a=l.up(s);i[a]=n(t[s],s)}else{const a=s;i[a]=t[a]}return i},{})}return n(t)}function PD(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,r)=>{const l=e.up(r);return o[l]={},o},{}))||{}}function ID(e,t){return e.reduce((n,o)=>{const r=n[o];return(!r||Object.keys(r).length===0)&&delete n[o],n},t)}function re(e){if(typeof e!="string")throw new Error(gl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function sh(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((r,l)=>r&&r[l]?r[l]:null,e);if(o!=null)return o}return t.split(".").reduce((o,r)=>o&&o[r]!=null?o[r]:null,e)}function Uf(e,t,n,o=n){let r;return typeof e=="function"?r=e(n):Array.isArray(e)?r=e[n]||o:r=sh(e,n)||o,t&&(r=t(r,o,e)),r}function dn(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:r}=e,l=i=>{if(i[t]==null)return null;const s=i[t],a=i.theme,u=sh(a,o)||{};return ml(i,s,d=>{let p=Uf(u,r,d);return d===p&&typeof d=="string"&&(p=Uf(u,r,`${t}${d==="default"?"":re(d)}`,d)),n===!1?p:{[n]:p}})};return l.propTypes={},l.filterProps=[t],l}function OD(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const RD={m:"margin",p:"padding"},kD={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},s0={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AD=OD(e=>{if(e.length>2)if(s0[e])e=s0[e];else return[e];const[t,n]=e.split(""),o=RD[t],r=kD[n]||"";return Array.isArray(r)?r.map(l=>o+l):[o+r]}),sv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],av=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...sv,...av];function ju(e,t,n,o){const r=sh(e,t,!0)??n;return typeof r=="number"||typeof r=="string"?l=>typeof l=="string"?l:typeof r=="string"?r.startsWith("var(")&&l===0?0:r.startsWith("var(")&&l===1?r:`calc(${l} * ${r})`:r*l:Array.isArray(r)?l=>{if(typeof l=="string")return l;const i=Math.abs(l),s=r[i];return l>=0?s:typeof s=="number"?-s:typeof s=="string"&&s.startsWith("var(")?`calc(-1 * ${s})`:`-${s}`}:typeof r=="function"?r:()=>{}}function cv(e){return ju(e,"spacing",8)}function Gu(e,t){return typeof t=="string"||t==null?t:e(t)}function $D(e,t){return n=>e.reduce((o,r)=>(o[r]=Gu(t,n),o),{})}function DD(e,t,n,o){if(!t.includes(n))return null;const r=AD(n),l=$D(r,o),i=e[n];return ml(e,i,l)}function ET(e,t){const n=cv(e.theme);return Object.keys(e).map(o=>DD(e,t,o,n)).reduce(Hc,{})}function en(e){return ET(e,sv)}en.propTypes={};en.filterProps=sv;function tn(e){return ET(e,av)}tn.propTypes={};tn.filterProps=av;function TT(e=8,t=cv({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(l=>{const i=t(l);return typeof i=="number"?`${i}px`:i}).join(" ");return n.mui=!0,n}function ah(...e){const t=e.reduce((o,r)=>(r.filterProps.forEach(l=>{o[l]=r}),o),{}),n=o=>Object.keys(o).reduce((r,l)=>t[l]?Hc(r,t[l](o)):r,{});return n.propTypes={},n.filterProps=e.reduce((o,r)=>o.concat(r.filterProps),[]),n}function No(e){return typeof e!="number"?e:`${e}px solid`}function or(e,t){return dn({prop:e,themeKey:"borders",transform:t})}const LD=or("border",No),zD=or("borderTop",No),FD=or("borderRight",No),BD=or("borderBottom",No),HD=or("borderLeft",No),ND=or("borderColor"),jD=or("borderTopColor"),GD=or("borderRightColor"),_D=or("borderBottomColor"),VD=or("borderLeftColor"),UD=or("outline",No),WD=or("outlineColor"),ch=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ju(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Gu(t,o)});return ml(e,e.borderRadius,n)}return null};ch.propTypes={};ch.filterProps=["borderRadius"];ah(LD,zD,FD,BD,HD,ND,jD,GD,_D,VD,ch,UD,WD);const uh=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ju(e.theme,"spacing",8),n=o=>({gap:Gu(t,o)});return ml(e,e.gap,n)}return null};uh.propTypes={};uh.filterProps=["gap"];const dh=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ju(e.theme,"spacing",8),n=o=>({columnGap:Gu(t,o)});return ml(e,e.columnGap,n)}return null};dh.propTypes={};dh.filterProps=["columnGap"];const fh=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ju(e.theme,"spacing",8),n=o=>({rowGap:Gu(t,o)});return ml(e,e.rowGap,n)}return null};fh.propTypes={};fh.filterProps=["rowGap"];const qD=dn({prop:"gridColumn"}),KD=dn({prop:"gridRow"}),YD=dn({prop:"gridAutoFlow"}),XD=dn({prop:"gridAutoColumns"}),QD=dn({prop:"gridAutoRows"}),ZD=dn({prop:"gridTemplateColumns"}),JD=dn({prop:"gridTemplateRows"}),eL=dn({prop:"gridTemplateAreas"}),tL=dn({prop:"gridArea"});ah(uh,dh,fh,qD,KD,YD,XD,QD,ZD,JD,eL,tL);function Zs(e,t){return t==="grey"?t:e}const nL=dn({prop:"color",themeKey:"palette",transform:Zs}),oL=dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Zs}),rL=dn({prop:"backgroundColor",themeKey:"palette",transform:Zs});ah(nL,oL,rL);function vo(e){return e<=1&&e!==0?`${e*100}%`:e}const lL=dn({prop:"width",transform:vo}),uv=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,l,i,s,a;const o=((i=(l=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:l.values)==null?void 0:i[n])||ih[n];return o?((a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:vo(n)}};return ml(e,e.maxWidth,t)}return null};uv.filterProps=["maxWidth"];const iL=dn({prop:"minWidth",transform:vo}),sL=dn({prop:"height",transform:vo}),aL=dn({prop:"maxHeight",transform:vo}),cL=dn({prop:"minHeight",transform:vo});dn({prop:"size",cssProperty:"width",transform:vo});dn({prop:"size",cssProperty:"height",transform:vo});const uL=dn({prop:"boxSizing"});ah(lL,uv,iL,sL,aL,cL,uL);const dL={border:{themeKey:"borders",transform:No},borderTop:{themeKey:"borders",transform:No},borderRight:{themeKey:"borders",transform:No},borderBottom:{themeKey:"borders",transform:No},borderLeft:{themeKey:"borders",transform:No},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:No},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:ch},color:{themeKey:"palette",transform:Zs},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Zs},backgroundColor:{themeKey:"palette",transform:Zs},p:{style:tn},pt:{style:tn},pr:{style:tn},pb:{style:tn},pl:{style:tn},px:{style:tn},py:{style:tn},padding:{style:tn},paddingTop:{style:tn},paddingRight:{style:tn},paddingBottom:{style:tn},paddingLeft:{style:tn},paddingX:{style:tn},paddingY:{style:tn},paddingInline:{style:tn},paddingInlineStart:{style:tn},paddingInlineEnd:{style:tn},paddingBlock:{style:tn},paddingBlockStart:{style:tn},paddingBlockEnd:{style:tn},m:{style:en},mt:{style:en},mr:{style:en},mb:{style:en},ml:{style:en},mx:{style:en},my:{style:en},margin:{style:en},marginTop:{style:en},marginRight:{style:en},marginBottom:{style:en},marginLeft:{style:en},marginX:{style:en},marginY:{style:en},marginInline:{style:en},marginInlineStart:{style:en},marginInlineEnd:{style:en},marginBlock:{style:en},marginBlockStart:{style:en},marginBlockEnd:{style:en},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:uh},rowGap:{style:fh},columnGap:{style:dh},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:vo},maxWidth:{style:uv},minWidth:{transform:vo},height:{transform:vo},maxHeight:{transform:vo},minHeight:{transform:vo},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"}},_u=dL;function fL(...e){const t=e.reduce((o,r)=>o.concat(Object.keys(r)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function pL(e,t){return typeof e=="function"?e(t):e}function hL(){function e(n,o,r,l){const i={[n]:o,theme:r},s=l[n];if(!s)return{[n]:o};const{cssProperty:a=n,themeKey:u,transform:c,style:d}=s;if(o==null)return null;if(u==="typography"&&o==="inherit")return{[n]:o};const p=sh(r,u)||{};return d?d(i):ml(i,o,g=>{let y=Uf(p,c,g);return g===y&&typeof g=="string"&&(y=Uf(p,c,`${n}${g==="default"?"":re(g)}`,g)),a===!1?y:{[a]:y}})}function t(n){const{sx:o,theme:r={}}=n||{};if(!o)return null;const l=r.unstable_sxConfig??_u;function i(s){let a=s;if(typeof s=="function")a=s(r);else if(typeof s!="object")return s;if(!a)return null;const u=PD(r.breakpoints),c=Object.keys(u);let d=u;return Object.keys(a).forEach(p=>{const h=pL(a[p],r);if(h!=null)if(typeof h=="object")if(l[p])d=Hc(d,e(p,h,r,l));else{const g=ml({theme:r},h,y=>({[p]:y}));fL(g,h)?d[p]=t({sx:h,theme:r}):d=Hc(d,g)}else d=Hc(d,e(p,h,r,l))}),CD(r,ID(c,d))}return Array.isArray(o)?o.map(i):i(o)}return t}const PT=hL();PT.filterProps=["sx"];const Ui=PT;function gL(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function ph(e={},...t){const{breakpoints:n={},palette:o={},spacing:r,shape:l={},...i}=e,s=vD(n),a=TT(r);let u=qn({breakpoints:s,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:a,shape:{...ED,...l}},i);return u=xD(u),u.applyStyles=gL,u=t.reduce((c,d)=>qn(c,d),u),u.unstable_sxConfig={..._u,...i==null?void 0:i.unstable_sxConfig},u.unstable_sx=function(d){return Ui({sx:d,theme:this})},u}function mL(e){return Object.keys(e).length===0}function IT(e=null){const t=f.useContext(Nu);return!t||mL(t)?e:t}const bL=ph();function hh(e=bL){return IT(e)}function yL({styles:e,themeId:t,defaultTheme:n={}}){const o=hh(n),r=typeof e=="function"?e(t&&o[t]||o):e;return x.jsx(CT,{styles:r})}const vL=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??_u;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function OT(e){const{sx:t,...n}=e,{systemProps:o,otherProps:r}=vL(n);let l;return Array.isArray(t)?l=[o,...t]:typeof t=="function"?l=(...i)=>{const s=t(...i);return Or(s)?{...o,...s}:o}:l={...o,...t},{...r,sx:l}}const a0=e=>e,CL=()=>{let e=a0;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a0}}},SL=CL(),RT=SL;function kT(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=kT(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function de(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=kT(e))&&(o&&(o+=" "),o+=t);return o}function wL(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,l=ST("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Ui);return f.forwardRef(function(a,u){const c=hh(n),{className:d,component:p="div",...h}=OT(a);return x.jsx(l,{as:p,ref:u,className:de(d,r?r(o):o),theme:t&&c[t]||c,...h})})}const xL={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 _e(e,t,n="Mui"){const o=xL[t];return o?`${n}-${o}`:`${RT.generate(e)}-${t}`}function je(e,t,n="Mui"){const o={};return t.forEach(r=>{o[r]=_e(e,r,n)}),o}function AT(e){const{variants:t,...n}=e,o={variants:t,style:l0(n),isProcessed:!0};return o.style===n||t&&t.forEach(r=>{typeof r.style!="function"&&(r.style=l0(r.style))}),o}const ML=ph();function Tg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function EL(e){return e?(t,n)=>n[e]:null}function TL(e,t,n){e.theme=IL(e.theme)?n:e.theme[t]||e.theme}function of(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>of(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:r,...l}=n;o=l}return $T(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function $T(e,t,n=[]){var r;let o;e:for(let l=0;l<t.length;l+=1){const i=t[l];if(typeof i.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(o))continue}else for(const s in i.props)if(e[s]!==i.props[s]&&((r=e.ownerState)==null?void 0:r[s])!==i.props[s])continue e;typeof i.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(i.style(o))):n.push(i.style)}return n}function DT(e={}){const{themeId:t,defaultTheme:n=ML,rootShouldForwardProp:o=Tg,slotShouldForwardProp:r=Tg}=e;function l(s){TL(s,t,n)}return(s,a={})=>{gD(s,M=>M.filter(R=>R!==Ui));const{name:u,slot:c,skipVariantsResolver:d,skipSx:p,overridesResolver:h=EL(RL(c)),...g}=a,y=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,w=p||!1;let m=Tg;c==="Root"||c==="root"?m=o:c?m=r:OL(s)&&(m=void 0);const b=ST(s,{shouldForwardProp:m,label:PL(),...g}),v=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(k){return of(k,M)};if(Or(M)){const R=AT(M);return R.variants?function(E){return of(E,R)}:R.style}return M},S=(...M)=>{const R=[],k=M.map(v),E=[];if(R.push(l),u&&h&&E.push(function(A){var I,$;const F=($=(I=A.theme.components)==null?void 0:I[u])==null?void 0:$.styleOverrides;if(!F)return null;const D={};for(const B in F)D[B]=of(A,F[B]);return h(A,D)}),u&&!y&&E.push(function(A){var D,I;const L=A.theme,F=(I=(D=L==null?void 0:L.components)==null?void 0:D[u])==null?void 0:I.variants;return F?$T(A,F):null}),w||E.push(Ui),Array.isArray(k[0])){const T=k.shift(),A=new Array(R.length).fill(""),L=new Array(E.length).fill("");let F;F=[...A,...T,...L],F.raw=[...A,...T.raw,...L],R.unshift(F)}const P=[...R,...k,...E],C=b(...P);return s.muiName&&(C.muiName=s.muiName),C};return b.withConfig&&(S.withConfig=b.withConfig),S}}function PL(e,t){let n;return n}function IL(e){for(const t in e)return!1;return!0}function OL(e){return typeof e=="string"&&e.charCodeAt(0)>96}function RL(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const kL=DT(),ht=kL;function ha(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=o;if(r==="components"||r==="slots")n[r]={...e[r],...n[r]};else if(r==="componentsProps"||r==="slotProps"){const l=e[r],i=t[r];if(!i)n[r]=l||{};else if(!l)n[r]=i;else{n[r]={...i};for(const s in l)if(Object.prototype.hasOwnProperty.call(l,s)){const a=s;n[r][a]=ha(l[a],i[a])}}}else n[r]===void 0&&(n[r]=e[r])}return n}function LT(e){const{theme:t,name:n,props:o}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?o:ha(t.components[n].defaultProps,o)}function AL({props:e,name:t,defaultTheme:n,themeId:o}){let r=hh(n);return o&&(r=r[o]||r),LT({theme:r,name:t,props:e})}const $L=typeof window<"u"?f.useLayoutEffect:f.useEffect,Ot=$L;function DL(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function dv(e,t=0,n=1){return DL(e,t,n)}function LL(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,r)=>r<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function ui(e){if(e.type)return e;if(e.charAt(0)==="#")return ui(LL(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(gl(9,e));let o=e.substring(t+1,e.length-1),r;if(n==="color"){if(o=o.split(" "),r=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(r))throw new Error(gl(10,r))}else o=o.split(",");return o=o.map(l=>parseFloat(l)),{type:n,values:o,colorSpace:r}}const zL=e=>{const t=ui(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},vc=(e,t)=>{try{return zL(e)}catch{return e}};function gh(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((r,l)=>l<3?parseInt(r,10):r):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function zT(e){e=ui(e);const{values:t}=e,n=t[0],o=t[1]/100,r=t[2]/100,l=o*Math.min(r,1-r),i=(u,c=(u+n/30)%12)=>r-l*Math.max(Math.min(c-3,9-c,1),-1);let s="rgb";const a=[Math.round(i(0)*255),Math.round(i(8)*255),Math.round(i(4)*255)];return e.type==="hsla"&&(s+="a",a.push(t[3])),gh({type:s,values:a})}function rb(e){e=ui(e);let t=e.type==="hsl"||e.type==="hsla"?ui(zT(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FL(e,t){const n=rb(e),o=rb(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function lt(e,t){return e=ui(e),t=dv(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,gh(e)}function Md(e,t,n){try{return lt(e,t)}catch{return e}}function ts(e,t){if(e=ui(e),t=dv(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return gh(e)}function zt(e,t,n){try{return ts(e,t)}catch{return e}}function ns(e,t){if(e=ui(e),t=dv(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return gh(e)}function Ft(e,t,n){try{return ns(e,t)}catch{return e}}function BL(e,t=.15){return rb(e)>.5?ts(e,t):ns(e,t)}function Ed(e,t,n){try{return BL(e,t)}catch{return e}}const HL=f.createContext(null),FT=HL;function fv(){return f.useContext(FT)}const NL=typeof Symbol=="function"&&Symbol.for,jL=NL?Symbol.for("mui.nested"):"__THEME_NESTED__";function GL(e,t){return typeof t=="function"?t(e):{...e,...t}}function _L(e){const{children:t,theme:n}=e,o=fv(),r=f.useMemo(()=>{const l=o===null?{...n}:GL(o,n);return l!=null&&(l[jL]=o!==null),l},[n,o]);return x.jsx(FT.Provider,{value:r,children:t})}const BT=f.createContext();function VL({value:e,...t}){return x.jsx(BT.Provider,{value:e??!0,...t})}const _n=()=>f.useContext(BT)??!1,HT=f.createContext(void 0);function UL({value:e,children:t}){return x.jsx(HT.Provider,{value:e,children:t})}function WL(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const r=t.components[n];return r.defaultProps?ha(r.defaultProps,o):!r.styleOverrides&&!r.variants?ha(r,o):o}function qL({props:e,name:t}){const n=f.useContext(HT);return WL({props:e,name:t,theme:{components:n}})}const c0={};function u0(e,t,n,o=!1){return f.useMemo(()=>{const r=e&&t[e]||t;if(typeof n=="function"){const l=n(r),i=e?{...t,[e]:l}:l;return o?()=>i:i}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,o])}function NT(e){const{children:t,theme:n,themeId:o}=e,r=IT(c0),l=fv()||c0,i=u0(o,r,n),s=u0(o,l,n,!0),a=(o?i[o]:i).direction==="rtl";return x.jsx(_L,{theme:s,children:x.jsx(Nu.Provider,{value:i,children:x.jsx(VL,{value:a,children:x.jsx(UL,{value:o?i[o].components:i.components,children:t})})})})}const d0={theme:void 0};function KL(e){let t,n;return function(r){let l=t;return(l===void 0||r.theme!==n)&&(d0.theme=r.theme,l=AT(e(d0)),t=l,n=r.theme),l}}const pv="mode",hv="color-scheme",YL="data-color-scheme";function XL(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:o="dark",modeStorageKey:r=pv,colorSchemeStorageKey:l=hv,attribute:i=YL,colorSchemeNode:s="document.documentElement",nonce:a}=e||{};let u="",c=i;if(i==="class"&&(c=".%s"),i==="data"&&(c="[data-%s]"),c.startsWith(".")){const p=c.substring(1);u+=`${s}.classList.remove('${p}'.replace('%s', light), '${p}'.replace('%s', dark)); 75 ${s}.classList.add('${p}'.replace('%s', colorScheme));`}const d=c.match(/\[([^\]]+)\]/);if(d){const[p,h]=d[1].split("=");h||(u+=`${s}.removeAttribute('${p}'.replace('%s', light)); 76 ${s}.removeAttribute('${p}'.replace('%s', dark));`),u+=` 77 ${s}.setAttribute('${p}'.replace('%s', colorScheme), ${h?`${h}.replace('%s', colorScheme)`:'""'});`}else u+=`${s}.setAttribute('${c}', colorScheme);`;return x.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?a:"",dangerouslySetInnerHTML:{__html:`(function() { 78 try { 79 let colorScheme = ''; 80 const mode = localStorage.getItem('${r}') || '${t}'; 81 const dark = localStorage.getItem('${l}-dark') || '${o}'; 82 const light = localStorage.getItem('${l}-light') || '${n}'; 83 if (mode === 'system') { 84 // handle system mode 85 const mql = window.matchMedia('(prefers-color-scheme: dark)'); 86 if (mql.matches) { 87 colorScheme = dark 88 } else { 89 colorScheme = light 90 } 91 } 92 if (mode === 'light') { 93 colorScheme = light; 94 } 95 if (mode === 'dark') { 96 colorScheme = dark; 97 } 98 if (colorScheme) { 99 ${u} 100 } 101 } catch(e){}})();`}},"mui-color-scheme-init")}function QL(){}const ZL=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let o;try{o=t.localStorage.getItem(e)}catch{}return o||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return QL;const o=r=>{const l=r.newValue;r.key===e&&n(l)};return t.addEventListener("storage",o),()=>{t.removeEventListener("storage",o)}}}),JL=ZL;function Pg(){}function f0(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function jT(e,t){if(e.mode==="light"||e.mode==="system"&&e.systemMode==="light")return t("light");if(e.mode==="dark"||e.mode==="system"&&e.systemMode==="dark")return t("dark")}function ez(e){return jT(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function tz(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:o,supportedColorSchemes:r=[],modeStorageKey:l=pv,colorSchemeStorageKey:i=hv,storageWindow:s=typeof window>"u"?void 0:window,storageManager:a=JL,noSsr:u=!1}=e,c=r.join(","),d=r.length>1,p=f.useMemo(()=>a==null?void 0:a({key:l,storageWindow:s}),[a,l,s]),h=f.useMemo(()=>a==null?void 0:a({key:`${i}-light`,storageWindow:s}),[a,i,s]),g=f.useMemo(()=>a==null?void 0:a({key:`${i}-dark`,storageWindow:s}),[a,i,s]),[y,w]=f.useState(()=>{const E=(p==null?void 0:p.get(t))||t,P=(h==null?void 0:h.get(n))||n,C=(g==null?void 0:g.get(o))||o;return{mode:E,systemMode:f0(E),lightColorScheme:P,darkColorScheme:C}}),[m,b]=f.useState(u||!d);f.useEffect(()=>{b(!0)},[]);const v=ez(y),S=f.useCallback(E=>{w(P=>{if(E===P.mode)return P;const C=E??t;return p==null||p.set(C),{...P,mode:C,systemMode:f0(C)}})},[p,t]),M=f.useCallback(E=>{E?typeof E=="string"?E&&!c.includes(E)?console.error(`\`${E}\` does not exist in \`theme.colorSchemes\`.`):w(P=>{const C={...P};return jT(P,T=>{T==="light"&&(h==null||h.set(E),C.lightColorScheme=E),T==="dark"&&(g==null||g.set(E),C.darkColorScheme=E)}),C}):w(P=>{const C={...P},T=E.light===null?n:E.light,A=E.dark===null?o:E.dark;return T&&(c.includes(T)?(C.lightColorScheme=T,h==null||h.set(T)):console.error(`\`${T}\` does not exist in \`theme.colorSchemes\`.`)),A&&(c.includes(A)?(C.darkColorScheme=A,g==null||g.set(A)):console.error(`\`${A}\` does not exist in \`theme.colorSchemes\`.`)),C}):w(P=>(h==null||h.set(n),g==null||g.set(o),{...P,lightColorScheme:n,darkColorScheme:o}))},[c,h,g,n,o]),R=f.useCallback(E=>{y.mode==="system"&&w(P=>{const C=E!=null&&E.matches?"dark":"light";return P.systemMode===C?P:{...P,systemMode:C}})},[y.mode]),k=f.useRef(R);return k.current=R,f.useEffect(()=>{if(typeof window.matchMedia!="function"||!d)return;const E=(...C)=>k.current(...C),P=window.matchMedia("(prefers-color-scheme: dark)");return P.addListener(E),E(P),()=>{P.removeListener(E)}},[d]),f.useEffect(()=>{if(d){const E=(p==null?void 0:p.subscribe(T=>{(!T||["light","dark","system"].includes(T))&&S(T||t)}))||Pg,P=(h==null?void 0:h.subscribe(T=>{(!T||c.match(T))&&M({light:T})}))||Pg,C=(g==null?void 0:g.subscribe(T=>{(!T||c.match(T))&&M({dark:T})}))||Pg;return()=>{E(),P(),C()}}},[M,S,c,t,s,d,p,h,g]),{...y,mode:m?y.mode:void 0,systemMode:m?y.systemMode:void 0,colorScheme:m?v:void 0,setMode:S,setColorScheme:M}}const nz="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function oz(e){const{themeId:t,theme:n={},modeStorageKey:o=pv,colorSchemeStorageKey:r=hv,disableTransitionOnChange:l=!1,defaultColorScheme:i,resolveTheme:s}=e,a={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},u=f.createContext(void 0),c=()=>f.useContext(u)||a,d={},p={};function h(m){var Ne,qe,De,Ee;const{children:b,theme:v,modeStorageKey:S=o,colorSchemeStorageKey:M=r,disableTransitionOnChange:R=l,storageManager:k,storageWindow:E=typeof window>"u"?void 0:window,documentNode:P=typeof document>"u"?void 0:document,colorSchemeNode:C=typeof document>"u"?void 0:document.documentElement,disableNestedContext:T=!1,disableStyleSheetGeneration:A=!1,defaultMode:L="system",forceThemeRerender:F=!1,noSsr:D}=m,I=f.useRef(!1),$=fv(),B=f.useContext(u),G=!!B&&!T,j=f.useMemo(()=>v||(typeof n=="function"?n():n),[v]),N=j[t],H=N||j,{colorSchemes:_=d,components:U=p,cssVarPrefix:K}=H,X=Object.keys(_).filter(Oe=>!!_[Oe]).join(","),oe=f.useMemo(()=>X.split(","),[X]),ue=typeof i=="string"?i:i.light,V=typeof i=="string"?i:i.dark,W=_[ue]&&_[V]?L:((qe=(Ne=_[H.defaultColorScheme])==null?void 0:Ne.palette)==null?void 0:qe.mode)||((De=H.palette)==null?void 0:De.mode),{mode:ne,setMode:J,systemMode:Y,lightColorScheme:ee,darkColorScheme:pe,colorScheme:me,setColorScheme:ye}=tz({supportedColorSchemes:oe,defaultLightColorScheme:ue,defaultDarkColorScheme:V,modeStorageKey:S,colorSchemeStorageKey:M,defaultMode:W,storageManager:k,storageWindow:E,noSsr:D});let te=ne,Ce=me;G&&(te=B.mode,Ce=B.colorScheme);let ge=Ce||H.defaultColorScheme;H.vars&&!F&&(ge=H.defaultColorScheme);const Te=f.useMemo(()=>{var Ve;const Oe=((Ve=H.generateThemeVars)==null?void 0:Ve.call(H))||H.vars,ce={...H,components:U,colorSchemes:_,cssVarPrefix:K,vars:Oe};if(typeof ce.generateSpacing=="function"&&(ce.spacing=ce.generateSpacing()),ge){const et=_[ge];et&&typeof et=="object"&&Object.keys(et).forEach(we=>{et[we]&&typeof et[we]=="object"?ce[we]={...ce[we],...et[we]}:ce[we]=et[we]})}return s?s(ce):ce},[H,ge,U,_,K]),Q=H.colorSchemeSelector;Ot(()=>{if(Ce&&C&&Q&&Q!=="media"){const Oe=Q;let ce=Q;if(Oe==="class"&&(ce=".%s"),Oe==="data"&&(ce="[data-%s]"),Oe!=null&&Oe.startsWith("data-")&&!Oe.includes("%s")&&(ce=`[${Oe}="%s"]`),ce.startsWith("."))C.classList.remove(...oe.map(Ve=>ce.substring(1).replace("%s",Ve))),C.classList.add(ce.substring(1).replace("%s",Ce));else{const Ve=ce.replace("%s",Ce).match(/\[([^\]]+)\]/);if(Ve){const[et,we]=Ve[1].split("=");we||oe.forEach(xe=>{C.removeAttribute(et.replace(Ce,xe))}),C.setAttribute(et,we?we.replace(/"|'/g,""):"")}else C.setAttribute(ce,Ce)}}},[Ce,Q,C,oe]),f.useEffect(()=>{let Oe;if(R&&I.current&&P){const ce=P.createElement("style");ce.appendChild(P.createTextNode(nz)),P.head.appendChild(ce),window.getComputedStyle(P.body),Oe=setTimeout(()=>{P.head.removeChild(ce)},1)}return()=>{clearTimeout(Oe)}},[Ce,R,P]),f.useEffect(()=>(I.current=!0,()=>{I.current=!1}),[]);const ke=f.useMemo(()=>({allColorSchemes:oe,colorScheme:Ce,darkColorScheme:pe,lightColorScheme:ee,mode:te,setColorScheme:ye,setMode:J,systemMode:Y}),[oe,Ce,pe,ee,te,ye,J,Y,Te.colorSchemeSelector]);let Ie=!0;(A||H.cssVariables===!1||G&&($==null?void 0:$.cssVarPrefix)===K)&&(Ie=!1);const Le=x.jsxs(f.Fragment,{children:[x.jsx(NT,{themeId:N?t:void 0,theme:Te,children:b}),Ie&&x.jsx(CT,{styles:((Ee=Te.generateStyleSheets)==null?void 0:Ee.call(Te))||[]})]});return G?Le:x.jsx(u.Provider,{value:ke,children:Le})}const g=typeof i=="string"?i:i.light,y=typeof i=="string"?i:i.dark;return{CssVarsProvider:h,useColorScheme:c,getInitColorSchemeScript:m=>XL({colorSchemeStorageKey:r,defaultLightColorScheme:g,defaultDarkColorScheme:y,modeStorageKey:o,...m})}}function rz(e=""){function t(...o){if(!o.length)return"";const r=o[0];return typeof r=="string"&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${r}${t(...o.slice(1))})`:`, ${r}`}return(o,...r)=>`var(--${e?`${e}-`:""}${o}${t(...r)})`}const p0=(e,t,n,o=[])=>{let r=e;t.forEach((l,i)=>{i===t.length-1?Array.isArray(r)?r[Number(l)]=n:r&&typeof r=="object"&&(r[l]=n):r&&typeof r=="object"&&(r[l]||(r[l]=o.includes(l)?[]:{}),r=r[l])})},lz=(e,t,n)=>{function o(r,l=[],i=[]){Object.entries(r).forEach(([s,a])=>{(!n||n&&!n([...l,s]))&&a!=null&&(typeof a=="object"&&Object.keys(a).length>0?o(a,[...l,s],Array.isArray(a)?[...i,s]:i):t([...l,s],a,i))})}o(e)},iz=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Ig(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},r={},l={},i={};return lz(e,(s,a,u)=>{if((typeof a=="string"||typeof a=="number")&&(!o||!o(s,a))){const c=`--${n?`${n}-`:""}${s.join("-")}`,d=iz(s,a);Object.assign(r,{[c]:d}),p0(l,s,`var(${c})`,u),p0(i,s,`var(${c}, ${d})`,u)}},s=>s[0]==="vars"),{css:r,vars:l,varsWithDefaults:i}}function sz(e,t={}){const{getSelector:n=w,disableCssColorScheme:o,colorSchemeSelector:r}=t,{colorSchemes:l={},components:i,defaultColorScheme:s="light",...a}=e,{vars:u,css:c,varsWithDefaults:d}=Ig(a,t);let p=d;const h={},{[s]:g,...y}=l;if(Object.entries(y||{}).forEach(([v,S])=>{const{vars:M,css:R,varsWithDefaults:k}=Ig(S,t);p=qn(p,k),h[v]={css:R,vars:M}}),g){const{css:v,vars:S,varsWithDefaults:M}=Ig(g,t);p=qn(p,M),h[s]={css:v,vars:S}}function w(v,S){var R,k;let M=r;if(r==="class"&&(M=".%s"),r==="data"&&(M="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(M=`[${r}="%s"]`),v){if(M==="media")return e.defaultColorScheme===v?":root":{[`@media (prefers-color-scheme: ${((k=(R=l[v])==null?void 0:R.palette)==null?void 0:k.mode)||v})`]:{":root":S}};if(M)return e.defaultColorScheme===v?`:root, ${M.replace("%s",String(v))}`:M.replace("%s",String(v))}return":root"}return{vars:p,generateThemeVars:()=>{let v={...u};return Object.entries(h).forEach(([,{vars:S}])=>{v=qn(v,S)}),v},generateStyleSheets:()=>{var E,P;const v=[],S=e.defaultColorScheme||"light";function M(C,T){Object.keys(T).length&&v.push(typeof C=="string"?{[C]:{...T}}:C)}M(n(void 0,{...c}),c);const{[S]:R,...k}=h;if(R){const{css:C}=R,T=(P=(E=l[S])==null?void 0:E.palette)==null?void 0:P.mode,A=!o&&T?{colorScheme:T,...C}:{...C};M(n(S,{...A}),A)}return Object.entries(k).forEach(([C,{css:T}])=>{var F,D;const A=(D=(F=l[C])==null?void 0:F.palette)==null?void 0:D.mode,L=!o&&A?{colorScheme:A,...T}:{...T};M(n(C,{...L}),L)}),v}}}function az(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function ve(e,t,n=void 0){const o={};for(const r in e){const l=e[r];let i="",s=!0;for(let a=0;a<l.length;a+=1){const u=l[a];u&&(i+=(s===!0?"":" ")+t(u),s=!1,n&&n[u]&&(i+=" "+n[u]))}o[r]=i}return o}const cz=ph(),uz=ht("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${re(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),dz=e=>AL({props:e,name:"MuiContainer",defaultTheme:cz}),fz=(e,t)=>{const n=a=>_e(t,a),{classes:o,fixed:r,disableGutters:l,maxWidth:i}=e,s={root:["root",i&&`maxWidth${re(String(i))}`,r&&"fixed",l&&"disableGutters"]};return ve(s,n,o)};function pz(e={}){const{createStyledComponent:t=uz,useThemeProps:n=dz,componentName:o="MuiContainer"}=e,r=t(({theme:i,ownerState:s})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!s.disableGutters&&{paddingLeft:i.spacing(2),paddingRight:i.spacing(2),[i.breakpoints.up("sm")]:{paddingLeft:i.spacing(3),paddingRight:i.spacing(3)}}}),({theme:i,ownerState:s})=>s.fixed&&Object.keys(i.breakpoints.values).reduce((a,u)=>{const c=u,d=i.breakpoints.values[c];return d!==0&&(a[i.breakpoints.up(c)]={maxWidth:`${d}${i.breakpoints.unit}`}),a},{}),({theme:i,ownerState:s})=>({...s.maxWidth==="xs"&&{[i.breakpoints.up("xs")]:{maxWidth:Math.max(i.breakpoints.values.xs,444)}},...s.maxWidth&&s.maxWidth!=="xs"&&{[i.breakpoints.up(s.maxWidth)]:{maxWidth:`${i.breakpoints.values[s.maxWidth]}${i.breakpoints.unit}`}}}));return f.forwardRef(function(s,a){const u=n(s),{className:c,component:d="div",disableGutters:p=!1,fixed:h=!1,maxWidth:g="lg",classes:y,...w}=u,m={...u,component:d,disableGutters:p,fixed:h,maxWidth:g},b=fz(m,o);return x.jsx(r,{as:d,ownerState:m,className:de(b.root,c),ref:a,...w})})}function Og(e,t){var n,o,r;return f.isValidElement(e)&&t.indexOf(e.type.muiName??((r=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:r.muiName))!==-1}function GT(){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:au.white,default:au.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 hz=GT();function _T(){return{text:{primary:au.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:au.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 h0=_T();function g0(e,t,n,o){const r=o.light||o,l=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=ns(e.main,r):t==="dark"&&(e.dark=ts(e.main,l)))}function gz(e="light"){return e==="dark"?{main:us[200],light:us[50],dark:us[400]}:{main:us[700],light:us[400],dark:us[800]}}function mz(e="light"){return e==="dark"?{main:cs[200],light:cs[50],dark:cs[400]}:{main:cs[500],light:cs[300],dark:cs[700]}}function bz(e="light"){return e==="dark"?{main:as[500],light:as[300],dark:as[700]}:{main:as[700],light:as[400],dark:as[800]}}function yz(e="light"){return e==="dark"?{main:ds[400],light:ds[300],dark:ds[700]}:{main:ds[700],light:ds[500],dark:ds[900]}}function vz(e="light"){return e==="dark"?{main:fs[400],light:fs[300],dark:fs[700]}:{main:fs[800],light:fs[500],dark:fs[900]}}function Cz(e="light"){return e==="dark"?{main:oc[400],light:oc[300],dark:oc[700]}:{main:"#ed6c02",light:oc[500],dark:oc[900]}}function gv(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...r}=e,l=e.primary||gz(t),i=e.secondary||mz(t),s=e.error||bz(t),a=e.info||yz(t),u=e.success||vz(t),c=e.warning||Cz(t);function d(y){return FL(y,h0.text.primary)>=n?h0.text.primary:hz.text.primary}const p=({color:y,name:w,mainShade:m=500,lightShade:b=300,darkShade:v=700})=>{if(y={...y},!y.main&&y[m]&&(y.main=y[m]),!y.hasOwnProperty("main"))throw new Error(gl(11,w?` (${w})`:"",m));if(typeof y.main!="string")throw new Error(gl(12,w?` (${w})`:"",JSON.stringify(y.main)));return g0(y,"light",b,o),g0(y,"dark",v,o),y.contrastText||(y.contrastText=d(y.main)),y};let h;return t==="light"?h=GT():t==="dark"&&(h=_T()),qn({common:{...au},mode:t,primary:p({color:l,name:"primary"}),secondary:p({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:a,name:"info"}),success:p({color:u,name:"success"}),grey:t$,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:o,...h},r)}function Sz(e){const t={};return Object.entries(e).forEach(o=>{const[r,l]=o;typeof l=="object"&&(t[r]=`${l.fontStyle?`${l.fontStyle} `:""}${l.fontVariant?`${l.fontVariant} `:""}${l.fontWeight?`${l.fontWeight} `:""}${l.fontStretch?`${l.fontStretch} `:""}${l.fontSize||""}${l.lineHeight?`/${l.lineHeight} `:""}${l.fontFamily||""}`)}),t}function wz(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function xz(e){return Math.round(e*1e5)/1e5}const m0={textTransform:"uppercase"},b0='"Roboto", "Helvetica", "Arial", sans-serif';function VT(e,t){const{fontFamily:n=b0,fontSize:o=14,fontWeightLight:r=300,fontWeightRegular:l=400,fontWeightMedium:i=500,fontWeightBold:s=700,htmlFontSize:a=16,allVariants:u,pxToRem:c,...d}=typeof t=="function"?t(e):t,p=o/14,h=c||(w=>`${w/a*p}rem`),g=(w,m,b,v,S)=>({fontFamily:n,fontWeight:w,fontSize:h(m),lineHeight:b,...n===b0?{letterSpacing:`${xz(v/m)}em`}:{},...S,...u}),y={h1:g(r,96,1.167,-1.5),h2:g(r,60,1.2,-.5),h3:g(l,48,1.167,0),h4:g(l,34,1.235,.25),h5:g(l,24,1.334,0),h6:g(i,20,1.6,.15),subtitle1:g(l,16,1.75,.15),subtitle2:g(i,14,1.57,.1),body1:g(l,16,1.5,.15),body2:g(l,14,1.43,.15),button:g(i,14,1.75,.4,m0),caption:g(l,12,1.66,.4),overline:g(l,12,2.66,1,m0),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return qn({htmlFontSize:a,pxToRem:h,fontFamily:n,fontSize:o,fontWeightLight:r,fontWeightRegular:l,fontWeightMedium:i,fontWeightBold:s,...y},d,{clone:!1})}const Mz=.2,Ez=.14,Tz=.12;function Vt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Mz})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Ez})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Tz})`].join(",")}const Pz=["none",Vt(0,2,1,-1,0,1,1,0,0,1,3,0),Vt(0,3,1,-2,0,2,2,0,0,1,5,0),Vt(0,3,3,-2,0,3,4,0,0,1,8,0),Vt(0,2,4,-1,0,4,5,0,0,1,10,0),Vt(0,3,5,-1,0,5,8,0,0,1,14,0),Vt(0,3,5,-1,0,6,10,0,0,1,18,0),Vt(0,4,5,-2,0,7,10,1,0,2,16,1),Vt(0,5,5,-3,0,8,10,1,0,3,14,2),Vt(0,5,6,-3,0,9,12,1,0,3,16,2),Vt(0,6,6,-3,0,10,14,1,0,4,18,3),Vt(0,6,7,-4,0,11,15,1,0,4,20,3),Vt(0,7,8,-4,0,12,17,2,0,5,22,4),Vt(0,7,8,-4,0,13,19,2,0,5,24,4),Vt(0,7,9,-4,0,14,21,2,0,5,26,4),Vt(0,8,9,-5,0,15,22,2,0,6,28,5),Vt(0,8,10,-5,0,16,24,2,0,6,30,5),Vt(0,8,11,-5,0,17,26,2,0,6,32,5),Vt(0,9,11,-5,0,18,28,2,0,7,34,6),Vt(0,9,12,-6,0,19,29,2,0,7,36,6),Vt(0,10,13,-6,0,20,31,3,0,8,38,7),Vt(0,10,13,-6,0,21,33,3,0,8,40,7),Vt(0,10,14,-6,0,22,35,3,0,8,42,7),Vt(0,11,14,-7,0,23,36,3,0,9,44,8),Vt(0,11,15,-7,0,24,38,3,0,9,46,8)],Iz=Pz,Oz={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)"},Rz={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function y0(e){return`${Math.round(e)}ms`}function kz(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function Az(e){const t={...Oz,...e.easing},n={...Rz,...e.duration};return{getAutoHeightDuration:kz,create:(r=["all"],l={})=>{const{duration:i=n.standard,easing:s=t.easeInOut,delay:a=0,...u}=l;return(Array.isArray(r)?r:[r]).map(c=>`${c} ${typeof i=="string"?i:y0(i)} ${s} ${typeof a=="string"?a:y0(a)}`).join(",")},...e,easing:t,duration:n}}const $z={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},Dz=$z;function Lz(e){return Or(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function UT(e={}){const t={...e};function n(o){const r=Object.entries(o);for(let l=0;l<r.length;l++){const[i,s]=r[l];!Lz(s)||i.startsWith("unstable_")?delete o[i]:Or(s)&&(o[i]={...s},n(o[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles'; 102 103 const theme = ${JSON.stringify(t,null,2)}; 104 105 theme.breakpoints = createBreakpoints(theme.breakpoints || {}); 106 theme.transitions = createTransitions(theme.transitions || {}); 107 108 export default theme;`}function lb(e={},...t){const{breakpoints:n,mixins:o={},spacing:r,palette:l={},transitions:i={},typography:s={},shape:a,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(gl(20));const c=gv(l),d=ph(e);let p=qn(d,{mixins:wz(d.breakpoints,o),palette:c,shadows:Iz.slice(),typography:VT(c,s),transitions:Az(i),zIndex:{...Dz}});return p=qn(p,u),p=t.reduce((h,g)=>qn(h,g),p),p.unstable_sxConfig={..._u,...u==null?void 0:u.unstable_sxConfig},p.unstable_sx=function(g){return Ui({sx:g,theme:this})},p.toRuntimeSource=UT,p}function ib(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const zz=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=ib(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function WT(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function qT(e){return e==="dark"?zz:[]}function Fz(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...r}=e,l=gv(t);return{palette:l,opacity:{...WT(l.mode),...n},overlays:o||qT(l.mode),...r}}function Bz(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const Hz=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],Nz=Hz,jz=e=>(t,n)=>{const o=e.rootSelector||":root",r=e.colorSchemeSelector;let l=r;if(r==="class"&&(l=".%s"),r==="data"&&(l="[data-%s]"),r!=null&&r.startsWith("data-")&&!r.includes("%s")&&(l=`[${r}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const i={};return Nz(e.cssVarPrefix).forEach(s=>{i[s]=n[s],delete n[s]}),l==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:i}}:l?{[l.replace("%s",t)]:i,[`${o}, ${l.replace("%s",t)}`]:n}:{[o]:{...n,...i}}}if(l&&l!=="media")return`${o}, ${l.replace("%s",String(t))}`}else if(t){if(l==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(l)return l.replace("%s",String(t))}return o};function Gz(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ie(e,t,n){!e[t]&&n&&(e[t]=n)}function Cc(e){return typeof e!="string"||!e.startsWith("hsl")?e:zT(e)}function Xr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=vc(Cc(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color(). 109 To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function _z(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Mr=e=>{try{return e()}catch{}},Vz=(e="mui")=>rz(e);function Rg(e,t,n,o){if(!t)return;t=t===!0?{}:t;const r=o==="dark"?"dark":"light";if(!n){e[o]=Fz({...t,palette:{mode:r,...t==null?void 0:t.palette}});return}const{palette:l,...i}=lb({...n,palette:{mode:r,...t==null?void 0:t.palette}});return e[o]={...t,palette:l,opacity:{...WT(r),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||qT(r)},i}function Uz(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:r=!1,cssVarPrefix:l="mui",shouldSkipGeneratingVar:i=Bz,colorSchemeSelector:s=n.light&&n.dark?"media":void 0,rootSelector:a=":root",...u}=e,c=Object.keys(n)[0],d=o||(n.light&&c!=="light"?"light":c),p=Vz(l),{[d]:h,light:g,dark:y,...w}=n,m={...w};let b=h;if((d==="dark"&&!("dark"in n)||d==="light"&&!("light"in n))&&(b=!0),!b)throw new Error(gl(21,d));const v=Rg(m,b,u,d);g&&!m.light&&Rg(m,g,void 0,"light"),y&&!m.dark&&Rg(m,y,void 0,"dark");let S={defaultColorScheme:d,...v,cssVarPrefix:l,colorSchemeSelector:s,rootSelector:a,getCssVar:p,colorSchemes:m,font:{...Sz(v.typography),...v.font},spacing:_z(u.spacing)};Object.keys(S.colorSchemes).forEach(P=>{const C=S.colorSchemes[P].palette,T=A=>{const L=A.split("-"),F=L[1],D=L[2];return p(A,C[F][D])};if(C.mode==="light"&&(ie(C.common,"background","#fff"),ie(C.common,"onBackground","#000")),C.mode==="dark"&&(ie(C.common,"background","#000"),ie(C.common,"onBackground","#fff")),Gz(C,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),C.mode==="light"){ie(C.Alert,"errorColor",zt(C.error.light,.6)),ie(C.Alert,"infoColor",zt(C.info.light,.6)),ie(C.Alert,"successColor",zt(C.success.light,.6)),ie(C.Alert,"warningColor",zt(C.warning.light,.6)),ie(C.Alert,"errorFilledBg",T("palette-error-main")),ie(C.Alert,"infoFilledBg",T("palette-info-main")),ie(C.Alert,"successFilledBg",T("palette-success-main")),ie(C.Alert,"warningFilledBg",T("palette-warning-main")),ie(C.Alert,"errorFilledColor",Mr(()=>C.getContrastText(C.error.main))),ie(C.Alert,"infoFilledColor",Mr(()=>C.getContrastText(C.info.main))),ie(C.Alert,"successFilledColor",Mr(()=>C.getContrastText(C.success.main))),ie(C.Alert,"warningFilledColor",Mr(()=>C.getContrastText(C.warning.main))),ie(C.Alert,"errorStandardBg",Ft(C.error.light,.9)),ie(C.Alert,"infoStandardBg",Ft(C.info.light,.9)),ie(C.Alert,"successStandardBg",Ft(C.success.light,.9)),ie(C.Alert,"warningStandardBg",Ft(C.warning.light,.9)),ie(C.Alert,"errorIconColor",T("palette-error-main")),ie(C.Alert,"infoIconColor",T("palette-info-main")),ie(C.Alert,"successIconColor",T("palette-success-main")),ie(C.Alert,"warningIconColor",T("palette-warning-main")),ie(C.AppBar,"defaultBg",T("palette-grey-100")),ie(C.Avatar,"defaultBg",T("palette-grey-400")),ie(C.Button,"inheritContainedBg",T("palette-grey-300")),ie(C.Button,"inheritContainedHoverBg",T("palette-grey-A100")),ie(C.Chip,"defaultBorder",T("palette-grey-400")),ie(C.Chip,"defaultAvatarColor",T("palette-grey-700")),ie(C.Chip,"defaultIconColor",T("palette-grey-700")),ie(C.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ie(C.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ie(C.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ie(C.LinearProgress,"primaryBg",Ft(C.primary.main,.62)),ie(C.LinearProgress,"secondaryBg",Ft(C.secondary.main,.62)),ie(C.LinearProgress,"errorBg",Ft(C.error.main,.62)),ie(C.LinearProgress,"infoBg",Ft(C.info.main,.62)),ie(C.LinearProgress,"successBg",Ft(C.success.main,.62)),ie(C.LinearProgress,"warningBg",Ft(C.warning.main,.62)),ie(C.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.11)`),ie(C.Slider,"primaryTrack",Ft(C.primary.main,.62)),ie(C.Slider,"secondaryTrack",Ft(C.secondary.main,.62)),ie(C.Slider,"errorTrack",Ft(C.error.main,.62)),ie(C.Slider,"infoTrack",Ft(C.info.main,.62)),ie(C.Slider,"successTrack",Ft(C.success.main,.62)),ie(C.Slider,"warningTrack",Ft(C.warning.main,.62));const A=Ed(C.background.default,.8);ie(C.SnackbarContent,"bg",A),ie(C.SnackbarContent,"color",Mr(()=>C.getContrastText(A))),ie(C.SpeedDialAction,"fabHoverBg",Ed(C.background.paper,.15)),ie(C.StepConnector,"border",T("palette-grey-400")),ie(C.StepContent,"border",T("palette-grey-400")),ie(C.Switch,"defaultColor",T("palette-common-white")),ie(C.Switch,"defaultDisabledColor",T("palette-grey-100")),ie(C.Switch,"primaryDisabledColor",Ft(C.primary.main,.62)),ie(C.Switch,"secondaryDisabledColor",Ft(C.secondary.main,.62)),ie(C.Switch,"errorDisabledColor",Ft(C.error.main,.62)),ie(C.Switch,"infoDisabledColor",Ft(C.info.main,.62)),ie(C.Switch,"successDisabledColor",Ft(C.success.main,.62)),ie(C.Switch,"warningDisabledColor",Ft(C.warning.main,.62)),ie(C.TableCell,"border",Ft(Md(C.divider,1),.88)),ie(C.Tooltip,"bg",Md(C.grey[700],.92))}if(C.mode==="dark"){ie(C.Alert,"errorColor",Ft(C.error.light,.6)),ie(C.Alert,"infoColor",Ft(C.info.light,.6)),ie(C.Alert,"successColor",Ft(C.success.light,.6)),ie(C.Alert,"warningColor",Ft(C.warning.light,.6)),ie(C.Alert,"errorFilledBg",T("palette-error-dark")),ie(C.Alert,"infoFilledBg",T("palette-info-dark")),ie(C.Alert,"successFilledBg",T("palette-success-dark")),ie(C.Alert,"warningFilledBg",T("palette-warning-dark")),ie(C.Alert,"errorFilledColor",Mr(()=>C.getContrastText(C.error.dark))),ie(C.Alert,"infoFilledColor",Mr(()=>C.getContrastText(C.info.dark))),ie(C.Alert,"successFilledColor",Mr(()=>C.getContrastText(C.success.dark))),ie(C.Alert,"warningFilledColor",Mr(()=>C.getContrastText(C.warning.dark))),ie(C.Alert,"errorStandardBg",zt(C.error.light,.9)),ie(C.Alert,"infoStandardBg",zt(C.info.light,.9)),ie(C.Alert,"successStandardBg",zt(C.success.light,.9)),ie(C.Alert,"warningStandardBg",zt(C.warning.light,.9)),ie(C.Alert,"errorIconColor",T("palette-error-main")),ie(C.Alert,"infoIconColor",T("palette-info-main")),ie(C.Alert,"successIconColor",T("palette-success-main")),ie(C.Alert,"warningIconColor",T("palette-warning-main")),ie(C.AppBar,"defaultBg",T("palette-grey-900")),ie(C.AppBar,"darkBg",T("palette-background-paper")),ie(C.AppBar,"darkColor",T("palette-text-primary")),ie(C.Avatar,"defaultBg",T("palette-grey-600")),ie(C.Button,"inheritContainedBg",T("palette-grey-800")),ie(C.Button,"inheritContainedHoverBg",T("palette-grey-700")),ie(C.Chip,"defaultBorder",T("palette-grey-700")),ie(C.Chip,"defaultAvatarColor",T("palette-grey-300")),ie(C.Chip,"defaultIconColor",T("palette-grey-300")),ie(C.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ie(C.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ie(C.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ie(C.LinearProgress,"primaryBg",zt(C.primary.main,.5)),ie(C.LinearProgress,"secondaryBg",zt(C.secondary.main,.5)),ie(C.LinearProgress,"errorBg",zt(C.error.main,.5)),ie(C.LinearProgress,"infoBg",zt(C.info.main,.5)),ie(C.LinearProgress,"successBg",zt(C.success.main,.5)),ie(C.LinearProgress,"warningBg",zt(C.warning.main,.5)),ie(C.Skeleton,"bg",`rgba(${T("palette-text-primaryChannel")} / 0.13)`),ie(C.Slider,"primaryTrack",zt(C.primary.main,.5)),ie(C.Slider,"secondaryTrack",zt(C.secondary.main,.5)),ie(C.Slider,"errorTrack",zt(C.error.main,.5)),ie(C.Slider,"infoTrack",zt(C.info.main,.5)),ie(C.Slider,"successTrack",zt(C.success.main,.5)),ie(C.Slider,"warningTrack",zt(C.warning.main,.5));const A=Ed(C.background.default,.98);ie(C.SnackbarContent,"bg",A),ie(C.SnackbarContent,"color",Mr(()=>C.getContrastText(A))),ie(C.SpeedDialAction,"fabHoverBg",Ed(C.background.paper,.15)),ie(C.StepConnector,"border",T("palette-grey-600")),ie(C.StepContent,"border",T("palette-grey-600")),ie(C.Switch,"defaultColor",T("palette-grey-300")),ie(C.Switch,"defaultDisabledColor",T("palette-grey-600")),ie(C.Switch,"primaryDisabledColor",zt(C.primary.main,.55)),ie(C.Switch,"secondaryDisabledColor",zt(C.secondary.main,.55)),ie(C.Switch,"errorDisabledColor",zt(C.error.main,.55)),ie(C.Switch,"infoDisabledColor",zt(C.info.main,.55)),ie(C.Switch,"successDisabledColor",zt(C.success.main,.55)),ie(C.Switch,"warningDisabledColor",zt(C.warning.main,.55)),ie(C.TableCell,"border",zt(Md(C.divider,1),.68)),ie(C.Tooltip,"bg",Md(C.grey[700],.92))}Xr(C.background,"default"),Xr(C.background,"paper"),Xr(C.common,"background"),Xr(C.common,"onBackground"),Xr(C,"divider"),Object.keys(C).forEach(A=>{const L=C[A];A!=="tonalOffset"&&L&&typeof L=="object"&&(L.main&&ie(C[A],"mainChannel",vc(Cc(L.main))),L.light&&ie(C[A],"lightChannel",vc(Cc(L.light))),L.dark&&ie(C[A],"darkChannel",vc(Cc(L.dark))),L.contrastText&&ie(C[A],"contrastTextChannel",vc(Cc(L.contrastText))),A==="text"&&(Xr(C[A],"primary"),Xr(C[A],"secondary")),A==="action"&&(L.active&&Xr(C[A],"active"),L.selected&&Xr(C[A],"selected")))})}),S=t.reduce((P,C)=>qn(P,C),S);const M={prefix:l,disableCssColorScheme:r,shouldSkipGeneratingVar:i,getSelector:jz(S)},{vars:R,generateThemeVars:k,generateStyleSheets:E}=sz(S,M);return S.vars=R,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([P,C])=>{S[P]=C}),S.generateThemeVars=k,S.generateStyleSheets=E,S.generateSpacing=function(){return TT(u.spacing,cv(this))},S.getColorSchemeSelector=az(s),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=i,S.unstable_sxConfig={..._u,...u==null?void 0:u.unstable_sxConfig},S.unstable_sx=function(C){return Ui({sx:C,theme:this})},S.toRuntimeSource=UT,S}function v0(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:gv({...n===!0?{}:n.palette,mode:t})})}function mh(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:r=n?void 0:{light:!0},defaultColorScheme:l=n==null?void 0:n.mode,...i}=e,s=l||"light",a=r==null?void 0:r[s],u={...r,...n?{[s]:{...typeof a!="boolean"&&a,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return lb(e,...t);let c=n;"palette"in e||u[s]&&(u[s]!==!0?c=u[s].palette:s==="dark"&&(c={mode:"dark"}));const d=lb({...e,palette:c},...t);return d.defaultColorScheme=s,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},v0(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},v0(d,"light",u.light)),d}return!n&&!("light"in u)&&s==="light"&&(u.light=!0),Uz({...i,colorSchemes:u,defaultColorScheme:s,...typeof o!="boolean"&&o},...t)}function Wz(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function qz(e){return parseFloat(e)}const Kz=mh(),mv=Kz;function mi(){const e=hh(mv);return e[Br]||e}function KT(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Yz=e=>KT(e)&&e!=="classes",po=Yz,Xz=DT({themeId:Br,defaultTheme:mv,rootShouldForwardProp:po}),Z=Xz;function Qz({theme:e,...t}){const n=Br in e?e[Br]:void 0;return x.jsx(NT,{...t,themeId:n?Br:void 0,theme:n||e})}const Td={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"},{CssVarsProvider:Zz,useColorScheme:jQ,getInitColorSchemeScript:GQ}=oz({themeId:Br,theme:()=>mh({cssVariables:!0}),colorSchemeStorageKey:Td.colorSchemeStorageKey,modeStorageKey:Td.modeStorageKey,defaultColorScheme:{light:Td.defaultLightColorScheme,dark:Td.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:VT(e.palette,e.typography)};return t.unstable_sx=function(o){return Ui({sx:o,theme:this})},t}}),Jz=Zz;function eF({theme:e,...t}){const n=f.useMemo(()=>{if(typeof e=="function")return e;const o=Br in e?e[Br]:e;return"colorSchemes"in o?null:"vars"in o?e:{...e,vars:null}},[e]);return n?x.jsx(Qz,{theme:n,...t}):x.jsx(Jz,{theme:e,...t})}function C0(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function tF(e){return x.jsx(yL,{...e,defaultTheme:mv,themeId:Br})}function bv(e){return function(n){return x.jsx(tF,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function nF(){return OT}const oF=KL,Fe=oF;function We(e){return qL(e)}function rF(e){return _e("MuiSvgIcon",e)}je("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const lF=e=>{const{color:t,fontSize:n,classes:o}=e,r={root:["root",t!=="inherit"&&`color${re(t)}`,`fontSize${re(n)}`]};return ve(r,rF,o)},iF=Z("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${re(n.color)}`],t[`fontSize${re(n.fontSize)}`]]}})(Fe(({theme:e})=>{var t,n,o,r,l,i,s,a,u,c,d,p,h,g;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(r=(t=e.transitions)==null?void 0:t.create)==null?void 0:r.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:y=>!y.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((i=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:i.call(l,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((a=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:a.call(s,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((c=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,y])=>y&&y.main).map(([y])=>{var w,m;return{props:{color:y},style:{color:(m=(w=(e.vars??e).palette)==null?void 0:w[y])==null?void 0:m.main}}}),{props:{color:"action"},style:{color:(p=(d=(e.vars??e).palette)==null?void 0:d.action)==null?void 0:p.active}},{props:{color:"disabled"},style:{color:(g=(h=(e.vars??e).palette)==null?void 0:h.action)==null?void 0:g.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),YT=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiSvgIcon"}),{children:r,className:l,color:i="inherit",component:s="svg",fontSize:a="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:p="0 0 24 24",...h}=o,g=f.isValidElement(r)&&r.type==="svg",y={...o,color:i,component:s,fontSize:a,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:p,hasSvgAsChild:g},w={};c||(w.viewBox=p);const m=lF(y);return x.jsxs(iF,{as:s,className:de(m.root,l),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...w,...h,...g&&r.props,ownerState:y,children:[g?r.props.children:r,d?x.jsx("title",{children:d}):null]})});YT.muiName="SvgIcon";const S0=YT;function Kn(e,t){function n(o,r){return x.jsx(S0,{"data-testid":void 0,ref:r,...o,children:e})}return n.muiName=S0.muiName,f.memo(f.forwardRef(n))}function Da(e,t=166){let n;function o(...r){const l=()=>{e.apply(this,r)};clearTimeout(n),n=setTimeout(l,t)}return o.clear=()=>{clearTimeout(n)},o}function Yt(e){return e&&e.ownerDocument||document}function br(e){return Yt(e).defaultView||window}function sb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let w0=0;function sF(e){const[t,n]=f.useState(e),o=e||t;return f.useEffect(()=>{t==null&&(w0+=1,n(`mui-${w0}`))},[t]),o}const aF={...Jg},x0=aF.useId;function at(e){if(x0!==void 0){const t=x0();return e??t}return sF(e)}function Bi(e){const{controlled:t,default:n,name:o,state:r="value"}=e,{current:l}=f.useRef(t!==void 0),[i,s]=f.useState(n),a=l?t:i,u=f.useCallback(c=>{l||s(c)},[]);return[a,u]}function Xe(e){const t=f.useRef(e);return Ot(()=>{t.current=e}),f.useRef((...n)=>(0,t.current)(...n)).current}function vt(...e){const t=f.useRef(void 0),n=f.useCallback(o=>{const r=e.map(l=>{if(l==null)return null;if(typeof l=="function"){const i=l,s=i(o);return typeof s=="function"?s:()=>{i(null)}}return l.current=o,()=>{l.current=null}});return()=>{r.forEach(l=>l==null?void 0:l())}},e);return f.useMemo(()=>e.every(o=>o==null)?null:o=>{t.current&&(t.current(),t.current=void 0),o!=null&&(t.current=n(o))},e)}function cF(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function XT(e,t){if(!e)return t;function n(i,s){const a={};return Object.keys(s).forEach(u=>{cF(u,s[u])&&typeof i[u]=="function"&&(a[u]=(...c)=>{i[u](...c),s[u](...c)})}),a}if(typeof e=="function"||typeof t=="function")return i=>{const s=typeof t=="function"?t(i):t,a=typeof e=="function"?e({...i,...s}):e,u=de(i==null?void 0:i.className,s==null?void 0:s.className,a==null?void 0:a.className),c=n(a,s);return{...s,...a,...c,...!!u&&{className:u},...(s==null?void 0:s.style)&&(a==null?void 0:a.style)&&{style:{...s.style,...a.style}},...(s==null?void 0:s.sx)&&(a==null?void 0:a.sx)&&{sx:[...Array.isArray(s.sx)?s.sx:[s.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};const o=t,r=n(e,o),l=de(o==null?void 0:o.className,e==null?void 0:e.className);return{...t,...e,...r,...!!l&&{className:l},...(o==null?void 0:o.style)&&(e==null?void 0:e.style)&&{style:{...o.style,...e.style}},...(o==null?void 0:o.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(o.sx)?o.sx:[o.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function be(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.indexOf(o)!==-1)continue;n[o]=e[o]}return n}function ab(e,t){return ab=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},ab(e,t)}function QT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ab(e,t)}const M0={disabled:!1},Wf=Rr.createContext(null);var uF=function(t){return t.scrollTop},Sc="unmounted",Ti="exited",Pi="entering",xs="entered",cb="exiting",vl=function(e){QT(t,e);function t(o,r){var l;l=e.call(this,o,r)||this;var i=r,s=i&&!i.isMounting?o.enter:o.appear,a;return l.appearStatus=null,o.in?s?(a=Ti,l.appearStatus=Pi):a=xs:o.unmountOnExit||o.mountOnEnter?a=Sc:a=Ti,l.state={status:a},l.nextCallback=null,l}t.getDerivedStateFromProps=function(r,l){var i=r.in;return i&&l.status===Sc?{status:Ti}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var l=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==Pi&&i!==xs&&(l=Pi):(i===Pi||i===xs)&&(l=cb)}this.updateStatus(!1,l)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,l,i,s;return l=i=s=r,r!=null&&typeof r!="number"&&(l=r.exit,i=r.enter,s=r.appear!==void 0?r.appear:i),{exit:l,enter:i,appear:s}},n.updateStatus=function(r,l){if(r===void 0&&(r=!1),l!==null)if(this.cancelNextCallback(),l===Pi){if(this.props.unmountOnExit||this.props.mountOnEnter){var i=this.props.nodeRef?this.props.nodeRef.current:ad.findDOMNode(this);i&&uF(i)}this.performEnter(r)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Ti&&this.setState({status:Sc})},n.performEnter=function(r){var l=this,i=this.props.enter,s=this.context?this.context.isMounting:r,a=this.props.nodeRef?[s]:[ad.findDOMNode(this),s],u=a[0],c=a[1],d=this.getTimeouts(),p=s?d.appear:d.enter;if(!r&&!i||M0.disabled){this.safeSetState({status:xs},function(){l.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:Pi},function(){l.props.onEntering(u,c),l.onTransitionEnd(p,function(){l.safeSetState({status:xs},function(){l.props.onEntered(u,c)})})})},n.performExit=function(){var r=this,l=this.props.exit,i=this.getTimeouts(),s=this.props.nodeRef?void 0:ad.findDOMNode(this);if(!l||M0.disabled){this.safeSetState({status:Ti},function(){r.props.onExited(s)});return}this.props.onExit(s),this.safeSetState({status:cb},function(){r.props.onExiting(s),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:Ti},function(){r.props.onExited(s)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,l){l=this.setNextCallback(l),this.setState(r,l)},n.setNextCallback=function(r){var l=this,i=!0;return this.nextCallback=function(s){i&&(i=!1,l.nextCallback=null,r(s))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,l){this.setNextCallback(l);var i=this.props.nodeRef?this.props.nodeRef.current:ad.findDOMNode(this),s=r==null&&!this.props.addEndListener;if(!i||s){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var a=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],u=a[0],c=a[1];this.props.addEndListener(u,c)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===Sc)return null;var l=this.props,i=l.children;l.in,l.mountOnEnter,l.unmountOnExit,l.appear,l.enter,l.exit,l.timeout,l.addEndListener,l.onEnter,l.onEntering,l.onEntered,l.onExit,l.onExiting,l.onExited,l.nodeRef;var s=be(l,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Rr.createElement(Wf.Provider,{value:null},typeof i=="function"?i(r,s):Rr.cloneElement(Rr.Children.only(i),s))},t}(Rr.Component);vl.contextType=Wf;vl.propTypes={};function ps(){}vl.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ps,onEntering:ps,onEntered:ps,onExit:ps,onExiting:ps,onExited:ps};vl.UNMOUNTED=Sc;vl.EXITED=Ti;vl.ENTERING=Pi;vl.ENTERED=xs;vl.EXITING=cb;const ZT=vl;function dF(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function yv(e,t){var n=function(l){return t&&f.isValidElement(l)?t(l):l},o=Object.create(null);return e&&f.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function fF(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var o=Object.create(null),r=[];for(var l in e)l in t?r.length&&(o[l]=r,r=[]):r.push(l);var i,s={};for(var a in t){if(o[a])for(i=0;i<o[a].length;i++){var u=o[a][i];s[o[a][i]]=n(u)}s[a]=n(a)}for(i=0;i<r.length;i++)s[r[i]]=n(r[i]);return s}function Ii(e,t,n){return n[t]!=null?n[t]:e.props[t]}function pF(e,t){return yv(e.children,function(n){return f.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Ii(n,"appear",e),enter:Ii(n,"enter",e),exit:Ii(n,"exit",e)})})}function hF(e,t,n){var o=yv(e.children),r=fF(t,o);return Object.keys(r).forEach(function(l){var i=r[l];if(f.isValidElement(i)){var s=l in t,a=l in o,u=t[l],c=f.isValidElement(u)&&!u.props.in;a&&(!s||c)?r[l]=f.cloneElement(i,{onExited:n.bind(null,i),in:!0,exit:Ii(i,"exit",e),enter:Ii(i,"enter",e)}):!a&&s&&!c?r[l]=f.cloneElement(i,{in:!1}):a&&s&&f.isValidElement(u)&&(r[l]=f.cloneElement(i,{onExited:n.bind(null,i),in:u.props.in,exit:Ii(i,"exit",e),enter:Ii(i,"enter",e)}))}}),r}var gF=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mF={component:"div",childFactory:function(t){return t}},vv=function(e){QT(t,e);function t(o,r){var l;l=e.call(this,o,r)||this;var i=l.handleExited.bind(dF(l));return l.state={contextValue:{isMounting:!0},handleExited:i,firstRender:!0},l}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,l){var i=l.children,s=l.handleExited,a=l.firstRender;return{children:a?pF(r,s):hF(r,i,s),firstRender:!1}},n.handleExited=function(r,l){var i=yv(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(l),this.mounted&&this.setState(function(s){var a=O({},s.children);return delete a[r.key],{children:a}}))},n.render=function(){var r=this.props,l=r.component,i=r.childFactory,s=be(r,["component","childFactory"]),a=this.state.contextValue,u=gF(this.state.children).map(i);return delete s.appear,delete s.enter,delete s.exit,l===null?Rr.createElement(Wf.Provider,{value:a},u):Rr.createElement(Wf.Provider,{value:a},Rr.createElement(l,s,u))},t}(Rr.Component);vv.propTypes={};vv.defaultProps=mF;const bF=vv,E0={};function vr(e,t){const n=f.useRef(E0);return n.current===E0&&(n.current=e(t)),n}const yF=[];function Cv(e){f.useEffect(e,yF)}class bh{constructor(){qa(this,"currentId",null);qa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});qa(this,"disposeEffect",()=>this.clear)}static create(){return new bh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Wo(){const e=vr(bh.create).current;return Cv(e.disposeEffect),e}const JT=e=>e.scrollTop;function qf(e,t){const{timeout:n,easing:o,style:r={}}=e;return{duration:r.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:r.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:r.transitionDelay}}function vF(e){return _e("MuiPaper",e)}je("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 CF=e=>{const{square:t,elevation:n,variant:o,classes:r}=e,l={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return ve(l,vF,r)},SF=Z("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Fe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),wF=f.forwardRef(function(t,n){var h;const o=We({props:t,name:"MuiPaper"}),r=mi(),{className:l,component:i="div",elevation:s=1,square:a=!1,variant:u="elevation",...c}=o,d={...o,component:i,elevation:s,square:a,variant:u},p=CF(d);return x.jsx(SF,{as:i,ownerState:d,className:de(p.root,l),ref:n,...c,style:{...u==="elevation"&&{"--Paper-shadow":(r.vars||r).shadows[s],...r.vars&&{"--Paper-overlay":(h=r.vars.overlays)==null?void 0:h[s]},...!r.vars&&r.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${lt("#fff",ib(s))}, ${lt("#fff",ib(s))})`}},...c.style}})}),os=wF;function xF(e){return typeof e=="string"}function eP(e,t,n){return e===void 0||xF(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function tP(e,t,n){return typeof e=="function"?e(t,n):e}function nP(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function T0(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function oP(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:l}=e;if(!t){const h=de(n==null?void 0:n.className,l,r==null?void 0:r.className,o==null?void 0:o.className),g={...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},y={...n,...r,...o};return h.length>0&&(y.className=h),Object.keys(g).length>0&&(y.style=g),{props:y,internalRef:void 0}}const i=nP({...r,...o}),s=T0(o),a=T0(r),u=t(i),c=de(u==null?void 0:u.className,n==null?void 0:n.className,l,r==null?void 0:r.className,o==null?void 0:o.className),d={...u==null?void 0:u.style,...n==null?void 0:n.style,...r==null?void 0:r.style,...o==null?void 0:o.style},p={...u,...n,...a,...s};return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}function Ge(e,t){const{className:n,elementType:o,ownerState:r,externalForwardedProps:l,internalForwardedProps:i,shouldForwardComponentProp:s=!1,...a}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...p}=l,h=c[e]||o,g=tP(d[e],r),{props:{component:y,...w},internalRef:m}=oP({className:n,...a,externalForwardedProps:e==="root"?p:void 0,externalSlotProps:g}),b=vt(m,g==null?void 0:g.ref,t.ref),v=e==="root"?y||u:y,S=eP(h,{...e==="root"&&!u&&!c[e]&&i,...e!=="root"&&!c[e]&&i,...w,...v&&!s&&{as:v},...v&&s&&{component:v},ref:b},r);return[h,S]}function Kf(e){try{return e.matches(":focus-visible")}catch{}return!1}class Yf{constructor(){qa(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new Yf}static use(){const t=vr(Yf.create).current,[n,o]=f.useState(!1);return t.shouldMount=n,t.setShouldMount=o,f.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=EF(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function MF(){return Yf.use()}function EF(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function TF(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:l,rippleSize:i,in:s,onExited:a,timeout:u}=e,[c,d]=f.useState(!1),p=de(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),h={width:i,height:i,top:-(i/2)+l,left:-(i/2)+r},g=de(n.child,c&&n.childLeaving,o&&n.childPulsate);return!s&&!c&&d(!0),f.useEffect(()=>{if(!s&&a!=null){const y=setTimeout(a,u);return()=>{clearTimeout(y)}}},[a,s,u]),x.jsx("span",{className:p,style:h,children:x.jsx("span",{className:g})})}const PF=je("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zo=PF,ub=550,IF=80,OF=tr` 110 0% { 111 transform: scale(0); 112 opacity: 0.1; 113 } 114 115 100% { 116 transform: scale(1); 117 opacity: 0.3; 118 } 119 `,RF=tr` 120 0% { 121 opacity: 1; 122 } 123 124 100% { 125 opacity: 0; 126 } 127 `,kF=tr` 128 0% { 129 transform: scale(1); 130 } 131 132 50% { 133 transform: scale(0.92); 134 } 135 136 100% { 137 transform: scale(1); 138 } 139 `,AF=Z("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),$F=Z(TF,{name:"MuiTouchRipple",slot:"Ripple"})` 140 opacity: 0; 141 position: absolute; 142 143 &.${zo.rippleVisible} { 144 opacity: 0.3; 145 transform: scale(1); 146 animation-name: ${OF}; 147 animation-duration: ${ub}ms; 148 animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; 149 } 150 151 &.${zo.ripplePulsate} { 152 animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; 153 } 154 155 & .${zo.child} { 156 opacity: 1; 157 display: block; 158 width: 100%; 159 height: 100%; 160 border-radius: 50%; 161 background-color: currentColor; 162 } 163 164 & .${zo.childLeaving} { 165 opacity: 0; 166 animation-name: ${RF}; 167 animation-duration: ${ub}ms; 168 animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; 169 } 170 171 & .${zo.childPulsate} { 172 position: absolute; 173 /* @noflip */ 174 left: 0px; 175 top: 0; 176 animation-name: ${kF}; 177 animation-duration: 2500ms; 178 animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; 179 animation-iteration-count: infinite; 180 animation-delay: 200ms; 181 } 182 `,DF=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTouchRipple"}),{center:r=!1,classes:l={},className:i,...s}=o,[a,u]=f.useState([]),c=f.useRef(0),d=f.useRef(null);f.useEffect(()=>{d.current&&(d.current(),d.current=null)},[a]);const p=f.useRef(!1),h=Wo(),g=f.useRef(null),y=f.useRef(null),w=f.useCallback(S=>{const{pulsate:M,rippleX:R,rippleY:k,rippleSize:E,cb:P}=S;u(C=>[...C,x.jsx($F,{classes:{ripple:de(l.ripple,zo.ripple),rippleVisible:de(l.rippleVisible,zo.rippleVisible),ripplePulsate:de(l.ripplePulsate,zo.ripplePulsate),child:de(l.child,zo.child),childLeaving:de(l.childLeaving,zo.childLeaving),childPulsate:de(l.childPulsate,zo.childPulsate)},timeout:ub,pulsate:M,rippleX:R,rippleY:k,rippleSize:E},c.current)]),c.current+=1,d.current=P},[l]),m=f.useCallback((S={},M={},R=()=>{})=>{const{pulsate:k=!1,center:E=r||M.pulsate,fakeElement:P=!1}=M;if((S==null?void 0:S.type)==="mousedown"&&p.current){p.current=!1;return}(S==null?void 0:S.type)==="touchstart"&&(p.current=!0);const C=P?null:y.current,T=C?C.getBoundingClientRect():{width:0,height:0,left:0,top:0};let A,L,F;if(E||S===void 0||S.clientX===0&&S.clientY===0||!S.clientX&&!S.touches)A=Math.round(T.width/2),L=Math.round(T.height/2);else{const{clientX:D,clientY:I}=S.touches&&S.touches.length>0?S.touches[0]:S;A=Math.round(D-T.left),L=Math.round(I-T.top)}if(E)F=Math.sqrt((2*T.width**2+T.height**2)/3),F%2===0&&(F+=1);else{const D=Math.max(Math.abs((C?C.clientWidth:0)-A),A)*2+2,I=Math.max(Math.abs((C?C.clientHeight:0)-L),L)*2+2;F=Math.sqrt(D**2+I**2)}S!=null&&S.touches?g.current===null&&(g.current=()=>{w({pulsate:k,rippleX:A,rippleY:L,rippleSize:F,cb:R})},h.start(IF,()=>{g.current&&(g.current(),g.current=null)})):w({pulsate:k,rippleX:A,rippleY:L,rippleSize:F,cb:R})},[r,w,h]),b=f.useCallback(()=>{m({},{pulsate:!0})},[m]),v=f.useCallback((S,M)=>{if(h.clear(),(S==null?void 0:S.type)==="touchend"&&g.current){g.current(),g.current=null,h.start(0,()=>{v(S,M)});return}g.current=null,u(R=>R.length>0?R.slice(1):R),d.current=M},[h]);return f.useImperativeHandle(n,()=>({pulsate:b,start:m,stop:v}),[b,m,v]),x.jsx(AF,{className:de(zo.root,l.root,i),ref:y,...s,children:x.jsx(bF,{component:null,exit:!0,children:a})})}),LF=DF;function zF(e){return _e("MuiButtonBase",e)}const FF=je("MuiButtonBase",["root","disabled","focusVisible"]),BF=FF,HF=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:r}=e,i=ve({root:["root",t&&"disabled",n&&"focusVisible"]},zF,r);return n&&o&&(i.root+=` ${o}`),i},NF=Z("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"},[`&.${BF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jF=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiButtonBase"}),{action:r,centerRipple:l=!1,children:i,className:s,component:a="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:p=!1,focusVisibleClassName:h,LinkComponent:g="a",onBlur:y,onClick:w,onContextMenu:m,onDragLeave:b,onFocus:v,onFocusVisible:S,onKeyDown:M,onKeyUp:R,onMouseDown:k,onMouseLeave:E,onMouseUp:P,onTouchEnd:C,onTouchMove:T,onTouchStart:A,tabIndex:L=0,TouchRippleProps:F,touchRippleRef:D,type:I,...$}=o,B=f.useRef(null),G=MF(),j=vt(G.ref,D),[N,H]=f.useState(!1);u&&N&&H(!1),f.useImperativeHandle(r,()=>({focusVisible:()=>{H(!0),B.current.focus()}}),[]);const _=G.shouldMount&&!c&&!u;f.useEffect(()=>{N&&p&&!c&&G.pulsate()},[c,p,N,G]);const U=Qr(G,"start",k,d),K=Qr(G,"stop",m,d),X=Qr(G,"stop",b,d),oe=Qr(G,"stop",P,d),ue=Qr(G,"stop",Q=>{N&&Q.preventDefault(),E&&E(Q)},d),V=Qr(G,"start",A,d),W=Qr(G,"stop",C,d),ne=Qr(G,"stop",T,d),J=Qr(G,"stop",Q=>{Kf(Q.target)||H(!1),y&&y(Q)},!1),Y=Xe(Q=>{B.current||(B.current=Q.currentTarget),Kf(Q.target)&&(H(!0),S&&S(Q)),v&&v(Q)}),ee=()=>{const Q=B.current;return a&&a!=="button"&&!(Q.tagName==="A"&&Q.href)},pe=Xe(Q=>{p&&!Q.repeat&&N&&Q.key===" "&&G.stop(Q,()=>{G.start(Q)}),Q.target===Q.currentTarget&&ee()&&Q.key===" "&&Q.preventDefault(),M&&M(Q),Q.target===Q.currentTarget&&ee()&&Q.key==="Enter"&&!u&&(Q.preventDefault(),w&&w(Q))}),me=Xe(Q=>{p&&Q.key===" "&&N&&!Q.defaultPrevented&&G.stop(Q,()=>{G.pulsate(Q)}),R&&R(Q),w&&Q.target===Q.currentTarget&&ee()&&Q.key===" "&&!Q.defaultPrevented&&w(Q)});let ye=a;ye==="button"&&($.href||$.to)&&(ye=g);const te={};ye==="button"?(te.type=I===void 0?"button":I,te.disabled=u):(!$.href&&!$.to&&(te.role="button"),u&&(te["aria-disabled"]=u));const Ce=vt(n,B),ge={...o,centerRipple:l,component:a,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:p,tabIndex:L,focusVisible:N},Te=HF(ge);return x.jsxs(NF,{as:ye,className:de(Te.root,s),ownerState:ge,onBlur:J,onClick:w,onContextMenu:K,onFocus:Y,onKeyDown:pe,onKeyUp:me,onMouseDown:U,onMouseLeave:ue,onMouseUp:oe,onDragLeave:X,onTouchEnd:W,onTouchMove:ne,onTouchStart:V,ref:Ce,tabIndex:u?-1:L,type:I,...te,...$,children:[i,_?x.jsx(LF,{ref:j,center:l,...F}):null]})});function Qr(e,t,n,o=!1){return Xe(r=>(n&&n(r),o||e[t](r),!0))}const di=jF;function GF(e){return typeof e.main=="string"}function _F(e,t=[]){if(!GF(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function ln(e=[]){return([,t])=>t&&_F(t,e)}function VF(e){return _e("MuiCircularProgress",e)}je("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const kl=44,db=tr` 183 0% { 184 transform: rotate(0deg); 185 } 186 187 100% { 188 transform: rotate(360deg); 189 } 190 `,fb=tr` 191 0% { 192 stroke-dasharray: 1px, 200px; 193 stroke-dashoffset: 0; 194 } 195 196 50% { 197 stroke-dasharray: 100px, 200px; 198 stroke-dashoffset: -15px; 199 } 200 201 100% { 202 stroke-dasharray: 1px, 200px; 203 stroke-dashoffset: -126px; 204 } 205 `,UF=typeof db!="string"?gi` 206 animation: ${db} 1.4s linear infinite; 207 `:null,WF=typeof fb!="string"?gi` 208 animation: ${fb} 1.4s ease-in-out infinite; 209 `:null,qF=e=>{const{classes:t,variant:n,color:o,disableShrink:r}=e,l={root:["root",n,`color${re(o)}`],svg:["svg"],circle:["circle",`circle${re(n)}`,r&&"circleDisableShrink"]};return ve(l,VF,t)},KF=Z("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${re(n.color)}`]]}})(Fe(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:UF||{animation:`${db} 1.4s linear infinite`}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),YF=Z("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),XF=Z("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${re(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Fe(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:WF||{animation:`${fb} 1.4s ease-in-out infinite`}}]}))),QF=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiCircularProgress"}),{className:r,color:l="primary",disableShrink:i=!1,size:s=40,style:a,thickness:u=3.6,value:c=0,variant:d="indeterminate",...p}=o,h={...o,color:l,disableShrink:i,size:s,thickness:u,value:c,variant:d},g=qF(h),y={},w={},m={};if(d==="determinate"){const b=2*Math.PI*((kl-u)/2);y.strokeDasharray=b.toFixed(3),m["aria-valuenow"]=Math.round(c),y.strokeDashoffset=`${((100-c)/100*b).toFixed(3)}px`,w.transform="rotate(-90deg)"}return x.jsx(KF,{className:de(g.root,r),style:{width:s,height:s,...w,...a},ownerState:h,ref:n,role:"progressbar",...m,...p,children:x.jsx(YF,{className:g.svg,ownerState:h,viewBox:`${kl/2} ${kl/2} ${kl} ${kl}`,children:x.jsx(XF,{className:g.circle,style:y,ownerState:h,cx:kl,cy:kl,r:(kl-u)/2,fill:"none",strokeWidth:u})})})}),Sv=QF;function ZF(e){return _e("MuiIconButton",e)}const JF=je("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),pb=JF,eB=e=>{const{classes:t,disabled:n,color:o,edge:r,size:l,loading:i}=e,s={root:["root",i&&"loading",n&&"disabled",o!=="default"&&`color${re(o)}`,r&&`edge${re(r)}`,`size${re(l)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return ve(s,ZF,t)},tB=Z(di,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${re(n.color)}`],n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})(Fe(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.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}}]})),Fe(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${pb.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${pb.loading}`]:{color:"transparent"}}))),nB=Z("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),oB=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiIconButton"}),{edge:r=!1,children:l,className:i,color:s="default",disabled:a=!1,disableFocusRipple:u=!1,size:c="medium",id:d,loading:p=null,loadingIndicator:h,...g}=o,y=at(d),w=h??x.jsx(Sv,{"aria-labelledby":y,color:"inherit",size:16}),m={...o,edge:r,color:s,disabled:a,disableFocusRipple:u,loading:p,loadingIndicator:w,size:c},b=eB(m);return x.jsxs(tB,{id:p?y:d,className:de(b.root,i),centerRipple:!0,focusRipple:!u,disabled:a||p,ref:n,...g,ownerState:m,children:[typeof p=="boolean"&&x.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:x.jsx(nB,{className:b.loadingIndicator,ownerState:m,children:p&&w})}),l]})}),il=oB,rB=Kn(x.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"}));function lB(e){return _e("MuiTypography",e)}const P0=je("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),iB={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},sB=nF(),aB=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:r,variant:l,classes:i}=e,s={root:["root",l,e.align!=="inherit"&&`align${re(t)}`,n&&"gutterBottom",o&&"noWrap",r&&"paragraph"]};return ve(s,lB,i)},cB=Z("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${re(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Fe(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(ln()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${re(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),I0={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},uB=f.forwardRef(function(t,n){const{color:o,...r}=We({props:t,name:"MuiTypography"}),l=!iB[o],i=sB({...r,...l&&{color:o}}),{align:s="inherit",className:a,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:p=!1,variant:h="body1",variantMapping:g=I0,...y}=i,w={...i,align:s,color:o,className:a,component:u,gutterBottom:c,noWrap:d,paragraph:p,variant:h,variantMapping:g},m=u||(p?"p":g[h]||I0[h])||"span",b=aB(w);return x.jsx(cB,{as:m,ref:n,className:de(b.root,a),...y,ownerState:w,style:{...s!=="inherit"&&{"--Typography-textAlign":s},...y.style}})}),$r=uB,dB=e=>{const t=f.useRef({});return f.useEffect(()=>{t.current=e}),t.current},wv=dB;function O0(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function fB(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:o,matchFrom:r="any",stringify:l,trim:i=!1}=e;return(s,{inputValue:a,getOptionLabel:u})=>{let c=i?a.trim():a;n&&(c=c.toLowerCase()),t&&(c=O0(c));const d=c?s.filter(p=>{let h=(l||u)(p);return n&&(h=h.toLowerCase()),t&&(h=O0(h)),r==="start"?h.startsWith(c):h.includes(c)}):s;return typeof o=="number"?d.slice(0,o):d}}const pB=fB(),R0=5,hB=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},gB=[];function k0(e,t,n,o){if(t||e==null||o)return"";const r=n(e);return typeof r=="string"?r:""}function mB(e){const{unstable_isActiveElementInListbox:t=hB,unstable_classNamePrefix:n="Mui",autoComplete:o=!1,autoHighlight:r=!1,autoSelect:l=!1,blurOnSelect:i=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:a=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?gB:null,disableClearable:d=!1,disableCloseOnSelect:p=!1,disabled:h,disabledItemsFocusable:g=!1,disableListWrap:y=!1,filterOptions:w=pB,filterSelectedOptions:m=!1,freeSolo:b=!1,getOptionDisabled:v,getOptionKey:S,getOptionLabel:M=ae=>ae.label??ae,groupBy:R,handleHomeEndKeys:k=!e.freeSolo,id:E,includeInputInList:P=!1,inputValue:C,isOptionEqualToValue:T=(ae,se)=>ae===se,multiple:A=!1,onChange:L,onClose:F,onHighlightChange:D,onInputChange:I,onOpen:$,open:B,openOnFocus:G=!1,options:j,readOnly:N=!1,renderValue:H,selectOnFocus:_=!e.freeSolo,value:U}=e,K=at(E);let X=M;X=ae=>{const se=M(ae);return typeof se!="string"?String(se):se};const oe=f.useRef(!1),ue=f.useRef(!0),V=f.useRef(null),W=f.useRef(null),[ne,J]=f.useState(null),[Y,ee]=f.useState(-1),pe=r?0:-1,me=f.useRef(pe),ye=f.useRef(k0(c??U,A,X)).current,[te,Ce]=Bi({controlled:U,default:c,name:u}),[ge,Te]=Bi({controlled:C,default:ye,name:u,state:"inputValue"}),[Q,ke]=f.useState(!1),Ie=f.useCallback((ae,se,$e)=>{if(!(A?te.length<se.length:se!==null)&&!s)return;const Ke=k0(se,A,X,H);ge!==Ke&&(Te(Ke),I&&I(ae,Ke,$e))},[X,ge,A,I,Te,s,te,H]),[Le,Ne]=Bi({controlled:B,default:!1,name:u,state:"open"}),[qe,De]=f.useState(!0),Ee=!A&&te!=null&&ge===X(te),Oe=Le&&!N,ce=Oe?w(j.filter(ae=>!(m&&(A?te:[te]).some(se=>se!==null&&T(ae,se)))),{inputValue:Ee&&qe?"":ge,getOptionLabel:X}):[],Ve=wv({filteredOptions:ce,value:te,inputValue:ge});f.useEffect(()=>{const ae=te!==Ve.value;Q&&!ae||b&&!ae||Ie(null,te,"reset")},[te,Ie,Q,Ve.value,b]);const et=Le&&ce.length>0&&!N,we=Xe(ae=>{if(ae===-1)V.current.focus();else{const se=H?"data-item-index":"data-tag-index";ne.querySelector(`[${se}="${ae}"]`).focus()}});f.useEffect(()=>{A&&Y>te.length-1&&(ee(-1),we(-1))},[te,A,Y,we]);function xe(ae,se){if(!W.current||ae<0||ae>=ce.length)return-1;let $e=ae;for(;;){const ct=W.current.querySelector(`[data-option-index="${$e}"]`),Ke=g?!1:!ct||ct.disabled||ct.getAttribute("aria-disabled")==="true";if(ct&&ct.hasAttribute("tabindex")&&!Ke)return $e;if(se==="next"?$e=($e+1)%ce.length:$e=($e-1+ce.length)%ce.length,$e===ae)return-1}}const ze=Xe(({event:ae,index:se,reason:$e})=>{if(me.current=se,se===-1?V.current.removeAttribute("aria-activedescendant"):V.current.setAttribute("aria-activedescendant",`${K}-option-${se}`),D&&["mouse","keyboard","touch"].includes($e)&&D(ae,se===-1?null:ce[se],$e),!W.current)return;const ct=W.current.querySelector(`[role="option"].${n}-focused`);ct&&(ct.classList.remove(`${n}-focused`),ct.classList.remove(`${n}-focusVisible`));let Ke=W.current;if(W.current.getAttribute("role")!=="listbox"&&(Ke=W.current.parentElement.querySelector('[role="listbox"]')),!Ke)return;if(se===-1){Ke.scrollTop=0;return}const sn=W.current.querySelector(`[data-option-index="${se}"]`);if(sn&&(sn.classList.add(`${n}-focused`),$e==="keyboard"&&sn.classList.add(`${n}-focusVisible`),Ke.scrollHeight>Ke.clientHeight&&$e!=="mouse"&&$e!=="touch")){const fn=sn,ko=Ke.clientHeight+Ke.scrollTop,Hh=fn.offsetTop+fn.offsetHeight;Hh>ko?Ke.scrollTop=Hh-Ke.clientHeight:fn.offsetTop-fn.offsetHeight*(R?1.3:0)<Ke.scrollTop&&(Ke.scrollTop=fn.offsetTop-fn.offsetHeight*(R?1.3:0))}}),Ze=Xe(({event:ae,diff:se,direction:$e="next",reason:ct})=>{if(!Oe)return;const sn=xe((()=>{const fn=ce.length-1;if(se==="reset")return pe;if(se==="start")return 0;if(se==="end")return fn;const ko=me.current+se;return ko<0?ko===-1&&P?-1:y&&me.current!==-1||Math.abs(se)>1?0:fn:ko>fn?ko===fn+1&&P?-1:y||Math.abs(se)>1?fn:0:ko})(),$e);if(ze({index:sn,reason:ct,event:ae}),o&&se!=="reset")if(sn===-1)V.current.value=ge;else{const fn=X(ce[sn]);V.current.value=fn,fn.toLowerCase().indexOf(ge.toLowerCase())===0&&ge.length>0&&V.current.setSelectionRange(ge.length,fn.length)}}),Qt=()=>{const ae=(se,$e)=>{const ct=se?X(se):"",Ke=$e?X($e):"";return ct===Ke};if(me.current!==-1&&Ve.filteredOptions&&Ve.filteredOptions.length!==ce.length&&Ve.inputValue===ge&&(A?te.length===Ve.value.length&&Ve.value.every((se,$e)=>X(te[$e])===X(se)):ae(Ve.value,te))){const se=Ve.filteredOptions[me.current];if(se)return ce.findIndex($e=>X($e)===X(se))}return-1},bn=f.useCallback(()=>{if(!Oe)return;const ae=Qt();if(ae!==-1){me.current=ae;return}const se=A?te[0]:te;if(ce.length===0||se==null){Ze({diff:"reset"});return}if(W.current){if(se!=null){const $e=ce[me.current];if(A&&$e&&te.findIndex(Ke=>T($e,Ke))!==-1)return;const ct=ce.findIndex(Ke=>T(Ke,se));ct===-1?Ze({diff:"reset"}):ze({index:ct});return}if(me.current>=ce.length-1){ze({index:ce.length-1});return}ze({index:me.current})}},[ce.length,A?!1:te,m,Ze,ze,Oe,ge,A]),rr=Xe(ae=>{sb(W,ae),ae&&bn()});f.useEffect(()=>{bn()},[bn]);const Jt=ae=>{Le||(Ne(!0),De(!0),$&&$(ae))},$n=(ae,se)=>{Le&&(Ne(!1),F&&F(ae,se))},Dn=(ae,se,$e,ct)=>{if(A){if(te.length===se.length&&te.every((Ke,sn)=>Ke===se[sn]))return}else if(te===se)return;L&&L(ae,se,$e,ct),Ce(se)},Yn=f.useRef(!1),Ln=(ae,se,$e="selectOption",ct="options")=>{let Ke=$e,sn=se;if(A){sn=Array.isArray(te)?te.slice():[];const fn=sn.findIndex(ko=>T(se,ko));fn===-1?sn.push(se):ct!=="freeSolo"&&(sn.splice(fn,1),Ke="removeOption")}Ie(ae,sn,Ke),Dn(ae,sn,Ke,{option:se}),!p&&(!ae||!ae.ctrlKey&&!ae.metaKey)&&$n(ae,Ke),(i===!0||i==="touch"&&Yn.current||i==="mouse"&&!Yn.current)&&V.current.blur()};function lr(ae,se){if(ae===-1)return-1;let $e=ae;for(;;){if(se==="next"&&$e===te.length||se==="previous"&&$e===-1)return-1;const ct=H?"data-item-index":"data-tag-index",Ke=ne.querySelector(`[${ct}="${$e}"]`);if(!Ke||!Ke.hasAttribute("tabindex")||Ke.disabled||Ke.getAttribute("aria-disabled")==="true")$e+=se==="next"?1:-1;else return $e}}const Ye=(ae,se)=>{if(!A)return;ge===""&&$n(ae,"toggleInput");let $e=Y;Y===-1?ge===""&&se==="previous"&&($e=te.length-1):($e+=se==="next"?1:-1,$e<0&&($e=0),$e===te.length&&($e=-1)),$e=lr($e,se),ee($e),we($e)},jt=ae=>{oe.current=!0,Te(""),I&&I(ae,"","clear"),Dn(ae,A?[]:null,"clear")},Ae=ae=>se=>{if(ae.onKeyDown&&ae.onKeyDown(se),!se.defaultMuiPrevented&&(Y!==-1&&!["ArrowLeft","ArrowRight"].includes(se.key)&&(ee(-1),we(-1)),se.which!==229))switch(se.key){case"Home":Oe&&k&&(se.preventDefault(),Ze({diff:"start",direction:"next",reason:"keyboard",event:se}));break;case"End":Oe&&k&&(se.preventDefault(),Ze({diff:"end",direction:"previous",reason:"keyboard",event:se}));break;case"PageUp":se.preventDefault(),Ze({diff:-R0,direction:"previous",reason:"keyboard",event:se}),Jt(se);break;case"PageDown":se.preventDefault(),Ze({diff:R0,direction:"next",reason:"keyboard",event:se}),Jt(se);break;case"ArrowDown":se.preventDefault(),Ze({diff:1,direction:"next",reason:"keyboard",event:se}),Jt(se);break;case"ArrowUp":se.preventDefault(),Ze({diff:-1,direction:"previous",reason:"keyboard",event:se}),Jt(se);break;case"ArrowLeft":!A&&H?we(0):Ye(se,"previous");break;case"ArrowRight":!A&&H?we(-1):Ye(se,"next");break;case"Enter":if(me.current!==-1&&Oe){const $e=ce[me.current],ct=v?v($e):!1;if(se.preventDefault(),ct)return;Ln(se,$e,"selectOption"),o&&V.current.setSelectionRange(V.current.value.length,V.current.value.length)}else b&&ge!==""&&Ee===!1&&(A&&se.preventDefault(),Ln(se,ge,"createOption","freeSolo"));break;case"Escape":Oe?(se.preventDefault(),se.stopPropagation(),$n(se,"escape")):a&&(ge!==""||A&&te.length>0||H)&&(se.preventDefault(),se.stopPropagation(),jt(se));break;case"Backspace":if(A&&!N&&ge===""&&te.length>0){const $e=Y===-1?te.length-1:Y,ct=te.slice();ct.splice($e,1),Dn(se,ct,"removeOption",{option:te[$e]})}!A&&H&&!N&&(Ce(null),we(-1));break;case"Delete":if(A&&!N&&ge===""&&te.length>0&&Y!==-1){const $e=Y,ct=te.slice();ct.splice($e,1),Dn(se,ct,"removeOption",{option:te[$e]})}!A&&H&&!N&&(Ce(null),we(-1));break}},Be=ae=>{ke(!0),G&&!oe.current&&Jt(ae)},ot=ae=>{if(t(W)){V.current.focus();return}ke(!1),ue.current=!0,oe.current=!1,l&&me.current!==-1&&Oe?Ln(ae,ce[me.current],"blur"):l&&b&&ge!==""?Ln(ae,ge,"blur","freeSolo"):s&&Ie(ae,te,"blur"),$n(ae,"blur")},ut=ae=>{const se=ae.target.value;ge!==se&&(Te(se),De(!1),I&&I(ae,se,"input")),se===""?!d&&!A&&Dn(ae,null,"clear"):Jt(ae)},kt=ae=>{const se=Number(ae.currentTarget.getAttribute("data-option-index"));me.current!==se&&ze({event:ae,index:se,reason:"mouse"})},no=ae=>{ze({event:ae,index:Number(ae.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Yn.current=!0},ir=ae=>{const se=Number(ae.currentTarget.getAttribute("data-option-index"));Ln(ae,ce[se],"selectOption"),Yn.current=!1},Sr=ae=>se=>{const $e=te.slice();$e.splice(ae,1),Dn(se,$e,"removeOption",{option:te[ae]})},Va=ae=>{Dn(ae,null,"removeOption",{option:te})},wr=ae=>{Le?$n(ae,"toggleInput"):Jt(ae)},zn=ae=>{ae.currentTarget.contains(ae.target)&&ae.target.getAttribute("id")!==K&&ae.preventDefault()},En=ae=>{ae.currentTarget.contains(ae.target)&&(V.current.focus(),_&&ue.current&&V.current.selectionEnd-V.current.selectionStart===0&&V.current.select(),ue.current=!1)},El=ae=>{!h&&(ge===""||!Le)&&wr(ae)};let Ua=b&&ge.length>0;Ua=Ua||(A?te.length>0:te!==null);let rd=ce;return R&&(rd=ce.reduce((ae,se,$e)=>{const ct=R(se);return ae.length>0&&ae[ae.length-1].group===ct?ae[ae.length-1].options.push(se):ae.push({key:$e,index:$e,group:ct,options:[se]}),ae},[])),h&&Q&&ot(),{getRootProps:(ae={})=>({...ae,onKeyDown:Ae(ae),onMouseDown:zn,onClick:En}),getInputLabelProps:()=>({id:`${K}-label`,htmlFor:K}),getInputProps:()=>({id:K,value:ge,onBlur:ot,onFocus:Be,onChange:ut,onMouseDown:El,"aria-activedescendant":Oe?"":null,"aria-autocomplete":o?"both":"list","aria-controls":et?`${K}-listbox`:void 0,"aria-expanded":et,autoComplete:"off",ref:V,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:h}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:jt}),getItemProps:({index:ae=0}={})=>({...A&&{key:ae},...H?{"data-item-index":ae}:{"data-tag-index":ae},tabIndex:-1,...!N&&{onDelete:A?Sr(ae):Va}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:wr}),getTagProps:({index:ae})=>({key:ae,"data-tag-index":ae,tabIndex:-1,...!N&&{onDelete:Sr(ae)}}),getListboxProps:()=>({role:"listbox",id:`${K}-listbox`,"aria-labelledby":`${K}-label`,ref:rr,onMouseDown:ae=>{ae.preventDefault()}}),getOptionProps:({index:ae,option:se})=>{const $e=(A?te:[te]).some(Ke=>Ke!=null&&T(se,Ke)),ct=v?v(se):!1;return{key:(S==null?void 0:S(se))??X(se),tabIndex:-1,role:"option",id:`${K}-option-${ae}`,onMouseMove:kt,onClick:ir,onTouchStart:no,"data-option-index":ae,"aria-disabled":ct,"aria-selected":$e}},id:K,inputValue:ge,value:te,dirty:Ua,expanded:Oe&&ne,popupOpen:Oe,focused:Q||Y!==-1,anchorEl:ne,setAnchorEl:J,focusedItem:Y,focusedTag:Y,groupedOptions:rd}}var so="top",Jo="bottom",er="right",ao="left",xv="auto",Vu=[so,Jo,er,ao],ga="start",fu="end",bB="clippingParents",rP="viewport",lc="popper",yB="reference",A0=Vu.reduce(function(e,t){return e.concat([t+"-"+ga,t+"-"+fu])},[]),lP=[].concat(Vu,[xv]).reduce(function(e,t){return e.concat([t,t+"-"+ga,t+"-"+fu])},[]),vB="beforeRead",CB="read",SB="afterRead",wB="beforeMain",xB="main",MB="afterMain",EB="beforeWrite",TB="write",PB="afterWrite",IB=[vB,CB,SB,wB,xB,MB,EB,TB,PB];function jr(e){return e?(e.nodeName||"").toLowerCase():null}function Io(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){var t=Io(e).Element;return e instanceof t||e instanceof Element}function Yo(e){var t=Io(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Mv(e){if(typeof ShadowRoot>"u")return!1;var t=Io(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function OB(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var o=t.styles[n]||{},r=t.attributes[n]||{},l=t.elements[n];!Yo(l)||!jr(l)||(Object.assign(l.style,o),Object.keys(r).forEach(function(i){var s=r[i];s===!1?l.removeAttribute(i):l.setAttribute(i,s===!0?"":s)}))})}function RB(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(o){var r=t.elements[o],l=t.attributes[o]||{},i=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:n[o]),s=i.reduce(function(a,u){return a[u]="",a},{});!Yo(r)||!jr(r)||(Object.assign(r.style,s),Object.keys(l).forEach(function(a){r.removeAttribute(a)}))})}}const kB={name:"applyStyles",enabled:!0,phase:"write",fn:OB,effect:RB,requires:["computeStyles"]};function Nr(e){return e.split("-")[0]}var Hi=Math.max,Xf=Math.min,ma=Math.round;function hb(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function iP(){return!/^((?!chrome|android).)*safari/i.test(hb())}function ba(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var o=e.getBoundingClientRect(),r=1,l=1;t&&Yo(e)&&(r=e.offsetWidth>0&&ma(o.width)/e.offsetWidth||1,l=e.offsetHeight>0&&ma(o.height)/e.offsetHeight||1);var i=Wi(e)?Io(e):window,s=i.visualViewport,a=!iP()&&n,u=(o.left+(a&&s?s.offsetLeft:0))/r,c=(o.top+(a&&s?s.offsetTop:0))/l,d=o.width/r,p=o.height/l;return{width:d,height:p,top:c,right:u+d,bottom:c+p,left:u,x:u,y:c}}function Ev(e){var t=ba(e),n=e.offsetWidth,o=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:o}}function sP(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Mv(n)){var o=t;do{if(o&&e.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function bl(e){return Io(e).getComputedStyle(e)}function AB(e){return["table","td","th"].indexOf(jr(e))>=0}function bi(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function yh(e){return jr(e)==="html"?e:e.assignedSlot||e.parentNode||(Mv(e)?e.host:null)||bi(e)}function $0(e){return!Yo(e)||bl(e).position==="fixed"?null:e.offsetParent}function $B(e){var t=/firefox/i.test(hb()),n=/Trident/i.test(hb());if(n&&Yo(e)){var o=bl(e);if(o.position==="fixed")return null}var r=yh(e);for(Mv(r)&&(r=r.host);Yo(r)&&["html","body"].indexOf(jr(r))<0;){var l=bl(r);if(l.transform!=="none"||l.perspective!=="none"||l.contain==="paint"||["transform","perspective"].indexOf(l.willChange)!==-1||t&&l.willChange==="filter"||t&&l.filter&&l.filter!=="none")return r;r=r.parentNode}return null}function Uu(e){for(var t=Io(e),n=$0(e);n&&AB(n)&&bl(n).position==="static";)n=$0(n);return n&&(jr(n)==="html"||jr(n)==="body"&&bl(n).position==="static")?t:n||$B(e)||t}function Tv(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nc(e,t,n){return Hi(e,Xf(t,n))}function DB(e,t,n){var o=Nc(e,t,n);return o>n?n:o}function aP(){return{top:0,right:0,bottom:0,left:0}}function cP(e){return Object.assign({},aP(),e)}function uP(e,t){return t.reduce(function(n,o){return n[o]=e,n},{})}var LB=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,cP(typeof t!="number"?t:uP(t,Vu))};function zB(e){var t,n=e.state,o=e.name,r=e.options,l=n.elements.arrow,i=n.modifiersData.popperOffsets,s=Nr(n.placement),a=Tv(s),u=[ao,er].indexOf(s)>=0,c=u?"height":"width";if(!(!l||!i)){var d=LB(r.padding,n),p=Ev(l),h=a==="y"?so:ao,g=a==="y"?Jo:er,y=n.rects.reference[c]+n.rects.reference[a]-i[a]-n.rects.popper[c],w=i[a]-n.rects.reference[a],m=Uu(l),b=m?a==="y"?m.clientHeight||0:m.clientWidth||0:0,v=y/2-w/2,S=d[h],M=b-p[c]-d[g],R=b/2-p[c]/2+v,k=Nc(S,R,M),E=a;n.modifiersData[o]=(t={},t[E]=k,t.centerOffset=k-R,t)}}function FB(e){var t=e.state,n=e.options,o=n.element,r=o===void 0?"[data-popper-arrow]":o;r!=null&&(typeof r=="string"&&(r=t.elements.popper.querySelector(r),!r)||sP(t.elements.popper,r)&&(t.elements.arrow=r))}const BB={name:"arrow",enabled:!0,phase:"main",fn:zB,effect:FB,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ya(e){return e.split("-")[1]}var HB={top:"auto",right:"auto",bottom:"auto",left:"auto"};function NB(e,t){var n=e.x,o=e.y,r=t.devicePixelRatio||1;return{x:ma(n*r)/r||0,y:ma(o*r)/r||0}}function D0(e){var t,n=e.popper,o=e.popperRect,r=e.placement,l=e.variation,i=e.offsets,s=e.position,a=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,p=i.x,h=p===void 0?0:p,g=i.y,y=g===void 0?0:g,w=typeof c=="function"?c({x:h,y}):{x:h,y};h=w.x,y=w.y;var m=i.hasOwnProperty("x"),b=i.hasOwnProperty("y"),v=ao,S=so,M=window;if(u){var R=Uu(n),k="clientHeight",E="clientWidth";if(R===Io(n)&&(R=bi(n),bl(R).position!=="static"&&s==="absolute"&&(k="scrollHeight",E="scrollWidth")),R=R,r===so||(r===ao||r===er)&&l===fu){S=Jo;var P=d&&R===M&&M.visualViewport?M.visualViewport.height:R[k];y-=P-o.height,y*=a?1:-1}if(r===ao||(r===so||r===Jo)&&l===fu){v=er;var C=d&&R===M&&M.visualViewport?M.visualViewport.width:R[E];h-=C-o.width,h*=a?1:-1}}var T=Object.assign({position:s},u&&HB),A=c===!0?NB({x:h,y},Io(n)):{x:h,y};if(h=A.x,y=A.y,a){var L;return Object.assign({},T,(L={},L[S]=b?"0":"",L[v]=m?"0":"",L.transform=(M.devicePixelRatio||1)<=1?"translate("+h+"px, "+y+"px)":"translate3d("+h+"px, "+y+"px, 0)",L))}return Object.assign({},T,(t={},t[S]=b?y+"px":"",t[v]=m?h+"px":"",t.transform="",t))}function jB(e){var t=e.state,n=e.options,o=n.gpuAcceleration,r=o===void 0?!0:o,l=n.adaptive,i=l===void 0?!0:l,s=n.roundOffsets,a=s===void 0?!0:s,u={placement:Nr(t.placement),variation:ya(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:r,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,D0(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:i,roundOffsets:a})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,D0(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const GB={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:jB,data:{}};var Pd={passive:!0};function _B(e){var t=e.state,n=e.instance,o=e.options,r=o.scroll,l=r===void 0?!0:r,i=o.resize,s=i===void 0?!0:i,a=Io(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return l&&u.forEach(function(c){c.addEventListener("scroll",n.update,Pd)}),s&&a.addEventListener("resize",n.update,Pd),function(){l&&u.forEach(function(c){c.removeEventListener("scroll",n.update,Pd)}),s&&a.removeEventListener("resize",n.update,Pd)}}const VB={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_B,data:{}};var UB={left:"right",right:"left",bottom:"top",top:"bottom"};function rf(e){return e.replace(/left|right|bottom|top/g,function(t){return UB[t]})}var WB={start:"end",end:"start"};function L0(e){return e.replace(/start|end/g,function(t){return WB[t]})}function Pv(e){var t=Io(e),n=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:n,scrollTop:o}}function Iv(e){return ba(bi(e)).left+Pv(e).scrollLeft}function qB(e,t){var n=Io(e),o=bi(e),r=n.visualViewport,l=o.clientWidth,i=o.clientHeight,s=0,a=0;if(r){l=r.width,i=r.height;var u=iP();(u||!u&&t==="fixed")&&(s=r.offsetLeft,a=r.offsetTop)}return{width:l,height:i,x:s+Iv(e),y:a}}function KB(e){var t,n=bi(e),o=Pv(e),r=(t=e.ownerDocument)==null?void 0:t.body,l=Hi(n.scrollWidth,n.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),i=Hi(n.scrollHeight,n.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),s=-o.scrollLeft+Iv(e),a=-o.scrollTop;return bl(r||n).direction==="rtl"&&(s+=Hi(n.clientWidth,r?r.clientWidth:0)-l),{width:l,height:i,x:s,y:a}}function Ov(e){var t=bl(e),n=t.overflow,o=t.overflowX,r=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+r+o)}function dP(e){return["html","body","#document"].indexOf(jr(e))>=0?e.ownerDocument.body:Yo(e)&&Ov(e)?e:dP(yh(e))}function jc(e,t){var n;t===void 0&&(t=[]);var o=dP(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),l=Io(o),i=r?[l].concat(l.visualViewport||[],Ov(o)?o:[]):o,s=t.concat(i);return r?s:s.concat(jc(yh(i)))}function gb(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YB(e,t){var n=ba(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function z0(e,t,n){return t===rP?gb(qB(e,n)):Wi(t)?YB(t,n):gb(KB(bi(e)))}function XB(e){var t=jc(yh(e)),n=["absolute","fixed"].indexOf(bl(e).position)>=0,o=n&&Yo(e)?Uu(e):e;return Wi(o)?t.filter(function(r){return Wi(r)&&sP(r,o)&&jr(r)!=="body"}):[]}function QB(e,t,n,o){var r=t==="clippingParents"?XB(e):[].concat(t),l=[].concat(r,[n]),i=l[0],s=l.reduce(function(a,u){var c=z0(e,u,o);return a.top=Hi(c.top,a.top),a.right=Xf(c.right,a.right),a.bottom=Xf(c.bottom,a.bottom),a.left=Hi(c.left,a.left),a},z0(e,i,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function fP(e){var t=e.reference,n=e.element,o=e.placement,r=o?Nr(o):null,l=o?ya(o):null,i=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,a;switch(r){case so:a={x:i,y:t.y-n.height};break;case Jo:a={x:i,y:t.y+t.height};break;case er:a={x:t.x+t.width,y:s};break;case ao:a={x:t.x-n.width,y:s};break;default:a={x:t.x,y:t.y}}var u=r?Tv(r):null;if(u!=null){var c=u==="y"?"height":"width";switch(l){case ga:a[u]=a[u]-(t[c]/2-n[c]/2);break;case fu:a[u]=a[u]+(t[c]/2-n[c]/2);break}}return a}function pu(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=o===void 0?e.placement:o,l=n.strategy,i=l===void 0?e.strategy:l,s=n.boundary,a=s===void 0?bB:s,u=n.rootBoundary,c=u===void 0?rP:u,d=n.elementContext,p=d===void 0?lc:d,h=n.altBoundary,g=h===void 0?!1:h,y=n.padding,w=y===void 0?0:y,m=cP(typeof w!="number"?w:uP(w,Vu)),b=p===lc?yB:lc,v=e.rects.popper,S=e.elements[g?b:p],M=QB(Wi(S)?S:S.contextElement||bi(e.elements.popper),a,c,i),R=ba(e.elements.reference),k=fP({reference:R,element:v,strategy:"absolute",placement:r}),E=gb(Object.assign({},v,k)),P=p===lc?E:R,C={top:M.top-P.top+m.top,bottom:P.bottom-M.bottom+m.bottom,left:M.left-P.left+m.left,right:P.right-M.right+m.right},T=e.modifiersData.offset;if(p===lc&&T){var A=T[r];Object.keys(C).forEach(function(L){var F=[er,Jo].indexOf(L)>=0?1:-1,D=[so,Jo].indexOf(L)>=0?"y":"x";C[L]+=A[D]*F})}return C}function ZB(e,t){t===void 0&&(t={});var n=t,o=n.placement,r=n.boundary,l=n.rootBoundary,i=n.padding,s=n.flipVariations,a=n.allowedAutoPlacements,u=a===void 0?lP:a,c=ya(o),d=c?s?A0:A0.filter(function(g){return ya(g)===c}):Vu,p=d.filter(function(g){return u.indexOf(g)>=0});p.length===0&&(p=d);var h=p.reduce(function(g,y){return g[y]=pu(e,{placement:y,boundary:r,rootBoundary:l,padding:i})[Nr(y)],g},{});return Object.keys(h).sort(function(g,y){return h[g]-h[y]})}function JB(e){if(Nr(e)===xv)return[];var t=rf(e);return[L0(e),t,L0(t)]}function eH(e){var t=e.state,n=e.options,o=e.name;if(!t.modifiersData[o]._skip){for(var r=n.mainAxis,l=r===void 0?!0:r,i=n.altAxis,s=i===void 0?!0:i,a=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,p=n.altBoundary,h=n.flipVariations,g=h===void 0?!0:h,y=n.allowedAutoPlacements,w=t.options.placement,m=Nr(w),b=m===w,v=a||(b||!g?[rf(w)]:JB(w)),S=[w].concat(v).reduce(function(U,K){return U.concat(Nr(K)===xv?ZB(t,{placement:K,boundary:c,rootBoundary:d,padding:u,flipVariations:g,allowedAutoPlacements:y}):K)},[]),M=t.rects.reference,R=t.rects.popper,k=new Map,E=!0,P=S[0],C=0;C<S.length;C++){var T=S[C],A=Nr(T),L=ya(T)===ga,F=[so,Jo].indexOf(A)>=0,D=F?"width":"height",I=pu(t,{placement:T,boundary:c,rootBoundary:d,altBoundary:p,padding:u}),$=F?L?er:ao:L?Jo:so;M[D]>R[D]&&($=rf($));var B=rf($),G=[];if(l&&G.push(I[A]<=0),s&&G.push(I[$]<=0,I[B]<=0),G.every(function(U){return U})){P=T,E=!1;break}k.set(T,G)}if(E)for(var j=g?3:1,N=function(K){var X=S.find(function(oe){var ue=k.get(oe);if(ue)return ue.slice(0,K).every(function(V){return V})});if(X)return P=X,"break"},H=j;H>0;H--){var _=N(H);if(_==="break")break}t.placement!==P&&(t.modifiersData[o]._skip=!0,t.placement=P,t.reset=!0)}}const tH={name:"flip",enabled:!0,phase:"main",fn:eH,requiresIfExists:["offset"],data:{_skip:!1}};function F0(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function B0(e){return[so,er,Jo,ao].some(function(t){return e[t]>=0})}function nH(e){var t=e.state,n=e.name,o=t.rects.reference,r=t.rects.popper,l=t.modifiersData.preventOverflow,i=pu(t,{elementContext:"reference"}),s=pu(t,{altBoundary:!0}),a=F0(i,o),u=F0(s,r,l),c=B0(a),d=B0(u);t.modifiersData[n]={referenceClippingOffsets:a,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const oH={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:nH};function rH(e,t,n){var o=Nr(e),r=[ao,so].indexOf(o)>=0?-1:1,l=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,i=l[0],s=l[1];return i=i||0,s=(s||0)*r,[ao,er].indexOf(o)>=0?{x:s,y:i}:{x:i,y:s}}function lH(e){var t=e.state,n=e.options,o=e.name,r=n.offset,l=r===void 0?[0,0]:r,i=lP.reduce(function(c,d){return c[d]=rH(d,t.rects,l),c},{}),s=i[t.placement],a=s.x,u=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=a,t.modifiersData.popperOffsets.y+=u),t.modifiersData[o]=i}const iH={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:lH};function sH(e){var t=e.state,n=e.name;t.modifiersData[n]=fP({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const aH={name:"popperOffsets",enabled:!0,phase:"read",fn:sH,data:{}};function cH(e){return e==="x"?"y":"x"}function uH(e){var t=e.state,n=e.options,o=e.name,r=n.mainAxis,l=r===void 0?!0:r,i=n.altAxis,s=i===void 0?!1:i,a=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,p=n.tether,h=p===void 0?!0:p,g=n.tetherOffset,y=g===void 0?0:g,w=pu(t,{boundary:a,rootBoundary:u,padding:d,altBoundary:c}),m=Nr(t.placement),b=ya(t.placement),v=!b,S=Tv(m),M=cH(S),R=t.modifiersData.popperOffsets,k=t.rects.reference,E=t.rects.popper,P=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,C=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),T=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(R){if(l){var L,F=S==="y"?so:ao,D=S==="y"?Jo:er,I=S==="y"?"height":"width",$=R[S],B=$+w[F],G=$-w[D],j=h?-E[I]/2:0,N=b===ga?k[I]:E[I],H=b===ga?-E[I]:-k[I],_=t.elements.arrow,U=h&&_?Ev(_):{width:0,height:0},K=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:aP(),X=K[F],oe=K[D],ue=Nc(0,k[I],U[I]),V=v?k[I]/2-j-ue-X-C.mainAxis:N-ue-X-C.mainAxis,W=v?-k[I]/2+j+ue+oe+C.mainAxis:H+ue+oe+C.mainAxis,ne=t.elements.arrow&&Uu(t.elements.arrow),J=ne?S==="y"?ne.clientTop||0:ne.clientLeft||0:0,Y=(L=T==null?void 0:T[S])!=null?L:0,ee=$+V-Y-J,pe=$+W-Y,me=Nc(h?Xf(B,ee):B,$,h?Hi(G,pe):G);R[S]=me,A[S]=me-$}if(s){var ye,te=S==="x"?so:ao,Ce=S==="x"?Jo:er,ge=R[M],Te=M==="y"?"height":"width",Q=ge+w[te],ke=ge-w[Ce],Ie=[so,ao].indexOf(m)!==-1,Le=(ye=T==null?void 0:T[M])!=null?ye:0,Ne=Ie?Q:ge-k[Te]-E[Te]-Le+C.altAxis,qe=Ie?ge+k[Te]+E[Te]-Le-C.altAxis:ke,De=h&&Ie?DB(Ne,ge,qe):Nc(h?Ne:Q,ge,h?qe:ke);R[M]=De,A[M]=De-ge}t.modifiersData[o]=A}}const dH={name:"preventOverflow",enabled:!0,phase:"main",fn:uH,requiresIfExists:["offset"]};function fH(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function pH(e){return e===Io(e)||!Yo(e)?Pv(e):fH(e)}function hH(e){var t=e.getBoundingClientRect(),n=ma(t.width)/e.offsetWidth||1,o=ma(t.height)/e.offsetHeight||1;return n!==1||o!==1}function gH(e,t,n){n===void 0&&(n=!1);var o=Yo(t),r=Yo(t)&&hH(t),l=bi(t),i=ba(e,r,n),s={scrollLeft:0,scrollTop:0},a={x:0,y:0};return(o||!o&&!n)&&((jr(t)!=="body"||Ov(l))&&(s=pH(t)),Yo(t)?(a=ba(t,!0),a.x+=t.clientLeft,a.y+=t.clientTop):l&&(a.x=Iv(l))),{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}function mH(e){var t=new Map,n=new Set,o=[];e.forEach(function(l){t.set(l.name,l)});function r(l){n.add(l.name);var i=[].concat(l.requires||[],l.requiresIfExists||[]);i.forEach(function(s){if(!n.has(s)){var a=t.get(s);a&&r(a)}}),o.push(l)}return e.forEach(function(l){n.has(l.name)||r(l)}),o}function bH(e){var t=mH(e);return IB.reduce(function(n,o){return n.concat(t.filter(function(r){return r.phase===o}))},[])}function yH(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function vH(e){var t=e.reduce(function(n,o){var r=n[o.name];return n[o.name]=r?Object.assign({},r,o,{options:Object.assign({},r.options,o.options),data:Object.assign({},r.data,o.data)}):o,n},{});return Object.keys(t).map(function(n){return t[n]})}var H0={placement:"bottom",modifiers:[],strategy:"absolute"};function N0(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(o){return!(o&&typeof o.getBoundingClientRect=="function")})}function CH(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,o=n===void 0?[]:n,r=t.defaultOptions,l=r===void 0?H0:r;return function(s,a,u){u===void 0&&(u=l);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},H0,l),modifiersData:{},elements:{reference:s,popper:a},attributes:{},styles:{}},d=[],p=!1,h={state:c,setOptions:function(m){var b=typeof m=="function"?m(c.options):m;y(),c.options=Object.assign({},l,c.options,b),c.scrollParents={reference:Wi(s)?jc(s):s.contextElement?jc(s.contextElement):[],popper:jc(a)};var v=bH(vH([].concat(o,c.options.modifiers)));return c.orderedModifiers=v.filter(function(S){return S.enabled}),g(),h.update()},forceUpdate:function(){if(!p){var m=c.elements,b=m.reference,v=m.popper;if(N0(b,v)){c.rects={reference:gH(b,Uu(v),c.options.strategy==="fixed"),popper:Ev(v)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(C){return c.modifiersData[C.name]=Object.assign({},C.data)});for(var S=0;S<c.orderedModifiers.length;S++){if(c.reset===!0){c.reset=!1,S=-1;continue}var M=c.orderedModifiers[S],R=M.fn,k=M.options,E=k===void 0?{}:k,P=M.name;typeof R=="function"&&(c=R({state:c,options:E,name:P,instance:h})||c)}}}},update:yH(function(){return new Promise(function(w){h.forceUpdate(),w(c)})}),destroy:function(){y(),p=!0}};if(!N0(s,a))return h;h.setOptions(u).then(function(w){!p&&u.onFirstUpdate&&u.onFirstUpdate(w)});function g(){c.orderedModifiers.forEach(function(w){var m=w.name,b=w.options,v=b===void 0?{}:b,S=w.effect;if(typeof S=="function"){var M=S({state:c,name:m,instance:h,options:v}),R=function(){};d.push(M||R)}})}function y(){d.forEach(function(w){return w()}),d=[]}return h}}var SH=[VB,aH,GB,kB,iH,tH,dH,BB,oH],wH=CH({defaultModifiers:SH});function va(e){var d;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:r=!1,...l}=e,i=r?{}:tP(n,o),{props:s,internalRef:a}=oP({...l,externalSlotProps:i}),u=vt(a,i==null?void 0:i.ref,(d=e.additionalProps)==null?void 0:d.ref);return eP(t,{...s,ref:u},o)}function rs(e){var t;return parseInt(f.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function xH(e){return typeof e=="function"?e():e}const MH=f.forwardRef(function(t,n){const{children:o,container:r,disablePortal:l=!1}=t,[i,s]=f.useState(null),a=vt(f.isValidElement(o)?rs(o):null,n);if(Ot(()=>{l||s(xH(r)||document.body)},[r,l]),Ot(()=>{if(i&&!l)return sb(n,i),()=>{sb(n,null)}},[n,i,l]),l){if(f.isValidElement(o)){const u={ref:a};return f.cloneElement(o,u)}return o}return i&&mp.createPortal(o,i)}),pP=MH;function EH(e){return _e("MuiPopper",e)}je("MuiPopper",["root"]);function TH(e,t){if(t==="ltr")return e;switch(e){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 e}}function mb(e){return typeof e=="function"?e():e}function PH(e){return e.nodeType!==void 0}const IH=e=>{const{classes:t}=e;return ve({root:["root"]},EH,t)},OH={},RH=f.forwardRef(function(t,n){const{anchorEl:o,children:r,direction:l,disablePortal:i,modifiers:s,open:a,placement:u,popperOptions:c,popperRef:d,slotProps:p={},slots:h={},TransitionProps:g,ownerState:y,...w}=t,m=f.useRef(null),b=vt(m,n),v=f.useRef(null),S=vt(v,d),M=f.useRef(S);Ot(()=>{M.current=S},[S]),f.useImperativeHandle(d,()=>v.current,[]);const R=TH(u,l),[k,E]=f.useState(R),[P,C]=f.useState(mb(o));f.useEffect(()=>{v.current&&v.current.forceUpdate()}),f.useEffect(()=>{o&&C(mb(o))},[o]),Ot(()=>{if(!P||!a)return;const D=B=>{E(B.placement)};let I=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:B})=>{D(B)}}];s!=null&&(I=I.concat(s)),c&&c.modifiers!=null&&(I=I.concat(c.modifiers));const $=wH(P,m.current,{placement:R,...c,modifiers:I});return M.current($),()=>{$.destroy(),M.current(null)}},[P,i,s,a,c,R]);const T={placement:k};g!==null&&(T.TransitionProps=g);const A=IH(t),L=h.root??"div",F=va({elementType:L,externalSlotProps:p.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:A.root});return x.jsx(L,{...F,children:typeof r=="function"?r(T):r})}),kH=f.forwardRef(function(t,n){const{anchorEl:o,children:r,container:l,direction:i="ltr",disablePortal:s=!1,keepMounted:a=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:p=OH,popperRef:h,style:g,transition:y=!1,slotProps:w={},slots:m={},...b}=t,[v,S]=f.useState(!0),M=()=>{S(!1)},R=()=>{S(!0)};if(!a&&!c&&(!y||v))return null;let k;if(l)k=l;else if(o){const C=mb(o);k=C&&PH(C)?Yt(C).body:Yt(null).body}const E=!c&&a&&(!y||v)?"none":void 0,P=y?{in:c,onEnter:M,onExited:R}:void 0;return x.jsx(pP,{disablePortal:s,container:k,children:x.jsx(RH,{anchorEl:o,direction:i,disablePortal:s,modifiers:u,ref:n,open:y?!v:c,placement:d,popperOptions:p,popperRef:h,slotProps:w,slots:m,...b,style:{position:"fixed",top:0,left:0,display:E,...g},TransitionProps:P,children:r})})}),AH=kH,$H=Z(AH,{name:"MuiPopper",slot:"Root"})({}),DH=f.forwardRef(function(t,n){const o=_n(),r=We({props:t,name:"MuiPopper"}),{anchorEl:l,component:i,components:s,componentsProps:a,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:y,popperRef:w,transition:m,slots:b,slotProps:v,...S}=r,M=(b==null?void 0:b.root)??(s==null?void 0:s.Root),R={anchorEl:l,container:u,disablePortal:c,keepMounted:d,modifiers:p,open:h,placement:g,popperOptions:y,popperRef:w,transition:m,...S};return x.jsx($H,{as:i,direction:o?"rtl":"ltr",slots:{root:M},slotProps:v??a,...R,ref:n})}),Wu=DH;function LH(e){return _e("MuiListSubheader",e)}je("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const zH=e=>{const{classes:t,color:n,disableGutters:o,inset:r,disableSticky:l}=e,i={root:["root",n!=="default"&&`color${re(n)}`,!o&&"gutters",r&&"inset",!l&&"sticky"]};return ve(i,LH,t)},FH=Z("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${re(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Fe(({theme:e})=>({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),bb=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiListSubheader"}),{className:r,color:l="default",component:i="li",disableGutters:s=!1,disableSticky:a=!1,inset:u=!1,...c}=o,d={...o,color:l,component:i,disableGutters:s,disableSticky:a,inset:u},p=zH(d);return x.jsx(FH,{as:i,className:de(p.root,r),ref:n,ownerState:d,...c})});bb&&(bb.muiSkipListHighlight=!0);const BH=bb,HH=Kn(x.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 NH(e){return _e("MuiChip",e)}const jH=je("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"]),dt=jH,GH=e=>{const{classes:t,disabled:n,size:o,color:r,iconColor:l,onDelete:i,clickable:s,variant:a}=e,u={root:["root",a,n&&"disabled",`size${re(o)}`,`color${re(r)}`,s&&"clickable",s&&`clickableColor${re(r)}`,i&&"deletable",i&&`deletableColor${re(r)}`,`${a}${re(r)}`],label:["label",`label${re(o)}`],avatar:["avatar",`avatar${re(o)}`,`avatarColor${re(r)}`],icon:["icon",`icon${re(o)}`,`iconColor${re(l)}`],deleteIcon:["deleteIcon",`deleteIcon${re(o)}`,`deleteIconColor${re(r)}`,`deleteIcon${re(a)}Color${re(r)}`]};return ve(u,NH,t)},_H=Z("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:o,iconColor:r,clickable:l,onDelete:i,size:s,variant:a}=n;return[{[`& .${dt.avatar}`]:t.avatar},{[`& .${dt.avatar}`]:t[`avatar${re(s)}`]},{[`& .${dt.avatar}`]:t[`avatarColor${re(o)}`]},{[`& .${dt.icon}`]:t.icon},{[`& .${dt.icon}`]:t[`icon${re(s)}`]},{[`& .${dt.icon}`]:t[`iconColor${re(r)}`]},{[`& .${dt.deleteIcon}`]:t.deleteIcon},{[`& .${dt.deleteIcon}`]:t[`deleteIcon${re(s)}`]},{[`& .${dt.deleteIcon}`]:t[`deleteIconColor${re(o)}`]},{[`& .${dt.deleteIcon}`]:t[`deleteIcon${re(a)}Color${re(o)}`]},t.root,t[`size${re(s)}`],t[`color${re(o)}`],l&&t.clickable,l&&o!=="default"&&t[`clickableColor${re(o)})`],i&&t.deletable,i&&o!=="default"&&t[`deletableColor${re(o)}`],t[a],t[`${a}${re(o)}`]]}})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${dt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${dt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${dt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${dt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${dt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${dt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${dt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:lt(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:lt(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${dt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${dt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(ln(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${dt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:lt(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${dt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${dt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(ln(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${dt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(ln(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${dt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${dt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${dt.avatar}`]:{marginLeft:4},[`& .${dt.avatarSmall}`]:{marginLeft:2},[`& .${dt.icon}`]:{marginLeft:4},[`& .${dt.iconSmall}`]:{marginLeft:2},[`& .${dt.deleteIcon}`]:{marginRight:5},[`& .${dt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(ln()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:lt(e.palette[n].main,.7)}`,[`&.${dt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${dt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:lt(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${dt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:lt(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),VH=Z("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:o}=n;return[t.label,t[`label${re(o)}`]]}})({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 j0(e){return e.key==="Backspace"||e.key==="Delete"}const UH=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiChip"}),{avatar:r,className:l,clickable:i,color:s="default",component:a,deleteIcon:u,disabled:c=!1,icon:d,label:p,onClick:h,onDelete:g,onKeyDown:y,onKeyUp:w,size:m="medium",variant:b="filled",tabIndex:v,skipFocusWhenDisabled:S=!1,...M}=o,R=f.useRef(null),k=vt(R,n),E=G=>{G.stopPropagation(),g&&g(G)},P=G=>{G.currentTarget===G.target&&j0(G)&&G.preventDefault(),y&&y(G)},C=G=>{G.currentTarget===G.target&&g&&j0(G)&&g(G),w&&w(G)},T=i!==!1&&h?!0:i,A=T||g?di:a||"div",L={...o,component:A,disabled:c,size:m,color:s,iconColor:f.isValidElement(d)&&d.props.color||s,onDelete:!!g,clickable:T,variant:b},F=GH(L),D=A===di?{component:a||"div",focusVisibleClassName:F.focusVisible,...g&&{disableRipple:!0}}:{};let I=null;g&&(I=u&&f.isValidElement(u)?f.cloneElement(u,{className:de(u.props.className,F.deleteIcon),onClick:E}):x.jsx(HH,{className:F.deleteIcon,onClick:E}));let $=null;r&&f.isValidElement(r)&&($=f.cloneElement(r,{className:de(F.avatar,r.props.className)}));let B=null;return d&&f.isValidElement(d)&&(B=f.cloneElement(d,{className:de(F.icon,d.props.className)})),x.jsxs(_H,{as:A,className:de(F.root,l),disabled:T&&c?!0:void 0,onClick:h,onKeyDown:P,onKeyUp:C,ref:k,tabIndex:S&&c?-1:v,ownerState:L,...D,...M,children:[$||B,x.jsx(VH,{className:F.label,ownerState:L,children:p}),I]})}),Rv=UH;function Id(e){return parseInt(e,10)||0}const WH={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function qH(e){for(const t in e)return!1;return!0}function G0(e){return qH(e)||e.outerHeightStyle===0&&!e.overflowing}const KH=f.forwardRef(function(t,n){const{onChange:o,maxRows:r,minRows:l=1,style:i,value:s,...a}=t,{current:u}=f.useRef(s!=null),c=f.useRef(null),d=vt(n,c),p=f.useRef(null),h=f.useRef(null),g=f.useCallback(()=>{const v=c.current,S=h.current;if(!v||!S)return;const R=br(v).getComputedStyle(v);if(R.width==="0px")return{outerHeightStyle:0,overflowing:!1};S.style.width=R.width,S.value=v.value||t.placeholder||"x",S.value.slice(-1)===` 210 `&&(S.value+=" ");const k=R.boxSizing,E=Id(R.paddingBottom)+Id(R.paddingTop),P=Id(R.borderBottomWidth)+Id(R.borderTopWidth),C=S.scrollHeight;S.value="x";const T=S.scrollHeight;let A=C;l&&(A=Math.max(Number(l)*T,A)),r&&(A=Math.min(Number(r)*T,A)),A=Math.max(A,T);const L=A+(k==="border-box"?E+P:0),F=Math.abs(A-C)<=1;return{outerHeightStyle:L,overflowing:F}},[r,l,t.placeholder]),y=Xe(()=>{const v=c.current,S=g();if(!v||!S||G0(S))return!1;const M=S.outerHeightStyle;return p.current!=null&&p.current!==M}),w=f.useCallback(()=>{const v=c.current,S=g();if(!v||!S||G0(S))return;const M=S.outerHeightStyle;p.current!==M&&(p.current=M,v.style.height=`${M}px`),v.style.overflow=S.overflowing?"hidden":""},[g]),m=f.useRef(-1);Ot(()=>{const v=Da(w),S=c==null?void 0:c.current;if(!S)return;const M=br(S);M.addEventListener("resize",v);let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(()=>{y()&&(R.unobserve(S),cancelAnimationFrame(m.current),w(),m.current=requestAnimationFrame(()=>{R.observe(S)}))}),R.observe(S)),()=>{v.clear(),cancelAnimationFrame(m.current),M.removeEventListener("resize",v),R&&R.disconnect()}},[g,w,y]),Ot(()=>{w()});const b=v=>{u||w();const S=v.target,M=S.value.length,R=S.value.endsWith(` 211 `),k=S.selectionStart===M;R&&k&&S.setSelectionRange(M,M),o&&o(v)};return x.jsxs(f.Fragment,{children:[x.jsx("textarea",{value:s,onChange:b,ref:d,rows:l,style:i,...a}),x.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:{...WH.shadow,...i,paddingTop:0,paddingBottom:0}})]})}),YH=KH;function yb(e){return typeof e=="string"}function ls({props:e,states:t,muiFormControl:n}){return t.reduce((o,r)=>(o[r]=e[r],n&&typeof e[r]>"u"&&(o[r]=n[r]),o),{})}const XH=f.createContext(void 0),vh=XH;function Cl(){return f.useContext(vh)}function _0(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Qf(e,t=!1){return e&&(_0(e.value)&&e.value!==""||t&&_0(e.defaultValue)&&e.defaultValue!=="")}function QH(e){return e.startAdornment}function ZH(e){return _e("MuiInputBase",e)}const JH=je("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Hn=JH;var V0;const Ch=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${re(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Sh=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},eN=e=>{const{classes:t,color:n,disabled:o,error:r,endAdornment:l,focused:i,formControl:s,fullWidth:a,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:h,type:g}=e,y={root:["root",`color${re(n)}`,o&&"disabled",r&&"error",a&&"fullWidth",i&&"focused",s&&"formControl",p&&p!=="medium"&&`size${re(p)}`,c&&"multiline",h&&"adornedStart",l&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",o&&"disabled",g==="search"&&"inputTypeSearch",c&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",h&&"inputAdornedStart",l&&"inputAdornedEnd",d&&"readOnly"]};return ve(y,ZH,t)},wh=Z("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ch})(Fe(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${Hn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),xh=Z("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Sh})(Fe(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},r=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.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":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Hn.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":r,"&:focus::-moz-placeholder":r,"&:focus::-ms-input-placeholder":r},[`&.${Hn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:l})=>!l.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:l})=>l.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),U0=bv({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),tN=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:l,autoFocus:i,className:s,color:a,components:u={},componentsProps:c={},defaultValue:d,disabled:p,disableInjectingGlobalStyles:h,endAdornment:g,error:y,fullWidth:w=!1,id:m,inputComponent:b="input",inputProps:v={},inputRef:S,margin:M,maxRows:R,minRows:k,multiline:E=!1,name:P,onBlur:C,onChange:T,onClick:A,onFocus:L,onKeyDown:F,onKeyUp:D,placeholder:I,readOnly:$,renderSuffix:B,rows:G,size:j,slotProps:N={},slots:H={},startAdornment:_,type:U="text",value:K,...X}=o,oe=v.value!=null?v.value:K,{current:ue}=f.useRef(oe!=null),V=f.useRef(),W=f.useCallback(ce=>{},[]),ne=vt(V,S,v.ref,W),[J,Y]=f.useState(!1),ee=Cl(),pe=ls({props:o,muiFormControl:ee,states:["color","disabled","error","hiddenLabel","size","required","filled"]});pe.focused=ee?ee.focused:J,f.useEffect(()=>{!ee&&p&&J&&(Y(!1),C&&C())},[ee,p,J,C]);const me=ee&&ee.onFilled,ye=ee&&ee.onEmpty,te=f.useCallback(ce=>{Qf(ce)?me&&me():ye&&ye()},[me,ye]);Ot(()=>{ue&&te({value:oe})},[oe,te,ue]);const Ce=ce=>{L&&L(ce),v.onFocus&&v.onFocus(ce),ee&&ee.onFocus?ee.onFocus(ce):Y(!0)},ge=ce=>{C&&C(ce),v.onBlur&&v.onBlur(ce),ee&&ee.onBlur?ee.onBlur(ce):Y(!1)},Te=(ce,...Ve)=>{if(!ue){const et=ce.target||V.current;if(et==null)throw new Error(gl(1));te({value:et.value})}v.onChange&&v.onChange(ce,...Ve),T&&T(ce,...Ve)};f.useEffect(()=>{te(V.current)},[]);const Q=ce=>{V.current&&ce.currentTarget===ce.target&&V.current.focus(),A&&A(ce)};let ke=b,Ie=v;E&&ke==="input"&&(G?Ie={type:void 0,minRows:G,maxRows:G,...Ie}:Ie={type:void 0,maxRows:R,minRows:k,...Ie},ke=YH);const Le=ce=>{te(ce.animationName==="mui-auto-fill-cancel"?V.current:{value:"x"})};f.useEffect(()=>{ee&&ee.setAdornedStart(!!_)},[ee,_]);const Ne={...o,color:pe.color||"primary",disabled:pe.disabled,endAdornment:g,error:pe.error,focused:pe.focused,formControl:ee,fullWidth:w,hiddenLabel:pe.hiddenLabel,multiline:E,size:pe.size,startAdornment:_,type:U},qe=eN(Ne),De=H.root||u.Root||wh,Ee=N.root||c.root||{},Oe=H.input||u.Input||xh;return Ie={...Ie,...N.input??c.input},x.jsxs(f.Fragment,{children:[!h&&typeof U0=="function"&&(V0||(V0=x.jsx(U0,{}))),x.jsxs(De,{...Ee,ref:n,onClick:Q,...X,...!yb(De)&&{ownerState:{...Ne,...Ee.ownerState}},className:de(qe.root,Ee.className,s,$&&"MuiInputBase-readOnly"),children:[_,x.jsx(vh.Provider,{value:null,children:x.jsx(Oe,{"aria-invalid":pe.error,"aria-describedby":r,autoComplete:l,autoFocus:i,defaultValue:d,disabled:pe.disabled,id:m,onAnimationStart:Le,name:P,placeholder:I,readOnly:$,required:pe.required,rows:G,value:oe,onKeyDown:F,onKeyUp:D,type:U,...Ie,...!yb(Oe)&&{as:ke,ownerState:{...Ne,...Ie.ownerState}},ref:ne,className:de(qe.input,Ie.className,$&&"MuiInputBase-readOnly"),onBlur:ge,onChange:Te,onFocus:Ce})}),g,B?B({...pe,startAdornment:_}):null]})]})}),qu=tN;function nN(e){return _e("MuiInput",e)}const oN={...Hn,...je("MuiInput",["root","underline","input"])},Vl=oN;function rN(e){return _e("MuiOutlinedInput",e)}const lN={...Hn,...je("MuiOutlinedInput",["root","notchedOutline","input"])},$o=lN;function iN(e){return _e("MuiFilledInput",e)}const sN={...Hn,...je("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},bo=sN,hP=Kn(x.jsx("path",{d:"M7 10l5 5 5-5z"}));function aN(e){return _e("MuiAutocomplete",e)}const cN=je("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]),rt=cN;var W0,q0;const uN=e=>{const{classes:t,disablePortal:n,expanded:o,focused:r,fullWidth:l,hasClearIcon:i,hasPopupIcon:s,inputFocused:a,popupOpen:u,size:c}=e,d={root:["root",o&&"expanded",r&&"focused",l&&"fullWidth",i&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag",`tagSize${re(c)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ve(d,aN,t)},dN=Z("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:o,hasClearIcon:r,hasPopupIcon:l,inputFocused:i,size:s}=n;return[{[`& .${rt.tag}`]:t.tag},{[`& .${rt.tag}`]:t[`tagSize${re(s)}`]},{[`& .${rt.inputRoot}`]:t.inputRoot},{[`& .${rt.input}`]:t.input},{[`& .${rt.input}`]:i&&t.inputFocused},t.root,o&&t.fullWidth,l&&t.hasPopupIcon,r&&t.hasClearIcon]}})({[`&.${rt.focused} .${rt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${rt.clearIndicator}`]:{visibility:"visible"}},[`& .${rt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${rt.inputRoot}`]:{[`.${rt.hasPopupIcon}&, .${rt.hasClearIcon}&`]:{paddingRight:26+4},[`.${rt.hasPopupIcon}.${rt.hasClearIcon}&`]:{paddingRight:52+4},[`& .${rt.input}`]:{width:0,minWidth:30}},[`& .${Vl.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Vl.root}.${Hn.sizeSmall}`]:{[`& .${Vl.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$o.root}`]:{padding:9,[`.${rt.hasPopupIcon}&, .${rt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${rt.hasPopupIcon}.${rt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${rt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${rt.endAdornment}`]:{right:9}},[`& .${$o.root}.${Hn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${rt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${bo.root}`]:{paddingTop:19,paddingLeft:8,[`.${rt.hasPopupIcon}&, .${rt.hasClearIcon}&`]:{paddingRight:26+4+9},[`.${rt.hasPopupIcon}.${rt.hasClearIcon}&`]:{paddingRight:52+4+9},[`& .${bo.input}`]:{padding:"7px 4px"},[`& .${rt.endAdornment}`]:{right:9}},[`& .${bo.root}.${Hn.sizeSmall}`]:{paddingBottom:1,[`& .${bo.input}`]:{padding:"2.5px 4px"}},[`& .${Hn.hiddenLabel}`]:{paddingTop:8},[`& .${bo.root}.${Hn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${rt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${bo.root}.${Hn.hiddenLabel}.${Hn.sizeSmall}`]:{[`& .${rt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${rt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${rt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${rt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${rt.inputRoot}`]:{flexWrap:"wrap"}}}]}),fN=Z("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),pN=Z(il,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),hN=Z(il,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),gN=Z(Wu,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${rt.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),mN=Z(os,{name:"MuiAutocomplete",slot:"Paper"})(Fe(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),bN=Z("div",{name:"MuiAutocomplete",slot:"Loading"})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),yN=Z("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),vN=Z("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Fe(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${rt.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${rt.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${rt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${rt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),CN=Z(BH,{name:"MuiAutocomplete",slot:"GroupLabel"})(Fe(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),SN=Z("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${rt.option}`]:{paddingLeft:24}}),wN=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiAutocomplete"}),{autoComplete:r=!1,autoHighlight:l=!1,autoSelect:i=!1,blurOnSelect:s=!1,ChipProps:a,className:u,clearIcon:c=W0||(W0=x.jsx(rB,{fontSize:"small"})),clearOnBlur:d=!o.freeSolo,clearOnEscape:p=!1,clearText:h="Clear",closeText:g="Close",componentsProps:y,defaultValue:w=o.multiple?[]:null,disableClearable:m=!1,disableCloseOnSelect:b=!1,disabled:v=!1,disabledItemsFocusable:S=!1,disableListWrap:M=!1,disablePortal:R=!1,filterOptions:k,filterSelectedOptions:E=!1,forcePopupIcon:P="auto",freeSolo:C=!1,fullWidth:T=!1,getLimitTagsText:A=Ct=>`+${Ct}`,getOptionDisabled:L,getOptionKey:F,getOptionLabel:D,isOptionEqualToValue:I,groupBy:$,handleHomeEndKeys:B=!o.freeSolo,id:G,includeInputInList:j=!1,inputValue:N,limitTags:H=-1,ListboxComponent:_,ListboxProps:U,loading:K=!1,loadingText:X="Loading…",multiple:oe=!1,noOptionsText:ue="No options",onChange:V,onClose:W,onHighlightChange:ne,onInputChange:J,onOpen:Y,open:ee,openOnFocus:pe=!1,openText:me="Open",options:ye,PaperComponent:te,PopperComponent:Ce,popupIcon:ge=q0||(q0=x.jsx(hP,{})),readOnly:Te=!1,renderGroup:Q,renderInput:ke,renderOption:Ie,renderTags:Le,renderValue:Ne,selectOnFocus:qe=!o.freeSolo,size:De="medium",slots:Ee={},slotProps:Oe={},value:ce,...Ve}=o,{getRootProps:et,getInputProps:we,getInputLabelProps:xe,getPopupIndicatorProps:ze,getClearProps:Ze,getItemProps:Qt,getListboxProps:bn,getOptionProps:rr,value:Jt,dirty:$n,expanded:Dn,id:Yn,popupOpen:Ln,focused:lr,focusedItem:Ye,anchorEl:jt,setAnchorEl:Ae,inputValue:Be,groupedOptions:ot}=mB({...o,componentName:"Autocomplete"}),ut=!m&&!v&&$n&&!Te,kt=(!C||P===!0)&&P!==!1,{onMouseDown:no}=we(),{ref:ir,...Sr}=bn(),wr=D||(Ct=>Ct.label??Ct),zn={...o,disablePortal:R,expanded:Dn,focused:lr,fullWidth:T,getOptionLabel:wr,hasClearIcon:ut,hasPopupIcon:kt,inputFocused:Ye===-1,popupOpen:Ln,size:De},En=uN(zn),El={slots:{paper:te,popper:Ce,...Ee},slotProps:{chip:a,listbox:U,...y,...Oe}},[Ua,rd]=Ge("listbox",{elementType:vN,externalForwardedProps:El,ownerState:zn,className:En.listbox,additionalProps:Sr,ref:ir}),[ae,se]=Ge("paper",{elementType:os,externalForwardedProps:El,ownerState:zn,className:En.paper}),[$e,ct]=Ge("popper",{elementType:Wu,externalForwardedProps:El,ownerState:zn,className:En.popper,additionalProps:{disablePortal:R,style:{width:jt?jt.clientWidth:null},role:"presentation",anchorEl:jt,open:Ln}});let Ke;const sn=Ct=>({className:En.tag,disabled:v,...Qt(Ct)});if(Le&&oe&&Jt.length>0?Ke=Le(Jt,sn,zn):Ne&&Jt?Ke=Ne(Jt,sn,zn):oe&&Jt.length>0&&(Ke=Jt.map((Ct,Tl)=>{const{key:Pl,...Wa}=sn({index:Tl});return x.jsx(Rv,{label:wr(Ct),size:De,...Wa,...El.slotProps.chip},Pl)})),H>-1&&Array.isArray(Ke)){const Ct=Ke.length-H;!lr&&Ct>0&&(Ke=Ke.splice(0,H),Ke.push(x.jsx("span",{className:En.tag,children:A(Ct)},Ke.length)))}const ko=Q||(Ct=>x.jsxs("li",{children:[x.jsx(CN,{className:En.groupLabel,ownerState:zn,component:"div",children:Ct.group}),x.jsx(SN,{className:En.groupUl,ownerState:zn,children:Ct.children})]},Ct.key)),kO=Ie||((Ct,Tl)=>{const{key:Pl,...Wa}=Ct;return x.jsx("li",{...Wa,children:wr(Tl)},Pl)}),dC=(Ct,Tl)=>{const Pl=rr({option:Ct,index:Tl});return kO({...Pl,className:En.option},Ct,{selected:Pl["aria-selected"],index:Tl,inputValue:Be},zn)},ld=El.slotProps.clearIndicator,id=El.slotProps.popupIndicator;return x.jsxs(f.Fragment,{children:[x.jsx(dN,{ref:n,className:de(En.root,u),ownerState:zn,...et(Ve),children:ke({id:Yn,disabled:v,fullWidth:!0,size:De==="small"?"small":void 0,InputLabelProps:xe(),InputProps:{ref:Ae,className:En.inputRoot,startAdornment:Ke,onMouseDown:Ct=>{Ct.target===Ct.currentTarget&&no(Ct)},...(ut||kt)&&{endAdornment:x.jsxs(fN,{className:En.endAdornment,ownerState:zn,children:[ut?x.jsx(pN,{...Ze(),"aria-label":h,title:h,ownerState:zn,...ld,className:de(En.clearIndicator,ld==null?void 0:ld.className),children:c}):null,kt?x.jsx(hN,{...ze(),disabled:v,"aria-label":Ln?g:me,title:Ln?g:me,ownerState:zn,...id,className:de(En.popupIndicator,id==null?void 0:id.className),children:ge}):null]})}},inputProps:{className:En.input,disabled:v,readOnly:Te,...we()}})}),jt?x.jsx(gN,{as:$e,...ct,children:x.jsxs(mN,{as:ae,...se,children:[K&&ot.length===0?x.jsx(bN,{className:En.loading,ownerState:zn,children:X}):null,ot.length===0&&!C&&!K?x.jsx(yN,{className:En.noOptions,ownerState:zn,role:"presentation",onMouseDown:Ct=>{Ct.preventDefault()},children:ue}):null,ot.length>0?x.jsx(Ua,{as:_,...rd,children:ot.map((Ct,Tl)=>$?ko({key:Ct.key,group:Ct.group,children:Ct.options.map((Pl,Wa)=>dC(Pl,Ct.index+Wa))}):dC(Ct,Tl))}):null]})}):null]})}),Zf=wN,xN={entering:{opacity:1},entered:{opacity:1}},MN=f.forwardRef(function(t,n){const o=mi(),r={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:l,appear:i=!0,children:s,easing:a,in:u,onEnter:c,onEntered:d,onEntering:p,onExit:h,onExited:g,onExiting:y,style:w,timeout:m=r,TransitionComponent:b=ZT,...v}=t,S=f.useRef(null),M=vt(S,rs(s),n),R=F=>D=>{if(F){const I=S.current;D===void 0?F(I):F(I,D)}},k=R(p),E=R((F,D)=>{JT(F);const I=qf({style:w,timeout:m,easing:a},{mode:"enter"});F.style.webkitTransition=o.transitions.create("opacity",I),F.style.transition=o.transitions.create("opacity",I),c&&c(F,D)}),P=R(d),C=R(y),T=R(F=>{const D=qf({style:w,timeout:m,easing:a},{mode:"exit"});F.style.webkitTransition=o.transitions.create("opacity",D),F.style.transition=o.transitions.create("opacity",D),h&&h(F)}),A=R(g),L=F=>{l&&l(S.current,F)};return x.jsx(b,{appear:i,in:u,nodeRef:S,onEnter:E,onEntered:P,onEntering:k,onExit:T,onExited:A,onExiting:C,addEndListener:L,timeout:m,...v,children:(F,{ownerState:D,...I})=>f.cloneElement(s,{style:{opacity:0,visibility:F==="exited"&&!u?"hidden":void 0,...xN[F],...w,...s.props.style},ref:M,...I})})}),vb=MN;function EN(e){return _e("MuiBackdrop",e)}je("MuiBackdrop",["root","invisible"]);const TN=e=>{const{classes:t,invisible:n}=e;return ve({root:["root",n&&"invisible"]},EN,t)},PN=Z("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.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"}}]}),IN=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiBackdrop"}),{children:r,className:l,component:i="div",invisible:s=!1,open:a,components:u={},componentsProps:c={},slotProps:d={},slots:p={},TransitionComponent:h,transitionDuration:g,...y}=o,w={...o,component:i,invisible:s},m=TN(w),b={transition:h,root:u.Root,...p},v={...c,...d},S={slots:b,slotProps:v},[M,R]=Ge("root",{elementType:PN,externalForwardedProps:S,className:de(m.root,l),ownerState:w}),[k,E]=Ge("transition",{elementType:vb,externalForwardedProps:S,ownerState:w});return x.jsx(k,{in:a,timeout:g,...y,...E,children:x.jsx(M,{"aria-hidden":!0,...R,classes:m,ref:n,children:r})})}),gP=IN;function ON(e){const{badgeContent:t,invisible:n=!1,max:o=99,showZero:r=!1}=e,l=wv({badgeContent:t,max:o});let i=n;n===!1&&t===0&&!r&&(i=!0);const{badgeContent:s,max:a=o}=i?l:e,u=s&&Number(s)>a?`${a}+`:s;return{badgeContent:s,invisible:i,max:a,displayValue:u}}function RN(e){return _e("MuiBadge",e)}const kN=je("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Al=kN,kg=10,Ag=4,AN=e=>{const{color:t,anchorOrigin:n,invisible:o,overlap:r,variant:l,classes:i={}}=e,s={root:["root"],badge:["badge",l,o&&"invisible",`anchorOrigin${re(n.vertical)}${re(n.horizontal)}`,`anchorOrigin${re(n.vertical)}${re(n.horizontal)}${re(r)}`,`overlap${re(r)}`,t!=="default"&&`color${re(t)}`]};return ve(s,RN,i)},$N=Z("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),DN=Z("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${re(n.anchorOrigin.vertical)}${re(n.anchorOrigin.horizontal)}${re(n.overlap)}`],n.color!=="default"&&t[`color${re(n.color)}`],n.invisible&&t.invisible]}})(Fe(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:kg*2,lineHeight:1,padding:"0 6px",height:kg*2,borderRadius:kg,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(ln(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:Ag,height:Ag*2,minWidth:Ag*2,padding:0}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="rectangular",style:{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="rectangular",style:{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="right"&&t.overlap==="circular",style:{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="top"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}}},{props:({ownerState:t})=>t.anchorOrigin.vertical==="bottom"&&t.anchorOrigin.horizontal==="left"&&t.overlap==="circular",style:{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Al.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}}]})));function K0(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const LN=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiBadge"}),{anchorOrigin:r,className:l,classes:i,component:s,components:a={},componentsProps:u={},children:c,overlap:d="rectangular",color:p="default",invisible:h=!1,max:g=99,badgeContent:y,slots:w,slotProps:m,showZero:b=!1,variant:v="standard",...S}=o,{badgeContent:M,invisible:R,max:k,displayValue:E}=ON({max:g,invisible:h,badgeContent:y,showZero:b}),P=wv({anchorOrigin:K0(r),color:p,overlap:d,variant:v,badgeContent:y}),C=R||M==null&&v!=="dot",{color:T=p,overlap:A=d,anchorOrigin:L,variant:F=v}=C?P:o,D=K0(L),I=F!=="dot"?E:void 0,$={...o,badgeContent:M,invisible:C,max:k,displayValue:I,showZero:b,anchorOrigin:D,color:T,overlap:A,variant:F},B=AN($),G={slots:{root:(w==null?void 0:w.root)??a.Root,badge:(w==null?void 0:w.badge)??a.Badge},slotProps:{root:(m==null?void 0:m.root)??u.root,badge:(m==null?void 0:m.badge)??u.badge}},[j,N]=Ge("root",{elementType:$N,externalForwardedProps:{...G,...S},ownerState:$,className:de(B.root,l),ref:n,additionalProps:{as:s}}),[H,_]=Ge("badge",{elementType:DN,externalForwardedProps:G,ownerState:$,className:B.badge});return x.jsxs(j,{...N,children:[c,x.jsx(H,{..._,children:I})]})}),zN=LN,FN=je("MuiBox",["root"]),BN=FN,HN=mh(),NN=wL({themeId:Br,defaultTheme:HN,defaultClassName:BN.root,generateClassName:RT.generate}),jo=NN;function jN(e){return _e("MuiButton",e)}const GN=je("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"]),Si=GN,_N=f.createContext({}),VN=_N,UN=f.createContext(void 0),WN=UN,qN=e=>{const{color:t,disableElevation:n,fullWidth:o,size:r,variant:l,loading:i,loadingPosition:s,classes:a}=e,u={root:["root",i&&"loading",l,`${l}${re(t)}`,`size${re(r)}`,`${l}Size${re(r)}`,`color${re(t)}`,n&&"disableElevation",o&&"fullWidth",i&&`loadingPosition${re(s)}`],startIcon:["icon","startIcon",`iconSize${re(r)}`],endIcon:["icon","endIcon",`iconSize${re(r)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=ve(u,jN,a);return{...a,...c}},mP=[{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}}}],KN=Z(di,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${re(n.color)}`],t[`size${re(n.size)}`],t[`${n.variant}Size${re(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${Si.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${Si.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Si.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).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)",[`&.${Si.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(ln()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:lt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Si.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Si.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${Si.loading}`]:{color:"transparent"}}}]}})),YN=Z("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${re(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...mP]})),XN=Z("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${re(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...mP]})),QN=Z("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({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:(e.vars||e).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}}]})),Y0=Z("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),ZN=f.forwardRef(function(t,n){const o=f.useContext(VN),r=f.useContext(WN),l=ha(o,t),i=We({props:l,name:"MuiButton"}),{children:s,color:a="primary",component:u="button",className:c,disabled:d=!1,disableElevation:p=!1,disableFocusRipple:h=!1,endIcon:g,focusVisibleClassName:y,fullWidth:w=!1,id:m,loading:b=null,loadingIndicator:v,loadingPosition:S="center",size:M="medium",startIcon:R,type:k,variant:E="text",...P}=i,C=at(m),T=v??x.jsx(Sv,{"aria-labelledby":C,color:"inherit",size:16}),A={...i,color:a,component:u,disabled:d,disableElevation:p,disableFocusRipple:h,fullWidth:w,loading:b,loadingIndicator:T,loadingPosition:S,size:M,type:k,variant:E},L=qN(A),F=(R||b&&S==="start")&&x.jsx(YN,{className:L.startIcon,ownerState:A,children:R||x.jsx(Y0,{className:L.loadingIconPlaceholder,ownerState:A})}),D=(g||b&&S==="end")&&x.jsx(XN,{className:L.endIcon,ownerState:A,children:g||x.jsx(Y0,{className:L.loadingIconPlaceholder,ownerState:A})}),I=r||"",$=typeof b=="boolean"?x.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:b&&x.jsx(QN,{className:L.loadingIndicator,ownerState:A,children:T})}):null;return x.jsxs(KN,{ownerState:A,className:de(o.className,L.root,c,I),component:u,disabled:d||b,focusRipple:!h,focusVisibleClassName:de(L.focusVisible,y),ref:n,type:k,id:b?C:m,...P,classes:L,children:[F,S!=="end"&&$,s,S==="end"&&$,D]})}),Jf=ZN;function JN(e){return _e("PrivateSwitchBase",e)}je("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const e5=e=>{const{classes:t,checked:n,disabled:o,edge:r}=e,l={root:["root",n&&"checked",o&&"disabled",r&&`edge${re(r)}`],input:["input"]};return ve(l,JN,t)},t5=Z(di)({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),n5=Z("input",{shouldForwardProp:po})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),o5=f.forwardRef(function(t,n){const{autoFocus:o,checked:r,checkedIcon:l,defaultChecked:i,disabled:s,disableFocusRipple:a=!1,edge:u=!1,icon:c,id:d,inputProps:p,inputRef:h,name:g,onBlur:y,onChange:w,onFocus:m,readOnly:b,required:v=!1,tabIndex:S,type:M,value:R,slots:k={},slotProps:E={},...P}=t,[C,T]=Bi({controlled:r,default:!!i,name:"SwitchBase",state:"checked"}),A=Cl(),L=K=>{m&&m(K),A&&A.onFocus&&A.onFocus(K)},F=K=>{y&&y(K),A&&A.onBlur&&A.onBlur(K)},D=K=>{if(K.nativeEvent.defaultPrevented)return;const X=K.target.checked;T(X),w&&w(K,X)};let I=s;A&&typeof I>"u"&&(I=A.disabled);const $=M==="checkbox"||M==="radio",B={...t,checked:C,disabled:I,disableFocusRipple:a,edge:u},G=e5(B),j={slots:k,slotProps:{input:p,...E}},[N,H]=Ge("root",{ref:n,elementType:t5,className:G.root,shouldForwardComponentProp:!0,externalForwardedProps:{...j,component:"span",...P},getSlotProps:K=>({...K,onFocus:X=>{var oe;(oe=K.onFocus)==null||oe.call(K,X),L(X)},onBlur:X=>{var oe;(oe=K.onBlur)==null||oe.call(K,X),F(X)}}),ownerState:B,additionalProps:{centerRipple:!0,focusRipple:!a,disabled:I,role:void 0,tabIndex:null}}),[_,U]=Ge("input",{ref:h,elementType:n5,className:G.input,externalForwardedProps:j,getSlotProps:K=>({...K,onChange:X=>{var oe;(oe=K.onChange)==null||oe.call(K,X),D(X)}}),ownerState:B,additionalProps:{autoFocus:o,checked:r,defaultChecked:i,disabled:I,id:$?d:void 0,name:g,readOnly:b,required:v,tabIndex:S,type:M,...M==="checkbox"&&R===void 0?{}:{value:R}}});return x.jsxs(N,{...H,children:[x.jsx(_,{...U}),C?l:c]})}),bP=o5,r5=Kn(x.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),l5=Kn(x.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),i5=Kn(x.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function s5(e){return _e("MuiCheckbox",e)}const a5=je("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),$g=a5,c5=e=>{const{classes:t,indeterminate:n,color:o,size:r}=e,l={root:["root",n&&"indeterminate",`color${re(o)}`,`size${re(r)}`]},i=ve(l,s5,t);return{...t,...i}},u5=Z(bP,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${re(n.size)}`],n.color!=="default"&&t[`color${re(n.color)}`]]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{[`&.${$g.checked}, &.${$g.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${$g.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),d5=x.jsx(l5,{}),f5=x.jsx(r5,{}),p5=x.jsx(i5,{}),h5=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiCheckbox"}),{checkedIcon:r=d5,color:l="primary",icon:i=f5,indeterminate:s=!1,indeterminateIcon:a=p5,inputProps:u,size:c="medium",disableRipple:d=!1,className:p,slots:h={},slotProps:g={},...y}=o,w=s?a:i,m=s?a:r,b={...o,disableRipple:d,color:l,indeterminate:s,size:c},v=c5(b),S=g.input??u,[M,R]=Ge("root",{ref:n,elementType:u5,className:de(v.root,p),shouldForwardComponentProp:!0,externalForwardedProps:{slots:h,slotProps:g,...y},ownerState:b,additionalProps:{type:"checkbox",icon:f.cloneElement(w,{fontSize:w.props.fontSize??c}),checkedIcon:f.cloneElement(m,{fontSize:m.props.fontSize??c}),disableRipple:d,slots:h,slotProps:{input:XT(typeof S=="function"?S(b):S,{"data-indeterminate":s})}}});return x.jsx(M,{...R,classes:v})}),g5=h5;function X0(e){return e.substring(2).toLowerCase()}function m5(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function b5(e){const{children:t,disableReactTree:n=!1,mouseEvent:o="onClick",onClickAway:r,touchEvent:l="onTouchEnd"}=e,i=f.useRef(!1),s=f.useRef(null),a=f.useRef(!1),u=f.useRef(!1);f.useEffect(()=>(setTimeout(()=>{a.current=!0},0),()=>{a.current=!1}),[]);const c=vt(rs(t),s),d=Xe(g=>{const y=u.current;u.current=!1;const w=Yt(s.current);if(!a.current||!s.current||"clientX"in g&&m5(g,w))return;if(i.current){i.current=!1;return}let m;g.composedPath?m=g.composedPath().includes(s.current):m=!w.documentElement.contains(g.target)||s.current.contains(g.target),!m&&(n||!y)&&r(g)}),p=g=>y=>{u.current=!0;const w=t.props[g];w&&w(y)},h={ref:c};return l!==!1&&(h[l]=p(l)),f.useEffect(()=>{if(l!==!1){const g=X0(l),y=Yt(s.current),w=()=>{i.current=!0};return y.addEventListener(g,d),y.addEventListener("touchmove",w),()=>{y.removeEventListener(g,d),y.removeEventListener("touchmove",w)}}},[d,l]),o!==!1&&(h[o]=p(o)),f.useEffect(()=>{if(o!==!1){const g=X0(o),y=Yt(s.current);return y.addEventListener(g,d),()=>{y.removeEventListener(g,d)}}},[d,o]),f.cloneElement(t,h)}const y5=pz({createStyledComponent:Z("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${re(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>We({props:e,name:"MuiContainer"})}),v5=y5,Cb=typeof bv({})=="function",C5=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),S5=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),yP=(e,t=!1)=>{var l,i;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var c,d;const u=e.getColorSchemeSelector(s);u.startsWith("@")?n[u]={":root":{colorScheme:(c=a.palette)==null?void 0:c.mode}}:n[u.replace(/\s*&/,"")]={colorScheme:(d=a.palette)==null?void 0:d.mode}});let o={html:C5(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...S5(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const r=(i=(l=e.components)==null?void 0:l.MuiCssBaseline)==null?void 0:i.styleOverrides;return r&&(o=[o,r]),o},lf="mui-ecs",w5=e=>{const t=yP(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${lf})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,r])=>{var i,s;const l=e.getColorSchemeSelector(o);l.startsWith("@")?n[l]={[`:root:not(:has(.${lf}))`]:{colorScheme:(i=r.palette)==null?void 0:i.mode}}:n[l.replace(/\s*&/,"")]={[`&:not(:has(.${lf}))`]:{colorScheme:(s=r.palette)==null?void 0:s.mode}}}),t},x5=bv(Cb?({theme:e,enableColorScheme:t})=>yP(e,t):({theme:e})=>w5(e));function M5(e){const t=We({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:o=!1}=t;return x.jsxs(f.Fragment,{children:[Cb&&x.jsx(x5,{enableColorScheme:o}),!Cb&&!o&&x.jsx("span",{className:lf,style:{display:"none"}}),n]})}function vP(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function E5(e){const t=Yt(e);return t.body===e?br(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Gc(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Q0(e){return parseInt(br(e).getComputedStyle(e).paddingRight,10)||0}function T5(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Z0(e,t,n,o,r){const l=[t,n,...o];[].forEach.call(e.children,i=>{const s=!l.includes(i),a=!T5(i);s&&a&&Gc(i,r)})}function Dg(e,t){let n=-1;return e.some((o,r)=>t(o)?(n=r,!0):!1),n}function P5(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(E5(o)){const i=vP(br(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Q0(o)+i}px`;const s=Yt(o).querySelectorAll(".mui-fixed");[].forEach.call(s,a=>{n.push({value:a.style.paddingRight,property:"padding-right",el:a}),a.style.paddingRight=`${Q0(a)+i}px`})}let l;if(o.parentNode instanceof DocumentFragment)l=Yt(o).body;else{const i=o.parentElement,s=br(o);l=(i==null?void 0:i.nodeName)==="HTML"&&s.getComputedStyle(i).overflowY==="scroll"?i:o}n.push({value:l.style.overflow,property:"overflow",el:l},{value:l.style.overflowX,property:"overflow-x",el:l},{value:l.style.overflowY,property:"overflow-y",el:l}),l.style.overflow="hidden"}return()=>{n.forEach(({value:l,el:i,property:s})=>{l?i.style.setProperty(s,l):i.style.removeProperty(s)})}}function I5(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class O5{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&Gc(t.modalRef,!1);const r=I5(n);Z0(n,t.mount,t.modalRef,r,!0);const l=Dg(this.containers,i=>i.container===n);return l!==-1?(this.containers[l].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:r}),o)}mount(t,n){const o=Dg(this.containers,l=>l.modals.includes(t)),r=this.containers[o];r.restore||(r.restore=P5(r,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const r=Dg(this.containers,i=>i.modals.includes(t)),l=this.containers[r];if(l.modals.splice(l.modals.indexOf(t),1),this.modals.splice(o,1),l.modals.length===0)l.restore&&l.restore(),t.modalRef&&Gc(t.modalRef,n),Z0(l.container,t.mount,t.modalRef,l.hiddenSiblings,!1),this.containers.splice(r,1);else{const i=l.modals[l.modals.length-1];i.modalRef&&Gc(i.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const R5=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function k5(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function A5(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function $5(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||A5(e))}function D5(e){const t=[],n=[];return Array.from(e.querySelectorAll(R5)).forEach((o,r)=>{const l=k5(o);l===-1||!$5(o)||(l===0?t.push(o):n.push({documentOrder:r,tabIndex:l,node:o}))}),n.sort((o,r)=>o.tabIndex===r.tabIndex?o.documentOrder-r.documentOrder:o.tabIndex-r.tabIndex).map(o=>o.node).concat(t)}function L5(){return!0}function CP(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:r=!1,getTabbable:l=D5,isEnabled:i=L5,open:s}=e,a=f.useRef(!1),u=f.useRef(null),c=f.useRef(null),d=f.useRef(null),p=f.useRef(null),h=f.useRef(!1),g=f.useRef(null),y=vt(rs(t),g),w=f.useRef(null);f.useEffect(()=>{!s||!g.current||(h.current=!n)},[n,s]),f.useEffect(()=>{if(!s||!g.current)return;const v=Yt(g.current);return g.current.contains(v.activeElement)||(g.current.hasAttribute("tabIndex")||g.current.setAttribute("tabIndex","-1"),h.current&&g.current.focus()),()=>{r||(d.current&&d.current.focus&&(a.current=!0,d.current.focus()),d.current=null)}},[s]),f.useEffect(()=>{if(!s||!g.current)return;const v=Yt(g.current),S=k=>{w.current=k,!(o||!i()||k.key!=="Tab")&&v.activeElement===g.current&&k.shiftKey&&(a.current=!0,c.current&&c.current.focus())},M=()=>{var P,C;const k=g.current;if(k===null)return;if(!v.hasFocus()||!i()||a.current){a.current=!1;return}if(k.contains(v.activeElement)||o&&v.activeElement!==u.current&&v.activeElement!==c.current)return;if(v.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!h.current)return;let E=[];if((v.activeElement===u.current||v.activeElement===c.current)&&(E=l(g.current)),E.length>0){const T=!!((P=w.current)!=null&&P.shiftKey&&((C=w.current)==null?void 0:C.key)==="Tab"),A=E[0],L=E[E.length-1];typeof A!="string"&&typeof L!="string"&&(T?L.focus():A.focus())}else k.focus()};v.addEventListener("focusin",M),v.addEventListener("keydown",S,!0);const R=setInterval(()=>{v.activeElement&&v.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(R),v.removeEventListener("focusin",M),v.removeEventListener("keydown",S,!0)}},[n,o,r,i,s,l]);const m=v=>{d.current===null&&(d.current=v.relatedTarget),h.current=!0,p.current=v.target;const S=t.props.onFocus;S&&S(v)},b=v=>{d.current===null&&(d.current=v.relatedTarget),h.current=!0};return x.jsxs(f.Fragment,{children:[x.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),f.cloneElement(t,{ref:y,onFocus:m}),x.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}function z5(e){return typeof e=="function"?e():e}function F5(e){return e?e.props.hasOwnProperty("in"):!1}const J0=()=>{},Od=new O5;function B5(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:r=!1,onTransitionEnter:l,onTransitionExited:i,children:s,onClose:a,open:u,rootRef:c}=e,d=f.useRef({}),p=f.useRef(null),h=f.useRef(null),g=vt(h,c),[y,w]=f.useState(!u),m=F5(s);let b=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(b=!1);const v=()=>Yt(p.current),S=()=>(d.current.modalRef=h.current,d.current.mount=p.current,d.current),M=()=>{Od.mount(S(),{disableScrollLock:o}),h.current&&(h.current.scrollTop=0)},R=Xe(()=>{const D=z5(t)||v().body;Od.add(S(),D),h.current&&M()}),k=()=>Od.isTopModal(S()),E=Xe(D=>{p.current=D,D&&(u&&k()?M():h.current&&Gc(h.current,b))}),P=f.useCallback(()=>{Od.remove(S(),b)},[b]);f.useEffect(()=>()=>{P()},[P]),f.useEffect(()=>{u?R():(!m||!r)&&P()},[u,P,m,r,R]);const C=D=>I=>{var $;($=D.onKeyDown)==null||$.call(D,I),!(I.key!=="Escape"||I.which===229||!k())&&(n||(I.stopPropagation(),a&&a(I,"escapeKeyDown")))},T=D=>I=>{var $;($=D.onClick)==null||$.call(D,I),I.target===I.currentTarget&&a&&a(I,"backdropClick")};return{getRootProps:(D={})=>{const I=nP(e);delete I.onTransitionEnter,delete I.onTransitionExited;const $={...I,...D};return{role:"presentation",...$,onKeyDown:C($),ref:g}},getBackdropProps:(D={})=>{const I=D;return{"aria-hidden":!0,...I,onClick:T(I),open:u}},getTransitionProps:()=>{const D=()=>{w(!1),l&&l()},I=()=>{w(!0),i&&i(),r&&P()};return{onEnter:C0(D,(s==null?void 0:s.props.onEnter)??J0),onExited:C0(I,(s==null?void 0:s.props.onExited)??J0)}},rootRef:g,portalRef:E,isTopModal:k,exited:y,hasTransition:m}}function H5(e){return _e("MuiModal",e)}je("MuiModal",["root","hidden","backdrop"]);const N5=e=>{const{open:t,exited:n,classes:o}=e;return ve({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},H5,o)},j5=Z("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Fe(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),G5=Z(gP,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),_5=f.forwardRef(function(t,n){const o=We({name:"MuiModal",props:t}),{BackdropComponent:r=G5,BackdropProps:l,classes:i,className:s,closeAfterTransition:a=!1,children:u,container:c,component:d,components:p={},componentsProps:h={},disableAutoFocus:g=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:w=!1,disablePortal:m=!1,disableRestoreFocus:b=!1,disableScrollLock:v=!1,hideBackdrop:S=!1,keepMounted:M=!1,onClose:R,onTransitionEnter:k,onTransitionExited:E,open:P,slotProps:C={},slots:T={},theme:A,...L}=o,F={...o,closeAfterTransition:a,disableAutoFocus:g,disableEnforceFocus:y,disableEscapeKeyDown:w,disablePortal:m,disableRestoreFocus:b,disableScrollLock:v,hideBackdrop:S,keepMounted:M},{getRootProps:D,getBackdropProps:I,getTransitionProps:$,portalRef:B,isTopModal:G,exited:j,hasTransition:N}=B5({...F,rootRef:n}),H={...F,exited:j},_=N5(H),U={};if(u.props.tabIndex===void 0&&(U.tabIndex="-1"),N){const{onEnter:W,onExited:ne}=$();U.onEnter=W,U.onExited=ne}const K={slots:{root:p.Root,backdrop:p.Backdrop,...T},slotProps:{...h,...C}},[X,oe]=Ge("root",{ref:n,elementType:j5,externalForwardedProps:{...K,...L,component:d},getSlotProps:D,ownerState:H,className:de(s,_==null?void 0:_.root,!H.open&&H.exited&&(_==null?void 0:_.hidden))}),[ue,V]=Ge("backdrop",{ref:l==null?void 0:l.ref,elementType:r,externalForwardedProps:K,shouldForwardComponentProp:!0,additionalProps:l,getSlotProps:W=>I({...W,onClick:ne=>{W!=null&&W.onClick&&W.onClick(ne)}}),className:de(l==null?void 0:l.className,_==null?void 0:_.backdrop),ownerState:H});return!M&&!P&&(!N||j)?null:x.jsx(pP,{ref:B,container:c,disablePortal:m,children:x.jsxs(X,{...oe,children:[!S&&r?x.jsx(ue,{...V}):null,x.jsx(CP,{disableEnforceFocus:y,disableAutoFocus:g,disableRestoreFocus:b,isEnabled:G,open:P,children:f.cloneElement(u,U)})]})})}),SP=_5;function V5(e){return _e("MuiDialog",e)}const U5=je("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),Lg=U5,W5=f.createContext({}),wP=W5,q5=Z(gP,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),K5=e=>{const{classes:t,scroll:n,maxWidth:o,fullWidth:r,fullScreen:l}=e,i={root:["root"],container:["container",`scroll${re(n)}`],paper:["paper",`paperScroll${re(n)}`,`paperWidth${re(String(o))}`,r&&"paperFullWidth",l&&"paperFullScreen"]};return ve(i,V5,t)},Y5=Z(SP,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),X5=Z("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${re(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),Q5=Z(os,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${re(n.scroll)}`],t[`paperWidth${re(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Fe(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${Lg.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${Lg.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${Lg.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Z5=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiDialog"}),r=mi(),l={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":i,"aria-labelledby":s,"aria-modal":a=!0,BackdropComponent:u,BackdropProps:c,children:d,className:p,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:y=!1,maxWidth:w="sm",onClick:m,onClose:b,open:v,PaperComponent:S=os,PaperProps:M={},scroll:R="paper",slots:k={},slotProps:E={},TransitionComponent:P=vb,transitionDuration:C=l,TransitionProps:T,...A}=o,L={...o,disableEscapeKeyDown:h,fullScreen:g,fullWidth:y,maxWidth:w,scroll:R},F=K5(L),D=f.useRef(),I=Y=>{D.current=Y.target===Y.currentTarget},$=Y=>{m&&m(Y),D.current&&(D.current=null,b&&b(Y,"backdropClick"))},B=at(s),G=f.useMemo(()=>({titleId:B}),[B]),j={transition:P,...k},N={transition:T,paper:M,backdrop:c,...E},H={slots:j,slotProps:N},[_,U]=Ge("root",{elementType:Y5,shouldForwardComponentProp:!0,externalForwardedProps:H,ownerState:L,className:de(F.root,p),ref:n}),[K,X]=Ge("backdrop",{elementType:q5,shouldForwardComponentProp:!0,externalForwardedProps:H,ownerState:L}),[oe,ue]=Ge("paper",{elementType:Q5,shouldForwardComponentProp:!0,externalForwardedProps:H,ownerState:L,className:de(F.paper,M.className)}),[V,W]=Ge("container",{elementType:X5,externalForwardedProps:H,ownerState:L,className:F.container}),[ne,J]=Ge("transition",{elementType:vb,externalForwardedProps:H,ownerState:L,additionalProps:{appear:!0,in:v,timeout:C,role:"presentation"}});return x.jsx(_,{closeAfterTransition:!0,slots:{backdrop:K},slotProps:{backdrop:{transitionDuration:C,as:u,...X}},disableEscapeKeyDown:h,onClose:b,open:v,onClick:$,...U,...A,children:x.jsx(ne,{...J,children:x.jsx(V,{onMouseDown:I,...W,children:x.jsx(oe,{as:S,elevation:24,role:"dialog","aria-describedby":i,"aria-labelledby":B,"aria-modal":a,...ue,children:x.jsx(wP.Provider,{value:G,children:d})})})})})}),J5=Z5;function e4(e){return _e("MuiDialogActions",e)}je("MuiDialogActions",["root","spacing"]);const t4=e=>{const{classes:t,disableSpacing:n}=e;return ve({root:["root",!n&&"spacing"]},e4,t)},n4=Z("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),o4=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:l=!1,...i}=o,s={...o,disableSpacing:l},a=t4(s);return x.jsx(n4,{className:de(a.root,r),ownerState:s,ref:n,...i})}),r4=o4;function l4(e){return _e("MuiDialogContent",e)}je("MuiDialogContent",["root","dividers"]);function i4(e){return _e("MuiDialogTitle",e)}const s4=je("MuiDialogTitle",["root"]),a4=s4,c4=e=>{const{classes:t,dividers:n}=e;return ve({root:["root",n&&"dividers"]},l4,t)},u4=Z("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Fe(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${a4.root} + &`]:{paddingTop:0}}}]}))),d4=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiDialogContent"}),{className:r,dividers:l=!1,...i}=o,s={...o,dividers:l},a=c4(s);return x.jsx(u4,{className:de(a.root,r),ownerState:s,ref:n,...i})}),f4=d4,p4=e=>{const{classes:t}=e;return ve({root:["root"]},i4,t)},h4=Z($r,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),g4=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiDialogTitle"}),{className:r,id:l,...i}=o,s=o,a=p4(s),{titleId:u=l}=f.useContext(wP);return x.jsx(h4,{component:"h2",className:de(a.root,r),ownerState:s,ref:n,variant:"h6",id:l??u,...i})}),m4=g4;function b4(e){return _e("MuiDivider",e)}const y4=je("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ew=y4,v4=e=>{const{absolute:t,children:n,classes:o,flexItem:r,light:l,orientation:i,textAlign:s,variant:a}=e;return ve({root:["root",t&&"absolute",a,l&&"light",i==="vertical"&&"vertical",r&&"flexItem",n&&"withChildren",n&&i==="vertical"&&"withChildrenVertical",s==="right"&&i!=="vertical"&&"textAlignRight",s==="left"&&i!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",i==="vertical"&&"wrapperVertical"]},b4,o)},C4=Z("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Fe(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:lt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),S4=Z("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Fe(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Sb=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiDivider"}),{absolute:r=!1,children:l,className:i,orientation:s="horizontal",component:a=l||s==="vertical"?"div":"hr",flexItem:u=!1,light:c=!1,role:d=a!=="hr"?"separator":void 0,textAlign:p="center",variant:h="fullWidth",...g}=o,y={...o,absolute:r,component:a,flexItem:u,light:c,orientation:s,role:d,textAlign:p,variant:h},w=v4(y);return x.jsx(C4,{as:a,className:de(w.root,i),role:d,ref:n,ownerState:y,"aria-orientation":d==="separator"&&(a!=="hr"||s==="vertical")?s:void 0,...g,children:l?x.jsx(S4,{className:w.wrapper,ownerState:y,children:l}):null})});Sb&&(Sb.muiSkipListHighlight=!0);const w4=Sb,x4=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:r,size:l,hiddenLabel:i,multiline:s}=e,a={root:["root",!n&&"underline",o&&"adornedStart",r&&"adornedEnd",l==="small"&&`size${re(l)}`,i&&"hiddenLabel",s&&"multiline"],input:["input"]},u=ve(a,iN,t);return{...t,...u}},M4=Z(wh,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ch(e,t),!n.disableUnderline&&t.underline]}})(Fe(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",r=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:r,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l},variants:[{props:({ownerState:i})=>!i.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ln()).map(([i])=>{var s;return{props:{disableUnderline:!1,color:i},style:{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[i])==null?void 0:s.main}`}}}}),{props:({ownerState:i})=>i.startAdornment,style:{paddingLeft:12}},{props:({ownerState:i})=>i.endAdornment,style:{paddingRight:12}},{props:({ownerState:i})=>i.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:i,size:s})=>i.multiline&&s==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:i})=>i.multiline&&i.hiddenLabel&&i.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),E4=Z(xh,{name:"MuiFilledInput",slot:"Input",overridesResolver:Sh})(Fe(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.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:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),xP=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiFilledInput"}),{disableUnderline:r=!1,components:l={},componentsProps:i,fullWidth:s=!1,hiddenLabel:a,inputComponent:u="input",multiline:c=!1,slotProps:d,slots:p={},type:h="text",...g}=o,y={...o,disableUnderline:r,fullWidth:s,inputComponent:u,multiline:c,type:h},w=x4(o),m={root:{ownerState:y},input:{ownerState:y}},b=d??i?qn(m,d??i):m,v=p.root??l.Root??M4,S=p.input??l.Input??E4;return x.jsx(qu,{slots:{root:v,input:S},slotProps:b,fullWidth:s,inputComponent:u,multiline:c,ref:n,type:h,...g,classes:w})});xP.muiName="Input";const MP=xP;function T4(e){return _e("MuiFormControl",e)}je("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const P4=e=>{const{classes:t,margin:n,fullWidth:o}=e,r={root:["root",n!=="none"&&`margin${re(n)}`,o&&"fullWidth"]};return ve(r,T4,t)},I4=Z("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${re(n.margin)}`],n.fullWidth&&t.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%"}}]}),O4=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiFormControl"}),{children:r,className:l,color:i="primary",component:s="div",disabled:a=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:p=!1,margin:h="none",required:g=!1,size:y="medium",variant:w="outlined",...m}=o,b={...o,color:i,component:s,disabled:a,error:u,fullWidth:d,hiddenLabel:p,margin:h,required:g,size:y,variant:w},v=P4(b),[S,M]=f.useState(()=>{let D=!1;return r&&f.Children.forEach(r,I=>{if(!Og(I,["Input","Select"]))return;const $=Og(I,["Select"])?I.props.input:I;$&&QH($.props)&&(D=!0)}),D}),[R,k]=f.useState(()=>{let D=!1;return r&&f.Children.forEach(r,I=>{Og(I,["Input","Select"])&&(Qf(I.props,!0)||Qf(I.props.inputProps,!0))&&(D=!0)}),D}),[E,P]=f.useState(!1);a&&E&&P(!1);const C=c!==void 0&&!a?c:E;let T;f.useRef(!1);const A=f.useCallback(()=>{k(!0)},[]),L=f.useCallback(()=>{k(!1)},[]),F=f.useMemo(()=>({adornedStart:S,setAdornedStart:M,color:i,disabled:a,error:u,filled:R,focused:C,fullWidth:d,hiddenLabel:p,size:y,onBlur:()=>{P(!1)},onFocus:()=>{P(!0)},onEmpty:L,onFilled:A,registerEffect:T,required:g,variant:w}),[S,i,a,u,R,C,d,p,T,L,A,g,y,w]);return x.jsx(vh.Provider,{value:F,children:x.jsx(I4,{as:s,ownerState:b,className:de(v.root,l),ref:n,...m,children:r})})}),EP=O4;function R4(e){return _e("MuiFormControlLabel",e)}const k4=je("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Bs=k4,A4=e=>{const{classes:t,disabled:n,labelPlacement:o,error:r,required:l}=e,i={root:["root",n&&"disabled",`labelPlacement${re(o)}`,r&&"error",l&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",r&&"error"]};return ve(i,R4,t)},$4=Z("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bs.label}`]:t.label},t.root,t[`labelPlacement${re(n.labelPlacement)}`]]}})(Fe(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Bs.disabled}`]:{cursor:"default"},[`& .${Bs.label}`]:{[`&.${Bs.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:t})=>t==="start"||t==="top"||t==="bottom",style:{marginLeft:16}}]}))),D4=Z("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Fe(({theme:e})=>({[`&.${Bs.error}`]:{color:(e.vars||e).palette.error.main}}))),L4=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiFormControlLabel"}),{checked:r,className:l,componentsProps:i={},control:s,disabled:a,disableTypography:u,inputRef:c,label:d,labelPlacement:p="end",name:h,onChange:g,required:y,slots:w={},slotProps:m={},value:b,...v}=o,S=Cl(),M=a??s.props.disabled??(S==null?void 0:S.disabled),R=y??s.props.required,k={disabled:M,required:R};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof s.props[D]>"u"&&typeof o[D]<"u"&&(k[D]=o[D])});const E=ls({props:o,muiFormControl:S,states:["error"]}),P={...o,disabled:M,labelPlacement:p,required:R,error:E.error},C=A4(P),T={slots:w,slotProps:{...i,...m}},[A,L]=Ge("typography",{elementType:$r,externalForwardedProps:T,ownerState:P});let F=d;return F!=null&&F.type!==$r&&!u&&(F=x.jsx(A,{component:"span",...L,className:de(C.label,L==null?void 0:L.className),children:F})),x.jsxs($4,{className:de(C.root,l),ownerState:P,ref:n,...v,children:[f.cloneElement(s,k),R?x.jsxs("div",{children:[F,x.jsxs(D4,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]}):F]})}),TP=L4;function z4(e){return _e("MuiFormHelperText",e)}const F4=je("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),tw=F4;var nw;const B4=e=>{const{classes:t,contained:n,size:o,disabled:r,error:l,filled:i,focused:s,required:a}=e,u={root:["root",r&&"disabled",l&&"error",o&&`size${re(o)}`,n&&"contained",s&&"focused",i&&"filled",a&&"required"]};return ve(u,z4,t)},H4=Z("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${re(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${tw.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${tw.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),N4=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiFormHelperText"}),{children:r,className:l,component:i="p",disabled:s,error:a,filled:u,focused:c,margin:d,required:p,variant:h,...g}=o,y=Cl(),w=ls({props:o,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),m={...o,component:i,contained:w.variant==="filled"||w.variant==="outlined",variant:w.variant,size:w.size,disabled:w.disabled,error:w.error,filled:w.filled,focused:w.focused,required:w.required};delete m.ownerState;const b=B4(m);return x.jsx(H4,{as:i,className:de(b.root,l),ref:n,...g,ownerState:m,children:r===" "?nw||(nw=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):r})}),j4=N4;function G4(e){return _e("MuiFormLabel",e)}const _4=je("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),_c=_4,V4=e=>{const{classes:t,color:n,focused:o,disabled:r,error:l,filled:i,required:s}=e,a={root:["root",`color${re(n)}`,r&&"disabled",l&&"error",i&&"filled",o&&"focused",s&&"required"],asterisk:["asterisk",l&&"error"]};return ve(a,G4,t)},U4=Z("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Fe(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{[`&.${_c.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${_c.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${_c.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),W4=Z("span",{name:"MuiFormLabel",slot:"Asterisk"})(Fe(({theme:e})=>({[`&.${_c.error}`]:{color:(e.vars||e).palette.error.main}}))),q4=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiFormLabel"}),{children:r,className:l,color:i,component:s="label",disabled:a,error:u,filled:c,focused:d,required:p,...h}=o,g=Cl(),y=ls({props:o,muiFormControl:g,states:["color","required","focused","disabled","error","filled"]}),w={...o,color:y.color||"primary",component:s,disabled:y.disabled,error:y.error,filled:y.filled,focused:y.focused,required:y.required},m=V4(w);return x.jsxs(U4,{as:s,ownerState:w,className:de(m.root,l),ref:n,...h,children:[r,y.required&&x.jsxs(W4,{ownerState:w,"aria-hidden":!0,className:m.asterisk,children:[" ","*"]})]})}),K4=q4;function wb(e){return`scale(${e}, ${e**2})`}const Y4={entering:{opacity:1,transform:wb(1)},entered:{opacity:1,transform:"none"}},zg=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xb=f.forwardRef(function(t,n){const{addEndListener:o,appear:r=!0,children:l,easing:i,in:s,onEnter:a,onEntered:u,onEntering:c,onExit:d,onExited:p,onExiting:h,style:g,timeout:y="auto",TransitionComponent:w=ZT,...m}=t,b=Wo(),v=f.useRef(),S=mi(),M=f.useRef(null),R=vt(M,rs(l),n),k=D=>I=>{if(D){const $=M.current;I===void 0?D($):D($,I)}},E=k(c),P=k((D,I)=>{JT(D);const{duration:$,delay:B,easing:G}=qf({style:g,timeout:y,easing:i},{mode:"enter"});let j;y==="auto"?(j=S.transitions.getAutoHeightDuration(D.clientHeight),v.current=j):j=$,D.style.transition=[S.transitions.create("opacity",{duration:j,delay:B}),S.transitions.create("transform",{duration:zg?j:j*.666,delay:B,easing:G})].join(","),a&&a(D,I)}),C=k(u),T=k(h),A=k(D=>{const{duration:I,delay:$,easing:B}=qf({style:g,timeout:y,easing:i},{mode:"exit"});let G;y==="auto"?(G=S.transitions.getAutoHeightDuration(D.clientHeight),v.current=G):G=I,D.style.transition=[S.transitions.create("opacity",{duration:G,delay:$}),S.transitions.create("transform",{duration:zg?G:G*.666,delay:zg?$:$||G*.333,easing:B})].join(","),D.style.opacity=0,D.style.transform=wb(.75),d&&d(D)}),L=k(p),F=D=>{y==="auto"&&b.start(v.current||0,D),o&&o(M.current,D)};return x.jsx(w,{appear:r,in:s,nodeRef:M,onEnter:P,onEntered:C,onEntering:E,onExit:A,onExited:L,onExiting:T,addEndListener:F,timeout:y==="auto"?null:y,...m,children:(D,{ownerState:I,...$})=>f.cloneElement(l,{style:{opacity:0,transform:wb(.75),visibility:D==="exited"&&!s?"hidden":void 0,...Y4[D],...g,...l.props.style},ref:R,...$})})});xb&&(xb.muiSupportAuto=!0);const kv=xb,X4=e=>{const{classes:t,disableUnderline:n}=e,r=ve({root:["root",!n&&"underline"],input:["input"]},nN,t);return{...t,...r}},Q4=Z(wh,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ch(e,t),!n.disableUnderline&&t.underline]}})(Fe(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Vl.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Vl.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Vl.disabled}, .${Vl.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Vl.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(ln()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),Z4=Z(xh,{name:"MuiInput",slot:"Input",overridesResolver:Sh})({}),PP=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiInput"}),{disableUnderline:r=!1,components:l={},componentsProps:i,fullWidth:s=!1,inputComponent:a="input",multiline:u=!1,slotProps:c,slots:d={},type:p="text",...h}=o,g=X4(o),w={root:{ownerState:{disableUnderline:r}}},m=c??i?qn(c??i,w):w,b=d.root??l.Root??Q4,v=d.input??l.Input??Z4;return x.jsx(qu,{slots:{root:b,input:v},slotProps:m,fullWidth:s,inputComponent:a,multiline:u,ref:n,type:p,...h,classes:g})});PP.muiName="Input";const IP=PP;function J4(e){return _e("MuiInputAdornment",e)}const ej=je("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),Mb=ej;var ow;const tj=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${re(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},nj=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:o,position:r,size:l,variant:i}=e,s={root:["root",n&&"disablePointerEvents",r&&`position${re(r)}`,i,o&&"hiddenLabel",l&&`size${re(l)}`]};return ve(s,J4,t)},oj=Z("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:tj})(Fe(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Mb.positionStart}&:not(.${Mb.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),rj=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiInputAdornment"}),{children:r,className:l,component:i="div",disablePointerEvents:s=!1,disableTypography:a=!1,position:u,variant:c,...d}=o,p=Cl()||{};let h=c;c&&p.variant,p&&!h&&(h=p.variant);const g={...o,hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:s,position:u,variant:h},y=nj(g);return x.jsx(vh.Provider,{value:null,children:x.jsx(oj,{as:i,ownerState:g,className:de(y.root,l),ref:n,...d,children:typeof r=="string"&&!a?x.jsx($r,{color:"textSecondary",children:r}):x.jsxs(f.Fragment,{children:[u==="start"?ow||(ow=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,r]})})})}),lj=rj;function ij(e){return _e("MuiInputLabel",e)}je("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const sj=e=>{const{classes:t,formControl:n,size:o,shrink:r,disableAnimation:l,variant:i,required:s}=e,a={root:["root",n&&"formControl",!l&&"animated",r&&"shrink",o&&o!=="medium"&&`size${re(o)}`,i],asterisk:[s&&"asterisk"]},u=ve(a,ij,t);return{...t,...u}},aj=Z(K4,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_c.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Fe(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.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:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.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:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="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:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),cj=f.forwardRef(function(t,n){const o=We({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,margin:l,shrink:i,variant:s,className:a,...u}=o,c=Cl();let d=i;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const p=ls({props:o,muiFormControl:c,states:["size","variant","required","focused"]}),h={...o,disableAnimation:r,formControl:c,shrink:d,size:p.size,variant:p.variant,required:p.required,focused:p.focused},g=sj(h);return x.jsx(aj,{"data-shrink":d,ref:n,className:de(g.root,a),...u,ownerState:h,classes:g})}),OP=cj;function uj(e){return _e("MuiLinearProgress",e)}je("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Eb=4,Tb=tr` 212 0% { 213 left: -35%; 214 right: 100%; 215 } 216 217 60% { 218 left: 100%; 219 right: -90%; 220 } 221 222 100% { 223 left: 100%; 224 right: -90%; 225 } 226 `,dj=typeof Tb!="string"?gi` 227 animation: ${Tb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; 228 `:null,Pb=tr` 229 0% { 230 left: -200%; 231 right: 100%; 232 } 233 234 60% { 235 left: 107%; 236 right: -8%; 237 } 238 239 100% { 240 left: 107%; 241 right: -8%; 242 } 243 `,fj=typeof Pb!="string"?gi` 244 animation: ${Pb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; 245 `:null,Ib=tr` 246 0% { 247 opacity: 1; 248 background-position: 0 -23px; 249 } 250 251 60% { 252 opacity: 0; 253 background-position: 0 -23px; 254 } 255 256 100% { 257 opacity: 1; 258 background-position: -200px -23px; 259 } 260 `,pj=typeof Ib!="string"?gi` 261 animation: ${Ib} 3s infinite linear; 262 `:null,hj=e=>{const{classes:t,variant:n,color:o}=e,r={root:["root",`color${re(o)}`,n],dashed:["dashed",`dashedColor${re(o)}`],bar1:["bar","bar1",`barColor${re(o)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${re(o)}`,n==="buffer"&&`color${re(o)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return ve(r,uj,t)},Av=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?ns(e.palette[t].main,.62):ts(e.palette[t].main,.5),gj=Z("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${re(n.color)}`],t[n.variant]]}})(Fe(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{backgroundColor:Av(e,t)}})),{props:({ownerState:t})=>t.color==="inherit"&&t.variant!=="buffer",style:{"&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}}},{props:{variant:"buffer"},style:{backgroundColor:"transparent"}},{props:{variant:"query"},style:{transform:"rotate(180deg)"}}]}))),mj=Z("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${re(n.color)}`]]}})(Fe(({theme:e})=>({position:"absolute",marginTop:0,height:"100%",width:"100%",backgroundSize:"10px 10px",backgroundPosition:"0 -23px",variants:[{props:{color:"inherit"},style:{opacity:.3,backgroundImage:"radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)"}},...Object.entries(e.palette).filter(ln()).map(([t])=>{const n=Av(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),pj||{animation:`${Ib} 3s infinite linear`}),bj=Z("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${re(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Fe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[{props:{color:"inherit"},style:{backgroundColor:"currentColor"}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${Eb}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${Eb}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:dj||{animation:`${Tb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),yj=Z("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${re(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Fe(({theme:e})=>({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",variants:[...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:t})=>t.variant!=="buffer"&&t.color!=="inherit",style:{backgroundColor:"var(--LinearProgressBar2-barColor, currentColor)"}},{props:({ownerState:t})=>t.variant!=="buffer"&&t.color==="inherit",style:{backgroundColor:"currentColor"}},{props:{color:"inherit"},style:{opacity:.3}},...Object.entries(e.palette).filter(ln()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:Av(e,t),transition:`transform .${Eb}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:fj||{animation:`${Pb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),vj=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiLinearProgress"}),{className:r,color:l="primary",value:i,valueBuffer:s,variant:a="indeterminate",...u}=o,c={...o,color:l,variant:a},d=hj(c),p=_n(),h={},g={bar1:{},bar2:{}};if((a==="determinate"||a==="buffer")&&i!==void 0){h["aria-valuenow"]=Math.round(i),h["aria-valuemin"]=0,h["aria-valuemax"]=100;let y=i-100;p&&(y=-y),g.bar1.transform=`translateX(${y}%)`}if(a==="buffer"&&s!==void 0){let y=(s||0)-100;p&&(y=-y),g.bar2.transform=`translateX(${y}%)`}return x.jsxs(gj,{className:de(d.root,r),ownerState:c,role:"progressbar",...h,ref:n,...u,children:[a==="buffer"?x.jsx(mj,{className:d.dashed,ownerState:c}):null,x.jsx(bj,{className:d.bar1,ownerState:c,style:g.bar1}),a==="determinate"?null:x.jsx(yj,{className:d.bar2,ownerState:c,style:g.bar2})]})}),Cj=vj,Sj=f.createContext({}),hu=Sj;function wj(e){return _e("MuiList",e)}je("MuiList",["root","padding","dense","subheader"]);const xj=e=>{const{classes:t,disablePadding:n,dense:o,subheader:r}=e;return ve({root:["root",!n&&"padding",o&&"dense",r&&"subheader"]},wj,t)},Mj=Z("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Ej=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiList"}),{children:r,className:l,component:i="ul",dense:s=!1,disablePadding:a=!1,subheader:u,...c}=o,d=f.useMemo(()=>({dense:s}),[s]),p={...o,component:i,dense:s,disablePadding:a},h=xj(p);return x.jsx(hu.Provider,{value:d,children:x.jsxs(Mj,{as:i,className:de(h.root,l),ref:n,ownerState:p,...c,children:[u,r]})})}),Tj=Ej;function Pj(e){return _e("MuiListItemIcon",e)}const Ij=je("MuiListItemIcon",["root","alignItemsFlexStart"]),rw=Ij,Oj=e=>{const{alignItems:t,classes:n}=e;return ve({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},Pj,n)},Rj=Z("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Fe(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),kj=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiListItemIcon"}),{className:r,...l}=o,i=f.useContext(hu),s={...o,alignItems:i.alignItems},a=Oj(s);return x.jsx(Rj,{className:de(a.root,r),ownerState:s,ref:n,...l})}),lw=kj;function Aj(e){return _e("MuiListItemText",e)}const $j=je("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Oi=$j,Dj=e=>{const{classes:t,inset:n,primary:o,secondary:r,dense:l}=e;return ve({root:["root",n&&"inset",l&&"dense",o&&r&&"multiline"],primary:["primary"],secondary:["secondary"]},Aj,t)},Lj=Z("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Oi.primary}`]:t.primary},{[`& .${Oi.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${P0.root}:where(& .${Oi.primary})`]:{display:"block"},[`.${P0.root}:where(& .${Oi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),zj=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiListItemText"}),{children:r,className:l,disableTypography:i=!1,inset:s=!1,primary:a,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:d,slots:p={},slotProps:h={},...g}=o,{dense:y}=f.useContext(hu);let w=a??r,m=c;const b={...o,disableTypography:i,inset:s,primary:!!w,secondary:!!m,dense:y},v=Dj(b),S={slots:p,slotProps:{primary:u,secondary:d,...h}},[M,R]=Ge("root",{className:de(v.root,l),elementType:Lj,externalForwardedProps:{...S,...g},ownerState:b,ref:n}),[k,E]=Ge("primary",{className:v.primary,elementType:$r,externalForwardedProps:S,ownerState:b}),[P,C]=Ge("secondary",{className:v.secondary,elementType:$r,externalForwardedProps:S,ownerState:b});return w!=null&&w.type!==$r&&!i&&(w=x.jsx(k,{variant:y?"body2":"body1",component:E!=null&&E.variant?void 0:"span",...E,children:w})),m!=null&&m.type!==$r&&!i&&(m=x.jsx(P,{variant:"body2",color:"textSecondary",...C,children:m})),x.jsxs(M,{...R,children:[w,m]})}),Fj=zj;function Fg(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function iw(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function RP(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function ic(e,t,n,o,r,l){let i=!1,s=r(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(i)return!1;i=!0}const a=o?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!RP(s,l)||a)s=r(e,s,n);else return s.focus(),!0}return!1}const Bj=f.forwardRef(function(t,n){const{actions:o,autoFocus:r=!1,autoFocusItem:l=!1,children:i,className:s,disabledItemsFocusable:a=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...p}=t,h=f.useRef(null),g=f.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ot(()=>{r&&h.current.focus()},[r]),f.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(v,{direction:S})=>{const M=!h.current.style.width;if(v.clientHeight<h.current.clientHeight&&M){const R=`${vP(br(v))}px`;h.current.style[S==="rtl"?"paddingLeft":"paddingRight"]=R,h.current.style.width=`calc(100% + ${R})`}return h.current}}),[]);const y=v=>{const S=h.current,M=v.key;if(v.ctrlKey||v.metaKey||v.altKey){c&&c(v);return}const k=Yt(S).activeElement;if(M==="ArrowDown")v.preventDefault(),ic(S,k,u,a,Fg);else if(M==="ArrowUp")v.preventDefault(),ic(S,k,u,a,iw);else if(M==="Home")v.preventDefault(),ic(S,null,u,a,Fg);else if(M==="End")v.preventDefault(),ic(S,null,u,a,iw);else if(M.length===1){const E=g.current,P=M.toLowerCase(),C=performance.now();E.keys.length>0&&(C-E.lastTime>500?(E.keys=[],E.repeating=!0,E.previousKeyMatched=!0):E.repeating&&P!==E.keys[0]&&(E.repeating=!1)),E.lastTime=C,E.keys.push(P);const T=k&&!E.repeating&&RP(k,E);E.previousKeyMatched&&(T||ic(S,k,!1,a,Fg,E))?v.preventDefault():E.previousKeyMatched=!1}c&&c(v)},w=vt(h,n);let m=-1;f.Children.forEach(i,(v,S)=>{if(!f.isValidElement(v)){m===S&&(m+=1,m>=i.length&&(m=-1));return}v.props.disabled||(d==="selectedMenu"&&v.props.selected||m===-1)&&(m=S),m===S&&(v.props.disabled||v.props.muiSkipListHighlight||v.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))});const b=f.Children.map(i,(v,S)=>{if(S===m){const M={};return l&&(M.autoFocus=!0),v.props.tabIndex===void 0&&d==="selectedMenu"&&(M.tabIndex=0),f.cloneElement(v,M)}return v});return x.jsx(Tj,{role:"menu",ref:w,className:s,onKeyDown:y,tabIndex:r?0:-1,...p,children:b})}),kP=Bj;function Hj(e){return _e("MuiPopover",e)}je("MuiPopover",["root","paper"]);function sw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function aw(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function cw(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Rd(e){return typeof e=="function"?e():e}const Nj=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"]},Hj,t)},jj=Z(SP,{name:"MuiPopover",slot:"Root"})({}),AP=Z(os,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),Gj=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiPopover"}),{action:r,anchorEl:l,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:s,anchorReference:a="anchorEl",children:u,className:c,container:d,elevation:p=8,marginThreshold:h=16,open:g,PaperProps:y={},slots:w={},slotProps:m={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:v,transitionDuration:S="auto",TransitionProps:M={},disableScrollLock:R=!1,...k}=o,E=f.useRef(),P={...o,anchorOrigin:i,anchorReference:a,elevation:p,marginThreshold:h,transformOrigin:b,TransitionComponent:v,transitionDuration:S,TransitionProps:M},C=Nj(P),T=f.useCallback(()=>{if(a==="anchorPosition")return s;const W=Rd(l),J=(W&&W.nodeType===1?W:Yt(E.current).body).getBoundingClientRect();return{top:J.top+sw(J,i.vertical),left:J.left+aw(J,i.horizontal)}},[l,i.horizontal,i.vertical,s,a]),A=f.useCallback(W=>({vertical:sw(W,b.vertical),horizontal:aw(W,b.horizontal)}),[b.horizontal,b.vertical]),L=f.useCallback(W=>{const ne={width:W.offsetWidth,height:W.offsetHeight},J=A(ne);if(a==="none")return{top:null,left:null,transformOrigin:cw(J)};const Y=T();let ee=Y.top-J.vertical,pe=Y.left-J.horizontal;const me=ee+ne.height,ye=pe+ne.width,te=br(Rd(l)),Ce=te.innerHeight-h,ge=te.innerWidth-h;if(h!==null&&ee<h){const Te=ee-h;ee-=Te,J.vertical+=Te}else if(h!==null&&me>Ce){const Te=me-Ce;ee-=Te,J.vertical+=Te}if(h!==null&&pe<h){const Te=pe-h;pe-=Te,J.horizontal+=Te}else if(ye>ge){const Te=ye-ge;pe-=Te,J.horizontal+=Te}return{top:`${Math.round(ee)}px`,left:`${Math.round(pe)}px`,transformOrigin:cw(J)}},[l,a,T,A,h]),[F,D]=f.useState(g),I=f.useCallback(()=>{const W=E.current;if(!W)return;const ne=L(W);ne.top!==null&&W.style.setProperty("top",ne.top),ne.left!==null&&(W.style.left=ne.left),W.style.transformOrigin=ne.transformOrigin,D(!0)},[L]);f.useEffect(()=>(R&&window.addEventListener("scroll",I),()=>window.removeEventListener("scroll",I)),[l,R,I]);const $=()=>{I()},B=()=>{D(!1)};f.useEffect(()=>{g&&I()}),f.useImperativeHandle(r,()=>g?{updatePosition:()=>{I()}}:null,[g,I]),f.useEffect(()=>{if(!g)return;const W=Da(()=>{I()}),ne=br(Rd(l));return ne.addEventListener("resize",W),()=>{W.clear(),ne.removeEventListener("resize",W)}},[l,g,I]);let G=S;const j={slots:{transition:v,...w},slotProps:{transition:M,paper:y,...m}},[N,H]=Ge("transition",{elementType:kv,externalForwardedProps:j,ownerState:P,getSlotProps:W=>({...W,onEntering:(ne,J)=>{var Y;(Y=W.onEntering)==null||Y.call(W,ne,J),$()},onExited:ne=>{var J;(J=W.onExited)==null||J.call(W,ne),B()}}),additionalProps:{appear:!0,in:g}});S==="auto"&&!N.muiSupportAuto&&(G=void 0);const _=d||(l?Yt(Rd(l)).body:void 0),[U,{slots:K,slotProps:X,...oe}]=Ge("root",{ref:n,elementType:jj,externalForwardedProps:{...j,...k},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:w.backdrop},slotProps:{backdrop:XT(typeof m.backdrop=="function"?m.backdrop(P):m.backdrop,{invisible:!0})},container:_,open:g},ownerState:P,className:de(C.root,c)}),[ue,V]=Ge("paper",{ref:E,className:C.paper,elementType:AP,externalForwardedProps:j,shouldForwardComponentProp:!0,additionalProps:{elevation:p,style:F?void 0:{opacity:0}},ownerState:P});return x.jsx(U,{...oe,...!yb(U)&&{slots:K,slotProps:X,disableScrollLock:R},children:x.jsx(N,{...H,timeout:G,children:x.jsx(ue,{...V,children:u})})})}),$P=Gj;function _j(e){return _e("MuiMenu",e)}je("MuiMenu",["root","paper","list"]);const Vj={vertical:"top",horizontal:"right"},Uj={vertical:"top",horizontal:"left"},Wj=e=>{const{classes:t}=e;return ve({root:["root"],paper:["paper"],list:["list"]},_j,t)},qj=Z($P,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),Kj=Z(AP,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Yj=Z(kP,{name:"MuiMenu",slot:"List"})({outline:0}),Xj=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiMenu"}),{autoFocus:r=!0,children:l,className:i,disableAutoFocusItem:s=!1,MenuListProps:a={},onClose:u,open:c,PaperProps:d={},PopoverClasses:p,transitionDuration:h="auto",TransitionProps:{onEntering:g,...y}={},variant:w="selectedMenu",slots:m={},slotProps:b={},...v}=o,S=_n(),M={...o,autoFocus:r,disableAutoFocusItem:s,MenuListProps:a,onEntering:g,PaperProps:d,transitionDuration:h,TransitionProps:y,variant:w},R=Wj(M),k=r&&!s&&c,E=f.useRef(null),P=(G,j)=>{E.current&&E.current.adjustStyleForScrollbar(G,{direction:S?"rtl":"ltr"}),g&&g(G,j)},C=G=>{G.key==="Tab"&&(G.preventDefault(),u&&u(G,"tabKeyDown"))};let T=-1;f.Children.map(l,(G,j)=>{f.isValidElement(G)&&(G.props.disabled||(w==="selectedMenu"&&G.props.selected||T===-1)&&(T=j))});const A={slots:m,slotProps:{list:a,transition:y,paper:d,...b}},L=va({elementType:m.root,externalSlotProps:b.root,ownerState:M,className:[R.root,i]}),[F,D]=Ge("paper",{className:R.paper,elementType:Kj,externalForwardedProps:A,shouldForwardComponentProp:!0,ownerState:M}),[I,$]=Ge("list",{className:de(R.list,a.className),elementType:Yj,shouldForwardComponentProp:!0,externalForwardedProps:A,getSlotProps:G=>({...G,onKeyDown:j=>{var N;C(j),(N=G.onKeyDown)==null||N.call(G,j)}}),ownerState:M}),B=typeof A.slotProps.transition=="function"?A.slotProps.transition(M):A.slotProps.transition;return x.jsx(qj,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?Vj:Uj,slots:{root:m.root,paper:F,backdrop:m.backdrop,...m.transition&&{transition:m.transition}},slotProps:{root:L,paper:D,backdrop:typeof b.backdrop=="function"?b.backdrop(M):b.backdrop,transition:{...B,onEntering:(...G)=>{var j;P(...G),(j=B==null?void 0:B.onEntering)==null||j.call(B,...G)}}},open:c,ref:n,transitionDuration:h,ownerState:M,...v,classes:p,children:x.jsx(I,{actions:E,autoFocus:r&&(T===-1||s),autoFocusItem:k,variant:w,...$,children:l})})}),Qj=Xj;function Zj(e){return _e("MuiMenuItem",e)}const Jj=je("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),sc=Jj,eG=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tG=e=>{const{disabled:t,dense:n,divider:o,disableGutters:r,selected:l,classes:i}=e,a=ve({root:["root",n&&"dense",t&&"disabled",!r&&"gutters",o&&"divider",l&&"selected"]},Zj,i);return{...i,...a}},nG=Z(di,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:eG})(Fe(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${sc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${sc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${sc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${sc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${sc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${ew.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${ew.inset}`]:{marginLeft:52},[`& .${Oi.root}`]:{marginTop:0,marginBottom:0},[`& .${Oi.inset}`]:{paddingLeft:36},[`& .${rw.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${rw.root} svg`]:{fontSize:"1.25rem"}}}]}))),oG=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiMenuItem"}),{autoFocus:r=!1,component:l="li",dense:i=!1,divider:s=!1,disableGutters:a=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:p,...h}=o,g=f.useContext(hu),y=f.useMemo(()=>({dense:i||g.dense||!1,disableGutters:a}),[g.dense,i,a]),w=f.useRef(null);Ot(()=>{r&&w.current&&w.current.focus()},[r]);const m={...o,dense:y.dense,divider:s,disableGutters:a},b=tG(o),v=vt(w,n);let S;return o.disabled||(S=d!==void 0?d:-1),x.jsx(hu.Provider,{value:y,children:x.jsx(nG,{ref:v,role:c,tabIndex:S,component:l,focusVisibleClassName:de(b.focusVisible,u),className:de(b.root,p),...h,ownerState:m,classes:b})})}),$v=oG;function rG(e){return _e("MuiNativeSelect",e)}const lG=je("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Dv=lG,iG=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:l,error:i}=e,s={select:["select",n,o&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${re(n)}`,l&&"iconOpen",o&&"disabled"]};return ve(s,rG,t)},DP=Z("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Dv.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),sG=Z(DP,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:po,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Dv.multiple}`]:t.multiple}]}})({}),LP=Z("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Dv.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),aG=Z(LP,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${re(n.variant)}`],n.open&&t.iconOpen]}})({}),cG=f.forwardRef(function(t,n){const{className:o,disabled:r,error:l,IconComponent:i,inputRef:s,variant:a="standard",...u}=t,c={...t,disabled:r,variant:a,error:l},d=iG(c);return x.jsxs(f.Fragment,{children:[x.jsx(sG,{ownerState:c,className:de(d.select,o),disabled:r,ref:s||n,...u}),t.multiple?null:x.jsx(aG,{as:i,ownerState:c,className:d.icon})]})}),uG=cG;var uw;const dG=Z("fieldset",{shouldForwardProp:po})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),fG=Z("legend",{shouldForwardProp:po})(Fe(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function pG(e){const{children:t,classes:n,className:o,label:r,notched:l,...i}=e,s=r!=null&&r!=="",a={...e,notched:l,withLabel:s};return x.jsx(dG,{"aria-hidden":!0,className:o,ownerState:a,...i,children:x.jsx(fG,{ownerState:a,children:s?x.jsx("span",{children:r}):uw||(uw=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const hG=e=>{const{classes:t}=e,o=ve({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},rN,t);return{...t,...o}},gG=Z(wh,{shouldForwardProp:e=>po(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ch})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$o.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${$o.focused} .${$o.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(ln()).map(([n])=>({props:{color:n},style:{[`&.${$o.focused} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${$o.error} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$o.disabled} .${$o.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),mG=Z(pG,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Fe(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),bG=Z(xh,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Sh})(Fe(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.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:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),zP=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiOutlinedInput"}),{components:r={},fullWidth:l=!1,inputComponent:i="input",label:s,multiline:a=!1,notched:u,slots:c={},slotProps:d={},type:p="text",...h}=o,g=hG(o),y=Cl(),w=ls({props:o,muiFormControl:y,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),m={...o,color:w.color||"primary",disabled:w.disabled,error:w.error,focused:w.focused,formControl:y,fullWidth:l,hiddenLabel:w.hiddenLabel,multiline:a,size:w.size,type:p},b=c.root??r.Root??gG,v=c.input??r.Input??bG,[S,M]=Ge("notchedOutline",{elementType:mG,className:g.notchedOutline,shouldForwardComponentProp:!0,ownerState:m,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:s!=null&&s!==""&&w.required?x.jsxs(f.Fragment,{children:[s," ","*"]}):s}});return x.jsx(qu,{slots:{root:b,input:v},slotProps:d,renderSuffix:R=>x.jsx(S,{...M,notched:typeof u<"u"?u:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:l,inputComponent:i,multiline:a,ref:n,type:p,...h,classes:{...g,notchedOutline:null}})});zP.muiName="Input";const FP=zP,yG=Kn(x.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),vG=Kn(x.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}));function BP(e){return _e("MuiSelect",e)}const ac=je("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var dw;const CG=Z(DP,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${ac.select}`]:t.select},{[`&.${ac.select}`]:t[n.variant]},{[`&.${ac.error}`]:t.error},{[`&.${ac.multiple}`]:t.multiple}]}})({[`&.${ac.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),SG=Z(LP,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${re(n.variant)}`],n.open&&t.iconOpen]}})({}),wG=Z("input",{shouldForwardProp:e=>KT(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function fw(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function xG(e){return e==null||typeof e=="string"&&!e.trim()}const MG=e=>{const{classes:t,variant:n,disabled:o,multiple:r,open:l,error:i}=e,s={select:["select",n,o&&"disabled",r&&"multiple",i&&"error"],icon:["icon",`icon${re(n)}`,l&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ve(s,BP,t)},EG=f.forwardRef(function(t,n){var we;const{"aria-describedby":o,"aria-label":r,autoFocus:l,autoWidth:i,children:s,className:a,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:h=!1,IconComponent:g,inputRef:y,labelId:w,MenuProps:m={},multiple:b,name:v,onBlur:S,onChange:M,onClose:R,onFocus:k,onOpen:E,open:P,readOnly:C,renderValue:T,required:A,SelectDisplayProps:L={},tabIndex:F,type:D,value:I,variant:$="standard",...B}=t,[G,j]=Bi({controlled:I,default:c,name:"Select"}),[N,H]=Bi({controlled:P,default:u,name:"Select"}),_=f.useRef(null),U=f.useRef(null),[K,X]=f.useState(null),{current:oe}=f.useRef(P!=null),[ue,V]=f.useState(),W=vt(n,y),ne=f.useCallback(xe=>{U.current=xe,xe&&X(xe)},[]),J=K==null?void 0:K.parentNode;f.useImperativeHandle(W,()=>({focus:()=>{U.current.focus()},node:_.current,value:G}),[G]),f.useEffect(()=>{u&&N&&K&&!oe&&(V(i?null:J.clientWidth),U.current.focus())},[K,i]),f.useEffect(()=>{l&&U.current.focus()},[l]),f.useEffect(()=>{if(!w)return;const xe=Yt(U.current).getElementById(w);if(xe){const ze=()=>{getSelection().isCollapsed&&U.current.focus()};return xe.addEventListener("click",ze),()=>{xe.removeEventListener("click",ze)}}},[w]);const Y=(xe,ze)=>{xe?E&&E(ze):R&&R(ze),oe||(V(i?null:J.clientWidth),H(xe))},ee=xe=>{xe.button===0&&(xe.preventDefault(),U.current.focus(),Y(!0,xe))},pe=xe=>{Y(!1,xe)},me=f.Children.toArray(s),ye=xe=>{const ze=me.find(Ze=>Ze.props.value===xe.target.value);ze!==void 0&&(j(ze.props.value),M&&M(xe,ze))},te=xe=>ze=>{let Ze;if(ze.currentTarget.hasAttribute("tabindex")){if(b){Ze=Array.isArray(G)?G.slice():[];const Qt=G.indexOf(xe.props.value);Qt===-1?Ze.push(xe.props.value):Ze.splice(Qt,1)}else Ze=xe.props.value;if(xe.props.onClick&&xe.props.onClick(ze),G!==Ze&&(j(Ze),M)){const Qt=ze.nativeEvent||ze,bn=new Qt.constructor(Qt.type,Qt);Object.defineProperty(bn,"target",{writable:!0,value:{value:Ze,name:v}}),M(bn,xe)}b||Y(!1,ze)}},Ce=xe=>{C||[" ","ArrowUp","ArrowDown","Enter"].includes(xe.key)&&(xe.preventDefault(),Y(!0,xe))},ge=K!==null&&N,Te=xe=>{!ge&&S&&(Object.defineProperty(xe,"target",{writable:!0,value:{value:G,name:v}}),S(xe))};delete B["aria-invalid"];let Q,ke;const Ie=[];let Le=!1;(Qf({value:G})||p)&&(T?Q=T(G):Le=!0);const Ne=me.map(xe=>{if(!f.isValidElement(xe))return null;let ze;if(b){if(!Array.isArray(G))throw new Error(gl(2));ze=G.some(Ze=>fw(Ze,xe.props.value)),ze&&Le&&Ie.push(xe.props.children)}else ze=fw(G,xe.props.value),ze&&Le&&(ke=xe.props.children);return f.cloneElement(xe,{"aria-selected":ze?"true":"false",onClick:te(xe),onKeyUp:Ze=>{Ze.key===" "&&Ze.preventDefault(),xe.props.onKeyUp&&xe.props.onKeyUp(Ze)},role:"option",selected:ze,value:void 0,"data-value":xe.props.value})});Le&&(b?Ie.length===0?Q=null:Q=Ie.reduce((xe,ze,Ze)=>(xe.push(ze),Ze<Ie.length-1&&xe.push(", "),xe),[]):Q=ke);let qe=ue;!i&&oe&&K&&(qe=J.clientWidth);let De;typeof F<"u"?De=F:De=d?null:0;const Ee=L.id||(v?`mui-component-select-${v}`:void 0),Oe={...t,variant:$,value:G,open:ge,error:h},ce=MG(Oe),Ve={...m.PaperProps,...(we=m.slotProps)==null?void 0:we.paper},et=at();return x.jsxs(f.Fragment,{children:[x.jsx(CG,{as:"div",ref:ne,tabIndex:De,role:"combobox","aria-controls":ge?et:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":ge?"true":"false","aria-haspopup":"listbox","aria-label":r,"aria-labelledby":[w,Ee].filter(Boolean).join(" ")||void 0,"aria-describedby":o,"aria-required":A?"true":void 0,"aria-invalid":h?"true":void 0,onKeyDown:Ce,onMouseDown:d||C?null:ee,onBlur:Te,onFocus:k,...L,ownerState:Oe,className:de(L.className,ce.select,a),id:Ee,children:xG(Q)?dw||(dw=x.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Q}),x.jsx(wG,{"aria-invalid":h,value:Array.isArray(G)?G.join(","):G,name:v,ref:_,"aria-hidden":!0,onChange:ye,tabIndex:-1,disabled:d,className:ce.nativeInput,autoFocus:l,required:A,...B,ownerState:Oe}),x.jsx(SG,{as:g,className:ce.icon,ownerState:Oe}),x.jsx(Qj,{id:`menu-${v||""}`,anchorEl:J,open:ge,onClose:pe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...m,slotProps:{...m.slotProps,list:{"aria-labelledby":w,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:et,...m.MenuListProps},paper:{...Ve,style:{minWidth:qe,...Ve!=null?Ve.style:null}}},children:Ne})]})}),TG=EG,PG=e=>{const{classes:t}=e,o=ve({root:["root"]},BP,t);return{...t,...o}},Lv={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>po(e)&&e!=="variant"},IG=Z(IP,Lv)(""),OG=Z(FP,Lv)(""),RG=Z(MP,Lv)(""),HP=f.forwardRef(function(t,n){const o=We({name:"MuiSelect",props:t}),{autoWidth:r=!1,children:l,classes:i={},className:s,defaultOpen:a=!1,displayEmpty:u=!1,IconComponent:c=hP,id:d,input:p,inputProps:h,label:g,labelId:y,MenuProps:w,multiple:m=!1,native:b=!1,onClose:v,onOpen:S,open:M,renderValue:R,SelectDisplayProps:k,variant:E="outlined",...P}=o,C=b?uG:TG,T=Cl(),A=ls({props:o,muiFormControl:T,states:["variant","error"]}),L=A.variant||E,F={...o,variant:L,classes:i},D=PG(F),{root:I,...$}=D,B=p||{standard:x.jsx(IG,{ownerState:F}),outlined:x.jsx(OG,{label:g,ownerState:F}),filled:x.jsx(RG,{ownerState:F})}[L],G=vt(n,rs(B));return x.jsx(f.Fragment,{children:f.cloneElement(B,{inputComponent:C,inputProps:{children:l,error:A.error,IconComponent:c,variant:L,type:void 0,multiple:m,...b?{id:d}:{autoWidth:r,defaultOpen:a,displayEmpty:u,labelId:y,MenuProps:w,onClose:v,onOpen:S,open:M,renderValue:R,SelectDisplayProps:{id:d,...k}},...h,classes:h?qn($,h.classes):$,...p?p.props.inputProps:{}},...(m&&b||u)&&L==="outlined"?{notched:!0}:{},ref:G,className:de(B.props.className,s,D.root),...!p&&{variant:L},...P})})});HP.muiName="Select";const zv=HP;function kG(e){return _e("MuiSkeleton",e)}je("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const AG=e=>{const{classes:t,variant:n,animation:o,hasChildren:r,width:l,height:i}=e;return ve({root:["root",n,o,r&&"withChildren",r&&!l&&"fitContent",r&&!i&&"heightAuto"]},kG,t)},Ob=tr` 263 0% { 264 opacity: 1; 265 } 266 267 50% { 268 opacity: 0.4; 269 } 270 271 100% { 272 opacity: 1; 273 } 274 `,Rb=tr` 275 0% { 276 transform: translateX(-100%); 277 } 278 279 50% { 280 /* +0.5s of delay between each loop */ 281 transform: translateX(100%); 282 } 283 284 100% { 285 transform: translateX(100%); 286 } 287 `,$G=typeof Ob!="string"?gi` 288 animation: ${Ob} 2s ease-in-out 0.5s infinite; 289 `:null,DG=typeof Rb!="string"?gi` 290 &::after { 291 animation: ${Rb} 2s linear 0.5s infinite; 292 } 293 `:null,LG=Z("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.animation!==!1&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})(Fe(({theme:e})=>{const t=Wz(e.shape.borderRadius)||"px",n=qz(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:lt(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:o})=>o.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:o})=>o.hasChildren&&!o.width,style:{maxWidth:"fit-content"}},{props:({ownerState:o})=>o.hasChildren&&!o.height,style:{height:"auto"}},{props:{animation:"pulse"},style:$G||{animation:`${Ob} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient( 294 90deg, 295 transparent, 296 ${(e.vars||e).palette.action.hover}, 297 transparent 298 )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:DG||{"&::after":{animation:`${Rb} 2s linear 0.5s infinite`}}}]}})),zG=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiSkeleton"}),{animation:r="pulse",className:l,component:i="span",height:s,style:a,variant:u="text",width:c,...d}=o,p={...o,animation:r,component:i,variant:u,hasChildren:!!d.children},h=AG(p);return x.jsx(LG,{as:i,ref:n,className:de(h.root,l),ownerState:p,...d,style:{width:c,height:s,...a}})}),FG=zG;function BG(e){return _e("MuiTooltip",e)}const HG=je("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),nn=HG;function NG(e){return Math.round(e*1e5)/1e5}const jG=e=>{const{classes:t,disableInteractive:n,arrow:o,touch:r,placement:l}=e,i={popper:["popper",!n&&"popperInteractive",o&&"popperArrow"],tooltip:["tooltip",o&&"tooltipArrow",r&&"touch",`tooltipPlacement${re(l.split("-")[0])}`],arrow:["arrow"]};return ve(i,BG,t)},GG=Z(Wu,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Fe(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:t})=>!t.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:t})=>!t,style:{pointerEvents:"none"}},{props:({ownerState:t})=>t.arrow,style:{[`&[data-popper-placement*="bottom"] .${nn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${nn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${nn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${nn.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${nn.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${nn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${nn.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${nn.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),_G=Z("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${re(n.placement.split("-")[0])}`]]}})(Fe(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:lt(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${nn.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${nn.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${nn.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:t})=>t.arrow,style:{position:"relative",margin:0}},{props:({ownerState:t})=>t.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${NG(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${nn.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${nn.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${nn.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${nn.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),VG=Z("span",{name:"MuiTooltip",slot:"Arrow"})(Fe(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:lt(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let kd=!1;const pw=new bh;let cc={x:0,y:0};function Ad(e,t){return(n,...o)=>{t&&t(n,...o),e(n,...o)}}const UG=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTooltip"}),{arrow:r=!1,children:l,classes:i,components:s={},componentsProps:a={},describeChild:u=!1,disableFocusListener:c=!1,disableHoverListener:d=!1,disableInteractive:p=!1,disableTouchListener:h=!1,enterDelay:g=100,enterNextDelay:y=0,enterTouchDelay:w=700,followCursor:m=!1,id:b,leaveDelay:v=0,leaveTouchDelay:S=1500,onClose:M,onOpen:R,open:k,placement:E="bottom",PopperComponent:P,PopperProps:C={},slotProps:T={},slots:A={},title:L,TransitionComponent:F,TransitionProps:D,...I}=o,$=f.isValidElement(l)?l:x.jsx("span",{children:l}),B=mi(),G=_n(),[j,N]=f.useState(),[H,_]=f.useState(null),U=f.useRef(!1),K=p||m,X=Wo(),oe=Wo(),ue=Wo(),V=Wo(),[W,ne]=Bi({controlled:k,default:!1,name:"Tooltip",state:"open"});let J=W;const Y=at(b),ee=f.useRef(),pe=Xe(()=>{ee.current!==void 0&&(document.body.style.WebkitUserSelect=ee.current,ee.current=void 0),V.clear()});f.useEffect(()=>pe,[pe]);const me=Ye=>{pw.clear(),kd=!0,ne(!0),R&&!J&&R(Ye)},ye=Xe(Ye=>{pw.start(800+v,()=>{kd=!1}),ne(!1),M&&J&&M(Ye),X.start(B.transitions.duration.shortest,()=>{U.current=!1})}),te=Ye=>{U.current&&Ye.type!=="touchstart"||(j&&j.removeAttribute("title"),oe.clear(),ue.clear(),g||kd&&y?oe.start(kd?y:g,()=>{me(Ye)}):me(Ye))},Ce=Ye=>{oe.clear(),ue.start(v,()=>{ye(Ye)})},[,ge]=f.useState(!1),Te=Ye=>{Kf(Ye.target)||(ge(!1),Ce(Ye))},Q=Ye=>{j||N(Ye.currentTarget),Kf(Ye.target)&&(ge(!0),te(Ye))},ke=Ye=>{U.current=!0;const jt=$.props;jt.onTouchStart&&jt.onTouchStart(Ye)},Ie=Ye=>{ke(Ye),ue.clear(),X.clear(),pe(),ee.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",V.start(w,()=>{document.body.style.WebkitUserSelect=ee.current,te(Ye)})},Le=Ye=>{$.props.onTouchEnd&&$.props.onTouchEnd(Ye),pe(),ue.start(S,()=>{ye(Ye)})};f.useEffect(()=>{if(!J)return;function Ye(jt){jt.key==="Escape"&&ye(jt)}return document.addEventListener("keydown",Ye),()=>{document.removeEventListener("keydown",Ye)}},[ye,J]);const Ne=vt(rs($),N,n);!L&&L!==0&&(J=!1);const qe=f.useRef(),De=Ye=>{const jt=$.props;jt.onMouseMove&&jt.onMouseMove(Ye),cc={x:Ye.clientX,y:Ye.clientY},qe.current&&qe.current.update()},Ee={},Oe=typeof L=="string";u?(Ee.title=!J&&Oe&&!d?L:null,Ee["aria-describedby"]=J?Y:null):(Ee["aria-label"]=Oe?L:null,Ee["aria-labelledby"]=J&&!Oe?Y:null);const ce={...Ee,...I,...$.props,className:de(I.className,$.props.className),onTouchStart:ke,ref:Ne,...m?{onMouseMove:De}:{}},Ve={};h||(ce.onTouchStart=Ie,ce.onTouchEnd=Le),d||(ce.onMouseOver=Ad(te,ce.onMouseOver),ce.onMouseLeave=Ad(Ce,ce.onMouseLeave),K||(Ve.onMouseOver=te,Ve.onMouseLeave=Ce)),c||(ce.onFocus=Ad(Q,ce.onFocus),ce.onBlur=Ad(Te,ce.onBlur),K||(Ve.onFocus=Q,Ve.onBlur=Te));const et={...o,isRtl:G,arrow:r,disableInteractive:K,placement:E,PopperComponentProp:P,touch:U.current},we=typeof T.popper=="function"?T.popper(et):T.popper,xe=f.useMemo(()=>{var jt,Ae;let Ye=[{name:"arrow",enabled:!!H,options:{element:H,padding:4}}];return(jt=C.popperOptions)!=null&&jt.modifiers&&(Ye=Ye.concat(C.popperOptions.modifiers)),(Ae=we==null?void 0:we.popperOptions)!=null&&Ae.modifiers&&(Ye=Ye.concat(we.popperOptions.modifiers)),{...C.popperOptions,...we==null?void 0:we.popperOptions,modifiers:Ye}},[H,C.popperOptions,we==null?void 0:we.popperOptions]),ze=jG(et),Ze=typeof T.transition=="function"?T.transition(et):T.transition,Qt={slots:{popper:s.Popper,transition:s.Transition??F,tooltip:s.Tooltip,arrow:s.Arrow,...A},slotProps:{arrow:T.arrow??a.arrow,popper:{...C,...we??a.popper},tooltip:T.tooltip??a.tooltip,transition:{...D,...Ze??a.transition}}},[bn,rr]=Ge("popper",{elementType:GG,externalForwardedProps:Qt,ownerState:et,className:de(ze.popper,C==null?void 0:C.className)}),[Jt,$n]=Ge("transition",{elementType:kv,externalForwardedProps:Qt,ownerState:et}),[Dn,Yn]=Ge("tooltip",{elementType:_G,className:ze.tooltip,externalForwardedProps:Qt,ownerState:et}),[Ln,lr]=Ge("arrow",{elementType:VG,className:ze.arrow,externalForwardedProps:Qt,ownerState:et,ref:_});return x.jsxs(f.Fragment,{children:[f.cloneElement($,ce),x.jsx(bn,{as:P??Wu,placement:E,anchorEl:m?{getBoundingClientRect:()=>({top:cc.y,left:cc.x,right:cc.x,bottom:cc.y,width:0,height:0})}:j,popperRef:qe,open:j?J:!1,id:Y,transition:!0,...Ve,...rr,popperOptions:xe,children:({TransitionProps:Ye})=>x.jsx(Jt,{timeout:B.transitions.duration.shorter,...Ye,...$n,children:x.jsxs(Dn,{...Yn,children:[L,r?x.jsx(Ln,{...lr}):null]})})})]})}),WG=UG;function qG(e){return _e("MuiSwitch",e)}const KG=je("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Xn=KG,YG=e=>{const{classes:t,edge:n,size:o,color:r,checked:l,disabled:i}=e,s={root:["root",n&&`edge${re(n)}`,`size${re(o)}`],switchBase:["switchBase",`color${re(r)}`,l&&"checked",i&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},a=ve(s,qG,t);return{...t,...a}},XG=Z("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${re(n.edge)}`],t[`size${re(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Xn.thumb}`]:{width:16,height:16},[`& .${Xn.switchBase}`]:{padding:4,[`&.${Xn.checked}`]:{transform:"translateX(16px)"}}}}]}),QG=Z(bP,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Xn.input}`]:t.input},n.color!=="default"&&t[`color${re(n.color)}`]]}})(Fe(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Xn.checked}`]:{transform:"translateX(20px)"},[`&.${Xn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Xn.checked} + .${Xn.track}`]:{opacity:.5},[`&.${Xn.disabled} + .${Xn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Xn.input}`]:{left:"-100%",width:"300%"}})),Fe(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(ln(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Xn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Xn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?ns(e.palette[t].main,.62):ts(e.palette[t].main,.55)}`}},[`&.${Xn.checked} + .${Xn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),ZG=Z("span",{name:"MuiSwitch",slot:"Track"})(Fe(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`}))),JG=Z("span",{name:"MuiSwitch",slot:"Thumb"})(Fe(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),e3=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiSwitch"}),{className:r,color:l="primary",edge:i=!1,size:s="medium",sx:a,slots:u={},slotProps:c={},...d}=o,p={...o,color:l,edge:i,size:s},h=YG(p),g={slots:u,slotProps:c},[y,w]=Ge("root",{className:de(h.root,r),elementType:XG,externalForwardedProps:g,ownerState:p,additionalProps:{sx:a}}),[m,b]=Ge("thumb",{className:h.thumb,elementType:JG,externalForwardedProps:g,ownerState:p}),v=x.jsx(m,{...b}),[S,M]=Ge("track",{className:h.track,elementType:ZG,externalForwardedProps:g,ownerState:p});return x.jsxs(y,{...w,children:[x.jsx(QG,{type:"checkbox",icon:v,checkedIcon:v,ref:n,ownerState:p,...d,classes:{...h,root:h.switchBase},slots:{...u.switchBase&&{root:u.switchBase},...u.input&&{input:u.input}},slotProps:{...c.switchBase&&{root:typeof c.switchBase=="function"?c.switchBase(p):c.switchBase},...c.input&&{input:typeof c.input=="function"?c.input(p):c.input}}}),x.jsx(S,{...M})]})}),ep=e3;function t3(e){return _e("MuiTab",e)}const n3=je("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),Ao=n3,o3=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:r,icon:l,label:i,selected:s,disabled:a}=e,u={root:["root",l&&i&&"labelIcon",`textColor${re(n)}`,o&&"fullWidth",r&&"wrapped",s&&"selected",a&&"disabled"],icon:["iconWrapper","icon"]};return ve(u,t3,t)},r3=Z(di,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${re(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Ao.iconWrapper}`]:t.iconWrapper},{[`& .${Ao.icon}`]:t.icon}]}})(Fe(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Ao.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Ao.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Ao.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Ao.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Ao.selected}`]:{opacity:1},[`&.${Ao.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ao.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Ao.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Ao.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Ao.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),l3=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTab"}),{className:r,disabled:l=!1,disableFocusRipple:i=!1,fullWidth:s,icon:a,iconPosition:u="top",indicator:c,label:d,onChange:p,onClick:h,onFocus:g,selected:y,selectionFollowsFocus:w,textColor:m="inherit",value:b,wrapped:v=!1,...S}=o,M={...o,disabled:l,disableFocusRipple:i,selected:y,icon:!!a,iconPosition:u,label:!!d,fullWidth:s,textColor:m,wrapped:v},R=o3(M),k=a&&d&&f.isValidElement(a)?f.cloneElement(a,{className:de(R.icon,a.props.className)}):a,E=C=>{!y&&p&&p(C,b),h&&h(C)},P=C=>{w&&!y&&p&&p(C,b),g&&g(C)};return x.jsxs(r3,{focusRipple:!i,className:de(R.root,r),ref:n,role:"tab","aria-selected":y,disabled:l,onClick:E,onFocus:P,ownerState:M,tabIndex:y?0:-1,...S,children:[u==="top"||u==="start"?x.jsxs(f.Fragment,{children:[k,d]}):x.jsxs(f.Fragment,{children:[d,k]}),c]})}),hw=l3,i3=f.createContext(),s3=i3,a3=f.createContext(),c3=a3;function u3(e){return _e("MuiTableCell",e)}const d3=je("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),f3=d3,p3=e=>{const{classes:t,variant:n,align:o,padding:r,size:l,stickyHeader:i}=e,s={root:["root",n,i&&"stickyHeader",o!=="inherit"&&`align${re(o)}`,r!=="normal"&&`padding${re(r)}`,`size${re(l)}`]};return ve(s,u3,t)},h3=Z("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${re(n.size)}`],n.padding!=="normal"&&t[`padding${re(n.padding)}`],n.align!=="inherit"&&t[`align${re(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Fe(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid 299 ${e.palette.mode==="light"?ns(lt(e.palette.divider,1),.88):ts(lt(e.palette.divider,1),.68)}`,textAlign:"left",padding:16,variants:[{props:{variant:"head"},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:"body"},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:"footer"},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:"small"},style:{padding:"6px 16px",[`&.${f3.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}}},{props:{padding:"checkbox"},style:{width:48,padding:"0 0 0 4px"}},{props:{padding:"none"},style:{padding:0}},{props:{align:"left"},style:{textAlign:"left"}},{props:{align:"center"},style:{textAlign:"center"}},{props:{align:"right"},style:{textAlign:"right",flexDirection:"row-reverse"}},{props:{align:"justify"},style:{textAlign:"justify"}},{props:({ownerState:t})=>t.stickyHeader,style:{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),g3=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTableCell"}),{align:r="inherit",className:l,component:i,padding:s,scope:a,size:u,sortDirection:c,variant:d,...p}=o,h=f.useContext(s3),g=f.useContext(c3),y=g&&g.variant==="head";let w;i?w=i:w=y?"th":"td";let m=a;w==="td"?m=void 0:!m&&y&&(m="col");const b=d||g&&g.variant,v={...o,align:r,component:w,padding:s||(h&&h.padding?h.padding:"normal"),size:u||(h&&h.size?h.size:"medium"),sortDirection:c,stickyHeader:b==="head"&&h&&h.stickyHeader,variant:b},S=p3(v);let M=null;return c&&(M=c==="asc"?"ascending":"descending"),x.jsx(h3,{as:w,ref:n,className:de(S.root,l),"aria-sort":M,scope:m,ownerState:v,...p})}),kb=g3;function m3(e){return _e("MuiToolbar",e)}je("MuiToolbar",["root","gutters","regular","dense"]);const b3=e=>{const{classes:t,disableGutters:n,variant:o}=e;return ve({root:["root",!n&&"gutters",o]},m3,t)},y3=Z("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Fe(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),v3=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiToolbar"}),{className:r,component:l="div",disableGutters:i=!1,variant:s="regular",...a}=o,u={...o,component:l,disableGutters:i,variant:s},c=b3(u);return x.jsx(y3,{as:l,className:de(c.root,r),ref:n,ownerState:u,...a})}),C3=v3,NP=Kn(x.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),jP=Kn(x.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"})),S3=f.forwardRef(function(t,n){const{backIconButtonProps:o,count:r,disabled:l=!1,getItemAriaLabel:i,nextIconButtonProps:s,onPageChange:a,page:u,rowsPerPage:c,showFirstButton:d,showLastButton:p,slots:h={},slotProps:g={},...y}=t,w=_n(),m=N=>{a(N,0)},b=N=>{a(N,u-1)},v=N=>{a(N,u+1)},S=N=>{a(N,Math.max(0,Math.ceil(r/c)-1))},M=h.firstButton??il,R=h.lastButton??il,k=h.nextButton??il,E=h.previousButton??il,P=h.firstButtonIcon??yG,C=h.lastButtonIcon??vG,T=h.nextButtonIcon??jP,A=h.previousButtonIcon??NP,L=w?R:M,F=w?k:E,D=w?E:k,I=w?M:R,$=w?g.lastButton:g.firstButton,B=w?g.nextButton:g.previousButton,G=w?g.previousButton:g.nextButton,j=w?g.firstButton:g.lastButton;return x.jsxs("div",{ref:n,...y,children:[d&&x.jsx(L,{onClick:m,disabled:l||u===0,"aria-label":i("first",u),title:i("first",u),...$,children:w?x.jsx(C,{...g.lastButtonIcon}):x.jsx(P,{...g.firstButtonIcon})}),x.jsx(F,{onClick:b,disabled:l||u===0,color:"inherit","aria-label":i("previous",u),title:i("previous",u),...B??o,children:w?x.jsx(T,{...g.nextButtonIcon}):x.jsx(A,{...g.previousButtonIcon})}),x.jsx(D,{onClick:v,disabled:l||(r!==-1?u>=Math.ceil(r/c)-1:!1),color:"inherit","aria-label":i("next",u),title:i("next",u),...G??s,children:w?x.jsx(A,{...g.previousButtonIcon}):x.jsx(T,{...g.nextButtonIcon})}),p&&x.jsx(I,{onClick:S,disabled:l||u>=Math.ceil(r/c)-1,"aria-label":i("last",u),title:i("last",u),...j,children:w?x.jsx(P,{...g.firstButtonIcon}):x.jsx(C,{...g.lastButtonIcon})})]})}),w3=S3;function x3(e){return _e("MuiTablePagination",e)}const M3=je("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),Ni=M3;var gw;const E3=Z(kb,{name:"MuiTablePagination",slot:"Root"})(Fe(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),T3=Z(C3,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${Ni.actions}`]:t.actions,...t.toolbar})})(Fe(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${Ni.actions}`]:{flexShrink:0,marginLeft:20}}))),P3=Z("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),I3=Z("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Fe(({theme:e})=>({...e.typography.body2,flexShrink:0}))),O3=Z(zv,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${Ni.selectIcon}`]:t.selectIcon,[`& .${Ni.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${Ni.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),R3=Z($v,{name:"MuiTablePagination",slot:"MenuItem"})({}),k3=Z("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Fe(({theme:e})=>({...e.typography.body2,flexShrink:0})));function A3({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function $3(e){return`Go to ${e} page`}const D3=e=>{const{classes:t}=e;return ve({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},x3,t)},L3=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTablePagination"}),{ActionsComponent:r=w3,backIconButtonProps:l,colSpan:i,component:s=kb,count:a,disabled:u=!1,getItemAriaLabel:c=$3,labelDisplayedRows:d=A3,labelRowsPerPage:p="Rows per page:",nextIconButtonProps:h,onPageChange:g,onRowsPerPageChange:y,page:w,rowsPerPage:m,rowsPerPageOptions:b=[10,25,50,100],SelectProps:v={},showFirstButton:S=!1,showLastButton:M=!1,slotProps:R={},slots:k={},...E}=o,P=o,C=D3(P),T=(R==null?void 0:R.select)??v,A=T.native?"option":R3;let L;(s===kb||s==="td")&&(L=i||1e3);const F=at(T.id),D=at(T.labelId),I=()=>a===-1?(w+1)*m:m===-1?a:Math.min(a,(w+1)*m),$={slots:k,slotProps:R},[B,G]=Ge("root",{ref:n,className:C.root,elementType:E3,externalForwardedProps:{...$,component:s,...E},ownerState:P,additionalProps:{colSpan:L}}),[j,N]=Ge("toolbar",{className:C.toolbar,elementType:T3,externalForwardedProps:$,ownerState:P}),[H,_]=Ge("spacer",{className:C.spacer,elementType:P3,externalForwardedProps:$,ownerState:P}),[U,K]=Ge("selectLabel",{className:C.selectLabel,elementType:I3,externalForwardedProps:$,ownerState:P,additionalProps:{id:D}}),[X,oe]=Ge("select",{className:C.select,elementType:O3,externalForwardedProps:$,ownerState:P}),[ue,V]=Ge("menuItem",{className:C.menuItem,elementType:A,externalForwardedProps:$,ownerState:P}),[W,ne]=Ge("displayedRows",{className:C.displayedRows,elementType:k3,externalForwardedProps:$,ownerState:P});return x.jsx(B,{...G,children:x.jsxs(j,{...N,children:[x.jsx(H,{..._}),b.length>1&&x.jsx(U,{...K,children:p}),b.length>1&&x.jsx(X,{variant:"standard",...!T.variant&&{input:gw||(gw=x.jsx(qu,{}))},value:m,onChange:y,id:F,labelId:D,...T,classes:{...T.classes,root:de(C.input,C.selectRoot,(T.classes||{}).root),select:de(C.select,(T.classes||{}).select),icon:de(C.selectIcon,(T.classes||{}).icon)},disabled:u,...oe,children:b.map(J=>f.createElement(ue,{...V,key:J.label?J.label:J,value:J.value?J.value:J},J.label?J.label:J))}),x.jsx(W,{...ne,children:d({from:a===0?0:w*m+1,to:I(),count:a===-1?-1:a,page:w})}),x.jsx(r,{className:C.actions,backIconButtonProps:l,count:a,nextIconButtonProps:h,onPageChange:g,page:w,rowsPerPage:m,showFirstButton:S,showLastButton:M,slotProps:R.actions,slots:k.actions,getItemAriaLabel:c,disabled:u})]})})}),z3=L3;function F3(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function B3(e,t,n,o={},r=()=>{}){const{ease:l=F3,duration:i=300}=o;let s=null;const a=t[e];let u=!1;const c=()=>{u=!0},d=p=>{if(u){r(new Error("Animation cancelled"));return}s===null&&(s=p);const h=Math.min(1,(p-s)/i);if(t[e]=l(h)*(n-a)+a,h>=1){requestAnimationFrame(()=>{r(null)});return}requestAnimationFrame(d)};return a===n?(r(new Error("Element already at target position")),c):(requestAnimationFrame(d),c)}const H3={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function N3(e){const{onChange:t,...n}=e,o=f.useRef(),r=f.useRef(null),l=()=>{o.current=r.current.offsetHeight-r.current.clientHeight};return Ot(()=>{const i=Da(()=>{const a=o.current;l(),a!==o.current&&t(o.current)}),s=br(r.current);return s.addEventListener("resize",i),()=>{i.clear(),s.removeEventListener("resize",i)}},[t]),f.useEffect(()=>{l(),t(o.current)},[t]),x.jsx("div",{style:H3,...n,ref:r})}function j3(e){return _e("MuiTabScrollButton",e)}const G3=je("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),_3=G3,V3=e=>{const{classes:t,orientation:n,disabled:o}=e;return ve({root:["root",n,o&&"disabled"]},j3,t)},U3=Z(di,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${_3.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),W3=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTabScrollButton"}),{className:r,slots:l={},slotProps:i={},direction:s,orientation:a,disabled:u,...c}=o,d=_n(),p={isRtl:d,...o},h=V3(p),g=l.StartScrollButtonIcon??NP,y=l.EndScrollButtonIcon??jP,w=va({elementType:g,externalSlotProps:i.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p}),m=va({elementType:y,externalSlotProps:i.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:p});return x.jsx(U3,{component:"div",className:de(h.root,r),ref:n,role:null,ownerState:p,tabIndex:null,...c,style:{...c.style,...a==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${d?-90:90}deg)`}},children:s==="left"?x.jsx(g,{...w}):x.jsx(y,{...m})})}),q3=W3;function K3(e){return _e("MuiTabs",e)}const Y3=je("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Bg=Y3,mw=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,bw=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,$d=(e,t,n)=>{let o=!1,r=n(e,t);for(;r;){if(r===e.firstChild){if(o)return;o=!0}const l=r.disabled||r.getAttribute("aria-disabled")==="true";if(!r.hasAttribute("tabindex")||l)r=n(e,r);else{r.focus();return}}},X3=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:r,scrollableY:l,centered:i,scrollButtonsHideMobile:s,classes:a}=e;return ve({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",r&&"scrollableX",l&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",i&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",s&&"scrollButtonsHideMobile"],scrollableX:[r&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},K3,a)},Q3=Z("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Bg.scrollButtons}`]:t.scrollButtons},{[`& .${Bg.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Fe(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${Bg.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),Z3=Z("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),J3=Z("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),e6=Z("span",{name:"MuiTabs",slot:"Indicator"})(Fe(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),t6=Z(N3)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),yw={},n6=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTabs"}),r=mi(),l=_n(),{"aria-label":i,"aria-labelledby":s,action:a,centered:u=!1,children:c,className:d,component:p="div",allowScrollButtonsMobile:h=!1,indicatorColor:g="primary",onChange:y,orientation:w="horizontal",ScrollButtonComponent:m,scrollButtons:b="auto",selectionFollowsFocus:v,slots:S={},slotProps:M={},TabIndicatorProps:R={},TabScrollButtonProps:k={},textColor:E="primary",value:P,variant:C="standard",visibleScrollbar:T=!1,...A}=o,L=C==="scrollable",F=w==="vertical",D=F?"scrollTop":"scrollLeft",I=F?"top":"left",$=F?"bottom":"right",B=F?"clientHeight":"clientWidth",G=F?"height":"width",j={...o,component:p,allowScrollButtonsMobile:h,indicatorColor:g,orientation:w,vertical:F,scrollButtons:b,textColor:E,variant:C,visibleScrollbar:T,fixed:!L,hideScrollbar:L&&!T,scrollableX:L&&!F,scrollableY:L&&F,centered:u&&!L,scrollButtonsHideMobile:!h},N=X3(j),H=va({elementType:S.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:j}),_=va({elementType:S.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:j}),[U,K]=f.useState(!1),[X,oe]=f.useState(yw),[ue,V]=f.useState(!1),[W,ne]=f.useState(!1),[J,Y]=f.useState(!1),[ee,pe]=f.useState({overflow:"hidden",scrollbarWidth:0}),me=new Map,ye=f.useRef(null),te=f.useRef(null),Ce={slots:S,slotProps:{indicator:R,scrollButton:k,...M}},ge=()=>{const Ae=ye.current;let Be;if(Ae){const ut=Ae.getBoundingClientRect();Be={clientWidth:Ae.clientWidth,scrollLeft:Ae.scrollLeft,scrollTop:Ae.scrollTop,scrollWidth:Ae.scrollWidth,top:ut.top,bottom:ut.bottom,left:ut.left,right:ut.right}}let ot;if(Ae&&P!==!1){const ut=te.current.children;if(ut.length>0){const kt=ut[me.get(P)];ot=kt?kt.getBoundingClientRect():null}}return{tabsMeta:Be,tabMeta:ot}},Te=Xe(()=>{const{tabsMeta:Ae,tabMeta:Be}=ge();let ot=0,ut;F?(ut="top",Be&&Ae&&(ot=Be.top-Ae.top+Ae.scrollTop)):(ut=l?"right":"left",Be&&Ae&&(ot=(l?-1:1)*(Be[ut]-Ae[ut]+Ae.scrollLeft)));const kt={[ut]:ot,[G]:Be?Be[G]:0};if(typeof X[ut]!="number"||typeof X[G]!="number")oe(kt);else{const no=Math.abs(X[ut]-kt[ut]),ir=Math.abs(X[G]-kt[G]);(no>=1||ir>=1)&&oe(kt)}}),Q=(Ae,{animation:Be=!0}={})=>{Be?B3(D,ye.current,Ae,{duration:r.transitions.duration.standard}):ye.current[D]=Ae},ke=Ae=>{let Be=ye.current[D];F?Be+=Ae:Be+=Ae*(l?-1:1),Q(Be)},Ie=()=>{const Ae=ye.current[B];let Be=0;const ot=Array.from(te.current.children);for(let ut=0;ut<ot.length;ut+=1){const kt=ot[ut];if(Be+kt[B]>Ae){ut===0&&(Be=Ae);break}Be+=kt[B]}return Be},Le=()=>{ke(-1*Ie())},Ne=()=>{ke(Ie())},[qe,{onChange:De,...Ee}]=Ge("scrollbar",{className:de(N.scrollableX,N.hideScrollbar),elementType:t6,shouldForwardComponentProp:!0,externalForwardedProps:Ce,ownerState:j}),Oe=f.useCallback(Ae=>{De==null||De(Ae),pe({overflow:null,scrollbarWidth:Ae})},[De]),[ce,Ve]=Ge("scrollButtons",{className:de(N.scrollButtons,k.className),elementType:q3,externalForwardedProps:Ce,ownerState:j,additionalProps:{orientation:w,slots:{StartScrollButtonIcon:S.startScrollButtonIcon||S.StartScrollButtonIcon,EndScrollButtonIcon:S.endScrollButtonIcon||S.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:H,endScrollButtonIcon:_}}}),et=()=>{const Ae={};Ae.scrollbarSizeListener=L?x.jsx(qe,{...Ee,onChange:Oe}):null;const ot=L&&(b==="auto"&&(ue||W)||b===!0);return Ae.scrollButtonStart=ot?x.jsx(ce,{direction:l?"right":"left",onClick:Le,disabled:!ue,...Ve}):null,Ae.scrollButtonEnd=ot?x.jsx(ce,{direction:l?"left":"right",onClick:Ne,disabled:!W,...Ve}):null,Ae},we=Xe(Ae=>{const{tabsMeta:Be,tabMeta:ot}=ge();if(!(!ot||!Be)){if(ot[I]<Be[I]){const ut=Be[D]+(ot[I]-Be[I]);Q(ut,{animation:Ae})}else if(ot[$]>Be[$]){const ut=Be[D]+(ot[$]-Be[$]);Q(ut,{animation:Ae})}}}),xe=Xe(()=>{L&&b!==!1&&Y(!J)});f.useEffect(()=>{const Ae=Da(()=>{ye.current&&Te()});let Be;const ot=no=>{no.forEach(ir=>{ir.removedNodes.forEach(Sr=>{Be==null||Be.unobserve(Sr)}),ir.addedNodes.forEach(Sr=>{Be==null||Be.observe(Sr)})}),Ae(),xe()},ut=br(ye.current);ut.addEventListener("resize",Ae);let kt;return typeof ResizeObserver<"u"&&(Be=new ResizeObserver(Ae),Array.from(te.current.children).forEach(no=>{Be.observe(no)})),typeof MutationObserver<"u"&&(kt=new MutationObserver(ot),kt.observe(te.current,{childList:!0})),()=>{Ae.clear(),ut.removeEventListener("resize",Ae),kt==null||kt.disconnect(),Be==null||Be.disconnect()}},[Te,xe]),f.useEffect(()=>{const Ae=Array.from(te.current.children),Be=Ae.length;if(typeof IntersectionObserver<"u"&&Be>0&&L&&b!==!1){const ot=Ae[0],ut=Ae[Be-1],kt={root:ye.current,threshold:.99},no=wr=>{V(!wr[0].isIntersecting)},ir=new IntersectionObserver(no,kt);ir.observe(ot);const Sr=wr=>{ne(!wr[0].isIntersecting)},Va=new IntersectionObserver(Sr,kt);return Va.observe(ut),()=>{ir.disconnect(),Va.disconnect()}}},[L,b,J,c==null?void 0:c.length]),f.useEffect(()=>{K(!0)},[]),f.useEffect(()=>{Te()}),f.useEffect(()=>{we(yw!==X)},[we,X]),f.useImperativeHandle(a,()=>({updateIndicator:Te,updateScrollButtons:xe}),[Te,xe]);const[ze,Ze]=Ge("indicator",{className:de(N.indicator,R.className),elementType:e6,externalForwardedProps:Ce,ownerState:j,additionalProps:{style:X}}),Qt=x.jsx(ze,{...Ze});let bn=0;const rr=f.Children.map(c,Ae=>{if(!f.isValidElement(Ae))return null;const Be=Ae.props.value===void 0?bn:Ae.props.value;me.set(Be,bn);const ot=Be===P;return bn+=1,f.cloneElement(Ae,{fullWidth:C==="fullWidth",indicator:ot&&!U&&Qt,selected:ot,selectionFollowsFocus:v,onChange:y,textColor:E,value:Be,...bn===1&&P===!1&&!Ae.props.tabIndex?{tabIndex:0}:{}})}),Jt=Ae=>{if(Ae.altKey||Ae.shiftKey||Ae.ctrlKey||Ae.metaKey)return;const Be=te.current,ot=Yt(Be).activeElement;if(ot.getAttribute("role")!=="tab")return;let kt=w==="horizontal"?"ArrowLeft":"ArrowUp",no=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&l&&(kt="ArrowRight",no="ArrowLeft"),Ae.key){case kt:Ae.preventDefault(),$d(Be,ot,bw);break;case no:Ae.preventDefault(),$d(Be,ot,mw);break;case"Home":Ae.preventDefault(),$d(Be,null,mw);break;case"End":Ae.preventDefault(),$d(Be,null,bw);break}},$n=et(),[Dn,Yn]=Ge("root",{ref:n,className:de(N.root,d),elementType:Q3,externalForwardedProps:{...Ce,...A,component:p},ownerState:j}),[Ln,lr]=Ge("scroller",{ref:ye,className:N.scroller,elementType:Z3,externalForwardedProps:Ce,ownerState:j,additionalProps:{style:{overflow:ee.overflow,[F?`margin${l?"Left":"Right"}`:"marginBottom"]:T?void 0:-ee.scrollbarWidth}}}),[Ye,jt]=Ge("list",{ref:te,className:de(N.list,N.flexContainer),elementType:J3,externalForwardedProps:Ce,ownerState:j,getSlotProps:Ae=>({...Ae,onKeyDown:Be=>{var ot;Jt(Be),(ot=Ae.onKeyDown)==null||ot.call(Ae,Be)}})});return x.jsxs(Dn,{...Yn,children:[$n.scrollButtonStart,$n.scrollbarSizeListener,x.jsxs(Ln,{...lr,children:[x.jsx(Ye,{"aria-label":i,"aria-labelledby":s,"aria-orientation":w==="vertical"?"vertical":null,role:"tablist",...jt,children:rr}),U&&Qt]}),$n.scrollButtonEnd]})}),o6=n6;function r6(e){return _e("MuiTextField",e)}je("MuiTextField",["root"]);const l6={standard:IP,filled:MP,outlined:FP},i6=e=>{const{classes:t}=e;return ve({root:["root"]},r6,t)},s6=Z(EP,{name:"MuiTextField",slot:"Root"})({}),a6=f.forwardRef(function(t,n){const o=We({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:l=!1,children:i,className:s,color:a="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:p,fullWidth:h=!1,helperText:g,id:y,InputLabelProps:w,inputProps:m,InputProps:b,inputRef:v,label:S,maxRows:M,minRows:R,multiline:k=!1,name:E,onBlur:P,onChange:C,onFocus:T,placeholder:A,required:L=!1,rows:F,select:D=!1,SelectProps:I,slots:$={},slotProps:B={},type:G,value:j,variant:N="outlined",...H}=o,_={...o,autoFocus:l,color:a,disabled:c,error:d,fullWidth:h,multiline:k,required:L,select:D,variant:N},U=i6(_),K=at(y),X=g&&K?`${K}-helper-text`:void 0,oe=S&&K?`${K}-label`:void 0,ue=l6[N],V={slots:$,slotProps:{input:b,inputLabel:w,htmlInput:m,formHelperText:p,select:I,...B}},W={},ne=V.slotProps.inputLabel;N==="outlined"&&(ne&&typeof ne.shrink<"u"&&(W.notched=ne.shrink),W.label=S),D&&((!I||!I.native)&&(W.id=void 0),W["aria-describedby"]=void 0);const[J,Y]=Ge("root",{elementType:s6,shouldForwardComponentProp:!0,externalForwardedProps:{...V,...H},ownerState:_,className:de(U.root,s),ref:n,additionalProps:{disabled:c,error:d,fullWidth:h,required:L,color:a,variant:N}}),[ee,pe]=Ge("input",{elementType:ue,externalForwardedProps:V,additionalProps:W,ownerState:_}),[me,ye]=Ge("inputLabel",{elementType:OP,externalForwardedProps:V,ownerState:_}),[te,Ce]=Ge("htmlInput",{elementType:"input",externalForwardedProps:V,ownerState:_}),[ge,Te]=Ge("formHelperText",{elementType:j4,externalForwardedProps:V,ownerState:_}),[Q,ke]=Ge("select",{elementType:zv,externalForwardedProps:V,ownerState:_}),Ie=x.jsx(ee,{"aria-describedby":X,autoComplete:r,autoFocus:l,defaultValue:u,fullWidth:h,multiline:k,name:E,rows:F,maxRows:M,minRows:R,type:G,value:j,id:K,inputRef:v,onBlur:P,onChange:C,onFocus:T,placeholder:A,inputProps:Ce,slots:{input:$.htmlInput?te:void 0},...pe});return x.jsxs(J,{...Y,children:[S!=null&&S!==""&&x.jsx(me,{htmlFor:K,id:oe,...ye,children:S}),D?x.jsx(Q,{"aria-describedby":X,id:K,labelId:oe,value:j,input:Ie,...ke,children:i}):Ie,g&&x.jsx(ge,{id:X,...Te,children:g})]})}),Js=a6,GP=f.createContext(void 0);function Ue(){const e=f.useContext(GP);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` 300 `));return e}const _P=f.createContext(void 0),Se=()=>{const e=f.useContext(_P);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},VP=parseInt(f.version,10),He=e=>{if(VP>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return f.forwardRef(e)};var tp=Symbol("NOT_FOUND");function c6(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function u6(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function d6(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(o=>typeof o=="function"?`function ${o.name||"unnamed"}()`:typeof o).join(", ");throw new TypeError(`${t}[${n}]`)}}var vw=e=>Array.isArray(e)?e:[e];function f6(e){const t=Array.isArray(e[0])?e[0]:e;return d6(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function p6(e,t){const n=[],{length:o}=e;for(let r=0;r<o;r++)n.push(e[r].apply(null,t));return n}function h6(e){let t;return{get(n){return t&&e(t.key,n)?t.value:tp},put(n,o){t={key:n,value:o}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function g6(e,t){let n=[];function o(s){const a=n.findIndex(u=>t(s,u.key));if(a>-1){const u=n[a];return a>0&&(n.splice(a,1),n.unshift(u)),u.value}return tp}function r(s,a){o(s)===tp&&(n.unshift({key:s,value:a}),n.length>e&&n.pop())}function l(){return n}function i(){n=[]}return{get:o,put:r,getEntries:l,clear:i}}var m6=(e,t)=>e===t;function b6(e){return function(n,o){if(n===null||o===null||n.length!==o.length)return!1;const{length:r}=n;for(let l=0;l<r;l++)if(!e(n[l],o[l]))return!1;return!0}}function UP(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:o=m6,maxSize:r=1,resultEqualityCheck:l}=n,i=b6(o);let s=0;const a=r<=1?h6(i):g6(r,i);function u(){let c=a.get(arguments);if(c===tp){if(c=e.apply(null,arguments),s++,l){const p=a.getEntries().find(h=>l(h.value,c));p&&(c=p.value,s!==0&&s--)}a.put(arguments,c)}return c}return u.clearCache=()=>{a.clear(),u.resetResultsCount()},u.resultsCount=()=>s,u.resetResultsCount=()=>{s=0},u}var y6=class{constructor(t){this.value=t}deref(){return this.value}},v6=typeof WeakRef<"u"?WeakRef:y6,C6=0,Cw=1;function Dd(){return{s:C6,v:void 0,o:null,p:null}}function WP(e,t={}){let n=Dd();const{resultEqualityCheck:o}=t;let r,l=0;function i(){var d;let s=n;const{length:a}=arguments;for(let p=0,h=a;p<h;p++){const g=arguments[p];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=s.o;y===null&&(s.o=y=new WeakMap);const w=y.get(g);w===void 0?(s=Dd(),y.set(g,s)):s=w}else{let y=s.p;y===null&&(s.p=y=new Map);const w=y.get(g);w===void 0?(s=Dd(),y.set(g,s)):s=w}}const u=s;let c;if(s.s===Cw)c=s.v;else if(c=e.apply(null,arguments),l++,o){const p=((d=r==null?void 0:r.deref)==null?void 0:d.call(r))??r;p!=null&&o(p,c)&&(c=p,l!==0&&l--),r=typeof c=="object"&&c!==null||typeof c=="function"?new v6(c):c}return u.s=Cw,u.v=c,c}return i.clearCache=()=>{n=Dd(),i.resetResultsCount()},i.resultsCount=()=>l,i.resetResultsCount=()=>{l=0},i}function qP(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,o=(...r)=>{let l=0,i=0,s,a={},u=r.pop();typeof u=="object"&&(a=u,u=r.pop()),c6(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...a},{memoize:d,memoizeOptions:p=[],argsMemoize:h=WP,argsMemoizeOptions:g=[],devModeChecks:y={}}=c,w=vw(p),m=vw(g),b=f6(r),v=d(function(){return l++,u.apply(null,arguments)},...w),S=h(function(){i++;const R=p6(b,arguments);return s=v.apply(null,R),s},...m);return Object.assign(S,{resultFunc:u,memoizedResultFunc:v,dependencies:b,dependencyRecomputations:()=>i,resetDependencyRecomputations:()=>{i=0},lastResult:()=>s,recomputations:()=>l,resetRecomputations:()=>{l=0},memoize:d,argsMemoize:h})};return Object.assign(o,{withTypes:()=>o}),o}var S6=qP(WP),w6=Object.assign((e,t=S6)=>{u6(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),o=n.map(l=>e[l]);return t(o,(...l)=>l.reduce((i,s,a)=>(i[n[a]]=s,i),{}))},{withTypes:()=>w6});const x6=Object.is;function KP(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,o=0;for(const r in e)if(n+=1,!x6(e[r],t[r])||!(r in t))return!1;for(const r in t)o+=1;return n===o}var YP={exports:{}},XP={};/** 301 * @license React 302 * use-sync-external-store-shim.production.js 303 * 304 * Copyright (c) Meta Platforms, Inc. and affiliates. 305 * 306 * This source code is licensed under the MIT license found in the 307 * LICENSE file in the root directory of this source tree. 308 */var Ca=f;function M6(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var E6=typeof Object.is=="function"?Object.is:M6,T6=Ca.useState,P6=Ca.useEffect,I6=Ca.useLayoutEffect,O6=Ca.useDebugValue;function R6(e,t){var n=t(),o=T6({inst:{value:n,getSnapshot:t}}),r=o[0].inst,l=o[1];return I6(function(){r.value=n,r.getSnapshot=t,Hg(r)&&l({inst:r})},[e,n,t]),P6(function(){return Hg(r)&&l({inst:r}),e(function(){Hg(r)&&l({inst:r})})},[e]),O6(n),n}function Hg(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!E6(e,n)}catch{return!0}}function k6(e,t){return t()}var A6=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?k6:R6;XP.useSyncExternalStore=Ca.useSyncExternalStore!==void 0?Ca.useSyncExternalStore:A6;YP.exports=XP;var QP=YP.exports;const $6=Object.is,Fv=KP,D6=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,o)=>n===t[o]),ZP=(e,t)=>{let n=Object.is;return t instanceof Array?n=D6:t instanceof Object&&(n=Fv),n(e,t)},L6=()=>({state:null,equals:null,selector:null,args:void 0}),Sw=[],z6=()=>null,le=(e,t,n=void 0,o=$6)=>{const r=vr(L6),l=r.current.selector!==null,[i,s]=f.useState(l?null:t(e,n));r.current.state=i,r.current.equals=o,r.current.selector=t;const a=r.current.args;if(r.current.args=n,l&&!ZP(a,n)){const d=r.current.selector(e,r.current.args);r.current.equals(r.current.state,d)||(r.current.state=d,s(d))}const u=f.useCallback(()=>(r.current.subscription||(r.current.subscription=e.current.store.subscribe(()=>{const d=r.current.selector(e,r.current.args);r.current.equals(r.current.state,d)||(r.current.state=d,s(d))})),null),Sw),c=f.useCallback(()=>()=>{r.current.subscription&&(r.current.subscription(),r.current.subscription=void 0)},Sw);return QP.useSyncExternalStore(c,u,z6),i};class F6{constructor(t){this.value=t}deref(){return this.value}}const B6=()=>typeof WeakRef>"u"?F6:WeakRef,JP=B6(),H6=0,ww=1;function Ld(){return{s:H6,v:void 0,o:null,p:null}}function N6(e){return e instanceof JP?e.deref():e}function j6(e,t={}){let n=Ld();const{resultEqualityCheck:o}=t;let r,l=0;function i(){let s=n;const{length:a}=arguments;for(let d=0,p=a;d<p;d+=1){let h=arguments[d];if(typeof h=="function"||typeof h=="object"&&h!==null){"current"in h&&"instanceId"in h.current&&(h=h.current.state);let g=s.o;g===null&&(g=new WeakMap,s.o=g);const y=g.get(h);y===void 0?(s=Ld(),g.set(h,s)):s=y}else{let g=s.p;g===null&&(g=new Map,s.p=g);const y=g.get(h);y===void 0?(s=Ld(),g.set(h,s)):s=y}}const u=s;let c;if(s.s===ww)c=s.v;else if(c=e.apply(null,arguments),l+=1,o){const d=N6(r);d!=null&&o(d,c)&&(c=d,l!==0&&(l-=1)),r=typeof c=="object"&&c!==null||typeof c=="function"?new JP(c):c}return u.s=ww,u.v=c,c}return i.clearCache=()=>{n=Ld(),i.resetResultsCount()},i.resultsCount=()=>l,i.resetResultsCount=()=>{l=0},i}const xw=qP({memoize:UP,memoizeOptions:{maxSize:1,equalityCheck:Object.is},argsMemoize:j6}),Mw=new WeakMap,Pe=(e,t,n,o,r,l,...i)=>{if(i.length>0)throw new Error("Unsupported number of selectors");let s;if(e&&t&&n&&o&&r&&l)s=(a,u)=>{const c=e(a,u),d=t(a,u),p=n(a,u),h=o(a,u),g=r(a,u);return l(c,d,p,h,g,u)};else if(e&&t&&n&&o&&r)s=(a,u)=>{const c=e(a,u),d=t(a,u),p=n(a,u),h=o(a,u);return r(c,d,p,h,u)};else if(e&&t&&n&&o)s=(a,u)=>{const c=e(a,u),d=t(a,u),p=n(a,u);return o(c,d,p,u)};else if(e&&t&&n)s=(a,u)=>{const c=e(a,u),d=t(a,u);return n(c,d,u)};else if(e&&t)s=(a,u)=>{const c=e(a,u);return t(c,u)};else throw new Error("Missing arguments");return s},Xt=e=>(t,n)=>e(t.current.state,n),bt=(...e)=>(n,o)=>{const r=n.current.instanceId,l=Mw.get(r),i=l??new Map,s=i.get(e);if(i&&s){if(!ZP(s.selectorArgs,o)){const c=o!==void 0?[...e.slice(0,e.length-1),()=>o,e[e.length-1]]:e,d=xw(...c);return d.selectorArgs=o,i.set(e,d),d(n,o)}return s(n,o)}const a=o!==void 0?[...e.slice(0,e.length-1),()=>o,e[e.length-1]]:e,u=xw(...a);return u.selectorArgs=o,l||Mw.set(r,i),i.set(e,u),u(n,o)},Tt=Xt(e=>e.dimensions),Mh=Pe(Tt,e=>e.columnsTotalWidth),Bv=Pe(Tt,e=>e.rowHeight),G6=Pe(Tt,e=>e.contentSize.height),_6=Pe(Tt,e=>e.hasScrollX),V6=Pe(Tt,e=>e.hasScrollY),eI=Pe(Tt,e=>e.columnsTotalWidth<e.viewportOuterSize.width),U6=Pe(Tt,e=>e.headerHeight),W6=Pe(Tt,e=>e.groupHeaderHeight);Pe(Tt,e=>e.headerFilterHeight);const q6=Pe(Tt,e=>e.hasScrollX?e.scrollbarSize:0),tI=Pe(Tt,e=>e.hasScrollY?e.scrollbarSize:0),K6=Pe(Tt,q6,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)});function Sl(e){return f.memo(e,KP)}const Y6={noRowsLabel:"No rows",noResultsOverlayLabel:"No results found.",noColumnsOverlayLabel:"No columns",noColumnsOverlayManageColumns:"Manage columns",emptyPivotOverlayLabel:"Add fields to rows, columns, and values to create a pivot table",toolbarDensity:"Density",toolbarDensityLabel:"Density",toolbarDensityCompact:"Compact",toolbarDensityStandard:"Standard",toolbarDensityComfortable:"Comfortable",toolbarColumns:"Columns",toolbarColumnsLabel:"Select columns",toolbarFilters:"Filters",toolbarFiltersLabel:"Show filters",toolbarFiltersTooltipHide:"Hide filters",toolbarFiltersTooltipShow:"Show filters",toolbarFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,toolbarQuickFilterPlaceholder:"Search…",toolbarQuickFilterLabel:"Search",toolbarQuickFilterDeleteIconLabel:"Clear",toolbarExport:"Export",toolbarExportLabel:"Export",toolbarExportCSV:"Download as CSV",toolbarExportPrint:"Print",toolbarExportExcel:"Download as Excel",toolbarPivot:"Pivot",toolbarAssistant:"AI Assistant",columnsManagementSearchTitle:"Search",columnsManagementNoColumns:"No columns",columnsManagementShowHideAllText:"Show/Hide All",columnsManagementReset:"Reset",columnsManagementDeleteIconLabel:"Clear",filterPanelAddFilter:"Add filter",filterPanelRemoveAll:"Remove all",filterPanelDeleteIconLabel:"Delete",filterPanelLogicOperator:"Logic operator",filterPanelOperator:"Operator",filterPanelOperatorAnd:"And",filterPanelOperatorOr:"Or",filterPanelColumns:"Columns",filterPanelInputLabel:"Value",filterPanelInputPlaceholder:"Filter value",filterOperatorContains:"contains",filterOperatorDoesNotContain:"does not contain",filterOperatorEquals:"equals",filterOperatorDoesNotEqual:"does not equal",filterOperatorStartsWith:"starts with",filterOperatorEndsWith:"ends with",filterOperatorIs:"is",filterOperatorNot:"is not",filterOperatorAfter:"is after",filterOperatorOnOrAfter:"is on or after",filterOperatorBefore:"is before",filterOperatorOnOrBefore:"is on or before",filterOperatorIsEmpty:"is empty",filterOperatorIsNotEmpty:"is not empty",filterOperatorIsAnyOf:"is any of","filterOperator=":"=","filterOperator!=":"!=","filterOperator>":">","filterOperator>=":">=","filterOperator<":"<","filterOperator<=":"<=",headerFilterOperatorContains:"Contains",headerFilterOperatorDoesNotContain:"Does not contain",headerFilterOperatorEquals:"Equals",headerFilterOperatorDoesNotEqual:"Does not equal",headerFilterOperatorStartsWith:"Starts with",headerFilterOperatorEndsWith:"Ends with",headerFilterOperatorIs:"Is",headerFilterOperatorNot:"Is not",headerFilterOperatorAfter:"Is after",headerFilterOperatorOnOrAfter:"Is on or after",headerFilterOperatorBefore:"Is before",headerFilterOperatorOnOrBefore:"Is on or before",headerFilterOperatorIsEmpty:"Is empty",headerFilterOperatorIsNotEmpty:"Is not empty",headerFilterOperatorIsAnyOf:"Is any of","headerFilterOperator=":"Equals","headerFilterOperator!=":"Not equals","headerFilterOperator>":"Greater than","headerFilterOperator>=":"Greater than or equal to","headerFilterOperator<":"Less than","headerFilterOperator<=":"Less than or equal to",headerFilterClear:"Clear filter",filterValueAny:"any",filterValueTrue:"true",filterValueFalse:"false",columnMenuLabel:"Menu",columnMenuAriaLabel:e=>`${e} column menu`,columnMenuShowColumns:"Show columns",columnMenuManageColumns:"Manage columns",columnMenuFilter:"Filter",columnMenuHideColumn:"Hide column",columnMenuUnsort:"Unsort",columnMenuSortAsc:"Sort by ASC",columnMenuSortDesc:"Sort by DESC",columnMenuManagePivot:"Manage pivot",columnHeaderFiltersTooltipActive:e=>e!==1?`${e} active filters`:`${e} active filter`,columnHeaderFiltersLabel:"Show filters",columnHeaderSortIconLabel:"Sort",footerRowSelected:e=>e!==1?`${e.toLocaleString()} rows selected`:`${e.toLocaleString()} row selected`,footerTotalRows:"Total Rows:",footerTotalVisibleRows:(e,t)=>`${e.toLocaleString()} of ${t.toLocaleString()}`,checkboxSelectionHeaderName:"Checkbox selection",checkboxSelectionSelectAllRows:"Select all rows",checkboxSelectionUnselectAllRows:"Unselect all rows",checkboxSelectionSelectRow:"Select row",checkboxSelectionUnselectRow:"Unselect row",booleanCellTrueLabel:"yes",booleanCellFalseLabel:"no",actionsCellMore:"more",pinToLeft:"Pin to left",pinToRight:"Pin to right",unpin:"Unpin",treeDataGroupingHeaderName:"Group",treeDataExpand:"see children",treeDataCollapse:"hide children",groupingColumnHeaderName:"Group",groupColumn:e=>`Group by ${e}`,unGroupColumn:e=>`Stop grouping by ${e}`,detailPanelToggle:"Detail panel toggle",expandDetailPanel:"Expand",collapseDetailPanel:"Collapse",paginationRowsPerPage:"Rows per page:",paginationDisplayedRows:({from:e,to:t,count:n,estimated:o})=>{if(!o)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const r=o&&o>t?`around ${o}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:r}`},paginationItemAriaLabel:e=>e==="first"?"Go to first page":e==="last"?"Go to last page":e==="next"?"Go to next page":"Go to previous page",rowReorderingHeaderName:"Row reordering",aggregationMenuItemHeader:"Aggregation",aggregationFunctionLabelSum:"sum",aggregationFunctionLabelAvg:"avg",aggregationFunctionLabelMin:"min",aggregationFunctionLabelMax:"max",aggregationFunctionLabelSize:"size",pivotToggleLabel:"Pivot",pivotRows:"Rows",pivotColumns:"Columns",pivotValues:"Values",pivotCloseButton:"Close pivot settings",pivotSearchButton:"Search fields",pivotSearchControlPlaceholder:"Search fields",pivotSearchControlLabel:"Search fields",pivotSearchControlClear:"Clear search",pivotNoFields:"No fields",pivotMenuMoveUp:"Move up",pivotMenuMoveDown:"Move down",pivotMenuMoveToTop:"Move to top",pivotMenuMoveToBottom:"Move to bottom",pivotMenuRows:"Rows",pivotMenuColumns:"Columns",pivotMenuValues:"Values",pivotMenuOptions:"Field options",pivotMenuAddToRows:"Add to Rows",pivotMenuAddToColumns:"Add to Columns",pivotMenuAddToValues:"Add to Values",pivotMenuRemove:"Remove",pivotDragToRows:"Drag here to create rows",pivotDragToColumns:"Drag here to create columns",pivotDragToValues:"Drag here to create values",pivotYearColumnHeaderName:"(Year)",pivotQuarterColumnHeaderName:"(Quarter)",aiAssistantPanelTitle:"AI Assistant",aiAssistantPanelClose:"Close AI Assistant",aiAssistantPanelNewConversation:"New conversation",aiAssistantPanelConversationHistory:"Conversation history",aiAssistantPanelEmptyConversation:"No prompt history",aiAssistantSuggestions:"Suggestions",promptFieldLabel:"Prompt",promptFieldPlaceholder:"Type a prompt…",promptFieldPlaceholderWithRecording:"Type or record a prompt…",promptFieldPlaceholderListening:"Listening for prompt…",promptFieldSpeechRecognitionNotSupported:"Speech recognition is not supported in this browser",promptFieldSend:"Send",promptFieldRecord:"Record",promptFieldStopRecording:"Stop recording",promptRerun:"Run again",promptProcessing:"Processing…",promptAppliedChanges:"Applied changes",promptChangeGroupDescription:e=>`Group by ${e}`,promptChangeAggregationLabel:(e,t)=>`${e} (${t})`,promptChangeAggregationDescription:(e,t)=>`Aggregate ${e} (${t})`,promptChangeFilterLabel:(e,t,n)=>t==="is any of"?`${e} is any of: ${n}`:`${e} ${t} ${n}`,promptChangeFilterDescription:(e,t,n)=>t==="is any of"?`Filter where ${e} is any of: ${n}`:`Filter where ${e} ${t} ${n}`,promptChangeSortDescription:(e,t)=>`Sort by ${e} (${t})`,promptChangePivotEnableLabel:"Pivot",promptChangePivotEnableDescription:"Enable pivot",promptChangePivotColumnsLabel:e=>`Columns (${e})`,promptChangePivotColumnsDescription:(e,t)=>`${e}${t?` (${t})`:""}`,promptChangePivotRowsLabel:e=>`Rows (${e})`,promptChangePivotValuesLabel:e=>`Values (${e})`,promptChangePivotValuesDescription:(e,t)=>`${e} (${t})`};function tt(e){return _e("MuiDataGrid",e)}const z=je("MuiDataGrid",["aiAssistantPanel","aiAssistantPanelHeader","aiAssistantPanelTitleContainer","aiAssistantPanelTitle","aiAssistantPanelBody","aiAssistantPanelEmptyText","aiAssistantPanelFooter","aiAssistantPanelConversation","aiAssistantPanelConversationList","aiAssistantPanelConversationTitle","aiAssistantPanelSuggestions","aiAssistantPanelSuggestionsList","aiAssistantPanelSuggestionsItem","aiAssistantPanelSuggestionsLabel","actionsCell","aggregationColumnHeader","aggregationColumnHeader--alignLeft","aggregationColumnHeader--alignCenter","aggregationColumnHeader--alignRight","aggregationColumnHeaderLabel","aggregationRowOverlayWrapper","autoHeight","autosizing","mainContent","withSidePanel","booleanCell","cell--editable","cell--editing","cell--flex","cell--textCenter","cell--textLeft","cell--textRight","cell--rangeTop","cell--rangeBottom","cell--rangeLeft","cell--rangeRight","cell--pinnedLeft","cell--pinnedRight","cell--selectionMode","cell","cellCheckbox","cellEmpty","cellSkeleton","cellOffsetLeft","checkboxInput","collapsible","collapsibleTrigger","collapsibleIcon","collapsiblePanel","columnHeader","columnHeader--alignCenter","columnHeader--alignLeft","columnHeader--alignRight","columnHeader--dragging","columnHeader--moving","columnHeader--numeric","columnHeader--sortable","columnHeader--sorted","columnHeader--filtered","columnHeader--pinnedLeft","columnHeader--pinnedRight","columnHeader--last","columnHeader--lastUnpinned","columnHeader--siblingFocused","columnHeader--filter","columnHeaderFilterInput","columnHeaderFilterOperatorLabel","columnHeaderCheckbox","columnHeaderDraggableContainer","columnHeaderTitle","columnHeaderTitleContainer","columnHeaderTitleContainerContent","columnHeader--filledGroup","columnHeader--emptyGroup","columnHeaders","columnSeparator--resizable","columnSeparator--resizing","columnSeparator--sideLeft","columnSeparator--sideRight","columnSeparator","columnsManagement","columnsManagementRow","columnsManagementHeader","columnsManagementSearchInput","columnsManagementFooter","columnsManagementScrollArea","columnsManagementEmptyText","container--top","container--bottom","detailPanel","detailPanelToggleCell","detailPanelToggleCell--expanded","footerCell","panel","panelHeader","panelWrapper","panelContent","panelFooter","paper","editBooleanCell","editInputCell","filler","filler--borderBottom","filler--pinnedLeft","filler--pinnedRight","filterForm","filterFormDeleteIcon","filterFormLogicOperatorInput","filterFormColumnInput","filterFormOperatorInput","filterFormValueInput","filterIcon","footerContainer","headerFilterRow","iconButtonContainer","iconSeparator","main","main--hasPinnedRight","main--hiddenContent","menu","menuIcon","menuIconButton","menuOpen","menuList","overlay","overlayWrapper","overlayWrapperInner","root","root--densityStandard","root--densityComfortable","root--densityCompact","root--disableUserSelection","root--noToolbar","row","row--editable","row--editing","row--firstVisible","row--lastVisible","row--dragging","row--dynamicHeight","row--detailPanelExpanded","row--borderBottom","rowReorderCellPlaceholder","rowCount","rowReorderCellContainer","rowReorderCell","rowReorderCell--draggable","rowSkeleton","scrollArea--left","scrollArea--right","scrollArea","scrollbar","scrollbar--vertical","scrollbar--horizontal","scrollbarFiller","scrollbarFiller--header","scrollbarFiller--borderTop","scrollbarFiller--borderBottom","scrollbarFiller--pinnedRight","selectedRowCount","sortButton","sortIcon","shadowScrollArea","sidebar","sidebarHeader","toolbarContainer","toolbar","toolbarLabel","toolbarDivider","toolbarFilterList","toolbarQuickFilter","toolbarQuickFilterTrigger","toolbarQuickFilterControl","virtualScroller","virtualScroller--hasScrollX","virtualScrollerContent","virtualScrollerContent--overflowed","virtualScrollerRenderZone","withVerticalBorder","withBorderColor","cell--withRightBorder","cell--withLeftBorder","columnHeader--withRightBorder","columnHeader--withLeftBorder","treeDataGroupingCell","treeDataGroupingCellToggle","treeDataGroupingCellLoadingContainer","groupingCriteriaCell","groupingCriteriaCellToggle","groupingCriteriaCellLoadingContainer","pinnedRows","pinnedRows--top","pinnedRows--bottom","pivotPanelAvailableFields","pivotPanelField","pivotPanelField--sorted","pivotPanelFieldActionContainer","pivotPanelFieldCheckbox","pivotPanelFieldDragIcon","pivotPanelFieldList","pivotPanelFieldName","pivotPanelHeader","pivotPanelPlaceholder","pivotPanelScrollArea","pivotPanelSearchContainer","pivotPanelSection","pivotPanelSectionTitle","pivotPanelSections","pivotPanelSwitch","pivotPanelSwitchLabel","prompt","promptContent","promptText","promptFeedback","promptChangeList","promptChangesToggle","promptChangesToggleIcon","promptIcon","promptIconContainer","promptError","promptAction"]);let hr=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const Ew=1e3;class X6{constructor(t=Ew){this.timeouts=new Map,this.cleanupTimeout=Ew,this.cleanupTimeout=t}register(t,n,o){this.timeouts||(this.timeouts=new Map);const r=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(o.cleanupToken)},this.cleanupTimeout);this.timeouts.set(o.cleanupToken,r)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class Q6{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,o){this.registry.register(t,n,o)}unregister(t){this.registry.unregister(t)}reset(){}}class Hv{static create(){return new Hv}}const zd={current:J6()};let Tw=0;function Re(e,t,n,o){const r=f.useState(Hv.create)[0],l=f.useRef(null),i=f.useRef(null);i.current=n;const s=f.useRef(null);if(!l.current&&i.current){const a=(u,c,d)=>{var p;c.defaultMuiPrevented||(p=i.current)==null||p.call(i,u,c,d)};l.current=e.current.subscribeEvent(t,a,o),Tw+=1,s.current={cleanupToken:Tw},zd.current.register(r,()=>{var u;(u=l.current)==null||u.call(l),l.current=null,s.current=null},s.current)}else!i.current&&l.current&&(l.current(),l.current=null,s.current&&(zd.current.unregister(s.current),s.current=null));f.useEffect(()=>{if(!l.current&&i.current){const a=(u,c,d)=>{var p;c.defaultMuiPrevented||(p=i.current)==null||p.call(i,u,c,d)};l.current=e.current.subscribeEvent(t,a,o)}return s.current&&zd.current&&(zd.current.unregister(s.current),s.current=null),()=>{var a;(a=l.current)==null||a.call(l),l.current=null}},[e,t,o])}const Z6={isFirst:!0};function xt(e,t,n){Re(e,t,n,Z6)}function J6(){return typeof FinalizationRegistry<"u"?new Q6:new X6}const e_=.7,t_=1.3,n_={compact:e_,comfortable:t_,standard:1},Hs=Xt(e=>e.density),La=Pe(Hs,e=>n_[e]);function wl(e){throw new Error("Failed assertion: should not be rendered")}const nI={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=nI.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},oI={spacingUnit:"--DataGrid-t-spacing-unit",colors:{border:{base:"--DataGrid-t-color-border-base"},foreground:{base:"--DataGrid-t-color-foreground-base",muted:"--DataGrid-t-color-foreground-muted",accent:"--DataGrid-t-color-foreground-accent",disabled:"--DataGrid-t-color-foreground-disabled",error:"--DataGrid-t-color-foreground-error"},background:{base:"--DataGrid-t-color-background-base",overlay:"--DataGrid-t-color-background-overlay",backdrop:"--DataGrid-t-color-background-backdrop"},interactive:{hover:"--DataGrid-t-color-interactive-hover",hoverOpacity:"--DataGrid-t-color-interactive-hover-opacity",focus:"--DataGrid-t-color-interactive-focus",focusOpacity:"--DataGrid-t-color-interactive-focus-opacity",disabled:"--DataGrid-t-color-interactive-disabled",disabledOpacity:"--DataGrid-t-color-interactive-disabled-opacity",selected:"--DataGrid-t-color-interactive-selected",selectedOpacity:"--DataGrid-t-color-interactive-selected-opacity"}},header:{background:{base:"--DataGrid-t-header-background-base"}},cell:{background:{pinned:"--DataGrid-t-cell-background-pinned"}},radius:{base:"--DataGrid-t-radius-base"},typography:{font:{body:"--DataGrid-t-typography-font-body",small:"--DataGrid-t-typography-font-small",large:"--DataGrid-t-typography-font-large"},fontFamily:{base:"--DataGrid-t-typography-font-family-base"},fontWeight:{light:"--DataGrid-t-typography-font-weight-light",regular:"--DataGrid-t-typography-font-weight-regular",medium:"--DataGrid-t-typography-font-weight-medium",bold:"--DataGrid-t-typography-font-weight-bold"}},transitions:{easing:{easeIn:"--DataGrid-t-transition-easing-ease-in",easeOut:"--DataGrid-t-transition-easing-ease-out",easeInOut:"--DataGrid-t-transition-easing-ease-in-out"},duration:{short:"--DataGrid-t-transition-duration-short",base:"--DataGrid-t-transition-duration-base",long:"--DataGrid-t-transition-duration-long"}},shadows:{base:"--DataGrid-t-shadow-base",overlay:"--DataGrid-t-shadow-overlay"},zIndex:{panel:"--DataGrid-t-z-index-panel",menu:"--DataGrid-t-z-index-menu"}},o_=rI(oI),Me=O({breakpoints:nI,spacing:r_,transition:l_,keys:oI},o_);function r_(e,t,n,o){return e===void 0?sr(1):t===void 0?sr(e):n===void 0?sr(e)+" "+sr(t):o===void 0?sr(e)+" "+sr(t)+" "+sr(n):sr(e)+" "+sr(t)+" "+sr(n)+" "+sr(o)}function sr(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function l_(e,t){const{duration:n=Me.transitions.duration.base,easing:o=Me.transitions.easing.easeInOut,delay:r=0}=t??{};return e.map(l=>`${l} ${n} ${o} ${r}ms`).join(", ")}function rI(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=rI(e[n]));return t}const i_=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],s_=e=>{const{classes:t}=e;return ve({root:["editInputCell"]},tt,t)},a_=Z(wl,{name:"MuiDataGrid",slot:"EditInputCell"})({font:Me.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),c_=He((e,t)=>{const n=Se(),{id:o,value:r,field:l,colDef:i,hasFocus:s,debounceMs:a=200,isProcessingProps:u,onValueChange:c,slotProps:d}=e,p=be(e,i_),h=Ue(),g=f.useRef(null),[y,w]=f.useState(r),m=s_(n),b=f.useCallback(async S=>{const M=S.target.value,R=h.current.getColumn(l);let k=M;R.valueParser&&(k=R.valueParser(M,h.current.getRow(o),R,h)),w(k),h.current.setEditCellValue({id:o,field:l,value:k,debounceMs:a,unstable_skipValueParser:!0},S),c&&await c(S,M)},[h,a,l,o,c]),v=h.current.unstable_getEditCellMeta(o,l);return f.useEffect(()=>{(v==null?void 0:v.changeReason)!=="debouncedSetEditCellValue"&&w(r)},[v,r]),Ot(()=>{s&&g.current.focus()},[s]),x.jsx(a_,O({as:n.slots.baseInput,inputRef:g,className:m.root,ownerState:n,fullWidth:!0,type:i.type==="number"?i.type:"text",value:y??"",onChange:b,endAdornment:u?x.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},p,d==null?void 0:d.root,{ref:t}))}),u_=e=>x.jsx(c_,O({},e)),Cr=Xt(e=>e.rows),Ku=Pe(Cr,e=>e.totalRowCount),d_=Pe(Cr,e=>e.loading),f_=Pe(Cr,e=>e.totalTopLevelRowCount),qo=Pe(Cr,e=>e.dataRowIdToModelLookup);Pe(qo,(e,t)=>e[t]);const jn=Pe(Cr,e=>e.tree),Dr=Pe(jn,(e,t)=>e[t]),p_=Pe(Cr,e=>e.groupsToFetch),h_=Pe(Cr,e=>e.groupingName),Pw=Pe(Cr,e=>e.treeDepths),za=bt(Cr,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,o)=>o-n)[0]??0)+1}),Ri=Pe(Cr,e=>e.dataRowIds),g_=bt(Ri,qo,(e,t)=>e.reduce((n,o)=>(t[o]&&n.push(t[o]),n),[])),m_=Pe(Cr,e=>e==null?void 0:e.additionalRowGroups),Fa=bt(m_,e=>{var n,o;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(r=>({id:r.id,model:r.model??{}})))??[],top:((o=t==null?void 0:t.top)==null?void 0:o.map(r=>({id:r.id,model:r.model??{}})))??[]}}),lI=Pe(Fa,e=>{var t,n;return(((t=e==null?void 0:e.top)==null?void 0:t.length)||0)+(((n=e==null?void 0:e.bottom)==null?void 0:n.length)||0)}),iI=(e,t)=>t&&e.length>1?[e[0]]:e,Iw=(e,t)=>n=>O({},n,{sorting:O({},n.sorting,{sortModel:iI(e,t)})}),b_=e=>e==="desc",y_=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let o;return n.getSortComparator?o=n.getSortComparator(e.sort):o=b_(e.sort)?(...l)=>-1*n.sortComparator(...l):n.sortComparator,o?{getSortCellParams:l=>({id:l,field:n.field,rowNode:Dr(t,l),value:t.current.getCellValue(l,n.field),api:t.current}),comparator:o}:null},v_=(e,t,n)=>e.reduce((o,r,l)=>{if(o!==0)return o;const i=t.params[l],s=n.params[l];return o=r.comparator(i.value,s.value,i,s),o},0),C_=(e,t)=>{const n=e.map(o=>y_(o,t)).filter(o=>!!o);return n.length===0?null:o=>o.map(r=>({node:r,params:n.map(l=>l.getSortCellParams(r.id))})).sort((r,l)=>v_(n,r,l)).map(r=>r.node.id)},Ow=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},Nv=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,S_=new Intl.Collator,w_=(e,t)=>{const n=Nv(e,t);return n!==null?n:typeof e=="string"?S_.compare(e.toString(),t.toString()):e-t},sI=(e,t)=>{const n=Nv(e,t);return n!==null?n:Number(e)-Number(t)},aI=(e,t)=>{const n=Nv(e,t);return n!==null?n:e>t?1:e<t?-1:0},x_=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function Go(e){var M,R,k;const{item:t,applyValue:n,type:o,apiRef:r,focusElementRef:l,tabIndex:i,disabled:s,slotProps:a,clearButton:u,headerFilterMenu:c}=e,d=be(e,x_),p=a==null?void 0:a.root,h=Wo(),[g,y]=f.useState(Ng(t.value)),[w,m]=f.useState(!1),b=at(),v=Se(),S=f.useCallback(E=>{const P=Ng(E.target.value);y(P),m(!0),h.start(v.filterDebounceMs,()=>{const C=O({},t,{value:o==="number"&&!Number.isNaN(Number(P))?Number(P):P,fromInput:b});n(C),m(!1)})},[h,v.filterDebounceMs,t,o,b,n]);return f.useEffect(()=>{(t.fromInput!==b||t.value==null)&&y(Ng(t.value))},[b,t]),x.jsxs(f.Fragment,{children:[x.jsx(v.slots.baseTextField,O({id:b,label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),value:g??"",onChange:S,type:o||"text",disabled:s,slotProps:O({},p==null?void 0:p.slotProps,{input:O({endAdornment:w?x.jsx(v.slots.loadIcon,{fontSize:"small",color:"action"}):null},(M=p==null?void 0:p.slotProps)==null?void 0:M.input),htmlInput:O({tabIndex:i},(R=p==null?void 0:p.slotProps)==null?void 0:R.htmlInput)}),inputRef:l},(k=v.slotProps)==null?void 0:k.baseTextField,d,p)),c,u]})}function Ng(e){if(!(e==null||e===""))return String(e)}function M_(e){return typeof e=="number"&&!Number.isNaN(e)}function E_(e){return typeof e=="function"}function jv(e){return typeof e=="object"&&e!==null}function T_(){try{const e="__some_random_key_you_are_not_going_to_use__";return window.localStorage.setItem(e,e),window.localStorage.removeItem(e),!0}catch{return!1}}function np(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const Eo=(e,t,n)=>Math.max(t,Math.min(n,e));function Rw(e,t){return Array.from({length:t-e}).map((n,o)=>e+o)}function P_(e){return()=>{let t=e+=1831565813;return t=Math.imul(t^t>>>15,t|1),t^=t+Math.imul(t^t>>>7,t|61),((t^t>>>14)>>>0)/4294967296}}function I_(e){const t=P_(e);return(n,o)=>n+(o-n)*t()}function cI(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const Ul=(e,t)=>n=>{e&&t(n)};function uI(e){const{item:t,applyValue:n,type:o,apiRef:r,focusElementRef:l,slotProps:i}=e,s=at(),[a,u]=f.useState([]),[c,d]=f.useState(t.value||[]),p=Se();f.useEffect(()=>{const w=t.value??[];d(w.map(String))},[t.value]);const h=f.useCallback((w,m)=>{d(m.map(String)),n(O({},t,{value:[...m.map(b=>o==="number"?Number(b):b)]}))},[n,t,o]),g=f.useCallback((w,m)=>{u(m===""?[]:[m])},[u]),y=p.slots.baseAutocomplete;return x.jsx(y,O({multiple:!0,freeSolo:!0,options:a,id:s,value:c,onChange:h,onInputChange:g,label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:o||"text",inputRef:l}}},i==null?void 0:i.root))}var Gr=function(e){return e.Cell="cell",e.Row="row",e}(Gr||{}),yt=function(e){return e.Edit="edit",e.View="view",e}(yt||{}),At=function(e){return e.Edit="edit",e.View="view",e}(At||{}),Qn=function(e){return e.And="and",e.Or="or",e}(Qn||{});class O_{constructor(t){this.data=void 0,this.data=t.ids}has(t){return this.data.has(t)}select(t){this.data.add(t)}unselect(t){this.data.delete(t)}}class R_{constructor(t){this.data=void 0,this.data=t.ids}has(t){return!this.data.has(t)}select(t){this.data.delete(t)}unselect(t){this.data.add(t)}}const Wl=e=>e.type==="include"?new O_(e):new R_(e);var Zr=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(Zr||{}),cr=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(cr||{}),Ll=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Ll||{}),Er=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(Er||{});function dI(e){return e.field!==void 0}const fI={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},gu=()=>({items:[],logicOperator:Qn.And,quickFilterValues:[],quickFilterLogicOperator:Qn.And});function pI(e){return{current:e.current.getPublicApi()}}let Bl=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const op={left:[],right:[]},k_=Xt(e=>e.isRtl),gr=Xt(e=>e.columns),ul=Pe(gr,e=>e.orderedFields),xl=Pe(gr,e=>e.lookup),Xo=bt(ul,xl,(e,t)=>e.map(n=>t[n])),fr=Pe(gr,e=>e.columnVisibilityModel),A_=Pe(gr,e=>e.initialColumnVisibilityModel),Kt=bt(Xo,fr,(e,t)=>e.filter(n=>t[n.field]!==!1)),Ba=bt(Kt,e=>e.map(t=>t.field)),$_=Xt(e=>e.pinnedColumns),Ha=bt(gr,$_,Ba,k_,(e,t,n,o)=>{const r=D_(t,n,o);return{left:r.left.map(i=>e.lookup[i]),right:r.right.map(i=>e.lookup[i])}});function D_(e,t,n){var s,a;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((s=e.left)==null?void 0:s.length)===0&&((a=e.right)==null?void 0:a.length)===0)return op;const o=(u,c)=>Array.isArray(u)?u.filter(d=>c.includes(d)):[],r=o(e.left,t),l=t.filter(u=>!r.includes(u)),i=o(e.right,l);return n?{left:i,right:r}:{left:r,right:i}}const yi=bt(Kt,e=>{const t=[];let n=0;for(let o=0;o<e.length;o+=1)t.push(n),n+=e[o].computedWidth;return t}),hI=bt(Xo,e=>e.filter(t=>t.filterable)),L_=bt(Xo,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),z_=bt(Xo,e=>e.some(t=>t.colSpan!==void 0));let uc;function F_(){if(uc!==void 0)return uc;try{uc=new Function("return true")()}catch{uc=!1}return uc}const Ab=(e,t)=>{const n=O({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const o=xl(t)[n.field];n.operator=o&&o.filterOperators[0].value}return n},Gv=(e,t,n)=>{const o=e.items.length>1;let r;o&&t?r=[e.items[0]]:r=e.items;const l=o&&r.some(s=>s.id==null);return r.some(s=>s.operator==null)||l?O({},e,{items:r.map(s=>Ab(s,n))}):e.items!==r?O({},e,{items:r}):e},kw=(e,t,n)=>o=>O({},o,{filterModel:Gv(e,t,n)}),mu=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,gI=(e,t)=>{var c;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let o;if(n.valueParser){const d=n.valueParser;o=Array.isArray(e.value)?(c=e.value)==null?void 0:c.map(p=>d(p,void 0,n,t)):d(e.value,void 0,n,t)}else o=e.value;const{ignoreDiacritics:r}=t.current.rootProps;r&&(o=mu(o));const l=O({},e,{value:o}),i=n.filterOperators;if(!(i!=null&&i.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const s=i.find(d=>d.value===l.operator);if(!s)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${l.operator}'.`);const a=pI(t),u=s.getApplyFilterFn(l,n);return typeof u!="function"?null:{item:l,fn:d=>{let p=t.current.getRowValue(d,n);return r&&(p=mu(p)),u(p,d,n,a)}}};let Aw=1;const B_=(e,t,n)=>{const{items:o}=e,r=o.map(s=>gI(s,t)).filter(s=>!!s);if(r.length===0)return null;if(n||!F_())return(s,a)=>{const u={};for(let c=0;c<r.length;c+=1){const d=r[c];(!a||a(d.item.field))&&(u[d.item.id]=d.fn(s))}return u};const l=new Function("appliers","row","shouldApplyFilter",`"use strict"; 309 ${r.map((s,a)=>`const shouldApply${a} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(s.item.field)});`).join(` 310 `)} 311 312 const result$$ = { 313 ${r.map((s,a)=>` ${JSON.stringify(String(s.item.id))}: !shouldApply${a} ? false : appliers[${a}].fn(row),`).join(` 314 `)} 315 }; 316 317 return result$$;`.replaceAll("$$",String(Aw)));return Aw+=1,(s,a)=>l(r,s,a)},mI=e=>e.quickFilterExcludeHiddenColumns??!0,H_=(e,t)=>{var s;const n=((s=e.quickFilterValues)==null?void 0:s.filter(Boolean))??[];if(n.length===0)return null;const o=mI(e)?Ba(t):ul(t),r=[],{ignoreDiacritics:l}=t.current.rootProps,i=pI(t);return o.forEach(a=>{const u=t.current.getColumn(a),c=u==null?void 0:u.getApplyQuickFilterFn;c&&r.push({column:u,appliers:n.map(d=>{const p=l?mu(d):d;return{fn:c(p,u,i)}})})}),function(u,c){const d={};e:for(let p=0;p<n.length;p+=1){const h=n[p];for(let g=0;g<r.length;g+=1){const{column:y,appliers:w}=r[g],{field:m}=y;if(c&&!c(m))continue;const b=w[p];let v=t.current.getRowValue(u,y);if(b.fn===null)continue;if(l&&(v=mu(v)),b.fn(v,u,y,i)){d[h]=!0;continue e}}d[h]=!1}return d}},N_=(e,t,n)=>{const o=B_(e,t,n),r=H_(e,t);return function(i,s,a){a.passingFilterItems=(o==null?void 0:o(i,s))??null,a.passingQuickFilterValues=(r==null?void 0:r(i,s))??null}},$w=e=>e!=null,j_=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(o=>gI(o,t)!==null)),e.cleanedFilterItems),G_=(e,t,n,o,r)=>{const l=j_(r,o,n.items),i=e.filter($w),s=t.filter($w);if(i.length>0){const a=c=>i.some(d=>d[c.id]);if((n.logicOperator??gu().logicOperator)===Qn.And){if(!l.every(a))return!1}else if(!l.some(a))return!1}if(s.length>0&&n.quickFilterValues!=null){const a=c=>s.some(d=>d[c]);if((n.quickFilterLogicOperator??gu().quickFilterLogicOperator)===Qn.And){if(!n.quickFilterValues.every(a))return!1}else if(!n.quickFilterValues.some(a))return!1}return!0},__=e=>{if(!e)return null;const t=new RegExp(np(e),"i");return(n,o,r,l)=>{let i=l.current.getRowFormattedValue(o,r);return l.current.ignoreDiacritics&&(i=mu(i)),i!=null?t.test(i.toString()):!1}},Dw=(e,t)=>n=>{if(!n.value)return null;const o=e?n.value:n.value.trim(),r=new RegExp(np(o),"i");return l=>{if(l==null)return t;const i=r.test(String(l));return t?!i:i}},Lw=(e,t)=>n=>{if(!n.value)return null;const o=e?n.value:n.value.trim(),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return l=>{if(l==null)return t;const i=r.compare(o,l.toString())===0;return t?!i:i}},zw=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},V_=(e=!1)=>[{value:"contains",getApplyFilterFn:Dw(e,!1),InputComponent:Go},{value:"doesNotContain",getApplyFilterFn:Dw(e,!0),InputComponent:Go},{value:"equals",getApplyFilterFn:Lw(e,!1),InputComponent:Go},{value:"doesNotEqual",getApplyFilterFn:Lw(e,!0),InputComponent:Go},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`^${np(n)}.*$`,"i");return r=>r!=null?o.test(r.toString()):!1},InputComponent:Go},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),o=new RegExp(`.*${np(n)}$`,"i");return r=>r!=null?o.test(r.toString()):!1},InputComponent:Go},{value:"isEmpty",getApplyFilterFn:zw(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:zw(!0),requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:t=>{if(!Array.isArray(t.value)||t.value.length===0)return null;const n=e?t.value:t.value.map(r=>r.trim()),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return r=>r!=null?n.some(l=>o.compare(l,r.toString()||"")===0):!1},InputComponent:uI}],mr={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:w_,type:"string",align:"left",filterOperators:V_(),renderEditCell:u_,getApplyQuickFilterFn:__},bI=f.createContext(void 0),Eh=()=>{const e=f.useContext(bI);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid configuration context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` 318 `));return e},U_="MuiDataGridVariables",_v=f.createContext({className:"unset",tag:x.jsx("style",{href:"/unset"})});function yI(){return f.useContext(_v).className}function W_(){return f.useContext(_v)}function q_(e){const t=Eh(),n=Se(),o=t.hooks.useCSSVariables(),r=f.useMemo(()=>{const l=`${U_}-${o.id}`,i=`.${l}{${K_(o.variables)}}`,s=x.jsx("style",{href:`/${l}`,nonce:n.nonce,children:i});return{className:l,tag:s}},[n.nonce,o]);return x.jsx(_v.Provider,{value:r,children:e.children})}function K_(e){let t="";for(const n in e)Object.hasOwn(e,n)&&(t+=`${n}:${e[n]};`);return t}const Y_=["open","target","onClose","children","position","className","onExited"],X_=e=>{const{classes:t}=e;return ve({root:["menu"]},tt,t)},Q_=Z(wl,{name:"MuiDataGrid",slot:"Menu"})({zIndex:Me.zIndex.menu,[`& .${z.menuList}`]:{outline:0}});function Th(e){var y;const{open:t,target:n,onClose:o,children:r,position:l,className:i,onExited:s}=e,a=be(e,Y_),u=Ue(),c=Se(),d=X_(c),p=yI(),h=f.useRef(null);Ot(()=>{var w,m;t?h.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((m=(w=h.current)==null?void 0:w.focus)==null||m.call(w),h.current=null)},[t]),f.useEffect(()=>{const w=t?"menuOpen":"menuClose";u.current.publishEvent(w,{target:n})},[u,t,n]);const g=w=>{w.target&&(n===w.target||n!=null&&n.contains(w.target))||o(w)};return x.jsx(Q_,O({as:c.slots.basePopper,className:de(d.root,i,p),ownerState:c,open:t,target:n,transition:!0,placement:l,onClickAway:g,onExited:s,clickAwayMouseEvent:"onMouseDown"},a,(y=c.slotProps)==null?void 0:y.basePopper,{children:r}))}const Z_=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],J_=e=>typeof e.getActions=="function";function eV(e){var I;const{colDef:t,id:n,hasFocus:o,tabIndex:r,position:l="bottom-end",focusElementRef:i}=e,s=be(e,Z_),[a,u]=f.useState(-1),[c,d]=f.useState(!1),p=Ue(),h=f.useRef(null),g=f.useRef(null),y=f.useRef(!1),w=f.useRef({}),m=_n(),b=at(),v=at(),S=Se();if(!J_(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const M=t.getActions(p.current.getRowParams(n)),R=M.filter($=>!$.props.showInMenu),k=M.filter($=>$.props.showInMenu),E=R.length+(k.length?1:0);f.useLayoutEffect(()=>{o||Object.entries(w.current).forEach(([$,B])=>{B==null||B.stop({},()=>{delete w.current[$]})})},[o]),f.useEffect(()=>{if(a<0||!h.current||a>=h.current.children.length)return;h.current.children[a].focus({preventScroll:!0})},[a]),f.useEffect(()=>{o||(u(-1),y.current=!1)},[o]),f.useImperativeHandle(i,()=>({focus(){if(!y.current){const $=M.findIndex(B=>!B.props.disabled);u($)}}}),[M]),f.useEffect(()=>{a>=E&&u(E-1)},[a,E]);const P=()=>{d(!0),u(E-1),y.current=!0},C=()=>{d(!1)},T=$=>{$.stopPropagation(),$.preventDefault(),c?C():P()},A=$=>B=>{w.current[$]=B},L=($,B)=>G=>{u($),y.current=!0,B&&B(G)},F=$=>{if(E<=1)return;const B=(j,N)=>{var U;if(j<0||j>M.length)return j;const _=(N==="left"?-1:1)*(m?-1:1);return(U=M[j+_])!=null&&U.props.disabled?B(j+_,N):j+_};let G=a;$.key==="ArrowRight"?G=B(a,"right"):$.key==="ArrowLeft"&&(G=B(a,"left")),!(G<0||G>=E)&&G!==a&&($.preventDefault(),$.stopPropagation(),u(G))},D=$=>{$.key==="Tab"&&$.preventDefault(),["Tab","Escape"].includes($.key)&&C()};return x.jsxs("div",O({role:"menu",ref:h,tabIndex:-1,className:z.actionsCell,onKeyDown:F},s,{children:[R.map(($,B)=>f.cloneElement($,{key:B,touchRippleRef:A(B),onClick:L(B,$.props.onClick),tabIndex:a===B?r:-1})),k.length>0&&v&&x.jsx(S.slots.baseIconButton,O({ref:g,id:v,"aria-label":p.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":c,"aria-controls":c?b:void 0,role:"menuitem",size:"small",onClick:T,touchRippleRef:A(v),tabIndex:a===R.length?r:-1},(I=S.slotProps)==null?void 0:I.baseIconButton,{children:x.jsx(S.slots.moreActionsIcon,{fontSize:"small"})})),k.length>0&&x.jsx(Th,{open:c,target:g.current,position:l,onClose:C,children:x.jsx(S.slots.baseMenuList,{id:b,className:z.menuList,onKeyDown:D,"aria-labelledby":v,autoFocusItem:!0,children:k.map(($,B)=>f.cloneElement($,{key:B,closeMenu:C}))})})]}))}const tV=e=>x.jsx(eV,O({},e)),Ph="actions",nV=O({},mr,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:tV,getApplyQuickFilterFn:()=>null}),On="auto-generated-group-node-root",Sa=Symbol("mui.id_autogenerated"),oV=()=>({type:"group",id:On,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function rV(e,t,n="A row was provided without id in the rows prop:"){if(e==null)throw new Error(["MUI X: The Data Grid component requires all rows to have a unique `id` property.","Alternatively, you can use the `getRowId` prop to specify a custom id for each row.",n,JSON.stringify(t)].join(` 319 `))}const Ih=(e,t,n)=>{const o=t?t(e):e.id;return rV(o,e,n),o},lV=(e,t,n)=>{const o=t.field;if(!t||!t.valueGetter)return e[o];const r=e[t.field];return t.valueGetter(r,e,t,n)},sf=({rows:e,getRowId:t,loading:n,rowCount:o})=>{const r={type:"full",rows:[]},l={};for(let i=0;i<e.length;i+=1){const s=e[i],a=Ih(s,t);l[a]=s,r.rows.push(a)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:o,updates:r,dataRowIdToModelLookup:l}},vI=({tree:e,rowCountProp:t=0})=>{const n=e[On];return Math.max(t,n.children.length+(n.footerId==null?0:1))},CI=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:o,previousTreeDepths:r,previousGroupsToFetch:l})=>{const i=e.current.caches.rows,{tree:s,treeDepths:a,dataRowIds:u,groupingName:c,groupsToFetch:d=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:o,previousTreeDepths:r,updates:i.updates,dataRowIdToModelLookup:i.dataRowIdToModelLookup,previousGroupsToFetch:l}),p=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:s,treeDepths:a,dataRowIds:u,dataRowIdToModelLookup:i.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},O({},p,{totalRowCount:Math.max(t,p.dataRowIds.length),totalTopLevelRowCount:vI({tree:p.tree,rowCountProp:t}),groupingName:c,loading:n,groupsToFetch:d})},wa=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,Vv=(e,t,n)=>{const o=e[t];if(o.type!=="group")return[];const r=[];for(let l=0;l<o.children.length;l+=1){const i=o.children[l];(!n||!wa(e[i]))&&r.push(i);const s=Vv(e,i,n);for(let a=0;a<s.length;a+=1)r.push(s[a])}return!n&&o.footerId!=null&&r.push(o.footerId),r},Fw=({previousCache:e,getRowId:t,updates:n,groupKeys:o})=>{if(e.updates.type==="full")throw new Error("MUI X: Unable to prepare a partial update if a full update is not applied yet.");const r=new Map;n.forEach(u=>{const c=Ih(u,t,"A row was provided without id when calling updateRows():");r.has(c)?r.set(c,O({},r.get(c),u)):r.set(c,u)});const l={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:O({},e.updates.idToActionLookup),groupKeys:o},i=O({},e.dataRowIdToModelLookup),s={insert:{},modify:{},remove:{}};r.forEach((u,c)=>{const d=l.idToActionLookup[c];if(u._action==="delete"){if(d==="remove"||!i[c])return;d!=null&&(s[d][c]=!0),l.actions.remove.push(c),delete i[c];return}const p=i[c];if(p){d==="remove"?(s.remove[c]=!0,l.actions.modify.push(c)):d==null&&l.actions.modify.push(c),i[c]=O({},p,u);return}d==="remove"?(s.remove[c]=!0,l.actions.insert.push(c)):d==null&&l.actions.insert.push(c),i[c]=u});const a=Object.keys(s);for(let u=0;u<a.length;u+=1){const c=a[u],d=s[c];Object.keys(d).length>0&&(l.actions[c]=l.actions[c].filter(p=>!d[p]))}return{dataRowIdToModelLookup:i,updates:l,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},SI="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function Bw(e,t,n){const o=[];return t.forEach(r=>{const l=Ih(r,n,"A row was provided without id when calling updateRows():"),i=Dr(e,l);if((i==null?void 0:i.type)==="pinnedRow"){const s=e.current.caches.pinnedRows,a=s.idLookup[l];a&&(s.idLookup[l]=O({},a,r))}else o.push(r)}),o}const wI=(e,t,n)=>typeof e=="number"&&e>0?e:t,iV="__tree_data_group__",xI="__row_group_by_columns_group__",Oh="__detail_panel_toggle__";let nt=function(e){return e[e.NONE=0]="NONE",e[e.LEFT=1]="LEFT",e[e.RIGHT=2]="RIGHT",e[e.VIRTUAL=3]="VIRTUAL",e}({});const sV=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],aV=e=>{const{classes:t}=e;return ve({root:["booleanCell"]},tt,t)};function cV(e){const{value:t,rowNode:n}=e,o=be(e,sV),r=Ue(),l=Se(),i={classes:l.classes},s=aV(i),u=le(r,za)>0&&n.type==="group"&&l.treeData===!1,c=f.useMemo(()=>t?l.slots.booleanCellTrueIcon:l.slots.booleanCellFalseIcon,[l.slots.booleanCellFalseIcon,l.slots.booleanCellTrueIcon,t]);return u&&t===void 0?null:x.jsx(c,O({fontSize:"small",className:s.root,titleAccess:r.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},o))}const uV=f.memo(cV),dV=e=>e.field!==xI&&wa(e.rowNode)?"":x.jsx(uV,O({},e)),fV=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],pV=e=>{const{classes:t}=e;return ve({root:["editBooleanCell"]},tt,t)};function hV(e){var m;const{id:t,value:n,field:o,className:r,hasFocus:l,onValueChange:i}=e,s=be(e,fV),a=Ue(),u=f.useRef(null),c=at(),[d,p]=f.useState(n),h=Se(),g={classes:h.classes},y=pV(g),w=f.useCallback(async b=>{const v=b.target.checked;i&&await i(b,v),p(v),await a.current.setEditCellValue({id:t,field:o,value:v},b)},[a,o,t,i]);return f.useEffect(()=>{p(n)},[n]),Ot(()=>{l&&u.current.focus()},[l]),x.jsx("label",O({htmlFor:c,className:de(y.root,r)},s,{children:x.jsx(h.slots.baseCheckbox,O({id:c,inputRef:u,checked:!!d,onChange:w,size:"small"},(m=h.slotProps)==null?void 0:m.baseCheckbox))}))}const gV=e=>x.jsx(hV,O({},e)),mV=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function bV(e){var M,R;const{item:t,applyValue:n,apiRef:o,focusElementRef:r,headerFilterMenu:l,clearButton:i,tabIndex:s,slotProps:a}=e,u=be(e,mV),[c,d]=f.useState(af(t.value)),p=Se(),h=at(),g=at(),y=((M=p.slotProps)==null?void 0:M.baseSelect)||{},w=y.native??!1,m=((R=p.slotProps)==null?void 0:R.baseSelectOption)||{},b=f.useCallback(k=>{const E=af(k.target.value);d(E),n(O({},t,{value:E}))},[n,t]);f.useEffect(()=>{d(af(t.value))},[t.value]);const v=(a==null?void 0:a.root.label)??o.current.getLocaleText("filterPanelInputLabel"),S=a==null?void 0:a.root.slotProps;return x.jsxs(f.Fragment,{children:[x.jsxs(p.slots.baseSelect,O({fullWidth:!0,labelId:h,id:g,label:v,value:c===void 0?"":String(c),onChange:b,native:w,slotProps:{htmlInput:O({ref:r,tabIndex:s},S==null?void 0:S.htmlInput)}},y,u,a==null?void 0:a.root,{children:[x.jsx(p.slots.baseSelectOption,O({},m,{native:w,value:"",children:o.current.getLocaleText("filterValueAny")})),x.jsx(p.slots.baseSelectOption,O({},m,{native:w,value:"true",children:o.current.getLocaleText("filterValueTrue")})),x.jsx(p.slots.baseSelectOption,O({},m,{native:w,value:"false",children:o.current.getLocaleText("filterValueFalse")}))]})),l,i]})}function af(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}const yV=()=>[{value:"is",getApplyFilterFn:e=>{const t=af(e.value);return t===void 0?null:n=>!!n===t},InputComponent:bV}],vV=(e,t,n,o)=>e?o.current.getLocaleText("booleanCellTrueLabel"):o.current.getLocaleText("booleanCellFalseLabel"),CV=e=>{switch(e.toLowerCase().trim()){case"true":case"yes":case"1":return!0;case"false":case"no":case"0":case"null":case"undefined":return!1;default:return}},MI=O({},mr,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:dV,renderEditCell:gV,sortComparator:sI,valueFormatter:vV,filterOperators:yV(),getApplyQuickFilterFn:()=>null,aggregable:!1,pastedValueParser:e=>CV(e)});function Rh(e){for(const t in e)return!1;return!0}const EI=Xt(e=>e.sorting),Na=Pe(EI,e=>e.sortedRows),Uv=bt(Na,qo,jn,(e,t,n)=>e.reduce((o,r)=>{const l=t[r];if(l)o.push({id:r,model:l});else{const i=n[r];i&&wa(i)&&o.push({id:r,model:{[Sa]:r}})}return o},[])),Lo=Pe(EI,e=>e.sortModel),SV=bt(Lo,e=>e.reduce((n,o,r)=>(n[o.field]={sortDirection:o.sort,sortIndex:e.length>1?r+1:void 0},n),{}));bt(Na,e=>e.reduce((t,n,o)=>(t[n]=o,t),Object.create(null)));const kh=Xt(e=>e.filter),vn=Pe(kh,e=>e.filterModel),TI=Pe(vn,e=>e.quickFilterValues),wV=Xt(e=>e.visibleRowsLookup),ja=Pe(kh,e=>e.filteredRowsLookup);Pe(kh,e=>e.filteredChildrenCountLookup);Pe(kh,e=>e.filteredDescendantCountLookup);const vi=bt(wV,Uv,(e,t)=>Rh(e)?t:t.filter(n=>e[n.id]!==!1)),ea=bt(vi,e=>e.map(t=>t.id)),PI=bt(ja,Uv,(e,t)=>Rh(e)?t:t.filter(n=>e[n.id]!==!1)),II=bt(PI,e=>e.map(t=>t.id));bt(ea,jn,(e,t)=>{const n={};let o=0;return e.reduce((r,l)=>{const i=t[l];return n[i.depth]||(n[i.depth]=0),i.depth>o&&(n[i.depth]=0),o=i.depth,n[i.depth]+=1,r[l]=n[i.depth],r},{})});const OI=bt(vi,jn,za,(e,t,n)=>n<2?e:e.filter(o=>{var r;return((r=t[o.id])==null?void 0:r.depth)===0})),Wv=Pe(vi,e=>e.length),qv=Pe(OI,e=>e.length),RI=Pe(PI,e=>e.length);Pe(RI,qv,(e,t)=>e-t);const Kv=bt(vn,xl,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(o=>{var i,s;if(!o.field)return!1;const r=t[o.field];if(!(r!=null&&r.filterOperators)||((i=r==null?void 0:r.filterOperators)==null?void 0:i.length)===0)return!1;const l=r.filterOperators.find(a=>a.value===o.operator);return l?!l.InputComponent||o.value!=null&&((s=o.value)==null?void 0:s.toString())!=="":!1})}),xV=bt(Kv,e=>e.reduce((n,o)=>(n[o.field]?n[o.field].push(o):n[o.field]=[o],n),{})),dr=Xt(e=>e.rowSelection),Yu=bt(dr,Wl),Ah=Pe(dr,RI,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),kI=bt(dr,qo,Ri,(e,t,n)=>{const o=new Map;if(e.type==="include")for(const r of e.ids)o.set(r,t[r]);else for(let r=0;r<n.length;r+=1){const l=n[r];e.ids.has(l)||o.set(l,t[l])}return o});function AI(e,t){var a;const n=jn(e),o=Na(e),r=ja(e),l=n[t];if(!l||l.type!=="group")return[];const i=[],s=o.findIndex(u=>u===t)+1;for(let u=s;u<o.length&&((a=n[o[u]])==null?void 0:a.depth)>l.depth;u+=1){const c=o[u];r[c]!==!1&&e.current.isRowSelectable(c)&&i.push(c)}return i}function MV(e,t){return Pe(jn,Na,ja,Yu,(n,o,r,l)=>{var c;const i=n[e];if(!i||i.type!=="group")return{isIndeterminate:!1,isChecked:l.has(e)};if(l.has(e))return{isIndeterminate:!1,isChecked:!0};let s=0,a=0;const u=o.findIndex(d=>d===e)+1;for(let d=u;d<o.length&&((c=n[o[d]])==null?void 0:c.depth)>i.depth;d+=1){const p=o[d];r[p]!==!1&&(s+=1,l.has(p)&&(a+=1))}return{isIndeterminate:a>0&&(a<s||!l.has(e)),isChecked:t?a>0:l.has(e)}})}function Yv(e){return e.signature===hr.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const EV=(e,t)=>{const n=[];let o=t;for(;o!=null&&o!==On;){const r=e[o];if(!r)return n;n.push(o),o=r.parent}return n},TV=(e,t,n)=>{const o=e[n];if(!o)return[];const r=o.parent;return r==null?[]:e[r].children.filter(i=>i!==n&&t[i]!==!1)},dc=(e,t,n,o,r,l,i=Yu(e))=>{const s=ja(e),a=new Set([]);if(!(!o&&!r||s[n]===!1)){if(o){const u=t[n];(u==null?void 0:u.type)==="group"&&AI(e,n).forEach(d=>{l(d),a.add(d)})}if(r){const u=d=>{if(!i.has(d)&&!a.has(d))return!1;const p=t[d];return p?p.type!=="group"?!0:p.children.every(u):!1},c=d=>{const p=TV(t,s,d);if(p.length===0||p.every(u)){const h=t[d],g=h==null?void 0:h.parent;g!=null&&g!==On&&e.current.isRowSelectable(g)&&(l(g),a.add(g),c(g))}};c(n)}}},Hw=(e,t,n,o,r,l)=>{const i=Yu(e);if(!(!r&&!o)&&(r&&EV(t,n).forEach(a=>{i.has(a)&&l(a)}),o)){const s=t[n];(s==null?void 0:s.type)==="group"&&AI(e,n).forEach(u=>{l(u)})}},PV=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],IV=e=>{const{classes:t}=e;return ve({root:["checkboxInput"]},tt,t)},OV=He(function(t,n){var v,S;const{field:o,id:r,rowNode:l,tabIndex:i}=t,s=be(t,PV),a=Ue(),u=Se(),c={classes:u.classes},d=IV(c),p=M=>{const R={value:M.target.checked,id:r};a.current.publishEvent("rowSelectionCheckboxChange",R,M)};f.useLayoutEffect(()=>{if(i===0){const M=a.current.getCellElement(r,o);M&&(M.tabIndex=-1)}},[a,i,r,o]);const h=f.useCallback(M=>{M.key===" "&&M.stopPropagation()},[]),g=a.current.isRowSelectable(r),y=MV(r,((v=u.rowSelectionPropagation)==null?void 0:v.parents)??!1),{isIndeterminate:w,isChecked:m}=le(a,y,void 0,Fv);if(l.type==="footer"||l.type==="pinnedRow")return null;const b=a.current.getLocaleText(m&&!w?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return x.jsx(u.slots.baseCheckbox,O({tabIndex:i,checked:m&&!w,onChange:p,className:d.root,slotProps:{htmlInput:{"aria-label":b,name:"select_row"}},onKeyDown:h,indeterminate:w,disabled:!g},(S=u.slotProps)==null?void 0:S.baseCheckbox,s,{ref:n}))}),RV=OV,$h=Xt(e=>e.focus),io=Pe($h,e=>e.cell),kV=Pe($h,e=>e.columnHeader);Pe($h,e=>e.columnHeaderFilter);const rp=Pe($h,e=>e.columnGroupHeader),Dh=Xt(e=>e.tabIndex),Xv=Pe(Dh,e=>e.cell),$I=Pe(Dh,e=>e.columnHeader);Pe(Dh,e=>e.columnHeaderFilter);const AV=Pe(Dh,e=>e.columnGroupHeader),$V=100,DV=e=>e?0:100,DI=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,LI=e=>({page:0,pageSize:e?0:100}),LV=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),zI=(e,t)=>{if(t===hr.DataGrid&&e>$V)throw new Error(["MUI X: `pageSize` cannot exceed 100 in the MIT version of the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` 320 `))},zV=-1,Xu=Xt(e=>e.pagination),FI=Pe(Xu,e=>e.enabled&&e.paginationMode==="client"),Tn=Pe(Xu,e=>e.paginationModel),Ns=Pe(Xu,e=>e.rowCount),wc=Pe(Xu,e=>e.meta),FV=Pe(Tn,e=>e.page),BI=Pe(Tn,e=>e.pageSize),HI=Pe(Tn,Ns,(e,t)=>DI(t,e.pageSize,e.page)),Qv=bt(FI,Tn,jn,za,vi,OI,(e,t,n,o,r,l)=>{var g;if(!e)return null;const i=l.length,s=Math.min(t.pageSize*t.page,i-1),a=t.pageSize===zV?i-1:Math.min(s+t.pageSize-1,i-1);if(s===-1||a===-1)return null;if(o<2)return{firstRowIndex:s,lastRowIndex:a};const u=l[s],c=a-s+1,d=r.findIndex(y=>y.id===u.id);let p=d,h=0;for(;p<r.length&&h<=c;){const y=r[p],w=(g=n[y.id])==null?void 0:g.depth;w===void 0?p+=1:((h<c||w>0)&&(p+=1),w===0&&(h+=1))}return{firstRowIndex:d,lastRowIndex:p-1}}),BV=bt(vi,Qv,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),NI=bt(ea,Qv,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),Qu=bt(FI,Qv,BV,vi,(e,t,n,o)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((r,l,i)=>(r.set(l.id,i),r),new Map)}:{rows:o,range:o.length===0?null:{firstRowIndex:0,lastRowIndex:o.length-1},rowIdToIndexMap:o.reduce((r,l,i)=>(r.set(l.id,i),r),new Map)}),HV=["field","colDef"],NV=e=>{const{classes:t}=e;return ve({root:["checkboxInput"]},tt,t)},jV=He(function(t,n){var k;const o=be(t,HV),[,r]=f.useState(!1),l=Ue(),i=Se(),s={classes:i.classes},a=NV(s),u=le(l,$I),c=le(l,dr),d=le(l,ea),p=le(l,NI),h=f.useMemo(()=>{const E=i.isRowSelectable;if(typeof E!="function"||c.type==="exclude")return c;const P={type:"include",ids:new Set};for(const C of c.ids)i.keepNonExistentRowsSelected&&P.ids.add(C),l.current.getRow(C)&&E(l.current.getRowParams(C))&&P.ids.add(C);return P},[l,i.isRowSelectable,i.keepNonExistentRowsSelected,c]),g=f.useMemo(()=>{const E=!i.pagination||!i.checkboxSelectionVisibleOnly||i.paginationMode==="server"?d:p,P=new Set;for(let C=0;C<E.length;C+=1){const T=E[C];l.current.getRow(T)&&l.current.isRowSelectable(T)&&P.add(T)}return P},[l,i.pagination,i.paginationMode,i.checkboxSelectionVisibleOnly,p,d]),y=f.useMemo(()=>{const E=Wl(h);let P=0;for(const C of g)E.has(C)&&(P+=1);return P},[h,g]),w=f.useMemo(()=>{if(h.ids.size===0)return!1;const E=Wl(h);for(const P of g)if(!E.has(P))return!0;return!1},[h,g]),m=y>0,b=E=>{const P={value:E.target.checked};l.current.publishEvent("headerSelectionCheckboxChange",P)},v=u!==null&&u.field===t.field?0:-1;f.useLayoutEffect(()=>{const E=l.current.getColumnHeaderElement(t.field);v===0&&E&&(E.tabIndex=-1)},[v,l,t.field]);const S=f.useCallback(E=>{E.key===" "&&l.current.publishEvent("headerSelectionCheckboxChange",{value:!m})},[l,m]),M=f.useCallback(()=>{r(E=>!E)},[]);f.useEffect(()=>l.current.subscribeEvent("rowSelectionChange",M),[l,M]);const R=l.current.getLocaleText(m&&!w?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return x.jsx(i.slots.baseCheckbox,O({indeterminate:w,checked:m&&!w,onChange:b,className:a.root,slotProps:{htmlInput:{"aria-label":R,name:"select_all_rows"}},tabIndex:v,onKeyDown:S,disabled:!Yv(i)},(k=i.slotProps)==null?void 0:k.baseCheckbox,o,{ref:n}))}),Zu=Xt((e,t)=>Sa in t?t[Sa]:e.props.getRowId?e.props.getRowId(t):t.id),Jr="__check__",Ga=O({},MI,{type:"custom",field:Jr,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,o)=>{const r=Zu(o,t);return o.current.isRowSelected(r)},renderHeader:e=>x.jsx(jV,O({},e)),renderCell:e=>x.jsx(RV,O({},e))}),GV=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function Nw(e,t){if(e==null)return"";const n=new Date(e);return Number.isNaN(n.getTime())?"":t==="date"?n.toISOString().substring(0,10):t==="datetime-local"?(n.setMinutes(n.getMinutes()-n.getTimezoneOffset()),n.toISOString().substring(0,19)):n.toISOString().substring(0,10)}function hs(e){var M;const{item:t,applyValue:n,type:o,apiRef:r,focusElementRef:l,slotProps:i,headerFilterMenu:s,clearButton:a,tabIndex:u,disabled:c}=e,d=be(e,GV),p=i==null?void 0:i.root.slotProps,h=Wo(),[g,y]=f.useState(()=>Nw(t.value,o)),[w,m]=f.useState(!1),b=at(),v=Se(),S=f.useCallback(R=>{h.clear();const k=R.target.value;y(k),m(!0),h.start(v.filterDebounceMs,()=>{const E=new Date(k);n(O({},t,{value:Number.isNaN(E.getTime())?void 0:E})),m(!1)})},[n,t,v.filterDebounceMs,h]);return f.useEffect(()=>{const R=Nw(t.value,o);y(R)},[t.value,o]),x.jsxs(f.Fragment,{children:[x.jsx(v.slots.baseTextField,O({fullWidth:!0,id:b,label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),value:g,onChange:S,type:o||"text",disabled:c,inputRef:l,slotProps:O({},p,{input:O({endAdornment:w?x.jsx(v.slots.loadIcon,{fontSize:"small",color:"action"}):null},p==null?void 0:p.input),htmlInput:O({max:o==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:u},p==null?void 0:p.htmlInput)})},(M=v.slotProps)==null?void 0:M.baseTextField,d,i==null?void 0:i.root)),s,a]})}function gs(e,t,n,o){if(!e.value)return null;const r=new Date(e.value);n?r.setSeconds(0,0):(r.setMinutes(r.getMinutes()+r.getTimezoneOffset()),r.setHours(0,0,0,0));const l=r.getTime();return i=>{if(!i)return!1;if(o)return t(i.getTime(),l);const s=new Date(i);return n?s.setSeconds(0,0):s.setHours(0,0,0,0),t(s.getTime(),l)}}const jI=e=>[{value:"is",getApplyFilterFn:t=>gs(t,(n,o)=>n===o,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>gs(t,(n,o)=>n!==o,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>gs(t,(n,o)=>n>o,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>gs(t,(n,o)=>n>=o,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>gs(t,(n,o)=>n<o,e,!e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>gs(t,(n,o)=>n<=o,e),InputComponent:hs,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],_V=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],VV=Z(wl)({fontSize:"inherit"}),UV=e=>{const{classes:t}=e;return ve({root:["editInputCell"]},tt,t)};function WV(e){var S,M;const{id:t,value:n,field:o,colDef:r,hasFocus:l,onValueChange:i,slotProps:s}=e,a=be(e,_V),u=r.type==="dateTime",c=Ue(),d=f.useRef(null),p=f.useMemo(()=>{let R;n==null?R=null:n instanceof Date?R=n:R=new Date((n??"").toString());let k;return R==null||Number.isNaN(R.getTime())?k="":k=new Date(R.getTime()-R.getTimezoneOffset()*60*1e3).toISOString().substr(0,u?16:10),{parsed:R,formatted:k}},[n,u]),[h,g]=f.useState(p),y=Se(),w={classes:y.classes},m=UV(w),b=f.useCallback(R=>{if(R==="")return null;const[k,E]=R.split("T"),[P,C,T]=k.split("-"),A=new Date;if(A.setFullYear(Number(P),Number(C)-1,Number(T)),A.setHours(0,0,0,0),E){const[L,F]=E.split(":");A.setHours(Number(L),Number(F),0,0)}return A},[]),v=f.useCallback(async R=>{const k=R.target.value,E=b(k);i&&await i(R,E),g({parsed:E,formatted:k}),c.current.setEditCellValue({id:t,field:o,value:E},R)},[c,o,t,i,b]);return f.useEffect(()=>{g(R=>{var k,E;return p.parsed!==R.parsed&&((k=p.parsed)==null?void 0:k.getTime())!==((E=R.parsed)==null?void 0:E.getTime())?p:R})},[p]),Ot(()=>{l&&d.current.focus()},[l]),x.jsx(VV,O({as:y.slots.baseInput,inputRef:d,fullWidth:!0,className:m.root,type:u?"datetime-local":"date",value:h.formatted,onChange:v},a,s==null?void 0:s.root,{slotProps:{htmlInput:O({max:u?"9999-12-31T23:59":"9999-12-31"},(M=(S=s==null?void 0:s.root)==null?void 0:S.slotProps)==null?void 0:M.htmlInput)}}))}const GI=e=>x.jsx(WV,O({},e));function _I({value:e,columnType:t,rowId:n,field:o}){if(!(e instanceof Date))throw new Error([`MUI X: \`${t}\` column type only accepts \`Date\` objects as values.`,"Use `valueGetter` to transform the value into a `Date` object.",`Row ID: ${n}, field: "${o}".`].join(` 321 `))}const qV=(e,t,n,o)=>{if(!e)return"";const r=Zu(o,t);return _I({value:e,columnType:"date",rowId:r,field:n.field}),e.toLocaleDateString()},KV=(e,t,n,o)=>{if(!e)return"";const r=Zu(o,t);return _I({value:e,columnType:"dateTime",rowId:r,field:n.field}),e.toLocaleString()},YV=O({},mr,{type:"date",sortComparator:aI,valueFormatter:qV,filterOperators:jI(),renderEditCell:GI,pastedValueParser:e=>new Date(e)}),XV=O({},mr,{type:"dateTime",sortComparator:aI,valueFormatter:KV,filterOperators:jI(!0),renderEditCell:GI,pastedValueParser:e=>new Date(e)}),Hl=e=>e==null?null:Number(e),QV=e=>e==null||Number.isNaN(e)||e===""?null:t=>Hl(t)===Hl(e),ZV=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Hl(t)===e.value,InputComponent:Go,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Hl(t)!==e.value,InputComponent:Go,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Hl(t)>e.value,InputComponent:Go,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Hl(t)>=e.value,InputComponent:Go,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Hl(t)<e.value,InputComponent:Go,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Hl(t)<=e.value,InputComponent:Go,InputComponentProps:{type:"number"}},{value:"isEmpty",getApplyFilterFn:()=>e=>e==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>e=>e!=null,requiresFilterValue:!1},{value:"isAnyOf",getApplyFilterFn:e=>!Array.isArray(e.value)||e.value.length===0?null:t=>t!=null&&e.value.includes(Number(t)),InputComponent:uI,InputComponentProps:{type:"number"}}],JV=O({},mr,{type:"number",align:"right",headerAlign:"right",sortComparator:sI,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>M_(e)?e.toLocaleString():e||"",filterOperators:ZV(),getApplyQuickFilterFn:QV});function xa(e){return(e==null?void 0:e.type)==="singleSelect"}function qi(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(O({field:e.field},t)):e.valueOptions}function lp(e,t,n){if(t===void 0)return;const o=t.find(r=>{const l=n(r);return String(l)===String(e)});return n(o)}const eU=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function tU(e){return!!e.key}function nU(e){var C,T;const t=Se(),{id:n,value:o,field:r,row:l,colDef:i,hasFocus:s,error:a,onValueChange:u,initialOpen:c=t.editMode===Gr.Cell,slotProps:d}=e,p=be(e,eU),h=Ue(),g=f.useRef(null),y=f.useRef(null),[w,m]=f.useState(c),v=(((C=t.slotProps)==null?void 0:C.baseSelect)||{}).native??!1;if(Ot(()=>{var A;s&&((A=y.current)==null||A.focus())},[s]),!xa(i))return null;const S=qi(i,{id:n,row:l});if(!S)return null;const M=i.getOptionValue,R=i.getOptionLabel,k=async A=>{if(!xa(i)||!S)return;m(!1);const L=A.target,F=lp(L.value,S,M);u&&await u(A,F),await h.current.setEditCellValue({id:n,field:r,value:F},A)},E=(A,L)=>{if(t.editMode===Gr.Row){m(!1);return}if(L==="backdropClick"||A.key==="Escape"){const F=h.current.getCellParams(n,r);h.current.publishEvent("cellEditStop",O({},F,{reason:A.key==="Escape"?cr.escapeKeyDown:cr.cellFocusOut}))}},P=A=>{tU(A)&&A.key==="Enter"||m(!0)};return!S||!i?null:x.jsx(t.slots.baseSelect,O({ref:g,value:o,onChange:k,open:w,onOpen:P,onClose:E,error:a,native:v,fullWidth:!0,slotProps:{htmlInput:{ref:y}}},p,d==null?void 0:d.root,(T=t.slotProps)==null?void 0:T.baseSelect,{children:S.map(A=>{var F;const L=M(A);return f.createElement(t.slots.baseSelectOption,O({},((F=t.slotProps)==null?void 0:F.baseSelectOption)||{},{native:v,key:L,value:L}),R(A))})}))}const oU=e=>x.jsx(nU,O({},e)),rU=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],lU=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:o,isSelectNative:r,baseSelectOptionProps:l})=>["",...qi(e)||[]].map(s=>{const a=o(s);let u=n(s);return u===""&&(u=" "),f.createElement(t,O({},l,{native:r,key:a,value:a}),u)});function jw(e){var R,k,E,P,C;const{item:t,applyValue:n,type:o,apiRef:r,focusElementRef:l,tabIndex:i,clearButton:s,headerFilterMenu:a,slotProps:u}=e,c=be(e,rU),d=t.value??"",p=at(),h=at(),g=Se(),y=((k=(R=g.slotProps)==null?void 0:R.baseSelect)==null?void 0:k.native)??!1;let w=null;if(t.field){const T=r.current.getColumn(t.field);xa(T)&&(w=T)}const m=w==null?void 0:w.getOptionValue,b=w==null?void 0:w.getOptionLabel,v=f.useMemo(()=>qi(w),[w]),S=f.useCallback(T=>{let A=T.target.value;A=lp(A,v,m),n(O({},t,{value:A}))},[v,m,n,t]);if(!xa(w))return null;const M=(u==null?void 0:u.root.label)??r.current.getLocaleText("filterPanelInputLabel");return x.jsxs(f.Fragment,{children:[x.jsx(g.slots.baseSelect,O({fullWidth:!0,id:p,label:M,labelId:h,value:d,onChange:S,slotProps:{htmlInput:O({tabIndex:i,ref:l,type:o||"text",placeholder:(u==null?void 0:u.root.placeholder)??r.current.getLocaleText("filterPanelInputPlaceholder")},(E=u==null?void 0:u.root.slotProps)==null?void 0:E.htmlInput)},native:y},(P=g.slotProps)==null?void 0:P.baseSelect,c,u==null?void 0:u.root,{children:lU({column:w,OptionComponent:g.slots.baseSelectOption,getOptionLabel:b,getOptionValue:m,isSelectNative:y,baseSelectOptionProps:(C=g.slotProps)==null?void 0:C.baseSelectOption})})),a,s]})}const iU=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function sU(e){const{item:t,applyValue:n,type:o,apiRef:r,focusElementRef:l,slotProps:i}=e,s=be(e,iU),a=at(),u=Se();let c=null;if(t.field){const b=r.current.getColumn(t.field);xa(b)&&(c=b)}const d=c==null?void 0:c.getOptionValue,p=c==null?void 0:c.getOptionLabel,h=f.useCallback((b,v)=>d(b)===d(v),[d]),g=f.useMemo(()=>qi(c)||[],[c]),y=f.useMemo(()=>Array.isArray(t.value)?t.value.reduce((b,v)=>{const S=g.find(M=>d(M)===v);return S!=null&&b.push(S),b},[]):[],[d,t.value,g]),w=f.useCallback((b,v)=>{n(O({},t,{value:v.map(d)}))},[n,t,d]),m=u.slots.baseAutocomplete;return x.jsx(m,O({multiple:!0,options:g,isOptionEqualToValue:h,id:a,value:y,onChange:w,getOptionLabel:p,label:r.current.getLocaleText("filterPanelInputLabel"),placeholder:r.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:o||"text",inputRef:l}}},s,i==null?void 0:i.root))}const ms=e=>e==null||!jv(e)?e:e.value,aU=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>ms(t)===ms(e.value),InputComponent:jw},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>ms(t)!==ms(e.value),InputComponent:jw},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(ms);return n=>t.includes(ms(n))},InputComponent:sU}],cU=e=>typeof e[0]=="object",uU=e=>jv(e)?e.value:e,dU=e=>jv(e)?e.label:String(e),fU=O({},mr,{type:"singleSelect",getOptionLabel:dU,getOptionValue:uU,valueFormatter(e,t,n,o){const r=Zu(o,t);if(!xa(n))return"";const l=qi(n,{id:r,row:t});if(e==null)return"";if(!l)return e;if(!cU(l))return n.getOptionLabel(e);const i=l.find(s=>n.getOptionValue(s)===e);return i?n.getOptionLabel(i):""},renderEditCell:oU,filterOperators:aU(),pastedValueParser:(e,t,n)=>{const o=n,r=qi(o)||[],l=o.getOptionValue;if(r.find(s=>l(s)===e))return e}}),pU="string",hU=()=>({string:mr,number:JV,date:YV,dateTime:XV,boolean:MI,singleSelect:fU,[Ph]:nV,custom:mr}),Zv=Xt(e=>e.headerFiltering),gU=Pe(Zv,e=>(e==null?void 0:e.enabled)??!1),mU=Pe(Zv,e=>e.editing),bU=Pe(Zv,e=>e.menuOpen),Lh=Xt(e=>e.columnGrouping),VI=bt(Lh,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),UI=bt(Lh,e=>(e==null?void 0:e.lookup)??{}),yU=bt(Lh,e=>(e==null?void 0:e.headerStructure)??[]),Ju=Pe(Lh,e=>(e==null?void 0:e.maxDepth)??0),WI=["maxWidth","minWidth","width","flex"],jg=hU();function vU({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const o=new Set(n.map(i=>i.field)),r={all:{},frozenFields:[],freeze:i=>{const s=r.all[i];s&&s.frozen!==!0&&(r.all[i].frozen=!0,r.frozenFields.push(i))}};function l(){if(r.frozenFields.length===o.size)return;const i={min:{},max:{}};let s=e,a=t,u=0;r.frozenFields.forEach(c=>{s-=r.all[c].computedWidth,a-=r.all[c].flex});for(let c=0;c<n.length;c+=1){const d=n[c];if(r.all[d.field]&&r.all[d.field].frozen===!0)continue;let h=s/a*d.flex;h<d.minWidth?(u+=d.minWidth-h,h=d.minWidth,i.min[d.field]=!0):h>d.maxWidth&&(u+=d.maxWidth-h,h=d.maxWidth,i.max[d.field]=!0),r.all[d.field]={frozen:!1,computedWidth:h,flex:d.flex}}u<0?Object.keys(i.max).forEach(c=>{r.freeze(c)}):u>0?Object.keys(i.min).forEach(c=>{r.freeze(c)}):n.forEach(({field:c})=>{r.freeze(c)}),l()}return l(),r.all}const $b=(e,t)=>{const n={};let o=0,r=0;const l=[];e.orderedFields.forEach(a=>{let u=e.lookup[a],c=0,d=!1;e.columnVisibilityModel[a]!==!1&&(u.flex&&u.flex>0?(o+=u.flex,d=!0):c=Eo(u.width||mr.width,u.minWidth||mr.minWidth,u.maxWidth||mr.maxWidth),r+=c),u.computedWidth!==c&&(u=O({},u,{computedWidth:c})),d&&l.push(u),n[a]=u});const i=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),s=Math.max(i-r,0);if(o>0&&i>0){const a=vU({initialFreeSpace:s,totalFlexUnits:o,flexColumns:l});Object.keys(a).forEach(u=>{n[u].computedWidth=a[u].computedWidth})}return O({},e,{lookup:n})},CU=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:o={}}=t,r=Object.keys(o);if(r.length===0&&n.length===0)return e;const l={},i=[];for(let c=0;c<n.length;c+=1){const d=n[c];e.lookup[d]&&(l[d]=!0,i.push(d))}const s=i.length===0?e.orderedFields:[...i,...e.orderedFields.filter(c=>!l[c])],a=O({},e.lookup);for(let c=0;c<r.length;c+=1){const d=r[c],p=O({},a[d],{hasBeenResized:!0});Object.entries(o[d]).forEach(([h,g])=>{p[h]=g===-1?1/0:g}),a[d]=p}return O({},e,{orderedFields:s,lookup:a})};function Gg(e){let t=jg[pU];return e&&jg[e]&&(t=jg[e]),t}const Ms=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:o=fr(e),keepOnlyColumnsToUpsert:r=!1,updateInitialVisibilityModel:l=!1})=>{var d,p;const i=!e.current.state.columns;let s;if(i)s={orderedFields:[],lookup:{},columnVisibilityModel:o,initialColumnVisibilityModel:o};else{const h=gr(e);s={orderedFields:r?[]:[...h.orderedFields],lookup:O({},h.lookup),columnVisibilityModel:o,initialColumnVisibilityModel:l?o:h.initialColumnVisibilityModel}}let a={};r&&!i&&(a=Object.keys(s.lookup).reduce((h,g)=>O({},h,{[g]:!1}),{})),t.forEach(h=>{const{field:g}=h;a[g]=!0;let y=s.lookup[g];y==null?(y=O({},Gg(h.type),{field:g,hasBeenResized:!1}),s.orderedFields.push(g)):r&&s.orderedFields.push(g),y&&y.type!==h.type&&(y=O({},Gg(h.type),{field:g}));let w=y.hasBeenResized;WI.forEach(m=>{h[m]!==void 0&&(w=!0,h[m]===-1&&(h[m]=1/0))}),s.lookup[g]=ha(y,O({},Gg(h.type),h,{hasBeenResized:w}))}),r&&!i&&Object.keys(s.lookup).forEach(h=>{a[h]||delete s.lookup[h]});const u=e.current.unstable_applyPipeProcessors("hydrateColumns",s),c=CU(u,n);return $b(c,((p=(d=e.current).getRootDimensions)==null?void 0:p.call(d))??void 0)};function SU({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:o,visibleRows:r}){let l=e;for(let i=n;i<o;i+=1)if(r[i]){const a=r[i].id,u=t.current.unstable_getCellColSpanInfo(a,e);u&&u.spannedByColSpan&&(l=u.leftVisibleCellIndex)}return l}function Jv(e,t){if(t.listView)return 0;const n=La(e),o=Ju(e),r=gU(e),l=Math.floor(t.columnHeaderHeight*n),i=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),s=r?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return l+i*o+s}const Gw=1,wU=1.5,xU=e=>{const{scrollDirection:t,classes:n}=e,o={root:["scrollArea",`scrollArea--${t}`]};return ve(o,tt,n)},MU=ht("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${z["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${z["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${z["scrollArea--left"]}`]:{left:0},[`&.${z["scrollArea--right"]}`]:{right:0}})),EU=Pe(Tt,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function TU(e){const t=Ue(),[n,o]=f.useState(!1);return Re(t,"columnHeaderDragStart",()=>o(!0)),Re(t,"columnHeaderDragEnd",()=>o(!1)),n?x.jsx(PU,O({},e)):null}function PU(e){const{scrollDirection:t,scrollPosition:n}=e,o=f.useRef(null),r=Ue(),l=Wo(),i=le(r,La),s=le(r,Mh),a=le(r,EU,t),u=()=>{const S=Tt(r);if(t==="left")return n.current.left>0;if(t==="right"){const M=s-S.viewportInnerSize.width;return n.current.left<M}return!1},[c,d]=f.useState(u),p=Se(),h=O({},p,{scrollDirection:t}),g=xU(h),y=Jv(r,p),w=Math.floor(p.columnHeaderHeight*i),m={height:w,top:y-w};t==="left"?m.left=a:t==="right"&&(m.right=a);const b=()=>{d(u)},v=Xe(S=>{let M;if(S.preventDefault(),t==="left")M=S.clientX-o.current.getBoundingClientRect().right;else if(t==="right")M=Math.max(1,S.clientX-o.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");M=(M-Gw)*wU+Gw,l.start(0,()=>{r.current.scroll({left:n.current.left+M,top:n.current.top})})});return Re(r,"scrollPositionChange",b),c?x.jsx(MU,{ref:o,className:g.root,ownerState:h,onDragOver:v,style:m}):null}const _w=Sl(TU),qI=f.createContext(void 0);function Ro(){const e=f.useContext(qI);if(e===void 0)throw new Error(["MUI X: Could not find the Data Grid private context.","It looks like you rendered your component outside of a DataGrid, DataGridPro or DataGridPremium parent component.","This can also happen if you are bundling multiple versions of the Data Grid."].join(` 322 `));return e}const IU=()=>{},OU=(e,t)=>{const n=f.useRef(!1);Ot(()=>n.current||!e?IU:(n.current=!0,t()),[n.current||e])};function Je(e,t,n){const o=f.useRef(!0);Ot(()=>{o.current=!1,e.current.register(n,t)},[e,n,t]),o.current&&e.current.register(n,t)}function Mn(e,t){const n=f.useRef(null);if(n.current)return n.current;const o=e.current.getLogger(t);return n.current=o,o}const KI=(e,t,n,o,r)=>{const l=Mn(e,"useNativeEventListener");xt(e,"rootMount",()=>{const i=t();if(!(!i||!n))return l.debug(`Binding native ${n} event`),i.addEventListener(n,o,r),()=>{l.debug(`Clearing native ${n} event`),i.removeEventListener(n,o,r)}})},ed=e=>{const t=f.useRef(!0);t.current&&(t.current=!1,e())},ii=(e,t)=>Qu(e),eC=(e,t)=>le(e,Qu),RU=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",kU=RU.includes("firefox"),td=Xt(e=>e.rowsMeta),zh=Xt(e=>e.virtualization);Pe(zh,e=>e.enabled);const YI=Pe(zh,e=>e.enabledForColumns),AU=Pe(zh,e=>e.enabledForRows),nd=Pe(zh,e=>e.renderContext),$U=bt(e=>e.current.state.virtualization.renderContext.firstColumnIndex,e=>e.current.state.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),Db={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},DU=(e,t)=>{const{disableVirtualization:n,autoHeight:o}=t;return O({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!o,renderContext:Db}})};function LU(e,t){const n=l=>{e.current.setState(i=>O({},i,{virtualization:O({},i.virtualization,{enabled:l,enabledForColumns:l,enabledForRows:l&&!t.autoHeight})}))};Je(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:l=>{e.current.setState(i=>O({},i,{virtualization:O({},i.virtualization,{enabledForColumns:l})}))}},"public"),f.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const tC=Xt(e=>e.rowSpanning),XI=Pe(tC,e=>e.hiddenCells),zU=Pe(tC,e=>e.spannedCells),FU=Pe(tC,e=>e.hiddenCellOriginMap),Ma=Xt(e=>e.listViewColumn),BU=Pe(io,nd,Qu,Kt,(e,t,n,o)=>{if(!e)return!1;const r=n.rowIdToIndexMap.get(e.id),l=o.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(s=>s.field===e.field);return!(r!==void 0&&l!==-1&&r>=t.firstRowIndex&&r<=t.lastRowIndex)}),QI=bt(BU,Kt,Qu,io,(e,t,n,o)=>{if(!e)return null;const r=n.rowIdToIndexMap.get(o.id);if(r===void 0)return null;const l=t.findIndex(i=>i.field===o.field);return l===-1?null:O({},o,{rowIndex:r,columnIndex:l})});function js(e,t){return Math.round(e*10**t)/10**t}const ip=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),_g=50;var un=function(e){return e[e.NONE=0]="NONE",e[e.UP=1]="UP",e[e.DOWN=2]="DOWN",e[e.LEFT=3]="LEFT",e[e.RIGHT=4]="RIGHT",e}(un||{});const Vw={top:0,left:0},HU=Object.freeze(new Map),NU=(e,t,n,o,r)=>({direction:un.NONE,buffer:JI(e,un.NONE,t,n,o,r)}),jU=()=>{var J;const e=Ro(),t=Se(),{listView:n}=t,o=le(e,()=>n?[Ma(e)]:Kt(e)),r=le(e,AU)&&!ip,l=le(e,YI)&&!ip,i=le(e,Fa),s=Ha(e),a=n?op:s,u=i.bottom.length>0,[c,d]=f.useState(HU),p=_n(),h=le(e,Yu),g=eC(e),y=e.current.mainElementRef,w=e.current.virtualScrollerRef,m=e.current.virtualScrollbarVerticalRef,b=e.current.virtualScrollbarHorizontalRef,v=le(e,z_),S=f.useRef(!1),M=le(e,Bv),R=le(e,G6),k=le(e,Mh),E=le(e,GU),P=le(e,tI),C=le(e,eI),T=f.useRef(null),A=f.useCallback(Y=>{if(y.current=Y,!Y)return;const ee=Y.getBoundingClientRect();let pe={width:js(ee.width,1),height:js(ee.height,1)};if((!T.current||pe.width!==T.current.width&&pe.height!==T.current.height)&&(T.current=pe,e.current.publishEvent("resize",pe)),typeof ResizeObserver>"u")return;const me=new ResizeObserver(ye=>{const te=ye[0];if(!te)return;const Ce={width:js(te.contentRect.width,1),height:js(te.contentRect.height,1)};Ce.width===pe.width&&Ce.height===pe.height||(e.current.publishEvent("resize",Ce),pe=Ce)});if(me.observe(Y),VP>=19)return()=>{y.current=null,me.disconnect()}},[e,y]),L=f.useRef(((J=t.initialState)==null?void 0:J.scroll)??Vw),F=f.useRef(!1),D=f.useRef(Vw),I=f.useRef(Db),$=le(e,nd),B=le(e,QI),G=Wo(),j=f.useRef(void 0),N=vr(()=>NU(p,t.rowBufferPx,t.columnBufferPx,M*15,_g*6)).current,H=f.useCallback(Y=>{if(UU(Y,e.current.state.virtualization.renderContext))return;const ee=Y.firstRowIndex!==I.current.firstRowIndex||Y.lastRowIndex!==I.current.lastRowIndex;e.current.setState(me=>O({},me,{virtualization:O({},me.virtualization,{renderContext:Y})})),Tt(e).isReady&&ee&&(I.current=Y,e.current.publishEvent("renderedRowsIntervalChange",Y)),D.current=L.current},[e]),_=Xe(()=>{const Y=w.current;if(!Y)return;const ee=Tt(e),pe=Math.ceil(ee.minimumSize.height-ee.viewportOuterSize.height),me=Math.ceil(ee.minimumSize.width-ee.viewportInnerSize.width),ye={top:Eo(Y.scrollTop,0,pe),left:p?Eo(Y.scrollLeft,-me,0):Eo(Y.scrollLeft,0,me)},te=ye.left-L.current.left,Ce=ye.top-L.current.top,ge=te!==0||Ce!==0;L.current=ye;const Te=ge?WU(te,Ce):un.NONE,Q=Math.abs(L.current.top-D.current.top),ke=Math.abs(L.current.left-D.current.left),Ie=Q>=M||ke>=_g,Le=N.direction!==Te;if(!(Ie||Le))return $;if(Le)switch(Te){case un.NONE:case un.LEFT:case un.RIGHT:j.current=void 0;break;default:j.current=$;break}N.direction=Te,N.buffer=JI(p,Te,t.rowBufferPx,t.columnBufferPx,M*15,_g*6);const qe=Uw(e,t,r,l),De=Ww(qe,L.current,N);return mp.flushSync(()=>{H(De)}),G.start(1e3,_),De}),U=()=>{if(!Tt(e).isReady&&(r||l))return;const Y=Uw(e,t,r,l),ee=Ww(Y,L.current,N);j.current=void 0,H(ee)},K=Xe(()=>{if(F.current){F.current=!1;return}const Y=_();e.current.publishEvent("scrollPositionChange",{top:L.current.top,left:L.current.left,renderContext:Y})}),X=Xe(Y=>{e.current.publishEvent("virtualScrollerWheel",{},Y)}),oe=Xe(Y=>{e.current.publishEvent("virtualScrollerTouchMove",{},Y)}),ue=(Y={})=>{var qe;if(!Y.rows&&!g.range)return[];const ee=jn(e);let pe=$;Y.renderContext&&(pe=Y.renderContext,pe.firstColumnIndex=$.firstColumnIndex,pe.lastColumnIndex=$.lastColumnIndex);const me=!u&&Y.position===void 0||u&&Y.position==="bottom",ye=Y.position!==void 0;let te;switch(Y.position){case"top":te=0;break;case"bottom":te=i.top.length+g.rows.length;break;case void 0:te=i.top.length;break}const Ce=Y.rows??g.rows,ge=pe.firstRowIndex,Te=Math.min(pe.lastRowIndex,Ce.length),Q=Y.rows?Rw(0,Y.rows.length):Rw(ge,Te);let ke=-1;!ye&&B&&(B.rowIndex<ge&&(Q.unshift(B.rowIndex),ke=B.rowIndex),B.rowIndex>Te&&(Q.push(B.rowIndex),ke=B.rowIndex));const Ie=[],Le=(qe=t.slotProps)==null?void 0:qe.row,Ne=yi(e);return Q.forEach(De=>{var Ln,lr,Ye;const{id:Ee,model:Oe}=Ce[De];if(!ee[Ee])return;const ce=(((Ln=g==null?void 0:g.range)==null?void 0:Ln.firstRowIndex)||0)+te+De;if(v){const jt=a.left.length,Ae=o.length-a.right.length;e.current.calculateColSpan({rowId:Ee,minFirstColumn:jt,maxLastColumn:Ae,columns:o}),a.left.length>0&&e.current.calculateColSpan({rowId:Ee,minFirstColumn:0,maxLastColumn:a.left.length,columns:o}),a.right.length>0&&e.current.calculateColSpan({rowId:Ee,minFirstColumn:o.length-a.right.length,maxLastColumn:o.length,columns:o})}const Ve=e.current.rowHasAutoHeight(Ee)?"auto":e.current.unstable_getRowHeight(Ee),et=h.has(Ee)&&e.current.isRowSelectable(Ee);let we=!1;Y.position===void 0&&(we=De===0);let xe=!1;const ze=De===Ce.length-1;if(me)if(ye)xe=ze;else{const jt=g.rows.length-1;De===jt&&(xe=!0)}let Ze=pe;j.current&&De>=j.current.firstRowIndex&&De<j.current.lastRowIndex&&(Ze=j.current);const Qt=De===ke,bn=(B==null?void 0:B.rowIndex)===ce,rr=ZI(Ne,Ze,a.left.length),Jt=ze&&Y.position==="top",$n=Ze.firstColumnIndex,Dn=Ze.lastColumnIndex;if(Ie.push(x.jsx(t.slots.row,O({row:Oe,rowId:Ee,index:ce,selected:et,offsetLeft:rr,columnsTotalWidth:k,rowHeight:Ve,pinnedColumns:a,visibleColumns:o,firstColumnIndex:$n,lastColumnIndex:Dn,focusedColumnIndex:bn?B.columnIndex:void 0,isFirstVisible:we,isLastVisible:xe,isNotVisible:Qt,showBottomBorder:Jt,scrollbarWidth:P,gridHasFiller:C},Le),Ee)),Qt)return;const Yn=c.get(Ee);Yn&&Ie.push(Yn),Y.position===void 0&&ze&&Ie.push((Ye=(lr=e.current).getInfiniteLoadingTriggerElement)==null?void 0:Ye.call(lr,{lastRowId:Ee}))}),Ie},V=f.useMemo(()=>({overflowX:!E||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[E,t.autoHeight,n]),W=f.useMemo(()=>{const Y={width:E?k:"auto",flexBasis:R,flexShrink:0};return Y.flexBasis===0&&(Y.flexBasis=SI),Y},[k,R,E]),ne=f.useCallback(Y=>{Y&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:k,contentHeight:R})},[e,k,R]);return Ot(()=>{var Y,ee;S.current&&((ee=(Y=e.current).updateRenderContext)==null||ee.call(Y))},[e,l,r]),Ot(()=>{n&&(w.current.scrollLeft=0)},[n,w]),OU($!==Db,()=>{var Y;if(e.current.publishEvent("scrollPositionChange",{top:L.current.top,left:L.current.left,renderContext:$}),S.current=!0,(Y=t.initialState)!=null&&Y.scroll&&w.current){const ee=w.current,{top:pe,left:me}=t.initialState.scroll,ye={top:!(pe>0),left:!(me>0)};if(!ye.left&&k&&(ee.scrollLeft=me,F.current=!0,ye.left=!0),!ye.top&&R&&(ee.scrollTop=pe,F.current=!0,ye.top=!0),!ye.top||!ye.left){const te=e.current.subscribeEvent("virtualScrollerContentSizeChange",Ce=>{!ye.left&&Ce.columnsTotalWidth&&(ee.scrollLeft=me,F.current=!0,ye.left=!0),!ye.top&&Ce.contentHeight&&(ee.scrollTop=pe,F.current=!0,ye.top=!0),ye.left&&ye.top&&te()});return te}}}),e.current.register("private",{updateRenderContext:U}),xt(e,"sortedRowsSet",U),xt(e,"paginationModelChange",U),xt(e,"columnsChange",U),{renderContext:$,setPanels:d,getRows:ue,getContainerProps:()=>({ref:A}),getScrollerProps:()=>({ref:w,onScroll:K,onWheel:X,onTouchMove:oe,style:V,role:"presentation",tabIndex:kU?-1:void 0}),getContentProps:()=>({style:W,role:"presentation",ref:ne}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:m,scrollPosition:L}),getScrollbarHorizontalProps:()=>({ref:b,scrollPosition:L}),getScrollAreaProps:()=>({scrollPosition:L})}};function GU(e){return e.current.state.dimensions.viewportOuterSize.width>0&&e.current.state.dimensions.columnsTotalWidth>e.current.state.dimensions.viewportOuterSize.width}function Uw(e,t,n,o){const r=Tt(e),l=ii(e),i=t.listView?[Ma(e)]:Kt(e),s=FU(e),a=e.current.state.rows.dataRowIds.at(-1),u=i.at(-1);return{enabledForRows:n,enabledForColumns:o,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:r.leftPinnedWidth,columnsTotalWidth:r.columnsTotalWidth,viewportInnerWidth:r.viewportInnerSize.width,viewportInnerHeight:r.viewportInnerSize.height,lastRowHeight:a!==void 0?e.current.unstable_getRowHeight(a):0,lastColumnWidth:(u==null?void 0:u.computedWidth)??0,rowsMeta:td(e),columnPositions:yi(e),rows:l.rows,range:l.range,pinnedColumns:Ha(e),visibleColumns:i,hiddenCellsOriginMap:s,listView:t.listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function Ww(e,t,n){const o={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:r,left:l}=t,i=Math.abs(l)+e.leftPinnedWidth;if(e.enabledForRows){let a=Math.min(qw(e,r,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const u=e.hiddenCellsOriginMap[a];if(u){const d=Math.min(...Object.values(u));a=Math.min(a,d)}const c=e.autoHeight?a+e.rows.length:qw(e,r+e.viewportInnerHeight);o.firstRowIndex=a,o.lastRowIndex=c}if(e.listView)return O({},o,{lastColumnIndex:1});if(e.enabledForColumns){let a=0,u=e.columnPositions.length,c=!1;const[d,p]=Lb({firstIndex:o.firstRowIndex,lastIndex:o.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight});if(!e.virtualizeColumnsWithAutoRowHeight)for(let h=d;h<p&&!c;h+=1){const g=e.rows[h];c=e.apiRef.current.rowHasAutoHeight(g.id)}(!c||e.virtualizeColumnsWithAutoRowHeight)&&(a=fi(i,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),u=fi(i+e.viewportInnerWidth,e.columnPositions)),o.firstColumnIndex=a,o.lastColumnIndex=u}return _U(e,o,n)}function qw(e,t,n){var i,s;const o=e.apiRef.current.getLastMeasuredRowIndex();let r=o===1/0;(i=e.range)!=null&&i.lastRowIndex&&!r&&(r=o>=e.range.lastRowIndex);const l=Eo(o-(((s=e.range)==null?void 0:s.firstRowIndex)||0),0,e.rowsMeta.positions.length);return r||e.rowsMeta.positions[l]>=t?fi(t,e.rowsMeta.positions,n):VU(t,e.rowsMeta.positions,l,n)}function _U(e,t,n){const[o,r]=Lb({firstIndex:t.firstRowIndex,lastIndex:t.lastRowIndex,minFirstIndex:0,maxLastIndex:e.rows.length,bufferBefore:n.buffer.rowBefore,bufferAfter:n.buffer.rowAfter,positions:e.rowsMeta.positions,lastSize:e.lastRowHeight}),[l,i]=Lb({firstIndex:t.firstColumnIndex,lastIndex:t.lastColumnIndex,minFirstIndex:e.pinnedColumns.left.length,maxLastIndex:e.visibleColumns.length-e.pinnedColumns.right.length,bufferBefore:n.buffer.columnBefore,bufferAfter:n.buffer.columnAfter,positions:e.columnPositions,lastSize:e.lastColumnWidth}),s=SU({firstColumnToRender:l,apiRef:e.apiRef,firstRowToRender:o,lastRowToRender:r,visibleRows:e.rows});return{firstRowIndex:o,lastRowIndex:r,firstColumnIndex:s,lastColumnIndex:i}}function fi(e,t,n=void 0,o=0,r=t.length){if(t.length<=0)return-1;if(o>=r)return o;const l=o+Math.floor((r-o)/2),i=t[l];let s;if(n!=null&&n.atStart){const a=(l===t.length-1?n.lastPosition:t[l+1])-i;s=e-a<i}else s=e<=i;return s?fi(e,t,n,o,l):fi(e,t,n,l+1,r)}function VU(e,t,n,o=void 0){let r=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=r,r*=2;return fi(e,t,o,Math.floor(n/2),Math.min(n,t.length))}function Lb({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:o,minFirstIndex:r,maxLastIndex:l,positions:i,lastSize:s}){const a=i[e]-n,u=i[t]+o,c=fi(a,i,{atStart:!0,lastPosition:i[i.length-1]+s}),d=fi(u,i);return[Eo(c,r,l),Eo(d,r,l)]}function UU(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function ZI(e,t,n){const o=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(o)}function WU(e,t){return e===0&&t===0?un.NONE:Math.abs(t)>=Math.abs(e)?t>0?un.DOWN:un.UP:e>0?un.RIGHT:un.LEFT}function JI(e,t,n,o,r,l){if(e)switch(t){case un.LEFT:t=un.RIGHT;break;case un.RIGHT:t=un.LEFT;break}switch(t){case un.NONE:return{rowAfter:n,rowBefore:n,columnAfter:o,columnBefore:o};case un.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:l};case un.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:l,columnBefore:0};case un.UP:return{rowAfter:0,rowBefore:r,columnAfter:0,columnBefore:0};case un.DOWN:return{rowAfter:r,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const qU=ht("div",{name:"MuiDataGrid",slot:"OverlayWrapper",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"&&e!=="right"})(({overlayType:e,loadingOverlayVariant:t,right:n})=>t!=="skeleton"?{position:"sticky",top:"var(--DataGrid-headersTotalHeight)",left:0,right:`${n}px`,width:0,height:0,zIndex:e==="loadingOverlay"?5:4}:{}),KU=ht("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),YU=e=>{const{classes:t}=e;return ve({root:["overlayWrapper"],inner:["overlayWrapperInner"]},tt,t)};function XU(e){const t=Ue(),n=Se(),o=le(t,Tt);let r=Math.max(o.viewportOuterSize.height-o.topContainerHeight-o.bottomContainerHeight-(o.hasScrollX?o.scrollbarSize:0),0);r===0&&(r=SI);const l=YU(O({},e,{classes:n.classes}));return x.jsx(qU,O({className:l.root},e,{right:o.columnsTotalWidth-o.viewportOuterSize.width,children:x.jsx(KU,O({className:l.inner,style:{height:r,width:o.viewportOuterSize.width}},e))}))}const nC=Xt(e=>e.pivoting),Ki=Pe(nC,e=>e==null?void 0:e.active),QU=new Map,eO=Pe(nC,e=>(e==null?void 0:e.initialColumns)||QU);Pe(nC,e=>e==null?void 0:e.panelOpen);const ZU=()=>{var m,b;const e=Ue(),t=Se(),n=le(e,Ku),o=le(e,Wv),r=le(e,lI),l=le(e,Kt),i=n===0&&r===0,s=le(e,d_),a=le(e,Ki),u=!s&&i,c=!s&&n>0&&o===0,d=!s&&l.length===0,p=u&&a;let h=null,g=null;u&&(h="noRowsOverlay"),d&&(h="noColumnsOverlay"),p&&(h="emptyPivotOverlay"),c&&(h="noResultsOverlay"),s&&(h="loadingOverlay",g=((b=(m=t.slotProps)==null?void 0:m.loadingOverlay)==null?void 0:b[i?"noRowsVariant":"variant"])??(i?"skeleton":"linear-progress"));const y={overlayType:h,loadingOverlayVariant:g};return{getOverlay:()=>{var M,R;if(!h)return null;const v=(M=t.slots)==null?void 0:M[h],S=(R=t.slotProps)==null?void 0:R[h];return x.jsx(XU,O({},y,{children:x.jsx(v,O({},S))}))},overlaysProps:y}},cf=Xt(e=>e.columnMenu);function JU(){var w;const e=Ro(),t=Se(),n=le(e,Kt),o=le(e,xV),r=le(e,SV),l=le(e,$I),i=le(e,()=>Xv(e)===null),s=le(e,AV),a=le(e,kV),u=le(e,rp),c=le(e,Ju),d=le(e,cf),p=le(e,fr),h=le(e,yU),g=!(s===null&&l===null&&i),y=e.current.columnHeadersContainerRef;return x.jsx(t.slots.columnHeaders,O({ref:y,visibleColumns:n,filterColumnLookup:o,sortColumnLookup:r,columnHeaderTabIndexState:l,columnGroupHeaderTabIndexState:s,columnHeaderFocus:a,columnGroupHeaderFocus:u,headerGroupingMaxDepth:c,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g},(w=t.slotProps)==null?void 0:w.columnHeaders))}const e9=Sl(JU),t9=ht("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),n9=ht("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:o,overlayType:r}=e,l=o==="skeleton"||r==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],l&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),o9=He((e,t)=>{var i;const{ownerState:n}=e,o=Se(),l=Eh().hooks.useGridAriaAttributes();return x.jsxs(n9,O({ownerState:n,className:e.className,tabIndex:-1},l,(i=o.slotProps)==null?void 0:i.main,{ref:t,children:[x.jsx(t9,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),r9=()=>ve({root:["topContainer"]},tt,{}),l9=ht("div")({position:"sticky",zIndex:40,top:0});function i9(e){const t=r9();return x.jsx(l9,O({},e,{className:de(t.root,z["container--top"]),role:"presentation"}))}const s9=(e,t)=>{const{classes:n}=e;return ve({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},tt,n)},a9=ht("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),c9=He(function(t,n){var s;const o=Se(),r=!o.autoHeight&&((s=t.style)==null?void 0:s.minHeight)==="auto",l=s9(o,r),i={classes:o.classes,overflowedContent:r};return x.jsx(a9,O({},t,{ownerState:i,className:de(l.root,t.className),ref:n}))}),u9=ht("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),tO=ht("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:Me.cell.background.pinned}),d9=ht(tO)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),f9=ht(tO)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),p9=ht("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function h9({rowsLength:e}){const t=Ue(),{viewportOuterSize:n,minimumSize:o,hasScrollX:r,hasScrollY:l,scrollbarSize:i,leftPinnedWidth:s,rightPinnedWidth:a}=le(t,Tt),u=r?i:0,c=n.height-o.height>0;return u===0&&!c?null:x.jsxs(u9,{className:z.filler,role:"presentation",style:{height:u,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[s>0&&x.jsx(d9,{className:z["filler--pinnedLeft"],style:{width:s}}),x.jsx(p9,{}),a>0&&x.jsx(f9,{className:z["filler--pinnedRight"],style:{width:a+(l?i:0)}})]})}const g9=Sl(h9),m9=["className"],b9=e=>{const{classes:t}=e;return ve({root:["virtualScrollerRenderZone"]},tt,t)},y9=ht("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),v9=He(function(t,n){const{className:o}=t,r=be(t,m9),l=Ue(),i=Se(),s=b9(i),a=le(l,()=>{const u=nd(l);return td(l).positions[u.firstRowIndex]??0});return x.jsx(y9,O({className:de(s.root,o),ownerState:i,style:{transform:`translate3d(0, ${a}px, 0)`}},r,{ref:n}))}),C9={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},Cn=Xt(e=>e.editRows),nO=Pe(Cn,(e,{rowId:t,editMode:n})=>n===Gr.Row&&!!e[t]),S9=Pe(Cn,(e,{rowId:t,field:n})=>{var o;return((o=e[t])==null?void 0:o[n])??null}),Yi=Xt(e=>e.preferencePanel),w9=Pe(Yi,(e,t)=>!!(e.open&&e.labelId===t));var eo=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(eo||{});function x9(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class M9{constructor({ttl:t=3e5,getKey:n=x9}){this.cache=void 0,this.ttl=void 0,this.getKey=void 0,this.cache={},this.ttl=t,this.getKey=n}set(t,n){const o=this.getKey(t),r=Date.now()+this.ttl;this.cache[o]={value:n,expiry:r}}get(t){const n=this.getKey(t),o=this.cache[n];if(o){if(Date.now()>o.expiry){delete this.cache[n];return}return o.value}}clear(){this.cache={}}}class E9 extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridGetRowsError",this.params=t.params,this.cause=t.cause}}class T9 extends Error{constructor(t){super(t.message),this.params=void 0,this.cause=void 0,this.name="GridUpdateRowError",this.params=t.params,this.cause=t.cause}}const P9=(e,t)=>{const{classes:n}=e,o={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return ve(o,tt,n)},oO=ht("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),I9=ht(oO)({width:"var(--size)",height:"calc(var(--DataGrid-hasScrollY) * (100% - var(--DataGrid-topContainerHeight) - var(--DataGrid-bottomContainerHeight) - var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize)))",overflowY:"auto",overflowX:"hidden",outline:0,"& > div":{width:"var(--size)"},top:"var(--DataGrid-topContainerHeight)",right:"0px"}),O9=ht(oO)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),Kw=He(function(t,n){const o=Ro(),r=Se(),l=f.useRef(!1),i=f.useRef(0),s=f.useRef(null),a=f.useRef(null),u=P9(r,t.position),c=le(o,Tt),d=t.position==="vertical"?"height":"width",p=t.position==="vertical"?"scrollTop":"scrollLeft",h=t.position==="vertical"?"top":"left",g=t.position==="vertical"?c.hasScrollX:c.hasScrollY,y=c.minimumSize[d]+(g?c.scrollbarSize:0),m=(t.position==="vertical"?c.viewportInnerSize.height:c.viewportOuterSize.width)*(y/c.viewportOuterSize[d]),b=Xe(()=>{const M=s.current,R=t.scrollPosition.current;if(!M||R[h]===i.current)return;if(i.current=R[h],l.current){l.current=!1;return}l.current=!0;const k=R[h]/y;M[p]=k*m}),v=Xe(()=>{const M=o.current.virtualScrollerRef.current,R=s.current;if(!R)return;if(l.current){l.current=!1;return}l.current=!0;const k=R[p]/m;M[p]=k*y});Cv(()=>{const M=o.current.virtualScrollerRef.current,R=s.current,k={passive:!0};return M.addEventListener("scroll",b,k),R.addEventListener("scroll",v,k),()=>{M.removeEventListener("scroll",b,k),R.removeEventListener("scroll",v,k)}}),f.useEffect(()=>{a.current.style.setProperty(d,`${m}px`)},[m,d]);const S=t.position==="vertical"?I9:O9;return x.jsx(S,{ref:vt(n,s),className:u.root,style:t.position==="vertical"&&r.listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:M=>{M.target.blur()},children:x.jsx("div",{ref:a,className:u.content})})}),R9=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:o,loadingOverlayVariant:r,overlayType:l}=e;return ve({root:["main",o&&"main--hasPinnedRight",(r==="skeleton"||l==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},tt,t)},k9=ht("div",{name:"MuiDataGrid",slot:"VirtualScroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScroller,n.hasScrollX&&t["virtualScroller--hasScrollX"]]}})({position:"relative",height:"100%",flexGrow:1,overflow:"scroll",scrollbarWidth:"none",display:"flex",flexDirection:"column","&::-webkit-scrollbar":{display:"none"},"@media print":{overflow:"hidden"},zIndex:0}),A9=e=>e.current.state.dimensions.rightPinnedWidth>0;function $9(e){const t=Ue(),n=Se(),o=le(t,V6),r=le(t,_6),l=le(t,A9),i=le(t,K6),{getOverlay:s,overlaysProps:a}=ZU(),u=O({classes:n.classes,hasScrollX:r,hasPinnedRight:l},a),c=R9(u),d=jU(),{getContainerProps:p,getScrollerProps:h,getContentProps:g,getRenderZoneProps:y,getScrollbarVerticalProps:w,getScrollbarHorizontalProps:m,getRows:b,getScrollAreaProps:v}=d,S=b();return x.jsxs(o9,O({className:c.root},p(),{ownerState:u,children:[x.jsx(_w,O({scrollDirection:"left"},v())),x.jsx(_w,O({scrollDirection:"right"},v())),x.jsxs(k9,O({className:c.scroller},h(),{ownerState:u,children:[x.jsxs(i9,{children:[!n.listView&&x.jsx(e9,{}),x.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:d})]}),s(),x.jsx(c9,O({},g(),{children:x.jsxs(v9,O({},y(),{children:[S,x.jsx(n.slots.detailPanels,{virtualScroller:d})]}))})),i&&x.jsx(g9,{rowsLength:S.length}),x.jsx(n.slots.bottomContainer,{children:x.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:d})})]})),r&&!n.listView&&x.jsx(Kw,O({position:"horizontal"},m())),o&&x.jsx(Kw,O({position:"vertical"},w())),e.children]}))}function D9(){var t;const e=Se();return e.hideFooter?null:x.jsx(e.slots.footer,O({},(t=e.slotProps)==null?void 0:t.footer))}let Vg;function L9(){return Vg===void 0&&document.createElement("div").focus({get preventScroll(){return Vg=!0,!1}}),Vg}function z9({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const o=O({},e);return Object.keys(n).forEach(r=>{const l=r;n[l]!==void 0&&(o[l]=n[l])}),o}const F9=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},B9=e=>e===xI||F9(e)!==null,rO=(e,t)=>{if(e)if(t){if(e===nt.LEFT)return"right";if(e===nt.RIGHT)return"left"}else{if(e===nt.LEFT)return"left";if(e===nt.RIGHT)return"right"}};function Fh(e,t,n,o){const r=rO(n,t);return!r||o===void 0||(e[r]=o),e}const H9=["column","row","rowId","rowNode","align","children","colIndex","width","className","style","colSpan","disableDragEvents","isNotVisible","pinnedOffset","pinnedPosition","showRightBorder","showLeftBorder","onClick","onDoubleClick","onMouseDown","onMouseUp","onMouseOver","onKeyDown","onKeyUp","onDragEnter","onDragOver"],N9=["changeReason","unstable_updateValueOnRender"];nt.LEFT+"",Bl.LEFT,nt.RIGHT+"",Bl.RIGHT,nt.NONE+"",nt.VIRTUAL+"";const j9=e=>{const{align:t,showLeftBorder:n,showRightBorder:o,pinnedPosition:r,isEditable:l,isSelected:i,isSelectionMode:s,classes:a}=e,u={root:["cell",`cell--text${re(t)}`,i&&"selected",l&&"cell--editable",n&&"cell--withLeftBorder",o&&"cell--withRightBorder",r===nt.LEFT&&"cell--pinnedLeft",r===nt.RIGHT&&"cell--pinnedRight",s&&!l&&"cell--selectionMode"]};return ve(u,tt,a)},G9=He(function(t,n){var ce,Ve,et;const{column:o,row:r,rowId:l,rowNode:i,align:s,colIndex:a,width:u,className:c,style:d,colSpan:p,disableDragEvents:h,isNotVisible:g,pinnedOffset:y,pinnedPosition:w,showRightBorder:m,showLeftBorder:b,onClick:v,onDoubleClick:S,onMouseDown:M,onMouseUp:R,onMouseOver:k,onKeyDown:E,onKeyUp:P,onDragEnter:C,onDragOver:T}=t,A=be(t,H9),L=Ro(),F=Se(),D=_n(),I=o.field,$=le(L,S9,{rowId:l,field:I}),G=Eh().hooks.useCellAggregationResult(l,I),j=$?yt.Edit:yt.View,N=L.current.getCellParamsForRow(l,I,r,{colDef:o,cellMode:j,rowNode:i,tabIndex:le(L,()=>{const we=Xv(L);return we&&we.field===I&&we.id===l?0:-1}),hasFocus:le(L,()=>{const we=io(L);return(we==null?void 0:we.id)===l&&we.field===I})});N.api=L.current,G&&(N.value=G.value,N.formattedValue=o.valueFormatter?o.valueFormatter(N.value,r,o,L):N.value);const H=le(L,()=>L.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:l,field:I})),_=le(L,XI),U=le(L,zU),{hasFocus:K,isEditable:X=!1,value:oe}=N,ue=o.type==="actions"&&((ce=o.getActions)==null?void 0:ce.call(o,L.current.getRowParams(l)).some(we=>!we.props.disabled)),V=(j==="view"||!X)&&!ue?N.tabIndex:-1,{classes:W,getCellClassName:ne}=F,Y=[le(L,()=>L.current.unstable_applyPipeProcessors("cellClassName",[],{id:l,field:I}).filter(Boolean).join(" "))];o.cellClassName&&Y.push(typeof o.cellClassName=="function"?o.cellClassName(N):o.cellClassName),o.display==="flex"&&Y.push(z["cell--flex"]),ne&&Y.push(ne(N));const ee=N.formattedValue??oe,pe=f.useRef(null),me=vt(n,pe),ye=f.useRef(null),te=F.cellSelection??!1,Ce={align:s,showLeftBorder:b,showRightBorder:m,isEditable:X,classes:F.classes,pinnedPosition:w,isSelected:H,isSelectionMode:te},ge=j9(Ce),Te=f.useCallback(we=>xe=>{const ze=L.current.getCellParams(l,I||"");L.current.publishEvent(we,ze,xe),R&&R(xe)},[L,I,R,l]),Q=f.useCallback(we=>xe=>{const ze=L.current.getCellParams(l,I||"");L.current.publishEvent(we,ze,xe),M&&M(xe)},[L,I,M,l]),ke=f.useCallback((we,xe)=>ze=>{if(!L.current.getRow(l))return;const Ze=L.current.getCellParams(l,I||"");L.current.publishEvent(we,Ze,ze),xe&&xe(ze)},[L,I,l]),Ie=((Ve=_[l])==null?void 0:Ve[I])??!1,Le=((et=U[l])==null?void 0:et[I])??1,Ne=f.useMemo(()=>{if(g)return{padding:0,opacity:0,width:0,height:0,border:0};const we=Fh(O({"--width":`${u}px`},d),D,w,y),xe=w===nt.LEFT,ze=w===nt.RIGHT;return Le>1&&(we.height=`calc(var(--height) * ${Le})`,we.zIndex=10,(xe||ze)&&(we.zIndex=40)),we},[u,g,d,y,w,D,Le]);if(f.useEffect(()=>{if(!K||j===yt.Edit)return;const we=Yt(L.current.rootElementRef.current);if(pe.current&&!pe.current.contains(we.activeElement)){const xe=pe.current.querySelector('[tabindex="0"]'),ze=ye.current||xe||pe.current;if(L9())ze.focus({preventScroll:!0});else{const Ze=L.current.getScrollPosition();ze.focus(),L.current.scroll(Ze)}}},[K,j,L]),Ie)return x.jsx("div",{"data-colindex":a,role:"presentation",style:O({width:"var(--width)"},Ne)});let qe=A.onFocus,De,Ee;if($===null&&o.renderCell&&(De=o.renderCell(N)),$!==null&&o.renderEditCell){const we=L.current.getRowWithUpdatedValues(l,o.field),xe=be($,N9),ze=o.valueFormatter?o.valueFormatter($.value,we,o,L):N.formattedValue,Ze=O({},N,{row:we,formattedValue:ze},xe);De=o.renderEditCell(Ze),Y.push(z["cell--editing"]),Y.push(W==null?void 0:W["cell--editing"])}if(De===void 0){const we=ee==null?void 0:ee.toString();De=we,Ee=we}f.isValidElement(De)&&ue&&(De=f.cloneElement(De,{focusElementRef:ye}));const Oe=h?null:{onDragEnter:ke("cellDragEnter",C),onDragOver:ke("cellDragOver",T)};return x.jsx("div",O({className:de(ge.root,Y,c),role:"gridcell","data-field":I,"data-colindex":a,"aria-colindex":a+1,"aria-colspan":p,"aria-rowspan":Le,style:Ne,title:Ee,tabIndex:V,onClick:ke("cellClick",v),onDoubleClick:ke("cellDoubleClick",S),onMouseOver:ke("cellMouseOver",k),onMouseDown:Q("cellMouseDown"),onMouseUp:Te("cellMouseUp"),onKeyDown:ke("cellKeyDown",E),onKeyUp:ke("cellKeyUp",P)},Oe,A,{onFocus:qe,ref:me,children:De}))}),_9=Sl(G9),V9=["field","type","align","width","height","empty","style","className"],Yw="1.3em",U9="1.2em",Xw=[40,80],W9={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},q9=e=>{const{align:t,classes:n,empty:o}=e,r={root:["cell","cellSkeleton",`cell--text${t?re(t):"Left"}`,o&&"cellEmpty"]};return ve(r,tt,n)},K9=I_(12345);function Y9(e){const{field:t,type:n,align:o,width:r,height:l,empty:i=!1,style:s,className:a}=e,u=be(e,V9),c=Se(),d={classes:c.classes,align:o,empty:i},p=q9(d),h=f.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:Yw,height:Yw};const[y,w]=n?W9[n]??Xw:Xw;return{variant:"text",width:`${Math.round(K9(y,w))}%`,height:U9}},[n]);return x.jsx("div",O({"data-field":t,className:de(p.root,a),style:O({height:l,maxWidth:r,minWidth:r},s)},u,{children:!i&&x.jsx(c.slots.baseSkeleton,O({},h))}))}const X9=Sl(Y9),Q9=10,Fd=-5,bs=1,Qw={width:3,rx:1.5,x:10.5},Z9="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",J9=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0),e8=Z("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${z.autoHeight}`]:t.autoHeight},{[`&.${z.autosizing}`]:t.autosizing},{[`&.${z["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${z["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${z["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${z["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${z["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${z.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${z.actionsCell}`]:t.actionsCell},{[`& .${z.booleanCell}`]:t.booleanCell},{[`& .${z.cell}`]:t.cell},{[`& .${z["cell--editable"]}`]:t["cell--editable"]},{[`& .${z["cell--editing"]}`]:t["cell--editing"]},{[`& .${z["cell--flex"]}`]:t["cell--flex"]},{[`& .${z["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${z["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${z["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${z["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${z["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${z["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${z["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${z["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${z["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${z["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${z["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${z["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${z.cellCheckbox}`]:t.cellCheckbox},{[`& .${z.cellEmpty}`]:t.cellEmpty},{[`& .${z.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${z.cellSkeleton}`]:t.cellSkeleton},{[`& .${z.checkboxInput}`]:t.checkboxInput},{[`& .${z.columnHeader}`]:t.columnHeader},{[`& .${z["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${z["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${z["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${z["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${z["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${z["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${z["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${z["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${z["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${z["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${z["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${z["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${z["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${z["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${z["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${z["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${z["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${z["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${z.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${z.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${z.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${z.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${z.columnSeparator}`]:t.columnSeparator},{[`& .${z["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${z["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${z["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${z["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${z["container--bottom"]}`]:t["container--bottom"]},{[`& .${z["container--top"]}`]:t["container--top"]},{[`& .${z.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${z["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${z.editBooleanCell}`]:t.editBooleanCell},{[`& .${z.filterIcon}`]:t.filterIcon},{[`& .${z["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${z["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${z["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${z.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${z.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${z.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${z.headerFilterRow}`]:t.headerFilterRow},{[`& .${z.iconSeparator}`]:t.iconSeparator},{[`& .${z.menuIcon}`]:t.menuIcon},{[`& .${z.menuIconButton}`]:t.menuIconButton},{[`& .${z.menuList}`]:t.menuList},{[`& .${z.menuOpen}`]:t.menuOpen},{[`& .${z.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${z.pinnedRows}`]:t.pinnedRows},{[`& .${z["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${z["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${z.row}`]:t.row},{[`& .${z["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${z["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${z["row--dragging"]}`]:t["row--dragging"]},{[`& .${z["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${z["row--editable"]}`]:t["row--editable"]},{[`& .${z["row--editing"]}`]:t["row--editing"]},{[`& .${z["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${z["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${z.rowReorderCell}`]:t.rowReorderCell},{[`& .${z["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${z.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${z.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${z.rowSkeleton}`]:t.rowSkeleton},{[`& .${z.scrollbar}`]:t.scrollbar},{[`& .${z["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${z["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${z.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${z["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${z["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${z["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${z["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${z.sortIcon}`]:t.sortIcon},{[`& .${z.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${z.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${z.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${z.withBorderColor}`]:t.withBorderColor}]})(()=>{const e=Ro(),t=le(e,J9),n=Me.colors.background.base,o=Me.header.background.base,r=Me.cell.background.pinned,l=t8(Me.colors.interactive.hover),i=Me.colors.interactive.hoverOpacity,s=Me.colors.interactive.selected,a=Me.colors.interactive.selectedOpacity,u=s,c=`calc(${a} + ${i})`,d=$l(n,l,i),p=$l(n,s,a),h=$l(n,u,c),g=$l(r,l,i),y=$l(r,s,a),w=$l(r,u,c),m=k=>({[`& .${z["cell--pinnedLeft"]}, & .${z["cell--pinnedRight"]}`]:{backgroundColor:k,"&.Mui-selected":{backgroundColor:$l(k,p,a),"&:hover":{backgroundColor:$l(k,h,c)}}}}),b=m(g),v=m(y),S=m(w),M={backgroundColor:p,"&:hover":{backgroundColor:h,"@media (hover: none)":{backgroundColor:p}}};return{"--unstable_DataGrid-radius":Me.radius.base,"--unstable_DataGrid-headWeight":Me.typography.fontWeight.medium,"--DataGrid-rowBorderColor":Me.colors.border.base,"--DataGrid-cellOffsetMultiplier":2,"--DataGrid-width":"0px","--DataGrid-hasScrollX":"0","--DataGrid-hasScrollY":"0","--DataGrid-scrollbarSize":"10px","--DataGrid-rowWidth":"0px","--DataGrid-columnsTotalWidth":"0px","--DataGrid-leftPinnedWidth":"0px","--DataGrid-rightPinnedWidth":"0px","--DataGrid-headerHeight":"0px","--DataGrid-headersTotalHeight":"0px","--DataGrid-topContainerHeight":"0px","--DataGrid-bottomContainerHeight":"0px",flex:1,boxSizing:"border-box",position:"relative",borderWidth:"1px",borderStyle:"solid",borderColor:Me.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:Me.colors.background.base,color:Me.colors.foreground.base,font:Me.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${z.main} > *:first-child${Z9}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${z.autoHeight}`]:{height:"auto"},[`&.${z.autosizing}`]:{[`& .${z.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${z.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${z.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${z.groupingCriteriaCell}`]:{width:"unset"},[`& .${z.treeDataGroupingCell}`]:{width:"unset"}},[`&.${z.withSidePanel}`]:{flexDirection:"row"},[`& .${z.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${z.columnHeader}, & .${z.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${z.columnHeader}:focus-within, & .${z.cell}:focus-within`]:{outline:`solid ${lO(Me.colors.interactive.focus,.5)} ${bs}px`,outlineOffset:bs*-1},[`& .${z.columnHeader}:focus, & .${z.cell}:focus`]:{outline:`solid ${Me.colors.interactive.focus} ${bs}px`,outlineOffset:bs*-1},[`& .${z.columnHeader}:focus, 323 & .${z["columnHeader--withLeftBorder"]}, 324 & .${z["columnHeader--withRightBorder"]}, 325 & .${z["columnHeader--siblingFocused"]}, 326 & .${z["virtualScroller--hasScrollX"]} .${z["columnHeader--lastUnpinned"]}, 327 & .${z["virtualScroller--hasScrollX"]} .${z["columnHeader--last"]} 328 `]:{[`& .${z.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${z["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${z["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${z["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${z["root--noToolbar"]} [aria-rowindex="1"] .${z["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${z.columnHeaderCheckbox}, & .${z.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${z.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:o},[`& .${z["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${z["virtualScroller--hasScrollX"]} .${z["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${z["pivotPanelField--sorted"]} .${z.iconButtonContainer}, 329 & .${z["columnHeader--sorted"]} .${z.iconButtonContainer}, 330 & .${z["columnHeader--filtered"]} .${z.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${z.pivotPanelField}:not(.${z["pivotPanelField--sorted"]}) .${z.sortButton}, 331 & .${z.columnHeader}:not(.${z["columnHeader--sorted"]}) .${z.sortButton}`]:{opacity:0,transition:Me.transition(["opacity"],{duration:Me.transitions.duration.short})},[`& .${z.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:Me.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${z.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${z["columnHeader--filledGroup"]} .${z.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${z.sortIcon}, & .${z.filterIcon}`]:{fontSize:"inherit"},[`& .${z["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${z["columnHeader--alignCenter"]} .${z.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${z["columnHeader--alignRight"]} .${z.columnHeaderDraggableContainer}, & .${z["columnHeader--alignRight"]} .${z.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${z["columnHeader--alignCenter"]} .${z.menuIcon}`]:{marginLeft:"auto"},[`& .${z["columnHeader--alignRight"]} .${z.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${z["columnHeader--moving"]}`]:{backgroundColor:d},[`& .${z["columnHeader--pinnedLeft"]}, & .${z["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:Me.header.background.base},[`& .${z.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:Q9,color:Me.colors.border.base},[`& .${z.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:o},"@media (hover: hover)":{[`& .${z.columnHeader}:hover`]:{[`& .${z.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${z.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${z.columnHeader}:not(.${z["columnHeader--sorted"]}):hover .${z.sortButton}, 332 & .${z.pivotPanelField}:not(.${z["pivotPanelField--sorted"]}):hover .${z.sortButton}, 333 & .${z.pivotPanelField}:not(.${z["pivotPanelField--sorted"]}) .${z.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${z.columnHeader} .${z.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${z.columnHeader}:focus, 334 & .${z["columnHeader--siblingFocused"]}`]:{[`.${z["columnSeparator--resizable"]}`]:{color:Me.colors.foreground.accent}},[`& .${z.pivotPanelField}:not(.${z["pivotPanelField--sorted"]}) .${z.sortButton}`]:{opacity:.5}},[`& .${z["columnSeparator--sideLeft"]}`]:{left:Fd},[`& .${z["columnSeparator--sideRight"]}`]:{right:Fd},[`& .${z["columnHeader--withRightBorder"]} .${z["columnSeparator--sideLeft"]}`]:{left:Fd-.5},[`& .${z["columnHeader--withRightBorder"]} .${z["columnSeparator--sideRight"]}`]:{right:Fd-.5},[`& .${z["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${z["columnSeparator--resizing"]}`]:{color:Me.colors.foreground.accent},"@media (hover: none)":{[`& .${z.iconSeparator} rect`]:Qw},"@media (hover: hover)":{"&:hover":{color:Me.colors.foreground.accent,[`& .${z.iconSeparator} rect`]:Qw}},"& svg":{pointerEvents:"none"}},[`& .${z.iconSeparator}`]:{color:"inherit",transition:Me.transition(["color","width"],{duration:Me.transitions.duration.short})},[`& .${z.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${z.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${z.headerFilterRow}`]:{[`& .${z.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${z["row--borderBottom"]} .${z.columnHeader}, 335 & .${z["row--borderBottom"]} .${z.filler}, 336 & .${z["row--borderBottom"]} .${z.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${z["row--borderBottom"]} .${z.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${z.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${z["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:d,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${z.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":M},[`& .${z["container--top"]}, & .${z["container--bottom"]}`]:{"[role=row]":{background:Me.colors.background.base}},[`& .${z.cell}`]:{flex:"0 0 auto",height:"var(--height)",width:"var(--width)",lineHeight:"calc(var(--height) - 1px)",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis","&.Mui-selected":M},[`& .${z["virtualScrollerContent--overflowed"]} .${z["row--lastVisible"]} .${z.cell}`]:{borderTopColor:"transparent"},[`& .${z.pinnedRows} .${z.row}, .${z.aggregationRowOverlayWrapper} .${z.row}`]:{backgroundColor:r,"&:hover":{backgroundColor:g}},[`& .${z["pinnedRows--top"]} :first-of-type`]:{[`& .${z.cell}, .${z.scrollbarFiller}`]:{borderTop:"none"}},[`&.${z["root--disableUserSelection"]} .${z.cell}`]:{userSelect:"none"},[`& .${z["row--dynamicHeight"]} > .${z.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${z.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${z.cell}.${z["cell--selectionMode"]}`]:{cursor:"default"},[`& .${z.cell}.${z["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:Me.shadows.base,backgroundColor:Me.colors.background.overlay,"&:focus-within":{outline:`${bs}px solid ${Me.colors.interactive.focus}`,outlineOffset:bs*-1}},[`& .${z["row--editing"]}`]:{boxShadow:Me.shadows.base},[`& .${z["row--editing"]} .${z.cell}`]:{boxShadow:"none",backgroundColor:Me.colors.background.overlay},[`& .${z.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${z.booleanCell}[data-value="true"]`]:{color:Me.colors.foreground.muted},[`& .${z.booleanCell}[data-value="false"]`]:{color:Me.colors.foreground.disabled},[`& .${z.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:Me.spacing(1)},[`& .${z.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:Me.colors.interactive.disabledOpacity},[`& .${z["rowReorderCell--draggable"]}`]:{cursor:"move",opacity:1},[`& .${z.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${z.withBorderColor}`]:{borderColor:Me.colors.border.base},[`& .${z["cell--withLeftBorder"]}, & .${z["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${z["cell--withRightBorder"]}, & .${z["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${z["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${z["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${z["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${z["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${z["cell--pinnedLeft"]}, & .${z["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:Me.cell.background.pinned,"&.Mui-selected":{backgroundColor:y}},[`& .${z.row}`]:{"&:hover":b,"&.Mui-selected":v,"&.Mui-selected:hover":S},[`& .${z.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${z.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${z.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${z.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${z["columnHeader--dragging"]}, & .${z["row--dragging"]}`]:{background:Me.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Me.colors.interactive.disabledOpacity},[`& .${z["row--dragging"]}`]:{background:Me.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:Me.colors.interactive.disabledOpacity,[`& .${z.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${z.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${z.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Me.spacing(2)},[`& .${z.treeDataGroupingCellLoadingContainer}, .${z.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${z.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${z.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:Me.spacing(2)},[`.${z.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${z["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${z["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${z["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:Me.cell.background.pinned,position:"sticky",right:0}},[`& .${z.filler}`]:{flex:"1 0 auto"},[`& .${z["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${z["main--hiddenContent"]}`]:{[`& .${z.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${z["scrollbar--vertical"]}, & .${z.pinnedRows}, & .${z.virtualScroller} > .${z.filler}`]:{display:"none"}}}});function lO(e,t){return`rgba(from ${e} r g b / ${t})`}function t8(e){return lO(e,1)}function $l(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const n8=()=>()=>{},o8=()=>!1,r8=()=>!0,l8=()=>QP.useSyncExternalStore(n8,o8,r8),iO=f.createContext(void 0);function oC(){const e=f.useContext(iO);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function i8({children:e}){const t=f.useRef(null),n=f.useRef(null),o=f.useRef(null),r=f.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:o}),[]);return x.jsx(iO.Provider,{value:r,children:e})}function s8(){var u;const e=Ue(),t=le(e,Xo),n=Se(),o=le(e,Yi),{columnsPanelTriggerRef:r,filterPanelTriggerRef:l,aiAssistantPanelTriggerRef:i}=oC(),s=e.current.unstable_applyPipeProcessors("preferencePanel",null,o.openedPanelValue??eo.filters);let a=null;switch(o.openedPanelValue){case eo.filters:a=l.current;break;case eo.columns:a=r.current;break;case eo.aiAssistant:a=i.current;break}return x.jsx(n.slots.panel,O({id:o.panelId,open:t.length>0&&o.open,"aria-labelledby":o.labelId,target:a,onClose:()=>e.current.hidePreferences()},(u=n.slotProps)==null?void 0:u.panel,{children:s}))}function a8(){var t;const e=Se();return x.jsxs(f.Fragment,{children:[x.jsx(s8,{}),e.showToolbar&&x.jsx(e.slots.toolbar,O({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const c8=["className","children","sidePanel"],u8=(e,t)=>{const{autoHeight:n,classes:o,showCellVerticalBorder:r}=e,l={root:["root",n&&"autoHeight",`root--density${re(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",r&&"withVerticalBorder"]};return ve(l,tt,o)},d8=He(function(t,n){const o=Se(),{className:r,children:l,sidePanel:i}=t,s=be(t,c8),a=Ro(),u=le(a,Hs),c=a.current.rootElementRef,d=f.useCallback(m=>{m!==null&&a.current.publishEvent("rootMount",m)},[a]),p=vt(c,n,d),h=o,g=u8(h,u),y=W_();return l8()?null:x.jsxs(e8,O({className:de(g.root,r,y.className,i&&z.withSidePanel),ownerState:h},s,{ref:p,children:[x.jsxs("div",{className:z.mainContent,role:"presentation",children:[x.jsx(a8,{}),x.jsx($9,{children:l}),x.jsx(D9,{})]}),i,y.tag]}))}),f8=Sl(d8),p8=["className"],h8=e=>{const{classes:t}=e;return ve({root:["footerContainer","withBorderColor"]},tt,t)},g8=ht("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),m8=He(function(t,n){const{className:o}=t,r=be(t,p8),l=Se(),i=h8(l);return x.jsx(g8,O({className:de(i.root,o),ownerState:l},r,{ref:n}))}),b8=["className"],y8=e=>{const{classes:t}=e;return ve({root:["overlay"]},tt,t)},v8=ht("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:Me.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:Me.colors.background.backdrop}),Bh=He(function(t,n){const{className:o}=t,r=be(t,b8),l=Se(),i=y8(l);return x.jsx(v8,O({className:de(i.root,o),ownerState:l},r,{ref:n}))});function Wr(e,t,n,o={}){return typeof t=="function"?t(n,o):t?(t.props.className&&(n.className=de(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=O({},n.style,t.props.style)),(t.props.sx||n.sx)&&(n.sx=C8(n.sx,t.props.sx)),f.cloneElement(t,n)):f.createElement(e,n)}function C8(e,t){return!e||!t?e||t:(Array.isArray(e)?e:[e]).concat(Array.isArray(t)?t:[t])}const sO=f.createContext(void 0);function S8(){const e=f.useContext(sO);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}const w8=["render","className"],x8=e=>{const{classes:t}=e;return ve({root:["toolbar"]},tt,t)},M8=ht("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:Me.spacing(.25),padding:Me.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${Me.colors.border.base}`}),E8=He(function(t,n){const{render:o,className:r}=t,l=be(t,w8),i=Se(),s=x8(i),[a,u]=f.useState(null),[c,d]=f.useState([]),p=f.useCallback((S,M)=>{d(R=>[...R,{id:S,ref:M}])},[]),h=f.useCallback(S=>{d(M=>M.filter(R=>R.id!==S)),a===S&&u(null)},[a]),g=f.useCallback((S,M,R=!0)=>{var P,C;let k=S;const E=c.length;for(let T=0;T<E;T+=1){if(k+=M,k>=E){if(!R)return-1;k=0}else if(k<0){if(!R)return-1;k=E-1}if(!((P=c[k].ref.current)!=null&&P.disabled)&&((C=c[k].ref.current)==null?void 0:C.ariaDisabled)!=="true")return k}return-1},[c]),y=f.useCallback(S=>{var k;if(!a)return;const M=c.findIndex(E=>E.id===a);let R=-1;if(S.key==="ArrowRight"?(S.preventDefault(),R=g(M,1)):S.key==="ArrowLeft"?(S.preventDefault(),R=g(M,-1)):S.key==="Home"?(S.preventDefault(),R=g(-1,1,!1)):S.key==="End"&&(S.preventDefault(),R=g(c.length,-1,!1)),R>=0&&R<c.length){const E=c[R];u(E.id),(k=E.ref.current)==null||k.focus()}},[c,a,g]),w=f.useCallback(S=>{a!==S&&u(S)},[a]),m=f.useCallback(S=>{var k;const M=c.findIndex(E=>E.id===S),R=g(M,1);if(R>=0&&R<c.length){const E=c[R];u(E.id),(k=E.ref.current)==null||k.focus()}},[c,g]),b=f.useMemo(()=>({focusableItemId:a,registerItem:p,unregisterItem:h,onItemKeyDown:y,onItemFocus:w,onItemDisabled:m}),[a,p,h,y,w,m]),v=Wr(M8,o,O({role:"toolbar","aria-orientation":"horizontal","aria-label":i.label||void 0,className:de(s.root,r)},l,{ref:n}));return f.useEffect(()=>{c.length>0&&u(c[0].id)},[c]),x.jsx(sO.Provider,{value:b,children:v})}),T8=["render","onKeyDown","onFocus","disabled","aria-disabled"],uf=He(function(t,n){var E;const{render:o,onKeyDown:r,onFocus:l,disabled:i,"aria-disabled":s}=t,a=be(t,T8),u=at(),c=Se(),d=f.useRef(null),p=vt(d,n),{focusableItemId:h,registerItem:g,unregisterItem:y,onItemKeyDown:w,onItemFocus:m,onItemDisabled:b}=S8(),v=P=>{w(P),r==null||r(P)},S=P=>{m(u),l==null||l(P)};f.useEffect(()=>(g(u,d),()=>y(u)),[]);const M=f.useRef(i);f.useEffect(()=>{M.current!==i&&i===!0&&b(u,i),M.current=i},[i,u,b]);const R=f.useRef(s);f.useEffect(()=>{R.current!==s&&s===!0&&b(u,!0),R.current=s},[s,u,b]);const k=Wr(c.slots.baseIconButton,o,O({},(E=c.slotProps)==null?void 0:E.baseIconButton,{tabIndex:h===u?0:-1},a,{disabled:i,"aria-disabled":s,onKeyDown:v,onFocus:S,ref:p}));return x.jsx(f.Fragment,{children:k})}),P8=e=>{const{classes:t,open:n}=e;return ve({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},tt,t)},I8=f.memo(e=>{var p,h;const{colDef:t,open:n,columnMenuId:o,columnMenuButtonId:r,iconButtonRef:l}=e,i=Ue(),s=Se(),a=O({},e,{classes:s.classes}),u=P8(a),c=f.useCallback(g=>{g.preventDefault(),g.stopPropagation(),i.current.toggleColumnMenu(t.field)},[i,t.field]),d=t.headerName??t.field;return x.jsx("div",{className:u.root,children:x.jsx(s.slots.baseTooltip,O({title:i.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(p=s.slotProps)==null?void 0:p.baseTooltip,{children:x.jsx(s.slots.baseIconButton,O({ref:l,tabIndex:-1,className:u.button,"aria-label":i.current.getLocaleText("columnMenuAriaLabel")(d),size:"small",onClick:c,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?o:void 0,id:r},(h=s.slotProps)==null?void 0:h.baseIconButton,{children:x.jsx(s.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function O8({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:o,field:r,open:l,target:i,onExited:s}){const a=Ue(),u=a.current.getColumn(r),c=Xe(d=>{d&&(d.stopPropagation(),i!=null&&i.contains(d.target))||a.current.hideColumnMenu()});return!i||!u?null:x.jsx(Th,{position:`bottom-${u.align==="right"?"start":"end"}`,open:l,target:i,onClose:c,onExited:s,children:x.jsx(n,O({colDef:u,hideMenu:c,open:l,id:e,labelledby:t},o))})}function R8(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function sp(e,t){return e.closest(`.${t}`)}function Ml(e){return e.replace(/["\\]/g,"\\$&")}function k8(e,t){return e.querySelector(`[role="columnheader"][data-field="${Ml(t)}"]`)}function aO(e){return`.${z.row}[data-id="${Ml(String(e))}"]`}function A8(e,t){return e.querySelector(aO(t))}function $8(e,{id:t,field:n}){const o=aO(t),r=`.${z.cell}[data-field="${Ml(n)}"]`,l=`${o} ${r}`;return e.querySelector(l)}function od(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function D8(e){return e.getAttribute("data-field")}function L8(e,t){return e.querySelector(`[data-field="${Ml(t)}"]`)}function z8(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function F8(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Ml(t)}-|"]`)??[])}function B8(e,t){var i;if(!sp(e,z.root))throw new Error("MUI X: The root element is not found.");const o=e.getAttribute("aria-colindex");if(!o)return[];const r=Number(o)-1,l=[];return(i=t.virtualScrollerRef)!=null&&i.current?(dO(t).forEach(s=>{const a=s.getAttribute("data-id");if(!a)return;let u=r;const c=t.unstable_getCellColSpanInfo(a,r);c&&c.spannedByColSpan&&(u=c.leftVisibleCellIndex);const d=s.querySelector(`[data-colindex="${u}"]`);d&&l.push(d)}),l):[]}function Zw(e,t){return e.rootElementRef.current.querySelector(`.${z[t]}`)}const cO=({api:e,colIndex:t,position:n,filterFn:o})=>{if(t===null)return[];const r=[];return dO(e).forEach(l=>{l.getAttribute("data-id")&&l.querySelectorAll(`.${z[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(s=>{const a=_a(s);a!==null&&o(a)&&r.push(s)})}),r};function H8(e,t,n){const o=_a(t);return cO({api:e,colIndex:o,position:n?"right":"left",filterFn:r=>n?r<o:r>o})}function N8(e,t,n){const o=_a(t);return cO({api:e,colIndex:o,position:n?"left":"right",filterFn:r=>n?r>o:r<o})}const uO=({api:e,colIndex:t,position:n,filterFn:o})=>{var l;if(!((l=e.columnHeadersContainerRef)!=null&&l.current))return[];if(t===null)return[];const r=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${z[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(i=>{const s=_a(i);s!==null&&o(s,i)&&r.push(i)}),r};function j8(e,t,n){const o=_a(t);return uO({api:e,position:n?"right":"left",colIndex:o,filterFn:r=>n?r<o:r>o})}function G8(e,t,n){const o=_a(t);return uO({api:e,position:n?"left":"right",colIndex:o,filterFn:(r,l)=>l.classList.contains(z["columnHeader--last"])?!1:n?r>o:r<o})}function _8(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Ml(t)}"][role="columnheader"]`)}function V8(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Ml(t)}"][role="gridcell"]`))}function dO(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${z.row}`)}function _a(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const U8=["className","aria-label"],W8=e=>{const{classes:t}=e;return ve({root:["columnHeaderTitle"]},tt,t)},q8=ht("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),K8=He(function(t,n){const{className:o}=t,r=be(t,U8),l=Se(),i=W8(l);return x.jsx(q8,O({className:de(i.root,o),ownerState:l},r,{ref:n}))});function Y8(e){var a;const{label:t,description:n}=e,o=Se(),r=f.useRef(null),[l,i]=f.useState(""),s=f.useCallback(()=>{if(!n&&(r!=null&&r.current)){const u=R8(r.current);i(u?t:"")}},[n,t]);return x.jsx(o.slots.baseTooltip,O({title:n||l},(a=o.slotProps)==null?void 0:a.baseTooltip,{children:x.jsx(K8,{onMouseOver:s,ref:r,children:t})}))}const X8=["resizable","resizing","height","side"];var rC=function(e){return e.Left="left",e.Right="right",e}(rC||{});const Q8=e=>{const{resizable:t,resizing:n,classes:o,side:r}=e,l={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",r&&`columnSeparator--side${re(r)}`],icon:["iconSeparator"]};return ve(l,tt,o)};function Z8(e){const{height:t,side:n=rC.Right}=e,o=be(e,X8),r=Se(),l=O({},e,{side:n,classes:r.classes}),i=Q8(l),s=f.useCallback(a=>{a.preventDefault(),a.stopPropagation()},[]);return x.jsx("div",O({className:i.root,style:{minHeight:t}},o,{onClick:s,children:x.jsx(r.slots.columnResizeIcon,{className:i.icon})}))}const J8=f.memo(Z8),e7=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],fO=He(function(t,n){const{classes:o,colIndex:r,height:l,isResizing:i,sortDirection:s,hasFocus:a,tabIndex:u,separatorSide:c,isDraggable:d,headerComponent:p,description:h,width:g,columnMenuIconButton:y=null,columnMenu:w=null,columnTitleIconButtons:m=null,headerClassName:b,label:v,resizable:S,draggableContainerProps:M,columnHeaderSeparatorProps:R,style:k}=t,E=be(t,e7),P=Ro(),C=Se(),T=f.useRef(null),A=vt(T,n);let L="none";return s!=null&&(L=s==="asc"?"ascending":"descending"),f.useLayoutEffect(()=>{var D;const F=P.current.state.columnMenu;if(a&&!F.open){const $=T.current.querySelector('[tabindex="0"]')||T.current;$==null||$.focus(),(D=P.current.columnHeadersContainerRef)!=null&&D.current&&(P.current.columnHeadersContainerRef.current.scrollLeft=0)}},[P,a]),x.jsxs("div",O({className:de(o.root,b),style:O({},k,{width:g}),role:"columnheader",tabIndex:u,"aria-colindex":r+1,"aria-sort":L},E,{ref:A,children:[x.jsxs("div",O({className:o.draggableContainer,draggable:d,role:"presentation"},M,{children:[x.jsxs("div",{className:o.titleContainer,role:"presentation",children:[x.jsx("div",{className:o.titleContainerContent,children:p!==void 0?p:x.jsx(Y8,{label:v,description:h,columnWidth:g})}),m]}),y]})),x.jsx(J8,O({resizable:!C.disableColumnResize&&!!S,resizing:i,height:l,side:c},R)),w]}))}),t7=e=>{const{colDef:t,classes:n,isDragging:o,sortDirection:r,showRightBorder:l,showLeftBorder:i,filterItemsCounter:s,pinnedPosition:a,isLastUnpinned:u,isSiblingFocused:c}=e,d=r!=null,p=s!=null&&s>0,h=t.type==="number",g={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",o&&"columnHeader--moving",d&&"columnHeader--sorted",p&&"columnHeader--filtered",h&&"columnHeader--numeric","withBorderColor",l&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder",a===nt.LEFT&&"columnHeader--pinnedLeft",a===nt.RIGHT&&"columnHeader--pinnedRight",u&&"columnHeader--lastUnpinned",c&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ve(g,tt,n)};function n7(e){var ue,V,W;const{colDef:t,columnMenuOpen:n,colIndex:o,headerHeight:r,isResizing:l,isLast:i,sortDirection:s,sortIndex:a,filterItemsCounter:u,hasFocus:c,tabIndex:d,disableReorder:p,separatorSide:h,showLeftBorder:g,showRightBorder:y,pinnedPosition:w,pinnedOffset:m}=e,b=Ro(),v=Se(),S=_n(),M=f.useRef(null),R=at(),k=at(),E=f.useRef(null),[P,C]=f.useState(n),T=f.useMemo(()=>!v.disableColumnReorder&&!p&&!t.disableReorder,[v.disableColumnReorder,p,t.disableReorder]);let A;t.renderHeader&&(A=t.renderHeader(b.current.getColumnHeaderParams(t.field)));const L=O({},e,{classes:v.classes,showRightBorder:y,showLeftBorder:g}),F=t7(L),D=f.useCallback(ne=>J=>{od(J)||b.current.publishEvent(ne,b.current.getColumnHeaderParams(t.field),J)},[b,t.field]),I=f.useMemo(()=>({onClick:D("columnHeaderClick"),onContextMenu:D("columnHeaderContextMenu"),onDoubleClick:D("columnHeaderDoubleClick"),onMouseOver:D("columnHeaderOver"),onMouseOut:D("columnHeaderOut"),onMouseEnter:D("columnHeaderEnter"),onMouseLeave:D("columnHeaderLeave"),onKeyDown:D("columnHeaderKeyDown"),onFocus:D("columnHeaderFocus"),onBlur:D("columnHeaderBlur")}),[D]),$=f.useMemo(()=>T?{onDragStart:D("columnHeaderDragStart"),onDragEnter:D("columnHeaderDragEnter"),onDragOver:D("columnHeaderDragOver"),onDragEnd:D("columnHeaderDragEnd")}:{},[T,D]),B=f.useMemo(()=>({onMouseDown:D("columnSeparatorMouseDown"),onDoubleClick:D("columnSeparatorDoubleClick")}),[D]);f.useEffect(()=>{P||C(n)},[P,n]);const G=f.useCallback(()=>{C(!1)},[]),j=!v.disableColumnMenu&&!t.disableColumnMenu&&x.jsx(I8,{colDef:t,columnMenuId:R,columnMenuButtonId:k,open:P,iconButtonRef:E}),N=x.jsx(O8,{columnMenuId:R,columnMenuButtonId:k,field:t.field,open:n,target:E.current,ContentComponent:v.slots.columnMenu,contentComponentProps:(ue=v.slotProps)==null?void 0:ue.columnMenu,onExited:G}),H=t.sortingOrder??v.sortingOrder,_=(t.sortable||s!=null)&&!t.hideSortIcons&&!v.disableColumnSorting,U=x.jsxs(f.Fragment,{children:[!v.disableColumnFilter&&x.jsx(v.slots.columnHeaderFilterIconButton,O({field:t.field,counter:u},(V=v.slotProps)==null?void 0:V.columnHeaderFilterIconButton)),_&&x.jsx(v.slots.columnHeaderSortIcon,O({field:t.field,direction:s,index:a,sortingOrder:H,disabled:!t.sortable},(W=v.slotProps)==null?void 0:W.columnHeaderSortIcon))]});f.useLayoutEffect(()=>{var J;const ne=b.current.state.columnMenu;if(c&&!ne.open){const ee=M.current.querySelector('[tabindex="0"]')||M.current;ee==null||ee.focus(),(J=b.current.columnHeadersContainerRef)!=null&&J.current&&(b.current.columnHeadersContainerRef.current.scrollLeft=0)}},[b,c]);const K=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,X=t.headerName??t.field,oe=f.useMemo(()=>Fh(O({},e.style),S,w,m),[w,m,e.style,S]);return x.jsx(fO,O({ref:M,classes:F,columnMenuOpen:n,colIndex:o,height:r,isResizing:l,sortDirection:s,hasFocus:c,tabIndex:d,separatorSide:h,isDraggable:T,headerComponent:A,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:j,columnTitleIconButtons:U,headerClassName:de(K,i&&z["columnHeader--last"]),label:X,resizable:!v.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:N,draggableContainerProps:$,columnHeaderSeparatorProps:B,style:oe},I))}const o7=Sl(n7),r7=["className"],l7=e=>{const{classes:t}=e;return ve({root:["iconButtonContainer"]},tt,t)},i7=ht("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),pO=He(function(t,n){const{className:o}=t,r=be(t,r7),l=Se(),i=l7(l);return x.jsx(i7,O({className:de(i.root,o),ownerState:l},r,{ref:n}))}),s7=["sortingOrder"],a7=f.memo(function(t){const{sortingOrder:n}=t,o=be(t,s7),r=Se(),[l]=n,i=l==="asc"?r.slots.columnSortedAscendingIcon:r.slots.columnSortedDescendingIcon;return i?x.jsx(i,O({},o)):null}),c7=["direction","index","sortingOrder","disabled","className"],u7=e=>{const{classes:t}=e;return ve({root:["sortButton"],icon:["sortIcon"]},tt,t)},d7=ht(wl,{name:"MuiDataGrid",slot:"SortButton"})({transition:Me.transition(["opacity"],{duration:Me.transitions.duration.short,easing:Me.transitions.easing.easeInOut})});function f7(e,t,n,o){let r;const l={};return t==="asc"?r=e.columnSortedAscendingIcon:t==="desc"?r=e.columnSortedDescendingIcon:(r=a7,l.sortingOrder=o),r?x.jsx(r,O({fontSize:"small",className:n},l)):null}function p7(e){var h;const{direction:t,index:n,sortingOrder:o,disabled:r,className:l}=e,i=be(e,c7),s=Ue(),a=Se(),u=O({},e,{classes:a.classes}),c=u7(u),d=f7(a.slots,t,c.icon,o);if(!d)return null;const p=x.jsx(d7,O({as:a.slots.baseIconButton,ownerState:u,"aria-label":s.current.getLocaleText("columnHeaderSortIconLabel"),title:s.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:r,className:de(c.root,l)},(h=a.slotProps)==null?void 0:h.baseIconButton,i,{children:d}));return x.jsxs(f.Fragment,{children:[n!=null&&x.jsx(a.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:p}),n==null&&p]})}function h7(e){return x.jsx(pO,{children:x.jsx(p7,O({},e,{tabIndex:-1}))})}const g7=f.memo(h7),m7=e=>{const{classes:t}=e;return ve({icon:["filterIcon"]},tt,t)};function b7(e){return e.counter?x.jsx(y7,O({},e)):null}function y7(e){var h,g;const{counter:t,field:n,onClick:o}=e,r=Ue(),l=Se(),i=O({},e,{classes:l.classes}),s=m7(i),a=at(),u=le(r,w9,a),c=at(),d=f.useCallback(y=>{y.preventDefault(),y.stopPropagation();const{open:w,openedPanelValue:m}=Yi(r);w&&m===eo.filters?r.current.hideFilterPanel():r.current.showFilterPanel(void 0,c,a),o&&o(r.current.getColumnHeaderParams(n),y)},[r,n,o,c,a]);if(!t)return null;const p=x.jsx(l.slots.baseIconButton,O({id:a,onClick:d,"aria-label":r.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":u,"aria-controls":u?c:void 0},(h=l.slotProps)==null?void 0:h.baseIconButton,{children:x.jsx(l.slots.columnFilteredIcon,{className:s.icon,fontSize:"small"})}));return x.jsx(l.slots.baseTooltip,O({title:r.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(g=l.slotProps)==null?void 0:g.baseTooltip,{children:x.jsxs(pO,{children:[t>1&&x.jsx(l.slots.baseBadge,{badgeContent:t,color:"default",children:p}),t===1&&p]})}))}const Lt=Kn,Jw=Lt(x.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),ex=Lt(x.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),tx=Lt(x.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),nx=Lt(x.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),v7=Lt(x.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),ox=Lt(x.jsx("path",{d:"M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39c.51-.66.04-1.61-.79-1.61H5.04c-.83 0-1.3.95-.79 1.61z"})),C7=Lt(x.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}));Lt(x.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}));Lt(x.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}));const S7=Lt(x.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),w7=Lt(x.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),x7=Lt(x.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),M7=Lt(x.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),E7=Lt(x.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),T7=Lt(x.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),rx=Lt(x.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"})),lx=Lt(x.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),P7=Lt(x.jsx("path",{d:"M19 13H5v-2h14v2z"})),I7=Lt(x.jsx("path",{d:"M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8zm0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4v3z"})),ix=Lt(x.jsx("path",{d:"M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2zm-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),sx=Lt(x.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),O7=Lt(x.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),R7=Lt(x.jsx("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7zM2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3 2 4.27zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2zm4.31-.78l3.15 3.15.02-.16c0-1.66-1.34-3-3-3l-.17.01z"})),k7=Lt(x.jsx("g",{children:x.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),ax=Lt(x.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 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 12z"}));Lt(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"}));const A7=Lt(x.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12l1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z"})),$7=Lt(x.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}));function hO(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const ap=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",D7=e=>!!e.key,gO=e=>e==="Tab"||e==="Escape";function mO(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function L7(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const z7=["hideMenu","colDef","id","labelledby","className","children","open"],F7=Z(wl)(()=>({minWidth:248})),B7=He(function(t,n){const{hideMenu:o,id:r,labelledby:l,className:i,children:s,open:a}=t,u=be(t,z7),c=Se(),d=f.useCallback(p=>{p.key==="Tab"&&p.preventDefault(),gO(p.key)&&o(p)},[o]);return x.jsx(F7,O({as:c.slots.baseMenuList,id:r,className:de(z.menuList,i),"aria-labelledby":l,onKeyDown:d,autoFocus:a},u,{ref:n,children:s}))}),H7=["displayOrder"],N7=e=>{const t=Ro(),n=Se(),{defaultSlots:o,defaultSlotProps:r,slots:l={},slotProps:i={},hideMenu:s,colDef:a,addDividers:u=!0}=e,c=f.useMemo(()=>O({},o,l),[o,l]),d=f.useMemo(()=>{if(!i||Object.keys(i).length===0)return r;const g=O({},i);return Object.entries(r).forEach(([y,w])=>{g[y]=O({},w,i[y]||{})}),g},[r,i]),p=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),h=f.useMemo(()=>{const g=Object.keys(o);return Object.keys(l).filter(y=>!g.includes(y))},[l,o]);return f.useMemo(()=>{const w=Array.from(new Set([...p,...h])).filter(m=>c[m]!=null).sort((m,b)=>{const v=d[m],S=d[b],M=Number.isFinite(v==null?void 0:v.displayOrder)?v.displayOrder:100,R=Number.isFinite(S==null?void 0:S.displayOrder)?S.displayOrder:100;return M-R});return w.reduce((m,b,v)=>{let S={colDef:a,onClick:s};const M=d[b];if(M){const R=be(M,H7);S=O({},S,R)}return u&&v!==w.length-1?[...m,[c[b],S],[n.slots.baseDivider,{}]]:[...m,[c[b],S]]},[])},[u,a,p,s,c,d,h,n.slots.baseDivider])};function j7(e){const{colDef:t,onClick:n}=e,o=Ue(),r=Se(),s=Kt(o).filter(u=>u.disableColumnMenu!==!0).length===1,a=f.useCallback(u=>{s||(o.current.setColumnVisibility(t.field,!1),n(u))},[o,t.field,n,s]);return r.disableColumnSelector||t.hideable===!1?null:x.jsx(r.slots.baseMenuItem,{onClick:a,disabled:s,iconStart:x.jsx(r.slots.columnMenuHideIcon,{fontSize:"small"}),children:o.current.getLocaleText("columnMenuHideColumn")})}function G7(e){const{onClick:t}=e,n=Ue(),o=Se(),r=f.useCallback(l=>{t(l),n.current.showPreferences(eo.columns)},[n,t]);return o.disableColumnSelector?null:x.jsx(o.slots.baseMenuItem,{onClick:r,iconStart:x.jsx(o.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}function _7(e){return x.jsxs(f.Fragment,{children:[x.jsx(j7,O({},e)),x.jsx(G7,O({},e))]})}function V7(e){const{colDef:t,onClick:n}=e,o=Ue(),r=Se(),l=f.useCallback(i=>{n(i),o.current.showFilterPanel(t.field)},[o,t.field,n]);return r.disableColumnFilter||!t.filterable?null:x.jsx(r.slots.baseMenuItem,{onClick:l,iconStart:x.jsx(r.slots.columnMenuFilterIcon,{fontSize:"small"}),children:o.current.getLocaleText("columnMenuFilter")})}function U7(e){const{colDef:t,onClick:n}=e,o=Ue(),r=le(o,Lo),l=Se(),i=f.useMemo(()=>{if(!t)return null;const c=r.find(d=>d.field===t.field);return c==null?void 0:c.sort},[t,r]),s=t.sortingOrder??l.sortingOrder,a=f.useCallback(c=>{n(c);const d=c.currentTarget.getAttribute("data-value")||null;o.current.sortColumn(t.field,d===i?null:d)},[o,t,n,i]);if(l.disableColumnSorting||!t||!t.sortable||!s.some(c=>!!c))return null;const u=c=>{const d=o.current.getLocaleText(c);return typeof d=="function"?d(t):d};return x.jsxs(f.Fragment,{children:[s.includes("asc")&&i!=="asc"?x.jsx(l.slots.baseMenuItem,{onClick:a,"data-value":"asc",iconStart:x.jsx(l.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:u("columnMenuSortAsc")}):null,s.includes("desc")&&i!=="desc"?x.jsx(l.slots.baseMenuItem,{onClick:a,"data-value":"desc",iconStart:x.jsx(l.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:u("columnMenuSortDesc")}):null,s.includes(null)&&i!=null?x.jsx(l.slots.baseMenuItem,{onClick:a,iconStart:l.slots.columnMenuUnsortIcon?x.jsx(l.slots.columnMenuUnsortIcon,{fontSize:"small"}):x.jsx("span",{}),children:o.current.getLocaleText("columnMenuUnsort")}):null]})}const W7=["defaultSlots","defaultSlotProps","slots","slotProps"],q7={columnMenuSortItem:U7,columnMenuFilterItem:V7,columnMenuColumnsItem:_7},K7={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Y7=He(function(t,n){const{defaultSlots:o,defaultSlotProps:r,slots:l,slotProps:i}=t,s=be(t,W7),a=N7(O({},s,{defaultSlots:o,defaultSlotProps:r,slots:l,slotProps:i}));return x.jsx(B7,O({},s,{ref:n,children:a.map(([u,c],d)=>x.jsx(u,O({},c),d))}))}),X7=He(function(t,n){return x.jsx(Y7,O({},t,{ref:n,defaultSlots:q7,defaultSlotProps:K7}))}),Q7=["className"],Z7=e=>{const{classes:t}=e;return ve({root:["panelWrapper"]},tt,t)},J7=Z("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),bO=He(function(t,n){const{className:o}=t,r=be(t,Q7),l=Se(),i=Z7(l);return x.jsx(J7,O({tabIndex:-1,className:de(i.root,o),ownerState:l},r,{ref:n}))});function eW(e){var n;const t=Se();return x.jsx(bO,O({},e,{children:x.jsx(t.slots.columnsManagement,O({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const tW=["children","className","classes","onClose"],nW=je("MuiDataGrid",["panel","paper"]),oW=Z(wl,{name:"MuiDataGrid",slot:"panel"})({zIndex:Me.zIndex.panel}),rW=Z("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:Me.colors.background.overlay,borderRadius:Me.radius.base,boxShadow:Me.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${Me.spacing(2)})`,overflow:"auto"}),lW=He((e,t)=>{var b;const{children:n,className:o,onClose:r}=e,l=be(e,tW),i=Ue(),s=Se(),a=nW,[u,c]=f.useState(!1),d=yI(),p=Xe(()=>c(!0)),h=Xe(()=>c(!1)),g=Xe(()=>{r==null||r()}),y=Xe(v=>{v.key==="Escape"&&(r==null||r())}),[w,m]=f.useState(null);return f.useEffect(()=>{var S,M;const v=(M=(S=i.current.rootElementRef)==null?void 0:S.current)==null?void 0:M.querySelector('[data-id="gridPanelAnchor"]');v&&m(v)},[i]),w?x.jsx(oW,O({as:s.slots.basePopper,ownerState:s,placement:"bottom-end",className:de(a.panel,o,d),flip:!0,onDidShow:p,onDidHide:h,onClickAway:g,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},l,(b=s.slotProps)==null?void 0:b.basePopper,{target:e.target??w,ref:t,children:x.jsx(rW,{className:a.paper,ownerState:s,onKeyDown:y,children:u&&n})})):null}),iW=["className"],sW=e=>{const{classes:t}=e;return ve({root:["panelContent"]},tt,t)},aW=ht("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:Me.spacing(2.5,1.5,2,1),gap:Me.spacing(2.5)});function cW(e){const{className:t}=e,n=be(e,iW),o=Se(),r=sW(o);return x.jsx(aW,O({className:de(r.root,t),ownerState:o},n))}const uW=["className"],dW=e=>{const{classes:t}=e;return ve({root:["panelFooter"]},tt,t)},fW=Z("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:Me.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Me.colors.border.base}`});function pW(e){const{className:t}=e,n=be(e,uW),o=Se(),r=dW(o);return x.jsx(fW,O({className:de(r.root,t),ownerState:o},n))}const hW=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],gW=["InputComponentProps"],mW=e=>{const{classes:t}=e;return ve({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},tt,t)},bW=Z("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:Me.spacing(1.5)}),yW=Z("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),vW=Z("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),CW=Z("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),SW=Z("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),wW=Z("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),xW=e=>{switch(e){case Qn.And:return"filterPanelOperatorAnd";case Qn.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},fc=e=>e.headerName||e.field,cx=new Intl.Collator,ux=He(function(t,n){var pe,me,ye,te,Ce,ge,Te;const{item:o,hasMultipleFilters:r,deleteFilter:l,applyFilterChanges:i,showMultiFilterOperators:s,disableMultiFilterOperator:a,applyMultiFilterOperatorChanges:u,focusElementRef:c,logicOperators:d=[Qn.And,Qn.Or],columnsSort:p,filterColumns:h,deleteIconProps:g={},logicOperatorInputProps:y={},operatorInputProps:w={},columnInputProps:m={},valueInputProps:b={},readOnly:v}=t,S=be(t,hW),M=Ue(),R=le(M,xl),k=le(M,hI),E=le(M,vn),P=at(),C=at(),T=at(),A=at(),L=Se(),F=mW(L),D=f.useRef(null),I=f.useRef(null),$=E.logicOperator??Qn.And,B=r&&d.length>0,j=(((pe=L.slotProps)==null?void 0:pe.baseSelect)||{}).native??!1,N=((me=L.slotProps)==null?void 0:me.baseSelectOption)||{},{InputComponentProps:H}=b,_=be(b,gW),U=le(M,Ki),K=le(M,eO),{filteredColumns:X,selectedField:oe}=f.useMemo(()=>{let Q=o.field;const ke=R[o.field].filterable===!1?R[o.field]:null;if(ke)return{filteredColumns:[ke],selectedField:Q};if(U)return{filteredColumns:k.filter(Le=>K.get(Le.field)!==void 0),selectedField:Q};if(h===void 0||typeof h!="function")return{filteredColumns:k,selectedField:Q};const Ie=h({field:o.field,columns:k,currentFilters:(E==null?void 0:E.items)||[]});return{filteredColumns:k.filter(Le=>{const Ne=Ie.includes(Le.field);return Le.field===o.field&&!Ne&&(Q=void 0),Ne}),selectedField:Q}},[o.field,R,U,h,k,E==null?void 0:E.items,K]),ue=f.useMemo(()=>{switch(p){case"asc":return X.sort((Q,ke)=>cx.compare(fc(Q),fc(ke)));case"desc":return X.sort((Q,ke)=>-cx.compare(fc(Q),fc(ke)));default:return X}},[X,p]),V=o.field?M.current.getColumn(o.field):null,W=f.useMemo(()=>{var Q;return!o.operator||!V?null:(Q=V.filterOperators)==null?void 0:Q.find(ke=>ke.value===o.operator)},[o,V]),ne=f.useCallback(Q=>{const ke=Q.target.value,Ie=M.current.getColumn(ke);if(Ie.field===V.field)return;const Le=Ie.filterOperators.find(De=>De.value===o.operator)||Ie.filterOperators[0];let qe=!Le.InputComponent||Le.InputComponent!==(W==null?void 0:W.InputComponent)||Ie.type!==V.type?void 0:o.value;if(Ie.type==="singleSelect"&&qe!==void 0){const De=Ie,Ee=qi(De);Array.isArray(qe)?qe=qe.filter(Oe=>lp(Oe,Ee,De==null?void 0:De.getOptionValue)!==void 0):lp(o.value,Ee,De==null?void 0:De.getOptionValue)===void 0&&(qe=void 0)}i(O({},o,{field:ke,operator:Le.value,value:qe}))},[M,i,o,V,W]),J=f.useCallback(Q=>{const ke=Q.target.value,Ie=V==null?void 0:V.filterOperators.find(Ne=>Ne.value===ke),Le=!(Ie!=null&&Ie.InputComponent)||(Ie==null?void 0:Ie.InputComponent)!==(W==null?void 0:W.InputComponent);i(O({},o,{operator:ke,value:Le?void 0:o.value}))},[i,o,V,W]),Y=f.useCallback(Q=>{const ke=Q.target.value===Qn.And.toString()?Qn.And:Qn.Or;u(ke)},[u]),ee=()=>{l(o)};return f.useImperativeHandle(c,()=>({focus:()=>{var Q;W!=null&&W.InputComponent?(Q=D==null?void 0:D.current)==null||Q.focus():I.current.focus()}}),[W]),x.jsxs(bW,O({className:F.root,"data-id":o.id,ownerState:L},S,{ref:n,children:[x.jsx(yW,O({},g,{className:de(F.deleteIcon,g.className),ownerState:L,children:x.jsx(L.slots.baseIconButton,O({"aria-label":M.current.getLocaleText("filterPanelDeleteIconLabel"),title:M.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:ee,size:"small",disabled:v},(ye=L.slotProps)==null?void 0:ye.baseIconButton,{children:x.jsx(L.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),x.jsx(vW,O({as:L.slots.baseSelect,sx:[B?{display:"flex"}:{display:"none"},s?{visibility:"visible"}:{visibility:"hidden"},y.sx],className:de(F.logicOperatorInput,y.className),ownerState:L},y,{size:"small",slotProps:{htmlInput:{"aria-label":M.current.getLocaleText("filterPanelLogicOperator")}},value:$??"",onChange:Y,disabled:!!a||d.length===1,native:j},(te=L.slotProps)==null?void 0:te.baseSelect,{children:d.map(Q=>f.createElement(L.slots.baseSelectOption,O({},N,{native:j,key:Q.toString(),value:Q.toString()}),M.current.getLocaleText(xW(Q))))})),x.jsx(CW,O({as:L.slots.baseSelect},m,{className:de(F.columnInput,m.className),ownerState:L,size:"small",labelId:C,id:P,label:M.current.getLocaleText("filterPanelColumns"),value:oe??"",onChange:ne,native:j,disabled:v},(Ce=L.slotProps)==null?void 0:Ce.baseSelect,{children:ue.map(Q=>f.createElement(L.slots.baseSelectOption,O({},N,{native:j,key:Q.field,value:Q.field}),fc(Q)))})),x.jsx(SW,O({as:L.slots.baseSelect,size:"small"},w,{className:de(F.operatorInput,w.className),ownerState:L,labelId:A,label:M.current.getLocaleText("filterPanelOperator"),id:T,value:o.operator,onChange:J,native:j,inputRef:I,disabled:v},(ge=L.slotProps)==null?void 0:ge.baseSelect,{children:(Te=V==null?void 0:V.filterOperators)==null?void 0:Te.map(Q=>f.createElement(L.slots.baseSelectOption,O({},N,{native:j,key:Q.value,value:Q.value}),Q.label||M.current.getLocaleText(`filterOperator${re(Q.value)}`)))})),x.jsx(wW,O({},_,{className:de(F.valueInput,_.className),ownerState:L,children:W!=null&&W.InputComponent?x.jsx(W.InputComponent,O({apiRef:M,item:o,applyValue:i,focusElementRef:D,disabled:v,slotProps:{root:{size:"small"}}},W.InputComponentProps,H),o.field):null}))]}))}),MW=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],dx=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),EW=He(function(t,n){var A,L;const o=Ue(),r=Se(),l=le(o,vn),i=le(o,hI),s=le(o,L_),a=f.useRef(null),u=f.useRef(null),{logicOperators:c=[Qn.And,Qn.Or],columnsSort:d,filterFormProps:p,getColumnForNewFilter:h,disableAddFilterButton:g=!1,disableRemoveAllButton:y=!1}=t,w=be(t,MW),m=o.current.upsertFilterItem,b=f.useCallback(F=>{o.current.setFilterLogicOperator(F)},[o]),v=f.useCallback(()=>{let F;if(h&&typeof h=="function"){const D=h({currentFilters:(l==null?void 0:l.items)||[],columns:i});if(D===null)return null;F=i.find(({field:I})=>I===D)}else F=i.find(D=>{var I;return(I=D.filterOperators)==null?void 0:I.length});return F?dx(F):null},[l==null?void 0:l.items,i,h]),S=f.useCallback(()=>{if(h===void 0||typeof h!="function")return v();const F=l.items.length?l.items:[v()].filter(Boolean),D=h({currentFilters:F,columns:i});if(D===null)return null;const I=i.find(({field:$})=>$===D);return I?dx(I):null},[l.items,i,h,v]),M=f.useMemo(()=>l.items.length?l.items:(u.current||(u.current=v()),u.current?[u.current]:[]),[l.items,v]),R=M.length>1,{readOnlyFilters:k,validFilters:E}=f.useMemo(()=>M.reduce((F,D)=>(s[D.field]?F.validFilters.push(D):F.readOnlyFilters.push(D),F),{readOnlyFilters:[],validFilters:[]}),[M,s]),P=f.useCallback(()=>{const F=S();F&&o.current.upsertFilterItems([...M,F])},[o,S,M]),C=f.useCallback(F=>{const D=E.length===1;o.current.deleteFilterItem(F),D&&o.current.hideFilterPanel()},[o,E.length]),T=f.useCallback(()=>E.length===1&&E[0].value===void 0?(o.current.deleteFilterItem(E[0]),o.current.hideFilterPanel()):o.current.setFilterModel(O({},l,{items:k}),"removeAllFilterItems"),[o,k,l,E]);return f.useEffect(()=>{c.length>0&&l.logicOperator&&!c.includes(l.logicOperator)&&b(c[0])},[c,b,l.logicOperator]),f.useEffect(()=>{E.length>0&&a.current.focus()},[E.length]),x.jsxs(bO,O({},w,{ref:n,children:[x.jsxs(cW,{children:[k.map((F,D)=>x.jsx(ux,O({item:F,applyFilterChanges:m,deleteFilter:C,hasMultipleFilters:R,showMultiFilterOperators:D>0,disableMultiFilterOperator:D!==1,applyMultiFilterOperatorChanges:b,focusElementRef:null,readOnly:!0,logicOperators:c,columnsSort:d},p),F.id==null?D:F.id)),E.map((F,D)=>x.jsx(ux,O({item:F,applyFilterChanges:m,deleteFilter:C,hasMultipleFilters:R,showMultiFilterOperators:k.length+D>0,disableMultiFilterOperator:k.length+D!==1,applyMultiFilterOperatorChanges:b,focusElementRef:D===E.length-1?a:null,logicOperators:c,columnsSort:d},p),F.id==null?D+k.length:F.id))]}),!r.disableMultipleColumnsFiltering&&!(g&&y)?x.jsxs(pW,{children:[g?x.jsx("span",{}):x.jsx(r.slots.baseButton,O({onClick:P,startIcon:x.jsx(r.slots.filterPanelAddIcon,{})},(A=r.slotProps)==null?void 0:A.baseButton,{children:o.current.getLocaleText("filterPanelAddFilter")})),!y&&E.length>0?x.jsx(r.slots.baseButton,O({onClick:T,startIcon:x.jsx(r.slots.filterPanelRemoveAllIcon,{})},(L=r.slotProps)==null?void 0:L.baseButton,{children:o.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),TW=(e,t)=>{const n=new Set(Object.keys(e).filter(l=>e[l]===!1)),o=new Set(Object.keys(t).filter(l=>t[l]===!1));if(n.size!==o.size)return!1;let r=!0;return n.forEach(l=>{o.has(l)||(r=!1)}),r},PW=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,IW=["children"],OW=tr({from:{opacity:0},to:{opacity:1}}),RW=tr({"from, to":{"--scrollable":'" "'}}),kW=ht("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})` 337 flex: 1; 338 display: flex; 339 flex-direction: column; 340 animation: ${RW}; 341 animation-timeline: --scroll-timeline; 342 animation-fill-mode: none; 343 box-sizing: border-box; 344 overflow: auto; 345 scrollbar-width: thin; 346 scroll-timeline: --scroll-timeline block; 347 348 &::before, 349 &::after { 350 content: ''; 351 flex-shrink: 0; 352 display: block; 353 position: sticky; 354 left: 0; 355 width: 100%; 356 height: 4px; 357 animation: ${OW} linear both; 358 animation-timeline: --scroll-timeline; 359 360 // Custom property toggle trick: 361 // - Detects if the element is scrollable 362 // - https://css-tricks.com/the-css-custom-property-toggle-trick/ 363 --visibility-scrollable: var(--scrollable) visible; 364 --visibility-not-scrollable: hidden; 365 visibility: var(--visibility-scrollable, var(--visibility-not-scrollable)); 366 } 367 368 &::before { 369 top: 0; 370 background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%); 371 animation-range: 0 4px; 372 } 373 374 &::after { 375 bottom: 0; 376 background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%); 377 animation-direction: reverse; 378 animation-range: calc(100% - 4px) 100%; 379 } 380 `,AW=He(function(t,n){const{children:o}=t,r=be(t,IW);return x.jsx(kW,O({},r,{ref:n,children:o}))}),$W=e=>{const{classes:t}=e;return ve({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},tt,t)},fx=new Intl.Collator;function DW(e){var B,G,j,N;const t=Ue(),n=f.useRef(null),o=le(t,A_),r=le(t,fr),l=Se(),[i,s]=f.useState(""),a=$W(l),u=le(t,Xo),c=le(t,Ki),d=le(t,eO),p=f.useMemo(()=>c?Array.from(d.values()):u,[c,d,u]),{sort:h,searchPredicate:g=PW,autoFocusSearchField:y=!0,disableShowHideToggle:w=!1,disableResetButton:m=!1,toggleAllMode:b="all",getTogglableColumns:v,searchInputProps:S}=e,M=f.useMemo(()=>TW(r,o),[r,o]),R=f.useMemo(()=>{switch(h){case"asc":return[...p].sort((H,_)=>fx.compare(H.headerName||H.field,_.headerName||_.field));case"desc":return[...p].sort((H,_)=>-fx.compare(H.headerName||H.field,_.headerName||_.field));default:return p}},[p,h]),k=H=>{const{name:_}=H.target;t.current.setColumnVisibility(_,r[_]===!1)},E=f.useMemo(()=>{const H=v?v(R):null,_=H?R.filter(({field:U})=>H.includes(U)):R;return i?_.filter(U=>g(U,i.toLowerCase())):_},[R,i,g,v]),P=f.useCallback(H=>{const _=fr(t),U=O({},_),K=v?v(p):null;return(b==="filteredOnly"?E:p).forEach(X=>{X.hideable&&(K==null||K.includes(X.field))&&(H?delete U[X.field]:U[X.field]=!1)}),t.current.setColumnVisibilityModel(U)},[t,p,v,b,E]),C=f.useCallback(H=>{s(H.target.value)},[]),T=f.useMemo(()=>E.filter(H=>H.hideable),[E]),A=f.useMemo(()=>T.every(H=>r[H.field]==null||r[H.field]!==!1),[r,T]),L=f.useMemo(()=>T.every(H=>r[H.field]===!1),[r,T]),F=f.useRef(null);f.useEffect(()=>{var H;y?(H=n.current)==null||H.focus():F.current&&typeof F.current.focus=="function"&&F.current.focus()},[y]);let D=!1;const I=H=>D===!1&&H.hideable!==!1?(D=!0,!0):!1,$=f.useCallback(()=>{var H;s(""),(H=n.current)==null||H.focus()},[]);return x.jsxs(f.Fragment,{children:[x.jsx(FW,{className:a.header,ownerState:l,children:x.jsx(BW,O({as:l.slots.baseTextField,ownerState:l,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:a.searchInput,value:i,onChange:C,size:"small",type:"search",slotProps:{input:{startAdornment:x.jsx(l.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:x.jsx(l.slots.baseIconButton,O({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:i?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:$,edge:"end"},(B=l.slotProps)==null?void 0:B.baseIconButton,{children:x.jsx(l.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},(G=l.slotProps)==null?void 0:G.baseTextField,S))}),x.jsx(zW,{ownerState:l,children:x.jsxs(LW,{className:a.root,ownerState:l,children:[E.map(H=>{var _;return x.jsx(l.slots.baseCheckbox,O({className:a.row,disabled:H.hideable===!1||c,checked:r[H.field]!==!1,onClick:k,name:H.field,inputRef:I(H)?F:void 0,label:H.headerName||H.field,density:"compact",fullWidth:!0},(_=l.slotProps)==null?void 0:_.baseCheckbox),H.field)}),E.length===0&&x.jsx(NW,{ownerState:l,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!w||!m?x.jsxs(HW,{ownerState:l,className:a.footer,children:[w?x.jsx("span",{}):x.jsx(l.slots.baseCheckbox,O({disabled:T.length===0||c,checked:A,indeterminate:!A&&!L,onClick:()=>P(!A),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},(j=l.slotProps)==null?void 0:j.baseCheckbox)),m?null:x.jsx(l.slots.baseButton,O({onClick:()=>t.current.setColumnVisibilityModel(o),disabled:M||c},(N=l.slotProps)==null?void 0:N.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const LW=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:Me.spacing(.5,1.5)}),zW=Z(AW,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),FW=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:Me.spacing(1.5,2),borderBottom:`1px solid ${Me.colors.border.base}`}),BW=Z(wl,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${Hn.input}::-webkit-search-decoration, 381 & .${Hn.input}::-webkit-search-cancel-button, 382 & .${Hn.input}::-webkit-search-results-button, 383 & .${Hn.input}::-webkit-search-results-decoration`]:{display:"none"}}),HW=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:Me.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${Me.colors.border.base}`}),NW=Z("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:Me.spacing(1,0),alignSelf:"center",font:Me.typography.font.body}),jW=He(function(t,n){var b,v;const{children:o,slotProps:r={}}=t,l=r.button||{},i=r.tooltip||{},s=Ue(),a=Se(),u=at(),c=at(),[d,p]=f.useState(!1),h=f.useRef(null),g=vt(n,h),y=S=>{var M;p(R=>!R),(M=l.onClick)==null||M.call(l,S)},w=()=>p(!1),m=S=>{S.key==="Tab"&&S.preventDefault(),gO(S.key)&&w()};return o==null?null:x.jsxs(f.Fragment,{children:[x.jsx(a.slots.baseTooltip,O({title:s.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(b=a.slotProps)==null?void 0:b.baseTooltip,i,{children:x.jsx(a.slots.baseButton,O({size:"small",startIcon:x.jsx(a.slots.exportIcon,{}),"aria-expanded":d,"aria-label":s.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":d?c:void 0,id:u},(v=a.slotProps)==null?void 0:v.baseButton,l,{onClick:y,ref:g,children:s.current.getLocaleText("toolbarExport")}))})),x.jsx(Th,{open:d,target:h.current,onClose:w,position:"bottom-end",children:x.jsx(a.slots.baseMenuList,{id:c,className:z.menuList,"aria-labelledby":u,onKeyDown:m,autoFocusItem:d,children:f.Children.map(o,S=>f.isValidElement(S)?f.cloneElement(S,{hideMenu:w}):S)})})]})}),GW=["hideMenu","options"],_W=["hideMenu","options"],VW=["csvOptions","printOptions","excelOptions"];function UW(e){const t=Ue(),n=Se(),{hideMenu:o,options:r}=e,l=be(e,GW);return x.jsx(n.slots.baseMenuItem,O({onClick:()=>{t.current.exportDataAsCsv(r),o==null||o()}},l,{children:t.current.getLocaleText("toolbarExportCSV")}))}function WW(e){const t=Ue(),n=Se(),{hideMenu:o,options:r}=e,l=be(e,_W);return x.jsx(n.slots.baseMenuItem,O({onClick:()=>{t.current.exportDataAsPrint(r),o==null||o()}},l,{children:t.current.getLocaleText("toolbarExportPrint")}))}He(function(t,n){const o=t,{csvOptions:r={},printOptions:l={},excelOptions:i}=o,s=be(o,VW),u=Ue().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:i,csvOptions:r,printOptions:l}).sort((c,d)=>c.componentName>d.componentName?1:-1);return u.length===0?null:x.jsx(jW,O({},s,{ref:n,children:u.map((c,d)=>f.cloneElement(c.component,{key:d}))}))});function To(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;if(Array.isArray(e)){const r=e.length;if(r!==t.length)return!1;for(let l=0;l<r;l+=1)if(!To(e[l],t[l]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let l=0;l<r.length;l+=1)if(!t.has(r[l][0]))return!1;for(let l=0;l<r.length;l+=1){const i=r[l];if(!To(i[1],t.get(i[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const r=Array.from(e.entries());for(let l=0;l<r.length;l+=1)if(!t.has(r[l][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const r=e.length;if(r!==t.length)return!1;for(let l=0;l<r;l+=1)if(e[l]!==t[l])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();const n=Object.keys(e),o=n.length;if(o!==Object.keys(t).length)return!1;for(let r=0;r<o;r+=1)if(!Object.prototype.hasOwnProperty.call(t,n[r]))return!1;for(let r=0;r<o;r+=1){const l=n[r];if(!To(e[l],t[l]))return!1}return!0}return e!==e&&t!==t}const yO=f.createContext(void 0);function lC(){const e=f.useContext(yO);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const qW=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],KW=e=>e.split(" ").filter(t=>t!==""),YW=e=>e.join(" ");function XW(e){const t=Se(),{render:n,className:o,parser:r=KW,formatter:l=YW,debounceMs:i=t.filterDebounceMs,defaultExpanded:s,expanded:a,onExpandedChange:u}=e,c=be(e,qW),d=Ue(),p=f.useRef(null),h=f.useRef(null),g=le(d,TI),[y,w]=f.useState(l(g??[])),[m,b]=f.useState(s??y.length>0),v=a??m,S=f.useMemo(()=>({value:y,expanded:v}),[y,v]),M=typeof o=="function"?o(S):o,R=f.useRef(null),k=at(),E=f.useCallback($=>{u&&u($),a===void 0&&b($)},[u,a]),P=f.useRef(g);f.useEffect(()=>{To(P.current,g)||(P.current=g,w($=>To(r($),g)?$:l(g??[])))},[g,l,r]);const C=f.useRef(!0),T=f.useRef(v);f.useEffect(()=>{var $;if(C.current){C.current=!1;return}T.current!==v&&(v?requestAnimationFrame(()=>{var B;(B=p.current)==null||B.focus({preventScroll:!0})}):($=h.current)==null||$.focus({preventScroll:!0}),T.current=v)},[v]);const A=f.useMemo(()=>Da($=>{const B=r($);P.current=B,d.current.setQuickFilterValues(B)},i),[d,i,r]);f.useEffect(()=>A.clear,[A]);const L=f.useCallback($=>{const B=$.target.value;w(B),A(B)},[A]),F=f.useCallback(()=>{var $;w(""),d.current.setQuickFilterValues([]),($=p.current)==null||$.focus()},[d,p]),D=f.useMemo(()=>({controlRef:p,triggerRef:h,state:S,controlId:k,clearValue:F,onValueChange:L,onExpandedChange:E}),[k,S,L,F,E]);Ot(()=>{var $;R.current&&h.current&&R.current.style.setProperty("--trigger-width",`${($=h.current)==null?void 0:$.offsetWidth}px`)},[]);const I=Wr("div",n,O({className:M},c,{ref:R}),S);return x.jsx(yO.Provider,{value:D,children:I})}const QW=["render","className","slotProps","onKeyDown","onChange"],ZW=He(function(t,n){var R;const{render:o,className:r,slotProps:l,onKeyDown:i,onChange:s}=t,a=be(t,QW),u=Se(),{state:c,controlId:d,controlRef:p,onValueChange:h,onExpandedChange:g,clearValue:y}=lC(),w=typeof r=="function"?r(c):r,m=vt(p,n),b=k=>{k.key==="Escape"&&(c.value===""?g(!1):y()),i==null||i(k)},v=k=>{var E,P;c.value===""&&g(!1),(P=(E=l==null?void 0:l.htmlInput)==null?void 0:E.onBlur)==null||P.call(E,k)},S=k=>{c.expanded||g(!0),h(k),s==null||s(k)},M=Wr(u.slots.baseTextField,o,O({},(R=u.slotProps)==null?void 0:R.baseTextField,{slotProps:O({htmlInput:O({role:"searchbox",id:d,tabIndex:c.expanded?void 0:-1},l==null?void 0:l.htmlInput,{onBlur:v})},l),value:c.value,className:w},a,{onChange:S,onKeyDown:b,ref:m}),c);return x.jsx(f.Fragment,{children:M})}),JW=["render","className","onClick"],eq=He(function(t,n){var h;const{render:o,className:r,onClick:l}=t,i=be(t,JW),s=Se(),{state:a,clearValue:u}=lC(),c=typeof r=="function"?r(a):r,d=g=>{u(),l==null||l(g)},p=Wr(s.slots.baseIconButton,o,O({},(h=s.slotProps)==null?void 0:h.baseIconButton,{className:c,tabIndex:-1},i,{onClick:d,ref:n}),a);return x.jsx(f.Fragment,{children:p})}),tq=["render","className","onClick"],nq=He(function(t,n){var w;const{render:o,className:r,onClick:l}=t,i=be(t,tq),s=Se(),{state:a,controlId:u,onExpandedChange:c,triggerRef:d}=lC(),p=typeof r=="function"?r(a):r,h=vt(d,n),g=m=>{c(!a.expanded),l==null||l(m)},y=Wr(s.slots.baseButton,o,O({},(w=s.slotProps)==null?void 0:w.baseButton,{className:p,"aria-controls":u,"aria-expanded":a.expanded},i,{onClick:g,ref:h}),a);return x.jsx(f.Fragment,{children:y})}),oq=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],rq=["ref","slotProps"],lq=e=>{const{classes:t}=e;return ve({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},tt,t)},iq=ht("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),sq=ht(uf,{name:"MuiDataGrid",slot:"ToolbarQuickFilterTrigger"})(({ownerState:e})=>({gridArea:"1 / 1",width:"min-content",height:"min-content",zIndex:1,opacity:e.expanded?0:1,pointerEvents:e.expanded?"none":"auto",transition:Me.transition(["opacity"])})),aq=ht(e=>{throw new Error("Failed assertion: should not be rendered")},{name:"MuiDataGrid",slot:"ToolbarQuickFilterControl"})(({ownerState:e})=>({gridArea:"1 / 1",overflowX:"clip",width:e.expanded?260:"var(--trigger-width)",opacity:e.expanded?1:0,transition:Me.transition(["width","opacity"])}));function cq(e){const t=Ue(),n=Se(),o={classes:n.classes,expanded:!1},r=lq(o),{quickFilterParser:l,quickFilterFormatter:i,debounceMs:s,className:a,slotProps:u}=e,c=be(e,oq);return x.jsx(XW,{parser:l,formatter:i,debounceMs:s,render:(d,p)=>{const h=O({},o,{expanded:p.expanded});return x.jsxs(iq,O({},d,{className:de(r.root,a),children:[x.jsx(nq,{render:g=>x.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:x.jsx(sq,O({className:r.trigger},g,{ownerState:h,color:"default","aria-disabled":p.expanded,children:x.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),x.jsx(ZW,{render:g=>{var b;let{ref:y,slotProps:w}=g,m=be(g,rq);return x.jsx(aq,O({as:n.slots.baseTextField,className:r.control,ownerState:h,inputRef:y,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:O({input:O({startAdornment:x.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:m.value?x.jsx(eq,{render:x.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:x.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},w==null?void 0:w.input)},w)},(b=n.slotProps)==null?void 0:b.baseTextField,m,u==null?void 0:u.root,c))}})]}))}})}const uq=["render","className","onClick","onPointerUp"],dq=He(function(t,n){var k;const{render:o,className:r,onClick:l,onPointerUp:i}=t,s=be(t,uq),a=Se(),u=at(),c=at(),d=Ue(),p=le(d,Yi),h=p.open&&p.openedPanelValue===eo.filters,y=le(d,Kv).length,w={open:h,filterCount:y},m=typeof r=="function"?r(w):r,{filterPanelTriggerRef:b}=oC(),v=vt(n,b),S=E=>{h?d.current.hidePreferences():d.current.showPreferences(eo.filters,c,u),l==null||l(E)},M=E=>{h&&E.stopPropagation(),i==null||i(E)},R=Wr(a.slots.baseButton,o,O({},(k=a.slotProps)==null?void 0:k.baseButton,{id:u,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?c:void 0,onClick:S,onPointerUp:M,className:m},s,{ref:v}),w);return x.jsx(f.Fragment,{children:R})}),fq=["render","className","onClick","onPointerUp"],pq=He(function(t,n){var M;const{render:o,className:r,onClick:l,onPointerUp:i}=t,s=be(t,fq),a=Se(),u=at(),c=at(),d=Ue(),p=le(d,Yi),h=p.open&&p.openedPanelValue===eo.columns,g={open:h},y=typeof r=="function"?r(g):r,{columnsPanelTriggerRef:w}=oC(),m=vt(n,w),b=R=>{h?d.current.hidePreferences():d.current.showPreferences(eo.columns,c,u),l==null||l(R)},v=R=>{h&&R.stopPropagation(),i==null||i(R)},S=Wr(a.slots.baseButton,o,O({},(M=a.slotProps)==null?void 0:M.baseButton,{id:u,"aria-haspopup":"true","aria-expanded":h?"true":void 0,"aria-controls":h?c:void 0,className:y},s,{onPointerUp:v,onClick:b,ref:m}),g);return x.jsx(f.Fragment,{children:S})}),hq=["render","options","onClick"],gq=He(function(t,n){var d;const{render:o,options:r,onClick:l}=t,i=be(t,hq),s=Se(),a=Ue(),u=p=>{a.current.exportDataAsCsv(r),l==null||l(p)},c=Wr(s.slots.baseButton,o,O({},(d=s.slotProps)==null?void 0:d.baseButton,{onClick:u},i,{ref:n}));return x.jsx(f.Fragment,{children:c})}),mq=["render","options","onClick"],bq=He(function(t,n){var d;const{render:o,options:r,onClick:l}=t,i=be(t,mq),s=Se(),a=Ue(),u=p=>{a.current.exportDataAsPrint(r),l==null||l(p)},c=Wr(s.slots.baseButton,o,O({},(d=s.slotProps)==null?void 0:d.baseButton,{onClick:u},i,{ref:n}));return x.jsx(f.Fragment,{children:c})}),yq=["className"],vq=["className"],vO=e=>{const{classes:t}=e;return ve({divider:["toolbarDivider"],label:["toolbarLabel"]},tt,t)},Cq=ht(wl,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:Me.spacing(0,.5)}),Sq=ht("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:Me.typography.font.large,fontWeight:Me.typography.fontWeight.medium,margin:Me.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function px(e){const t=be(e,yq),n=Se(),o=vO(n);return x.jsx(Cq,O({as:n.slots.baseDivider,orientation:"vertical",className:o.divider},t))}function wq(e){const t=be(e,vq),n=Se(),o=vO(n);return x.jsx(Sq,O({className:o.label},t))}function xq(e){var w,m,b;const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:o,printOptions:r,additionalItems:l,additionalExportMenuItems:i}=e,s=Ue(),a=Se(),[u,c]=f.useState(!1),d=f.useRef(null),p=at(),h=at(),g=!(o!=null&&o.disableToolbarButton)||!(r!=null&&r.disableToolbarButton)||i,y=()=>c(!1);return x.jsxs(E8,{children:[a.label&&x.jsx(wq,{children:a.label}),!a.disableColumnSelector&&x.jsx(a.slots.baseTooltip,{title:s.current.getLocaleText("toolbarColumns"),children:x.jsx(pq,{render:x.jsx(uf,{}),children:x.jsx(a.slots.columnSelectorIcon,{fontSize:"small"})})}),!a.disableColumnFilter&&x.jsx(a.slots.baseTooltip,{title:s.current.getLocaleText("toolbarFilters"),children:x.jsx(dq,{render:(v,S)=>x.jsx(uf,O({},v,{color:S.filterCount>0?"primary":"default",children:x.jsx(a.slots.baseBadge,{badgeContent:S.filterCount,color:"primary",variant:"dot",children:x.jsx(a.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),l,g&&(!a.disableColumnFilter||!a.disableColumnSelector)&&x.jsx(px,{}),g&&x.jsxs(f.Fragment,{children:[x.jsx(a.slots.baseTooltip,{title:s.current.getLocaleText("toolbarExport"),children:x.jsx(uf,{ref:d,id:h,"aria-controls":p,"aria-haspopup":"true","aria-expanded":u?"true":void 0,onClick:()=>c(!u),children:x.jsx(a.slots.exportIcon,{fontSize:"small"})})}),x.jsx(Th,{target:d.current,open:u,onClose:y,position:"bottom-end",children:x.jsxs(a.slots.baseMenuList,O({id:p,"aria-labelledby":h,autoFocusItem:!0},(w=a.slotProps)==null?void 0:w.baseMenuList,{children:[!(r!=null&&r.disableToolbarButton)&&x.jsx(bq,{render:x.jsx(a.slots.baseMenuItem,O({},(m=a.slotProps)==null?void 0:m.baseMenuItem)),options:r,onClick:y,children:s.current.getLocaleText("toolbarExportPrint")}),!(o!=null&&o.disableToolbarButton)&&x.jsx(gq,{render:x.jsx(a.slots.baseMenuItem,O({},(b=a.slotProps)==null?void 0:b.baseMenuItem)),options:o,onClick:y,children:s.current.getLocaleText("toolbarExportCSV")}),i==null?void 0:i(y)]}))})]}),t&&x.jsxs(f.Fragment,{children:[x.jsx(px,{}),x.jsx(cq,O({},n))]})]})}const Mq=["className","selectedRowCount"],Eq=e=>{const{classes:t}=e;return ve({root:["selectedRowCount"]},tt,t)},Tq=ht("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:Me.spacing(0,2),visibility:"hidden",width:0,height:0,[Me.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),Pq=He(function(t,n){const{className:o,selectedRowCount:r}=t,l=be(t,Mq),i=Ue(),s=Se(),a=Eq(s),u=i.current.getLocaleText("footerRowSelected")(r);return x.jsx(Tq,O({className:de(a.root,o),ownerState:s},l,{ref:n,children:u}))}),Iq=He(function(t,n){var d;const o=Ue(),r=Se(),l=le(o,f_),i=le(o,Ah),s=le(o,qv),a=!r.hideFooterSelectedRowCount&&i>0?x.jsx(Pq,{selectedRowCount:i}):x.jsx("div",{}),u=!r.hideFooterRowCount&&!r.pagination?x.jsx(r.slots.footerRowCount,O({},(d=r.slotProps)==null?void 0:d.footerRowCount,{rowCount:l,visibleRowCount:s})):null,c=r.pagination&&!r.hideFooterPagination&&r.slots.pagination&&x.jsx(r.slots.pagination,{});return x.jsxs(m8,O({},t,{ref:n,children:[a,u,c]}))}),Vc=(e,t,n,o,r,l)=>{let i;switch(e){case nt.LEFT:i=o[n];break;case nt.RIGHT:i=r-o[n]-t+l;break;default:i=void 0;break}return i},cp=(e,t,n,o,r)=>{const l=t===n-1;return e===nt.LEFT&&l?!0:o?e===nt.LEFT?!0:e===nt.RIGHT?!l:!l||r:!1},up=(e,t)=>e===nt.RIGHT&&t===0,pc={root:z.scrollbarFiller,header:z["scrollbarFiller--header"],borderTop:z["scrollbarFiller--borderTop"],borderBottom:z["scrollbarFiller--borderBottom"],pinnedRight:z["scrollbarFiller--pinnedRight"]};function iC({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:o}){return x.jsx("div",{role:"presentation",className:de(pc.root,e&&pc.header,t&&pc.borderTop,n&&pc.borderBottom,o&&pc.pinnedRight)})}const Oq=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],Rq=ht("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),kq=e=>{const{classes:t}=e;return ve({root:["skeletonLoadingOverlay"]},tt,t)},hx=e=>parseInt(e.getAttribute("data-colindex"),10),Aq=He(function(t,n){const o=Se(),{slots:r}=o,l=_n(),i=kq({classes:o.classes}),s=f.useRef(null),a=vt(s,n),u=Ue(),c=le(u,Tt),d=le(u,Mh),p=le(u,yi),h=f.useMemo(()=>p.filter(E=>E<=d).length,[d,p]),{skeletonRowsCount:g,visibleColumns:y,showFirstRowBorder:w}=t,m=be(t,Oq),b=le(u,Kt),v=f.useMemo(()=>b.slice(0,h),[b,h]),S=le(u,Ha),M=f.useCallback(E=>{if(S.left.findIndex(P=>P.field===E)!==-1)return nt.LEFT;if(S.right.findIndex(P=>P.field===E)!==-1)return nt.RIGHT},[S.left,S.right]),R=f.useMemo(()=>{const E=[];for(let P=0;P<g;P+=1){const C=[];for(let T=0;T<v.length;T+=1){const A=v[T],L=M(A.field),F=L===nt.LEFT,D=L===nt.RIGHT,I=rO(L,l),$=I?S[I].length:v.length-S.left.length-S.right.length,B=I?S[I].findIndex(J=>J.field===A.field):T-S.left.length,G=c.hasScrollY?c.scrollbarSize:0,j=Fh({},l,L,Vc(L,A.computedWidth,T,p,c.columnsTotalWidth,G)),N=c.columnsTotalWidth<c.viewportOuterSize.width,H=cp(L,B,$,o.showCellVerticalBorder,N),_=up(L,B),U=T===v.length-1,K=D&&B===0,X=K&&N,oe=U&&!K&&N,ue=c.viewportOuterSize.width-c.columnsTotalWidth,V=Math.max(0,ue),W=x.jsx(r.skeletonCell,{width:V,empty:!0},`skeleton-filler-column-${P}`),ne=U&&G!==0;X&&C.push(W),C.push(x.jsx(r.skeletonCell,{field:A.field,type:A.type,align:A.align,width:"var(--width)",height:c.rowHeight,"data-colindex":T,empty:y&&!y.has(A.field),className:de(F&&z["cell--pinnedLeft"],D&&z["cell--pinnedRight"],H&&z["cell--withRightBorder"],_&&z["cell--withLeftBorder"]),style:O({"--width":`${A.computedWidth}px`},j)},`skeleton-column-${P}-${A.field}`)),oe&&C.push(W),ne&&C.push(x.jsx(iC,{pinnedRight:S.right.length>0},`skeleton-scrollbar-filler-${P}`))}E.push(x.jsx("div",{className:de(z.row,z.rowSkeleton,P===0&&!w&&z["row--firstVisible"]),children:C},`skeleton-row-${P}`))}return E},[g,v,M,l,S,c.hasScrollY,c.scrollbarSize,c.columnsTotalWidth,c.viewportOuterSize.width,c.rowHeight,p,o.showCellVerticalBorder,r,y,w]);return Re(u,"columnResize",E=>{var B,G,j;const{colDef:P,width:C}=E,T=(B=s.current)==null?void 0:B.querySelectorAll(`[data-field="${Ml(P.field)}"]`);if(!T)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const A=v.findIndex(N=>N.field===P.field),L=M(P.field),F=L===nt.LEFT,D=L===nt.RIGHT,I=getComputedStyle(T[0]).getPropertyValue("--width"),$=parseInt(I,10)-C;if(T&&T.forEach(N=>{N.style.setProperty("--width",`${C}px`)}),F){const N=(G=s.current)==null?void 0:G.querySelectorAll(`.${z["cell--pinnedLeft"]}`);N==null||N.forEach(H=>{hx(H)>A&&(H.style.left=`${parseInt(getComputedStyle(H).left,10)-$}px`)})}if(D){const N=(j=s.current)==null?void 0:j.querySelectorAll(`.${z["cell--pinnedRight"]}`);N==null||N.forEach(H=>{hx(H)<A&&(H.style.right=`${parseInt(getComputedStyle(H).right,10)+$}px`)})}}),x.jsx(Rq,O({className:i.root},m,{ref:a,children:R}))}),$q=He(function(t,n){const o=Ue(),r=le(o,Tt),l=(r==null?void 0:r.viewportInnerSize.height)??0,i=Math.ceil(l/r.rowHeight);return x.jsx(Aq,O({},t,{skeletonRowsCount:i,ref:n}))}),Dq=["variant","noRowsVariant","style"],Lq={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>$q,style:{display:"block"}}},zq=He(function(t,n){const{variant:o="linear-progress",noRowsVariant:r="skeleton",style:l}=t,i=be(t,Dq),s=Ue(),a=Se(),u=le(s,Ku),c=Lq[u===0?r:o],d=c.component(a);return x.jsx(Bh,O({style:O({},c.style,l)},i,{ref:n,children:x.jsx(d,{})}))}),Fq=He(function(t,n){const r=Ue().current.getLocaleText("noRowsLabel");return x.jsx(Bh,O({},t,{ref:n,children:r}))}),Bq=He(function(t,n){var a;const o=Se(),r=Ue(),l=le(r,ul),i=()=>{r.current.showPreferences(eo.columns)},s=!o.disableColumnSelector&&l.length>0;return x.jsxs(Bh,O({},t,{ref:n,children:[r.current.getLocaleText("noColumnsOverlayLabel"),s&&x.jsx(o.slots.baseButton,O({size:"small"},(a=o.slotProps)==null?void 0:a.baseButton,{onClick:i,children:r.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),Hq=Z(wl)({maxHeight:"calc(100% + 1px)",flexGrow:1});function Nq(){const e=Ue(),t=Se(),n=le(e,Tn),o=le(e,Ns),r=le(e,HI),{paginationMode:l,loading:i}=t,s=o===-1&&l==="server"&&i,a=f.useMemo(()=>Math.max(0,r-1),[r]),u=f.useMemo(()=>o===-1||n.page<=a?n.page:a,[a,n.page,o]),c=f.useCallback(g=>{e.current.setPageSize(g)},[e]),d=f.useCallback((g,y)=>{e.current.setPage(y)},[e]),h=(g=>{for(let y=0;y<t.pageSizeOptions.length;y+=1){const w=t.pageSizeOptions[y];if(typeof w=="number"){if(w===g)return!0}else if(w.value===g)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return x.jsx(Hq,{as:t.slots.basePagination,count:o,page:u,rowsPerPageOptions:h,rowsPerPage:n.pageSize,onPageChange:d,onRowsPerPageChange:c,disabled:s})}const jq=["className","rowCount","visibleRowCount"],Gq=e=>{const{classes:t}=e;return ve({root:["rowCount"]},tt,t)},_q=ht("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:Me.spacing(0,2)}),Vq=He(function(t,n){const{className:o,rowCount:r,visibleRowCount:l}=t,i=be(t,jq),s=Ue(),a=Se(),u=Gq(a);if(r===0)return null;const c=l<r?s.current.getLocaleText("footerTotalVisibleRows")(l,r):r.toLocaleString();return x.jsxs(_q,O({className:de(u.root,o),ownerState:a},i,{ref:n,children:[s.current.getLocaleText("footerTotalRows")," ",c]}))});function Uq(e,t){return ve(t,tt,e)}const Wq=["selected","rowId","row","index","style","rowHeight","className","visibleColumns","pinnedColumns","offsetLeft","columnsTotalWidth","firstColumnIndex","lastColumnIndex","focusedColumnIndex","isFirstVisible","isLastVisible","isNotVisible","showBottomBorder","scrollbarWidth","gridHasFiller","onClick","onDoubleClick","onMouseEnter","onMouseLeave","onMouseOut","onMouseOver"],qq=Pe(Cn,(e,t)=>t?!!Rh(e):!1),Kq=He(function(t,n){var De;const{selected:o,rowId:r,row:l,index:i,style:s,rowHeight:a,className:u,visibleColumns:c,pinnedColumns:d,offsetLeft:p,columnsTotalWidth:h,firstColumnIndex:g,lastColumnIndex:y,focusedColumnIndex:w,isFirstVisible:m,isLastVisible:b,isNotVisible:v,showBottomBorder:S,scrollbarWidth:M,gridHasFiller:R,onClick:k,onDoubleClick:E,onMouseEnter:P,onMouseLeave:C,onMouseOut:T,onMouseOver:A}=t,L=be(t,Wq),F=Ro(),D=Eh(),I=f.useRef(null),$=Se(),B=eC(F),G=le(F,Lo),j=le(F,za),N=le(F,yi),H=$.rowReordering,_=le(F,qq,H),U=vt(I,n),K=Dr(F,r),X=le(F,nO,{rowId:r,editMode:$.editMode}),oe=$.editMode===Gr.Row,ue=w!==void 0,V=ue&&w>=d.left.length&&w<g,W=ue&&w<c.length-d.right.length&&w>=y,ne=Uq($.classes,{root:["row",o&&"selected",oe&&"row--editable",X&&"row--editing",m&&"row--firstVisible",b&&"row--lastVisible",S&&"row--borderBottom",a==="auto"&&"row--dynamicHeight"]}),J=D.hooks.useGridRowAriaAttributes();f.useLayoutEffect(()=>{if(B.range){const Ee=F.current.getRowIndexRelativeToVisibleRows(r);Ee!==void 0&&F.current.unstable_setLastMeasuredRowIndex(Ee)}if(I.current&&a==="auto")return F.current.observeRowHeight(I.current,r)},[F,B.range,a,r]);const Y=f.useCallback((Ee,Oe)=>ce=>{od(ce)||F.current.getRow(r)&&(F.current.publishEvent(Ee,F.current.getRowParams(r),ce),Oe&&Oe(ce))},[F,r]),ee=f.useCallback(Ee=>{const Oe=sp(Ee.target,z.cell),ce=Oe==null?void 0:Oe.getAttribute("data-field");if(ce){if(ce===Ga.field||ce===Oh||ce==="__reorder__"||F.current.getCellMode(r,ce)===yt.Edit)return;const Ve=F.current.getColumn(ce);if((Ve==null?void 0:Ve.type)===Ph)return}Y("rowClick",k)(Ee)},[F,k,Y,r]),{slots:pe,slotProps:me,disableColumnReorder:ye}=$,te=le(F,()=>O({},F.current.getRowHeightEntry(r)),void 0,Fv),Ce=f.useMemo(()=>{if(v)return{opacity:0,width:0,height:0};const Ee=O({},s,{maxHeight:a==="auto"?"none":a,minHeight:a,"--height":typeof a=="number"?`${a}px`:a});if(te.spacingTop){const Oe=$.rowSpacingType==="border"?"borderTopWidth":"marginTop";Ee[Oe]=te.spacingTop}if(te.spacingBottom){const Oe=$.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let ce=Ee[Oe];typeof ce!="number"&&(ce=parseInt(ce||"0",10)),ce+=te.spacingBottom,Ee[Oe]=ce}return Ee},[v,a,s,te,$.rowSpacingType]),ge=F.current.unstable_applyPipeProcessors("rowClassName",[],r),Te=J(K,i);if(typeof $.getRowClassName=="function"){const Ee=i-(((De=B.range)==null?void 0:De.firstRowIndex)||0),Oe=O({},F.current.getRowParams(r),{isFirstVisible:Ee===0,isLastVisible:Ee===B.rows.length-1,indexRelativeToCurrentPage:Ee});ge.push($.getRowClassName(Oe))}const Q=(Ee,Oe,ce,Ve,et=nt.NONE)=>{const we=F.current.unstable_getCellColSpanInfo(r,ce);if(we!=null&&we.spannedByColSpan)return null;const xe=(we==null?void 0:we.cellProps.width)??Ee.computedWidth,ze=(we==null?void 0:we.cellProps.colSpan)??1,Ze=Vc(et,Ee.computedWidth,ce,N,h,M);if(K.type==="skeletonRow")return x.jsx(pe.skeletonCell,{type:Ee.type,width:xe,height:a,field:Ee.field,align:Ee.align},Ee.field);const Qt=Ee.field==="__reorder__",bn=!(ye||Ee.disableReorder),rr=_&&!G.length&&j<=1,Jt=!(bn||Qt&&rr),$n=et===nt.VIRTUAL,Dn=up(et,Oe),Yn=cp(et,Oe,Ve,$.showCellVerticalBorder,R);return x.jsx(pe.cell,O({column:Ee,width:xe,rowId:r,align:Ee.align||"left",colIndex:ce,colSpan:ze,disableDragEvents:Jt,isNotVisible:$n,pinnedOffset:Ze,pinnedPosition:et,showLeftBorder:Dn,showRightBorder:Yn,row:l,rowNode:K},me==null?void 0:me.cell),Ee.field)},ke=d.left.map((Ee,Oe)=>Q(Ee,Oe,Oe,d.left.length,nt.LEFT)),Ie=d.right.map((Ee,Oe)=>{const ce=c.length-d.right.length+Oe;return Q(Ee,Oe,ce,d.right.length,nt.RIGHT)}),Le=c.length-d.left.length-d.right.length,Ne=[];V&&Ne.push(Q(c[w],w-d.left.length,w,Le,nt.VIRTUAL));for(let Ee=g;Ee<y;Ee+=1){const Oe=c[Ee],ce=Ee-d.left.length;Oe&&Ne.push(Q(Oe,ce,Ee,Le))}W&&Ne.push(Q(c[w],w-d.left.length,w,Le,nt.VIRTUAL));const qe=l?{onClick:ee,onDoubleClick:Y("rowDoubleClick",E),onMouseEnter:Y("rowMouseEnter",P),onMouseLeave:Y("rowMouseLeave",C),onMouseOut:Y("rowMouseOut",T),onMouseOver:Y("rowMouseOver",A)}:null;return x.jsxs("div",O({"data-id":r,"data-rowindex":i,role:"row",className:de(...ge,ne.root,u),style:Ce},Te,qe,L,{ref:U,children:[ke,x.jsx("div",{role:"presentation",className:z.cellOffsetLeft,style:{width:p}}),Ne,x.jsx("div",{role:"presentation",className:de(z.cell,z.cellEmpty)}),Ie,M!==0&&x.jsx(iC,{pinnedRight:d.right.length>0,borderTop:!m})]}))}),Yq=Sl(Kq),Xq=()=>{const e=Ro(),t=Se(),n=le(e,Kt),o=le(e,Wv),r=le(e,Ju),l=le(e,lI),i=t["aria-label"],s=t["aria-labelledby"];return{role:"grid","aria-label":!i&&!s&&t.label?t.label:i,"aria-labelledby":s,"aria-colcount":n.length,"aria-rowcount":r+1+l+o,"aria-multiselectable":Yv(t)}},Qq=()=>{const e=Ro(),t=le(e,Ju);return f.useCallback((n,o)=>{const r={},l=o+t+2;return r["aria-rowindex"]=l,e.current.isRowSelectable(n.id)&&(r["aria-selected"]=e.current.isRowSelected(n.id)),r},[e,t])};function Zq({privateApiRef:e,configuration:t,props:n,children:o}){const r=f.useRef(e.current.getPublicApi());return x.jsx(bI.Provider,{value:t,children:x.jsx(_P.Provider,{value:n,children:x.jsx(qI.Provider,{value:e,children:x.jsx(GP.Provider,{value:r,children:x.jsx(i8,{children:x.jsx(q_,{children:o})})})})})})}const Jq=e=>{const t=f.useRef(null),n=f.useRef(null),o=f.useRef(null),r=f.useRef(null),l=f.useRef(null),i=f.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:o,virtualScrollbarVerticalRef:r,virtualScrollbarHorizontalRef:l,columnHeadersContainerRef:i})},eK=e=>{const t=_n();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=f.useRef(!0);f.useEffect(()=>{n.current?n.current=!1:e.current.setState(o=>O({},o,{isRtl:t}))},[e,t])},tK=T_()&&window.localStorage.getItem("DEBUG")!=null,xc=()=>{},nK={debug:xc,info:xc,warn:xc,error:xc},gx=["debug","info","warn","error"];function mx(e,t,n=console){const o=gx.indexOf(t);if(o===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return gx.reduce((l,i,s)=>(s>=o?l[i]=(...a)=>{const[u,...c]=a;n[i](`MUI X: ${e} - ${u}`,...c)}:l[i]=xc,l),{})}const oK=(e,t)=>{const n=f.useCallback(o=>tK?mx(o,"debug",t.logger):t.logLevel?mx(o,t.logLevel.toString(),t.logger):nK,[t.logLevel,t.logger]);Je(e,{getLogger:n},"private")},rK=(e,t)=>{const n=f.useCallback(o=>{if(t.localeText[o]==null)throw new Error(`Missing translation for key ${o}.`);return t.localeText[o]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function bu(e){"@babel/helpers - typeof";return bu=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},bu(e)}function lK(e,t){if(bu(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(bu(o)!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yu(e){var t=lK(e,"string");return bu(t)=="symbol"?t:t+""}const iK=e=>{const t=f.useRef({}),n=f.useRef(!1),o=f.useCallback(c=>{n.current||!c||(n.current=!0,Object.values(c.appliers).forEach(d=>{d()}),n.current=!1)},[]),r=f.useCallback((c,d,p)=>{t.current[c]||(t.current[c]={processors:new Map,processorsAsArray:[],appliers:{}});const h=t.current[c];return h.processors.get(d)!==p&&(h.processors.set(d,p),h.processorsAsArray=Array.from(t.current[c].processors.values()),o(h)),()=>{t.current[c].processors.delete(d),t.current[c].processorsAsArray=Array.from(t.current[c].processors.values())}},[o]),l=f.useCallback((c,d,p)=>(t.current[c]||(t.current[c]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[c].appliers[d]=p,()=>{const h=t.current[c].appliers,g=be(h,[d].map(yu));t.current[c].appliers=g}),[]),i=f.useCallback(c=>{o(t.current[c])},[o]),s=f.useCallback((...c)=>{const[d,p,h]=c;if(!t.current[d])return p;const g=t.current[d].processorsAsArray;let y=p;for(let w=0;w<g.length;w+=1)y=g[w](y,h);return y},[]),a={registerPipeProcessor:r,registerPipeApplier:l,requestPipeProcessorsApplication:i},u={unstable_applyPipeProcessors:s};Je(e,a,"private"),Je(e,u,"public")},Gt=(e,t,n,o=!0)=>{const r=f.useRef(null),l=f.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=f.useCallback(()=>{r.current=e.current.registerPipeProcessor(t,l.current,n)},[e,n,t]);ed(()=>{o&&i()});const s=f.useRef(!0);f.useEffect(()=>(s.current?s.current=!1:o&&i(),()=>{r.current&&(r.current(),r.current=null)}),[i,o])},sC=(e,t,n)=>{const o=f.useRef(null),r=f.useRef(`mui-${Math.round(Math.random()*1e9)}`),l=f.useCallback(()=>{o.current=e.current.registerPipeApplier(t,r.current,n)},[e,n,t]);ed(()=>{l()});const i=f.useRef(!0);f.useEffect(()=>(i.current?i.current=!1:l(),()=>{o.current&&(o.current(),o.current=null)}),[l])};let ql=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const vu=(e,t,n,o)=>{const r=f.useCallback(()=>{e.current.registerStrategyProcessor(t,n,o)},[e,o,n,t]);ed(()=>{r()});const l=f.useRef(!0);f.useEffect(()=>{l.current?l.current=!1:r()},[r])},Xi="none",bx={dataSourceRowsUpdate:ql.DataSource,rowTreeCreation:ql.RowTree,filtering:ql.RowTree,sorting:ql.RowTree,visibleRowsLookupCreation:ql.RowTree},sK=e=>{const t=f.useRef(new Map),n=f.useRef({}),o=f.useCallback((a,u,c)=>{const d=()=>{const g=n.current[u],y=be(g,[a].map(yu));n.current[u]=y};n.current[u]||(n.current[u]={});const p=n.current[u],h=p[a];return p[a]=c,!h||h===c||a===e.current.getActiveStrategy(bx[u])&&e.current.publishEvent("activeStrategyProcessorChange",u),d},[e]),r=f.useCallback((a,u)=>{const c=e.current.getActiveStrategy(bx[a]);if(c==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const d=n.current[a];if(!d||!d[c])throw new Error(`No processor found for processor "${a}" on strategy "${c}"`);const p=d[c];return p(u)},[e]),l=f.useCallback(a=>{const c=Array.from(t.current.entries()).find(([,d])=>d.group!==a?!1:d.isAvailable());return(c==null?void 0:c[0])??Xi},[]),i=f.useCallback((a,u,c)=>{t.current.set(u,{group:a,isAvailable:c}),e.current.publishEvent("strategyAvailabilityChange")},[e]);Je(e,{registerStrategyProcessor:o,applyStrategyProcessor:r,getActiveStrategy:l,setStrategyAvailability:i},"private")},aK=e=>{const t=f.useRef({}),n=f.useCallback(s=>{t.current[s.stateId]=s},[]),o=f.useCallback((s,a)=>{let u;if(E_(s)?u=s(e.current.state):u=s,e.current.state===u)return!1;const c={current:{state:u}};let d=!1;const p=[];if(Object.keys(t.current).forEach(h=>{const g=t.current[h],y=g.stateSelector(e),w=g.stateSelector(c);w!==y&&(p.push({stateId:g.stateId,hasPropChanged:w!==g.propModel}),g.propModel!==void 0&&w!==g.propModel&&(d=!0))}),p.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${p[0].stateId}, therefore, you're not allowed to update ${p.map(h=>h.stateId).join(", ")} in the same transaction.`);if(d||(e.current.state=u,e.current.publishEvent("stateChange",u),e.current.store.update(u)),p.length===1){const{stateId:h,hasPropChanged:g}=p[0],y=t.current[h],w=y.stateSelector(c);y.propOnChange&&g&&y.propOnChange(w,{reason:a,api:e.current}),d||e.current.publishEvent(y.changeEvent,w,{reason:a})}return!d},[e]),r=f.useCallback((s,a,u)=>e.current.setState(c=>O({},c,{[s]:a(c[s])}),u),[e]),l={setState:o},i={updateControlState:r,registerControlState:n};Je(e,l,"public"),Je(e,i,"private")},cK=(e,t)=>O({},e,{props:{getRowId:t.getRowId}}),uK=(e,t)=>{f.useEffect(()=>{e.current.setState(n=>O({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},dK=(e,t)=>{Jq(e),uK(e,t),eK(e),oK(e,t),aK(e),iK(e),sK(e),rK(e,t),e.current.register("private",{rootProps:t})},yn=(e,t,n)=>{const o=f.useRef(!1);o.current||(t.current.state=e(t.current.state,n,t),o.current=!0)};function zb(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const o=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@"," ","\r"].includes(o[0])?`"'${o}"`:[t.delimiter,` 384 `,"\r",'"'].some(r=>n.includes(r))?`"${o}"`:o}return n}const CO=(e,t)=>{var l,i;const{csvOptions:n,ignoreValueFormatter:o}=t;let r;if(o){const s=e.colDef.type;s==="number"?r=String(e.value):s==="date"||s==="dateTime"?r=(l=e.value)==null?void 0:l.toISOString():typeof((i=e.value)==null?void 0:i.toString)=="function"?r=e.value.toString():r=e.value}else r=e.formattedValue;return zb(r,n)};class Fb{constructor(t){this.options=void 0,this.rowString="",this.isEmpty=!0,this.options=t}addValue(t){this.isEmpty||(this.rowString+=this.options.csvOptions.delimiter),typeof this.options.sanitizeCellValue=="function"?this.rowString+=this.options.sanitizeCellValue(t,this.options.csvOptions):this.rowString+=t,this.isEmpty=!1}getRowString(){return this.rowString}}const fK=({id:e,columns:t,getCellParams:n,csvOptions:o,ignoreValueFormatter:r})=>{const l=new Fb({csvOptions:o});return t.forEach(i=>{const s=n(e,i.field);l.addValue(CO(s,{ignoreValueFormatter:r,csvOptions:o}))}),l.getRowString()};function pK(e){const{columns:t,rowIds:n,csvOptions:o,ignoreValueFormatter:r,apiRef:l}=e,i=n.reduce((d,p)=>`${d}${fK({id:p,columns:t,getCellParams:l.current.getCellParams,ignoreValueFormatter:r,csvOptions:o})}\r 385 `,"").trim();if(!o.includeHeaders)return i;const s=t.filter(d=>d.field!==Ga.field),a=[];if(o.includeColumnGroupsHeaders){const d=l.current.getAllGroupDetails();let p=0;const h=s.reduce((g,y)=>{const w=l.current.getColumnGroupPath(y.field);return g[y.field]=w,p=Math.max(p,w.length),g},{});for(let g=0;g<p;g+=1){const y=new Fb({csvOptions:o,sanitizeCellValue:zb});a.push(y),s.forEach(w=>{const m=(h[w.field]||[])[g],b=d[m];y.addValue(b?b.headerName||b.groupId:"")})}}const u=new Fb({csvOptions:o,sanitizeCellValue:zb});return s.forEach(d=>{u.addValue(d.headerName||d.field)}),a.push(u),`${`${a.map(d=>d.getRowString()).join(`\r 386 `)}\r 387 `}${i}`.trim()}function yx(e){const t=document.createElement("span");t.style.whiteSpace="pre",t.style.userSelect="all",t.style.opacity="0px",t.textContent=e,document.body.appendChild(t);const n=document.createRange();n.selectNode(t);const o=window.getSelection();o.removeAllRanges(),o.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function hK(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{yx(e)}):yx(e)}function gK(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const mK=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,o=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,r=t.clipboardCopyCellDelimiter,l=f.useCallback(i=>{if(!L7(i)||gK(i.target))return;let s="";if(Ah(e)>0)s=e.current.getDataAsCsv({includeHeaders:!1,delimiter:r,shouldAppendQuotes:!1,escapeFormulas:!1});else{const u=io(e);if(u){const c=e.current.getCellParams(u.id,u.field);s=CO(c,{csvOptions:{delimiter:r,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:o})}}s=e.current.unstable_applyPipeProcessors("clipboardCopy",s),s&&(hK(s),e.current.publishEvent("clipboardCopy",s))},[e,o,r]);KI(e,()=>e.current.rootElementRef.current,"keydown",l),xt(e,"clipboardCopy",t.onClipboardCopy)},bK=e=>O({},e,{columnMenu:{open:!1}}),yK=e=>{const t=Mn(e,"useGridColumnMenu"),n=f.useCallback(i=>{const s=cf(e),a={open:!0,field:i};(a.open!==s.open||a.field!==s.field)&&(e.current.setState(c=>c.columnMenu.open&&c.columnMenu.field===i?c:(t.debug("Opening Column Menu"),O({},c,{columnMenu:{open:!0,field:i}}))),e.current.hidePreferences())},[e,t]),o=f.useCallback(()=>{const i=cf(e);if(i.field){const u=xl(e),c=fr(e),d=ul(e);let p=i.field;if(u[p]||(p=d[0]),c[p]===!1){const h=d.filter(y=>y===p?!0:c[y]!==!1),g=h.indexOf(p);p=h[g+1]||h[g-1]}e.current.setColumnHeaderFocus(p)}const s={open:!1,field:void 0};(s.open!==i.open||s.field!==i.field)&&e.current.setState(u=>(t.debug("Hiding Column Menu"),O({},u,{columnMenu:s})))},[e,t]),r=f.useCallback(i=>{t.debug("Toggle Column Menu");const s=cf(e);!s.open||s.field!==i?n(i):o()},[e,t,n,o]);Je(e,{showColumnMenu:n,hideColumnMenu:o,toggleColumnMenu:r},"public"),Re(e,"columnResizeStart",o),Re(e,"virtualScrollerWheel",e.current.hideColumnMenu),Re(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},vK=(e,t,n)=>{var r,l,i;const o=Ms({apiRef:n,columnsToUpsert:t.columns,initialState:(r=t.initialState)==null?void 0:r.columns,columnVisibilityModel:t.columnVisibilityModel??((i=(l=t.initialState)==null?void 0:l.columns)==null?void 0:i.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return O({},e,{columns:o,pinnedColumns:e.pinnedColumns??op})};function CK(e,t){var C,T;const n=Mn(e,"useGridColumns"),o=f.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:fr,changeEvent:"columnVisibilityModelChange"});const r=f.useCallback(A=>{n.debug("Updating columns state."),e.current.setState(vx(A)),e.current.publishEvent("columnsChange",A.orderedFields)},[n,e]),l=f.useCallback(A=>xl(e)[A],[e]),i=f.useCallback(()=>Xo(e),[e]),s=f.useCallback(()=>Kt(e),[e]),a=f.useCallback((A,L=!0)=>(L?Kt(e):Xo(e)).findIndex(D=>D.field===A),[e]),u=f.useCallback(A=>{const L=a(A);return yi(e)[L]},[e,a]),c=f.useCallback(A=>{var F,D;fr(e)!==A&&(e.current.setState(I=>O({},I,{columns:Ms({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:A,keepOnlyColumnsToUpsert:!1})})),(D=(F=e.current).updateRenderContext)==null||D.call(F))},[e]),d=f.useCallback(A=>{if(Ki(e)){e.current.updateNonPivotColumns(A);return}const L=Ms({apiRef:e,columnsToUpsert:A,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});r(L)},[e,r]),p=f.useCallback((A,L)=>{const F=fr(e),D=F[A]??!0;if(L!==D){const I=O({},F,{[A]:L});e.current.setColumnVisibilityModel(I)}},[e]),h=f.useCallback(A=>ul(e).findIndex(F=>F===A),[e]),g=f.useCallback((A,L)=>{const F=ul(e),D=h(A);if(D===L)return;n.debug(`Moving column ${A} to index ${L}`);const I=[...F],$=I.splice(D,1)[0];I.splice(L,0,$),r(O({},gr(e),{orderedFields:I}));const B={column:e.current.getColumn(A),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(A),oldIndex:D};e.current.publishEvent("columnIndexChange",B)},[e,n,r,h]),y=f.useCallback((A,L)=>{n.debug(`Updating column ${A} width to ${L}`);const F=gr(e),D=F.lookup[A],I=O({},D,{width:L,hasBeenResized:!0});r($b(O({},F,{lookup:O({},F.lookup,{[A]:I})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(A),colDef:I,width:L})},[e,n,r]),w={getColumn:l,getAllColumns:i,getColumnIndex:a,getColumnPosition:u,getVisibleColumns:s,getColumnIndexRelativeToVisibleColumns:h,updateColumns:d,setColumnVisibilityModel:c,setColumnVisibility:p,setColumnWidth:y},m={setColumnIndex:g};Je(e,w,"public"),Je(e,m,t.signature===hr.DataGrid?"private":"public");const b=f.useCallback((A,L)=>{var G,j;const F={},D=fr(e);(!L.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((j=(G=t.initialState)==null?void 0:G.columns)==null?void 0:j.columnVisibilityModel)??{}).length>0||Object.keys(D).length>0)&&(F.columnVisibilityModel=D),F.orderedFields=ul(e);const $=Xo(e),B={};return $.forEach(N=>{if(N.hasBeenResized){const H={};WI.forEach(_=>{let U=N[_];U===1/0&&(U=-1),H[_]=U}),B[N.field]=H}}),Object.keys(B).length>0&&(F.dimensions=B),O({},A,{columns:F})},[e,t.columnVisibilityModel,(C=t.initialState)==null?void 0:C.columns]),v=f.useCallback((A,L)=>{var $;const F=($=L.stateToRestore.columns)==null?void 0:$.columnVisibilityModel,D=L.stateToRestore.columns;if(F==null&&D==null)return A;const I=Ms({apiRef:e,columnsToUpsert:[],initialState:D,columnVisibilityModel:F,keepOnlyColumnsToUpsert:!1});return e.current.setState(vx(I)),D!=null&&e.current.publishEvent("columnsChange",I.orderedFields),A},[e]),S=f.useCallback((A,L)=>{var F;if(L===eo.columns){const D=t.slots.columnsPanel;return x.jsx(D,O({},(F=t.slotProps)==null?void 0:F.columnsPanel))}return A},[t.slots.columnsPanel,(T=t.slotProps)==null?void 0:T.columnsPanel]),M=f.useCallback(A=>{const L=Ki(e);return t.disableColumnSelector||L?A:[...A,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);Gt(e,"columnMenu",M),Gt(e,"exportState",b),Gt(e,"restoreState",v),Gt(e,"preferencePanel",S);const R=f.useRef(null);Re(e,"viewportInnerSizeChange",A=>{if(R.current!==A.width){if(R.current=A.width,!Kt(e).some(F=>F.flex&&F.flex>0))return;r($b(gr(e),e.current.getRootDimensions()))}});const E=f.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const A=Ms({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});r(A)},[e,n,r]);sC(e,"hydrateColumns",E);const P=f.useRef(!0);f.useEffect(()=>{if(P.current){P.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),o.current===t.columns)return;const A=Ms({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0});o.current=t.columns,r(A)},[n,e,r,t.columns]),f.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function vx(e){return t=>O({},t,{columns:e})}const SK=(e,t)=>{var n;return O({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},wK=(e,t)=>{var s;const n=Mn(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Hs,changeEvent:"densityChange"});const r={setDensity:Xe(a=>{Hs(e)!==a&&(n.debug(`Set grid density to ${a}`),e.current.setState(c=>O({},c,{density:a})))})};Je(e,r,"public");const l=f.useCallback((a,u)=>{var p;const c=Hs(e);return!u.exportOnlyDirtyModels||t.density!=null||((p=t.initialState)==null?void 0:p.density)!=null?O({},a,{density:c}):a},[e,t.density,(s=t.initialState)==null?void 0:s.density]),i=f.useCallback((a,u)=>{var d;const c=(d=u.stateToRestore)!=null&&d.density?u.stateToRestore.density:Hs(e);return e.current.setState(p=>O({},p,{density:c})),a},[e]);Gt(e,"exportState",l),Gt(e,"restoreState",i),f.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function xK(e,t="csv",n=document.title||"untitled"){const o=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const r=URL.createObjectURL(e),l=document.createElement("a");l.href=r,l.download=o,l.click(),setTimeout(()=>{URL.revokeObjectURL(r)});return}throw new Error("MUI X: exportAs not supported.")}const SO=({apiRef:e,options:t})=>{const n=Xo(e);return t.fields?t.fields.reduce((r,l)=>{const i=n.find(s=>s.field===l);return i&&r.push(i),r},[]):(t.allColumns?n:Kt(e)).filter(r=>!r.disableExport)},wO=({apiRef:e})=>{var a,u;const t=II(e),n=jn(e),o=Ah(e),r=t.filter(c=>n[c].type!=="footer"),l=Fa(e),i=((a=l==null?void 0:l.top)==null?void 0:a.map(c=>c.id))||[],s=((u=l==null?void 0:l.bottom)==null?void 0:u.map(c=>c.id))||[];if(r.unshift(...i),r.push(...s),o>0){const c=kI(e);return r.filter(d=>c.has(d))}return r},MK=(e,t)=>{const n=Mn(e,"useGridCsvExport"),o=t.ignoreValueFormatterDuringExport,r=(typeof o=="object"?o==null?void 0:o.csvExport:o)||!1,l=f.useCallback((u={})=>{n.debug("Get data as CSV");const c=SO({apiRef:e,options:u}),p=(u.getRowsToExport??wO)({apiRef:e});return pK({columns:c,rowIds:p,csvOptions:{delimiter:u.delimiter||",",shouldAppendQuotes:u.shouldAppendQuotes??!0,includeHeaders:u.includeHeaders??!0,includeColumnGroupsHeaders:u.includeColumnGroupsHeaders??!0,escapeFormulas:u.escapeFormulas??!0},ignoreValueFormatter:r,apiRef:e})},[n,e,r]),i=f.useCallback(u=>{n.debug("Export data as CSV");const c=l(u),d=new Blob([u!=null&&u.utf8WithBom?new Uint8Array([239,187,191]):"",c],{type:"text/csv"});xK(d,"csv",u==null?void 0:u.fileName)},[n,l]);Je(e,{getDataAsCsv:l,exportDataAsCsv:i},"public");const a=f.useCallback((u,c)=>{var d;return(d=c.csvOptions)!=null&&d.disableToolbarButton?u:[...u,{component:x.jsx(UW,{options:c.csvOptions}),componentName:"csvExport"}]},[]);Gt(e,"exportMenu",a)};function EK(e,t){const n=[],o=t.querySelectorAll("style, link[rel='stylesheet']");for(let r=0;r<o.length;r+=1){const l=o[r];if(l.tagName==="STYLE"){const i=e.createElement(l.tagName),s=l.sheet;if(s){let a="";for(let u=0;u<s.cssRules.length;u+=1)typeof s.cssRules[u].cssText=="string"&&(a+=`${s.cssRules[u].cssText}\r 388 `);i.appendChild(e.createTextNode(a)),e.head.appendChild(i)}}else if(l.getAttribute("href")){const i=e.createElement(l.tagName);for(let s=0;s<l.attributes.length;s+=1){const a=l.attributes[s];a&&i.setAttribute(a.nodeName,a.nodeValue||"")}n.push(new Promise(s=>{i.addEventListener("load",()=>s())})),e.head.appendChild(i)}}return n}const df=(e,t,n)=>{let o=e.paginationModel;const r=e.rowCount,l=(n==null?void 0:n.pageSize)??o.pageSize,i=(n==null?void 0:n.page)??o.page,s=DI(r,l,i);n&&((n==null?void 0:n.page)!==o.page||(n==null?void 0:n.pageSize)!==o.pageSize)&&(o=n);const a=l===-1?0:LV(o.page,s);return a!==o.page&&(o=O({},o,{page:a})),zI(o.pageSize,t),o},TK=(e,t)=>{var b,v;const n=Mn(e,"useGridPaginationModel"),o=le(e,La),r=f.useRef(vn(e)),l=Math.floor(t.rowHeight*o);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Tn,changeEvent:"paginationModelChange"});const i=f.useCallback(S=>{const M=Tn(e);S!==M.page&&(n.debug(`Setting page to ${S}`),e.current.setPaginationModel({page:S,pageSize:M.pageSize}))},[e,n]),s=f.useCallback(S=>{const M=Tn(e);S!==M.pageSize&&(n.debug(`Setting page size to ${S}`),e.current.setPaginationModel({pageSize:S,page:M.page}))},[e,n]),a=f.useCallback(S=>{const M=Tn(e);S!==M&&(n.debug("Setting 'paginationModel' to",S),e.current.setState(R=>O({},R,{pagination:O({},R.pagination,{paginationModel:df(R.pagination,t.signature,S)})}),"setPaginationModel"))},[e,n,t.signature]);Je(e,{setPage:i,setPageSize:s,setPaginationModel:a},"public");const c=f.useCallback((S,M)=>{var E,P;const R=Tn(e);return!M.exportOnlyDirtyModels||t.paginationModel!=null||((P=(E=t.initialState)==null?void 0:E.pagination)==null?void 0:P.paginationModel)!=null||R.page!==0&&R.pageSize!==DV(t.autoPageSize)?O({},S,{pagination:O({},S.pagination,{paginationModel:R})}):S},[e,t.paginationModel,(v=(b=t.initialState)==null?void 0:b.pagination)==null?void 0:v.paginationModel,t.autoPageSize]),d=f.useCallback((S,M)=>{var k,E;const R=(k=M.stateToRestore.pagination)!=null&&k.paginationModel?O({},LI(t.autoPageSize),(E=M.stateToRestore.pagination)==null?void 0:E.paginationModel):Tn(e);return e.current.setState(P=>O({},P,{pagination:O({},P.pagination,{paginationModel:df(P.pagination,t.signature,R)})}),"stateRestorePreProcessing"),S},[e,t.autoPageSize,t.signature]);Gt(e,"exportState",c),Gt(e,"restoreState",d);const p=()=>{var M;const S=Tn(e);(M=e.current.virtualScrollerRef)!=null&&M.current&&e.current.scrollToIndexes({rowIndex:S.page*S.pageSize})},h=f.useCallback(()=>{if(!t.autoPageSize)return;const S=e.current.getRootDimensions(),M=Math.floor(S.viewportInnerSize.height/l);e.current.setPageSize(M)},[e,t.autoPageSize,l]),g=f.useCallback(S=>{if(S==null)return;const M=Tn(e);if(M.page===0)return;const R=HI(e);M.page>R-1&&e.current.setPage(Math.max(0,R-1))},[e]),y=f.useCallback(()=>{Tn(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),w=f.useCallback(S=>{const M=O({},S,{items:Kv(e)});To(M,r.current)||(r.current=M,y())},[e,y]);Re(e,"viewportInnerSizeChange",h),Re(e,"paginationModelChange",p),Re(e,"rowCountChange",g),Re(e,"sortModelChange",y),Re(e,"filterModelChange",w);const m=f.useRef(!0);f.useEffect(()=>{if(m.current){m.current=!1;return}t.pagination&&e.current.setState(S=>O({},S,{pagination:O({},S.pagination,{paginationModel:df(S.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),f.useEffect(()=>{e.current.setState(S=>{const M=t.pagination===!0;return S.pagination.paginationMode===t.paginationMode||S.pagination.enabled===M?S:O({},S,{pagination:O({},S.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),f.useEffect(h,[h])};function PK(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function IK(e){const t=document.createElement("iframe");return t.style.position="absolute",t.style.width="0px",t.style.height="0px",t.title=e||document.title,t}const OK=(e,t)=>{const n=e.current.rootElementRef.current!==null,o=Mn(e,"useGridPrintExport"),r=f.useRef(null),l=f.useRef(null),i=f.useRef({}),s=f.useRef([]),a=f.useRef(null);f.useEffect(()=>{r.current=Yt(e.current.rootElementRef.current)},[e,n]);const u=f.useCallback((w,m,b)=>new Promise(v=>{const S=SO({apiRef:e,options:{fields:w,allColumns:m}}).map(k=>k.field),M=Xo(e),R={};M.forEach(k=>{R[k.field]=S.includes(k.field)}),b&&(R[Ga.field]=!0),e.current.setColumnVisibilityModel(R),v()}),[e]),c=f.useCallback(w=>{const b=w({apiRef:e}).reduce((v,S)=>{const M=e.current.getRow(S);return M[Sa]||v.push(M),v},[]);e.current.setRows(b)},[e]),d=f.useCallback((w,m)=>{var D,I,$;const b=O({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},m),v=w.contentDocument;if(!v)return;const S=td(e),M=e.current.rootElementRef.current,R=M.cloneNode(!0),k=R.querySelector(`.${z.main}`);k.style.overflow="visible",R.style.contain="size";let E=((D=M.querySelector(`.${z.toolbarContainer}`))==null?void 0:D.offsetHeight)||0,P=((I=M.querySelector(`.${z.footerContainer}`))==null?void 0:I.offsetHeight)||0;const C=R.querySelector(`.${z.footerContainer}`);b.hideToolbar&&(($=R.querySelector(`.${z.toolbarContainer}`))==null||$.remove(),E=0),b.hideFooter&&C&&(C.remove(),P=0);const T=S.currentPageTotalHeight+Jv(e,t)+E+P;R.style.height=`${T}px`,R.style.boxSizing="content-box",!b.hideFooter&&C&&(C.style.position="absolute",C.style.width="100%",C.style.top=`${T-P}px`);const A=document.createElement("div");A.appendChild(R),v.body.style.marginTop="0px",v.body.innerHTML=A.innerHTML;const L=typeof b.pageStyle=="function"?b.pageStyle():b.pageStyle;if(typeof L=="string"){const B=v.createElement("style");B.appendChild(v.createTextNode(L)),v.head.appendChild(B)}b.bodyClassName&&v.body.classList.add(...b.bodyClassName.split(" "));let F=[];if(b.copyStyles){const B=M.getRootNode(),G=B.constructor.name==="ShadowRoot"?B:r.current;F=EK(v,G)}Promise.all(F).then(()=>{w.contentWindow.print()})},[e,r,t]),p=f.useCallback(w=>{var m,b;r.current.body.removeChild(w),e.current.restoreState(l.current||{}),(b=(m=l.current)==null?void 0:m.columns)!=null&&b.columnVisibilityModel||e.current.setColumnVisibilityModel(i.current),e.current.setState(v=>O({},v,{virtualization:a.current})),e.current.setRows(s.current),l.current=null,i.current={},s.current=[]},[e]),g={exportDataAsPrint:f.useCallback(async w=>{if(o.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(l.current=e.current.exportState(),i.current=fr(e),s.current=e.current.getSortedRows().filter(b=>!b[Sa]),t.pagination){const v={page:0,pageSize:Wv(e)};e.current.setState(S=>O({},S,{pagination:O({},S.pagination,{paginationModel:df(S.pagination,"DataGridPro",v)})}))}a.current=e.current.state.virtualization,e.current.setState(b=>O({},b,{virtualization:O({},b.virtualization,{enabled:!1,enabledForColumns:!1})})),await u(w==null?void 0:w.fields,w==null?void 0:w.allColumns,w==null?void 0:w.includeCheckboxes),c((w==null?void 0:w.getRowsToExport)??wO),await PK();const m=IK(w==null?void 0:w.fileName);m.onload=()=>{d(m,w),m.contentWindow.matchMedia("print").addEventListener("change",v=>{v.matches===!1&&p(m)})},r.current.body.appendChild(m)},[t,o,e,d,p,u,c])};Je(e,g,"public");const y=f.useCallback((w,m)=>{var b;return(b=m.printOptions)!=null&&b.disableToolbarButton?w:[...w,{component:x.jsx(WW,{options:m.printOptions}),componentName:"printExport"}]},[]);Gt(e,"exportMenu",y)},RK=(e,t,n)=>{var r,l;const o=t.filterModel??((l=(r=t.initialState)==null?void 0:r.filter)==null?void 0:l.filterModel)??gu();return O({},e,{filter:O({filterModel:Gv(o,t.disableMultipleColumnsFiltering,n)},fI),visibleRowsLookup:{}})},kK=e=>e.filteredRowsLookup;function Cx(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function AK(){return UP(Object.values)}const $K=(e,t)=>{var E,P,C;const n=Mn(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:vn,changeEvent:"filterModelChange"});const o=f.useCallback(()=>{e.current.setState(T=>{const A=vn(e),L=e.current.getFilterState(A),F=O({},T,{filter:O({},T.filter,L)}),D=Cx(e,F);return O({},F,{visibleRowsLookup:D})}),e.current.publishEvent("filteredRowsSet")},[e]),r=f.useCallback((T,A)=>A==null||A.filterable===!1||t.disableColumnFilter?T:[...T,"columnMenuFilterItem"],[t.disableColumnFilter]),l=f.useCallback(T=>{const A=vn(e),L=[...A.items],F=L.findIndex(D=>D.id===T.id);F===-1?L.push(T):L[F]=T,e.current.setFilterModel(O({},A,{items:L}),"upsertFilterItem")},[e]),i=f.useCallback(T=>{const A=vn(e),L=[...A.items];T.forEach(F=>{const D=L.findIndex(I=>I.id===F.id);D===-1?L.push(F):L[D]=F}),e.current.setFilterModel(O({},A,{items:L}),"upsertFilterItems")},[e]),s=f.useCallback(T=>{const A=vn(e),L=A.items.filter(F=>F.id!==T.id);L.length!==A.items.length&&e.current.setFilterModel(O({},A,{items:L}),"deleteFilterItem")},[e]),a=f.useCallback((T,A,L)=>{if(n.debug("Displaying filter panel"),T){const F=vn(e),D=F.items.filter(G=>{var _;if(G.value!==void 0)return!(Array.isArray(G.value)&&G.value.length===0);const N=(_=e.current.getColumn(G.field).filterOperators)==null?void 0:_.find(U=>U.value===G.operator);return!(typeof(N==null?void 0:N.requiresFilterValue)>"u"?!0:N==null?void 0:N.requiresFilterValue)});let I;const $=D.find(G=>G.field===T),B=e.current.getColumn(T);$?I=D:t.disableMultipleColumnsFiltering?I=[Ab({field:T,operator:B.filterOperators[0].value},e)]:I=[...D,Ab({field:T,operator:B.filterOperators[0].value},e)],e.current.setFilterModel(O({},F,{items:I}))}e.current.showPreferences(eo.filters,A,L)},[e,n,t.disableMultipleColumnsFiltering]),u=f.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),c=f.useCallback(T=>{const A=vn(e);A.logicOperator!==T&&e.current.setFilterModel(O({},A,{logicOperator:T}),"changeLogicOperator")},[e]),d=f.useCallback(T=>{const A=vn(e);To(A.quickFilterValues,T)||e.current.setFilterModel(O({},A,{quickFilterValues:[...T]}))},[e]),p=f.useCallback((T,A)=>{vn(e)!==T&&(n.debug("Setting filter model"),e.current.updateControlState("filter",kw(T,t.disableMultipleColumnsFiltering,e),A),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),h=f.useCallback(T=>{const A=Gv(T,t.disableMultipleColumnsFiltering,e),L=t.filterMode==="client"?N_(A,e,t.disableEval):null,F=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:L,filterModel:A??gu()});return O({},F,{filterModel:A})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),g={setFilterLogicOperator:c,unstable_applyFilters:o,deleteFilterItem:s,upsertFilterItem:l,upsertFilterItems:i,setFilterModel:p,showFilterPanel:a,hideFilterPanel:u,setQuickFilterValues:d,ignoreDiacritics:t.ignoreDiacritics,getFilterState:h};Je(e,g,"public");const y=f.useCallback((T,A)=>{var D,I;const L=vn(e);return L.items.forEach($=>{delete $.fromInput}),!A.exportOnlyDirtyModels||t.filterModel!=null||((I=(D=t.initialState)==null?void 0:D.filter)==null?void 0:I.filterModel)!=null||!To(L,gu())?O({},T,{filter:{filterModel:L}}):T},[e,t.filterModel,(P=(E=t.initialState)==null?void 0:E.filter)==null?void 0:P.filterModel]),w=f.useCallback((T,A)=>{var F;const L=(F=A.stateToRestore.filter)==null?void 0:F.filterModel;return L==null?T:(e.current.updateControlState("filter",kw(L,t.disableMultipleColumnsFiltering,e),"restoreState"),O({},T,{callbacks:[...T.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),m=f.useCallback((T,A)=>{var L;if(A===eo.filters){const F=t.slots.filterPanel;return x.jsx(F,O({},(L=t.slotProps)==null?void 0:L.filterPanel))}return T},[t.slots.filterPanel,(C=t.slotProps)==null?void 0:C.filterPanel]),{getRowId:b}=t,v=vr(AK),S=f.useCallback(T=>{var j;if(t.filterMode!=="client"||!T.isRowMatchingFilters||!T.filterModel.items.length&&!((j=T.filterModel.quickFilterValues)!=null&&j.length))return fI;const A=qo(e),L={},{isRowMatchingFilters:F}=T,D={},I={passingFilterItems:null,passingQuickFilterValues:null},$=v.current(e.current.state.rows.dataRowIdToModelLookup);for(let N=0;N<$.length;N+=1){const H=$[N],_=b?b(H):H.id;F(H,void 0,I);const U=G_([I.passingFilterItems],[I.passingQuickFilterValues],T.filterModel,e,D);U||(L[_]=U)}const B="auto-generated-group-footer-root";return A[B]&&(L[B]=!0),{filteredRowsLookup:L,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,b,v]);Gt(e,"columnMenu",r),Gt(e,"exportState",y),Gt(e,"restoreState",w),Gt(e,"preferencePanel",m),vu(e,Xi,"filtering",S),vu(e,Xi,"visibleRowsLookupCreation",kK);const M=f.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const T=vn(e),A=xl(e),L=T.items.filter(F=>F.field&&A[F.field]);L.length<T.items.length&&e.current.setFilterModel(O({},T,{items:L}))},[e,n]),R=f.useCallback(T=>{T==="filtering"&&e.current.unstable_applyFilters()},[e]),k=f.useCallback(()=>{e.current.setState(T=>O({},T,{visibleRowsLookup:Cx(e,T)}))},[e]);Re(e,"rowsSet",o),Re(e,"columnsChange",M),Re(e,"activeStrategyProcessorChange",R),Re(e,"rowExpansionChange",k),Re(e,"columnVisibilityModelChange",()=>{const T=vn(e);T.quickFilterValues&&mI(T)&&e.current.unstable_applyFilters()}),ed(()=>{e.current.unstable_applyFilters()}),Ot(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},DK=e=>O({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),LK=(e,t)=>{const n=Mn(e,"useGridFocus"),o=f.useRef(null),r=e.current.rootElementRef.current!==null,l=f.useCallback((E,P)=>{E&&e.current.getRow(E.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(E.id,E.field),P)},[e]),i=f.useCallback((E,P)=>{const C=io(e);(C==null?void 0:C.id)===E&&(C==null?void 0:C.field)===P||(e.current.setState(T=>(n.debug(`Focusing on cell with id=${E} and field=${P}`),O({},T,{tabIndex:{cell:{id:E,field:P},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:E,field:P},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(E)&&(C&&l(C,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(E,P))))},[e,n,l]),s=f.useCallback((E,P={})=>{const C=io(e);l(C,P),e.current.setState(T=>(n.debug(`Focusing on column header with colIndex=${E}`),O({},T,{tabIndex:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:E},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,l]),a=f.useCallback((E,P={})=>{const C=io(e);l(C,P),e.current.setState(T=>(n.debug(`Focusing on column header filter with colIndex=${E}`),O({},T,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:E},cell:null,columnGroupHeader:null}})))},[e,n,l]),u=f.useCallback((E,P,C={})=>{const T=io(e);T&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(T.id,T.field),C),e.current.setState(A=>O({},A,{tabIndex:{columnGroupHeader:{field:E,depth:P},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:E,depth:P},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),c=f.useCallback(()=>rp(e),[e]),d=f.useCallback((E,P,C)=>{let T=e.current.getColumnIndex(P);const A=Kt(e),L=ii(e,{pagination:t.pagination,paginationMode:t.paginationMode}),F=Fa(e),D=[].concat(F.top||[],L.rows,F.bottom||[]);let I=D.findIndex(j=>j.id===E);C==="right"?T+=1:C==="left"?T-=1:I+=1,T>=A.length?(I+=1,I<D.length&&(T=0)):T<0&&(I-=1,I>=0&&(T=A.length-1)),I=Eo(I,0,D.length-1);const $=D[I];if(!$)return;const B=e.current.unstable_getCellColSpanInfo($.id,T);B&&B.spannedByColSpan&&(C==="left"||C==="below"?T=B.leftVisibleCellIndex:C==="right"&&(T=B.rightVisibleCellIndex)),T=Eo(T,0,A.length-1);const G=A[T];e.current.setCellFocus($.id,G.field)},[e,t.pagination,t.paginationMode]),p=f.useCallback(({id:E,field:P})=>{e.current.setCellFocus(E,P)},[e]),h=f.useCallback((E,P)=>{P.key==="Enter"||P.key==="Tab"||P.key==="Shift"||ap(P.key)||e.current.setCellFocus(E.id,E.field)},[e]),g=f.useCallback(({field:E},P)=>{P.target===P.currentTarget&&e.current.setColumnHeaderFocus(E,P)},[e]),y=f.useCallback(({fields:E,depth:P},C)=>{if(C.target!==C.currentTarget)return;const T=rp(e);T!==null&&T.depth===P&&E.includes(T.field)||e.current.setColumnGroupHeaderFocus(E[0],P,C)},[e]),w=f.useCallback((E,P)=>{var C,T;(T=(C=P.relatedTarget)==null?void 0:C.getAttribute("class"))!=null&&T.includes(z.columnHeader)||(n.debug("Clearing focus"),e.current.setState(A=>O({},A,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),m=f.useCallback(E=>{o.current=E},[]),b=f.useCallback(E=>{const P=o.current;o.current=null;const C=io(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:E,cell:P}))return;if(!C){P&&e.current.setCellFocus(P.id,P.field);return}if((P==null?void 0:P.id)===C.id&&(P==null?void 0:P.field)===C.field)return;const A=e.current.getCellElement(C.id,C.field);A!=null&&A.contains(E.target)||(P?e.current.setCellFocus(P.id,P.field):(e.current.setState(L=>O({},L,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),l(C,E)))},[e,l]),v=f.useCallback(E=>{if(E.cellMode==="view")return;const P=io(e);((P==null?void 0:P.id)!==E.id||(P==null?void 0:P.field)!==E.field)&&e.current.setCellFocus(E.id,E.field)},[e]),S=f.useCallback(()=>{const E=io(e);if(E&&!e.current.getRow(E.id)){const P=E.id;let C=null;if(typeof P<"u"){const T=e.current.getRowElement(P),A=T!=null&&T.dataset.rowindex?Number(T==null?void 0:T.dataset.rowindex):0,L=ii(e,{pagination:t.pagination,paginationMode:t.paginationMode}),F=L.rows[Eo(A,0,L.rows.length-1)];C=(F==null?void 0:F.id)??null}e.current.setState(T=>O({},T,{focus:{cell:C===null?null:{id:C,field:E.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),M=Xe(()=>{const E=io(e);if(!E)return;const P=ii(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(P.rows.find(A=>A.id===E.id))return;const T=Kt(e);e.current.setState(A=>O({},A,{tabIndex:{cell:{id:P.rows[0].id,field:T[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),R={setCellFocus:i,setColumnHeaderFocus:s,setColumnHeaderFilterFocus:a},k={moveFocusToRelativeCell:d,setColumnGroupHeaderFocus:u,getColumnGroupHeaderFocus:c};Je(e,R,"public"),Je(e,k,"private"),f.useEffect(()=>{const E=Yt(e.current.rootElementRef.current);return E.addEventListener("mouseup",b),()=>{E.removeEventListener("mouseup",b)}},[e,r,b]),Re(e,"columnHeaderBlur",w),Re(e,"cellDoubleClick",p),Re(e,"cellMouseDown",m),Re(e,"cellKeyDown",h),Re(e,"cellModeChange",v),Re(e,"columnHeaderFocus",g),Re(e,"columnGroupHeaderFocus",y),Re(e,"rowsSet",S),Re(e,"paginationModelChange",M)},Ug=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:o})=>{if(o){if(e<n)return e+1}else if(!o&&e>t)return e-1;return null},Wg=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:o})=>{if(o){if(e>t)return e-1}else if(!o&&e<n)return e+1;return null};function zK(e,t,n,o){var s,a;const r=XI(e);if(!((s=r[t])!=null&&s[n]))return t;const l=II(e);let i=l.indexOf(t)+(o==="down"?1:-1);for(;i>=0&&i<l.length;){const u=l[i];if(!((a=r[u])!=null&&a[n]))return u;i+=o==="down"?1:-1}return t}const FK=bt(Qu,Fa,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),BK=(e,t)=>{const n=Mn(e,"useGridKeyboardNavigation"),o=_n(),r=t.listView,l=f.useCallback(()=>FK(e),[e]),i=t.signature!=="DataGrid"&&t.headerFilters,s=f.useCallback((m,b,v="left",S="up")=>{const M=vi(e),R=e.current.unstable_getCellColSpanInfo(b,m);R&&R.spannedByColSpan&&(v==="left"?m=R.leftVisibleCellIndex:v==="right"&&(m=R.rightVisibleCellIndex));const k=r?Ma(e).field:Ba(e)[m],E=zK(e,b,k,S),P=M.findIndex(C=>C.id===E);n.debug(`Navigating to cell row ${P}, col ${m}`),e.current.scrollToIndexes({colIndex:m,rowIndex:P}),e.current.setCellFocus(E,k)},[e,n,r]),a=f.useCallback((m,b)=>{n.debug(`Navigating to header col ${m}`),e.current.scrollToIndexes({colIndex:m});const v=e.current.getVisibleColumns()[m].field;e.current.setColumnHeaderFocus(v,b)},[e,n]),u=f.useCallback((m,b)=>{n.debug(`Navigating to header filter col ${m}`),e.current.scrollToIndexes({colIndex:m});const v=e.current.getVisibleColumns()[m].field;e.current.setColumnHeaderFilterFocus(v,b)},[e,n]),c=f.useCallback((m,b,v)=>{n.debug(`Navigating to header col ${m}`),e.current.scrollToIndexes({colIndex:m});const{field:S}=e.current.getVisibleColumns()[m];e.current.setColumnGroupHeaderFocus(S,b,v)},[e,n]),d=f.useCallback(m=>{var b;return(b=l()[m])==null?void 0:b.id},[l]),p=f.useCallback((m,b)=>{const v=b.currentTarget.querySelector(`.${z.columnHeaderTitleContainerContent}`);if(!!v&&v.contains(b.target)&&m.field!==Ga.field)return;const M=l(),R=e.current.getViewportPageSize(),k=m.field?e.current.getColumnIndex(m.field):0,E=M.length>0?0:null,P=M.length-1,C=0,T=Kt(e).length-1,A=Ju(e);let L=!0;switch(b.key){case"ArrowDown":{i?u(k,b):E!==null&&s(k,d(E));break}case"ArrowRight":{const F=Wg({currentColIndex:k,firstColIndex:C,lastColIndex:T,isRtl:o});F!==null&&a(F,b);break}case"ArrowLeft":{const F=Ug({currentColIndex:k,firstColIndex:C,lastColIndex:T,isRtl:o});F!==null&&a(F,b);break}case"ArrowUp":{A>0&&c(k,A-1,b);break}case"PageDown":{E!==null&&P!==null&&s(k,d(Math.min(E+R,P)));break}case"Home":{a(C,b);break}case"End":{a(T,b);break}case"Enter":{(b.ctrlKey||b.metaKey)&&e.current.toggleColumnMenu(m.field);break}case" ":break;default:L=!1}L&&b.preventDefault()},[e,l,i,u,s,d,o,a,c]),h=f.useCallback((m,b)=>{const v=mU(e)===m.field,S=bU(e)===m.field;if(v||S||!ap(b.key))return;const M=l(),R=e.current.getViewportPageSize(),k=m.field?e.current.getColumnIndex(m.field):0,E=0,P=M.length-1,C=0,T=Kt(e).length-1;let A=!0;switch(b.key){case"ArrowDown":{const L=d(E);L!=null&&s(k,L);break}case"ArrowRight":{const L=Wg({currentColIndex:k,firstColIndex:C,lastColIndex:T,isRtl:o});L!==null&&u(L,b);break}case"ArrowLeft":{const L=Ug({currentColIndex:k,firstColIndex:C,lastColIndex:T,isRtl:o});L!==null?u(L,b):e.current.setColumnHeaderFilterFocus(m.field,b);break}case"ArrowUp":{a(k,b);break}case"PageDown":{P!==null&&s(k,d(Math.min(E+R,P)));break}case"Home":{u(C,b);break}case"End":{u(T,b);break}case" ":break;default:A=!1}A&&b.preventDefault()},[e,l,u,o,a,s,d]),g=f.useCallback((m,b)=>{const v=rp(e);if(v===null)return;const{field:S,depth:M}=v,{fields:R,depth:k,maxDepth:E}=m,P=l(),C=e.current.getViewportPageSize(),T=e.current.getColumnIndex(S),A=S?e.current.getColumnIndex(S):0,L=0,F=P.length-1,D=0,I=Kt(e).length-1;let $=!0;switch(b.key){case"ArrowDown":{k===E-1?a(T,b):c(T,M+1,b);break}case"ArrowUp":{k>0&&c(T,M-1,b);break}case"ArrowRight":{const B=R.length-R.indexOf(S)-1;T+B+1<=I&&c(T+B+1,M,b);break}case"ArrowLeft":{const B=R.indexOf(S);T-B-1>=D&&c(T-B-1,M,b);break}case"PageDown":{F!==null&&s(A,d(Math.min(L+C,F)));break}case"Home":{c(D,M,b);break}case"End":{c(I,M,b);break}case" ":break;default:$=!1}$&&b.preventDefault()},[e,l,a,c,s,d]),y=f.useCallback((m,b)=>{if(od(b))return;const v=e.current.getCellParams(m.id,m.field);if(v.cellMode===yt.Edit||!ap(b.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:b,cell:v}))return;const M=l();if(M.length===0)return;const R=e.current.getViewportPageSize(),k=r?()=>0:e.current.getColumnIndex,E=m.field?k(m.field):0,P=M.findIndex(I=>I.id===m.id),C=0,T=M.length-1,A=0,F=(r?[Ma(e)]:Kt(e)).length-1;let D=!0;switch(b.key){case"ArrowDown":{P<T&&s(E,d(P+1),o?"right":"left","down");break}case"ArrowUp":{P>C?s(E,d(P-1)):i?u(E,b):a(E,b);break}case"ArrowRight":{const I=Wg({currentColIndex:E,firstColIndex:A,lastColIndex:F,isRtl:o});I!==null&&s(I,d(P),o?"left":"right");break}case"ArrowLeft":{const I=Ug({currentColIndex:E,firstColIndex:A,lastColIndex:F,isRtl:o});I!==null&&s(I,d(P),o?"right":"left");break}case"Tab":{b.shiftKey&&E>A?s(E-1,d(P),"left"):!b.shiftKey&&E<F&&s(E+1,d(P),"right");break}case" ":{if(m.field===Oh)break;const $=m.colDef;if($&&($.field===iV||B9($.field)))break;!b.shiftKey&&P<T&&s(E,d(Math.min(P+R,T)));break}case"PageDown":{P<T&&s(E,d(Math.min(P+R,T)));break}case"PageUp":{const I=Math.max(P-R,C);I!==P&&I>=C?s(E,d(I)):a(E,b);break}case"Home":{b.ctrlKey||b.metaKey||b.shiftKey?s(A,d(C)):s(A,d(P));break}case"End":{b.ctrlKey||b.metaKey||b.shiftKey?s(F,d(T)):s(F,d(P));break}default:D=!1}D&&b.preventDefault()},[e,l,o,s,d,i,u,a,r]),w=f.useCallback((m,{event:b})=>b.key===" "?!1:m,[]);Gt(e,"canStartEditing",w),Re(e,"columnHeaderKeyDown",p),Re(e,"headerFilterKeyDown",h),Re(e,"columnGroupHeaderKeyDown",g),Re(e,"cellKeyDown",y)},HK=(e,t)=>{var g,y;const n=Mn(e,"useGridRowCount"),o=le(e,qv),r=le(e,Ns),l=le(e,wc),i=le(e,Tn),s=vr(()=>Tn(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Ns,changeEvent:"rowCountChange"});const u={setRowCount:f.useCallback(w=>{r!==w&&(n.debug("Setting 'rowCount' to",w),e.current.setState(m=>O({},m,{pagination:O({},m.pagination,{rowCount:w})})))},[e,n,r])};Je(e,u,"public");const c=f.useCallback((w,m)=>{var S,M;const b=Ns(e);return!m.exportOnlyDirtyModels||t.rowCount!=null||((M=(S=t.initialState)==null?void 0:S.pagination)==null?void 0:M.rowCount)!=null?O({},w,{pagination:O({},w.pagination,{rowCount:b})}):w},[e,t.rowCount,(y=(g=t.initialState)==null?void 0:g.pagination)==null?void 0:y.rowCount]),d=f.useCallback((w,m)=>{var v;const b=(v=m.stateToRestore.pagination)!=null&&v.rowCount?m.stateToRestore.pagination.rowCount:Ns(e);return e.current.setState(S=>O({},S,{pagination:O({},S.pagination,{rowCount:b})})),w},[e]);Gt(e,"exportState",c),Gt(e,"restoreState",d);const p=f.useCallback(w=>{t.paginationMode==="client"||!s.current||w.pageSize!==s.current&&(s.current=w.pageSize,r===-1&&e.current.setPage(0))},[t.paginationMode,s,r,e]);Re(e,"paginationModelChange",p),f.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(o):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,o,t.rowCount]);const h=l.hasNextPage===!1;f.useEffect(()=>{h&&r===-1&&e.current.setRowCount(i.pageSize*i.page+o)},[e,o,h,r,i])},NK=(e,t)=>{var a,u;const n=Mn(e,"useGridPaginationMeta"),o=le(e,wc);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:wc,changeEvent:"paginationMetaChange"});const l={setPaginationMeta:f.useCallback(c=>{o!==c&&(n.debug("Setting 'paginationMeta' to",c),e.current.setState(d=>O({},d,{pagination:O({},d.pagination,{meta:c})})))},[e,n,o])};Je(e,l,"public");const i=f.useCallback((c,d)=>{var g,y;const p=wc(e);return!d.exportOnlyDirtyModels||t.paginationMeta!=null||((y=(g=t.initialState)==null?void 0:g.pagination)==null?void 0:y.meta)!=null?O({},c,{pagination:O({},c.pagination,{meta:p})}):c},[e,t.paginationMeta,(u=(a=t.initialState)==null?void 0:a.pagination)==null?void 0:u.meta]),s=f.useCallback((c,d)=>{var h;const p=(h=d.stateToRestore.pagination)!=null&&h.meta?d.stateToRestore.pagination.meta:wc(e);return e.current.setState(g=>O({},g,{pagination:O({},g.pagination,{meta:p})})),c},[e]);Gt(e,"exportState",i),Gt(e,"restoreState",s),f.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},jK=(e,t)=>{var l,i,s,a,u,c,d;const n=O({},LI(t.autoPageSize),t.paginationModel??((i=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:i.paginationModel));zI(n.pageSize,t.signature);const o=t.rowCount??((a=(s=t.initialState)==null?void 0:s.pagination)==null?void 0:a.rowCount)??(t.paginationMode==="client"?(u=e.rows)==null?void 0:u.totalRowCount:void 0),r=t.paginationMeta??((d=(c=t.initialState)==null?void 0:c.pagination)==null?void 0:d.meta)??{};return O({},e,{pagination:O({},e.pagination,{paginationModel:n,rowCount:o,meta:r,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},GK=(e,t)=>{NK(e,t),TK(e,t),HK(e,t)},_K=(e,t)=>{var n;return O({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},VK=(e,t)=>{var s;const n=Mn(e,"useGridPreferencesPanel"),o=f.useCallback(()=>{e.current.setState(a=>{if(!a.preferencePanel.open)return a;n.debug("Hiding Preferences Panel");const u=Yi(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:u.openedPanelValue}),O({},a,{preferencePanel:{open:!1}})})},[e,n]),r=f.useCallback((a,u,c)=>{n.debug("Opening Preferences Panel"),e.current.setState(d=>O({},d,{preferencePanel:O({},d.preferencePanel,{open:!0,openedPanelValue:a,panelId:u,labelId:c})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:a})},[n,e]);Je(e,{showPreferences:r,hidePreferences:o},"public");const l=f.useCallback((a,u)=>{var p;const c=Yi(e);return!u.exportOnlyDirtyModels||((p=t.initialState)==null?void 0:p.preferencePanel)!=null||c.open?O({},a,{preferencePanel:c}):a},[e,(s=t.initialState)==null?void 0:s.preferencePanel]),i=f.useCallback((a,u)=>{const c=u.stateToRestore.preferencePanel;return c!=null&&e.current.setState(d=>O({},d,{preferencePanel:c})),a},[e]);Gt(e,"exportState",l),Gt(e,"restoreState",i)},Bb=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},UK=["id","field"],WK=["id","field"],qK=(e,t)=>{const[n,o]=f.useState({}),r=f.useRef(n),l=f.useRef({}),{processRowUpdate:i,onProcessRowUpdateError:s,cellModesModel:a,onCellModesModelChange:u}=t,c=D=>(...I)=>{t.editMode===Gr.Cell&&D(...I)},d=f.useCallback((D,I)=>{const $=e.current.getCellParams(D,I);if(!e.current.isCellEditable($))throw new Error(`MUI X: The cell with id=${D} and field=${I} is not editable.`)},[e]),p=f.useCallback((D,I,$)=>{if(e.current.getCellMode(D,I)!==$)throw new Error(`MUI X: The cell with id=${D} and field=${I} is not in ${$} mode.`)},[e]),h=f.useCallback((D,I)=>{if(!D.isEditable||D.cellMode===yt.Edit)return;const $=O({},D,{reason:Zr.cellDoubleClick});e.current.publishEvent("cellEditStart",$,I)},[e]),g=f.useCallback((D,I)=>{if(D.cellMode===yt.View||e.current.getCellMode(D.id,D.field)===yt.View)return;const $=O({},D,{reason:cr.cellFocusOut});e.current.publishEvent("cellEditStop",$,I)},[e]),y=f.useCallback((D,I)=>{if(D.cellMode===yt.Edit){if(I.which===229)return;let $;if(I.key==="Escape"?$=cr.escapeKeyDown:I.key==="Enter"?$=cr.enterKeyDown:I.key==="Tab"&&($=I.shiftKey?cr.shiftTabKeyDown:cr.tabKeyDown,I.preventDefault()),$){const B=O({},D,{reason:$});e.current.publishEvent("cellEditStop",B,I)}}else if(D.isEditable){let $;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:I,cellParams:D,editMode:"cell"}))return;if(hO(I)?$=Zr.printableKeyDown:mO(I)?$=Zr.pasteKeyDown:I.key==="Enter"?$=Zr.enterKeyDown:(I.key==="Backspace"||I.key==="Delete")&&($=Zr.deleteKeyDown),$){const G=O({},D,{reason:$,key:I.key});e.current.publishEvent("cellEditStart",G,I)}}},[e]),w=f.useCallback(D=>{const{id:I,field:$,reason:B}=D,G={id:I,field:$};(B===Zr.printableKeyDown||B===Zr.deleteKeyDown||B===Zr.pasteKeyDown)&&(G.deleteValue=!0),e.current.startCellEditMode(G)},[e]),m=f.useCallback(D=>{const{id:I,field:$,reason:B}=D;e.current.runPendingEditCellValueMutation(I,$);let G;B===cr.enterKeyDown?G="below":B===cr.tabKeyDown?G="right":B===cr.shiftTabKeyDown&&(G="left");const j=B==="escapeKeyDown";e.current.stopCellEditMode({id:I,field:$,ignoreModifications:j,cellToFocusAfter:G})},[e]),b=D=>async(...I)=>{var $;if(D){const{id:B,field:G}=I[0];(($=e.current.state.editRows[B][G])==null?void 0:$.error)||D(...I)}};Re(e,"cellDoubleClick",c(h)),Re(e,"cellFocusOut",c(g)),Re(e,"cellKeyDown",c(y)),Re(e,"cellEditStart",c(w)),Re(e,"cellEditStop",c(m)),xt(e,"cellEditStart",t.onCellEditStart),xt(e,"cellEditStop",b(t.onCellEditStop));const v=f.useCallback((D,I)=>{const $=Cn(e);return $[D]&&$[D][I]?yt.Edit:yt.View},[e]),S=Xe(D=>{const I=D!==t.cellModesModel;u&&I&&u(D,{api:e.current}),!(t.cellModesModel&&I)&&(o(D),r.current=D,e.current.publishEvent("cellModesModelChange",D))}),M=f.useCallback((D,I,$)=>{const B=O({},r.current);if($!==null)B[D]=O({},B[D],{[I]:O({},$)});else{const G=B[D],j=be(G,[I].map(yu));B[D]=j,Object.keys(B[D]).length===0&&delete B[D]}S(B)},[S]),R=f.useCallback((D,I,$)=>{e.current.setState(B=>{const G=O({},B.editRows);return $!==null?G[D]=O({},G[D],{[I]:O({},$)}):(delete G[D][I],Object.keys(G[D]).length===0&&delete G[D]),O({},B,{editRows:G})})},[e]),k=f.useCallback(D=>{const{id:I,field:$}=D,B=be(D,UK);d(I,$),p(I,$,yt.View),M(I,$,O({mode:yt.Edit},B))},[d,p,M]),E=Xe(async D=>{const{id:I,field:$,deleteValue:B,initialValue:G}=D,j=e.current.getCellValue(I,$);let N=j;B?N=Bb(e.current.getColumn($)):G&&(N=G);const H=e.current.getColumn($),_=!!H.preProcessEditCellProps&&B;let U={value:N,error:!1,isProcessingProps:_};if(R(I,$,U),e.current.setCellFocus(I,$),_&&(U=await Promise.resolve(H.preProcessEditCellProps({id:I,row:e.current.getRow(I),props:U,hasChanged:N!==j})),e.current.getCellMode(I,$)===yt.Edit)){const K=Cn(e);R(I,$,O({},U,{value:K[I][$].value,isProcessingProps:!1}))}}),P=f.useCallback(D=>{const{id:I,field:$}=D,B=be(D,WK);p(I,$,yt.Edit),M(I,$,O({mode:yt.View},B))},[p,M]),C=Xe(async D=>{var X;const{id:I,field:$,ignoreModifications:B,cellToFocusAfter:G="none"}=D;p(I,$,yt.Edit),e.current.runPendingEditCellValueMutation(I,$);const j=()=>{R(I,$,null),M(I,$,null),G!=="none"&&e.current.moveFocusToRelativeCell(I,$,G)};if(B){j();return}const N=Cn(e),{error:H,isProcessingProps:_}=N[I][$],U=e.current.getRow(I);if(H||_){l.current[I][$].mode=yt.Edit,M(I,$,{mode:yt.Edit});return}const K=e.current.getRowWithUpdatedValuesFromCellEditing(I,$);if((X=t.dataSource)!=null&&X.updateRow){if(To(U,K)){j();return}const oe=()=>{l.current[I][$].mode=yt.Edit,M(I,$,{mode:yt.Edit})},ue={rowId:I,updatedRow:K,previousRow:U};try{await e.current.dataSource.editRow(ue),j()}catch{oe()}}else if(i){const oe=ue=>{l.current[I][$].mode=yt.Edit,M(I,$,{mode:yt.Edit}),s&&s(ue)};try{Promise.resolve(i(K,U,{rowId:I})).then(ue=>{e.current.updateRows([ue]),j()}).catch(oe)}catch(ue){oe(ue)}}else e.current.updateRows([K]),j()}),T=f.useCallback(async D=>{var X,oe;const{id:I,field:$,value:B,debounceMs:G,unstable_skipValueParser:j}=D;d(I,$),p(I,$,yt.Edit);const N=e.current.getColumn($),H=e.current.getRow(I);let _=B;N.valueParser&&!j&&(_=N.valueParser(B,H,N,e));let U=Cn(e),K=O({},U[I][$],{value:_,changeReason:G?"debouncedSetEditCellValue":"setEditCellValue"});if(N.preProcessEditCellProps){const ue=B!==U[I][$].value;K=O({},K,{isProcessingProps:!0}),R(I,$,K),K=await Promise.resolve(N.preProcessEditCellProps({id:I,row:H,props:K,hasChanged:ue}))}return e.current.getCellMode(I,$)===yt.View?!1:(U=Cn(e),K=O({},K,{isProcessingProps:!1}),K.value=N.preProcessEditCellProps?U[I][$].value:_,R(I,$,K),U=Cn(e),!((oe=(X=U[I])==null?void 0:X[$])!=null&&oe.error))},[e,d,p,R]),A=f.useCallback((D,I)=>{const $=e.current.getColumn(I),B=Cn(e),G=e.current.getRow(D);if(!B[D]||!B[D][I])return e.current.getRow(D);const{value:j}=B[D][I];return $.valueSetter?$.valueSetter(j,G,$,e):O({},G,{[I]:j})},[e]),L={getCellMode:v,startCellEditMode:k,stopCellEditMode:P},F={setCellEditingEditCellValue:T,getRowWithUpdatedValuesFromCellEditing:A};Je(e,L,"public"),Je(e,F,"private"),f.useEffect(()=>{a&&S(a)},[a,S]),Ot(()=>{const D=qo(e),I=l.current;l.current=cI(n),Object.entries(n).forEach(([$,B])=>{Object.entries(B).forEach(([G,j])=>{var _,U;const N=((U=(_=I[$])==null?void 0:_[G])==null?void 0:U.mode)||yt.View,H=D[$]?e.current.getRowId(D[$]):$;j.mode===yt.Edit&&N===yt.View?E(O({id:H,field:G},j)):j.mode===yt.View&&N===yt.Edit&&C(O({id:H,field:G},j))})})},[e,n,E,C])},KK=["id"],YK=["id"],XK=(e,t)=>{const[n,o]=f.useState({}),r=f.useRef(n),l=f.useRef({}),i=f.useRef({}),s=f.useRef(void 0),a=f.useRef(null),{processRowUpdate:u,onProcessRowUpdateError:c,rowModesModel:d,onRowModesModelChange:p}=t,h=j=>(...N)=>{t.editMode===Gr.Row&&j(...N)},g=f.useCallback((j,N)=>{const H=e.current.getCellParams(j,N);if(!e.current.isCellEditable(H))throw new Error(`MUI X: The cell with id=${j} and field=${N} is not editable.`)},[e]),y=f.useCallback((j,N)=>{if(e.current.getRowMode(j)!==N)throw new Error(`MUI X: The row with id=${j} is not in ${N} mode.`)},[e]),w=f.useCallback(j=>{const N=Cn(e);return Object.values(N[j]).some(H=>H.error)},[e]),m=f.useCallback((j,N)=>{if(!j.isEditable||e.current.getRowMode(j.id)===At.Edit)return;const H=e.current.getRowParams(j.id),_=O({},H,{field:j.field,reason:Ll.cellDoubleClick});e.current.publishEvent("rowEditStart",_,N)},[e]),b=f.useCallback(j=>{a.current=j},[]),v=f.useCallback((j,N)=>{j.isEditable&&e.current.getRowMode(j.id)!==At.View&&(a.current=null,s.current=setTimeout(()=>{var H;if(((H=a.current)==null?void 0:H.id)!==j.id){if(!e.current.getRow(j.id)||e.current.getRowMode(j.id)===At.View||w(j.id))return;const _=e.current.getRowParams(j.id),U=O({},_,{field:j.field,reason:Er.rowFocusOut});e.current.publishEvent("rowEditStop",U,N)}}))},[e,w]);f.useEffect(()=>()=>{clearTimeout(s.current)},[]);const S=f.useCallback((j,N)=>{if(j.cellMode===At.Edit){if(N.which===229)return;let H;if(N.key==="Escape")H=Er.escapeKeyDown;else if(N.key==="Enter")H=Er.enterKeyDown;else if(N.key==="Tab"){const _=Ba(e).filter(U=>e.current.getColumn(U).type===Ph?!0:e.current.isCellEditable(e.current.getCellParams(j.id,U)));if(N.shiftKey?j.field===_[0]&&(H=Er.shiftTabKeyDown):j.field===_[_.length-1]&&(H=Er.tabKeyDown),N.preventDefault(),!H){const U=_.findIndex(X=>X===j.field),K=_[N.shiftKey?U-1:U+1];e.current.setCellFocus(j.id,K)}}if(H){if(H!==Er.escapeKeyDown&&w(j.id))return;const _=O({},e.current.getRowParams(j.id),{reason:H,field:j.field});e.current.publishEvent("rowEditStop",_,N)}}else if(j.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:j,editMode:"row"}))return;if(hO(N)||mO(N)?H=Ll.printableKeyDown:N.key==="Enter"?H=Ll.enterKeyDown:(N.key==="Backspace"||N.key==="Delete")&&(H=Ll.deleteKeyDown),H){const U=e.current.getRowParams(j.id),K=O({},U,{field:j.field,reason:H});e.current.publishEvent("rowEditStart",K,N)}}},[e,w]),M=f.useCallback(j=>{const{id:N,field:H,reason:_}=j,U={id:N,fieldToFocus:H};(_===Ll.printableKeyDown||_===Ll.deleteKeyDown)&&(U.deleteValue=!!H),e.current.startRowEditMode(U)},[e]),R=f.useCallback(j=>{const{id:N,reason:H,field:_}=j;e.current.runPendingEditCellValueMutation(N);let U;H===Er.enterKeyDown?U="below":H===Er.tabKeyDown?U="right":H===Er.shiftTabKeyDown&&(U="left");const K=H==="escapeKeyDown";e.current.stopRowEditMode({id:N,ignoreModifications:K,field:_,cellToFocusAfter:U})},[e]);Re(e,"cellDoubleClick",h(m)),Re(e,"cellFocusIn",h(b)),Re(e,"cellFocusOut",h(v)),Re(e,"cellKeyDown",h(S)),Re(e,"rowEditStart",h(M)),Re(e,"rowEditStop",h(R)),xt(e,"rowEditStart",t.onRowEditStart),xt(e,"rowEditStop",t.onRowEditStop);const k=f.useCallback(j=>nO(e,{rowId:j,editMode:t.editMode})?At.Edit:At.View,[e,t.editMode]),E=Xe(j=>{const N=j!==t.rowModesModel;p&&N&&p(j,{api:e.current}),!(t.rowModesModel&&N)&&(o(j),r.current=j,e.current.publishEvent("rowModesModelChange",j))}),P=f.useCallback((j,N)=>{const H=O({},r.current);N!==null?H[j]=O({},N):delete H[j],E(H)},[E]),C=f.useCallback((j,N)=>{e.current.setState(H=>{const _=O({},H.editRows);return N!==null?_[j]=N:delete _[j],O({},H,{editRows:_})})},[e]),T=f.useCallback((j,N,H)=>{e.current.setState(_=>{const U=O({},_.editRows);return H!==null?U[j]=O({},U[j],{[N]:O({},H)}):(delete U[j][N],Object.keys(U[j]).length===0&&delete U[j]),O({},_,{editRows:U})})},[e]),A=f.useCallback(j=>{const{id:N}=j,H=be(j,KK);y(N,At.View),P(N,O({mode:At.Edit},H))},[y,P]),L=Xe(j=>{const{id:N,fieldToFocus:H,deleteValue:_,initialValue:U}=j,K=e.current.getRow(N),X=Xo(e),oe=X.reduce((ue,V)=>{const W=V.field;if(!e.current.getCellParams(N,W).isEditable)return ue;const J=e.current.getColumn(W);let Y=e.current.getCellValue(N,W);return H===W&&(_||U)&&(_?Y=Bb(J):U&&(Y=U)),ue[W]={value:Y,error:!1,isProcessingProps:J.editable&&!!J.preProcessEditCellProps&&_},ue},{});i.current[N]=K,C(N,oe),H&&e.current.setCellFocus(N,H),X.filter(ue=>ue.editable&&!!ue.preProcessEditCellProps&&_).forEach(ue=>{const V=ue.field,W=e.current.getCellValue(N,V),ne=_?Bb(ue):U??W;Promise.resolve(ue.preProcessEditCellProps({id:N,row:K,props:oe[V],hasChanged:ne!==W})).then(J=>{if(e.current.getRowMode(N)===At.Edit){const Y=Cn(e);T(N,V,O({},J,{value:Y[N][V].value,isProcessingProps:!1}))}})})}),F=f.useCallback(j=>{const{id:N}=j,H=be(j,YK);y(N,At.Edit),P(N,O({mode:At.View},H))},[y,P]),D=Xe(async j=>{var W;const{id:N,ignoreModifications:H,field:_,cellToFocusAfter:U="none"}=j;e.current.runPendingEditCellValueMutation(N);const K=()=>{U!=="none"&&_&&e.current.moveFocusToRelativeCell(N,_,U),C(N,null),P(N,null),delete i.current[N]};if(H){K();return}const X=Cn(e),oe=i.current[N];if(Object.values(X[N]).some(ne=>ne.isProcessingProps)){l.current[N].mode=At.Edit;return}if(w(N)){l.current[N].mode=At.Edit,P(N,{mode:At.Edit});return}const V=e.current.getRowWithUpdatedValuesFromRowEditing(N);if((W=t.dataSource)!=null&&W.updateRow){if(To(oe,V)){K();return}const ne=()=>{l.current[N].mode=At.Edit,P(N,{mode:At.Edit})},J={rowId:N,updatedRow:V,previousRow:oe};try{await e.current.dataSource.editRow(J),K()}catch{ne()}}else if(u){const ne=J=>{l.current[N]&&(l.current[N].mode=At.Edit,P(N,{mode:At.Edit})),c&&c(J)};try{Promise.resolve(u(V,oe,{rowId:N})).then(J=>{e.current.updateRows([J]),K()}).catch(ne)}catch(J){ne(J)}}else e.current.updateRows([V]),K()}),I=f.useCallback(j=>{const{id:N,field:H,value:_,debounceMs:U,unstable_skipValueParser:K}=j;g(N,H);const X=e.current.getColumn(H),oe=e.current.getRow(N);let ue=_;X.valueParser&&!K&&(ue=X.valueParser(_,oe,X,e));let V=Cn(e),W=O({},V[N][H],{value:ue,changeReason:U?"debouncedSetEditCellValue":"setEditCellValue"});return X.preProcessEditCellProps||T(N,H,W),new Promise(ne=>{const J=[];if(X.preProcessEditCellProps){const Y=W.value!==V[N][H].value;W=O({},W,{isProcessingProps:!0}),T(N,H,W);const ee=V[N],pe=be(ee,[H].map(yu)),me=Promise.resolve(X.preProcessEditCellProps({id:N,row:oe,props:W,hasChanged:Y,otherFieldsProps:pe})).then(ye=>{if(e.current.getRowMode(N)===At.View){ne(!1);return}V=Cn(e),ye=O({},ye,{isProcessingProps:!1}),ye.value=X.preProcessEditCellProps?V[N][H].value:ue,T(N,H,ye)});J.push(me)}Object.entries(V[N]).forEach(([Y,ee])=>{if(Y===H)return;const pe=e.current.getColumn(Y);if(!pe.preProcessEditCellProps)return;ee=O({},ee,{isProcessingProps:!0}),T(N,Y,ee),V=Cn(e);const me=V[N],ye=be(me,[Y].map(yu)),te=Promise.resolve(pe.preProcessEditCellProps({id:N,row:oe,props:ee,hasChanged:!1,otherFieldsProps:ye})).then(Ce=>{if(e.current.getRowMode(N)===At.View){ne(!1);return}Ce=O({},Ce,{isProcessingProps:!1}),T(N,Y,Ce)});J.push(te)}),Promise.all(J).then(()=>{e.current.getRowMode(N)===At.Edit?(V=Cn(e),ne(!V[N][H].error)):ne(!1)})})},[e,g,T]),$=f.useCallback(j=>{const N=Cn(e),H=e.current.getRow(j);if(!N[j])return e.current.getRow(j);let _=O({},i.current[j],H);return Object.entries(N[j]).forEach(([U,K])=>{const X=e.current.getColumn(U);X!=null&&X.valueSetter?_=X.valueSetter(K.value,_,X,e):_[U]=K.value}),_},[e]),B={getRowMode:k,startRowEditMode:A,stopRowEditMode:F},G={setRowEditingEditCellValue:I,getRowWithUpdatedValuesFromRowEditing:$};Je(e,B,"public"),Je(e,G,"private"),f.useEffect(()=>{d&&E(d)},[d,E]),Ot(()=>{const j=qo(e),N=l.current;l.current=cI(n);const H=new Set([...Object.keys(n),...Object.keys(N)]);Array.from(H).forEach(_=>{var oe;const U=n[_]??{mode:At.View},K=((oe=N[_])==null?void 0:oe.mode)||At.View,X=j[_]?e.current.getRowId(j[_]):_;U.mode===At.Edit&&K===At.View?L(O({id:X},U)):U.mode===At.View&&K===At.Edit&&D(O({id:X},U))})},[e,n,L,D])},QK=e=>O({},e,{editRows:{}}),ZK=(e,t)=>{qK(e,t),XK(e,t);const n=f.useRef({}),{isCellEditable:o}=t,r=f.useCallback(p=>wa(p.rowNode)||!p.colDef.editable||!p.colDef.renderEditCell?!1:o?o(p):!0,[o]),l=(p,h,g,y)=>{if(!g){y();return}if(n.current[p]||(n.current[p]={}),n.current[p][h]){const[b]=n.current[p][h];clearTimeout(b)}const w=()=>{const[b]=n.current[p][h];clearTimeout(b),y(),delete n.current[p][h]},m=setTimeout(()=>{y(),delete n.current[p][h]},g);n.current[p][h]=[m,w]};f.useEffect(()=>{const p=n.current;return()=>{Object.entries(p).forEach(([h,g])=>{Object.keys(g).forEach(y=>{const[w]=p[h][y];clearTimeout(w),delete p[h][y]})})}},[]);const i=f.useCallback((p,h)=>{if(n.current[p]){if(!h)Object.keys(n.current[p]).forEach(g=>{const[,y]=n.current[p][g];y()});else if(n.current[p][h]){const[,g]=n.current[p][h];g()}}},[]),s=f.useCallback(p=>{const{id:h,field:g,debounceMs:y}=p;return new Promise(w=>{l(h,g,y,async()=>{const m=t.editMode===Gr.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(h,g)===yt.Edit){const b=await m(p);w(b)}})})},[e,t.editMode]),a=f.useCallback((p,h)=>t.editMode===Gr.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(p,h):e.current.getRowWithUpdatedValuesFromRowEditing(p),[e,t.editMode]),u=f.useCallback((p,h)=>{var y;return((y=Cn(e)[p])==null?void 0:y[h])??null},[e]),c={isCellEditable:r,setEditCellValue:s,getRowWithUpdatedValues:a,unstable_getEditCellMeta:u},d={runPendingEditCellValueMutation:i};Je(e,c,"public"),Je(e,d,"private")},JK=(e,t,n)=>{const o=!!t.dataSource;return n.current.caches.rows=sf({rows:o?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),O({},e,{rows:CI({apiRef:n,rowCountProp:t.rowCount,loadingProp:o?!0:t.loading,previousTree:null,previousTreeDepths:null})})},eY=(e,t)=>{const n=Mn(e,"useGridRows"),o=f.useRef(Date.now()),r=f.useRef(t.rowCount),l=Wo(),i=f.useCallback(D=>{const I=qo(e)[D];if(I)return I;const $=Dr(e,D);return $&&wa($)?{[Sa]:D}:null},[e]),s=f.useCallback(D=>Zu(e,D),[e]),a=f.useCallback(({cache:D,throttle:I})=>{const $=()=>{o.current=Date.now(),e.current.setState(G=>O({},G,{rows:CI({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:jn(e),previousTreeDepths:Pw(e),previousGroupsToFetch:p_(e)})})),e.current.publishEvent("rowsSet")};if(l.clear(),e.current.caches.rows=D,!I){$();return}const B=t.throttleRowsMs-(Date.now()-o.current);if(B>0){l.start(B,$);return}$()},[t.throttleRowsMs,t.rowCount,t.loading,e,l]),u=f.useCallback(D=>{if(n.debug(`Updating all rows, new length ${D.length}`),Ki(e)){e.current.updateNonPivotRows(D,!1);return}const I=sf({rows:D,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),$=e.current.caches.rows;I.rowsBeforePartialUpdates=$.rowsBeforePartialUpdates,a({cache:I,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,a,e]),c=f.useCallback(D=>{if(t.signature===hr.DataGrid&&D.length>1)throw new Error(["MUI X: You cannot update several rows at once in `apiRef.current.updateRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` 389 `));if(Ki(e)){e.current.updateNonPivotRows(D);return}const I=Bw(e,D,t.getRowId),$=Fw({updates:I,getRowId:t.getRowId,previousCache:e.current.caches.rows});a({cache:$,throttle:!0})},[t.signature,t.getRowId,a,e]),d=f.useCallback((D,I)=>{const $=Bw(e,D,t.getRowId),B=Fw({updates:$,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:I??[]});a({cache:B,throttle:!1})},[t.getRowId,a,e]),p=f.useCallback(D=>{n.debug(`Setting loading to ${D}`),e.current.setState(I=>O({},I,{rows:O({},I.rows,{loading:D})})),e.current.caches.rows.loadingPropBeforePartialUpdates=D},[e,n]),h=f.useCallback(()=>{const D=Ri(e),I=qo(e);return new Map(D.map($=>[$,I[$]??{}]))},[e]),g=f.useCallback(()=>Ku(e),[e]),y=f.useCallback(()=>Ri(e),[e]),w=f.useCallback(D=>{const{rowIdToIndexMap:I}=ii(e);return I.get(D)},[e]),m=f.useCallback((D,I)=>{const $=Dr(e,D);if(!$)throw new Error(`MUI X: No row with id #${D} found.`);if($.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const B=O({},$,{childrenExpanded:I});e.current.setState(G=>O({},G,{rows:O({},G.rows,{tree:O({},G.rows.tree,{[D]:B})})})),e.current.publishEvent("rowExpansionChange",B)},[e]),b=f.useCallback(D=>Dr(e,D)??null,[e]),v=f.useCallback(({skipAutoGeneratedRows:D=!0,groupId:I,applySorting:$,applyFiltering:B})=>{const G=jn(e);let j;if($){const N=G[I];if(!N)return[];const H=Na(e);j=[];const _=H.findIndex(U=>U===I)+1;for(let U=_;U<H.length&&G[H[U]].depth>N.depth;U+=1){const K=H[U];(!D||!wa(G[K]))&&j.push(K)}}else j=Vv(G,I,D);if(B){const N=ja(e);j=Rh(N)?j:j.filter(H=>N[H]!==!1)}return j},[e]),S=f.useCallback((D,I)=>{const $=Dr(e,D);if(!$)throw new Error(`MUI X: No row with id #${D} found.`);if($.parent!==On)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if($.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(B=>{const G=jn(e)[On],j=G.children,N=j.findIndex(_=>_===D);if(N===-1||N===I)return B;n.debug(`Moving row ${D} to index ${I}`);const H=[...j];return H.splice(I,0,H.splice(N,1)[0]),O({},B,{rows:O({},B.rows,{tree:O({},B.rows.tree,{[On]:O({},G,{children:H})})})})}),e.current.publishEvent("rowsSet")},[e,n]),M=f.useCallback((D,I)=>{if(t.signature===hr.DataGrid&&I.length>1)throw new Error(["MUI X: You cannot replace rows using `apiRef.current.unstable_replaceRows` on the DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock this feature."].join(` 390 `));if(I.length===0)return;if(za(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const B=O({},jn(e)),G=O({},qo(e)),j=B[On],N=[...j.children],H=new Set;for(let U=0;U<I.length;U+=1){const K=I[U],X=Ih(K,t.getRowId,"A row was provided without id when calling replaceRows()."),[oe]=N.splice(D+U,1,X);H.has(oe)||(delete G[oe],delete B[oe]);const ue={id:X,depth:0,parent:On,type:"leaf",groupingKey:null};G[X]=K,B[X]=ue,H.add(X)}B[On]=O({},j,{children:N});const _=N.filter(U=>{var K;return((K=B[U])==null?void 0:K.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=G,e.current.setState(U=>O({},U,{rows:O({},U.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,N.length),dataRowIdToModelLookup:G,dataRowIds:_,tree:B})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),R={getRow:i,setLoading:p,getRowId:s,getRowModels:h,getRowsCount:g,getAllRowIds:y,setRows:u,updateRows:c,getRowNode:b,getRowIndexRelativeToVisibleRows:w,unstable_replaceRows:M},k={setRowIndex:S,setRowChildrenExpansion:m,getRowGroupChildren:v},E={updateNestedRows:d},P=f.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let D;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?D=O({},e.current.caches.rows,{updates:{type:"full",rows:Ri(e)}}):D=sf({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),a({cache:D,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,a]),C=vr(()=>t.dataSource),T=f.useCallback(D=>{if(t.dataSource&&t.dataSource!==C.current){C.current=t.dataSource;return}D==="rowTreeCreation"&&P()},[P,C,t.dataSource]),A=f.useCallback(()=>{e.current.getActiveStrategy(ql.RowTree)!==h_(e)&&P()},[e,P]);Re(e,"activeStrategyProcessorChange",T),Re(e,"strategyAvailabilityChange",A);const L=f.useCallback(()=>{e.current.setState(D=>{const I=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:jn(e),treeDepths:Pw(e),dataRowIds:Ri(e),dataRowIdToModelLookup:qo(e)});return O({},D,{rows:O({},D.rows,I,{totalTopLevelRowCount:vI({tree:I.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);sC(e,"hydrateRows",L),Je(e,R,"public"),Je(e,k,t.signature===hr.DataGrid?"private":"public"),Je(e,E,"private");const F=f.useRef(!0);f.useEffect(()=>{if(F.current){F.current=!1;return}let D=!1;t.rowCount!==r.current&&(D=!0,r.current=t.rowCount);const I=t.dataSource?g_(e):t.rows,$=e.current.caches.rows.rowsBeforePartialUpdates===I,B=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,G=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;$&&(B||(e.current.setState(j=>O({},j,{rows:O({},j.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),G||(e.current.setState(j=>O({},j,{rows:O({},j.rows,{totalRowCount:Math.max(t.rowCount||0,j.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,j.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!D)||(n.debug(`Updating all rows, new length ${I==null?void 0:I.length}`),a({cache:sf({rows:I,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,n,a,e])},tY=e=>{const t={[On]:O({},oV(),{children:e})};for(let n=0;n<e.length;n+=1){const o=e[n];t[o]={id:o,depth:0,parent:On,type:"leaf",groupingKey:null}}return{groupingName:Xi,tree:t,treeDepths:{0:e.length},dataRowIds:e}},nY=({previousTree:e,actions:t})=>{const n=O({},e),o={};for(let i=0;i<t.remove.length;i+=1){const s=t.remove[i];o[s]=!0,delete n[s]}for(let i=0;i<t.insert.length;i+=1){const s=t.insert[i];n[s]={id:s,depth:0,parent:On,type:"leaf",groupingKey:null}}const r=n[On];let l=[...r.children,...t.insert];return Object.values(o).length&&(l=l.filter(i=>!o[i])),n[On]=O({},r,{children:l}),{groupingName:Xi,tree:n,treeDepths:{0:l.length},dataRowIds:l}},oY=e=>e.updates.type==="full"?tY(e.updates.rows):nY({previousTree:e.previousTree,actions:e.updates.actions}),rY=e=>{vu(e,Xi,"rowTreeCreation",oY)};class qg extends Error{}function lY(e,t){var g;const n=f.useCallback(y=>({field:y,colDef:e.current.getColumn(y)}),[e]),o=f.useCallback(y=>{const w=e.current.getRow(y);if(!w)throw new qg(`No row with id #${y} found`);return{id:y,columns:e.current.getAllColumns(),row:w}},[e]),r=f.useCallback((y,w,m,{cellMode:b,colDef:v,hasFocus:S,rowNode:M,tabIndex:R})=>{const k=m[w],E=v!=null&&v.valueGetter?v.valueGetter(k,m,v,e):k,P={id:y,field:w,row:m,rowNode:M,colDef:v,cellMode:b,hasFocus:S,tabIndex:R,value:E,formattedValue:E,isEditable:!1,api:e.current};return v&&v.valueFormatter&&(P.formattedValue=v.valueFormatter(E,m,v,e)),P.isEditable=v&&e.current.isCellEditable(P),P},[e]),l=f.useCallback((y,w)=>{var R;const m=e.current.getRow(y),b=Dr(e,y);if(!m||!b)throw new qg(`No row with id #${y} found`);const v=io(e),S=Xv(e),M=e.current.getCellMode(y,w);return e.current.getCellParamsForRow(y,w,m,{colDef:t.listView&&((R=t.listViewColumn)==null?void 0:R.field)===w?Ma(e):e.current.getColumn(w),rowNode:b,hasFocus:v!==null&&v.field===w&&v.id===y,tabIndex:S&&S.field===w&&S.id===y?0:-1,cellMode:M})},[e,t.listView,(g=t.listViewColumn)==null?void 0:g.field]),i=f.useCallback((y,w)=>{const m=e.current.getColumn(w),b=e.current.getRow(y);if(!b)throw new qg(`No row with id #${y} found`);return!m||!m.valueGetter?b[w]:m.valueGetter(b[m.field],b,m,e)},[e]),s=f.useCallback((y,w)=>lV(y,w,e),[e]),a=f.useCallback((y,w)=>{const m=s(y,w);return!w||!w.valueFormatter?m:w.valueFormatter(m,y,w,e)},[e,s]),u=f.useCallback(y=>e.current.rootElementRef.current?k8(e.current.rootElementRef.current,y):null,[e]),c=f.useCallback(y=>e.current.rootElementRef.current?A8(e.current.rootElementRef.current,y):null,[e]),d=f.useCallback((y,w)=>e.current.rootElementRef.current?$8(e.current.rootElementRef.current,{id:y,field:w}):null,[e]),p={getCellValue:i,getCellParams:l,getCellElement:d,getRowValue:s,getRowFormattedValue:a,getRowParams:o,getRowElement:c,getColumnHeaderParams:n,getColumnHeaderElement:u},h={getCellParamsForRow:r};Je(e,p,"public"),Je(e,h,"private")}const Uc={type:"include",ids:new Set},iY=(e,t)=>O({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??Uc:Uc}),sY=(e,t)=>{var j,N,H,_,U,K,X,oe,ue;const n=Mn(e,"useGridSelection"),o=f.useCallback(V=>(...W)=>{t.rowSelection&&V(...W)},[t.rowSelection]),r=t.signature!==hr.DataGrid&&(((j=t.rowSelectionPropagation)==null?void 0:j.parents)||((N=t.rowSelectionPropagation)==null?void 0:N.descendants)),l=f.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),i=f.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:l,propOnChange:t.onRowSelectionModelChange,stateSelector:dr,changeEvent:"rowSelectionChange"});const{checkboxSelection:s,disableRowSelectionOnClick:a,isRowSelectable:u}=t,c=Yv(t),d=le(e,jn),p=le(e,za)>1,h=f.useCallback(V=>{let W=V;const ne=i.current??V,J=e.current.isRowSelected(V);if(J){const Y=ea(e),ee=Y.findIndex(me=>me===ne),pe=Y.findIndex(me=>me===W);if(ee===pe)return;ee>pe?W=Y[pe+1]:W=Y[pe-1]}i.current=V,e.current.selectRowRange({startId:ne,endId:W},!J)},[e]),g=Xe(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?NI(e):ea(e)),y=f.useCallback(V=>{if(t.signature===hr.DataGrid&&!c&&(V.type!=="include"||V.ids.size>1))throw new Error(["MUI X: `rowSelectionModel` can only contain 1 item in DataGrid.","You need to upgrade to DataGridPro or DataGridPremium component to unlock multiple selection."].join(` 391 `));dr(e)!==V&&(n.debug("Setting selection model"),e.current.setState(ne=>O({},ne,{rowSelection:t.rowSelection?V:Uc})))},[e,n,t.rowSelection,t.signature,c]),w=f.useCallback(V=>Yu(e).has(V),[e]),m=f.useCallback(V=>{if(t.rowSelection===!1||u&&!u(e.current.getRowParams(V)))return!1;const W=Dr(e,V);return!((W==null?void 0:W.type)==="footer"||(W==null?void 0:W.type)==="pinnedRow")},[e,t.rowSelection,u]),b=f.useCallback(()=>kI(e),[e]),v=f.useCallback((V,W=!0,ne=!1)=>{var J,Y,ee,pe,me,ye;if(e.current.isRowSelectable(V))if(i.current=V,ne){n.debug(`Setting selection for row ${V}`);const te={type:"include",ids:new Set},Ce=ge=>{te.ids.add(ge)};W&&(Ce(V),r&&dc(e,d,V,((J=t.rowSelectionPropagation)==null?void 0:J.descendants)??!1,((Y=t.rowSelectionPropagation)==null?void 0:Y.parents)??!1,Ce)),e.current.setRowSelectionModel(te)}else{n.debug(`Toggling selection for row ${V}`);const te=dr(e),Ce={type:te.type,ids:new Set(te.ids)},ge=Wl(Ce);ge.unselect(V);const Te=Ie=>{ge.select(Ie)},Q=Ie=>{ge.unselect(Ie)};W?(Te(V),r&&dc(e,d,V,((ee=t.rowSelectionPropagation)==null?void 0:ee.descendants)??!1,((pe=t.rowSelectionPropagation)==null?void 0:pe.parents)??!1,Te)):r&&Hw(e,d,V,((me=t.rowSelectionPropagation)==null?void 0:me.descendants)??!1,((ye=t.rowSelectionPropagation)==null?void 0:ye.parents)??!1,Q),(Ce.type==="include"&&Ce.ids.size<2||c)&&e.current.setRowSelectionModel(Ce)}},[e,n,r,d,(H=t.rowSelectionPropagation)==null?void 0:H.descendants,(_=t.rowSelectionPropagation)==null?void 0:_.parents,c]),S=f.useCallback((V,W=!0,ne=!1)=>{var me,ye,te,Ce,ge,Te;if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const J=new Set;for(let Q=0;Q<V.length;Q+=1){const ke=V[Q];e.current.isRowSelectable(ke)&&J.add(ke)}const Y=dr(e);let ee;if(ne){if(ee={type:"include",ids:J},W){const Q=Wl(ee);if(r){const ke=Ie=>{Q.select(Ie)};for(const Ie of J)dc(e,d,Ie,((me=t.rowSelectionPropagation)==null?void 0:me.descendants)??!1,((ye=t.rowSelectionPropagation)==null?void 0:ye.parents)??!1,ke)}}else ee.ids=new Set;if(Y.type===ee.type&&ee.ids.size===Y.ids.size&&Array.from(ee.ids).every(Q=>Y.ids.has(Q)))return}else{ee={type:Y.type,ids:new Set(Y.ids)};const Q=Wl(ee),ke=Le=>{Q.select(Le)},Ie=Le=>{Q.unselect(Le)};for(const Le of J)W?(Q.select(Le),r&&dc(e,d,Le,((te=t.rowSelectionPropagation)==null?void 0:te.descendants)??!1,((Ce=t.rowSelectionPropagation)==null?void 0:Ce.parents)??!1,ke)):(Ie(Le),r&&Hw(e,d,Le,((ge=t.rowSelectionPropagation)==null?void 0:ge.descendants)??!1,((Te=t.rowSelectionPropagation)==null?void 0:Te.parents)??!1,Ie))}(ee.type==="include"&&ee.ids.size<2||c)&&e.current.setRowSelectionModel(ee)},[n,r,c,e,d,(U=t.rowSelectionPropagation)==null?void 0:U.descendants,(K=t.rowSelectionPropagation)==null?void 0:K.parents,t.rowSelection]),M=f.useCallback(V=>{var Y,ee;if(!p||!r||V.ids.size===0&&V.type==="include")return V;const W={type:V.type,ids:new Set(V.ids)},ne=Wl(W),J=pe=>{ne.select(pe)};for(const pe of V.ids)dc(e,d,pe,((Y=t.rowSelectionPropagation)==null?void 0:Y.descendants)??!1,((ee=t.rowSelectionPropagation)==null?void 0:ee.parents)??!1,J,ne);return W},[e,d,(X=t.rowSelectionPropagation)==null?void 0:X.descendants,(oe=t.rowSelectionPropagation)==null?void 0:oe.parents,p,r]),R=f.useCallback(({startId:V,endId:W},ne=!0,J=!1)=>{if(!e.current.getRow(V)||!e.current.getRow(W))return;n.debug(`Expanding selection from row ${V} to row ${W}`);const Y=ea(e),ee=Y.indexOf(V),pe=Y.indexOf(W),[me,ye]=ee>pe?[pe,ee]:[ee,pe],te=Y.slice(me,ye+1);e.current.selectRows(te,ne,J)},[e,n]),k={selectRow:v,setRowSelectionModel:y,getSelectedRows:b,isRowSelected:w,isRowSelectable:m},E={selectRows:S,selectRowRange:R,getPropagatedRowSelectionModel:M};Je(e,k,"public"),Je(e,E,t.signature===hr.DataGrid?"private":"public");const P=f.useRef(!0),C=f.useCallback((V=!1)=>{var te,Ce;if(P.current)return;const W=dr(e),ne=qo(e),J=ja(e),Y=ge=>t.filterMode==="server"?!ne[ge]:!ne[ge]||J[ge]===!1,ee={type:W.type,ids:new Set(W.ids)},pe=Wl(ee);let me=!1;for(const ge of W.ids){if(Y(ge)){if(t.keepNonExistentRowsSelected)continue;pe.unselect(ge),me=!0;continue}if(!((te=t.rowSelectionPropagation)!=null&&te.parents))continue;const Te=d[ge];if((Te==null?void 0:Te.type)==="group"){if(Te.isAutoGenerated){pe.unselect(ge),me=!0;continue}Te.children.every(ke=>J[ke]===!1)||(pe.unselect(ge),me=!0)}}const ye=p&&((Ce=t.rowSelectionPropagation)==null?void 0:Ce.parents)&&(ee.ids.size>0||ee.type==="exclude");if(me||ye&&!V)if(ye)if(ee.type==="exclude"){const ge=g(),Te=[];for(let Q=0;Q<ge.length;Q+=1){const ke=ge[Q];(t.keepNonExistentRowsSelected||!Y(ke))&&pe.has(ke)&&Te.push(ke)}e.current.selectRows(Te,!0,!0)}else e.current.selectRows(Array.from(ee.ids),!0,!0);else e.current.setRowSelectionModel(ee)},[e,p,(ue=t.rowSelectionPropagation)==null?void 0:ue.parents,t.keepNonExistentRowsSelected,t.filterMode,d,g]),T=f.useCallback((V,W)=>{const ne=W.metaKey||W.ctrlKey,J=!s&&!ne&&!D7(W),Y=!c||J,ee=e.current.isRowSelected(V),ye=Ah(e)>1&&Y||!ee;e.current.selectRow(V,ye,Y)},[e,c,s]),A=f.useCallback((V,W)=>{var Y;if(a)return;const ne=(Y=W.target.closest(`.${z.cell}`))==null?void 0:Y.getAttribute("data-field");if(ne===Ga.field||ne===Oh)return;if(ne){const ee=e.current.getColumn(ne);if((ee==null?void 0:ee.type)===Ph)return}Dr(e,V.id).type!=="pinnedRow"&&(W.shiftKey&&c?h(V.id):T(V.id,W))},[a,c,e,h,T]),L=f.useCallback((V,W)=>{var ne;c&&W.shiftKey&&((ne=window.getSelection())==null||ne.removeAllRanges())},[c]),F=f.useCallback((V,W)=>{c&&W.nativeEvent.shiftKey?h(V.id):e.current.selectRow(V.id,V.value,!c)},[e,h,c]),D=f.useCallback(V=>{const W=vn(e),ne=TI(e),J=W.items.length>0||((ne==null?void 0:ne.length)||0)>0;!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&r&&!J?e.current.setRowSelectionModel({type:V?"exclude":"include",ids:new Set}):e.current.selectRows(g(),V)},[e,r,g,t.checkboxSelectionVisibleOnly,t.isRowSelectable]),I=f.useCallback(V=>{D(V.value)},[D]),$=f.useCallback((V,W)=>{if(e.current.getCellMode(V.id,V.field)!==yt.Edit&&!od(W)){if(ap(W.key)&&W.shiftKey){const ne=io(e);if(ne&&ne.id!==V.id){W.preventDefault();const J=e.current.isRowSelected(ne.id);if(!c){e.current.selectRow(ne.id,!J,!0);return}const Y=e.current.getRowIndexRelativeToVisibleRows(ne.id),ee=e.current.getRowIndexRelativeToVisibleRows(V.id);let pe,me;Y>ee?J?(pe=ee,me=Y-1):(pe=ee,me=Y):J?(pe=Y+1,me=ee):(pe=Y,me=ee);const ye=ii(e),te=[];for(let Ce=pe;Ce<=me;Ce+=1)te.push(ye.rows[Ce].id);e.current.selectRows(te,!J);return}}if(W.key===" "&&W.shiftKey){W.preventDefault(),T(V.id,W);return}String.fromCharCode(W.keyCode)==="A"&&(W.ctrlKey||W.metaKey)&&(W.preventDefault(),D(!0))}},[e,c,T,D]),B=Xe(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(Uc);return}if(l===void 0)return;if(!r||!p||l.type==="include"&&l.ids.size===0){e.current.setRowSelectionModel(l);return}const V=e.current.getPropagatedRowSelectionModel(l);if(V.type!==l.type||V.ids.size!==l.ids.size||!Array.from(l.ids).every(W=>V.ids.has(W))){e.current.setRowSelectionModel(V);return}e.current.setRowSelectionModel(l)});Re(e,"sortedRowsSet",o(()=>C(!0))),Re(e,"filteredRowsSet",o(()=>C())),Re(e,"rowClick",o(A)),Re(e,"rowSelectionCheckboxChange",o(F)),Re(e,"headerSelectionCheckboxChange",I),Re(e,"cellMouseDown",o(L)),Re(e,"cellKeyDown",o($)),f.useEffect(()=>{B()},[e,l,t.rowSelection,B]);const G=l!=null;f.useEffect(()=>{if(G||!t.rowSelection||typeof m!="function")return;const V=dr(e);if(V.type!=="include")return;const W=new Set;for(const ne of V.ids)m(ne)&&W.add(ne);W.size<V.ids.size&&e.current.setRowSelectionModel({type:V.type,ids:W})},[e,m,G,t.rowSelection]),f.useEffect(()=>{if(!t.rowSelection||G)return;const V=dr(e);!c&&(V.type==="include"&&V.ids.size>1||V.type==="exclude")&&e.current.setRowSelectionModel(Uc)},[e,c,s,G,t.rowSelection]),f.useEffect(()=>{o(C)},[C,o]),f.useEffect(()=>{P.current&&(P.current=!1)},[])},aY=e=>{const{classes:t}=e;return f.useMemo(()=>ve({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},tt,t),[t])},cY=(e,t)=>{const n={classes:t.classes},o=aY(n),r=f.useCallback(l=>{const i=O({},Ga,{cellClassName:o.cellCheckbox,headerClassName:o.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),s=t.checkboxSelection,a=l.lookup[Jr]!=null;return s&&!a?(l.lookup[Jr]=i,l.orderedFields=[Jr,...l.orderedFields]):!s&&a?(delete l.lookup[Jr],l.orderedFields=l.orderedFields.filter(u=>u!==Jr)):s&&a&&(l.lookup[Jr]=O({},i,l.lookup[Jr])),l},[e,o,t.checkboxSelection]);Gt(e,"hydrateColumns",r)},uY=(e,t)=>{var o,r;const n=t.sortModel??((r=(o=t.initialState)==null?void 0:o.sorting)==null?void 0:r.sortModel)??[];return O({},e,{sorting:{sortModel:iI(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},dY=(e,t)=>{var M,R;const n=Mn(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:Lo,changeEvent:"sortModelChange"});const o=f.useCallback((k,E)=>{const P=Lo(e),C=P.findIndex(A=>A.field===k);let T=[...P];return C>-1?(E==null?void 0:E.sort)==null?T.splice(C,1):T.splice(C,1,E):T=[...P,E],T},[e]),r=f.useCallback((k,E)=>{const C=Lo(e).find(T=>T.field===k.field);if(C){const T=E===void 0?Ow(k.sortingOrder??t.sortingOrder,C.sort):E;return T===void 0?void 0:O({},C,{sort:T})}return{field:k.field,sort:E===void 0?Ow(k.sortingOrder??t.sortingOrder):E}},[e,t.sortingOrder]),l=f.useCallback((k,E)=>E==null||E.sortable===!1||t.disableColumnSorting?k:(E.sortingOrder||t.sortingOrder).some(C=>!!C)?[...k,"columnMenuSortItem"]:k,[t.sortingOrder,t.disableColumnSorting]),i=f.useCallback(()=>{e.current.setState(k=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),O({},k,{sorting:O({},k.sorting,{sortedRows:Vv(jn(e),On,!1)})});const E=Lo(e),P=C_(E,e),C=e.current.applyStrategyProcessor("sorting",{sortRowList:P});return O({},k,{sorting:O({},k.sorting,{sortedRows:C})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),s=f.useCallback(k=>{Lo(e)!==k&&(n.debug("Setting sort model"),e.current.setState(Iw(k,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),a=f.useCallback((k,E,P)=>{const C=e.current.getColumn(k),T=r(C,E);let A;!P||t.disableMultipleColumnsSorting?A=(T==null?void 0:T.sort)==null?[]:[T]:A=o(C.field,T),e.current.setSortModel(A)},[e,o,r,t.disableMultipleColumnsSorting]),u=f.useCallback(()=>Lo(e),[e]),c=f.useCallback(()=>Uv(e).map(E=>E.model),[e]),d=f.useCallback(()=>Na(e),[e]),p=f.useCallback(k=>e.current.getSortedRowIds()[k],[e]);Je(e,{getSortModel:u,getSortedRows:c,getSortedRowIds:d,getRowIdFromRowIndex:p,setSortModel:s,sortColumn:a,applySorting:i},"public");const g=f.useCallback((k,E)=>{var T,A;const P=Lo(e);return!E.exportOnlyDirtyModels||t.sortModel!=null||((A=(T=t.initialState)==null?void 0:T.sorting)==null?void 0:A.sortModel)!=null||P.length>0?O({},k,{sorting:{sortModel:P}}):k},[e,t.sortModel,(R=(M=t.initialState)==null?void 0:M.sorting)==null?void 0:R.sortModel]),y=f.useCallback((k,E)=>{var C;const P=(C=E.stateToRestore.sorting)==null?void 0:C.sortModel;return P==null?k:(e.current.setState(Iw(P,t.disableMultipleColumnsSorting)),O({},k,{callbacks:[...k.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),w=f.useCallback(k=>{const E=jn(e),P=E[On],C=k.sortRowList?k.sortRowList(P.children.map(T=>E[T])):[...P.children];return P.footerId!=null&&C.push(P.footerId),C},[e]);Gt(e,"exportState",g),Gt(e,"restoreState",y),vu(e,Xi,"sorting",w);const m=f.useCallback(({field:k,colDef:E},P)=>{if(!E.sortable||t.disableColumnSorting)return;const C=P.shiftKey||P.metaKey||P.ctrlKey;a(k,void 0,C)},[a,t.disableColumnSorting]),b=f.useCallback(({field:k,colDef:E},P)=>{!E.sortable||t.disableColumnSorting||P.key==="Enter"&&!P.ctrlKey&&!P.metaKey&&a(k,void 0,P.shiftKey)},[a,t.disableColumnSorting]),v=f.useCallback(()=>{const k=Lo(e),E=xl(e);if(k.length>0){const P=k.filter(C=>E[C.field]);P.length<k.length&&e.current.setSortModel(P)}},[e]),S=f.useCallback(k=>{k==="sorting"&&e.current.applySorting()},[e]);Gt(e,"columnMenu",l),Re(e,"columnHeaderClick",m),Re(e,"columnHeaderKeyDown",b),Re(e,"rowsSet",e.current.applySorting),Re(e,"columnsChange",v),Re(e,"activeStrategyProcessorChange",S),ed(()=>{e.current.applySorting()}),Ot(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function Sx(e){const{containerSize:t,scrollPosition:n,elementSize:o,elementOffset:r}=e,l=r+o;if(o>t)return r;if(l-t>n)return l-t;if(r<n)return r}const fY=(e,t)=>{const n=_n(),o=Mn(e,"useGridScroll"),r=e.current.columnHeadersContainerRef,l=e.current.virtualScrollerRef,i=le(e,vi),s=f.useCallback(d=>{var m;const p=Tt(e),h=Ku(e),g=t.listView?[Ma(e)]:Kt(e);if(!(d.rowIndex==null)&&h===0||g.length===0)return!1;o.debug(`Scrolling to cell at row ${d.rowIndex}, col: ${d.colIndex} `);let w={};if(d.colIndex!==void 0){const b=yi(e);let v;if(typeof d.rowIndex<"u"){const S=(m=i[d.rowIndex])==null?void 0:m.id,M=e.current.unstable_getCellColSpanInfo(S,d.colIndex);M&&!M.spannedByColSpan&&(v=M.cellProps.width)}typeof v>"u"&&(v=g[d.colIndex].computedWidth),w.left=Sx({containerSize:p.viewportOuterSize.width,scrollPosition:Math.abs(l.current.scrollLeft),elementSize:v,elementOffset:b[d.colIndex]})}if(d.rowIndex!==void 0){const b=td(e),v=FV(e),S=BI(e),M=t.pagination?d.rowIndex-v*S:d.rowIndex,R=b.positions[M+1]?b.positions[M+1]-b.positions[M]:b.currentPageTotalHeight-b.positions[M];w.top=Sx({containerSize:p.viewportInnerSize.height,scrollPosition:l.current.scrollTop,elementSize:R,elementOffset:b.positions[M]})}return w=e.current.unstable_applyPipeProcessors("scrollToIndexes",w,d),typeof w.left!==void 0||typeof w.top!==void 0?(e.current.scroll(w),!0):!1},[o,e,l,t.pagination,i,t.listView]),a=f.useCallback(d=>{if(l.current&&d.left!==void 0&&r.current){const p=n?-1:1;r.current.scrollLeft=d.left,l.current.scrollLeft=p*d.left,o.debug(`Scrolling left: ${d.left}`)}l.current&&d.top!==void 0&&(l.current.scrollTop=d.top,o.debug(`Scrolling top: ${d.top}`)),o.debug("Scrolling, updating container, and viewport")},[l,n,r,o]),u=f.useCallback(()=>l!=null&&l.current?{top:l.current.scrollTop,left:l.current.scrollLeft}:{top:0,left:0},[l]);Je(e,{scroll:a,scrollToIndexes:s,getScrollPosition:u},"public")};function pY(e,t){xt(e,"columnHeaderClick",t.onColumnHeaderClick),xt(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),xt(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),xt(e,"columnHeaderOver",t.onColumnHeaderOver),xt(e,"columnHeaderOut",t.onColumnHeaderOut),xt(e,"columnHeaderEnter",t.onColumnHeaderEnter),xt(e,"columnHeaderLeave",t.onColumnHeaderLeave),xt(e,"cellClick",t.onCellClick),xt(e,"cellDoubleClick",t.onCellDoubleClick),xt(e,"cellKeyDown",t.onCellKeyDown),xt(e,"preferencePanelClose",t.onPreferencePanelClose),xt(e,"preferencePanelOpen",t.onPreferencePanelOpen),xt(e,"menuOpen",t.onMenuOpen),xt(e,"menuClose",t.onMenuClose),xt(e,"rowDoubleClick",t.onRowDoubleClick),xt(e,"rowClick",t.onRowClick),xt(e,"stateChange",t.onStateChange)}function hY(e,t=166){let n,o;const r=()=>{n=void 0,e(...o)};function l(...i){o=i,n===void 0&&(n=setTimeout(r,t))}return l.clear=()=>{clearTimeout(n),n=void 0},l}const Hb={autoHeight:!1,autoPageSize:!1,autosizeOnMount:!1,checkboxSelection:!1,checkboxSelectionVisibleOnly:!1,clipboardCopyCellDelimiter:" ",columnBufferPx:150,columnHeaderHeight:56,disableAutosize:!1,disableColumnFilter:!1,disableColumnMenu:!1,disableColumnReorder:!1,disableColumnResize:!1,disableColumnSelector:!1,disableColumnSorting:!1,disableDensitySelector:!1,disableEval:!1,disableMultipleColumnsFiltering:!1,disableMultipleColumnsSorting:!1,disableMultipleRowSelection:!1,disableRowSelectionOnClick:!1,disableVirtualization:!1,editMode:Gr.Cell,filterDebounceMs:150,filterMode:"client",hideFooter:!1,hideFooterPagination:!1,hideFooterRowCount:!1,hideFooterSelectedRowCount:!1,ignoreDiacritics:!1,ignoreValueFormatterDuringExport:!1,keepColumnPositionIfDraggedOutside:!1,keepNonExistentRowsSelected:!1,loading:!1,logger:console,logLevel:"error",pageSizeOptions:[25,50,100],pagination:!1,paginationMode:"client",resizeThrottleMs:60,rowBufferPx:150,rowHeight:52,rows:[],rowSelection:!0,rowSpacingType:"margin",rowSpanning:!1,showCellVerticalBorder:!1,showColumnVerticalBorder:!1,showToolbar:!1,sortingMode:"client",sortingOrder:["asc","desc",null],throttleRowsMs:0,virtualizeColumnsWithAutoRowHeight:!1},Es={width:0,height:0},gY={isReady:!1,root:Es,viewportOuterSize:Es,viewportInnerSize:Es,contentSize:Es,minimumSize:Es,hasScrollX:!1,hasScrollY:!1,scrollbarSize:0,headerHeight:0,groupHeaderHeight:0,headerFilterHeight:0,rowWidth:0,rowHeight:0,columnsTotalWidth:0,leftPinnedWidth:0,rightPinnedWidth:0,headersTotalHeight:0,topContainerHeight:0,bottomContainerHeight:0},mY=(e,t,n)=>{const o=gY,r=La(n);return O({},e,{dimensions:O({},o,MO(t,n,r,Ha(n)))})},xO=Pe(Kt,yi,(e,t)=>{const n=e.length;return n===0?0:js(t[n-1]+e[n-1].computedWidth,1)});function bY(e,t){const n=Mn(e,"useResizeContainer"),o=f.useRef(!1),r=f.useRef(Es),l=le(e,Ha),i=le(e,La),s=le(e,xO),a=f.useRef(!0),{rowHeight:u,headerHeight:c,groupHeaderHeight:d,headerFilterHeight:p,headersTotalHeight:h,leftPinnedWidth:g,rightPinnedWidth:y}=MO(t,e,i,l),w=f.useCallback(()=>Tt(e),[e]),m=f.useCallback(C=>{e.current.setState(T=>O({},T,{dimensions:C})),e.current.rootElementRef.current&&wx(e.current.rootElementRef.current,Tt(e))},[e]),b=f.useCallback(()=>{const C=Tt(e);if(!C.isReady)return 0;const T=ii(e);if(t.getRowHeight){const L=nd(e),F=L.lastRowIndex-L.firstRowIndex;return Math.min(F-1,T.rows.length)}const A=Math.floor(C.viewportInnerSize.height/u);return Math.min(A,T.rows.length)},[e,t.getRowHeight,u]),v=f.useCallback(()=>{var _,U;if(a.current)return;const C=yY(e.current.mainElementRef.current,t.scrollbarSize),T=td(e),A=h+T.pinnedTopRowsTotalHeight,L=T.pinnedBottomRowsTotalHeight,F={width:s,height:js(T.currentPageTotalHeight,1)};let D,I,$=!1,B=!1;if(t.autoHeight)B=!1,$=Math.round(s)>Math.round(r.current.width),D={width:r.current.width,height:A+L+F.height},I={width:Math.max(0,D.width-(B?C:0)),height:Math.max(0,D.height-($?C:0))};else{D={width:r.current.width,height:r.current.height},I={width:Math.max(0,D.width),height:Math.max(0,D.height-A-L)};const K=F,X=I,oe=K.width>X.width,ue=K.height>X.height;(oe||ue)&&(B=ue,$=K.width+(B?C:0)>X.width,$&&(B=K.height+C>X.height)),B&&(I.width-=C),$&&(I.height-=C)}const G=Math.max(D.width,s+(B?C:0)),j={width:s,height:A+F.height+L},N={isReady:!0,root:r.current,viewportOuterSize:D,viewportInnerSize:I,contentSize:F,minimumSize:j,hasScrollX:$,hasScrollY:B,scrollbarSize:C,headerHeight:c,groupHeaderHeight:d,headerFilterHeight:p,rowWidth:G,rowHeight:u,columnsTotalWidth:s,leftPinnedWidth:g,rightPinnedWidth:y,headersTotalHeight:h,topContainerHeight:A,bottomContainerHeight:L},H=e.current.state.dimensions;To(H,N)||(m(N),vY(N.viewportInnerSize,H.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",N.viewportInnerSize),(U=(_=e.current).updateRenderContext)==null||U.call(_))},[e,m,t.scrollbarSize,t.autoHeight,u,c,d,p,s,h,g,y]),S=Xe(v),M=f.useMemo(()=>t.resizeThrottleMs>0?hY(()=>{S(),e.current.publishEvent("debouncedResize",r.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,S]);f.useEffect(()=>M==null?void 0:M.clear,[M]);const R={getRootDimensions:w},k={updateDimensions:v,getViewportPageSize:b};Ot(v,[v]),Je(e,R,"public"),Je(e,k,"private");const E=f.useCallback(C=>{wx(C,Tt(e))},[e]),P=f.useCallback(C=>{if(r.current=C,C.height===0&&!o.current&&!t.autoHeight&&!ip&&(n.error(["The parent DOM element of the Data Grid has an empty height.","Please make sure that this element has an intrinsic height.","The grid displays with a height of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` 392 `)),o.current=!0),C.width===0&&!o.current&&!ip&&(n.error(["The parent DOM element of the Data Grid has an empty width.","Please make sure that this element has an intrinsic width.","The grid displays with a width of 0px.","","More details: https://mui.com/r/x-data-grid-no-dimensions."].join(` 393 `)),o.current=!0),a.current||!M){a.current=!1,v();return}M()},[v,t.autoHeight,M,n]);xt(e,"rootMount",E),xt(e,"resize",P),xt(e,"debouncedResize",t.onResize)}function wx(e,t){const n=(o,r)=>e.style.setProperty(o,r);n("--DataGrid-hasScrollX",`${Number(t.hasScrollX)}`),n("--DataGrid-hasScrollY",`${Number(t.hasScrollY)}`),n("--DataGrid-scrollbarSize",`${t.scrollbarSize}px`),n("--DataGrid-rowWidth",`${t.rowWidth}px`),n("--DataGrid-columnsTotalWidth",`${t.columnsTotalWidth}px`),n("--DataGrid-leftPinnedWidth",`${t.leftPinnedWidth}px`),n("--DataGrid-rightPinnedWidth",`${t.rightPinnedWidth}px`),n("--DataGrid-headerHeight",`${t.headerHeight}px`),n("--DataGrid-headersTotalHeight",`${t.headersTotalHeight}px`),n("--DataGrid-topContainerHeight",`${t.topContainerHeight}px`),n("--DataGrid-bottomContainerHeight",`${t.bottomContainerHeight}px`),n("--height",`${t.rowHeight}px`)}function MO(e,t,n,o){const r=wI(e.rowHeight,Hb.rowHeight);return{rowHeight:Math.floor(r*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:xO(t),headersTotalHeight:Jv(t,e),leftPinnedWidth:o.left.reduce((l,i)=>l+i.computedWidth,0),rightPinnedWidth:o.right.reduce((l,i)=>l+i.computedWidth,0)}}const xx=new WeakMap;function yY(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=xx.get(e);if(n!==void 0)return n;const r=Yt(e).createElement("div");r.style.width="99px",r.style.height="99px",r.style.position="absolute",r.style.overflow="scroll",r.className="scrollDiv",e.appendChild(r);const l=r.offsetWidth-r.clientWidth;return e.removeChild(r),xx.set(e,l),l}function vY(e,t){return e.width===t.width&&e.height===t.height}const CY=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},SY=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const o=Bv(n),r=Ku(n),l=Xu(n),i=Math.min(l.enabled?l.paginationModel.pageSize:r,r);return O({},e,{rowsMeta:{currentPageTotalHeight:i*o,positions:Array.from({length:i},(s,a)=>a*o),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},wY=(e,t)=>{const{getRowHeight:n,getRowSpacing:o,getEstimatedRowHeight:r}=t,l=e.current.caches.rowsMeta.heights,i=f.useRef(-1),s=f.useRef(!1),a=f.useRef(!1),u=le(e,La),c=eC(e),d=le(e,Fa),p=le(e,Bv),h=C=>{let T=l.get(C);return T===void 0&&(T={content:p,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},l.set(C,T)),T},g=f.useCallback(C=>{const T=Tt(e).rowHeight,A=e.current.getRowHeightEntry(C.id);if(!n)A.content=T,A.needsFirstMeasurement=!1;else{const L=n(O({},C,{densityFactor:u}));if(L==="auto"){if(A.needsFirstMeasurement){const F=r?r(O({},C,{densityFactor:u})):T;A.content=F??T}s.current=!0,A.autoHeight=!0}else A.content=wI(L,T),A.needsFirstMeasurement=!1,A.autoHeight=!1}if(o){const L=e.current.getRowIndexRelativeToVisibleRows(C.id),F=o(O({},C,{isFirstVisible:L===0,isLastVisible:L===c.rows.length-1,indexRelativeToCurrentPage:L}));A.spacingTop=F.top??0,A.spacingBottom=F.bottom??0}else A.spacingTop=0,A.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",A,C),A},[e,c.rows,n,r,p,o,u]),y=f.useCallback(()=>{s.current=!1;const C=d.top.reduce((I,$)=>{const B=g($);return I+B.content+B.spacingTop+B.spacingBottom+B.detail},0),T=d.bottom.reduce((I,$)=>{const B=g($);return I+B.content+B.spacingTop+B.spacingBottom+B.detail},0),A=[],L=c.rows.reduce((I,$)=>{A.push(I);const B=g($),G=B.content+B.spacingTop+B.spacingBottom+B.detail;return I+G},0);s.current||(i.current=1/0);const F=C!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||T!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||L!==e.current.state.rowsMeta.currentPageTotalHeight,D={currentPageTotalHeight:L,positions:A,pinnedTopRowsTotalHeight:C,pinnedBottomRowsTotalHeight:T};e.current.setState(I=>O({},I,{rowsMeta:D})),F&&e.current.updateDimensions(),a.current=!0},[e,d,c.rows,g]),w=C=>{var T;return((T=l.get(C))==null?void 0:T.content)??p},m=(C,T)=>{const A=e.current.getRowHeightEntry(C),L=A.content!==T;A.needsFirstMeasurement=!1,A.content=T,a.current&&(a.current=!L)},b=C=>{var T;return((T=l.get(C))==null?void 0:T.autoHeight)??!1},v=()=>i.current,S=C=>{s.current&&C>i.current&&(i.current=C)},M=()=>{l.clear(),y()},R=vr(()=>new CY(C=>{var T;for(let A=0;A<C.length;A+=1){const L=C[A],F=L.borderBoxSize&&L.borderBoxSize.length>0?L.borderBoxSize[0].blockSize:L.contentRect.height,D=L.target.__mui_id;if(((T=QI(e))==null?void 0:T.id)===D&&F===0)return;e.current.unstable_storeRowHeightMeasurement(D,F)}a.current||e.current.requestPipeProcessorsApplication("rowHeight")})).current,k=(C,T)=>(C.__mui_id=T,R.observe(C),()=>R.unobserve(C));sC(e,"rowHeight",y),Ot(()=>{y()},[y]);const E={unstable_getRowHeight:w,unstable_setLastMeasuredRowIndex:S,unstable_storeRowHeightMeasurement:m,resetRowHeights:M},P={hydrateRowsMeta:y,observeRowHeight:k,rowHasAutoHeight:b,getRowHeightEntry:h,getLastMeasuredRowIndex:v};Je(e,E,"public"),Je(e,P,"private")},xY=e=>{const t=f.useCallback((r={})=>e.current.unstable_applyPipeProcessors("exportState",{},r),[e]),n=f.useCallback(r=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:r}).callbacks.forEach(i=>{i()})},[e]);Je(e,{exportState:t,restoreState:n},"public")},MY=e=>{const t=f.useRef({}),n=(s,a)=>{var u;return(u=t.current[s])==null?void 0:u[a]},o=()=>{t.current={}},r=f.useCallback(({rowId:s,minFirstColumn:a,maxLastColumn:u,columns:c})=>{for(let d=a;d<u;d+=1){const p=EY({apiRef:e,lookup:t.current,columnIndex:d,rowId:s,minFirstColumnIndex:a,maxLastColumnIndex:u,columns:c});p.colSpan>1&&(d+=p.colSpan-1)}},[e]),l={unstable_getCellColSpanInfo:n},i={resetColSpan:o,calculateColSpan:r};Je(e,l,"public"),Je(e,i,"private"),Re(e,"columnOrderChange",o)};function EY(e){const{apiRef:t,lookup:n,columnIndex:o,rowId:r,minFirstColumnIndex:l,maxLastColumnIndex:i,columns:s}=e,a=s.length,u=s[o],c=t.current.getRow(r),d=t.current.getRowValue(c,u),p=typeof u.colSpan=="function"?u.colSpan(d,c,u,t):u.colSpan;if(!p||p===1)return Kg(n,r,o,{spannedByColSpan:!1,cellProps:{colSpan:1,width:u.computedWidth}}),{colSpan:1};let h=u.computedWidth;for(let g=1;g<p;g+=1){const y=o+g;if(y>=l&&y<i){const w=s[y];h+=w.computedWidth,Kg(n,r,o+g,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(o+p,a-1),leftVisibleCellIndex:o})}Kg(n,r,o,{spannedByColSpan:!1,cellProps:{colSpan:p,width:h}})}return{colSpan:p}}function Kg(e,t,n,o){e[t]||(e[t]={}),e[t][n]=o}const EO=(e,t,n)=>{if(dI(e)){if(n[e.field]!==void 0)throw new Error(["MUI X: columnGroupingModel contains duplicated field",`column field ${e.field} occurs two times in the grouping model:`,`- ${n[e.field].join(" > ")}`,`- ${t.join(" > ")}`].join(` 394 `));n[e.field]=t;return}const{groupId:o,children:r}=e;r.forEach(l=>{EO(l,[...t,o],n)})},Nb=e=>{if(!e)return{};const t={};return e.forEach(n=>{EO(n,[],t)}),t},jb=(e,t,n)=>{const o=a=>t[a]??[],r=[],l=Math.max(...e.map(a=>o(a).length)),i=(a,u,c)=>To(o(a).slice(0,c+1),o(u).slice(0,c+1)),s=(a,u)=>!!(n!=null&&n.left&&n.left.includes(a)&&!n.left.includes(u)||n!=null&&n.right&&!n.right.includes(a)&&n.right.includes(u));for(let a=0;a<l;a+=1){const u=e.reduce((c,d)=>{const p=o(d)[a]??null;if(c.length===0)return[{columnFields:[d],groupId:p}];const h=c[c.length-1],g=h.columnFields[h.columnFields.length-1];return h.groupId!==p||!i(g,d,a)||s(g,d)?[...c,{columnFields:[d],groupId:p}]:[...c.slice(0,c.length-1),{columnFields:[...h.columnFields,d],groupId:p}]},[]);r.push(u)}return r},TY=["groupId","children"],aC=e=>{let t={};return e.forEach(n=>{if(dI(n))return;const{groupId:o,children:r}=n,l=be(n,TY);if(!o)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const i=O({},l,{groupId:o}),s=aC(r);if(s[o]!==void 0||t[o]!==void 0)throw new Error(`MUI X: The groupId ${o} is used multiple times in the columnGroupingModel.`);t=O({},t,s,{[o]:i})}),O({},t)},PY=(e,t,n)=>{if(!t.columnGroupingModel)return e;const o=ul(n),r=Ba(n),l=aC(t.columnGroupingModel??[]),i=Nb(t.columnGroupingModel??[]),s=jb(o,i,n.current.state.pinnedColumns??{}),a=r.length===0?0:Math.max(...r.map(u=>{var c;return((c=i[u])==null?void 0:c.length)??0}));return O({},e,{columnGrouping:{lookup:l,unwrappedGroupingModel:i,headerStructure:s,maxDepth:a}})},IY=(e,t)=>{const n=f.useCallback(s=>VI(e)[s]??[],[e]),o=f.useCallback(()=>UI(e),[e]);Je(e,{getColumnGroupPath:n,getAllGroupDetails:o},"public");const l=f.useCallback(()=>{const s=Nb(t.columnGroupingModel??[]);e.current.setState(a=>{var p;const u=((p=a.columns)==null?void 0:p.orderedFields)??[],c=a.pinnedColumns??{},d=jb(u,s,c);return O({},a,{columnGrouping:O({},a.columnGrouping,{headerStructure:d})})})},[e,t.columnGroupingModel]),i=f.useCallback(s=>{var y,w;const a=((w=(y=e.current).getPinnedColumns)==null?void 0:w.call(y))??{},u=ul(e),c=Ba(e),d=aC(s??[]),p=Nb(s??[]),h=jb(u,p,a),g=c.length===0?0:Math.max(...c.map(m=>{var b;return((b=p[m])==null?void 0:b.length)??0}));e.current.setState(m=>O({},m,{columnGrouping:{lookup:d,unwrappedGroupingModel:p,headerStructure:h,maxDepth:g}}))},[e]);Re(e,"columnIndexChange",l),Re(e,"columnsChange",()=>{i(t.columnGroupingModel)}),Re(e,"columnVisibilityModelChange",()=>{i(t.columnGroupingModel)}),f.useEffect(()=>{i(t.columnGroupingModel)},[i,t.columnGroupingModel])};function OY(){let e,t;const n=new Promise((o,r)=>{e=o,t=r});return n.resolve=e,n.reject=t,n}function Mx(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const o=e.changedTouches[n];if(o.identifier===t)return{x:o.clientX,y:o.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function Ex(e,t,n,o){let r=e;return o==="Right"?r+=t-n.left:r+=n.right-t,r}function RY(e,t,n){return n==="Left"?e-t.left:t.right-e}function kY(e){return e==="Right"?"Left":"Right"}function AY(e,t){const n=e.classList.contains(z["columnSeparator--sideRight"])?"Right":"Left";return t?kY(n):n}function Tx(e){e.preventDefault(),e.stopImmediatePropagation()}function $Y(e){const t=f.useRef(void 0),n=()=>YI(e),o=le(e,n);return f.useEffect(()=>{t.current&&o===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=OY()}return t.current}}function DY(e,t){if(e.length<4)return e;const n=e.slice();n.sort((s,a)=>s-a);const o=n[Math.floor(n.length*.25)],r=n[Math.floor(n.length*.75)-1],l=r-o,i=l<5?5:l*t;return n.filter(s=>s>o-i&&s<r+i)}function LY(e,t,n){const o={},r=e.current.rootElementRef.current;return r.classList.add(z.autosizing),n.forEach(l=>{const s=V8(e.current,l.field).map(g=>g.getBoundingClientRect().width??0),a=t.includeOutliers?s:DY(s,t.outliersFactor);if(t.includeHeaders){const g=_8(e.current,l.field);if(g){const y=g.querySelector(`.${z.columnHeaderTitle}`),w=g.querySelector(`.${z.columnHeaderTitleContainerContent}`),m=g.querySelector(`.${z.iconButtonContainer}`),b=g.querySelector(`.${z.menuIcon}`),v=y??w,S=window.getComputedStyle(g,null),M=parseInt(S.paddingLeft,10)+parseInt(S.paddingRight,10),k=v.scrollWidth+1+M+((m==null?void 0:m.clientWidth)??0)+((b==null?void 0:b.clientWidth)??0);a.push(k)}}const u=l.minWidth!==-1/0&&l.minWidth!==void 0,c=l.maxWidth!==1/0&&l.maxWidth!==void 0,d=u?l.minWidth:0,p=c?l.maxWidth:1/0,h=a.length===0?0:Math.max(...a);o[l.field]=Eo(h,d,p)}),r.classList.remove(z.autosizing),o}const zY=e=>O({},e,{columnResize:{resizingColumnField:""}});function FY(){return{colDef:void 0,initialColWidth:0,initialTotalWidth:0,previousMouseClickEvent:void 0,columnHeaderElement:void 0,headerFilterElement:void 0,groupHeaderElements:[],cellElements:[],leftPinnedCellsAfter:[],rightPinnedCellsBefore:[],fillerLeft:void 0,fillerRight:void 0,leftPinnedHeadersAfter:[],rightPinnedHeadersBefore:[]}}const BY=(e,t)=>{const n=_n(),o=Mn(e,"useGridColumnResize"),r=vr(FY).current,l=f.useRef(null),i=f.useRef(null),s=Wo(),a=f.useRef(void 0),u=P=>{var D,I;o.debug(`Updating width to ${P} for col ${r.colDef.field}`);const C=r.columnHeaderElement.offsetWidth,T=P-C,A=P-r.initialColWidth;if(A>0){const $=r.initialTotalWidth+A;(I=(D=e.current.rootElementRef)==null?void 0:D.current)==null||I.style.setProperty("--DataGrid-rowWidth",`${$}px`)}r.colDef.computedWidth=P,r.colDef.width=P,r.colDef.flex=0,r.columnHeaderElement.style.width=`${P}px`;const L=r.headerFilterElement;L&&(L.style.width=`${P}px`),r.groupHeaderElements.forEach($=>{const B=$;let G;B.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${B.offsetWidth+T}px`,B.style.width=G}),r.cellElements.forEach($=>{const B=$;let G;B.getAttribute("aria-colspan")==="1"?G=`${P}px`:G=`${B.offsetWidth+T}px`,B.style.setProperty("--width",G)});const F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,r.colDef.field);F===Bl.LEFT&&(ys(r.fillerLeft,"width",T),r.leftPinnedCellsAfter.forEach($=>{ys($,"left",T)}),r.leftPinnedHeadersAfter.forEach($=>{ys($,"left",T)})),F===Bl.RIGHT&&(ys(r.fillerRight,"width",T),r.rightPinnedCellsBefore.forEach($=>{ys($,"right",T)}),r.rightPinnedHeadersBefore.forEach($=>{ys($,"right",T)}))},c=P=>{if(m(),r.previousMouseClickEvent){const C=r.previousMouseClickEvent,T=C.timeStamp,A=C.clientX,L=C.clientY;if(P.timeStamp-T<300&&P.clientX===A&&P.clientY===L){r.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,P);return}}if(r.colDef){e.current.setColumnWidth(r.colDef.field,r.colDef.width),o.debug(`Updating col ${r.colDef.field} with new width: ${r.colDef.width}`);const C=gr(e);r.groupHeaderElements.forEach(T=>{const A=z8(T),L=T,D=`${A.reduce((I,$)=>C.columnVisibilityModel[$]!==!1?I+C.lookup[$].computedWidth:I,0)}px`;L.style.width=D})}s.start(0,()=>{e.current.publishEvent("columnResizeStop",null,P)})},d=(P,C,T)=>{var D;const A=e.current.rootElementRef.current;r.initialColWidth=P.computedWidth,r.initialTotalWidth=e.current.getRootDimensions().rowWidth,r.colDef=P,r.columnHeaderElement=L8(e.current.columnHeadersContainerRef.current,P.field);const L=A.querySelector(`.${z.headerFilterRow} [data-field="${Ml(P.field)}"]`);L&&(r.headerFilterElement=L),r.groupHeaderElements=F8((D=e.current.columnHeadersContainerRef)==null?void 0:D.current,P.field),r.cellElements=B8(r.columnHeaderElement,e.current),r.fillerLeft=Zw(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),r.fillerRight=Zw(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const F=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,r.colDef.field);r.leftPinnedCellsAfter=F!==Bl.LEFT?[]:H8(e.current,r.columnHeaderElement,n),r.rightPinnedCellsBefore=F!==Bl.RIGHT?[]:N8(e.current,r.columnHeaderElement,n),r.leftPinnedHeadersAfter=F!==Bl.LEFT?[]:j8(e.current,r.columnHeaderElement,n),r.rightPinnedHeadersBefore=F!==Bl.RIGHT?[]:G8(e.current,r.columnHeaderElement,n),i.current=AY(C,n),l.current=RY(T,r.columnHeaderElement.getBoundingClientRect(),i.current)},p=Xe(c),h=Xe(P=>{if(P.buttons===0){p(P);return}let C=Ex(l.current,P.clientX,r.columnHeaderElement.getBoundingClientRect(),i.current);C=Eo(C,r.colDef.minWidth,r.colDef.maxWidth),u(C);const T={element:r.columnHeaderElement,colDef:r.colDef,width:C};e.current.publishEvent("columnResize",T,P)}),g=Xe(P=>{Mx(P,a.current)&&c(P)}),y=Xe(P=>{const C=Mx(P,a.current);if(!C)return;if(P.type==="mousemove"&&P.buttons===0){g(P);return}let T=Ex(l.current,C.x,r.columnHeaderElement.getBoundingClientRect(),i.current);T=Eo(T,r.colDef.minWidth,r.colDef.maxWidth),u(T);const A={element:r.columnHeaderElement,colDef:r.colDef,width:T};e.current.publishEvent("columnResize",A,P)}),w=Xe(P=>{const C=sp(P.target,z["columnSeparator--resizable"]);if(!C)return;const T=P.changedTouches[0];T!=null&&(a.current=T.identifier);const A=sp(P.target,z.columnHeader),L=D8(A),F=e.current.getColumn(L);o.debug(`Start Resize on col ${F.field}`),e.current.publishEvent("columnResizeStart",{field:L},P),d(F,C,T.clientX);const D=Yt(P.currentTarget);D.addEventListener("touchmove",y),D.addEventListener("touchend",g)}),m=f.useCallback(()=>{const P=Yt(e.current.rootElementRef.current);P.body.style.removeProperty("cursor"),P.removeEventListener("mousemove",h),P.removeEventListener("mouseup",p),P.removeEventListener("touchmove",y),P.removeEventListener("touchend",g),setTimeout(()=>{P.removeEventListener("click",Tx,!0)},100),r.columnHeaderElement&&(r.columnHeaderElement.style.pointerEvents="unset")},[e,r,h,p,y,g]),b=f.useCallback(({field:P})=>{e.current.setState(C=>O({},C,{columnResize:O({},C.columnResize,{resizingColumnField:P})}))},[e]),v=f.useCallback(()=>{e.current.setState(P=>O({},P,{columnResize:O({},P.columnResize,{resizingColumnField:""})}))},[e]),S=Xe(({colDef:P},C)=>{if(C.button!==0||!C.currentTarget.classList.contains(z["columnSeparator--resizable"]))return;C.preventDefault(),o.debug(`Start Resize on col ${P.field}`),e.current.publishEvent("columnResizeStart",{field:P.field},C),d(P,C.currentTarget,C.clientX);const T=Yt(e.current.rootElementRef.current);T.body.style.cursor="col-resize",r.previousMouseClickEvent=C.nativeEvent,T.addEventListener("mousemove",h),T.addEventListener("mouseup",p),T.addEventListener("click",Tx,!0)}),M=Xe((P,C)=>{if(t.disableAutosize||C.button!==0)return;const T=e.current.state.columns.lookup[P.field];T.resizable!==!1&&e.current.autosizeColumns(O({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[T.field]}))}),R=$Y(e),k=f.useRef(!1),E=f.useCallback(async P=>{var F;if(!((F=e.current.rootElementRef)==null?void 0:F.current)||k.current)return;k.current=!0;const T=gr(e),A=O({},C9,P,{columns:(P==null?void 0:P.columns)??T.orderedFields});A.columns=A.columns.filter(D=>T.columnVisibilityModel[D]!==!1);const L=A.columns.map(D=>e.current.state.columns.lookup[D]);try{!t.disableVirtualization&&A.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await R());const D=LY(e,A,L),I=L.map($=>O({},$,{width:D[$.field],computedWidth:D[$.field],flex:0}));if(A.expand){const B=T.orderedFields.map(H=>T.lookup[H]).filter(H=>T.columnVisibilityModel[H.field]!==!1).reduce((H,_)=>H+(D[_.field]??_.computedWidth??_.width),0),N=e.current.getRootDimensions().viewportInnerSize.width-B;if(N>0){const H=N/(I.length||1);I.forEach(_=>{_.width+=H,_.computedWidth+=H})}}e.current.updateColumns(I),I.forEach(($,B)=>{if($.width!==L[B].width){const G=$.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement($.field),colDef:$,width:G})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),k.current=!1}},[e,R,t.disableVirtualization]);f.useEffect(()=>m,[m]),Cv(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),KI(e,()=>{var P;return(P=e.current.columnHeadersContainerRef)==null?void 0:P.current},"touchstart",w,{passive:!0}),Je(e,{autosizeColumns:E},"public"),Re(e,"columnResizeStop",v),Re(e,"columnResizeStart",b),Re(e,"columnSeparatorMouseDown",S),Re(e,"columnSeparatorDoubleClick",M),xt(e,"columnResize",t.onColumnResize),xt(e,"columnWidthChange",t.onColumnWidthChange)};function ys(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function HY(e,t){return e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?null:e.firstRowIndex>=t.firstRowIndex&&e.lastRowIndex>t.lastRowIndex?{firstRowIndex:t.lastRowIndex,lastRowIndex:e.lastRowIndex}:e.firstRowIndex<t.firstRowIndex&&e.lastRowIndex<=t.lastRowIndex?{firstRowIndex:e.firstRowIndex,lastRowIndex:t.firstRowIndex-1}:e}function Px(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const Yg=(e,t,n)=>{if(!e)return null;let o=e[t.field];const r=t.rowSpanValueGetter??t.valueGetter;return r&&(o=r(o,e,t,n)),o},Gs={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},dp={firstRowIndex:0,lastRowIndex:0},NY=new Set([Jr,"__reorder__",Oh]),Ix=20,TO=(e,t,n,o,r,l,i)=>{const s=l?{}:O({},e.current.state.rowSpanning.spannedCells),a=l?{}:O({},e.current.state.rowSpanning.hiddenCells),u=l?{}:O({},e.current.state.rowSpanning.hiddenCellOriginMap);return l&&(i=dp),t.forEach(c=>{var d;if(!NY.has(c.field)){for(let p=r.firstRowIndex;p<r.lastRowIndex;p+=1){const h=n[p];if((d=a[h.id])!=null&&d[c.field])continue;const g=Yg(h.model,c,e);if(g==null)continue;let y=h.id,w=p,m=0;const b=[];if(p===r.firstRowIndex){let S=p-1,M=n[S];for(;S>=o.firstRowIndex&&M&&Yg(M.model,c,e)===g;){const R=n[S+1];a[R.id]?a[R.id][c.field]=!0:a[R.id]={[c.field]:!0},b.push(p),m+=1,y=M.id,w=S,S-=1,M=n[S]}}b.forEach(S=>{u[S]?u[S][c.field]=w:u[S]={[c.field]:w}});let v=p+1;for(;v<=o.lastRowIndex&&n[v]&&Yg(n[v].model,c,e)===g;){const S=n[v];a[S.id]?a[S.id][c.field]=!0:a[S.id]={[c.field]:!0},u[v]?u[v][c.field]=w:u[v]={[c.field]:w},v+=1,m+=1}m>0&&(s[y]?s[y][c.field]=m+1:s[y]={[c.field]:m+1})}i={firstRowIndex:Math.min(i.firstRowIndex,r.firstRowIndex),lastRowIndex:Math.max(i.lastRowIndex,r.lastRowIndex)}}}),{spannedCells:s,hiddenCells:a,hiddenCellOriginMap:u,processedRange:i}},PO=(e,t)=>{const n=Ri(t).length;if(e.pagination){const o=BI(t);let r=Ix;return o>0&&(r=o-1),{firstRowIndex:0,lastRowIndex:Math.min(r,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(Ix,n)}},jY=(e,t,n)=>{var g;if(!t.rowSpanning)return O({},e,{rowSpanning:Gs});const o=e.rows.dataRowIds||[],r=e.columns.orderedFields||[],l=e.rows.dataRowIdToModelLookup,i=e.columns.lookup,s=!!e.filter.filterModel.items.length||!!((g=e.filter.filterModel.quickFilterValues)!=null&&g.length);if(!o.length||!r.length||!l||!i||s)return O({},e,{rowSpanning:Gs});const a=PO(t,n),u=o.map(y=>({id:y,model:l[y]})),c=r.map(y=>i[y]),{spannedCells:d,hiddenCells:p,hiddenCellOriginMap:h}=TO(n,c,u,a,a,!0,dp);return O({},e,{rowSpanning:{spannedCells:d,hiddenCells:p,hiddenCellOriginMap:h}})},GY=(e,t)=>{const n=vr(()=>e.current.state.rowSpanning!==Gs?PO(t,e):dp),o=f.useCallback((l,i=!1)=>{const{range:s,rows:a}=ii(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(s===null||!Px(l))return;i&&(n.current=dp);const u=HY({firstRowIndex:l.firstRowIndex,lastRowIndex:Math.min(l.lastRowIndex,s.lastRowIndex+1)},n.current);if(u===null)return;const c=Kt(e),{spannedCells:d,hiddenCells:p,hiddenCellOriginMap:h,processedRange:g}=TO(e,c,a,s,u,i,n.current);n.current=g;const y=Object.keys(d).length,w=Object.keys(p).length,m=Object.keys(e.current.state.rowSpanning.spannedCells).length,b=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(i||y!==m||w!==b)||y===0&&m===0||e.current.setState(M=>O({},M,{rowSpanning:{spannedCells:d,hiddenCells:p,hiddenCellOriginMap:h}}))},[e,n,t.pagination,t.paginationMode]),r=f.useCallback(()=>{const l=nd(e);Px(l)&&o(l,!0)},[e,o]);Re(e,"renderedRowsIntervalChange",Ul(t.rowSpanning,o)),Re(e,"sortedRowsSet",Ul(t.rowSpanning,r)),Re(e,"paginationModelChange",Ul(t.rowSpanning,r)),Re(e,"filteredRowsSet",Ul(t.rowSpanning,r)),Re(e,"columnsChange",Ul(t.rowSpanning,r)),f.useEffect(()=>{t.rowSpanning?e.current.state.rowSpanning===Gs&&r():e.current.state.rowSpanning!==Gs&&e.current.setState(l=>O({},l,{rowSpanning:Gs}))},[e,r,t.rowSpanning])},_Y=(e,t,n)=>O({},e,{listViewColumn:t.listViewColumn?O({},t.listViewColumn,{computedWidth:Gb(n)}):void 0});function VY(e,t){const n=()=>{e.current.setState(l=>l.listViewColumn?O({},l,{listViewColumn:O({},l.listViewColumn,{computedWidth:Gb(e)})}):l)},o=f.useRef(null);Re(e,"viewportInnerSizeChange",l=>{o.current!==l.width&&(o.current=l.width,n())}),Re(e,"columnVisibilityModelChange",n),Ot(()=>{const l=t.listViewColumn;l&&e.current.setState(i=>O({},i,{listViewColumn:O({},l,{computedWidth:Gb(e)})}))},[e,t.listViewColumn]),f.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}function Gb(e){return Tt(e).viewportInnerSize.width}const UY=Pe(vn,Lo,Tn,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let Xg=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class _b{constructor(t){this.chunkSize=void 0,this.getCacheKeys=n=>{if(this.chunkSize<1||typeof n.start!="number")return[n];const o=[];for(let r=n.start;r<n.end;r+=this.chunkSize){const l=Math.min(r+this.chunkSize-1,n.end);o.push(O({},n,{start:r,end:l}))}return o},this.splitResponse=(n,o)=>{const r=this.getCacheKeys(n),l=new Map;return r.forEach(i=>{var u,c,d,p;const s=i.end===n.end,a=O({},o,{pageInfo:O({},o.pageInfo,{hasNextPage:((u=o.pageInfo)==null?void 0:u.hasNextPage)!==void 0&&!s?!0:(c=o.pageInfo)==null?void 0:c.hasNextPage,nextCursor:((d=o.pageInfo)==null?void 0:d.nextCursor)!==void 0&&!s?o.rows[i.end+1].id:(p=o.pageInfo)==null?void 0:p.nextCursor}),rows:typeof i.start!="number"||typeof n.start!="number"?o.rows:o.rows.slice(i.start-n.start,i.end-n.start+1)});l.set(i,a)}),l},this.chunkSize=t}}_b.mergeResponses=e=>e.length===1?e[0]:e.reduce((t,n)=>({rows:[...t.rows,...n.rows],rowCount:n.rowCount,pageInfo:n.pageInfo}),{rows:[],rowCount:0,pageInfo:{}});const WY={clear:()=>{},get:()=>{},set:()=>{}};function Ox(e,t={}){return e===null?WY:e??new M9(t)}const qY=(e,t,n={})=>{var M,R;const o=f.useCallback(()=>{e.current.setStrategyAvailability(ql.DataSource,Xg.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[r,l]=f.useState(!1),i=le(e,Tn),s=f.useRef(0),a=t.onDataSourceError,u=vr(()=>{const k=t.pageSizeOptions.map(P=>typeof P=="number"?P:P.value).sort((P,C)=>P-C),E=Math.min(i.pageSize,k[0]);return new _b(E)}).current,[c,d]=f.useState(()=>Ox(t.dataSourceCache,n.cacheOptions)),p=f.useCallback(async(k,E)=>{var F,D,I;const P=(F=t.dataSource)==null?void 0:F.getRows;if(!P)return;if(k&&k!==On&&t.signature!=="DataGrid"){(D=n.fetchRowChildren)==null||D.call(n,[k]);return}(I=n.clearDataSourceState)==null||I.call(n);const C=O({},UY(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),E),A=u.getCacheKeys(C).map($=>c.get($));if(A.every($=>$!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:_b.mergeResponses(A),fetchParams:C});return}(r||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const L=s.current+1;s.current=L;try{const $=await P(C);u.splitResponse(C,$).forEach((G,j)=>c.set(j,G)),s.current===L&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:$,fetchParams:C})}catch($){s.current===L&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:$,fetchParams:C}),typeof a=="function"&&a(new E9({message:$==null?void 0:$.message,params:C,cause:$})))}finally{r&&s.current===L&&e.current.setLoading(!1)}},[u,c,e,r,(M=t.dataSource)==null?void 0:M.getRows,a,n,t.signature]),h=f.useCallback(()=>{l(e.current.getActiveStrategy(ql.DataSource)===Xg.Default)},[e]),g=f.useCallback(k=>{if("error"in k){e.current.setRows([]);return}const{response:E}=k;E.rowCount!==void 0&&e.current.setRowCount(E.rowCount),e.current.setRows(E.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:k.fetchParams,response:E},!0)},[e]),y=(R=t.dataSource)==null?void 0:R.updateRow,w=n.handleEditRow,m=f.useCallback(async k=>{if(y)try{const E=await y(k);return typeof w=="function"?(w(k,E),E):(e.current.updateNestedRows([E],[]),E&&!To(E,k.previousRow)&&e.current.dataSource.cache.clear(),E)}catch(E){throw typeof a=="function"&&a(new T9({message:E==null?void 0:E.message,params:k,cause:E})),E}},[e,y,a,w]),b={dataSource:{fetchRows:p,cache:c,editRow:m}},v=f.useMemo(()=>Da(p,0),[p]),S=f.useRef(!0);return f.useEffect(()=>{if(S.current){S.current=!1;return}if(t.dataSourceCache===void 0)return;const k=Ox(t.dataSourceCache,n.cacheOptions);d(E=>E!==k?k:E)},[t.dataSourceCache,n.cacheOptions]),f.useEffect(()=>{t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows())},[e,t.dataSource]),{api:{public:b},debouncedFetchRows:v,strategyProcessor:{strategyName:Xg.Default,group:"dataSourceRowsUpdate",processor:g},setStrategyAvailability:o,cacheChunkManager:u,cache:c,events:{strategyAvailabilityChange:h,sortModelChange:Ul(r,()=>v()),filterModelChange:Ul(r,()=>v()),paginationModelChange:Ul(r,()=>v())}}},KY=(e,t)=>{const{api:n,strategyProcessor:o,events:r,setStrategyAvailability:l}=qY(e,t);Je(e,n.public,"public"),vu(e,o.strategyName,o.group,o.processor),Object.entries(r).forEach(([i,s])=>{Re(e,i,s)}),f.useEffect(()=>{l()},[l])},YY=(e,t)=>{dK(e,t),cY(e,t),rY(e),yn(cK,e,t),yn(iY,e,t),yn(vK,e,t),yn(JK,e,t),yn(jK,e,t),yn(QK,e,t),yn(DK,e,t),yn(uY,e,t),yn(_K,e,t),yn(RK,e,t),yn(jY,e,t),yn(SK,e,t),yn(zY,e,t),yn(bK,e,t),yn(PY,e,t),yn(DU,e,t),yn(mY,e,t),yn(SY,e,t),yn(_Y,e,t),BK(e,t),sY(e,t),CK(e,t),eY(e,t),GY(e,t),lY(e,t),MY(e),IY(e,t),ZK(e,t),LK(e,t),VK(e,t),$K(e,t),dY(e,t),wK(e,t),BY(e,t),GK(e,t),wY(e,t),fY(e,t),yK(e),MK(e,t),OK(e,t),mK(e,t),bY(e,t),pY(e,t),xY(e),LU(e,t),VY(e,t),KY(e,t)},XY=e=>{const{classes:t,headerAlign:n,isDragging:o,isLastColumn:r,showLeftBorder:l,showRightBorder:i,groupId:s,pinnedPosition:a}=e,u={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",o&&"columnHeader--moving",i&&"columnHeader--withRightBorder",l&&"columnHeader--withLeftBorder","withBorderColor",s===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",a===nt.LEFT&&"columnHeader--pinnedLeft",a===nt.RIGHT&&"columnHeader--pinnedRight",r&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return ve(u,tt,t)};function QY(e){var B;const{groupId:t,width:n,depth:o,maxDepth:r,fields:l,height:i,colIndex:s,hasFocus:a,tabIndex:u,isLastColumn:c,pinnedPosition:d,pinnedOffset:p}=e,h=Se(),g=_n(),y=f.useRef(null),w=Ue(),m=le(w,UI),b=t?m[t]:{},{headerName:v=t??"",description:S="",headerAlign:M=void 0}=b;let R;const k=t&&((B=m[t])==null?void 0:B.renderHeaderGroup),E=f.useMemo(()=>({groupId:t,headerName:v,description:S,depth:o,maxDepth:r,fields:l,colIndex:s,isLastColumn:c}),[t,v,S,o,r,l,s,c]);t&&k&&(R=k(E));const P=O({},e,{classes:h.classes,headerAlign:M,depth:o,isDragging:!1}),C=v??t,T=at(),A=t===null?`empty-group-cell-${T}`:t,L=XY(P);f.useLayoutEffect(()=>{if(a){const j=y.current.querySelector('[tabindex="0"]')||y.current;j==null||j.focus()}},[w,a]);const F=f.useCallback(G=>j=>{od(j)||w.current.publishEvent(G,E,j)},[w,E]),D=f.useMemo(()=>({onKeyDown:F("columnGroupHeaderKeyDown"),onFocus:F("columnGroupHeaderFocus"),onBlur:F("columnGroupHeaderBlur")}),[F]),I=typeof b.headerClassName=="function"?b.headerClassName(E):b.headerClassName,$=f.useMemo(()=>Fh(O({},e.style),g,d,p),[d,p,e.style,g]);return x.jsx(fO,O({ref:y,classes:L,columnMenuOpen:!1,colIndex:s,height:i,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:u,isDraggable:!1,headerComponent:R,headerClassName:I,description:S,elementId:A,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:C,"aria-colspan":l.length,"data-fields":`|-${l.join("-|-")}-|`,style:$},D))}const Rx=Z("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),ZY=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:o,columnHeaderTabIndexState:r,columnGroupHeaderTabIndexState:l,columnHeaderFocus:i,columnGroupHeaderFocus:s,headerGroupingMaxDepth:a,columnMenuState:u,columnVisibility:c,columnGroupsHeaderStructure:d,hasOtherElementInTabSequence:p}=e,[h,g]=f.useState(""),[y,w]=f.useState(""),m=Ro(),b=Se(),v=le(m,VI),S=le(m,yi),M=le(m,$U),R=le(m,Ha),k=le(m,xl),E=ZI(S,M,R.left.length),P=le(m,Mh),C=le(m,eI),T=le(m,U6),A=le(m,W6),L=le(m,tI),F=f.useCallback(X=>w(X.field),[]),D=f.useCallback(()=>w(""),[]),I=f.useCallback(X=>g(X.field),[]),$=f.useCallback(()=>g(""),[]),B=f.useMemo(()=>R.left.length?{firstColumnIndex:0,lastColumnIndex:R.left.length}:null,[R.left.length]),G=f.useMemo(()=>R.right.length?{firstColumnIndex:t.length-R.right.length,lastColumnIndex:t.length}:null,[R.right.length,t.length]);Re(m,"columnResizeStart",F),Re(m,"columnResizeStop",D),Re(m,"columnHeaderDragStart",I),Re(m,"columnHeaderDragEnd",$);const j=X=>{const{renderContext:oe=M}=X||{},ue=oe.firstColumnIndex,V=oe.lastColumnIndex;return{renderedColumns:t.slice(ue,V),firstColumnToRender:ue,lastColumnToRender:V}},N=(X,oe,ue,V=!1)=>{const W=(X==null?void 0:X.position)===nt.RIGHT,ne=(X==null?void 0:X.position)===void 0,J=R.right.length>0&&W||R.right.length===0&&ne,Y=E-ue;return x.jsxs(f.Fragment,{children:[ne&&x.jsx("div",{role:"presentation",style:{width:Y}}),oe,ne&&x.jsx("div",{role:"presentation",className:de(z.filler,V&&z["filler--borderBottom"])}),J&&x.jsx(iC,{header:!0,pinnedRight:W,borderBottom:V,borderTop:!1})]})},H=(X,oe={})=>{const{renderedColumns:ue,firstColumnToRender:V}=j(X),W=[];for(let ne=0;ne<ue.length;ne+=1){const J=ue[ne],Y=V+ne,ee=Y===0,pe=r!==null&&r.field===J.field||ee&&!p?0:-1,me=i!==null&&i.field===J.field,ye=u.open&&u.field===J.field,te=X==null?void 0:X.position,Ce=Vc(te,J.computedWidth,Y,S,P,L),ge=te===nt.RIGHT?ue[ne-1]:ue[ne+1],Te=ge?i!==null&&i.field===ge.field:!1,Q=Y+1===S.length-R.right.length,ke=ne,Ie=ue.length,Le=up(te,ke),Ne=cp(te,ke,Ie,b.showColumnVerticalBorder,C);W.push(x.jsx(o7,O({},n[J.field],{columnMenuOpen:ye,filterItemsCounter:o[J.field]&&o[J.field].length,headerHeight:T,isDragging:J.field===h,colDef:J,colIndex:Y,isResizing:y===J.field,isLast:Y===S.length-1,hasFocus:me,tabIndex:pe,pinnedPosition:te,pinnedOffset:Ce,isLastUnpinned:Q,isSiblingFocused:Te,showLeftBorder:Le,showRightBorder:Ne},oe),J.field))}return N(X,W,0)},_=()=>x.jsxs(Rx,{role:"row","aria-rowindex":a+1,ownerState:b,className:z["row--borderBottom"],style:{height:T},children:[B&&H({position:nt.LEFT,renderContext:B},{disableReorder:!0}),H({renderContext:M}),G&&H({position:nt.RIGHT,renderContext:G},{disableReorder:!0,separatorSide:rC.Left})]}),U=({depth:X,params:oe})=>{var Ie,Le;const ue=j(oe);if(ue.renderedColumns.length===0)return null;const{firstColumnToRender:V,lastColumnToRender:W}=ue,ne=d[X],J=t[V].field,Y=((Ie=v[J])==null?void 0:Ie[X])??null,ee=ne.findIndex(({groupId:Ne,columnFields:qe})=>Ne===Y&&qe.includes(J)),pe=t[W-1].field,me=((Le=v[pe])==null?void 0:Le[X])??null,ye=ne.findIndex(({groupId:Ne,columnFields:qe})=>Ne===me&&qe.includes(pe)),te=ne.slice(ee,ye+1).map(Ne=>O({},Ne,{columnFields:Ne.columnFields.filter(qe=>c[qe]!==!1)})).filter(Ne=>Ne.columnFields.length>0),Ce=te[0].columnFields.indexOf(J),Te=te[0].columnFields.slice(0,Ce).reduce((Ne,qe)=>{const De=k[qe];return Ne+(De.computedWidth??0)},0);let Q=V;const ke=te.map(({groupId:Ne,columnFields:qe},De)=>{const Ee=s!==null&&s.depth===X&&qe.includes(s.field),Oe=l!==null&&l.depth===X&&qe.includes(l.field)?0:-1,ce={groupId:Ne,width:qe.reduce((xe,ze)=>xe+k[ze].computedWidth,0),fields:qe,colIndex:Q,hasFocus:Ee,tabIndex:Oe},Ve=oe.position,et=Vc(Ve,ce.width,Q,S,P,L);Q+=qe.length;let we=De;return Ve===nt.LEFT&&(we=Q-1),x.jsx(QY,{groupId:Ne,width:ce.width,fields:ce.fields,colIndex:ce.colIndex,depth:X,isLastColumn:De===te.length-1,maxDepth:a,height:A,hasFocus:Ee,tabIndex:Oe,pinnedPosition:Ve,pinnedOffset:et,showLeftBorder:up(Ve,we),showRightBorder:cp(Ve,we,te.length,b.showColumnVerticalBorder,C)},De)});return N(oe,ke,Te)};return{renderContext:M,leftRenderContext:B,rightRenderContext:G,pinnedColumns:R,visibleColumns:t,columnPositions:S,getFillers:N,getColumnHeadersRow:_,getColumnsToRender:j,getColumnGroupHeadersRows:()=>{if(a===0)return null;const X=[];for(let oe=0;oe<a;oe+=1)X.push(x.jsxs(Rx,{role:"row","aria-rowindex":oe+1,ownerState:b,style:{height:A},children:[B&&U({depth:oe,params:{position:nt.LEFT,renderContext:B,maxLastColumn:B.lastColumnIndex}}),U({depth:oe,params:{renderContext:M}}),G&&U({depth:oe,params:{position:nt.RIGHT,renderContext:G,maxLastColumn:G.lastColumnIndex}})]},oe));return X},getPinnedCellOffset:Vc,isDragging:!!h,getInnerProps:()=>({role:"rowgroup"})}},JY=["className"],eX=e=>{const{classes:t}=e;return ve({root:["columnHeaders"]},tt,t)},tX=ht("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),nX=He(function(t,n){const{className:o}=t,r=be(t,JY),l=Se(),i=eX(l);return x.jsx(tX,O({className:de(i.root,o),ownerState:l},r,{role:"presentation",ref:n}))}),oX=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],rX=He(function(t,n){const{visibleColumns:o,sortColumnLookup:r,filterColumnLookup:l,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:a,columnGroupHeaderFocus:u,headerGroupingMaxDepth:c,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g}=t,y=be(t,oX),{getInnerProps:w,getColumnHeadersRow:m,getColumnGroupHeadersRows:b}=ZY({visibleColumns:o,sortColumnLookup:r,filterColumnLookup:l,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:s,columnHeaderFocus:a,columnGroupHeaderFocus:u,headerGroupingMaxDepth:c,columnMenuState:d,columnVisibility:p,columnGroupsHeaderStructure:h,hasOtherElementInTabSequence:g});return x.jsxs(nX,O({},y,w(),{ref:n,children:[b(),m()]}))}),lX=Sl(rX);function iX(e){return null}function sX(e){return null}const aX=He(function(t,n){const r=Ue().current.getLocaleText("noResultsOverlayLabel");return x.jsx(Bh,O({},t,{ref:n,children:r}))}),cX=new TextEncoder;let ff=2*1024,Wc=new ArrayBuffer(ff),Qg=new Uint8Array(Wc),wi=new Int32Array(Wc);const uX=dX;function dX(e){const t=e.length*2;t>ff&&(ff=t+(4-t%4),Wc=new ArrayBuffer(ff),Qg=new Uint8Array(Wc),wi=new Int32Array(Wc));const n=cX.encodeInto(e,Qg).written,o=0,r=n|0;let l=0,i=(o+r|0)+374761393|0;if(r<16)for(;(l+3|0)<r;l=l+4|0)i=Math.imul(ar(i+Math.imul(wi[l]|0,3266489917)|0,17)|0,668265263);else{let s=o+606290984|0,a=o+2246822519|0,u=o,c=o-2654435761|0;for(;(l+15|0)<r;l=l+16|0)s=Math.imul(ar(s+Math.imul(wi[l+0|0]|0,2246822519)|0,13)|0,2654435761),a=Math.imul(ar(a+Math.imul(wi[l+4|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(ar(u+Math.imul(wi[l+8|0]|0,2246822519)|0,13)|0,2654435761),c=Math.imul(ar(c+Math.imul(wi[l+12|0]|0,2246822519)|0,13)|0,2654435761);for(i=(((ar(s,1)|0+ar(a,7)|0)+ar(u,12)|0)+ar(c,18)|0)+r|0;(l+3|0)<r;l=l+4|0)i=Math.imul(ar(i+Math.imul(wi[l]|0,3266489917)|0,17)|0,668265263)}for(;l<r;l=l+1|0)i=Math.imul(ar(i+Math.imul(Qg[l]|0,374761393)|0,11)|0,2654435761);return i=Math.imul(i^i>>>15,2246822519),i=Math.imul(i^i>>>13,3266489917),((i^i>>>16)>>>0).toString()}function ar(e,t){return e<<t|e>>>32-t}function fX(e){const t=new WeakSet;return JSON.stringify(e,(n,o)=>{if(o!==null&&typeof o=="object"){if(t.has(o))return null;t.add(o)}return o})}function pX(){const e=mi();return f.useMemo(()=>{const t=uX(fX(e)),n=hX(e);return{id:t,variables:n}},[e])}function hX(e){var g,y,w,m,b,v;const t=mX(e),n=e.palette.DataGrid,o=(n==null?void 0:n.bg)??(e.vars||e).palette.background.default,r=(n==null?void 0:n.headerBg)??o,l=(n==null?void 0:n.pinnedBg)??o,i=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:lt(e.palette.background.default,e.palette.action.disabledOpacity),s=e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper,a=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,u=gX(e),c=((y=(g=e.vars)==null?void 0:g.font)==null?void 0:y.body2)??Zg(e.typography.body2),d=((m=(w=e.vars)==null?void 0:w.font)==null?void 0:m.caption)??Zg(e.typography.caption),p=((v=(b=e.vars)==null?void 0:b.font)==null?void 0:v.body1)??Zg(e.typography.body1),h=Me.keys;return{[h.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[h.colors.border.base]:t,[h.colors.background.base]:o,[h.colors.background.overlay]:s,[h.colors.background.backdrop]:i,[h.colors.foreground.base]:(e.vars||e).palette.text.primary,[h.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[h.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[h.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[h.colors.foreground.error]:(e.vars||e).palette.error.dark,[h.colors.interactive.hover]:(e.vars||e).palette.action.hover,[h.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[h.colors.interactive.focus]:kx((e.vars||e).palette.primary.main),[h.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[h.colors.interactive.disabled]:kx((e.vars||e).palette.action.disabled),[h.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[h.colors.interactive.selected]:a,[h.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[h.header.background.base]:r,[h.cell.background.pinned]:l,[h.radius.base]:u,[h.typography.fontFamily.base]:e.typography.fontFamily,[h.typography.fontWeight.light]:e.typography.fontWeightLight,[h.typography.fontWeight.regular]:e.typography.fontWeightRegular,[h.typography.fontWeight.medium]:e.typography.fontWeightMedium,[h.typography.fontWeight.bold]:e.typography.fontWeightBold,[h.typography.font.body]:c,[h.typography.font.small]:d,[h.typography.font.large]:p,[h.transitions.easing.easeIn]:e.transitions.easing.easeIn,[h.transitions.easing.easeOut]:e.transitions.easing.easeOut,[h.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[h.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[h.transitions.duration.base]:`${e.transitions.duration.short}ms`,[h.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[h.shadows.base]:(e.vars||e).shadows[2],[h.shadows.overlay]:(e.vars||e).shadows[8],[h.zIndex.panel]:(e.vars||e).zIndex.modal,[h.zIndex.menu]:(e.vars||e).zIndex.modal}}function gX(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function mX(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?ns(lt(e.palette.divider,1),.88):ts(lt(e.palette.divider,1),.68)}function bX(e,t){return`rgba(from ${e} r g b / ${t})`}function kx(e){return bX(e,1)}function Zg(e){return`${e.fontWeight} ${e.fontSize} / ${e.lineHeight} ${e.fontFamily}`}const yX=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],vX=["onRowsPerPageChange","material","disabled"],CX=["material"],SX=["autoFocus","label","fullWidth","slotProps","className","material"],wX=["material"],xX=["material"],MX=["material"],EX=["material"],TX=["material"],PX=["material"],IX=["material"],OX=["material"],RX=["material","label","className"],kX=["material"],AX=["inert","iconStart","iconEnd","children","material"],$X=["slotProps","material"],DX=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],LX=["key"],zX=["inputProps","InputProps","InputLabelProps"],FX=["slotProps","material"],BX=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],HX=["native"],Ax=Z(lj)(({theme:e})=>({[`&.${Mb.positionEnd} .${pb.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),IO=Z(TP,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${Bs.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),$x=Z(g5,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),NX=Z(Fj)({[`& .${Oi.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),jX=He(function(t,n){const{id:o,label:r,labelId:l,material:i,disabled:s,slotProps:a,onChange:u,onKeyDown:c,onOpen:d,onClose:p,size:h,style:g,fullWidth:y}=t,w=be(t,yX),m={PaperProps:{onKeyDown:c}};return p&&(m.onClose=p),x.jsxs(EP,{size:h,fullWidth:y,style:g,disabled:s,ref:n,children:[x.jsx(OP,{id:l,htmlFor:o,shrink:!0,variant:"outlined",children:r}),x.jsx(zv,O({id:o,labelId:l,label:r,displayEmpty:!0,onChange:u},w,{variant:"outlined",notched:!0,inputProps:a==null?void 0:a.htmlInput,onOpen:d,MenuProps:m,size:h},i))]})}),GX=Z(z3)(({theme:e})=>({[`& .${Ni.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${Ni.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),_X=He(function(t,n){const{onRowsPerPageChange:o,material:r,disabled:l}=t,i=be(t,vX),s=f.useMemo(()=>{if(l)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[l]),a=Ue(),u=Se(),{estimatedRowCount:c}=u;return x.jsx(GX,O({component:"div",onRowsPerPageChange:Xe(d=>{o==null||o(Number(d.target.value))}),labelRowsPerPage:a.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:d=>a.current.getLocaleText("paginationDisplayedRows")(O({},d,{estimated:c})),getItemAriaLabel:a.current.getLocaleText("paginationItemAriaLabel")},s,i,r,{ref:n}))}),VX=He(function(t,n){const{material:o}=t,r=be(t,CX);return x.jsx(zN,O({},r,o,{ref:n}))}),UX=He(function(t,n){const{autoFocus:o,label:r,fullWidth:l,slotProps:i,className:s,material:a}=t,u=be(t,SX),c=f.useRef(null),d=vt(c,n),p=f.useRef(null);return f.useEffect(()=>{var h;if(o){const g=(h=c.current)==null?void 0:h.querySelector("input");g==null||g.focus({preventScroll:!0})}else o===!1&&p.current&&p.current.stop({})},[o]),r?x.jsx(IO,{className:s,control:x.jsx($x,O({},u,a,{inputProps:i==null?void 0:i.htmlInput,ref:d,touchRippleRef:p})),label:r,fullWidth:l}):x.jsx($x,O({},u,a,{className:de(s,a==null?void 0:a.className),inputProps:i==null?void 0:i.htmlInput,ref:d,touchRippleRef:p}))}),WX=He(function(t,n){const{material:o}=t,r=be(t,wX);return x.jsx(Sv,O({},r,o,{ref:n}))}),qX=He(function(t,n){const{material:o}=t,r=be(t,xX);return x.jsx(w4,O({},r,o,{ref:n}))}),KX=He(function(t,n){const{material:o}=t,r=be(t,MX);return x.jsx(Cj,O({},r,o,{ref:n}))}),YX=He(function(t,n){const{material:o}=t,r=be(t,EX);return x.jsx(Jf,O({},r,o,{ref:n}))}),XX=He(function(t,n){const{material:o}=t,r=be(t,TX);return x.jsx(Rv,O({},r,o,{ref:n}))}),QX=He(function(t,n){const{material:o}=t,r=be(t,PX);return x.jsx(il,O({},r,o,{ref:n}))}),ZX=He(function(t,n){const{material:o}=t,r=be(t,IX);return x.jsx(WG,O({},r,o,{ref:n}))}),JX=He(function(t,n){const{material:o}=t,r=be(t,OX);return x.jsx(FG,O({},r,o,{ref:n}))}),eQ=He(function(t,n){const{material:o,label:r,className:l}=t,i=be(t,RX);return r?x.jsx(IO,{className:l,control:x.jsx(ep,O({},i,o,{ref:n})),label:r}):x.jsx(ep,O({},i,o,{className:l,ref:n}))}),tQ=He(function(t,n){const{material:o}=t,r=be(t,kX);return x.jsx(kP,O({},r,o,{ref:n}))});function nQ(e){const{inert:t,iconStart:n,iconEnd:o,children:r,material:l}=e,i=be(e,AX);return t&&(i.disableRipple=!0),f.createElement($v,O({},i,l),[n&&x.jsx(lw,{children:n},"1"),x.jsx(NX,{children:r},"2"),o&&x.jsx(lw,{children:o},"3")])}function oQ(e){const{slotProps:t,material:n}=e,o=be(e,$X);return x.jsx(Js,O({variant:"outlined"},o,n,{inputProps:t==null?void 0:t.htmlInput,InputProps:cC(t==null?void 0:t.input),InputLabelProps:O({shrink:!0},t==null?void 0:t.inputLabel)}))}function rQ(e){const t=Se(),{id:n,multiple:o,freeSolo:r,options:l,getOptionLabel:i,isOptionEqualToValue:s,value:a,onChange:u,label:c,placeholder:d,slotProps:p,material:h}=e,g=be(e,DX);return x.jsx(Zf,O({id:n,multiple:o,freeSolo:r,options:l,getOptionLabel:i,isOptionEqualToValue:s,value:a,onChange:u,renderTags:(y,w)=>y.map((m,b)=>{const v=w({index:b}),{key:S}=v,M=be(v,LX);return x.jsx(Rv,O({variant:"outlined",size:"small",label:typeof m=="string"?m:i==null?void 0:i(m)},M),S)}),renderInput:y=>{var S;const{inputProps:w,InputProps:m,InputLabelProps:b}=y,v=be(y,zX);return x.jsx(Js,O({},v,{label:c,placeholder:d,inputProps:w,InputProps:cC(m,!1),InputLabelProps:O({shrink:!0},b)},p==null?void 0:p.textField,(S=t.slotProps)==null?void 0:S.baseTextField))}},g,h))}function lQ(e){return x.jsx(qu,O({},cC(e)))}function cC(e,t=!0){if(!e)return;const{slotProps:n,material:o}=e,l=be(e,FX);t&&(l.startAdornment&&(l.startAdornment=x.jsx(Ax,{position:"start",children:l.startAdornment})),l.endAdornment&&(l.endAdornment=x.jsx(Ax,{position:"end",children:l.endAdornment})));for(const i in o)Object.hasOwn(o,i)&&(l[i]=o[i]);return n!=null&&n.htmlInput&&(l.inputProps?l.inputProps=O({},l.inputProps,n==null?void 0:n.htmlInput):l.inputProps=n==null?void 0:n.htmlInput),l}const iQ={"bottom-start":"top left","bottom-end":"top right"};function sQ(e){const{open:t,children:n,className:o,flip:r,onExited:l,onDidShow:i,onDidHide:s,id:a,target:u,transition:c,placement:d,material:p}=e,h=be(e,BX),g=f.useMemo(()=>{const w=[{name:"preventOverflow",options:{padding:8}}];return r&&w.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(i||s)&&w.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{i==null||i()},effect:()=>()=>{s==null||s()}}),w},[r,i,s]);let y;if(!c)y=Dx(e,n);else{const w=m=>b=>{m&&m(),l&&l(b)};y=m=>{var b;return Dx(e,x.jsx(kv,O({},m.TransitionProps,{style:{transformOrigin:iQ[m.placement]},onExited:w((b=m.TransitionProps)==null?void 0:b.onExited),children:x.jsx(os,{children:n})})))}}return x.jsx(Wu,O({id:a,className:o,open:t,anchorEl:u,transition:c,placement:d,modifiers:g},h,p,{children:y}))}function Dx(e,t){return cQ(e,aQ(e,t))}function aQ(e,t){return e.onClickAway===void 0?t:x.jsx(b5,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function cQ(e,t){return e.focusTrap===void 0?t:x.jsx(CP,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:x.jsx("div",{tabIndex:-1,children:t})})}function uQ(e){let{native:t}=e,n=be(e,HX);return t?x.jsx("option",O({},n)):x.jsx($v,O({},n))}const dQ={booleanCellTrueIcon:sx,booleanCellFalseIcon:rx,columnMenuIcon:T7,openFilterButtonIcon:v7,filterPanelDeleteIcon:rx,columnFilteredIcon:ox,columnSelectorIcon:S7,columnSortedAscendingIcon:Jw,columnSortedDescendingIcon:ex,columnResizeIcon:w7,densityCompactIcon:x7,densityStandardIcon:M7,densityComfortableIcon:E7,exportIcon:$7,moreActionsIcon:O7,treeDataCollapseIcon:nx,treeDataExpandIcon:tx,groupingCriteriaCollapseIcon:nx,groupingCriteriaExpandIcon:tx,detailPanelExpandIcon:lx,detailPanelCollapseIcon:P7,rowReorderIcon:ix,quickFilterIcon:C7,quickFilterClearIcon:ax,columnMenuHideIcon:R7,columnMenuSortAscendingIcon:Jw,columnMenuSortDescendingIcon:ex,columnMenuUnsortIcon:null,columnMenuFilterIcon:ox,columnMenuManageColumnsIcon:k7,columnMenuClearIcon:ax,loadIcon:I7,filterPanelAddIcon:lx,filterPanelRemoveAllIcon:A7,columnReorderIcon:ix,menuItemCheckIcon:sx},fQ={baseAutocomplete:rQ,baseBadge:VX,baseCheckbox:UX,baseChip:XX,baseCircularProgress:WX,baseDivider:qX,baseInput:lQ,baseLinearProgress:KX,baseMenuList:tQ,baseMenuItem:nQ,baseTextField:oQ,baseButton:YX,baseIconButton:QX,baseTooltip:ZX,basePagination:_X,basePopper:sQ,baseSelect:jX,baseSelectOption:uQ,baseSkeleton:JX,baseSwitch:eQ},pQ=O({},fQ,dQ),hQ=pQ,gQ=()=>ve({root:["bottomContainer"]},tt,{}),mQ=ht("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function bQ(e){const t=gQ();return x.jsx(mQ,O({},e,{className:de(t.root,z["container--bottom"]),role:"presentation"}))}const yQ=O({},hQ,{cell:_9,skeletonCell:X9,columnHeaderFilterIconButton:b7,columnHeaderSortIcon:g7,columnMenu:X7,columnHeaders:lX,detailPanels:iX,bottomContainer:bQ,footer:Iq,footerRowCount:Vq,toolbar:xq,pinnedRows:sX,loadingOverlay:zq,noResultsOverlay:aX,noRowsOverlay:Fq,noColumnsOverlay:Bq,pagination:Nq,filterPanel:EW,columnsPanel:eW,columnsManagement:DW,panel:lW,row:Yq}),vQ={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},CQ=e=>O({},vQ,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),SQ=yQ,wQ=e=>{const t=mi(),n=f.useMemo(()=>LT({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),o=f.useMemo(()=>O({},Y6,n.localeText),[n.localeText]),r=f.useMemo(()=>z9({defaultSlots:SQ,slots:n.slots}),[n.slots]),l=f.useMemo(()=>Object.keys(Hb).reduce((i,s)=>(i[s]=n[s]??Hb[s],i),{}),[n]);return f.useMemo(()=>O({},n,l,{localeText:o,slots:r},CQ(n)),[n,o,r,l])};class xQ{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,o={}){let r=this.events[t];r||(r={highPriority:new Map,regular:new Map},this.events[t]=r),o.isFirst?r.highPriority.set(n,!0):r.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const o=this.events[t];if(!o)return;const r=Array.from(o.highPriority.keys()),l=Array.from(o.regular.keys());for(let i=r.length-1;i>=0;i-=1){const s=r[i];o.highPriority.has(s)&&s.apply(this,n)}for(let i=0;i<l.length;i+=1){const s=l[i];o.regular.has(s)&&s.apply(this,n)}}once(t,n){const o=this;this.on(t,function r(...l){o.removeListener(t,r),n.apply(o,l)})}}class uC{static create(t){return new uC(t)}constructor(t){this.value=void 0,this.listeners=void 0,this.subscribe=n=>(this.listeners.add(n),()=>{this.listeners.delete(n)}),this.getSnapshot=()=>this.value,this.update=n=>{this.value=n,this.listeners.forEach(o=>o(n))},this.value=t,this.listeners=new Set}}const OO=Symbol("mui.api_private"),MQ=e=>e.isPropagationStopped!==void 0;let Lx=0;function EQ(e){var r;const t=(r=e.current)==null?void 0:r[OO];if(t)return t;const n={},o={state:n,store:uC.create(n),instanceId:{id:Lx}};return Lx+=1,o.getPublicApi=()=>e.current,o.register=(l,i)=>{Object.keys(i).forEach(s=>{const a=i[s],u=o[s];if((u==null?void 0:u.spying)===!0?u.target=a:o[s]=a,l==="public"){const c=e.current,d=c[s];(d==null?void 0:d.spying)===!0?d.target=a:c[s]=a}})},o.register("private",{caches:{},eventManager:new xQ}),o}function TQ(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[OO]:e.current}}function PQ(e,t){var i;const n=f.useRef(null),o=f.useRef(null);o.current||(o.current=EQ(n)),n.current||(n.current=TQ(o));const r=f.useCallback((...s)=>{const[a,u,c={}]=s;if(c.defaultMuiPrevented=!1,MQ(c)&&c.isPropagationStopped())return;const d=t.signature===hr.DataGridPro||t.signature===hr.DataGridPremium?{api:o.current.getPublicApi()}:{};o.current.eventManager.emit(a,u,c,d)},[o,t.signature]),l=f.useCallback((s,a,u)=>{o.current.eventManager.on(s,a,u);const c=o.current;return()=>{c.eventManager.removeListener(s,a)}},[o]);return Je(o,{subscribeEvent:l,publishEvent:r},"public"),e&&!((i=e.current)!=null&&i.state)&&(e.current=n.current),f.useImperativeHandle(e,()=>n.current,[n]),f.useEffect(()=>{const s=o.current;return()=>{s.publishEvent("unmount")}},[o]),o}const IQ={hooks:{useCSSVariables:pX,useGridAriaAttributes:Xq,useGridRowAriaAttributes:Qq,useCellAggregationResult:()=>null}},RO=He(function(t,n){var l;const o=wQ(t),r=PQ(o.apiRef,o);return YY(r,o),x.jsx(Zq,{privateApiRef:r,configuration:IQ,props:o,children:x.jsx(f8,O({className:o.className,style:o.style,sx:o.sx},(l=o.slotProps)==null?void 0:l.root,{ref:n}))})}),OQ=f.memo(RO);RO.propTypes={apiRef:q.shape({current:q.object}),"aria-label":q.string,"aria-labelledby":q.string,autoHeight:q.bool,autoPageSize:q.bool,autosizeOnMount:q.bool,autosizeOptions:q.shape({columns:q.arrayOf(q.string),disableColumnVirtualization:q.bool,expand:q.bool,includeHeaders:q.bool,includeOutliers:q.bool,outliersFactor:q.number}),cellModesModel:q.object,checkboxSelection:q.bool,classes:q.object,className:q.string,clipboardCopyCellDelimiter:q.string,columnBufferPx:q.number,columnGroupHeaderHeight:q.number,columnGroupingModel:q.arrayOf(q.object),columnHeaderHeight:q.number,columns:q.arrayOf(q.object).isRequired,columnVisibilityModel:q.object,dataSource:q.shape({getRows:q.func.isRequired,updateRow:q.func}),dataSourceCache:q.shape({clear:q.func.isRequired,get:q.func.isRequired,set:q.func.isRequired}),density:q.oneOf(["comfortable","compact","standard"]),disableAutosize:q.bool,disableColumnFilter:q.bool,disableColumnMenu:q.bool,disableColumnResize:q.bool,disableColumnSelector:q.bool,disableColumnSorting:q.bool,disableDensitySelector:q.bool,disableEval:q.bool,disableMultipleRowSelection:q.bool,disableRowSelectionOnClick:q.bool,disableVirtualization:q.bool,editMode:q.oneOf(["cell","row"]),estimatedRowCount:q.number,experimentalFeatures:q.shape({warnIfFocusStateIsNotSynced:q.bool}),filterDebounceMs:q.number,filterMode:q.oneOf(["client","server"]),filterModel:q.shape({items:q.arrayOf(q.shape({field:q.string.isRequired,id:q.oneOfType([q.number,q.string]),operator:q.string.isRequired,value:q.any})).isRequired,logicOperator:q.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:q.bool,quickFilterLogicOperator:q.oneOf(["and","or"]),quickFilterValues:q.array}),getCellClassName:q.func,getDetailPanelContent:q.func,getEstimatedRowHeight:q.func,getRowClassName:q.func,getRowHeight:q.func,getRowId:q.func,getRowSpacing:q.func,hideFooter:q.bool,hideFooterPagination:q.bool,hideFooterSelectedRowCount:q.bool,ignoreDiacritics:q.bool,ignoreValueFormatterDuringExport:q.oneOfType([q.shape({clipboardExport:q.bool,csvExport:q.bool}),q.bool]),initialState:q.object,isCellEditable:q.func,isRowSelectable:q.func,keepNonExistentRowsSelected:q.bool,label:q.string,loading:q.bool,localeText:q.object,logger:q.shape({debug:q.func.isRequired,error:q.func.isRequired,info:q.func.isRequired,warn:q.func.isRequired}),logLevel:q.oneOf(["debug","error","info","warn",!1]),nonce:q.string,onCellClick:q.func,onCellDoubleClick:q.func,onCellEditStart:q.func,onCellEditStop:q.func,onCellKeyDown:q.func,onCellModesModelChange:q.func,onClipboardCopy:q.func,onColumnHeaderClick:q.func,onColumnHeaderContextMenu:q.func,onColumnHeaderDoubleClick:q.func,onColumnHeaderEnter:q.func,onColumnHeaderLeave:q.func,onColumnHeaderOut:q.func,onColumnHeaderOver:q.func,onColumnOrderChange:q.func,onColumnResize:q.func,onColumnVisibilityModelChange:q.func,onColumnWidthChange:q.func,onDataSourceError:q.func,onDensityChange:q.func,onFilterModelChange:q.func,onMenuClose:q.func,onMenuOpen:q.func,onPaginationMetaChange:q.func,onPaginationModelChange:q.func,onPreferencePanelClose:q.func,onPreferencePanelOpen:q.func,onProcessRowUpdateError:q.func,onResize:q.func,onRowClick:q.func,onRowCountChange:q.func,onRowDoubleClick:q.func,onRowEditStart:q.func,onRowEditStop:q.func,onRowModesModelChange:q.func,onRowSelectionModelChange:q.func,onSortModelChange:q.func,onStateChange:q.func,pageSizeOptions:q.arrayOf(q.oneOfType([q.number,q.shape({label:q.string.isRequired,value:q.number.isRequired})]).isRequired),pagination:q.oneOf([!0]),paginationMeta:q.shape({hasNextPage:q.bool}),paginationMode:q.oneOf(["client","server"]),paginationModel:q.shape({page:q.number.isRequired,pageSize:q.number.isRequired}),processRowUpdate:q.func,resizeThrottleMs:q.number,rowBufferPx:q.number,rowCount:q.number,rowHeight:q.number,rowModesModel:q.object,rows:q.arrayOf(q.object),rowSelection:q.bool,rowSelectionModel:q.shape({ids:q.instanceOf(Set).isRequired,type:q.oneOf(["exclude","include"]).isRequired}),rowSpacingType:q.oneOf(["border","margin"]),rowSpanning:q.bool,scrollbarSize:q.number,showCellVerticalBorder:q.bool,showColumnVerticalBorder:q.bool,showToolbar:q.bool,slotProps:q.object,slots:q.object,sortingMode:q.oneOf(["client","server"]),sortingOrder:q.arrayOf(q.oneOf(["asc","desc"])),sortModel:q.arrayOf(q.shape({field:q.string.isRequired,sort:q.oneOf(["asc","desc"])})),style:q.object,sx:q.oneOfType([q.arrayOf(q.oneOfType([q.func,q.object,q.bool])),q.func,q.object]),virtualizeColumnsWithAutoRowHeight:q.bool};const RQ=Kn(x.jsx("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z"})),kQ=Kn(x.jsx("path",{d:"M19 6.41 17.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"})),zx=Kn(x.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),AQ=({open:e,onClose:t,schema:n,initialData:o,onSubmit:r})=>{const[l,i]=f.useState({}),[s,a]=f.useState({});f.useEffect(()=>{if(o)i(o);else{const p=n.reduce((h,g)=>(h[g.field]="",h),{});i(p)}},[o,n]);const u=(p,h,g)=>{let y="";switch(g){case"number":isNaN(Number(h))&&(y="Must be a number");break;case"uuid":/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/.test(h)||(y="Invalid UUID format");break;case"string":(!h||typeof h!="string")&&(y="Must be a string");break;case"boolean":if(h!=null){const m=h.toLowerCase()==="true"?!0:null,b=h.toLowerCase()==="false"?!1:null;m==null&&b==null&&(y="Must be a boolean")}break;case"array":try{Array.isArray(JSON.parse(h))||(y="Must be an array")}catch{y="Must be a valid array"}break;case"json":try{JSON.parse(h)}catch{y="Must be a valid JSON"}break;case"datetime":isNaN(Date.parse(h))&&(y="Invalid datetime format");break}a(w=>({...w,[p]:y}))},c=(p,h,g)=>{u(p,h,g),i(y=>({...y,[p]:h}))},d=()=>{Object.values(s).some(h=>h!=="")||(r(l),t())};return x.jsxs(J5,{open:e,onClose:t,fullWidth:!0,children:[x.jsx(m4,{children:o?"Edit Record":"Create Record"}),x.jsx(f4,{children:n.map(p=>p.type==="singleSelect"&&Array.isArray(p.valueOptions)?x.jsx(jo,{sx:{mb:2},children:x.jsx(Zf,{options:p.valueOptions,value:l[p.field]??"",onChange:(h,g)=>c(p.field,g,p.type),renderInput:h=>x.jsx(Js,{...h,label:p.headerName,fullWidth:!0})})},p.field):p.type==="bool"?x.jsx(jo,{sx:{mb:2},children:x.jsx(Zf,{options:["true","false"],value:(l[p.field]??"").toString(),onChange:(h,g)=>c(p.field,g,p.type),renderInput:h=>x.jsx(Js,{...h,label:p.headerName,fullWidth:!0})})},p.field):x.jsx(jo,{sx:{mb:2},children:x.jsx(Js,{fullWidth:!0,label:p.headerName,value:l[p.field]??"",onChange:h=>c(p.field,h.target.value,p.type),type:p.type==="number"?"number":"text",error:!!s[p.field],helperText:s[p.field]})},p.field))}),x.jsxs(r4,{children:[x.jsx(Jf,{onClick:t,children:"Cancel"}),x.jsx(Jf,{onClick:d,variant:"contained",children:o?"Update":"Create"})]})]})};function $Q(e){return e.type==="enum"&&Array.isArray(e.enumValues)?{...e,type:"singleSelect",valueOptions:e.enumValues}:e}const Fx={}.VITE_API_SERVER||"/",hc=Fx==="/"?window.location.origin:Fx;function DQ(){const[e,t]=f.useState([]),[n,o]=f.useState([]),[r,l]=f.useState(""),[i,s]=f.useState([]),[a,u]=f.useState([]),[c,d]=f.useState(0),[p,h]=f.useState(0),[g,y]=f.useState(10),[w,m]=f.useState(null),[b,v]=f.useState(!1),[S,M]=f.useState(null),[R,k]=f.useState(!1),E=(H,_,U={})=>WA({method:H,url:_,...U,headers:{...U.headers||{},...R?{"X-Test-Request":"true"}:{}}});f.useEffect(()=>{E("get",`${hc}/schemas`).then(H=>{t(H.data),H.data.length>0&&(o([H.data[0]]),l(H.data[0]))}).catch(H=>{console.error("Error fetching schemas:",H)})},[R]);const P=(H,_)=>{try{const U=dayjs(H).format(_);return U==="Invalid Date"?H:U}catch{return H}},C=(H,_)=>{switch(_){case"json":return H;case"array":return H;case"date":return P(H,"MM/DD/YYYY");case"datetime":return P(H,"MM/DD/YYYY HH:mm:ss");case"number":return new Intl.NumberFormat().format(H);default:return H}},T=H=>H.map(_=>{const U=_.type==="date";return{..._,valueGetter:U?K=>K?new Date(K):"":void 0,renderCell:K=>{const X=K.value??"",oe=C(X,_.type||"string");return typeof oe=="string"?oe:String(oe)}}}),A=H=>{E("get",`${hc}/${H}/schema`).then(_=>{const U=_.data.map($Q),K=T(U),oe=[{field:"edit",headerName:"",width:50,sortable:!1,filterable:!1,align:"center",renderCell:ue=>x.jsx(il,{size:"small",onClick:()=>F(ue.row),sx:{color:"#7e57c2"},children:x.jsx(RQ,{})})},...K];s(oe)})},L=()=>{r&&E("get",`${hc}/${r}`,{params:{skip:p*g,limit:g}}).then(H=>{const _=H.data.data.map(U=>{const K={...U};for(const X in K){const oe=K[X];if(typeof oe=="object"&&oe!==null)try{K[X]=JSON.stringify(oe,null,2)}catch{K[X]="Invalid Object"}}return K});u(_),d(H.data.total)}).catch(H=>{console.error("Error fetching rows:",H)})};f.useEffect(()=>{r&&(A(r),L())},[r,p,g,R]);const F=H=>{M(H||null),v(!0)},D=()=>{v(!1),M(null)},I={array:[],json:{}};function $(H,_){return H===""?I[_]:JSON.parse(H)}const B=(H,_)=>{const U=(S==null?void 0:S.id)||(S==null?void 0:S._id),K=S?`${hc}/${r}/${U}`:`${hc}/${r}`,X=S?"PATCH":"POST",oe=H;Object.keys(oe).forEach(ue=>{const V=_.find(W=>W.field===ue);if(V){if(V.type==="json"&&typeof oe[ue]=="string")try{oe[ue]=$(oe[ue],V.type)}catch{console.warn(`Failed to parse JSON for field ${ue}`)}else if(V.type==="array"&&typeof oe[ue]=="string")try{oe[ue]=$(oe[ue],V.type)}catch{console.warn(`Failed to parse array for field ${ue}`)}}}),E(X,K,{data:oe}).then(()=>{L(),D()}).catch(ue=>{console.error(`Error ${S?"updating":"creating"} record:`,ue)})},G=H=>{m(H.currentTarget)},j=()=>{m(null)},N=H=>{H&&(n.includes(H)||(o([...n,H]),l(H)),j())};return x.jsxs(jo,{children:[x.jsxs(os,{elevation:2,sx:{mb:2,p:2,display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x.jsxs(jo,{children:[x.jsx($r,{variant:"h6",children:"Schemas"}),x.jsxs(o6,{value:r,onChange:(H,_)=>l(_),variant:"scrollable",scrollButtons:"auto",sx:{mt:1},children:[n.map(H=>x.jsx(hw,{value:H,label:x.jsxs(jo,{sx:{display:"flex",alignItems:"center"},children:[H,x.jsx(il,{size:"small",onClick:_=>{_.stopPropagation(),o(n.filter(U=>U!==H))},children:x.jsx(kQ,{fontSize:"small"})})]})},H)),x.jsx(hw,{icon:x.jsx(zx,{}),onClick:G})]})]}),x.jsxs(jo,{sx:{display:"flex",alignItems:"center",gap:2},children:[x.jsx(TP,{control:x.jsx(ep,{checked:R,onChange:H=>k(H.target.checked),color:"primary"}),label:"Test Mode"}),x.jsx(Jf,{variant:"contained",color:"primary",startIcon:x.jsx(zx,{}),sx:{padding:"6px 12px",minWidth:"auto",fontSize:"0.875rem",fontWeight:500,height:"50px",textTransform:"none",borderRadius:"8px",backgroundColor:"#7e57c2","&:hover":{backgroundColor:"#6a45b1"}},onClick:()=>F(),children:"Add Record"})]})]}),x.jsx($P,{open:!!w,anchorEl:w,onClose:j,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:x.jsx(jo,{sx:{p:2,width:300},children:x.jsx(Zf,{options:e,onChange:(H,_)=>N(_),renderInput:H=>x.jsx(Js,{...H,label:"Select Schema"})})})}),x.jsx(jo,{sx:{height:500,width:"100%"},children:x.jsx(OQ,{rows:a,columns:i,getRowId:H=>H.id||H._id,pagination:!0,paginationMode:"server",rowCount:c,pageSizeOptions:[10,25,50],paginationModel:{page:p,pageSize:g},onPaginationModelChange:({page:H,pageSize:_})=>{h(H),y(_)}})}),x.jsx(AQ,{open:b,onClose:D,schema:i.filter(H=>H.field!=="edit"),initialData:S,onSubmit:H=>B(H,i)})]})}const LQ=Kn(x.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-.89 0-1.74-.2-2.5-.55C11.56 16.5 13 14.42 13 12s-1.44-4.5-3.5-5.45C10.26 6.2 11.11 6 12 6c3.31 0 6 2.69 6 6s-2.69 6-6 6"})),zQ=Kn(x.jsx("path",{d:"M20 8.69V4h-4.69L12 .69 8.69 4H4v4.69L.69 12 4 15.31V20h4.69L12 23.31 15.31 20H20v-4.69L23.31 12zM12 18c-3.31 0-6-2.69-6-6s2.69-6 6-6 6 2.69 6 6-2.69 6-6 6m0-10c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4"})),FQ=e=>mh({palette:{mode:e,primary:{main:"#7e57c2"},secondary:{main:"#ce93d8"},background:{default:e==="light"?"#f3f0f9":"#1a152a",paper:e==="light"?"#ffffff":"#221c36"},text:{primary:e==="light"?"#2e2e2e":"#ffffff"}},typography:{fontFamily:"Inter, Roboto, sans-serif",fontWeightRegular:400,fontWeightMedium:500,fontWeightBold:600},shape:{borderRadius:12},components:{MuiContainer:{defaultProps:{maxWidth:"lg"}}}}),BQ=Z(ep)(({theme:e})=>({width:48,height:24,padding:0,display:"flex","& .MuiSwitch-switchBase":{padding:2,"&.Mui-checked":{transform:"translateX(24px)",color:"#fff","& + .MuiSwitch-track":{backgroundColor:"#e0e0e0",opacity:1}}},"& .MuiSwitch-thumb":{width:20,height:20,backgroundColor:"#fff",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.2)"},"& .MuiSwitch-track":{borderRadius:12,backgroundColor:"#e0e0e0",opacity:1}})),HQ=()=>{const[e,t]=f.useState("light"),n=f.useMemo(()=>FQ(e),[e]);return x.jsxs(eF,{theme:n,children:[x.jsx(M5,{}),x.jsx(jo,{sx:{py:4,backgroundColor:n.palette.background.default,minHeight:"100vh"},children:x.jsxs(v5,{children:[x.jsxs(jo,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:3},children:[x.jsx($r,{variant:"h4",fontWeight:"bold",color:"primary"}),x.jsxs(jo,{sx:{display:"flex",alignItems:"center",gap:1},children:[x.jsx(LQ,{sx:{color:e==="light"?"#757575":"#ffb300"}}),x.jsx(BQ,{checked:e==="dark",onChange:()=>t(o=>o==="light"?"dark":"light")}),x.jsx(zQ,{sx:{color:e==="dark"?"#ffb300":"#757575"}})]})]}),x.jsx(DQ,{})]})})]})};R2.createRoot(document.getElementById("root")).render(x.jsx(HQ,{}));