/home/bdqbpbxa/rc-subdomains/natural-links-rc.goodface.com.ua/assets/index-CIeaEXM5.js
var NU=Object.defineProperty;var zU=(e,t,n)=>t in e?NU(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var BU=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Tp=(e,t,n)=>zU(e,typeof t!="symbol"?t+"":t,n);var Y3e=BU((Ga,Va)=>{function HU(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>r[o]})}}}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 o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var GC=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sk={exports:{}},Xy={};/**
 * @license React
 * react-jsx-runtime.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var c4;function UU(){if(c4)return Xy;c4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,o,i){var a=null;if(i!==void 0&&(a=""+i),o.key!==void 0&&(a=""+o.key),"key"in o){i={};for(var l in o)l!=="key"&&(i[l]=o[l])}else i=o;return o=i.ref,{$$typeof:e,type:r,key:a,ref:o!==void 0?o:null,props:i}}return Xy.Fragment=t,Xy.jsx=n,Xy.jsxs=n,Xy}var u4;function GU(){return u4||(u4=1,Sk.exports=UU()),Sk.exports}var y=GU();const Jv={black:"#000",white:"#fff"},mg={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},gg={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},bg={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},yg={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},vg={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},Zy={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},VU={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function fu(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const Ss="$$material";function z(){return z=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},z.apply(null,arguments)}var Ek={exports:{}},En={};/**
 * @license React
 * react.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var d4;function WU(){if(d4)return En;d4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),m=Symbol.iterator;function g(W){return W===null||typeof W!="object"?null:(W=m&&W[m]||W["@@iterator"],typeof W=="function"?W:null)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,S={};function E(W,K,J){this.props=W,this.context=K,this.refs=S,this.updater=J||w}E.prototype.isReactComponent={},E.prototype.setState=function(W,K){if(typeof W!="object"&&typeof W!="function"&&W!=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,W,K,"setState")},E.prototype.forceUpdate=function(W){this.updater.enqueueForceUpdate(this,W,"forceUpdate")};function T(){}T.prototype=E.prototype;function I(W,K,J){this.props=W,this.context=K,this.refs=S,this.updater=J||w}var k=I.prototype=new T;k.constructor=I,C(k,E.prototype),k.isPureReactComponent=!0;var R=Array.isArray,P={H:null,A:null,T:null,S:null,V:null},O=Object.prototype.hasOwnProperty;function j(W,K,J,ae,ce,de){return J=de.ref,{$$typeof:e,type:W,key:K,ref:J!==void 0?J:null,props:de}}function F(W,K){return j(W.type,K,void 0,void 0,void 0,W.props)}function D(W){return typeof W=="object"&&W!==null&&W.$$typeof===e}function _(W){var K={"=":"=0",":":"=2"};return"$"+W.replace(/[=:]/g,function(J){return K[J]})}var $=/\/+/g;function B(W,K){return typeof W=="object"&&W!==null&&W.key!=null?_(""+W.key):K.toString(36)}function V(){}function q(W){switch(W.status){case"fulfilled":return W.value;case"rejected":throw W.reason;default:switch(typeof W.status=="string"?W.then(V,V):(W.status="pending",W.then(function(K){W.status==="pending"&&(W.status="fulfilled",W.value=K)},function(K){W.status==="pending"&&(W.status="rejected",W.reason=K)})),W.status){case"fulfilled":return W.value;case"rejected":throw W.reason}}throw W}function G(W,K,J,ae,ce){var de=typeof W;(de==="undefined"||de==="boolean")&&(W=null);var re=!1;if(W===null)re=!0;else switch(de){case"bigint":case"string":case"number":re=!0;break;case"object":switch(W.$$typeof){case e:case t:re=!0;break;case f:return re=W._init,G(re(W._payload),K,J,ae,ce)}}if(re)return ce=ce(W),re=ae===""?"."+B(W,0):ae,R(ce)?(J="",re!=null&&(J=re.replace($,"$&/")+"/"),G(ce,K,J,"",function(ie){return ie})):ce!=null&&(D(ce)&&(ce=F(ce,J+(ce.key==null||W&&W.key===ce.key?"":(""+ce.key).replace($,"$&/")+"/")+re)),K.push(ce)),1;re=0;var ke=ae===""?".":ae+":";if(R(W))for(var Ce=0;Ce<W.length;Ce++)ae=W[Ce],de=ke+B(ae,Ce),re+=G(ae,K,J,de,ce);else if(Ce=g(W),typeof Ce=="function")for(W=Ce.call(W),Ce=0;!(ae=W.next()).done;)ae=ae.value,de=ke+B(ae,Ce++),re+=G(ae,K,J,de,ce);else if(de==="object"){if(typeof W.then=="function")return G(q(W),K,J,ae,ce);throw K=String(W),Error("Objects are not valid as a React child (found: "+(K==="[object Object]"?"object with keys {"+Object.keys(W).join(", ")+"}":K)+"). If you meant to render a collection of children, use an array instead.")}return re}function N(W,K,J){if(W==null)return W;var ae=[],ce=0;return G(W,ae,"","",function(de){return K.call(J,de,ce++)}),ae}function H(W){if(W._status===-1){var K=W._result;K=K(),K.then(function(J){(W._status===0||W._status===-1)&&(W._status=1,W._result=J)},function(J){(W._status===0||W._status===-1)&&(W._status=2,W._result=J)}),W._status===-1&&(W._status=0,W._result=K)}if(W._status===1)return W._result.default;throw W._result}var Y=typeof reportError=="function"?reportError:function(W){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var K=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof W=="object"&&W!==null&&typeof W.message=="string"?String(W.message):String(W),error:W});if(!window.dispatchEvent(K))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",W);return}console.error(W)};function Q(){}return En.Children={map:N,forEach:function(W,K,J){N(W,function(){K.apply(this,arguments)},J)},count:function(W){var K=0;return N(W,function(){K++}),K},toArray:function(W){return N(W,function(K){return K})||[]},only:function(W){if(!D(W))throw Error("React.Children.only expected to receive a single React element child.");return W}},En.Component=E,En.Fragment=n,En.Profiler=o,En.PureComponent=I,En.StrictMode=r,En.Suspense=u,En.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=P,En.__COMPILER_RUNTIME={__proto__:null,c:function(W){return P.H.useMemoCache(W)}},En.cache=function(W){return function(){return W.apply(null,arguments)}},En.cloneElement=function(W,K,J){if(W==null)throw Error("The argument must be a React element, but you passed "+W+".");var ae=C({},W.props),ce=W.key,de=void 0;if(K!=null)for(re in K.ref!==void 0&&(de=void 0),K.key!==void 0&&(ce=""+K.key),K)!O.call(K,re)||re==="key"||re==="__self"||re==="__source"||re==="ref"&&K.ref===void 0||(ae[re]=K[re]);var re=arguments.length-2;if(re===1)ae.children=J;else if(1<re){for(var ke=Array(re),Ce=0;Ce<re;Ce++)ke[Ce]=arguments[Ce+2];ae.children=ke}return j(W.type,ce,void 0,void 0,de,ae)},En.createContext=function(W){return W={$$typeof:a,_currentValue:W,_currentValue2:W,_threadCount:0,Provider:null,Consumer:null},W.Provider=W,W.Consumer={$$typeof:i,_context:W},W},En.createElement=function(W,K,J){var ae,ce={},de=null;if(K!=null)for(ae in K.key!==void 0&&(de=""+K.key),K)O.call(K,ae)&&ae!=="key"&&ae!=="__self"&&ae!=="__source"&&(ce[ae]=K[ae]);var re=arguments.length-2;if(re===1)ce.children=J;else if(1<re){for(var ke=Array(re),Ce=0;Ce<re;Ce++)ke[Ce]=arguments[Ce+2];ce.children=ke}if(W&&W.defaultProps)for(ae in re=W.defaultProps,re)ce[ae]===void 0&&(ce[ae]=re[ae]);return j(W,de,void 0,void 0,null,ce)},En.createRef=function(){return{current:null}},En.forwardRef=function(W){return{$$typeof:l,render:W}},En.isValidElement=D,En.lazy=function(W){return{$$typeof:f,_payload:{_status:-1,_result:W},_init:H}},En.memo=function(W,K){return{$$typeof:d,type:W,compare:K===void 0?null:K}},En.startTransition=function(W){var K=P.T,J={};P.T=J;try{var ae=W(),ce=P.S;ce!==null&&ce(J,ae),typeof ae=="object"&&ae!==null&&typeof ae.then=="function"&&ae.then(Q,Y)}catch(de){Y(de)}finally{P.T=K}},En.unstable_useCacheRefresh=function(){return P.H.useCacheRefresh()},En.use=function(W){return P.H.use(W)},En.useActionState=function(W,K,J){return P.H.useActionState(W,K,J)},En.useCallback=function(W,K){return P.H.useCallback(W,K)},En.useContext=function(W){return P.H.useContext(W)},En.useDebugValue=function(){},En.useDeferredValue=function(W,K){return P.H.useDeferredValue(W,K)},En.useEffect=function(W,K,J){var ae=P.H;if(typeof J=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return ae.useEffect(W,K)},En.useId=function(){return P.H.useId()},En.useImperativeHandle=function(W,K,J){return P.H.useImperativeHandle(W,K,J)},En.useInsertionEffect=function(W,K){return P.H.useInsertionEffect(W,K)},En.useLayoutEffect=function(W,K){return P.H.useLayoutEffect(W,K)},En.useMemo=function(W,K){return P.H.useMemo(W,K)},En.useOptimistic=function(W,K){return P.H.useOptimistic(W,K)},En.useReducer=function(W,K,J){return P.H.useReducer(W,K,J)},En.useRef=function(W){return P.H.useRef(W)},En.useState=function(W){return P.H.useState(W)},En.useSyncExternalStore=function(W,K,J){return P.H.useSyncExternalStore(W,K,J)},En.useTransition=function(){return P.H.useTransition()},En.version="19.1.0",En}var f4;function F0(){return f4||(f4=1,Ek.exports=WU()),Ek.exports}var b=F0();const un=wu(b),i2=HU({__proto__:null,default:un},[b]);function qU(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 YU(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 KU=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?!0: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(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(YU(this));var o=this.tags[this.tags.length-1];if(this.isSpeedy){var i=qU(o);try{i.insertRule(r,i.cssRules.length)}catch{}}else o.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var o;return(o=r.parentNode)==null?void 0:o.removeChild(r)}),this.tags=[],this.ctr=0},e}(),Oi="-ms-",a2="-moz-",ur="-webkit-",I6="comm",pR="rule",hR="decl",XU="@import",A6="@keyframes",ZU="@layer",QU=Math.abs,_E=String.fromCharCode,JU=Object.assign;function eG(e,t){return fi(e,0)^45?(((t<<2^fi(e,0))<<2^fi(e,1))<<2^fi(e,2))<<2^fi(e,3):0}function R6(e){return e.trim()}function tG(e,t){return(e=t.exec(e))?e[0]:e}function dr(e,t,n){return e.replace(t,n)}function gI(e,t){return e.indexOf(t)}function fi(e,t){return e.charCodeAt(t)|0}function ex(e,t,n){return e.slice(t,n)}function ac(e){return e.length}function mR(e){return e.length}function VC(e,t){return t.push(e),e}function nG(e,t){return e.map(t).join("")}var DE=1,c0=1,O6=0,Ta=0,Do=0,N0="";function LE(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:DE,column:c0,length:a,return:""}}function Qy(e,t){return JU(LE("",null,null,"",null,null,0),e,{length:-e.length},t)}function rG(){return Do}function oG(){return Do=Ta>0?fi(N0,--Ta):0,c0--,Do===10&&(c0=1,DE--),Do}function Wa(){return Do=Ta<O6?fi(N0,Ta++):0,c0++,Do===10&&(c0=1,DE++),Do}function uc(){return fi(N0,Ta)}function _S(){return Ta}function Rx(e,t){return ex(N0,e,t)}function tx(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 _6(e){return DE=c0=1,O6=ac(N0=e),Ta=0,[]}function D6(e){return N0="",e}function DS(e){return R6(Rx(Ta-1,bI(e===91?e+2:e===40?e+1:e)))}function iG(e){for(;(Do=uc())&&Do<33;)Wa();return tx(e)>2||tx(Do)>3?"":" "}function aG(e,t){for(;--t&&Wa()&&!(Do<48||Do>102||Do>57&&Do<65||Do>70&&Do<97););return Rx(e,_S()+(t<6&&uc()==32&&Wa()==32))}function bI(e){for(;Wa();)switch(Do){case e:return Ta;case 34:case 39:e!==34&&e!==39&&bI(Do);break;case 40:e===41&&bI(e);break;case 92:Wa();break}return Ta}function sG(e,t){for(;Wa()&&e+Do!==57;)if(e+Do===84&&uc()===47)break;return"/*"+Rx(t,Ta-1)+"*"+_E(e===47?e:Wa())}function lG(e){for(;!tx(uc());)Wa();return Rx(e,Ta)}function cG(e){return D6(LS("",null,null,null,[""],e=_6(e),0,[0],e))}function LS(e,t,n,r,o,i,a,l,u){for(var d=0,f=0,m=a,g=0,w=0,C=0,S=1,E=1,T=1,I=0,k="",R=o,P=i,O=r,j=k;E;)switch(C=I,I=Wa()){case 40:if(C!=108&&fi(j,m-1)==58){gI(j+=dr(DS(I),"&","&\f"),"&\f")!=-1&&(T=-1);break}case 34:case 39:case 91:j+=DS(I);break;case 9:case 10:case 13:case 32:j+=iG(C);break;case 92:j+=aG(_S()-1,7);continue;case 47:switch(uc()){case 42:case 47:VC(uG(sG(Wa(),_S()),t,n),u);break;default:j+="/"}break;case 123*S:l[d++]=ac(j)*T;case 125*S:case 59:case 0:switch(I){case 0:case 125:E=0;case 59+f:T==-1&&(j=dr(j,/\f/g,"")),w>0&&ac(j)-m&&VC(w>32?h4(j+";",r,n,m-1):h4(dr(j," ","")+";",r,n,m-2),u);break;case 59:j+=";";default:if(VC(O=p4(j,t,n,d,f,o,l,k,R=[],P=[],m),i),I===123)if(f===0)LS(j,t,O,O,R,i,m,l,P);else switch(g===99&&fi(j,3)===110?100:g){case 100:case 108:case 109:case 115:LS(e,O,O,r&&VC(p4(e,O,O,0,0,o,l,k,o,R=[],m),P),o,P,m,l,r?R:P);break;default:LS(j,O,O,O,[""],P,0,l,P)}}d=f=w=0,S=T=1,k=j="",m=a;break;case 58:m=1+ac(j),w=C;default:if(S<1){if(I==123)--S;else if(I==125&&S++==0&&oG()==125)continue}switch(j+=_E(I),I*S){case 38:T=f>0?1:(j+="\f",-1);break;case 44:l[d++]=(ac(j)-1)*T,T=1;break;case 64:uc()===45&&(j+=DS(Wa())),g=uc(),f=m=ac(k=j+=lG(_S())),I++;break;case 45:C===45&&ac(j)==2&&(S=0)}}return i}function p4(e,t,n,r,o,i,a,l,u,d,f){for(var m=o-1,g=o===0?i:[""],w=mR(g),C=0,S=0,E=0;C<r;++C)for(var T=0,I=ex(e,m+1,m=QU(S=a[C])),k=e;T<w;++T)(k=R6(S>0?g[T]+" "+I:dr(I,/&\f/g,g[T])))&&(u[E++]=k);return LE(e,t,n,o===0?pR:l,u,d,f)}function uG(e,t,n){return LE(e,t,n,I6,_E(rG()),ex(e,2,-2),0)}function h4(e,t,n,r){return LE(e,t,n,hR,ex(e,0,r),ex(e,r+1,-1),r)}function r0(e,t){for(var n="",r=mR(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function dG(e,t,n,r){switch(e.type){case ZU:if(e.children.length)break;case XU:case hR:return e.return=e.return||e.value;case I6:return"";case A6:return e.return=e.value+"{"+r0(e.children,r)+"}";case pR:e.value=e.props.join(",")}return ac(n=r0(e.children,r))?e.return=e.value+"{"+n+"}":""}function fG(e){var t=mR(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}function pG(e){return function(t){t.root||(t=t.return)&&e(t)}}function L6(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var hG=function(t,n,r){for(var o=0,i=0;o=i,i=uc(),o===38&&i===12&&(n[r]=1),!tx(i);)Wa();return Rx(t,Ta)},mG=function(t,n){var r=-1,o=44;do switch(tx(o)){case 0:o===38&&uc()===12&&(n[r]=1),t[r]+=hG(Ta-1,n,r);break;case 2:t[r]+=DS(o);break;case 4:if(o===44){t[++r]=uc()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=_E(o)}while(o=Wa());return t},gG=function(t,n){return D6(mG(_6(t),n))},m4=new WeakMap,bG=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,o=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!m4.get(r))&&!o){m4.set(t,!0);for(var i=[],a=gG(n,i),l=r.props,u=0,d=0;u<a.length;u++)for(var f=0;f<l.length;f++,d++)t.props[d]=i[u]?a[u].replace(/&\f/g,l[f]):l[f]+" "+a[u]}}},yG=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function $6(e,t){switch(eG(e,t)){case 5103:return ur+"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 ur+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ur+e+a2+e+Oi+e+e;case 6828:case 4268:return ur+e+Oi+e+e;case 6165:return ur+e+Oi+"flex-"+e+e;case 5187:return ur+e+dr(e,/(\w+).+(:[^]+)/,ur+"box-$1$2"+Oi+"flex-$1$2")+e;case 5443:return ur+e+Oi+"flex-item-"+dr(e,/flex-|-self/,"")+e;case 4675:return ur+e+Oi+"flex-line-pack"+dr(e,/align-content|flex-|-self/,"")+e;case 5548:return ur+e+Oi+dr(e,"shrink","negative")+e;case 5292:return ur+e+Oi+dr(e,"basis","preferred-size")+e;case 6060:return ur+"box-"+dr(e,"-grow","")+ur+e+Oi+dr(e,"grow","positive")+e;case 4554:return ur+dr(e,/([^-])(transform)/g,"$1"+ur+"$2")+e;case 6187:return dr(dr(dr(e,/(zoom-|grab)/,ur+"$1"),/(image-set)/,ur+"$1"),e,"")+e;case 5495:case 3959:return dr(e,/(image-set\([^]*)/,ur+"$1$`$1");case 4968:return dr(dr(e,/(.+:)(flex-)?(.*)/,ur+"box-pack:$3"+Oi+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ur+e+e;case 4095:case 3583:case 4068:case 2532:return dr(e,/(.+)-inline(.+)/,ur+"$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(ac(e)-1-t>6)switch(fi(e,t+1)){case 109:if(fi(e,t+4)!==45)break;case 102:return dr(e,/(.+:)(.+)-([^]+)/,"$1"+ur+"$2-$3$1"+a2+(fi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~gI(e,"stretch")?$6(dr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(fi(e,t+1)!==115)break;case 6444:switch(fi(e,ac(e)-3-(~gI(e,"!important")&&10))){case 107:return dr(e,":",":"+ur)+e;case 101:return dr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ur+(fi(e,14)===45?"inline-":"")+"box$3$1"+ur+"$2$3$1"+Oi+"$2box$3")+e}break;case 5936:switch(fi(e,t+11)){case 114:return ur+e+Oi+dr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ur+e+Oi+dr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ur+e+Oi+dr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ur+e+Oi+e+e}return e}var vG=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case hR:t.return=$6(t.value,t.length);break;case A6:return r0([Qy(t,{value:dr(t.value,"@","@"+ur)})],o);case pR:if(t.length)return nG(t.props,function(i){switch(tG(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return r0([Qy(t,{props:[dr(i,/:(read-\w+)/,":"+a2+"$1")]})],o);case"::placeholder":return r0([Qy(t,{props:[dr(i,/:(plac\w+)/,":"+ur+"input-$1")]}),Qy(t,{props:[dr(i,/:(plac\w+)/,":"+a2+"$1")]}),Qy(t,{props:[dr(i,/:(plac\w+)/,Oi+"input-$1")]})],o)}return""})}},xG=[vG],wG=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var E=S.getAttribute("data-emotion");E.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||xG,i={},a,l=[];a=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var E=S.getAttribute("data-emotion").split(" "),T=1;T<E.length;T++)i[E[T]]=!0;l.push(S)});var u,d=[bG,yG];{var f,m=[dG,pG(function(S){f.insert(S)})],g=fG(d.concat(o,m)),w=function(E){return r0(cG(E),g)};u=function(E,T,I,k){f=I,w(E?E+"{"+T.styles+"}":T.styles),k&&(C.inserted[T.name]=!0)}}var C={key:n,sheet:new KU({key:n,container:a,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:i,registered:{},insert:u};return C.sheet.hydrate(l),C},Tk={exports:{}},yr={};/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var g4;function CG(){if(g4)return yr;g4=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,l=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,d=e?Symbol.for("react.concurrent_mode"):60111,f=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,g=e?Symbol.for("react.suspense_list"):60120,w=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,E=e?Symbol.for("react.fundamental"):60117,T=e?Symbol.for("react.responder"):60118,I=e?Symbol.for("react.scope"):60119;function k(P){if(typeof P=="object"&&P!==null){var O=P.$$typeof;switch(O){case t:switch(P=P.type,P){case u:case d:case r:case i:case o:case m:return P;default:switch(P=P&&P.$$typeof,P){case l:case f:case C:case w:case a:return P;default:return O}}case n:return O}}}function R(P){return k(P)===d}return yr.AsyncMode=u,yr.ConcurrentMode=d,yr.ContextConsumer=l,yr.ContextProvider=a,yr.Element=t,yr.ForwardRef=f,yr.Fragment=r,yr.Lazy=C,yr.Memo=w,yr.Portal=n,yr.Profiler=i,yr.StrictMode=o,yr.Suspense=m,yr.isAsyncMode=function(P){return R(P)||k(P)===u},yr.isConcurrentMode=R,yr.isContextConsumer=function(P){return k(P)===l},yr.isContextProvider=function(P){return k(P)===a},yr.isElement=function(P){return typeof P=="object"&&P!==null&&P.$$typeof===t},yr.isForwardRef=function(P){return k(P)===f},yr.isFragment=function(P){return k(P)===r},yr.isLazy=function(P){return k(P)===C},yr.isMemo=function(P){return k(P)===w},yr.isPortal=function(P){return k(P)===n},yr.isProfiler=function(P){return k(P)===i},yr.isStrictMode=function(P){return k(P)===o},yr.isSuspense=function(P){return k(P)===m},yr.isValidElementType=function(P){return typeof P=="string"||typeof P=="function"||P===r||P===d||P===i||P===o||P===m||P===g||typeof P=="object"&&P!==null&&(P.$$typeof===C||P.$$typeof===w||P.$$typeof===a||P.$$typeof===l||P.$$typeof===f||P.$$typeof===E||P.$$typeof===T||P.$$typeof===I||P.$$typeof===S)},yr.typeOf=k,yr}var b4;function SG(){return b4||(b4=1,Tk.exports=CG()),Tk.exports}var Mk,y4;function EG(){if(y4)return Mk;y4=1;var e=SG(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[e.ForwardRef]=r,i[e.Memo]=o;function a(C){return e.isMemo(C)?o:i[C.$$typeof]||t}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,g=Object.prototype;function w(C,S,E){if(typeof S!="string"){if(g){var T=m(S);T&&T!==g&&w(C,T,E)}var I=u(S);d&&(I=I.concat(d(S)));for(var k=a(C),R=a(S),P=0;P<I.length;++P){var O=I[P];if(!n[O]&&!(E&&E[O])&&!(R&&R[O])&&!(k&&k[O])){var j=f(S,O);try{l(C,O,j)}catch{}}}}return C}return Mk=w,Mk}EG();var TG=!0;function j6(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(r+=o+" ")}),r}var gR=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||TG===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},bR=function(t,n,r){gR(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function MG(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 kG={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},PG=/[A-Z]|^ms/g,IG=/_EMO_([^_]+?)_([^]*?)_EMO_/g,F6=function(t){return t.charCodeAt(1)===45},v4=function(t){return t!=null&&typeof t!="boolean"},kk=L6(function(e){return F6(e)?e:e.replace(PG,"-$&").toLowerCase()}),x4=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(IG,function(r,o,i){return sc={name:o,styles:i,next:sc},o})}return kG[t]!==1&&!F6(t)&&typeof n=="number"&&n!==0?n+"px":n};function nx(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var o=n;if(o.anim===1)return sc={name:o.name,styles:o.styles,next:sc},o.name;var i=n;if(i.styles!==void 0){var a=i.next;if(a!==void 0)for(;a!==void 0;)sc={name:a.name,styles:a.styles,next:sc},a=a.next;var l=i.styles+";";return l}return AG(e,t,n)}case"function":{if(e!==void 0){var u=sc,d=n(e);return sc=u,nx(e,t,d)}break}}var f=n;if(t==null)return f;var m=t[f];return m!==void 0?m:f}function AG(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o<n.length;o++)r+=nx(e,t,n[o])+";";else for(var i in n){var a=n[i];if(typeof a!="object"){var l=a;t!=null&&t[l]!==void 0?r+=i+"{"+t[l]+"}":v4(l)&&(r+=kk(i)+":"+x4(i,l)+";")}else if(Array.isArray(a)&&typeof a[0]=="string"&&(t==null||t[a[0]]===void 0))for(var u=0;u<a.length;u++)v4(a[u])&&(r+=kk(i)+":"+x4(i,a[u])+";");else{var d=nx(e,t,a);switch(i){case"animation":case"animationName":{r+=kk(i)+":"+d+";";break}default:r+=i+"{"+d+"}"}}}return r}var w4=/label:\s*([^\s;{]+)\s*(;|$)/g,sc;function Ox(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,o="";sc=void 0;var i=e[0];if(i==null||i.raw===void 0)r=!1,o+=nx(n,t,i);else{var a=i;o+=a[0]}for(var l=1;l<e.length;l++)if(o+=nx(n,t,e[l]),r){var u=i;o+=u[l]}w4.lastIndex=0;for(var d="",f;(f=w4.exec(o))!==null;)d+="-"+f[1];var m=MG(o)+d;return{name:m,styles:o,next:sc}}var RG=function(t){return t()},N6=i2.useInsertionEffect?i2.useInsertionEffect:!1,z6=N6||RG,C4=N6||b.useLayoutEffect,B6=b.createContext(typeof HTMLElement<"u"?wG({key:"css"}):null);B6.Provider;var yR=function(t){return b.forwardRef(function(n,r){var o=b.useContext(B6);return t(n,o,r)})},_x=b.createContext({}),vR={}.hasOwnProperty,yI="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",OG=function(t,n){var r={};for(var o in n)vR.call(n,o)&&(r[o]=n[o]);return r[yI]=t,r},_G=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return gR(n,r,o),z6(function(){return bR(n,r,o)}),null},DG=yR(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var o=e[yI],i=[r],a="";typeof e.className=="string"?a=j6(t.registered,i,e.className):e.className!=null&&(a=e.className+" ");var l=Ox(i,void 0,b.useContext(_x));a+=t.key+"-"+l.name;var u={};for(var d in e)vR.call(e,d)&&d!=="css"&&d!==yI&&(u[d]=e[d]);return u.className=a,n&&(u.ref=n),b.createElement(b.Fragment,null,b.createElement(_G,{cache:t,serialized:l,isStringTag:typeof o=="string"}),b.createElement(o,u))}),LG=DG,S4=function(t,n){var r=arguments;if(n==null||!vR.call(n,"css"))return b.createElement.apply(void 0,r);var o=r.length,i=new Array(o);i[0]=LG,i[1]=OG(t,n);for(var a=2;a<o;a++)i[a]=r[a];return b.createElement.apply(null,i)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(S4||(S4={}));var $G=yR(function(e,t){var n=e.styles,r=Ox([n],void 0,b.useContext(_x)),o=b.useRef();return C4(function(){var i=t.key+"-global",a=new t.sheet.constructor({key:i,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),l=!1,u=document.querySelector('style[data-emotion="'+i+" "+r.name+'"]');return t.sheet.tags.length&&(a.before=t.sheet.tags[0]),u!==null&&(l=!0,u.setAttribute("data-emotion",i),a.hydrate([u])),o.current=[a,l],function(){a.flush()}},[t]),C4(function(){var i=o.current,a=i[0],l=i[1];if(l){i[1]=!1;return}if(r.next!==void 0&&bR(t,r.next,!0),a.tags.length){var u=a.tags[a.tags.length-1].nextElementSibling;a.before=u,a.flush()}t.insert("",r,a,!1)},[t,r.name]),null});function ef(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ox(t)}function As(){var e=ef.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 jG=/^((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)-.*))$/,FG=L6(function(e){return jG.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),NG=FG,zG=function(t){return t!=="theme"},E4=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?NG:zG},T4=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(a){return t.__emotion_forwardProp(a)&&i(a)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},BG=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return gR(n,r,o),z6(function(){return bR(n,r,o)}),null},HG=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,a;n!==void 0&&(i=n.label,a=n.target);var l=T4(t,n,r),u=l||E4(o),d=!u("as");return function(){var f=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&m.push("label:"+i+";"),f[0]==null||f[0].raw===void 0)m.push.apply(m,f);else{var g=f[0];m.push(g[0]);for(var w=f.length,C=1;C<w;C++)m.push(f[C],g[C])}var S=yR(function(E,T,I){var k=d&&E.as||o,R="",P=[],O=E;if(E.theme==null){O={};for(var j in E)O[j]=E[j];O.theme=b.useContext(_x)}typeof E.className=="string"?R=j6(T.registered,P,E.className):E.className!=null&&(R=E.className+" ");var F=Ox(m.concat(P),T.registered,O);R+=T.key+"-"+F.name,a!==void 0&&(R+=" "+a);var D=d&&l===void 0?E4(k):u,_={};for(var $ in E)d&&$==="as"||D($)&&(_[$]=E[$]);return _.className=R,I&&(_.ref=I),b.createElement(b.Fragment,null,b.createElement(BG,{cache:T,serialized:F,isStringTag:typeof k=="string"}),b.createElement(k,_))});return S.displayName=i!==void 0?i:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",S.defaultProps=t.defaultProps,S.__emotion_real=S,S.__emotion_base=o,S.__emotion_styles=m,S.__emotion_forwardProp=l,Object.defineProperty(S,"toString",{value:function(){return"."+a}}),S.withComponent=function(E,T){var I=e(E,z({},n,T,{shouldForwardProp:T4(S,T,!0)}));return I.apply(void 0,m)},S}},UG=["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"],vI=HG.bind(null);UG.forEach(function(e){vI[e]=vI(e)});var Pk={exports:{}},Ik,M4;function GG(){if(M4)return Ik;M4=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ik=e,Ik}var Ak,k4;function VG(){if(k4)return Ak;k4=1;var e=GG();function t(){}function n(){}return n.resetWarningCache=t,Ak=function(){function r(a,l,u,d,f,m){if(m!==e){var g=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 g.name="Invariant Violation",g}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},Ak}var P4;function WG(){return P4||(P4=1,Pk.exports=VG()()),Pk.exports}var qG=WG();const we=wu(qG);function YG(e){return e==null||Object.keys(e).length===0}function H6(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?o=>t(YG(o)?n:o):t;return y.jsx($G,{styles:r})}function U6(e,t){return vI(e,t)}function KG(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const I4=[];function A4(e){return I4[0]=e,Ox(I4)}var Rk={exports:{}},Mr={};/**
 * @license React
 * react-is.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var R4;function XG(){if(R4)return Mr;R4=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),w=Symbol.for("react.client.reference");function C(S){if(typeof S=="object"&&S!==null){var E=S.$$typeof;switch(E){case e:switch(S=S.type,S){case n:case o:case r:case u:case d:case g:return S;default:switch(S=S&&S.$$typeof,S){case a:case l:case m:case f:return S;case i:return S;default:return E}}case t:return E}}}return Mr.ContextConsumer=i,Mr.ContextProvider=a,Mr.Element=e,Mr.ForwardRef=l,Mr.Fragment=n,Mr.Lazy=m,Mr.Memo=f,Mr.Portal=t,Mr.Profiler=o,Mr.StrictMode=r,Mr.Suspense=u,Mr.SuspenseList=d,Mr.isContextConsumer=function(S){return C(S)===i},Mr.isContextProvider=function(S){return C(S)===a},Mr.isElement=function(S){return typeof S=="object"&&S!==null&&S.$$typeof===e},Mr.isForwardRef=function(S){return C(S)===l},Mr.isFragment=function(S){return C(S)===n},Mr.isLazy=function(S){return C(S)===m},Mr.isMemo=function(S){return C(S)===f},Mr.isPortal=function(S){return C(S)===t},Mr.isProfiler=function(S){return C(S)===o},Mr.isStrictMode=function(S){return C(S)===r},Mr.isSuspense=function(S){return C(S)===u},Mr.isSuspenseList=function(S){return C(S)===d},Mr.isValidElementType=function(S){return typeof S=="string"||typeof S=="function"||S===n||S===o||S===r||S===u||S===d||typeof S=="object"&&S!==null&&(S.$$typeof===m||S.$$typeof===f||S.$$typeof===a||S.$$typeof===i||S.$$typeof===l||S.$$typeof===w||S.getModuleId!==void 0)},Mr.typeOf=C,Mr}var O4;function ZG(){return O4||(O4=1,Rk.exports=XG()),Rk.exports}var G6=ZG();function lc(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 V6(e){if(b.isValidElement(e)||G6.isValidElementType(e)||!lc(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=V6(e[n])}),t}function ei(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return lc(e)&&lc(t)&&Object.keys(t).forEach(o=>{b.isValidElement(t[o])||G6.isValidElementType(t[o])?r[o]=t[o]:lc(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lc(e[o])?r[o]=ei(e[o],t[o],n):n.clone?r[o]=lc(t[o])?V6(t[o]):t[o]:r[o]=t[o]}),r}const QG=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function JG(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...o}=e,i=QG(t),a=Object.keys(i);function l(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n})`}function u(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${n})`}function d(g,w){const C=a.indexOf(w);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${n}) and (max-width:${(C!==-1&&typeof t[a[C]]=="number"?t[a[C]]:w)-r/100}${n})`}function f(g){return a.indexOf(g)+1<a.length?d(g,a[a.indexOf(g)+1]):l(g)}function m(g){const w=a.indexOf(g);return w===0?l(a[1]):w===a.length-1?u(a[w]):d(g,a[a.indexOf(g)+1]).replace("@media","@media not all and")}return{keys:a,values:i,up:l,down:u,between:d,only:f,not:m,unit:n,...o}}function eV(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,o)=>{var a,l;const i=/min-width:\s*([0-9.]+)/;return+(((a=r.match(i))==null?void 0:a[1])||0)-+(((l=o.match(i))==null?void 0:l[1])||0)});return n.length?n.reduce((r,o)=>{const i=t[o];return delete r[o],r[o]=i,r},{...t}):t}function tV(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function nV(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,o]=n,i=Number.isNaN(+r)?r||0:+r;return e.containerQueries(o).up(i)}function rV(e){const t=(i,a)=>i.replace("@media",a?`@container ${a}`:"@container");function n(i,a){i.up=(...l)=>t(e.breakpoints.up(...l),a),i.down=(...l)=>t(e.breakpoints.down(...l),a),i.between=(...l)=>t(e.breakpoints.between(...l),a),i.only=(...l)=>t(e.breakpoints.only(...l),a),i.not=(...l)=>{const u=t(e.breakpoints.not(...l),a);return u.includes("not all and")?u.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):u}}const r={},o=i=>(n(r,i),r);return n(o),{...e,containerQueries:o}}const oV={borderRadius:4};function zv(e,t){return t?ei(e,t,{clone:!1}):e}const $E={xs:0,sm:600,md:900,lg:1200,xl:1536},_4={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$E[e]}px)`},iV={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:$E[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function hl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||_4;return t.reduce((a,l,u)=>(a[i.up(i.keys[u])]=n(t[u]),a),{})}if(typeof t=="object"){const i=r.breakpoints||_4;return Object.keys(t).reduce((a,l)=>{if(tV(i.keys,l)){const u=nV(r.containerQueries?r:iV,l);u&&(a[u]=n(t[l],l))}else if(Object.keys(i.values||$E).includes(l)){const u=i.up(l);a[u]=n(t[l],l)}else{const u=l;a[u]=t[u]}return a},{})}return n(t)}function W6(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function q6(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function aV(e,...t){const n=W6(e),r=[n,...t].reduce((o,i)=>ei(o,i),{});return q6(Object.keys(n),r)}function sV(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((o,i)=>{i<e.length&&(n[o]=!0)}):r.forEach(o=>{e[o]!=null&&(n[o]=!0)}),n}function Ok({values:e,breakpoints:t,base:n}){const r=n||sV(e,t),o=Object.keys(r);if(o.length===0)return e;let i;return o.reduce((a,l,u)=>(Array.isArray(e)?(a[l]=e[u]!=null?e[u]:e[i],i=u):typeof e=="object"?(a[l]=e[l]!=null?e[l]:e[i],i=l):a[l]=e,a),{})}function Be(e){if(typeof e!="string")throw new Error(fu(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Bd(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function s2(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Bd(e,n)||r,t&&(o=t(o,r,e)),o}function Po(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const l=a[t],u=a.theme,d=Bd(u,r)||{};return hl(a,l,m=>{let g=s2(d,o,m);return m===g&&typeof m=="string"&&(g=s2(d,o,`${t}${m==="default"?"":Be(m)}`,m)),n===!1?g:{[n]:g}})};return i.propTypes={},i.filterProps=[t],i}function lV(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const cV={m:"margin",p:"padding"},uV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},D4={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},dV=lV(e=>{if(e.length>2)if(D4[e])e=D4[e];else return[e];const[t,n]=e.split(""),r=cV[t],o=uV[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),xR=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],wR=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...xR,...wR];function Dx(e,t,n,r){const o=Bd(e,t,!0)??n;return typeof o=="number"||typeof o=="string"?i=>typeof i=="string"?i:typeof o=="string"?o.startsWith("var(")&&i===0?0:o.startsWith("var(")&&i===1?o:`calc(${i} * ${o})`:o*i:Array.isArray(o)?i=>{if(typeof i=="string")return i;const a=Math.abs(i),l=o[a];return i>=0?l:typeof l=="number"?-l:typeof l=="string"&&l.startsWith("var(")?`calc(-1 * ${l})`:`-${l}`}:typeof o=="function"?o:()=>{}}function jE(e){return Dx(e,"spacing",8)}function ch(e,t){return typeof t=="string"||t==null?t:e(t)}function fV(e,t){return n=>e.reduce((r,o)=>(r[o]=ch(t,n),r),{})}function pV(e,t,n,r){if(!t.includes(n))return null;const o=dV(n),i=fV(o,r),a=e[n];return hl(e,a,i)}function Y6(e,t){const n=jE(e.theme);return Object.keys(e).map(r=>pV(e,t,r,n)).reduce(zv,{})}function mo(e){return Y6(e,xR)}mo.propTypes={};mo.filterProps=xR;function go(e){return Y6(e,wR)}go.propTypes={};go.filterProps=wR;function K6(e=8,t=jE({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(i=>{const a=t(i);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function FE(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?zv(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function ys(e){return typeof e!="number"?e:`${e}px solid`}function Rs(e,t){return Po({prop:e,themeKey:"borders",transform:t})}const hV=Rs("border",ys),mV=Rs("borderTop",ys),gV=Rs("borderRight",ys),bV=Rs("borderBottom",ys),yV=Rs("borderLeft",ys),vV=Rs("borderColor"),xV=Rs("borderTopColor"),wV=Rs("borderRightColor"),CV=Rs("borderBottomColor"),SV=Rs("borderLeftColor"),EV=Rs("outline",ys),TV=Rs("outlineColor"),NE=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Dx(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:ch(t,r)});return hl(e,e.borderRadius,n)}return null};NE.propTypes={};NE.filterProps=["borderRadius"];FE(hV,mV,gV,bV,yV,vV,xV,wV,CV,SV,NE,EV,TV);const zE=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Dx(e.theme,"spacing",8),n=r=>({gap:ch(t,r)});return hl(e,e.gap,n)}return null};zE.propTypes={};zE.filterProps=["gap"];const BE=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Dx(e.theme,"spacing",8),n=r=>({columnGap:ch(t,r)});return hl(e,e.columnGap,n)}return null};BE.propTypes={};BE.filterProps=["columnGap"];const HE=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Dx(e.theme,"spacing",8),n=r=>({rowGap:ch(t,r)});return hl(e,e.rowGap,n)}return null};HE.propTypes={};HE.filterProps=["rowGap"];const MV=Po({prop:"gridColumn"}),kV=Po({prop:"gridRow"}),PV=Po({prop:"gridAutoFlow"}),IV=Po({prop:"gridAutoColumns"}),AV=Po({prop:"gridAutoRows"}),RV=Po({prop:"gridTemplateColumns"}),OV=Po({prop:"gridTemplateRows"}),_V=Po({prop:"gridTemplateAreas"}),DV=Po({prop:"gridArea"});FE(zE,BE,HE,MV,kV,PV,IV,AV,RV,OV,_V,DV);function o0(e,t){return t==="grey"?t:e}const LV=Po({prop:"color",themeKey:"palette",transform:o0}),$V=Po({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:o0}),jV=Po({prop:"backgroundColor",themeKey:"palette",transform:o0});FE(LV,$V,jV);function Ha(e){return e<=1&&e!==0?`${e*100}%`:e}const FV=Po({prop:"width",transform:Ha}),CR=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var o,i,a,l,u;const r=((a=(i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.values)==null?void 0:a[n])||$E[n];return r?((u=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:u.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Ha(n)}};return hl(e,e.maxWidth,t)}return null};CR.filterProps=["maxWidth"];const NV=Po({prop:"minWidth",transform:Ha}),zV=Po({prop:"height",transform:Ha}),BV=Po({prop:"maxHeight",transform:Ha}),HV=Po({prop:"minHeight",transform:Ha});Po({prop:"size",cssProperty:"width",transform:Ha});Po({prop:"size",cssProperty:"height",transform:Ha});const UV=Po({prop:"boxSizing"});FE(FV,CR,NV,zV,BV,HV,UV);const Lx={border:{themeKey:"borders",transform:ys},borderTop:{themeKey:"borders",transform:ys},borderRight:{themeKey:"borders",transform:ys},borderBottom:{themeKey:"borders",transform:ys},borderLeft:{themeKey:"borders",transform:ys},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:ys},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:NE},color:{themeKey:"palette",transform:o0},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:o0},backgroundColor:{themeKey:"palette",transform:o0},p:{style:go},pt:{style:go},pr:{style:go},pb:{style:go},pl:{style:go},px:{style:go},py:{style:go},padding:{style:go},paddingTop:{style:go},paddingRight:{style:go},paddingBottom:{style:go},paddingLeft:{style:go},paddingX:{style:go},paddingY:{style:go},paddingInline:{style:go},paddingInlineStart:{style:go},paddingInlineEnd:{style:go},paddingBlock:{style:go},paddingBlockStart:{style:go},paddingBlockEnd:{style:go},m:{style:mo},mt:{style:mo},mr:{style:mo},mb:{style:mo},ml:{style:mo},mx:{style:mo},my:{style:mo},margin:{style:mo},marginTop:{style:mo},marginRight:{style:mo},marginBottom:{style:mo},marginLeft:{style:mo},marginX:{style:mo},marginY:{style:mo},marginInline:{style:mo},marginInlineStart:{style:mo},marginInlineEnd:{style:mo},marginBlock:{style:mo},marginBlockStart:{style:mo},marginBlockEnd:{style:mo},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:zE},rowGap:{style:HE},columnGap:{style:BE},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ha},maxWidth:{style:CR},minWidth:{transform:Ha},height:{transform:Ha},maxHeight:{transform:Ha},minHeight:{transform:Ha},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function GV(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function VV(e,t){return typeof e=="function"?e(t):e}function WV(){function e(n,r,o,i){const a={[n]:r,theme:o},l=i[n];if(!l)return{[n]:r};const{cssProperty:u=n,themeKey:d,transform:f,style:m}=l;if(r==null)return null;if(d==="typography"&&r==="inherit")return{[n]:r};const g=Bd(o,d)||{};return m?m(a):hl(a,r,C=>{let S=s2(g,f,C);return C===S&&typeof C=="string"&&(S=s2(g,f,`${n}${C==="default"?"":Be(C)}`,C)),u===!1?S:{[u]:S}})}function t(n){const{sx:r,theme:o={}}=n||{};if(!r)return null;const i=o.unstable_sxConfig??Lx;function a(l){let u=l;if(typeof l=="function")u=l(o);else if(typeof l!="object")return l;if(!u)return null;const d=W6(o.breakpoints),f=Object.keys(d);let m=d;return Object.keys(u).forEach(g=>{const w=VV(u[g],o);if(w!=null)if(typeof w=="object")if(i[g])m=zv(m,e(g,w,o,i));else{const C=hl({theme:o},w,S=>({[g]:S}));GV(C,w)?m[g]=t({sx:w,theme:o}):m=zv(m,C)}else m=zv(m,e(g,w,o,i))}),eV(o,q6(f,m))}return Array.isArray(r)?r.map(a):a(r)}return t}const Gd=WV();Gd.filterProps=["sx"];function qV(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let o=n.getColorSchemeSelector(e);return o==="&"?t:((o.includes("data-")||o.includes("."))&&(o=`*:where(${o.replace(/\s*&$/,"")}) &`),{[o]:t})}return n.palette.mode===e?t:{}}function $x(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={},...a}=e,l=JG(n),u=K6(o);let d=ei({breakpoints:l,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:u,shape:{...oV,...i}},a);return d=rV(d),d.applyStyles=qV,d=t.reduce((f,m)=>ei(f,m),d),d.unstable_sxConfig={...Lx,...a==null?void 0:a.unstable_sxConfig},d.unstable_sx=function(m){return Gd({sx:m,theme:this})},d}function YV(e){return Object.keys(e).length===0}function SR(e=null){const t=b.useContext(_x);return!t||YV(t)?e:t}const KV=$x();function UE(e=KV){return SR(e)}function XV({styles:e,themeId:t,defaultTheme:n={}}){const r=UE(n),o=typeof e=="function"?e(t&&r[t]||r):e;return y.jsx(H6,{styles:o})}const ZV=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Lx;return Object.keys(e).forEach(o=>{n[o]?t.systemProps[o]=e[o]:t.otherProps[o]=e[o]}),t};function ER(e){const{sx:t,...n}=e,{systemProps:r,otherProps:o}=ZV(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const l=t(...a);return lc(l)?{...r,...l}:r}:i={...r,...t},{...o,sx:i}}const L4=e=>e,QV=()=>{let e=L4;return{configure(t){e=t},generate(t){return e(t)},reset(){e=L4}}},X6=QV();function Z6(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Z6(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Ve(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Z6(e))&&(r&&(r+=" "),r+=t);return r}function JV(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=U6("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Gd);return b.forwardRef(function(u,d){const f=UE(n),{className:m,component:g="div",...w}=ER(u);return y.jsx(i,{as:g,ref:d,className:Ve(m,o?o(r):r),theme:t&&f[t]||f,...w})})}const eW={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 kt(e,t,n="Mui"){const r=eW[t];return r?`${n}-${r}`:`${X6.generate(e)}-${t}`}function Pt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=kt(e,o,n)}),r}function Q6(e){const{variants:t,...n}=e,r={variants:t,style:A4(n),isProcessed:!0};return r.style===n||t&&t.forEach(o=>{typeof o.style!="function"&&(o.style=A4(o.style))}),r}const tW=$x();function $S(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function nW(e){return e?(t,n)=>n[e]:null}function rW(e,t,n){e.theme=iW(e.theme)?n:e.theme[t]||e.theme}function jS(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>jS(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:o,...i}=n;r=i}return J6(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function J6(e,t,n=[]){var o;let r;e:for(let i=0;i<t.length;i+=1){const a=t[i];if(typeof a.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!a.props(r))continue}else for(const l in a.props)if(e[l]!==a.props[l]&&((o=e.ownerState)==null?void 0:o[l])!==a.props[l])continue e;typeof a.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(a.style(r))):n.push(a.style)}return n}function eF(e={}){const{themeId:t,defaultTheme:n=tW,rootShouldForwardProp:r=$S,slotShouldForwardProp:o=$S}=e;function i(l){rW(l,t,n)}return(l,u={})=>{KG(l,P=>P.filter(O=>O!==Gd));const{name:d,slot:f,skipVariantsResolver:m,skipSx:g,overridesResolver:w=nW(sW(f)),...C}=u,S=m!==void 0?m:f&&f!=="Root"&&f!=="root"||!1,E=g||!1;let T=$S;f==="Root"||f==="root"?T=r:f?T=o:aW(l)&&(T=void 0);const I=U6(l,{shouldForwardProp:T,label:oW(),...C}),k=P=>{if(P.__emotion_real===P)return P;if(typeof P=="function")return function(j){return jS(j,P)};if(lc(P)){const O=Q6(P);return O.variants?function(F){return jS(F,O)}:O.style}return P},R=(...P)=>{const O=[],j=P.map(k),F=[];if(O.push(i),d&&w&&F.push(function(B){var N,H;const q=(H=(N=B.theme.components)==null?void 0:N[d])==null?void 0:H.styleOverrides;if(!q)return null;const G={};for(const Y in q)G[Y]=jS(B,q[Y]);return w(B,G)}),d&&!S&&F.push(function(B){var G,N;const V=B.theme,q=(N=(G=V==null?void 0:V.components)==null?void 0:G[d])==null?void 0:N.variants;return q?J6(B,q):null}),E||F.push(Gd),Array.isArray(j[0])){const $=j.shift(),B=new Array(O.length).fill(""),V=new Array(F.length).fill("");let q;q=[...B,...$,...V],q.raw=[...B,...$.raw,...V],O.unshift(q)}const D=[...O,...j,...F],_=I(...D);return l.muiName&&(_.muiName=l.muiName),_};return I.withConfig&&(R.withConfig=I.withConfig),R}}function oW(e,t){return void 0}function iW(e){for(const t in e)return!1;return!0}function aW(e){return typeof e=="string"&&e.charCodeAt(0)>96}function sW(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const Bn=eF();function Vd(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const o=r;if(o==="components"||o==="slots")n[o]={...e[o],...n[o]};else if(o==="componentsProps"||o==="slotProps"){const i=e[o],a=t[o];if(!a)n[o]=i||{};else if(!i)n[o]=a;else{n[o]={...a};for(const l in i)if(Object.prototype.hasOwnProperty.call(i,l)){const u=l;n[o][u]=Vd(i[u],a[u])}}}else n[o]===void 0&&(n[o]=e[o])}return n}function TR(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Vd(t.components[n].defaultProps,r)}function MR({props:e,name:t,defaultTheme:n,themeId:r}){let o=UE(n);return r&&(o=o[r]||o),TR({theme:o,name:t,props:e})}const kn=typeof window<"u"?b.useLayoutEffect:b.useEffect;function lW(e,t,n,r,o){const[i,a]=b.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return kn(()=>{if(!n)return;const l=n(e),u=()=>{a(l.matches)};return u(),l.addEventListener("change",u),()=>{l.removeEventListener("change",u)}},[e,n]),i}const cW={...i2},tF=cW.useSyncExternalStore;function uW(e,t,n,r,o){const i=b.useCallback(()=>t,[t]),a=b.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return i},[i,e,r,o,n]),[l,u]=b.useMemo(()=>{if(n===null)return[i,()=>()=>{}];const f=n(e);return[()=>f.matches,m=>(f.addEventListener("change",m),()=>{f.removeEventListener("change",m)})]},[i,n,e]);return tF(u,l,a)}function nF(e={}){const{themeId:t}=e;return function(r,o={}){let i=SR();i&&t&&(i=i[t]||i);const a=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:l=!1,matchMedia:u=a?window.matchMedia:null,ssrMatchMedia:d=null,noSsr:f=!1}=TR({name:"MuiUseMediaQuery",props:o,theme:i});let m=typeof r=="function"?r(i):r;return m=m.replace(/^@media( ?)/m,""),m.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
`)),(tF!==void 0?uW:lW)(m,l,u,d,f)}}nF();function dW(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function kR(e,t=0,n=1){return dW(e,t,n)}function fW(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(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Wd(e){if(e.type)return e;if(e.charAt(0)==="#")return Wd(fW(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(fu(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(o))throw new Error(fu(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const pW=e=>{const t=Wd(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},Pv=(e,t)=>{try{return pW(e)}catch{return e}};function GE(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function rF(e){e=Wd(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(d,f=(d+n/30)%12)=>o-i*Math.max(Math.min(f-3,9-f,1),-1);let l="rgb";const u=[Math.round(a(0)*255),Math.round(a(8)*255),Math.round(a(4)*255)];return e.type==="hsla"&&(l+="a",u.push(t[3])),GE({type:l,values:u})}function xI(e){e=Wd(e);let t=e.type==="hsl"||e.type==="hsla"?Wd(rF(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 hW(e,t){const n=xI(e),r=xI(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function cn(e,t){return e=Wd(e),t=kR(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,GE(e)}function WC(e,t,n){try{return cn(e,t)}catch{return e}}function pu(e,t){if(e=Wd(e),t=kR(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 GE(e)}function _r(e,t,n){try{return pu(e,t)}catch{return e}}function hu(e,t){if(e=Wd(e),t=kR(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 GE(e)}function Dr(e,t,n){try{return hu(e,t)}catch{return e}}function rx(e,t=.15){return xI(e)>.5?pu(e,t):hu(e,t)}function qC(e,t,n){try{return rx(e,t)}catch{return e}}const oF=b.createContext(null);function PR(){return b.useContext(oF)}const mW=typeof Symbol=="function"&&Symbol.for,gW=mW?Symbol.for("mui.nested"):"__THEME_NESTED__";function bW(e,t){return typeof t=="function"?t(e):{...e,...t}}function yW(e){const{children:t,theme:n}=e,r=PR(),o=b.useMemo(()=>{const i=r===null?{...n}:bW(r,n);return i!=null&&(i[gW]=r!==null),i},[n,r]);return y.jsx(oF.Provider,{value:o,children:t})}const iF=b.createContext();function vW({value:e,...t}){return y.jsx(iF.Provider,{value:e??!0,...t})}const Lo=()=>b.useContext(iF)??!1,aF=b.createContext(void 0);function xW({value:e,children:t}){return y.jsx(aF.Provider,{value:e,children:t})}function wW(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Vd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Vd(o,r):r}function CW({props:e,name:t}){const n=b.useContext(aF);return wW({props:e,name:t,theme:{components:n}})}const $4={};function j4(e,t,n,r=!1){return b.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?{...t,[e]:i}:i;return r?()=>a:a}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function sF(e){const{children:t,theme:n,themeId:r}=e,o=SR($4),i=PR()||$4,a=j4(r,o,n),l=j4(r,i,n,!0),u=(r?a[r]:a).direction==="rtl";return y.jsx(yW,{theme:l,children:y.jsx(_x.Provider,{value:a,children:y.jsx(vW,{value:u,children:y.jsx(xW,{value:r?a[r].components:a.components,children:t})})})})}const F4={theme:void 0};function SW(e){let t,n;return function(o){let i=t;return(i===void 0||o.theme!==n)&&(F4.theme=o.theme,i=Q6(e(F4)),t=i,n=o.theme),i}}const IR="mode",AR="color-scheme",EW="data-color-scheme";function lF(e){const{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:o=IR,colorSchemeStorageKey:i=AR,attribute:a=EW,colorSchemeNode:l="document.documentElement",nonce:u}=e||{};let d="",f=a;if(a==="class"&&(f=".%s"),a==="data"&&(f="[data-%s]"),f.startsWith(".")){const g=f.substring(1);d+=`${l}.classList.remove('${g}'.replace('%s', light), '${g}'.replace('%s', dark));
      ${l}.classList.add('${g}'.replace('%s', colorScheme));`}const m=f.match(/\[([^\]]+)\]/);if(m){const[g,w]=m[1].split("=");w||(d+=`${l}.removeAttribute('${g}'.replace('%s', light));
      ${l}.removeAttribute('${g}'.replace('%s', dark));`),d+=`
      ${l}.setAttribute('${g}'.replace('%s', colorScheme), ${w?`${w}.replace('%s', colorScheme)`:'""'});`}else d+=`${l}.setAttribute('${f}', colorScheme);`;return y.jsx("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?u:"",dangerouslySetInnerHTML:{__html:`(function() {
try {
  let colorScheme = '';
  const mode = localStorage.getItem('${o}') || '${t}';
  const dark = localStorage.getItem('${i}-dark') || '${r}';
  const light = localStorage.getItem('${i}-light') || '${n}';
  if (mode === 'system') {
    // handle system mode
    const mql = window.matchMedia('(prefers-color-scheme: dark)');
    if (mql.matches) {
      colorScheme = dark
    } else {
      colorScheme = light
    }
  }
  if (mode === 'light') {
    colorScheme = light;
  }
  if (mode === 'dark') {
    colorScheme = dark;
  }
  if (colorScheme) {
    ${d}
  }
} catch(e){}})();`}},"mui-color-scheme-init")}function TW(){}const MW=({key:e,storageWindow:t})=>(!t&&typeof window<"u"&&(t=window),{get(n){if(typeof window>"u")return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return TW;const r=o=>{const i=o.newValue;o.key===e&&n(i)};return t.addEventListener("storage",r),()=>{t.removeEventListener("storage",r)}}});function _k(){}function N4(e){if(typeof window<"u"&&typeof window.matchMedia=="function"&&e==="system")return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}function cF(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 kW(e){return cF(e,t=>{if(t==="light")return e.lightColorScheme;if(t==="dark")return e.darkColorScheme})}function PW(e){const{defaultMode:t="light",defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:o=[],modeStorageKey:i=IR,colorSchemeStorageKey:a=AR,storageWindow:l=typeof window>"u"?void 0:window,storageManager:u=MW,noSsr:d=!1}=e,f=o.join(","),m=o.length>1,g=b.useMemo(()=>u==null?void 0:u({key:i,storageWindow:l}),[u,i,l]),w=b.useMemo(()=>u==null?void 0:u({key:`${a}-light`,storageWindow:l}),[u,a,l]),C=b.useMemo(()=>u==null?void 0:u({key:`${a}-dark`,storageWindow:l}),[u,a,l]),[S,E]=b.useState(()=>{const F=(g==null?void 0:g.get(t))||t,D=(w==null?void 0:w.get(n))||n,_=(C==null?void 0:C.get(r))||r;return{mode:F,systemMode:N4(F),lightColorScheme:D,darkColorScheme:_}}),[T,I]=b.useState(d||!m);b.useEffect(()=>{I(!0)},[]);const k=kW(S),R=b.useCallback(F=>{E(D=>{if(F===D.mode)return D;const _=F??t;return g==null||g.set(_),{...D,mode:_,systemMode:N4(_)}})},[g,t]),P=b.useCallback(F=>{F?typeof F=="string"?F&&!f.includes(F)?console.error(`\`${F}\` does not exist in \`theme.colorSchemes\`.`):E(D=>{const _={...D};return cF(D,$=>{$==="light"&&(w==null||w.set(F),_.lightColorScheme=F),$==="dark"&&(C==null||C.set(F),_.darkColorScheme=F)}),_}):E(D=>{const _={...D},$=F.light===null?n:F.light,B=F.dark===null?r:F.dark;return $&&(f.includes($)?(_.lightColorScheme=$,w==null||w.set($)):console.error(`\`${$}\` does not exist in \`theme.colorSchemes\`.`)),B&&(f.includes(B)?(_.darkColorScheme=B,C==null||C.set(B)):console.error(`\`${B}\` does not exist in \`theme.colorSchemes\`.`)),_}):E(D=>(w==null||w.set(n),C==null||C.set(r),{...D,lightColorScheme:n,darkColorScheme:r}))},[f,w,C,n,r]),O=b.useCallback(F=>{S.mode==="system"&&E(D=>{const _=F!=null&&F.matches?"dark":"light";return D.systemMode===_?D:{...D,systemMode:_}})},[S.mode]),j=b.useRef(O);return j.current=O,b.useEffect(()=>{if(typeof window.matchMedia!="function"||!m)return;const F=(..._)=>j.current(..._),D=window.matchMedia("(prefers-color-scheme: dark)");return D.addListener(F),F(D),()=>{D.removeListener(F)}},[m]),b.useEffect(()=>{if(m){const F=(g==null?void 0:g.subscribe($=>{(!$||["light","dark","system"].includes($))&&R($||t)}))||_k,D=(w==null?void 0:w.subscribe($=>{(!$||f.match($))&&P({light:$})}))||_k,_=(C==null?void 0:C.subscribe($=>{(!$||f.match($))&&P({dark:$})}))||_k;return()=>{F(),D(),_()}}},[P,R,f,t,l,m,g,w,C]),{...S,mode:T?S.mode:void 0,systemMode:T?S.systemMode:void 0,colorScheme:T?k:void 0,setMode:R,setColorScheme:P}}const IW="*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function AW(e){const{themeId:t,theme:n={},modeStorageKey:r=IR,colorSchemeStorageKey:o=AR,disableTransitionOnChange:i=!1,defaultColorScheme:a,resolveTheme:l}=e,u={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},d=b.createContext(void 0),f=()=>b.useContext(d)||u,m={},g={};function w(T){var qe,Ke,it,ot;const{children:I,theme:k,modeStorageKey:R=r,colorSchemeStorageKey:P=o,disableTransitionOnChange:O=i,storageManager:j,storageWindow:F=typeof window>"u"?void 0:window,documentNode:D=typeof document>"u"?void 0:document,colorSchemeNode:_=typeof document>"u"?void 0:document.documentElement,disableNestedContext:$=!1,disableStyleSheetGeneration:B=!1,defaultMode:V="system",forceThemeRerender:q=!1,noSsr:G}=T,N=b.useRef(!1),H=PR(),Y=b.useContext(d),Q=!!Y&&!$,W=b.useMemo(()=>k||(typeof n=="function"?n():n),[k]),K=W[t],J=K||W,{colorSchemes:ae=m,components:ce=g,cssVarPrefix:de}=J,re=Object.keys(ae).filter(gt=>!!ae[gt]).join(","),ke=b.useMemo(()=>re.split(","),[re]),Ce=typeof a=="string"?a:a.light,ie=typeof a=="string"?a:a.dark,le=ae[Ce]&&ae[ie]?V:((Ke=(qe=ae[J.defaultColorScheme])==null?void 0:qe.palette)==null?void 0:Ke.mode)||((it=J.palette)==null?void 0:it.mode),{mode:ve,setMode:ue,systemMode:me,lightColorScheme:be,darkColorScheme:Fe,colorScheme:Ze,setColorScheme:We}=PW({supportedColorSchemes:ke,defaultLightColorScheme:Ce,defaultDarkColorScheme:ie,modeStorageKey:R,colorSchemeStorageKey:P,defaultMode:le,storageManager:j,storageWindow:F,noSsr:G});let _e=ve,ft=Ze;Q&&(_e=Y.mode,ft=Y.colorScheme);let nt=ft||J.defaultColorScheme;J.vars&&!q&&(nt=J.defaultColorScheme);const dt=b.useMemo(()=>{var jt;const gt=((jt=J.generateThemeVars)==null?void 0:jt.call(J))||J.vars,Ue={...J,components:ce,colorSchemes:ae,cssVarPrefix:de,vars:gt};if(typeof Ue.generateSpacing=="function"&&(Ue.spacing=Ue.generateSpacing()),nt){const Ht=ae[nt];Ht&&typeof Ht=="object"&&Object.keys(Ht).forEach(pt=>{Ht[pt]&&typeof Ht[pt]=="object"?Ue[pt]={...Ue[pt],...Ht[pt]}:Ue[pt]=Ht[pt]})}return l?l(Ue):Ue},[J,nt,ce,ae,de]),se=J.colorSchemeSelector;kn(()=>{if(ft&&_&&se&&se!=="media"){const gt=se;let Ue=se;if(gt==="class"&&(Ue=".%s"),gt==="data"&&(Ue="[data-%s]"),gt!=null&&gt.startsWith("data-")&&!gt.includes("%s")&&(Ue=`[${gt}="%s"]`),Ue.startsWith("."))_.classList.remove(...ke.map(jt=>Ue.substring(1).replace("%s",jt))),_.classList.add(Ue.substring(1).replace("%s",ft));else{const jt=Ue.replace("%s",ft).match(/\[([^\]]+)\]/);if(jt){const[Ht,pt]=jt[1].split("=");pt||ke.forEach(ht=>{_.removeAttribute(Ht.replace(ft,ht))}),_.setAttribute(Ht,pt?pt.replace(/"|'/g,""):"")}else _.setAttribute(Ue,ft)}}},[ft,se,_,ke]),b.useEffect(()=>{let gt;if(O&&N.current&&D){const Ue=D.createElement("style");Ue.appendChild(D.createTextNode(IW)),D.head.appendChild(Ue),window.getComputedStyle(D.body),gt=setTimeout(()=>{D.head.removeChild(Ue)},1)}return()=>{clearTimeout(gt)}},[ft,O,D]),b.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]);const De=b.useMemo(()=>({allColorSchemes:ke,colorScheme:ft,darkColorScheme:Fe,lightColorScheme:be,mode:_e,setColorScheme:We,setMode:ue,systemMode:me}),[ke,ft,Fe,be,_e,We,ue,me,dt.colorSchemeSelector]);let ye=!0;(B||J.cssVariables===!1||Q&&(H==null?void 0:H.cssVarPrefix)===de)&&(ye=!1);const Pe=y.jsxs(b.Fragment,{children:[y.jsx(sF,{themeId:K?t:void 0,theme:dt,children:I}),ye&&y.jsx(H6,{styles:((ot=dt.generateStyleSheets)==null?void 0:ot.call(dt))||[]})]});return Q?Pe:y.jsx(d.Provider,{value:De,children:Pe})}const C=typeof a=="string"?a:a.light,S=typeof a=="string"?a:a.dark;return{CssVarsProvider:w,useColorScheme:f,getInitColorSchemeScript:T=>lF({colorSchemeStorageKey:o,defaultLightColorScheme:C,defaultDarkColorScheme:S,modeStorageKey:r,...T})}}function RW(e=""){function t(...r){if(!r.length)return"";const o=r[0];return typeof o=="string"&&!o.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}-`:""}${o}${t(...r.slice(1))})`:`, ${o}`}return(r,...o)=>`var(--${e?`${e}-`:""}${r}${t(...o)})`}const z4=(e,t,n,r=[])=>{let o=e;t.forEach((i,a)=>{a===t.length-1?Array.isArray(o)?o[Number(i)]=n:o&&typeof o=="object"&&(o[i]=n):o&&typeof o=="object"&&(o[i]||(o[i]=r.includes(i)?[]:{}),o=o[i])})},OW=(e,t,n)=>{function r(o,i=[],a=[]){Object.entries(o).forEach(([l,u])=>{(!n||n&&!n([...i,l]))&&u!=null&&(typeof u=="object"&&Object.keys(u).length>0?r(u,[...i,l],Array.isArray(u)?[...a,l]:a):t([...i,l],u,a))})}r(e)},_W=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Dk(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},o={},i={},a={};return OW(e,(l,u,d)=>{if((typeof u=="string"||typeof u=="number")&&(!r||!r(l,u))){const f=`--${n?`${n}-`:""}${l.join("-")}`,m=_W(l,u);Object.assign(o,{[f]:m}),z4(i,l,`var(${f})`,d),z4(a,l,`var(${f}, ${m})`,d)}},l=>l[0]==="vars"),{css:o,vars:i,varsWithDefaults:a}}function DW(e,t={}){const{getSelector:n=E,disableCssColorScheme:r,colorSchemeSelector:o}=t,{colorSchemes:i={},components:a,defaultColorScheme:l="light",...u}=e,{vars:d,css:f,varsWithDefaults:m}=Dk(u,t);let g=m;const w={},{[l]:C,...S}=i;if(Object.entries(S||{}).forEach(([k,R])=>{const{vars:P,css:O,varsWithDefaults:j}=Dk(R,t);g=ei(g,j),w[k]={css:O,vars:P}}),C){const{css:k,vars:R,varsWithDefaults:P}=Dk(C,t);g=ei(g,P),w[l]={css:k,vars:R}}function E(k,R){var O,j;let P=o;if(o==="class"&&(P=".%s"),o==="data"&&(P="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(P=`[${o}="%s"]`),k){if(P==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((j=(O=i[k])==null?void 0:O.palette)==null?void 0:j.mode)||k})`]:{":root":R}};if(P)return e.defaultColorScheme===k?`:root, ${P.replace("%s",String(k))}`:P.replace("%s",String(k))}return":root"}return{vars:g,generateThemeVars:()=>{let k={...d};return Object.entries(w).forEach(([,{vars:R}])=>{k=ei(k,R)}),k},generateStyleSheets:()=>{var F,D;const k=[],R=e.defaultColorScheme||"light";function P(_,$){Object.keys($).length&&k.push(typeof _=="string"?{[_]:{...$}}:_)}P(n(void 0,{...f}),f);const{[R]:O,...j}=w;if(O){const{css:_}=O,$=(D=(F=i[R])==null?void 0:F.palette)==null?void 0:D.mode,B=!r&&$?{colorScheme:$,..._}:{..._};P(n(R,{...B}),B)}return Object.entries(j).forEach(([_,{css:$}])=>{var q,G;const B=(G=(q=i[_])==null?void 0:q.palette)==null?void 0:G.mode,V=!r&&B?{colorScheme:B,...$}:{...$};P(n(_,{...V}),V)}),k}}}function LW(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 st(e,t,n=void 0){const r={};for(const o in e){const i=e[o];let a="",l=!0;for(let u=0;u<i.length;u+=1){const d=i[u];d&&(a+=(l===!0?"":" ")+t(d),l=!1,n&&n[d]&&(a+=" "+n[d]))}r[o]=a}return r}const $W=$x(),jW=Bn("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Be(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),FW=e=>MR({props:e,name:"MuiContainer",defaultTheme:$W}),NW=(e,t)=>{const n=u=>kt(t,u),{classes:r,fixed:o,disableGutters:i,maxWidth:a}=e,l={root:["root",a&&`maxWidth${Be(String(a))}`,o&&"fixed",i&&"disableGutters"]};return st(l,n,r)};function zW(e={}){const{createStyledComponent:t=jW,useThemeProps:n=FW,componentName:r="MuiContainer"}=e,o=t(({theme:a,ownerState:l})=>({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",...!l.disableGutters&&{paddingLeft:a.spacing(2),paddingRight:a.spacing(2),[a.breakpoints.up("sm")]:{paddingLeft:a.spacing(3),paddingRight:a.spacing(3)}}}),({theme:a,ownerState:l})=>l.fixed&&Object.keys(a.breakpoints.values).reduce((u,d)=>{const f=d,m=a.breakpoints.values[f];return m!==0&&(u[a.breakpoints.up(f)]={maxWidth:`${m}${a.breakpoints.unit}`}),u},{}),({theme:a,ownerState:l})=>({...l.maxWidth==="xs"&&{[a.breakpoints.up("xs")]:{maxWidth:Math.max(a.breakpoints.values.xs,444)}},...l.maxWidth&&l.maxWidth!=="xs"&&{[a.breakpoints.up(l.maxWidth)]:{maxWidth:`${a.breakpoints.values[l.maxWidth]}${a.breakpoints.unit}`}}}));return b.forwardRef(function(l,u){const d=n(l),{className:f,component:m="div",disableGutters:g=!1,fixed:w=!1,maxWidth:C="lg",classes:S,...E}=d,T={...d,component:m,disableGutters:g,fixed:w,maxWidth:C},I=NW(T,r);return y.jsx(o,{as:m,ownerState:T,className:Ve(I.root,f),ref:u,...E})})}function FS(e,t){var n,r,o;return b.isValidElement(e)&&t.indexOf(e.type.muiName??((o=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:o.muiName))!==-1}const BW=$x(),HW=Bn("div",{name:"MuiStack",slot:"Root"});function UW(e){return MR({props:e,name:"MuiStack",defaultTheme:BW})}function GW(e,t){const n=b.Children.toArray(e).filter(Boolean);return n.reduce((r,o,i)=>(r.push(o),i<n.length-1&&r.push(b.cloneElement(t,{key:`separator-${i}`})),r),[])}const VW=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],WW=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...hl({theme:t},Ok({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=jE(t),o=Object.keys(t.breakpoints.values).reduce((u,d)=>((typeof e.spacing=="object"&&e.spacing[d]!=null||typeof e.direction=="object"&&e.direction[d]!=null)&&(u[d]=!0),u),{}),i=Ok({values:e.direction,base:o}),a=Ok({values:e.spacing,base:o});typeof i=="object"&&Object.keys(i).forEach((u,d,f)=>{if(!i[u]){const g=d>0?i[f[d-1]]:"column";i[u]=g}}),n=ei(n,hl({theme:t},a,(u,d)=>e.useFlexGap?{gap:ch(r,u)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${VW(d?i[d]:e.direction)}`]:ch(r,u)}}))}return n=aV(t.breakpoints,n),n};function qW(e={}){const{createStyledComponent:t=HW,useThemeProps:n=UW,componentName:r="MuiStack"}=e,o=()=>st({root:["root"]},u=>kt(r,u),{}),i=t(WW);return b.forwardRef(function(u,d){const f=n(u),m=ER(f),{component:g="div",direction:w="column",spacing:C=0,divider:S,children:E,className:T,useFlexGap:I=!1,...k}=m,R={direction:w,spacing:C,useFlexGap:I},P=o();return y.jsx(i,{as:g,ownerState:R,ref:d,className:Ve(P.root,T),...k,children:S?GW(E,S):E})})}function uF(){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:Jv.white,default:Jv.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 YW=uF();function dF(){return{text:{primary:Jv.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:Jv.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 B4=dF();function H4(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=hu(e.main,o):t==="dark"&&(e.dark=pu(e.main,i)))}function KW(e="light"){return e==="dark"?{main:bg[200],light:bg[50],dark:bg[400]}:{main:bg[700],light:bg[400],dark:bg[800]}}function XW(e="light"){return e==="dark"?{main:gg[200],light:gg[50],dark:gg[400]}:{main:gg[500],light:gg[300],dark:gg[700]}}function ZW(e="light"){return e==="dark"?{main:mg[500],light:mg[300],dark:mg[700]}:{main:mg[700],light:mg[400],dark:mg[800]}}function QW(e="light"){return e==="dark"?{main:yg[400],light:yg[300],dark:yg[700]}:{main:yg[700],light:yg[500],dark:yg[900]}}function JW(e="light"){return e==="dark"?{main:vg[400],light:vg[300],dark:vg[700]}:{main:vg[800],light:vg[500],dark:vg[900]}}function eq(e="light"){return e==="dark"?{main:Zy[400],light:Zy[300],dark:Zy[700]}:{main:"#ed6c02",light:Zy[500],dark:Zy[900]}}function RR(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...o}=e,i=e.primary||KW(t),a=e.secondary||XW(t),l=e.error||ZW(t),u=e.info||QW(t),d=e.success||JW(t),f=e.warning||eq(t);function m(S){return hW(S,B4.text.primary)>=n?B4.text.primary:YW.text.primary}const g=({color:S,name:E,mainShade:T=500,lightShade:I=300,darkShade:k=700})=>{if(S={...S},!S.main&&S[T]&&(S.main=S[T]),!S.hasOwnProperty("main"))throw new Error(fu(11,E?` (${E})`:"",T));if(typeof S.main!="string")throw new Error(fu(12,E?` (${E})`:"",JSON.stringify(S.main)));return H4(S,"light",I,r),H4(S,"dark",k,r),S.contrastText||(S.contrastText=m(S.main)),S};let w;return t==="light"?w=uF():t==="dark"&&(w=dF()),ei({common:{...Jv},mode:t,primary:g({color:i,name:"primary"}),secondary:g({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:l,name:"error"}),warning:g({color:f,name:"warning"}),info:g({color:u,name:"info"}),success:g({color:d,name:"success"}),grey:VU,contrastThreshold:n,getContrastText:m,augmentColor:g,tonalOffset:r,...w},o)}function tq(e){const t={};return Object.entries(e).forEach(r=>{const[o,i]=r;typeof i=="object"&&(t[o]=`${i.fontStyle?`${i.fontStyle} `:""}${i.fontVariant?`${i.fontVariant} `:""}${i.fontWeight?`${i.fontWeight} `:""}${i.fontStretch?`${i.fontStretch} `:""}${i.fontSize||""}${i.lineHeight?`/${i.lineHeight} `:""}${i.fontFamily||""}`)}),t}function nq(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function rq(e){return Math.round(e*1e5)/1e5}const U4={textTransform:"uppercase"},G4='"Roboto", "Helvetica", "Arial", sans-serif';function fF(e,t){const{fontFamily:n=G4,fontSize:r=14,fontWeightLight:o=300,fontWeightRegular:i=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f,...m}=typeof t=="function"?t(e):t,g=r/14,w=f||(E=>`${E/u*g}rem`),C=(E,T,I,k,R)=>({fontFamily:n,fontWeight:E,fontSize:w(T),lineHeight:I,...n===G4?{letterSpacing:`${rq(k/T)}em`}:{},...R,...d}),S={h1:C(o,96,1.167,-1.5),h2:C(o,60,1.2,-.5),h3:C(i,48,1.167,0),h4:C(i,34,1.235,.25),h5:C(i,24,1.334,0),h6:C(a,20,1.6,.15),subtitle1:C(i,16,1.75,.15),subtitle2:C(a,14,1.57,.1),body1:C(i,16,1.5,.15),body2:C(i,14,1.43,.15),button:C(a,14,1.75,.4,U4),caption:C(i,12,1.66,.4),overline:C(i,12,2.66,1,U4),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ei({htmlFontSize:u,pxToRem:w,fontFamily:n,fontSize:r,fontWeightLight:o,fontWeightRegular:i,fontWeightMedium:a,fontWeightBold:l,...S},m,{clone:!1})}const oq=.2,iq=.14,aq=.12;function no(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oq})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iq})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${aq})`].join(",")}const sq=["none",no(0,2,1,-1,0,1,1,0,0,1,3,0),no(0,3,1,-2,0,2,2,0,0,1,5,0),no(0,3,3,-2,0,3,4,0,0,1,8,0),no(0,2,4,-1,0,4,5,0,0,1,10,0),no(0,3,5,-1,0,5,8,0,0,1,14,0),no(0,3,5,-1,0,6,10,0,0,1,18,0),no(0,4,5,-2,0,7,10,1,0,2,16,1),no(0,5,5,-3,0,8,10,1,0,3,14,2),no(0,5,6,-3,0,9,12,1,0,3,16,2),no(0,6,6,-3,0,10,14,1,0,4,18,3),no(0,6,7,-4,0,11,15,1,0,4,20,3),no(0,7,8,-4,0,12,17,2,0,5,22,4),no(0,7,8,-4,0,13,19,2,0,5,24,4),no(0,7,9,-4,0,14,21,2,0,5,26,4),no(0,8,9,-5,0,15,22,2,0,6,28,5),no(0,8,10,-5,0,16,24,2,0,6,30,5),no(0,8,11,-5,0,17,26,2,0,6,32,5),no(0,9,11,-5,0,18,28,2,0,7,34,6),no(0,9,12,-6,0,19,29,2,0,7,36,6),no(0,10,13,-6,0,20,31,3,0,8,38,7),no(0,10,13,-6,0,21,33,3,0,8,40,7),no(0,10,14,-6,0,22,35,3,0,8,42,7),no(0,11,14,-7,0,23,36,3,0,9,44,8),no(0,11,15,-7,0,24,38,3,0,9,46,8)],lq={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)"},pF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function V4(e){return`${Math.round(e)}ms`}function cq(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function uq(e){const t={...lq,...e.easing},n={...pF,...e.duration};return{getAutoHeightDuration:cq,create:(o=["all"],i={})=>{const{duration:a=n.standard,easing:l=t.easeInOut,delay:u=0,...d}=i;return(Array.isArray(o)?o:[o]).map(f=>`${f} ${typeof a=="string"?a:V4(a)} ${l} ${typeof u=="string"?u:V4(u)}`).join(",")},...e,easing:t,duration:n}}const dq={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function fq(e){return lc(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function hF(e={}){const t={...e};function n(r){const o=Object.entries(r);for(let i=0;i<o.length;i++){const[a,l]=o[i];!fq(l)||a.startsWith("unstable_")?delete r[a]:lc(l)&&(r[a]={...l},n(r[a]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';

const theme = ${JSON.stringify(t,null,2)};

theme.breakpoints = createBreakpoints(theme.breakpoints || {});
theme.transitions = createTransitions(theme.transitions || {});

export default theme;`}function wI(e={},...t){const{breakpoints:n,mixins:r={},spacing:o,palette:i={},transitions:a={},typography:l={},shape:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(fu(20));const f=RR(i),m=$x(e);let g=ei(m,{mixins:nq(m.breakpoints,r),palette:f,shadows:sq.slice(),typography:fF(f,l),transitions:uq(a),zIndex:{...dq}});return g=ei(g,d),g=t.reduce((w,C)=>ei(w,C),g),g.unstable_sxConfig={...Lx,...d==null?void 0:d.unstable_sxConfig},g.unstable_sx=function(C){return Gd({sx:C,theme:this})},g.toRuntimeSource=hF,g}function CI(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 pq=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=CI(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function mF(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function gF(e){return e==="dark"?pq:[]}function hq(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...o}=e,i=RR(t);return{palette:i,opacity:{...mF(i.mode),...n},overlays:r||gF(i.mode),...o}}function mq(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 gq=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],bq=e=>(t,n)=>{const r=e.rootSelector||":root",o=e.colorSchemeSelector;let i=o;if(o==="class"&&(i=".%s"),o==="data"&&(i="[data-%s]"),o!=null&&o.startsWith("data-")&&!o.includes("%s")&&(i=`[${o}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const a={};return gq(e.cssVarPrefix).forEach(l=>{a[l]=n[l],delete n[l]}),i==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:a}}:i?{[i.replace("%s",t)]:a,[`${r}, ${i.replace("%s",t)}`]:n}:{[r]:{...n,...a}}}if(i&&i!=="media")return`${r}, ${i.replace("%s",String(t))}`}else if(t){if(i==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(i)return i.replace("%s",String(t))}return r};function yq(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function et(e,t,n){!e[t]&&n&&(e[t]=n)}function Iv(e){return typeof e!="string"||!e.startsWith("hsl")?e:rF(e)}function Qc(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Pv(Iv(e[t])))}function vq(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const tc=e=>{try{return e()}catch{}},xq=(e="mui")=>RW(e);function Lk(e,t,n,r){if(!t)return;t=t===!0?{}:t;const o=r==="dark"?"dark":"light";if(!n){e[r]=hq({...t,palette:{mode:o,...t==null?void 0:t.palette}});return}const{palette:i,...a}=wI({...n,palette:{mode:o,...t==null?void 0:t.palette}});return e[r]={...t,palette:i,opacity:{...mF(o),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||gF(o)},a}function wq(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:o=!1,cssVarPrefix:i="mui",shouldSkipGeneratingVar:a=mq,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...d}=e,f=Object.keys(n)[0],m=r||(n.light&&f!=="light"?"light":f),g=xq(i),{[m]:w,light:C,dark:S,...E}=n,T={...E};let I=w;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(I=!0),!I)throw new Error(fu(21,m));const k=Lk(T,I,d,m);C&&!T.light&&Lk(T,C,void 0,"light"),S&&!T.dark&&Lk(T,S,void 0,"dark");let R={defaultColorScheme:m,...k,cssVarPrefix:i,colorSchemeSelector:l,rootSelector:u,getCssVar:g,colorSchemes:T,font:{...tq(k.typography),...k.font},spacing:vq(d.spacing)};Object.keys(R.colorSchemes).forEach(D=>{const _=R.colorSchemes[D].palette,$=B=>{const V=B.split("-"),q=V[1],G=V[2];return g(B,_[q][G])};if(_.mode==="light"&&(et(_.common,"background","#fff"),et(_.common,"onBackground","#000")),_.mode==="dark"&&(et(_.common,"background","#000"),et(_.common,"onBackground","#fff")),yq(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){et(_.Alert,"errorColor",_r(_.error.light,.6)),et(_.Alert,"infoColor",_r(_.info.light,.6)),et(_.Alert,"successColor",_r(_.success.light,.6)),et(_.Alert,"warningColor",_r(_.warning.light,.6)),et(_.Alert,"errorFilledBg",$("palette-error-main")),et(_.Alert,"infoFilledBg",$("palette-info-main")),et(_.Alert,"successFilledBg",$("palette-success-main")),et(_.Alert,"warningFilledBg",$("palette-warning-main")),et(_.Alert,"errorFilledColor",tc(()=>_.getContrastText(_.error.main))),et(_.Alert,"infoFilledColor",tc(()=>_.getContrastText(_.info.main))),et(_.Alert,"successFilledColor",tc(()=>_.getContrastText(_.success.main))),et(_.Alert,"warningFilledColor",tc(()=>_.getContrastText(_.warning.main))),et(_.Alert,"errorStandardBg",Dr(_.error.light,.9)),et(_.Alert,"infoStandardBg",Dr(_.info.light,.9)),et(_.Alert,"successStandardBg",Dr(_.success.light,.9)),et(_.Alert,"warningStandardBg",Dr(_.warning.light,.9)),et(_.Alert,"errorIconColor",$("palette-error-main")),et(_.Alert,"infoIconColor",$("palette-info-main")),et(_.Alert,"successIconColor",$("palette-success-main")),et(_.Alert,"warningIconColor",$("palette-warning-main")),et(_.AppBar,"defaultBg",$("palette-grey-100")),et(_.Avatar,"defaultBg",$("palette-grey-400")),et(_.Button,"inheritContainedBg",$("palette-grey-300")),et(_.Button,"inheritContainedHoverBg",$("palette-grey-A100")),et(_.Chip,"defaultBorder",$("palette-grey-400")),et(_.Chip,"defaultAvatarColor",$("palette-grey-700")),et(_.Chip,"defaultIconColor",$("palette-grey-700")),et(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),et(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),et(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),et(_.LinearProgress,"primaryBg",Dr(_.primary.main,.62)),et(_.LinearProgress,"secondaryBg",Dr(_.secondary.main,.62)),et(_.LinearProgress,"errorBg",Dr(_.error.main,.62)),et(_.LinearProgress,"infoBg",Dr(_.info.main,.62)),et(_.LinearProgress,"successBg",Dr(_.success.main,.62)),et(_.LinearProgress,"warningBg",Dr(_.warning.main,.62)),et(_.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.11)`),et(_.Slider,"primaryTrack",Dr(_.primary.main,.62)),et(_.Slider,"secondaryTrack",Dr(_.secondary.main,.62)),et(_.Slider,"errorTrack",Dr(_.error.main,.62)),et(_.Slider,"infoTrack",Dr(_.info.main,.62)),et(_.Slider,"successTrack",Dr(_.success.main,.62)),et(_.Slider,"warningTrack",Dr(_.warning.main,.62));const B=qC(_.background.default,.8);et(_.SnackbarContent,"bg",B),et(_.SnackbarContent,"color",tc(()=>_.getContrastText(B))),et(_.SpeedDialAction,"fabHoverBg",qC(_.background.paper,.15)),et(_.StepConnector,"border",$("palette-grey-400")),et(_.StepContent,"border",$("palette-grey-400")),et(_.Switch,"defaultColor",$("palette-common-white")),et(_.Switch,"defaultDisabledColor",$("palette-grey-100")),et(_.Switch,"primaryDisabledColor",Dr(_.primary.main,.62)),et(_.Switch,"secondaryDisabledColor",Dr(_.secondary.main,.62)),et(_.Switch,"errorDisabledColor",Dr(_.error.main,.62)),et(_.Switch,"infoDisabledColor",Dr(_.info.main,.62)),et(_.Switch,"successDisabledColor",Dr(_.success.main,.62)),et(_.Switch,"warningDisabledColor",Dr(_.warning.main,.62)),et(_.TableCell,"border",Dr(WC(_.divider,1),.88)),et(_.Tooltip,"bg",WC(_.grey[700],.92))}if(_.mode==="dark"){et(_.Alert,"errorColor",Dr(_.error.light,.6)),et(_.Alert,"infoColor",Dr(_.info.light,.6)),et(_.Alert,"successColor",Dr(_.success.light,.6)),et(_.Alert,"warningColor",Dr(_.warning.light,.6)),et(_.Alert,"errorFilledBg",$("palette-error-dark")),et(_.Alert,"infoFilledBg",$("palette-info-dark")),et(_.Alert,"successFilledBg",$("palette-success-dark")),et(_.Alert,"warningFilledBg",$("palette-warning-dark")),et(_.Alert,"errorFilledColor",tc(()=>_.getContrastText(_.error.dark))),et(_.Alert,"infoFilledColor",tc(()=>_.getContrastText(_.info.dark))),et(_.Alert,"successFilledColor",tc(()=>_.getContrastText(_.success.dark))),et(_.Alert,"warningFilledColor",tc(()=>_.getContrastText(_.warning.dark))),et(_.Alert,"errorStandardBg",_r(_.error.light,.9)),et(_.Alert,"infoStandardBg",_r(_.info.light,.9)),et(_.Alert,"successStandardBg",_r(_.success.light,.9)),et(_.Alert,"warningStandardBg",_r(_.warning.light,.9)),et(_.Alert,"errorIconColor",$("palette-error-main")),et(_.Alert,"infoIconColor",$("palette-info-main")),et(_.Alert,"successIconColor",$("palette-success-main")),et(_.Alert,"warningIconColor",$("palette-warning-main")),et(_.AppBar,"defaultBg",$("palette-grey-900")),et(_.AppBar,"darkBg",$("palette-background-paper")),et(_.AppBar,"darkColor",$("palette-text-primary")),et(_.Avatar,"defaultBg",$("palette-grey-600")),et(_.Button,"inheritContainedBg",$("palette-grey-800")),et(_.Button,"inheritContainedHoverBg",$("palette-grey-700")),et(_.Chip,"defaultBorder",$("palette-grey-700")),et(_.Chip,"defaultAvatarColor",$("palette-grey-300")),et(_.Chip,"defaultIconColor",$("palette-grey-300")),et(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),et(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),et(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),et(_.LinearProgress,"primaryBg",_r(_.primary.main,.5)),et(_.LinearProgress,"secondaryBg",_r(_.secondary.main,.5)),et(_.LinearProgress,"errorBg",_r(_.error.main,.5)),et(_.LinearProgress,"infoBg",_r(_.info.main,.5)),et(_.LinearProgress,"successBg",_r(_.success.main,.5)),et(_.LinearProgress,"warningBg",_r(_.warning.main,.5)),et(_.Skeleton,"bg",`rgba(${$("palette-text-primaryChannel")} / 0.13)`),et(_.Slider,"primaryTrack",_r(_.primary.main,.5)),et(_.Slider,"secondaryTrack",_r(_.secondary.main,.5)),et(_.Slider,"errorTrack",_r(_.error.main,.5)),et(_.Slider,"infoTrack",_r(_.info.main,.5)),et(_.Slider,"successTrack",_r(_.success.main,.5)),et(_.Slider,"warningTrack",_r(_.warning.main,.5));const B=qC(_.background.default,.98);et(_.SnackbarContent,"bg",B),et(_.SnackbarContent,"color",tc(()=>_.getContrastText(B))),et(_.SpeedDialAction,"fabHoverBg",qC(_.background.paper,.15)),et(_.StepConnector,"border",$("palette-grey-600")),et(_.StepContent,"border",$("palette-grey-600")),et(_.Switch,"defaultColor",$("palette-grey-300")),et(_.Switch,"defaultDisabledColor",$("palette-grey-600")),et(_.Switch,"primaryDisabledColor",_r(_.primary.main,.55)),et(_.Switch,"secondaryDisabledColor",_r(_.secondary.main,.55)),et(_.Switch,"errorDisabledColor",_r(_.error.main,.55)),et(_.Switch,"infoDisabledColor",_r(_.info.main,.55)),et(_.Switch,"successDisabledColor",_r(_.success.main,.55)),et(_.Switch,"warningDisabledColor",_r(_.warning.main,.55)),et(_.TableCell,"border",_r(WC(_.divider,1),.68)),et(_.Tooltip,"bg",WC(_.grey[700],.92))}Qc(_.background,"default"),Qc(_.background,"paper"),Qc(_.common,"background"),Qc(_.common,"onBackground"),Qc(_,"divider"),Object.keys(_).forEach(B=>{const V=_[B];B!=="tonalOffset"&&V&&typeof V=="object"&&(V.main&&et(_[B],"mainChannel",Pv(Iv(V.main))),V.light&&et(_[B],"lightChannel",Pv(Iv(V.light))),V.dark&&et(_[B],"darkChannel",Pv(Iv(V.dark))),V.contrastText&&et(_[B],"contrastTextChannel",Pv(Iv(V.contrastText))),B==="text"&&(Qc(_[B],"primary"),Qc(_[B],"secondary")),B==="action"&&(V.active&&Qc(_[B],"active"),V.selected&&Qc(_[B],"selected")))})}),R=t.reduce((D,_)=>ei(D,_),R);const P={prefix:i,disableCssColorScheme:o,shouldSkipGeneratingVar:a,getSelector:bq(R)},{vars:O,generateThemeVars:j,generateStyleSheets:F}=DW(R,P);return R.vars=O,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([D,_])=>{R[D]=_}),R.generateThemeVars=j,R.generateStyleSheets=F,R.generateSpacing=function(){return K6(d.spacing,jE(this))},R.getColorSchemeSelector=LW(l),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=a,R.unstable_sxConfig={...Lx,...d==null?void 0:d.unstable_sxConfig},R.unstable_sx=function(_){return Gd({sx:_,theme:this})},R.toRuntimeSource=hF,R}function W4(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:RR({...n===!0?{}:n.palette,mode:t})})}function jx(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:o=n?void 0:{light:!0},defaultColorScheme:i=n==null?void 0:n.mode,...a}=e,l=i||"light",u=o==null?void 0:o[l],d={...o,...n?{[l]:{...typeof u!="boolean"&&u,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return wI(e,...t);let f=n;"palette"in e||d[l]&&(d[l]!==!0?f=d[l].palette:l==="dark"&&(f={mode:"dark"}));const m=wI({...e,palette:f},...t);return m.defaultColorScheme=l,m.colorSchemes=d,m.palette.mode==="light"&&(m.colorSchemes.light={...d.light!==!0&&d.light,palette:m.palette},W4(m,"dark",d.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...d.dark!==!0&&d.dark,palette:m.palette},W4(m,"light",d.light)),m}return!n&&!("light"in d)&&l==="light"&&(d.light=!0),wq({...a,colorSchemes:d,defaultColorScheme:l,...typeof r!="boolean"&&r},...t)}function Cq(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Sq(e){return parseFloat(e)}const VE=jx();function bo(){const e=UE(VE);return e[Ss]||e}function vc({props:e,name:t}){return MR({props:e,name:t,defaultTheme:VE,themeId:Ss})}function bF(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Li=e=>bF(e)&&e!=="classes",Te=eF({themeId:Ss,defaultTheme:VE,rootShouldForwardProp:Li});function Eq({theme:e,...t}){const n=Ss in e?e[Ss]:void 0;return y.jsx(sF,{...t,themeId:n?Ss:void 0,theme:n||e})}const iu={attribute:"data-mui-color-scheme",colorSchemeStorageKey:"mui-color-scheme",defaultLightColorScheme:"light",defaultDarkColorScheme:"dark",modeStorageKey:"mui-mode"};function Tq(e){const{defaultMode:t="system",defaultLightColorScheme:n=iu.defaultLightColorScheme,defaultDarkColorScheme:r=iu.defaultDarkColorScheme,modeStorageKey:o=iu.modeStorageKey,colorSchemeStorageKey:i=iu.colorSchemeStorageKey,attribute:a=iu.attribute,colorSchemeNode:l="document.documentElement",nonce:u}=e;return y.jsx(lF,{defaultMode:t,defaultLightColorScheme:n,defaultDarkColorScheme:r,modeStorageKey:o,colorSchemeStorageKey:i,attribute:a,colorSchemeNode:l,nonce:u})}const{CssVarsProvider:Mq,useColorScheme:kq}=AW({themeId:Ss,theme:()=>jx({cssVariables:!0}),colorSchemeStorageKey:iu.colorSchemeStorageKey,modeStorageKey:iu.modeStorageKey,defaultColorScheme:{light:iu.defaultLightColorScheme,dark:iu.defaultDarkColorScheme},resolveTheme:e=>{const t={...e,typography:fF(e.palette,e.typography)};return t.unstable_sx=function(r){return Gd({sx:r,theme:this})},t}}),Pq=Mq;function OR({theme:e,...t}){const n=b.useMemo(()=>{if(typeof e=="function")return e;const r=Ss in e?e[Ss]:e;return"colorSchemes"in r?null:"vars"in r?e:{...e,vars:null}},[e]);return n?y.jsx(Eq,{theme:n,...t}):y.jsx(Pq,{theme:e,...t})}function q4(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function Iq(e){return y.jsx(XV,{...e,defaultTheme:VE,themeId:Ss})}function _R(e){return function(n){return y.jsx(Iq,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Aq(){return ER}const Rt=SW;function zt(e){return CW(e)}function Rq(e){return kt("MuiSvgIcon",e)}Pt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Oq=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Be(t)}`,`fontSize${Be(n)}`]};return st(o,Rq,r)},_q=Te("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Be(n.color)}`],t[`fontSize${Be(n.fontSize)}`]]}})(Rt(({theme:e})=>{var t,n,r,o,i,a,l,u,d,f,m,g,w,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(o=(t=e.transitions)==null?void 0:t.create)==null?void 0:o.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:S=>!S.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((a=(i=e.typography)==null?void 0:i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((u=(l=e.typography)==null?void 0:l.pxToRem)==null?void 0:u.call(l,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((f=(d=e.typography)==null?void 0:d.pxToRem)==null?void 0:f.call(d,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,S])=>S&&S.main).map(([S])=>{var E,T;return{props:{color:S},style:{color:(T=(E=(e.vars??e).palette)==null?void 0:E[S])==null?void 0:T.main}}}),{props:{color:"action"},style:{color:(g=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:g.active}},{props:{color:"disabled"},style:{color:(C=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),SI=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSvgIcon"}),{children:o,className:i,color:a="inherit",component:l="svg",fontSize:u="medium",htmlColor:d,inheritViewBox:f=!1,titleAccess:m,viewBox:g="0 0 24 24",...w}=r,C=b.isValidElement(o)&&o.type==="svg",S={...r,color:a,component:l,fontSize:u,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:g,hasSvgAsChild:C},E={};f||(E.viewBox=g);const T=Oq(S);return y.jsxs(_q,{as:l,className:Ve(T.root,i),focusable:"false",color:d,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...E,...w,...C&&o.props,ownerState:S,children:[C?o.props.children:o,m?y.jsx("title",{children:m}):null]})});SI.muiName="SvgIcon";function Kr(e,t){function n(r,o){return y.jsx(SI,{"data-testid":void 0,ref:o,...r,children:e})}return n.muiName=SI.muiName,b.memo(b.forwardRef(n))}function Sh(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function io(e){return e&&e.ownerDocument||document}function Ma(e){return io(e).defaultView||window}function EI(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Y4=0;function Dq(e){const[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(Y4+=1,n(`mui-${Y4}`))},[t]),r}const Lq={...i2},K4=Lq.useId;function Mn(e){if(K4!==void 0){const t=K4();return e??t}return Dq(e)}function Qp(e){const{controlled:t,default:n,name:r,state:o="value"}=e,{current:i}=b.useRef(t!==void 0),[a,l]=b.useState(n),u=i?t:a,d=b.useCallback(f=>{i||l(f)},[]);return[u,d]}function Vt(e){const t=b.useRef(e);return kn(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}function Dn(...e){const t=b.useRef(void 0),n=b.useCallback(r=>{const o=e.map(i=>{if(i==null)return null;if(typeof i=="function"){const a=i,l=a(r);return typeof l=="function"?l:()=>{a(null)}}return i.current=r,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function $q(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function DR(e,t){if(!e)return t;function n(a,l){const u={};return Object.keys(l).forEach(d=>{$q(d,l[d])&&typeof a[d]=="function"&&(u[d]=(...f)=>{a[d](...f),l[d](...f)})}),u}if(typeof e=="function"||typeof t=="function")return a=>{const l=typeof t=="function"?t(a):t,u=typeof e=="function"?e({...a,...l}):e,d=Ve(a==null?void 0:a.className,l==null?void 0:l.className,u==null?void 0:u.className),f=n(u,l);return{...l,...u,...f,...!!d&&{className:d},...(l==null?void 0:l.style)&&(u==null?void 0:u.style)&&{style:{...l.style,...u.style}},...(l==null?void 0:l.sx)&&(u==null?void 0:u.sx)&&{sx:[...Array.isArray(l.sx)?l.sx:[l.sx],...Array.isArray(u.sx)?u.sx:[u.sx]]}}};const r=t,o=n(e,r),i=Ve(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...o,...!!i&&{className:i},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function tt(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function TI(e,t){return TI=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},TI(e,t)}function yF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,TI(e,t)}var $k={exports:{}},Ai={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var X4;function jq(){if(X4)return Ai;X4=1;var e=F0();function t(u){var d="https://react.dev/errors/"+u;if(1<arguments.length){d+="?args[]="+encodeURIComponent(arguments[1]);for(var f=2;f<arguments.length;f++)d+="&args[]="+encodeURIComponent(arguments[f])}return"Minified React error #"+u+"; visit "+d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(u,d,f){var m=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:m==null?null:""+m,children:u,containerInfo:d,implementation:f}}var a=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(u,d){if(u==="font")return"";if(typeof d=="string")return d==="use-credentials"?d:""}return Ai.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Ai.createPortal=function(u,d){var f=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!d||d.nodeType!==1&&d.nodeType!==9&&d.nodeType!==11)throw Error(t(299));return i(u,d,null,f)},Ai.flushSync=function(u){var d=a.T,f=r.p;try{if(a.T=null,r.p=2,u)return u()}finally{a.T=d,r.p=f,r.d.f()}},Ai.preconnect=function(u,d){typeof u=="string"&&(d?(d=d.crossOrigin,d=typeof d=="string"?d==="use-credentials"?d:"":void 0):d=null,r.d.C(u,d))},Ai.prefetchDNS=function(u){typeof u=="string"&&r.d.D(u)},Ai.preinit=function(u,d){if(typeof u=="string"&&d&&typeof d.as=="string"){var f=d.as,m=l(f,d.crossOrigin),g=typeof d.integrity=="string"?d.integrity:void 0,w=typeof d.fetchPriority=="string"?d.fetchPriority:void 0;f==="style"?r.d.S(u,typeof d.precedence=="string"?d.precedence:void 0,{crossOrigin:m,integrity:g,fetchPriority:w}):f==="script"&&r.d.X(u,{crossOrigin:m,integrity:g,fetchPriority:w,nonce:typeof d.nonce=="string"?d.nonce:void 0})}},Ai.preinitModule=function(u,d){if(typeof u=="string")if(typeof d=="object"&&d!==null){if(d.as==null||d.as==="script"){var f=l(d.as,d.crossOrigin);r.d.M(u,{crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0})}}else d==null&&r.d.M(u)},Ai.preload=function(u,d){if(typeof u=="string"&&typeof d=="object"&&d!==null&&typeof d.as=="string"){var f=d.as,m=l(f,d.crossOrigin);r.d.L(u,f,{crossOrigin:m,integrity:typeof d.integrity=="string"?d.integrity:void 0,nonce:typeof d.nonce=="string"?d.nonce:void 0,type:typeof d.type=="string"?d.type:void 0,fetchPriority:typeof d.fetchPriority=="string"?d.fetchPriority:void 0,referrerPolicy:typeof d.referrerPolicy=="string"?d.referrerPolicy:void 0,imageSrcSet:typeof d.imageSrcSet=="string"?d.imageSrcSet:void 0,imageSizes:typeof d.imageSizes=="string"?d.imageSizes:void 0,media:typeof d.media=="string"?d.media:void 0})}},Ai.preloadModule=function(u,d){if(typeof u=="string")if(d){var f=l(d.as,d.crossOrigin);r.d.m(u,{as:typeof d.as=="string"&&d.as!=="script"?d.as:void 0,crossOrigin:f,integrity:typeof d.integrity=="string"?d.integrity:void 0})}else r.d.m(u)},Ai.requestFormReset=function(u){r.d.r(u)},Ai.unstable_batchedUpdates=function(u,d){return u(d)},Ai.useFormState=function(u,d,f){return a.H.useFormState(u,d,f)},Ai.useFormStatus=function(){return a.H.useHostTransitionStatus()},Ai.version="19.1.0",Ai}var Z4;function vF(){if(Z4)return $k.exports;Z4=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),$k.exports=jq(),$k.exports}var WE=vF();const YC=wu(WE),Q4={disabled:!1},l2=un.createContext(null);var Fq=function(t){return t.scrollTop},Av="unmounted",Rp="exited",Op="entering",Ng="entered",MI="exiting",Os=function(e){yF(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,l=a&&!a.isMounting?r.enter:r.appear,u;return i.appearStatus=null,r.in?l?(u=Rp,i.appearStatus=Op):u=Ng:r.unmountOnExit||r.mountOnEnter?u=Av:u=Rp,i.state={status:u},i.nextCallback=null,i}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===Av?{status:Rp}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==Op&&a!==Ng&&(i=Op):(a===Op||a===Ng)&&(i=MI)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i,a,l;return i=a=l=o,o!=null&&typeof o!="number"&&(i=o.exit,a=o.enter,l=o.appear!==void 0?o.appear:a),{exit:i,enter:a,appear:l}},n.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===Op){if(this.props.unmountOnExit||this.props.mountOnEnter){var a=this.props.nodeRef?this.props.nodeRef.current:YC.findDOMNode(this);a&&Fq(a)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Rp&&this.setState({status:Av})},n.performEnter=function(o){var i=this,a=this.props.enter,l=this.context?this.context.isMounting:o,u=this.props.nodeRef?[l]:[YC.findDOMNode(this),l],d=u[0],f=u[1],m=this.getTimeouts(),g=l?m.appear:m.enter;if(!o&&!a||Q4.disabled){this.safeSetState({status:Ng},function(){i.props.onEntered(d)});return}this.props.onEnter(d,f),this.safeSetState({status:Op},function(){i.props.onEntering(d,f),i.onTransitionEnd(g,function(){i.safeSetState({status:Ng},function(){i.props.onEntered(d,f)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts(),l=this.props.nodeRef?void 0:YC.findDOMNode(this);if(!i||Q4.disabled){this.safeSetState({status:Rp},function(){o.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:MI},function(){o.props.onExiting(l),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Rp},function(){o.props.onExited(l)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(l){a&&(a=!1,i.nextCallback=null,o(l))},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=this.props.nodeRef?this.props.nodeRef.current:YC.findDOMNode(this),l=o==null&&!this.props.addEndListener;if(!a||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var u=this.props.nodeRef?[this.nextCallback]:[a,this.nextCallback],d=u[0],f=u[1];this.props.addEndListener(d,f)}o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===Av)return null;var i=this.props,a=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var l=tt(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return un.createElement(l2.Provider,{value:null},typeof a=="function"?a(o,l):un.cloneElement(un.Children.only(a),l))},t}(un.Component);Os.contextType=l2;Os.propTypes={};function xg(){}Os.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xg,onEntering:xg,onEntered:xg,onExit:xg,onExiting:xg,onExited:xg};Os.UNMOUNTED=Av;Os.EXITED=Rp;Os.ENTERING=Op;Os.ENTERED=Ng;Os.EXITING=MI;function Nq(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LR(e,t){var n=function(i){return t&&b.isValidElement(i)?t(i):i},r=Object.create(null);return e&&b.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function zq(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,l={};for(var u in t){if(r[u])for(a=0;a<r[u].length;a++){var d=r[u][a];l[r[u][a]]=n(d)}l[u]=n(u)}for(a=0;a<o.length;a++)l[o[a]]=n(o[a]);return l}function Up(e,t,n){return n[t]!=null?n[t]:e.props[t]}function Bq(e,t){return LR(e.children,function(n){return b.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Up(n,"appear",e),enter:Up(n,"enter",e),exit:Up(n,"exit",e)})})}function Hq(e,t,n){var r=LR(e.children),o=zq(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(b.isValidElement(a)){var l=i in t,u=i in r,d=t[i],f=b.isValidElement(d)&&!d.props.in;u&&(!l||f)?o[i]=b.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:Up(a,"exit",e),enter:Up(a,"enter",e)}):!u&&l&&!f?o[i]=b.cloneElement(a,{in:!1}):u&&l&&b.isValidElement(d)&&(o[i]=b.cloneElement(a,{onExited:n.bind(null,a),in:d.props.in,exit:Up(a,"exit",e),enter:Up(a,"enter",e)}))}}),o}var Uq=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Gq={component:"div",childFactory:function(t){return t}},$R=function(e){yF(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Nq(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}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(o,i){var a=i.children,l=i.handleExited,u=i.firstRender;return{children:u?Bq(o,l):Hq(o,a,l),firstRender:!1}},n.handleExited=function(o,i){var a=LR(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(l){var u=z({},l.children);return delete u[o.key],{children:u}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,l=tt(o,["component","childFactory"]),u=this.state.contextValue,d=Uq(this.state.children).map(a);return delete l.appear,delete l.enter,delete l.exit,i===null?un.createElement(l2.Provider,{value:u},d):un.createElement(l2.Provider,{value:u},un.createElement(i,l,d))},t}(un.Component);$R.propTypes={};$R.defaultProps=Gq;const J4={};function _s(e,t){const n=b.useRef(J4);return n.current===J4&&(n.current=e(t)),n}const Vq=[];function jR(e){b.useEffect(e,Vq)}class qE{constructor(){Tp(this,"currentId",null);Tp(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Tp(this,"disposeEffect",()=>this.clear)}static create(){return new qE}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ya(){const e=_s(qE.create).current;return jR(e.disposeEffect),e}const FR=e=>e.scrollTop;function qd(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:o.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:o.transitionDelay}}function Wq(e){return kt("MuiCollapse",e)}Pt("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const qq=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return st(r,Wq,n)},Yq=Te("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(Rt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),Kq=Te("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),Xq=Te("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),c2=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiCollapse"}),{addEndListener:o,children:i,className:a,collapsedSize:l="0px",component:u,easing:d,in:f,onEnter:m,onEntered:g,onEntering:w,onExit:C,onExited:S,onExiting:E,orientation:T="vertical",style:I,timeout:k=pF.standard,TransitionComponent:R=Os,...P}=r,O={...r,orientation:T,collapsedSize:l},j=qq(O),F=bo(),D=ya(),_=b.useRef(null),$=b.useRef(),B=typeof l=="number"?`${l}px`:l,V=T==="horizontal",q=V?"width":"height",G=b.useRef(null),N=Dn(n,G),H=re=>ke=>{if(re){const Ce=G.current;ke===void 0?re(Ce):re(Ce,ke)}},Y=()=>_.current?_.current[V?"clientWidth":"clientHeight"]:0,Q=H((re,ke)=>{_.current&&V&&(_.current.style.position="absolute"),re.style[q]=B,m&&m(re,ke)}),W=H((re,ke)=>{const Ce=Y();_.current&&V&&(_.current.style.position="");const{duration:ie,easing:le}=qd({style:I,timeout:k,easing:d},{mode:"enter"});if(k==="auto"){const ve=F.transitions.getAutoHeightDuration(Ce);re.style.transitionDuration=`${ve}ms`,$.current=ve}else re.style.transitionDuration=typeof ie=="string"?ie:`${ie}ms`;re.style[q]=`${Ce}px`,re.style.transitionTimingFunction=le,w&&w(re,ke)}),K=H((re,ke)=>{re.style[q]="auto",g&&g(re,ke)}),J=H(re=>{re.style[q]=`${Y()}px`,C&&C(re)}),ae=H(S),ce=H(re=>{const ke=Y(),{duration:Ce,easing:ie}=qd({style:I,timeout:k,easing:d},{mode:"exit"});if(k==="auto"){const le=F.transitions.getAutoHeightDuration(ke);re.style.transitionDuration=`${le}ms`,$.current=le}else re.style.transitionDuration=typeof Ce=="string"?Ce:`${Ce}ms`;re.style[q]=B,re.style.transitionTimingFunction=ie,E&&E(re)}),de=re=>{k==="auto"&&D.start($.current||0,re),o&&o(G.current,re)};return y.jsx(R,{in:f,onEnter:Q,onEntered:K,onEntering:W,onExit:J,onExited:ae,onExiting:ce,addEndListener:de,nodeRef:G,timeout:k==="auto"?null:k,...P,children:(re,{ownerState:ke,...Ce})=>y.jsx(Yq,{as:u,className:Ve(j.root,a,{entered:j.entered,exited:!f&&B==="0px"&&j.hidden}[re]),style:{[V?"minWidth":"minHeight"]:B,...I},ref:N,ownerState:{...O,state:re},...Ce,children:y.jsx(Kq,{ownerState:{...O,state:re},className:j.wrapper,ref:_,children:y.jsx(Xq,{ownerState:{...O,state:re},className:j.wrapperInner,children:i})})})})});c2&&(c2.muiSupportAuto=!0);function Zq(e){return kt("MuiPaper",e)}Pt("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 Qq=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return st(i,Zq,o)},Jq=Te("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}`]]}})(Rt(({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)"}}]}))),bl=b.forwardRef(function(t,n){var w;const r=zt({props:t,name:"MuiPaper"}),o=bo(),{className:i,component:a="div",elevation:l=1,square:u=!1,variant:d="elevation",...f}=r,m={...r,component:a,elevation:l,square:u,variant:d},g=Qq(m);return y.jsx(Jq,{as:a,ownerState:m,className:Ve(g.root,i),ref:n,...f,style:{...d==="elevation"&&{"--Paper-shadow":(o.vars||o).shadows[l],...o.vars&&{"--Paper-overlay":(w=o.vars.overlays)==null?void 0:w[l]},...!o.vars&&o.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${cn("#fff",CI(l))}, ${cn("#fff",CI(l))})`}},...f.style}})});function eY(e){return typeof e=="string"}function xF(e,t,n){return e===void 0||eY(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function wF(e,t,n){return typeof e=="function"?e(t,n):e}function u2(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function eD(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 CF(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const w=Ve(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),C={...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},S={...n,...o,...r};return w.length>0&&(S.className=w),Object.keys(C).length>0&&(S.style=C),{props:S,internalRef:void 0}}const a=u2({...o,...r}),l=eD(r),u=eD(o),d=t(a),f=Ve(d==null?void 0:d.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m={...d==null?void 0:d.style,...n==null?void 0:n.style,...o==null?void 0:o.style,...r==null?void 0:r.style},g={...d,...n,...u,...l};return f.length>0&&(g.className=f),Object.keys(m).length>0&&(g.style=m),{props:g,internalRef:d.ref}}function Ot(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...u}=t,{component:d,slots:f={[e]:void 0},slotProps:m={[e]:void 0},...g}=i,w=f[e]||r,C=wF(m[e],o),{props:{component:S,...E},internalRef:T}=CF({className:n,...u,externalForwardedProps:e==="root"?g:void 0,externalSlotProps:C}),I=Dn(T,C==null?void 0:C.ref,t.ref),k=e==="root"?S||d:S,R=xF(w,{...e==="root"&&!d&&!f[e]&&a,...e!=="root"&&!f[e]&&a,...E,...k&&!l&&{as:k},...k&&l&&{component:k},ref:I},o);return[w,R]}function u0(e){try{return e.matches(":focus-visible")}catch{}return!1}class d2{constructor(){Tp(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 d2}static use(){const t=_s(d2.create).current,[n,r]=b.useState(!1);return t.shouldMount=n,t.setShouldMount=r,b.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=nY(),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 tY(){return d2.use()}function nY(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function rY(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:l,onExited:u,timeout:d}=e,[f,m]=b.useState(!1),g=Ve(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},C=Ve(n.child,f&&n.childLeaving,r&&n.childPulsate);return!l&&!f&&m(!0),b.useEffect(()=>{if(!l&&u!=null){const S=setTimeout(u,d);return()=>{clearTimeout(S)}}},[u,l,d]),y.jsx("span",{className:g,style:w,children:y.jsx("span",{className:C})})}const bs=Pt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),kI=550,oY=80,iY=As`
  0% {
    transform: scale(0);
    opacity: 0.1;
  }

  100% {
    transform: scale(1);
    opacity: 0.3;
  }
`,aY=As`
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
`,sY=As`
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.92);
  }

  100% {
    transform: scale(1);
  }
`,lY=Te("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),cY=Te(rY,{name:"MuiTouchRipple",slot:"Ripple"})`
  opacity: 0;
  position: absolute;

  &.${bs.rippleVisible} {
    opacity: 0.3;
    transform: scale(1);
    animation-name: ${iY};
    animation-duration: ${kI}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  &.${bs.ripplePulsate} {
    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
  }

  & .${bs.child} {
    opacity: 1;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: currentColor;
  }

  & .${bs.childLeaving} {
    opacity: 0;
    animation-name: ${aY};
    animation-duration: ${kI}ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
  }

  & .${bs.childPulsate} {
    position: absolute;
    /* @noflip */
    left: 0px;
    top: 0;
    animation-name: ${sY};
    animation-duration: 2500ms;
    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
    animation-iteration-count: infinite;
    animation-delay: 200ms;
  }
`,uY=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a,...l}=r,[u,d]=b.useState([]),f=b.useRef(0),m=b.useRef(null);b.useEffect(()=>{m.current&&(m.current(),m.current=null)},[u]);const g=b.useRef(!1),w=ya(),C=b.useRef(null),S=b.useRef(null),E=b.useCallback(R=>{const{pulsate:P,rippleX:O,rippleY:j,rippleSize:F,cb:D}=R;d(_=>[..._,y.jsx(cY,{classes:{ripple:Ve(i.ripple,bs.ripple),rippleVisible:Ve(i.rippleVisible,bs.rippleVisible),ripplePulsate:Ve(i.ripplePulsate,bs.ripplePulsate),child:Ve(i.child,bs.child),childLeaving:Ve(i.childLeaving,bs.childLeaving),childPulsate:Ve(i.childPulsate,bs.childPulsate)},timeout:kI,pulsate:P,rippleX:O,rippleY:j,rippleSize:F},f.current)]),f.current+=1,m.current=D},[i]),T=b.useCallback((R={},P={},O=()=>{})=>{const{pulsate:j=!1,center:F=o||P.pulsate,fakeElement:D=!1}=P;if((R==null?void 0:R.type)==="mousedown"&&g.current){g.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(g.current=!0);const _=D?null:S.current,$=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let B,V,q;if(F||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)B=Math.round($.width/2),V=Math.round($.height/2);else{const{clientX:G,clientY:N}=R.touches&&R.touches.length>0?R.touches[0]:R;B=Math.round(G-$.left),V=Math.round(N-$.top)}if(F)q=Math.sqrt((2*$.width**2+$.height**2)/3),q%2===0&&(q+=1);else{const G=Math.max(Math.abs((_?_.clientWidth:0)-B),B)*2+2,N=Math.max(Math.abs((_?_.clientHeight:0)-V),V)*2+2;q=Math.sqrt(G**2+N**2)}R!=null&&R.touches?C.current===null&&(C.current=()=>{E({pulsate:j,rippleX:B,rippleY:V,rippleSize:q,cb:O})},w.start(oY,()=>{C.current&&(C.current(),C.current=null)})):E({pulsate:j,rippleX:B,rippleY:V,rippleSize:q,cb:O})},[o,E,w]),I=b.useCallback(()=>{T({},{pulsate:!0})},[T]),k=b.useCallback((R,P)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&C.current){C.current(),C.current=null,w.start(0,()=>{k(R,P)});return}C.current=null,d(O=>O.length>0?O.slice(1):O),m.current=P},[w]);return b.useImperativeHandle(n,()=>({pulsate:I,start:T,stop:k}),[I,T,k]),y.jsx(lY,{className:Ve(bs.root,i.root,a),ref:S,...l,children:y.jsx($R,{component:null,exit:!0,children:u})})});function dY(e){return kt("MuiButtonBase",e)}const fY=Pt("MuiButtonBase",["root","disabled","focusVisible"]),pY=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=st({root:["root",t&&"disabled",n&&"focusVisible"]},dY,o);return n&&r&&(a.root+=` ${r}`),a},hY=Te("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"},[`&.${fY.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),gc=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:l,component:u="button",disabled:d=!1,disableRipple:f=!1,disableTouchRipple:m=!1,focusRipple:g=!1,focusVisibleClassName:w,LinkComponent:C="a",onBlur:S,onClick:E,onContextMenu:T,onDragLeave:I,onFocus:k,onFocusVisible:R,onKeyDown:P,onKeyUp:O,onMouseDown:j,onMouseLeave:F,onMouseUp:D,onTouchEnd:_,onTouchMove:$,onTouchStart:B,tabIndex:V=0,TouchRippleProps:q,touchRippleRef:G,type:N,...H}=r,Y=b.useRef(null),Q=tY(),W=Dn(Q.ref,G),[K,J]=b.useState(!1);d&&K&&J(!1),b.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),Y.current.focus()}}),[]);const ae=Q.shouldMount&&!f&&!d;b.useEffect(()=>{K&&g&&!f&&Q.pulsate()},[f,g,K,Q]);const ce=Jc(Q,"start",j,m),de=Jc(Q,"stop",T,m),re=Jc(Q,"stop",I,m),ke=Jc(Q,"stop",D,m),Ce=Jc(Q,"stop",se=>{K&&se.preventDefault(),F&&F(se)},m),ie=Jc(Q,"start",B,m),le=Jc(Q,"stop",_,m),ve=Jc(Q,"stop",$,m),ue=Jc(Q,"stop",se=>{u0(se.target)||J(!1),S&&S(se)},!1),me=Vt(se=>{Y.current||(Y.current=se.currentTarget),u0(se.target)&&(J(!0),R&&R(se)),k&&k(se)}),be=()=>{const se=Y.current;return u&&u!=="button"&&!(se.tagName==="A"&&se.href)},Fe=Vt(se=>{g&&!se.repeat&&K&&se.key===" "&&Q.stop(se,()=>{Q.start(se)}),se.target===se.currentTarget&&be()&&se.key===" "&&se.preventDefault(),P&&P(se),se.target===se.currentTarget&&be()&&se.key==="Enter"&&!d&&(se.preventDefault(),E&&E(se))}),Ze=Vt(se=>{g&&se.key===" "&&K&&!se.defaultPrevented&&Q.stop(se,()=>{Q.pulsate(se)}),O&&O(se),E&&se.target===se.currentTarget&&be()&&se.key===" "&&!se.defaultPrevented&&E(se)});let We=u;We==="button"&&(H.href||H.to)&&(We=C);const _e={};We==="button"?(_e.type=N===void 0?"button":N,_e.disabled=d):(!H.href&&!H.to&&(_e.role="button"),d&&(_e["aria-disabled"]=d));const ft=Dn(n,Y),nt={...r,centerRipple:i,component:u,disabled:d,disableRipple:f,disableTouchRipple:m,focusRipple:g,tabIndex:V,focusVisible:K},dt=pY(nt);return y.jsxs(hY,{as:We,className:Ve(dt.root,l),ownerState:nt,onBlur:ue,onClick:E,onContextMenu:de,onFocus:me,onKeyDown:Fe,onKeyUp:Ze,onMouseDown:ce,onMouseLeave:Ce,onMouseUp:ke,onDragLeave:re,onTouchEnd:le,onTouchMove:ve,onTouchStart:ie,ref:ft,tabIndex:d?-1:V,type:N,..._e,...H,children:[a,ae?y.jsx(uY,{ref:W,center:i,...q}):null]})});function Jc(e,t,n,r=!1){return Vt(o=>(n&&n(o),r||e[t](o),!0))}function mY(e){return typeof e.main=="string"}function gY(e,t=[]){if(!mY(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Lr(e=[]){return([,t])=>t&&gY(t,e)}function bY(e){return kt("MuiAlert",e)}const tD=Pt("MuiAlert",["root","action","icon","message","filled","colorSuccess","colorInfo","colorWarning","colorError","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function yY(e){return kt("MuiCircularProgress",e)}Pt("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ed=44,PI=As`
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
`,II=As`
  0% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: 0;
  }

  50% {
    stroke-dasharray: 100px, 200px;
    stroke-dashoffset: -15px;
  }

  100% {
    stroke-dasharray: 1px, 200px;
    stroke-dashoffset: -126px;
  }
`,vY=typeof PI!="string"?ef`
        animation: ${PI} 1.4s linear infinite;
      `:null,xY=typeof II!="string"?ef`
        animation: ${II} 1.4s ease-in-out infinite;
      `:null,wY=e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e,i={root:["root",n,`color${Be(r)}`],svg:["svg"],circle:["circle",`circle${Be(n)}`,o&&"circleDisableShrink"]};return st(i,yY,t)},CY=Te("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Be(n.color)}`]]}})(Rt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:vY||{animation:`${PI} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),SY=Te("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),EY=Te("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Be(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Rt(({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:xY||{animation:`${II} 1.4s ease-in-out infinite`}}]}))),YE=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiCircularProgress"}),{className:o,color:i="primary",disableShrink:a=!1,size:l=40,style:u,thickness:d=3.6,value:f=0,variant:m="indeterminate",...g}=r,w={...r,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:m},C=wY(w),S={},E={},T={};if(m==="determinate"){const I=2*Math.PI*((Ed-d)/2);S.strokeDasharray=I.toFixed(3),T["aria-valuenow"]=Math.round(f),S.strokeDashoffset=`${((100-f)/100*I).toFixed(3)}px`,E.transform="rotate(-90deg)"}return y.jsx(CY,{className:Ve(C.root,o),style:{width:l,height:l,...E,...u},ownerState:w,ref:n,role:"progressbar",...T,...g,children:y.jsx(SY,{className:C.svg,ownerState:w,viewBox:`${Ed/2} ${Ed/2} ${Ed} ${Ed}`,children:y.jsx(EY,{className:C.circle,style:S,ownerState:w,cx:Ed,cy:Ed,r:(Ed-d)/2,fill:"none",strokeWidth:d})})})});function TY(e){return kt("MuiIconButton",e)}const AI=Pt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),MY=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e,l={root:["root",a&&"loading",n&&"disabled",r!=="default"&&`color${Be(r)}`,o&&`edge${Be(o)}`,`size${Be(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return st(l,TY,t)},kY=Te(gc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Be(n.color)}`],n.edge&&t[`edge${Be(n.edge)}`],t[`size${Be(n.size)}`]]}})(Rt(({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})`:cn(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}}]})),Rt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn((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)}}],[`&.${AI.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${AI.loading}`]:{color:"transparent"}}))),PY=Te("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"}}]})),Ur=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiIconButton"}),{edge:o=!1,children:i,className:a,color:l="default",disabled:u=!1,disableFocusRipple:d=!1,size:f="medium",id:m,loading:g=null,loadingIndicator:w,...C}=r,S=Mn(m),E=w??y.jsx(YE,{"aria-labelledby":S,color:"inherit",size:16}),T={...r,edge:o,color:l,disabled:u,disableFocusRipple:d,loading:g,loadingIndicator:E,size:f},I=MY(T);return y.jsxs(kY,{id:g?S:m,className:Ve(I.root,a),centerRipple:!0,focusRipple:!d,disabled:u||g,ref:n,...C,ownerState:T,children:[typeof g=="boolean"&&y.jsx("span",{className:I.loadingWrapper,style:{display:"contents"},children:y.jsx(PY,{className:I.loadingIndicator,ownerState:T,children:g&&E})}),i]})}),IY=Kr(y.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"})),AY=Kr(y.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"})),RY=Kr(y.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),OY=Kr(y.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"})),SF=Kr(y.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"})),_Y=e=>{const{variant:t,color:n,severity:r,classes:o}=e,i={root:["root",`color${Be(n||r)}`,`${t}${Be(n||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return st(i,bY,o)},DY=Te(bl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Be(n.color||n.severity)}`]]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?pu:hu,n=e.palette.mode==="light"?hu:pu;return{...e.typography.body2,backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(Lr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"standard"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${tD.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Lr(["light"])).map(([r])=>({props:{colorSeverity:r,variant:"outlined"},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),border:`1px solid ${(e.vars||e).palette[r].light}`,[`& .${tD.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(Lr(["dark"])).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:{fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${r}FilledColor`],backgroundColor:e.vars.palette.Alert[`${r}FilledBg`]}:{backgroundColor:e.palette.mode==="dark"?e.palette[r].dark:e.palette[r].main,color:e.palette.getContrastText(e.palette[r].main)}}}))]}})),LY=Te("div",{name:"MuiAlert",slot:"Icon"})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),$Y=Te("div",{name:"MuiAlert",slot:"Message"})({padding:"8px 0",minWidth:0,overflow:"auto"}),jY=Te("div",{name:"MuiAlert",slot:"Action"})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),nD={success:y.jsx(IY,{fontSize:"inherit"}),warning:y.jsx(AY,{fontSize:"inherit"}),error:y.jsx(RY,{fontSize:"inherit"}),info:y.jsx(OY,{fontSize:"inherit"})},FY=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiAlert"}),{action:o,children:i,className:a,closeText:l="Close",color:u,components:d={},componentsProps:f={},icon:m,iconMapping:g=nD,onClose:w,role:C="alert",severity:S="success",slotProps:E={},slots:T={},variant:I="standard",...k}=r,R={...r,color:u,severity:S,variant:I,colorSeverity:u||S},P=_Y(R),O={slots:{closeButton:d.CloseButton,closeIcon:d.CloseIcon,...T},slotProps:{...f,...E}},[j,F]=Ot("root",{ref:n,shouldForwardComponentProp:!0,className:Ve(P.root,a),elementType:DY,externalForwardedProps:{...O,...k},ownerState:R,additionalProps:{role:C,elevation:0}}),[D,_]=Ot("icon",{className:P.icon,elementType:LY,externalForwardedProps:O,ownerState:R}),[$,B]=Ot("message",{className:P.message,elementType:$Y,externalForwardedProps:O,ownerState:R}),[V,q]=Ot("action",{className:P.action,elementType:jY,externalForwardedProps:O,ownerState:R}),[G,N]=Ot("closeButton",{elementType:Ur,externalForwardedProps:O,ownerState:R}),[H,Y]=Ot("closeIcon",{elementType:SF,externalForwardedProps:O,ownerState:R});return y.jsxs(j,{...F,children:[m!==!1?y.jsx(D,{..._,children:m||g[S]||nD[S]}):null,y.jsx($,{...B,children:i}),o!=null?y.jsx(V,{...q,children:o}):null,o==null&&w?y.jsx(V,{...q,children:y.jsx(G,{size:"small","aria-label":l,title:l,color:"inherit",onClick:w,...N,children:y.jsx(H,{fontSize:"small",...Y})})}):null]})});function NY(e){return kt("MuiTypography",e)}const rD=Pt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),zY={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},BY=Aq(),HY=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,l={root:["root",i,e.align!=="inherit"&&`align${Be(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return st(l,NY,a)},UY=Te("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${Be(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Rt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Lr()).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${Be(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}}]}})),oD={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Jt=b.forwardRef(function(t,n){const{color:r,...o}=zt({props:t,name:"MuiTypography"}),i=!zY[r],a=BY({...o,...i&&{color:r}}),{align:l="inherit",className:u,component:d,gutterBottom:f=!1,noWrap:m=!1,paragraph:g=!1,variant:w="body1",variantMapping:C=oD,...S}=a,E={...a,align:l,color:r,className:u,component:d,gutterBottom:f,noWrap:m,paragraph:g,variant:w,variantMapping:C},T=d||(g?"p":C[w]||oD[w])||"span",I=HY(E);return y.jsx(UY,{as:T,ref:n,className:Ve(I.root,u),...S,ownerState:E,style:{...l!=="inherit"&&{"--Typography-textAlign":l},...S.style}})});function GY(e){return kt("MuiAppBar",e)}Pt("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const VY=e=>{const{color:t,position:n,classes:r}=e,o={root:["root",`color${Be(t)}`,`position${Be(n)}`]};return st(o,GY,r)},iD=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,WY=Te(bl,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Be(n.position)}`],t[`color${Be(n.color)}`]]}})(Rt(({theme:e})=>({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0,variants:[{props:{position:"fixed"},style:{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}}},{props:{position:"absolute"},style:{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"sticky"},style:{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0}},{props:{position:"static"},style:{position:"static"}},{props:{position:"relative"},style:{position:"relative"}},{props:{color:"inherit"},style:{"--AppBar-color":"inherit"}},{props:{color:"default"},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles("dark",{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(Lr(["contrastText"])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText}})),{props:t=>t.enableColorOnDark===!0&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)"}},{props:t=>t.enableColorOnDark===!1&&!["inherit","transparent"].includes(t.color),style:{backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundColor:e.vars?iD(e.vars.palette.AppBar.darkBg,"var(--AppBar-background)"):null,color:e.vars?iD(e.vars.palette.AppBar.darkColor,"var(--AppBar-color)"):null})}},{props:{color:"transparent"},style:{"--AppBar-background":"transparent","--AppBar-color":"inherit",backgroundColor:"var(--AppBar-background)",color:"var(--AppBar-color)",...e.applyStyles("dark",{backgroundImage:"none"})}}]}))),qY=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiAppBar"}),{className:o,color:i="primary",enableColorOnDark:a=!1,position:l="fixed",...u}=r,d={...r,color:i,position:l,enableColorOnDark:a},f=VY(d);return y.jsx(WY,{square:!0,component:"header",ownerState:d,elevation:4,className:Ve(f.root,o,l==="fixed"&&"mui-fixed"),ref:n,...u})}),NR=e=>{const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current};function aD(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function YY(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:o="any",stringify:i,trim:a=!1}=e;return(l,{inputValue:u,getOptionLabel:d})=>{let f=a?u.trim():u;n&&(f=f.toLowerCase()),t&&(f=aD(f));const m=f?l.filter(g=>{let w=(i||d)(g);return n&&(w=w.toLowerCase()),t&&(w=aD(w)),o==="start"?w.startsWith(f):w.includes(f)}):l;return typeof r=="number"?m.slice(0,r):m}}const KY=YY(),XY=5,ZY=e=>{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},QY=[];function sD(e,t,n,r){if(t||e==null||r)return"";const o=n(e);return typeof o=="string"?o:""}function JY(e){const{unstable_isActiveElementInListbox:t=ZY,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:o=!1,autoSelect:i=!1,blurOnSelect:a=!1,clearOnBlur:l=!e.freeSolo,clearOnEscape:u=!1,componentName:d="useAutocomplete",defaultValue:f=e.multiple?QY:null,disableClearable:m=!1,disableCloseOnSelect:g=!1,disabled:w,disabledItemsFocusable:C=!1,disableListWrap:S=!1,filterOptions:E=KY,filterSelectedOptions:T=!1,freeSolo:I=!1,getOptionDisabled:k,getOptionKey:R,getOptionLabel:P=Ne=>Ne.label??Ne,groupBy:O,handleHomeEndKeys:j=!e.freeSolo,id:F,includeInputInList:D=!1,inputValue:_,isOptionEqualToValue:$=(Ne,je)=>Ne===je,multiple:B=!1,onChange:V,onClose:q,onHighlightChange:G,onInputChange:N,onOpen:H,open:Y,openOnFocus:Q=!1,options:W,readOnly:K=!1,renderValue:J,selectOnFocus:ae=!e.freeSolo,value:ce}=e,de=Mn(F);let re=P;re=Ne=>{const je=P(Ne);return typeof je!="string"?String(je):je};const ke=b.useRef(!1),Ce=b.useRef(!0),ie=b.useRef(null),le=b.useRef(null),[ve,ue]=b.useState(null),[me,be]=b.useState(-1),Fe=o?0:-1,Ze=b.useRef(Fe),We=b.useRef(sD(f??ce,B,re)).current,[_e,ft]=Qp({controlled:ce,default:f,name:d}),[nt,dt]=Qp({controlled:_,default:We,name:d,state:"inputValue"}),[se,De]=b.useState(!1),ye=b.useCallback((Ne,je,Tt)=>{if(!(B?_e.length<je.length:je!==null)&&!l)return;const Ft=sD(je,B,re,J);nt!==Ft&&(dt(Ft),N&&N(Ne,Ft,Tt))},[re,nt,B,N,dt,l,_e,J]),[Pe,qe]=Qp({controlled:Y,default:!1,name:d,state:"open"}),[Ke,it]=b.useState(!0),ot=!B&&_e!=null&&nt===re(_e),gt=Pe&&!K,Ue=gt?E(W.filter(Ne=>!(T&&(B?_e:[_e]).some(je=>je!==null&&$(Ne,je)))),{inputValue:ot&&Ke?"":nt,getOptionLabel:re}):[],jt=NR({filteredOptions:Ue,value:_e,inputValue:nt});b.useEffect(()=>{const Ne=_e!==jt.value;se&&!Ne||I&&!Ne||ye(null,_e,"reset")},[_e,ye,se,jt.value,I]);const Ht=Pe&&Ue.length>0&&!K,pt=Vt(Ne=>{if(Ne===-1)ie.current.focus();else{const je=J?"data-item-index":"data-tag-index";ve.querySelector(`[${je}="${Ne}"]`).focus()}});b.useEffect(()=>{B&&me>_e.length-1&&(be(-1),pt(-1))},[_e,B,me,pt]);function ht(Ne,je){if(!le.current||Ne<0||Ne>=Ue.length)return-1;let Tt=Ne;for(;;){const Zt=le.current.querySelector(`[data-option-index="${Tt}"]`),Ft=C?!1:!Zt||Zt.disabled||Zt.getAttribute("aria-disabled")==="true";if(Zt&&Zt.hasAttribute("tabindex")&&!Ft)return Tt;if(je==="next"?Tt=(Tt+1)%Ue.length:Tt=(Tt-1+Ue.length)%Ue.length,Tt===Ne)return-1}}const Ct=Vt(({event:Ne,index:je,reason:Tt})=>{if(Ze.current=je,je===-1?ie.current.removeAttribute("aria-activedescendant"):ie.current.setAttribute("aria-activedescendant",`${de}-option-${je}`),G&&["mouse","keyboard","touch"].includes(Tt)&&G(Ne,je===-1?null:Ue[je],Tt),!le.current)return;const Zt=le.current.querySelector(`[role="option"].${n}-focused`);Zt&&(Zt.classList.remove(`${n}-focused`),Zt.classList.remove(`${n}-focusVisible`));let Ft=le.current;if(le.current.getAttribute("role")!=="listbox"&&(Ft=le.current.parentElement.querySelector('[role="listbox"]')),!Ft)return;if(je===-1){Ft.scrollTop=0;return}const vn=le.current.querySelector(`[data-option-index="${je}"]`);if(vn&&(vn.classList.add(`${n}-focused`),Tt==="keyboard"&&vn.classList.add(`${n}-focusVisible`),Ft.scrollHeight>Ft.clientHeight&&Tt!=="mouse"&&Tt!=="touch")){const ir=vn,$r=Ft.clientHeight+Ft.scrollTop,Ds=ir.offsetTop+ir.offsetHeight;Ds>$r?Ft.scrollTop=Ds-Ft.clientHeight:ir.offsetTop-ir.offsetHeight*(O?1.3:0)<Ft.scrollTop&&(Ft.scrollTop=ir.offsetTop-ir.offsetHeight*(O?1.3:0))}}),Nt=Vt(({event:Ne,diff:je,direction:Tt="next",reason:Zt})=>{if(!gt)return;const vn=ht((()=>{const ir=Ue.length-1;if(je==="reset")return Fe;if(je==="start")return 0;if(je==="end")return ir;const $r=Ze.current+je;return $r<0?$r===-1&&D?-1:S&&Ze.current!==-1||Math.abs(je)>1?0:ir:$r>ir?$r===ir+1&&D?-1:S||Math.abs(je)>1?ir:0:$r})(),Tt);if(Ct({index:vn,reason:Zt,event:Ne}),r&&je!=="reset")if(vn===-1)ie.current.value=nt;else{const ir=re(Ue[vn]);ie.current.value=ir,ir.toLowerCase().indexOf(nt.toLowerCase())===0&&nt.length>0&&ie.current.setSelectionRange(nt.length,ir.length)}}),Yn=()=>{const Ne=(je,Tt)=>{const Zt=je?re(je):"",Ft=Tt?re(Tt):"";return Zt===Ft};if(Ze.current!==-1&&jt.filteredOptions&&jt.filteredOptions.length!==Ue.length&&jt.inputValue===nt&&(B?_e.length===jt.value.length&&jt.value.every((je,Tt)=>re(_e[Tt])===re(je)):Ne(jt.value,_e))){const je=jt.filteredOptions[Ze.current];if(je)return Ue.findIndex(Tt=>re(Tt)===re(je))}return-1},pr=b.useCallback(()=>{if(!gt)return;const Ne=Yn();if(Ne!==-1){Ze.current=Ne;return}const je=B?_e[0]:_e;if(Ue.length===0||je==null){Nt({diff:"reset"});return}if(le.current){if(je!=null){const Tt=Ue[Ze.current];if(B&&Tt&&_e.findIndex(Ft=>$(Tt,Ft))!==-1)return;const Zt=Ue.findIndex(Ft=>$(Ft,je));Zt===-1?Nt({diff:"reset"}):Ct({index:Zt});return}if(Ze.current>=Ue.length-1){Ct({index:Ue.length-1});return}Ct({index:Ze.current})}},[Ue.length,B?!1:_e,T,Nt,Ct,gt,nt,B]),Go=Vt(Ne=>{EI(le,Ne),Ne&&pr()});b.useEffect(()=>{pr()},[pr]);const Jn=Ne=>{Pe||(qe(!0),it(!0),H&&H(Ne))},Er=(Ne,je)=>{Pe&&(qe(!1),q&&q(Ne,je))},Xr=(Ne,je,Tt,Zt)=>{if(B){if(_e.length===je.length&&_e.every((Ft,vn)=>Ft===je[vn]))return}else if(_e===je)return;V&&V(Ne,je,Tt,Zt),ft(je)},Vr=b.useRef(!1),Ar=(Ne,je,Tt="selectOption",Zt="options")=>{let Ft=Tt,vn=je;if(B){vn=Array.isArray(_e)?_e.slice():[];const ir=vn.findIndex($r=>$(je,$r));ir===-1?vn.push(je):Zt!=="freeSolo"&&(vn.splice(ir,1),Ft="removeOption")}ye(Ne,vn,Ft),Xr(Ne,vn,Ft,{option:je}),!g&&(!Ne||!Ne.ctrlKey&&!Ne.metaKey)&&Er(Ne,Ft),(a===!0||a==="touch"&&Vr.current||a==="mouse"&&!Vr.current)&&ie.current.blur()};function $o(Ne,je){if(Ne===-1)return-1;let Tt=Ne;for(;;){if(je==="next"&&Tt===_e.length||je==="previous"&&Tt===-1)return-1;const Zt=J?"data-item-index":"data-tag-index",Ft=ve.querySelector(`[${Zt}="${Tt}"]`);if(!Ft||!Ft.hasAttribute("tabindex")||Ft.disabled||Ft.getAttribute("aria-disabled")==="true")Tt+=je==="next"?1:-1;else return Tt}}const Kt=(Ne,je)=>{if(!B)return;nt===""&&Er(Ne,"toggleInput");let Tt=me;me===-1?nt===""&&je==="previous"&&(Tt=_e.length-1):(Tt+=je==="next"?1:-1,Tt<0&&(Tt=0),Tt===_e.length&&(Tt=-1)),Tt=$o(Tt,je),be(Tt),pt(Tt)},he=Ne=>{ke.current=!0,dt(""),N&&N(Ne,"","clear"),Xr(Ne,B?[]:null,"clear")},fe=Ne=>je=>{if(Ne.onKeyDown&&Ne.onKeyDown(je),!je.defaultMuiPrevented&&(me!==-1&&!["ArrowLeft","ArrowRight"].includes(je.key)&&(be(-1),pt(-1)),je.which!==229))switch(je.key){case"Home":gt&&j&&(je.preventDefault(),Nt({diff:"start",direction:"next",reason:"keyboard",event:je}));break;case"End":gt&&j&&(je.preventDefault(),Nt({diff:"end",direction:"previous",reason:"keyboard",event:je}));break;case"PageUp":je.preventDefault(),Nt({diff:-5,direction:"previous",reason:"keyboard",event:je}),Jn(je);break;case"PageDown":je.preventDefault(),Nt({diff:XY,direction:"next",reason:"keyboard",event:je}),Jn(je);break;case"ArrowDown":je.preventDefault(),Nt({diff:1,direction:"next",reason:"keyboard",event:je}),Jn(je);break;case"ArrowUp":je.preventDefault(),Nt({diff:-1,direction:"previous",reason:"keyboard",event:je}),Jn(je);break;case"ArrowLeft":!B&&J?pt(0):Kt(je,"previous");break;case"ArrowRight":!B&&J?pt(-1):Kt(je,"next");break;case"Enter":if(Ze.current!==-1&&gt){const Tt=Ue[Ze.current],Zt=k?k(Tt):!1;if(je.preventDefault(),Zt)return;Ar(je,Tt,"selectOption"),r&&ie.current.setSelectionRange(ie.current.value.length,ie.current.value.length)}else I&&nt!==""&&ot===!1&&(B&&je.preventDefault(),Ar(je,nt,"createOption","freeSolo"));break;case"Escape":gt?(je.preventDefault(),je.stopPropagation(),Er(je,"escape")):u&&(nt!==""||B&&_e.length>0||J)&&(je.preventDefault(),je.stopPropagation(),he(je));break;case"Backspace":if(B&&!K&&nt===""&&_e.length>0){const Tt=me===-1?_e.length-1:me,Zt=_e.slice();Zt.splice(Tt,1),Xr(je,Zt,"removeOption",{option:_e[Tt]})}!B&&J&&!K&&(ft(null),pt(-1));break;case"Delete":if(B&&!K&&nt===""&&_e.length>0&&me!==-1){const Tt=me,Zt=_e.slice();Zt.splice(Tt,1),Xr(je,Zt,"removeOption",{option:_e[Tt]})}!B&&J&&!K&&(ft(null),pt(-1));break}},xe=Ne=>{De(!0),Q&&!ke.current&&Jn(Ne)},ze=Ne=>{if(t(le)){ie.current.focus();return}De(!1),Ce.current=!0,ke.current=!1,i&&Ze.current!==-1&&gt?Ar(Ne,Ue[Ze.current],"blur"):i&&I&&nt!==""?Ar(Ne,nt,"blur","freeSolo"):l&&ye(Ne,_e,"blur"),Er(Ne,"blur")},Qe=Ne=>{const je=Ne.target.value;nt!==je&&(dt(je),it(!1),N&&N(Ne,je,"input")),je===""?!m&&!B&&Xr(Ne,null,"clear"):Jn(Ne)},bt=Ne=>{const je=Number(Ne.currentTarget.getAttribute("data-option-index"));Ze.current!==je&&Ct({event:Ne,index:je,reason:"mouse"})},_t=Ne=>{Ct({event:Ne,index:Number(Ne.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Vr.current=!0},St=Ne=>{const je=Number(Ne.currentTarget.getAttribute("data-option-index"));Ar(Ne,Ue[je],"selectOption"),Vr.current=!1},Dt=Ne=>je=>{const Tt=_e.slice();Tt.splice(Ne,1),Xr(je,Tt,"removeOption",{option:_e[Ne]})},Ut=Ne=>{Xr(Ne,null,"removeOption",{option:_e})},Gt=Ne=>{Pe?Er(Ne,"toggleInput"):Jn(Ne)},Et=Ne=>{Ne.currentTarget.contains(Ne.target)&&Ne.target.getAttribute("id")!==de&&Ne.preventDefault()},Lt=Ne=>{Ne.currentTarget.contains(Ne.target)&&(ie.current.focus(),ae&&Ce.current&&ie.current.selectionEnd-ie.current.selectionStart===0&&ie.current.select(),Ce.current=!1)},gn=Ne=>{!w&&(nt===""||!Pe)&&Gt(Ne)};let Kn=I&&nt.length>0;Kn=Kn||(B?_e.length>0:_e!==null);let hr=Ue;return O&&(hr=Ue.reduce((Ne,je,Tt)=>{const Zt=O(je);return Ne.length>0&&Ne[Ne.length-1].group===Zt?Ne[Ne.length-1].options.push(je):Ne.push({key:Tt,index:Tt,group:Zt,options:[je]}),Ne},[])),w&&se&&ze(),{getRootProps:(Ne={})=>({...Ne,onKeyDown:fe(Ne),onMouseDown:Et,onClick:Lt}),getInputLabelProps:()=>({id:`${de}-label`,htmlFor:de}),getInputProps:()=>({id:de,value:nt,onBlur:ze,onFocus:xe,onChange:Qe,onMouseDown:gn,"aria-activedescendant":gt?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ht?`${de}-listbox`:void 0,"aria-expanded":Ht,autoComplete:"off",ref:ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:w}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:he}),getItemProps:({index:Ne=0}={})=>({...B&&{key:Ne},...J?{"data-item-index":Ne}:{"data-tag-index":Ne},tabIndex:-1,...!K&&{onDelete:B?Dt(Ne):Ut}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Gt}),getTagProps:({index:Ne})=>({key:Ne,"data-tag-index":Ne,tabIndex:-1,...!K&&{onDelete:Dt(Ne)}}),getListboxProps:()=>({role:"listbox",id:`${de}-listbox`,"aria-labelledby":`${de}-label`,ref:Go,onMouseDown:Ne=>{Ne.preventDefault()}}),getOptionProps:({index:Ne,option:je})=>{const Tt=(B?_e:[_e]).some(Ft=>Ft!=null&&$(je,Ft)),Zt=k?k(je):!1;return{key:(R==null?void 0:R(je))??re(je),tabIndex:-1,role:"option",id:`${de}-option-${Ne}`,onMouseMove:bt,onClick:St,onTouchStart:_t,"data-option-index":Ne,"aria-disabled":Zt,"aria-selected":Tt}},id:de,inputValue:nt,value:_e,dirty:Kn,expanded:gt&&ve,popupOpen:gt,focused:se||me!==-1,anchorEl:ve,setAnchorEl:ue,focusedItem:me,focusedTag:me,groupedOptions:hr}}var wa="top",Ms="bottom",ks="right",Ca="left",zR="auto",Fx=[wa,Ms,ks,Ca],d0="start",ox="end",eK="clippingParents",EF="viewport",Jy="popper",tK="reference",lD=Fx.reduce(function(e,t){return e.concat([t+"-"+d0,t+"-"+ox])},[]),TF=[].concat(Fx,[zR]).reduce(function(e,t){return e.concat([t,t+"-"+d0,t+"-"+ox])},[]),nK="beforeRead",rK="read",oK="afterRead",iK="beforeMain",aK="main",sK="afterMain",lK="beforeWrite",cK="write",uK="afterWrite",dK=[nK,rK,oK,iK,aK,sK,lK,cK,uK];function bc(e){return e?(e.nodeName||"").toLowerCase():null}function Ka(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function uh(e){var t=Ka(e).Element;return e instanceof t||e instanceof Element}function Es(e){var t=Ka(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function BR(e){if(typeof ShadowRoot>"u")return!1;var t=Ka(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function fK(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Es(i)||!bc(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var l=o[a];l===!1?i.removeAttribute(a):i.setAttribute(a,l===!0?"":l)}))})}function pK(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(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),l=a.reduce(function(u,d){return u[d]="",u},{});!Es(o)||!bc(o)||(Object.assign(o.style,l),Object.keys(i).forEach(function(u){o.removeAttribute(u)}))})}}const hK={name:"applyStyles",enabled:!0,phase:"write",fn:fK,effect:pK,requires:["computeStyles"]};function dc(e){return e.split("-")[0]}var Jp=Math.max,f2=Math.min,f0=Math.round;function RI(){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 MF(){return!/^((?!chrome|android).)*safari/i.test(RI())}function p0(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Es(e)&&(o=e.offsetWidth>0&&f0(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&f0(r.height)/e.offsetHeight||1);var a=uh(e)?Ka(e):window,l=a.visualViewport,u=!MF()&&n,d=(r.left+(u&&l?l.offsetLeft:0))/o,f=(r.top+(u&&l?l.offsetTop:0))/i,m=r.width/o,g=r.height/i;return{width:m,height:g,top:f,right:d+m,bottom:f+g,left:d,x:d,y:f}}function HR(e){var t=p0(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function kF(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&BR(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function mu(e){return Ka(e).getComputedStyle(e)}function mK(e){return["table","td","th"].indexOf(bc(e))>=0}function tf(e){return((uh(e)?e.ownerDocument:e.document)||window.document).documentElement}function KE(e){return bc(e)==="html"?e:e.assignedSlot||e.parentNode||(BR(e)?e.host:null)||tf(e)}function cD(e){return!Es(e)||mu(e).position==="fixed"?null:e.offsetParent}function gK(e){var t=/firefox/i.test(RI()),n=/Trident/i.test(RI());if(n&&Es(e)){var r=mu(e);if(r.position==="fixed")return null}var o=KE(e);for(BR(o)&&(o=o.host);Es(o)&&["html","body"].indexOf(bc(o))<0;){var i=mu(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Nx(e){for(var t=Ka(e),n=cD(e);n&&mK(n)&&mu(n).position==="static";)n=cD(n);return n&&(bc(n)==="html"||bc(n)==="body"&&mu(n).position==="static")?t:n||gK(e)||t}function UR(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Bv(e,t,n){return Jp(e,f2(t,n))}function bK(e,t,n){var r=Bv(e,t,n);return r>n?n:r}function PF(){return{top:0,right:0,bottom:0,left:0}}function IF(e){return Object.assign({},PF(),e)}function AF(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var yK=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,IF(typeof t!="number"?t:AF(t,Fx))};function vK(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=dc(n.placement),u=UR(l),d=[Ca,ks].indexOf(l)>=0,f=d?"height":"width";if(!(!i||!a)){var m=yK(o.padding,n),g=HR(i),w=u==="y"?wa:Ca,C=u==="y"?Ms:ks,S=n.rects.reference[f]+n.rects.reference[u]-a[u]-n.rects.popper[f],E=a[u]-n.rects.reference[u],T=Nx(i),I=T?u==="y"?T.clientHeight||0:T.clientWidth||0:0,k=S/2-E/2,R=m[w],P=I-g[f]-m[C],O=I/2-g[f]/2+k,j=Bv(R,O,P),F=u;n.modifiersData[r]=(t={},t[F]=j,t.centerOffset=j-O,t)}}function xK(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||kF(t.elements.popper,o)&&(t.elements.arrow=o))}const wK={name:"arrow",enabled:!0,phase:"main",fn:vK,effect:xK,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function h0(e){return e.split("-")[1]}var CK={top:"auto",right:"auto",bottom:"auto",left:"auto"};function SK(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:f0(n*o)/o||0,y:f0(r*o)/o||0}}function uD(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,u=e.gpuAcceleration,d=e.adaptive,f=e.roundOffsets,m=e.isFixed,g=a.x,w=g===void 0?0:g,C=a.y,S=C===void 0?0:C,E=typeof f=="function"?f({x:w,y:S}):{x:w,y:S};w=E.x,S=E.y;var T=a.hasOwnProperty("x"),I=a.hasOwnProperty("y"),k=Ca,R=wa,P=window;if(d){var O=Nx(n),j="clientHeight",F="clientWidth";if(O===Ka(n)&&(O=tf(n),mu(O).position!=="static"&&l==="absolute"&&(j="scrollHeight",F="scrollWidth")),O=O,o===wa||(o===Ca||o===ks)&&i===ox){R=Ms;var D=m&&O===P&&P.visualViewport?P.visualViewport.height:O[j];S-=D-r.height,S*=u?1:-1}if(o===Ca||(o===wa||o===Ms)&&i===ox){k=ks;var _=m&&O===P&&P.visualViewport?P.visualViewport.width:O[F];w-=_-r.width,w*=u?1:-1}}var $=Object.assign({position:l},d&&CK),B=f===!0?SK({x:w,y:S},Ka(n)):{x:w,y:S};if(w=B.x,S=B.y,u){var V;return Object.assign({},$,(V={},V[R]=I?"0":"",V[k]=T?"0":"",V.transform=(P.devicePixelRatio||1)<=1?"translate("+w+"px, "+S+"px)":"translate3d("+w+"px, "+S+"px, 0)",V))}return Object.assign({},$,(t={},t[R]=I?S+"px":"",t[k]=T?w+"px":"",t.transform="",t))}function EK(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,l=n.roundOffsets,u=l===void 0?!0:l,d={placement:dc(t.placement),variation:h0(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,uD(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,uD(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const TK={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:EK,data:{}};var KC={passive:!0};function MK(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,l=a===void 0?!0:a,u=Ka(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&d.forEach(function(f){f.addEventListener("scroll",n.update,KC)}),l&&u.addEventListener("resize",n.update,KC),function(){i&&d.forEach(function(f){f.removeEventListener("scroll",n.update,KC)}),l&&u.removeEventListener("resize",n.update,KC)}}const kK={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:MK,data:{}};var PK={left:"right",right:"left",bottom:"top",top:"bottom"};function NS(e){return e.replace(/left|right|bottom|top/g,function(t){return PK[t]})}var IK={start:"end",end:"start"};function dD(e){return e.replace(/start|end/g,function(t){return IK[t]})}function GR(e){var t=Ka(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function VR(e){return p0(tf(e)).left+GR(e).scrollLeft}function AK(e,t){var n=Ka(e),r=tf(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,u=0;if(o){i=o.width,a=o.height;var d=MF();(d||!d&&t==="fixed")&&(l=o.offsetLeft,u=o.offsetTop)}return{width:i,height:a,x:l+VR(e),y:u}}function RK(e){var t,n=tf(e),r=GR(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=Jp(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Jp(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+VR(e),u=-r.scrollTop;return mu(o||n).direction==="rtl"&&(l+=Jp(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:u}}function WR(e){var t=mu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function RF(e){return["html","body","#document"].indexOf(bc(e))>=0?e.ownerDocument.body:Es(e)&&WR(e)?e:RF(KE(e))}function Hv(e,t){var n;t===void 0&&(t=[]);var r=RF(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ka(r),a=o?[i].concat(i.visualViewport||[],WR(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Hv(KE(a)))}function OI(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function OK(e,t){var n=p0(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 fD(e,t,n){return t===EF?OI(AK(e,n)):uh(t)?OK(t,n):OI(RK(tf(e)))}function _K(e){var t=Hv(KE(e)),n=["absolute","fixed"].indexOf(mu(e).position)>=0,r=n&&Es(e)?Nx(e):e;return uh(r)?t.filter(function(o){return uh(o)&&kF(o,r)&&bc(o)!=="body"}):[]}function DK(e,t,n,r){var o=t==="clippingParents"?_K(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(u,d){var f=fD(e,d,r);return u.top=Jp(f.top,u.top),u.right=f2(f.right,u.right),u.bottom=f2(f.bottom,u.bottom),u.left=Jp(f.left,u.left),u},fD(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function OF(e){var t=e.reference,n=e.element,r=e.placement,o=r?dc(r):null,i=r?h0(r):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,u;switch(o){case wa:u={x:a,y:t.y-n.height};break;case Ms:u={x:a,y:t.y+t.height};break;case ks:u={x:t.x+t.width,y:l};break;case Ca:u={x:t.x-n.width,y:l};break;default:u={x:t.x,y:t.y}}var d=o?UR(o):null;if(d!=null){var f=d==="y"?"height":"width";switch(i){case d0:u[d]=u[d]-(t[f]/2-n[f]/2);break;case ox:u[d]=u[d]+(t[f]/2-n[f]/2);break}}return u}function ix(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,l=n.boundary,u=l===void 0?eK:l,d=n.rootBoundary,f=d===void 0?EF:d,m=n.elementContext,g=m===void 0?Jy:m,w=n.altBoundary,C=w===void 0?!1:w,S=n.padding,E=S===void 0?0:S,T=IF(typeof E!="number"?E:AF(E,Fx)),I=g===Jy?tK:Jy,k=e.rects.popper,R=e.elements[C?I:g],P=DK(uh(R)?R:R.contextElement||tf(e.elements.popper),u,f,a),O=p0(e.elements.reference),j=OF({reference:O,element:k,placement:o}),F=OI(Object.assign({},k,j)),D=g===Jy?F:O,_={top:P.top-D.top+T.top,bottom:D.bottom-P.bottom+T.bottom,left:P.left-D.left+T.left,right:D.right-P.right+T.right},$=e.modifiersData.offset;if(g===Jy&&$){var B=$[o];Object.keys(_).forEach(function(V){var q=[ks,Ms].indexOf(V)>=0?1:-1,G=[wa,Ms].indexOf(V)>=0?"y":"x";_[V]+=B[G]*q})}return _}function LK(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,u=n.allowedAutoPlacements,d=u===void 0?TF:u,f=h0(r),m=f?l?lD:lD.filter(function(C){return h0(C)===f}):Fx,g=m.filter(function(C){return d.indexOf(C)>=0});g.length===0&&(g=m);var w=g.reduce(function(C,S){return C[S]=ix(e,{placement:S,boundary:o,rootBoundary:i,padding:a})[dc(S)],C},{});return Object.keys(w).sort(function(C,S){return w[C]-w[S]})}function $K(e){if(dc(e)===zR)return[];var t=NS(e);return[dD(e),t,dD(t)]}function jK(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!0:a,u=n.fallbackPlacements,d=n.padding,f=n.boundary,m=n.rootBoundary,g=n.altBoundary,w=n.flipVariations,C=w===void 0?!0:w,S=n.allowedAutoPlacements,E=t.options.placement,T=dc(E),I=T===E,k=u||(I||!C?[NS(E)]:$K(E)),R=[E].concat(k).reduce(function(ce,de){return ce.concat(dc(de)===zR?LK(t,{placement:de,boundary:f,rootBoundary:m,padding:d,flipVariations:C,allowedAutoPlacements:S}):de)},[]),P=t.rects.reference,O=t.rects.popper,j=new Map,F=!0,D=R[0],_=0;_<R.length;_++){var $=R[_],B=dc($),V=h0($)===d0,q=[wa,Ms].indexOf(B)>=0,G=q?"width":"height",N=ix(t,{placement:$,boundary:f,rootBoundary:m,altBoundary:g,padding:d}),H=q?V?ks:Ca:V?Ms:wa;P[G]>O[G]&&(H=NS(H));var Y=NS(H),Q=[];if(i&&Q.push(N[B]<=0),l&&Q.push(N[H]<=0,N[Y]<=0),Q.every(function(ce){return ce})){D=$,F=!1;break}j.set($,Q)}if(F)for(var W=C?3:1,K=function(de){var re=R.find(function(ke){var Ce=j.get(ke);if(Ce)return Ce.slice(0,de).every(function(ie){return ie})});if(re)return D=re,"break"},J=W;J>0;J--){var ae=K(J);if(ae==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const FK={name:"flip",enabled:!0,phase:"main",fn:jK,requiresIfExists:["offset"],data:{_skip:!1}};function pD(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 hD(e){return[wa,ks,Ms,Ca].some(function(t){return e[t]>=0})}function NK(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ix(t,{elementContext:"reference"}),l=ix(t,{altBoundary:!0}),u=pD(a,r),d=pD(l,o,i),f=hD(u),m=hD(d);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:d,isReferenceHidden:f,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":m})}const zK={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:NK};function BK(e,t,n){var r=dc(e),o=[Ca,wa].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[Ca,ks].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}function HK(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=TF.reduce(function(f,m){return f[m]=BK(m,t.rects,i),f},{}),l=a[t.placement],u=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=d),t.modifiersData[r]=a}const UK={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:HK};function GK(e){var t=e.state,n=e.name;t.modifiersData[n]=OF({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const VK={name:"popperOffsets",enabled:!0,phase:"read",fn:GK,data:{}};function WK(e){return e==="x"?"y":"x"}function qK(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,l=a===void 0?!1:a,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,m=n.padding,g=n.tether,w=g===void 0?!0:g,C=n.tetherOffset,S=C===void 0?0:C,E=ix(t,{boundary:u,rootBoundary:d,padding:m,altBoundary:f}),T=dc(t.placement),I=h0(t.placement),k=!I,R=UR(T),P=WK(R),O=t.modifiersData.popperOffsets,j=t.rects.reference,F=t.rects.popper,D=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,_=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,B={x:0,y:0};if(O){if(i){var V,q=R==="y"?wa:Ca,G=R==="y"?Ms:ks,N=R==="y"?"height":"width",H=O[R],Y=H+E[q],Q=H-E[G],W=w?-F[N]/2:0,K=I===d0?j[N]:F[N],J=I===d0?-F[N]:-j[N],ae=t.elements.arrow,ce=w&&ae?HR(ae):{width:0,height:0},de=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:PF(),re=de[q],ke=de[G],Ce=Bv(0,j[N],ce[N]),ie=k?j[N]/2-W-Ce-re-_.mainAxis:K-Ce-re-_.mainAxis,le=k?-j[N]/2+W+Ce+ke+_.mainAxis:J+Ce+ke+_.mainAxis,ve=t.elements.arrow&&Nx(t.elements.arrow),ue=ve?R==="y"?ve.clientTop||0:ve.clientLeft||0:0,me=(V=$==null?void 0:$[R])!=null?V:0,be=H+ie-me-ue,Fe=H+le-me,Ze=Bv(w?f2(Y,be):Y,H,w?Jp(Q,Fe):Q);O[R]=Ze,B[R]=Ze-H}if(l){var We,_e=R==="x"?wa:Ca,ft=R==="x"?Ms:ks,nt=O[P],dt=P==="y"?"height":"width",se=nt+E[_e],De=nt-E[ft],ye=[wa,Ca].indexOf(T)!==-1,Pe=(We=$==null?void 0:$[P])!=null?We:0,qe=ye?se:nt-j[dt]-F[dt]-Pe+_.altAxis,Ke=ye?nt+j[dt]+F[dt]-Pe-_.altAxis:De,it=w&&ye?bK(qe,nt,Ke):Bv(w?qe:se,nt,w?Ke:De);O[P]=it,B[P]=it-nt}t.modifiersData[r]=B}}const YK={name:"preventOverflow",enabled:!0,phase:"main",fn:qK,requiresIfExists:["offset"]};function KK(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function XK(e){return e===Ka(e)||!Es(e)?GR(e):KK(e)}function ZK(e){var t=e.getBoundingClientRect(),n=f0(t.width)/e.offsetWidth||1,r=f0(t.height)/e.offsetHeight||1;return n!==1||r!==1}function QK(e,t,n){n===void 0&&(n=!1);var r=Es(t),o=Es(t)&&ZK(t),i=tf(t),a=p0(e,o,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&((bc(t)!=="body"||WR(i))&&(l=XK(t)),Es(t)?(u=p0(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):i&&(u.x=VR(i))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function JK(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var u=t.get(l);u&&o(u)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function eX(e){var t=JK(e);return dK.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function tX(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function nX(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var mD={placement:"bottom",modifiers:[],strategy:"absolute"};function gD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function rX(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?mD:o;return function(l,u,d){d===void 0&&(d=i);var f={placement:"bottom",orderedModifiers:[],options:Object.assign({},mD,i),modifiersData:{},elements:{reference:l,popper:u},attributes:{},styles:{}},m=[],g=!1,w={state:f,setOptions:function(T){var I=typeof T=="function"?T(f.options):T;S(),f.options=Object.assign({},i,f.options,I),f.scrollParents={reference:uh(l)?Hv(l):l.contextElement?Hv(l.contextElement):[],popper:Hv(u)};var k=eX(nX([].concat(r,f.options.modifiers)));return f.orderedModifiers=k.filter(function(R){return R.enabled}),C(),w.update()},forceUpdate:function(){if(!g){var T=f.elements,I=T.reference,k=T.popper;if(gD(I,k)){f.rects={reference:QK(I,Nx(k),f.options.strategy==="fixed"),popper:HR(k)},f.reset=!1,f.placement=f.options.placement,f.orderedModifiers.forEach(function(_){return f.modifiersData[_.name]=Object.assign({},_.data)});for(var R=0;R<f.orderedModifiers.length;R++){if(f.reset===!0){f.reset=!1,R=-1;continue}var P=f.orderedModifiers[R],O=P.fn,j=P.options,F=j===void 0?{}:j,D=P.name;typeof O=="function"&&(f=O({state:f,options:F,name:D,instance:w})||f)}}}},update:tX(function(){return new Promise(function(E){w.forceUpdate(),E(f)})}),destroy:function(){S(),g=!0}};if(!gD(l,u))return w;w.setOptions(d).then(function(E){!g&&d.onFirstUpdate&&d.onFirstUpdate(E)});function C(){f.orderedModifiers.forEach(function(E){var T=E.name,I=E.options,k=I===void 0?{}:I,R=E.effect;if(typeof R=="function"){var P=R({state:f,name:T,instance:w,options:k}),O=function(){};m.push(P||O)}})}function S(){m.forEach(function(E){return E()}),m=[]}return w}}var oX=[kK,VK,TK,hK,UK,FK,YK,wK,zK],iX=rX({defaultModifiers:oX});function mi(e){var m;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:wF(n,r),{props:l,internalRef:u}=CF({...i,externalSlotProps:a}),d=Dn(u,a==null?void 0:a.ref,(m=e.additionalProps)==null?void 0:m.ref);return xF(t,{...l,ref:d},r)}function nf(e){var t;return parseInt(b.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function aX(e){return typeof e=="function"?e():e}const _F=b.forwardRef(function(t,n){const{children:r,container:o,disablePortal:i=!1}=t,[a,l]=b.useState(null),u=Dn(b.isValidElement(r)?nf(r):null,n);if(kn(()=>{i||l(aX(o)||document.body)},[o,i]),kn(()=>{if(a&&!i)return EI(n,a),()=>{EI(n,null)}},[n,a,i]),i){if(b.isValidElement(r)){const d={ref:u};return b.cloneElement(r,d)}return r}return a&&WE.createPortal(r,a)});function sX(e){return kt("MuiPopper",e)}Pt("MuiPopper",["root"]);function lX(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 _I(e){return typeof e=="function"?e():e}function cX(e){return e.nodeType!==void 0}const uX=e=>{const{classes:t}=e;return st({root:["root"]},sX,t)},dX={},fX=b.forwardRef(function(t,n){const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:m,slotProps:g={},slots:w={},TransitionProps:C,ownerState:S,...E}=t,T=b.useRef(null),I=Dn(T,n),k=b.useRef(null),R=Dn(k,m),P=b.useRef(R);kn(()=>{P.current=R},[R]),b.useImperativeHandle(m,()=>k.current,[]);const O=lX(d,i),[j,F]=b.useState(O),[D,_]=b.useState(_I(r));b.useEffect(()=>{k.current&&k.current.forceUpdate()}),b.useEffect(()=>{r&&_(_I(r))},[r]),kn(()=>{if(!D||!u)return;const G=Y=>{F(Y.placement)};let N=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:Y})=>{G(Y)}}];l!=null&&(N=N.concat(l)),f&&f.modifiers!=null&&(N=N.concat(f.modifiers));const H=iX(D,T.current,{placement:O,...f,modifiers:N});return P.current(H),()=>{H.destroy(),P.current(null)}},[D,a,l,u,f,O]);const $={placement:j};C!==null&&($.TransitionProps=C);const B=uX(t),V=w.root??"div",q=mi({elementType:V,externalSlotProps:g.root,externalForwardedProps:E,additionalProps:{role:"tooltip",ref:I},ownerState:t,className:B.root});return y.jsx(V,{...q,children:typeof o=="function"?o($):o})}),pX=b.forwardRef(function(t,n){const{anchorEl:r,children:o,container:i,direction:a="ltr",disablePortal:l=!1,keepMounted:u=!1,modifiers:d,open:f,placement:m="bottom",popperOptions:g=dX,popperRef:w,style:C,transition:S=!1,slotProps:E={},slots:T={},...I}=t,[k,R]=b.useState(!0),P=()=>{R(!1)},O=()=>{R(!0)};if(!u&&!f&&(!S||k))return null;let j;if(i)j=i;else if(r){const _=_I(r);j=_&&cX(_)?io(_).body:io(null).body}const F=!f&&u&&(!S||k)?"none":void 0,D=S?{in:f,onEnter:P,onExited:O}:void 0;return y.jsx(_F,{disablePortal:l,container:j,children:y.jsx(fX,{anchorEl:r,direction:a,disablePortal:l,modifiers:d,ref:n,open:S?!k:f,placement:m,popperOptions:g,popperRef:w,slotProps:E,slots:T,...I,style:{position:"fixed",top:0,left:0,display:F,...C},TransitionProps:D,children:o})})}),hX=Te(pX,{name:"MuiPopper",slot:"Root"})({}),z0=b.forwardRef(function(t,n){const r=Lo(),o=zt({props:t,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:u,container:d,disablePortal:f,keepMounted:m,modifiers:g,open:w,placement:C,popperOptions:S,popperRef:E,transition:T,slots:I,slotProps:k,...R}=o,P=(I==null?void 0:I.root)??(l==null?void 0:l.Root),O={anchorEl:i,container:d,disablePortal:f,keepMounted:m,modifiers:g,open:w,placement:C,popperOptions:S,popperRef:E,transition:T,...R};return y.jsx(hX,{as:a,direction:r?"rtl":"ltr",slots:{root:P},slotProps:k??u,...O,ref:n})});function mX(e){return kt("MuiListSubheader",e)}Pt("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const gX=e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:i}=e,a={root:["root",n!=="default"&&`color${Be(n)}`,!r&&"gutters",o&&"inset",!i&&"sticky"]};return st(a,mX,t)},bX=Te("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Be(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(Rt(({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}}]}))),p2=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiListSubheader"}),{className:o,color:i="default",component:a="li",disableGutters:l=!1,disableSticky:u=!1,inset:d=!1,...f}=r,m={...r,color:i,component:a,disableGutters:l,disableSticky:u,inset:d},g=gX(m);return y.jsx(bX,{as:a,className:Ve(g.root,o),ref:n,ownerState:m,...f})});p2&&(p2.muiSkipListHighlight=!0);const yX=Kr(y.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 vX(e){return kt("MuiChip",e)}const Nn=Pt("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"]),xX=e=>{const{classes:t,disabled:n,size:r,color:o,iconColor:i,onDelete:a,clickable:l,variant:u}=e,d={root:["root",u,n&&"disabled",`size${Be(r)}`,`color${Be(o)}`,l&&"clickable",l&&`clickableColor${Be(o)}`,a&&"deletable",a&&`deletableColor${Be(o)}`,`${u}${Be(o)}`],label:["label",`label${Be(r)}`],avatar:["avatar",`avatar${Be(r)}`,`avatarColor${Be(o)}`],icon:["icon",`icon${Be(r)}`,`iconColor${Be(i)}`],deleteIcon:["deleteIcon",`deleteIcon${Be(r)}`,`deleteIconColor${Be(o)}`,`deleteIcon${Be(u)}Color${Be(o)}`]};return st(d,vX,t)},wX=Te("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:o,clickable:i,onDelete:a,size:l,variant:u}=n;return[{[`& .${Nn.avatar}`]:t.avatar},{[`& .${Nn.avatar}`]:t[`avatar${Be(l)}`]},{[`& .${Nn.avatar}`]:t[`avatarColor${Be(r)}`]},{[`& .${Nn.icon}`]:t.icon},{[`& .${Nn.icon}`]:t[`icon${Be(l)}`]},{[`& .${Nn.icon}`]:t[`iconColor${Be(o)}`]},{[`& .${Nn.deleteIcon}`]:t.deleteIcon},{[`& .${Nn.deleteIcon}`]:t[`deleteIcon${Be(l)}`]},{[`& .${Nn.deleteIcon}`]:t[`deleteIconColor${Be(r)}`]},{[`& .${Nn.deleteIcon}`]:t[`deleteIcon${Be(u)}Color${Be(r)}`]},t.root,t[`size${Be(l)}`],t[`color${Be(r)}`],i&&t.clickable,i&&r!=="default"&&t[`clickableColor${Be(r)})`],a&&t.deletable,a&&r!=="default"&&t[`deletableColor${Be(r)}`],t[u],t[`${u}${Be(r)}`]]}})(Rt(({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",[`&.${Nn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Nn.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Nn.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Nn.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Nn.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Nn.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Nn.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:cn(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)`:cn(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Nn.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Nn.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Lr(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Nn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:cn(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Nn.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Nn.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Lr(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Nn.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}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Lr(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Nn.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]}`,[`&.${Nn.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Nn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Nn.avatar}`]:{marginLeft:4},[`& .${Nn.avatarSmall}`]:{marginLeft:2},[`& .${Nn.icon}`]:{marginLeft:4},[`& .${Nn.iconSmall}`]:{marginLeft:2},[`& .${Nn.deleteIcon}`]:{marginRight:5},[`& .${Nn.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Lr()).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)`:cn(e.palette[n].main,.7)}`,[`&.${Nn.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Nn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:cn(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Nn.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:cn(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),CX=Te("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Be(r)}`]]}})({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 bD(e){return e.key==="Backspace"||e.key==="Delete"}const xc=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiChip"}),{avatar:o,className:i,clickable:a,color:l="default",component:u,deleteIcon:d,disabled:f=!1,icon:m,label:g,onClick:w,onDelete:C,onKeyDown:S,onKeyUp:E,size:T="medium",variant:I="filled",tabIndex:k,skipFocusWhenDisabled:R=!1,slots:P={},slotProps:O={},...j}=r,F=b.useRef(null),D=Dn(F,n),_=re=>{re.stopPropagation(),C&&C(re)},$=re=>{re.currentTarget===re.target&&bD(re)&&re.preventDefault(),S&&S(re)},B=re=>{re.currentTarget===re.target&&C&&bD(re)&&C(re),E&&E(re)},V=a!==!1&&w?!0:a,q=V||C?gc:u||"div",G={...r,component:q,disabled:f,size:T,color:l,iconColor:b.isValidElement(m)&&m.props.color||l,onDelete:!!C,clickable:V,variant:I},N=xX(G),H=q===gc?{component:u||"div",focusVisibleClassName:N.focusVisible,...C&&{disableRipple:!0}}:{};let Y=null;C&&(Y=d&&b.isValidElement(d)?b.cloneElement(d,{className:Ve(d.props.className,N.deleteIcon),onClick:_}):y.jsx(yX,{className:N.deleteIcon,onClick:_}));let Q=null;o&&b.isValidElement(o)&&(Q=b.cloneElement(o,{className:Ve(N.avatar,o.props.className)}));let W=null;m&&b.isValidElement(m)&&(W=b.cloneElement(m,{className:Ve(N.icon,m.props.className)}));const K={slots:P,slotProps:O},[J,ae]=Ot("root",{elementType:wX,externalForwardedProps:{...K,...j},ownerState:G,shouldForwardComponentProp:!0,ref:D,className:Ve(N.root,i),additionalProps:{disabled:V&&f?!0:void 0,tabIndex:R&&f?-1:k,...H},getSlotProps:re=>({...re,onClick:ke=>{var Ce;(Ce=re.onClick)==null||Ce.call(re,ke),w(ke)},onKeyDown:ke=>{var Ce;(Ce=re.onKeyDown)==null||Ce.call(re,ke),$(ke)},onKeyUp:ke=>{var Ce;(Ce=re.onKeyUp)==null||Ce.call(re,ke),B(ke)}})}),[ce,de]=Ot("label",{elementType:CX,externalForwardedProps:K,ownerState:G,className:N.label});return y.jsxs(J,{as:q,...ae,children:[Q||W,y.jsx(ce,{...de,children:g}),Y]})});function XC(e){return parseInt(e,10)||0}const SX={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function EX(e){for(const t in e)return!1;return!0}function yD(e){return EX(e)||e.outerHeightStyle===0&&!e.overflowing}const TX=b.forwardRef(function(t,n){const{onChange:r,maxRows:o,minRows:i=1,style:a,value:l,...u}=t,{current:d}=b.useRef(l!=null),f=b.useRef(null),m=Dn(n,f),g=b.useRef(null),w=b.useRef(null),C=b.useCallback(()=>{const k=f.current,R=w.current;if(!k||!R)return;const O=Ma(k).getComputedStyle(k);if(O.width==="0px")return{outerHeightStyle:0,overflowing:!1};R.style.width=O.width,R.value=k.value||t.placeholder||"x",R.value.slice(-1)===`
`&&(R.value+=" ");const j=O.boxSizing,F=XC(O.paddingBottom)+XC(O.paddingTop),D=XC(O.borderBottomWidth)+XC(O.borderTopWidth),_=R.scrollHeight;R.value="x";const $=R.scrollHeight;let B=_;i&&(B=Math.max(Number(i)*$,B)),o&&(B=Math.min(Number(o)*$,B)),B=Math.max(B,$);const V=B+(j==="border-box"?F+D:0),q=Math.abs(B-_)<=1;return{outerHeightStyle:V,overflowing:q}},[o,i,t.placeholder]),S=Vt(()=>{const k=f.current,R=C();if(!k||!R||yD(R))return!1;const P=R.outerHeightStyle;return g.current!=null&&g.current!==P}),E=b.useCallback(()=>{const k=f.current,R=C();if(!k||!R||yD(R))return;const P=R.outerHeightStyle;g.current!==P&&(g.current=P,k.style.height=`${P}px`),k.style.overflow=R.overflowing?"hidden":""},[C]),T=b.useRef(-1);kn(()=>{const k=Sh(E),R=f==null?void 0:f.current;if(!R)return;const P=Ma(R);P.addEventListener("resize",k);let O;return typeof ResizeObserver<"u"&&(O=new ResizeObserver(()=>{S()&&(O.unobserve(R),cancelAnimationFrame(T.current),E(),T.current=requestAnimationFrame(()=>{O.observe(R)}))}),O.observe(R)),()=>{k.clear(),cancelAnimationFrame(T.current),P.removeEventListener("resize",k),O&&O.disconnect()}},[C,E,S]),kn(()=>{E()});const I=k=>{d||E();const R=k.target,P=R.value.length,O=R.value.endsWith(`
`),j=R.selectionStart===P;O&&j&&R.setSelectionRange(P,P),r&&r(k)};return y.jsxs(b.Fragment,{children:[y.jsx("textarea",{value:l,onChange:I,ref:m,rows:i,style:a,...u}),y.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...SX.shadow,...a,paddingTop:0,paddingBottom:0}})]})});function ax(e){return typeof e=="string"}function Eh({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]>"u"&&(r[o]=n[o]),r),{})}const XE=b.createContext(void 0);function Cu(){return b.useContext(XE)}function vD(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function h2(e,t=!1){return e&&(vD(e.value)&&e.value!==""||t&&vD(e.defaultValue)&&e.defaultValue!=="")}function MX(e){return e.startAdornment}function kX(e){return kt("MuiInputBase",e)}const pi=Pt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var xD;const ZE=(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${Be(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},QE=(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]},PX=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:u,hiddenLabel:d,multiline:f,readOnly:m,size:g,startAdornment:w,type:C}=e,S={root:["root",`color${Be(n)}`,r&&"disabled",o&&"error",u&&"fullWidth",a&&"focused",l&&"formControl",g&&g!=="medium"&&`size${Be(g)}`,f&&"multiline",w&&"adornedStart",i&&"adornedEnd",d&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",f&&"inputMultiline",g==="small"&&"inputSizeSmall",d&&"inputHiddenLabel",w&&"inputAdornedStart",i&&"inputAdornedEnd",m&&"readOnly"]};return st(S,kX,t)},JE=Te("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ZE})(Rt(({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",[`&.${pi.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%"}}]}))),eT=Te("input",{name:"MuiInputBase",slot:"Input",overridesResolver:QE})(Rt(({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})},r={opacity:"0 !important"},o=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] + .${pi.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${pi.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:i})=>!i.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:i})=>i.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),wD=_R({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),zx=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,color:u,components:d={},componentsProps:f={},defaultValue:m,disabled:g,disableInjectingGlobalStyles:w,endAdornment:C,error:S,fullWidth:E=!1,id:T,inputComponent:I="input",inputProps:k={},inputRef:R,margin:P,maxRows:O,minRows:j,multiline:F=!1,name:D,onBlur:_,onChange:$,onClick:B,onFocus:V,onKeyDown:q,onKeyUp:G,placeholder:N,readOnly:H,renderSuffix:Y,rows:Q,size:W,slotProps:K={},slots:J={},startAdornment:ae,type:ce="text",value:de,...re}=r,ke=k.value!=null?k.value:de,{current:Ce}=b.useRef(ke!=null),ie=b.useRef(),le=b.useCallback(Ue=>{},[]),ve=Dn(ie,R,k.ref,le),[ue,me]=b.useState(!1),be=Cu(),Fe=Eh({props:r,muiFormControl:be,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Fe.focused=be?be.focused:ue,b.useEffect(()=>{!be&&g&&ue&&(me(!1),_&&_())},[be,g,ue,_]);const Ze=be&&be.onFilled,We=be&&be.onEmpty,_e=b.useCallback(Ue=>{h2(Ue)?Ze&&Ze():We&&We()},[Ze,We]);kn(()=>{Ce&&_e({value:ke})},[ke,_e,Ce]);const ft=Ue=>{V&&V(Ue),k.onFocus&&k.onFocus(Ue),be&&be.onFocus?be.onFocus(Ue):me(!0)},nt=Ue=>{_&&_(Ue),k.onBlur&&k.onBlur(Ue),be&&be.onBlur?be.onBlur(Ue):me(!1)},dt=(Ue,...jt)=>{if(!Ce){const Ht=Ue.target||ie.current;if(Ht==null)throw new Error(fu(1));_e({value:Ht.value})}k.onChange&&k.onChange(Ue,...jt),$&&$(Ue,...jt)};b.useEffect(()=>{_e(ie.current)},[]);const se=Ue=>{ie.current&&Ue.currentTarget===Ue.target&&ie.current.focus(),B&&B(Ue)};let De=I,ye=k;F&&De==="input"&&(Q?ye={type:void 0,minRows:Q,maxRows:Q,...ye}:ye={type:void 0,maxRows:O,minRows:j,...ye},De=TX);const Pe=Ue=>{_e(Ue.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};b.useEffect(()=>{be&&be.setAdornedStart(!!ae)},[be,ae]);const qe={...r,color:Fe.color||"primary",disabled:Fe.disabled,endAdornment:C,error:Fe.error,focused:Fe.focused,formControl:be,fullWidth:E,hiddenLabel:Fe.hiddenLabel,multiline:F,size:Fe.size,startAdornment:ae,type:ce},Ke=PX(qe),it=J.root||d.Root||JE,ot=K.root||f.root||{},gt=J.input||d.Input||eT;return ye={...ye,...K.input??f.input},y.jsxs(b.Fragment,{children:[!w&&typeof wD=="function"&&(xD||(xD=y.jsx(wD,{}))),y.jsxs(it,{...ot,ref:n,onClick:se,...re,...!ax(it)&&{ownerState:{...qe,...ot.ownerState}},className:Ve(Ke.root,ot.className,l,H&&"MuiInputBase-readOnly"),children:[ae,y.jsx(XE.Provider,{value:null,children:y.jsx(gt,{"aria-invalid":Fe.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:m,disabled:Fe.disabled,id:T,onAnimationStart:Pe,name:D,placeholder:N,readOnly:H,required:Fe.required,rows:Q,value:ke,onKeyDown:q,onKeyUp:G,type:ce,...ye,...!ax(gt)&&{as:De,ownerState:{...qe,...ye.ownerState}},ref:ve,className:Ve(Ke.input,ye.className,H&&"MuiInputBase-readOnly"),onBlur:nt,onChange:dt,onFocus:ft})}),C,Y?Y({...Fe,startAdornment:ae}):null]})]})});function IX(e){return kt("MuiInput",e)}const Ld={...pi,...Pt("MuiInput",["root","underline","input"])};function AX(e){return kt("MuiOutlinedInput",e)}const ps={...pi,...Pt("MuiOutlinedInput",["root","notchedOutline","input"])};function RX(e){return kt("MuiFilledInput",e)}const Na={...pi,...Pt("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},DF=Kr(y.jsx("path",{d:"M7 10l5 5 5-5z"}));function OX(e){return kt("MuiAutocomplete",e)}const Rn=Pt("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"]);var CD,SD;const _X=e=>{const{classes:t,disablePortal:n,expanded:r,focused:o,fullWidth:i,hasClearIcon:a,hasPopupIcon:l,inputFocused:u,popupOpen:d,size:f}=e,m={root:["root",r&&"expanded",o&&"focused",i&&"fullWidth",a&&"hasClearIcon",l&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",u&&"inputFocused"],tag:["tag",`tagSize${Be(f)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",d&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return st(m,OX,t)},DX=Te("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:i,inputFocused:a,size:l}=n;return[{[`& .${Rn.tag}`]:t.tag},{[`& .${Rn.tag}`]:t[`tagSize${Be(l)}`]},{[`& .${Rn.inputRoot}`]:t.inputRoot},{[`& .${Rn.input}`]:t.input},{[`& .${Rn.input}`]:a&&t.inputFocused},t.root,r&&t.fullWidth,i&&t.hasPopupIcon,o&&t.hasClearIcon]}})({[`&.${Rn.focused} .${Rn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Rn.clearIndicator}`]:{visibility:"visible"}},[`& .${Rn.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Rn.inputRoot}`]:{[`.${Rn.hasPopupIcon}&, .${Rn.hasClearIcon}&`]:{paddingRight:30},[`.${Rn.hasPopupIcon}.${Rn.hasClearIcon}&`]:{paddingRight:56},[`& .${Rn.input}`]:{width:0,minWidth:30}},[`& .${Ld.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Ld.root}.${pi.sizeSmall}`]:{[`& .${Ld.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ps.root}`]:{padding:9,[`.${Rn.hasPopupIcon}&, .${Rn.hasClearIcon}&`]:{paddingRight:39},[`.${Rn.hasPopupIcon}.${Rn.hasClearIcon}&`]:{paddingRight:65},[`& .${Rn.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Rn.endAdornment}`]:{right:9}},[`& .${ps.root}.${pi.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Rn.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${Na.root}`]:{paddingTop:19,paddingLeft:8,[`.${Rn.hasPopupIcon}&, .${Rn.hasClearIcon}&`]:{paddingRight:39},[`.${Rn.hasPopupIcon}.${Rn.hasClearIcon}&`]:{paddingRight:65},[`& .${Na.input}`]:{padding:"7px 4px"},[`& .${Rn.endAdornment}`]:{right:9}},[`& .${Na.root}.${pi.sizeSmall}`]:{paddingBottom:1,[`& .${Na.input}`]:{padding:"2.5px 4px"}},[`& .${pi.hiddenLabel}`]:{paddingTop:8},[`& .${Na.root}.${pi.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Rn.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Na.root}.${pi.hiddenLabel}.${pi.sizeSmall}`]:{[`& .${Rn.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Rn.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Rn.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Rn.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Rn.inputRoot}`]:{flexWrap:"wrap"}}}]}),LX=Te("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),$X=Te(Ur,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),jX=Te(Ur,{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)"}}]}),FX=Te(z0,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Rn.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),NX=Te(bl,{name:"MuiAutocomplete",slot:"Paper"})(Rt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),zX=Te("div",{name:"MuiAutocomplete",slot:"Loading"})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),BX=Te("div",{name:"MuiAutocomplete",slot:"NoOptions"})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),HX=Te("ul",{name:"MuiAutocomplete",slot:"Listbox"})(Rt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Rn.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"},[`&.${Rn.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"},[`&.${Rn.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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Rn.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Rn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),UX=Te(p2,{name:"MuiAutocomplete",slot:"GroupLabel"})(Rt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),GX=Te("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Rn.option}`]:{paddingLeft:24}}),Bx=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiAutocomplete"}),{autoComplete:o=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:l=!1,ChipProps:u,className:d,clearIcon:f=CD||(CD=y.jsx(SF,{fontSize:"small"})),clearOnBlur:m=!r.freeSolo,clearOnEscape:g=!1,clearText:w="Clear",closeText:C="Close",componentsProps:S,defaultValue:E=r.multiple?[]:null,disableClearable:T=!1,disableCloseOnSelect:I=!1,disabled:k=!1,disabledItemsFocusable:R=!1,disableListWrap:P=!1,disablePortal:O=!1,filterOptions:j,filterSelectedOptions:F=!1,forcePopupIcon:D="auto",freeSolo:_=!1,fullWidth:$=!1,getLimitTagsText:B=dn=>`+${dn}`,getOptionDisabled:V,getOptionKey:q,getOptionLabel:G,isOptionEqualToValue:N,groupBy:H,handleHomeEndKeys:Y=!r.freeSolo,id:Q,includeInputInList:W=!1,inputValue:K,limitTags:J=-1,ListboxComponent:ae,ListboxProps:ce,loading:de=!1,loadingText:re="Loading…",multiple:ke=!1,noOptionsText:Ce="No options",onChange:ie,onClose:le,onHighlightChange:ve,onInputChange:ue,onOpen:me,open:be,openOnFocus:Fe=!1,openText:Ze="Open",options:We,PaperComponent:_e,PopperComponent:ft,popupIcon:nt=SD||(SD=y.jsx(DF,{})),readOnly:dt=!1,renderGroup:se,renderInput:De,renderOption:ye,renderTags:Pe,renderValue:qe,selectOnFocus:Ke=!r.freeSolo,size:it="medium",slots:ot={},slotProps:gt={},value:Ue,...jt}=r,{getRootProps:Ht,getInputProps:pt,getInputLabelProps:ht,getPopupIndicatorProps:Ct,getClearProps:Nt,getItemProps:Yn,getListboxProps:pr,getOptionProps:Go,value:Jn,dirty:Er,expanded:Xr,id:Vr,popupOpen:Ar,focused:$o,focusedItem:Kt,anchorEl:he,setAnchorEl:fe,inputValue:xe,groupedOptions:ze}=JY({...r,componentName:"Autocomplete"}),Qe=!T&&!k&&Er&&!dt,bt=(!_||D===!0)&&D!==!1,{onMouseDown:_t}=pt(),{ref:St,...Dt}=pr(),Gt=G||(dn=>dn.label??dn),Et={...r,disablePortal:O,expanded:Xr,focused:$o,fullWidth:$,getOptionLabel:Gt,hasClearIcon:Qe,hasPopupIcon:bt,inputFocused:Kt===-1,popupOpen:Ar,size:it},Lt=_X(Et),gn={slots:{paper:_e,popper:ft,...ot},slotProps:{chip:u,listbox:ce,...S,...gt}},[Kn,hr]=Ot("listbox",{elementType:HX,externalForwardedProps:gn,ownerState:Et,className:Lt.listbox,additionalProps:Dt,ref:St}),[Ne,je]=Ot("paper",{elementType:bl,externalForwardedProps:gn,ownerState:Et,className:Lt.paper}),[Tt,Zt]=Ot("popper",{elementType:z0,externalForwardedProps:gn,ownerState:Et,className:Lt.popper,additionalProps:{disablePortal:O,style:{width:he?he.clientWidth:null},role:"presentation",anchorEl:he,open:Ar}});let Ft;const vn=dn=>({className:Lt.tag,disabled:k,...Yn(dn)});if(ke?Jn.length>0&&(Pe?Ft=Pe(Jn,vn,Et):qe?Ft=qe(Jn,vn,Et):Ft=Jn.map((dn,fo)=>{const{key:Vo,...er}=vn({index:fo});return y.jsx(xc,{label:Gt(dn),size:it,...er,...gn.slotProps.chip},Vo)})):qe&&Jn!=null&&(Ft=qe(Jn,vn,Et)),J>-1&&Array.isArray(Ft)){const dn=Ft.length-J;!$o&&dn>0&&(Ft=Ft.splice(0,J),Ft.push(y.jsx("span",{className:Lt.tag,children:B(dn)},Ft.length)))}const $r=se||(dn=>y.jsxs("li",{children:[y.jsx(UX,{className:Lt.groupLabel,ownerState:Et,component:"div",children:dn.group}),y.jsx(GX,{className:Lt.groupUl,ownerState:Et,children:dn.children})]},dn.key)),gi=ye||((dn,fo)=>{const{key:Vo,...er}=dn;return y.jsx("li",{...er,children:Gt(fo)},Vo)}),Ji=(dn,fo)=>{const Vo=Go({option:dn,index:fo});return gi({...Vo,className:Lt.option},dn,{selected:Vo["aria-selected"],index:fo,inputValue:xe},Et)},fn=gn.slotProps.clearIndicator,Zr=gn.slotProps.popupIndicator;return y.jsxs(b.Fragment,{children:[y.jsx(DX,{ref:n,className:Ve(Lt.root,d),ownerState:Et,...Ht(jt),children:De({id:Vr,disabled:k,fullWidth:!0,size:it==="small"?"small":void 0,InputLabelProps:ht(),InputProps:{ref:fe,className:Lt.inputRoot,startAdornment:Ft,onMouseDown:dn=>{dn.target===dn.currentTarget&&_t(dn)},...(Qe||bt)&&{endAdornment:y.jsxs(LX,{className:Lt.endAdornment,ownerState:Et,children:[Qe?y.jsx($X,{...Nt(),"aria-label":w,title:w,ownerState:Et,...fn,className:Ve(Lt.clearIndicator,fn==null?void 0:fn.className),children:f}):null,bt?y.jsx(jX,{...Ct(),disabled:k,"aria-label":Ar?C:Ze,title:Ar?C:Ze,ownerState:Et,...Zr,className:Ve(Lt.popupIndicator,Zr==null?void 0:Zr.className),children:nt}):null]})}},inputProps:{className:Lt.input,disabled:k,readOnly:dt,...pt()}})}),he?y.jsx(FX,{as:Tt,...Zt,children:y.jsxs(NX,{as:Ne,...je,children:[de&&ze.length===0?y.jsx(zX,{className:Lt.loading,ownerState:Et,children:re}):null,ze.length===0&&!_&&!de?y.jsx(BX,{className:Lt.noOptions,ownerState:Et,role:"presentation",onMouseDown:dn=>{dn.preventDefault()},children:Ce}):null,ze.length>0?y.jsx(Kn,{as:ae,...hr,children:ze.map((dn,fo)=>H?$r({key:dn.key,group:dn.group,children:dn.options.map((Vo,er)=>Ji(Vo,dn.index+er))}):Ji(dn,fo))}):null]})}):null]})}),VX=Kr(y.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function WX(e){return kt("MuiAvatar",e)}Pt("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const qX=e=>{const{classes:t,variant:n,colorDefault:r}=e;return st({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},WX,t)},YX=Te("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Rt(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),KX=Te("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),XX=Te(VX,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function ZX({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,i]=b.useState(!1);return b.useEffect(()=>{if(!n&&!r)return;i(!1);let a=!0;const l=new Image;return l.onload=()=>{a&&i("loaded")},l.onerror=()=>{a&&i("error")},l.crossOrigin=e,l.referrerPolicy=t,l.src=n,r&&(l.srcset=r),()=>{a=!1}},[e,t,n,r]),o}const LF=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiAvatar"}),{alt:o,children:i,className:a,component:l="div",slots:u={},slotProps:d={},imgProps:f,sizes:m,src:g,srcSet:w,variant:C="circular",...S}=r;let E=null;const T={...r,component:l,variant:C},I=ZX({...f,...typeof d.img=="function"?d.img(T):d.img,src:g,srcSet:w}),k=g||w,R=k&&I!=="error";T.colorDefault=!R,delete T.ownerState;const P=qX(T),[O,j]=Ot("root",{ref:n,className:Ve(P.root,a),elementType:YX,externalForwardedProps:{slots:u,slotProps:d,component:l,...S},ownerState:T}),[F,D]=Ot("img",{className:P.img,elementType:KX,externalForwardedProps:{slots:u,slotProps:{img:{...f,...d.img}}},additionalProps:{alt:o,src:g,srcSet:w,sizes:m},ownerState:T}),[_,$]=Ot("fallback",{className:P.fallback,elementType:XX,externalForwardedProps:{slots:u,slotProps:d},shouldForwardComponentProp:!0,ownerState:T});return R?E=y.jsx(F,{...D}):i||i===0?E=i:k&&o?E=o[0]:E=y.jsx(_,{...$}),y.jsx(O,{...j,children:E})}),QX={entering:{opacity:1},entered:{opacity:1}},DI=b.forwardRef(function(t,n){const r=bo(),o={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:l,easing:u,in:d,onEnter:f,onEntered:m,onEntering:g,onExit:w,onExited:C,onExiting:S,style:E,timeout:T=o,TransitionComponent:I=Os,...k}=t,R=b.useRef(null),P=Dn(R,nf(l),n),O=q=>G=>{if(q){const N=R.current;G===void 0?q(N):q(N,G)}},j=O(g),F=O((q,G)=>{FR(q);const N=qd({style:E,timeout:T,easing:u},{mode:"enter"});q.style.webkitTransition=r.transitions.create("opacity",N),q.style.transition=r.transitions.create("opacity",N),f&&f(q,G)}),D=O(m),_=O(S),$=O(q=>{const G=qd({style:E,timeout:T,easing:u},{mode:"exit"});q.style.webkitTransition=r.transitions.create("opacity",G),q.style.transition=r.transitions.create("opacity",G),w&&w(q)}),B=O(C),V=q=>{i&&i(R.current,q)};return y.jsx(I,{appear:a,in:d,nodeRef:R,onEnter:F,onEntered:D,onEntering:j,onExit:$,onExited:B,onExiting:_,addEndListener:V,timeout:T,...k,children:(q,{ownerState:G,...N})=>b.cloneElement(l,{style:{opacity:0,visibility:q==="exited"&&!d?"hidden":void 0,...QX[q],...E,...l.props.style},ref:P,...N})})});function JX(e){return kt("MuiBackdrop",e)}Pt("MuiBackdrop",["root","invisible"]);const eZ=e=>{const{classes:t,invisible:n}=e;return st({root:["root",n&&"invisible"]},JX,t)},tZ=Te("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"}}]}),$F=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiBackdrop"}),{children:o,className:i,component:a="div",invisible:l=!1,open:u,components:d={},componentsProps:f={},slotProps:m={},slots:g={},TransitionComponent:w,transitionDuration:C,...S}=r,E={...r,component:a,invisible:l},T=eZ(E),I={transition:w,root:d.Root,...g},k={...f,...m},R={slots:I,slotProps:k},[P,O]=Ot("root",{elementType:tZ,externalForwardedProps:R,className:Ve(T.root,i),ownerState:E}),[j,F]=Ot("transition",{elementType:DI,externalForwardedProps:R,ownerState:E});return y.jsx(j,{in:u,timeout:C,...S,...F,children:y.jsx(P,{"aria-hidden":!0,...O,classes:T,ref:n,children:o})})});function nZ(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=NR({badgeContent:t,max:r});let a=n;n===!1&&t===0&&!o&&(a=!0);const{badgeContent:l,max:u=r}=a?i:e,d=l&&Number(l)>u?`${u}+`:l;return{badgeContent:l,invisible:a,max:u,displayValue:d}}function rZ(e){return kt("MuiBadge",e)}const Td=Pt("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"]),jk=10,Fk=4,oZ=e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e,l={root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Be(n.vertical)}${Be(n.horizontal)}`,`anchorOrigin${Be(n.vertical)}${Be(n.horizontal)}${Be(o)}`,`overlap${Be(o)}`,t!=="default"&&`color${Be(t)}`]};return st(l,rZ,a)},iZ=Te("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),aZ=Te("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Be(n.anchorOrigin.vertical)}${Be(n.anchorOrigin.horizontal)}${Be(n.overlap)}`],n.color!=="default"&&t[`color${Be(n.color)}`],n.invisible&&t.invisible]}})(Rt(({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:jk*2,lineHeight:1,padding:"0 6px",height:jk*2,borderRadius:jk,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Lr(["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:Fk,height:Fk*2,minWidth:Fk*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%",[`&.${Td.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%",[`&.${Td.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%",[`&.${Td.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%",[`&.${Td.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%",[`&.${Td.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%",[`&.${Td.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%",[`&.${Td.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%",[`&.${Td.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 ED(e){return{vertical:(e==null?void 0:e.vertical)??"top",horizontal:(e==null?void 0:e.horizontal)??"right"}}const tT=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiBadge"}),{anchorOrigin:o,className:i,classes:a,component:l,components:u={},componentsProps:d={},children:f,overlap:m="rectangular",color:g="default",invisible:w=!1,max:C=99,badgeContent:S,slots:E,slotProps:T,showZero:I=!1,variant:k="standard",...R}=r,{badgeContent:P,invisible:O,max:j,displayValue:F}=nZ({max:C,invisible:w,badgeContent:S,showZero:I}),D=NR({anchorOrigin:ED(o),color:g,overlap:m,variant:k,badgeContent:S}),_=O||P==null&&k!=="dot",{color:$=g,overlap:B=m,anchorOrigin:V,variant:q=k}=_?D:r,G=ED(V),N=q!=="dot"?F:void 0,H={...r,badgeContent:P,invisible:_,max:j,displayValue:N,showZero:I,anchorOrigin:G,color:$,overlap:B,variant:q},Y=oZ(H),Q={slots:{root:(E==null?void 0:E.root)??u.Root,badge:(E==null?void 0:E.badge)??u.Badge},slotProps:{root:(T==null?void 0:T.root)??d.root,badge:(T==null?void 0:T.badge)??d.badge}},[W,K]=Ot("root",{elementType:iZ,externalForwardedProps:{...Q,...R},ownerState:H,className:Ve(Y.root,i),ref:n,additionalProps:{as:l}}),[J,ae]=Ot("badge",{elementType:aZ,externalForwardedProps:Q,ownerState:H,className:Y.badge});return y.jsxs(W,{...K,children:[f,y.jsx(J,{...ae,children:N})]})}),sZ=Pt("MuiBox",["root"]),lZ=jx(),Oe=JV({themeId:Ss,defaultTheme:lZ,defaultClassName:sZ.root,generateClassName:X6.generate}),cZ=Kr(y.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"})),uZ=Te(gc)(Rt(({theme:e})=>({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`,...e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},borderRadius:2,"&:hover, &:focus":{...e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}},"&:active":{boxShadow:e.shadows[0],...e.palette.mode==="light"?{backgroundColor:rx(e.palette.grey[200],.12)}:{backgroundColor:rx(e.palette.grey[600],.12)}}}))),dZ=Te(cZ)({width:24,height:16});function fZ(e){const{slots:t={},slotProps:n={},...r}=e,o=e;return y.jsx("li",{children:y.jsx(uZ,{focusRipple:!0,...r,ownerState:o,children:y.jsx(dZ,{as:t.CollapsedIcon,ownerState:o,...n.collapsedIcon})})})}function pZ(e){return kt("MuiBreadcrumbs",e)}const hZ=Pt("MuiBreadcrumbs",["root","ol","li","separator"]),mZ=e=>{const{classes:t}=e;return st({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},pZ,t)},gZ=Te(Jt,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${hZ.li}`]:t.li},t.root]})({}),bZ=Te("ol",{name:"MuiBreadcrumbs",slot:"Ol"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),yZ=Te("li",{name:"MuiBreadcrumbs",slot:"Separator"})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function vZ(e,t,n,r){return e.reduce((o,i,a)=>(a<e.length-1?o=o.concat(i,y.jsx(yZ,{"aria-hidden":!0,className:t,ownerState:r,children:n},`separator-${a}`)):o.push(i),o),[])}const xZ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiBreadcrumbs"}),{children:o,className:i,component:a="nav",slots:l={},slotProps:u={},expandText:d="Show path",itemsAfterCollapse:f=1,itemsBeforeCollapse:m=1,maxItems:g=8,separator:w="/",...C}=r,[S,E]=b.useState(!1),T={...r,component:a,expanded:S,expandText:d,itemsAfterCollapse:f,itemsBeforeCollapse:m,maxItems:g,separator:w},I=mZ(T),k=mi({elementType:l.CollapsedIcon,externalSlotProps:u.collapsedIcon,ownerState:T}),R=b.useRef(null),P=j=>{const F=()=>{E(!0);const D=R.current.querySelector("a[href],button,[tabindex]");D&&D.focus()};return m+f>=j.length?j:[...j.slice(0,m),y.jsx(fZ,{"aria-label":d,slots:{CollapsedIcon:l.CollapsedIcon},slotProps:{collapsedIcon:k},onClick:F},"ellipsis"),...j.slice(j.length-f,j.length)]},O=b.Children.toArray(o).filter(j=>b.isValidElement(j)).map((j,F)=>y.jsx("li",{className:I.li,children:j},`child-${F}`));return y.jsx(gZ,{ref:n,component:a,color:"textSecondary",className:Ve(I.root,i),ownerState:T,...C,children:y.jsx(bZ,{className:I.ol,ref:R,ownerState:T,children:vZ(S||g&&O.length<=g?O:P(O),I.separator,w,T)})})});function wZ(e){return kt("MuiButton",e)}const Mp=Pt("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"]),CZ=b.createContext({}),SZ=b.createContext(void 0),EZ=e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:u}=e,d={root:["root",a&&"loading",i,`${i}${Be(t)}`,`size${Be(o)}`,`${i}Size${Be(o)}`,`color${Be(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Be(l)}`],startIcon:["icon","startIcon",`iconSize${Be(o)}`],endIcon:["icon","endIcon",`iconSize${Be(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},f=st(d,wZ,u);return{...u,...f}},jF=[{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}}}],TZ=Te(gc,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Be(n.color)}`],t[`size${Be(n.size)}`],t[`${n.variant}Size${Be(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Rt(({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"},[`&.${Mp.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]},[`&.${Mp.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${Mp.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)",[`&.${Mp.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(Lr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:cn(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[r].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})`:cn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(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"},[`&.${Mp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Mp.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}),[`&.${Mp.loading}`]:{color:"transparent"}}}]}})),MZ=Te("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Be(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}},...jF]})),kZ=Te("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Be(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}},...jF]})),PZ=Te("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}}]})),TD=Te("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),B0=b.forwardRef(function(t,n){const r=b.useContext(CZ),o=b.useContext(SZ),i=Vd(r,t),a=zt({props:i,name:"MuiButton"}),{children:l,color:u="primary",component:d="button",className:f,disabled:m=!1,disableElevation:g=!1,disableFocusRipple:w=!1,endIcon:C,focusVisibleClassName:S,fullWidth:E=!1,id:T,loading:I=null,loadingIndicator:k,loadingPosition:R="center",size:P="medium",startIcon:O,type:j,variant:F="text",...D}=a,_=Mn(T),$=k??y.jsx(YE,{"aria-labelledby":_,color:"inherit",size:16}),B={...a,color:u,component:d,disabled:m,disableElevation:g,disableFocusRipple:w,fullWidth:E,loading:I,loadingIndicator:$,loadingPosition:R,size:P,type:j,variant:F},V=EZ(B),q=(O||I&&R==="start")&&y.jsx(MZ,{className:V.startIcon,ownerState:B,children:O||y.jsx(TD,{className:V.loadingIconPlaceholder,ownerState:B})}),G=(C||I&&R==="end")&&y.jsx(kZ,{className:V.endIcon,ownerState:B,children:C||y.jsx(TD,{className:V.loadingIconPlaceholder,ownerState:B})}),N=o||"",H=typeof I=="boolean"?y.jsx("span",{className:V.loadingWrapper,style:{display:"contents"},children:I&&y.jsx(PZ,{className:V.loadingIndicator,ownerState:B,children:$})}):null;return y.jsxs(TZ,{ownerState:B,className:Ve(r.className,V.root,f,N),component:d,disabled:m||I,focusRipple:!w,focusVisibleClassName:Ve(V.focusVisible,S),ref:n,type:j,id:I?_:T,...D,classes:V,children:[q,R!=="end"&&H,l,R==="end"&&H,G]})});function IZ(e){return kt("PrivateSwitchBase",e)}Pt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const AZ=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Be(o)}`],input:["input"]};return st(i,IZ,t)},RZ=Te(gc)({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}}]}),OZ=Te("input",{shouldForwardProp:Li})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),FF=b.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:m,inputProps:g,inputRef:w,name:C,onBlur:S,onChange:E,onFocus:T,readOnly:I,required:k=!1,tabIndex:R,type:P,value:O,slots:j={},slotProps:F={},...D}=t,[_,$]=Qp({controlled:o,default:!!a,name:"SwitchBase",state:"checked"}),B=Cu(),V=de=>{T&&T(de),B&&B.onFocus&&B.onFocus(de)},q=de=>{S&&S(de),B&&B.onBlur&&B.onBlur(de)},G=de=>{if(de.nativeEvent.defaultPrevented)return;const re=de.target.checked;$(re),E&&E(de,re)};let N=l;B&&typeof N>"u"&&(N=B.disabled);const H=P==="checkbox"||P==="radio",Y={...t,checked:_,disabled:N,disableFocusRipple:u,edge:d},Q=AZ(Y),W={slots:j,slotProps:{input:g,...F}},[K,J]=Ot("root",{ref:n,elementType:RZ,className:Q.root,shouldForwardComponentProp:!0,externalForwardedProps:{...W,component:"span",...D},getSlotProps:de=>({...de,onFocus:re=>{var ke;(ke=de.onFocus)==null||ke.call(de,re),V(re)},onBlur:re=>{var ke;(ke=de.onBlur)==null||ke.call(de,re),q(re)}}),ownerState:Y,additionalProps:{centerRipple:!0,focusRipple:!u,disabled:N,role:void 0,tabIndex:null}}),[ae,ce]=Ot("input",{ref:w,elementType:OZ,className:Q.input,externalForwardedProps:W,getSlotProps:de=>({...de,onChange:re=>{var ke;(ke=de.onChange)==null||ke.call(de,re),G(re)}}),ownerState:Y,additionalProps:{autoFocus:r,checked:o,defaultChecked:a,disabled:N,id:H?m:void 0,name:C,readOnly:I,required:k,tabIndex:R,type:P,...P==="checkbox"&&O===void 0?{}:{value:O}}});return y.jsxs(K,{...J,children:[y.jsx(ae,{...ce}),_?i:f]})}),_Z=Kr(y.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"})),DZ=Kr(y.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"})),LZ=Kr(y.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 $Z(e){return kt("MuiCheckbox",e)}const Nk=Pt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),jZ=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Be(r)}`,`size${Be(o)}`]},a=st(i,$Z,t);return{...t,...a}},FZ=Te(FF,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Be(n.size)}`],n.color!=="default"&&t[`color${Be(n.color)}`]]}})(Rt(({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})`:cn(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{[`&.${Nk.checked}, &.${Nk.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Nk.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),NZ=y.jsx(DZ,{}),zZ=y.jsx(_Z,{}),BZ=y.jsx(LZ,{}),NF=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=NZ,color:i="primary",icon:a=zZ,indeterminate:l=!1,indeterminateIcon:u=BZ,inputProps:d,size:f="medium",disableRipple:m=!1,className:g,slots:w={},slotProps:C={},...S}=r,E=l?u:a,T=l?u:o,I={...r,disableRipple:m,color:i,indeterminate:l,size:f},k=jZ(I),R=C.input??d,[P,O]=Ot("root",{ref:n,elementType:FZ,className:Ve(k.root,g),shouldForwardComponentProp:!0,externalForwardedProps:{slots:w,slotProps:C,...S},ownerState:I,additionalProps:{type:"checkbox",icon:b.cloneElement(E,{fontSize:E.props.fontSize??f}),checkedIcon:b.cloneElement(T,{fontSize:T.props.fontSize??f}),disableRipple:m,slots:w,slotProps:{input:DR(typeof R=="function"?R(I):R,{"data-indeterminate":l})}}});return y.jsx(P,{...O,classes:k})});function MD(e){return e.substring(2).toLowerCase()}function HZ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function zF(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=b.useRef(!1),l=b.useRef(null),u=b.useRef(!1),d=b.useRef(!1);b.useEffect(()=>(setTimeout(()=>{u.current=!0},0),()=>{u.current=!1}),[]);const f=Dn(nf(t),l),m=Vt(C=>{const S=d.current;d.current=!1;const E=io(l.current);if(!u.current||!l.current||"clientX"in C&&HZ(C,E))return;if(a.current){a.current=!1;return}let T;C.composedPath?T=C.composedPath().includes(l.current):T=!E.documentElement.contains(C.target)||l.current.contains(C.target),!T&&(n||!S)&&o(C)}),g=C=>S=>{d.current=!0;const E=t.props[C];E&&E(S)},w={ref:f};return i!==!1&&(w[i]=g(i)),b.useEffect(()=>{if(i!==!1){const C=MD(i),S=io(l.current),E=()=>{a.current=!0};return S.addEventListener(C,m),S.addEventListener("touchmove",E),()=>{S.removeEventListener(C,m),S.removeEventListener("touchmove",E)}}},[m,i]),r!==!1&&(w[r]=g(r)),b.useEffect(()=>{if(r!==!1){const C=MD(r),S=io(l.current);return S.addEventListener(C,m),()=>{S.removeEventListener(C,m)}}},[m,r]),b.cloneElement(t,w)}const UZ=zW({createStyledComponent:Te("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${Be(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>zt({props:e,name:"MuiContainer"})}),LI=typeof _R({})=="function",GZ=(e,t)=>({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%",...t&&!e.vars&&{colorScheme:e.palette.mode}}),VZ=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}}),BF=(e,t=!1)=>{var i,a;const n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector=="function"&&Object.entries(e.colorSchemes).forEach(([l,u])=>{var f,m;const d=e.getColorSchemeSelector(l);d.startsWith("@")?n[d]={":root":{colorScheme:(f=u.palette)==null?void 0:f.mode}}:n[d.replace(/\s*&/,"")]={colorScheme:(m=u.palette)==null?void 0:m.mode}});let r={html:GZ(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...VZ(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n};const o=(a=(i=e.components)==null?void 0:i.MuiCssBaseline)==null?void 0:a.styleOverrides;return o&&(r=[r,o]),r},zS="mui-ecs",WZ=e=>{const t=BF(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${zS})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([r,o])=>{var a,l;const i=e.getColorSchemeSelector(r);i.startsWith("@")?n[i]={[`:root:not(:has(.${zS}))`]:{colorScheme:(a=o.palette)==null?void 0:a.mode}}:n[i.replace(/\s*&/,"")]={[`&:not(:has(.${zS}))`]:{colorScheme:(l=o.palette)==null?void 0:l.mode}}}),t},qZ=_R(LI?({theme:e,enableColorScheme:t})=>BF(e,t):({theme:e})=>WZ(e));function qR(e){const t=zt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return y.jsxs(b.Fragment,{children:[LI&&y.jsx(qZ,{enableColorScheme:r}),!LI&&!r&&y.jsx("span",{className:zS,style:{display:"none"}}),n]})}function HF(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function YZ(e){const t=io(e);return t.body===e?Ma(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Uv(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function kD(e){return parseInt(Ma(e).getComputedStyle(e).paddingRight,10)||0}function KZ(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function PD(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const l=!i.includes(a),u=!KZ(a);l&&u&&Uv(a,o)})}function zk(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function XZ(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(YZ(r)){const a=HF(Ma(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${kD(r)+a}px`;const l=io(r).querySelectorAll(".mui-fixed");[].forEach.call(l,u=>{n.push({value:u.style.paddingRight,property:"padding-right",el:u}),u.style.paddingRight=`${kD(u)+a}px`})}let i;if(r.parentNode instanceof DocumentFragment)i=io(r).body;else{const a=r.parentElement,l=Ma(r);i=(a==null?void 0:a.nodeName)==="HTML"&&l.getComputedStyle(a).overflowY==="scroll"?a:r}n.push({value:i.style.overflow,property:"overflow",el:i},{value:i.style.overflowX,property:"overflow-x",el:i},{value:i.style.overflowY,property:"overflow-y",el:i}),i.style.overflow="hidden"}return()=>{n.forEach(({value:i,el:a,property:l})=>{i?a.style.setProperty(l,i):a.style.removeProperty(l)})}}function ZZ(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class QZ{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Uv(t.modalRef,!1);const o=ZZ(n);PD(n,t.mount,t.modalRef,o,!0);const i=zk(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=zk(this.containers,i=>i.modals.includes(t)),o=this.containers[r];o.restore||(o.restore=XZ(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=zk(this.containers,a=>a.modals.includes(t)),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&Uv(t.modalRef,n),PD(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&Uv(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const JZ=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function eQ(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 tQ(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function nQ(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||tQ(e))}function rQ(e){const t=[],n=[];return Array.from(e.querySelectorAll(JZ)).forEach((r,o)=>{const i=eQ(r);i===-1||!nQ(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function oQ(){return!0}function UF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=rQ,isEnabled:a=oQ,open:l}=e,u=b.useRef(!1),d=b.useRef(null),f=b.useRef(null),m=b.useRef(null),g=b.useRef(null),w=b.useRef(!1),C=b.useRef(null),S=Dn(nf(t),C),E=b.useRef(null);b.useEffect(()=>{!l||!C.current||(w.current=!n)},[n,l]),b.useEffect(()=>{if(!l||!C.current)return;const k=io(C.current);return C.current.contains(k.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),w.current&&C.current.focus()),()=>{o||(m.current&&m.current.focus&&(u.current=!0,m.current.focus()),m.current=null)}},[l]),b.useEffect(()=>{if(!l||!C.current)return;const k=io(C.current),R=j=>{E.current=j,!(r||!a()||j.key!=="Tab")&&k.activeElement===C.current&&j.shiftKey&&(u.current=!0,f.current&&f.current.focus())},P=()=>{var D,_;const j=C.current;if(j===null)return;if(!k.hasFocus()||!a()||u.current){u.current=!1;return}if(j.contains(k.activeElement)||r&&k.activeElement!==d.current&&k.activeElement!==f.current)return;if(k.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!w.current)return;let F=[];if((k.activeElement===d.current||k.activeElement===f.current)&&(F=i(C.current)),F.length>0){const $=!!((D=E.current)!=null&&D.shiftKey&&((_=E.current)==null?void 0:_.key)==="Tab"),B=F[0],V=F[F.length-1];typeof B!="string"&&typeof V!="string"&&($?V.focus():B.focus())}else j.focus()};k.addEventListener("focusin",P),k.addEventListener("keydown",R,!0);const O=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&P()},50);return()=>{clearInterval(O),k.removeEventListener("focusin",P),k.removeEventListener("keydown",R,!0)}},[n,r,o,a,l,i]);const T=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0,g.current=k.target;const R=t.props.onFocus;R&&R(k)},I=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0};return y.jsxs(b.Fragment,{children:[y.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:d,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:S,onFocus:T}),y.jsx("div",{tabIndex:l?0:-1,onFocus:I,ref:f,"data-testid":"sentinelEnd"})]})}function iQ(e){return typeof e=="function"?e():e}function aQ(e){return e?e.props.hasOwnProperty("in"):!1}const ID=()=>{},ZC=new QZ;function sQ(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:u,open:d,rootRef:f}=e,m=b.useRef({}),g=b.useRef(null),w=b.useRef(null),C=Dn(w,f),[S,E]=b.useState(!d),T=aQ(l);let I=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(I=!1);const k=()=>io(g.current),R=()=>(m.current.modalRef=w.current,m.current.mount=g.current,m.current),P=()=>{ZC.mount(R(),{disableScrollLock:r}),w.current&&(w.current.scrollTop=0)},O=Vt(()=>{const G=iQ(t)||k().body;ZC.add(R(),G),w.current&&P()}),j=()=>ZC.isTopModal(R()),F=Vt(G=>{g.current=G,G&&(d&&j()?P():w.current&&Uv(w.current,I))}),D=b.useCallback(()=>{ZC.remove(R(),I)},[I]);b.useEffect(()=>()=>{D()},[D]),b.useEffect(()=>{d?O():(!T||!o)&&D()},[d,D,T,o,O]);const _=G=>N=>{var H;(H=G.onKeyDown)==null||H.call(G,N),!(N.key!=="Escape"||N.which===229||!j())&&(n||(N.stopPropagation(),u&&u(N,"escapeKeyDown")))},$=G=>N=>{var H;(H=G.onClick)==null||H.call(G,N),N.target===N.currentTarget&&u&&u(N,"backdropClick")};return{getRootProps:(G={})=>{const N=u2(e);delete N.onTransitionEnter,delete N.onTransitionExited;const H={...N,...G};return{role:"presentation",...H,onKeyDown:_(H),ref:C}},getBackdropProps:(G={})=>{const N=G;return{"aria-hidden":!0,...N,onClick:$(N),open:d}},getTransitionProps:()=>{const G=()=>{E(!1),i&&i()},N=()=>{E(!0),a&&a(),o&&D()};return{onEnter:q4(G,(l==null?void 0:l.props.onEnter)??ID),onExited:q4(N,(l==null?void 0:l.props.onExited)??ID)}},rootRef:C,portalRef:F,isTopModal:j,exited:S,hasTransition:T}}function lQ(e){return kt("MuiModal",e)}Pt("MuiModal",["root","hidden","backdrop"]);const cQ=e=>{const{open:t,exited:n,classes:r}=e;return st({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},lQ,r)},uQ=Te("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Rt(({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"}}]}))),dQ=Te($F,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),YR=b.forwardRef(function(t,n){const r=zt({name:"MuiModal",props:t}),{BackdropComponent:o=dQ,BackdropProps:i,classes:a,className:l,closeAfterTransition:u=!1,children:d,container:f,component:m,components:g={},componentsProps:w={},disableAutoFocus:C=!1,disableEnforceFocus:S=!1,disableEscapeKeyDown:E=!1,disablePortal:T=!1,disableRestoreFocus:I=!1,disableScrollLock:k=!1,hideBackdrop:R=!1,keepMounted:P=!1,onClose:O,onTransitionEnter:j,onTransitionExited:F,open:D,slotProps:_={},slots:$={},theme:B,...V}=r,q={...r,closeAfterTransition:u,disableAutoFocus:C,disableEnforceFocus:S,disableEscapeKeyDown:E,disablePortal:T,disableRestoreFocus:I,disableScrollLock:k,hideBackdrop:R,keepMounted:P},{getRootProps:G,getBackdropProps:N,getTransitionProps:H,portalRef:Y,isTopModal:Q,exited:W,hasTransition:K}=sQ({...q,rootRef:n}),J={...q,exited:W},ae=cQ(J),ce={};if(d.props.tabIndex===void 0&&(ce.tabIndex="-1"),K){const{onEnter:le,onExited:ve}=H();ce.onEnter=le,ce.onExited=ve}const de={slots:{root:g.Root,backdrop:g.Backdrop,...$},slotProps:{...w,..._}},[re,ke]=Ot("root",{ref:n,elementType:uQ,externalForwardedProps:{...de,...V,component:m},getSlotProps:G,ownerState:J,className:Ve(l,ae==null?void 0:ae.root,!J.open&&J.exited&&(ae==null?void 0:ae.hidden))}),[Ce,ie]=Ot("backdrop",{ref:i==null?void 0:i.ref,elementType:o,externalForwardedProps:de,shouldForwardComponentProp:!0,additionalProps:i,getSlotProps:le=>N({...le,onClick:ve=>{le!=null&&le.onClick&&le.onClick(ve)}}),className:Ve(i==null?void 0:i.className,ae==null?void 0:ae.backdrop),ownerState:J});return!P&&!D&&(!K||W)?null:y.jsx(_F,{ref:Y,container:f,disablePortal:T,children:y.jsxs(re,{...ke,children:[!R&&o?y.jsx(Ce,{...ie}):null,y.jsx(UF,{disableEnforceFocus:S,disableAutoFocus:C,disableRestoreFocus:I,isEnabled:Q,open:D,children:b.cloneElement(d,ce)})]})})});function fQ(e){return kt("MuiDialog",e)}const Bk=Pt("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),GF=b.createContext({}),pQ=Te($F,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),hQ=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:o,fullScreen:i}=e,a={root:["root"],container:["container",`scroll${Be(n)}`],paper:["paper",`paperScroll${Be(n)}`,`paperWidth${Be(String(r))}`,o&&"paperFullWidth",i&&"paperFullScreen"]};return st(a,fQ,t)},mQ=Te(YR,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),gQ=Te("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Be(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"}}}]}),bQ=Te(bl,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Be(n.scroll)}`],t[`paperWidth${Be(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Rt(({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)`,[`&.${Bk.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}`,[`&.${Bk.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,[`&.${Bk.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),yQ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiDialog"}),o=bo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":l,"aria-modal":u=!0,BackdropComponent:d,BackdropProps:f,children:m,className:g,disableEscapeKeyDown:w=!1,fullScreen:C=!1,fullWidth:S=!1,maxWidth:E="sm",onClick:T,onClose:I,open:k,PaperComponent:R=bl,PaperProps:P={},scroll:O="paper",slots:j={},slotProps:F={},TransitionComponent:D=DI,transitionDuration:_=i,TransitionProps:$,...B}=r,V={...r,disableEscapeKeyDown:w,fullScreen:C,fullWidth:S,maxWidth:E,scroll:O},q=hQ(V),G=b.useRef(),N=me=>{G.current=me.target===me.currentTarget},H=me=>{T&&T(me),G.current&&(G.current=null,I&&I(me,"backdropClick"))},Y=Mn(l),Q=b.useMemo(()=>({titleId:Y}),[Y]),W={transition:D,...j},K={transition:$,paper:P,backdrop:f,...F},J={slots:W,slotProps:K},[ae,ce]=Ot("root",{elementType:mQ,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:V,className:Ve(q.root,g),ref:n}),[de,re]=Ot("backdrop",{elementType:pQ,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:V}),[ke,Ce]=Ot("paper",{elementType:bQ,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:V,className:Ve(q.paper,P.className)}),[ie,le]=Ot("container",{elementType:gQ,externalForwardedProps:J,ownerState:V,className:q.container}),[ve,ue]=Ot("transition",{elementType:DI,externalForwardedProps:J,ownerState:V,additionalProps:{appear:!0,in:k,timeout:_,role:"presentation"}});return y.jsx(ae,{closeAfterTransition:!0,slots:{backdrop:de},slotProps:{backdrop:{transitionDuration:_,as:d,...re}},disableEscapeKeyDown:w,onClose:I,open:k,onClick:H,...ce,...B,children:y.jsx(ve,{...ue,children:y.jsx(ie,{onMouseDown:N,...le,children:y.jsx(ke,{as:R,elevation:24,role:"dialog","aria-describedby":a,"aria-labelledby":Y,"aria-modal":u,...Ce,children:y.jsx(GF.Provider,{value:Q,children:m})})})})})});function vQ(e){return kt("MuiDialogActions",e)}Pt("MuiDialogActions",["root","spacing"]);const xQ=e=>{const{classes:t,disableSpacing:n}=e;return st({root:["root",!n&&"spacing"]},vQ,t)},wQ=Te("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}}}]}),CQ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiDialogActions"}),{className:o,disableSpacing:i=!1,...a}=r,l={...r,disableSpacing:i},u=xQ(l);return y.jsx(wQ,{className:Ve(u.root,o),ownerState:l,ref:n,...a})});function SQ(e){return kt("MuiDialogContent",e)}Pt("MuiDialogContent",["root","dividers"]);function EQ(e){return kt("MuiDialogTitle",e)}const TQ=Pt("MuiDialogTitle",["root"]),MQ=e=>{const{classes:t,dividers:n}=e;return st({root:["root",n&&"dividers"]},SQ,t)},kQ=Te("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Rt(({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:{[`.${TQ.root} + &`]:{paddingTop:0}}}]}))),PQ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiDialogContent"}),{className:o,dividers:i=!1,...a}=r,l={...r,dividers:i},u=MQ(l);return y.jsx(kQ,{className:Ve(u.root,o),ownerState:l,ref:n,...a})}),IQ=e=>{const{classes:t}=e;return st({root:["root"]},EQ,t)},AQ=Te(Jt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),RQ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiDialogTitle"}),{className:o,id:i,...a}=r,l=r,u=IQ(l),{titleId:d=i}=b.useContext(GF);return y.jsx(AQ,{component:"h2",className:Ve(u.root,o),ownerState:l,ref:n,variant:"h6",id:i??d,...a})});function OQ(e){return kt("MuiDivider",e)}const AD=Pt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),_Q=e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:u}=e;return st({root:["root",t&&"absolute",u,i&&"light",a==="vertical"&&"vertical",o&&"flexItem",n&&"withChildren",n&&a==="vertical"&&"withChildrenVertical",l==="right"&&a!=="vertical"&&"textAlignRight",l==="left"&&a!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",a==="vertical"&&"wrapperVertical"]},OQ,r)},DQ=Te("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]}})(Rt(({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)`:cn(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%"}}}]}))),LQ=Te("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Rt(({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)`}}]}))),Zi=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiDivider"}),{absolute:o=!1,children:i,className:a,orientation:l="horizontal",component:u=i||l==="vertical"?"div":"hr",flexItem:d=!1,light:f=!1,role:m=u!=="hr"?"separator":void 0,textAlign:g="center",variant:w="fullWidth",...C}=r,S={...r,absolute:o,component:u,flexItem:d,light:f,orientation:l,role:m,textAlign:g,variant:w},E=_Q(S);return y.jsx(DQ,{as:u,className:Ve(E.root,a),role:m,ref:n,ownerState:S,"aria-orientation":m==="separator"&&(u!=="hr"||l==="vertical")?l:void 0,...C,children:i?y.jsx(LQ,{className:E.wrapper,ownerState:S,children:i}):null})});Zi&&(Zi.muiSkipListHighlight=!0);function $Q(e,t,n){const r=t.getBoundingClientRect(),o=n&&n.getBoundingClientRect(),i=Ma(t);let a;if(t.fakeTransform)a=t.fakeTransform;else{const d=i.getComputedStyle(t);a=d.getPropertyValue("-webkit-transform")||d.getPropertyValue("transform")}let l=0,u=0;if(a&&a!=="none"&&typeof a=="string"){const d=a.split("(")[1].split(")")[0].split(",");l=parseInt(d[4],10),u=parseInt(d[5],10)}return e==="left"?o?`translateX(${o.right+l-r.left}px)`:`translateX(${i.innerWidth+l-r.left}px)`:e==="right"?o?`translateX(-${r.right-o.left-l}px)`:`translateX(-${r.left+r.width-l}px)`:e==="up"?o?`translateY(${o.bottom+u-r.top}px)`:`translateY(${i.innerHeight+u-r.top}px)`:o?`translateY(-${r.top-o.top+r.height-u}px)`:`translateY(-${r.top+r.height-u}px)`}function jQ(e){return typeof e=="function"?e():e}function QC(e,t,n){const r=jQ(n),o=$Q(e,t,r);o&&(t.style.webkitTransform=o,t.style.transform=o)}const FQ=b.forwardRef(function(t,n){const r=bo(),o={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:u,container:d,direction:f="down",easing:m=o,in:g,onEnter:w,onEntered:C,onEntering:S,onExit:E,onExited:T,onExiting:I,style:k,timeout:R=i,TransitionComponent:P=Os,...O}=t,j=b.useRef(null),F=Dn(nf(u),j,n),D=Y=>Q=>{Y&&(Q===void 0?Y(j.current):Y(j.current,Q))},_=D((Y,Q)=>{QC(f,Y,d),FR(Y),w&&w(Y,Q)}),$=D((Y,Q)=>{const W=qd({timeout:R,style:k,easing:m},{mode:"enter"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",{...W}),Y.style.transition=r.transitions.create("transform",{...W}),Y.style.webkitTransform="none",Y.style.transform="none",S&&S(Y,Q)}),B=D(C),V=D(I),q=D(Y=>{const Q=qd({timeout:R,style:k,easing:m},{mode:"exit"});Y.style.webkitTransition=r.transitions.create("-webkit-transform",Q),Y.style.transition=r.transitions.create("transform",Q),QC(f,Y,d),E&&E(Y)}),G=D(Y=>{Y.style.webkitTransition="",Y.style.transition="",T&&T(Y)}),N=Y=>{a&&a(j.current,Y)},H=b.useCallback(()=>{j.current&&QC(f,j.current,d)},[f,d]);return b.useEffect(()=>{if(g||f==="down"||f==="right")return;const Y=Sh(()=>{j.current&&QC(f,j.current,d)}),Q=Ma(j.current);return Q.addEventListener("resize",Y),()=>{Y.clear(),Q.removeEventListener("resize",Y)}},[f,g,d]),b.useEffect(()=>{g||H()},[g,H]),y.jsx(P,{nodeRef:j,onEnter:_,onEntered:B,onEntering:$,onExit:q,onExited:G,onExiting:V,addEndListener:N,appear:l,in:g,timeout:R,...O,children:(Y,{ownerState:Q,...W})=>b.cloneElement(u,{ref:F,style:{visibility:Y==="exited"&&!g?"hidden":void 0,...k,...u.props.style},...W})})});function NQ(e){return kt("MuiDrawer",e)}Pt("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const VF=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},zQ=e=>{const{classes:t,anchor:n,variant:r}=e,o={root:["root",`anchor${Be(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Be(n)}`,r!=="temporary"&&`paperAnchorDocked${Be(n)}`]};return st(o,NQ,t)},BQ=Te(YR,{name:"MuiDrawer",slot:"Root",overridesResolver:VF})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),HQ=Te("div",{shouldForwardProp:Li,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:VF})({flex:"0 0 auto"}),UQ=Te(bl,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Be(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Be(n.anchor)}`]]}})(Rt(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),WF={left:"right",right:"left",top:"down",bottom:"up"};function GQ(e){return["left","right"].includes(e)}function VQ({direction:e},t){return e==="rtl"&&GQ(t)?WF[t]:t}const Gv=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiDrawer"}),o=bo(),i=Lo(),a={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{anchor:l="left",BackdropProps:u,children:d,className:f,elevation:m=16,hideBackdrop:g=!1,ModalProps:{BackdropProps:w,...C}={},onClose:S,open:E=!1,PaperProps:T={},SlideProps:I,TransitionComponent:k,transitionDuration:R=a,variant:P="temporary",slots:O={},slotProps:j={},...F}=r,D=b.useRef(!1);b.useEffect(()=>{D.current=!0},[]);const _=VQ({direction:i?"rtl":"ltr"},l),B={...r,anchor:l,elevation:m,open:E,variant:P,...F},V=zQ(B),q={slots:{transition:k,...O},slotProps:{paper:T,transition:I,...j,backdrop:DR(j.backdrop||{...u,...w},{transitionDuration:R})}},[G,N]=Ot("root",{ref:n,elementType:BQ,className:Ve(V.root,V.modal,f),shouldForwardComponentProp:!0,ownerState:B,externalForwardedProps:{...q,...F,...C},additionalProps:{open:E,onClose:S,hideBackdrop:g,slots:{backdrop:q.slots.backdrop},slotProps:{backdrop:q.slotProps.backdrop}}}),[H,Y]=Ot("paper",{elementType:UQ,shouldForwardComponentProp:!0,className:Ve(V.paper,T.className),ownerState:B,externalForwardedProps:q,additionalProps:{elevation:P==="temporary"?m:0,square:!0}}),[Q,W]=Ot("docked",{elementType:HQ,ref:n,className:Ve(V.root,V.docked,f),ownerState:B,externalForwardedProps:q,additionalProps:F}),[K,J]=Ot("transition",{elementType:FQ,ownerState:B,externalForwardedProps:q,additionalProps:{in:E,direction:WF[_],timeout:R,appear:D.current}}),ae=y.jsx(H,{...Y,children:d});if(P==="permanent")return y.jsx(Q,{...W,children:ae});const ce=y.jsx(K,{...J,children:ae});return P==="persistent"?y.jsx(Q,{...W,children:ce}):y.jsx(G,{...N,children:ce})}),WQ=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:o,size:i,hiddenLabel:a,multiline:l}=e,u={root:["root",!n&&"underline",r&&"adornedStart",o&&"adornedEnd",i==="small"&&`size${Be(i)}`,a&&"hiddenLabel",l&&"multiline"],input:["input"]},d=st(u,RX,t);return{...t,...d}},qQ=Te(JE,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ZE(e,t),!n.disableUnderline&&t.underline]}})(Rt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",i=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,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:o,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Na.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Na.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:i},variants:[{props:({ownerState:a})=>!a.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"},[`&.${Na.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Na.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(.${Na.disabled}, .${Na.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Na.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lr()).map(([a])=>{var l;return{props:{disableUnderline:!1,color:a},style:{"&::after":{borderBottom:`2px solid ${(l=(e.vars||e).palette[a])==null?void 0:l.main}`}}}}),{props:({ownerState:a})=>a.startAdornment,style:{paddingLeft:12}},{props:({ownerState:a})=>a.endAdornment,style:{paddingRight:12}},{props:({ownerState:a})=>a.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:a,size:l})=>a.multiline&&l==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:a})=>a.multiline&&a.hiddenLabel&&a.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),YQ=Te(eT,{name:"MuiFilledInput",slot:"Input",overridesResolver:QE})(Rt(({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}}]}))),KR=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiFilledInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:l=!1,hiddenLabel:u,inputComponent:d="input",multiline:f=!1,slotProps:m,slots:g={},type:w="text",...C}=r,S={...r,disableUnderline:o,fullWidth:l,inputComponent:d,multiline:f,type:w},E=WQ(r),T={root:{ownerState:S},input:{ownerState:S}},I=m??a?ei(T,m??a):T,k=g.root??i.Root??qQ,R=g.input??i.Input??YQ;return y.jsx(zx,{slots:{root:k,input:R},slotProps:I,fullWidth:l,inputComponent:d,multiline:f,ref:n,type:w,...C,classes:E})});KR.muiName="Input";function KQ(e){return kt("MuiFormControl",e)}Pt("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const XQ=e=>{const{classes:t,margin:n,fullWidth:r}=e,o={root:["root",n!=="none"&&`margin${Be(n)}`,r&&"fullWidth"]};return st(o,KQ,t)},ZQ=Te("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Be(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%"}}]}),Hx=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiFormControl"}),{children:o,className:i,color:a="primary",component:l="div",disabled:u=!1,error:d=!1,focused:f,fullWidth:m=!1,hiddenLabel:g=!1,margin:w="none",required:C=!1,size:S="medium",variant:E="outlined",...T}=r,I={...r,color:a,component:l,disabled:u,error:d,fullWidth:m,hiddenLabel:g,margin:w,required:C,size:S,variant:E},k=XQ(I),[R,P]=b.useState(()=>{let G=!1;return o&&b.Children.forEach(o,N=>{if(!FS(N,["Input","Select"]))return;const H=FS(N,["Select"])?N.props.input:N;H&&MX(H.props)&&(G=!0)}),G}),[O,j]=b.useState(()=>{let G=!1;return o&&b.Children.forEach(o,N=>{FS(N,["Input","Select"])&&(h2(N.props,!0)||h2(N.props.inputProps,!0))&&(G=!0)}),G}),[F,D]=b.useState(!1);u&&F&&D(!1);const _=f!==void 0&&!u?f:F;let $;b.useRef(!1);const B=b.useCallback(()=>{j(!0)},[]),V=b.useCallback(()=>{j(!1)},[]),q=b.useMemo(()=>({adornedStart:R,setAdornedStart:P,color:a,disabled:u,error:d,filled:O,focused:_,fullWidth:m,hiddenLabel:g,size:S,onBlur:()=>{D(!1)},onFocus:()=>{D(!0)},onEmpty:V,onFilled:B,registerEffect:$,required:C,variant:E}),[R,a,u,d,O,_,m,g,$,V,B,C,S,E]);return y.jsx(XE.Provider,{value:q,children:y.jsx(ZQ,{as:l,ownerState:I,className:Ve(k.root,i),ref:n,...T,children:o})})});function QQ(e){return kt("MuiFormControlLabel",e)}const qg=Pt("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),JQ=e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e,a={root:["root",n&&"disabled",`labelPlacement${Be(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]};return st(a,QQ,t)},eJ=Te("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${qg.label}`]:t.label},t.root,t[`labelPlacement${Be(n.labelPlacement)}`]]}})(Rt(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${qg.disabled}`]:{cursor:"default"},[`& .${qg.label}`]:{[`&.${qg.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}}]}))),tJ=Te("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Rt(({theme:e})=>({[`&.${qg.error}`]:{color:(e.vars||e).palette.error.main}}))),qF=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiFormControlLabel"}),{checked:o,className:i,componentsProps:a={},control:l,disabled:u,disableTypography:d,inputRef:f,label:m,labelPlacement:g="end",name:w,onChange:C,required:S,slots:E={},slotProps:T={},value:I,...k}=r,R=Cu(),P=u??l.props.disabled??(R==null?void 0:R.disabled),O=S??l.props.required,j={disabled:P,required:O};["checked","name","onChange","value","inputRef"].forEach(G=>{typeof l.props[G]>"u"&&typeof r[G]<"u"&&(j[G]=r[G])});const F=Eh({props:r,muiFormControl:R,states:["error"]}),D={...r,disabled:P,labelPlacement:g,required:O,error:F.error},_=JQ(D),$={slots:E,slotProps:{...a,...T}},[B,V]=Ot("typography",{elementType:Jt,externalForwardedProps:$,ownerState:D});let q=m;return q!=null&&q.type!==Jt&&!d&&(q=y.jsx(B,{component:"span",...V,className:Ve(_.label,V==null?void 0:V.className),children:q})),y.jsxs(eJ,{className:Ve(_.root,i),ownerState:D,ref:n,...k,children:[b.cloneElement(l,j),O?y.jsxs("div",{children:[q,y.jsxs(tJ,{ownerState:D,"aria-hidden":!0,className:_.asterisk,children:[" ","*"]})]}):q]})});function nJ(e){return kt("MuiFormHelperText",e)}const RD=Pt("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var OD;const rJ=e=>{const{classes:t,contained:n,size:r,disabled:o,error:i,filled:a,focused:l,required:u}=e,d={root:["root",o&&"disabled",i&&"error",r&&`size${Be(r)}`,n&&"contained",l&&"focused",a&&"filled",u&&"required"]};return st(d,nJ,t)},oJ=Te("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Be(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Rt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${RD.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${RD.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}}]}))),YF=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiFormHelperText"}),{children:o,className:i,component:a="p",disabled:l,error:u,filled:d,focused:f,margin:m,required:g,variant:w,...C}=r,S=Cu(),E=Eh({props:r,muiFormControl:S,states:["variant","size","disabled","error","filled","focused","required"]}),T={...r,component:a,contained:E.variant==="filled"||E.variant==="outlined",variant:E.variant,size:E.size,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required};delete T.ownerState;const I=rJ(T);return y.jsx(oJ,{as:a,className:Ve(I.root,i),ref:n,...C,ownerState:T,children:o===" "?OD||(OD=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):o})});function iJ(e){return kt("MuiFormLabel",e)}const Vv=Pt("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),aJ=e=>{const{classes:t,color:n,focused:r,disabled:o,error:i,filled:a,required:l}=e,u={root:["root",`color${Be(n)}`,o&&"disabled",i&&"error",a&&"filled",r&&"focused",l&&"required"],asterisk:["asterisk",i&&"error"]};return st(u,iJ,t)},sJ=Te("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Rt(({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(Lr()).map(([t])=>({props:{color:t},style:{[`&.${Vv.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Vv.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vv.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),lJ=Te("span",{name:"MuiFormLabel",slot:"Asterisk"})(Rt(({theme:e})=>({[`&.${Vv.error}`]:{color:(e.vars||e).palette.error.main}}))),cJ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiFormLabel"}),{children:o,className:i,color:a,component:l="label",disabled:u,error:d,filled:f,focused:m,required:g,...w}=r,C=Cu(),S=Eh({props:r,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),E={...r,color:S.color||"primary",component:l,disabled:S.disabled,error:S.error,filled:S.filled,focused:S.focused,required:S.required},T=aJ(E);return y.jsxs(sJ,{as:l,ownerState:E,className:Ve(T.root,i),ref:n,...w,children:[o,S.required&&y.jsxs(lJ,{ownerState:E,"aria-hidden":!0,className:T.asterisk,children:[" ","*"]})]})});function $I(e){return`scale(${e}, ${e**2})`}const uJ={entering:{opacity:1,transform:$I(1)},entered:{opacity:1,transform:"none"}},Hk=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),dh=b.forwardRef(function(t,n){const{addEndListener:r,appear:o=!0,children:i,easing:a,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:m,onExited:g,onExiting:w,style:C,timeout:S="auto",TransitionComponent:E=Os,...T}=t,I=ya(),k=b.useRef(),R=bo(),P=b.useRef(null),O=Dn(P,nf(i),n),j=G=>N=>{if(G){const H=P.current;N===void 0?G(H):G(H,N)}},F=j(f),D=j((G,N)=>{FR(G);const{duration:H,delay:Y,easing:Q}=qd({style:C,timeout:S,easing:a},{mode:"enter"});let W;S==="auto"?(W=R.transitions.getAutoHeightDuration(G.clientHeight),k.current=W):W=H,G.style.transition=[R.transitions.create("opacity",{duration:W,delay:Y}),R.transitions.create("transform",{duration:Hk?W:W*.666,delay:Y,easing:Q})].join(","),u&&u(G,N)}),_=j(d),$=j(w),B=j(G=>{const{duration:N,delay:H,easing:Y}=qd({style:C,timeout:S,easing:a},{mode:"exit"});let Q;S==="auto"?(Q=R.transitions.getAutoHeightDuration(G.clientHeight),k.current=Q):Q=N,G.style.transition=[R.transitions.create("opacity",{duration:Q,delay:H}),R.transitions.create("transform",{duration:Hk?Q:Q*.666,delay:Hk?H:H||Q*.333,easing:Y})].join(","),G.style.opacity=0,G.style.transform=$I(.75),m&&m(G)}),V=j(g),q=G=>{S==="auto"&&I.start(k.current||0,G),r&&r(P.current,G)};return y.jsx(E,{appear:o,in:l,nodeRef:P,onEnter:D,onEntered:_,onEntering:F,onExit:B,onExited:V,onExiting:$,addEndListener:q,timeout:S==="auto"?null:S,...T,children:(G,{ownerState:N,...H})=>b.cloneElement(i,{style:{opacity:0,transform:$I(.75),visibility:G==="exited"&&!l?"hidden":void 0,...uJ[G],...C,...i.props.style},ref:O,...H})})});dh&&(dh.muiSupportAuto=!0);const dJ=e=>{const{classes:t,disableUnderline:n}=e,o=st({root:["root",!n&&"underline"],input:["input"]},IX,t);return{...t,...o}},fJ=Te(JE,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ZE(e,t),!n.disableUnderline&&t.underline]}})(Rt(({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:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.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"},[`&.${Ld.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ld.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(.${Ld.disabled}, .${Ld.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Ld.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Lr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),pJ=Te(eT,{name:"MuiInput",slot:"Input",overridesResolver:QE})({}),XR=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiInput"}),{disableUnderline:o=!1,components:i={},componentsProps:a,fullWidth:l=!1,inputComponent:u="input",multiline:d=!1,slotProps:f,slots:m={},type:g="text",...w}=r,C=dJ(r),E={root:{ownerState:{disableUnderline:o}}},T=f??a?ei(f??a,E):E,I=m.root??i.Root??fJ,k=m.input??i.Input??pJ;return y.jsx(zx,{slots:{root:I,input:k},slotProps:T,fullWidth:l,inputComponent:u,multiline:d,ref:n,type:g,...w,classes:C})});XR.muiName="Input";function hJ(e){return kt("MuiInputAdornment",e)}const jI=Pt("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var _D;const mJ=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Be(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},gJ=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e,l={root:["root",n&&"disablePointerEvents",o&&`position${Be(o)}`,a,r&&"hiddenLabel",i&&`size${Be(i)}`]};return st(l,hJ,t)},bJ=Te("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:mJ})(Rt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${jI.positionStart}&:not(.${jI.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Yd=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiInputAdornment"}),{children:o,className:i,component:a="div",disablePointerEvents:l=!1,disableTypography:u=!1,position:d,variant:f,...m}=r,g=Cu()||{};let w=f;f&&g.variant,g&&!w&&(w=g.variant);const C={...r,hiddenLabel:g.hiddenLabel,size:g.size,disablePointerEvents:l,position:d,variant:w},S=gJ(C);return y.jsx(XE.Provider,{value:null,children:y.jsx(bJ,{as:a,ownerState:C,className:Ve(S.root,i),ref:n,...m,children:typeof o=="string"&&!u?y.jsx(Jt,{color:"textSecondary",children:o}):y.jsxs(b.Fragment,{children:[d==="start"?_D||(_D=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,o]})})})});function yJ(e){return kt("MuiInputLabel",e)}Pt("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const vJ=e=>{const{classes:t,formControl:n,size:r,shrink:o,disableAnimation:i,variant:a,required:l}=e,u={root:["root",n&&"formControl",!i&&"animated",o&&"shrink",r&&r!=="medium"&&`size${Be(r)}`,a],asterisk:[l&&"asterisk"]},d=st(u,yJ,t);return{...t,...d}},xJ=Te(cJ,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vv.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]]}})(Rt(({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:r})=>t==="filled"&&n.shrink&&r==="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)"}}]}))),nT=b.forwardRef(function(t,n){const r=zt({name:"MuiInputLabel",props:t}),{disableAnimation:o=!1,margin:i,shrink:a,variant:l,className:u,...d}=r,f=Cu();let m=a;typeof m>"u"&&f&&(m=f.filled||f.focused||f.adornedStart);const g=Eh({props:r,muiFormControl:f,states:["size","variant","required","focused"]}),w={...r,disableAnimation:o,formControl:f,shrink:m,size:g.size,variant:g.variant,required:g.required,focused:g.focused},C=vJ(w);return y.jsx(xJ,{"data-shrink":m,ref:n,className:Ve(C.root,u),...d,ownerState:w,classes:C})});function wJ(e){return kt("MuiLinearProgress",e)}Pt("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","bar1","bar2","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const FI=4,NI=As`
  0% {
    left: -35%;
    right: 100%;
  }

  60% {
    left: 100%;
    right: -90%;
  }

  100% {
    left: 100%;
    right: -90%;
  }
`,CJ=typeof NI!="string"?ef`
        animation: ${NI} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
      `:null,zI=As`
  0% {
    left: -200%;
    right: 100%;
  }

  60% {
    left: 107%;
    right: -8%;
  }

  100% {
    left: 107%;
    right: -8%;
  }
`,SJ=typeof zI!="string"?ef`
        animation: ${zI} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
      `:null,BI=As`
  0% {
    opacity: 1;
    background-position: 0 -23px;
  }

  60% {
    opacity: 0;
    background-position: 0 -23px;
  }

  100% {
    opacity: 1;
    background-position: -200px -23px;
  }
`,EJ=typeof BI!="string"?ef`
        animation: ${BI} 3s infinite linear;
      `:null,TJ=e=>{const{classes:t,variant:n,color:r}=e,o={root:["root",`color${Be(r)}`,n],dashed:["dashed",`dashedColor${Be(r)}`],bar1:["bar","bar1",`barColor${Be(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar","bar2",n!=="buffer"&&`barColor${Be(r)}`,n==="buffer"&&`color${Be(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return st(o,wJ,t)},ZR=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?hu(e.palette[t].main,.62):pu(e.palette[t].main,.5),MJ=Te("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Be(n.color)}`],t[n.variant]]}})(Rt(({theme:e})=>({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},variants:[...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{color:t},style:{backgroundColor:ZR(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)"}}]}))),kJ=Te("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Be(n.color)}`]]}})(Rt(({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(Lr()).map(([t])=>{const n=ZR(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),EJ||{animation:`${BI} 3s infinite linear`}),PJ=Te("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar1,t[`barColor${Be(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(Rt(({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(Lr()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:"determinate"},style:{transition:`transform .${FI}s linear`}},{props:{variant:"buffer"},style:{zIndex:1,transition:`transform .${FI}s linear`}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:CJ||{animation:`${NI} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}}]}))),IJ=Te("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t.bar2,t[`barColor${Be(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(Rt(({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(Lr()).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(Lr()).map(([t])=>({props:{color:t,variant:"buffer"},style:{backgroundColor:ZR(e,t),transition:`transform .${FI}s linear`}})),{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:{width:"auto"}},{props:({ownerState:t})=>t.variant==="indeterminate"||t.variant==="query",style:SJ||{animation:`${zI} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}}]}))),AJ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiLinearProgress"}),{className:o,color:i="primary",value:a,valueBuffer:l,variant:u="indeterminate",...d}=r,f={...r,color:i,variant:u},m=TJ(f),g=Lo(),w={},C={bar1:{},bar2:{}};if((u==="determinate"||u==="buffer")&&a!==void 0){w["aria-valuenow"]=Math.round(a),w["aria-valuemin"]=0,w["aria-valuemax"]=100;let S=a-100;g&&(S=-S),C.bar1.transform=`translateX(${S}%)`}if(u==="buffer"&&l!==void 0){let S=(l||0)-100;g&&(S=-S),C.bar2.transform=`translateX(${S}%)`}return y.jsxs(MJ,{className:Ve(m.root,o),ownerState:f,role:"progressbar",...w,ref:n,...d,children:[u==="buffer"?y.jsx(kJ,{className:m.dashed,ownerState:f}):null,y.jsx(PJ,{className:m.bar1,ownerState:f,style:C.bar1}),u==="determinate"?null:y.jsx(IJ,{className:m.bar2,ownerState:f,style:C.bar2})]})});function RJ(e){return kt("MuiLink",e)}const OJ=Pt("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),_J=({theme:e,ownerState:t})=>{const n=t.color,r=Bd(e,`palette.${n}.main`,!1)||Bd(e,`palette.${n}`,!1)||t.color,o=Bd(e,`palette.${n}.mainChannel`)||Bd(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:cn(r,.4)},DD={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},DJ=e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${Be(o)}`,n==="button"&&"button",r&&"focusVisible"]};return st(i,RJ,t)},LJ=Te(Jt,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Be(n.underline)}`],n.component==="button"&&t.button]}})(Rt(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Lr()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:cn(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:cn(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:cn(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${OJ.focusVisible}`]:{outline:"auto"}}}]}))),QR=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiLink"}),o=bo(),{className:i,color:a="primary",component:l="a",onBlur:u,onFocus:d,TypographyClasses:f,underline:m="always",variant:g="inherit",sx:w,...C}=r,[S,E]=b.useState(!1),T=P=>{u0(P.target)||E(!1),u&&u(P)},I=P=>{u0(P.target)&&E(!0),d&&d(P)},k={...r,color:a,component:l,focusVisible:S,underline:m,variant:g},R=DJ(k);return y.jsx(LJ,{color:a,className:Ve(R.root,i),classes:f,component:l,onBlur:T,onFocus:I,ref:n,ownerState:k,variant:g,...C,sx:[...DD[a]===void 0?[{color:a}]:[],...Array.isArray(w)?w:[w]],style:{...C.style,...m==="always"&&a!=="inherit"&&!DD[a]&&{"--Link-underlineColor":_J({theme:o,ownerState:k})}}})}),ul=b.createContext({});function $J(e){return kt("MuiList",e)}Pt("MuiList",["root","padding","dense","subheader"]);const jJ=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return st({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},$J,t)},FJ=Te("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}}]}),KF=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiList"}),{children:o,className:i,component:a="ul",dense:l=!1,disablePadding:u=!1,subheader:d,...f}=r,m=b.useMemo(()=>({dense:l}),[l]),g={...r,component:a,dense:l,disablePadding:u},w=jJ(g);return y.jsx(ul.Provider,{value:m,children:y.jsxs(FJ,{as:a,className:Ve(w.root,i),ref:n,ownerState:g,...f,children:[d,o]})})});function NJ(e){return kt("MuiListItem",e)}Pt("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);function zJ(e){return kt("MuiListItemButton",e)}const zg=Pt("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),BJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},HJ=e=>{const{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:l}=e,d=st({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled",t==="flex-start"&&"alignItemsFlexStart",l&&"selected"]},zJ,n);return{...n,...d}},UJ=Te(gc,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:BJ})(Rt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zg.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${zg.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${zg.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${zg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),GJ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiListItemButton"}),{alignItems:o="center",autoFocus:i=!1,component:a="div",children:l,dense:u=!1,disableGutters:d=!1,divider:f=!1,focusVisibleClassName:m,selected:g=!1,className:w,...C}=r,S=b.useContext(ul),E=b.useMemo(()=>({dense:u||S.dense||!1,alignItems:o,disableGutters:d}),[o,S.dense,u,d]),T=b.useRef(null);kn(()=>{i&&T.current&&T.current.focus()},[i]);const I={...r,alignItems:o,dense:E.dense,disableGutters:d,divider:f,selected:g},k=HJ(I),R=Dn(T,n);return y.jsx(ul.Provider,{value:E,children:y.jsx(UJ,{ref:R,href:C.href||C.to,component:(C.href||C.to)&&a==="div"?"button":a,focusVisibleClassName:Ve(k.focusVisible,m),ownerState:I,className:Ve(k.root,w),...C,classes:k,children:l})})});function VJ(e){return kt("MuiListItemSecondaryAction",e)}Pt("MuiListItemSecondaryAction",["root","disableGutters"]);const WJ=e=>{const{disableGutters:t,classes:n}=e;return st({root:["root",t&&"disableGutters"]},VJ,n)},qJ=Te("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),XF=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiListItemSecondaryAction"}),{className:o,...i}=r,a=b.useContext(ul),l={...r,disableGutters:a.disableGutters},u=WJ(l);return y.jsx(qJ,{className:Ve(u.root,o),ownerState:l,ref:n,...i})});XF.muiName="ListItemSecondaryAction";const YJ=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},KJ=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return st({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider",t==="flex-start"&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"]},NJ,n)},XJ=Te("div",{name:"MuiListItem",slot:"Root",overridesResolver:YJ})(Rt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${zg.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),ZJ=Te("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),QJ=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiListItem"}),{alignItems:o="center",children:i,className:a,component:l,components:u={},componentsProps:d={},ContainerComponent:f="li",ContainerProps:{className:m,...g}={},dense:w=!1,disableGutters:C=!1,disablePadding:S=!1,divider:E=!1,secondaryAction:T,slotProps:I={},slots:k={},...R}=r,P=b.useContext(ul),O=b.useMemo(()=>({dense:w||P.dense||!1,alignItems:o,disableGutters:C}),[o,P.dense,w,C]),j=b.useRef(null),F=b.Children.toArray(i),D=F.length&&FS(F[F.length-1],["ListItemSecondaryAction"]),_={...r,alignItems:o,dense:O.dense,disableGutters:C,disablePadding:S,divider:E,hasSecondaryAction:D},$=KJ(_),B=Dn(j,n),V=k.root||u.Root||XJ,q=I.root||d.root||{},G={className:Ve($.root,q.className,a),...R};let N=l||"li";return D?(N=!G.component&&!l?"div":N,f==="li"&&(N==="li"?N="div":G.component==="li"&&(G.component="div")),y.jsx(ul.Provider,{value:O,children:y.jsxs(ZJ,{as:f,className:Ve($.container,m),ref:B,ownerState:_,...g,children:[y.jsx(V,{...q,...!ax(V)&&{as:N,ownerState:{..._,...q.ownerState}},...G,children:F}),F.pop()]})})):y.jsx(ul.Provider,{value:O,children:y.jsxs(V,{...q,as:N,ref:B,...!ax(V)&&{ownerState:{..._,...q.ownerState}},...G,children:[F,T&&y.jsx(XF,{children:T})]})})});function JJ(e){return kt("MuiListItemIcon",e)}const LD=Pt("MuiListItemIcon",["root","alignItemsFlexStart"]),eee=e=>{const{alignItems:t,classes:n}=e;return st({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},JJ,n)},tee=Te("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Rt(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),sx=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiListItemIcon"}),{className:o,...i}=r,a=b.useContext(ul),l={...r,alignItems:a.alignItems},u=eee(l);return y.jsx(tee,{className:Ve(u.root,o),ownerState:l,ref:n,...i})});function nee(e){return kt("MuiListItemText",e)}const Gp=Pt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),ree=e=>{const{classes:t,inset:n,primary:r,secondary:o,dense:i}=e;return st({root:["root",n&&"inset",i&&"dense",r&&o&&"multiline"],primary:["primary"],secondary:["secondary"]},nee,t)},oee=Te("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gp.primary}`]:t.primary},{[`& .${Gp.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,[`.${rD.root}:where(& .${Gp.primary})`]:{display:"block"},[`.${rD.root}:where(& .${Gp.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),m2=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiListItemText"}),{children:o,className:i,disableTypography:a=!1,inset:l=!1,primary:u,primaryTypographyProps:d,secondary:f,secondaryTypographyProps:m,slots:g={},slotProps:w={},...C}=r,{dense:S}=b.useContext(ul);let E=u??o,T=f;const I={...r,disableTypography:a,inset:l,primary:!!E,secondary:!!T,dense:S},k=ree(I),R={slots:g,slotProps:{primary:d,secondary:m,...w}},[P,O]=Ot("root",{className:Ve(k.root,i),elementType:oee,externalForwardedProps:{...R,...C},ownerState:I,ref:n}),[j,F]=Ot("primary",{className:k.primary,elementType:Jt,externalForwardedProps:R,ownerState:I}),[D,_]=Ot("secondary",{className:k.secondary,elementType:Jt,externalForwardedProps:R,ownerState:I});return E!=null&&E.type!==Jt&&!a&&(E=y.jsx(j,{variant:S?"body2":"body1",component:F!=null&&F.variant?void 0:"span",...F,children:E})),T!=null&&T.type!==Jt&&!a&&(T=y.jsx(D,{variant:"body2",color:"textSecondary",..._,children:T})),y.jsxs(P,{...O,children:[E,T]})});function Uk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function $D(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ZF(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 ev(e,t,n,r,o,i){let a=!1,l=o(e,t,t?n:!1);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const u=r?!1:l.disabled||l.getAttribute("aria-disabled")==="true";if(!l.hasAttribute("tabindex")||!ZF(l,i)||u)l=o(e,l,n);else return l.focus(),!0}return!1}const QF=b.forwardRef(function(t,n){const{actions:r,autoFocus:o=!1,autoFocusItem:i=!1,children:a,className:l,disabledItemsFocusable:u=!1,disableListWrap:d=!1,onKeyDown:f,variant:m="selectedMenu",...g}=t,w=b.useRef(null),C=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});kn(()=>{o&&w.current.focus()},[o]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:R})=>{const P=!w.current.style.width;if(k.clientHeight<w.current.clientHeight&&P){const O=`${HF(Ma(k))}px`;w.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=O,w.current.style.width=`calc(100% + ${O})`}return w.current}}),[]);const S=k=>{const R=w.current,P=k.key;if(k.ctrlKey||k.metaKey||k.altKey){f&&f(k);return}const j=io(R).activeElement;if(P==="ArrowDown")k.preventDefault(),ev(R,j,d,u,Uk);else if(P==="ArrowUp")k.preventDefault(),ev(R,j,d,u,$D);else if(P==="Home")k.preventDefault(),ev(R,null,d,u,Uk);else if(P==="End")k.preventDefault(),ev(R,null,d,u,$D);else if(P.length===1){const F=C.current,D=P.toLowerCase(),_=performance.now();F.keys.length>0&&(_-F.lastTime>500?(F.keys=[],F.repeating=!0,F.previousKeyMatched=!0):F.repeating&&D!==F.keys[0]&&(F.repeating=!1)),F.lastTime=_,F.keys.push(D);const $=j&&!F.repeating&&ZF(j,F);F.previousKeyMatched&&($||ev(R,j,!1,u,Uk,F))?k.preventDefault():F.previousKeyMatched=!1}f&&f(k)},E=Dn(w,n);let T=-1;b.Children.forEach(a,(k,R)=>{if(!b.isValidElement(k)){T===R&&(T+=1,T>=a.length&&(T=-1));return}k.props.disabled||(m==="selectedMenu"&&k.props.selected||T===-1)&&(T=R),T===R&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(T+=1,T>=a.length&&(T=-1))});const I=b.Children.map(a,(k,R)=>{if(R===T){const P={};return i&&(P.autoFocus=!0),k.props.tabIndex===void 0&&m==="selectedMenu"&&(P.tabIndex=0),b.cloneElement(k,P)}return k});return y.jsx(KF,{role:"menu",ref:E,className:l,onKeyDown:S,tabIndex:o?0:-1,...g,children:I})});function iee(e){return kt("MuiPopover",e)}Pt("MuiPopover",["root","paper"]);function jD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function FD(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function ND(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function JC(e){return typeof e=="function"?e():e}const aee=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"]},iee,t)},see=Te(YR,{name:"MuiPopover",slot:"Root"})({}),JF=Te(bl,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),e9=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiPopover"}),{action:o,anchorEl:i,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:d,className:f,container:m,elevation:g=8,marginThreshold:w=16,open:C,PaperProps:S={},slots:E={},slotProps:T={},transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:k,transitionDuration:R="auto",TransitionProps:P={},disableScrollLock:O=!1,...j}=r,F=b.useRef(),D={...r,anchorOrigin:a,anchorReference:u,elevation:g,marginThreshold:w,transformOrigin:I,TransitionComponent:k,transitionDuration:R,TransitionProps:P},_=aee(D),$=b.useCallback(()=>{if(u==="anchorPosition")return l;const le=JC(i),ue=(le&&le.nodeType===1?le:io(F.current).body).getBoundingClientRect();return{top:ue.top+jD(ue,a.vertical),left:ue.left+FD(ue,a.horizontal)}},[i,a.horizontal,a.vertical,l,u]),B=b.useCallback(le=>({vertical:jD(le,I.vertical),horizontal:FD(le,I.horizontal)}),[I.horizontal,I.vertical]),V=b.useCallback(le=>{const ve={width:le.offsetWidth,height:le.offsetHeight},ue=B(ve);if(u==="none")return{top:null,left:null,transformOrigin:ND(ue)};const me=$();let be=me.top-ue.vertical,Fe=me.left-ue.horizontal;const Ze=be+ve.height,We=Fe+ve.width,_e=Ma(JC(i)),ft=_e.innerHeight-w,nt=_e.innerWidth-w;if(w!==null&&be<w){const dt=be-w;be-=dt,ue.vertical+=dt}else if(w!==null&&Ze>ft){const dt=Ze-ft;be-=dt,ue.vertical+=dt}if(w!==null&&Fe<w){const dt=Fe-w;Fe-=dt,ue.horizontal+=dt}else if(We>nt){const dt=We-nt;Fe-=dt,ue.horizontal+=dt}return{top:`${Math.round(be)}px`,left:`${Math.round(Fe)}px`,transformOrigin:ND(ue)}},[i,u,$,B,w]),[q,G]=b.useState(C),N=b.useCallback(()=>{const le=F.current;if(!le)return;const ve=V(le);ve.top!==null&&le.style.setProperty("top",ve.top),ve.left!==null&&(le.style.left=ve.left),le.style.transformOrigin=ve.transformOrigin,G(!0)},[V]);b.useEffect(()=>(O&&window.addEventListener("scroll",N),()=>window.removeEventListener("scroll",N)),[i,O,N]);const H=()=>{N()},Y=()=>{G(!1)};b.useEffect(()=>{C&&N()}),b.useImperativeHandle(o,()=>C?{updatePosition:()=>{N()}}:null,[C,N]),b.useEffect(()=>{if(!C)return;const le=Sh(()=>{N()}),ve=Ma(JC(i));return ve.addEventListener("resize",le),()=>{le.clear(),ve.removeEventListener("resize",le)}},[i,C,N]);let Q=R;const W={slots:{transition:k,...E},slotProps:{transition:P,paper:S,...T}},[K,J]=Ot("transition",{elementType:dh,externalForwardedProps:W,ownerState:D,getSlotProps:le=>({...le,onEntering:(ve,ue)=>{var me;(me=le.onEntering)==null||me.call(le,ve,ue),H()},onExited:ve=>{var ue;(ue=le.onExited)==null||ue.call(le,ve),Y()}}),additionalProps:{appear:!0,in:C}});R==="auto"&&!K.muiSupportAuto&&(Q=void 0);const ae=m||(i?io(JC(i)).body:void 0),[ce,{slots:de,slotProps:re,...ke}]=Ot("root",{ref:n,elementType:see,externalForwardedProps:{...W,...j},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:E.backdrop},slotProps:{backdrop:DR(typeof T.backdrop=="function"?T.backdrop(D):T.backdrop,{invisible:!0})},container:ae,open:C},ownerState:D,className:Ve(_.root,f)}),[Ce,ie]=Ot("paper",{ref:F,className:_.paper,elementType:JF,externalForwardedProps:W,shouldForwardComponentProp:!0,additionalProps:{elevation:g,style:q?void 0:{opacity:0}},ownerState:D});return y.jsx(ce,{...ke,...!ax(ce)&&{slots:de,slotProps:re,disableScrollLock:O},children:y.jsx(K,{...J,timeout:Q,children:y.jsx(Ce,{...ie,children:d})})})});function lee(e){return kt("MuiMenu",e)}Pt("MuiMenu",["root","paper","list"]);const cee={vertical:"top",horizontal:"right"},uee={vertical:"top",horizontal:"left"},dee=e=>{const{classes:t}=e;return st({root:["root"],paper:["paper"],list:["list"]},lee,t)},fee=Te(e9,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),pee=Te(JF,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),hee=Te(QF,{name:"MuiMenu",slot:"List"})({outline:0}),t9=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:i,className:a,disableAutoFocusItem:l=!1,MenuListProps:u={},onClose:d,open:f,PaperProps:m={},PopoverClasses:g,transitionDuration:w="auto",TransitionProps:{onEntering:C,...S}={},variant:E="selectedMenu",slots:T={},slotProps:I={},...k}=r,R=Lo(),P={...r,autoFocus:o,disableAutoFocusItem:l,MenuListProps:u,onEntering:C,PaperProps:m,transitionDuration:w,TransitionProps:S,variant:E},O=dee(P),j=o&&!l&&f,F=b.useRef(null),D=(Q,W)=>{F.current&&F.current.adjustStyleForScrollbar(Q,{direction:R?"rtl":"ltr"}),C&&C(Q,W)},_=Q=>{Q.key==="Tab"&&(Q.preventDefault(),d&&d(Q,"tabKeyDown"))};let $=-1;b.Children.map(i,(Q,W)=>{b.isValidElement(Q)&&(Q.props.disabled||(E==="selectedMenu"&&Q.props.selected||$===-1)&&($=W))});const B={slots:T,slotProps:{list:u,transition:S,paper:m,...I}},V=mi({elementType:T.root,externalSlotProps:I.root,ownerState:P,className:[O.root,a]}),[q,G]=Ot("paper",{className:O.paper,elementType:pee,externalForwardedProps:B,shouldForwardComponentProp:!0,ownerState:P}),[N,H]=Ot("list",{className:Ve(O.list,u.className),elementType:hee,shouldForwardComponentProp:!0,externalForwardedProps:B,getSlotProps:Q=>({...Q,onKeyDown:W=>{var K;_(W),(K=Q.onKeyDown)==null||K.call(Q,W)}}),ownerState:P}),Y=typeof B.slotProps.transition=="function"?B.slotProps.transition(P):B.slotProps.transition;return y.jsx(fee,{onClose:d,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?cee:uee,slots:{root:T.root,paper:q,backdrop:T.backdrop,...T.transition&&{transition:T.transition}},slotProps:{root:V,paper:G,backdrop:typeof I.backdrop=="function"?I.backdrop(P):I.backdrop,transition:{...Y,onEntering:(...Q)=>{var W;D(...Q),(W=Y==null?void 0:Y.onEntering)==null||W.call(Y,...Q)}}},open:f,ref:n,transitionDuration:w,ownerState:P,...k,classes:g,children:y.jsx(N,{actions:F,autoFocus:o&&($===-1||l),autoFocusItem:j,variant:E,...H,children:i})})});function mee(e){return kt("MuiMenuItem",e)}const tv=Pt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),gee=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},bee=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,u=st({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},mee,a);return{...a,...u}},yee=Te(gc,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:gee})(Rt(({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"}},[`&.${tv.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tv.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:cn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tv.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:cn(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})`:cn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tv.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tv.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${AD.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${AD.inset}`]:{marginLeft:52},[`& .${Gp.root}`]:{marginTop:0,marginBottom:0},[`& .${Gp.inset}`]:{paddingLeft:36},[`& .${LD.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,[`& .${LD.root} svg`]:{fontSize:"1.25rem"}}}]}))),fh=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:i="li",dense:a=!1,divider:l=!1,disableGutters:u=!1,focusVisibleClassName:d,role:f="menuitem",tabIndex:m,className:g,...w}=r,C=b.useContext(ul),S=b.useMemo(()=>({dense:a||C.dense||!1,disableGutters:u}),[C.dense,a,u]),E=b.useRef(null);kn(()=>{o&&E.current&&E.current.focus()},[o]);const T={...r,dense:S.dense,divider:l,disableGutters:u},I=bee(r),k=Dn(E,n);let R;return r.disabled||(R=m!==void 0?m:-1),y.jsx(ul.Provider,{value:S,children:y.jsx(yee,{ref:k,role:f,tabIndex:R,component:i,focusVisibleClassName:Ve(I.focusVisible,d),className:Ve(I.root,g),...w,ownerState:T,classes:I})})});function vee(e){return kt("MuiNativeSelect",e)}const JR=Pt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),xee=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Be(n)}`,i&&"iconOpen",r&&"disabled"]};return st(l,vee,t)},n9=Te("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${JR.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}}}]})),wee=Te(n9,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Li,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${JR.multiple}`]:t.multiple}]}})({}),r9=Te("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${JR.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}}]})),Cee=Te(r9,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Be(n.variant)}`],n.open&&t.iconOpen]}})({}),See=b.forwardRef(function(t,n){const{className:r,disabled:o,error:i,IconComponent:a,inputRef:l,variant:u="standard",...d}=t,f={...t,disabled:o,variant:u,error:i},m=xee(f);return y.jsxs(b.Fragment,{children:[y.jsx(wee,{ownerState:f,className:Ve(m.select,r),disabled:o,ref:l||n,...d}),t.multiple?null:y.jsx(Cee,{as:a,ownerState:f,className:m.icon})]})});function Eee(e){const{children:t,defer:n=!1,fallback:r=null}=e,[o,i]=b.useState(!1);return kn(()=>{n||i(!0)},[n]),b.useEffect(()=>{n&&i(!0)},[n]),o?t:r}var zD;const Tee=Te("fieldset",{shouldForwardProp:Li})({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%"}),Mee=Te("legend",{shouldForwardProp:Li})(Rt(({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 kee(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=o!=null&&o!=="",u={...e,notched:i,withLabel:l};return y.jsx(Tee,{"aria-hidden":!0,className:r,ownerState:u,...a,children:y.jsx(Mee,{ownerState:u,children:l?y.jsx("span",{children:o}):zD||(zD=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const Pee=e=>{const{classes:t}=e,r=st({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},AX,t);return{...t,...r}},Iee=Te(JE,{shouldForwardProp:e=>Li(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ZE})(Rt(({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 .${ps.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${ps.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${ps.focused} .${ps.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Lr()).map(([n])=>({props:{color:n},style:{[`&.${ps.focused} .${ps.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${ps.error} .${ps.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${ps.disabled} .${ps.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:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),Aee=Te(kee,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Rt(({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}})),Ree=Te(eT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:QE})(Rt(({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}}]}))),rT=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiOutlinedInput"}),{components:o={},fullWidth:i=!1,inputComponent:a="input",label:l,multiline:u=!1,notched:d,slots:f={},slotProps:m={},type:g="text",...w}=r,C=Pee(r),S=Cu(),E=Eh({props:r,muiFormControl:S,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),T={...r,color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:S,fullWidth:i,hiddenLabel:E.hiddenLabel,multiline:u,size:E.size,type:g},I=f.root??o.Root??Iee,k=f.input??o.Input??Ree,[R,P]=Ot("notchedOutline",{elementType:Aee,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:T,externalForwardedProps:{slots:f,slotProps:m},additionalProps:{label:l!=null&&l!==""&&E.required?y.jsxs(b.Fragment,{children:[l," ","*"]}):l}});return y.jsx(zx,{slots:{root:I,input:k},slotProps:m,renderSuffix:O=>y.jsx(R,{...P,notched:typeof d<"u"?d:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:i,inputComponent:a,multiline:u,ref:n,type:g,...w,classes:{...C,notchedOutline:null}})});rT.muiName="Input";const Oee=Kr(y.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),_ee=Kr(y.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}));function o9(e){return kt("MuiSelect",e)}const nv=Pt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var BD;const Dee=Te(n9,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${nv.select}`]:t.select},{[`&.${nv.select}`]:t[n.variant]},{[`&.${nv.error}`]:t.error},{[`&.${nv.multiple}`]:t.multiple}]}})({[`&.${nv.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Lee=Te(r9,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Be(n.variant)}`],n.open&&t.iconOpen]}})({}),$ee=Te("input",{shouldForwardProp:e=>bF(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function HD(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function jee(e){return e==null||typeof e=="string"&&!e.trim()}const Fee=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,l={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Be(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return st(l,o9,t)},Nee=b.forwardRef(function(t,n){var pt;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:u,defaultOpen:d,defaultValue:f,disabled:m,displayEmpty:g,error:w=!1,IconComponent:C,inputRef:S,labelId:E,MenuProps:T={},multiple:I,name:k,onBlur:R,onChange:P,onClose:O,onFocus:j,onOpen:F,open:D,readOnly:_,renderValue:$,required:B,SelectDisplayProps:V={},tabIndex:q,type:G,value:N,variant:H="standard",...Y}=t,[Q,W]=Qp({controlled:N,default:f,name:"Select"}),[K,J]=Qp({controlled:D,default:d,name:"Select"}),ae=b.useRef(null),ce=b.useRef(null),[de,re]=b.useState(null),{current:ke}=b.useRef(D!=null),[Ce,ie]=b.useState(),le=Dn(n,S),ve=b.useCallback(ht=>{ce.current=ht,ht&&re(ht)},[]),ue=de==null?void 0:de.parentNode;b.useImperativeHandle(le,()=>({focus:()=>{ce.current.focus()},node:ae.current,value:Q}),[Q]),b.useEffect(()=>{d&&K&&de&&!ke&&(ie(a?null:ue.clientWidth),ce.current.focus())},[de,a]),b.useEffect(()=>{i&&ce.current.focus()},[i]),b.useEffect(()=>{if(!E)return;const ht=io(ce.current).getElementById(E);if(ht){const Ct=()=>{getSelection().isCollapsed&&ce.current.focus()};return ht.addEventListener("click",Ct),()=>{ht.removeEventListener("click",Ct)}}},[E]);const me=(ht,Ct)=>{ht?F&&F(Ct):O&&O(Ct),ke||(ie(a?null:ue.clientWidth),J(ht))},be=ht=>{ht.button===0&&(ht.preventDefault(),ce.current.focus(),me(!0,ht))},Fe=ht=>{me(!1,ht)},Ze=b.Children.toArray(l),We=ht=>{const Ct=Ze.find(Nt=>Nt.props.value===ht.target.value);Ct!==void 0&&(W(Ct.props.value),P&&P(ht,Ct))},_e=ht=>Ct=>{let Nt;if(Ct.currentTarget.hasAttribute("tabindex")){if(I){Nt=Array.isArray(Q)?Q.slice():[];const Yn=Q.indexOf(ht.props.value);Yn===-1?Nt.push(ht.props.value):Nt.splice(Yn,1)}else Nt=ht.props.value;if(ht.props.onClick&&ht.props.onClick(Ct),Q!==Nt&&(W(Nt),P)){const Yn=Ct.nativeEvent||Ct,pr=new Yn.constructor(Yn.type,Yn);Object.defineProperty(pr,"target",{writable:!0,value:{value:Nt,name:k}}),P(pr,ht)}I||me(!1,Ct)}},ft=ht=>{_||[" ","ArrowUp","ArrowDown","Enter"].includes(ht.key)&&(ht.preventDefault(),me(!0,ht))},nt=de!==null&&K,dt=ht=>{!nt&&R&&(Object.defineProperty(ht,"target",{writable:!0,value:{value:Q,name:k}}),R(ht))};delete Y["aria-invalid"];let se,De;const ye=[];let Pe=!1;(h2({value:Q})||g)&&($?se=$(Q):Pe=!0);const qe=Ze.map(ht=>{if(!b.isValidElement(ht))return null;let Ct;if(I){if(!Array.isArray(Q))throw new Error(fu(2));Ct=Q.some(Nt=>HD(Nt,ht.props.value)),Ct&&Pe&&ye.push(ht.props.children)}else Ct=HD(Q,ht.props.value),Ct&&Pe&&(De=ht.props.children);return b.cloneElement(ht,{"aria-selected":Ct?"true":"false",onClick:_e(ht),onKeyUp:Nt=>{Nt.key===" "&&Nt.preventDefault(),ht.props.onKeyUp&&ht.props.onKeyUp(Nt)},role:"option",selected:Ct,value:void 0,"data-value":ht.props.value})});Pe&&(I?ye.length===0?se=null:se=ye.reduce((ht,Ct,Nt)=>(ht.push(Ct),Nt<ye.length-1&&ht.push(", "),ht),[]):se=De);let Ke=Ce;!a&&ke&&de&&(Ke=ue.clientWidth);let it;typeof q<"u"?it=q:it=m?null:0;const ot=V.id||(k?`mui-component-select-${k}`:void 0),gt={...t,variant:H,value:Q,open:nt,error:w},Ue=Fee(gt),jt={...T.PaperProps,...(pt=T.slotProps)==null?void 0:pt.paper},Ht=Mn();return y.jsxs(b.Fragment,{children:[y.jsx(Dee,{as:"div",ref:ve,tabIndex:it,role:"combobox","aria-controls":nt?Ht:void 0,"aria-disabled":m?"true":void 0,"aria-expanded":nt?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[E,ot].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":B?"true":void 0,"aria-invalid":w?"true":void 0,onKeyDown:ft,onMouseDown:m||_?null:be,onBlur:dt,onFocus:j,...V,ownerState:gt,className:Ve(V.className,Ue.select,u),id:ot,children:jee(se)?BD||(BD=y.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):se}),y.jsx($ee,{"aria-invalid":w,value:Array.isArray(Q)?Q.join(","):Q,name:k,ref:ae,"aria-hidden":!0,onChange:We,tabIndex:-1,disabled:m,className:Ue.nativeInput,autoFocus:i,required:B,...Y,ownerState:gt}),y.jsx(Lee,{as:C,className:Ue.icon,ownerState:gt}),y.jsx(t9,{id:`menu-${k||""}`,anchorEl:ue,open:nt,onClose:Fe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...T,slotProps:{...T.slotProps,list:{"aria-labelledby":E,role:"listbox","aria-multiselectable":I?"true":void 0,disableListWrap:!0,id:Ht,...T.MenuListProps},paper:{...jt,style:{minWidth:Ke,...jt!=null?jt.style:null}}},children:qe})]})}),zee=e=>{const{classes:t}=e,r=st({root:["root"]},o9,t);return{...t,...r}},eO={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>Li(e)&&e!=="variant"},Bee=Te(XR,eO)(""),Hee=Te(rT,eO)(""),Uee=Te(KR,eO)(""),H0=b.forwardRef(function(t,n){const r=zt({name:"MuiSelect",props:t}),{autoWidth:o=!1,children:i,classes:a={},className:l,defaultOpen:u=!1,displayEmpty:d=!1,IconComponent:f=DF,id:m,input:g,inputProps:w,label:C,labelId:S,MenuProps:E,multiple:T=!1,native:I=!1,onClose:k,onOpen:R,open:P,renderValue:O,SelectDisplayProps:j,variant:F="outlined",...D}=r,_=I?See:Nee,$=Cu(),B=Eh({props:r,muiFormControl:$,states:["variant","error"]}),V=B.variant||F,q={...r,variant:V,classes:a},G=zee(q),{root:N,...H}=G,Y=g||{standard:y.jsx(Bee,{ownerState:q}),outlined:y.jsx(Hee,{label:C,ownerState:q}),filled:y.jsx(Uee,{ownerState:q})}[V],Q=Dn(n,nf(Y));return y.jsx(b.Fragment,{children:b.cloneElement(Y,{inputComponent:_,inputProps:{children:i,error:B.error,IconComponent:f,variant:V,type:void 0,multiple:T,...I?{id:m}:{autoWidth:o,defaultOpen:u,displayEmpty:d,labelId:S,MenuProps:E,onClose:k,onOpen:R,open:P,renderValue:O,SelectDisplayProps:{id:m,...j}},...w,classes:w?ei(H,w.classes):H,...g?g.props.inputProps:{}},...(T&&I||d)&&V==="outlined"?{notched:!0}:{},ref:Q,className:Ve(Y.props.className,l,G.root),...!g&&{variant:V},...D})})});H0.muiName="Select";function Gee(e){return kt("MuiSkeleton",e)}Pt("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const Vee=e=>{const{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return st({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},Gee,t)},HI=As`
  0% {
    opacity: 1;
  }

  50% {
    opacity: 0.4;
  }

  100% {
    opacity: 1;
  }
`,UI=As`
  0% {
    transform: translateX(-100%);
  }

  50% {
    /* +0.5s of delay between each loop */
    transform: translateX(100%);
  }

  100% {
    transform: translateX(100%);
  }
`,Wee=typeof HI!="string"?ef`
        animation: ${HI} 2s ease-in-out 0.5s infinite;
      `:null,qee=typeof UI!="string"?ef`
        &::after {
          animation: ${UI} 2s linear 0.5s infinite;
        }
      `:null,Yee=Te("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]}})(Rt(({theme:e})=>{const t=Cq(e.shape.borderRadius)||"px",n=Sq(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:cn(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:r})=>r.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:r})=>r.hasChildren&&!r.width,style:{maxWidth:"fit-content"}},{props:({ownerState:r})=>r.hasChildren&&!r.height,style:{height:"auto"}},{props:{animation:"pulse"},style:Wee||{animation:`${HI} 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(
                90deg,
                transparent,
                ${(e.vars||e).palette.action.hover},
                transparent
              )`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:qee||{"&::after":{animation:`${UI} 2s linear 0.5s infinite`}}}]}})),Kee=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSkeleton"}),{animation:o="pulse",className:i,component:a="span",height:l,style:u,variant:d="text",width:f,...m}=r,g={...r,animation:o,component:a,variant:d,hasChildren:!!m.children},w=Vee(g);return y.jsx(Yee,{as:a,ref:n,className:Ve(w.root,i),ownerState:g,...m,style:{width:f,height:l,...u}})});function Xee(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:o,resumeHideDuration:i}=e,a=ya();b.useEffect(()=>{if(!o)return;function T(I){I.defaultPrevented||I.key==="Escape"&&(r==null||r(I,"escapeKeyDown"))}return document.addEventListener("keydown",T),()=>{document.removeEventListener("keydown",T)}},[o,r]);const l=Vt((T,I)=>{r==null||r(T,I)}),u=Vt(T=>{!r||T==null||a.start(T,()=>{l(null,"timeout")})});b.useEffect(()=>(o&&u(t),a.clear),[o,t,u,a]);const d=T=>{r==null||r(T,"clickaway")},f=a.clear,m=b.useCallback(()=>{t!=null&&u(i??t*.5)},[t,i,u]),g=T=>I=>{const k=T.onBlur;k==null||k(I),m()},w=T=>I=>{const k=T.onFocus;k==null||k(I),f()},C=T=>I=>{const k=T.onMouseEnter;k==null||k(I),f()},S=T=>I=>{const k=T.onMouseLeave;k==null||k(I),m()};return b.useEffect(()=>{if(!n&&o)return window.addEventListener("focus",m),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",m),window.removeEventListener("blur",f)}},[n,o,m,f]),{getRootProps:(T={})=>{const I={...u2(e),...u2(T)};return{role:"presentation",...T,...I,onBlur:g(I),onFocus:w(I),onMouseEnter:C(I),onMouseLeave:S(I)}},onClickAway:d}}function Zee(e){return kt("MuiSnackbarContent",e)}Pt("MuiSnackbarContent",["root","message","action"]);const Qee=e=>{const{classes:t}=e;return st({root:["root"],action:["action"],message:["message"]},Zee,t)},Jee=Te(bl,{name:"MuiSnackbarContent",slot:"Root"})(Rt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(rx(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:rx(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),ete=Te("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),tte=Te("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),i9=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSnackbarContent"}),{action:o,className:i,message:a,role:l="alert",...u}=r,d=r,f=Qee(d);return y.jsxs(Jee,{role:l,elevation:6,className:Ve(f.root,i),ownerState:d,ref:n,...u,children:[y.jsx(ete,{className:f.message,ownerState:d,children:a}),o?y.jsx(tte,{className:f.action,ownerState:d,children:o}):null]})});function nte(e){return kt("MuiSnackbar",e)}Pt("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const rte=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Be(n.vertical)}${Be(n.horizontal)}`]};return st(r,nte,t)},ote=Te("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Be(n.anchorOrigin.vertical)}${Be(n.anchorOrigin.horizontal)}`]]}})(Rt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),ite=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSnackbar"}),o=bo(),i={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{action:a,anchorOrigin:{vertical:l,horizontal:u}={vertical:"bottom",horizontal:"left"},autoHideDuration:d=null,children:f,className:m,ClickAwayListenerProps:g,ContentProps:w,disableWindowBlurListener:C=!1,message:S,onBlur:E,onClose:T,onFocus:I,onMouseEnter:k,onMouseLeave:R,open:P,resumeHideDuration:O,slots:j={},slotProps:F={},TransitionComponent:D,transitionDuration:_=i,TransitionProps:{onEnter:$,onExited:B,...V}={},...q}=r,G={...r,anchorOrigin:{vertical:l,horizontal:u},autoHideDuration:d,disableWindowBlurListener:C,TransitionComponent:D,transitionDuration:_},N=rte(G),{getRootProps:H,onClickAway:Y}=Xee({...G}),[Q,W]=b.useState(!0),K=me=>{W(!0),B&&B(me)},J=(me,be)=>{W(!1),$&&$(me,be)},ae={slots:{transition:D,...j},slotProps:{content:w,clickAwayListener:g,transition:V,...F}},[ce,de]=Ot("root",{ref:n,className:[N.root,m],elementType:ote,getSlotProps:H,externalForwardedProps:{...ae,...q},ownerState:G}),[re,{ownerState:ke,...Ce}]=Ot("clickAwayListener",{elementType:zF,externalForwardedProps:ae,getSlotProps:me=>({onClickAway:(...be)=>{var Ze;const Fe=be[0];(Ze=me.onClickAway)==null||Ze.call(me,...be),!(Fe!=null&&Fe.defaultMuiPrevented)&&Y(...be)}}),ownerState:G}),[ie,le]=Ot("content",{elementType:i9,shouldForwardComponentProp:!0,externalForwardedProps:ae,additionalProps:{message:S,action:a},ownerState:G}),[ve,ue]=Ot("transition",{elementType:dh,externalForwardedProps:ae,getSlotProps:me=>({onEnter:(...be)=>{var Fe;(Fe=me.onEnter)==null||Fe.call(me,...be),J(...be)},onExited:(...be)=>{var Fe;(Fe=me.onExited)==null||Fe.call(me,...be),K(...be)}}),additionalProps:{appear:!0,in:P,timeout:_,direction:l==="top"?"down":"up"},ownerState:G});return!P&&Q?null:y.jsx(re,{...Ce,...j.clickAwayListener&&{ownerState:ke},children:y.jsx(ce,{...de,children:y.jsx(ve,{...ue,children:f||y.jsx(ie,{...le})})})})});function ate(e){return kt("MuiTooltip",e)}const co=Pt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function ste(e){return Math.round(e*1e5)/1e5}const lte=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Be(i.split("-")[0])}`],arrow:["arrow"]};return st(a,ate,t)},cte=Te(z0,{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]}})(Rt(({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"] .${co.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${co.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${co.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${co.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="right"] .${co.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="right"] .${co.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!t.isRtl,style:{[`&[data-popper-placement*="left"] .${co.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:t})=>t.arrow&&!!t.isRtl,style:{[`&[data-popper-placement*="left"] .${co.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ute=Te("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${Be(n.placement.split("-")[0])}`]]}})(Rt(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:cn(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,[`.${co.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${co.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${co.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${co.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:`${ste(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:t})=>!t.isRtl,style:{[`.${co.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${co.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:t})=>!t.isRtl&&t.touch,style:{[`.${co.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${co.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:t})=>!!t.isRtl,style:{[`.${co.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${co.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:t})=>!!t.isRtl&&t.touch,style:{[`.${co.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${co.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${co.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:t})=>t.touch,style:{[`.${co.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),dte=Te("span",{name:"MuiTooltip",slot:"Arrow"})(Rt(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:cn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let eS=!1;const UD=new qE;let rv={x:0,y:0};function tS(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const U0=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTooltip"}),{arrow:o=!1,children:i,classes:a,components:l={},componentsProps:u={},describeChild:d=!1,disableFocusListener:f=!1,disableHoverListener:m=!1,disableInteractive:g=!1,disableTouchListener:w=!1,enterDelay:C=100,enterNextDelay:S=0,enterTouchDelay:E=700,followCursor:T=!1,id:I,leaveDelay:k=0,leaveTouchDelay:R=1500,onClose:P,onOpen:O,open:j,placement:F="bottom",PopperComponent:D,PopperProps:_={},slotProps:$={},slots:B={},title:V,TransitionComponent:q,TransitionProps:G,...N}=r,H=b.isValidElement(i)?i:y.jsx("span",{children:i}),Y=bo(),Q=Lo(),[W,K]=b.useState(),[J,ae]=b.useState(null),ce=b.useRef(!1),de=g||T,re=ya(),ke=ya(),Ce=ya(),ie=ya(),[le,ve]=Qp({controlled:j,default:!1,name:"Tooltip",state:"open"});let ue=le;const me=Mn(I),be=b.useRef(),Fe=Vt(()=>{be.current!==void 0&&(document.body.style.WebkitUserSelect=be.current,be.current=void 0),ie.clear()});b.useEffect(()=>Fe,[Fe]);const Ze=Kt=>{UD.clear(),eS=!0,ve(!0),O&&!ue&&O(Kt)},We=Vt(Kt=>{UD.start(800+k,()=>{eS=!1}),ve(!1),P&&ue&&P(Kt),re.start(Y.transitions.duration.shortest,()=>{ce.current=!1})}),_e=Kt=>{ce.current&&Kt.type!=="touchstart"||(W&&W.removeAttribute("title"),ke.clear(),Ce.clear(),C||eS&&S?ke.start(eS?S:C,()=>{Ze(Kt)}):Ze(Kt))},ft=Kt=>{ke.clear(),Ce.start(k,()=>{We(Kt)})},[,nt]=b.useState(!1),dt=Kt=>{u0(Kt.target)||(nt(!1),ft(Kt))},se=Kt=>{W||K(Kt.currentTarget),u0(Kt.target)&&(nt(!0),_e(Kt))},De=Kt=>{ce.current=!0;const he=H.props;he.onTouchStart&&he.onTouchStart(Kt)},ye=Kt=>{De(Kt),Ce.clear(),re.clear(),Fe(),be.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ie.start(E,()=>{document.body.style.WebkitUserSelect=be.current,_e(Kt)})},Pe=Kt=>{H.props.onTouchEnd&&H.props.onTouchEnd(Kt),Fe(),Ce.start(R,()=>{We(Kt)})};b.useEffect(()=>{if(!ue)return;function Kt(he){he.key==="Escape"&&We(he)}return document.addEventListener("keydown",Kt),()=>{document.removeEventListener("keydown",Kt)}},[We,ue]);const qe=Dn(nf(H),K,n);!V&&V!==0&&(ue=!1);const Ke=b.useRef(),it=Kt=>{const he=H.props;he.onMouseMove&&he.onMouseMove(Kt),rv={x:Kt.clientX,y:Kt.clientY},Ke.current&&Ke.current.update()},ot={},gt=typeof V=="string";d?(ot.title=!ue&&gt&&!m?V:null,ot["aria-describedby"]=ue?me:null):(ot["aria-label"]=gt?V:null,ot["aria-labelledby"]=ue&&!gt?me:null);const Ue={...ot,...N,...H.props,className:Ve(N.className,H.props.className),onTouchStart:De,ref:qe,...T?{onMouseMove:it}:{}},jt={};w||(Ue.onTouchStart=ye,Ue.onTouchEnd=Pe),m||(Ue.onMouseOver=tS(_e,Ue.onMouseOver),Ue.onMouseLeave=tS(ft,Ue.onMouseLeave),de||(jt.onMouseOver=_e,jt.onMouseLeave=ft)),f||(Ue.onFocus=tS(se,Ue.onFocus),Ue.onBlur=tS(dt,Ue.onBlur),de||(jt.onFocus=se,jt.onBlur=dt));const Ht={...r,isRtl:Q,arrow:o,disableInteractive:de,placement:F,PopperComponentProp:D,touch:ce.current},pt=typeof $.popper=="function"?$.popper(Ht):$.popper,ht=b.useMemo(()=>{var he,fe;let Kt=[{name:"arrow",enabled:!!J,options:{element:J,padding:4}}];return(he=_.popperOptions)!=null&&he.modifiers&&(Kt=Kt.concat(_.popperOptions.modifiers)),(fe=pt==null?void 0:pt.popperOptions)!=null&&fe.modifiers&&(Kt=Kt.concat(pt.popperOptions.modifiers)),{..._.popperOptions,...pt==null?void 0:pt.popperOptions,modifiers:Kt}},[J,_.popperOptions,pt==null?void 0:pt.popperOptions]),Ct=lte(Ht),Nt=typeof $.transition=="function"?$.transition(Ht):$.transition,Yn={slots:{popper:l.Popper,transition:l.Transition??q,tooltip:l.Tooltip,arrow:l.Arrow,...B},slotProps:{arrow:$.arrow??u.arrow,popper:{..._,...pt??u.popper},tooltip:$.tooltip??u.tooltip,transition:{...G,...Nt??u.transition}}},[pr,Go]=Ot("popper",{elementType:cte,externalForwardedProps:Yn,ownerState:Ht,className:Ve(Ct.popper,_==null?void 0:_.className)}),[Jn,Er]=Ot("transition",{elementType:dh,externalForwardedProps:Yn,ownerState:Ht}),[Xr,Vr]=Ot("tooltip",{elementType:ute,className:Ct.tooltip,externalForwardedProps:Yn,ownerState:Ht}),[Ar,$o]=Ot("arrow",{elementType:dte,className:Ct.arrow,externalForwardedProps:Yn,ownerState:Ht,ref:ae});return y.jsxs(b.Fragment,{children:[b.cloneElement(H,Ue),y.jsx(pr,{as:D??z0,placement:F,anchorEl:T?{getBoundingClientRect:()=>({top:rv.y,left:rv.x,right:rv.x,bottom:rv.y,width:0,height:0})}:W,popperRef:Ke,open:W?ue:!1,id:me,transition:!0,...jt,...Go,popperOptions:ht,children:({TransitionProps:Kt})=>y.jsx(Jn,{timeout:Y.transitions.duration.shorter,...Kt,...Er,children:y.jsxs(Xr,{...Vr,children:[V,o?y.jsx(Ar,{...$o}):null]})})})]})}),va=qW({createStyledComponent:Te("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>zt({props:e,name:"MuiStack"})});function fte(e){return kt("MuiSwitch",e)}const Ki=Pt("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),pte=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,l={root:["root",n&&`edge${Be(n)}`,`size${Be(r)}`],switchBase:["switchBase",`color${Be(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},u=st(l,fte,t);return{...t,...u}},hte=Te("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Be(n.edge)}`],t[`size${Be(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,[`& .${Ki.thumb}`]:{width:16,height:16},[`& .${Ki.switchBase}`]:{padding:4,[`&.${Ki.checked}`]:{transform:"translateX(16px)"}}}}]}),mte=Te(FF,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Ki.input}`]:t.input},n.color!=="default"&&t[`color${Be(n.color)}`]]}})(Rt(({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}),[`&.${Ki.checked}`]:{transform:"translateX(20px)"},[`&.${Ki.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Ki.checked} + .${Ki.track}`]:{opacity:.5},[`&.${Ki.disabled} + .${Ki.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Ki.input}`]:{left:"-100%",width:"300%"}})),Rt(({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(Lr(["light"])).map(([t])=>({props:{color:t},style:{[`&.${Ki.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:cn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ki.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?hu(e.palette[t].main,.62):pu(e.palette[t].main,.55)}`}},[`&.${Ki.checked} + .${Ki.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]}))),gte=Te("span",{name:"MuiSwitch",slot:"Track"})(Rt(({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}`}))),bte=Te("span",{name:"MuiSwitch",slot:"Thumb"})(Rt(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"}))),GI=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:l="medium",sx:u,slots:d={},slotProps:f={},...m}=r,g={...r,color:i,edge:a,size:l},w=pte(g),C={slots:d,slotProps:f},[S,E]=Ot("root",{className:Ve(w.root,o),elementType:hte,externalForwardedProps:C,ownerState:g,additionalProps:{sx:u}}),[T,I]=Ot("thumb",{className:w.thumb,elementType:bte,externalForwardedProps:C,ownerState:g}),k=y.jsx(T,{...I}),[R,P]=Ot("track",{className:w.track,elementType:gte,externalForwardedProps:C,ownerState:g});return y.jsxs(S,{...E,children:[y.jsx(mte,{type:"checkbox",icon:k,checkedIcon:k,ref:n,ownerState:g,...m,classes:{...w,root:w.switchBase},slots:{...d.switchBase&&{root:d.switchBase},...d.input&&{input:d.input}},slotProps:{...f.switchBase&&{root:typeof f.switchBase=="function"?f.switchBase(g):f.switchBase},...f.input&&{input:typeof f.input=="function"?f.input(g):f.input}}}),y.jsx(R,{...P})]})});function yte(e){return kt("MuiTab",e)}const ds=Pt("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),vte=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:o,icon:i,label:a,selected:l,disabled:u}=e,d={root:["root",i&&a&&"labelIcon",`textColor${Be(n)}`,r&&"fullWidth",o&&"wrapped",l&&"selected",u&&"disabled"],icon:["iconWrapper","icon"]};return st(d,yte,t)},xte=Te(gc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Be(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${ds.iconWrapper}`]:t.iconWrapper},{[`& .${ds.icon}`]:t.icon}]}})(Rt(({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:{[`& > .${ds.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${ds.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${ds.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${ds.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${ds.selected}`]:{opacity:1},[`&.${ds.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ds.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ds.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${ds.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ds.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)}}]}))),GD=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTab"}),{className:o,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:l,icon:u,iconPosition:d="top",indicator:f,label:m,onChange:g,onClick:w,onFocus:C,selected:S,selectionFollowsFocus:E,textColor:T="inherit",value:I,wrapped:k=!1,...R}=r,P={...r,disabled:i,disableFocusRipple:a,selected:S,icon:!!u,iconPosition:d,label:!!m,fullWidth:l,textColor:T,wrapped:k},O=vte(P),j=u&&m&&b.isValidElement(u)?b.cloneElement(u,{className:Ve(O.icon,u.props.className)}):u,F=_=>{!S&&g&&g(_,I),w&&w(_)},D=_=>{E&&!S&&g&&g(_,I),C&&C(_)};return y.jsxs(xte,{focusRipple:!a,className:Ve(O.root,o),ref:n,role:"tab","aria-selected":S,disabled:i,onClick:F,onFocus:D,ownerState:P,tabIndex:S?0:-1,...R,children:[d==="top"||d==="start"?y.jsxs(b.Fragment,{children:[j,m]}):y.jsxs(b.Fragment,{children:[m,j]}),f]})}),wte=b.createContext(),Cte=b.createContext();function Ste(e){return kt("MuiTableCell",e)}const Ete=Pt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Tte=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,l={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Be(r)}`,o!=="normal"&&`padding${Be(o)}`,`size${Be(i)}`]};return st(l,Ste,t)},Mte=Te("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Be(n.size)}`],n.padding!=="normal"&&t[`padding${Be(n.padding)}`],n.align!=="inherit"&&t[`align${Be(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(Rt(({theme:e})=>({...e.typography.body2,display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
    ${e.palette.mode==="light"?hu(cn(e.palette.divider,1),.88):pu(cn(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",[`&.${Ete.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}}]}))),VI=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTableCell"}),{align:o="inherit",className:i,component:a,padding:l,scope:u,size:d,sortDirection:f,variant:m,...g}=r,w=b.useContext(wte),C=b.useContext(Cte),S=C&&C.variant==="head";let E;a?E=a:E=S?"th":"td";let T=u;E==="td"?T=void 0:!T&&S&&(T="col");const I=m||C&&C.variant,k={...r,align:o,component:E,padding:l||(w&&w.padding?w.padding:"normal"),size:d||(w&&w.size?w.size:"medium"),sortDirection:f,stickyHeader:I==="head"&&w&&w.stickyHeader,variant:I},R=Tte(k);let P=null;return f&&(P=f==="asc"?"ascending":"descending"),y.jsx(Mte,{as:E,ref:n,className:Ve(R.root,i),"aria-sort":P,scope:T,ownerState:k,...g})});function kte(e){return kt("MuiToolbar",e)}Pt("MuiToolbar",["root","gutters","regular","dense"]);const Pte=e=>{const{classes:t,disableGutters:n,variant:r}=e;return st({root:["root",!n&&"gutters",r]},kte,t)},Ite=Te("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(Rt(({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}]}))),BS=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiToolbar"}),{className:o,component:i="div",disableGutters:a=!1,variant:l="regular",...u}=r,d={...r,component:i,disableGutters:a,variant:l},f=Pte(d);return y.jsx(Ite,{as:i,className:Ve(f.root,o),ref:n,ownerState:d,...u})}),a9=Kr(y.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),s9=Kr(y.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function Ate(e){return kt("MuiTablePaginationActions",e)}Pt("MuiTablePaginationActions",["root"]);const Rte=e=>{const{classes:t}=e;return st({root:["root"]},Ate,t)},Ote=Te("div",{name:"MuiTablePaginationActions",slot:"Root"})({}),_te=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTablePaginationActions"}),{backIconButtonProps:o,className:i,count:a,disabled:l=!1,getItemAriaLabel:u,nextIconButtonProps:d,onPageChange:f,page:m,rowsPerPage:g,showFirstButton:w,showLastButton:C,slots:S={},slotProps:E={},...T}=r,I=Lo(),R=Rte(r),P=de=>{f(de,0)},O=de=>{f(de,m-1)},j=de=>{f(de,m+1)},F=de=>{f(de,Math.max(0,Math.ceil(a/g)-1))},D=S.firstButton??Ur,_=S.lastButton??Ur,$=S.nextButton??Ur,B=S.previousButton??Ur,V=S.firstButtonIcon??Oee,q=S.lastButtonIcon??_ee,G=S.nextButtonIcon??s9,N=S.previousButtonIcon??a9,H=I?_:D,Y=I?$:B,Q=I?B:$,W=I?D:_,K=I?E.lastButton:E.firstButton,J=I?E.nextButton:E.previousButton,ae=I?E.previousButton:E.nextButton,ce=I?E.firstButton:E.lastButton;return y.jsxs(Ote,{ref:n,className:Ve(R.root,i),...T,children:[w&&y.jsx(H,{onClick:P,disabled:l||m===0,"aria-label":u("first",m),title:u("first",m),...K,children:I?y.jsx(q,{...E.lastButtonIcon}):y.jsx(V,{...E.firstButtonIcon})}),y.jsx(Y,{onClick:O,disabled:l||m===0,color:"inherit","aria-label":u("previous",m),title:u("previous",m),...J??o,children:I?y.jsx(G,{...E.nextButtonIcon}):y.jsx(N,{...E.previousButtonIcon})}),y.jsx(Q,{onClick:j,disabled:l||(a!==-1?m>=Math.ceil(a/g)-1:!1),color:"inherit","aria-label":u("next",m),title:u("next",m),...ae??d,children:I?y.jsx(N,{...E.previousButtonIcon}):y.jsx(G,{...E.nextButtonIcon})}),C&&y.jsx(W,{onClick:F,disabled:l||m>=Math.ceil(a/g)-1,"aria-label":u("last",m),title:u("last",m),...ce,children:I?y.jsx(V,{...E.firstButtonIcon}):y.jsx(q,{...E.lastButtonIcon})})]})});function Dte(e){return kt("MuiTablePagination",e)}const eh=Pt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);var VD;const Lte=Te(VI,{name:"MuiTablePagination",slot:"Root"})(Rt(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),$te=Te(BS,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${eh.actions}`]:t.actions,...t.toolbar})})(Rt(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${eh.actions}`]:{flexShrink:0,marginLeft:20}}))),jte=Te("div",{name:"MuiTablePagination",slot:"Spacer"})({flex:"1 1 100%"}),Fte=Te("p",{name:"MuiTablePagination",slot:"SelectLabel"})(Rt(({theme:e})=>({...e.typography.body2,flexShrink:0}))),Nte=Te(H0,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${eh.selectIcon}`]:t.selectIcon,[`& .${eh.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${eh.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),zte=Te(fh,{name:"MuiTablePagination",slot:"MenuItem"})({}),Bte=Te("p",{name:"MuiTablePagination",slot:"DisplayedRows"})(Rt(({theme:e})=>({...e.typography.body2,flexShrink:0})));function Hte({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function Ute(e){return`Go to ${e} page`}const Gte=e=>{const{classes:t}=e;return st({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},Dte,t)},Vte=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTablePagination"}),{ActionsComponent:o=_te,backIconButtonProps:i,colSpan:a,component:l=VI,count:u,disabled:d=!1,getItemAriaLabel:f=Ute,labelDisplayedRows:m=Hte,labelRowsPerPage:g="Rows per page:",nextIconButtonProps:w,onPageChange:C,onRowsPerPageChange:S,page:E,rowsPerPage:T,rowsPerPageOptions:I=[10,25,50,100],SelectProps:k={},showFirstButton:R=!1,showLastButton:P=!1,slotProps:O={},slots:j={},...F}=r,D=r,_=Gte(D),$=(O==null?void 0:O.select)??k,B=$.native?"option":zte;let V;(l===VI||l==="td")&&(V=a||1e3);const q=Mn($.id),G=Mn($.labelId),N=()=>u===-1?(E+1)*T:T===-1?u:Math.min(u,(E+1)*T),H={slots:j,slotProps:O},[Y,Q]=Ot("root",{ref:n,className:_.root,elementType:Lte,externalForwardedProps:{...H,component:l,...F},ownerState:D,additionalProps:{colSpan:V}}),[W,K]=Ot("toolbar",{className:_.toolbar,elementType:$te,externalForwardedProps:H,ownerState:D}),[J,ae]=Ot("spacer",{className:_.spacer,elementType:jte,externalForwardedProps:H,ownerState:D}),[ce,de]=Ot("selectLabel",{className:_.selectLabel,elementType:Fte,externalForwardedProps:H,ownerState:D,additionalProps:{id:G}}),[re,ke]=Ot("select",{className:_.select,elementType:Nte,externalForwardedProps:H,ownerState:D}),[Ce,ie]=Ot("menuItem",{className:_.menuItem,elementType:B,externalForwardedProps:H,ownerState:D}),[le,ve]=Ot("displayedRows",{className:_.displayedRows,elementType:Bte,externalForwardedProps:H,ownerState:D});return y.jsx(Y,{...Q,children:y.jsxs(W,{...K,children:[y.jsx(J,{...ae}),I.length>1&&y.jsx(ce,{...de,children:g}),I.length>1&&y.jsx(re,{variant:"standard",...!$.variant&&{input:VD||(VD=y.jsx(zx,{}))},value:T,onChange:S,id:q,labelId:G,...$,classes:{...$.classes,root:Ve(_.input,_.selectRoot,($.classes||{}).root),select:Ve(_.select,($.classes||{}).select),icon:Ve(_.selectIcon,($.classes||{}).icon)},disabled:d,...ke,children:I.map(ue=>b.createElement(Ce,{...ie,key:ue.label?ue.label:ue,value:ue.value?ue.value:ue},ue.label?ue.label:ue))}),y.jsx(le,{...ve,children:m({from:u===0?0:E*T+1,to:N(),count:u===-1?-1:u,page:E})}),y.jsx(o,{className:_.actions,backIconButtonProps:i,count:u,nextIconButtonProps:w,onPageChange:C,page:E,rowsPerPage:T,showFirstButton:R,showLastButton:P,slotProps:O.actions,slots:j.actions,getItemAriaLabel:f,disabled:d})]})})});function Wte(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function qte(e,t,n,r={},o=()=>{}){const{ease:i=Wte,duration:a=300}=r;let l=null;const u=t[e];let d=!1;const f=()=>{d=!0},m=g=>{if(d){o(new Error("Animation cancelled"));return}l===null&&(l=g);const w=Math.min(1,(g-l)/a);if(t[e]=i(w)*(n-u)+u,w>=1){requestAnimationFrame(()=>{o(null)});return}requestAnimationFrame(m)};return u===n?(o(new Error("Element already at target position")),f):(requestAnimationFrame(m),f)}const Yte={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Kte(e){const{onChange:t,...n}=e,r=b.useRef(),o=b.useRef(null),i=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return kn(()=>{const a=Sh(()=>{const u=r.current;i(),u!==r.current&&t(r.current)}),l=Ma(o.current);return l.addEventListener("resize",a),()=>{a.clear(),l.removeEventListener("resize",a)}},[t]),b.useEffect(()=>{i(),t(r.current)},[t]),y.jsx("div",{style:Yte,...n,ref:o})}function Xte(e){return kt("MuiTabScrollButton",e)}const Zte=Pt("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Qte=e=>{const{classes:t,orientation:n,disabled:r}=e;return st({root:["root",n,r&&"disabled"]},Xte,t)},Jte=Te(gc,{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,[`&.${Zte.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),ene=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:i={},slotProps:a={},direction:l,orientation:u,disabled:d,...f}=r,m=Lo(),g={isRtl:m,...r},w=Qte(g),C=i.StartScrollButtonIcon??a9,S=i.EndScrollButtonIcon??s9,E=mi({elementType:C,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),T=mi({elementType:S,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return y.jsx(Jte,{component:"div",className:Ve(w.root,o),ref:n,role:null,ownerState:g,tabIndex:null,...f,style:{...f.style,...u==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:l==="left"?y.jsx(C,{...E}):y.jsx(S,{...T})})});function tne(e){return kt("MuiTabs",e)}const Gk=Pt("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),WD=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,qD=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,nS=(e,t,n)=>{let r=!1,o=n(e,t);for(;o;){if(o===e.firstChild){if(r)return;r=!0}const i=o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||i)o=n(e,o);else{o.focus();return}}},nne=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:o,scrollableY:i,centered:a,scrollButtonsHideMobile:l,classes:u}=e;return st({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",o&&"scrollableX",i&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",a&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",l&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},tne,u)},rne=Te("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gk.scrollButtons}`]:t.scrollButtons},{[`& .${Gk.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Rt(({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:{[`& .${Gk.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),one=Te("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"}}]}),ine=Te("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"}}]}),ane=Te("span",{name:"MuiTabs",slot:"Indicator"})(Rt(({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}}]}))),sne=Te(Kte)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),YD={},lne=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTabs"}),o=bo(),i=Lo(),{"aria-label":a,"aria-labelledby":l,action:u,centered:d=!1,children:f,className:m,component:g="div",allowScrollButtonsMobile:w=!1,indicatorColor:C="primary",onChange:S,orientation:E="horizontal",ScrollButtonComponent:T,scrollButtons:I="auto",selectionFollowsFocus:k,slots:R={},slotProps:P={},TabIndicatorProps:O={},TabScrollButtonProps:j={},textColor:F="primary",value:D,variant:_="standard",visibleScrollbar:$=!1,...B}=r,V=_==="scrollable",q=E==="vertical",G=q?"scrollTop":"scrollLeft",N=q?"top":"left",H=q?"bottom":"right",Y=q?"clientHeight":"clientWidth",Q=q?"height":"width",W={...r,component:g,allowScrollButtonsMobile:w,indicatorColor:C,orientation:E,vertical:q,scrollButtons:I,textColor:F,variant:_,visibleScrollbar:$,fixed:!V,hideScrollbar:V&&!$,scrollableX:V&&!q,scrollableY:V&&q,centered:d&&!V,scrollButtonsHideMobile:!w},K=nne(W),J=mi({elementType:R.StartScrollButtonIcon,externalSlotProps:P.startScrollButtonIcon,ownerState:W}),ae=mi({elementType:R.EndScrollButtonIcon,externalSlotProps:P.endScrollButtonIcon,ownerState:W}),[ce,de]=b.useState(!1),[re,ke]=b.useState(YD),[Ce,ie]=b.useState(!1),[le,ve]=b.useState(!1),[ue,me]=b.useState(!1),[be,Fe]=b.useState({overflow:"hidden",scrollbarWidth:0}),Ze=new Map,We=b.useRef(null),_e=b.useRef(null),ft={slots:R,slotProps:{indicator:O,scrollButton:j,...P}},nt=()=>{const fe=We.current;let xe;if(fe){const Qe=fe.getBoundingClientRect();xe={clientWidth:fe.clientWidth,scrollLeft:fe.scrollLeft,scrollTop:fe.scrollTop,scrollWidth:fe.scrollWidth,top:Qe.top,bottom:Qe.bottom,left:Qe.left,right:Qe.right}}let ze;if(fe&&D!==!1){const Qe=_e.current.children;if(Qe.length>0){const bt=Qe[Ze.get(D)];ze=bt?bt.getBoundingClientRect():null}}return{tabsMeta:xe,tabMeta:ze}},dt=Vt(()=>{const{tabsMeta:fe,tabMeta:xe}=nt();let ze=0,Qe;q?(Qe="top",xe&&fe&&(ze=xe.top-fe.top+fe.scrollTop)):(Qe=i?"right":"left",xe&&fe&&(ze=(i?-1:1)*(xe[Qe]-fe[Qe]+fe.scrollLeft)));const bt={[Qe]:ze,[Q]:xe?xe[Q]:0};if(typeof re[Qe]!="number"||typeof re[Q]!="number")ke(bt);else{const _t=Math.abs(re[Qe]-bt[Qe]),St=Math.abs(re[Q]-bt[Q]);(_t>=1||St>=1)&&ke(bt)}}),se=(fe,{animation:xe=!0}={})=>{xe?qte(G,We.current,fe,{duration:o.transitions.duration.standard}):We.current[G]=fe},De=fe=>{let xe=We.current[G];q?xe+=fe:xe+=fe*(i?-1:1),se(xe)},ye=()=>{const fe=We.current[Y];let xe=0;const ze=Array.from(_e.current.children);for(let Qe=0;Qe<ze.length;Qe+=1){const bt=ze[Qe];if(xe+bt[Y]>fe){Qe===0&&(xe=fe);break}xe+=bt[Y]}return xe},Pe=()=>{De(-1*ye())},qe=()=>{De(ye())},[Ke,{onChange:it,...ot}]=Ot("scrollbar",{className:Ve(K.scrollableX,K.hideScrollbar),elementType:sne,shouldForwardComponentProp:!0,externalForwardedProps:ft,ownerState:W}),gt=b.useCallback(fe=>{it==null||it(fe),Fe({overflow:null,scrollbarWidth:fe})},[it]),[Ue,jt]=Ot("scrollButtons",{className:Ve(K.scrollButtons,j.className),elementType:ene,externalForwardedProps:ft,ownerState:W,additionalProps:{orientation:E,slots:{StartScrollButtonIcon:R.startScrollButtonIcon||R.StartScrollButtonIcon,EndScrollButtonIcon:R.endScrollButtonIcon||R.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:J,endScrollButtonIcon:ae}}}),Ht=()=>{const fe={};fe.scrollbarSizeListener=V?y.jsx(Ke,{...ot,onChange:gt}):null;const ze=V&&(I==="auto"&&(Ce||le)||I===!0);return fe.scrollButtonStart=ze?y.jsx(Ue,{direction:i?"right":"left",onClick:Pe,disabled:!Ce,...jt}):null,fe.scrollButtonEnd=ze?y.jsx(Ue,{direction:i?"left":"right",onClick:qe,disabled:!le,...jt}):null,fe},pt=Vt(fe=>{const{tabsMeta:xe,tabMeta:ze}=nt();if(!(!ze||!xe)){if(ze[N]<xe[N]){const Qe=xe[G]+(ze[N]-xe[N]);se(Qe,{animation:fe})}else if(ze[H]>xe[H]){const Qe=xe[G]+(ze[H]-xe[H]);se(Qe,{animation:fe})}}}),ht=Vt(()=>{V&&I!==!1&&me(!ue)});b.useEffect(()=>{const fe=Sh(()=>{We.current&&dt()});let xe;const ze=_t=>{_t.forEach(St=>{St.removedNodes.forEach(Dt=>{xe==null||xe.unobserve(Dt)}),St.addedNodes.forEach(Dt=>{xe==null||xe.observe(Dt)})}),fe(),ht()},Qe=Ma(We.current);Qe.addEventListener("resize",fe);let bt;return typeof ResizeObserver<"u"&&(xe=new ResizeObserver(fe),Array.from(_e.current.children).forEach(_t=>{xe.observe(_t)})),typeof MutationObserver<"u"&&(bt=new MutationObserver(ze),bt.observe(_e.current,{childList:!0})),()=>{fe.clear(),Qe.removeEventListener("resize",fe),bt==null||bt.disconnect(),xe==null||xe.disconnect()}},[dt,ht]),b.useEffect(()=>{const fe=Array.from(_e.current.children),xe=fe.length;if(typeof IntersectionObserver<"u"&&xe>0&&V&&I!==!1){const ze=fe[0],Qe=fe[xe-1],bt={root:We.current,threshold:.99},_t=Gt=>{ie(!Gt[0].isIntersecting)},St=new IntersectionObserver(_t,bt);St.observe(ze);const Dt=Gt=>{ve(!Gt[0].isIntersecting)},Ut=new IntersectionObserver(Dt,bt);return Ut.observe(Qe),()=>{St.disconnect(),Ut.disconnect()}}},[V,I,ue,f==null?void 0:f.length]),b.useEffect(()=>{de(!0)},[]),b.useEffect(()=>{dt()}),b.useEffect(()=>{pt(YD!==re)},[pt,re]),b.useImperativeHandle(u,()=>({updateIndicator:dt,updateScrollButtons:ht}),[dt,ht]);const[Ct,Nt]=Ot("indicator",{className:Ve(K.indicator,O.className),elementType:ane,externalForwardedProps:ft,ownerState:W,additionalProps:{style:re}}),Yn=y.jsx(Ct,{...Nt});let pr=0;const Go=b.Children.map(f,fe=>{if(!b.isValidElement(fe))return null;const xe=fe.props.value===void 0?pr:fe.props.value;Ze.set(xe,pr);const ze=xe===D;return pr+=1,b.cloneElement(fe,{fullWidth:_==="fullWidth",indicator:ze&&!ce&&Yn,selected:ze,selectionFollowsFocus:k,onChange:S,textColor:F,value:xe,...pr===1&&D===!1&&!fe.props.tabIndex?{tabIndex:0}:{}})}),Jn=fe=>{if(fe.altKey||fe.shiftKey||fe.ctrlKey||fe.metaKey)return;const xe=_e.current,ze=io(xe).activeElement;if(ze.getAttribute("role")!=="tab")return;let bt=E==="horizontal"?"ArrowLeft":"ArrowUp",_t=E==="horizontal"?"ArrowRight":"ArrowDown";switch(E==="horizontal"&&i&&(bt="ArrowRight",_t="ArrowLeft"),fe.key){case bt:fe.preventDefault(),nS(xe,ze,qD);break;case _t:fe.preventDefault(),nS(xe,ze,WD);break;case"Home":fe.preventDefault(),nS(xe,null,WD);break;case"End":fe.preventDefault(),nS(xe,null,qD);break}},Er=Ht(),[Xr,Vr]=Ot("root",{ref:n,className:Ve(K.root,m),elementType:rne,externalForwardedProps:{...ft,...B,component:g},ownerState:W}),[Ar,$o]=Ot("scroller",{ref:We,className:K.scroller,elementType:one,externalForwardedProps:ft,ownerState:W,additionalProps:{style:{overflow:be.overflow,[q?`margin${i?"Left":"Right"}`:"marginBottom"]:$?void 0:-be.scrollbarWidth}}}),[Kt,he]=Ot("list",{ref:_e,className:Ve(K.list,K.flexContainer),elementType:ine,externalForwardedProps:ft,ownerState:W,getSlotProps:fe=>({...fe,onKeyDown:xe=>{var ze;Jn(xe),(ze=fe.onKeyDown)==null||ze.call(fe,xe)}})});return y.jsxs(Xr,{...Vr,children:[Er.scrollButtonStart,Er.scrollbarSizeListener,y.jsxs(Ar,{...$o,children:[y.jsx(Kt,{"aria-label":a,"aria-labelledby":l,"aria-orientation":E==="vertical"?"vertical":null,role:"tablist",...he,children:Go}),ce&&Yn]}),Er.scrollButtonEnd]})});function cne(e){return kt("MuiTextField",e)}Pt("MuiTextField",["root"]);const une={standard:XR,filled:KR,outlined:rT},dne=e=>{const{classes:t}=e;return st({root:["root"]},cne,t)},fne=Te(Hx,{name:"MuiTextField",slot:"Root"})({}),rf=b.forwardRef(function(t,n){const r=zt({props:t,name:"MuiTextField"}),{autoComplete:o,autoFocus:i=!1,children:a,className:l,color:u="primary",defaultValue:d,disabled:f=!1,error:m=!1,FormHelperTextProps:g,fullWidth:w=!1,helperText:C,id:S,InputLabelProps:E,inputProps:T,InputProps:I,inputRef:k,label:R,maxRows:P,minRows:O,multiline:j=!1,name:F,onBlur:D,onChange:_,onFocus:$,placeholder:B,required:V=!1,rows:q,select:G=!1,SelectProps:N,slots:H={},slotProps:Y={},type:Q,value:W,variant:K="outlined",...J}=r,ae={...r,autoFocus:i,color:u,disabled:f,error:m,fullWidth:w,multiline:j,required:V,select:G,variant:K},ce=dne(ae),de=Mn(S),re=C&&de?`${de}-helper-text`:void 0,ke=R&&de?`${de}-label`:void 0,Ce=une[K],ie={slots:H,slotProps:{input:I,inputLabel:E,htmlInput:T,formHelperText:g,select:N,...Y}},le={},ve=ie.slotProps.inputLabel;K==="outlined"&&(ve&&typeof ve.shrink<"u"&&(le.notched=ve.shrink),le.label=R),G&&((!N||!N.native)&&(le.id=void 0),le["aria-describedby"]=void 0);const[ue,me]=Ot("root",{elementType:fne,shouldForwardComponentProp:!0,externalForwardedProps:{...ie,...J},ownerState:ae,className:Ve(ce.root,l),ref:n,additionalProps:{disabled:f,error:m,fullWidth:w,required:V,color:u,variant:K}}),[be,Fe]=Ot("input",{elementType:Ce,externalForwardedProps:ie,additionalProps:le,ownerState:ae}),[Ze,We]=Ot("inputLabel",{elementType:nT,externalForwardedProps:ie,ownerState:ae}),[_e,ft]=Ot("htmlInput",{elementType:"input",externalForwardedProps:ie,ownerState:ae}),[nt,dt]=Ot("formHelperText",{elementType:YF,externalForwardedProps:ie,ownerState:ae}),[se,De]=Ot("select",{elementType:H0,externalForwardedProps:ie,ownerState:ae}),ye=y.jsx(be,{"aria-describedby":re,autoComplete:o,autoFocus:i,defaultValue:d,fullWidth:w,multiline:j,name:F,rows:q,maxRows:P,minRows:O,type:Q,value:W,id:de,inputRef:k,onBlur:D,onChange:_,onFocus:$,placeholder:B,inputProps:ft,slots:{input:H.htmlInput?_e:void 0},...Fe});return y.jsxs(ue,{...me,children:[R!=null&&R!==""&&y.jsx(Ze,{htmlFor:de,id:ke,...We,children:R}),G?y.jsx(se,{"aria-describedby":re,id:de,labelId:ke,value:W,input:ye,...De,children:a}):ye,C&&y.jsx(nt,{id:re,...dt,children:C})]})}),g2=nF({themeId:Ss}),yl=({title:e,end:t})=>y.jsxs(Oe,{display:"flex",justifyContent:"space-between",mb:2,children:[y.jsx(Jt,{variant:"h5",children:e}),t&&y.jsx(Oe,{children:t})]}),l9=parseInt(b.version,10),Wt=e=>{if(l9>=19){const t=n=>e(n,n.ref??null);return t.displayName=e.displayName??e.name,t}return b.forwardRef(e)},Ir=Kr,KD=Ir(y.jsx("path",{d:"M4 12l1.41 1.41L11 7.83V20h2V7.83l5.58 5.59L20 12l-8-8-8 8z"})),XD=Ir(y.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"})),ZD=Ir(y.jsx("path",{d:"M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),QD=Ir(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),pne=Ir(y.jsx("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),JD=Ir(y.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"})),hne=Ir(y.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"}));Ir(y.jsx("path",{d:"M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z"}));Ir(y.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 mne=Ir(y.jsx("path",{d:"M14.67 5v14H9.33V5zm1 14H21V5h-5.33zm-7.34 0V5H3v14z"})),gne=Ir(y.jsx("rect",{width:"1",height:"24",x:"11.5",rx:"0.5"})),bne=Ir(y.jsx("path",{d:"M4 15h16v-2H4v2zm0 4h16v-2H4v2zm0-8h16V9H4v2zm0-6v2h16V5H4z"})),yne=Ir(y.jsx("path",{d:"M21,8H3V4h18V8z M21,10H3v4h18V10z M21,16H3v4h18V16z"})),vne=Ir(y.jsx("path",{d:"M4 18h17v-6H4v6zM4 5v6h17V5H4z"})),xne=Ir(y.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"})),e3=Ir(y.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"})),t3=Ir(y.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})),wne=Ir(y.jsx("path",{d:"M19 13H5v-2h14v2z"})),Cne=Ir(y.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"})),n3=Ir(y.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"})),r3=Ir(y.jsx("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),Sne=Ir(y.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"})),Ene=Ir(y.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"})),Tne=Ir(y.jsx("g",{children:y.jsx("path",{d:"M14.67,5v14H9.33V5H14.67z M15.67,19H21V5h-5.33V19z M8.33,19V5H3v14H8.33z"})})),o3=Ir(y.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"}));Ir(y.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 Mne=Ir(y.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"})),kne=Ir(y.jsx("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"})),c9=b.createContext(void 0);function rn(){const e=b.useContext(c9);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(`
`));return e}const u9=b.createContext(void 0),yt=()=>{const e=b.useContext(u9);if(!e)throw new Error("MUI X: useGridRootProps should only be used inside the DataGrid, DataGridPro or DataGridPremium component.");return e},Pne=new TextEncoder;let HS=2*1024,Wv=new ArrayBuffer(HS),Vk=new Uint8Array(Wv),kp=new Int32Array(Wv);const Ine=Ane;function Ane(e){const t=e.length*2;t>HS&&(HS=t+(4-t%4),Wv=new ArrayBuffer(HS),Vk=new Uint8Array(Wv),kp=new Int32Array(Wv));const n=Pne.encodeInto(e,Vk).written,r=0,o=n|0;let i=0,a=(r+o|0)+374761393|0;if(o<16)for(;(i+3|0)<o;i=i+4|0)a=Math.imul(el(a+Math.imul(kp[i]|0,3266489917)|0,17)|0,668265263);else{let l=r+606290984|0,u=r+2246822519|0,d=r,f=r-2654435761|0;for(;(i+15|0)<o;i=i+16|0)l=Math.imul(el(l+Math.imul(kp[i+0|0]|0,2246822519)|0,13)|0,2654435761),u=Math.imul(el(u+Math.imul(kp[i+4|0]|0,2246822519)|0,13)|0,2654435761),d=Math.imul(el(d+Math.imul(kp[i+8|0]|0,2246822519)|0,13)|0,2654435761),f=Math.imul(el(f+Math.imul(kp[i+12|0]|0,2246822519)|0,13)|0,2654435761);for(a=(((el(l,1)|0+el(u,7)|0)+el(d,12)|0)+el(f,18)|0)+o|0;(i+3|0)<o;i=i+4|0)a=Math.imul(el(a+Math.imul(kp[i]|0,3266489917)|0,17)|0,668265263)}for(;i<o;i=i+1|0)a=Math.imul(el(a+Math.imul(Vk[i]|0,374761393)|0,11)|0,2654435761);return a=Math.imul(a^a>>>15,2246822519),a=Math.imul(a^a>>>13,3266489917),((a^a>>>16)>>>0).toString()}function el(e,t){return e<<t|e>>>32-t}function Rne(e){const t=new WeakSet;return JSON.stringify(e,(n,r)=>{if(r!==null&&typeof r=="object"){if(t.has(r))return null;t.add(r)}return r})}const d9={values:{xs:0,sm:600,md:900,lg:1200,xl:1536},up:e=>{const t=d9.values;return`@media (min-width:${typeof t[e]=="number"?t[e]:e}px)`}},f9={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"}},One=p9(f9),vt=z({breakpoints:d9,spacing:_ne,transition:Dne,keys:f9},One);function _ne(e,t,n,r){return e===void 0?tl(1):t===void 0?tl(e):n===void 0?tl(e)+" "+tl(t):r===void 0?tl(e)+" "+tl(t)+" "+tl(n):tl(e)+" "+tl(t)+" "+tl(n)+" "+tl(r)}function tl(e){return e===0?"0":`calc(var(--DataGrid-t-spacing-unit) * ${e})`}function Dne(e,t){const{duration:n=vt.transitions.duration.base,easing:r=vt.transitions.easing.easeInOut,delay:o=0}=t??{};return e.map(i=>`${i} ${n} ${r} ${o}ms`).join(", ")}function p9(e){if(typeof e=="string")return`var(${e})`;const t={};for(const n in e)Object.hasOwn(e,n)&&(t[n]=p9(e[n]));return t}function Lne(){const e=bo();return b.useMemo(()=>{const t=Ine(Rne(e)),n=$ne(e);return{id:t,variables:n}},[e])}function $ne(e){var C,S,E,T,I,k;const t=Fne(e),n=e.palette.DataGrid,r=(n==null?void 0:n.bg)??(e.vars||e).palette.background.default,o=(n==null?void 0:n.headerBg)??r,i=(n==null?void 0:n.pinnedBg)??r,a=e.vars?`rgba(${e.vars.palette.background.defaultChannel} / ${e.vars.palette.action.disabledOpacity})`:cn(e.palette.background.default,e.palette.action.disabledOpacity),l=e.palette.mode==="dark"?`color-mix(in srgb, ${(e.vars||e).palette.background.paper} 95%, #fff)`:(e.vars||e).palette.background.paper,u=e.vars?`rgb(${e.vars.palette.primary.mainChannel})`:e.palette.primary.main,d=jne(e),f=((S=(C=e.vars)==null?void 0:C.font)==null?void 0:S.body2)??Wk(e.typography.body2),m=((T=(E=e.vars)==null?void 0:E.font)==null?void 0:T.caption)??Wk(e.typography.caption),g=((k=(I=e.vars)==null?void 0:I.font)==null?void 0:k.body1)??Wk(e.typography.body1),w=vt.keys;return{[w.spacingUnit]:e.vars?e.vars.spacing??e.spacing(1):e.spacing(1),[w.colors.border.base]:t,[w.colors.background.base]:r,[w.colors.background.overlay]:l,[w.colors.background.backdrop]:a,[w.colors.foreground.base]:(e.vars||e).palette.text.primary,[w.colors.foreground.muted]:(e.vars||e).palette.text.secondary,[w.colors.foreground.accent]:(e.vars||e).palette.primary.dark,[w.colors.foreground.disabled]:(e.vars||e).palette.text.disabled,[w.colors.foreground.error]:(e.vars||e).palette.error.dark,[w.colors.interactive.hover]:(e.vars||e).palette.action.hover,[w.colors.interactive.hoverOpacity]:(e.vars||e).palette.action.hoverOpacity,[w.colors.interactive.focus]:i3((e.vars||e).palette.primary.main),[w.colors.interactive.focusOpacity]:(e.vars||e).palette.action.focusOpacity,[w.colors.interactive.disabled]:i3((e.vars||e).palette.action.disabled),[w.colors.interactive.disabledOpacity]:(e.vars||e).palette.action.disabledOpacity,[w.colors.interactive.selected]:u,[w.colors.interactive.selectedOpacity]:(e.vars||e).palette.action.selectedOpacity,[w.header.background.base]:o,[w.cell.background.pinned]:i,[w.radius.base]:d,[w.typography.fontFamily.base]:e.typography.fontFamily,[w.typography.fontWeight.light]:e.typography.fontWeightLight,[w.typography.fontWeight.regular]:e.typography.fontWeightRegular,[w.typography.fontWeight.medium]:e.typography.fontWeightMedium,[w.typography.fontWeight.bold]:e.typography.fontWeightBold,[w.typography.font.body]:f,[w.typography.font.small]:m,[w.typography.font.large]:g,[w.transitions.easing.easeIn]:e.transitions.easing.easeIn,[w.transitions.easing.easeOut]:e.transitions.easing.easeOut,[w.transitions.easing.easeInOut]:e.transitions.easing.easeInOut,[w.transitions.duration.short]:`${e.transitions.duration.shorter}ms`,[w.transitions.duration.base]:`${e.transitions.duration.short}ms`,[w.transitions.duration.long]:`${e.transitions.duration.standard}ms`,[w.shadows.base]:(e.vars||e).shadows[2],[w.shadows.overlay]:(e.vars||e).shadows[8],[w.zIndex.panel]:(e.vars||e).zIndex.modal,[w.zIndex.menu]:(e.vars||e).zIndex.modal}}function jne(e){return e.vars?e.vars.shape.borderRadius:typeof e.shape.borderRadius=="number"?`${e.shape.borderRadius}px`:e.shape.borderRadius}function Fne(e){return e.vars?e.vars.palette.TableCell.border:e.palette.mode==="light"?hu(cn(e.palette.divider,1),.88):pu(cn(e.palette.divider,1),.68)}function Nne(e,t){return`rgba(from ${e} r g b / ${t})`}function i3(e){return Nne(e,1)}function Wk(e){if(e)return`${e.fontWeight} ${e.fontSize} / ${e.lineHeight} ${e.fontFamily}`}const zne=["id","label","labelId","material","disabled","slotProps","onChange","onKeyDown","onOpen","onClose","size","style","fullWidth"],Bne=["onRowsPerPageChange","material","disabled"],Hne=["material"],Une=["autoFocus","label","fullWidth","slotProps","className","material"],Gne=["material"],Vne=["material"],Wne=["material"],qne=["material"],Yne=["material"],Kne=["material"],Xne=["material"],Zne=["material"],Qne=["material","label","className"],Jne=["material"],ere=["inert","iconStart","iconEnd","children","material"],tre=["slotProps","material"],nre=["id","multiple","freeSolo","options","getOptionLabel","isOptionEqualToValue","value","onChange","label","placeholder","slotProps","material"],rre=["key"],ore=["inputProps","InputProps","InputLabelProps"],ire=["slotProps","material"],are=["ref","open","children","className","clickAwayTouchEvent","clickAwayMouseEvent","flip","focusTrap","onExited","onClickAway","onDidShow","onDidHide","id","target","transition","placement","material"],sre=["native"],a3=Te(Yd)(({theme:e})=>({[`&.${jI.positionEnd} .${AI.sizeSmall}`]:{marginRight:e.spacing(-.75)}})),h9=Te(qF,{shouldForwardProp:e=>e!=="fullWidth"})(({theme:e})=>({gap:e.spacing(.5),margin:0,overflow:"hidden",[`& .${qg.label}`]:{fontSize:e.typography.pxToRem(14),overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),s3=Te(NF,{shouldForwardProp:e=>e!=="density"})(({theme:e})=>({variants:[{props:{density:"compact"},style:{padding:e.spacing(.5)}}]})),lre=Te(m2)({[`& .${Gp.primary}`]:{overflowX:"clip",textOverflow:"ellipsis",maxWidth:"300px"}}),cre=Wt(function(t,n){const{id:r,label:o,labelId:i,material:a,disabled:l,slotProps:u,onChange:d,onKeyDown:f,onOpen:m,onClose:g,size:w,style:C,fullWidth:S}=t,E=tt(t,zne),T={PaperProps:{onKeyDown:f}};return g&&(T.onClose=g),y.jsxs(Hx,{size:w,fullWidth:S,style:C,disabled:l,ref:n,children:[y.jsx(nT,{id:i,htmlFor:r,shrink:!0,variant:"outlined",children:o}),y.jsx(H0,z({id:r,labelId:i,label:o,displayEmpty:!0,onChange:d},E,{variant:"outlined",notched:!0,inputProps:u==null?void 0:u.htmlInput,onOpen:m,MenuProps:T,size:w},a))]})}),ure=Te(Vte)(({theme:e})=>({[`& .${eh.selectLabel}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"block"}},[`& .${eh.input}`]:{display:"none",[e.breakpoints.up("sm")]:{display:"inline-flex"}}})),dre=Wt(function(t,n){const{onRowsPerPageChange:r,material:o,disabled:i}=t,a=tt(t,Bne),l=b.useMemo(()=>{if(i)return{backIconButtonProps:{disabled:!0},nextIconButtonProps:{disabled:!0}}},[i]),u=rn(),d=yt(),{estimatedRowCount:f}=d;return y.jsx(ure,z({component:"div",onRowsPerPageChange:Vt(m=>{r==null||r(Number(m.target.value))}),labelRowsPerPage:u.current.getLocaleText("paginationRowsPerPage"),labelDisplayedRows:m=>u.current.getLocaleText("paginationDisplayedRows")(z({},m,{estimated:f})),getItemAriaLabel:u.current.getLocaleText("paginationItemAriaLabel")},l,a,o,{ref:n}))}),fre=Wt(function(t,n){const{material:r}=t,o=tt(t,Hne);return y.jsx(tT,z({},o,r,{ref:n}))}),pre=Wt(function(t,n){const{autoFocus:r,label:o,fullWidth:i,slotProps:a,className:l,material:u}=t,d=tt(t,Une),f=b.useRef(null),m=Dn(f,n),g=b.useRef(null);return b.useEffect(()=>{var w;if(r){const C=(w=f.current)==null?void 0:w.querySelector("input");C==null||C.focus({preventScroll:!0})}else r===!1&&g.current&&g.current.stop({})},[r]),o?y.jsx(h9,{className:l,control:y.jsx(s3,z({},d,u,{inputProps:a==null?void 0:a.htmlInput,ref:m,touchRippleRef:g})),label:o,fullWidth:i}):y.jsx(s3,z({},d,u,{className:Ve(l,u==null?void 0:u.className),inputProps:a==null?void 0:a.htmlInput,ref:m,touchRippleRef:g}))}),hre=Wt(function(t,n){const{material:r}=t,o=tt(t,Gne);return y.jsx(YE,z({},o,r,{ref:n}))}),mre=Wt(function(t,n){const{material:r}=t,o=tt(t,Vne);return y.jsx(Zi,z({},o,r,{ref:n}))}),gre=Wt(function(t,n){const{material:r}=t,o=tt(t,Wne);return y.jsx(AJ,z({},o,r,{ref:n}))}),bre=Wt(function(t,n){const{material:r}=t,o=tt(t,qne);return y.jsx(B0,z({},o,r,{ref:n}))}),yre=Wt(function(t,n){const{material:r}=t,o=tt(t,Yne);return y.jsx(xc,z({},o,r,{ref:n}))}),vre=Wt(function(t,n){const{material:r}=t,o=tt(t,Kne);return y.jsx(Ur,z({},o,r,{ref:n}))}),xre=Wt(function(t,n){const{material:r}=t,o=tt(t,Xne);return y.jsx(U0,z({},o,r,{ref:n}))}),wre=Wt(function(t,n){const{material:r}=t,o=tt(t,Zne);return y.jsx(Kee,z({},o,r,{ref:n}))}),Cre=Wt(function(t,n){const{material:r,label:o,className:i}=t,a=tt(t,Qne);return o?y.jsx(h9,{className:i,control:y.jsx(GI,z({},a,r,{ref:n})),label:o}):y.jsx(GI,z({},a,r,{className:i,ref:n}))}),Sre=Wt(function(t,n){const{material:r}=t,o=tt(t,Jne);return y.jsx(QF,z({},o,r,{ref:n}))});function Ere(e){const{inert:t,iconStart:n,iconEnd:r,children:o,material:i}=e,a=tt(e,ere);return t&&(a.disableRipple=!0),b.createElement(fh,z({},a,i),[n&&y.jsx(sx,{children:n},"1"),y.jsx(lre,{children:o},"2"),r&&y.jsx(sx,{children:r},"3")])}function Tre(e){const{slotProps:t,material:n}=e,r=tt(e,tre);return y.jsx(rf,z({variant:"outlined"},r,n,{inputProps:t==null?void 0:t.htmlInput,InputProps:tO(t==null?void 0:t.input),InputLabelProps:z({shrink:!0},t==null?void 0:t.inputLabel)}))}function Mre(e){const t=yt(),{id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:u,onChange:d,label:f,placeholder:m,slotProps:g,material:w}=e,C=tt(e,nre);return y.jsx(Bx,z({id:n,multiple:r,freeSolo:o,options:i,getOptionLabel:a,isOptionEqualToValue:l,value:u,onChange:d,renderTags:(S,E)=>S.map((T,I)=>{const k=E({index:I}),{key:R}=k,P=tt(k,rre);return y.jsx(xc,z({variant:"outlined",size:"small",label:typeof T=="string"?T:a==null?void 0:a(T)},P),R)}),renderInput:S=>{var R;const{inputProps:E,InputProps:T,InputLabelProps:I}=S,k=tt(S,ore);return y.jsx(rf,z({},k,{label:f,placeholder:m,inputProps:E,InputProps:tO(T,!1),InputLabelProps:z({shrink:!0},I)},g==null?void 0:g.textField,(R=t.slotProps)==null?void 0:R.baseTextField))}},C,w))}function kre(e){return y.jsx(zx,z({},tO(e)))}function tO(e,t=!0){if(!e)return;const{slotProps:n,material:r}=e,i=tt(e,ire);t&&(i.startAdornment&&(i.startAdornment=y.jsx(a3,{position:"start",children:i.startAdornment})),i.endAdornment&&(i.endAdornment=y.jsx(a3,{position:"end",children:i.endAdornment})));for(const a in r)Object.hasOwn(r,a)&&(i[a]=r[a]);return n!=null&&n.htmlInput&&(i.inputProps?i.inputProps=z({},i.inputProps,n==null?void 0:n.htmlInput):i.inputProps=n==null?void 0:n.htmlInput),i}const Pre={"bottom-start":"top left","bottom-end":"top right"};function Ire(e){const{open:t,children:n,className:r,flip:o,onExited:i,onDidShow:a,onDidHide:l,id:u,target:d,transition:f,placement:m,material:g}=e,w=tt(e,are),C=b.useMemo(()=>{const E=[{name:"preventOverflow",options:{padding:8}}];return o&&E.push({name:"flip",enabled:!0,options:{rootBoundary:"document"}}),(a||l)&&E.push({name:"isPlaced",enabled:!0,phase:"main",fn:()=>{a==null||a()},effect:()=>()=>{l==null||l()}}),E},[o,a,l]);let S;if(!f)S=l3(e,n);else{const E=T=>I=>{T&&T(),i&&i(I)};S=T=>{var I;return l3(e,y.jsx(dh,z({},T.TransitionProps,{style:{transformOrigin:Pre[T.placement]},onExited:E((I=T.TransitionProps)==null?void 0:I.onExited),children:y.jsx(bl,{children:n})})))}}return y.jsx(z0,z({id:u,className:r,open:t,anchorEl:d,transition:f,placement:m,modifiers:C},w,g,{children:S}))}function l3(e,t){return Rre(e,Are(e,t))}function Are(e,t){return e.onClickAway===void 0?t:y.jsx(zF,{onClickAway:e.onClickAway,touchEvent:e.clickAwayTouchEvent,mouseEvent:e.clickAwayMouseEvent,children:t})}function Rre(e,t){return e.focusTrap===void 0?t:y.jsx(UF,{open:!0,disableEnforceFocus:!0,disableAutoFocus:!0,children:y.jsx("div",{tabIndex:-1,children:t})})}function Ore(e){let{native:t}=e,n=tt(e,sre);return t?y.jsx("option",z({},n)):y.jsx(fh,z({},n))}const _re={booleanCellTrueIcon:r3,booleanCellFalseIcon:e3,columnMenuIcon:xne,openFilterButtonIcon:pne,filterPanelDeleteIcon:e3,columnFilteredIcon:JD,columnSelectorIcon:mne,columnSortedAscendingIcon:KD,columnSortedDescendingIcon:XD,columnResizeIcon:gne,densityCompactIcon:bne,densityStandardIcon:yne,densityComfortableIcon:vne,exportIcon:kne,moreActionsIcon:Sne,treeDataCollapseIcon:QD,treeDataExpandIcon:ZD,groupingCriteriaCollapseIcon:QD,groupingCriteriaExpandIcon:ZD,detailPanelExpandIcon:t3,detailPanelCollapseIcon:wne,rowReorderIcon:n3,quickFilterIcon:hne,quickFilterClearIcon:o3,columnMenuHideIcon:Ene,columnMenuSortAscendingIcon:KD,columnMenuSortDescendingIcon:XD,columnMenuUnsortIcon:null,columnMenuFilterIcon:JD,columnMenuManageColumnsIcon:Tne,columnMenuClearIcon:o3,loadIcon:Cne,filterPanelAddIcon:t3,filterPanelRemoveAllIcon:Mne,columnReorderIcon:n3,menuItemCheckIcon:r3},Dre={baseAutocomplete:Mre,baseBadge:fre,baseCheckbox:pre,baseChip:yre,baseCircularProgress:hre,baseDivider:mre,baseInput:kre,baseLinearProgress:gre,baseMenuList:Sre,baseMenuItem:Ere,baseTextField:Tre,baseButton:bre,baseIconButton:vre,baseTooltip:xre,basePagination:dre,basePopper:Ire,baseSelect:cre,baseSelectOption:Ore,baseSkeleton:wre,baseSwitch:Cre},Lre=z({},Dre,_re);var b2=Symbol("NOT_FOUND");function $re(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function jre(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Fre(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var c3=e=>Array.isArray(e)?e:[e];function Nre(e){const t=Array.isArray(e[0])?e[0]:e;return Fre(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function zre(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}function Bre(e){let t;return{get(n){return t&&e(t.key,n)?t.value:b2},put(n,r){t={key:n,value:r}},getEntries(){return t?[t]:[]},clear(){t=void 0}}}function Hre(e,t){let n=[];function r(l){const u=n.findIndex(d=>t(l,d.key));if(u>-1){const d=n[u];return u>0&&(n.splice(u,1),n.unshift(d)),d.value}return b2}function o(l,u){r(l)===b2&&(n.unshift({key:l,value:u}),n.length>e&&n.pop())}function i(){return n}function a(){n=[]}return{get:r,put:o,getEntries:i,clear:a}}var Ure=(e,t)=>e===t;function Gre(e){return function(n,r){if(n===null||r===null||n.length!==r.length)return!1;const{length:o}=n;for(let i=0;i<o;i++)if(!e(n[i],r[i]))return!1;return!0}}function nO(e,t){const n=typeof t=="object"?t:{equalityCheck:t},{equalityCheck:r=Ure,maxSize:o=1,resultEqualityCheck:i}=n,a=Gre(r);let l=0;const u=o<=1?Bre(a):Hre(o,a);function d(){let f=u.get(arguments);if(f===b2){if(f=e.apply(null,arguments),l++,i){const g=u.getEntries().find(w=>i(w.value,f));g&&(f=g.value,l!==0&&l--)}u.put(arguments,f)}return f}return d.clearCache=()=>{u.clear(),d.resetResultsCount()},d.resultsCount=()=>l,d.resetResultsCount=()=>{l=0},d}var Vre=class{constructor(t){this.value=t}deref(){return this.value}},Wre=typeof WeakRef<"u"?WeakRef:Vre,qre=0,u3=1;function rS(){return{s:qre,v:void 0,o:null,p:null}}function m9(e,t={}){let n=rS();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var m;let l=n;const{length:u}=arguments;for(let g=0,w=u;g<w;g++){const C=arguments[g];if(typeof C=="function"||typeof C=="object"&&C!==null){let S=l.o;S===null&&(l.o=S=new WeakMap);const E=S.get(C);E===void 0?(l=rS(),S.set(C,l)):l=E}else{let S=l.p;S===null&&(l.p=S=new Map);const E=S.get(C);E===void 0?(l=rS(),S.set(C,l)):l=E}}const d=l;let f;if(l.s===u3)f=l.v;else if(f=e.apply(null,arguments),i++,r){const g=((m=o==null?void 0:o.deref)==null?void 0:m.call(o))??o;g!=null&&r(g,f)&&(f=g,i!==0&&i--),o=typeof f=="object"&&f!==null||typeof f=="function"?new Wre(f):f}return d.s=u3,d.v=f,f}return a.clearCache=()=>{n=rS(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function rO(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,l,u={},d=o.pop();typeof d=="object"&&(u=d,d=o.pop()),$re(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const f={...n,...u},{memoize:m,memoizeOptions:g=[],argsMemoize:w=m9,argsMemoizeOptions:C=[]}=f,S=c3(g),E=c3(C),T=Nre(o),I=m(function(){return i++,d.apply(null,arguments)},...S),k=w(function(){a++;const P=zre(T,arguments);return l=I.apply(null,P),l},...E);return Object.assign(k,{resultFunc:d,memoizedResultFunc:I,dependencies:T,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:m,argsMemoize:w})};return Object.assign(r,{withTypes:()=>r}),r}var bn=rO(m9),Yre=Object.assign((e,t=bn)=>{jre(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),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,l,u)=>(a[n[u]]=l,a),{}))},{withTypes:()=>Yre});const Kre=Object.is;function g9(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!Kre(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}var qk={exports:{}},Yk={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var d3;function Xre(){if(d3)return Yk;d3=1;var e=F0();function t(m,g){return m===g&&(m!==0||1/m===1/g)||m!==m&&g!==g}var n=typeof Object.is=="function"?Object.is:t,r=e.useState,o=e.useEffect,i=e.useLayoutEffect,a=e.useDebugValue;function l(m,g){var w=g(),C=r({inst:{value:w,getSnapshot:g}}),S=C[0].inst,E=C[1];return i(function(){S.value=w,S.getSnapshot=g,u(S)&&E({inst:S})},[m,w,g]),o(function(){return u(S)&&E({inst:S}),m(function(){u(S)&&E({inst:S})})},[m]),a(w),w}function u(m){var g=m.getSnapshot;m=m.value;try{var w=g();return!n(m,w)}catch{return!0}}function d(m,g){return g()}var f=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?d:l;return Yk.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:f,Yk}var f3;function b9(){return f3||(f3=1,qk.exports=Xre()),qk.exports}var y9=b9();const Zre=Object.is,v9=g9,Qre=(e,t)=>e===t?!0:e.length===t.length&&e.every((n,r)=>n===t[r]),x9=(e,t)=>{let n=Object.is;return t instanceof Array?n=Qre:t instanceof Object&&(n=v9),n(e,t)},Jre=()=>({state:null,equals:null,selector:null,args:void 0}),p3=[],eoe=()=>null,Xe=(e,t,n=void 0,r=Zre)=>{const o=_s(Jre),i=o.current.selector!==null,[a,l]=b.useState(i?null:t(e,n));o.current.state=a,o.current.equals=r,o.current.selector=t;const u=o.current.args;if(o.current.args=n,i&&!x9(u,n)){const m=o.current.selector(e,o.current.args);o.current.equals(o.current.state,m)||(o.current.state=m,l(m))}const d=b.useCallback(()=>(o.current.subscription||(o.current.subscription=e.current.store.subscribe(()=>{const m=o.current.selector(e,o.current.args);o.current.equals(o.current.state,m)||(o.current.state=m,l(m))})),null),p3),f=b.useCallback(()=>()=>{o.current.subscription&&(o.current.subscription(),o.current.subscription=void 0)},p3);return y9.useSyncExternalStore(f,d,eoe),a};class toe{constructor(t){this.value=t}deref(){return this.value}}const noe=()=>typeof WeakRef>"u"?toe:WeakRef,w9=noe(),roe=0,h3=1;function oS(){return{s:roe,v:void 0,o:null,p:null}}function ooe(e){return e instanceof w9?e.deref():e}function ioe(e,t={}){let n=oS();const{resultEqualityCheck:r}=t;let o,i=0;function a(){let l=n;const{length:u}=arguments;for(let m=0,g=u;m<g;m+=1){let w=arguments[m];if(typeof w=="function"||typeof w=="object"&&w!==null){"current"in w&&"instanceId"in w.current&&(w=w.current.state);let C=l.o;C===null&&(C=new WeakMap,l.o=C);const S=C.get(w);S===void 0?(l=oS(),C.set(w,l)):l=S}else{let C=l.p;C===null&&(C=new Map,l.p=C);const S=C.get(w);S===void 0?(l=oS(),C.set(w,l)):l=S}}const d=l;let f;if(l.s===h3)f=l.v;else if(f=e.apply(null,arguments),i+=1,r){const m=ooe(o);m!=null&&r(m,f)&&(f=m,i!==0&&(i-=1)),o=typeof f=="object"&&f!==null||typeof f=="function"?new w9(f):f}return d.s=h3,d.v=f,f}return a.clearCache=()=>{n=oS(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}const m3=rO({memoize:nO,memoizeOptions:{maxSize:1,equalityCheck:Object.is},argsMemoize:ioe}),g3=new WeakMap,wt=(e,t,n,r,o,i,...a)=>{if(a.length>0)throw new Error("Unsupported number of selectors");let l;if(e&&t&&n&&r&&o&&i)l=(u,d)=>{const f=e(u,d),m=t(u,d),g=n(u,d),w=r(u,d),C=o(u,d);return i(f,m,g,w,C,d)};else if(e&&t&&n&&r&&o)l=(u,d)=>{const f=e(u,d),m=t(u,d),g=n(u,d),w=r(u,d);return o(f,m,g,w,d)};else if(e&&t&&n&&r)l=(u,d)=>{const f=e(u,d),m=t(u,d),g=n(u,d);return r(f,m,g,d)};else if(e&&t&&n)l=(u,d)=>{const f=e(u,d),m=t(u,d);return n(f,m,d)};else if(e&&t)l=(u,d)=>{const f=e(u,d);return t(f,d)};else throw new Error("Missing arguments");return l},ao=e=>(t,n)=>e(t.current.state,n),qn=(...e)=>(n,r)=>{const o=n.current.instanceId,i=g3.get(o),a=i??new Map,l=a.get(e);if(a&&l){if(!x9(l.selectorArgs,r)){const f=r!==void 0?[...e.slice(0,e.length-1),()=>r,e[e.length-1]]:e,m=m3(...f);return m.selectorArgs=r,a.set(e,m),m(n,r)}return l(n,r)}const u=r!==void 0?[...e.slice(0,e.length-1),()=>r,e[e.length-1]]:e,d=m3(...u);return d.selectorArgs=r,i||g3.set(o,a),a.set(e,d),d(n,r)},vr=ao(e=>e.dimensions),oT=wt(vr,e=>e.columnsTotalWidth),oO=wt(vr,e=>e.rowHeight),aoe=wt(vr,e=>e.contentSize.height),soe=wt(vr,e=>e.hasScrollX),loe=wt(vr,e=>e.hasScrollY),C9=wt(vr,e=>e.columnsTotalWidth<e.viewportOuterSize.width),coe=wt(vr,e=>e.headerHeight),uoe=wt(vr,e=>e.groupHeaderHeight);wt(vr,e=>e.headerFilterHeight);const doe=wt(vr,e=>e.hasScrollX?e.scrollbarSize:0),S9=wt(vr,e=>e.hasScrollY?e.scrollbarSize:0),foe=wt(vr,doe,(e,t)=>{const n=e.viewportOuterSize.height-e.minimumSize.height>0;return!(t===0&&!n)});function Su(e){return b.memo(e,g9)}const poe={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:r})=>{if(!r)return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`;const o=r&&r>t?`around ${r}`:`more than ${t}`;return`${e}–${t} of ${n!==-1?n:o}`},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 Cn(e){return kt("MuiDataGrid",e)}const ee=Pt("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","rowReorderIcon","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 dl=function(e){return e.DataGrid="DataGrid",e.DataGridPro="DataGridPro",e.DataGridPremium="DataGridPremium",e}({});const b3=1e3;class hoe{constructor(t=b3){this.timeouts=new Map,this.cleanupTimeout=b3,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const o=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,o)}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 moe{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class iO{static create(){return new iO}}const iS={current:boe()};let y3=0;function Mt(e,t,n,r){const o=b.useState(iO.create)[0],i=b.useRef(null),a=b.useRef(null);a.current=n;const l=b.useRef(null);if(!i.current&&a.current){const u=(d,f,m)=>{var g;f.defaultMuiPrevented||(g=a.current)==null||g.call(a,d,f,m)};i.current=e.current.subscribeEvent(t,u,r),y3+=1,l.current={cleanupToken:y3},iS.current.register(o,()=>{var d;(d=i.current)==null||d.call(i),i.current=null,l.current=null},l.current)}else!a.current&&i.current&&(i.current(),i.current=null,l.current&&(iS.current.unregister(l.current),l.current=null));b.useEffect(()=>{if(!i.current&&a.current){const u=(d,f,m)=>{var g;f.defaultMuiPrevented||(g=a.current)==null||g.call(a,d,f,m)};i.current=e.current.subscribeEvent(t,u,r)}return l.current&&iS.current&&(iS.current.unregister(l.current),l.current=null),()=>{var u;(u=i.current)==null||u.call(i),i.current=null}},[e,t,r])}const goe={isFirst:!0};function fr(e,t,n){Mt(e,t,n,goe)}function boe(){return typeof FinalizationRegistry<"u"?new moe:new hoe}const yoe=.7,voe=1.3,xoe={compact:yoe,comfortable:voe,standard:1},Yg=ao(e=>e.density),G0=wt(Yg,e=>xoe[e]);function Eu(e){throw new Error("Failed assertion: should not be rendered")}const woe=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","isValidating","debounceMs","isProcessingProps","onValueChange","slotProps"],Coe=e=>{const{classes:t}=e;return st({root:["editInputCell"]},Cn,t)},Soe=Te(Eu,{name:"MuiDataGrid",slot:"EditInputCell"})({font:vt.typography.font.body,padding:"1px 0","& input":{padding:"0 16px",height:"100%"}}),Eoe=Wt((e,t)=>{const n=yt(),{id:r,value:o,field:i,colDef:a,hasFocus:l,debounceMs:u=200,isProcessingProps:d,onValueChange:f,slotProps:m}=e,g=tt(e,woe),w=rn(),C=b.useRef(null),[S,E]=b.useState(o),T=Coe(n),I=b.useCallback(async R=>{const P=R.target.value,O=w.current.getColumn(i);let j=P;O.valueParser&&(j=O.valueParser(P,w.current.getRow(r),O,w)),E(j),w.current.setEditCellValue({id:r,field:i,value:j,debounceMs:u,unstable_skipValueParser:!0},R),f&&await f(R,P)},[w,u,i,r,f]),k=w.current.unstable_getEditCellMeta(r,i);return b.useEffect(()=>{(k==null?void 0:k.changeReason)!=="debouncedSetEditCellValue"&&E(o)},[k,o]),kn(()=>{l&&C.current.focus()},[l]),y.jsx(Soe,z({as:n.slots.baseInput,inputRef:C,className:T.root,ownerState:n,fullWidth:!0,type:a.type==="number"?a.type:"text",value:S??"",onChange:I,endAdornment:d?y.jsx(n.slots.loadIcon,{fontSize:"small",color:"action"}):void 0},g,m==null?void 0:m.root,{ref:t}))}),Toe=e=>y.jsx(Eoe,z({},e)),vl=ao(e=>e.rows),Ux=wt(vl,e=>e.totalRowCount),Moe=wt(vl,e=>e.loading),koe=wt(vl,e=>e.totalTopLevelRowCount),xs=wt(vl,e=>e.dataRowIdToModelLookup);wt(xs,(e,t)=>e[t]);const hi=wt(vl,e=>e.tree),cc=wt(hi,(e,t)=>e[t]),Poe=wt(vl,e=>e.groupsToFetch),Ioe=wt(vl,e=>e.groupingName),v3=wt(vl,e=>e.treeDepths),V0=qn(vl,e=>{const t=Object.entries(e.treeDepths);return t.length===0?1:(t.filter(([,n])=>n>0).map(([n])=>Number(n)).sort((n,r)=>r-n)[0]??0)+1}),Vp=wt(vl,e=>e.dataRowIds),Aoe=qn(Vp,xs,(e,t)=>e.reduce((n,r)=>(t[r]&&n.push(t[r]),n),[])),Roe=wt(vl,e=>e==null?void 0:e.additionalRowGroups),W0=qn(Roe,e=>{var n,r;const t=e==null?void 0:e.pinnedRows;return{bottom:((n=t==null?void 0:t.bottom)==null?void 0:n.map(o=>({id:o.id,model:o.model??{}})))??[],top:((r=t==null?void 0:t.top)==null?void 0:r.map(o=>({id:o.id,model:o.model??{}})))??[]}}),E9=wt(W0,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)}),T9=(e,t)=>t&&e.length>1?[e[0]]:e,x3=(e,t)=>n=>z({},n,{sorting:z({},n.sorting,{sortModel:T9(e,t)})}),Ooe=e=>e==="desc",_oe=(e,t)=>{const n=t.current.getColumn(e.field);if(!n||e.sort===null)return null;let r;return n.getSortComparator?r=n.getSortComparator(e.sort):r=Ooe(e.sort)?(...i)=>-1*n.sortComparator(...i):n.sortComparator,r?{getSortCellParams:i=>({id:i,field:n.field,rowNode:cc(t,i),value:t.current.getCellValue(i,n.field),api:t.current}),comparator:r}:null},Doe=(e,t,n)=>e.reduce((r,o,i)=>{if(r!==0)return r;const a=t.params[i],l=n.params[i];return r=o.comparator(a.value,l.value,a,l),r},0),Loe=(e,t)=>{const n=e.map(r=>_oe(r,t)).filter(r=>!!r);return n.length===0?null:r=>r.map(o=>({node:o,params:n.map(i=>i.getSortCellParams(o.id))})).sort((o,i)=>Doe(n,o,i)).map(o=>o.node.id)},w3=(e,t)=>{const n=e.indexOf(t);return!t||n===-1||n+1===e.length?e[0]:e[n+1]},aO=(e,t)=>e==null&&t!=null?-1:t==null&&e!=null?1:e==null&&t==null?0:null,$oe=new Intl.Collator,joe=(e,t)=>{const n=aO(e,t);return n!==null?n:typeof e=="string"?$oe.compare(e.toString(),t.toString()):e-t},M9=(e,t)=>{const n=aO(e,t);return n!==null?n:Number(e)-Number(t)},k9=(e,t)=>{const n=aO(e,t);return n!==null?n:e>t?1:e<t?-1:0},Foe=["item","applyValue","type","apiRef","focusElementRef","tabIndex","disabled","isFilterActive","slotProps","clearButton","headerFilterMenu"];function vs(e){var P,O,j;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,disabled:l,slotProps:u,clearButton:d,headerFilterMenu:f}=e,m=tt(e,Foe),g=u==null?void 0:u.root,w=ya(),[C,S]=b.useState(Kk(t.value)),[E,T]=b.useState(!1),I=Mn(),k=yt(),R=b.useCallback(F=>{const D=Kk(F.target.value);S(D),T(!0),w.start(k.filterDebounceMs,()=>{const _=z({},t,{value:r==="number"&&!Number.isNaN(Number(D))?Number(D):D,fromInput:I});n(_),T(!1)})},[w,k.filterDebounceMs,t,r,I,n]);return b.useEffect(()=>{(t.fromInput!==I||t.value==null)&&S(Kk(t.value))},[I,t]),y.jsxs(b.Fragment,{children:[y.jsx(k.slots.baseTextField,z({id:I,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:C??"",onChange:R,type:r||"text",disabled:l,slotProps:z({},g==null?void 0:g.slotProps,{input:z({endAdornment:E?y.jsx(k.slots.loadIcon,{fontSize:"small",color:"action"}):null},(P=g==null?void 0:g.slotProps)==null?void 0:P.input),htmlInput:z({tabIndex:a},(O=g==null?void 0:g.slotProps)==null?void 0:O.htmlInput)}),inputRef:i},(j=k.slotProps)==null?void 0:j.baseTextField,m,g)),f,d]})}function Kk(e){if(!(e==null||e===""))return String(e)}function Noe(e){return typeof e=="number"&&!Number.isNaN(e)}function zoe(e){return typeof e=="function"}function sO(e){return typeof e=="object"&&e!==null}function Boe(){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 y2(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}const qa=(e,t,n)=>Math.max(t,Math.min(n,e));function C3(e,t){return Array.from({length:t-e}).map((n,r)=>e+r)}function Hoe(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 Uoe(e){const t=Hoe(e);return(n,r)=>n+(r-n)*t()}function P9(e){return typeof structuredClone=="function"?structuredClone(e):JSON.parse(JSON.stringify(e))}const $d=(e,t)=>n=>{e&&t(n)};function I9(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,l=Mn(),[u,d]=b.useState([]),[f,m]=b.useState(t.value||[]),g=yt();b.useEffect(()=>{const E=t.value??[];m(E.map(String))},[t.value]);const w=b.useCallback((E,T)=>{m(T.map(String)),n(z({},t,{value:[...T.map(I=>r==="number"?Number(I):I)]}))},[n,t,r]),C=b.useCallback((E,T)=>{d(T===""?[]:[T])},[d]),S=g.slots.baseAutocomplete;return y.jsx(S,z({multiple:!0,freeSolo:!0,options:u,id:l,value:f,onChange:w,onInputChange:C,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},a==null?void 0:a.root))}var yc=function(e){return e.Cell="cell",e.Row="row",e}(yc||{}),Qn=function(e){return e.Edit="edit",e.View="view",e}(Qn||{}),kr=function(e){return e.Edit="edit",e.View="view",e}(kr||{}),Xi=function(e){return e.And="and",e.Or="or",e}(Xi||{});class Goe{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 Voe{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 jd=e=>e.type==="include"?new Goe(e):new Voe(e);var ru=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e.pasteKeyDown="pasteKeyDown",e}(ru||{}),ol=function(e){return e.cellFocusOut="cellFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(ol||{}),Pd=function(e){return e.enterKeyDown="enterKeyDown",e.cellDoubleClick="cellDoubleClick",e.printableKeyDown="printableKeyDown",e.deleteKeyDown="deleteKeyDown",e}(Pd||{}),oc=function(e){return e.rowFocusOut="rowFocusOut",e.escapeKeyDown="escapeKeyDown",e.enterKeyDown="enterKeyDown",e.tabKeyDown="tabKeyDown",e.shiftTabKeyDown="shiftTabKeyDown",e}(oc||{});function A9(e){return e.field!==void 0}const R9={filteredRowsLookup:{},filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}},lx=()=>({items:[],logicOperator:Xi.And,quickFilterValues:[],quickFilterLogicOperator:Xi.And});function O9(e){return{current:e.current.getPublicApi()}}let _d=function(e){return e.LEFT="left",e.RIGHT="right",e}({});const v2={left:[],right:[]},_9=ao(e=>e.isRtl),fl=ao(e=>e.columns),fc=wt(fl,e=>e.orderedFields),Tu=wt(fl,e=>e.lookup),Ts=qn(fc,Tu,(e,t)=>e.map(n=>t[n])),cl=wt(fl,e=>e.columnVisibilityModel),Woe=wt(fl,e=>e.initialColumnVisibilityModel),ro=qn(Ts,cl,(e,t)=>e.filter(n=>t[n.field]!==!1)),q0=qn(ro,e=>e.map(t=>t.field)),D9=ao(e=>e.pinnedColumns);qn(D9,fc,_9,(e,t,n)=>L9(e,t,n));const Y0=qn(fl,D9,q0,_9,(e,t,n,r)=>{const o=L9(t,n,r);return{left:o.left.map(a=>e.lookup[a]),right:o.right.map(a=>e.lookup[a])}});function L9(e,t,n){var l,u;if(!Array.isArray(e.left)&&!Array.isArray(e.right)||((l=e.left)==null?void 0:l.length)===0&&((u=e.right)==null?void 0:u.length)===0)return v2;const r=(d,f)=>Array.isArray(d)?d.filter(m=>f.includes(m)):[],o=r(e.left,t),i=t.filter(d=>!o.includes(d)),a=r(e.right,i);return n?{left:a,right:o}:{left:o,right:a}}const of=qn(ro,e=>{const t=[];let n=0;for(let r=0;r<e.length;r+=1)t.push(n),n+=e[r].computedWidth;return t}),$9=qn(Ts,e=>e.filter(t=>t.filterable)),qoe=qn(Ts,e=>e.reduce((t,n)=>(n.filterable&&(t[n.field]=n),t),{})),Yoe=qn(Ts,e=>e.some(t=>t.colSpan!==void 0));let ov;function Koe(){if(ov!==void 0)return ov;try{ov=new Function("return true")()}catch{ov=!1}return ov}const WI=(e,t)=>{const n=z({},e);if(n.id==null&&(n.id=Math.round(Math.random()*1e5)),n.operator==null){const r=Tu(t)[n.field];n.operator=r&&r.filterOperators[0].value}return n},lO=(e,t,n)=>{const r=e.items.length>1;let o;r&&t?o=[e.items[0]]:o=e.items;const i=r&&o.some(l=>l.id==null);return o.some(l=>l.operator==null)||i?z({},e,{items:o.map(l=>WI(l,n))}):e.items!==o?z({},e,{items:o}):e},S3=(e,t,n)=>r=>z({},r,{filterModel:lO(e,t,n)}),cx=e=>typeof e=="string"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e,j9=(e,t)=>{var f;if(!e.field||!e.operator)return null;const n=t.current.getColumn(e.field);if(!n)return null;let r;if(n.valueParser){const m=n.valueParser;r=Array.isArray(e.value)?(f=e.value)==null?void 0:f.map(g=>m(g,void 0,n,t)):m(e.value,void 0,n,t)}else r=e.value;const{ignoreDiacritics:o}=t.current.rootProps;o&&(r=cx(r));const i=z({},e,{value:r}),a=n.filterOperators;if(!(a!=null&&a.length))throw new Error(`MUI X: No filter operators found for column '${n.field}'.`);const l=a.find(m=>m.value===i.operator);if(!l)throw new Error(`MUI X: No filter operator found for column '${n.field}' and operator value '${i.operator}'.`);const u=O9(t),d=l.getApplyFilterFn(i,n);return typeof d!="function"?null:{item:i,fn:m=>{let g=t.current.getRowValue(m,n);return o&&(g=cx(g)),d(g,m,n,u)}}};let E3=1;const Xoe=(e,t,n)=>{const{items:r}=e,o=r.map(l=>j9(l,t)).filter(l=>!!l);if(o.length===0)return null;if(n||!Koe())return(l,u)=>{const d={};for(let f=0;f<o.length;f+=1){const m=o[f];(!u||u(m.item.field))&&(d[m.item.id]=m.fn(l))}return d};const i=new Function("appliers","row","shouldApplyFilter",`"use strict";
${o.map((l,u)=>`const shouldApply${u} = !shouldApplyFilter || shouldApplyFilter(${JSON.stringify(l.item.field)});`).join(`
`)}

const result$$ = {
${o.map((l,u)=>`  ${JSON.stringify(String(l.item.id))}: !shouldApply${u} ? false : appliers[${u}].fn(row),`).join(`
`)}
};

return result$$;`.replaceAll("$$",String(E3)));return E3+=1,(l,u)=>i(o,l,u)},F9=e=>e.quickFilterExcludeHiddenColumns??!0,Zoe=(e,t)=>{var l;const n=((l=e.quickFilterValues)==null?void 0:l.filter(Boolean))??[];if(n.length===0)return null;const r=F9(e)?q0(t):fc(t),o=[],{ignoreDiacritics:i}=t.current.rootProps,a=O9(t);return r.forEach(u=>{const d=t.current.getColumn(u),f=d==null?void 0:d.getApplyQuickFilterFn;f&&o.push({column:d,appliers:n.map(m=>{const g=i?cx(m):m;return{fn:f(g,d,a)}})})}),function(d,f){const m={};e:for(let g=0;g<n.length;g+=1){const w=n[g];for(let C=0;C<o.length;C+=1){const{column:S,appliers:E}=o[C],{field:T}=S;if(f&&!f(T))continue;const I=E[g];let k=t.current.getRowValue(d,S);if(I.fn===null)continue;if(i&&(k=cx(k)),I.fn(k,d,S,a)){m[w]=!0;continue e}}m[w]=!1}return m}},Qoe=(e,t,n)=>{const r=Xoe(e,t,n),o=Zoe(e,t);return function(a,l,u){u.passingFilterItems=(r==null?void 0:r(a,l))??null,u.passingQuickFilterValues=(o==null?void 0:o(a,l))??null}},T3=e=>e!=null,Joe=(e,t,n)=>(e.cleanedFilterItems||(e.cleanedFilterItems=n.filter(r=>j9(r,t)!==null)),e.cleanedFilterItems),eie=(e,t,n,r,o)=>{const i=Joe(o,r,n.items),a=e.filter(T3),l=t.filter(T3);if(a.length>0){const u=f=>a.some(m=>m[f.id]);if((n.logicOperator??lx().logicOperator)===Xi.And){if(!i.every(u))return!1}else if(!i.some(u))return!1}if(l.length>0&&n.quickFilterValues!=null){const u=f=>l.some(m=>m[f]);if((n.quickFilterLogicOperator??lx().quickFilterLogicOperator)===Xi.And){if(!n.quickFilterValues.every(u))return!1}else if(!n.quickFilterValues.some(u))return!1}return!0},tie=e=>{if(!e)return null;const t=new RegExp(y2(e),"i");return(n,r,o,i)=>{let a=i.current.getRowFormattedValue(r,o);return i.current.ignoreDiacritics&&(a=cx(a)),a!=null?t.test(a.toString()):!1}},M3=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new RegExp(y2(r),"i");return i=>{if(i==null)return t;const a=o.test(String(i));return t?!a:a}},k3=(e,t)=>n=>{if(!n.value)return null;const r=e?n.value:n.value.trim(),o=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return i=>{if(i==null)return t;const a=o.compare(r,i.toString())===0;return t?!a:a}},P3=e=>()=>t=>{const n=t===""||t==null;return e?!n:n},nie=(e=!1)=>[{value:"contains",getApplyFilterFn:M3(e,!1),InputComponent:vs},{value:"doesNotContain",getApplyFilterFn:M3(e,!0),InputComponent:vs},{value:"equals",getApplyFilterFn:k3(e,!1),InputComponent:vs},{value:"doesNotEqual",getApplyFilterFn:k3(e,!0),InputComponent:vs},{value:"startsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`^${y2(n)}.*$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:vs},{value:"endsWith",getApplyFilterFn:t=>{if(!t.value)return null;const n=e?t.value:t.value.trim(),r=new RegExp(`.*${y2(n)}$`,"i");return o=>o!=null?r.test(o.toString()):!1},InputComponent:vs},{value:"isEmpty",getApplyFilterFn:P3(!1),requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:P3(!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(o=>o.trim()),r=new Intl.Collator(void 0,{sensitivity:"base",usage:"search"});return o=>o!=null?n.some(i=>r.compare(i,o.toString()||"")===0):!1},InputComponent:I9}],pl={width:100,minWidth:50,maxWidth:1/0,hideable:!0,sortable:!0,resizable:!0,filterable:!0,groupable:!0,pinnable:!0,aggregable:!0,editable:!1,sortComparator:joe,type:"string",align:"left",filterOperators:nie(),renderEditCell:Toe,getApplyQuickFilterFn:tie},N9=b.createContext(void 0),iT=()=>{const e=b.useContext(N9);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(`
`));return e},rie="MuiDataGridVariables",cO=b.createContext({className:"unset",tag:y.jsx("style",{href:"/unset"})});function z9(){return b.useContext(cO).className}function oie(){return b.useContext(cO)}function iie(e){const t=iT(),n=yt(),r=t.hooks.useCSSVariables(),o=b.useMemo(()=>{const i=`${rie}-${r.id}`,a=`.${i}{${aie(r.variables)}}`,l=y.jsx("style",{href:`/${i}`,nonce:n.nonce,children:a});return{className:i,tag:l}},[n.nonce,r]);return y.jsx(cO.Provider,{value:o,children:e.children})}function aie(e){let t="";for(const n in e)Object.hasOwn(e,n)&&e[n]!==void 0&&(t+=`${n}:${e[n]};`);return t}const sie=["open","target","onClose","children","position","className","onExited"],lie=e=>{const{classes:t}=e;return st({root:["menu"]},Cn,t)},cie=Te(Eu,{name:"MuiDataGrid",slot:"Menu"})({zIndex:vt.zIndex.menu,[`& .${ee.menuList}`]:{outline:0}});function aT(e){var S;const{open:t,target:n,onClose:r,children:o,position:i,className:a,onExited:l}=e,u=tt(e,sie),d=rn(),f=yt(),m=lie(f),g=z9(),w=b.useRef(null);kn(()=>{var E,T;t?w.current=document.activeElement instanceof HTMLElement?document.activeElement:null:((T=(E=w.current)==null?void 0:E.focus)==null||T.call(E),w.current=null)},[t]),b.useEffect(()=>{const E=t?"menuOpen":"menuClose";d.current.publishEvent(E,{target:n})},[d,t,n]);const C=E=>{E.target&&(n===E.target||n!=null&&n.contains(E.target))||r(E)};return y.jsx(cie,z({as:f.slots.basePopper,className:Ve(m.root,a,g),ownerState:f,open:t,target:n,transition:!0,placement:i,onClickAway:C,onExited:l,clickAwayMouseEvent:"onMouseDown"},u,(S=f.slotProps)==null?void 0:S.basePopper,{children:o}))}const uie=["api","colDef","id","hasFocus","isEditable","field","value","formattedValue","row","rowNode","cellMode","tabIndex","position","focusElementRef"],die=e=>typeof e.getActions=="function";function fie(e){var N;const{colDef:t,id:n,hasFocus:r,tabIndex:o,position:i="bottom-end",focusElementRef:a}=e,l=tt(e,uie),[u,d]=b.useState(-1),[f,m]=b.useState(!1),g=rn(),w=b.useRef(null),C=b.useRef(null),S=b.useRef(!1),E=b.useRef({}),T=Lo(),I=Mn(),k=Mn(),R=yt();if(!die(t))throw new Error("MUI X: Missing the `getActions` property in the `GridColDef`.");const P=t.getActions(g.current.getRowParams(n)),O=P.filter(H=>!H.props.showInMenu),j=P.filter(H=>H.props.showInMenu),F=O.length+(j.length?1:0);b.useLayoutEffect(()=>{r||Object.entries(E.current).forEach(([H,Y])=>{Y==null||Y.stop({},()=>{delete E.current[H]})})},[r]),b.useEffect(()=>{if(u<0||!w.current||u>=w.current.children.length)return;w.current.children[u].focus({preventScroll:!0})},[u]),b.useEffect(()=>{r||(d(-1),S.current=!1)},[r]),b.useImperativeHandle(a,()=>({focus(){if(!S.current){const H=P.findIndex(Y=>!Y.props.disabled);d(H)}}}),[P]),b.useEffect(()=>{u>=F&&d(F-1)},[u,F]);const D=()=>{m(!0),d(F-1),S.current=!0},_=()=>{m(!1)},$=H=>{H.stopPropagation(),H.preventDefault(),f?_():D()},B=H=>Y=>{E.current[H]=Y},V=(H,Y)=>Q=>{d(H),S.current=!0,Y&&Y(Q)},q=H=>{if(F<=1)return;const Y=(W,K)=>{var ce;if(W<0||W>P.length)return W;const ae=(K==="left"?-1:1)*(T?-1:1);return(ce=P[W+ae])!=null&&ce.props.disabled?Y(W+ae,K):W+ae};let Q=u;H.key==="ArrowRight"?Q=Y(u,"right"):H.key==="ArrowLeft"&&(Q=Y(u,"left")),!(Q<0||Q>=F)&&Q!==u&&(H.preventDefault(),H.stopPropagation(),d(Q))},G=H=>{H.key==="Tab"&&H.preventDefault(),["Tab","Escape"].includes(H.key)&&_()};return y.jsxs("div",z({role:"menu",ref:w,tabIndex:-1,className:ee.actionsCell,onKeyDown:q},l,{children:[O.map((H,Y)=>b.cloneElement(H,{key:Y,touchRippleRef:B(Y),onClick:V(Y,H.props.onClick),tabIndex:u===Y?o:-1})),j.length>0&&k&&y.jsx(R.slots.baseIconButton,z({ref:C,id:k,"aria-label":g.current.getLocaleText("actionsCellMore"),"aria-haspopup":"menu","aria-expanded":f,"aria-controls":f?I:void 0,role:"menuitem",size:"small",onClick:$,touchRippleRef:B(k),tabIndex:u===O.length?o:-1},(N=R.slotProps)==null?void 0:N.baseIconButton,{children:y.jsx(R.slots.moreActionsIcon,{fontSize:"small"})})),j.length>0&&y.jsx(aT,{open:f,target:C.current,position:i,onClose:_,children:y.jsx(R.slots.baseMenuList,{id:I,className:ee.menuList,onKeyDown:G,"aria-labelledby":k,autoFocusItem:!0,children:j.map((H,Y)=>b.cloneElement(H,{key:Y,closeMenu:_}))})})]}))}const pie=e=>y.jsx(fie,z({},e)),sT="actions",hie=z({},pl,{sortable:!1,filterable:!1,aggregable:!1,width:100,display:"flex",align:"center",headerAlign:"center",headerName:"",disableColumnMenu:!0,disableExport:!0,renderCell:pie,getApplyQuickFilterFn:()=>null}),Qo="auto-generated-group-node-root",m0=Symbol("mui.id_autogenerated"),mie=()=>({type:"group",id:Qo,depth:-1,groupingField:null,groupingKey:null,isAutoGenerated:!0,children:[],childrenFromPath:{},childrenExpanded:!0,parent:null});function gie(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(`
`))}const lT=(e,t,n)=>{const r=t?t(e):e.id;return gie(r,e,n),r},bie=(e,t,n)=>{const r=t.field;if(!t||!t.valueGetter)return e[r];const o=e[t.field];return t.valueGetter(o,e,t,n)},US=({rows:e,getRowId:t,loading:n,rowCount:r})=>{const o={type:"full",rows:[]},i={};for(let a=0;a<e.length;a+=1){const l=e[a],u=lT(l,t);i[u]=l,o.rows.push(u)}return{rowsBeforePartialUpdates:e,loadingPropBeforePartialUpdates:n,rowCountPropBeforePartialUpdates:r,updates:o,dataRowIdToModelLookup:i}},B9=({tree:e,rowCountProp:t=0})=>{const n=e[Qo];return Math.max(t,n.children.length+(n.footerId==null?0:1))},H9=({apiRef:e,rowCountProp:t=0,loadingProp:n,previousTree:r,previousTreeDepths:o,previousGroupsToFetch:i})=>{const a=e.current.caches.rows,{tree:l,treeDepths:u,dataRowIds:d,groupingName:f,groupsToFetch:m=[]}=e.current.applyStrategyProcessor("rowTreeCreation",{previousTree:r,previousTreeDepths:o,updates:a.updates,dataRowIdToModelLookup:a.dataRowIdToModelLookup,previousGroupsToFetch:i}),g=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:l,treeDepths:u,dataRowIds:d,dataRowIdToModelLookup:a.dataRowIdToModelLookup});return e.current.caches.rows.updates={type:"partial",actions:{insert:[],modify:[],remove:[]},idToActionLookup:{}},z({},g,{totalRowCount:Math.max(t,g.dataRowIds.length),totalTopLevelRowCount:B9({tree:g.tree,rowCountProp:t}),groupingName:f,loading:n,groupsToFetch:m})},g0=e=>e.type==="skeletonRow"||e.type==="footer"||e.type==="group"&&e.isAutoGenerated||e.type==="pinnedRow"&&e.isAutoGenerated,uO=(e,t,n)=>{const r=e[t];if(r.type!=="group")return[];const o=[];for(let i=0;i<r.children.length;i+=1){const a=r.children[i];(!n||!g0(e[a]))&&o.push(a);const l=uO(e,a,n);for(let u=0;u<l.length;u+=1)o.push(l[u])}return!n&&r.footerId!=null&&o.push(r.footerId),o},I3=({previousCache:e,getRowId:t,updates:n,groupKeys:r})=>{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 o=new Map;n.forEach(d=>{const f=lT(d,t,"A row was provided without id when calling updateRows():");o.has(f)?o.set(f,z({},o.get(f),d)):o.set(f,d)});const i={type:"partial",actions:{insert:[...e.updates.actions.insert??[]],modify:[...e.updates.actions.modify??[]],remove:[...e.updates.actions.remove??[]]},idToActionLookup:z({},e.updates.idToActionLookup),groupKeys:r},a=z({},e.dataRowIdToModelLookup),l={insert:{},modify:{},remove:{}};o.forEach((d,f)=>{const m=i.idToActionLookup[f];if(d._action==="delete"){if(m==="remove"||!a[f])return;m!=null&&(l[m][f]=!0),i.actions.remove.push(f),delete a[f];return}const g=a[f];if(g){m==="remove"?(l.remove[f]=!0,i.actions.modify.push(f)):m==null&&i.actions.modify.push(f),a[f]=z({},g,d);return}m==="remove"?(l.remove[f]=!0,i.actions.insert.push(f)):m==null&&i.actions.insert.push(f),a[f]=d});const u=Object.keys(l);for(let d=0;d<u.length;d+=1){const f=u[d],m=l[f];Object.keys(m).length>0&&(i.actions[f]=i.actions[f].filter(g=>!m[g]))}return{dataRowIdToModelLookup:a,updates:i,rowsBeforePartialUpdates:e.rowsBeforePartialUpdates,loadingPropBeforePartialUpdates:e.loadingPropBeforePartialUpdates,rowCountPropBeforePartialUpdates:e.rowCountPropBeforePartialUpdates}},U9="var(--DataGrid-overlayHeight, calc(var(--height) * 2))";function A3(e,t,n){const r=[];return t.forEach(o=>{const i=lT(o,n,"A row was provided without id when calling updateRows():"),a=cc(e,i);if((a==null?void 0:a.type)==="pinnedRow"){const l=e.current.caches.pinnedRows,u=l.idLookup[i];u&&(l.idLookup[i]=z({},u,o))}else r.push(o)}),r}const G9=(e,t,n)=>typeof e=="number"&&e>0?e:t,yie="__tree_data_group__",V9="__row_group_by_columns_group__",cT="__detail_panel_toggle__";let Tn=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 vie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","hasFocus","tabIndex","hideDescendantCount"],xie=e=>{const{classes:t}=e;return st({root:["booleanCell"]},Cn,t)};function wie(e){const{value:t,rowNode:n}=e,r=tt(e,vie),o=rn(),i=yt(),a={classes:i.classes},l=xie(a),d=Xe(o,V0)>0&&n.type==="group"&&i.treeData===!1,f=b.useMemo(()=>t?i.slots.booleanCellTrueIcon:i.slots.booleanCellFalseIcon,[i.slots.booleanCellFalseIcon,i.slots.booleanCellTrueIcon,t]);return d&&t===void 0?null:y.jsx(f,z({fontSize:"small",className:l.root,titleAccess:o.current.getLocaleText(t?"booleanCellTrueLabel":"booleanCellFalseLabel"),"data-value":!!t},r))}const Cie=b.memo(wie),Sie=e=>e.field!==V9&&g0(e.rowNode)?"":y.jsx(Cie,z({},e)),Eie=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange"],Tie=e=>{const{classes:t}=e;return st({root:["editBooleanCell"]},Cn,t)};function Mie(e){var T;const{id:t,value:n,field:r,className:o,hasFocus:i,onValueChange:a}=e,l=tt(e,Eie),u=rn(),d=b.useRef(null),f=Mn(),[m,g]=b.useState(n),w=yt(),C={classes:w.classes},S=Tie(C),E=b.useCallback(async I=>{const k=I.target.checked;a&&await a(I,k),g(k),await u.current.setEditCellValue({id:t,field:r,value:k},I)},[u,r,t,a]);return b.useEffect(()=>{g(n)},[n]),kn(()=>{i&&d.current.focus()},[i]),y.jsx("label",z({htmlFor:f,className:Ve(S.root,o)},l,{children:y.jsx(w.slots.baseCheckbox,z({id:f,inputRef:d,checked:!!m,onChange:E,size:"small"},(T=w.slotProps)==null?void 0:T.baseCheckbox))}))}const kie=e=>y.jsx(Mie,z({},e)),Pie=["item","applyValue","apiRef","focusElementRef","isFilterActive","headerFilterMenu","clearButton","tabIndex","slotProps"];function Iie(e){var P,O;const{item:t,applyValue:n,apiRef:r,focusElementRef:o,headerFilterMenu:i,clearButton:a,tabIndex:l,slotProps:u}=e,d=tt(e,Pie),[f,m]=b.useState(GS(t.value)),g=yt(),w=Mn(),C=Mn(),S=((P=g.slotProps)==null?void 0:P.baseSelect)||{},E=S.native??!1,T=((O=g.slotProps)==null?void 0:O.baseSelectOption)||{},I=b.useCallback(j=>{const F=GS(j.target.value);m(F),n(z({},t,{value:F}))},[n,t]);b.useEffect(()=>{m(GS(t.value))},[t.value]);const k=(u==null?void 0:u.root.label)??r.current.getLocaleText("filterPanelInputLabel"),R=u==null?void 0:u.root.slotProps;return y.jsxs(b.Fragment,{children:[y.jsxs(g.slots.baseSelect,z({fullWidth:!0,labelId:w,id:C,label:k,value:f===void 0?"":String(f),onChange:I,native:E,slotProps:{htmlInput:z({ref:o,tabIndex:l},R==null?void 0:R.htmlInput)}},S,d,u==null?void 0:u.root,{children:[y.jsx(g.slots.baseSelectOption,z({},T,{native:E,value:"",children:r.current.getLocaleText("filterValueAny")})),y.jsx(g.slots.baseSelectOption,z({},T,{native:E,value:"true",children:r.current.getLocaleText("filterValueTrue")})),y.jsx(g.slots.baseSelectOption,z({},T,{native:E,value:"false",children:r.current.getLocaleText("filterValueFalse")}))]})),i,a]})}function GS(e){if(String(e).toLowerCase()==="true")return!0;if(String(e).toLowerCase()==="false")return!1}const Aie=()=>[{value:"is",getApplyFilterFn:e=>{const t=GS(e.value);return t===void 0?null:n=>!!n===t},InputComponent:Iie}],Rie=(e,t,n,r)=>e?r.current.getLocaleText("booleanCellTrueLabel"):r.current.getLocaleText("booleanCellFalseLabel"),Oie=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}},W9=z({},pl,{type:"boolean",display:"flex",align:"center",headerAlign:"center",renderCell:Sie,renderEditCell:kie,sortComparator:M9,valueFormatter:Rie,filterOperators:Aie(),getApplyQuickFilterFn:()=>null,aggregable:!1,pastedValueParser:e=>Oie(e)});function uT(e){for(const t in e)return!1;return!0}const q9=ao(e=>e.sorting),Gx=wt(q9,e=>e.sortedRows),dO=qn(Gx,xs,hi,(e,t,n)=>e.reduce((r,o)=>{const i=t[o];if(i)r.push({id:o,model:i});else{const a=n[o];a&&g0(a)&&r.push({id:o,model:{[m0]:o}})}return r},[])),ms=wt(q9,e=>e.sortModel),_ie=qn(ms,e=>e.reduce((n,r,o)=>(n[r.field]={sortDirection:r.sort,sortIndex:e.length>1?o+1:void 0},n),{}));qn(Gx,e=>e.reduce((t,n,r)=>(t[n]=r,t),Object.create(null)));const dT=ao(e=>e.filter),No=wt(dT,e=>e.filterModel),Y9=wt(No,e=>e.quickFilterValues),Die=ao(e=>e.visibleRowsLookup),K0=wt(dT,e=>e.filteredRowsLookup);wt(dT,e=>e.filteredChildrenCountLookup);wt(dT,e=>e.filteredDescendantCountLookup);const af=qn(Die,dO,(e,t)=>uT(e)?t:t.filter(n=>e[n.id]!==!1)),i0=qn(af,e=>e.map(t=>t.id)),K9=qn(K0,dO,(e,t)=>uT(e)?t:t.filter(n=>e[n.id]!==!1)),X9=qn(K9,e=>e.map(t=>t.id));qn(i0,hi,(e,t)=>{const n={};let r=0;return e.reduce((o,i)=>{const a=t[i];return n[a.depth]||(n[a.depth]=0),a.depth>r&&(n[a.depth]=0),r=a.depth,n[a.depth]+=1,o[i]=n[a.depth],o},{})});const Z9=qn(af,hi,V0,(e,t,n)=>n<2?e:e.filter(r=>{var o;return((o=t[r.id])==null?void 0:o.depth)===0})),fO=wt(af,e=>e.length),pO=wt(Z9,e=>e.length),Q9=wt(K9,e=>e.length);wt(Q9,pO,(e,t)=>e-t);const hO=qn(No,Tu,(e,t)=>{var n;return(n=e.items)==null?void 0:n.filter(r=>{var a,l;if(!r.field)return!1;const o=t[r.field];if(!(o!=null&&o.filterOperators)||((a=o==null?void 0:o.filterOperators)==null?void 0:a.length)===0)return!1;const i=o.filterOperators.find(u=>u.value===r.operator);return i?!i.InputComponent||r.value!=null&&((l=r.value)==null?void 0:l.toString())!=="":!1})}),Lie=qn(hO,e=>e.reduce((n,r)=>(n[r.field]?n[r.field].push(r):n[r.field]=[r],n),{})),il=ao(e=>e.rowSelection),Vx=qn(il,jd),fT=wt(il,Q9,(e,t)=>e.type==="include"?e.ids.size:t-e.ids.size),J9=qn(il,xs,Vp,(e,t,n)=>{const r=new Map;if(e.type==="include")for(const o of e.ids)r.set(o,t[o]);else for(let o=0;o<n.length;o+=1){const i=n[o];e.ids.has(i)||r.set(i,t[i])}return r});function eN(e,t){var u;const n=hi(e),r=Gx(e),o=K0(e),i=n[t];if(!i||i.type!=="group")return[];const a=[],l=r.findIndex(d=>d===t)+1;for(let d=l;d<r.length&&((u=n[r[d]])==null?void 0:u.depth)>i.depth;d+=1){const f=r[d];o[f]!==!1&&e.current.isRowSelectable(f)&&a.push(f)}return a}const $ie=wt(hi,K0,Vx,(e,t,n,{groupId:r,autoSelectParents:o})=>{const i=e[r];if(!i||i.type!=="group"||n.has(r))return{isIndeterminate:!1,isChecked:n.has(r)};let a=!1,l=!1;const u=d=>{if(t[d]===!1||a&&l)return;const f=e[d];(f==null?void 0:f.type)==="group"&&f.children.forEach(u),n.has(d)?a=!0:l=!0};return u(r),{isIndeterminate:a&&l,isChecked:o?a&&!l:!1}});function mO(e){return e.signature===dl.DataGrid?e.checkboxSelection&&e.disableMultipleRowSelection!==!0:!e.disableMultipleRowSelection}const jie=(e,t)=>{const n=[];let r=t;for(;r!=null&&r!==Qo;){const o=e[r];if(!o)return n;n.push(r),r=o.parent}return n},Fie=(e,t,n)=>{const r=e[n];if(!r)return[];const o=r.parent;return o==null?[]:e[o].children.filter(a=>a!==n&&t[a]!==!1)},iv=(e,t,n,r,o,i,a=Vx(e))=>{const l=K0(e),u=new Set([]);if(!(!r&&!o||l[n]===!1)){if(r){const d=t[n];(d==null?void 0:d.type)==="group"&&eN(e,n).forEach(m=>{i(m),u.add(m)})}if(o){const d=m=>{if(!a.has(m)&&!u.has(m))return!1;const g=t[m];return g?g.type!=="group"?!0:g.children.every(d):!1},f=m=>{const g=Fie(t,l,m);if(g.length===0||g.every(d)){const w=t[m],C=w==null?void 0:w.parent;C!=null&&C!==Qo&&e.current.isRowSelectable(C)&&(i(C),u.add(C),f(C))}};f(n)}}},R3=(e,t,n,r,o,i)=>{const a=Vx(e);if(!(!o&&!r)&&(o&&jie(t,n).forEach(u=>{a.has(u)&&i(u)}),r)){const l=t[n];(l==null?void 0:l.type)==="group"&&eN(e,n).forEach(d=>{i(d)})}},Nie=["field","id","formattedValue","row","rowNode","colDef","isEditable","cellMode","hasFocus","tabIndex","api"],zie=e=>{const{classes:t}=e;return st({root:["checkboxInput"]},Cn,t)},Bie=Wt(function(t,n){var I,k;const{field:r,id:o,rowNode:i,tabIndex:a}=t,l=tt(t,Nie),u=rn(),d=yt(),f={classes:d.classes},m=zie(f),g=R=>{const P={value:R.target.checked,id:o};u.current.publishEvent("rowSelectionCheckboxChange",P,R)};b.useLayoutEffect(()=>{if(a===0){const R=u.current.getCellElement(o,r);R&&(R.tabIndex=-1)}},[u,a,o,r]);const w=b.useCallback(R=>{R.key===" "&&R.stopPropagation()},[]),C=u.current.isRowSelectable(o),{isIndeterminate:S,isChecked:E}=Xe(u,$ie,{groupId:o,autoSelectParents:((I=d.rowSelectionPropagation)==null?void 0:I.parents)??!1});if(i.type==="footer"||i.type==="pinnedRow")return null;const T=u.current.getLocaleText(E&&!S?"checkboxSelectionUnselectRow":"checkboxSelectionSelectRow");return y.jsx(d.slots.baseCheckbox,z({tabIndex:a,checked:E&&!S,onChange:g,className:m.root,slotProps:{htmlInput:{"aria-label":T,name:"select_row"}},onKeyDown:w,indeterminate:S,disabled:!C},(k=d.slotProps)==null?void 0:k.baseCheckbox,l,{ref:n}))}),Hie=Bie,pT=ao(e=>e.focus),ga=wt(pT,e=>e.cell),Uie=wt(pT,e=>e.columnHeader);wt(pT,e=>e.columnHeaderFilter);const x2=wt(pT,e=>e.columnGroupHeader),hT=ao(e=>e.tabIndex),gO=wt(hT,e=>e.cell),tN=wt(hT,e=>e.columnHeader);wt(hT,e=>e.columnHeaderFilter);const Gie=wt(hT,e=>e.columnGroupHeader),Vie=100,Wie=e=>e?0:100,nN=(e,t,n)=>t>0&&e>0?Math.ceil(e/t):e===-1?n+2:0,rN=e=>({page:0,pageSize:e?0:100}),qie=(e,t=0)=>t===0?e:Math.max(Math.min(e,t-1),0),oN=(e,t)=>{if(t===dl.DataGrid&&e>Vie)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(`
`))},Yie=-1,Wx=ao(e=>e.pagination),iN=wt(Wx,e=>e.enabled&&e.paginationMode==="client"),Zo=wt(Wx,e=>e.paginationModel),Kg=wt(Wx,e=>e.rowCount),Rv=wt(Wx,e=>e.meta),Kie=wt(Zo,e=>e.page),aN=wt(Zo,e=>e.pageSize),sN=wt(Zo,Kg,(e,t)=>nN(t,e.pageSize,e.page)),bO=qn(iN,Zo,hi,V0,af,Z9,(e,t,n,r,o,i)=>{var C;if(!e)return null;const a=i.length,l=Math.min(t.pageSize*t.page,a-1),u=t.pageSize===Yie?a-1:Math.min(l+t.pageSize-1,a-1);if(l===-1||u===-1)return null;if(r<2)return{firstRowIndex:l,lastRowIndex:u};const d=i[l],f=u-l+1,m=o.findIndex(S=>S.id===d.id);let g=m,w=0;for(;g<o.length&&w<=f;){const S=o[g],E=(C=n[S.id])==null?void 0:C.depth;E===void 0?g+=1:((w<f||E>0)&&(g+=1),E===0&&(w+=1))}return{firstRowIndex:m,lastRowIndex:g-1}}),Xie=qn(af,bO,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),lN=qn(i0,bO,(e,t)=>t?e.slice(t.firstRowIndex,t.lastRowIndex+1):[]),qx=qn(iN,bO,Xie,af,(e,t,n,r)=>e?{rows:n,range:t,rowIdToIndexMap:n.reduce((o,i,a)=>(o.set(i.id,a),o),new Map)}:{rows:r,range:r.length===0?null:{firstRowIndex:0,lastRowIndex:r.length-1},rowIdToIndexMap:r.reduce((o,i,a)=>(o.set(i.id,a),o),new Map)}),Zie=["field","colDef"],Qie=e=>{const{classes:t}=e;return st({root:["checkboxInput"]},Cn,t)},Jie=Wt(function(t,n){var j;const r=tt(t,Zie),[,o]=b.useState(!1),i=rn(),a=yt(),l={classes:a.classes},u=Qie(l),d=Xe(i,tN),f=Xe(i,il),m=Xe(i,i0),g=Xe(i,lN),w=b.useMemo(()=>{const F=a.isRowSelectable;if(typeof F!="function"||f.type==="exclude")return f;const D={type:"include",ids:new Set};for(const _ of f.ids)a.keepNonExistentRowsSelected&&D.ids.add(_),i.current.getRow(_)&&F(i.current.getRowParams(_))&&D.ids.add(_);return D},[i,a.isRowSelectable,a.keepNonExistentRowsSelected,f]),C=b.useMemo(()=>{const F=!a.pagination||!a.checkboxSelectionVisibleOnly||a.paginationMode==="server"?m:g,D=new Set;for(let _=0;_<F.length;_+=1){const $=F[_];i.current.getRow($)&&i.current.isRowSelectable($)&&D.add($)}return D},[i,a.pagination,a.paginationMode,a.checkboxSelectionVisibleOnly,g,m]),S=b.useMemo(()=>{const F=jd(w);let D=0;for(const _ of C)F.has(_)&&(D+=1);return D},[w,C]),E=b.useMemo(()=>{if(w.ids.size===0)return!1;const F=jd(w);for(const D of C)if(!F.has(D))return!0;return!1},[w,C]),T=S>0,I=F=>{const D={value:F.target.checked};i.current.publishEvent("headerSelectionCheckboxChange",D)},k=d!==null&&d.field===t.field?0:-1;b.useLayoutEffect(()=>{const F=i.current.getColumnHeaderElement(t.field);k===0&&F&&(F.tabIndex=-1)},[k,i,t.field]);const R=b.useCallback(F=>{F.key===" "&&i.current.publishEvent("headerSelectionCheckboxChange",{value:!T})},[i,T]),P=b.useCallback(()=>{o(F=>!F)},[]);b.useEffect(()=>i.current.subscribeEvent("rowSelectionChange",P),[i,P]);const O=i.current.getLocaleText(T&&!E?"checkboxSelectionUnselectAllRows":"checkboxSelectionSelectAllRows");return y.jsx(a.slots.baseCheckbox,z({indeterminate:E,checked:T&&!E,onChange:I,className:u.root,slotProps:{htmlInput:{"aria-label":O,name:"select_all_rows"}},tabIndex:k,onKeyDown:R,disabled:!mO(a)},(j=a.slotProps)==null?void 0:j.baseCheckbox,r,{ref:n}))}),Yx=ao((e,t)=>m0 in t?t[m0]:e.props.getRowId?e.props.getRowId(t):t.id),hs="__check__",X0=z({},W9,{type:"custom",field:hs,width:50,resizable:!1,sortable:!1,filterable:!1,aggregable:!1,disableColumnMenu:!0,disableReorder:!0,disableExport:!0,getApplyQuickFilterFn:()=>null,display:"flex",valueGetter:(e,t,n,r)=>{const o=Yx(r,t);return r.current.isRowSelected(o)},renderHeader:e=>y.jsx(Jie,z({},e)),renderCell:e=>y.jsx(Hie,z({},e))}),eae=["item","applyValue","type","apiRef","focusElementRef","slotProps","isFilterActive","headerFilterMenu","clearButton","tabIndex","disabled"];function O3(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 wg(e){var P;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a,headerFilterMenu:l,clearButton:u,tabIndex:d,disabled:f}=e,m=tt(e,eae),g=a==null?void 0:a.root.slotProps,w=ya(),[C,S]=b.useState(()=>O3(t.value,r)),[E,T]=b.useState(!1),I=Mn(),k=yt(),R=b.useCallback(O=>{w.clear();const j=O.target.value;S(j),T(!0),w.start(k.filterDebounceMs,()=>{const F=new Date(j);n(z({},t,{value:Number.isNaN(F.getTime())?void 0:F})),T(!1)})},[n,t,k.filterDebounceMs,w]);return b.useEffect(()=>{const O=O3(t.value,r);S(O)},[t.value,r]),y.jsxs(b.Fragment,{children:[y.jsx(k.slots.baseTextField,z({fullWidth:!0,id:I,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),value:C,onChange:R,type:r||"text",disabled:f,inputRef:i,slotProps:z({},g,{input:z({endAdornment:E?y.jsx(k.slots.loadIcon,{fontSize:"small",color:"action"}):null},g==null?void 0:g.input),htmlInput:z({max:r==="datetime-local"?"9999-12-31T23:59":"9999-12-31",tabIndex:d},g==null?void 0:g.htmlInput)})},(P=k.slotProps)==null?void 0:P.baseTextField,m,a==null?void 0:a.root)),l,u]})}function Cg(e,t,n,r){if(!e.value)return null;const o=new Date(e.value);n?o.setSeconds(0,0):(o.setMinutes(o.getMinutes()+o.getTimezoneOffset()),o.setHours(0,0,0,0));const i=o.getTime();return a=>{if(!a)return!1;if(r)return t(a.getTime(),i);const l=new Date(a);return n?l.setSeconds(0,0):l.setHours(0,0,0,0),t(l.getTime(),i)}}const cN=e=>[{value:"is",getApplyFilterFn:t=>Cg(t,(n,r)=>n===r,e),InputComponent:wg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"not",getApplyFilterFn:t=>Cg(t,(n,r)=>n!==r,e),InputComponent:wg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"after",getApplyFilterFn:t=>Cg(t,(n,r)=>n>r,e),InputComponent:wg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrAfter",getApplyFilterFn:t=>Cg(t,(n,r)=>n>=r,e),InputComponent:wg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"before",getApplyFilterFn:t=>Cg(t,(n,r)=>n<r,e,!e),InputComponent:wg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"onOrBefore",getApplyFilterFn:t=>Cg(t,(n,r)=>n<=r,e),InputComponent:wg,InputComponentProps:{type:e?"datetime-local":"date"}},{value:"isEmpty",getApplyFilterFn:()=>t=>t==null,requiresFilterValue:!1},{value:"isNotEmpty",getApplyFilterFn:()=>t=>t!=null,requiresFilterValue:!1}],tae=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","hasFocus","inputProps","isValidating","isProcessingProps","onValueChange","slotProps"],nae=Te(Eu)({fontSize:"inherit"}),rae=e=>{const{classes:t}=e;return st({root:["editInputCell"]},Cn,t)};function oae(e){var R,P;const{id:t,value:n,field:r,colDef:o,hasFocus:i,onValueChange:a,slotProps:l}=e,u=tt(e,tae),d=o.type==="dateTime",f=rn(),m=b.useRef(null),g=b.useMemo(()=>{let O;n==null?O=null:n instanceof Date?O=n:O=new Date((n??"").toString());let j;return O==null||Number.isNaN(O.getTime())?j="":j=new Date(O.getTime()-O.getTimezoneOffset()*60*1e3).toISOString().substr(0,d?16:10),{parsed:O,formatted:j}},[n,d]),[w,C]=b.useState(g),S=yt(),E={classes:S.classes},T=rae(E),I=b.useCallback(O=>{if(O==="")return null;const[j,F]=O.split("T"),[D,_,$]=j.split("-"),B=new Date;if(B.setFullYear(Number(D),Number(_)-1,Number($)),B.setHours(0,0,0,0),F){const[V,q]=F.split(":");B.setHours(Number(V),Number(q),0,0)}return B},[]),k=b.useCallback(async O=>{const j=O.target.value,F=I(j);a&&await a(O,F),C({parsed:F,formatted:j}),f.current.setEditCellValue({id:t,field:r,value:F},O)},[f,r,t,a,I]);return b.useEffect(()=>{C(O=>{var j,F;return g.parsed!==O.parsed&&((j=g.parsed)==null?void 0:j.getTime())!==((F=O.parsed)==null?void 0:F.getTime())?g:O})},[g]),kn(()=>{i&&m.current.focus()},[i]),y.jsx(nae,z({as:S.slots.baseInput,inputRef:m,fullWidth:!0,className:T.root,type:d?"datetime-local":"date",value:w.formatted,onChange:k},u,l==null?void 0:l.root,{slotProps:{htmlInput:z({max:d?"9999-12-31T23:59":"9999-12-31"},(P=(R=l==null?void 0:l.root)==null?void 0:R.slotProps)==null?void 0:P.htmlInput)}}))}const uN=e=>y.jsx(oae,z({},e));function dN({value:e,columnType:t,rowId:n,field:r}){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: "${r}".`].join(`
`))}const iae=(e,t,n,r)=>{if(!e)return"";const o=Yx(r,t);return dN({value:e,columnType:"date",rowId:o,field:n.field}),e.toLocaleDateString()},aae=(e,t,n,r)=>{if(!e)return"";const o=Yx(r,t);return dN({value:e,columnType:"dateTime",rowId:o,field:n.field}),e.toLocaleString()},sae=z({},pl,{type:"date",sortComparator:k9,valueFormatter:iae,filterOperators:cN(),renderEditCell:uN,pastedValueParser:e=>new Date(e)}),lae=z({},pl,{type:"dateTime",sortComparator:k9,valueFormatter:aae,filterOperators:cN(!0),renderEditCell:uN,pastedValueParser:e=>new Date(e)}),Dd=e=>e==null?null:Number(e),cae=e=>e==null||Number.isNaN(e)||e===""?null:t=>Dd(t)===Dd(e),uae=()=>[{value:"=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Dd(t)===e.value,InputComponent:vs,InputComponentProps:{type:"number"}},{value:"!=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>Dd(t)!==e.value,InputComponent:vs,InputComponentProps:{type:"number"}},{value:">",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Dd(t)>e.value,InputComponent:vs,InputComponentProps:{type:"number"}},{value:">=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Dd(t)>=e.value,InputComponent:vs,InputComponentProps:{type:"number"}},{value:"<",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Dd(t)<e.value,InputComponent:vs,InputComponentProps:{type:"number"}},{value:"<=",getApplyFilterFn:e=>e.value==null||Number.isNaN(e.value)?null:t=>t==null?!1:Dd(t)<=e.value,InputComponent:vs,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:I9,InputComponentProps:{type:"number"}}],dae=z({},pl,{type:"number",align:"right",headerAlign:"right",sortComparator:M9,valueParser:e=>e===""?null:Number(e),valueFormatter:e=>Noe(e)?e.toLocaleString():e||"",filterOperators:uae(),getApplyQuickFilterFn:cae});function b0(e){return(e==null?void 0:e.type)==="singleSelect"}function ph(e,t){if(e)return typeof e.valueOptions=="function"?e.valueOptions(z({field:e.field},t)):e.valueOptions}function w2(e,t,n){if(t===void 0)return;const r=t.find(o=>{const i=n(o);return String(i)===String(e)});return n(r)}const fae=["id","value","formattedValue","api","field","row","rowNode","colDef","cellMode","isEditable","tabIndex","className","hasFocus","isValidating","isProcessingProps","error","onValueChange","initialOpen","slotProps"];function pae(e){return!!e.key}function hae(e){var _,$;const t=yt(),{id:n,value:r,field:o,row:i,colDef:a,hasFocus:l,error:u,onValueChange:d,initialOpen:f=t.editMode===yc.Cell,slotProps:m}=e,g=tt(e,fae),w=rn(),C=b.useRef(null),S=b.useRef(null),[E,T]=b.useState(f),k=(((_=t.slotProps)==null?void 0:_.baseSelect)||{}).native??!1;if(kn(()=>{var B;l&&((B=S.current)==null||B.focus())},[l]),!b0(a))return null;const R=ph(a,{id:n,row:i});if(!R)return null;const P=a.getOptionValue,O=a.getOptionLabel,j=async B=>{if(!b0(a)||!R)return;T(!1);const V=B.target,q=w2(V.value,R,P);d&&await d(B,q),await w.current.setEditCellValue({id:n,field:o,value:q},B)},F=(B,V)=>{if(t.editMode===yc.Row){T(!1);return}if(V==="backdropClick"||B.key==="Escape"){const q=w.current.getCellParams(n,o);w.current.publishEvent("cellEditStop",z({},q,{reason:B.key==="Escape"?ol.escapeKeyDown:ol.cellFocusOut}))}},D=B=>{pae(B)&&B.key==="Enter"||T(!0)};return!R||!a?null:y.jsx(t.slots.baseSelect,z({ref:C,value:r,onChange:j,open:E,onOpen:D,onClose:F,error:u,native:k,fullWidth:!0,slotProps:{htmlInput:{ref:S}}},g,m==null?void 0:m.root,($=t.slotProps)==null?void 0:$.baseSelect,{children:R.map(B=>{var q;const V=P(B);return b.createElement(t.slots.baseSelectOption,z({},((q=t.slotProps)==null?void 0:q.baseSelectOption)||{},{native:k,key:V,value:V}),O(B))})}))}const mae=e=>y.jsx(hae,z({},e)),gae=["item","applyValue","type","apiRef","focusElementRef","tabIndex","isFilterActive","clearButton","headerFilterMenu","slotProps"],bae=({column:e,OptionComponent:t,getOptionLabel:n,getOptionValue:r,isSelectNative:o,baseSelectOptionProps:i})=>["",...ph(e)||[]].map(l=>{const u=r(l);let d=n(l);return d===""&&(d=" "),b.createElement(t,z({},i,{native:o,key:u,value:u}),d)});function _3(e){var O,j,F,D,_;const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,tabIndex:a,clearButton:l,headerFilterMenu:u,slotProps:d}=e,f=tt(e,gae),m=t.value??"",g=Mn(),w=Mn(),C=yt(),S=((j=(O=C.slotProps)==null?void 0:O.baseSelect)==null?void 0:j.native)??!1;let E=null;if(t.field){const $=o.current.getColumn(t.field);b0($)&&(E=$)}const T=E==null?void 0:E.getOptionValue,I=E==null?void 0:E.getOptionLabel,k=b.useMemo(()=>ph(E),[E]),R=b.useCallback($=>{let B=$.target.value;B=w2(B,k,T),n(z({},t,{value:B}))},[k,T,n,t]);if(!b0(E))return null;const P=(d==null?void 0:d.root.label)??o.current.getLocaleText("filterPanelInputLabel");return y.jsxs(b.Fragment,{children:[y.jsx(C.slots.baseSelect,z({fullWidth:!0,id:g,label:P,labelId:w,value:m,onChange:R,slotProps:{htmlInput:z({tabIndex:a,ref:i,type:r||"text",placeholder:(d==null?void 0:d.root.placeholder)??o.current.getLocaleText("filterPanelInputPlaceholder")},(F=d==null?void 0:d.root.slotProps)==null?void 0:F.htmlInput)},native:S},(D=C.slotProps)==null?void 0:D.baseSelect,f,d==null?void 0:d.root,{children:bae({column:E,OptionComponent:C.slots.baseSelectOption,getOptionLabel:I,getOptionValue:T,isSelectNative:S,baseSelectOptionProps:(_=C.slotProps)==null?void 0:_.baseSelectOption})})),u,l]})}const yae=["item","applyValue","type","apiRef","focusElementRef","slotProps"];function vae(e){const{item:t,applyValue:n,type:r,apiRef:o,focusElementRef:i,slotProps:a}=e,l=tt(e,yae),u=Mn(),d=yt();let f=null;if(t.field){const I=o.current.getColumn(t.field);b0(I)&&(f=I)}const m=f==null?void 0:f.getOptionValue,g=f==null?void 0:f.getOptionLabel,w=b.useCallback((I,k)=>m(I)===m(k),[m]),C=b.useMemo(()=>ph(f)||[],[f]),S=b.useMemo(()=>Array.isArray(t.value)?t.value.reduce((I,k)=>{const R=C.find(P=>m(P)===k);return R!=null&&I.push(R),I},[]):[],[m,t.value,C]),E=b.useCallback((I,k)=>{n(z({},t,{value:k.map(m)}))},[n,t,m]),T=d.slots.baseAutocomplete;return y.jsx(T,z({multiple:!0,options:C,isOptionEqualToValue:w,id:u,value:S,onChange:E,getOptionLabel:g,label:o.current.getLocaleText("filterPanelInputLabel"),placeholder:o.current.getLocaleText("filterPanelInputPlaceholder"),slotProps:{textField:{type:r||"text",inputRef:i}}},l,a==null?void 0:a.root))}const Sg=e=>e==null||!sO(e)?e:e.value,xae=()=>[{value:"is",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Sg(t)===Sg(e.value),InputComponent:_3},{value:"not",getApplyFilterFn:e=>e.value==null||e.value===""?null:t=>Sg(t)!==Sg(e.value),InputComponent:_3},{value:"isAnyOf",getApplyFilterFn:e=>{if(!Array.isArray(e.value)||e.value.length===0)return null;const t=e.value.map(Sg);return n=>t.includes(Sg(n))},InputComponent:vae}],wae=e=>typeof e[0]=="object",Cae=e=>sO(e)?e.value:e,Sae=e=>sO(e)?e.label:String(e),Eae=z({},pl,{type:"singleSelect",getOptionLabel:Sae,getOptionValue:Cae,valueFormatter(e,t,n,r){const o=Yx(r,t);if(!b0(n))return"";const i=ph(n,{id:o,row:t});if(e==null)return"";if(!i)return e;if(!wae(i))return n.getOptionLabel(e);const a=i.find(l=>n.getOptionValue(l)===e);return a?n.getOptionLabel(a):""},renderEditCell:mae,filterOperators:xae(),pastedValueParser:(e,t,n)=>{const r=n,o=ph(r)||[],i=r.getOptionValue;if(o.find(l=>i(l)===e))return e}}),Tae="string",Mae=()=>({string:pl,number:dae,date:sae,dateTime:lae,boolean:W9,singleSelect:Eae,[sT]:hie,custom:pl}),yO=ao(e=>e.headerFiltering),kae=wt(yO,e=>(e==null?void 0:e.enabled)??!1),Pae=wt(yO,e=>e.editing),Iae=wt(yO,e=>e.menuOpen),mT=ao(e=>e.columnGrouping),fN=qn(mT,e=>(e==null?void 0:e.unwrappedGroupingModel)??{}),pN=qn(mT,e=>(e==null?void 0:e.lookup)??{}),Aae=qn(mT,e=>(e==null?void 0:e.headerStructure)??[]),Kx=wt(mT,e=>(e==null?void 0:e.maxDepth)??0),hN=["maxWidth","minWidth","width","flex"],Xk=Mae();function Rae({initialFreeSpace:e,totalFlexUnits:t,flexColumns:n}){const r=new Set(n.map(a=>a.field)),o={all:{},frozenFields:[],freeze:a=>{const l=o.all[a];l&&l.frozen!==!0&&(o.all[a].frozen=!0,o.frozenFields.push(a))}};function i(){if(o.frozenFields.length===r.size)return;const a={min:{},max:{}};let l=e,u=t,d=0;o.frozenFields.forEach(f=>{l-=o.all[f].computedWidth,u-=o.all[f].flex});for(let f=0;f<n.length;f+=1){const m=n[f];if(o.all[m.field]&&o.all[m.field].frozen===!0)continue;let w=l/u*m.flex;w<m.minWidth?(d+=m.minWidth-w,w=m.minWidth,a.min[m.field]=!0):w>m.maxWidth&&(d+=m.maxWidth-w,w=m.maxWidth,a.max[m.field]=!0),o.all[m.field]={frozen:!1,computedWidth:w,flex:m.flex}}d<0?Object.keys(a.max).forEach(f=>{o.freeze(f)}):d>0?Object.keys(a.min).forEach(f=>{o.freeze(f)}):n.forEach(({field:f})=>{o.freeze(f)}),i()}return i(),o.all}const qI=(e,t)=>{const n={};let r=0,o=0;const i=[];e.orderedFields.forEach(u=>{let d=e.lookup[u],f=0,m=!1;e.columnVisibilityModel[u]!==!1&&(d.flex&&d.flex>0?(r+=d.flex,m=!0):f=qa(d.width||pl.width,d.minWidth||pl.minWidth,d.maxWidth||pl.maxWidth),o+=f),d.computedWidth!==f&&(d=z({},d,{computedWidth:f})),m&&i.push(d),n[u]=d});const a=t===void 0?0:t.viewportOuterSize.width-(t.hasScrollY?t.scrollbarSize:0),l=Math.max(a-o,0);if(r>0&&a>0){const u=Rae({initialFreeSpace:l,totalFlexUnits:r,flexColumns:i});Object.keys(u).forEach(d=>{n[d].computedWidth=u[d].computedWidth})}return z({},e,{lookup:n})},Oae=(e,t)=>{if(!t)return e;const{orderedFields:n=[],dimensions:r={}}=t,o=Object.keys(r);if(o.length===0&&n.length===0)return e;const i={},a=[];for(let f=0;f<n.length;f+=1){const m=n[f];e.lookup[m]&&(i[m]=!0,a.push(m))}const l=a.length===0?e.orderedFields:[...a,...e.orderedFields.filter(f=>!i[f])],u=z({},e.lookup);for(let f=0;f<o.length;f+=1){const m=o[f],g=z({},u[m],{hasBeenResized:!0});Object.entries(r[m]).forEach(([w,C])=>{g[w]=C===-1?1/0:C}),u[m]=g}return z({},e,{orderedFields:l,lookup:u})};function Zk(e){let t=Xk[Tae];return e&&Xk[e]&&(t=Xk[e]),t}const Bg=({apiRef:e,columnsToUpsert:t,initialState:n,columnVisibilityModel:r=cl(e),keepOnlyColumnsToUpsert:o=!1,updateInitialVisibilityModel:i=!1})=>{var m,g;const a=!e.current.state.columns;let l;if(a)l={orderedFields:[],lookup:{},columnVisibilityModel:r,initialColumnVisibilityModel:r};else{const w=fl(e);l={orderedFields:o?[]:[...w.orderedFields],lookup:z({},w.lookup),columnVisibilityModel:r,initialColumnVisibilityModel:i?r:w.initialColumnVisibilityModel}}let u={};o&&!a&&(u=Object.keys(l.lookup).reduce((w,C)=>z({},w,{[C]:!1}),{})),t.forEach(w=>{const{field:C}=w;u[C]=!0;let S=l.lookup[C];S==null?(S=z({},Zk(w.type),{field:C,hasBeenResized:!1}),l.orderedFields.push(C)):o&&l.orderedFields.push(C),S&&S.type!==w.type&&(S=z({},Zk(w.type),{field:C}));let E=S.hasBeenResized;hN.forEach(T=>{w[T]!==void 0&&(E=!0,w[T]===-1&&(w[T]=1/0))}),l.lookup[C]=Vd(S,z({},Zk(w.type),w,{hasBeenResized:E}))}),o&&!a&&Object.keys(l.lookup).forEach(w=>{u[w]||delete l.lookup[w]});const d=e.current.unstable_applyPipeProcessors("hydrateColumns",l),f=Oae(d,n);return qI(f,((g=(m=e.current).getRootDimensions)==null?void 0:g.call(m))??void 0)};function _ae({firstColumnToRender:e,apiRef:t,firstRowToRender:n,lastRowToRender:r,visibleRows:o}){let i=e,a=!1;for(;!a&&i>=0;){a=!0;for(let l=n;l<r;l+=1)if(o[l]){const d=o[l].id,f=t.current.unstable_getCellColSpanInfo(d,i);if(f&&f.spannedByColSpan&&f.leftVisibleCellIndex<i){i=f.leftVisibleCellIndex,a=!1;break}}}return i}function vO(e,t){if(t.listView)return 0;const n=G0(e),r=Kx(e),o=kae(e),i=Math.floor(t.columnHeaderHeight*n),a=Math.floor((t.columnGroupHeaderHeight??t.columnHeaderHeight)*n),l=o?Math.floor((t.headerFilterHeight??t.columnHeaderHeight)*n):0;return i+a*r+l}const D3=1,Dae=1.5,Lae=e=>{const{scrollDirection:t,classes:n}=e,r={root:["scrollArea",`scrollArea--${t}`]};return st(r,Cn,n)},$ae=Bn("div",{name:"MuiDataGrid",slot:"ScrollArea",overridesResolver:(e,t)=>[{[`&.${ee["scrollArea--left"]}`]:t["scrollArea--left"]},{[`&.${ee["scrollArea--right"]}`]:t["scrollArea--right"]},t.scrollArea]})(()=>({position:"absolute",top:0,zIndex:101,width:20,bottom:0,[`&.${ee["scrollArea--left"]}`]:{left:0},[`&.${ee["scrollArea--right"]}`]:{right:0}})),jae=wt(vr,(e,t)=>t==="left"?e.leftPinnedWidth:t==="right"?e.rightPinnedWidth+(e.hasScrollX?e.scrollbarSize:0):0);function Fae(e){const t=rn(),[n,r]=b.useState(!1);return Mt(t,"columnHeaderDragStart",()=>r(!0)),Mt(t,"columnHeaderDragEnd",()=>r(!1)),n?y.jsx(Nae,z({},e)):null}function Nae(e){const{scrollDirection:t,scrollPosition:n}=e,r=b.useRef(null),o=rn(),i=ya(),a=Xe(o,G0),l=Xe(o,oT),u=Xe(o,jae,t),d=()=>{const R=vr(o);if(t==="left")return n.current.left>0;if(t==="right"){const P=l-R.viewportInnerSize.width;return n.current.left<P}return!1},[f,m]=b.useState(d),g=yt(),w=z({},g,{scrollDirection:t}),C=Lae(w),S=vO(o,g),E=Math.floor(g.columnHeaderHeight*a),T={height:E,top:S-E};t==="left"?T.left=u:t==="right"&&(T.right=u);const I=()=>{m(d)},k=Vt(R=>{let P;if(R.preventDefault(),t==="left")P=R.clientX-r.current.getBoundingClientRect().right;else if(t==="right")P=Math.max(1,R.clientX-r.current.getBoundingClientRect().left);else throw new Error("MUI X: Wrong drag direction");P=(P-D3)*Dae+D3,i.start(0,()=>{o.current.scroll({left:n.current.left+P,top:n.current.top})})});return Mt(o,"scrollPositionChange",I),f?y.jsx($ae,{ref:r,className:C.root,ownerState:w,onDragOver:k,style:T}):null}const L3=Su(Fae),mN=b.createContext(void 0);function Qa(){const e=b.useContext(mN);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(`
`));return e}const zae=()=>{},Bae=(e,t)=>{const n=b.useRef(!1);kn(()=>n.current||!e?zae:(n.current=!0,t()),[n.current||e])};function mn(e,t,n){const r=b.useRef(!0);kn(()=>{r.current=!1,e.current.register(n,t)},[e,n,t]),r.current&&e.current.register(n,t)}function Ho(e,t){const n=b.useRef(null);if(n.current)return n.current;const r=e.current.getLogger(t);return n.current=r,r}const gN=(e,t,n,r,o)=>{const i=Ho(e,"useNativeEventListener");fr(e,"rootMount",()=>{const a=t();if(!(!a||!n))return i.debug(`Binding native ${n} event`),a.addEventListener(n,r,o),()=>{i.debug(`Clearing native ${n} event`),a.removeEventListener(n,r,o)}})},Xx=e=>{const t=b.useRef(!0);t.current&&(t.current=!1,e())},Hd=(e,t)=>qx(e),xO=(e,t)=>Xe(e,qx),Hae=typeof navigator<"u"?navigator.userAgent.toLowerCase():"empty",Uae=Hae.includes("firefox"),Zx=ao(e=>e.rowsMeta),gT=ao(e=>e.virtualization);wt(gT,e=>e.enabled);const bN=wt(gT,e=>e.enabledForColumns),Gae=wt(gT,e=>e.enabledForRows),Qx=wt(gT,e=>e.renderContext),Vae=qn(e=>e.current.state.virtualization.renderContext.firstColumnIndex,e=>e.current.state.virtualization.renderContext.lastColumnIndex,(e,t)=>({firstColumnIndex:e,lastColumnIndex:t})),YI={firstRowIndex:0,lastRowIndex:0,firstColumnIndex:0,lastColumnIndex:0},Wae=(e,t)=>{const{disableVirtualization:n,autoHeight:r}=t;return z({},e,{virtualization:{enabled:!n,enabledForColumns:!n,enabledForRows:!n&&!r,renderContext:YI}})};function qae(e,t){const n=i=>{e.current.setState(a=>z({},a,{virtualization:z({},a.virtualization,{enabled:i,enabledForColumns:i,enabledForRows:i&&!t.autoHeight})}))};mn(e,{unstable_setVirtualization:n,unstable_setColumnVirtualization:i=>{e.current.setState(a=>z({},a,{virtualization:z({},a.virtualization,{enabledForColumns:i})}))}},"public"),b.useEffect(()=>{n(!t.disableVirtualization)},[t.disableVirtualization,t.autoHeight])}const wO=ao(e=>e.rowSpanning),yN=wt(wO,e=>e.hiddenCells),Yae=wt(wO,e=>e.spannedCells),Kae=wt(wO,e=>e.hiddenCellOriginMap),y0=ao(e=>e.listViewColumn),Xae=wt(ga,Qx,qx,ro,(e,t,n,r)=>{if(!e)return!1;const o=n.rowIdToIndexMap.get(e.id),i=r.slice(t.firstColumnIndex,t.lastColumnIndex).findIndex(l=>l.field===e.field);return!(o!==void 0&&i!==-1&&o>=t.firstRowIndex&&o<=t.lastRowIndex)}),vN=qn(Xae,ro,qx,ga,(e,t,n,r)=>{if(!e)return null;const o=n.rowIdToIndexMap.get(r.id);if(o===void 0)return null;const i=t.findIndex(a=>a.field===r.field);return i===-1?null:z({},r,{rowIndex:o,columnIndex:i})});function Xg(e,t){return Math.round(e*10**t)/10**t}const C2=typeof window<"u"&&/jsdom|HappyDOM/.test(window.navigator.userAgent),Qk=50;var To=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}(To||{});const $3={top:0,left:0},Zae=Object.freeze(new Map),Qae=(e,t,n,r,o)=>({direction:To.NONE,buffer:wN(e,To.NONE,t,n,r,o)}),Jae=()=>{var ue;const e=Qa(),t=yt(),{listView:n}=t,r=Xe(e,()=>n?[y0(e)]:ro(e)),o=Xe(e,Gae)&&!C2,i=Xe(e,bN)&&!C2,a=Xe(e,W0),l=Y0(e),u=n?v2:l,d=a.bottom.length>0,[f,m]=b.useState(Zae),g=Lo(),w=Xe(e,Vx),C=xO(e),S=e.current.mainElementRef,E=e.current.virtualScrollerRef,T=e.current.virtualScrollbarVerticalRef,I=e.current.virtualScrollbarHorizontalRef,k=Xe(e,Yoe),R=b.useRef(!1),P=Xe(e,oO),O=Xe(e,aoe),j=Xe(e,oT),F=Xe(e,ese),D=Xe(e,S9),_=Xe(e,C9),$=b.useRef(null),B=b.useCallback(me=>{if(S.current=me,!me)return;const be=me.getBoundingClientRect();let Fe={width:Xg(be.width,1),height:Xg(be.height,1)};if((!$.current||Fe.width!==$.current.width&&Fe.height!==$.current.height)&&($.current=Fe,e.current.publishEvent("resize",Fe)),typeof ResizeObserver>"u")return;const Ze=new ResizeObserver(We=>{const _e=We[0];if(!_e)return;const ft={width:Xg(_e.contentRect.width,1),height:Xg(_e.contentRect.height,1)};ft.width===Fe.width&&ft.height===Fe.height||(e.current.publishEvent("resize",ft),Fe=ft)});if(Ze.observe(me),l9>=19)return()=>{S.current=null,Ze.disconnect()}},[e,S]),V=b.useRef(((ue=t.initialState)==null?void 0:ue.scroll)??$3),q=b.useRef(!1),G=b.useRef($3),N=b.useRef(YI),H=Xe(e,Qx),Y=Xe(e,vN),Q=ya(),W=b.useRef(void 0),K=_s(()=>Qae(g,t.rowBufferPx,t.columnBufferPx,P*15,Qk*6)).current,J=b.useCallback(me=>{if(z3(me,e.current.state.virtualization.renderContext))return;const be=me.firstRowIndex!==N.current.firstRowIndex||me.lastRowIndex!==N.current.lastRowIndex;e.current.setState(Ze=>z({},Ze,{virtualization:z({},Ze.virtualization,{renderContext:me})})),vr(e).isReady&&be&&(N.current=me,e.current.publishEvent("renderedRowsIntervalChange",me)),G.current=V.current},[e]),ae=Vt(()=>{const me=E.current;if(!me)return;const be=vr(e),Fe=Math.ceil(be.minimumSize.height-be.viewportOuterSize.height),Ze=Math.ceil(be.minimumSize.width-be.viewportInnerSize.width),We={top:qa(me.scrollTop,0,Fe),left:g?qa(me.scrollLeft,-Ze,0):qa(me.scrollLeft,0,Ze)},_e=We.left-V.current.left,ft=We.top-V.current.top,nt=_e!==0||ft!==0;V.current=We;const dt=nt?rse(_e,ft):To.NONE,se=Math.abs(V.current.top-G.current.top),De=Math.abs(V.current.left-G.current.left),ye=se>=P||De>=Qk,Pe=K.direction!==dt;if(!(ye||Pe))return H;if(Pe)switch(dt){case To.NONE:case To.LEFT:case To.RIGHT:W.current=void 0;break;default:W.current=H;break}K.direction=dt,K.buffer=wN(g,dt,t.rowBufferPx,t.columnBufferPx,P*15,Qk*6);const Ke=j3(e,t,o,i),it=F3(Ke,V.current,K);return z3(it,H)||(WE.flushSync(()=>{J(it)}),Q.start(1e3,ae)),it}),ce=()=>{if(!vr(e).isReady&&(o||i))return;const me=j3(e,t,o,i),be=F3(me,V.current,K);W.current=void 0,J(be)},de=Vt(()=>{if(q.current){q.current=!1;return}const me=ae();e.current.publishEvent("scrollPositionChange",{top:V.current.top,left:V.current.left,renderContext:me})}),re=Vt(me=>{e.current.publishEvent("virtualScrollerWheel",{},me)}),ke=Vt(me=>{e.current.publishEvent("virtualScrollerTouchMove",{},me)}),Ce=(me={})=>{var Ke;if(!me.rows&&!C.range)return[];const be=hi(e);let Fe=H;me.renderContext&&(Fe=me.renderContext,Fe.firstColumnIndex=H.firstColumnIndex,Fe.lastColumnIndex=H.lastColumnIndex);const Ze=!d&&me.position===void 0||d&&me.position==="bottom",We=me.position!==void 0;let _e;switch(me.position){case"top":_e=0;break;case"bottom":_e=a.top.length+C.rows.length;break;case void 0:_e=a.top.length;break}const ft=me.rows??C.rows,nt=Fe.firstRowIndex,dt=Math.min(Fe.lastRowIndex,ft.length),se=me.rows?C3(0,me.rows.length):C3(nt,dt);let De=-1;!We&&Y&&(Y.rowIndex<nt&&(se.unshift(Y.rowIndex),De=Y.rowIndex),Y.rowIndex>dt&&(se.push(Y.rowIndex),De=Y.rowIndex));const ye=[],Pe=(Ke=t.slotProps)==null?void 0:Ke.row,qe=of(e);return se.forEach(it=>{var Ar,$o,Kt;const{id:ot,model:gt}=ft[it];if(!be[ot])return;const Ue=(((Ar=C==null?void 0:C.range)==null?void 0:Ar.firstRowIndex)||0)+_e+it;if(k){const he=u.left.length,fe=r.length-u.right.length;e.current.calculateColSpan({rowId:ot,minFirstColumn:he,maxLastColumn:fe,columns:r}),u.left.length>0&&e.current.calculateColSpan({rowId:ot,minFirstColumn:0,maxLastColumn:u.left.length,columns:r}),u.right.length>0&&e.current.calculateColSpan({rowId:ot,minFirstColumn:r.length-u.right.length,maxLastColumn:r.length,columns:r})}const jt=e.current.rowHasAutoHeight(ot)?"auto":e.current.unstable_getRowHeight(ot),Ht=w.has(ot)&&e.current.isRowSelectable(ot);let pt=!1;me.position===void 0&&(pt=it===0);let ht=!1;const Ct=it===ft.length-1;if(Ze)if(We)ht=Ct;else{const he=C.rows.length-1;it===he&&(ht=!0)}let Nt=Fe;W.current&&it>=W.current.firstRowIndex&&it<W.current.lastRowIndex&&(Nt=W.current);const Yn=it===De,pr=(Y==null?void 0:Y.rowIndex)===Ue,Go=xN(qe,Nt,u.left.length),Jn=Ct&&me.position==="top",Er=Nt.firstColumnIndex,Xr=Nt.lastColumnIndex;if(ye.push(y.jsx(t.slots.row,z({row:gt,rowId:ot,index:Ue,selected:Ht,offsetLeft:Go,columnsTotalWidth:j,rowHeight:jt,pinnedColumns:u,visibleColumns:r,firstColumnIndex:Er,lastColumnIndex:Xr,focusedColumnIndex:pr?Y.columnIndex:void 0,isFirstVisible:pt,isLastVisible:ht,isNotVisible:Yn,showBottomBorder:Jn,scrollbarWidth:D,gridHasFiller:_},Pe),ot)),Yn)return;const Vr=f.get(ot);Vr&&ye.push(Vr),me.position===void 0&&Ct&&ye.push((Kt=($o=e.current).getInfiniteLoadingTriggerElement)==null?void 0:Kt.call($o,{lastRowId:ot}))}),ye},ie=b.useMemo(()=>({overflowX:!F||n?"hidden":void 0,overflowY:t.autoHeight?"hidden":void 0}),[F,t.autoHeight,n]),le=b.useMemo(()=>{const me={width:F?j:"auto",flexBasis:O,flexShrink:0};return me.flexBasis===0&&(me.flexBasis=U9),me},[j,O,F]),ve=b.useCallback(me=>{me&&e.current.publishEvent("virtualScrollerContentSizeChange",{columnsTotalWidth:j,contentHeight:O})},[e,j,O]);return kn(()=>{var me,be;R.current&&((be=(me=e.current).updateRenderContext)==null||be.call(me))},[e,i,o]),kn(()=>{n&&(E.current.scrollLeft=0)},[n,E]),Bae(H!==YI,()=>{var me;if(e.current.publishEvent("scrollPositionChange",{top:V.current.top,left:V.current.left,renderContext:H}),R.current=!0,(me=t.initialState)!=null&&me.scroll&&E.current){const be=E.current,{top:Fe,left:Ze}=t.initialState.scroll,We={top:!(Fe>0),left:!(Ze>0)};if(!We.left&&j&&(be.scrollLeft=Ze,q.current=!0,We.left=!0),!We.top&&O&&(be.scrollTop=Fe,q.current=!0,We.top=!0),!We.top||!We.left){const _e=e.current.subscribeEvent("virtualScrollerContentSizeChange",ft=>{!We.left&&ft.columnsTotalWidth&&(be.scrollLeft=Ze,q.current=!0,We.left=!0),!We.top&&ft.contentHeight&&(be.scrollTop=Fe,q.current=!0,We.top=!0),We.left&&We.top&&_e()});return _e}}}),e.current.register("private",{updateRenderContext:ce}),fr(e,"sortedRowsSet",ce),fr(e,"paginationModelChange",ce),fr(e,"columnsChange",ce),{renderContext:H,setPanels:m,getRows:Ce,getContainerProps:()=>({ref:B}),getScrollerProps:()=>({ref:E,onScroll:de,onWheel:re,onTouchMove:ke,style:ie,role:"presentation",tabIndex:Uae?-1:void 0}),getContentProps:()=>({style:le,role:"presentation",ref:ve}),getRenderZoneProps:()=>({role:"rowgroup"}),getScrollbarVerticalProps:()=>({ref:T,scrollPosition:V}),getScrollbarHorizontalProps:()=>({ref:I,scrollPosition:V}),getScrollAreaProps:()=>({scrollPosition:V})}};function ese(e){return e.current.state.dimensions.viewportOuterSize.width>0&&e.current.state.dimensions.columnsTotalWidth>e.current.state.dimensions.viewportOuterSize.width}function j3(e,t,n,r){const o=vr(e),i=Hd(e),a=t.listView?[y0(e)]:ro(e),l=Kae(e),u=e.current.state.rows.dataRowIds.at(-1),d=a.at(-1);return{enabledForRows:n,enabledForColumns:r,apiRef:e,autoHeight:t.autoHeight,rowBufferPx:t.rowBufferPx,columnBufferPx:t.columnBufferPx,leftPinnedWidth:o.leftPinnedWidth,columnsTotalWidth:o.columnsTotalWidth,viewportInnerWidth:o.viewportInnerSize.width,viewportInnerHeight:o.viewportInnerSize.height,lastRowHeight:u!==void 0?e.current.unstable_getRowHeight(u):0,lastColumnWidth:(d==null?void 0:d.computedWidth)??0,rowsMeta:Zx(e),columnPositions:of(e),rows:i.rows,range:i.range,pinnedColumns:Y0(e),visibleColumns:a,hiddenCellsOriginMap:l,listView:t.listView??!1,virtualizeColumnsWithAutoRowHeight:t.virtualizeColumnsWithAutoRowHeight}}function F3(e,t,n){const r={firstRowIndex:0,lastRowIndex:e.rows.length,firstColumnIndex:0,lastColumnIndex:e.visibleColumns.length},{top:o,left:i}=t,a=Math.abs(i)+e.leftPinnedWidth;if(e.enabledForRows){let u=Math.min(N3(e,o,{atStart:!0,lastPosition:e.rowsMeta.positions[e.rowsMeta.positions.length-1]+e.lastRowHeight}),e.rowsMeta.positions.length-1);const d=e.hiddenCellsOriginMap[u];if(d){const m=Math.min(...Object.values(d));u=Math.min(u,m)}const f=e.autoHeight?u+e.rows.length:N3(e,o+e.viewportInnerHeight);r.firstRowIndex=u,r.lastRowIndex=f}if(e.listView)return z({},r,{lastColumnIndex:1});if(e.enabledForColumns){let u=0,d=e.columnPositions.length,f=!1;const[m,g]=KI({firstIndex:r.firstRowIndex,lastIndex:r.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 w=m;w<g&&!f;w+=1){const C=e.rows[w];f=e.apiRef.current.rowHasAutoHeight(C.id)}(!f||e.virtualizeColumnsWithAutoRowHeight)&&(u=Kd(a,e.columnPositions,{atStart:!0,lastPosition:e.columnsTotalWidth}),d=Kd(a+e.viewportInnerWidth,e.columnPositions)),r.firstColumnIndex=u,r.lastColumnIndex=d}return tse(e,r,n)}function N3(e,t,n){var a,l;const r=e.apiRef.current.getLastMeasuredRowIndex();let o=r===1/0;(a=e.range)!=null&&a.lastRowIndex&&!o&&(o=r>=e.range.lastRowIndex);const i=qa(r-(((l=e.range)==null?void 0:l.firstRowIndex)||0),0,e.rowsMeta.positions.length);return o||e.rowsMeta.positions[i]>=t?Kd(t,e.rowsMeta.positions,n):nse(t,e.rowsMeta.positions,i,n)}function tse(e,t,n){const[r,o]=KI({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}),[i,a]=KI({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}),l=_ae({firstColumnToRender:i,apiRef:e.apiRef,firstRowToRender:r,lastRowToRender:o,visibleRows:e.rows});return{firstRowIndex:r,lastRowIndex:o,firstColumnIndex:l,lastColumnIndex:a}}function Kd(e,t,n=void 0,r=0,o=t.length){if(t.length<=0)return-1;if(r>=o)return r;const i=r+Math.floor((o-r)/2),a=t[i];let l;if(n!=null&&n.atStart){const u=(i===t.length-1?n.lastPosition:t[i+1])-a;l=e-u<a}else l=e<=a;return l?Kd(e,t,n,r,i):Kd(e,t,n,i+1,o)}function nse(e,t,n,r=void 0){let o=1;for(;n<t.length&&Math.abs(t[n])<e;)n+=o,o*=2;return Kd(e,t,r,Math.floor(n/2),Math.min(n,t.length))}function KI({firstIndex:e,lastIndex:t,bufferBefore:n,bufferAfter:r,minFirstIndex:o,maxLastIndex:i,positions:a,lastSize:l}){const u=a[e]-n,d=a[t]+r,f=Kd(u,a,{atStart:!0,lastPosition:a[a.length-1]+l}),m=Kd(d,a);return[qa(f,o,i),qa(m,o,i)]}function z3(e,t){return e===t?!0:e.firstRowIndex===t.firstRowIndex&&e.lastRowIndex===t.lastRowIndex&&e.firstColumnIndex===t.firstColumnIndex&&e.lastColumnIndex===t.lastColumnIndex}function xN(e,t,n){const r=(e[t.firstColumnIndex]??0)-(e[n]??0);return Math.abs(r)}function rse(e,t){return e===0&&t===0?To.NONE:Math.abs(t)>=Math.abs(e)?t>0?To.DOWN:To.UP:e>0?To.RIGHT:To.LEFT}function wN(e,t,n,r,o,i){if(e)switch(t){case To.LEFT:t=To.RIGHT;break;case To.RIGHT:t=To.LEFT;break}switch(t){case To.NONE:return{rowAfter:n,rowBefore:n,columnAfter:r,columnBefore:r};case To.LEFT:return{rowAfter:0,rowBefore:0,columnAfter:0,columnBefore:i};case To.RIGHT:return{rowAfter:0,rowBefore:0,columnAfter:i,columnBefore:0};case To.UP:return{rowAfter:0,rowBefore:o,columnAfter:0,columnBefore:0};case To.DOWN:return{rowAfter:o,rowBefore:0,columnAfter:0,columnBefore:0};default:throw new Error("unreachable")}}const ose=Bn("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}:{}),ise=Bn("div",{name:"MuiDataGrid",slot:"OverlayWrapperInner",shouldForwardProp:e=>e!=="overlayType"&&e!=="loadingOverlayVariant"})({}),ase=e=>{const{classes:t}=e;return st({root:["overlayWrapper"],inner:["overlayWrapperInner"]},Cn,t)};function sse(e){const t=rn(),n=yt(),r=Xe(t,vr);let o=Math.max(r.viewportOuterSize.height-r.topContainerHeight-r.bottomContainerHeight-(r.hasScrollX?r.scrollbarSize:0),0);o===0&&(o=U9);const i=ase(z({},e,{classes:n.classes}));return y.jsx(ose,z({className:i.root},e,{right:r.columnsTotalWidth-r.viewportOuterSize.width,children:y.jsx(ise,z({className:i.inner,style:{height:o,width:r.viewportOuterSize.width}},e))}))}const CO=ao(e=>e.pivoting),hh=wt(CO,e=>e==null?void 0:e.active),lse=new Map,CN=wt(CO,e=>(e==null?void 0:e.initialColumns)||lse);wt(CO,e=>e==null?void 0:e.panelOpen);const cse=()=>{var T,I;const e=rn(),t=yt(),n=Xe(e,Ux),r=Xe(e,fO),o=Xe(e,E9),i=Xe(e,ro),a=n===0&&o===0,l=Xe(e,Moe),u=Xe(e,hh),d=!l&&a,f=!l&&n>0&&r===0,m=!l&&i.length===0,g=d&&u;let w=null,C=null;d&&(w="noRowsOverlay"),m&&(w="noColumnsOverlay"),g&&(w="emptyPivotOverlay"),f&&(w="noResultsOverlay"),l&&(w="loadingOverlay",C=((I=(T=t.slotProps)==null?void 0:T.loadingOverlay)==null?void 0:I[a?"noRowsVariant":"variant"])??(a?"skeleton":"linear-progress"));const S={overlayType:w,loadingOverlayVariant:C};return{getOverlay:()=>{var P,O;if(!w)return null;const k=(P=t.slots)==null?void 0:P[w],R=(O=t.slotProps)==null?void 0:O[w];return y.jsx(sse,z({},S,{children:y.jsx(k,z({},R))}))},overlaysProps:S}},VS=ao(e=>e.columnMenu);function use(){var E;const e=Qa(),t=yt(),n=Xe(e,ro),r=Xe(e,Lie),o=Xe(e,_ie),i=Xe(e,tN),a=Xe(e,()=>gO(e)===null),l=Xe(e,Gie),u=Xe(e,Uie),d=Xe(e,x2),f=Xe(e,Kx),m=Xe(e,VS),g=Xe(e,cl),w=Xe(e,Aae),C=!(l===null&&i===null&&a),S=e.current.columnHeadersContainerRef;return y.jsx(t.slots.columnHeaders,z({ref:S,visibleColumns:n,filterColumnLookup:r,sortColumnLookup:o,columnHeaderTabIndexState:i,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C},(E=t.slotProps)==null?void 0:E.columnHeaders))}const dse=Su(use),fse=Bn("div")({position:"absolute",top:"var(--DataGrid-headersTotalHeight)",left:0,width:"calc(100% - (var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize)))"}),pse=Bn("div",{name:"MuiDataGrid",slot:"Main",overridesResolver:(e,t)=>{const{ownerState:n,loadingOverlayVariant:r,overlayType:o}=e,i=r==="skeleton"||o==="noColumnsOverlay";return[t.main,n.hasPinnedRight&&t["main--hasPinnedRight"],i&&t["main--hiddenContent"]]}})({flexGrow:1,position:"relative",overflow:"hidden",display:"flex",flexDirection:"column"}),hse=Wt((e,t)=>{var a;const{ownerState:n}=e,r=yt(),i=iT().hooks.useGridAriaAttributes();return y.jsxs(pse,z({ownerState:n,className:e.className,tabIndex:-1},i,(a=r.slotProps)==null?void 0:a.main,{ref:t,children:[y.jsx(fse,{role:"presentation","data-id":"gridPanelAnchor"}),e.children]}))}),mse=()=>st({root:["topContainer"]},Cn,{}),gse=Bn("div")({position:"sticky",zIndex:40,top:0});function bse(e){const t=mse();return y.jsx(gse,z({},e,{className:Ve(t.root,ee["container--top"]),role:"presentation"}))}const yse=(e,t)=>{const{classes:n}=e;return st({root:["virtualScrollerContent",t&&"virtualScrollerContent--overflowed"]},Cn,n)},vse=Bn("div",{name:"MuiDataGrid",slot:"VirtualScrollerContent",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.virtualScrollerContent,n.overflowedContent&&t["virtualScrollerContent--overflowed"]]}})({}),xse=Wt(function(t,n){var l;const r=yt(),o=!r.autoHeight&&((l=t.style)==null?void 0:l.minHeight)==="auto",i=yse(r,o),a={classes:r.classes,overflowedContent:o};return y.jsx(vse,z({},t,{ownerState:a,className:Ve(i.root,t.className),ref:n}))}),wse=Bn("div")({display:"flex",flexDirection:"row",width:"var(--DataGrid-rowWidth)",boxSizing:"border-box"}),SN=Bn("div")({position:"sticky",height:"100%",boxSizing:"border-box",borderTop:"1px solid var(--rowBorderColor)",backgroundColor:vt.cell.background.pinned}),Cse=Bn(SN)({left:0,borderRight:"1px solid var(--rowBorderColor)"}),Sse=Bn(SN)({right:0,borderLeft:"1px solid var(--rowBorderColor)"}),Ese=Bn("div")({flexGrow:1,borderTop:"1px solid var(--rowBorderColor)"});function Tse({rowsLength:e}){const t=rn(),{viewportOuterSize:n,minimumSize:r,hasScrollX:o,hasScrollY:i,scrollbarSize:a,leftPinnedWidth:l,rightPinnedWidth:u}=Xe(t,vr),d=o?a:0,f=n.height-r.height>0;return d===0&&!f?null:y.jsxs(wse,{className:ee.filler,role:"presentation",style:{height:d,"--rowBorderColor":e===0?"transparent":"var(--DataGrid-rowBorderColor)"},children:[l>0&&y.jsx(Cse,{className:ee["filler--pinnedLeft"],style:{width:l}}),y.jsx(Ese,{}),u>0&&y.jsx(Sse,{className:ee["filler--pinnedRight"],style:{width:u+(i?a:0)}})]})}const Mse=Su(Tse),kse=["className"],Pse=e=>{const{classes:t}=e;return st({root:["virtualScrollerRenderZone"]},Cn,t)},Ise=Bn("div",{name:"MuiDataGrid",slot:"VirtualScrollerRenderZone"})({position:"absolute",display:"flex",flexDirection:"column"}),Ase=Wt(function(t,n){const{className:r}=t,o=tt(t,kse),i=rn(),a=yt(),l=Pse(a),u=Xe(i,()=>{const d=Qx(i);return Zx(i).positions[d.firstRowIndex]??0});return y.jsx(Ise,z({className:Ve(l.root,r),ownerState:a,style:{transform:`translate3d(0, ${u}px, 0)`}},o,{ref:n}))}),Rse={includeHeaders:!0,includeOutliers:!1,outliersFactor:1.5,expand:!1,disableColumnVirtualization:!0},zo=ao(e=>e.editRows),EN=wt(zo,(e,{rowId:t,editMode:n})=>n===yc.Row&&!!e[t]),Ose=wt(zo,(e,{rowId:t,field:n})=>{var r;return((r=e[t])==null?void 0:r[n])??null}),mh=ao(e=>e.preferencePanel),_se=wt(mh,(e,t)=>!!(e.open&&e.labelId===t));var Qi=function(e){return e.filters="filters",e.columns="columns",e.aiAssistant="aiAssistant",e}(Qi||{});function Dse(e){return JSON.stringify([e.filterModel,e.sortModel,e.start,e.end])}class Lse{constructor({ttl:t=3e5,getKey:n=Dse}){this.cache=void 0,this.ttl=void 0,this.getKey=void 0,this.cache={},this.ttl=t,this.getKey=n}set(t,n){const r=this.getKey(t),o=Date.now()+this.ttl;this.cache[r]={value:n,expiry:o}}get(t){const n=this.getKey(t),r=this.cache[n];if(r){if(Date.now()>r.expiry){delete this.cache[n];return}return r.value}}clear(){this.cache={}}}class $se 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 jse 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 Fse=(e,t)=>{const{classes:n}=e,r={root:["scrollbar",`scrollbar--${t}`],content:["scrollbarContent"]};return st(r,Cn,n)},TN=Bn("div")({position:"absolute",display:"inline-block",zIndex:60,"&:hover":{zIndex:70},"--size":"calc(max(var(--DataGrid-scrollbarSize), 14px))"}),Nse=Bn(TN)({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"}),zse=Bn(TN)({width:"100%",height:"var(--size)",overflowY:"hidden",overflowX:"auto",outline:0,"& > div":{height:"var(--size)"},bottom:"0px"}),B3=Wt(function(t,n){const r=Qa(),o=yt(),i=b.useRef(!1),a=b.useRef(0),l=b.useRef(null),u=b.useRef(null),d=Fse(o,t.position),f=Xe(r,vr),m=t.position==="vertical"?"height":"width",g=t.position==="vertical"?"scrollTop":"scrollLeft",w=t.position==="vertical"?"top":"left",C=t.position==="vertical"?f.hasScrollX:f.hasScrollY,S=f.minimumSize[m]+(C?f.scrollbarSize:0),T=(t.position==="vertical"?f.viewportInnerSize.height:f.viewportOuterSize.width)*(S/f.viewportOuterSize[m]),I=Vt(()=>{const P=l.current,O=t.scrollPosition.current;if(!P||O[w]===a.current)return;if(a.current=O[w],i.current){i.current=!1;return}i.current=!0;const j=O[w]/S;P[g]=j*T}),k=Vt(()=>{const P=r.current.virtualScrollerRef.current,O=l.current;if(!O)return;if(i.current){i.current=!1;return}i.current=!0;const j=O[g]/T;P[g]=j*S});jR(()=>{const P=r.current.virtualScrollerRef.current,O=l.current,j={passive:!0};return P.addEventListener("scroll",I,j),O.addEventListener("scroll",k,j),()=>{P.removeEventListener("scroll",I,j),O.removeEventListener("scroll",k,j)}}),b.useEffect(()=>{u.current.style.setProperty(m,`${T}px`)},[T,m]);const R=t.position==="vertical"?Nse:zse;return y.jsx(R,{ref:Dn(n,l),className:d.root,style:t.position==="vertical"&&o.listView?{height:"100%",top:0}:void 0,tabIndex:-1,"aria-hidden":"true",onFocus:P=>{P.target.blur()},children:y.jsx("div",{ref:u,className:d.content})})}),Bse=e=>{const{classes:t,hasScrollX:n,hasPinnedRight:r,loadingOverlayVariant:o,overlayType:i}=e;return st({root:["main",r&&"main--hasPinnedRight",(o==="skeleton"||i==="noColumnsOverlay")&&"main--hiddenContent"],scroller:["virtualScroller",n&&"virtualScroller--hasScrollX"]},Cn,t)},Hse=Bn("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}),Use=e=>e.current.state.dimensions.rightPinnedWidth>0;function Gse(e){const t=rn(),n=yt(),r=Xe(t,loe),o=Xe(t,soe),i=Xe(t,Use),a=Xe(t,foe),{getOverlay:l,overlaysProps:u}=cse(),d=z({classes:n.classes,hasScrollX:o,hasPinnedRight:i},u),f=Bse(d),m=Jae(),{getContainerProps:g,getScrollerProps:w,getContentProps:C,getRenderZoneProps:S,getScrollbarVerticalProps:E,getScrollbarHorizontalProps:T,getRows:I,getScrollAreaProps:k}=m,R=I();return y.jsxs(hse,z({className:f.root},g(),{ownerState:d,children:[y.jsx(L3,z({scrollDirection:"left"},k())),y.jsx(L3,z({scrollDirection:"right"},k())),y.jsxs(Hse,z({className:f.scroller},w(),{ownerState:d,children:[y.jsxs(bse,{children:[!n.listView&&y.jsx(dse,{}),y.jsx(n.slots.pinnedRows,{position:"top",virtualScroller:m})]}),l(),y.jsx(xse,z({},C(),{children:y.jsxs(Ase,z({},S(),{children:[R,y.jsx(n.slots.detailPanels,{virtualScroller:m})]}))})),a&&y.jsx(Mse,{rowsLength:R.length}),y.jsx(n.slots.bottomContainer,{children:y.jsx(n.slots.pinnedRows,{position:"bottom",virtualScroller:m})})]})),o&&!n.listView&&y.jsx(B3,z({position:"horizontal"},T())),r&&y.jsx(B3,z({position:"vertical"},E())),e.children]}))}function Vse(){var t;const e=yt();return e.hideFooter?null:y.jsx(e.slots.footer,z({},(t=e.slotProps)==null?void 0:t.footer))}let Jk;function Wse(){return Jk===void 0&&document.createElement("div").focus({get preventScroll(){return Jk=!0,!1}}),Jk}function qse({defaultSlots:e,slots:t}){const n=t;if(!n||Object.keys(n).length===0)return e;const r=z({},e);return Object.keys(n).forEach(o=>{const i=o;n[i]!==void 0&&(r[i]=n[i])}),r}const Yse=e=>{const t=e.match(/^__row_group_by_columns_group_(.*)__$/);return t?t[1]:null},Kse=e=>e===V9||Yse(e)!==null,MN=(e,t)=>{if(e)if(t){if(e===Tn.LEFT)return"right";if(e===Tn.RIGHT)return"left"}else{if(e===Tn.LEFT)return"left";if(e===Tn.RIGHT)return"right"}};function bT(e,t,n,r){const o=MN(n,t);return!o||r===void 0||(e[o]=r),e}const Xse=["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"],Zse=["changeReason","unstable_updateValueOnRender"];Tn.LEFT+"",_d.LEFT,Tn.RIGHT+"",_d.RIGHT,Tn.NONE+"",Tn.VIRTUAL+"";const Qse=e=>{const{align:t,showLeftBorder:n,showRightBorder:r,pinnedPosition:o,isEditable:i,isSelected:a,isSelectionMode:l,classes:u}=e,d={root:["cell",`cell--text${Be(t)}`,a&&"selected",i&&"cell--editable",n&&"cell--withLeftBorder",r&&"cell--withRightBorder",o===Tn.LEFT&&"cell--pinnedLeft",o===Tn.RIGHT&&"cell--pinnedRight",l&&!i&&"cell--selectionMode"]};return st(d,Cn,u)},Jse=Wt(function(t,n){var Ue,jt,Ht;const{column:r,row:o,rowId:i,rowNode:a,align:l,colIndex:u,width:d,className:f,style:m,colSpan:g,disableDragEvents:w,isNotVisible:C,pinnedOffset:S,pinnedPosition:E,showRightBorder:T,showLeftBorder:I,onClick:k,onDoubleClick:R,onMouseDown:P,onMouseUp:O,onMouseOver:j,onKeyDown:F,onKeyUp:D,onDragEnter:_,onDragOver:$}=t,B=tt(t,Xse),V=Qa(),q=yt(),G=Lo(),N=r.field,H=Xe(V,Ose,{rowId:i,field:N}),Q=iT().hooks.useCellAggregationResult(i,N),W=H?Qn.Edit:Qn.View,K=V.current.getCellParamsForRow(i,N,o,{colDef:r,cellMode:W,rowNode:a,tabIndex:Xe(V,()=>{const pt=gO(V);return pt&&pt.field===N&&pt.id===i?0:-1}),hasFocus:Xe(V,()=>{const pt=ga(V);return(pt==null?void 0:pt.id)===i&&pt.field===N})});K.api=V.current,Q&&(K.value=Q.value,K.formattedValue=r.valueFormatter?r.valueFormatter(K.value,o,r,V):K.value);const J=Xe(V,()=>V.current.unstable_applyPipeProcessors("isCellSelected",!1,{id:i,field:N})),ae=Xe(V,yN),ce=Xe(V,Yae),{hasFocus:de,isEditable:re=!1,value:ke}=K,Ce=r.type==="actions"&&((Ue=r.getActions)==null?void 0:Ue.call(r,V.current.getRowParams(i)).some(pt=>!pt.props.disabled)),ie=(W==="view"||!re)&&!Ce?K.tabIndex:-1,{classes:le,getCellClassName:ve}=q,me=[Xe(V,()=>V.current.unstable_applyPipeProcessors("cellClassName",[],{id:i,field:N}).filter(Boolean).join(" "))];r.cellClassName&&me.push(typeof r.cellClassName=="function"?r.cellClassName(K):r.cellClassName),r.display==="flex"&&me.push(ee["cell--flex"]),ve&&me.push(ve(K));const be=K.formattedValue??ke,Fe=b.useRef(null),Ze=Dn(n,Fe),We=b.useRef(null),_e=q.cellSelection??!1,ft={align:l,showLeftBorder:I,showRightBorder:T,isEditable:re,classes:q.classes,pinnedPosition:E,isSelected:J,isSelectionMode:_e},nt=Qse(ft),dt=b.useCallback(pt=>ht=>{const Ct=V.current.getCellParams(i,N||"");V.current.publishEvent(pt,Ct,ht),O&&O(ht)},[V,N,O,i]),se=b.useCallback(pt=>ht=>{const Ct=V.current.getCellParams(i,N||"");V.current.publishEvent(pt,Ct,ht),P&&P(ht)},[V,N,P,i]),De=b.useCallback((pt,ht)=>Ct=>{if(!V.current.getRow(i))return;const Nt=V.current.getCellParams(i,N||"");V.current.publishEvent(pt,Nt,Ct),ht&&ht(Ct)},[V,N,i]),ye=((jt=ae[i])==null?void 0:jt[N])??!1,Pe=((Ht=ce[i])==null?void 0:Ht[N])??1,qe=b.useMemo(()=>{if(C)return{padding:0,opacity:0,width:0,height:0,border:0};const pt=bT(z({"--width":`${d}px`},m),G,E,S),ht=E===Tn.LEFT,Ct=E===Tn.RIGHT;return Pe>1&&(pt.height=`calc(var(--height) * ${Pe})`,pt.zIndex=10,(ht||Ct)&&(pt.zIndex=40)),pt},[d,C,m,S,E,G,Pe]);if(b.useEffect(()=>{if(!de||W===Qn.Edit)return;const pt=io(V.current.rootElementRef.current);if(Fe.current&&!Fe.current.contains(pt.activeElement)){const ht=Fe.current.querySelector('[tabindex="0"]'),Ct=We.current||ht||Fe.current;if(Wse())Ct.focus({preventScroll:!0});else{const Nt=V.current.getScrollPosition();Ct.focus(),V.current.scroll(Nt)}}},[de,W,V]),ye)return y.jsx("div",{"data-colindex":u,role:"presentation",style:z({width:"var(--width)"},qe)});let Ke=B.onFocus,it,ot;if(H===null&&r.renderCell&&(it=r.renderCell(K)),H!==null&&r.renderEditCell){const pt=V.current.getRowWithUpdatedValues(i,r.field),ht=tt(H,Zse),Ct=r.valueFormatter?r.valueFormatter(H.value,pt,r,V):K.formattedValue,Nt=z({},K,{row:pt,formattedValue:Ct},ht);it=r.renderEditCell(Nt),me.push(ee["cell--editing"]),me.push(le==null?void 0:le["cell--editing"])}if(it===void 0){const pt=be==null?void 0:be.toString();it=pt,ot=pt}b.isValidElement(it)&&Ce&&(it=b.cloneElement(it,{focusElementRef:We}));const gt=w?null:{onDragEnter:De("cellDragEnter",_),onDragOver:De("cellDragOver",$)};return y.jsx("div",z({className:Ve(nt.root,me,f),role:"gridcell","data-field":N,"data-colindex":u,"aria-colindex":u+1,"aria-colspan":g,"aria-rowspan":Pe,style:qe,title:ot,tabIndex:ie,onClick:De("cellClick",k),onDoubleClick:De("cellDoubleClick",R),onMouseOver:De("cellMouseOver",j),onMouseDown:se("cellMouseDown"),onMouseUp:dt("cellMouseUp"),onKeyDown:De("cellKeyDown",F),onKeyUp:De("cellKeyUp",D)},gt,B,{onFocus:Ke,ref:Ze,children:it}))}),ele=Su(Jse),tle=["label","icon","showInMenu","onClick"],nle=["label","icon","showInMenu","onClick","closeMenuOnClick","closeMenu"],XI=Wt((e,t)=>{var f;const n=yt();if(!e.showInMenu){const{label:m,icon:g,onClick:w}=e,C=tt(e,tle),S=E=>{w==null||w(E)};return y.jsx(n.slots.baseIconButton,z({size:"small",role:"menuitem","aria-label":m},C,{onClick:S},(f=n.slotProps)==null?void 0:f.baseIconButton,{ref:t,children:b.cloneElement(g,{fontSize:"small"})}))}const{label:r,icon:o,onClick:i,closeMenuOnClick:a=!0,closeMenu:l}=e,u=tt(e,nle),d=m=>{i==null||i(m),a&&(l==null||l())};return y.jsx(n.slots.baseMenuItem,z({ref:t},u,{onClick:d,iconStart:o,children:r}))}),rle=["field","type","align","width","height","empty","style","className"],H3="1.3em",ole="1.2em",U3=[40,80],ile={number:[40,60],string:[40,80],date:[40,60],dateTime:[60,80],singleSelect:[40,80]},ale=e=>{const{align:t,classes:n,empty:r}=e,o={root:["cell","cellSkeleton",`cell--text${t?Be(t):"Left"}`,r&&"cellEmpty"]};return st(o,Cn,n)},sle=Uoe(12345);function lle(e){const{field:t,type:n,align:r,width:o,height:i,empty:a=!1,style:l,className:u}=e,d=tt(e,rle),f=yt(),m={classes:f.classes,align:r,empty:a},g=ale(m),w=b.useMemo(()=>{if(n==="boolean"||n==="actions")return{variant:"circular",width:H3,height:H3};const[S,E]=n?ile[n]??U3:U3;return{variant:"text",width:`${Math.round(sle(S,E))}%`,height:ole}},[n]);return y.jsx("div",z({"data-field":t,className:Ve(g.root,u),style:z({height:i,maxWidth:o,minWidth:o},l)},d,{children:!a&&y.jsx(f.slots.baseSkeleton,z({},w))}))}const cle=Su(lle),ule=10,aS=-5,Eg=1,G3={width:3,rx:1.5,x:10.5},dle="/* emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason */",fle=e=>e.current.state.dimensions.hasScrollX&&(!e.current.state.dimensions.hasScrollY||e.current.state.dimensions.scrollbarSize===0),ple=Te("div",{name:"MuiDataGrid",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${ee.autoHeight}`]:t.autoHeight},{[`&.${ee.autosizing}`]:t.autosizing},{[`&.${ee["root--densityStandard"]}`]:t["root--densityStandard"]},{[`&.${ee["root--densityComfortable"]}`]:t["root--densityComfortable"]},{[`&.${ee["root--densityCompact"]}`]:t["root--densityCompact"]},{[`&.${ee["root--disableUserSelection"]}`]:t["root--disableUserSelection"]},{[`&.${ee["root--noToolbar"]}`]:t["root--noToolbar"]},{[`&.${ee.withVerticalBorder}`]:t.withVerticalBorder},{[`& .${ee.actionsCell}`]:t.actionsCell},{[`& .${ee.booleanCell}`]:t.booleanCell},{[`& .${ee.cell}`]:t.cell},{[`& .${ee["cell--editable"]}`]:t["cell--editable"]},{[`& .${ee["cell--editing"]}`]:t["cell--editing"]},{[`& .${ee["cell--flex"]}`]:t["cell--flex"]},{[`& .${ee["cell--pinnedLeft"]}`]:t["cell--pinnedLeft"]},{[`& .${ee["cell--pinnedRight"]}`]:t["cell--pinnedRight"]},{[`& .${ee["cell--rangeBottom"]}`]:t["cell--rangeBottom"]},{[`& .${ee["cell--rangeLeft"]}`]:t["cell--rangeLeft"]},{[`& .${ee["cell--rangeRight"]}`]:t["cell--rangeRight"]},{[`& .${ee["cell--rangeTop"]}`]:t["cell--rangeTop"]},{[`& .${ee["cell--selectionMode"]}`]:t["cell--selectionMode"]},{[`& .${ee["cell--textCenter"]}`]:t["cell--textCenter"]},{[`& .${ee["cell--textLeft"]}`]:t["cell--textLeft"]},{[`& .${ee["cell--textRight"]}`]:t["cell--textRight"]},{[`& .${ee["cell--withLeftBorder"]}`]:t["cell--withLeftBorder"]},{[`& .${ee["cell--withRightBorder"]}`]:t["cell--withRightBorder"]},{[`& .${ee.cellCheckbox}`]:t.cellCheckbox},{[`& .${ee.cellEmpty}`]:t.cellEmpty},{[`& .${ee.cellOffsetLeft}`]:t.cellOffsetLeft},{[`& .${ee.cellSkeleton}`]:t.cellSkeleton},{[`& .${ee.checkboxInput}`]:t.checkboxInput},{[`& .${ee.columnHeader}`]:t.columnHeader},{[`& .${ee["columnHeader--alignCenter"]}`]:t["columnHeader--alignCenter"]},{[`& .${ee["columnHeader--alignLeft"]}`]:t["columnHeader--alignLeft"]},{[`& .${ee["columnHeader--alignRight"]}`]:t["columnHeader--alignRight"]},{[`& .${ee["columnHeader--dragging"]}`]:t["columnHeader--dragging"]},{[`& .${ee["columnHeader--emptyGroup"]}`]:t["columnHeader--emptyGroup"]},{[`& .${ee["columnHeader--filledGroup"]}`]:t["columnHeader--filledGroup"]},{[`& .${ee["columnHeader--filtered"]}`]:t["columnHeader--filtered"]},{[`& .${ee["columnHeader--last"]}`]:t["columnHeader--last"]},{[`& .${ee["columnHeader--lastUnpinned"]}`]:t["columnHeader--lastUnpinned"]},{[`& .${ee["columnHeader--moving"]}`]:t["columnHeader--moving"]},{[`& .${ee["columnHeader--numeric"]}`]:t["columnHeader--numeric"]},{[`& .${ee["columnHeader--pinnedLeft"]}`]:t["columnHeader--pinnedLeft"]},{[`& .${ee["columnHeader--pinnedRight"]}`]:t["columnHeader--pinnedRight"]},{[`& .${ee["columnHeader--siblingFocused"]}`]:t["columnHeader--siblingFocused"]},{[`& .${ee["columnHeader--sortable"]}`]:t["columnHeader--sortable"]},{[`& .${ee["columnHeader--sorted"]}`]:t["columnHeader--sorted"]},{[`& .${ee["columnHeader--withLeftBorder"]}`]:t["columnHeader--withLeftBorder"]},{[`& .${ee["columnHeader--withRightBorder"]}`]:t["columnHeader--withRightBorder"]},{[`& .${ee.columnHeaderCheckbox}`]:t.columnHeaderCheckbox},{[`& .${ee.columnHeaderDraggableContainer}`]:t.columnHeaderDraggableContainer},{[`& .${ee.columnHeaderTitleContainer}`]:t.columnHeaderTitleContainer},{[`& .${ee.columnHeaderTitleContainerContent}`]:t.columnHeaderTitleContainerContent},{[`& .${ee.columnSeparator}`]:t.columnSeparator},{[`& .${ee["columnSeparator--resizable"]}`]:t["columnSeparator--resizable"]},{[`& .${ee["columnSeparator--resizing"]}`]:t["columnSeparator--resizing"]},{[`& .${ee["columnSeparator--sideLeft"]}`]:t["columnSeparator--sideLeft"]},{[`& .${ee["columnSeparator--sideRight"]}`]:t["columnSeparator--sideRight"]},{[`& .${ee["container--bottom"]}`]:t["container--bottom"]},{[`& .${ee["container--top"]}`]:t["container--top"]},{[`& .${ee.detailPanelToggleCell}`]:t.detailPanelToggleCell},{[`& .${ee["detailPanelToggleCell--expanded"]}`]:t["detailPanelToggleCell--expanded"]},{[`& .${ee.editBooleanCell}`]:t.editBooleanCell},{[`& .${ee.filterIcon}`]:t.filterIcon},{[`& .${ee["filler--borderBottom"]}`]:t["filler--borderBottom"]},{[`& .${ee["filler--pinnedLeft"]}`]:t["filler--pinnedLeft"]},{[`& .${ee["filler--pinnedRight"]}`]:t["filler--pinnedRight"]},{[`& .${ee.groupingCriteriaCell}`]:t.groupingCriteriaCell},{[`& .${ee.groupingCriteriaCellLoadingContainer}`]:t.groupingCriteriaCellLoadingContainer},{[`& .${ee.groupingCriteriaCellToggle}`]:t.groupingCriteriaCellToggle},{[`& .${ee.headerFilterRow}`]:t.headerFilterRow},{[`& .${ee.iconSeparator}`]:t.iconSeparator},{[`& .${ee.menuIcon}`]:t.menuIcon},{[`& .${ee.menuIconButton}`]:t.menuIconButton},{[`& .${ee.menuList}`]:t.menuList},{[`& .${ee.menuOpen}`]:t.menuOpen},{[`& .${ee.overlayWrapperInner}`]:t.overlayWrapperInner},{[`& .${ee.pinnedRows}`]:t.pinnedRows},{[`& .${ee["pinnedRows--bottom"]}`]:t["pinnedRows--bottom"]},{[`& .${ee["pinnedRows--top"]}`]:t["pinnedRows--top"]},{[`& .${ee.row}`]:t.row},{[`& .${ee["row--borderBottom"]}`]:t["row--borderBottom"]},{[`& .${ee["row--detailPanelExpanded"]}`]:t["row--detailPanelExpanded"]},{[`& .${ee["row--dragging"]}`]:t["row--dragging"]},{[`& .${ee["row--dynamicHeight"]}`]:t["row--dynamicHeight"]},{[`& .${ee["row--editable"]}`]:t["row--editable"]},{[`& .${ee["row--editing"]}`]:t["row--editing"]},{[`& .${ee["row--firstVisible"]}`]:t["row--firstVisible"]},{[`& .${ee["row--lastVisible"]}`]:t["row--lastVisible"]},{[`& .${ee.rowReorderCell}`]:t.rowReorderCell},{[`& .${ee["rowReorderCell--draggable"]}`]:t["rowReorderCell--draggable"]},{[`& .${ee.rowReorderCellContainer}`]:t.rowReorderCellContainer},{[`& .${ee.rowReorderCellPlaceholder}`]:t.rowReorderCellPlaceholder},{[`& .${ee.rowSkeleton}`]:t.rowSkeleton},{[`& .${ee.scrollbar}`]:t.scrollbar},{[`& .${ee["scrollbar--horizontal"]}`]:t["scrollbar--horizontal"]},{[`& .${ee["scrollbar--vertical"]}`]:t["scrollbar--vertical"]},{[`& .${ee.scrollbarFiller}`]:t.scrollbarFiller},{[`& .${ee["scrollbarFiller--borderBottom"]}`]:t["scrollbarFiller--borderBottom"]},{[`& .${ee["scrollbarFiller--borderTop"]}`]:t["scrollbarFiller--borderTop"]},{[`& .${ee["scrollbarFiller--header"]}`]:t["scrollbarFiller--header"]},{[`& .${ee["scrollbarFiller--pinnedRight"]}`]:t["scrollbarFiller--pinnedRight"]},{[`& .${ee.sortIcon}`]:t.sortIcon},{[`& .${ee.treeDataGroupingCell}`]:t.treeDataGroupingCell},{[`& .${ee.treeDataGroupingCellLoadingContainer}`]:t.treeDataGroupingCellLoadingContainer},{[`& .${ee.treeDataGroupingCellToggle}`]:t.treeDataGroupingCellToggle},{[`& .${ee.withBorderColor}`]:t.withBorderColor}]})(()=>{const e=Qa(),t=Xe(e,fle),n=vt.colors.background.base,r=vt.header.background.base,o=vt.cell.background.pinned,i=hle(vt.colors.interactive.hover),a=vt.colors.interactive.hoverOpacity,l=vt.colors.interactive.selected,u=vt.colors.interactive.selectedOpacity,d=l,f=`calc(${u} + ${a})`,m=Md(n,i,a),g=Md(n,l,u),w=Md(n,d,f),C=Md(o,i,a),S=Md(o,l,u),E=Md(o,d,f),T=j=>({[`& .${ee["cell--pinnedLeft"]}, & .${ee["cell--pinnedRight"]}`]:{backgroundColor:j,"&.Mui-selected":{backgroundColor:Md(j,g,u),"&:hover":{backgroundColor:Md(j,w,f)}}}}),I=T(C),k=T(S),R=T(E),P={backgroundColor:g,"&:hover":{backgroundColor:w,"@media (hover: none)":{backgroundColor:g}}};return{"--unstable_DataGrid-radius":vt.radius.base,"--unstable_DataGrid-headWeight":vt.typography.fontWeight.medium,"--DataGrid-rowBorderColor":vt.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:vt.colors.border.base,borderRadius:"var(--unstable_DataGrid-radius)",backgroundColor:vt.colors.background.base,color:vt.colors.foreground.base,font:vt.typography.font.body,outline:"none",height:"100%",display:"flex",minWidth:0,minHeight:0,flexDirection:"column",overflow:"hidden",overflowAnchor:"none",transform:"translate(0, 0)",[`.${ee.main} > *:first-child${dle}`]:{borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"},[`&.${ee.autoHeight}`]:{height:"auto"},[`&.${ee.autosizing}`]:{[`& .${ee.columnHeaderTitleContainerContent} > *`]:{overflow:"visible !important"},"@media (hover: hover)":{[`& .${ee.menuIcon}`]:{width:"0 !important",visibility:"hidden !important"}},[`& .${ee.cell}`]:{overflow:"visible !important",whiteSpace:"nowrap",minWidth:"max-content !important",maxWidth:"max-content !important"},[`& .${ee.groupingCriteriaCell}`]:{width:"unset"},[`& .${ee.treeDataGroupingCell}`]:{width:"unset"}},[`&.${ee.withSidePanel}`]:{flexDirection:"row"},[`& .${ee.mainContent}`]:{display:"flex",flexDirection:"column",overflow:"hidden",flex:1},[`& .${ee.columnHeader}, & .${ee.cell}`]:{WebkitTapHighlightColor:"transparent",padding:"0 10px",boxSizing:"border-box"},[`& .${ee.columnHeader}:focus-within, & .${ee.cell}:focus-within`]:{outline:`solid ${kN(vt.colors.interactive.focus,.5)} ${Eg}px`,outlineOffset:Eg*-1},[`& .${ee.columnHeader}:focus, & .${ee.cell}:focus`]:{outline:`solid ${vt.colors.interactive.focus} ${Eg}px`,outlineOffset:Eg*-1},[`& .${ee.columnHeader}:focus,
      & .${ee["columnHeader--withLeftBorder"]},
      & .${ee["columnHeader--withRightBorder"]},
      & .${ee["columnHeader--siblingFocused"]},
      & .${ee["virtualScroller--hasScrollX"]} .${ee["columnHeader--lastUnpinned"]},
      & .${ee["virtualScroller--hasScrollX"]} .${ee["columnHeader--last"]}
      `]:{[`& .${ee.columnSeparator}`]:{opacity:0},"@media (hover: none)":{[`& .${ee["columnSeparator--resizable"]}`]:{opacity:1}},[`& .${ee["columnSeparator--resizable"]}:hover`]:{opacity:1}},[`&.${ee["root--noToolbar"]} [aria-rowindex="1"] [aria-colindex="1"]`]:{borderTopLeftRadius:"calc(var(--unstable_DataGrid-radius) - 1px)"},[`&.${ee["root--noToolbar"]} [aria-rowindex="1"] .${ee["columnHeader--last"]}`]:{borderTopRightRadius:t?"calc(var(--unstable_DataGrid-radius) - 1px)":void 0},[`& .${ee.columnHeaderCheckbox}, & .${ee.cellCheckbox}`]:{padding:0,justifyContent:"center",alignItems:"center"},[`& .${ee.columnHeader}`]:{position:"relative",display:"flex",alignItems:"center",backgroundColor:r},[`& .${ee["columnHeader--filter"]}`]:{paddingTop:8,paddingBottom:8,paddingRight:5,minHeight:"min-content",overflow:"hidden"},[`& .${ee["virtualScroller--hasScrollX"]} .${ee["columnHeader--last"]}`]:{overflow:"hidden"},[`& .${ee["pivotPanelField--sorted"]} .${ee.iconButtonContainer},
      & .${ee["columnHeader--sorted"]} .${ee.iconButtonContainer},
      & .${ee["columnHeader--filtered"]} .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"},[`& .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}) .${ee.sortButton},
      & .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}) .${ee.sortButton}`]:{opacity:0,transition:vt.transition(["opacity"],{duration:vt.transitions.duration.short})},[`& .${ee.columnHeaderTitleContainer}`]:{display:"flex",alignItems:"center",gap:vt.spacing(.25),minWidth:0,flex:1,whiteSpace:"nowrap",overflow:"hidden"},[`& .${ee.columnHeaderTitleContainerContent}`]:{overflow:"hidden",display:"flex",alignItems:"center"},[`& .${ee["columnHeader--filledGroup"]} .${ee.columnHeaderTitleContainer}`]:{borderBottomWidth:"1px",borderBottomStyle:"solid",boxSizing:"border-box"},[`& .${ee.sortIcon}, & .${ee.filterIcon}`]:{fontSize:"inherit"},[`& .${ee["columnHeader--sortable"]}`]:{cursor:"pointer"},[`& .${ee["columnHeader--alignCenter"]} .${ee.columnHeaderTitleContainer}`]:{justifyContent:"center"},[`& .${ee["columnHeader--alignRight"]} .${ee.columnHeaderDraggableContainer}, & .${ee["columnHeader--alignRight"]} .${ee.columnHeaderTitleContainer}`]:{flexDirection:"row-reverse"},[`& .${ee["columnHeader--alignCenter"]} .${ee.menuIcon}`]:{marginLeft:"auto"},[`& .${ee["columnHeader--alignRight"]} .${ee.menuIcon}`]:{marginRight:"auto",marginLeft:-5},[`& .${ee["columnHeader--moving"]}`]:{backgroundColor:m},[`& .${ee["columnHeader--pinnedLeft"]}, & .${ee["columnHeader--pinnedRight"]}`]:{position:"sticky",zIndex:40,background:vt.header.background.base},[`& .${ee.columnSeparator}`]:{position:"absolute",overflow:"hidden",zIndex:30,display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",maxWidth:ule,color:vt.colors.border.base},[`& .${ee.columnHeaders}`]:{width:"var(--DataGrid-rowWidth)",backgroundColor:r},"@media (hover: hover)":{[`& .${ee.columnHeader}:hover`]:{[`& .${ee.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${ee.iconButtonContainer}`]:{visibility:"visible",width:"auto"}},[`& .${ee.columnHeader}:not(.${ee["columnHeader--sorted"]}):hover .${ee.sortButton},
        & .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}):hover .${ee.sortButton},
        & .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}) .${ee.sortButton}:focus-visible`]:{opacity:.5}},"@media (hover: none)":{[`& .${ee.columnHeader} .${ee.menuIcon}`]:{width:"auto",visibility:"visible"},[`& .${ee.columnHeader}:focus,
        & .${ee["columnHeader--siblingFocused"]}`]:{[`.${ee["columnSeparator--resizable"]}`]:{color:vt.colors.foreground.accent}},[`& .${ee.pivotPanelField}:not(.${ee["pivotPanelField--sorted"]}) .${ee.sortButton}`]:{opacity:.5}},[`& .${ee["columnSeparator--sideLeft"]}`]:{left:aS},[`& .${ee["columnSeparator--sideRight"]}`]:{right:aS},[`& .${ee["columnHeader--withRightBorder"]} .${ee["columnSeparator--sideLeft"]}`]:{left:aS-.5},[`& .${ee["columnHeader--withRightBorder"]} .${ee["columnSeparator--sideRight"]}`]:{right:aS-.5},[`& .${ee["columnSeparator--resizable"]}`]:{cursor:"col-resize",touchAction:"none",[`&.${ee["columnSeparator--resizing"]}`]:{color:vt.colors.foreground.accent},"@media (hover: none)":{[`& .${ee.iconSeparator} rect`]:G3},"@media (hover: hover)":{"&:hover":{color:vt.colors.foreground.accent,[`& .${ee.iconSeparator} rect`]:G3}},"& svg":{pointerEvents:"none"}},[`& .${ee.iconSeparator}`]:{color:"inherit",transition:vt.transition(["color","width"],{duration:vt.transitions.duration.short})},[`& .${ee.menuIcon}`]:{width:0,visibility:"hidden",fontSize:20,marginRight:-5,display:"flex",alignItems:"center"},[`.${ee.menuOpen}`]:{visibility:"visible",width:"auto"},[`& .${ee.headerFilterRow}`]:{[`& .${ee.columnHeader}`]:{boxSizing:"border-box",borderBottom:"1px solid var(--DataGrid-rowBorderColor)"}},[`& .${ee["row--borderBottom"]} .${ee.columnHeader},
      & .${ee["row--borderBottom"]} .${ee.filler},
      & .${ee["row--borderBottom"]} .${ee.scrollbarFiller}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ee["row--borderBottom"]} .${ee.cell}`]:{borderBottom:"1px solid var(--rowBorderColor)"},[`.${ee.row}`]:{display:"flex",width:"var(--DataGrid-rowWidth)",breakInside:"avoid","--rowBorderColor":"var(--DataGrid-rowBorderColor)",[`&.${ee["row--firstVisible"]}`]:{"--rowBorderColor":"transparent"},"&:hover":{backgroundColor:m,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ee.rowSkeleton}:hover`]:{backgroundColor:"transparent"},"&.Mui-selected":P},[`& .${ee["container--top"]}, & .${ee["container--bottom"]}`]:{"[role=row]":{background:vt.colors.background.base}},[`& .${ee.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":P},[`& .${ee["virtualScrollerContent--overflowed"]} .${ee["row--lastVisible"]} .${ee.cell}`]:{borderTopColor:"transparent"},[`& .${ee.pinnedRows} .${ee.row}, .${ee.aggregationRowOverlayWrapper} .${ee.row}`]:{backgroundColor:o,"&:hover":{backgroundColor:C}},[`& .${ee["pinnedRows--top"]} :first-of-type`]:{[`& .${ee.cell}, .${ee.scrollbarFiller}`]:{borderTop:"none"}},[`&.${ee["root--disableUserSelection"]}`]:{userSelect:"none"},[`& .${ee["row--dynamicHeight"]} > .${ee.cell}`]:{whiteSpace:"initial",lineHeight:"inherit"},[`& .${ee.cellEmpty}`]:{flex:1,padding:0,height:"unset"},[`& .${ee.cell}.${ee["cell--selectionMode"]}`]:{cursor:"default"},[`& .${ee.cell}.${ee["cell--editing"]}`]:{padding:1,display:"flex",boxShadow:vt.shadows.base,backgroundColor:vt.colors.background.overlay,"&:focus-within":{outline:`${Eg}px solid ${vt.colors.interactive.focus}`,outlineOffset:Eg*-1}},[`& .${ee["row--editing"]}`]:{boxShadow:vt.shadows.base},[`& .${ee["row--editing"]} .${ee.cell}`]:{boxShadow:"none",backgroundColor:vt.colors.background.overlay},[`& .${ee.editBooleanCell}`]:{display:"flex",height:"100%",width:"100%",alignItems:"center",justifyContent:"center"},[`& .${ee.booleanCell}[data-value="true"]`]:{color:vt.colors.foreground.muted},[`& .${ee.booleanCell}[data-value="false"]`]:{color:vt.colors.foreground.disabled},[`& .${ee.actionsCell}`]:{display:"inline-flex",alignItems:"center",gridGap:vt.spacing(1)},[`& .${ee.rowReorderCell}`]:{display:"inline-flex",flex:1,alignItems:"center",justifyContent:"center",opacity:vt.colors.interactive.disabledOpacity},[`& .${ee["rowReorderCell--draggable"]}`]:{cursor:"grab",opacity:1},[`& .${ee.rowReorderCellContainer}`]:{padding:0,display:"flex",alignItems:"stretch"},[`.${ee.withBorderColor}`]:{borderColor:vt.colors.border.base},[`& .${ee["cell--withLeftBorder"]}, & .${ee["columnHeader--withLeftBorder"]}`]:{borderLeftColor:"var(--DataGrid-rowBorderColor)",borderLeftWidth:"1px",borderLeftStyle:"solid"},[`& .${ee["cell--withRightBorder"]}, & .${ee["columnHeader--withRightBorder"]}`]:{borderRightColor:"var(--DataGrid-rowBorderColor)",borderRightWidth:"1px",borderRightStyle:"solid"},[`& .${ee["cell--flex"]}`]:{display:"flex",alignItems:"center",lineHeight:"inherit"},[`& .${ee["cell--textLeft"]}`]:{textAlign:"left",justifyContent:"flex-start"},[`& .${ee["cell--textRight"]}`]:{textAlign:"right",justifyContent:"flex-end"},[`& .${ee["cell--textCenter"]}`]:{textAlign:"center",justifyContent:"center"},[`& .${ee["cell--pinnedLeft"]}, & .${ee["cell--pinnedRight"]}`]:{position:"sticky",zIndex:30,background:vt.cell.background.pinned,"&.Mui-selected":{backgroundColor:S}},[`& .${ee.row}`]:{"&:hover":I,"&.Mui-selected":k,"&.Mui-selected:hover":R},[`& .${ee.cellOffsetLeft}`]:{flex:"0 0 auto",display:"inline-block"},[`& .${ee.cellSkeleton}`]:{flex:"0 0 auto",height:"100%",display:"inline-flex",alignItems:"center"},[`& .${ee.columnHeaderDraggableContainer}`]:{display:"flex",width:"100%",height:"100%"},[`& .${ee.rowReorderCellPlaceholder}`]:{display:"none"},[`& .${ee["columnHeader--dragging"]}, & .${ee["row--dragging"]}`]:{background:vt.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:vt.colors.interactive.disabledOpacity},[`& .${ee["row--dragging"]}`]:{background:vt.colors.background.overlay,padding:"0 12px",borderRadius:"var(--unstable_DataGrid-radius)",opacity:vt.colors.interactive.disabledOpacity,[`& .${ee.rowReorderCellPlaceholder}`]:{display:"flex"}},[`& .${ee.treeDataGroupingCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.treeDataGroupingCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:vt.spacing(2)},[`& .${ee.treeDataGroupingCellLoadingContainer}, .${ee.groupingCriteriaCellLoadingContainer}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},[`& .${ee.groupingCriteriaCell}`]:{display:"flex",alignItems:"center",width:"100%"},[`& .${ee.groupingCriteriaCellToggle}`]:{flex:"0 0 28px",alignSelf:"stretch",marginRight:vt.spacing(2)},[`& .${ee.columnHeaders} .${ee.scrollbarFiller}`]:{backgroundColor:r},[`.${ee.scrollbarFiller}`]:{minWidth:"calc(var(--DataGrid-hasScrollY) * var(--DataGrid-scrollbarSize))",alignSelf:"stretch",[`&.${ee["scrollbarFiller--borderTop"]}`]:{borderTop:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ee["scrollbarFiller--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`&.${ee["scrollbarFiller--pinnedRight"]}`]:{backgroundColor:vt.cell.background.pinned,position:"sticky",right:0}},[`& .${ee.filler}`]:{flex:"1 0 auto"},[`& .${ee["filler--borderBottom"]}`]:{borderBottom:"1px solid var(--DataGrid-rowBorderColor)"},[`& .${ee.columnHeaders} .${ee.filler}`]:{backgroundColor:r},[`& .${ee["main--hiddenContent"]}`]:{[`& .${ee.virtualScrollerContent}`]:{position:"fixed",visibility:"hidden"},[`& .${ee["scrollbar--vertical"]}, & .${ee.pinnedRows}, & .${ee.virtualScroller} > .${ee.filler}`]:{display:"none"}}}});function kN(e,t){return`rgba(from ${e} r g b / ${t})`}function hle(e){return kN(e,1)}function Md(e,t,n){return`color-mix(in srgb,${e}, ${t} calc(${n} * 100%))`}const mle=()=>()=>{},gle=()=>!1,ble=()=>!0,yle=()=>y9.useSyncExternalStore(mle,gle,ble),PN=b.createContext(void 0);function SO(){const e=b.useContext(PN);if(e===void 0)throw new Error("MUI X: Missing context.");return e}function vle({children:e}){const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useMemo(()=>({columnsPanelTriggerRef:t,filterPanelTriggerRef:n,aiAssistantPanelTriggerRef:r}),[]);return y.jsx(PN.Provider,{value:o,children:e})}function xle(){var d;const e=rn(),t=Xe(e,Ts),n=yt(),r=Xe(e,mh),{columnsPanelTriggerRef:o,filterPanelTriggerRef:i,aiAssistantPanelTriggerRef:a}=SO(),l=e.current.unstable_applyPipeProcessors("preferencePanel",null,r.openedPanelValue??Qi.filters);let u=null;switch(r.openedPanelValue){case Qi.filters:u=i.current;break;case Qi.columns:u=o.current;break;case Qi.aiAssistant:u=a.current;break}return y.jsx(n.slots.panel,z({id:r.panelId,open:t.length>0&&r.open,"aria-labelledby":r.labelId,target:u,onClose:()=>e.current.hidePreferences()},(d=n.slotProps)==null?void 0:d.panel,{children:l}))}function wle(){var t;const e=yt();return y.jsxs(b.Fragment,{children:[y.jsx(xle,{}),e.showToolbar&&y.jsx(e.slots.toolbar,z({},(t=e.slotProps)==null?void 0:t.toolbar))]})}const Cle=["className","children","sidePanel"],Sle=(e,t)=>{const{autoHeight:n,classes:r,showCellVerticalBorder:o}=e,i={root:["root",n&&"autoHeight",`root--density${Be(t)}`,e.slots.toolbar===null&&"root--noToolbar","withBorderColor",o&&"withVerticalBorder"]};return st(i,Cn,r)},Ele=Wt(function(t,n){const r=yt(),{className:o,children:i,sidePanel:a}=t,l=tt(t,Cle),u=Qa(),d=Xe(u,Yg),f=u.current.rootElementRef,m=b.useCallback(T=>{T!==null&&u.current.publishEvent("rootMount",T)},[u]),g=Dn(f,n,m),w=r,C=Sle(w,d),S=oie();return yle()?null:y.jsxs(ple,z({className:Ve(C.root,o,S.className,a&&ee.withSidePanel),ownerState:w},l,{ref:g,children:[y.jsxs("div",{className:ee.mainContent,role:"presentation",children:[y.jsx(wle,{}),y.jsx(Gse,{children:i}),y.jsx(Vse,{})]}),a,S.tag]}))}),Tle=Su(Ele),Mle=["className"],kle=e=>{const{classes:t}=e;return st({root:["footerContainer","withBorderColor"]},Cn,t)},Ple=Bn("div",{name:"MuiDataGrid",slot:"FooterContainer"})({display:"flex",justifyContent:"space-between",alignItems:"center",minHeight:52,borderTop:"1px solid"}),Ile=Wt(function(t,n){const{className:r}=t,o=tt(t,Mle),i=yt(),a=kle(i);return y.jsx(Ple,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))}),Ale=["className"],Rle=e=>{const{classes:t}=e;return st({root:["overlay"]},Cn,t)},Ole=Bn("div",{name:"MuiDataGrid",slot:"Overlay"})({width:"100%",height:"100%",display:"flex",gap:vt.spacing(1),flexDirection:"column",alignSelf:"center",alignItems:"center",justifyContent:"center",textAlign:"center",textWrap:"balance",backgroundColor:vt.colors.background.backdrop}),yT=Wt(function(t,n){const{className:r}=t,o=tt(t,Ale),i=yt(),a=Rle(i);return y.jsx(Ole,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))});function wc(e,t,n,r={}){return typeof t=="function"?t(n,r):t?(t.props.className&&(n.className=_le(t.props.className,n.className)),(t.props.style||n.style)&&(n.style=z({},n.style,t.props.style)),(t.props.sx||n.sx)&&(n.sx=Dle(n.sx,t.props.sx)),b.cloneElement(t,n)):b.createElement(e,n)}function _le(e,t){return!e||!t?e||t:`${e} ${t}`}function Dle(e,t){return!e||!t?e||t:(Array.isArray(e)?e:[e]).concat(Array.isArray(t)?t:[t])}const IN=b.createContext(void 0);function Lle(){const e=b.useContext(IN);if(e===void 0)throw new Error("MUI X: Missing context. Toolbar subcomponents must be placed within a <Toolbar /> component.");return e}function $le(e,t){if(!e.ref.current||!t.ref.current)return 0;const n=e.ref.current.compareDocumentPosition(t.ref.current);return n?n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0:0}const jle=["render","className"],Fle=e=>{const{classes:t}=e;return st({root:["toolbar"]},Cn,t)},Nle=Bn("div",{name:"MuiDataGrid",slot:"Toolbar"})({flex:0,display:"flex",alignItems:"center",justifyContent:"end",gap:vt.spacing(.25),padding:vt.spacing(.75),minHeight:52,boxSizing:"border-box",borderBottom:`1px solid ${vt.colors.border.base}`}),zle=Wt(function(t,n){const{render:r,className:o}=t,i=tt(t,jle),a=yt(),l=Fle(a),[u,d]=b.useState(null),[f,m]=b.useState([]),g=b.useCallback(()=>f.sort($le),[f]),w=b.useCallback((P,O,j=!0)=>{var $,B;let F=P;const D=g(),_=D.length;for(let V=0;V<_;V+=1){if(F+=O,F>=_){if(!j)return-1;F=0}else if(F<0){if(!j)return-1;F=_-1}if(!(($=D[F].ref.current)!=null&&$.disabled)&&((B=D[F].ref.current)==null?void 0:B.ariaDisabled)!=="true")return F}return-1},[g]),C=b.useCallback((P,O)=>{m(j=>[...j,{id:P,ref:O}])},[]),S=b.useCallback(P=>{m(O=>O.filter(j=>j.id!==P))},[]),E=b.useCallback(P=>{var D;if(!u)return;const O=g(),j=O.findIndex(_=>_.id===u);let F=-1;if(P.key==="ArrowRight"?(P.preventDefault(),F=w(j,1)):P.key==="ArrowLeft"?(P.preventDefault(),F=w(j,-1)):P.key==="Home"?(P.preventDefault(),F=w(-1,1,!1)):P.key==="End"&&(P.preventDefault(),F=w(O.length,-1,!1)),F>=0&&F<O.length){const _=O[F];d(_.id),(D=_.ref.current)==null||D.focus()}},[g,u,w]),T=b.useCallback(P=>{u!==P&&d(P)},[u,d]),I=b.useCallback(P=>{var D;const O=g(),j=O.findIndex(_=>_.id===P),F=w(j,1);if(F>=0&&F<O.length){const _=O[F];d(_.id),(D=_.ref.current)==null||D.focus()}},[g,w]);b.useEffect(()=>{var O,j;const P=g();if(P.length>0){if(!u){d(P[0].id);return}const F=P.findIndex(D=>D.id===u);if(P[F]){if(F===-1){const D=P[F];D&&(d(D.id),(j=D.ref.current)==null||j.focus())}}else{const D=P[P.length-1];D&&(d(D.id),(O=D.ref.current)==null||O.focus())}}},[g,w]);const k=b.useMemo(()=>({focusableItemId:u,registerItem:C,unregisterItem:S,onItemKeyDown:E,onItemFocus:T,onItemDisabled:I}),[u,C,S,E,T,I]),R=wc(Nle,r,z({role:"toolbar","aria-orientation":"horizontal","aria-label":a.label||void 0,className:Ve(l.root,o)},i,{ref:n}));return y.jsx(IN.Provider,{value:k,children:R})}),Ble=["render","onKeyDown","onFocus","disabled","aria-disabled"],WS=Wt(function(t,n){var F;const{render:r,onKeyDown:o,onFocus:i,disabled:a,"aria-disabled":l}=t,u=tt(t,Ble),d=Mn(),f=yt(),m=b.useRef(null),g=Dn(m,n),{focusableItemId:w,registerItem:C,unregisterItem:S,onItemKeyDown:E,onItemFocus:T,onItemDisabled:I}=Lle(),k=D=>{E(D),o==null||o(D)},R=D=>{T(d),i==null||i(D)};b.useEffect(()=>(C(d,m),()=>S(d)),[]);const P=b.useRef(a);b.useEffect(()=>{P.current!==a&&a===!0&&I(d,a),P.current=a},[a,d,I]);const O=b.useRef(l);b.useEffect(()=>{O.current!==l&&l===!0&&I(d,!0),O.current=l},[l,d,I]);const j=wc(f.slots.baseIconButton,r,z({},(F=f.slotProps)==null?void 0:F.baseIconButton,{tabIndex:w===d?0:-1},u,{disabled:a,"aria-disabled":l,onKeyDown:k,onFocus:R,ref:g}));return y.jsx(b.Fragment,{children:j})}),Hle=e=>{const{classes:t,open:n}=e;return st({root:["menuIcon",n&&"menuOpen"],button:["menuIconButton"]},Cn,t)},Ule=b.memo(e=>{var g,w;const{colDef:t,open:n,columnMenuId:r,columnMenuButtonId:o,iconButtonRef:i}=e,a=rn(),l=yt(),u=z({},e,{classes:l.classes}),d=Hle(u),f=b.useCallback(C=>{C.preventDefault(),C.stopPropagation(),a.current.toggleColumnMenu(t.field)},[a,t.field]),m=t.headerName??t.field;return y.jsx("div",{className:d.root,children:y.jsx(l.slots.baseTooltip,z({title:a.current.getLocaleText("columnMenuLabel"),enterDelay:1e3},(g=l.slotProps)==null?void 0:g.baseTooltip,{children:y.jsx(l.slots.baseIconButton,z({ref:i,tabIndex:-1,className:d.button,"aria-label":a.current.getLocaleText("columnMenuAriaLabel")(m),size:"small",onClick:f,"aria-haspopup":"menu","aria-expanded":n,"aria-controls":n?r:void 0,id:o},(w=l.slotProps)==null?void 0:w.baseIconButton,{children:y.jsx(l.slots.columnMenuIcon,{fontSize:"inherit"})}))}))})});function Gle({columnMenuId:e,columnMenuButtonId:t,ContentComponent:n,contentComponentProps:r,field:o,open:i,target:a,onExited:l}){const u=rn(),d=u.current.getColumn(o),f=Vt(m=>{m&&(m.stopPropagation(),a!=null&&a.contains(m.target))||u.current.hideColumnMenu()});return!a||!d?null:y.jsx(aT,{position:`bottom-${d.align==="right"?"start":"end"}`,open:i,target:a,onClose:f,onExited:l,children:y.jsx(n,z({colDef:d,hideMenu:f,open:i,id:e,labelledby:t},r))})}function Vle(e){return e.scrollHeight>e.clientHeight||e.scrollWidth>e.clientWidth}function S2(e,t){return e.closest(`.${t}`)}function Mu(e){return e.replace(/["\\]/g,"\\$&")}function Wle(e,t){return e.querySelector(`[role="columnheader"][data-field="${Mu(t)}"]`)}function AN(e){return`.${ee.row}[data-id="${Mu(String(e))}"]`}function qle(e,t){return e.querySelector(AN(t))}function Yle(e,{id:t,field:n}){const r=AN(t),o=`.${ee.cell}[data-field="${Mu(n)}"]`,i=`${r} ${o}`;return e.querySelector(i)}function Jx(e){return e.target.nodeType===1&&!e.currentTarget.contains(e.target)}function Kle(e){return e.getAttribute("data-field")}function Xle(e,t){return e.querySelector(`[data-field="${Mu(t)}"]`)}function Zle(e){return e.getAttribute("data-fields").slice(2,-2).split("-|-")}function Qle(e,t){return Array.from(e.querySelectorAll(`[data-fields*="|-${Mu(t)}-|"]`)??[])}function Jle(e,t){var a;if(!S2(e,ee.root))throw new Error("MUI X: The root element is not found.");const r=e.getAttribute("aria-colindex");if(!r)return[];const o=Number(r)-1,i=[];return(a=t.virtualScrollerRef)!=null&&a.current?(_N(t).forEach(l=>{const u=l.getAttribute("data-id");if(!u)return;let d=o;const f=t.unstable_getCellColSpanInfo(u,o);f&&f.spannedByColSpan&&(d=f.leftVisibleCellIndex);const m=l.querySelector(`[data-colindex="${d}"]`);m&&i.push(m)}),i):[]}function V3(e,t){return e.rootElementRef.current.querySelector(`.${ee[t]}`)}const RN=({api:e,colIndex:t,position:n,filterFn:r})=>{if(t===null)return[];const o=[];return _N(e).forEach(i=>{i.getAttribute("data-id")&&i.querySelectorAll(`.${ee[n==="left"?"cell--pinnedLeft":"cell--pinnedRight"]}`).forEach(l=>{const u=Z0(l);u!==null&&r(u)&&o.push(l)})}),o};function ece(e,t,n){const r=Z0(t);return RN({api:e,colIndex:r,position:n?"right":"left",filterFn:o=>n?o<r:o>r})}function tce(e,t,n){const r=Z0(t);return RN({api:e,colIndex:r,position:n?"left":"right",filterFn:o=>n?o>r:o<r})}const ON=({api:e,colIndex:t,position:n,filterFn:r})=>{var i;if(!((i=e.columnHeadersContainerRef)!=null&&i.current))return[];if(t===null)return[];const o=[];return e.columnHeadersContainerRef.current.querySelectorAll(`.${ee[n==="left"?"columnHeader--pinnedLeft":"columnHeader--pinnedRight"]}`).forEach(a=>{const l=Z0(a);l!==null&&r(l,a)&&o.push(a)}),o};function nce(e,t,n){const r=Z0(t);return ON({api:e,position:n?"right":"left",colIndex:r,filterFn:o=>n?o<r:o>r})}function rce(e,t,n){const r=Z0(t);return ON({api:e,position:n?"left":"right",colIndex:r,filterFn:(o,i)=>i.classList.contains(ee["columnHeader--last"])?!1:n?o>r:o<r})}function oce(e,t){return e.columnHeadersContainerRef.current.querySelector(`:scope > div > [data-field="${Mu(t)}"][role="columnheader"]`)}function ice(e,t){const n=e.virtualScrollerRef.current;return Array.from(n.querySelectorAll(`:scope > div > div > div > [data-field="${Mu(t)}"][role="gridcell"]`))}function _N(e){return e.virtualScrollerRef.current.querySelectorAll(`:scope > div > div > .${ee.row}`)}function Z0(e){const t=e.getAttribute("aria-colindex");return t?Number(t)-1:null}const ace=["className","aria-label"],sce=e=>{const{classes:t}=e;return st({root:["columnHeaderTitle"]},Cn,t)},lce=Bn("div",{name:"MuiDataGrid",slot:"ColumnHeaderTitle"})({textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",fontWeight:"var(--unstable_DataGrid-headWeight)",lineHeight:"normal"}),cce=Wt(function(t,n){const{className:r}=t,o=tt(t,ace),i=yt(),a=sce(i);return y.jsx(lce,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))});function uce(e){var u;const{label:t,description:n}=e,r=yt(),o=b.useRef(null),[i,a]=b.useState(""),l=b.useCallback(()=>{if(!n&&(o!=null&&o.current)){const d=Vle(o.current);a(d?t:"")}},[n,t]);return y.jsx(r.slots.baseTooltip,z({title:n||i},(u=r.slotProps)==null?void 0:u.baseTooltip,{children:y.jsx(cce,{onMouseOver:l,ref:o,children:t})}))}const dce=["resizable","resizing","height","side"];var EO=function(e){return e.Left="left",e.Right="right",e}(EO||{});const fce=e=>{const{resizable:t,resizing:n,classes:r,side:o}=e,i={root:["columnSeparator",t&&"columnSeparator--resizable",n&&"columnSeparator--resizing",o&&`columnSeparator--side${Be(o)}`],icon:["iconSeparator"]};return st(i,Cn,r)};function pce(e){const{height:t,side:n=EO.Right}=e,r=tt(e,dce),o=yt(),i=z({},e,{side:n,classes:o.classes}),a=fce(i),l=b.useCallback(u=>{u.preventDefault(),u.stopPropagation()},[]);return y.jsx("div",z({className:a.root,style:{minHeight:t}},r,{onClick:l,children:y.jsx(o.slots.columnResizeIcon,{className:a.icon})}))}const hce=b.memo(pce),mce=["classes","columnMenuOpen","colIndex","height","isResizing","sortDirection","hasFocus","tabIndex","separatorSide","isDraggable","headerComponent","description","elementId","width","columnMenuIconButton","columnMenu","columnTitleIconButtons","headerClassName","label","resizable","draggableContainerProps","columnHeaderSeparatorProps","style"],DN=Wt(function(t,n){const{classes:r,colIndex:o,height:i,isResizing:a,sortDirection:l,hasFocus:u,tabIndex:d,separatorSide:f,isDraggable:m,headerComponent:g,description:w,width:C,columnMenuIconButton:S=null,columnMenu:E=null,columnTitleIconButtons:T=null,headerClassName:I,label:k,resizable:R,draggableContainerProps:P,columnHeaderSeparatorProps:O,style:j}=t,F=tt(t,mce),D=Qa(),_=yt(),$=b.useRef(null),B=Dn($,n);let V="none";return l!=null&&(V=l==="asc"?"ascending":"descending"),b.useLayoutEffect(()=>{var G;const q=D.current.state.columnMenu;if(u&&!q.open){const H=$.current.querySelector('[tabindex="0"]')||$.current;H==null||H.focus(),(G=D.current.columnHeadersContainerRef)!=null&&G.current&&(D.current.columnHeadersContainerRef.current.scrollLeft=0)}},[D,u]),y.jsxs("div",z({className:Ve(r.root,I),style:z({},j,{width:C}),role:"columnheader",tabIndex:d,"aria-colindex":o+1,"aria-sort":V},F,{ref:B,children:[y.jsxs("div",z({className:r.draggableContainer,draggable:m,role:"presentation"},P,{children:[y.jsxs("div",{className:r.titleContainer,role:"presentation",children:[y.jsx("div",{className:r.titleContainerContent,children:g!==void 0?g:y.jsx(uce,{label:k,description:w,columnWidth:C})}),T]}),S]})),y.jsx(hce,z({resizable:!_.disableColumnResize&&!!R,resizing:a,height:i,side:f},O)),E]}))}),gce=e=>{const{colDef:t,classes:n,isDragging:r,sortDirection:o,showRightBorder:i,showLeftBorder:a,filterItemsCounter:l,pinnedPosition:u,isLastUnpinned:d,isSiblingFocused:f}=e,m=o!=null,g=l!=null&&l>0,w=t.type==="number",C={root:["columnHeader",t.headerAlign==="left"&&"columnHeader--alignLeft",t.headerAlign==="center"&&"columnHeader--alignCenter",t.headerAlign==="right"&&"columnHeader--alignRight",t.sortable&&"columnHeader--sortable",r&&"columnHeader--moving",m&&"columnHeader--sorted",g&&"columnHeader--filtered",w&&"columnHeader--numeric","withBorderColor",i&&"columnHeader--withRightBorder",a&&"columnHeader--withLeftBorder",u===Tn.LEFT&&"columnHeader--pinnedLeft",u===Tn.RIGHT&&"columnHeader--pinnedRight",d&&"columnHeader--lastUnpinned",f&&"columnHeader--siblingFocused"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer"],titleContainerContent:["columnHeaderTitleContainerContent"]};return st(C,Cn,n)};function bce(e){var Ce,ie,le;const{colDef:t,columnMenuOpen:n,colIndex:r,headerHeight:o,isResizing:i,isLast:a,sortDirection:l,sortIndex:u,filterItemsCounter:d,hasFocus:f,tabIndex:m,disableReorder:g,separatorSide:w,showLeftBorder:C,showRightBorder:S,pinnedPosition:E,pinnedOffset:T}=e,I=Qa(),k=yt(),R=Lo(),P=b.useRef(null),O=Mn(),j=Mn(),F=b.useRef(null),[D,_]=b.useState(n),$=b.useMemo(()=>!k.disableColumnReorder&&!g&&!t.disableReorder,[k.disableColumnReorder,g,t.disableReorder]);let B;t.renderHeader&&(B=t.renderHeader(I.current.getColumnHeaderParams(t.field)));const V=z({},e,{classes:k.classes,showRightBorder:S,showLeftBorder:C}),q=gce(V),G=b.useCallback(ve=>ue=>{Jx(ue)||I.current.publishEvent(ve,I.current.getColumnHeaderParams(t.field),ue)},[I,t.field]),N=b.useMemo(()=>({onClick:G("columnHeaderClick"),onContextMenu:G("columnHeaderContextMenu"),onDoubleClick:G("columnHeaderDoubleClick"),onMouseOver:G("columnHeaderOver"),onMouseOut:G("columnHeaderOut"),onMouseEnter:G("columnHeaderEnter"),onMouseLeave:G("columnHeaderLeave"),onKeyDown:G("columnHeaderKeyDown"),onFocus:G("columnHeaderFocus"),onBlur:G("columnHeaderBlur")}),[G]),H=b.useMemo(()=>$?{onDragStart:G("columnHeaderDragStart"),onDragEnter:G("columnHeaderDragEnter"),onDragOver:G("columnHeaderDragOver"),onDragEndCapture:G("columnHeaderDragEnd")}:{},[$,G]),Y=b.useMemo(()=>({onMouseDown:G("columnSeparatorMouseDown"),onDoubleClick:G("columnSeparatorDoubleClick")}),[G]);b.useEffect(()=>{D||_(n)},[D,n]);const Q=b.useCallback(()=>{_(!1)},[]),W=!k.disableColumnMenu&&!t.disableColumnMenu&&y.jsx(Ule,{colDef:t,columnMenuId:O,columnMenuButtonId:j,open:D,iconButtonRef:F}),K=y.jsx(Gle,{columnMenuId:O,columnMenuButtonId:j,field:t.field,open:n,target:F.current,ContentComponent:k.slots.columnMenu,contentComponentProps:(Ce=k.slotProps)==null?void 0:Ce.columnMenu,onExited:Q}),J=t.sortingOrder??k.sortingOrder,ae=(t.sortable||l!=null)&&!t.hideSortIcons&&!k.disableColumnSorting,ce=y.jsxs(b.Fragment,{children:[!k.disableColumnFilter&&y.jsx(k.slots.columnHeaderFilterIconButton,z({field:t.field,counter:d},(ie=k.slotProps)==null?void 0:ie.columnHeaderFilterIconButton)),ae&&y.jsx(k.slots.columnHeaderSortIcon,z({field:t.field,direction:l,index:u,sortingOrder:J,disabled:!t.sortable},(le=k.slotProps)==null?void 0:le.columnHeaderSortIcon))]});b.useLayoutEffect(()=>{var ue;const ve=I.current.state.columnMenu;if(f&&!ve.open){const be=P.current.querySelector('[tabindex="0"]')||P.current;be==null||be.focus(),(ue=I.current.columnHeadersContainerRef)!=null&&ue.current&&(I.current.columnHeadersContainerRef.current.scrollLeft=0)}},[I,f]);const de=typeof t.headerClassName=="function"?t.headerClassName({field:t.field,colDef:t}):t.headerClassName,re=t.headerName??t.field,ke=b.useMemo(()=>bT(z({},e.style),R,E,T),[E,T,e.style,R]);return y.jsx(DN,z({ref:P,classes:q,columnMenuOpen:n,colIndex:r,height:o,isResizing:i,sortDirection:l,hasFocus:f,tabIndex:m,separatorSide:w,isDraggable:$,headerComponent:B,description:t.description,elementId:t.field,width:t.computedWidth,columnMenuIconButton:W,columnTitleIconButtons:ce,headerClassName:Ve(de,a&&ee["columnHeader--last"]),label:re,resizable:!k.disableColumnResize&&!!t.resizable,"data-field":t.field,columnMenu:K,draggableContainerProps:H,columnHeaderSeparatorProps:Y,style:ke},N))}const yce=Su(bce),vce=["className"],xce=e=>{const{classes:t}=e;return st({root:["iconButtonContainer"]},Cn,t)},wce=Bn("div",{name:"MuiDataGrid",slot:"IconButtonContainer"})(()=>({display:"flex",visibility:"hidden",width:0})),LN=Wt(function(t,n){const{className:r}=t,o=tt(t,vce),i=yt(),a=xce(i);return y.jsx(wce,z({className:Ve(a.root,r),ownerState:i},o,{ref:n}))}),Cce=["sortingOrder"],Sce=b.memo(function(t){const{sortingOrder:n}=t,r=tt(t,Cce),o=yt(),[i]=n,a=i==="asc"?o.slots.columnSortedAscendingIcon:o.slots.columnSortedDescendingIcon;return a?y.jsx(a,z({},r)):null}),Ece=["direction","index","sortingOrder","disabled","className"],Tce=e=>{const{classes:t}=e;return st({root:["sortButton"],icon:["sortIcon"]},Cn,t)},Mce=Bn(Eu,{name:"MuiDataGrid",slot:"SortButton"})({transition:vt.transition(["opacity"],{duration:vt.transitions.duration.short,easing:vt.transitions.easing.easeInOut})});function kce(e,t,n,r){let o;const i={};return t==="asc"?o=e.columnSortedAscendingIcon:t==="desc"?o=e.columnSortedDescendingIcon:(o=Sce,i.sortingOrder=r),o?y.jsx(o,z({fontSize:"small",className:n},i)):null}function Pce(e){var w;const{direction:t,index:n,sortingOrder:r,disabled:o,className:i}=e,a=tt(e,Ece),l=rn(),u=yt(),d=z({},e,{classes:u.classes}),f=Tce(d),m=kce(u.slots,t,f.icon,r);if(!m)return null;const g=y.jsx(Mce,z({as:u.slots.baseIconButton,ownerState:d,"aria-label":l.current.getLocaleText("columnHeaderSortIconLabel"),title:l.current.getLocaleText("columnHeaderSortIconLabel"),size:"small",disabled:o,className:Ve(f.root,i)},(w=u.slotProps)==null?void 0:w.baseIconButton,a,{children:m}));return y.jsxs(b.Fragment,{children:[n!=null&&y.jsx(u.slots.baseBadge,{badgeContent:n,color:"default",overlap:"circular",children:g}),n==null&&g]})}function Ice(e){return y.jsx(LN,{children:y.jsx(Pce,z({},e,{tabIndex:-1}))})}const Ace=b.memo(Ice),Rce=e=>{const{classes:t}=e;return st({icon:["filterIcon"]},Cn,t)};function Oce(e){return e.counter?y.jsx(_ce,z({},e)):null}function _ce(e){var w,C;const{counter:t,field:n,onClick:r}=e,o=rn(),i=yt(),a=z({},e,{classes:i.classes}),l=Rce(a),u=Mn(),d=Xe(o,_se,u),f=Mn(),m=b.useCallback(S=>{S.preventDefault(),S.stopPropagation();const{open:E,openedPanelValue:T}=mh(o);E&&T===Qi.filters?o.current.hideFilterPanel():o.current.showFilterPanel(void 0,f,u),r&&r(o.current.getColumnHeaderParams(n),S)},[o,n,r,f,u]);if(!t)return null;const g=y.jsx(i.slots.baseIconButton,z({id:u,onClick:m,"aria-label":o.current.getLocaleText("columnHeaderFiltersLabel"),size:"small",tabIndex:-1,"aria-haspopup":"menu","aria-expanded":d,"aria-controls":d?f:void 0},(w=i.slotProps)==null?void 0:w.baseIconButton,{children:y.jsx(i.slots.columnFilteredIcon,{className:l.icon,fontSize:"small"})}));return y.jsx(i.slots.baseTooltip,z({title:o.current.getLocaleText("columnHeaderFiltersTooltipActive")(t),enterDelay:1e3},(C=i.slotProps)==null?void 0:C.baseTooltip,{children:y.jsxs(LN,{children:[t>1&&y.jsx(i.slots.baseBadge,{badgeContent:t,color:"default",children:g}),t===1&&g]})}))}function $N(e){return e.key.length===1&&!e.ctrlKey&&!e.metaKey}const E2=e=>e.indexOf("Arrow")===0||e.indexOf("Page")===0||e===" "||e==="Home"||e==="End",Dce=e=>!!e.key,jN=e=>e==="Tab"||e==="Escape";function FN(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="V"&&!e.shiftKey&&!e.altKey}function Lce(e){return(e.ctrlKey||e.metaKey)&&String.fromCharCode(e.keyCode)==="C"&&!e.shiftKey&&!e.altKey}const $ce=["hideMenu","colDef","id","labelledby","className","children","open"],jce=Te(Eu)(()=>({minWidth:248})),Fce=Wt(function(t,n){const{hideMenu:r,id:o,labelledby:i,className:a,children:l,open:u}=t,d=tt(t,$ce),f=yt(),m=b.useCallback(g=>{g.key==="Tab"&&g.preventDefault(),jN(g.key)&&r(g)},[r]);return y.jsx(jce,z({as:f.slots.baseMenuList,id:o,className:Ve(ee.menuList,a),"aria-labelledby":i,onKeyDown:m,autoFocus:u},d,{ref:n,children:l}))}),Nce=["displayOrder"],zce=e=>{const t=Qa(),n=yt(),{defaultSlots:r,defaultSlotProps:o,slots:i={},slotProps:a={},hideMenu:l,colDef:u,addDividers:d=!0}=e,f=b.useMemo(()=>z({},r,i),[r,i]),m=b.useMemo(()=>{if(!a||Object.keys(a).length===0)return o;const C=z({},a);return Object.entries(o).forEach(([S,E])=>{C[S]=z({},E,a[S]||{})}),C},[o,a]),g=t.current.unstable_applyPipeProcessors("columnMenu",[],e.colDef),w=b.useMemo(()=>{const C=Object.keys(r);return Object.keys(i).filter(S=>!C.includes(S))},[i,r]);return b.useMemo(()=>{const E=Array.from(new Set([...g,...w])).filter(T=>f[T]!=null).sort((T,I)=>{const k=m[T],R=m[I],P=Number.isFinite(k==null?void 0:k.displayOrder)?k.displayOrder:100,O=Number.isFinite(R==null?void 0:R.displayOrder)?R.displayOrder:100;return P-O});return E.reduce((T,I,k)=>{let R={colDef:u,onClick:l};const P=m[I];if(P){const O=tt(P,Nce);R=z({},R,O)}return d&&k!==E.length-1?[...T,[f[I],R],[n.slots.baseDivider,{}]]:[...T,[f[I],R]]},[])},[d,u,g,l,f,m,w,n.slots.baseDivider])};function Bce(e){const{colDef:t,onClick:n}=e,r=rn(),o=yt(),l=ro(r).filter(d=>d.disableColumnMenu!==!0).length===1,u=b.useCallback(d=>{l||(r.current.setColumnVisibility(t.field,!1),n(d))},[r,t.field,n,l]);return o.disableColumnSelector||t.hideable===!1?null:y.jsx(o.slots.baseMenuItem,{onClick:u,disabled:l,iconStart:y.jsx(o.slots.columnMenuHideIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuHideColumn")})}function Hce(e){const{onClick:t}=e,n=rn(),r=yt(),o=b.useCallback(i=>{t(i),n.current.showPreferences(Qi.columns)},[n,t]);return r.disableColumnSelector?null:y.jsx(r.slots.baseMenuItem,{onClick:o,iconStart:y.jsx(r.slots.columnMenuManageColumnsIcon,{fontSize:"small"}),children:n.current.getLocaleText("columnMenuManageColumns")})}function Uce(e){return y.jsxs(b.Fragment,{children:[y.jsx(Bce,z({},e)),y.jsx(Hce,z({},e))]})}function Gce(e){const{colDef:t,onClick:n}=e,r=rn(),o=yt(),i=b.useCallback(a=>{n(a),r.current.showFilterPanel(t.field)},[r,t.field,n]);return o.disableColumnFilter||!t.filterable?null:y.jsx(o.slots.baseMenuItem,{onClick:i,iconStart:y.jsx(o.slots.columnMenuFilterIcon,{fontSize:"small"}),children:r.current.getLocaleText("columnMenuFilter")})}function Vce(e){const{colDef:t,onClick:n}=e,r=rn(),o=Xe(r,ms),i=yt(),a=b.useMemo(()=>{if(!t)return null;const f=o.find(m=>m.field===t.field);return f==null?void 0:f.sort},[t,o]),l=t.sortingOrder??i.sortingOrder,u=b.useCallback(f=>{n(f);const m=f.currentTarget.getAttribute("data-value")||null;r.current.sortColumn(t.field,m===a?null:m)},[r,t,n,a]);if(i.disableColumnSorting||!t||!t.sortable||!l.some(f=>!!f))return null;const d=f=>{const m=r.current.getLocaleText(f);return typeof m=="function"?m(t):m};return y.jsxs(b.Fragment,{children:[l.includes("asc")&&a!=="asc"?y.jsx(i.slots.baseMenuItem,{onClick:u,"data-value":"asc",iconStart:y.jsx(i.slots.columnMenuSortAscendingIcon,{fontSize:"small"}),children:d("columnMenuSortAsc")}):null,l.includes("desc")&&a!=="desc"?y.jsx(i.slots.baseMenuItem,{onClick:u,"data-value":"desc",iconStart:y.jsx(i.slots.columnMenuSortDescendingIcon,{fontSize:"small"}),children:d("columnMenuSortDesc")}):null,l.includes(null)&&a!=null?y.jsx(i.slots.baseMenuItem,{onClick:u,iconStart:i.slots.columnMenuUnsortIcon?y.jsx(i.slots.columnMenuUnsortIcon,{fontSize:"small"}):y.jsx("span",{}),children:r.current.getLocaleText("columnMenuUnsort")}):null]})}const Wce=["defaultSlots","defaultSlotProps","slots","slotProps"],qce={columnMenuSortItem:Vce,columnMenuFilterItem:Gce,columnMenuColumnsItem:Uce},Yce={columnMenuSortItem:{displayOrder:10},columnMenuFilterItem:{displayOrder:20},columnMenuColumnsItem:{displayOrder:30}},Kce=Wt(function(t,n){const{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}=t,l=tt(t,Wce),u=zce(z({},l,{defaultSlots:r,defaultSlotProps:o,slots:i,slotProps:a}));return y.jsx(Fce,z({},l,{ref:n,children:u.map(([d,f],m)=>y.jsx(d,z({},f),m))}))}),Xce=Wt(function(t,n){return y.jsx(Kce,z({},t,{ref:n,defaultSlots:qce,defaultSlotProps:Yce}))}),Zce=["className"],Qce=e=>{const{classes:t}=e;return st({root:["panelWrapper"]},Cn,t)},Jce=Te("div",{name:"MuiDataGrid",slot:"PanelWrapper"})({display:"flex",flexDirection:"column",flex:1,"&:focus":{outline:0}}),NN=Wt(function(t,n){const{className:r}=t,o=tt(t,Zce),i=yt(),a=Qce(i);return y.jsx(Jce,z({tabIndex:-1,className:Ve(a.root,r),ownerState:i},o,{ref:n}))});function eue(e){var n;const t=yt();return y.jsx(NN,z({},e,{children:y.jsx(t.slots.columnsManagement,z({},(n=t.slotProps)==null?void 0:n.columnsManagement))}))}const tue=["children","className","classes","onClose"],nue=Pt("MuiDataGrid",["panel","paper"]),rue=Te(Eu,{name:"MuiDataGrid",slot:"panel"})({zIndex:vt.zIndex.panel}),oue=Te("div",{name:"MuiDataGrid",slot:"panelContent"})({backgroundColor:vt.colors.background.overlay,borderRadius:vt.radius.base,boxShadow:vt.shadows.overlay,display:"flex",maxWidth:`calc(100vw - ${vt.spacing(2)})`,overflow:"auto"}),iue=Wt((e,t)=>{var I;const{children:n,className:r,onClose:o}=e,i=tt(e,tue),a=rn(),l=yt(),u=nue,[d,f]=b.useState(!1),m=z9(),g=Vt(()=>f(!0)),w=Vt(()=>f(!1)),C=Vt(()=>{o==null||o()}),S=Vt(k=>{k.key==="Escape"&&(o==null||o())}),[E,T]=b.useState(null);return b.useEffect(()=>{var R,P;const k=(P=(R=a.current.rootElementRef)==null?void 0:R.current)==null?void 0:P.querySelector('[data-id="gridPanelAnchor"]');k&&T(k)},[a]),E?y.jsx(rue,z({as:l.slots.basePopper,ownerState:l,placement:"bottom-end",className:Ve(u.panel,r,m),flip:!0,onDidShow:g,onDidHide:w,onClickAway:C,clickAwayMouseEvent:"onPointerUp",clickAwayTouchEvent:!1,focusTrap:!0},i,(I=l.slotProps)==null?void 0:I.basePopper,{target:e.target??E,ref:t,children:y.jsx(oue,{className:u.paper,ownerState:l,onKeyDown:S,children:d&&n})})):null}),aue=["className"],sue=e=>{const{classes:t}=e;return st({root:["panelContent"]},Cn,t)},lue=Bn("div",{name:"MuiDataGrid",slot:"PanelContent"})({display:"flex",flexDirection:"column",overflow:"auto",flex:"1 1",maxHeight:400,padding:vt.spacing(2.5,1.5,2,1),gap:vt.spacing(2.5)});function cue(e){const{className:t}=e,n=tt(e,aue),r=yt(),o=sue(r);return y.jsx(lue,z({className:Ve(o.root,t),ownerState:r},n))}const uue=["className"],due=e=>{const{classes:t}=e;return st({root:["panelFooter"]},Cn,t)},fue=Te("div",{name:"MuiDataGrid",slot:"PanelFooter"})({padding:vt.spacing(1),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${vt.colors.border.base}`});function pue(e){const{className:t}=e,n=tt(e,uue),r=yt(),o=due(r);return y.jsx(fue,z({className:Ve(o.root,t),ownerState:r},n))}const hue=["item","hasMultipleFilters","deleteFilter","applyFilterChanges","showMultiFilterOperators","disableMultiFilterOperator","applyMultiFilterOperatorChanges","focusElementRef","logicOperators","columnsSort","filterColumns","deleteIconProps","logicOperatorInputProps","operatorInputProps","columnInputProps","valueInputProps","readOnly","children"],mue=["InputComponentProps"],gue=e=>{const{classes:t}=e;return st({root:["filterForm"],deleteIcon:["filterFormDeleteIcon"],logicOperatorInput:["filterFormLogicOperatorInput"],columnInput:["filterFormColumnInput"],operatorInput:["filterFormOperatorInput"],valueInput:["filterFormValueInput"]},Cn,t)},bue=Te("div",{name:"MuiDataGrid",slot:"FilterForm"})({display:"flex",gap:vt.spacing(1.5)}),yue=Te("div",{name:"MuiDataGrid",slot:"FilterFormDeleteIcon"})({flexShrink:0,display:"flex",justifyContent:"center",alignItems:"center"}),vue=Te("div",{name:"MuiDataGrid",slot:"FilterFormLogicOperatorInput"})({minWidth:75,justifyContent:"end"}),xue=Te("div",{name:"MuiDataGrid",slot:"FilterFormColumnInput"})({width:150}),wue=Te("div",{name:"MuiDataGrid",slot:"FilterFormOperatorInput"})({width:150}),Cue=Te("div",{name:"MuiDataGrid",slot:"FilterFormValueInput"})({width:190}),Sue=e=>{switch(e){case Xi.And:return"filterPanelOperatorAnd";case Xi.Or:return"filterPanelOperatorOr";default:throw new Error("MUI X: Invalid `logicOperator` property in the `GridFilterPanel`.")}},av=e=>e.headerName||e.field,W3=new Intl.Collator,q3=Wt(function(t,n){var Fe,Ze,We,_e,ft,nt,dt;const{item:r,hasMultipleFilters:o,deleteFilter:i,applyFilterChanges:a,showMultiFilterOperators:l,disableMultiFilterOperator:u,applyMultiFilterOperatorChanges:d,focusElementRef:f,logicOperators:m=[Xi.And,Xi.Or],columnsSort:g,filterColumns:w,deleteIconProps:C={},logicOperatorInputProps:S={},operatorInputProps:E={},columnInputProps:T={},valueInputProps:I={},readOnly:k}=t,R=tt(t,hue),P=rn(),O=Xe(P,Tu),j=Xe(P,$9),F=Xe(P,No),D=Mn(),_=Mn(),$=Mn(),B=Mn(),V=yt(),q=gue(V),G=b.useRef(null),N=b.useRef(null),H=F.logicOperator??Xi.And,Y=o&&m.length>0,W=(((Fe=V.slotProps)==null?void 0:Fe.baseSelect)||{}).native??!1,K=((Ze=V.slotProps)==null?void 0:Ze.baseSelectOption)||{},{InputComponentProps:J}=I,ae=tt(I,mue),ce=Xe(P,hh),de=Xe(P,CN),{filteredColumns:re,selectedField:ke}=b.useMemo(()=>{let se=r.field;const De=O[r.field].filterable===!1?O[r.field]:null;if(De)return{filteredColumns:[De],selectedField:se};if(ce)return{filteredColumns:j.filter(Pe=>de.get(Pe.field)!==void 0),selectedField:se};if(w===void 0||typeof w!="function")return{filteredColumns:j,selectedField:se};const ye=w({field:r.field,columns:j,currentFilters:(F==null?void 0:F.items)||[]});return{filteredColumns:j.filter(Pe=>{const qe=ye.includes(Pe.field);return Pe.field===r.field&&!qe&&(se=void 0),qe}),selectedField:se}},[r.field,O,ce,w,j,F==null?void 0:F.items,de]),Ce=b.useMemo(()=>{switch(g){case"asc":return re.sort((se,De)=>W3.compare(av(se),av(De)));case"desc":return re.sort((se,De)=>-W3.compare(av(se),av(De)));default:return re}},[re,g]),ie=r.field?P.current.getColumn(r.field):null,le=b.useMemo(()=>{var se;return!r.operator||!ie?null:(se=ie.filterOperators)==null?void 0:se.find(De=>De.value===r.operator)},[r,ie]),ve=b.useCallback(se=>{const De=se.target.value,ye=P.current.getColumn(De);if(ye.field===ie.field)return;const Pe=ye.filterOperators.find(it=>it.value===r.operator)||ye.filterOperators[0];let Ke=!Pe.InputComponent||Pe.InputComponent!==(le==null?void 0:le.InputComponent)||ye.type!==ie.type?void 0:r.value;if(ye.type==="singleSelect"&&Ke!==void 0){const it=ye,ot=ph(it);Array.isArray(Ke)?Ke=Ke.filter(gt=>w2(gt,ot,it==null?void 0:it.getOptionValue)!==void 0):w2(r.value,ot,it==null?void 0:it.getOptionValue)===void 0&&(Ke=void 0)}a(z({},r,{field:De,operator:Pe.value,value:Ke}))},[P,a,r,ie,le]),ue=b.useCallback(se=>{const De=se.target.value,ye=ie==null?void 0:ie.filterOperators.find(qe=>qe.value===De),Pe=!(ye!=null&&ye.InputComponent)||(ye==null?void 0:ye.InputComponent)!==(le==null?void 0:le.InputComponent);a(z({},r,{operator:De,value:Pe?void 0:r.value}))},[a,r,ie,le]),me=b.useCallback(se=>{const De=se.target.value===Xi.And.toString()?Xi.And:Xi.Or;d(De)},[d]),be=()=>{i(r)};return b.useImperativeHandle(f,()=>({focus:()=>{var se;le!=null&&le.InputComponent?(se=G==null?void 0:G.current)==null||se.focus():N.current.focus()}}),[le]),y.jsxs(bue,z({className:q.root,"data-id":r.id,ownerState:V},R,{ref:n,children:[y.jsx(yue,z({},C,{className:Ve(q.deleteIcon,C.className),ownerState:V,children:y.jsx(V.slots.baseIconButton,z({"aria-label":P.current.getLocaleText("filterPanelDeleteIconLabel"),title:P.current.getLocaleText("filterPanelDeleteIconLabel"),onClick:be,size:"small",disabled:k},(We=V.slotProps)==null?void 0:We.baseIconButton,{children:y.jsx(V.slots.filterPanelDeleteIcon,{fontSize:"small"})}))})),y.jsx(vue,z({as:V.slots.baseSelect,sx:[Y?{display:"flex"}:{display:"none"},l?{visibility:"visible"}:{visibility:"hidden"},S.sx],className:Ve(q.logicOperatorInput,S.className),ownerState:V},S,{size:"small",slotProps:{htmlInput:{"aria-label":P.current.getLocaleText("filterPanelLogicOperator")}},value:H??"",onChange:me,disabled:!!u||m.length===1,native:W},(_e=V.slotProps)==null?void 0:_e.baseSelect,{children:m.map(se=>b.createElement(V.slots.baseSelectOption,z({},K,{native:W,key:se.toString(),value:se.toString()}),P.current.getLocaleText(Sue(se))))})),y.jsx(xue,z({as:V.slots.baseSelect},T,{className:Ve(q.columnInput,T.className),ownerState:V,size:"small",labelId:_,id:D,label:P.current.getLocaleText("filterPanelColumns"),value:ke??"",onChange:ve,native:W,disabled:k},(ft=V.slotProps)==null?void 0:ft.baseSelect,{children:Ce.map(se=>b.createElement(V.slots.baseSelectOption,z({},K,{native:W,key:se.field,value:se.field}),av(se)))})),y.jsx(wue,z({as:V.slots.baseSelect,size:"small"},E,{className:Ve(q.operatorInput,E.className),ownerState:V,labelId:B,label:P.current.getLocaleText("filterPanelOperator"),id:$,value:r.operator,onChange:ue,native:W,inputRef:N,disabled:k},(nt=V.slotProps)==null?void 0:nt.baseSelect,{children:(dt=ie==null?void 0:ie.filterOperators)==null?void 0:dt.map(se=>b.createElement(V.slots.baseSelectOption,z({},K,{native:W,key:se.value,value:se.value}),se.label||P.current.getLocaleText(`filterOperator${Be(se.value)}`)))})),y.jsx(Cue,z({},ae,{className:Ve(q.valueInput,ae.className),ownerState:V,children:le!=null&&le.InputComponent?y.jsx(le.InputComponent,z({apiRef:P,item:r,applyValue:a,focusElementRef:G,disabled:k,slotProps:{root:{size:"small"}}},le.InputComponentProps,J),r.field):null}))]}))}),Eue=["logicOperators","columnsSort","filterFormProps","getColumnForNewFilter","children","disableAddFilterButton","disableRemoveAllButton"],Y3=e=>({field:e.field,operator:e.filterOperators[0].value,id:Math.round(Math.random()*1e5)}),Tue=Wt(function(t,n){var B,V;const r=rn(),o=yt(),i=Xe(r,No),a=Xe(r,$9),l=Xe(r,qoe),u=b.useRef(null),d=b.useRef(null),{logicOperators:f=[Xi.And,Xi.Or],columnsSort:m,filterFormProps:g,getColumnForNewFilter:w,disableAddFilterButton:C=!1,disableRemoveAllButton:S=!1}=t,E=tt(t,Eue),T=r.current.upsertFilterItem,I=b.useCallback(q=>{r.current.setFilterLogicOperator(q)},[r]),k=b.useCallback(()=>{let q;if(w&&typeof w=="function"){const G=w({currentFilters:(i==null?void 0:i.items)||[],columns:a});if(G===null)return null;q=a.find(({field:N})=>N===G)}else q=a.find(G=>{var N;return(N=G.filterOperators)==null?void 0:N.length});return q?Y3(q):null},[i==null?void 0:i.items,a,w]),R=b.useCallback(()=>{if(w===void 0||typeof w!="function")return k();const q=i.items.length?i.items:[k()].filter(Boolean),G=w({currentFilters:q,columns:a});if(G===null)return null;const N=a.find(({field:H})=>H===G);return N?Y3(N):null},[i.items,a,w,k]),P=b.useMemo(()=>i.items.length?i.items:(d.current||(d.current=k()),d.current?[d.current]:[]),[i.items,k]),O=P.length>1,{readOnlyFilters:j,validFilters:F}=b.useMemo(()=>P.reduce((q,G)=>(l[G.field]?q.validFilters.push(G):q.readOnlyFilters.push(G),q),{readOnlyFilters:[],validFilters:[]}),[P,l]),D=b.useCallback(()=>{const q=R();q&&r.current.upsertFilterItems([...P,q])},[r,R,P]),_=b.useCallback(q=>{const G=F.length===1;r.current.deleteFilterItem(q),G&&r.current.hideFilterPanel()},[r,F.length]),$=b.useCallback(()=>F.length===1&&F[0].value===void 0?(r.current.deleteFilterItem(F[0]),r.current.hideFilterPanel()):r.current.setFilterModel(z({},i,{items:j}),"removeAllFilterItems"),[r,j,i,F]);return b.useEffect(()=>{f.length>0&&i.logicOperator&&!f.includes(i.logicOperator)&&I(f[0])},[f,I,i.logicOperator]),b.useEffect(()=>{F.length>0&&u.current.focus()},[F.length]),y.jsxs(NN,z({},E,{ref:n,children:[y.jsxs(cue,{children:[j.map((q,G)=>y.jsx(q3,z({item:q,applyFilterChanges:T,deleteFilter:_,hasMultipleFilters:O,showMultiFilterOperators:G>0,disableMultiFilterOperator:G!==1,applyMultiFilterOperatorChanges:I,focusElementRef:null,readOnly:!0,logicOperators:f,columnsSort:m},g),q.id==null?G:q.id)),F.map((q,G)=>y.jsx(q3,z({item:q,applyFilterChanges:T,deleteFilter:_,hasMultipleFilters:O,showMultiFilterOperators:j.length+G>0,disableMultiFilterOperator:j.length+G!==1,applyMultiFilterOperatorChanges:I,focusElementRef:G===F.length-1?u:null,logicOperators:f,columnsSort:m},g),q.id==null?G+j.length:q.id))]}),!o.disableMultipleColumnsFiltering&&!(C&&S)?y.jsxs(pue,{children:[C?y.jsx("span",{}):y.jsx(o.slots.baseButton,z({onClick:D,startIcon:y.jsx(o.slots.filterPanelAddIcon,{})},(B=o.slotProps)==null?void 0:B.baseButton,{children:r.current.getLocaleText("filterPanelAddFilter")})),!S&&F.length>0?y.jsx(o.slots.baseButton,z({onClick:$,startIcon:y.jsx(o.slots.filterPanelRemoveAllIcon,{})},(V=o.slotProps)==null?void 0:V.baseButton,{children:r.current.getLocaleText("filterPanelRemoveAll")})):null]}):null]}))}),Mue=(e,t)=>{const n=new Set(Object.keys(e).filter(i=>e[i]===!1)),r=new Set(Object.keys(t).filter(i=>t[i]===!1));if(n.size!==r.size)return!1;let o=!0;return n.forEach(i=>{r.has(i)||(o=!1)}),o},kue=(e,t)=>(e.headerName||e.field).toLowerCase().indexOf(t)>-1,Pue=["children"],Iue=As({from:{opacity:0},to:{opacity:1}}),Aue=As({"from, to":{"--scrollable":'" "'}}),Rue=Bn("div",{name:"MuiDataGrid",slot:"ShadowScrollArea"})`
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: ${Aue};
  animation-timeline: --scroll-timeline;
  animation-fill-mode: none;
  box-sizing: border-box;
  overflow: auto;
  scrollbar-width: thin;
  scroll-timeline: --scroll-timeline block;

  &::before,
  &::after {
    content: '';
    flex-shrink: 0;
    display: block;
    position: sticky;
    left: 0;
    width: 100%;
    height: 4px;
    animation: ${Iue} linear both;
    animation-timeline: --scroll-timeline;

    // Custom property toggle trick:
    // - Detects if the element is scrollable
    // - https://css-tricks.com/the-css-custom-property-toggle-trick/
    --visibility-scrollable: var(--scrollable) visible;
    --visibility-not-scrollable: hidden;
    visibility: var(--visibility-scrollable, var(--visibility-not-scrollable));
  }

  &::before {
    top: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-range: 0 4px;
  }

  &::after {
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.05) 0, transparent 100%);
    animation-direction: reverse;
    animation-range: calc(100% - 4px) 100%;
  }
`,Oue=Wt(function(t,n){const{children:r}=t,o=tt(t,Pue);return y.jsx(Rue,z({},o,{ref:n,children:r}))}),_ue=e=>{const{classes:t}=e;return st({root:["columnsManagement"],header:["columnsManagementHeader"],searchInput:["columnsManagementSearchInput"],footer:["columnsManagementFooter"],row:["columnsManagementRow"]},Cn,t)},K3=new Intl.Collator;function Due(e){var Y,Q,W,K;const t=rn(),n=b.useRef(null),r=Xe(t,Woe),o=Xe(t,cl),i=yt(),[a,l]=b.useState(""),u=_ue(i),d=Xe(t,Ts),f=Xe(t,hh),m=Xe(t,CN),g=b.useMemo(()=>f?Array.from(m.values()):d,[f,m,d]),{sort:w,searchPredicate:C=kue,autoFocusSearchField:S=!0,disableShowHideToggle:E=!1,disableResetButton:T=!1,toggleAllMode:I="all",getTogglableColumns:k,searchInputProps:R}=e,P=b.useMemo(()=>Mue(o,r),[o,r]),O=b.useMemo(()=>{switch(w){case"asc":return[...g].sort((J,ae)=>K3.compare(J.headerName||J.field,ae.headerName||ae.field));case"desc":return[...g].sort((J,ae)=>-K3.compare(J.headerName||J.field,ae.headerName||ae.field));default:return g}},[g,w]),j=J=>{const{name:ae}=J.target;t.current.setColumnVisibility(ae,o[ae]===!1)},F=b.useMemo(()=>{const J=k?k(O):null,ae=J?O.filter(({field:ce})=>J.includes(ce)):O;return a?ae.filter(ce=>C(ce,a.toLowerCase())):ae},[O,a,C,k]),D=b.useCallback(J=>{const ae=cl(t),ce=z({},ae),de=k?k(g):null;return(I==="filteredOnly"?F:g).forEach(re=>{re.hideable&&(de==null||de.includes(re.field))&&(J?delete ce[re.field]:ce[re.field]=!1)}),t.current.setColumnVisibilityModel(ce)},[t,g,k,I,F]),_=b.useCallback(J=>{l(J.target.value)},[]),$=b.useMemo(()=>F.filter(J=>J.hideable),[F]),B=b.useMemo(()=>$.every(J=>o[J.field]==null||o[J.field]!==!1),[o,$]),V=b.useMemo(()=>$.every(J=>o[J.field]===!1),[o,$]),q=b.useRef(null);b.useEffect(()=>{var J;S?(J=n.current)==null||J.focus():q.current&&typeof q.current.focus=="function"&&q.current.focus()},[S]);let G=!1;const N=J=>G===!1&&J.hideable!==!1?(G=!0,!0):!1,H=b.useCallback(()=>{var J;l(""),(J=n.current)==null||J.focus()},[]);return y.jsxs(b.Fragment,{children:[y.jsx(jue,{className:u.header,ownerState:i,children:y.jsx(Fue,z({as:i.slots.baseTextField,ownerState:i,placeholder:t.current.getLocaleText("columnsManagementSearchTitle"),inputRef:n,className:u.searchInput,value:a,onChange:_,size:"small",type:"search",slotProps:{input:{startAdornment:y.jsx(i.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:y.jsx(i.slots.baseIconButton,z({size:"small","aria-label":t.current.getLocaleText("columnsManagementDeleteIconLabel"),style:a?{visibility:"visible"}:{visibility:"hidden"},tabIndex:-1,onClick:H,edge:"end"},(Y=i.slotProps)==null?void 0:Y.baseIconButton,{children:y.jsx(i.slots.quickFilterClearIcon,{fontSize:"small"})}))},htmlInput:{"aria-label":t.current.getLocaleText("columnsManagementSearchTitle")}},autoComplete:"off",fullWidth:!0},(Q=i.slotProps)==null?void 0:Q.baseTextField,R))}),y.jsx($ue,{ownerState:i,children:y.jsxs(Lue,{className:u.root,ownerState:i,children:[F.map(J=>{var ae;return y.jsx(i.slots.baseCheckbox,z({className:u.row,disabled:J.hideable===!1||f,checked:o[J.field]!==!1,onChange:j,name:J.field,inputRef:N(J)?q:void 0,label:J.headerName||J.field,density:"compact",fullWidth:!0},(ae=i.slotProps)==null?void 0:ae.baseCheckbox),J.field)}),F.length===0&&y.jsx(zue,{ownerState:i,children:t.current.getLocaleText("columnsManagementNoColumns")})]})}),!E||!T?y.jsxs(Nue,{ownerState:i,className:u.footer,children:[E?y.jsx("span",{}):y.jsx(i.slots.baseCheckbox,z({disabled:$.length===0||f,checked:B,indeterminate:!B&&!V,onChange:()=>D(!B),name:t.current.getLocaleText("columnsManagementShowHideAllText"),label:t.current.getLocaleText("columnsManagementShowHideAllText"),density:"compact"},(W=i.slotProps)==null?void 0:W.baseCheckbox)),T?null:y.jsx(i.slots.baseButton,z({onClick:()=>t.current.setColumnVisibilityModel(r),disabled:P||f},(K=i.slotProps)==null?void 0:K.baseButton,{children:t.current.getLocaleText("columnsManagementReset")}))]}):null]})}const Lue=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagement"})({display:"flex",flexDirection:"column",padding:vt.spacing(.5,1.5)}),$ue=Te(Oue,{name:"MuiDataGrid",slot:"ColumnsManagementScrollArea"})({maxHeight:300}),jue=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagementHeader"})({padding:vt.spacing(1.5,2),borderBottom:`1px solid ${vt.colors.border.base}`}),Fue=Te(Eu,{name:"MuiDataGrid",slot:"ColumnsManagementSearchInput"})({[`& .${pi.input}::-webkit-search-decoration,
      & .${pi.input}::-webkit-search-cancel-button,
      & .${pi.input}::-webkit-search-results-button,
      & .${pi.input}::-webkit-search-results-decoration`]:{display:"none"}}),Nue=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagementFooter"})({padding:vt.spacing(1,1,1,1.5),display:"flex",justifyContent:"space-between",borderTop:`1px solid ${vt.colors.border.base}`}),zue=Te("div",{name:"MuiDataGrid",slot:"ColumnsManagementEmptyText"})({padding:vt.spacing(1,0),alignSelf:"center",font:vt.typography.font.body}),Bue=Wt(function(t,n){var I,k;const{children:r,slotProps:o={}}=t,i=o.button||{},a=o.tooltip||{},l=rn(),u=yt(),d=Mn(),f=Mn(),[m,g]=b.useState(!1),w=b.useRef(null),C=Dn(n,w),S=R=>{var P;g(O=>!O),(P=i.onClick)==null||P.call(i,R)},E=()=>g(!1),T=R=>{R.key==="Tab"&&R.preventDefault(),jN(R.key)&&E()};return r==null?null:y.jsxs(b.Fragment,{children:[y.jsx(u.slots.baseTooltip,z({title:l.current.getLocaleText("toolbarExportLabel"),enterDelay:1e3},(I=u.slotProps)==null?void 0:I.baseTooltip,a,{children:y.jsx(u.slots.baseButton,z({size:"small",startIcon:y.jsx(u.slots.exportIcon,{}),"aria-expanded":m,"aria-label":l.current.getLocaleText("toolbarExportLabel"),"aria-haspopup":"menu","aria-controls":m?f:void 0,id:d},(k=u.slotProps)==null?void 0:k.baseButton,i,{onClick:S,ref:C,children:l.current.getLocaleText("toolbarExport")}))})),y.jsx(aT,{open:m,target:w.current,onClose:E,position:"bottom-end",children:y.jsx(u.slots.baseMenuList,{id:f,className:ee.menuList,"aria-labelledby":d,onKeyDown:T,autoFocusItem:m,children:b.Children.map(r,R=>b.isValidElement(R)?b.cloneElement(R,{hideMenu:E}):R)})})]})}),Hue=["hideMenu","options"],Uue=["hideMenu","options"],Gue=["csvOptions","printOptions","excelOptions"];function Vue(e){const t=rn(),n=yt(),{hideMenu:r,options:o}=e,i=tt(e,Hue);return y.jsx(n.slots.baseMenuItem,z({onClick:()=>{t.current.exportDataAsCsv(o),r==null||r()}},i,{children:t.current.getLocaleText("toolbarExportCSV")}))}function Wue(e){const t=rn(),n=yt(),{hideMenu:r,options:o}=e,i=tt(e,Uue);return y.jsx(n.slots.baseMenuItem,z({onClick:()=>{t.current.exportDataAsPrint(o),r==null||r()}},i,{children:t.current.getLocaleText("toolbarExportPrint")}))}Wt(function(t,n){const r=t,{csvOptions:o={},printOptions:i={},excelOptions:a}=r,l=tt(r,Gue),d=rn().current.unstable_applyPipeProcessors("exportMenu",[],{excelOptions:a,csvOptions:o,printOptions:i}).sort((f,m)=>f.componentName>m.componentName?1:-1);return d.length===0?null:y.jsx(Bue,z({},l,{ref:n,children:d.map((f,m)=>b.cloneElement(f.component,{key:m}))}))});function Ya(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 o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!Ya(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!Ya(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])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),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!Ya(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const zN=b.createContext(void 0);function TO(){const e=b.useContext(zN);if(e===void 0)throw new Error("MUI X: Missing context. Quick Filter subcomponents must be placed within a <QuickFilter /> component.");return e}const que=["render","className","parser","formatter","debounceMs","defaultExpanded","expanded","onExpandedChange"],Yue=e=>e.split(" ").filter(t=>t!==""),Kue=e=>e.join(" ");function Xue(e){const t=yt(),{render:n,className:r,parser:o=Yue,formatter:i=Kue,debounceMs:a=t.filterDebounceMs,defaultExpanded:l,expanded:u,onExpandedChange:d}=e,f=tt(e,que),m=rn(),g=b.useRef(null),w=b.useRef(null),C=Xe(m,Y9),[S,E]=b.useState(i(C??[])),[T,I]=b.useState(l??S.length>0),k=u??T,R=b.useMemo(()=>({value:S,expanded:k}),[S,k]),P=typeof r=="function"?r(R):r,O=b.useRef(null),j=Mn(),F=b.useCallback(H=>{d&&d(H),u===void 0&&I(H)},[d,u]),D=b.useRef(C);b.useEffect(()=>{Ya(D.current,C)||(D.current=C,E(H=>Ya(o(H),C)?H:i(C??[])))},[C,i,o]);const _=b.useRef(!0),$=b.useRef(k);b.useEffect(()=>{var H;if(_.current){_.current=!1;return}$.current!==k&&(k?requestAnimationFrame(()=>{var Y;(Y=g.current)==null||Y.focus({preventScroll:!0})}):(H=w.current)==null||H.focus({preventScroll:!0}),$.current=k)},[k]);const B=b.useMemo(()=>Sh(H=>{const Y=o(H);D.current=Y,m.current.setQuickFilterValues(Y)},a),[m,a,o]);b.useEffect(()=>B.clear,[B]);const V=b.useCallback(H=>{const Y=H.target.value;E(Y),B(Y)},[B]),q=b.useCallback(()=>{var H;E(""),m.current.setQuickFilterValues([]),(H=g.current)==null||H.focus()},[m,g]),G=b.useMemo(()=>({controlRef:g,triggerRef:w,state:R,controlId:j,clearValue:q,onValueChange:V,onExpandedChange:F}),[j,R,V,q,F]);kn(()=>{var H;O.current&&w.current&&O.current.style.setProperty("--trigger-width",`${(H=w.current)==null?void 0:H.offsetWidth}px`)},[]);const N=wc("div",n,z({className:P},f,{ref:O}),R);return y.jsx(zN.Provider,{value:G,children:N})}const Zue=["render","className","slotProps","onKeyDown","onChange"],Que=Wt(function(t,n){var O;const{render:r,className:o,slotProps:i,onKeyDown:a,onChange:l}=t,u=tt(t,Zue),d=yt(),{state:f,controlId:m,controlRef:g,onValueChange:w,onExpandedChange:C,clearValue:S}=TO(),E=typeof o=="function"?o(f):o,T=Dn(g,n),I=j=>{j.key==="Escape"&&(f.value===""?C(!1):S()),a==null||a(j)},k=j=>{var F,D;f.value===""&&C(!1),(D=(F=i==null?void 0:i.htmlInput)==null?void 0:F.onBlur)==null||D.call(F,j)},R=j=>{f.expanded||C(!0),w(j),l==null||l(j)},P=wc(d.slots.baseTextField,r,z({},(O=d.slotProps)==null?void 0:O.baseTextField,{slotProps:z({htmlInput:z({role:"searchbox",id:m,tabIndex:f.expanded?void 0:-1},i==null?void 0:i.htmlInput,{onBlur:k})},i),value:f.value,className:E},u,{onChange:R,onKeyDown:I,ref:T}),f);return y.jsx(b.Fragment,{children:P})}),Jue=["render","className","onClick"],ede=Wt(function(t,n){var w;const{render:r,className:o,onClick:i}=t,a=tt(t,Jue),l=yt(),{state:u,clearValue:d}=TO(),f=typeof o=="function"?o(u):o,m=C=>{d(),i==null||i(C)},g=wc(l.slots.baseIconButton,r,z({},(w=l.slotProps)==null?void 0:w.baseIconButton,{className:f,tabIndex:-1},a,{onClick:m,ref:n}),u);return y.jsx(b.Fragment,{children:g})}),tde=["render","className","onClick"],nde=Wt(function(t,n){var E;const{render:r,className:o,onClick:i}=t,a=tt(t,tde),l=yt(),{state:u,controlId:d,onExpandedChange:f,triggerRef:m}=TO(),g=typeof o=="function"?o(u):o,w=Dn(m,n),C=T=>{f(!u.expanded),i==null||i(T)},S=wc(l.slots.baseButton,r,z({},(E=l.slotProps)==null?void 0:E.baseButton,{className:g,"aria-controls":d,"aria-expanded":u.expanded},a,{onClick:C,ref:w}),u);return y.jsx(b.Fragment,{children:S})}),rde=["quickFilterParser","quickFilterFormatter","debounceMs","className","slotProps"],ode=["ref","slotProps"],ide=e=>{const{classes:t}=e;return st({root:["toolbarQuickFilter"],trigger:["toolbarQuickFilterTrigger"],control:["toolbarQuickFilterControl"]},Cn,t)},ade=Bn("div",{name:"MuiDataGrid",slot:"ToolbarQuickFilter"})({display:"grid",alignItems:"center"}),sde=Bn(WS,{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:vt.transition(["opacity"])})),lde=Bn(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:vt.transition(["width","opacity"])}));function cde(e){const t=rn(),n=yt(),r={classes:n.classes,expanded:!1},o=ide(r),{quickFilterParser:i,quickFilterFormatter:a,debounceMs:l,className:u,slotProps:d}=e,f=tt(e,rde);return y.jsx(Xue,{parser:i,formatter:a,debounceMs:l,render:(m,g)=>{const w=z({},r,{expanded:g.expanded});return y.jsxs(ade,z({},m,{className:Ve(o.root,u),children:[y.jsx(nde,{render:C=>y.jsx(n.slots.baseTooltip,{title:t.current.getLocaleText("toolbarQuickFilterLabel"),enterDelay:0,children:y.jsx(sde,z({className:o.trigger},C,{ownerState:w,color:"default","aria-disabled":g.expanded,children:y.jsx(n.slots.quickFilterIcon,{fontSize:"small"})}))})}),y.jsx(Que,{render:C=>{var I;let{ref:S,slotProps:E}=C,T=tt(C,ode);return y.jsx(lde,z({as:n.slots.baseTextField,className:o.control,ownerState:w,inputRef:S,"aria-label":t.current.getLocaleText("toolbarQuickFilterLabel"),placeholder:t.current.getLocaleText("toolbarQuickFilterPlaceholder"),size:"small",slotProps:z({input:z({startAdornment:y.jsx(n.slots.quickFilterIcon,{fontSize:"small"}),endAdornment:T.value?y.jsx(ede,{render:y.jsx(n.slots.baseIconButton,{size:"small",edge:"end","aria-label":t.current.getLocaleText("toolbarQuickFilterDeleteIconLabel"),children:y.jsx(n.slots.quickFilterClearIcon,{fontSize:"small"})})}):null},E==null?void 0:E.input)},E)},(I=n.slotProps)==null?void 0:I.baseTextField,T,d==null?void 0:d.root,f))}})]}))}})}const ude=["render","className","onClick","onPointerUp"],dde=Wt(function(t,n){var j;const{render:r,className:o,onClick:i,onPointerUp:a}=t,l=tt(t,ude),u=yt(),d=Mn(),f=Mn(),m=rn(),g=Xe(m,mh),w=g.open&&g.openedPanelValue===Qi.filters,S=Xe(m,hO).length,E={open:w,filterCount:S},T=typeof o=="function"?o(E):o,{filterPanelTriggerRef:I}=SO(),k=Dn(n,I),R=F=>{w?m.current.hidePreferences():m.current.showPreferences(Qi.filters,f,d),i==null||i(F)},P=F=>{w&&F.stopPropagation(),a==null||a(F)},O=wc(u.slots.baseButton,r,z({},(j=u.slotProps)==null?void 0:j.baseButton,{id:d,"aria-haspopup":"true","aria-expanded":w?"true":void 0,"aria-controls":w?f:void 0,onClick:R,onPointerUp:P,className:T},l,{ref:k}),E);return y.jsx(b.Fragment,{children:O})}),fde=["render","className","onClick","onPointerUp"],pde=Wt(function(t,n){var P;const{render:r,className:o,onClick:i,onPointerUp:a}=t,l=tt(t,fde),u=yt(),d=Mn(),f=Mn(),m=rn(),g=Xe(m,mh),w=g.open&&g.openedPanelValue===Qi.columns,C={open:w},S=typeof o=="function"?o(C):o,{columnsPanelTriggerRef:E}=SO(),T=Dn(n,E),I=O=>{w?m.current.hidePreferences():m.current.showPreferences(Qi.columns,f,d),i==null||i(O)},k=O=>{w&&O.stopPropagation(),a==null||a(O)},R=wc(u.slots.baseButton,r,z({},(P=u.slotProps)==null?void 0:P.baseButton,{id:d,"aria-haspopup":"true","aria-expanded":w?"true":void 0,"aria-controls":w?f:void 0,className:S},l,{onPointerUp:k,onClick:I,ref:T}),C);return y.jsx(b.Fragment,{children:R})}),hde=["render","options","onClick"],mde=Wt(function(t,n){var m;const{render:r,options:o,onClick:i}=t,a=tt(t,hde),l=yt(),u=rn(),d=g=>{u.current.exportDataAsCsv(o),i==null||i(g)},f=wc(l.slots.baseButton,r,z({},(m=l.slotProps)==null?void 0:m.baseButton,{onClick:d},a,{ref:n}));return y.jsx(b.Fragment,{children:f})}),gde=["render","options","onClick"],bde=Wt(function(t,n){var m;const{render:r,options:o,onClick:i}=t,a=tt(t,gde),l=yt(),u=rn(),d=g=>{u.current.exportDataAsPrint(o),i==null||i(g)},f=wc(l.slots.baseButton,r,z({},(m=l.slotProps)==null?void 0:m.baseButton,{onClick:d},a,{ref:n}));return y.jsx(b.Fragment,{children:f})}),yde=["className"],vde=["className"],BN=e=>{const{classes:t}=e;return st({divider:["toolbarDivider"],label:["toolbarLabel"]},Cn,t)},xde=Bn(Eu,{name:"MuiDataGrid",slot:"ToolbarDivider"})({height:"50%",margin:vt.spacing(0,.5)}),wde=Bn("span",{name:"MuiDataGrid",slot:"ToolbarLabel"})({flex:1,font:vt.typography.font.large,fontWeight:vt.typography.fontWeight.medium,margin:vt.spacing(0,.5),textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"});function X3(e){const t=tt(e,yde),n=yt(),r=BN(n);return y.jsx(xde,z({as:n.slots.baseDivider,orientation:"vertical",className:r.divider},t))}function Cde(e){const t=tt(e,vde),n=yt(),r=BN(n);return y.jsx(wde,z({className:r.label},t))}function Sde(e){var E,T,I;const{showQuickFilter:t=!0,quickFilterProps:n,csvOptions:r,printOptions:o,additionalItems:i,additionalExportMenuItems:a}=e,l=rn(),u=yt(),[d,f]=b.useState(!1),m=b.useRef(null),g=Mn(),w=Mn(),C=!(r!=null&&r.disableToolbarButton)||!(o!=null&&o.disableToolbarButton)||a,S=()=>f(!1);return y.jsxs(zle,{children:[u.label&&y.jsx(Cde,{children:u.label}),!u.disableColumnSelector&&y.jsx(u.slots.baseTooltip,{title:l.current.getLocaleText("toolbarColumns"),children:y.jsx(pde,{render:y.jsx(WS,{}),children:y.jsx(u.slots.columnSelectorIcon,{fontSize:"small"})})}),!u.disableColumnFilter&&y.jsx(u.slots.baseTooltip,{title:l.current.getLocaleText("toolbarFilters"),children:y.jsx(dde,{render:(k,R)=>y.jsx(WS,z({},k,{color:R.filterCount>0?"primary":"default",children:y.jsx(u.slots.baseBadge,{badgeContent:R.filterCount,color:"primary",variant:"dot",children:y.jsx(u.slots.openFilterButtonIcon,{fontSize:"small"})})}))})}),i,C&&(!u.disableColumnFilter||!u.disableColumnSelector)&&y.jsx(X3,{}),C&&y.jsxs(b.Fragment,{children:[y.jsx(u.slots.baseTooltip,{title:l.current.getLocaleText("toolbarExport"),children:y.jsx(WS,{ref:m,id:w,"aria-controls":g,"aria-haspopup":"true","aria-expanded":d?"true":void 0,onClick:()=>f(!d),children:y.jsx(u.slots.exportIcon,{fontSize:"small"})})}),y.jsx(aT,{target:m.current,open:d,onClose:S,position:"bottom-end",children:y.jsxs(u.slots.baseMenuList,z({id:g,"aria-labelledby":w,autoFocusItem:!0},(E=u.slotProps)==null?void 0:E.baseMenuList,{children:[!(o!=null&&o.disableToolbarButton)&&y.jsx(bde,{render:y.jsx(u.slots.baseMenuItem,z({},(T=u.slotProps)==null?void 0:T.baseMenuItem)),options:o,onClick:S,children:l.current.getLocaleText("toolbarExportPrint")}),!(r!=null&&r.disableToolbarButton)&&y.jsx(mde,{render:y.jsx(u.slots.baseMenuItem,z({},(I=u.slotProps)==null?void 0:I.baseMenuItem)),options:r,onClick:S,children:l.current.getLocaleText("toolbarExportCSV")}),a==null?void 0:a(S)]}))})]}),t&&y.jsxs(b.Fragment,{children:[y.jsx(X3,{}),y.jsx(cde,z({},n))]})]})}const Ede=["className","selectedRowCount"],Tde=e=>{const{classes:t}=e;return st({root:["selectedRowCount"]},Cn,t)},Mde=Bn("div",{name:"MuiDataGrid",slot:"SelectedRowCount"})({alignItems:"center",display:"flex",margin:vt.spacing(0,2),visibility:"hidden",width:0,height:0,[vt.breakpoints.up("sm")]:{visibility:"visible",width:"auto",height:"auto"}}),kde=Wt(function(t,n){const{className:r,selectedRowCount:o}=t,i=tt(t,Ede),a=rn(),l=yt(),u=Tde(l),d=a.current.getLocaleText("footerRowSelected")(o);return y.jsx(Mde,z({className:Ve(u.root,r),ownerState:l},i,{ref:n,children:d}))}),Pde=Wt(function(t,n){var m;const r=rn(),o=yt(),i=Xe(r,koe),a=Xe(r,fT),l=Xe(r,pO),u=!o.hideFooterSelectedRowCount&&a>0?y.jsx(kde,{selectedRowCount:a}):y.jsx("div",{}),d=!o.hideFooterRowCount&&!o.pagination?y.jsx(o.slots.footerRowCount,z({},(m=o.slotProps)==null?void 0:m.footerRowCount,{rowCount:i,visibleRowCount:l})):null,f=o.pagination&&!o.hideFooterPagination&&o.slots.pagination&&y.jsx(o.slots.pagination,{});return y.jsxs(Ile,z({},t,{ref:n,children:[u,d,f]}))}),qv=(e,t,n,r,o,i)=>{let a;switch(e){case Tn.LEFT:a=r[n];break;case Tn.RIGHT:a=o-r[n]-t+i;break;default:a=void 0;break}return a},T2=(e,t,n,r,o)=>{const i=t===n-1;return e===Tn.LEFT&&i?!0:r?e===Tn.LEFT?!0:e===Tn.RIGHT?!i:!i||o:!1},M2=(e,t)=>e===Tn.RIGHT&&t===0,sv={root:ee.scrollbarFiller,header:ee["scrollbarFiller--header"],borderTop:ee["scrollbarFiller--borderTop"],borderBottom:ee["scrollbarFiller--borderBottom"],pinnedRight:ee["scrollbarFiller--pinnedRight"]};function MO({header:e,borderTop:t=!0,borderBottom:n,pinnedRight:r}){return y.jsx("div",{role:"presentation",className:Ve(sv.root,e&&sv.header,t&&sv.borderTop,n&&sv.borderBottom,r&&sv.pinnedRight)})}const Ide=["skeletonRowsCount","visibleColumns","showFirstRowBorder"],Ade=Bn("div",{name:"MuiDataGrid",slot:"SkeletonLoadingOverlay"})({minWidth:"100%",width:"max-content",height:"100%",overflow:"clip"}),Rde=e=>{const{classes:t}=e;return st({root:["skeletonLoadingOverlay"]},Cn,t)},Z3=e=>parseInt(e.getAttribute("data-colindex"),10),Ode=Wt(function(t,n){const r=yt(),{slots:o}=r,i=Lo(),a=Rde({classes:r.classes}),l=b.useRef(null),u=Dn(l,n),d=rn(),f=Xe(d,vr),m=Xe(d,oT),g=Xe(d,of),w=b.useMemo(()=>g.filter(F=>F<=m).length,[m,g]),{skeletonRowsCount:C,visibleColumns:S,showFirstRowBorder:E}=t,T=tt(t,Ide),I=Xe(d,ro),k=b.useMemo(()=>I.slice(0,w),[I,w]),R=Xe(d,Y0),P=b.useCallback(F=>{if(R.left.findIndex(D=>D.field===F)!==-1)return Tn.LEFT;if(R.right.findIndex(D=>D.field===F)!==-1)return Tn.RIGHT},[R.left,R.right]),O=b.useMemo(()=>{const F=[];for(let D=0;D<C;D+=1){const _=[];for(let $=0;$<k.length;$+=1){const B=k[$],V=P(B.field),q=V===Tn.LEFT,G=V===Tn.RIGHT,N=MN(V,i),H=N?R[N].length:k.length-R.left.length-R.right.length,Y=N?R[N].findIndex(ue=>ue.field===B.field):$-R.left.length,Q=f.hasScrollY?f.scrollbarSize:0,W=bT({},i,V,qv(V,B.computedWidth,$,g,f.columnsTotalWidth,Q)),K=f.columnsTotalWidth<f.viewportOuterSize.width,J=T2(V,Y,H,r.showCellVerticalBorder,K),ae=M2(V,Y),ce=$===k.length-1,de=G&&Y===0,re=de&&K,ke=ce&&!de&&K,Ce=f.viewportOuterSize.width-f.columnsTotalWidth,ie=Math.max(0,Ce),le=y.jsx(o.skeletonCell,{width:ie,empty:!0},`skeleton-filler-column-${D}`),ve=ce&&Q!==0;re&&_.push(le),_.push(y.jsx(o.skeletonCell,{field:B.field,type:B.type,align:B.align,width:"var(--width)",height:f.rowHeight,"data-colindex":$,empty:S&&!S.has(B.field),className:Ve(q&&ee["cell--pinnedLeft"],G&&ee["cell--pinnedRight"],J&&ee["cell--withRightBorder"],ae&&ee["cell--withLeftBorder"]),style:z({"--width":`${B.computedWidth}px`},W)},`skeleton-column-${D}-${B.field}`)),ke&&_.push(le),ve&&_.push(y.jsx(MO,{pinnedRight:R.right.length>0},`skeleton-scrollbar-filler-${D}`))}F.push(y.jsx("div",{className:Ve(ee.row,ee.rowSkeleton,D===0&&!E&&ee["row--firstVisible"]),children:_},`skeleton-row-${D}`))}return F},[C,k,P,i,R,f.hasScrollY,f.scrollbarSize,f.columnsTotalWidth,f.viewportOuterSize.width,f.rowHeight,g,r.showCellVerticalBorder,o,S,E]);return Mt(d,"columnResize",F=>{var Y,Q,W;const{colDef:D,width:_}=F,$=(Y=l.current)==null?void 0:Y.querySelectorAll(`[data-field="${Mu(D.field)}"]`);if(!$)throw new Error("MUI X: Expected skeleton cells to be defined with `data-field` attribute.");const B=k.findIndex(K=>K.field===D.field),V=P(D.field),q=V===Tn.LEFT,G=V===Tn.RIGHT,N=getComputedStyle($[0]).getPropertyValue("--width"),H=parseInt(N,10)-_;if($&&$.forEach(K=>{K.style.setProperty("--width",`${_}px`)}),q){const K=(Q=l.current)==null?void 0:Q.querySelectorAll(`.${ee["cell--pinnedLeft"]}`);K==null||K.forEach(J=>{Z3(J)>B&&(J.style.left=`${parseInt(getComputedStyle(J).left,10)-H}px`)})}if(G){const K=(W=l.current)==null?void 0:W.querySelectorAll(`.${ee["cell--pinnedRight"]}`);K==null||K.forEach(J=>{Z3(J)<B&&(J.style.right=`${parseInt(getComputedStyle(J).right,10)+H}px`)})}}),y.jsx(Ade,z({className:a.root},T,{ref:u,children:O}))}),_de=Wt(function(t,n){const r=rn(),o=Xe(r,vr),i=(o==null?void 0:o.viewportInnerSize.height)??0,a=Math.ceil(i/o.rowHeight);return y.jsx(Ode,z({},t,{skeletonRowsCount:a,ref:n}))}),Dde=["variant","noRowsVariant","style"],Lde={"circular-progress":{component:e=>e.slots.baseCircularProgress,style:{}},"linear-progress":{component:e=>e.slots.baseLinearProgress,style:{display:"block"}},skeleton:{component:()=>_de,style:{display:"block"}}},$de=Wt(function(t,n){const{variant:r="linear-progress",noRowsVariant:o="skeleton",style:i}=t,a=tt(t,Dde),l=rn(),u=yt(),d=Xe(l,Ux),f=Lde[d===0?o:r],m=f.component(u);return y.jsx(yT,z({style:z({},f.style,i)},a,{ref:n,children:y.jsx(m,{})}))}),jde=Wt(function(t,n){const o=rn().current.getLocaleText("noRowsLabel");return y.jsx(yT,z({},t,{ref:n,children:o}))}),Fde=Wt(function(t,n){var u;const r=yt(),o=rn(),i=Xe(o,fc),a=()=>{o.current.showPreferences(Qi.columns)},l=!r.disableColumnSelector&&i.length>0;return y.jsxs(yT,z({},t,{ref:n,children:[o.current.getLocaleText("noColumnsOverlayLabel"),l&&y.jsx(r.slots.baseButton,z({size:"small"},(u=r.slotProps)==null?void 0:u.baseButton,{onClick:a,children:o.current.getLocaleText("noColumnsOverlayManageColumns")}))]}))}),Nde=Te(Eu)({maxHeight:"calc(100% + 1px)",flexGrow:1});function zde(){const e=rn(),t=yt(),n=Xe(e,Zo),r=Xe(e,Kg),o=Xe(e,sN),{paginationMode:i,loading:a}=t,l=r===-1&&i==="server"&&a,u=b.useMemo(()=>Math.max(0,o-1),[o]),d=b.useMemo(()=>r===-1||n.page<=u?n.page:u,[u,n.page,r]),f=b.useCallback(C=>{e.current.setPageSize(C)},[e]),m=b.useCallback((C,S)=>{e.current.setPage(S)},[e]),w=(C=>{for(let S=0;S<t.pageSizeOptions.length;S+=1){const E=t.pageSizeOptions[S];if(typeof E=="number"){if(E===C)return!0}else if(E.value===C)return!0}return!1})(n.pageSize)?t.pageSizeOptions:[];return y.jsx(Nde,{as:t.slots.basePagination,count:r,page:d,rowsPerPageOptions:w,rowsPerPage:n.pageSize,onPageChange:m,onRowsPerPageChange:f,disabled:l})}const Bde=["className","rowCount","visibleRowCount"],Hde=e=>{const{classes:t}=e;return st({root:["rowCount"]},Cn,t)},Ude=Bn("div",{name:"MuiDataGrid",slot:"RowCount"})({alignItems:"center",display:"flex",margin:vt.spacing(0,2)}),Gde=Wt(function(t,n){const{className:r,rowCount:o,visibleRowCount:i}=t,a=tt(t,Bde),l=rn(),u=yt(),d=Hde(u);if(o===0)return null;const f=i<o?l.current.getLocaleText("footerTotalVisibleRows")(i,o):o.toLocaleString();return y.jsxs(Ude,z({className:Ve(d.root,r),ownerState:u},a,{ref:n,children:[l.current.getLocaleText("footerTotalRows")," ",f]}))});function Vde(e,t){return st(t,Cn,e)}const Wde=["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"],qde=wt(zo,(e,t)=>t?!!uT(e):!1),Yde=Wt(function(t,n){var it;const{selected:r,rowId:o,row:i,index:a,style:l,rowHeight:u,className:d,visibleColumns:f,pinnedColumns:m,offsetLeft:g,columnsTotalWidth:w,firstColumnIndex:C,lastColumnIndex:S,focusedColumnIndex:E,isFirstVisible:T,isLastVisible:I,isNotVisible:k,showBottomBorder:R,scrollbarWidth:P,gridHasFiller:O,onClick:j,onDoubleClick:F,onMouseEnter:D,onMouseLeave:_,onMouseOut:$,onMouseOver:B}=t,V=tt(t,Wde),q=Qa(),G=iT(),N=b.useRef(null),H=yt(),Y=xO(q),Q=Xe(q,ms),W=Xe(q,V0),K=Xe(q,of),J=H.rowReordering,ae=Xe(q,qde,J),ce=Dn(N,n),de=cc(q,o),re=Xe(q,EN,{rowId:o,editMode:H.editMode}),ke=H.editMode===yc.Row,Ce=E!==void 0,ie=Ce&&E>=m.left.length&&E<C,le=Ce&&E<f.length-m.right.length&&E>=S,ve=Vde(H.classes,{root:["row",r&&"selected",ke&&"row--editable",re&&"row--editing",T&&"row--firstVisible",I&&"row--lastVisible",R&&"row--borderBottom",u==="auto"&&"row--dynamicHeight"]}),ue=G.hooks.useGridRowAriaAttributes();b.useLayoutEffect(()=>{if(Y.range){const ot=q.current.getRowIndexRelativeToVisibleRows(o);ot!==void 0&&q.current.unstable_setLastMeasuredRowIndex(ot)}if(N.current&&u==="auto")return q.current.observeRowHeight(N.current,o)},[q,Y.range,u,o]);const me=b.useCallback((ot,gt)=>Ue=>{Jx(Ue)||q.current.getRow(o)&&(q.current.publishEvent(ot,q.current.getRowParams(o),Ue),gt&&gt(Ue))},[q,o]),be=b.useCallback(ot=>{const gt=S2(ot.target,ee.cell),Ue=gt==null?void 0:gt.getAttribute("data-field");if(Ue){if(Ue===X0.field||Ue===cT||Ue==="__reorder__"||q.current.getCellMode(o,Ue)===Qn.Edit)return;const jt=q.current.getColumn(Ue);if((jt==null?void 0:jt.type)===sT)return}me("rowClick",j)(ot)},[q,j,me,o]),{slots:Fe,slotProps:Ze,disableColumnReorder:We}=H,_e=Xe(q,()=>z({},q.current.getRowHeightEntry(o)),void 0,v9),ft=b.useMemo(()=>{if(k)return{opacity:0,width:0,height:0};const ot=z({},l,{maxHeight:u==="auto"?"none":u,minHeight:u,"--height":typeof u=="number"?`${u}px`:u});if(_e.spacingTop){const gt=H.rowSpacingType==="border"?"borderTopWidth":"marginTop";ot[gt]=_e.spacingTop}if(_e.spacingBottom){const gt=H.rowSpacingType==="border"?"borderBottomWidth":"marginBottom";let Ue=ot[gt];typeof Ue!="number"&&(Ue=parseInt(Ue||"0",10)),Ue+=_e.spacingBottom,ot[gt]=Ue}return ot},[k,u,l,_e,H.rowSpacingType]),nt=q.current.unstable_applyPipeProcessors("rowClassName",[],o),dt=ue(de,a);if(typeof H.getRowClassName=="function"){const ot=a-(((it=Y.range)==null?void 0:it.firstRowIndex)||0),gt=z({},q.current.getRowParams(o),{isFirstVisible:ot===0,isLastVisible:ot===Y.rows.length-1,indexRelativeToCurrentPage:ot});nt.push(H.getRowClassName(gt))}const se=(ot,gt,Ue,jt,Ht=Tn.NONE)=>{const pt=q.current.unstable_getCellColSpanInfo(o,Ue);if(pt!=null&&pt.spannedByColSpan)return null;const ht=(pt==null?void 0:pt.cellProps.width)??ot.computedWidth,Ct=(pt==null?void 0:pt.cellProps.colSpan)??1,Nt=qv(Ht,ot.computedWidth,Ue,K,w,P);if(de.type==="skeletonRow")return y.jsx(Fe.skeletonCell,{type:ot.type,width:ht,height:u,field:ot.field,align:ot.align},ot.field);const Yn=ot.field==="__reorder__",pr=!(We||ot.disableReorder),Go=ae&&!Q.length&&W<=1,Jn=!(pr||Yn&&Go),Er=Ht===Tn.VIRTUAL,Xr=M2(Ht,gt),Vr=T2(Ht,gt,jt,H.showCellVerticalBorder,O);return y.jsx(Fe.cell,z({column:ot,width:ht,rowId:o,align:ot.align||"left",colIndex:Ue,colSpan:Ct,disableDragEvents:Jn,isNotVisible:Er,pinnedOffset:Nt,pinnedPosition:Ht,showLeftBorder:Xr,showRightBorder:Vr,row:i,rowNode:de},Ze==null?void 0:Ze.cell),ot.field)},De=m.left.map((ot,gt)=>se(ot,gt,gt,m.left.length,Tn.LEFT)),ye=m.right.map((ot,gt)=>{const Ue=f.length-m.right.length+gt;return se(ot,gt,Ue,m.right.length,Tn.RIGHT)}),Pe=f.length-m.left.length-m.right.length,qe=[];ie&&qe.push(se(f[E],E-m.left.length,E,Pe,Tn.VIRTUAL));for(let ot=C;ot<S;ot+=1){const gt=f[ot],Ue=ot-m.left.length;gt&&qe.push(se(gt,Ue,ot,Pe))}le&&qe.push(se(f[E],E-m.left.length,E,Pe,Tn.VIRTUAL));const Ke=i?{onClick:be,onDoubleClick:me("rowDoubleClick",F),onMouseEnter:me("rowMouseEnter",D),onMouseLeave:me("rowMouseLeave",_),onMouseOut:me("rowMouseOut",$),onMouseOver:me("rowMouseOver",B)}:null;return y.jsxs("div",z({"data-id":o,"data-rowindex":a,role:"row",className:Ve(...nt,ve.root,d),style:ft},dt,Ke,V,{ref:ce,children:[De,y.jsx("div",{role:"presentation",className:ee.cellOffsetLeft,style:{width:g}}),qe,y.jsx("div",{role:"presentation",className:Ve(ee.cell,ee.cellEmpty)}),ye,P!==0&&y.jsx(MO,{pinnedRight:m.right.length>0,borderTop:!T})]}))}),Kde=Su(Yde),Xde=()=>{const e=Qa(),t=yt(),n=Xe(e,ro),r=Xe(e,fO),o=Xe(e,Kx),i=Xe(e,E9),a=t["aria-label"],l=t["aria-labelledby"];return{role:"grid","aria-label":!a&&!l&&t.label?t.label:a,"aria-labelledby":l,"aria-colcount":n.length,"aria-rowcount":o+1+i+r,"aria-multiselectable":mO(t)}},Zde=()=>{const e=Qa(),t=Xe(e,Kx);return b.useCallback((n,r)=>{const o={},i=r+t+2;return o["aria-rowindex"]=i,e.current.isRowSelectable(n.id)&&(o["aria-selected"]=e.current.isRowSelected(n.id)),o},[e,t])};function Qde({privateApiRef:e,configuration:t,props:n,children:r}){const o=b.useRef(e.current.getPublicApi());return y.jsx(N9.Provider,{value:t,children:y.jsx(u9.Provider,{value:n,children:y.jsx(mN.Provider,{value:e,children:y.jsx(c9.Provider,{value:o,children:y.jsx(vle,{children:y.jsx(iie,{children:r})})})})})})}const Jde=e=>{const t=b.useRef(null),n=b.useRef(null),r=b.useRef(null),o=b.useRef(null),i=b.useRef(null),a=b.useRef(null);e.current.register("public",{rootElementRef:t}),e.current.register("private",{mainElementRef:n,virtualScrollerRef:r,virtualScrollbarVerticalRef:o,virtualScrollbarHorizontalRef:i,columnHeadersContainerRef:a})},efe=e=>{const t=Lo();e.current.state.isRtl===void 0&&(e.current.state.isRtl=t);const n=b.useRef(!0);b.useEffect(()=>{n.current?n.current=!1:e.current.setState(r=>z({},r,{isRtl:t}))},[e,t])},tfe=Boe()&&window.localStorage.getItem("DEBUG")!=null,Ov=()=>{},nfe={debug:Ov,info:Ov,warn:Ov,error:Ov},Q3=["debug","info","warn","error"];function J3(e,t,n=console){const r=Q3.indexOf(t);if(r===-1)throw new Error(`MUI X: Log level ${t} not recognized.`);return Q3.reduce((i,a,l)=>(l>=r?i[a]=(...u)=>{const[d,...f]=u;n[a](`MUI X: ${e} - ${d}`,...f)}:i[a]=Ov,i),{})}const rfe=(e,t)=>{const n=b.useCallback(r=>tfe?J3(r,"debug",t.logger):t.logLevel?J3(r,t.logLevel.toString(),t.logger):nfe,[t.logLevel,t.logger]);mn(e,{getLogger:n},"private")},ofe=(e,t)=>{const n=b.useCallback(r=>{if(t.localeText[r]==null)throw new Error(`Missing translation for key ${r}.`);return t.localeText[r]},[t.localeText]);e.current.register("public",{getLocaleText:n})};function ux(e){"@babel/helpers - typeof";return ux=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},ux(e)}function ife(e,t){if(ux(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ux(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function dx(e){var t=ife(e,"string");return ux(t)=="symbol"?t:t+""}const afe=e=>{const t=b.useRef({}),n=b.useRef(!1),r=b.useCallback(f=>{n.current||!f||(n.current=!0,Object.values(f.appliers).forEach(m=>{m()}),n.current=!1)},[]),o=b.useCallback((f,m,g)=>{t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}});const w=t.current[f];return w.processors.get(m)!==g&&(w.processors.set(m,g),w.processorsAsArray=Array.from(t.current[f].processors.values()).filter(S=>S!==null),r(w)),()=>{t.current[f].processors.set(m,null),t.current[f].processorsAsArray=Array.from(t.current[f].processors.values()).filter(S=>S!==null)}},[r]),i=b.useCallback((f,m,g)=>(t.current[f]||(t.current[f]={processors:new Map,processorsAsArray:[],appliers:{}}),t.current[f].appliers[m]=g,()=>{const w=t.current[f].appliers,C=tt(w,[m].map(dx));t.current[f].appliers=C}),[]),a=b.useCallback(f=>{r(t.current[f])},[r]),l=b.useCallback((...f)=>{const[m,g,w]=f;if(!t.current[m])return g;const C=t.current[m].processorsAsArray;let S=g;for(let E=0;E<C.length;E+=1)S=C[E](S,w);return S},[]),u={registerPipeProcessor:o,registerPipeApplier:i,requestPipeProcessorsApplication:a},d={unstable_applyPipeProcessors:l};mn(e,u,"private"),mn(e,d,"public")},Yr=(e,t,n,r=!0)=>{const o=b.useRef(null),i=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),a=b.useCallback(()=>{o.current=e.current.registerPipeProcessor(t,i.current,n)},[e,n,t]);Xx(()=>{r&&a()});const l=b.useRef(!0);b.useEffect(()=>(l.current?l.current=!1:r&&a(),()=>{o.current&&(o.current(),o.current=null)}),[a,r])},kO=(e,t,n)=>{const r=b.useRef(null),o=b.useRef(`mui-${Math.round(Math.random()*1e9)}`),i=b.useCallback(()=>{r.current=e.current.registerPipeApplier(t,o.current,n)},[e,n,t]);Xx(()=>{i()});const a=b.useRef(!0);b.useEffect(()=>(a.current?a.current=!1:i(),()=>{r.current&&(r.current(),r.current=null)}),[i])};let Fd=function(e){return e.DataSource="dataSource",e.RowTree="rowTree",e}({});const fx=(e,t,n,r)=>{const o=b.useCallback(()=>{e.current.registerStrategyProcessor(t,n,r)},[e,r,n,t]);Xx(()=>{o()});const i=b.useRef(!0);b.useEffect(()=>{i.current?i.current=!1:o()},[o])},gh="none",e5={dataSourceRowsUpdate:Fd.DataSource,rowTreeCreation:Fd.RowTree,filtering:Fd.RowTree,sorting:Fd.RowTree,visibleRowsLookupCreation:Fd.RowTree},sfe=e=>{const t=b.useRef(new Map),n=b.useRef({}),r=b.useCallback((u,d,f)=>{const m=()=>{const C=n.current[d],S=tt(C,[u].map(dx));n.current[d]=S};n.current[d]||(n.current[d]={});const g=n.current[d],w=g[u];return g[u]=f,!w||w===f||u===e.current.getActiveStrategy(e5[d])&&e.current.publishEvent("activeStrategyProcessorChange",d),m},[e]),o=b.useCallback((u,d)=>{const f=e.current.getActiveStrategy(e5[u]);if(f==null)throw new Error("Can't apply a strategy processor before defining an active strategy");const m=n.current[u];if(!m||!m[f])throw new Error(`No processor found for processor "${u}" on strategy "${f}"`);const g=m[f];return g(d)},[e]),i=b.useCallback(u=>{const f=Array.from(t.current.entries()).find(([,m])=>m.group!==u?!1:m.isAvailable());return(f==null?void 0:f[0])??gh},[]),a=b.useCallback((u,d,f)=>{t.current.set(d,{group:u,isAvailable:f}),e.current.publishEvent("strategyAvailabilityChange")},[e]);mn(e,{registerStrategyProcessor:r,applyStrategyProcessor:o,getActiveStrategy:i,setStrategyAvailability:a},"private")},lfe=e=>{const t=b.useRef({}),n=b.useCallback(l=>{t.current[l.stateId]=l},[]),r=b.useCallback((l,u)=>{let d;if(zoe(l)?d=l(e.current.state):d=l,e.current.state===d)return!1;const f={current:{state:d}};let m=!1;const g=[];if(Object.keys(t.current).forEach(w=>{const C=t.current[w],S=C.stateSelector(e),E=C.stateSelector(f);E!==S&&(g.push({stateId:C.stateId,hasPropChanged:E!==C.propModel}),C.propModel!==void 0&&E!==C.propModel&&(m=!0))}),g.length>1)throw new Error(`You're not allowed to update several sub-state in one transaction. You already updated ${g[0].stateId}, therefore, you're not allowed to update ${g.map(w=>w.stateId).join(", ")} in the same transaction.`);if(m||(e.current.state=d,e.current.publishEvent("stateChange",d),e.current.store.update(d)),g.length===1){const{stateId:w,hasPropChanged:C}=g[0],S=t.current[w],E=S.stateSelector(f);S.propOnChange&&C&&S.propOnChange(E,{reason:u,api:e.current}),m||e.current.publishEvent(S.changeEvent,E,{reason:u})}return!m},[e]),o=b.useCallback((l,u,d)=>e.current.setState(f=>z({},f,{[l]:u(f[l])}),d),[e]),i={setState:r},a={updateControlState:o,registerControlState:n};mn(e,i,"public"),mn(e,a,"private")},cfe=(e,t)=>z({},e,{props:{getRowId:t.getRowId}}),ufe=(e,t)=>{b.useEffect(()=>{e.current.setState(n=>z({},n,{props:{getRowId:t.getRowId}}))},[e,t.getRowId])},dfe=(e,t)=>{Jde(e),ufe(e,t),efe(e),rfe(e,t),lfe(e),afe(e),sfe(e),ofe(e,t),e.current.register("private",{rootProps:t})},Fo=(e,t,n)=>{const r=b.useRef(!1);r.current||(t.current.state=e(t.current.state,n,t),r.current=!0)};function ZI(e,t){if(e==null)return"";const n=typeof e=="string"?e:`${e}`;if(t.shouldAppendQuotes||t.escapeFormulas){const r=n.replace(/"/g,'""');return t.escapeFormulas&&["=","+","-","@","	","\r"].includes(r[0])?`"'${r}"`:[t.delimiter,`
`,"\r",'"'].some(o=>n.includes(o))?`"${r}"`:r}return n}const HN=(e,t)=>{var i,a;const{csvOptions:n,ignoreValueFormatter:r}=t;let o;if(r){const l=e.colDef.type;l==="number"?o=String(e.value):l==="date"||l==="dateTime"?o=(i=e.value)==null?void 0:i.toISOString():typeof((a=e.value)==null?void 0:a.toString)=="function"?o=e.value.toString():o=e.value}else o=e.formattedValue;return ZI(o,n)};class QI{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 ffe=({id:e,columns:t,getCellParams:n,csvOptions:r,ignoreValueFormatter:o})=>{const i=new QI({csvOptions:r});return t.forEach(a=>{const l=n(e,a.field);i.addValue(HN(l,{ignoreValueFormatter:o,csvOptions:r}))}),i.getRowString()};function pfe(e){const{columns:t,rowIds:n,csvOptions:r,ignoreValueFormatter:o,apiRef:i}=e,a=n.reduce((m,g)=>`${m}${ffe({id:g,columns:t,getCellParams:i.current.getCellParams,ignoreValueFormatter:o,csvOptions:r})}\r
`,"").trim();if(!r.includeHeaders)return a;const l=t.filter(m=>m.field!==X0.field),u=[];if(r.includeColumnGroupsHeaders){const m=i.current.getAllGroupDetails();let g=0;const w=l.reduce((C,S)=>{const E=i.current.getColumnGroupPath(S.field);return C[S.field]=E,g=Math.max(g,E.length),C},{});for(let C=0;C<g;C+=1){const S=new QI({csvOptions:r,sanitizeCellValue:ZI});u.push(S),l.forEach(E=>{const T=(w[E.field]||[])[C],I=m[T];S.addValue(I?I.headerName||I.groupId:"")})}}const d=new QI({csvOptions:r,sanitizeCellValue:ZI});return l.forEach(m=>{d.addValue(m.headerName||m.field)}),u.push(d),`${`${u.map(m=>m.getRowString()).join(`\r
`)}\r
`}${a}`.trim()}function t5(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 r=window.getSelection();r.removeAllRanges(),r.addRange(n);try{document.execCommand("copy")}finally{document.body.removeChild(t)}}function hfe(e){navigator.clipboard?navigator.clipboard.writeText(e).catch(()=>{t5(e)}):t5(e)}function mfe(e){var t;return!!((t=window.getSelection())!=null&&t.toString()||e&&(e.selectionEnd||0)-(e.selectionStart||0)>0)}const gfe=(e,t)=>{const n=t.ignoreValueFormatterDuringExport,r=(typeof n=="object"?n==null?void 0:n.clipboardExport:n)||!1,o=t.clipboardCopyCellDelimiter,i=b.useCallback(a=>{if(!Lce(a)||mfe(a.target))return;let l="";if(fT(e)>0)l=e.current.getDataAsCsv({includeHeaders:!1,delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1});else{const d=ga(e);if(d){const f=e.current.getCellParams(d.id,d.field);l=HN(f,{csvOptions:{delimiter:o,shouldAppendQuotes:!1,escapeFormulas:!1},ignoreValueFormatter:r})}}l=e.current.unstable_applyPipeProcessors("clipboardCopy",l),l&&(hfe(l),e.current.publishEvent("clipboardCopy",l))},[e,r,o]);gN(e,()=>e.current.rootElementRef.current,"keydown",i),fr(e,"clipboardCopy",t.onClipboardCopy)},bfe=e=>z({},e,{columnMenu:{open:!1}}),yfe=e=>{const t=Ho(e,"useGridColumnMenu"),n=b.useCallback(a=>{const l=VS(e),u={open:!0,field:a};(u.open!==l.open||u.field!==l.field)&&(e.current.setState(f=>f.columnMenu.open&&f.columnMenu.field===a?f:(t.debug("Opening Column Menu"),z({},f,{columnMenu:{open:!0,field:a}}))),e.current.hidePreferences())},[e,t]),r=b.useCallback(()=>{const a=VS(e);if(a.field){const d=Tu(e),f=cl(e),m=fc(e);let g=a.field;if(d[g]||(g=m[0]),f[g]===!1){const w=m.filter(S=>S===g?!0:f[S]!==!1),C=w.indexOf(g);g=w[C+1]||w[C-1]}e.current.setColumnHeaderFocus(g)}const l={open:!1,field:void 0};(l.open!==a.open||l.field!==a.field)&&e.current.setState(d=>(t.debug("Hiding Column Menu"),z({},d,{columnMenu:l})))},[e,t]),o=b.useCallback(a=>{t.debug("Toggle Column Menu");const l=VS(e);!l.open||l.field!==a?n(a):r()},[e,t,n,r]);mn(e,{showColumnMenu:n,hideColumnMenu:r,toggleColumnMenu:o},"public"),Mt(e,"columnResizeStart",r),Mt(e,"virtualScrollerWheel",e.current.hideColumnMenu),Mt(e,"virtualScrollerTouchMove",e.current.hideColumnMenu)},vfe=(e,t,n)=>{var o,i,a;const r=Bg({apiRef:n,columnsToUpsert:t.columns,initialState:(o=t.initialState)==null?void 0:o.columns,columnVisibilityModel:t.columnVisibilityModel??((a=(i=t.initialState)==null?void 0:i.columns)==null?void 0:a.columnVisibilityModel)??{},keepOnlyColumnsToUpsert:!0});return z({},e,{columns:r,pinnedColumns:e.pinnedColumns??v2})};function xfe(e,t){var _,$;const n=Ho(e,"useGridColumns"),r=b.useRef(t.columns);e.current.registerControlState({stateId:"visibleColumns",propModel:t.columnVisibilityModel,propOnChange:t.onColumnVisibilityModelChange,stateSelector:cl,changeEvent:"columnVisibilityModelChange"});const o=b.useCallback(B=>{n.debug("Updating columns state."),e.current.setState(n5(B)),e.current.publishEvent("columnsChange",B.orderedFields)},[n,e]),i=b.useCallback(B=>Tu(e)[B],[e]),a=b.useCallback(()=>Ts(e),[e]),l=b.useCallback(()=>ro(e),[e]),u=b.useCallback((B,V=!0)=>(V?ro(e):Ts(e)).findIndex(G=>G.field===B),[e]),d=b.useCallback(B=>{const V=u(B);return of(e)[V]},[e,u]),f=b.useCallback(B=>{var q,G;cl(e)!==B&&(e.current.setState(N=>z({},N,{columns:Bg({apiRef:e,columnsToUpsert:[],initialState:void 0,columnVisibilityModel:B,keepOnlyColumnsToUpsert:!1})})),(G=(q=e.current).updateRenderContext)==null||G.call(q))},[e]),m=b.useCallback(B=>{if(hh(e)){e.current.updateNonPivotColumns(B);return}const V=Bg({apiRef:e,columnsToUpsert:B,initialState:void 0,keepOnlyColumnsToUpsert:!1,updateInitialVisibilityModel:!0});o(V)},[e,o]),g=b.useCallback((B,V)=>{const q=cl(e),G=q[B]??!0;if(V!==G){const N=z({},q,{[B]:V});e.current.setColumnVisibilityModel(N)}},[e]),w=b.useCallback(B=>fc(e).findIndex(q=>q===B),[e]),C=b.useCallback((B,V)=>{const q=fc(e),G=w(B);if(G===V)return;n.debug(`Moving column ${B} to index ${V}`);const N=[...q],H=N.splice(G,1)[0];N.splice(V,0,H),o(z({},fl(e),{orderedFields:N}));const Y={column:e.current.getColumn(B),targetIndex:e.current.getColumnIndexRelativeToVisibleColumns(B),oldIndex:G};e.current.publishEvent("columnIndexChange",Y)},[e,n,o,w]),S=b.useCallback((B,V)=>{n.debug(`Updating column ${B} width to ${V}`);const q=fl(e),G=q.lookup[B],N=z({},G,{width:V,hasBeenResized:!0});o(qI(z({},q,{lookup:z({},q.lookup,{[B]:N})}),e.current.getRootDimensions())),e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(B),colDef:N,width:V})},[e,n,o]),E={getColumn:i,getAllColumns:a,getColumnIndex:u,getColumnPosition:d,getVisibleColumns:l,getColumnIndexRelativeToVisibleColumns:w,updateColumns:m,setColumnVisibilityModel:f,setColumnVisibility:g,setColumnWidth:S},T={setColumnIndex:C};mn(e,E,"public"),mn(e,T,t.signature===dl.DataGrid?"private":"public");const I=b.useCallback((B,V)=>{var Q,W;const q={},G=cl(e);(!V.exportOnlyDirtyModels||t.columnVisibilityModel!=null||Object.keys(((W=(Q=t.initialState)==null?void 0:Q.columns)==null?void 0:W.columnVisibilityModel)??{}).length>0||Object.keys(G).length>0)&&(q.columnVisibilityModel=G),q.orderedFields=fc(e);const H=Ts(e),Y={};return H.forEach(K=>{if(K.hasBeenResized){const J={};hN.forEach(ae=>{let ce=K[ae];ce===1/0&&(ce=-1),J[ae]=ce}),Y[K.field]=J}}),Object.keys(Y).length>0&&(q.dimensions=Y),z({},B,{columns:q})},[e,t.columnVisibilityModel,(_=t.initialState)==null?void 0:_.columns]),k=b.useCallback((B,V)=>{var H;const q=(H=V.stateToRestore.columns)==null?void 0:H.columnVisibilityModel,G=V.stateToRestore.columns;if(q==null&&G==null)return B;const N=Bg({apiRef:e,columnsToUpsert:[],initialState:G,columnVisibilityModel:q,keepOnlyColumnsToUpsert:!1});return e.current.setState(n5(N)),G!=null&&e.current.publishEvent("columnsChange",N.orderedFields),B},[e]),R=b.useCallback((B,V)=>{var q;if(V===Qi.columns){const G=t.slots.columnsPanel;return y.jsx(G,z({},(q=t.slotProps)==null?void 0:q.columnsPanel))}return B},[t.slots.columnsPanel,($=t.slotProps)==null?void 0:$.columnsPanel]),P=b.useCallback(B=>{const V=hh(e);return t.disableColumnSelector||V?B:[...B,"columnMenuColumnsItem"]},[t.disableColumnSelector,e]);Yr(e,"columnMenu",P),Yr(e,"exportState",I),Yr(e,"restoreState",k),Yr(e,"preferencePanel",R);const O=b.useRef(null);Mt(e,"viewportInnerSizeChange",B=>{if(O.current!==B.width){if(O.current=B.width,!ro(e).some(q=>q.flex&&q.flex>0))return;o(qI(fl(e),e.current.getRootDimensions()))}});const F=b.useCallback(()=>{n.info("Columns pipe processing have changed, regenerating the columns");const B=Bg({apiRef:e,columnsToUpsert:[],initialState:void 0,keepOnlyColumnsToUpsert:!1});o(B)},[e,n,o]);kO(e,"hydrateColumns",F);const D=b.useRef(!0);b.useEffect(()=>{if(D.current){D.current=!1;return}if(n.info(`GridColumns have changed, new length ${t.columns.length}`),r.current===t.columns)return;const B=Bg({apiRef:e,initialState:void 0,columnsToUpsert:t.columns,keepOnlyColumnsToUpsert:!0,updateInitialVisibilityModel:!0});r.current=t.columns,o(B)},[n,e,o,t.columns]),b.useEffect(()=>{t.columnVisibilityModel!==void 0&&e.current.setColumnVisibilityModel(t.columnVisibilityModel)},[e,n,t.columnVisibilityModel])}function n5(e){return t=>z({},t,{columns:e})}const wfe=(e,t)=>{var n;return z({},e,{density:((n=t.initialState)==null?void 0:n.density)??t.density??"standard"})},Cfe=(e,t)=>{var l;const n=Ho(e,"useDensity");e.current.registerControlState({stateId:"density",propModel:t.density,propOnChange:t.onDensityChange,stateSelector:Yg,changeEvent:"densityChange"});const o={setDensity:Vt(u=>{Yg(e)!==u&&(n.debug(`Set grid density to ${u}`),e.current.setState(f=>z({},f,{density:u})))})};mn(e,o,"public");const i=b.useCallback((u,d)=>{var g;const f=Yg(e);return!d.exportOnlyDirtyModels||t.density!=null||((g=t.initialState)==null?void 0:g.density)!=null?z({},u,{density:f}):u},[e,t.density,(l=t.initialState)==null?void 0:l.density]),a=b.useCallback((u,d)=>{var m;const f=(m=d.stateToRestore)!=null&&m.density?d.stateToRestore.density:Yg(e);return e.current.setState(g=>z({},g,{density:f})),u},[e]);Yr(e,"exportState",i),Yr(e,"restoreState",a),b.useEffect(()=>{t.density&&e.current.setDensity(t.density)},[e,t.density])};function Sfe(e,t="csv",n=document.title||"untitled"){const r=`${n}.${t}`;if("download"in HTMLAnchorElement.prototype){const o=URL.createObjectURL(e),i=document.createElement("a");i.href=o,i.download=r,i.click(),setTimeout(()=>{URL.revokeObjectURL(o)});return}throw new Error("MUI X: exportAs not supported.")}const UN=({apiRef:e,options:t})=>{const n=Ts(e);return t.fields?t.fields.reduce((o,i)=>{const a=n.find(l=>l.field===i);return a&&o.push(a),o},[]):(t.allColumns?n:ro(e)).filter(o=>!o.disableExport)},GN=({apiRef:e})=>{var u,d;const t=X9(e),n=hi(e),r=fT(e),o=t.filter(f=>n[f].type!=="footer"),i=W0(e),a=((u=i==null?void 0:i.top)==null?void 0:u.map(f=>f.id))||[],l=((d=i==null?void 0:i.bottom)==null?void 0:d.map(f=>f.id))||[];if(o.unshift(...a),o.push(...l),r>0){const f=J9(e);return o.filter(m=>f.has(m))}return o},Efe=(e,t)=>{const n=Ho(e,"useGridCsvExport"),r=t.ignoreValueFormatterDuringExport,o=(typeof r=="object"?r==null?void 0:r.csvExport:r)||!1,i=b.useCallback((d={})=>{n.debug("Get data as CSV");const f=UN({apiRef:e,options:d}),g=(d.getRowsToExport??GN)({apiRef:e});return pfe({columns:f,rowIds:g,csvOptions:{delimiter:d.delimiter||",",shouldAppendQuotes:d.shouldAppendQuotes??!0,includeHeaders:d.includeHeaders??!0,includeColumnGroupsHeaders:d.includeColumnGroupsHeaders??!0,escapeFormulas:d.escapeFormulas??!0},ignoreValueFormatter:o,apiRef:e})},[n,e,o]),a=b.useCallback(d=>{n.debug("Export data as CSV");const f=i(d),m=new Blob([d!=null&&d.utf8WithBom?new Uint8Array([239,187,191]):"",f],{type:"text/csv"});Sfe(m,"csv",d==null?void 0:d.fileName)},[n,i]);mn(e,{getDataAsCsv:i,exportDataAsCsv:a},"public");const u=b.useCallback((d,f)=>{var m;return(m=f.csvOptions)!=null&&m.disableToolbarButton?d:[...d,{component:y.jsx(Vue,{options:f.csvOptions}),componentName:"csvExport"}]},[]);Yr(e,"exportMenu",u)};function Tfe(e,t){const n=[],r=t.querySelectorAll("style, link[rel='stylesheet']");for(let o=0;o<r.length;o+=1){const i=r[o];if(i.tagName==="STYLE"){const a=e.createElement(i.tagName),l=i.sheet;if(l){let u="";for(let d=0;d<l.cssRules.length;d+=1)typeof l.cssRules[d].cssText=="string"&&(u+=`${l.cssRules[d].cssText}\r
`);a.appendChild(e.createTextNode(u)),e.head.appendChild(a)}}else if(i.getAttribute("href")){const a=e.createElement(i.tagName);for(let l=0;l<i.attributes.length;l+=1){const u=i.attributes[l];u&&a.setAttribute(u.nodeName,u.nodeValue||"")}n.push(new Promise(l=>{a.addEventListener("load",()=>l())})),e.head.appendChild(a)}}return n}const qS=(e,t,n)=>{let r=e.paginationModel;const o=e.rowCount,i=(n==null?void 0:n.pageSize)??r.pageSize,a=(n==null?void 0:n.page)??r.page,l=nN(o,i,a);n&&((n==null?void 0:n.page)!==r.page||(n==null?void 0:n.pageSize)!==r.pageSize)&&(r=n);const u=i===-1?0:qie(r.page,l);return u!==r.page&&(r=z({},r,{page:u})),oN(r.pageSize,t),r},Mfe=(e,t)=>{var I,k;const n=Ho(e,"useGridPaginationModel"),r=Xe(e,G0),o=b.useRef(No(e)),i=Math.floor(t.rowHeight*r);e.current.registerControlState({stateId:"paginationModel",propModel:t.paginationModel,propOnChange:t.onPaginationModelChange,stateSelector:Zo,changeEvent:"paginationModelChange"});const a=b.useCallback(R=>{const P=Zo(e);R!==P.page&&(n.debug(`Setting page to ${R}`),e.current.setPaginationModel({page:R,pageSize:P.pageSize}))},[e,n]),l=b.useCallback(R=>{const P=Zo(e);R!==P.pageSize&&(n.debug(`Setting page size to ${R}`),e.current.setPaginationModel({pageSize:R,page:P.page}))},[e,n]),u=b.useCallback(R=>{const P=Zo(e);R!==P&&(n.debug("Setting 'paginationModel' to",R),e.current.setState(O=>z({},O,{pagination:z({},O.pagination,{paginationModel:qS(O.pagination,t.signature,R)})}),"setPaginationModel"))},[e,n,t.signature]);mn(e,{setPage:a,setPageSize:l,setPaginationModel:u},"public");const f=b.useCallback((R,P)=>{var F,D;const O=Zo(e);return!P.exportOnlyDirtyModels||t.paginationModel!=null||((D=(F=t.initialState)==null?void 0:F.pagination)==null?void 0:D.paginationModel)!=null||O.page!==0&&O.pageSize!==Wie(t.autoPageSize)?z({},R,{pagination:z({},R.pagination,{paginationModel:O})}):R},[e,t.paginationModel,(k=(I=t.initialState)==null?void 0:I.pagination)==null?void 0:k.paginationModel,t.autoPageSize]),m=b.useCallback((R,P)=>{var j,F;const O=(j=P.stateToRestore.pagination)!=null&&j.paginationModel?z({},rN(t.autoPageSize),(F=P.stateToRestore.pagination)==null?void 0:F.paginationModel):Zo(e);return e.current.setState(D=>z({},D,{pagination:z({},D.pagination,{paginationModel:qS(D.pagination,t.signature,O)})}),"stateRestorePreProcessing"),R},[e,t.autoPageSize,t.signature]);Yr(e,"exportState",f),Yr(e,"restoreState",m);const g=()=>{var P;const R=Zo(e);(P=e.current.virtualScrollerRef)!=null&&P.current&&e.current.scrollToIndexes({rowIndex:R.page*R.pageSize})},w=b.useCallback(()=>{if(!t.autoPageSize)return;const R=e.current.getRootDimensions(),P=Math.max(1,Math.floor(R.viewportInnerSize.height/i));e.current.setPageSize(P)},[e,t.autoPageSize,i]),C=b.useCallback(R=>{if(R==null)return;const P=Zo(e);if(P.page===0)return;const O=sN(e);P.page>O-1&&e.current.setPage(Math.max(0,O-1))},[e]),S=b.useCallback(()=>{Zo(e).page!==0&&e.current.setPage(0),e.current.getScrollPosition().top!==0&&e.current.scroll({top:0})},[e]),E=b.useCallback(R=>{const P=z({},R,{items:hO(e)});Ya(P,o.current)||(o.current=P,S())},[e,S]);Mt(e,"viewportInnerSizeChange",w),Mt(e,"paginationModelChange",g),Mt(e,"rowCountChange",C),Mt(e,"sortModelChange",S),Mt(e,"filterModelChange",E);const T=b.useRef(!0);b.useEffect(()=>{if(T.current){T.current=!1;return}t.pagination&&e.current.setState(R=>z({},R,{pagination:z({},R.pagination,{paginationModel:qS(R.pagination,t.signature,t.paginationModel)})}))},[e,t.paginationModel,t.signature,t.pagination]),b.useEffect(()=>{e.current.setState(R=>{const P=t.pagination===!0;return R.pagination.paginationMode===t.paginationMode||R.pagination.enabled===P?R:z({},R,{pagination:z({},R.pagination,{paginationMode:t.paginationMode,enabled:t.pagination===!0})})})},[e,t.paginationMode,t.pagination]),b.useEffect(w,[w])};function kfe(){return new Promise(e=>{requestAnimationFrame(()=>{e()})})}function Pfe(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 Ife=(e,t)=>{const n=e.current.rootElementRef.current!==null,r=Ho(e,"useGridPrintExport"),o=b.useRef(null),i=b.useRef(null),a=b.useRef({}),l=b.useRef([]),u=b.useRef(null);b.useEffect(()=>{o.current=io(e.current.rootElementRef.current)},[e,n]);const d=b.useCallback((E,T,I)=>new Promise(k=>{const R=UN({apiRef:e,options:{fields:E,allColumns:T}}).map(j=>j.field),P=Ts(e),O={};P.forEach(j=>{O[j.field]=R.includes(j.field)}),I&&(O[X0.field]=!0),e.current.setColumnVisibilityModel(O),k()}),[e]),f=b.useCallback(E=>{const I=E({apiRef:e}).reduce((k,R)=>{const P=e.current.getRow(R);return P[m0]||k.push(P),k},[]);e.current.setRows(I)},[e]),m=b.useCallback((E,T)=>{var G,N,H;const I=z({copyStyles:!0,hideToolbar:!1,hideFooter:!1,includeCheckboxes:!1},T),k=E.contentDocument;if(!k)return;const R=Zx(e),P=e.current.rootElementRef.current,O=P.cloneNode(!0),j=O.querySelector(`.${ee.main}`);j.style.overflow="visible",O.style.contain="size";let F=((G=P.querySelector(`.${ee.toolbarContainer}`))==null?void 0:G.offsetHeight)||0,D=((N=P.querySelector(`.${ee.footerContainer}`))==null?void 0:N.offsetHeight)||0;const _=O.querySelector(`.${ee.footerContainer}`);I.hideToolbar&&((H=O.querySelector(`.${ee.toolbarContainer}`))==null||H.remove(),F=0),I.hideFooter&&_&&(_.remove(),D=0);const $=R.currentPageTotalHeight+vO(e,t)+F+D;O.style.height=`${$}px`,O.style.boxSizing="content-box",!I.hideFooter&&_&&(_.style.position="absolute",_.style.width="100%",_.style.top=`${$-D}px`);const B=document.createElement("div");B.appendChild(O),k.body.style.marginTop="0px",k.body.innerHTML=B.innerHTML;const V=typeof I.pageStyle=="function"?I.pageStyle():I.pageStyle;if(typeof V=="string"){const Y=k.createElement("style");Y.appendChild(k.createTextNode(V)),k.head.appendChild(Y)}I.bodyClassName&&k.body.classList.add(...I.bodyClassName.split(" "));let q=[];if(I.copyStyles){const Y=P.getRootNode(),Q=Y.constructor.name==="ShadowRoot"?Y:o.current;q=Tfe(k,Q)}Promise.all(q).then(()=>{E.contentWindow.print()})},[e,o,t]),g=b.useCallback(E=>{var T,I;o.current.body.removeChild(E),e.current.restoreState(i.current||{}),(I=(T=i.current)==null?void 0:T.columns)!=null&&I.columnVisibilityModel||e.current.setColumnVisibilityModel(a.current),e.current.setState(k=>z({},k,{virtualization:u.current})),e.current.setRows(l.current),i.current=null,a.current={},l.current=[]},[e]),C={exportDataAsPrint:b.useCallback(async E=>{if(r.debug("Export data as Print"),!e.current.rootElementRef.current)throw new Error("MUI X: No grid root element available.");if(i.current=e.current.exportState(),a.current=cl(e),l.current=e.current.getSortedRows().filter(I=>!I[m0]),t.pagination){const k={page:0,pageSize:fO(e)};e.current.setState(R=>z({},R,{pagination:z({},R.pagination,{paginationModel:qS(R.pagination,"DataGridPro",k)})}))}u.current=e.current.state.virtualization,e.current.setState(I=>z({},I,{virtualization:z({},I.virtualization,{enabled:!1,enabledForColumns:!1})})),await d(E==null?void 0:E.fields,E==null?void 0:E.allColumns,E==null?void 0:E.includeCheckboxes),f((E==null?void 0:E.getRowsToExport)??GN),await kfe();const T=Pfe(E==null?void 0:E.fileName);T.onload=()=>{m(T,E),T.contentWindow.matchMedia("print").addEventListener("change",k=>{k.matches===!1&&g(T)})},o.current.body.appendChild(T)},[t,r,e,m,g,d,f])};mn(e,C,"public");const S=b.useCallback((E,T)=>{var I;return(I=T.printOptions)!=null&&I.disableToolbarButton?E:[...E,{component:y.jsx(Wue,{options:T.printOptions}),componentName:"printExport"}]},[]);Yr(e,"exportMenu",S)},Afe=(e,t,n)=>{var o,i;const r=t.filterModel??((i=(o=t.initialState)==null?void 0:o.filter)==null?void 0:i.filterModel)??lx();return z({},e,{filter:z({filterModel:lO(r,t.disableMultipleColumnsFiltering,n)},R9),visibleRowsLookup:{}})},Rfe=e=>e.filteredRowsLookup;function r5(e,t){return e.current.applyStrategyProcessor("visibleRowsLookupCreation",{tree:t.rows.tree,filteredRowsLookup:t.filter.filteredRowsLookup})}function Ofe(){return nO(Object.values)}const _fe=(e,t)=>{var F,D,_;const n=Ho(e,"useGridFilter");e.current.registerControlState({stateId:"filter",propModel:t.filterModel,propOnChange:t.onFilterModelChange,stateSelector:No,changeEvent:"filterModelChange"});const r=b.useCallback(()=>{e.current.setState($=>{const B=No(e),V=e.current.getFilterState(B),q=z({},$,{filter:z({},$.filter,V)}),G=r5(e,q);return z({},q,{visibleRowsLookup:G})}),e.current.publishEvent("filteredRowsSet")},[e]),o=b.useCallback(($,B)=>B==null||B.filterable===!1||t.disableColumnFilter?$:[...$,"columnMenuFilterItem"],[t.disableColumnFilter]),i=b.useCallback($=>{const B=No(e),V=[...B.items],q=V.findIndex(G=>G.id===$.id);q===-1?V.push($):V[q]=$,e.current.setFilterModel(z({},B,{items:V}),"upsertFilterItem")},[e]),a=b.useCallback($=>{const B=No(e),V=[...B.items];$.forEach(q=>{const G=V.findIndex(N=>N.id===q.id);G===-1?V.push(q):V[G]=q}),e.current.setFilterModel(z({},B,{items:V}),"upsertFilterItems")},[e]),l=b.useCallback($=>{const B=No(e),V=B.items.filter(q=>q.id!==$.id);V.length!==B.items.length&&e.current.setFilterModel(z({},B,{items:V}),"deleteFilterItem")},[e]),u=b.useCallback(($,B,V)=>{if(n.debug("Displaying filter panel"),$){const q=No(e),G=q.items.filter(Q=>{var ae;if(Q.value!==void 0)return!(Array.isArray(Q.value)&&Q.value.length===0);const K=(ae=e.current.getColumn(Q.field).filterOperators)==null?void 0:ae.find(ce=>ce.value===Q.operator);return!(typeof(K==null?void 0:K.requiresFilterValue)>"u"?!0:K==null?void 0:K.requiresFilterValue)});let N;const H=G.find(Q=>Q.field===$),Y=e.current.getColumn($);H?N=G:t.disableMultipleColumnsFiltering?N=[WI({field:$,operator:Y.filterOperators[0].value},e)]:N=[...G,WI({field:$,operator:Y.filterOperators[0].value},e)],e.current.setFilterModel(z({},q,{items:N}))}e.current.showPreferences(Qi.filters,B,V)},[e,n,t.disableMultipleColumnsFiltering]),d=b.useCallback(()=>{n.debug("Hiding filter panel"),e.current.hidePreferences()},[e,n]),f=b.useCallback($=>{const B=No(e);B.logicOperator!==$&&e.current.setFilterModel(z({},B,{logicOperator:$}),"changeLogicOperator")},[e]),m=b.useCallback($=>{const B=No(e);Ya(B.quickFilterValues,$)||e.current.setFilterModel(z({},B,{quickFilterValues:[...$]}))},[e]),g=b.useCallback(($,B)=>{No(e)!==$&&(n.debug("Setting filter model"),e.current.updateControlState("filter",S3($,t.disableMultipleColumnsFiltering,e),B),e.current.unstable_applyFilters())},[e,n,t.disableMultipleColumnsFiltering]),w=b.useCallback($=>{const B=lO($,t.disableMultipleColumnsFiltering,e),V=t.filterMode==="client"?Qoe(B,e,t.disableEval):null,q=e.current.applyStrategyProcessor("filtering",{isRowMatchingFilters:V,filterModel:B??lx()});return z({},q,{filterModel:B})},[t.disableMultipleColumnsFiltering,t.filterMode,t.disableEval,e]),C={setFilterLogicOperator:f,unstable_applyFilters:r,deleteFilterItem:l,upsertFilterItem:i,upsertFilterItems:a,setFilterModel:g,showFilterPanel:u,hideFilterPanel:d,setQuickFilterValues:m,ignoreDiacritics:t.ignoreDiacritics,getFilterState:w};mn(e,C,"public");const S=b.useCallback(($,B)=>{var G,N;const V=No(e);return V.items.forEach(H=>{delete H.fromInput}),!B.exportOnlyDirtyModels||t.filterModel!=null||((N=(G=t.initialState)==null?void 0:G.filter)==null?void 0:N.filterModel)!=null||!Ya(V,lx())?z({},$,{filter:{filterModel:V}}):$},[e,t.filterModel,(D=(F=t.initialState)==null?void 0:F.filter)==null?void 0:D.filterModel]),E=b.useCallback(($,B)=>{var q;const V=(q=B.stateToRestore.filter)==null?void 0:q.filterModel;return V==null?$:(e.current.updateControlState("filter",S3(V,t.disableMultipleColumnsFiltering,e),"restoreState"),z({},$,{callbacks:[...$.callbacks,e.current.unstable_applyFilters]}))},[e,t.disableMultipleColumnsFiltering]),T=b.useCallback(($,B)=>{var V;if(B===Qi.filters){const q=t.slots.filterPanel;return y.jsx(q,z({},(V=t.slotProps)==null?void 0:V.filterPanel))}return $},[t.slots.filterPanel,(_=t.slotProps)==null?void 0:_.filterPanel]),{getRowId:I}=t,k=_s(Ofe),R=b.useCallback($=>{var W;if(t.filterMode!=="client"||!$.isRowMatchingFilters||!$.filterModel.items.length&&!((W=$.filterModel.quickFilterValues)!=null&&W.length))return R9;const B=xs(e),V={},{isRowMatchingFilters:q}=$,G={},N={passingFilterItems:null,passingQuickFilterValues:null},H=k.current(e.current.state.rows.dataRowIdToModelLookup);for(let K=0;K<H.length;K+=1){const J=H[K],ae=I?I(J):J.id;q(J,void 0,N);const ce=eie([N.passingFilterItems],[N.passingQuickFilterValues],$.filterModel,e,G);ce||(V[ae]=ce)}const Y="auto-generated-group-footer-root";return B[Y]&&(V[Y]=!0),{filteredRowsLookup:V,filteredChildrenCountLookup:{},filteredDescendantCountLookup:{}}},[e,t.filterMode,I,k]);Yr(e,"columnMenu",o),Yr(e,"exportState",S),Yr(e,"restoreState",E),Yr(e,"preferencePanel",T),fx(e,gh,"filtering",R),fx(e,gh,"visibleRowsLookupCreation",Rfe);const P=b.useCallback(()=>{n.debug("onColUpdated - GridColumns changed, applying filters");const $=No(e),B=Tu(e),V=$.items.filter(q=>q.field&&B[q.field]);V.length<$.items.length&&e.current.setFilterModel(z({},$,{items:V}))},[e,n]),O=b.useCallback($=>{$==="filtering"&&e.current.unstable_applyFilters()},[e]),j=b.useCallback(()=>{e.current.setState($=>z({},$,{visibleRowsLookup:r5(e,$)}))},[e]);Mt(e,"rowsSet",r),Mt(e,"columnsChange",P),Mt(e,"activeStrategyProcessorChange",O),Mt(e,"rowExpansionChange",j),Mt(e,"columnVisibilityModelChange",()=>{const $=No(e);$.quickFilterValues&&F9($)&&e.current.unstable_applyFilters()}),Xx(()=>{e.current.unstable_applyFilters()}),kn(()=>{t.filterModel!==void 0&&e.current.setFilterModel(t.filterModel)},[e,n,t.filterModel])},Dfe=e=>z({},e,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},tabIndex:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}),Lfe=(e,t)=>{const n=Ho(e,"useGridFocus"),r=b.useRef(null),o=e.current.rootElementRef.current!==null,i=b.useCallback((F,D)=>{F&&e.current.getRow(F.id)&&e.current.publishEvent("cellFocusOut",e.current.getCellParams(F.id,F.field),D)},[e]),a=b.useCallback((F,D)=>{const _=ga(e);(_==null?void 0:_.id)===F&&(_==null?void 0:_.field)===D||(e.current.setState($=>(n.debug(`Focusing on cell with id=${F} and field=${D}`),z({},$,{tabIndex:{cell:{id:F,field:D},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null},focus:{cell:{id:F,field:D},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))),e.current.getRow(F)&&(_&&i(_,{}),e.current.publishEvent("cellFocusIn",e.current.getCellParams(F,D))))},[e,n,i]),l=b.useCallback((F,D={})=>{const _=ga(e);i(_,D),e.current.setState($=>(n.debug(`Focusing on column header with colIndex=${F}`),z({},$,{tabIndex:{columnHeader:{field:F},columnHeaderFilter:null,cell:null,columnGroupHeader:null},focus:{columnHeader:{field:F},columnHeaderFilter:null,cell:null,columnGroupHeader:null}})))},[e,n,i]),u=b.useCallback((F,D={})=>{const _=ga(e);i(_,D),e.current.setState($=>(n.debug(`Focusing on column header filter with colIndex=${F}`),z({},$,{tabIndex:{columnHeader:null,columnHeaderFilter:{field:F},cell:null,columnGroupHeader:null},focus:{columnHeader:null,columnHeaderFilter:{field:F},cell:null,columnGroupHeader:null}})))},[e,n,i]),d=b.useCallback((F,D,_={})=>{const $=ga(e);$&&e.current.publishEvent("cellFocusOut",e.current.getCellParams($.id,$.field),_),e.current.setState(B=>z({},B,{tabIndex:{columnGroupHeader:{field:F,depth:D},columnHeader:null,columnHeaderFilter:null,cell:null},focus:{columnGroupHeader:{field:F,depth:D},columnHeader:null,columnHeaderFilter:null,cell:null}}))},[e]),f=b.useCallback(()=>x2(e),[e]),m=b.useCallback((F,D,_)=>{let $=e.current.getColumnIndex(D);const B=ro(e),V=Hd(e,{pagination:t.pagination,paginationMode:t.paginationMode}),q=W0(e),G=[].concat(q.top||[],V.rows,q.bottom||[]);let N=G.findIndex(W=>W.id===F);_==="right"?$+=1:_==="left"?$-=1:N+=1,$>=B.length?(N+=1,N<G.length&&($=0)):$<0&&(N-=1,N>=0&&($=B.length-1)),N=qa(N,0,G.length-1);const H=G[N];if(!H)return;const Y=e.current.unstable_getCellColSpanInfo(H.id,$);Y&&Y.spannedByColSpan&&(_==="left"||_==="below"?$=Y.leftVisibleCellIndex:_==="right"&&($=Y.rightVisibleCellIndex)),$=qa($,0,B.length-1);const Q=B[$];e.current.setCellFocus(H.id,Q.field)},[e,t.pagination,t.paginationMode]),g=b.useCallback(({id:F,field:D})=>{e.current.setCellFocus(F,D)},[e]),w=b.useCallback((F,D)=>{D.key==="Enter"||D.key==="Tab"||D.key==="Shift"||E2(D.key)||e.current.setCellFocus(F.id,F.field)},[e]),C=b.useCallback(({field:F},D)=>{D.target===D.currentTarget&&e.current.setColumnHeaderFocus(F,D)},[e]),S=b.useCallback(({fields:F,depth:D},_)=>{if(_.target!==_.currentTarget)return;const $=x2(e);$!==null&&$.depth===D&&F.includes($.field)||e.current.setColumnGroupHeaderFocus(F[0],D,_)},[e]),E=b.useCallback((F,D)=>{var _,$;($=(_=D.relatedTarget)==null?void 0:_.getAttribute("class"))!=null&&$.includes(ee.columnHeader)||(n.debug("Clearing focus"),e.current.setState(B=>z({},B,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})))},[n,e]),T=b.useCallback(F=>{r.current=F},[]),I=b.useCallback(F=>{const D=r.current;r.current=null;const _=ga(e);if(!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:F,cell:D}))return;if(!_){D&&e.current.setCellFocus(D.id,D.field);return}if((D==null?void 0:D.id)===_.id&&(D==null?void 0:D.field)===_.field)return;const B=e.current.getCellElement(_.id,_.field);B!=null&&B.contains(F.target)||(D?e.current.setCellFocus(D.id,D.field):(e.current.setState(V=>z({},V,{focus:{cell:null,columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}})),i(_,F)))},[e,i]),k=b.useCallback(F=>{if(F.cellMode==="view")return;const D=ga(e);((D==null?void 0:D.id)!==F.id||(D==null?void 0:D.field)!==F.field)&&e.current.setCellFocus(F.id,F.field)},[e]),R=b.useCallback(()=>{const F=ga(e);if(F&&!e.current.getRow(F.id)){const D=F.id;let _=null;if(typeof D<"u"){const $=e.current.getRowElement(D),B=$!=null&&$.dataset.rowindex?Number($==null?void 0:$.dataset.rowindex):0,V=Hd(e,{pagination:t.pagination,paginationMode:t.paginationMode}),q=V.rows[qa(B,0,V.rows.length-1)];_=(q==null?void 0:q.id)??null}e.current.setState($=>z({},$,{focus:{cell:_===null?null:{id:_,field:F.field},columnHeader:null,columnHeaderFilter:null,columnGroupHeader:null}}))}},[e,t.pagination,t.paginationMode]),P=Vt(()=>{const F=ga(e);if(!F)return;const D=Hd(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(D.rows.find(B=>B.id===F.id))return;const $=ro(e);e.current.setState(B=>z({},B,{tabIndex:{cell:{id:D.rows[0].id,field:$[0].field},columnGroupHeader:null,columnHeader:null,columnHeaderFilter:null}}))}),O={setCellFocus:a,setColumnHeaderFocus:l,setColumnHeaderFilterFocus:u},j={moveFocusToRelativeCell:m,setColumnGroupHeaderFocus:d,getColumnGroupHeaderFocus:f};mn(e,O,"public"),mn(e,j,"private"),b.useEffect(()=>{const F=io(e.current.rootElementRef.current);return F.addEventListener("mouseup",I),()=>{F.removeEventListener("mouseup",I)}},[e,o,I]),Mt(e,"columnHeaderBlur",E),Mt(e,"cellDoubleClick",g),Mt(e,"cellMouseDown",T),Mt(e,"cellKeyDown",w),Mt(e,"cellModeChange",k),Mt(e,"columnHeaderFocus",C),Mt(e,"columnGroupHeaderFocus",S),Mt(e,"rowsSet",R),Mt(e,"paginationModelChange",P)},eP=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e<n)return e+1}else if(!r&&e>t)return e-1;return null},tP=({currentColIndex:e,firstColIndex:t,lastColIndex:n,isRtl:r})=>{if(r){if(e>t)return e-1}else if(!r&&e<n)return e+1;return null};function $fe(e,t,n,r){var l,u;const o=yN(e);if(!((l=o[t])!=null&&l[n]))return t;const i=X9(e);let a=i.indexOf(t)+(r==="down"?1:-1);for(;a>=0&&a<i.length;){const d=i[a];if(!((u=o[d])!=null&&u[n]))return d;a+=r==="down"?1:-1}return t}const jfe=qn(qx,W0,(e,t)=>(t.top||[]).concat(e.rows,t.bottom||[])),Ffe=(e,t)=>{const n=Ho(e,"useGridKeyboardNavigation"),r=Lo(),o=t.listView,i=b.useCallback(()=>jfe(e),[e]),a=t.signature!=="DataGrid"&&t.headerFilters,l=b.useCallback((T,I,k="left",R="up")=>{const P=af(e),O=e.current.unstable_getCellColSpanInfo(I,T);O&&O.spannedByColSpan&&(k==="left"?T=O.leftVisibleCellIndex:k==="right"&&(T=O.rightVisibleCellIndex));const j=o?y0(e).field:q0(e)[T],F=$fe(e,I,j,R),D=P.findIndex(_=>_.id===F);n.debug(`Navigating to cell row ${D}, col ${T}`),e.current.scrollToIndexes({colIndex:T,rowIndex:D}),e.current.setCellFocus(F,j)},[e,n,o]),u=b.useCallback((T,I)=>{n.debug(`Navigating to header col ${T}`),e.current.scrollToIndexes({colIndex:T});const k=e.current.getVisibleColumns()[T].field;e.current.setColumnHeaderFocus(k,I)},[e,n]),d=b.useCallback((T,I)=>{n.debug(`Navigating to header filter col ${T}`),e.current.scrollToIndexes({colIndex:T});const k=e.current.getVisibleColumns()[T].field;e.current.setColumnHeaderFilterFocus(k,I)},[e,n]),f=b.useCallback((T,I,k)=>{n.debug(`Navigating to header col ${T}`),e.current.scrollToIndexes({colIndex:T});const{field:R}=e.current.getVisibleColumns()[T];e.current.setColumnGroupHeaderFocus(R,I,k)},[e,n]),m=b.useCallback(T=>{var I;return(I=i()[T])==null?void 0:I.id},[i]),g=b.useCallback((T,I)=>{const k=I.currentTarget.querySelector(`.${ee.columnHeaderTitleContainerContent}`);if(!!k&&k.contains(I.target)&&T.field!==X0.field)return;const P=i(),O=e.current.getViewportPageSize(),j=T.field?e.current.getColumnIndex(T.field):0,F=P.length>0?0:null,D=P.length-1,_=0,$=ro(e).length-1,B=Kx(e);let V=!0;switch(I.key){case"ArrowDown":{a?d(j,I):F!==null&&l(j,m(F));break}case"ArrowRight":{const q=tP({currentColIndex:j,firstColIndex:_,lastColIndex:$,isRtl:r});q!==null&&u(q,I);break}case"ArrowLeft":{const q=eP({currentColIndex:j,firstColIndex:_,lastColIndex:$,isRtl:r});q!==null&&u(q,I);break}case"ArrowUp":{B>0&&f(j,B-1,I);break}case"PageDown":{F!==null&&D!==null&&l(j,m(Math.min(F+O,D)));break}case"Home":{u(_,I);break}case"End":{u($,I);break}case"Enter":{(I.ctrlKey||I.metaKey)&&e.current.toggleColumnMenu(T.field);break}case" ":break;default:V=!1}V&&I.preventDefault()},[e,i,a,d,l,m,r,u,f]),w=b.useCallback((T,I)=>{const k=Pae(e)===T.field,R=Iae(e)===T.field;if(k||R||!E2(I.key))return;const P=i(),O=e.current.getViewportPageSize(),j=T.field?e.current.getColumnIndex(T.field):0,F=0,D=P.length-1,_=0,$=ro(e).length-1;let B=!0;switch(I.key){case"ArrowDown":{const V=m(F);V!=null&&l(j,V);break}case"ArrowRight":{const V=tP({currentColIndex:j,firstColIndex:_,lastColIndex:$,isRtl:r});V!==null&&d(V,I);break}case"ArrowLeft":{const V=eP({currentColIndex:j,firstColIndex:_,lastColIndex:$,isRtl:r});V!==null?d(V,I):e.current.setColumnHeaderFilterFocus(T.field,I);break}case"ArrowUp":{u(j,I);break}case"PageDown":{D!==null&&l(j,m(Math.min(F+O,D)));break}case"Home":{d(_,I);break}case"End":{d($,I);break}case" ":break;default:B=!1}B&&I.preventDefault()},[e,i,d,r,u,l,m]),C=b.useCallback((T,I)=>{const k=x2(e);if(k===null)return;const{field:R,depth:P}=k,{fields:O,depth:j,maxDepth:F}=T,D=i(),_=e.current.getViewportPageSize(),$=e.current.getColumnIndex(R),B=R?e.current.getColumnIndex(R):0,V=0,q=D.length-1,G=0,N=ro(e).length-1;let H=!0;switch(I.key){case"ArrowDown":{j===F-1?u($,I):f($,P+1,I);break}case"ArrowUp":{j>0&&f($,P-1,I);break}case"ArrowRight":{const Y=O.length-O.indexOf(R)-1;$+Y+1<=N&&f($+Y+1,P,I);break}case"ArrowLeft":{const Y=O.indexOf(R);$-Y-1>=G&&f($-Y-1,P,I);break}case"PageDown":{q!==null&&l(B,m(Math.min(V+_,q)));break}case"Home":{f(G,P,I);break}case"End":{f(N,P,I);break}case" ":break;default:H=!1}H&&I.preventDefault()},[e,i,u,f,l,m]),S=b.useCallback((T,I)=>{if(Jx(I))return;const k=e.current.getCellParams(T.id,T.field);if(k.cellMode===Qn.Edit||!E2(I.key)||!e.current.unstable_applyPipeProcessors("canUpdateFocus",!0,{event:I,cell:k}))return;const P=i();if(P.length===0)return;const O=e.current.getViewportPageSize(),j=o?()=>0:e.current.getColumnIndex,F=T.field?j(T.field):0,D=P.findIndex(N=>N.id===T.id),_=0,$=P.length-1,B=0,q=(o?[y0(e)]:ro(e)).length-1;let G=!0;switch(I.key){case"ArrowDown":{D<$&&l(F,m(D+1),r?"right":"left","down");break}case"ArrowUp":{D>_?l(F,m(D-1)):a?d(F,I):u(F,I);break}case"ArrowRight":{const N=tP({currentColIndex:F,firstColIndex:B,lastColIndex:q,isRtl:r});N!==null&&l(N,m(D),r?"left":"right");break}case"ArrowLeft":{const N=eP({currentColIndex:F,firstColIndex:B,lastColIndex:q,isRtl:r});N!==null&&l(N,m(D),r?"right":"left");break}case"Tab":{I.shiftKey&&F>B?l(F-1,m(D),"left"):!I.shiftKey&&F<q&&l(F+1,m(D),"right");break}case" ":{if(T.field===cT)break;const H=T.colDef;if(H&&(H.field===yie||Kse(H.field)))break;!I.shiftKey&&D<$&&l(F,m(Math.min(D+O,$)));break}case"PageDown":{D<$&&l(F,m(Math.min(D+O,$)));break}case"PageUp":{const N=Math.max(D-O,_);N!==D&&N>=_?l(F,m(N)):u(F,I);break}case"Home":{I.ctrlKey||I.metaKey||I.shiftKey?l(B,m(_)):l(B,m(D));break}case"End":{I.ctrlKey||I.metaKey||I.shiftKey?l(q,m($)):l(q,m(D));break}default:G=!1}G&&I.preventDefault()},[e,i,r,l,m,a,d,u,o]),E=b.useCallback((T,{event:I})=>I.key===" "?!1:T,[]);Yr(e,"canStartEditing",E),Mt(e,"columnHeaderKeyDown",g),Mt(e,"headerFilterKeyDown",w),Mt(e,"columnGroupHeaderKeyDown",C),Mt(e,"cellKeyDown",S)},Nfe=(e,t)=>{var C,S;const n=Ho(e,"useGridRowCount"),r=Xe(e,pO),o=Xe(e,Kg),i=Xe(e,Rv),a=Xe(e,Zo),l=_s(()=>Zo(e).pageSize);e.current.registerControlState({stateId:"paginationRowCount",propModel:t.rowCount,propOnChange:t.onRowCountChange,stateSelector:Kg,changeEvent:"rowCountChange"});const d={setRowCount:b.useCallback(E=>{o!==E&&(n.debug("Setting 'rowCount' to",E),e.current.setState(T=>z({},T,{pagination:z({},T.pagination,{rowCount:E})})))},[e,n,o])};mn(e,d,"public");const f=b.useCallback((E,T)=>{var R,P;const I=Kg(e);return!T.exportOnlyDirtyModels||t.rowCount!=null||((P=(R=t.initialState)==null?void 0:R.pagination)==null?void 0:P.rowCount)!=null?z({},E,{pagination:z({},E.pagination,{rowCount:I})}):E},[e,t.rowCount,(S=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:S.rowCount]),m=b.useCallback((E,T)=>{var k;const I=(k=T.stateToRestore.pagination)!=null&&k.rowCount?T.stateToRestore.pagination.rowCount:Kg(e);return e.current.setState(R=>z({},R,{pagination:z({},R.pagination,{rowCount:I})})),E},[e]);Yr(e,"exportState",f),Yr(e,"restoreState",m);const g=b.useCallback(E=>{t.paginationMode==="client"||!l.current||E.pageSize!==l.current&&(l.current=E.pageSize,o===-1&&e.current.setPage(0))},[t.paginationMode,l,o,e]);Mt(e,"paginationModelChange",g),b.useEffect(()=>{t.paginationMode==="client"?e.current.setRowCount(r):t.rowCount!=null&&e.current.setRowCount(t.rowCount)},[e,t.paginationMode,r,t.rowCount]);const w=i.hasNextPage===!1;b.useEffect(()=>{w&&o===-1&&e.current.setRowCount(a.pageSize*a.page+r)},[e,r,w,o,a])},zfe=(e,t)=>{var u,d;const n=Ho(e,"useGridPaginationMeta"),r=Xe(e,Rv);e.current.registerControlState({stateId:"paginationMeta",propModel:t.paginationMeta,propOnChange:t.onPaginationMetaChange,stateSelector:Rv,changeEvent:"paginationMetaChange"});const i={setPaginationMeta:b.useCallback(f=>{r!==f&&(n.debug("Setting 'paginationMeta' to",f),e.current.setState(m=>z({},m,{pagination:z({},m.pagination,{meta:f})})))},[e,n,r])};mn(e,i,"public");const a=b.useCallback((f,m)=>{var C,S;const g=Rv(e);return!m.exportOnlyDirtyModels||t.paginationMeta!=null||((S=(C=t.initialState)==null?void 0:C.pagination)==null?void 0:S.meta)!=null?z({},f,{pagination:z({},f.pagination,{meta:g})}):f},[e,t.paginationMeta,(d=(u=t.initialState)==null?void 0:u.pagination)==null?void 0:d.meta]),l=b.useCallback((f,m)=>{var w;const g=(w=m.stateToRestore.pagination)!=null&&w.meta?m.stateToRestore.pagination.meta:Rv(e);return e.current.setState(C=>z({},C,{pagination:z({},C.pagination,{meta:g})})),f},[e]);Yr(e,"exportState",a),Yr(e,"restoreState",l),b.useEffect(()=>{t.paginationMeta&&e.current.setPaginationMeta(t.paginationMeta)},[e,t.paginationMeta])},Bfe=(e,t)=>{var i,a,l,u,d,f,m;const n=z({},rN(t.autoPageSize),t.paginationModel??((a=(i=t.initialState)==null?void 0:i.pagination)==null?void 0:a.paginationModel));oN(n.pageSize,t.signature);const r=t.rowCount??((u=(l=t.initialState)==null?void 0:l.pagination)==null?void 0:u.rowCount)??(t.paginationMode==="client"?(d=e.rows)==null?void 0:d.totalRowCount:void 0),o=t.paginationMeta??((m=(f=t.initialState)==null?void 0:f.pagination)==null?void 0:m.meta)??{};return z({},e,{pagination:z({},e.pagination,{paginationModel:n,rowCount:r,meta:o,enabled:t.pagination===!0,paginationMode:t.paginationMode})})},Hfe=(e,t)=>{zfe(e,t),Mfe(e,t),Nfe(e,t)},Ufe=(e,t)=>{var n;return z({},e,{preferencePanel:((n=t.initialState)==null?void 0:n.preferencePanel)??{open:!1}})},Gfe=(e,t)=>{var l;const n=Ho(e,"useGridPreferencesPanel"),r=b.useCallback(()=>{e.current.setState(u=>{if(!u.preferencePanel.open)return u;n.debug("Hiding Preferences Panel");const d=mh(e);return e.current.publishEvent("preferencePanelClose",{openedPanelValue:d.openedPanelValue}),z({},u,{preferencePanel:{open:!1}})})},[e,n]),o=b.useCallback((u,d,f)=>{n.debug("Opening Preferences Panel"),e.current.setState(m=>z({},m,{preferencePanel:z({},m.preferencePanel,{open:!0,openedPanelValue:u,panelId:d,labelId:f})})),e.current.publishEvent("preferencePanelOpen",{openedPanelValue:u})},[n,e]);mn(e,{showPreferences:o,hidePreferences:r},"public");const i=b.useCallback((u,d)=>{var g;const f=mh(e);return!d.exportOnlyDirtyModels||((g=t.initialState)==null?void 0:g.preferencePanel)!=null||f.open?z({},u,{preferencePanel:f}):u},[e,(l=t.initialState)==null?void 0:l.preferencePanel]),a=b.useCallback((u,d)=>{const f=d.stateToRestore.preferencePanel;return f!=null&&e.current.setState(m=>z({},m,{preferencePanel:f})),u},[e]);Yr(e,"exportState",i),Yr(e,"restoreState",a)},JI=e=>{switch(e.type){case"boolean":return!1;case"date":case"dateTime":case"number":return;case"singleSelect":return null;case"string":default:return""}},Vfe=["id","field"],Wfe=["id","field"],qfe=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),{processRowUpdate:a,onProcessRowUpdateError:l,cellModesModel:u,onCellModesModelChange:d}=t,f=G=>(...N)=>{t.editMode===yc.Cell&&G(...N)},m=b.useCallback((G,N)=>{const H=e.current.getCellParams(G,N);if(!e.current.isCellEditable(H))throw new Error(`MUI X: The cell with id=${G} and field=${N} is not editable.`)},[e]),g=b.useCallback((G,N,H)=>{if(e.current.getCellMode(G,N)!==H)throw new Error(`MUI X: The cell with id=${G} and field=${N} is not in ${H} mode.`)},[e]),w=b.useCallback((G,N)=>{if(!G.isEditable||G.cellMode===Qn.Edit)return;const H=z({},G,{reason:ru.cellDoubleClick});e.current.publishEvent("cellEditStart",H,N)},[e]),C=b.useCallback((G,N)=>{if(G.cellMode===Qn.View||e.current.getCellMode(G.id,G.field)===Qn.View)return;const H=z({},G,{reason:ol.cellFocusOut});e.current.publishEvent("cellEditStop",H,N)},[e]),S=b.useCallback((G,N)=>{if(G.cellMode===Qn.Edit){if(N.which===229)return;let H;if(N.key==="Escape"?H=ol.escapeKeyDown:N.key==="Enter"?H=ol.enterKeyDown:N.key==="Tab"&&(H=N.shiftKey?ol.shiftTabKeyDown:ol.tabKeyDown,N.preventDefault()),H){const Y=z({},G,{reason:H});e.current.publishEvent("cellEditStop",Y,N)}}else if(G.isEditable){let H;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:N,cellParams:G,editMode:"cell"}))return;if($N(N)?H=ru.printableKeyDown:FN(N)?H=ru.pasteKeyDown:N.key==="Enter"?H=ru.enterKeyDown:(N.key==="Backspace"||N.key==="Delete")&&(H=ru.deleteKeyDown),H){const Q=z({},G,{reason:H,key:N.key});e.current.publishEvent("cellEditStart",Q,N)}}},[e]),E=b.useCallback(G=>{const{id:N,field:H,reason:Y}=G,Q={id:N,field:H};(Y===ru.printableKeyDown||Y===ru.deleteKeyDown||Y===ru.pasteKeyDown)&&(Q.deleteValue=!0),e.current.startCellEditMode(Q)},[e]),T=b.useCallback(G=>{const{id:N,field:H,reason:Y}=G;e.current.runPendingEditCellValueMutation(N,H);let Q;Y===ol.enterKeyDown?Q="below":Y===ol.tabKeyDown?Q="right":Y===ol.shiftTabKeyDown&&(Q="left");const W=Y==="escapeKeyDown";e.current.stopCellEditMode({id:N,field:H,ignoreModifications:W,cellToFocusAfter:Q})},[e]),I=G=>async(...N)=>{var H;if(G){const{id:Y,field:Q}=N[0];((H=e.current.state.editRows[Y][Q])==null?void 0:H.error)||G(...N)}};Mt(e,"cellDoubleClick",f(w)),Mt(e,"cellFocusOut",f(C)),Mt(e,"cellKeyDown",f(S)),Mt(e,"cellEditStart",f(E)),Mt(e,"cellEditStop",f(T)),fr(e,"cellEditStart",t.onCellEditStart),fr(e,"cellEditStop",I(t.onCellEditStop));const k=b.useCallback((G,N)=>{const H=zo(e);return H[G]&&H[G][N]?Qn.Edit:Qn.View},[e]),R=Vt(G=>{const N=G!==t.cellModesModel;d&&N&&d(G,{api:e.current}),!(t.cellModesModel&&N)&&(r(G),o.current=G,e.current.publishEvent("cellModesModelChange",G))}),P=b.useCallback((G,N,H)=>{const Y=z({},o.current);if(H!==null)Y[G]=z({},Y[G],{[N]:z({},H)});else{const Q=Y[G],W=tt(Q,[N].map(dx));Y[G]=W,Object.keys(Y[G]).length===0&&delete Y[G]}R(Y)},[R]),O=b.useCallback((G,N,H)=>{e.current.setState(Y=>{const Q=z({},Y.editRows);return H!==null?Q[G]=z({},Q[G],{[N]:z({},H)}):(delete Q[G][N],Object.keys(Q[G]).length===0&&delete Q[G]),z({},Y,{editRows:Q})})},[e]),j=b.useCallback(G=>{const{id:N,field:H}=G,Y=tt(G,Vfe);m(N,H),g(N,H,Qn.View),P(N,H,z({mode:Qn.Edit},Y))},[m,g,P]),F=Vt(async G=>{const{id:N,field:H,deleteValue:Y,initialValue:Q}=G,W=e.current.getCellValue(N,H);let K=W;Y?K=JI(e.current.getColumn(H)):Q&&(K=Q);const J=e.current.getColumn(H),ae=!!J.preProcessEditCellProps&&Y;let ce={value:K,error:!1,isProcessingProps:ae};if(O(N,H,ce),e.current.setCellFocus(N,H),ae&&(ce=await Promise.resolve(J.preProcessEditCellProps({id:N,row:e.current.getRow(N),props:ce,hasChanged:K!==W})),e.current.getCellMode(N,H)===Qn.Edit)){const de=zo(e);O(N,H,z({},ce,{value:de[N][H].value,isProcessingProps:!1}))}}),D=b.useCallback(G=>{const{id:N,field:H}=G,Y=tt(G,Wfe);g(N,H,Qn.Edit),P(N,H,z({mode:Qn.View},Y))},[g,P]),_=Vt(async G=>{var re;const{id:N,field:H,ignoreModifications:Y,cellToFocusAfter:Q="none"}=G;g(N,H,Qn.Edit),e.current.runPendingEditCellValueMutation(N,H);const W=()=>{O(N,H,null),P(N,H,null),Q!=="none"&&e.current.moveFocusToRelativeCell(N,H,Q)};if(Y){W();return}const K=zo(e),{error:J,isProcessingProps:ae}=K[N][H],ce=e.current.getRow(N);if(J||ae){i.current[N][H].mode=Qn.Edit,P(N,H,{mode:Qn.Edit});return}const de=e.current.getRowWithUpdatedValuesFromCellEditing(N,H);if((re=t.dataSource)!=null&&re.updateRow){if(Ya(ce,de)){W();return}const ke=()=>{i.current[N][H].mode=Qn.Edit,P(N,H,{mode:Qn.Edit})},Ce={rowId:N,updatedRow:de,previousRow:ce};try{await e.current.dataSource.editRow(Ce),W()}catch{ke()}}else if(a){const ke=Ce=>{i.current[N][H].mode=Qn.Edit,P(N,H,{mode:Qn.Edit}),l&&l(Ce)};try{Promise.resolve(a(de,ce,{rowId:N})).then(Ce=>{e.current.updateRows([Ce]),W()}).catch(ke)}catch(Ce){ke(Ce)}}else e.current.updateRows([de]),W()}),$=b.useCallback(async G=>{var re,ke;const{id:N,field:H,value:Y,debounceMs:Q,unstable_skipValueParser:W}=G;m(N,H),g(N,H,Qn.Edit);const K=e.current.getColumn(H),J=e.current.getRow(N);let ae=Y;K.valueParser&&!W&&(ae=K.valueParser(Y,J,K,e));let ce=zo(e),de=z({},ce[N][H],{value:ae,changeReason:Q?"debouncedSetEditCellValue":"setEditCellValue"});if(K.preProcessEditCellProps){const Ce=Y!==ce[N][H].value;de=z({},de,{isProcessingProps:!0}),O(N,H,de),de=await Promise.resolve(K.preProcessEditCellProps({id:N,row:J,props:de,hasChanged:Ce}))}return e.current.getCellMode(N,H)===Qn.View?!1:(ce=zo(e),de=z({},de,{isProcessingProps:!1}),de.value=K.preProcessEditCellProps?ce[N][H].value:ae,O(N,H,de),ce=zo(e),!((ke=(re=ce[N])==null?void 0:re[H])!=null&&ke.error))},[e,m,g,O]),B=b.useCallback((G,N)=>{const H=e.current.getColumn(N),Y=zo(e),Q=e.current.getRow(G);if(!Y[G]||!Y[G][N])return e.current.getRow(G);const{value:W}=Y[G][N];return H.valueSetter?H.valueSetter(W,Q,H,e):z({},Q,{[N]:W})},[e]),V={getCellMode:k,startCellEditMode:j,stopCellEditMode:D},q={setCellEditingEditCellValue:$,getRowWithUpdatedValuesFromCellEditing:B};mn(e,V,"public"),mn(e,q,"private"),b.useEffect(()=>{u&&R(u)},[u,R]),kn(()=>{const G=xs(e),N=i.current;i.current=P9(n),Object.entries(n).forEach(([H,Y])=>{Object.entries(Y).forEach(([Q,W])=>{var ae,ce;const K=((ce=(ae=N[H])==null?void 0:ae[Q])==null?void 0:ce.mode)||Qn.View,J=G[H]?e.current.getRowId(G[H]):H;W.mode===Qn.Edit&&K===Qn.View?F(z({id:J,field:Q},W)):W.mode===Qn.View&&K===Qn.Edit&&_(z({id:J,field:Q},W))})})},[e,n,F,_])},Yfe=["id"],Kfe=["id"],Xfe=(e,t)=>{const[n,r]=b.useState({}),o=b.useRef(n),i=b.useRef({}),a=b.useRef({}),l=b.useRef(void 0),u=b.useRef(null),{processRowUpdate:d,onProcessRowUpdateError:f,rowModesModel:m,onRowModesModelChange:g}=t,w=W=>(...K)=>{t.editMode===yc.Row&&W(...K)},C=b.useCallback((W,K)=>{const J=e.current.getCellParams(W,K);if(!e.current.isCellEditable(J))throw new Error(`MUI X: The cell with id=${W} and field=${K} is not editable.`)},[e]),S=b.useCallback((W,K)=>{if(e.current.getRowMode(W)!==K)throw new Error(`MUI X: The row with id=${W} is not in ${K} mode.`)},[e]),E=b.useCallback(W=>{const K=zo(e);return Object.values(K[W]).some(J=>J.error)},[e]),T=b.useCallback((W,K)=>{if(!W.isEditable||e.current.getRowMode(W.id)===kr.Edit)return;const J=e.current.getRowParams(W.id),ae=z({},J,{field:W.field,reason:Pd.cellDoubleClick});e.current.publishEvent("rowEditStart",ae,K)},[e]),I=b.useCallback(W=>{u.current=W},[]),k=b.useCallback((W,K)=>{W.isEditable&&e.current.getRowMode(W.id)!==kr.View&&(u.current=null,l.current=setTimeout(()=>{var J;if(((J=u.current)==null?void 0:J.id)!==W.id){if(!e.current.getRow(W.id)||e.current.getRowMode(W.id)===kr.View||E(W.id))return;const ae=e.current.getRowParams(W.id),ce=z({},ae,{field:W.field,reason:oc.rowFocusOut});e.current.publishEvent("rowEditStop",ce,K)}}))},[e,E]);b.useEffect(()=>()=>{clearTimeout(l.current)},[]);const R=b.useCallback((W,K)=>{if(W.cellMode===kr.Edit){if(K.which===229)return;let J;if(K.key==="Escape")J=oc.escapeKeyDown;else if(K.key==="Enter")J=oc.enterKeyDown;else if(K.key==="Tab"){const ae=q0(e).filter(ce=>e.current.getColumn(ce).type===sT?!0:e.current.isCellEditable(e.current.getCellParams(W.id,ce)));if(K.shiftKey?W.field===ae[0]&&(J=oc.shiftTabKeyDown):W.field===ae[ae.length-1]&&(J=oc.tabKeyDown),K.preventDefault(),!J){const ce=ae.findIndex(re=>re===W.field),de=ae[K.shiftKey?ce-1:ce+1];e.current.setCellFocus(W.id,de)}}if(J){if(J!==oc.escapeKeyDown&&E(W.id))return;const ae=z({},e.current.getRowParams(W.id),{reason:J,field:W.field});e.current.publishEvent("rowEditStop",ae,K)}}else if(W.isEditable){let J;if(!e.current.unstable_applyPipeProcessors("canStartEditing",!0,{event:K,cellParams:W,editMode:"row"}))return;if($N(K)||FN(K)?J=Pd.printableKeyDown:K.key==="Enter"?J=Pd.enterKeyDown:(K.key==="Backspace"||K.key==="Delete")&&(J=Pd.deleteKeyDown),J){const ce=e.current.getRowParams(W.id),de=z({},ce,{field:W.field,reason:J});e.current.publishEvent("rowEditStart",de,K)}}},[e,E]),P=b.useCallback(W=>{const{id:K,field:J,reason:ae}=W,ce={id:K,fieldToFocus:J};(ae===Pd.printableKeyDown||ae===Pd.deleteKeyDown)&&(ce.deleteValue=!!J),e.current.startRowEditMode(ce)},[e]),O=b.useCallback(W=>{const{id:K,reason:J,field:ae}=W;e.current.runPendingEditCellValueMutation(K);let ce;J===oc.enterKeyDown?ce="below":J===oc.tabKeyDown?ce="right":J===oc.shiftTabKeyDown&&(ce="left");const de=J==="escapeKeyDown";e.current.stopRowEditMode({id:K,ignoreModifications:de,field:ae,cellToFocusAfter:ce})},[e]);Mt(e,"cellDoubleClick",w(T)),Mt(e,"cellFocusIn",w(I)),Mt(e,"cellFocusOut",w(k)),Mt(e,"cellKeyDown",w(R)),Mt(e,"rowEditStart",w(P)),Mt(e,"rowEditStop",w(O)),fr(e,"rowEditStart",t.onRowEditStart),fr(e,"rowEditStop",t.onRowEditStop);const j=b.useCallback(W=>EN(e,{rowId:W,editMode:t.editMode})?kr.Edit:kr.View,[e,t.editMode]),F=Vt(W=>{const K=W!==t.rowModesModel;g&&K&&g(W,{api:e.current}),!(t.rowModesModel&&K)&&(r(W),o.current=W,e.current.publishEvent("rowModesModelChange",W))}),D=b.useCallback((W,K)=>{const J=z({},o.current);K!==null?J[W]=z({},K):delete J[W],F(J)},[F]),_=b.useCallback((W,K)=>{e.current.setState(J=>{const ae=z({},J.editRows);return K!==null?ae[W]=K:delete ae[W],z({},J,{editRows:ae})})},[e]),$=b.useCallback((W,K,J)=>{e.current.setState(ae=>{const ce=z({},ae.editRows);return J!==null?ce[W]=z({},ce[W],{[K]:z({},J)}):(delete ce[W][K],Object.keys(ce[W]).length===0&&delete ce[W]),z({},ae,{editRows:ce})})},[e]),B=b.useCallback(W=>{const{id:K}=W,J=tt(W,Yfe);S(K,kr.View),D(K,z({mode:kr.Edit},J))},[S,D]),V=Vt(W=>{const{id:K,fieldToFocus:J,deleteValue:ae,initialValue:ce}=W,de=e.current.getRow(K),re=Ts(e),ke=re.reduce((Ce,ie)=>{const le=ie.field;if(!e.current.getCellParams(K,le).isEditable)return Ce;const ue=e.current.getColumn(le);let me=e.current.getCellValue(K,le);return J===le&&(ae||ce)&&(ae?me=JI(ue):ce&&(me=ce)),Ce[le]={value:me,error:!1,isProcessingProps:ue.editable&&!!ue.preProcessEditCellProps&&ae},Ce},{});a.current[K]=de,_(K,ke),J&&e.current.setCellFocus(K,J),re.filter(Ce=>Ce.editable&&!!Ce.preProcessEditCellProps&&ae).forEach(Ce=>{const ie=Ce.field,le=e.current.getCellValue(K,ie),ve=ae?JI(Ce):ce??le;Promise.resolve(Ce.preProcessEditCellProps({id:K,row:de,props:ke[ie],hasChanged:ve!==le})).then(ue=>{if(e.current.getRowMode(K)===kr.Edit){const me=zo(e);$(K,ie,z({},ue,{value:me[K][ie].value,isProcessingProps:!1}))}})})}),q=b.useCallback(W=>{const{id:K}=W,J=tt(W,Kfe);S(K,kr.Edit),D(K,z({mode:kr.View},J))},[S,D]),G=Vt(async W=>{var le;const{id:K,ignoreModifications:J,field:ae,cellToFocusAfter:ce="none"}=W;e.current.runPendingEditCellValueMutation(K);const de=()=>{ce!=="none"&&ae&&e.current.moveFocusToRelativeCell(K,ae,ce),_(K,null),D(K,null),delete a.current[K]};if(J){de();return}const re=zo(e),ke=a.current[K];if(Object.values(re[K]).some(ve=>ve.isProcessingProps)){i.current[K].mode=kr.Edit;return}if(E(K)){i.current[K].mode=kr.Edit,D(K,{mode:kr.Edit});return}const ie=e.current.getRowWithUpdatedValuesFromRowEditing(K);if((le=t.dataSource)!=null&&le.updateRow){if(Ya(ke,ie)){de();return}const ve=()=>{i.current[K].mode=kr.Edit,D(K,{mode:kr.Edit})},ue={rowId:K,updatedRow:ie,previousRow:ke};try{await e.current.dataSource.editRow(ue),de()}catch{ve()}}else if(d){const ve=ue=>{i.current[K]&&(i.current[K].mode=kr.Edit,D(K,{mode:kr.Edit})),f&&f(ue)};try{Promise.resolve(d(ie,ke,{rowId:K})).then(ue=>{e.current.updateRows([ue]),de()}).catch(ve)}catch(ue){ve(ue)}}else e.current.updateRows([ie]),de()}),N=b.useCallback(W=>{const{id:K,field:J,value:ae,debounceMs:ce,unstable_skipValueParser:de}=W;C(K,J);const re=e.current.getColumn(J),ke=e.current.getRow(K);let Ce=ae;re.valueParser&&!de&&(Ce=re.valueParser(ae,ke,re,e));let ie=zo(e),le=z({},ie[K][J],{value:Ce,changeReason:ce?"debouncedSetEditCellValue":"setEditCellValue"});return re.preProcessEditCellProps||$(K,J,le),new Promise(ve=>{const ue=[];if(re.preProcessEditCellProps){const me=le.value!==ie[K][J].value;le=z({},le,{isProcessingProps:!0}),$(K,J,le);const be=ie[K],Fe=tt(be,[J].map(dx)),Ze=Promise.resolve(re.preProcessEditCellProps({id:K,row:ke,props:le,hasChanged:me,otherFieldsProps:Fe})).then(We=>{if(e.current.getRowMode(K)===kr.View){ve(!1);return}ie=zo(e),We=z({},We,{isProcessingProps:!1}),We.value=re.preProcessEditCellProps?ie[K][J].value:Ce,$(K,J,We)});ue.push(Ze)}Object.entries(ie[K]).forEach(([me,be])=>{if(me===J)return;const Fe=e.current.getColumn(me);if(!Fe.preProcessEditCellProps)return;be=z({},be,{isProcessingProps:!0}),$(K,me,be),ie=zo(e);const Ze=ie[K],We=tt(Ze,[me].map(dx)),_e=Promise.resolve(Fe.preProcessEditCellProps({id:K,row:ke,props:be,hasChanged:!1,otherFieldsProps:We})).then(ft=>{if(e.current.getRowMode(K)===kr.View){ve(!1);return}ft=z({},ft,{isProcessingProps:!1}),$(K,me,ft)});ue.push(_e)}),Promise.all(ue).then(()=>{e.current.getRowMode(K)===kr.Edit?(ie=zo(e),ve(!ie[K][J].error)):ve(!1)})})},[e,C,$]),H=b.useCallback(W=>{const K=zo(e),J=e.current.getRow(W);if(!K[W])return e.current.getRow(W);let ae=z({},a.current[W],J);return Object.entries(K[W]).forEach(([ce,de])=>{const re=e.current.getColumn(ce);re!=null&&re.valueSetter?ae=re.valueSetter(de.value,ae,re,e):ae[ce]=de.value}),ae},[e]),Y={getRowMode:j,startRowEditMode:B,stopRowEditMode:q},Q={setRowEditingEditCellValue:N,getRowWithUpdatedValuesFromRowEditing:H};mn(e,Y,"public"),mn(e,Q,"private"),b.useEffect(()=>{m&&F(m)},[m,F]),kn(()=>{const W=xs(e),K=i.current;i.current=P9(n);const J=new Set([...Object.keys(n),...Object.keys(K)]);Array.from(J).forEach(ae=>{var ke;const ce=n[ae]??{mode:kr.View},de=((ke=K[ae])==null?void 0:ke.mode)||kr.View,re=W[ae]?e.current.getRowId(W[ae]):ae;ce.mode===kr.Edit&&de===kr.View?V(z({id:re},ce)):ce.mode===kr.View&&de===kr.Edit&&G(z({id:re},ce))})},[e,n,V,G])},Zfe=e=>z({},e,{editRows:{}}),Qfe=(e,t)=>{qfe(e,t),Xfe(e,t);const n=b.useRef({}),{isCellEditable:r}=t,o=b.useCallback(g=>g0(g.rowNode)||!g.colDef.editable||!g.colDef.renderEditCell?!1:r?r(g):!0,[r]),i=(g,w,C,S)=>{if(!C){S();return}if(n.current[g]||(n.current[g]={}),n.current[g][w]){const[I]=n.current[g][w];clearTimeout(I)}const E=()=>{const[I]=n.current[g][w];clearTimeout(I),S(),delete n.current[g][w]},T=setTimeout(()=>{S(),delete n.current[g][w]},C);n.current[g][w]=[T,E]};b.useEffect(()=>{const g=n.current;return()=>{Object.entries(g).forEach(([w,C])=>{Object.keys(C).forEach(S=>{const[E]=g[w][S];clearTimeout(E),delete g[w][S]})})}},[]);const a=b.useCallback((g,w)=>{if(n.current[g]){if(!w)Object.keys(n.current[g]).forEach(C=>{const[,S]=n.current[g][C];S()});else if(n.current[g][w]){const[,C]=n.current[g][w];C()}}},[]),l=b.useCallback(g=>{const{id:w,field:C,debounceMs:S}=g;return new Promise(E=>{i(w,C,S,async()=>{const T=t.editMode===yc.Row?e.current.setRowEditingEditCellValue:e.current.setCellEditingEditCellValue;if(e.current.getCellMode(w,C)===Qn.Edit){const I=await T(g);E(I)}})})},[e,t.editMode]),u=b.useCallback((g,w)=>t.editMode===yc.Cell?e.current.getRowWithUpdatedValuesFromCellEditing(g,w):e.current.getRowWithUpdatedValuesFromRowEditing(g),[e,t.editMode]),d=b.useCallback((g,w)=>{var S;return((S=zo(e)[g])==null?void 0:S[w])??null},[e]),f={isCellEditable:o,setEditCellValue:l,getRowWithUpdatedValues:u,unstable_getEditCellMeta:d},m={runPendingEditCellValueMutation:a};mn(e,f,"public"),mn(e,m,"private")},Jfe=(e,t,n)=>{const r=!!t.dataSource;return n.current.caches.rows=US({rows:r?[]:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),z({},e,{rows:H9({apiRef:n,rowCountProp:t.rowCount,loadingProp:r?!0:t.loading,previousTree:null,previousTreeDepths:null})})},epe=(e,t)=>{const n=Ho(e,"useGridRows"),r=b.useRef(Date.now()),o=b.useRef(t.rowCount),i=ya(),a=b.useCallback(G=>{const N=xs(e)[G];if(N)return N;const H=cc(e,G);return H&&g0(H)?{[m0]:G}:null},[e]),l=b.useCallback(G=>Yx(e,G),[e]),u=b.useCallback(({cache:G,throttle:N})=>{const H=()=>{r.current=Date.now(),e.current.setState(Q=>z({},Q,{rows:H9({apiRef:e,rowCountProp:t.rowCount,loadingProp:t.loading,previousTree:hi(e),previousTreeDepths:v3(e),previousGroupsToFetch:Poe(e)})})),e.current.publishEvent("rowsSet")};if(i.clear(),e.current.caches.rows=G,!N){H();return}const Y=t.throttleRowsMs-(Date.now()-r.current);if(Y>0){i.start(Y,H);return}H()},[t.throttleRowsMs,t.rowCount,t.loading,e,i]),d=b.useCallback(G=>{if(n.debug(`Updating all rows, new length ${G.length}`),hh(e)){e.current.updateNonPivotRows(G,!1);return}const N=US({rows:G,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),H=e.current.caches.rows;N.rowsBeforePartialUpdates=H.rowsBeforePartialUpdates,u({cache:N,throttle:!0})},[n,t.getRowId,t.loading,t.rowCount,u,e]),f=b.useCallback(G=>{if(t.signature===dl.DataGrid&&G.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(`
`));if(hh(e)){e.current.updateNonPivotRows(G);return}const N=A3(e,G,t.getRowId),H=I3({updates:N,getRowId:t.getRowId,previousCache:e.current.caches.rows});u({cache:H,throttle:!0})},[t.signature,t.getRowId,u,e]),m=b.useCallback((G,N)=>{const H=A3(e,G,t.getRowId),Y=I3({updates:H,getRowId:t.getRowId,previousCache:e.current.caches.rows,groupKeys:N??[]});u({cache:Y,throttle:!1})},[t.getRowId,u,e]),g=b.useCallback(G=>{n.debug(`Setting loading to ${G}`),e.current.setState(N=>z({},N,{rows:z({},N.rows,{loading:G})})),e.current.caches.rows.loadingPropBeforePartialUpdates=G},[e,n]),w=b.useCallback(()=>{const G=Vp(e),N=xs(e);return new Map(G.map(H=>[H,N[H]??{}]))},[e]),C=b.useCallback(()=>Ux(e),[e]),S=b.useCallback(()=>Vp(e),[e]),E=b.useCallback(G=>{const{rowIdToIndexMap:N}=Hd(e);return N.get(G)},[e]),T=b.useCallback((G,N)=>{const H=cc(e,G);if(!H)throw new Error(`MUI X: No row with id #${G} found.`);if(H.type!=="group")throw new Error("MUI X: Only group nodes can be expanded or collapsed.");const Y=z({},H,{childrenExpanded:N});e.current.setState(Q=>z({},Q,{rows:z({},Q.rows,{tree:z({},Q.rows.tree,{[G]:Y})})})),e.current.publishEvent("rowExpansionChange",Y)},[e]),I=b.useCallback(G=>cc(e,G)??null,[e]),k=b.useCallback(({skipAutoGeneratedRows:G=!0,groupId:N,applySorting:H,applyFiltering:Y})=>{const Q=hi(e);let W;if(H){const K=Q[N];if(!K)return[];const J=Gx(e);W=[];const ae=J.findIndex(ce=>ce===N)+1;for(let ce=ae;ce<J.length&&Q[J[ce]].depth>K.depth;ce+=1){const de=J[ce];(!G||!g0(Q[de]))&&W.push(de)}}else W=uO(Q,N,G);if(Y){const K=K0(e);W=uT(K)?W:W.filter(J=>K[J]!==!1)}return W},[e]),R=b.useCallback((G,N)=>{const H=cc(e,G);if(!H)throw new Error(`MUI X: No row with id #${G} found.`);if(H.parent!==Qo)throw new Error("MUI X: The row reordering do not support reordering of grouped rows yet.");if(H.type!=="leaf")throw new Error("MUI X: The row reordering do not support reordering of footer or grouping rows.");e.current.setState(Y=>{const Q=hi(e)[Qo],W=Q.children,K=W.findIndex(ae=>ae===G);if(K===-1||K===N)return Y;n.debug(`Moving row ${G} to index ${N}`);const J=[...W];return J.splice(N,0,J.splice(K,1)[0]),z({},Y,{rows:z({},Y.rows,{tree:z({},Y.rows.tree,{[Qo]:z({},Q,{children:J})})})})}),e.current.publishEvent("rowsSet")},[e,n]),P=b.useCallback((G,N)=>{if(t.signature===dl.DataGrid&&N.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(`
`));if(N.length===0)return;if(V0(e)>1)throw new Error("`apiRef.current.unstable_replaceRows` is not compatible with tree data and row grouping");const Y=z({},hi(e)),Q=z({},xs(e)),W=Y[Qo],K=[...W.children],J=new Set;for(let ce=0;ce<N.length;ce+=1){const de=N[ce],re=lT(de,t.getRowId,"A row was provided without id when calling replaceRows()."),[ke]=K.splice(G+ce,1,re);J.has(ke)||(delete Q[ke],delete Y[ke]);const Ce={id:re,depth:0,parent:Qo,type:"leaf",groupingKey:null};Q[re]=de,Y[re]=Ce,J.add(re)}Y[Qo]=z({},W,{children:K});const ae=K.filter(ce=>{var de;return((de=Y[ce])==null?void 0:de.type)==="leaf"});e.current.caches.rows.dataRowIdToModelLookup=Q,e.current.setState(ce=>z({},ce,{rows:z({},ce.rows,{loading:t.loading,totalRowCount:Math.max(t.rowCount||0,K.length),dataRowIdToModelLookup:Q,dataRowIds:ae,tree:Y})})),e.current.publishEvent("rowsSet")},[e,t.signature,t.getRowId,t.loading,t.rowCount]),O={getRow:a,setLoading:g,getRowId:l,getRowModels:w,getRowsCount:C,getAllRowIds:S,setRows:d,updateRows:f,getRowNode:I,getRowIndexRelativeToVisibleRows:E,unstable_replaceRows:P},j={setRowIndex:R,setRowChildrenExpansion:T,getRowGroupChildren:k},F={updateNestedRows:m},D=b.useCallback(()=>{n.info("Row grouping pre-processing have changed, regenerating the row tree");let G;e.current.caches.rows.rowsBeforePartialUpdates===t.rows?G=z({},e.current.caches.rows,{updates:{type:"full",rows:Vp(e)}}):G=US({rows:t.rows,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),u({cache:G,throttle:!1})},[n,e,t.rows,t.getRowId,t.loading,t.rowCount,u]),_=_s(()=>t.dataSource),$=b.useCallback(G=>{if(t.dataSource&&t.dataSource!==_.current){_.current=t.dataSource;return}G==="rowTreeCreation"&&D()},[D,_,t.dataSource]),B=b.useCallback(()=>{e.current.getActiveStrategy(Fd.RowTree)!==Ioe(e)&&D()},[e,D]);Mt(e,"activeStrategyProcessorChange",$),Mt(e,"strategyAvailabilityChange",B);const V=b.useCallback(()=>{e.current.setState(G=>{const N=e.current.unstable_applyPipeProcessors("hydrateRows",{tree:hi(e),treeDepths:v3(e),dataRowIds:Vp(e),dataRowIdToModelLookup:xs(e)});return z({},G,{rows:z({},G.rows,N,{totalTopLevelRowCount:B9({tree:N.tree,rowCountProp:t.rowCount})})})}),e.current.publishEvent("rowsSet")},[e,t.rowCount]);kO(e,"hydrateRows",V),mn(e,O,"public"),mn(e,j,t.signature===dl.DataGrid?"private":"public"),mn(e,F,"private");const q=b.useRef(!0);b.useEffect(()=>{if(q.current){q.current=!1;return}let G=!1;t.rowCount!==o.current&&(G=!0,o.current=t.rowCount);const N=t.dataSource?Aoe(e):t.rows,H=e.current.caches.rows.rowsBeforePartialUpdates===N,Y=e.current.caches.rows.loadingPropBeforePartialUpdates===t.loading,Q=e.current.caches.rows.rowCountPropBeforePartialUpdates===t.rowCount;H&&(Y||(e.current.setState(W=>z({},W,{rows:z({},W.rows,{loading:t.loading})})),e.current.caches.rows.loadingPropBeforePartialUpdates=t.loading),Q||(e.current.setState(W=>z({},W,{rows:z({},W.rows,{totalRowCount:Math.max(t.rowCount||0,W.rows.totalRowCount),totalTopLevelRowCount:Math.max(t.rowCount||0,W.rows.totalTopLevelRowCount)})})),e.current.caches.rows.rowCountPropBeforePartialUpdates=t.rowCount),!G)||(n.debug(`Updating all rows, new length ${N==null?void 0:N.length}`),u({cache:US({rows:N,getRowId:t.getRowId,loading:t.loading,rowCount:t.rowCount}),throttle:!1}))},[t.rows,t.rowCount,t.getRowId,t.loading,t.dataSource,n,u,e])},tpe=e=>{const t={[Qo]:z({},mie(),{children:e})};for(let n=0;n<e.length;n+=1){const r=e[n];t[r]={id:r,depth:0,parent:Qo,type:"leaf",groupingKey:null}}return{groupingName:gh,tree:t,treeDepths:{0:e.length},dataRowIds:e}},npe=({previousTree:e,actions:t})=>{const n=z({},e),r={};for(let a=0;a<t.remove.length;a+=1){const l=t.remove[a];r[l]=!0,delete n[l]}for(let a=0;a<t.insert.length;a+=1){const l=t.insert[a];n[l]={id:l,depth:0,parent:Qo,type:"leaf",groupingKey:null}}const o=n[Qo];let i=[...o.children,...t.insert];return Object.values(r).length&&(i=i.filter(a=>!r[a])),n[Qo]=z({},o,{children:i}),{groupingName:gh,tree:n,treeDepths:{0:i.length},dataRowIds:i}},rpe=e=>e.updates.type==="full"?tpe(e.updates.rows):npe({previousTree:e.previousTree,actions:e.updates.actions}),ope=e=>{fx(e,gh,"rowTreeCreation",rpe)};class nP extends Error{}function ipe(e,t){var C;const n=b.useCallback(S=>({field:S,colDef:e.current.getColumn(S)}),[e]),r=b.useCallback(S=>{const E=e.current.getRow(S);if(!E)throw new nP(`No row with id #${S} found`);return{id:S,columns:e.current.getAllColumns(),row:E}},[e]),o=b.useCallback((S,E,T,{cellMode:I,colDef:k,hasFocus:R,rowNode:P,tabIndex:O})=>{const j=T[E],F=k!=null&&k.valueGetter?k.valueGetter(j,T,k,e):j,D={id:S,field:E,row:T,rowNode:P,colDef:k,cellMode:I,hasFocus:R,tabIndex:O,value:F,formattedValue:F,isEditable:!1,api:e.current};return k&&k.valueFormatter&&(D.formattedValue=k.valueFormatter(F,T,k,e)),D.isEditable=k&&e.current.isCellEditable(D),D},[e]),i=b.useCallback((S,E)=>{var O;const T=e.current.getRow(S),I=cc(e,S);if(!T||!I)throw new nP(`No row with id #${S} found`);const k=ga(e),R=gO(e),P=e.current.getCellMode(S,E);return e.current.getCellParamsForRow(S,E,T,{colDef:t.listView&&((O=t.listViewColumn)==null?void 0:O.field)===E?y0(e):e.current.getColumn(E),rowNode:I,hasFocus:k!==null&&k.field===E&&k.id===S,tabIndex:R&&R.field===E&&R.id===S?0:-1,cellMode:P})},[e,t.listView,(C=t.listViewColumn)==null?void 0:C.field]),a=b.useCallback((S,E)=>{const T=e.current.getColumn(E),I=e.current.getRow(S);if(!I)throw new nP(`No row with id #${S} found`);return!T||!T.valueGetter?I[E]:T.valueGetter(I[T.field],I,T,e)},[e]),l=b.useCallback((S,E)=>bie(S,E,e),[e]),u=b.useCallback((S,E)=>{const T=l(S,E);return!E||!E.valueFormatter?T:E.valueFormatter(T,S,E,e)},[e,l]),d=b.useCallback(S=>e.current.rootElementRef.current?Wle(e.current.rootElementRef.current,S):null,[e]),f=b.useCallback(S=>e.current.rootElementRef.current?qle(e.current.rootElementRef.current,S):null,[e]),m=b.useCallback((S,E)=>e.current.rootElementRef.current?Yle(e.current.rootElementRef.current,{id:S,field:E}):null,[e]),g={getCellValue:a,getCellParams:i,getCellElement:m,getRowValue:l,getRowFormattedValue:u,getRowParams:r,getRowElement:f,getColumnHeaderParams:n,getColumnHeaderElement:d},w={getCellParamsForRow:o};mn(e,g,"public"),mn(e,w,"private")}const Yv={type:"include",ids:new Set},ape=(e,t)=>z({},e,{rowSelection:t.rowSelection?t.rowSelectionModel??Yv:Yv}),spe=(e,t)=>{var W,K,J,ae,ce,de,re,ke,Ce;const n=Ho(e,"useGridSelection"),r=b.useCallback(ie=>(...le)=>{t.rowSelection&&ie(...le)},[t.rowSelection]),o=t.signature!==dl.DataGrid&&(((W=t.rowSelectionPropagation)==null?void 0:W.parents)||((K=t.rowSelectionPropagation)==null?void 0:K.descendants)),i=b.useMemo(()=>t.rowSelectionModel,[t.rowSelectionModel]),a=b.useRef(null);e.current.registerControlState({stateId:"rowSelection",propModel:i,propOnChange:t.onRowSelectionModelChange,stateSelector:il,changeEvent:"rowSelectionChange"});const{checkboxSelection:l,disableRowSelectionOnClick:u,isRowSelectable:d}=t,f=mO(t),m=Xe(e,hi),g=Xe(e,V0)>1,w=b.useCallback(ie=>{let le=ie;const ve=a.current??ie,ue=e.current.isRowSelected(ie);if(ue){const me=i0(e),be=me.findIndex(Ze=>Ze===ve),Fe=me.findIndex(Ze=>Ze===le);if(be===Fe)return;be>Fe?le=me[Fe+1]:le=me[Fe-1]}a.current=ie,e.current.selectRowRange({startId:ve,endId:le},!ue)},[e]),C=Vt(()=>t.pagination&&t.checkboxSelectionVisibleOnly&&t.paginationMode==="client"?lN(e):i0(e)),S=b.useCallback((ie,le)=>{if(t.signature===dl.DataGrid&&!f&&(ie.type!=="include"||ie.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(`
`));il(e)!==ie&&(n.debug("Setting selection model"),e.current.setState(ue=>z({},ue,{rowSelection:t.rowSelection?ie:Yv}),le))},[e,n,t.rowSelection,t.signature,f]),E=b.useCallback(ie=>Vx(e).has(ie),[e]),T=b.useCallback(ie=>{if(t.rowSelection===!1||d&&!d(e.current.getRowParams(ie)))return!1;const le=cc(e,ie);return!((le==null?void 0:le.type)==="footer"||(le==null?void 0:le.type)==="pinnedRow")},[e,t.rowSelection,d]),I=b.useCallback(()=>J9(e),[e]),k=b.useCallback((ie,le=!0,ve=!1)=>{var ue,me,be,Fe,Ze,We;if(e.current.isRowSelectable(ie))if(a.current=ie,ve){n.debug(`Setting selection for row ${ie}`);const _e={type:"include",ids:new Set},ft=nt=>{_e.ids.add(nt)};le&&(ft(ie),o&&iv(e,m,ie,((ue=t.rowSelectionPropagation)==null?void 0:ue.descendants)??!1,((me=t.rowSelectionPropagation)==null?void 0:me.parents)??!1,ft)),e.current.setRowSelectionModel(_e,"singleRowSelection")}else{n.debug(`Toggling selection for row ${ie}`);const _e=il(e),ft={type:_e.type,ids:new Set(_e.ids)},nt=jd(ft);nt.unselect(ie);const dt=ye=>{nt.select(ye)},se=ye=>{nt.unselect(ye)};le?(dt(ie),o&&iv(e,m,ie,((be=t.rowSelectionPropagation)==null?void 0:be.descendants)??!1,((Fe=t.rowSelectionPropagation)==null?void 0:Fe.parents)??!1,dt)):o&&R3(e,m,ie,((Ze=t.rowSelectionPropagation)==null?void 0:Ze.descendants)??!1,((We=t.rowSelectionPropagation)==null?void 0:We.parents)??!1,se),(ft.type==="include"&&ft.ids.size<2||f)&&e.current.setRowSelectionModel(ft,"singleRowSelection")}},[e,n,o,m,(J=t.rowSelectionPropagation)==null?void 0:J.descendants,(ae=t.rowSelectionPropagation)==null?void 0:ae.parents,f]),R=b.useCallback((ie,le=!0,ve=!1)=>{var Ze,We,_e,ft,nt,dt;if(n.debug("Setting selection for several rows"),t.rowSelection===!1)return;const ue=new Set;for(let se=0;se<ie.length;se+=1){const De=ie[se];e.current.isRowSelectable(De)&&ue.add(De)}const me=il(e);let be;if(ve){if(be={type:"include",ids:ue},le){const se=jd(be);if(o){const De=ye=>{se.select(ye)};for(const ye of ue)iv(e,m,ye,((Ze=t.rowSelectionPropagation)==null?void 0:Ze.descendants)??!1,((We=t.rowSelectionPropagation)==null?void 0:We.parents)??!1,De)}}else be.ids=new Set;if(me.type===be.type&&be.ids.size===me.ids.size&&Array.from(be.ids).every(se=>me.ids.has(se)))return}else{be={type:me.type,ids:new Set(me.ids)};const se=jd(be),De=Pe=>{se.select(Pe)},ye=Pe=>{se.unselect(Pe)};for(const Pe of ue)le?(se.select(Pe),o&&iv(e,m,Pe,((_e=t.rowSelectionPropagation)==null?void 0:_e.descendants)??!1,((ft=t.rowSelectionPropagation)==null?void 0:ft.parents)??!1,De)):(ye(Pe),o&&R3(e,m,Pe,((nt=t.rowSelectionPropagation)==null?void 0:nt.descendants)??!1,((dt=t.rowSelectionPropagation)==null?void 0:dt.parents)??!1,ye))}(be.type==="include"&&be.ids.size<2||f)&&e.current.setRowSelectionModel(be,"multipleRowsSelection")},[n,o,f,e,m,(ce=t.rowSelectionPropagation)==null?void 0:ce.descendants,(de=t.rowSelectionPropagation)==null?void 0:de.parents,t.rowSelection]),P=b.useCallback(ie=>{var me,be;if(!g||!o||ie.ids.size===0&&ie.type==="include")return ie;const le={type:ie.type,ids:new Set(ie.ids)},ve=jd(le),ue=Fe=>{ve.select(Fe)};for(const Fe of ie.ids)iv(e,m,Fe,((me=t.rowSelectionPropagation)==null?void 0:me.descendants)??!1,((be=t.rowSelectionPropagation)==null?void 0:be.parents)??!1,ue,ve);return le},[e,m,(re=t.rowSelectionPropagation)==null?void 0:re.descendants,(ke=t.rowSelectionPropagation)==null?void 0:ke.parents,g,o]),O=b.useCallback(({startId:ie,endId:le},ve=!0,ue=!1)=>{if(!e.current.getRow(ie)||!e.current.getRow(le))return;n.debug(`Expanding selection from row ${ie} to row ${le}`);const me=i0(e),be=me.indexOf(ie),Fe=me.indexOf(le),[Ze,We]=be>Fe?[Fe,be]:[be,Fe],_e=me.slice(Ze,We+1);e.current.selectRows(_e,ve,ue)},[e,n]),j={selectRow:k,setRowSelectionModel:S,getSelectedRows:I,isRowSelected:E,isRowSelectable:T},F={selectRows:R,selectRowRange:O,getPropagatedRowSelectionModel:P};mn(e,j,"public"),mn(e,F,t.signature===dl.DataGrid?"private":"public");const D=b.useRef(!0),_=b.useCallback((ie=!1)=>{var _e,ft;if(D.current)return;const le=il(e),ve=xs(e),ue=K0(e),me=nt=>t.filterMode==="server"?!ve[nt]:!ve[nt]||ue[nt]===!1,be={type:le.type,ids:new Set(le.ids)},Fe=jd(be);let Ze=!1;for(const nt of le.ids){if(me(nt)){if(t.keepNonExistentRowsSelected)continue;Fe.unselect(nt),Ze=!0;continue}if(!((_e=t.rowSelectionPropagation)!=null&&_e.parents))continue;const dt=m[nt];if((dt==null?void 0:dt.type)==="group"){if(dt.isAutoGenerated){Fe.unselect(nt),Ze=!0;continue}dt.children.every(De=>ue[De]===!1)||(Fe.unselect(nt),Ze=!0)}}const We=g&&((ft=t.rowSelectionPropagation)==null?void 0:ft.parents)&&(be.ids.size>0||be.type==="exclude");if(Ze||We&&!ie)if(We)if(be.type==="exclude"){const nt=C(),dt=[];for(let se=0;se<nt.length;se+=1){const De=nt[se];(t.keepNonExistentRowsSelected||!me(De))&&Fe.has(De)&&dt.push(De)}e.current.selectRows(dt,!0,!0)}else e.current.selectRows(Array.from(be.ids),!0,!0);else e.current.setRowSelectionModel(be,"multipleRowsSelection")},[e,g,(Ce=t.rowSelectionPropagation)==null?void 0:Ce.parents,t.keepNonExistentRowsSelected,t.filterMode,m,C]),$=b.useCallback((ie,le)=>{const ve=le.metaKey||le.ctrlKey,ue=!l&&!ve&&!Dce(le),me=!f||ue,be=e.current.isRowSelected(ie),We=fT(e)>1&&me||!be;e.current.selectRow(ie,We,me)},[e,f,l]),B=b.useCallback((ie,le)=>{var me;if(u)return;const ve=(me=le.target.closest(`.${ee.cell}`))==null?void 0:me.getAttribute("data-field");if(ve===X0.field||ve===cT)return;if(ve){const be=e.current.getColumn(ve);if((be==null?void 0:be.type)===sT)return}cc(e,ie.id).type!=="pinnedRow"&&(le.shiftKey&&f?w(ie.id):$(ie.id,le))},[u,f,e,w,$]),V=b.useCallback((ie,le)=>{var ve;f&&le.shiftKey&&((ve=window.getSelection())==null||ve.removeAllRanges())},[f]),q=b.useCallback((ie,le)=>{f&&le.nativeEvent.shiftKey?w(ie.id):e.current.selectRow(ie.id,ie.value,!f)},[e,w,f]),G=b.useCallback(ie=>{const le=No(e),ve=Y9(e),ue=le.items.length>0||(ve==null?void 0:ve.some(me=>me.length));!t.isRowSelectable&&!t.checkboxSelectionVisibleOnly&&o&&!ue?e.current.setRowSelectionModel({type:ie?"exclude":"include",ids:new Set}):e.current.selectRows(C(),ie)},[e,o,C,t.checkboxSelectionVisibleOnly,t.isRowSelectable]),N=b.useCallback(ie=>{G(ie.value)},[G]),H=b.useCallback((ie,le)=>{if(e.current.getCellMode(ie.id,ie.field)!==Qn.Edit&&!Jx(le)){if(E2(le.key)&&le.shiftKey){const ve=ga(e);if(ve&&ve.id!==ie.id){le.preventDefault();const ue=e.current.isRowSelected(ve.id);if(!f){e.current.selectRow(ve.id,!ue,!0);return}const me=e.current.getRowIndexRelativeToVisibleRows(ve.id),be=e.current.getRowIndexRelativeToVisibleRows(ie.id);let Fe,Ze;me>be?ue?(Fe=be,Ze=me-1):(Fe=be,Ze=me):ue?(Fe=me+1,Ze=be):(Fe=me,Ze=be);const We=Hd(e),_e=[];for(let ft=Fe;ft<=Ze;ft+=1)_e.push(We.rows[ft].id);e.current.selectRows(_e,!ue);return}}if(le.key===" "&&le.shiftKey){le.preventDefault(),$(ie.id,le);return}String.fromCharCode(le.keyCode)==="A"&&(le.ctrlKey||le.metaKey)&&(le.preventDefault(),G(!0))}},[e,f,$,G]),Y=Vt(()=>{if(!t.rowSelection){e.current.setRowSelectionModel(Yv);return}if(i===void 0)return;if(!o||!g||i.type==="include"&&i.ids.size===0){e.current.setRowSelectionModel(i);return}const ie=e.current.getPropagatedRowSelectionModel(i);if(ie.type!==i.type||ie.ids.size!==i.ids.size||!Array.from(i.ids).every(le=>ie.ids.has(le))){e.current.setRowSelectionModel(ie);return}e.current.setRowSelectionModel(i)});Mt(e,"sortedRowsSet",r(()=>_(!0))),Mt(e,"filteredRowsSet",r(()=>_())),Mt(e,"rowClick",r(B)),Mt(e,"rowSelectionCheckboxChange",r(q)),Mt(e,"headerSelectionCheckboxChange",N),Mt(e,"cellMouseDown",r(V)),Mt(e,"cellKeyDown",r(H)),b.useEffect(()=>{Y()},[e,i,t.rowSelection,Y]);const Q=i!=null;b.useEffect(()=>{if(Q||!t.rowSelection||typeof T!="function")return;const ie=il(e);if(ie.type!=="include")return;const le=new Set;for(const ve of ie.ids)T(ve)&&le.add(ve);le.size<ie.ids.size&&e.current.setRowSelectionModel({type:ie.type,ids:le})},[e,T,Q,t.rowSelection]),b.useEffect(()=>{if(!t.rowSelection||Q)return;const ie=il(e);!f&&(ie.type==="include"&&ie.ids.size>1||ie.type==="exclude")&&e.current.setRowSelectionModel(Yv)},[e,f,l,Q,t.rowSelection]),b.useEffect(()=>{r(_)},[_,r]),b.useEffect(()=>{D.current&&(D.current=!1)},[])},lpe=e=>{const{classes:t}=e;return b.useMemo(()=>st({cellCheckbox:["cellCheckbox"],columnHeaderCheckbox:["columnHeaderCheckbox"]},Cn,t),[t])},cpe=(e,t)=>{const n={classes:t.classes},r=lpe(n),o=b.useCallback(i=>{const a=z({},X0,{cellClassName:r.cellCheckbox,headerClassName:r.columnHeaderCheckbox,headerName:e.current.getLocaleText("checkboxSelectionHeaderName")}),l=t.checkboxSelection,u=i.lookup[hs]!=null;return l&&!u?(i.lookup[hs]=a,i.orderedFields=[hs,...i.orderedFields]):!l&&u?(delete i.lookup[hs],i.orderedFields=i.orderedFields.filter(d=>d!==hs)):l&&u&&(i.lookup[hs]=z({},a,i.lookup[hs]),t.columns.some(d=>d.field===hs)||(i.orderedFields=[hs,...i.orderedFields.filter(d=>d!==hs)])),i},[e,r,t.columns,t.checkboxSelection]);Yr(e,"hydrateColumns",o)},upe=(e,t)=>{var r,o;const n=t.sortModel??((o=(r=t.initialState)==null?void 0:r.sorting)==null?void 0:o.sortModel)??[];return z({},e,{sorting:{sortModel:T9(n,t.disableMultipleColumnsSorting),sortedRows:[]}})},dpe=(e,t)=>{var P,O;const n=Ho(e,"useGridSorting");e.current.registerControlState({stateId:"sortModel",propModel:t.sortModel,propOnChange:t.onSortModelChange,stateSelector:ms,changeEvent:"sortModelChange"});const r=b.useCallback((j,F)=>{const D=ms(e),_=D.findIndex(B=>B.field===j);let $=[...D];return _>-1?(F==null?void 0:F.sort)==null?$.splice(_,1):$.splice(_,1,F):$=[...D,F],$},[e]),o=b.useCallback((j,F)=>{const _=ms(e).find($=>$.field===j.field);if(_){const $=F===void 0?w3(j.sortingOrder??t.sortingOrder,_.sort):F;return $===void 0?void 0:z({},_,{sort:$})}return{field:j.field,sort:F===void 0?w3(j.sortingOrder??t.sortingOrder):F}},[e,t.sortingOrder]),i=b.useCallback((j,F)=>F==null||F.sortable===!1||t.disableColumnSorting?j:(F.sortingOrder||t.sortingOrder).some(_=>!!_)?[...j,"columnMenuSortItem"]:j,[t.sortingOrder,t.disableColumnSorting]),a=b.useCallback(()=>{e.current.setState(j=>{if(t.sortingMode==="server")return n.debug("Skipping sorting rows as sortingMode = server"),z({},j,{sorting:z({},j.sorting,{sortedRows:uO(hi(e),Qo,!1)})});const F=ms(e),D=Loe(F,e),_=e.current.applyStrategyProcessor("sorting",{sortRowList:D});return z({},j,{sorting:z({},j.sorting,{sortedRows:_})})}),e.current.publishEvent("sortedRowsSet")},[e,n,t.sortingMode]),l=b.useCallback(j=>{ms(e)!==j&&(n.debug("Setting sort model"),e.current.setState(x3(j,t.disableMultipleColumnsSorting)),e.current.applySorting())},[e,n,t.disableMultipleColumnsSorting]),u=b.useCallback((j,F,D)=>{const _=e.current.getColumn(j),$=o(_,F);let B;!D||t.disableMultipleColumnsSorting?B=($==null?void 0:$.sort)==null?[]:[$]:B=r(_.field,$),e.current.setSortModel(B)},[e,r,o,t.disableMultipleColumnsSorting]),d=b.useCallback(()=>ms(e),[e]),f=b.useCallback(()=>dO(e).map(F=>F.model),[e]),m=b.useCallback(()=>Gx(e),[e]),g=b.useCallback(j=>e.current.getSortedRowIds()[j],[e]);mn(e,{getSortModel:d,getSortedRows:f,getSortedRowIds:m,getRowIdFromRowIndex:g,setSortModel:l,sortColumn:u,applySorting:a},"public");const C=b.useCallback((j,F)=>{var $,B;const D=ms(e);return!F.exportOnlyDirtyModels||t.sortModel!=null||((B=($=t.initialState)==null?void 0:$.sorting)==null?void 0:B.sortModel)!=null||D.length>0?z({},j,{sorting:{sortModel:D}}):j},[e,t.sortModel,(O=(P=t.initialState)==null?void 0:P.sorting)==null?void 0:O.sortModel]),S=b.useCallback((j,F)=>{var _;const D=(_=F.stateToRestore.sorting)==null?void 0:_.sortModel;return D==null?j:(e.current.setState(x3(D,t.disableMultipleColumnsSorting)),z({},j,{callbacks:[...j.callbacks,e.current.applySorting]}))},[e,t.disableMultipleColumnsSorting]),E=b.useCallback(j=>{const F=hi(e),D=F[Qo],_=j.sortRowList?j.sortRowList(D.children.map($=>F[$])):[...D.children];return D.footerId!=null&&_.push(D.footerId),_},[e]);Yr(e,"exportState",C),Yr(e,"restoreState",S),fx(e,gh,"sorting",E);const T=b.useCallback(({field:j,colDef:F},D)=>{if(!F.sortable||t.disableColumnSorting)return;const _=t.multipleColumnsSortingMode==="always"||D.shiftKey||D.metaKey||D.ctrlKey;u(j,void 0,_)},[u,t.disableColumnSorting,t.multipleColumnsSortingMode]),I=b.useCallback(({field:j,colDef:F},D)=>{!F.sortable||t.disableColumnSorting||D.key==="Enter"&&!D.ctrlKey&&!D.metaKey&&u(j,void 0,t.multipleColumnsSortingMode==="always"||D.shiftKey)},[u,t.disableColumnSorting,t.multipleColumnsSortingMode]),k=b.useCallback(()=>{const j=ms(e),F=Tu(e);if(j.length>0){const D=j.filter(_=>F[_.field]);D.length<j.length&&e.current.setSortModel(D)}},[e]),R=b.useCallback(j=>{j==="sorting"&&e.current.applySorting()},[e]);Yr(e,"columnMenu",i),Mt(e,"columnHeaderClick",T),Mt(e,"columnHeaderKeyDown",I),Mt(e,"rowsSet",e.current.applySorting),Mt(e,"columnsChange",k),Mt(e,"activeStrategyProcessorChange",R),Xx(()=>{e.current.applySorting()}),kn(()=>{t.sortModel!==void 0&&e.current.setSortModel(t.sortModel)},[e,t.sortModel])};function o5(e){const{containerSize:t,scrollPosition:n,elementSize:r,elementOffset:o}=e,i=o+r;if(r>t)return o;if(i-t>n)return i-t;if(o<n)return o}const fpe=(e,t)=>{const n=Lo(),r=Ho(e,"useGridScroll"),o=e.current.columnHeadersContainerRef,i=e.current.virtualScrollerRef,a=Xe(e,af),l=b.useCallback(m=>{var T;const g=vr(e),w=Ux(e),C=t.listView?[y0(e)]:ro(e);if(!(m.rowIndex==null)&&w===0||C.length===0)return!1;r.debug(`Scrolling to cell at row ${m.rowIndex}, col: ${m.colIndex} `);let E={};if(m.colIndex!==void 0){const I=of(e);let k;if(typeof m.rowIndex<"u"){const R=(T=a[m.rowIndex])==null?void 0:T.id,P=e.current.unstable_getCellColSpanInfo(R,m.colIndex);P&&!P.spannedByColSpan&&(k=P.cellProps.width)}typeof k>"u"&&(k=C[m.colIndex].computedWidth),E.left=o5({containerSize:g.viewportOuterSize.width,scrollPosition:Math.abs(i.current.scrollLeft),elementSize:k,elementOffset:I[m.colIndex]})}if(m.rowIndex!==void 0){const I=Zx(e),k=Kie(e),R=aN(e),P=t.pagination?m.rowIndex-k*R:m.rowIndex,O=I.positions[P+1]?I.positions[P+1]-I.positions[P]:I.currentPageTotalHeight-I.positions[P];E.top=o5({containerSize:g.viewportInnerSize.height,scrollPosition:i.current.scrollTop,elementSize:O,elementOffset:I.positions[P]})}return E=e.current.unstable_applyPipeProcessors("scrollToIndexes",E,m),typeof E.left!==void 0||typeof E.top!==void 0?(e.current.scroll(E),!0):!1},[r,e,i,t.pagination,a,t.listView]),u=b.useCallback(m=>{if(i.current&&m.left!==void 0&&o.current){const g=n?-1:1;o.current.scrollLeft=m.left,i.current.scrollLeft=g*m.left,r.debug(`Scrolling left: ${m.left}`)}i.current&&m.top!==void 0&&(i.current.scrollTop=m.top,r.debug(`Scrolling top: ${m.top}`)),r.debug("Scrolling, updating container, and viewport")},[i,n,o,r]),d=b.useCallback(()=>i!=null&&i.current?{top:i.current.scrollTop,left:i.current.scrollLeft}:{top:0,left:0},[i]);mn(e,{scroll:u,scrollToIndexes:l,getScrollPosition:d},"public")};function ppe(e,t){fr(e,"columnHeaderClick",t.onColumnHeaderClick),fr(e,"columnHeaderContextMenu",t.onColumnHeaderContextMenu),fr(e,"columnHeaderDoubleClick",t.onColumnHeaderDoubleClick),fr(e,"columnHeaderOver",t.onColumnHeaderOver),fr(e,"columnHeaderOut",t.onColumnHeaderOut),fr(e,"columnHeaderEnter",t.onColumnHeaderEnter),fr(e,"columnHeaderLeave",t.onColumnHeaderLeave),fr(e,"cellClick",t.onCellClick),fr(e,"cellDoubleClick",t.onCellDoubleClick),fr(e,"cellKeyDown",t.onCellKeyDown),fr(e,"preferencePanelClose",t.onPreferencePanelClose),fr(e,"preferencePanelOpen",t.onPreferencePanelOpen),fr(e,"menuOpen",t.onMenuOpen),fr(e,"menuClose",t.onMenuClose),fr(e,"rowDoubleClick",t.onRowDoubleClick),fr(e,"rowClick",t.onRowClick),fr(e,"stateChange",t.onStateChange)}function hpe(e,t=166){let n,r;const o=()=>{n=void 0,e(...r)};function i(...a){r=a,n===void 0&&(n=setTimeout(o,t))}return i.clear=()=>{clearTimeout(n),n=void 0},i}const eA={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:yc.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},Hg={width:0,height:0},mpe={isReady:!1,root:Hg,viewportOuterSize:Hg,viewportInnerSize:Hg,contentSize:Hg,minimumSize:Hg,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},gpe=(e,t,n)=>{const r=mpe,o=G0(n);return z({},e,{dimensions:z({},r,WN(t,n,o,Y0(n)))})},VN=wt(ro,of,(e,t)=>{const n=e.length;return n===0?0:Xg(t[n-1]+e[n-1].computedWidth,1)});function bpe(e,t){const n=Ho(e,"useResizeContainer"),r=b.useRef(!1),o=b.useRef(Hg),i=Xe(e,Y0),a=Xe(e,G0),l=Xe(e,VN),u=b.useRef(!0),{rowHeight:d,headerHeight:f,groupHeaderHeight:m,headerFilterHeight:g,headersTotalHeight:w,leftPinnedWidth:C,rightPinnedWidth:S}=WN(t,e,a,i),E=b.useCallback(()=>vr(e),[e]),T=b.useCallback(_=>{e.current.setState($=>z({},$,{dimensions:_})),e.current.rootElementRef.current&&i5(e.current.rootElementRef.current,vr(e))},[e]),I=b.useCallback(()=>{const _=vr(e);if(!_.isReady)return 0;const $=Hd(e);if(t.getRowHeight){const V=Qx(e),q=V.lastRowIndex-V.firstRowIndex;return Math.min(q-1,$.rows.length)}const B=Math.floor(_.viewportInnerSize.height/d);return Math.min(B,$.rows.length)},[e,t.getRowHeight,d]),k=b.useCallback(()=>{var ae,ce;if(u.current)return;const _=ype(e.current.mainElementRef.current,t.scrollbarSize),$=Zx(e),B=w+$.pinnedTopRowsTotalHeight,V=$.pinnedBottomRowsTotalHeight,q={width:l,height:Xg($.currentPageTotalHeight,1)};let G,N,H=!1,Y=!1;if(t.autoHeight)Y=!1,H=Math.round(l)>Math.round(o.current.width),G={width:o.current.width,height:B+V+q.height},N={width:Math.max(0,G.width-(Y?_:0)),height:Math.max(0,G.height-(H?_:0))};else{G={width:o.current.width,height:o.current.height},N={width:Math.max(0,G.width),height:Math.max(0,G.height-B-V)};const de=q,re=N,ke=de.width>re.width,Ce=de.height>re.height;(ke||Ce)&&(Y=Ce,H=de.width+(Y?_:0)>re.width,H&&(Y=de.height+_>re.height)),Y&&(N.width-=_),H&&(N.height-=_)}const Q=Math.max(G.width,l+(Y?_:0)),W={width:l,height:B+q.height+V},K={isReady:!0,root:o.current,viewportOuterSize:G,viewportInnerSize:N,contentSize:q,minimumSize:W,hasScrollX:H,hasScrollY:Y,scrollbarSize:_,headerHeight:f,groupHeaderHeight:m,headerFilterHeight:g,rowWidth:Q,rowHeight:d,columnsTotalWidth:l,leftPinnedWidth:C,rightPinnedWidth:S,headersTotalHeight:w,topContainerHeight:B,bottomContainerHeight:V},J=e.current.state.dimensions;Ya(J,K)||(T(K),vpe(K.viewportInnerSize,J.viewportInnerSize)||e.current.publishEvent("viewportInnerSizeChange",K.viewportInnerSize),(ce=(ae=e.current).updateRenderContext)==null||ce.call(ae))},[e,T,t.scrollbarSize,t.autoHeight,d,f,m,g,l,w,C,S]),R=Vt(k),P=b.useMemo(()=>t.resizeThrottleMs>0?hpe(()=>{R(),e.current.publishEvent("debouncedResize",o.current)},t.resizeThrottleMs):void 0,[e,t.resizeThrottleMs,R]);b.useEffect(()=>P==null?void 0:P.clear,[P]);const O={getRootDimensions:E},j={updateDimensions:k,getViewportPageSize:I};kn(k,[k]),mn(e,O,"public"),mn(e,j,"private");const F=b.useCallback(_=>{i5(_,vr(e))},[e]),D=b.useCallback(_=>{if(o.current=_,_.height===0&&!r.current&&!t.autoHeight&&!C2&&(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(`
`)),r.current=!0),_.width===0&&!r.current&&!C2&&(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(`
`)),r.current=!0),u.current||!P){u.current=!1,k();return}P()},[k,t.autoHeight,P,n]);fr(e,"rootMount",F),fr(e,"resize",D),fr(e,"debouncedResize",t.onResize)}function i5(e,t){const n=(r,o)=>e.style.setProperty(r,o);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 WN(e,t,n,r){const o=G9(e.rowHeight,eA.rowHeight);return{rowHeight:Math.floor(o*n),headerHeight:Math.floor(e.columnHeaderHeight*n),groupHeaderHeight:Math.floor((e.columnGroupHeaderHeight??e.columnHeaderHeight)*n),headerFilterHeight:Math.floor((e.headerFilterHeight??e.columnHeaderHeight)*n),columnsTotalWidth:VN(t),headersTotalHeight:vO(t,e),leftPinnedWidth:r.left.reduce((i,a)=>i+a.computedWidth,0),rightPinnedWidth:r.right.reduce((i,a)=>i+a.computedWidth,0)}}const a5=new WeakMap;function ype(e,t){if(t!==void 0)return t;if(e===null)return 0;const n=a5.get(e);if(n!==void 0)return n;const o=io(e).createElement("div");o.style.width="99px",o.style.height="99px",o.style.position="absolute",o.style.overflow="scroll",o.className="scrollDiv",e.appendChild(o);const i=o.offsetWidth-o.clientWidth;return e.removeChild(o),a5.set(e,i),i}function vpe(e,t){return e.width===t.width&&e.height===t.height}const xpe=typeof globalThis.ResizeObserver<"u"?globalThis.ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},wpe=(e,t,n)=>{n.current.caches.rowsMeta={heights:new Map};const r=oO(n),o=Ux(n),i=Wx(n),a=Math.min(i.enabled?i.paginationModel.pageSize:o,o);return z({},e,{rowsMeta:{currentPageTotalHeight:a*r,positions:Array.from({length:a},(l,u)=>u*r),pinnedTopRowsTotalHeight:0,pinnedBottomRowsTotalHeight:0}})},Cpe=(e,t)=>{const{getRowHeight:n,getRowSpacing:r,getEstimatedRowHeight:o}=t,i=e.current.caches.rowsMeta.heights,a=b.useRef(-1),l=b.useRef(!1),u=b.useRef(!1),d=Xe(e,G0),f=xO(e),m=Xe(e,W0),g=Xe(e,oO),w=_=>{let $=i.get(_);return $===void 0&&($={content:g,spacingTop:0,spacingBottom:0,detail:0,autoHeight:!1,needsFirstMeasurement:!0},i.set(_,$)),$},C=b.useCallback(_=>{const $=vr(e).rowHeight,B=e.current.getRowHeightEntry(_.id);if(!n)B.content=$,B.needsFirstMeasurement=!1;else{const V=n(z({},_,{densityFactor:d}));if(V==="auto"){if(B.needsFirstMeasurement){const q=o?o(z({},_,{densityFactor:d})):$;B.content=q??$}l.current=!0,B.autoHeight=!0}else B.content=G9(V,$),B.needsFirstMeasurement=!1,B.autoHeight=!1}if(r){const V=e.current.getRowIndexRelativeToVisibleRows(_.id),q=r(z({},_,{isFirstVisible:V===0,isLastVisible:V===f.rows.length-1,indexRelativeToCurrentPage:V}));B.spacingTop=q.top??0,B.spacingBottom=q.bottom??0}else B.spacingTop=0,B.spacingBottom=0;return e.current.unstable_applyPipeProcessors("rowHeight",B,_),B},[e,f.rows,n,o,g,r,d]),S=b.useCallback(()=>{l.current=!1;const _=m.top.reduce((N,H)=>{const Y=C(H);return N+Y.content+Y.spacingTop+Y.spacingBottom+Y.detail},0),$=m.bottom.reduce((N,H)=>{const Y=C(H);return N+Y.content+Y.spacingTop+Y.spacingBottom+Y.detail},0),B=[],V=f.rows.reduce((N,H)=>{B.push(N);const Y=C(H),Q=Y.content+Y.spacingTop+Y.spacingBottom+Y.detail;return N+Q},0);l.current||(a.current=1/0);const q=_!==e.current.state.rowsMeta.pinnedTopRowsTotalHeight||$!==e.current.state.rowsMeta.pinnedBottomRowsTotalHeight||V!==e.current.state.rowsMeta.currentPageTotalHeight,G={currentPageTotalHeight:V,positions:B,pinnedTopRowsTotalHeight:_,pinnedBottomRowsTotalHeight:$};e.current.setState(N=>z({},N,{rowsMeta:G})),q&&e.current.updateDimensions(),u.current=!0},[e,m,f.rows,C]),E=_=>{var $;return(($=i.get(_))==null?void 0:$.content)??g},T=(_,$)=>{const B=e.current.getRowHeightEntry(_),V=B.content!==$;B.needsFirstMeasurement=!1,B.content=$,u.current&&(u.current=!V)},I=_=>{var $;return(($=i.get(_))==null?void 0:$.autoHeight)??!1},k=()=>a.current,R=_=>{l.current&&_>a.current&&(a.current=_)},P=()=>{i.clear(),S()},O=_s(()=>new xpe(_=>{var $;for(let B=0;B<_.length;B+=1){const V=_[B],q=V.borderBoxSize&&V.borderBoxSize.length>0?V.borderBoxSize[0].blockSize:V.contentRect.height,G=V.target.__mui_id;if((($=vN(e))==null?void 0:$.id)===G&&q===0)return;e.current.unstable_storeRowHeightMeasurement(G,q)}u.current||requestAnimationFrame(()=>{e.current.requestPipeProcessorsApplication("rowHeight")})})).current,j=(_,$)=>(_.__mui_id=$,O.observe(_),()=>O.unobserve(_));kO(e,"rowHeight",S),kn(()=>{S()},[S]);const F={unstable_getRowHeight:E,unstable_setLastMeasuredRowIndex:R,unstable_storeRowHeightMeasurement:T,resetRowHeights:P},D={hydrateRowsMeta:S,observeRowHeight:j,rowHasAutoHeight:I,getRowHeightEntry:w,getLastMeasuredRowIndex:k};mn(e,F,"public"),mn(e,D,"private")},Spe=e=>{const t=b.useCallback((o={})=>e.current.unstable_applyPipeProcessors("exportState",{},o),[e]),n=b.useCallback(o=>{e.current.unstable_applyPipeProcessors("restoreState",{callbacks:[]},{stateToRestore:o}).callbacks.forEach(a=>{a()})},[e]);mn(e,{exportState:t,restoreState:n},"public")},Epe=e=>{const t=b.useRef({}),n=(l,u)=>{var d;return(d=t.current[l])==null?void 0:d[u]},r=()=>{t.current={}},o=b.useCallback(({rowId:l,minFirstColumn:u,maxLastColumn:d,columns:f})=>{for(let m=u;m<d;m+=1){const g=Tpe({apiRef:e,lookup:t.current,columnIndex:m,rowId:l,minFirstColumnIndex:u,maxLastColumnIndex:d,columns:f});g.colSpan>1&&(m+=g.colSpan-1)}},[e]),i={unstable_getCellColSpanInfo:n},a={resetColSpan:r,calculateColSpan:o};mn(e,i,"public"),mn(e,a,"private"),Mt(e,"columnOrderChange",r)};function Tpe(e){const{apiRef:t,lookup:n,columnIndex:r,rowId:o,minFirstColumnIndex:i,maxLastColumnIndex:a,columns:l}=e,u=l.length,d=l[r],f=t.current.getRow(o),m=t.current.getRowValue(f,d),g=typeof d.colSpan=="function"?d.colSpan(m,f,d,t):d.colSpan;if(!g||g===1)return rP(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:1,width:d.computedWidth}}),{colSpan:1};let w=d.computedWidth;for(let C=1;C<g;C+=1){const S=r+C;if(S>=i&&S<a){const E=l[S];w+=E.computedWidth,rP(n,o,r+C,{spannedByColSpan:!0,rightVisibleCellIndex:Math.min(r+g,u-1),leftVisibleCellIndex:r})}rP(n,o,r,{spannedByColSpan:!1,cellProps:{colSpan:g,width:w}})}return{colSpan:g}}function rP(e,t,n,r){e[t]||(e[t]={}),e[t][n]=r}const qN=(e,t,n)=>{if(A9(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(`
`));n[e.field]=t;return}const{groupId:r,children:o}=e;o.forEach(i=>{qN(i,[...t,r],n)})},tA=e=>{if(!e)return{};const t={};return e.forEach(n=>{qN(n,[],t)}),t},nA=(e,t,n)=>{const r=u=>t[u]??[],o=[],i=Math.max(...e.map(u=>r(u).length)),a=(u,d,f)=>Ya(r(u).slice(0,f+1),r(d).slice(0,f+1)),l=(u,d)=>!!(n!=null&&n.left&&n.left.includes(u)&&!n.left.includes(d)||n!=null&&n.right&&!n.right.includes(u)&&n.right.includes(d));for(let u=0;u<i;u+=1){const d=e.reduce((f,m)=>{const g=r(m)[u]??null;if(f.length===0)return[{columnFields:[m],groupId:g}];const w=f[f.length-1],C=w.columnFields[w.columnFields.length-1];return w.groupId!==g||!a(C,m,u)||l(C,m)?[...f,{columnFields:[m],groupId:g}]:[...f.slice(0,f.length-1),{columnFields:[...w.columnFields,m],groupId:g}]},[]);o.push(d)}return o},Mpe=["groupId","children"],PO=e=>{let t={};return e.forEach(n=>{if(A9(n))return;const{groupId:r,children:o}=n,i=tt(n,Mpe);if(!r)throw new Error("MUI X: An element of the columnGroupingModel does not have either `field` or `groupId`.");const a=z({},i,{groupId:r}),l=PO(o);if(l[r]!==void 0||t[r]!==void 0)throw new Error(`MUI X: The groupId ${r} is used multiple times in the columnGroupingModel.`);t=z({},t,l,{[r]:a})}),z({},t)},kpe=(e,t,n)=>{if(!t.columnGroupingModel)return e;const r=fc(n),o=q0(n),i=PO(t.columnGroupingModel??[]),a=tA(t.columnGroupingModel??[]),l=nA(r,a,n.current.state.pinnedColumns??{}),u=o.length===0?0:Math.max(...o.map(d=>{var f;return((f=a[d])==null?void 0:f.length)??0}));return z({},e,{columnGrouping:{lookup:i,unwrappedGroupingModel:a,headerStructure:l,maxDepth:u}})},Ppe=(e,t)=>{const n=b.useCallback(l=>fN(e)[l]??[],[e]),r=b.useCallback(()=>pN(e),[e]);mn(e,{getColumnGroupPath:n,getAllGroupDetails:r},"public");const i=b.useCallback(()=>{const l=tA(t.columnGroupingModel??[]);e.current.setState(u=>{var g;const d=((g=u.columns)==null?void 0:g.orderedFields)??[],f=u.pinnedColumns??{},m=nA(d,l,f);return z({},u,{columnGrouping:z({},u.columnGrouping,{headerStructure:m})})})},[e,t.columnGroupingModel]),a=b.useCallback(l=>{var S,E;const u=((E=(S=e.current).getPinnedColumns)==null?void 0:E.call(S))??{},d=fc(e),f=q0(e),m=PO(l??[]),g=tA(l??[]),w=nA(d,g,u),C=f.length===0?0:Math.max(...f.map(T=>{var I;return((I=g[T])==null?void 0:I.length)??0}));e.current.setState(T=>z({},T,{columnGrouping:{lookup:m,unwrappedGroupingModel:g,headerStructure:w,maxDepth:C}}))},[e]);Mt(e,"columnIndexChange",i),Mt(e,"columnsChange",()=>{a(t.columnGroupingModel)}),Mt(e,"columnVisibilityModelChange",()=>{a(t.columnGroupingModel)}),b.useEffect(()=>{a(t.columnGroupingModel)},[a,t.columnGroupingModel])};function Ipe(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function s5(e,t){if(t!==void 0&&e.changedTouches){for(let n=0;n<e.changedTouches.length;n+=1){const r=e.changedTouches[n];if(r.identifier===t)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function l5(e,t,n,r){let o=e;return r==="Right"?o+=t-n.left:o+=n.right-t,o}function Ape(e,t,n){return n==="Left"?e-t.left:t.right-e}function Rpe(e){return e==="Right"?"Left":"Right"}function Ope(e,t){const n=e.classList.contains(ee["columnSeparator--sideRight"])?"Right":"Left";return t?Rpe(n):n}function c5(e){e.preventDefault(),e.stopImmediatePropagation()}function _pe(e){const t=b.useRef(void 0),n=()=>bN(e),r=Xe(e,n);return b.useEffect(()=>{t.current&&r===!1&&(t.current.resolve(),t.current=void 0)}),()=>{if(!t.current){if(n()===!1)return Promise.resolve();t.current=Ipe()}return t.current}}function Dpe(e,t){if(e.length<4)return e;const n=e.slice();n.sort((l,u)=>l-u);const r=n[Math.floor(n.length*.25)],o=n[Math.floor(n.length*.75)-1],i=o-r,a=i<5?5:i*t;return n.filter(l=>l>r-a&&l<o+a)}function Lpe(e,t,n){const r={},o=e.current.rootElementRef.current;return o.classList.add(ee.autosizing),n.forEach(i=>{const l=ice(e.current,i.field).map(C=>C.getBoundingClientRect().width??0),u=t.includeOutliers?l:Dpe(l,t.outliersFactor);if(t.includeHeaders){const C=oce(e.current,i.field);if(C){const S=C.querySelector(`.${ee.columnHeaderTitle}`),E=C.querySelector(`.${ee.columnHeaderTitleContainerContent}`),T=C.querySelector(`.${ee.iconButtonContainer}`),I=C.querySelector(`.${ee.menuIcon}`),k=S??E,R=window.getComputedStyle(C,null),P=parseInt(R.paddingLeft,10)+parseInt(R.paddingRight,10),j=k.scrollWidth+1+P+((T==null?void 0:T.clientWidth)??0)+((I==null?void 0:I.clientWidth)??0);u.push(j)}}const d=i.minWidth!==-1/0&&i.minWidth!==void 0,f=i.maxWidth!==1/0&&i.maxWidth!==void 0,m=d?i.minWidth:0,g=f?i.maxWidth:1/0,w=u.length===0?0:Math.max(...u);r[i.field]=qa(w,m,g)}),o.classList.remove(ee.autosizing),r}const $pe=e=>z({},e,{columnResize:{resizingColumnField:""}});function jpe(){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 Fpe=(e,t)=>{const n=Lo(),r=Ho(e,"useGridColumnResize"),o=_s(jpe).current,i=b.useRef(null),a=b.useRef(null),l=ya(),u=b.useRef(void 0),d=D=>{var G,N;r.debug(`Updating width to ${D} for col ${o.colDef.field}`);const _=o.columnHeaderElement.offsetWidth,$=D-_,B=D-o.initialColWidth;if(B>0){const H=o.initialTotalWidth+B;(N=(G=e.current.rootElementRef)==null?void 0:G.current)==null||N.style.setProperty("--DataGrid-rowWidth",`${H}px`)}o.colDef.computedWidth=D,o.colDef.width=D,o.colDef.flex=0,o.columnHeaderElement.style.width=`${D}px`;const V=o.headerFilterElement;V&&(V.style.width=`${D}px`),o.groupHeaderElements.forEach(H=>{const Y=H;let Q;Y.getAttribute("aria-colspan")==="1"?Q=`${D}px`:Q=`${Y.offsetWidth+$}px`,Y.style.width=Q}),o.cellElements.forEach(H=>{const Y=H;let Q;Y.getAttribute("aria-colspan")==="1"?Q=`${D}px`:Q=`${Y.offsetWidth+$}px`,Y.style.setProperty("--width",Q)});const q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);q===_d.LEFT&&(Tg(o.fillerLeft,"width",$),o.leftPinnedCellsAfter.forEach(H=>{Tg(H,"left",$)}),o.leftPinnedHeadersAfter.forEach(H=>{Tg(H,"left",$)})),q===_d.RIGHT&&(Tg(o.fillerRight,"width",$),o.rightPinnedCellsBefore.forEach(H=>{Tg(H,"right",$)}),o.rightPinnedHeadersBefore.forEach(H=>{Tg(H,"right",$)}))},f=D=>{if(T(),o.previousMouseClickEvent){const _=o.previousMouseClickEvent,$=_.timeStamp,B=_.clientX,V=_.clientY;if(D.timeStamp-$<300&&D.clientX===B&&D.clientY===V){o.previousMouseClickEvent=void 0,e.current.publishEvent("columnResizeStop",null,D);return}}if(o.colDef){e.current.setColumnWidth(o.colDef.field,o.colDef.width),r.debug(`Updating col ${o.colDef.field} with new width: ${o.colDef.width}`);const _=fl(e);o.groupHeaderElements.forEach($=>{const B=Zle($),V=$,G=`${B.reduce((N,H)=>_.columnVisibilityModel[H]!==!1?N+_.lookup[H].computedWidth:N,0)}px`;V.style.width=G})}l.start(0,()=>{e.current.publishEvent("columnResizeStop",null,D)})},m=(D,_,$)=>{var G;const B=e.current.rootElementRef.current;o.initialColWidth=D.computedWidth,o.initialTotalWidth=e.current.getRootDimensions().rowWidth,o.colDef=D,o.columnHeaderElement=Xle(e.current.columnHeadersContainerRef.current,D.field);const V=B.querySelector(`.${ee.headerFilterRow} [data-field="${Mu(D.field)}"]`);V&&(o.headerFilterElement=V),o.groupHeaderElements=Qle((G=e.current.columnHeadersContainerRef)==null?void 0:G.current,D.field),o.cellElements=Jle(o.columnHeaderElement,e.current),o.fillerLeft=V3(e.current,n?"filler--pinnedRight":"filler--pinnedLeft"),o.fillerRight=V3(e.current,n?"filler--pinnedLeft":"filler--pinnedRight");const q=e.current.unstable_applyPipeProcessors("isColumnPinned",!1,o.colDef.field);o.leftPinnedCellsAfter=q!==_d.LEFT?[]:ece(e.current,o.columnHeaderElement,n),o.rightPinnedCellsBefore=q!==_d.RIGHT?[]:tce(e.current,o.columnHeaderElement,n),o.leftPinnedHeadersAfter=q!==_d.LEFT?[]:nce(e.current,o.columnHeaderElement,n),o.rightPinnedHeadersBefore=q!==_d.RIGHT?[]:rce(e.current,o.columnHeaderElement,n),a.current=Ope(_,n),i.current=Ape($,o.columnHeaderElement.getBoundingClientRect(),a.current)},g=Vt(f),w=Vt(D=>{if(D.buttons===0){g(D);return}let _=l5(i.current,D.clientX,o.columnHeaderElement.getBoundingClientRect(),a.current);_=qa(_,o.colDef.minWidth,o.colDef.maxWidth),d(_);const $={element:o.columnHeaderElement,colDef:o.colDef,width:_};e.current.publishEvent("columnResize",$,D)}),C=Vt(D=>{s5(D,u.current)&&f(D)}),S=Vt(D=>{const _=s5(D,u.current);if(!_)return;if(D.type==="mousemove"&&D.buttons===0){C(D);return}let $=l5(i.current,_.x,o.columnHeaderElement.getBoundingClientRect(),a.current);$=qa($,o.colDef.minWidth,o.colDef.maxWidth),d($);const B={element:o.columnHeaderElement,colDef:o.colDef,width:$};e.current.publishEvent("columnResize",B,D)}),E=Vt(D=>{const _=S2(D.target,ee["columnSeparator--resizable"]);if(!_)return;const $=D.changedTouches[0];$!=null&&(u.current=$.identifier);const B=S2(D.target,ee.columnHeader),V=Kle(B),q=e.current.getColumn(V);r.debug(`Start Resize on col ${q.field}`),e.current.publishEvent("columnResizeStart",{field:V},D),m(q,_,$.clientX);const G=io(D.currentTarget);G.addEventListener("touchmove",S),G.addEventListener("touchend",C)}),T=b.useCallback(()=>{const D=io(e.current.rootElementRef.current);D.body.style.removeProperty("cursor"),D.removeEventListener("mousemove",w),D.removeEventListener("mouseup",g),D.removeEventListener("touchmove",S),D.removeEventListener("touchend",C),setTimeout(()=>{D.removeEventListener("click",c5,!0)},100),o.columnHeaderElement&&(o.columnHeaderElement.style.pointerEvents="unset")},[e,o,w,g,S,C]),I=b.useCallback(({field:D})=>{e.current.setState(_=>z({},_,{columnResize:z({},_.columnResize,{resizingColumnField:D})}))},[e]),k=b.useCallback(()=>{e.current.setState(D=>z({},D,{columnResize:z({},D.columnResize,{resizingColumnField:""})}))},[e]),R=Vt(({colDef:D},_)=>{if(_.button!==0||!_.currentTarget.classList.contains(ee["columnSeparator--resizable"]))return;_.preventDefault(),r.debug(`Start Resize on col ${D.field}`),e.current.publishEvent("columnResizeStart",{field:D.field},_),m(D,_.currentTarget,_.clientX);const $=io(e.current.rootElementRef.current);$.body.style.cursor="col-resize",o.previousMouseClickEvent=_.nativeEvent,$.addEventListener("mousemove",w),$.addEventListener("mouseup",g),$.addEventListener("click",c5,!0)}),P=Vt((D,_)=>{if(t.disableAutosize||_.button!==0)return;const $=e.current.state.columns.lookup[D.field];$.resizable!==!1&&e.current.autosizeColumns(z({},t.autosizeOptions,{disableColumnVirtualization:!1,columns:[$.field]}))}),O=_pe(e),j=b.useRef(!1),F=b.useCallback(async D=>{var q;if(!((q=e.current.rootElementRef)==null?void 0:q.current)||j.current)return;j.current=!0;const $=fl(e),B=z({},Rse,D,{columns:(D==null?void 0:D.columns)??$.orderedFields});B.columns=B.columns.filter(G=>$.columnVisibilityModel[G]!==!1);const V=B.columns.map(G=>e.current.state.columns.lookup[G]);try{!t.disableVirtualization&&B.disableColumnVirtualization&&(e.current.unstable_setColumnVirtualization(!1),await O());const G=Lpe(e,B,V),N=V.map(H=>z({},H,{width:G[H.field],computedWidth:G[H.field],flex:0}));if(B.expand){const Y=$.orderedFields.map(J=>$.lookup[J]).filter(J=>$.columnVisibilityModel[J.field]!==!1).reduce((J,ae)=>J+(G[ae.field]??ae.computedWidth??ae.width),0),K=e.current.getRootDimensions().viewportInnerSize.width-Y;if(K>0){const J=K/(N.length||1);N.forEach(ae=>{ae.width+=J,ae.computedWidth+=J})}}e.current.updateColumns(N),N.forEach((H,Y)=>{if(H.width!==V[Y].width){const Q=H.width;e.current.publishEvent("columnWidthChange",{element:e.current.getColumnHeaderElement(H.field),colDef:H,width:Q})}})}finally{t.disableVirtualization||e.current.unstable_setColumnVirtualization(!0),j.current=!1}},[e,O,t.disableVirtualization]);b.useEffect(()=>T,[T]),jR(()=>{t.autosizeOnMount&&Promise.resolve().then(()=>{e.current.autosizeColumns(t.autosizeOptions)})}),gN(e,()=>{var D;return(D=e.current.columnHeadersContainerRef)==null?void 0:D.current},"touchstart",E,{passive:!0}),mn(e,{autosizeColumns:F},"public"),Mt(e,"columnResizeStop",k),Mt(e,"columnResizeStart",I),Mt(e,"columnSeparatorMouseDown",R),Mt(e,"columnSeparatorDoubleClick",P),fr(e,"columnResize",t.onColumnResize),fr(e,"columnWidthChange",t.onColumnWidthChange)};function Tg(e,t,n){e&&(e.style[t]=`${parseInt(e.style[t],10)+n}px`)}function Npe(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 u5(e){return e.firstRowIndex!==0||e.lastRowIndex!==0}const oP=(e,t,n)=>{if(!e)return null;let r=e[t.field];const o=t.rowSpanValueGetter??t.valueGetter;return o&&(r=o(r,e,t,n)),r},Zg={spannedCells:{},hiddenCells:{},hiddenCellOriginMap:{}},k2={firstRowIndex:0,lastRowIndex:0},zpe=new Set([hs,"__reorder__",cT]),d5=20,YN=(e,t,n,r,o,i,a)=>{const l=i?{}:z({},e.current.state.rowSpanning.spannedCells),u=i?{}:z({},e.current.state.rowSpanning.hiddenCells),d=i?{}:z({},e.current.state.rowSpanning.hiddenCellOriginMap);return i&&(a=k2),t.forEach(f=>{var m;if(!zpe.has(f.field)){for(let g=o.firstRowIndex;g<o.lastRowIndex;g+=1){const w=n[g];if((m=u[w.id])!=null&&m[f.field])continue;const C=oP(w.model,f,e);if(C==null)continue;let S=w.id,E=g,T=0;const I=[];if(g===o.firstRowIndex){let R=g-1,P=n[R];for(;R>=r.firstRowIndex&&P&&oP(P.model,f,e)===C;){const O=n[R+1];u[O.id]?u[O.id][f.field]=!0:u[O.id]={[f.field]:!0},I.push(g),T+=1,S=P.id,E=R,R-=1,P=n[R]}}I.forEach(R=>{d[R]?d[R][f.field]=E:d[R]={[f.field]:E}});let k=g+1;for(;k<=r.lastRowIndex&&n[k]&&oP(n[k].model,f,e)===C;){const R=n[k];u[R.id]?u[R.id][f.field]=!0:u[R.id]={[f.field]:!0},d[k]?d[k][f.field]=E:d[k]={[f.field]:E},k+=1,T+=1}T>0&&(l[S]?l[S][f.field]=T+1:l[S]={[f.field]:T+1})}a={firstRowIndex:Math.min(a.firstRowIndex,o.firstRowIndex),lastRowIndex:Math.max(a.lastRowIndex,o.lastRowIndex)}}}),{spannedCells:l,hiddenCells:u,hiddenCellOriginMap:d,processedRange:a}},KN=(e,t)=>{const n=Vp(t).length;if(e.pagination){const r=aN(t);let o=d5;return r>0&&(o=r-1),{firstRowIndex:0,lastRowIndex:Math.min(o,n)}}return{firstRowIndex:0,lastRowIndex:Math.min(d5,n)}},Bpe=(e,t,n)=>{var C;if(!t.rowSpanning)return z({},e,{rowSpanning:Zg});const r=e.rows.dataRowIds||[],o=e.columns.orderedFields||[],i=e.rows.dataRowIdToModelLookup,a=e.columns.lookup,l=!!e.filter.filterModel.items.length||!!((C=e.filter.filterModel.quickFilterValues)!=null&&C.length);if(!r.length||!o.length||!i||!a||l)return z({},e,{rowSpanning:Zg});const u=KN(t,n),d=r.map(S=>({id:S,model:i[S]})),f=o.map(S=>a[S]),{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w}=YN(n,f,d,u,u,!0,k2);return z({},e,{rowSpanning:{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w}})},Hpe=(e,t)=>{const n=_s(()=>e.current.state.rowSpanning!==Zg?KN(t,e):k2),r=b.useCallback((i,a=!1)=>{const{range:l,rows:u}=Hd(e,{pagination:t.pagination,paginationMode:t.paginationMode});if(l===null||!u5(i))return;a&&(n.current=k2);const d=Npe({firstRowIndex:i.firstRowIndex,lastRowIndex:Math.min(i.lastRowIndex,l.lastRowIndex+1)},n.current);if(d===null)return;const f=ro(e),{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w,processedRange:C}=YN(e,f,u,l,d,a,n.current);n.current=C;const S=Object.keys(m).length,E=Object.keys(g).length,T=Object.keys(e.current.state.rowSpanning.spannedCells).length,I=Object.keys(e.current.state.rowSpanning.hiddenCells).length;!(a||S!==T||E!==I)||S===0&&T===0||e.current.setState(P=>z({},P,{rowSpanning:{spannedCells:m,hiddenCells:g,hiddenCellOriginMap:w}}))},[e,n,t.pagination,t.paginationMode]),o=b.useCallback(()=>{const i=Qx(e);u5(i)&&r(i,!0)},[e,r]);Mt(e,"renderedRowsIntervalChange",$d(t.rowSpanning,r)),Mt(e,"sortedRowsSet",$d(t.rowSpanning,o)),Mt(e,"paginationModelChange",$d(t.rowSpanning,o)),Mt(e,"filteredRowsSet",$d(t.rowSpanning,o)),Mt(e,"columnsChange",$d(t.rowSpanning,o)),b.useEffect(()=>{t.rowSpanning?e.current.state.rowSpanning===Zg&&o():e.current.state.rowSpanning!==Zg&&e.current.setState(i=>z({},i,{rowSpanning:Zg}))},[e,o,t.rowSpanning])},Upe=(e,t,n)=>z({},e,{listViewColumn:t.listViewColumn?z({},t.listViewColumn,{computedWidth:rA(n)}):void 0});function Gpe(e,t){const n=()=>{e.current.setState(i=>i.listViewColumn?z({},i,{listViewColumn:z({},i.listViewColumn,{computedWidth:rA(e)})}):i)},r=b.useRef(null);Mt(e,"viewportInnerSizeChange",i=>{r.current!==i.width&&(r.current=i.width,n())}),Mt(e,"columnVisibilityModelChange",n),kn(()=>{const i=t.listViewColumn;i&&e.current.setState(a=>z({},a,{listViewColumn:z({},i,{computedWidth:rA(e)})}))},[e,t.listViewColumn]),b.useEffect(()=>{t.listView&&t.listViewColumn},[t.listView,t.listViewColumn])}function rA(e){return vr(e).viewportInnerSize.width}const Vpe=wt(No,ms,Zo,(e,t,n)=>({groupKeys:[],paginationModel:n,sortModel:t,filterModel:e,start:n.page*n.pageSize,end:n.page*n.pageSize+n.pageSize-1}));let iP=function(e){return e.Default="set-new-rows",e.LazyLoading="replace-row-range",e}({});class oA{constructor(t){this.chunkSize=void 0,this.getCacheKeys=n=>{if(this.chunkSize<1||typeof n.start!="number")return[n];const r=[];for(let o=n.start;o<n.end;o+=this.chunkSize){const i=Math.min(o+this.chunkSize-1,n.end);r.push(z({},n,{start:o,end:i}))}return r},this.splitResponse=(n,r)=>{const o=this.getCacheKeys(n),i=new Map;return o.forEach(a=>{var d,f,m,g;const l=a.end===n.end,u=z({},r,{pageInfo:z({},r.pageInfo,{hasNextPage:((d=r.pageInfo)==null?void 0:d.hasNextPage)!==void 0&&!l?!0:(f=r.pageInfo)==null?void 0:f.hasNextPage,nextCursor:((m=r.pageInfo)==null?void 0:m.nextCursor)!==void 0&&!l?r.rows[a.end+1].id:(g=r.pageInfo)==null?void 0:g.nextCursor}),rows:typeof a.start!="number"||typeof n.start!="number"?r.rows:r.rows.slice(a.start-n.start,a.end-n.start+1)});i.set(a,u)}),i},this.chunkSize=t}}oA.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 Wpe={clear:()=>{},get:()=>{},set:()=>{}};function f5(e,t={}){return e===null?Wpe:e??new Lse(t)}const qpe=(e,t,n={})=>{var P,O;const r=b.useCallback(()=>{e.current.setStrategyAvailability(Fd.DataSource,iP.Default,t.dataSource?()=>!0:()=>!1)},[e,t.dataSource]),[o,i]=b.useState(!1),a=Xe(e,Zo),l=b.useRef(0),u=t.onDataSourceError,d=_s(()=>{const j=t.pageSizeOptions.map(D=>typeof D=="number"?D:D.value).sort((D,_)=>D-_),F=Math.min(a.pageSize,j[0]);return new oA(F)}).current,[f,m]=b.useState(()=>f5(t.dataSourceCache,n.cacheOptions)),g=b.useCallback(async(j,F)=>{var q,G,N;const D=(q=t.dataSource)==null?void 0:q.getRows;if(!D)return;if(j&&j!==Qo&&t.signature!=="DataGrid"){(G=n.fetchRowChildren)==null||G.call(n,[j]);return}(N=n.clearDataSourceState)==null||N.call(n);const _=z({},Vpe(e),e.current.unstable_applyPipeProcessors("getRowsParams",{}),F),B=d.getCacheKeys(_).map(H=>f.get(H));if(B.every(H=>H!==void 0)){e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:oA.mergeResponses(B),fetchParams:_});return}(o||e.current.getRowsCount()===0)&&e.current.setLoading(!0);const V=l.current+1;l.current=V;try{const H=await D(_);d.splitResponse(_,H).forEach((Q,W)=>f.set(W,Q)),l.current===V&&e.current.applyStrategyProcessor("dataSourceRowsUpdate",{response:H,fetchParams:_})}catch(H){l.current===V&&(e.current.applyStrategyProcessor("dataSourceRowsUpdate",{error:H,fetchParams:_}),typeof u=="function"&&u(new $se({message:H==null?void 0:H.message,params:_,cause:H})))}finally{o&&l.current===V&&e.current.setLoading(!1)}},[d,f,e,o,(P=t.dataSource)==null?void 0:P.getRows,u,n,t.signature]),w=b.useCallback(()=>{i(e.current.getActiveStrategy(Fd.DataSource)===iP.Default)},[e]),C=b.useCallback(j=>{if("error"in j){e.current.setRows([]);return}const{response:F}=j;F.rowCount!==void 0&&e.current.setRowCount(F.rowCount),e.current.setRows(F.rows),e.current.unstable_applyPipeProcessors("processDataSourceRows",{params:j.fetchParams,response:F},!0)},[e]),S=(O=t.dataSource)==null?void 0:O.updateRow,E=n.handleEditRow,T=b.useCallback(async j=>{if(S)try{const F=await S(j);return typeof E=="function"?(E(j,F),F):(e.current.updateNestedRows([F],[]),F&&!Ya(F,j.previousRow)&&e.current.dataSource.cache.clear(),F)}catch(F){throw typeof u=="function"&&u(new jse({message:F==null?void 0:F.message,params:j,cause:F})),F}},[e,S,u,E]),I={dataSource:{fetchRows:g,cache:f,editRow:T}},k=b.useMemo(()=>Sh(g,0),[g]),R=b.useRef(!0);return b.useEffect(()=>{if(R.current){R.current=!1;return}if(t.dataSourceCache===void 0)return;const j=f5(t.dataSourceCache,n.cacheOptions);m(F=>F!==j?j:F)},[t.dataSourceCache,n.cacheOptions]),b.useEffect(()=>{t.dataSource&&(e.current.dataSource.cache.clear(),e.current.dataSource.fetchRows())},[e,t.dataSource]),{api:{public:I},debouncedFetchRows:k,strategyProcessor:{strategyName:iP.Default,group:"dataSourceRowsUpdate",processor:C},setStrategyAvailability:r,cacheChunkManager:d,cache:f,events:{strategyAvailabilityChange:w,sortModelChange:$d(o,()=>k()),filterModelChange:$d(o,()=>k()),paginationModelChange:$d(o,()=>k())}}},Ype=(e,t)=>{const{api:n,strategyProcessor:r,events:o,setStrategyAvailability:i}=qpe(e,t);mn(e,n.public,"public"),fx(e,r.strategyName,r.group,r.processor),Object.entries(o).forEach(([a,l])=>{Mt(e,a,l)}),b.useEffect(()=>{i()},[i])},Kpe=(e,t)=>{dfe(e,t),cpe(e,t),ope(e),Fo(cfe,e,t),Fo(ape,e,t),Fo(vfe,e,t),Fo(Jfe,e,t),Fo(Bfe,e,t),Fo(Zfe,e,t),Fo(Dfe,e,t),Fo(upe,e,t),Fo(Ufe,e,t),Fo(Afe,e,t),Fo(Bpe,e,t),Fo(wfe,e,t),Fo($pe,e,t),Fo(bfe,e,t),Fo(kpe,e,t),Fo(Wae,e,t),Fo(gpe,e,t),Fo(wpe,e,t),Fo(Upe,e,t),Ffe(e,t),spe(e,t),xfe(e,t),epe(e,t),Hpe(e,t),ipe(e,t),Epe(e),Ppe(e,t),Qfe(e,t),Lfe(e,t),Gfe(e,t),_fe(e,t),dpe(e,t),Cfe(e,t),Fpe(e,t),Hfe(e,t),Cpe(e,t),fpe(e,t),yfe(e),Efe(e,t),Ife(e,t),gfe(e,t),bpe(e,t),ppe(e,t),Spe(e),qae(e,t),Gpe(e,t),Ype(e,t)},Xpe=e=>{const{classes:t,headerAlign:n,isDragging:r,isLastColumn:o,showLeftBorder:i,showRightBorder:a,groupId:l,pinnedPosition:u}=e,d={root:["columnHeader",n==="left"&&"columnHeader--alignLeft",n==="center"&&"columnHeader--alignCenter",n==="right"&&"columnHeader--alignRight",r&&"columnHeader--moving",a&&"columnHeader--withRightBorder",i&&"columnHeader--withLeftBorder","withBorderColor",l===null?"columnHeader--emptyGroup":"columnHeader--filledGroup",u===Tn.LEFT&&"columnHeader--pinnedLeft",u===Tn.RIGHT&&"columnHeader--pinnedRight",o&&"columnHeader--last"],draggableContainer:["columnHeaderDraggableContainer"],titleContainer:["columnHeaderTitleContainer","withBorderColor"],titleContainerContent:["columnHeaderTitleContainerContent"]};return st(d,Cn,t)};function Zpe(e){var Y;const{groupId:t,width:n,depth:r,maxDepth:o,fields:i,height:a,colIndex:l,hasFocus:u,tabIndex:d,isLastColumn:f,pinnedPosition:m,pinnedOffset:g}=e,w=yt(),C=Lo(),S=b.useRef(null),E=rn(),T=Xe(E,pN),I=t?T[t]:{},{headerName:k=t??"",description:R="",headerAlign:P=void 0}=I;let O;const j=t&&((Y=T[t])==null?void 0:Y.renderHeaderGroup),F=b.useMemo(()=>({groupId:t,headerName:k,description:R,depth:r,maxDepth:o,fields:i,colIndex:l,isLastColumn:f}),[t,k,R,r,o,i,l,f]);t&&j&&(O=j(F));const D=z({},e,{classes:w.classes,headerAlign:P,depth:r,isDragging:!1}),_=k??t,$=Mn(),B=t===null?`empty-group-cell-${$}`:t,V=Xpe(D);b.useLayoutEffect(()=>{if(u){const W=S.current.querySelector('[tabindex="0"]')||S.current;W==null||W.focus()}},[E,u]);const q=b.useCallback(Q=>W=>{Jx(W)||E.current.publishEvent(Q,F,W)},[E,F]),G=b.useMemo(()=>({onKeyDown:q("columnGroupHeaderKeyDown"),onFocus:q("columnGroupHeaderFocus"),onBlur:q("columnGroupHeaderBlur")}),[q]),N=typeof I.headerClassName=="function"?I.headerClassName(F):I.headerClassName,H=b.useMemo(()=>bT(z({},e.style),C,m,g),[m,g,e.style,C]);return y.jsx(DN,z({ref:S,classes:V,columnMenuOpen:!1,colIndex:l,height:a,isResizing:!1,sortDirection:null,hasFocus:!1,tabIndex:d,isDraggable:!1,headerComponent:O,headerClassName:N,description:R,elementId:B,width:n,columnMenuIconButton:null,columnTitleIconButtons:null,resizable:!1,label:_,"aria-colspan":i.length,"data-fields":`|-${i.join("-|-")}-|`,style:H},G))}const p5=Te("div",{name:"MuiDataGrid",slot:"ColumnHeaderRow"})({display:"flex"}),Qpe=e=>{const{visibleColumns:t,sortColumnLookup:n,filterColumnLookup:r,columnHeaderTabIndexState:o,columnGroupHeaderTabIndexState:i,columnHeaderFocus:a,columnGroupHeaderFocus:l,headerGroupingMaxDepth:u,columnMenuState:d,columnVisibility:f,columnGroupsHeaderStructure:m,hasOtherElementInTabSequence:g}=e,[w,C]=b.useState(""),[S,E]=b.useState(""),T=Qa(),I=yt(),k=Xe(T,fN),R=Xe(T,of),P=Xe(T,Vae),O=Xe(T,Y0),j=Xe(T,Tu),F=xN(R,P,O.left.length),D=Xe(T,oT),_=Xe(T,C9),$=Xe(T,coe),B=Xe(T,uoe),V=Xe(T,S9),q=b.useCallback(re=>E(re.field),[]),G=b.useCallback(()=>E(""),[]),N=b.useCallback(re=>C(re.field),[]),H=b.useCallback(()=>C(""),[]),Y=b.useMemo(()=>O.left.length?{firstColumnIndex:0,lastColumnIndex:O.left.length}:null,[O.left.length]),Q=b.useMemo(()=>O.right.length?{firstColumnIndex:t.length-O.right.length,lastColumnIndex:t.length}:null,[O.right.length,t.length]);Mt(T,"columnResizeStart",q),Mt(T,"columnResizeStop",G),Mt(T,"columnHeaderDragStart",N),Mt(T,"columnHeaderDragEndNative",H);const W=re=>{const{renderContext:ke=P}=re||{},Ce=ke.firstColumnIndex,ie=ke.lastColumnIndex;return{renderedColumns:t.slice(Ce,ie),firstColumnToRender:Ce,lastColumnToRender:ie}},K=(re,ke,Ce,ie=!1)=>{const le=(re==null?void 0:re.position)===Tn.RIGHT,ve=(re==null?void 0:re.position)===void 0,ue=O.right.length>0&&le||O.right.length===0&&ve,me=F-Ce;return y.jsxs(b.Fragment,{children:[ve&&y.jsx("div",{role:"presentation",style:{width:me}}),ke,ve&&y.jsx("div",{role:"presentation",className:Ve(ee.filler,ie&&ee["filler--borderBottom"])}),ue&&y.jsx(MO,{header:!0,pinnedRight:le,borderBottom:ie,borderTop:!1})]})},J=(re,ke={})=>{const{renderedColumns:Ce,firstColumnToRender:ie}=W(re),le=[];for(let ve=0;ve<Ce.length;ve+=1){const ue=Ce[ve],me=ie+ve,be=me===0,Fe=o!==null&&o.field===ue.field||be&&!g?0:-1,Ze=a!==null&&a.field===ue.field,We=d.open&&d.field===ue.field,_e=re==null?void 0:re.position,ft=qv(_e,ue.computedWidth,me,R,D,V),nt=_e===Tn.RIGHT?Ce[ve-1]:Ce[ve+1],dt=nt?a!==null&&a.field===nt.field:!1,se=me+1===R.length-O.right.length,De=ve,ye=Ce.length,Pe=M2(_e,De),qe=T2(_e,De,ye,I.showColumnVerticalBorder,_);le.push(y.jsx(yce,z({},n[ue.field],{columnMenuOpen:We,filterItemsCounter:r[ue.field]&&r[ue.field].length,headerHeight:$,isDragging:ue.field===w,colDef:ue,colIndex:me,isResizing:S===ue.field,isLast:me===R.length-1,hasFocus:Ze,tabIndex:Fe,pinnedPosition:_e,pinnedOffset:ft,isLastUnpinned:se,isSiblingFocused:dt,showLeftBorder:Pe,showRightBorder:qe},ke),ue.field))}return K(re,le,0)},ae=()=>y.jsxs(p5,{role:"row","aria-rowindex":u+1,ownerState:I,className:ee["row--borderBottom"],style:{height:$},children:[Y&&J({position:Tn.LEFT,renderContext:Y},{disableReorder:!0}),J({renderContext:P}),Q&&J({position:Tn.RIGHT,renderContext:Q},{disableReorder:!0,separatorSide:EO.Left})]}),ce=({depth:re,params:ke})=>{var ye,Pe;const Ce=W(ke);if(Ce.renderedColumns.length===0)return null;const{firstColumnToRender:ie,lastColumnToRender:le}=Ce,ve=m[re],ue=t[ie].field,me=((ye=k[ue])==null?void 0:ye[re])??null,be=ve.findIndex(({groupId:qe,columnFields:Ke})=>qe===me&&Ke.includes(ue)),Fe=t[le-1].field,Ze=((Pe=k[Fe])==null?void 0:Pe[re])??null,We=ve.findIndex(({groupId:qe,columnFields:Ke})=>qe===Ze&&Ke.includes(Fe)),_e=ve.slice(be,We+1).map(qe=>z({},qe,{columnFields:qe.columnFields.filter(Ke=>f[Ke]!==!1)})).filter(qe=>qe.columnFields.length>0),ft=_e[0].columnFields.indexOf(ue),dt=_e[0].columnFields.slice(0,ft).reduce((qe,Ke)=>{const it=j[Ke];return qe+(it.computedWidth??0)},0);let se=ie;const De=_e.map(({groupId:qe,columnFields:Ke},it)=>{const ot=l!==null&&l.depth===re&&Ke.includes(l.field),gt=i!==null&&i.depth===re&&Ke.includes(i.field)?0:-1,Ue={width:Ke.reduce((ht,Ct)=>ht+j[Ct].computedWidth,0),fields:Ke,colIndex:se},jt=ke.position,Ht=qv(jt,Ue.width,se,R,D,V);se+=Ke.length;let pt=it;return jt===Tn.LEFT&&(pt=se-1),y.jsx(Zpe,{groupId:qe,width:Ue.width,fields:Ue.fields,colIndex:Ue.colIndex,depth:re,isLastColumn:it===_e.length-1,maxDepth:u,height:B,hasFocus:ot,tabIndex:gt,pinnedPosition:jt,pinnedOffset:Ht,showLeftBorder:M2(jt,pt),showRightBorder:T2(jt,pt,_e.length,I.showColumnVerticalBorder,_)},it)});return K(ke,De,dt)};return{renderContext:P,leftRenderContext:Y,rightRenderContext:Q,pinnedColumns:O,visibleColumns:t,columnPositions:R,getFillers:K,getColumnHeadersRow:ae,getColumnsToRender:W,getColumnGroupHeadersRows:()=>{if(u===0)return null;const re=[];for(let ke=0;ke<u;ke+=1)re.push(y.jsxs(p5,{role:"row","aria-rowindex":ke+1,ownerState:I,style:{height:B},children:[Y&&ce({depth:ke,params:{position:Tn.LEFT,renderContext:Y,maxLastColumn:Y.lastColumnIndex}}),ce({depth:ke,params:{renderContext:P}}),Q&&ce({depth:ke,params:{position:Tn.RIGHT,renderContext:Q,maxLastColumn:Q.lastColumnIndex}})]},ke));return re},getPinnedCellOffset:qv,isDragging:!!w,getInnerProps:()=>({role:"rowgroup"})}},Jpe=["className"],ehe=e=>{const{classes:t}=e;return st({root:["columnHeaders"]},Cn,t)},the=Bn("div",{name:"MuiDataGrid",slot:"ColumnHeaders"})({display:"flex",flexDirection:"column",borderTopLeftRadius:"var(--unstable_DataGrid-radius)",borderTopRightRadius:"var(--unstable_DataGrid-radius)"}),nhe=Wt(function(t,n){const{className:r}=t,o=tt(t,Jpe),i=yt(),a=ehe(i);return y.jsx(the,z({className:Ve(a.root,r),ownerState:i},o,{role:"presentation",ref:n}))}),rhe=["className","visibleColumns","sortColumnLookup","filterColumnLookup","columnHeaderTabIndexState","columnGroupHeaderTabIndexState","columnHeaderFocus","columnGroupHeaderFocus","headerGroupingMaxDepth","columnMenuState","columnVisibility","columnGroupsHeaderStructure","hasOtherElementInTabSequence"],ohe=Wt(function(t,n){const{visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C}=t,S=tt(t,rhe),{getInnerProps:E,getColumnHeadersRow:T,getColumnGroupHeadersRows:I}=Qpe({visibleColumns:r,sortColumnLookup:o,filterColumnLookup:i,columnHeaderTabIndexState:a,columnGroupHeaderTabIndexState:l,columnHeaderFocus:u,columnGroupHeaderFocus:d,headerGroupingMaxDepth:f,columnMenuState:m,columnVisibility:g,columnGroupsHeaderStructure:w,hasOtherElementInTabSequence:C});return y.jsxs(nhe,z({},S,E(),{ref:n,children:[I(),T()]}))}),ihe=Su(ohe);function ahe(e){return null}function she(e){return null}const lhe=Wt(function(t,n){const o=rn().current.getLocaleText("noResultsOverlayLabel");return y.jsx(yT,z({},t,{ref:n,children:o}))}),che=()=>st({root:["bottomContainer"]},Cn,{}),uhe=Bn("div")({position:"sticky",zIndex:40,bottom:"calc(var(--DataGrid-hasScrollX) * var(--DataGrid-scrollbarSize))"});function dhe(e){const t=che();return y.jsx(uhe,z({},e,{className:Ve(t.root,ee["container--bottom"]),role:"presentation"}))}const fhe=z({},Lre,{cell:ele,skeletonCell:cle,columnHeaderFilterIconButton:Oce,columnHeaderSortIcon:Ace,columnMenu:Xce,columnHeaders:ihe,detailPanels:ahe,bottomContainer:dhe,footer:Pde,footerRowCount:Gde,toolbar:Sde,pinnedRows:she,loadingOverlay:$de,noResultsOverlay:lhe,noRowsOverlay:jde,noColumnsOverlay:Fde,pagination:zde,filterPanel:Tue,columnsPanel:eue,columnsManagement:Due,panel:iue,row:Kde}),phe={disableMultipleColumnsFiltering:!0,disableMultipleColumnsSorting:!0,throttleRowsMs:void 0,hideFooterRowCount:!1,pagination:!0,checkboxSelectionVisibleOnly:!1,disableColumnReorder:!0,keepColumnPositionIfDraggedOutside:!1,signature:"DataGrid",listView:!1},hhe=e=>z({},phe,e.dataSource?{filterMode:"server",sortingMode:"server",paginationMode:"server"}:{}),mhe=fhe,ghe=e=>{const t=bo(),n=b.useMemo(()=>TR({props:e,theme:t,name:"MuiDataGrid"}),[t,e]),r=b.useMemo(()=>z({},poe,n.localeText),[n.localeText]),o=b.useMemo(()=>qse({defaultSlots:mhe,slots:n.slots}),[n.slots]),i=b.useMemo(()=>Object.keys(eA).reduce((a,l)=>(a[l]=n[l]??eA[l],a),{}),[n]);return b.useMemo(()=>z({},n,i,{localeText:r,slots:o},hhe(n)),[n,r,o,i])};class bhe{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let o=this.events[t];o||(o={highPriority:new Map,regular:new Map},this.events[t]=o),r.isFirst?o.highPriority.set(n,!0):o.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 r=this.events[t];if(!r)return;const o=Array.from(r.highPriority.keys()),i=Array.from(r.regular.keys());for(let a=o.length-1;a>=0;a-=1){const l=o[a];r.highPriority.has(l)&&l.apply(this,n)}for(let a=0;a<i.length;a+=1){const l=i[a];r.regular.has(l)&&l.apply(this,n)}}once(t,n){const r=this;this.on(t,function o(...i){r.removeListener(t,o),n.apply(r,i)})}}class IO{static create(t){return new IO(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(r=>r(n))},this.value=t,this.listeners=new Set}}const XN=Symbol("mui.api_private"),yhe=e=>e.isPropagationStopped!==void 0;let h5=0;function vhe(e){var o;const t=(o=e.current)==null?void 0:o[XN];if(t)return t;const n={},r={state:n,store:IO.create(n),instanceId:{id:h5}};return h5+=1,r.getPublicApi=()=>e.current,r.register=(i,a)=>{Object.keys(a).forEach(l=>{const u=a[l],d=r[l];if((d==null?void 0:d.spying)===!0?d.target=u:r[l]=u,i==="public"){const f=e.current,m=f[l];(m==null?void 0:m.spying)===!0?m.target=u:f[l]=u}})},r.register("private",{caches:{},eventManager:new bhe}),r}function xhe(e){return{get state(){return e.current.state},get store(){return e.current.store},get instanceId(){return e.current.instanceId},[XN]:e.current}}function whe(e,t){var a;const n=b.useRef(null),r=b.useRef(null);r.current||(r.current=vhe(n)),n.current||(n.current=xhe(r));const o=b.useCallback((...l)=>{const[u,d,f={}]=l;if(f.defaultMuiPrevented=!1,yhe(f)&&f.isPropagationStopped())return;const m=t.signature===dl.DataGridPro||t.signature===dl.DataGridPremium?{api:r.current.getPublicApi()}:{};r.current.eventManager.emit(u,d,f,m)},[r,t.signature]),i=b.useCallback((l,u,d)=>{r.current.eventManager.on(l,u,d);const f=r.current;return()=>{f.eventManager.removeListener(l,u)}},[r]);return mn(r,{subscribeEvent:i,publishEvent:o},"public"),e&&!((a=e.current)!=null&&a.state)&&(e.current=n.current),b.useImperativeHandle(e,()=>n.current,[n]),b.useEffect(()=>{const l=r.current;return()=>{l.publishEvent("unmount")}},[r]),r}const Che={hooks:{useCSSVariables:Lne,useGridAriaAttributes:Xde,useGridRowAriaAttributes:Zde,useCellAggregationResult:()=>null}},ZN=function(t,n){var i;const r=ghe(t),o=whe(r.apiRef,r);return Kpe(o,r),y.jsx(Qde,{privateApiRef:o,configuration:Che,props:r,children:y.jsx(Tle,z({className:r.className,style:r.style,sx:r.sx},(i=r.slotProps)==null?void 0:i.root,{ref:n}))})},She=b.memo(Wt(ZN));ZN.propTypes={apiRef:we.shape({current:we.object}),"aria-label":we.string,"aria-labelledby":we.string,autoHeight:we.bool,autoPageSize:we.bool,autosizeOnMount:we.bool,autosizeOptions:we.shape({columns:we.arrayOf(we.string),disableColumnVirtualization:we.bool,expand:we.bool,includeHeaders:we.bool,includeOutliers:we.bool,outliersFactor:we.number}),cellModesModel:we.object,checkboxSelection:we.bool,classes:we.object,className:we.string,clipboardCopyCellDelimiter:we.string,columnBufferPx:we.number,columnGroupHeaderHeight:we.number,columnGroupingModel:we.arrayOf(we.object),columnHeaderHeight:we.number,columns:we.arrayOf(we.object).isRequired,columnVisibilityModel:we.object,dataSource:we.shape({getRows:we.func.isRequired,updateRow:we.func}),dataSourceCache:we.shape({clear:we.func.isRequired,get:we.func.isRequired,set:we.func.isRequired}),density:we.oneOf(["comfortable","compact","standard"]),disableAutosize:we.bool,disableColumnFilter:we.bool,disableColumnMenu:we.bool,disableColumnResize:we.bool,disableColumnSelector:we.bool,disableColumnSorting:we.bool,disableDensitySelector:we.bool,disableEval:we.bool,disableMultipleRowSelection:we.bool,disableRowSelectionOnClick:we.bool,disableVirtualization:we.bool,editMode:we.oneOf(["cell","row"]),estimatedRowCount:we.number,experimentalFeatures:we.shape({warnIfFocusStateIsNotSynced:we.bool}),filterDebounceMs:we.number,filterMode:we.oneOf(["client","server"]),filterModel:we.shape({items:we.arrayOf(we.shape({field:we.string.isRequired,id:we.oneOfType([we.number,we.string]),operator:we.string.isRequired,value:we.any})).isRequired,logicOperator:we.oneOf(["and","or"]),quickFilterExcludeHiddenColumns:we.bool,quickFilterLogicOperator:we.oneOf(["and","or"]),quickFilterValues:we.array}),getCellClassName:we.func,getDetailPanelContent:we.func,getEstimatedRowHeight:we.func,getRowClassName:we.func,getRowHeight:we.func,getRowId:we.func,getRowSpacing:we.func,hideFooter:we.bool,hideFooterPagination:we.bool,hideFooterSelectedRowCount:we.bool,ignoreDiacritics:we.bool,ignoreValueFormatterDuringExport:we.oneOfType([we.shape({clipboardExport:we.bool,csvExport:we.bool}),we.bool]),initialState:we.object,isCellEditable:we.func,isRowSelectable:we.func,keepNonExistentRowsSelected:we.bool,label:we.string,loading:we.bool,localeText:we.object,logger:we.shape({debug:we.func.isRequired,error:we.func.isRequired,info:we.func.isRequired,warn:we.func.isRequired}),logLevel:we.oneOf(["debug","error","info","warn",!1]),nonce:we.string,onCellClick:we.func,onCellDoubleClick:we.func,onCellEditStart:we.func,onCellEditStop:we.func,onCellKeyDown:we.func,onCellModesModelChange:we.func,onClipboardCopy:we.func,onColumnHeaderClick:we.func,onColumnHeaderContextMenu:we.func,onColumnHeaderDoubleClick:we.func,onColumnHeaderEnter:we.func,onColumnHeaderLeave:we.func,onColumnHeaderOut:we.func,onColumnHeaderOver:we.func,onColumnOrderChange:we.func,onColumnResize:we.func,onColumnVisibilityModelChange:we.func,onColumnWidthChange:we.func,onDataSourceError:we.func,onDensityChange:we.func,onFilterModelChange:we.func,onMenuClose:we.func,onMenuOpen:we.func,onPaginationMetaChange:we.func,onPaginationModelChange:we.func,onPreferencePanelClose:we.func,onPreferencePanelOpen:we.func,onProcessRowUpdateError:we.func,onResize:we.func,onRowClick:we.func,onRowCountChange:we.func,onRowDoubleClick:we.func,onRowEditStart:we.func,onRowEditStop:we.func,onRowModesModelChange:we.func,onRowSelectionModelChange:we.func,onSortModelChange:we.func,onStateChange:we.func,pageSizeOptions:we.arrayOf(we.oneOfType([we.number,we.shape({label:we.string.isRequired,value:we.number.isRequired})]).isRequired),pagination:we.oneOf([!0]),paginationMeta:we.shape({hasNextPage:we.bool}),paginationMode:we.oneOf(["client","server"]),paginationModel:we.shape({page:we.number.isRequired,pageSize:we.number.isRequired}),processRowUpdate:we.func,resizeThrottleMs:we.number,rowBufferPx:we.number,rowCount:we.number,rowHeight:we.number,rowModesModel:we.object,rows:we.arrayOf(we.object),rowSelection:we.bool,rowSelectionModel:we.shape({ids:we.instanceOf(Set).isRequired,type:we.oneOf(["exclude","include"]).isRequired}),rowSpacingType:we.oneOf(["border","margin"]),rowSpanning:we.bool,scrollbarSize:we.number,showCellVerticalBorder:we.bool,showColumnVerticalBorder:we.bool,showToolbar:we.bool,slotProps:we.object,slots:we.object,sortingMode:we.oneOf(["client","server"]),sortingOrder:we.arrayOf(we.oneOf(["asc","desc"])),sortModel:we.arrayOf(we.shape({field:we.string.isRequired,sort:we.oneOf(["asc","desc"])})),style:we.object,sx:we.oneOfType([we.arrayOf(we.oneOfType([we.func,we.object,we.bool])),we.func,we.object]),virtualizeColumnsWithAutoRowHeight:we.bool};const AO=({rows:e,columns:t,paginationModel:n,onPaginationModelChange:r,loading:o,rowCount:i,onRowClick:a,sx:l})=>y.jsx(Oe,{width:"100%",height:"100%",sx:l,children:y.jsx(She,{sx:{'.MuiDataGrid-virtualScrollerRenderZone .MuiDataGrid-row[role="row"]':{cursor:"pointer"},".MuiDataGrid-columnHeader.MuiDataGrid-columnHeader--sortable.MuiDataGrid-withBorderColor":{cursor:"default"}},rows:e,columns:t,paginationModel:n,loading:o,pageSizeOptions:[n.pageSize],paginationMode:"server",rowCount:i,disableRowSelectionOnClick:!0,disableColumnFilter:!0,disableColumnMenu:!0,disableColumnSorting:!0,onRowClick:a,onPaginationModelChange:r})}),_i={domains:{path:"/admin/domains",name:"Domains"},users:{path:"/admin/users",name:"Users"},pricingDomain:{path:"/admin/pricing-domain",name:"Pricing domain"},pricingContent:{path:"/admin/pricing-content",name:"Pricing content"}},_o={domains:{path:"/domains",name:"Domains"},projects:{path:"/projects",name:"Projects"},balance:{path:"/balance",name:"Balance"},balanceSuccess:{path:"/balance/success",name:"Balance success"},balanceError:{path:"/balance/error",name:"Balance error"},euka:{path:"/balance/euka",name:"Balance euka"},orders:{path:"/orders",name:"Orders"},cart:{path:"/cart",name:"Cart"}},Jo={auth:{path:"/auth",name:"Auth"},authAdmin:{path:"/auth/admin",name:"Auth Admin"},authConfirmEmail:{path:"/auth/confirm-email",name:"Auth confirm email"},authReset:{path:"/auth/reset",name:"Auth reset"},authConfirm:{path:"/auth/confirm",name:"Auth confirm"},forgotPassword:{path:"/auth/forgot-password",name:"Forgot Password"}};var iA=(e=>(e.customer="customer",e.admin="admin",e))(iA||{}),P2=(e=>(e.customers="customers",e.admins="admins",e))(P2||{}),aA=(e=>(e.customer="customer",e.employee="employee",e))(aA||{}),sA=(e=>(e.confirmed="confirmed",e.unconfirmed="unconfirmed",e))(sA||{}),lA=(e=>(e.active="active",e.inactive="inactive",e))(lA||{}),nl=(e=>(e.countries="countries",e.languages="languages",e.categories="categories",e.price="price",e.basePrice="basePrice",e.totalPrice="totalPrice",e.domainRating="domainRating",e.domainAuthority="domainAuthority",e.spamScore="spamScore",e.citationFlow="citationFlow",e))(nl||{});const I2=_i.domains.path,cA=_o.domains.path,m5=[{value:aA.customer,label:"Customer"},{value:aA.employee,label:"Employee"}],uA=[{value:sA.confirmed,label:"Confirmed"},{value:sA.unconfirmed,label:"Unconfirmed"}],dA=[{value:lA.active,label:"Active"},{value:lA.inactive,label:"Inactive"}],Ehe=[{value:P2.customers,label:"Customers"},{value:P2.admins,label:"Admins"}],The=20,e1={page:0,pageSize:The},Bt={domainName:{key:"domainName",name:"Name"},domainRating:{key:"domainRating",shortName:"DR",tooltip:"Estimating domain strength based on link mass"},basePrice:{key:"basePrice",adminName:"Base Price"},totalPrice:{key:"totalPrice",name:"Price",adminName:"Total Price"},contentNotes:{key:"contentNotes",name:"Content Notes"},domainStatus:{key:"domainStatus",name:"Domain Status"},categories:{key:"categories",name:"Categories"},countries:{key:"countries",name:"Countries"},language:{key:"language",name:"Language",width:120},contentSampleLink:{key:"contentSampleLink",name:"Content Sample Link"},webmasterEmails:{key:"webmasterEmails",name:"Webmaster Emails"},nlEmails:{key:"nlEmails",name:"NL Emails"},organicTraffic:{key:"organicTraffic",shortName:"OT",tooltip:"Volume of organic site traffic"},domainAuthority:{key:"domainAuthority",shortName:"DA",tooltip:"Comprehensive assessment of domain authority in search results"}};var QN=(e=>(e.topRated="topRated",e.highestPrice="highestPrice",e.lowestPrice="lowestPrice",e))(QN||{});const JN=[{value:"topRated",label:"Top Rated"},{value:"highestPrice",label:"Highest Price"},{value:"lowestPrice",label:"Lowest Price"}];var fA=(e=>(e.stripe="stripe",e.euka="euka",e))(fA||{});const g5=[{value:"stripe",label:"Stripe"},{value:"euka",label:"Euka"}],oo="€",RO=(e,t=500)=>{const[n,r]=b.useState(e);return b.useEffect(()=>{const o=setTimeout(()=>r(e),t);return()=>{clearTimeout(o)}},[e,t]),n};function e8(e,t){return function(){return e.apply(t,arguments)}}const{toString:Mhe}=Object.prototype,{getPrototypeOf:OO}=Object,{iterator:vT,toStringTag:t8}=Symbol,xT=(e=>t=>{const n=Mhe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),xl=e=>(e=e.toLowerCase(),t=>xT(t)===e),wT=e=>t=>typeof t===e,{isArray:Q0}=Array,px=wT("undefined");function khe(e){return e!==null&&!px(e)&&e.constructor!==null&&!px(e.constructor)&&Sa(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const n8=xl("ArrayBuffer");function Phe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&n8(e.buffer),t}const Ihe=wT("string"),Sa=wT("function"),r8=wT("number"),CT=e=>e!==null&&typeof e=="object",Ahe=e=>e===!0||e===!1,YS=e=>{if(xT(e)!=="object")return!1;const t=OO(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(t8 in e)&&!(vT in e)},Rhe=xl("Date"),Ohe=xl("File"),_he=xl("Blob"),Dhe=xl("FileList"),Lhe=e=>CT(e)&&Sa(e.pipe),$he=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Sa(e.append)&&((t=xT(e))==="formdata"||t==="object"&&Sa(e.toString)&&e.toString()==="[object FormData]"))},jhe=xl("URLSearchParams"),[Fhe,Nhe,zhe,Bhe]=["ReadableStream","Request","Response","Headers"].map(xl),Hhe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function t1(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Q0(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let l;for(r=0;r<a;r++)l=i[r],t.call(null,e[l],l,e)}}function o8(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Wp=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,i8=e=>!px(e)&&e!==Wp;function pA(){const{caseless:e}=i8(this)&&this||{},t={},n=(r,o)=>{const i=e&&o8(t,o)||o;YS(t[i])&&YS(r)?t[i]=pA(t[i],r):YS(r)?t[i]=pA({},r):Q0(r)?t[i]=r.slice():t[i]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&t1(arguments[r],n);return t}const Uhe=(e,t,n,{allOwnKeys:r}={})=>(t1(t,(o,i)=>{n&&Sa(o)?e[i]=e8(o,n):e[i]=o},{allOwnKeys:r}),e),Ghe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vhe=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Whe=(e,t,n,r)=>{let o,i,a;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=n!==!1&&OO(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qhe=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Yhe=e=>{if(!e)return null;if(Q0(e))return e;let t=e.length;if(!r8(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Khe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&OO(Uint8Array)),Xhe=(e,t)=>{const r=(e&&e[vT]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Zhe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Qhe=xl("HTMLFormElement"),Jhe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),b5=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),eme=xl("RegExp"),a8=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};t1(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},tme=e=>{a8(e,(t,n)=>{if(Sa(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Sa(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},nme=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return Q0(e)?r(e):r(String(e).split(t)),n},rme=()=>{},ome=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function ime(e){return!!(e&&Sa(e.append)&&e[t8]==="FormData"&&e[vT])}const ame=e=>{const t=new Array(10),n=(r,o)=>{if(CT(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[o]=r;const i=Q0(r)?[]:{};return t1(r,(a,l)=>{const u=n(a,o+1);!px(u)&&(i[l]=u)}),t[o]=void 0,i}}return r};return n(e,0)},sme=xl("AsyncFunction"),lme=e=>e&&(CT(e)||Sa(e))&&Sa(e.then)&&Sa(e.catch),s8=((e,t)=>e?setImmediate:t?((n,r)=>(Wp.addEventListener("message",({source:o,data:i})=>{o===Wp&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Wp.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Sa(Wp.postMessage)),cme=typeof queueMicrotask<"u"?queueMicrotask.bind(Wp):typeof process<"u"&&process.nextTick||s8,ume=e=>e!=null&&Sa(e[vT]),Ye={isArray:Q0,isArrayBuffer:n8,isBuffer:khe,isFormData:$he,isArrayBufferView:Phe,isString:Ihe,isNumber:r8,isBoolean:Ahe,isObject:CT,isPlainObject:YS,isReadableStream:Fhe,isRequest:Nhe,isResponse:zhe,isHeaders:Bhe,isUndefined:px,isDate:Rhe,isFile:Ohe,isBlob:_he,isRegExp:eme,isFunction:Sa,isStream:Lhe,isURLSearchParams:jhe,isTypedArray:Khe,isFileList:Dhe,forEach:t1,merge:pA,extend:Uhe,trim:Hhe,stripBOM:Ghe,inherits:Vhe,toFlatObject:Whe,kindOf:xT,kindOfTest:xl,endsWith:qhe,toArray:Yhe,forEachEntry:Xhe,matchAll:Zhe,isHTMLForm:Qhe,hasOwnProperty:b5,hasOwnProp:b5,reduceDescriptors:a8,freezeMethods:tme,toObjectSet:nme,toCamelCase:Jhe,noop:rme,toFiniteNumber:ome,findKey:o8,global:Wp,isContextDefined:i8,isSpecCompliantForm:ime,toJSONObject:ame,isAsyncFn:sme,isThenable:lme,setImmediate:s8,asap:cme,isIterable:ume};function wn(e,t,n,r,o){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),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ye.inherits(wn,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:Ye.toJSONObject(this.config),code:this.code,status:this.status}}});const l8=wn.prototype,c8={};["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=>{c8[e]={value:e}});Object.defineProperties(wn,c8);Object.defineProperty(l8,"isAxiosError",{value:!0});wn.from=(e,t,n,r,o,i)=>{const a=Object.create(l8);return Ye.toFlatObject(e,a,function(u){return u!==Error.prototype},l=>l!=="isAxiosError"),wn.call(a,e.message,t,n,r,o),a.cause=e,a.name=e.name,i&&Object.assign(a,i),a};const dme=null;function hA(e){return Ye.isPlainObject(e)||Ye.isArray(e)}function u8(e){return Ye.endsWith(e,"[]")?e.slice(0,-2):e}function y5(e,t,n){return e?e.concat(t).map(function(o,i){return o=u8(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function fme(e){return Ye.isArray(e)&&!e.some(hA)}const pme=Ye.toFlatObject(Ye,{},null,function(t){return/^is[A-Z]/.test(t)});function ST(e,t,n){if(!Ye.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ye.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,E){return!Ye.isUndefined(E[S])});const r=n.metaTokens,o=n.visitor||f,i=n.dots,a=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&Ye.isSpecCompliantForm(t);if(!Ye.isFunction(o))throw new TypeError("visitor must be a function");function d(C){if(C===null)return"";if(Ye.isDate(C))return C.toISOString();if(!u&&Ye.isBlob(C))throw new wn("Blob is not supported. Use a Buffer instead.");return Ye.isArrayBuffer(C)||Ye.isTypedArray(C)?u&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function f(C,S,E){let T=C;if(C&&!E&&typeof C=="object"){if(Ye.endsWith(S,"{}"))S=r?S:S.slice(0,-2),C=JSON.stringify(C);else if(Ye.isArray(C)&&fme(C)||(Ye.isFileList(C)||Ye.endsWith(S,"[]"))&&(T=Ye.toArray(C)))return S=u8(S),T.forEach(function(k,R){!(Ye.isUndefined(k)||k===null)&&t.append(a===!0?y5([S],R,i):a===null?S:S+"[]",d(k))}),!1}return hA(C)?!0:(t.append(y5(E,S,i),d(C)),!1)}const m=[],g=Object.assign(pme,{defaultVisitor:f,convertValue:d,isVisitable:hA});function w(C,S){if(!Ye.isUndefined(C)){if(m.indexOf(C)!==-1)throw Error("Circular reference detected in "+S.join("."));m.push(C),Ye.forEach(C,function(T,I){(!(Ye.isUndefined(T)||T===null)&&o.call(t,T,Ye.isString(I)?I.trim():I,S,g))===!0&&w(T,S?S.concat(I):[I])}),m.pop()}}if(!Ye.isObject(e))throw new TypeError("data must be an object");return w(e),t}function v5(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function _O(e,t){this._pairs=[],e&&ST(e,this,t)}const d8=_O.prototype;d8.append=function(t,n){this._pairs.push([t,n])};d8.toString=function(t){const n=t?function(r){return t.call(this,r,v5)}:v5;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function hme(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function f8(e,t,n){if(!t)return e;const r=n&&n.encode||hme;Ye.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Ye.isURLSearchParams(t)?t.toString():new _O(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class x5{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ye.forEach(this.handlers,function(r){r!==null&&t(r)})}}const p8={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},mme=typeof URLSearchParams<"u"?URLSearchParams:_O,gme=typeof FormData<"u"?FormData:null,bme=typeof Blob<"u"?Blob:null,yme={isBrowser:!0,classes:{URLSearchParams:mme,FormData:gme,Blob:bme},protocols:["http","https","file","blob","url","data"]},DO=typeof window<"u"&&typeof document<"u",mA=typeof navigator=="object"&&navigator||void 0,vme=DO&&(!mA||["ReactNative","NativeScript","NS"].indexOf(mA.product)<0),xme=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wme=DO&&window.location.href||"http://localhost",Cme=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:DO,hasStandardBrowserEnv:vme,hasStandardBrowserWebWorkerEnv:xme,navigator:mA,origin:wme},Symbol.toStringTag,{value:"Module"})),Di={...Cme,...yme};function Sme(e,t){return ST(e,new Di.classes.URLSearchParams,Object.assign({visitor:function(n,r,o,i){return Di.isNode&&Ye.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},t))}function Eme(e){return Ye.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tme(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function h8(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),u=i>=n.length;return a=!a&&Ye.isArray(o)?o.length:a,u?(Ye.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!l):((!o[a]||!Ye.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Ye.isArray(o[a])&&(o[a]=Tme(o[a])),!l)}if(Ye.isFormData(e)&&Ye.isFunction(e.entries)){const n={};return Ye.forEachEntry(e,(r,o)=>{t(Eme(r),o,n,0)}),n}return null}function Mme(e,t,n){if(Ye.isString(e))try{return(t||JSON.parse)(e),Ye.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const n1={transitional:p8,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Ye.isObject(t);if(i&&Ye.isHTMLForm(t)&&(t=new FormData(t)),Ye.isFormData(t))return o?JSON.stringify(h8(t)):t;if(Ye.isArrayBuffer(t)||Ye.isBuffer(t)||Ye.isStream(t)||Ye.isFile(t)||Ye.isBlob(t)||Ye.isReadableStream(t))return t;if(Ye.isArrayBufferView(t))return t.buffer;if(Ye.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Sme(t,this.formSerializer).toString();if((l=Ye.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ST(l?{"files[]":t}:t,u&&new u,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Mme(t)):t}],transformResponse:[function(t){const n=this.transitional||n1.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ye.isResponse(t)||Ye.isReadableStream(t))return t;if(t&&Ye.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(a)throw l.name==="SyntaxError"?wn.from(l,wn.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Di.classes.FormData,Blob:Di.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ye.forEach(["delete","get","head","post","put","patch"],e=>{n1.headers[e]={}});const kme=Ye.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"]),Pme=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&kme[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},w5=Symbol("internals");function lv(e){return e&&String(e).trim().toLowerCase()}function KS(e){return e===!1||e==null?e:Ye.isArray(e)?e.map(KS):String(e)}function Ime(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Ame=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function aP(e,t,n,r,o){if(Ye.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ye.isString(t)){if(Ye.isString(r))return t.indexOf(r)!==-1;if(Ye.isRegExp(r))return r.test(t)}}function Rme(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ome(e,t){const n=Ye.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let Ea=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(l,u,d){const f=lv(u);if(!f)throw new Error("header name must be a non-empty string");const m=Ye.findKey(o,f);(!m||o[m]===void 0||d===!0||d===void 0&&o[m]!==!1)&&(o[m||u]=KS(l))}const a=(l,u)=>Ye.forEach(l,(d,f)=>i(d,f,u));if(Ye.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ye.isString(t)&&(t=t.trim())&&!Ame(t))a(Pme(t),n);else if(Ye.isObject(t)&&Ye.isIterable(t)){let l={},u,d;for(const f of t){if(!Ye.isArray(f))throw TypeError("Object iterator must return a key-value pair");l[d=f[0]]=(u=l[d])?Ye.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}a(l,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=lv(t),t){const r=Ye.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Ime(o);if(Ye.isFunction(n))return n.call(this,o,r);if(Ye.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=lv(t),t){const r=Ye.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||aP(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=lv(a),a){const l=Ye.findKey(r,a);l&&(!n||aP(r,r[l],l,n))&&(delete r[l],o=!0)}}return Ye.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||aP(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Ye.forEach(this,(o,i)=>{const a=Ye.findKey(r,i);if(a){n[a]=KS(o),delete n[i];return}const l=t?Rme(i):String(i).trim();l!==i&&delete n[i],n[l]=KS(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ye.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ye.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[w5]=this[w5]={accessors:{}}).accessors,o=this.prototype;function i(a){const l=lv(a);r[l]||(Ome(o,a),r[l]=!0)}return Ye.isArray(t)?t.forEach(i):i(t),this}};Ea.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ye.reduceDescriptors(Ea.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ye.freezeMethods(Ea);function sP(e,t){const n=this||n1,r=t||n,o=Ea.from(r.headers);let i=r.data;return Ye.forEach(e,function(l){i=l.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function m8(e){return!!(e&&e.__CANCEL__)}function J0(e,t,n){wn.call(this,e??"canceled",wn.ERR_CANCELED,t,n),this.name="CanceledError"}Ye.inherits(J0,wn,{__CANCEL__:!0});function g8(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new wn("Request failed with status code "+n.status,[wn.ERR_BAD_REQUEST,wn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function _me(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Dme(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(u){const d=Date.now(),f=r[i];a||(a=d),n[o]=u,r[o]=d;let m=i,g=0;for(;m!==o;)g+=n[m++],m=m%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),d-a<t)return;const w=f&&d-f;return w?Math.round(g*1e3/w):void 0}}function Lme(e,t){let n=0,r=1e3/t,o,i;const a=(d,f=Date.now())=>{n=f,o=null,i&&(clearTimeout(i),i=null),e.apply(null,d)};return[(...d)=>{const f=Date.now(),m=f-n;m>=r?a(d,f):(o=d,i||(i=setTimeout(()=>{i=null,a(o)},r-m)))},()=>o&&a(o)]}const A2=(e,t,n=3)=>{let r=0;const o=Dme(50,250);return Lme(i=>{const a=i.loaded,l=i.lengthComputable?i.total:void 0,u=a-r,d=o(u),f=a<=l;r=a;const m={loaded:a,total:l,progress:l?a/l:void 0,bytes:u,rate:d||void 0,estimated:d&&l&&f?(l-a)/d:void 0,event:i,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(m)},n)},C5=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},S5=e=>(...t)=>Ye.asap(()=>e(...t)),$me=Di.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Di.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Di.origin),Di.navigator&&/(msie|trident)/i.test(Di.navigator.userAgent)):()=>!0,jme=Di.hasStandardBrowserEnv?{write(e,t,n,r,o,i){const a=[e+"="+encodeURIComponent(t)];Ye.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Ye.isString(r)&&a.push("path="+r),Ye.isString(o)&&a.push("domain="+o),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Fme(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Nme(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function b8(e,t,n){let r=!Fme(t);return e&&(r||n==!1)?Nme(e,t):t}const E5=e=>e instanceof Ea?{...e}:e;function bh(e,t){t=t||{};const n={};function r(d,f,m,g){return Ye.isPlainObject(d)&&Ye.isPlainObject(f)?Ye.merge.call({caseless:g},d,f):Ye.isPlainObject(f)?Ye.merge({},f):Ye.isArray(f)?f.slice():f}function o(d,f,m,g){if(Ye.isUndefined(f)){if(!Ye.isUndefined(d))return r(void 0,d,m,g)}else return r(d,f,m,g)}function i(d,f){if(!Ye.isUndefined(f))return r(void 0,f)}function a(d,f){if(Ye.isUndefined(f)){if(!Ye.isUndefined(d))return r(void 0,d)}else return r(void 0,f)}function l(d,f,m){if(m in t)return r(d,f);if(m in e)return r(void 0,d)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(d,f,m)=>o(E5(d),E5(f),m,!0)};return Ye.forEach(Object.keys(Object.assign({},e,t)),function(f){const m=u[f]||o,g=m(e[f],t[f],f);Ye.isUndefined(g)&&m!==l||(n[f]=g)}),n}const y8=e=>{const t=bh({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:l}=t;t.headers=a=Ea.from(a),t.url=f8(b8(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&a.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):"")));let u;if(Ye.isFormData(n)){if(Di.hasStandardBrowserEnv||Di.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((u=a.getContentType())!==!1){const[d,...f]=u?u.split(";").map(m=>m.trim()).filter(Boolean):[];a.setContentType([d||"multipart/form-data",...f].join("; "))}}if(Di.hasStandardBrowserEnv&&(r&&Ye.isFunction(r)&&(r=r(t)),r||r!==!1&&$me(t.url))){const d=o&&i&&jme.read(i);d&&a.set(o,d)}return t},zme=typeof XMLHttpRequest<"u",Bme=zme&&function(e){return new Promise(function(n,r){const o=y8(e);let i=o.data;const a=Ea.from(o.headers).normalize();let{responseType:l,onUploadProgress:u,onDownloadProgress:d}=o,f,m,g,w,C;function S(){w&&w(),C&&C(),o.cancelToken&&o.cancelToken.unsubscribe(f),o.signal&&o.signal.removeEventListener("abort",f)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function T(){if(!E)return;const k=Ea.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),P={data:!l||l==="text"||l==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:k,config:e,request:E};g8(function(j){n(j),S()},function(j){r(j),S()},P),E=null}"onloadend"in E?E.onloadend=T:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(T)},E.onabort=function(){E&&(r(new wn("Request aborted",wn.ECONNABORTED,e,E)),E=null)},E.onerror=function(){r(new wn("Network Error",wn.ERR_NETWORK,e,E)),E=null},E.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const P=o.transitional||p8;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),r(new wn(R,P.clarifyTimeoutError?wn.ETIMEDOUT:wn.ECONNABORTED,e,E)),E=null},i===void 0&&a.setContentType(null),"setRequestHeader"in E&&Ye.forEach(a.toJSON(),function(R,P){E.setRequestHeader(P,R)}),Ye.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),l&&l!=="json"&&(E.responseType=o.responseType),d&&([g,C]=A2(d,!0),E.addEventListener("progress",g)),u&&E.upload&&([m,w]=A2(u),E.upload.addEventListener("progress",m),E.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(f=k=>{E&&(r(!k||k.type?new J0(null,e,E):k),E.abort(),E=null)},o.cancelToken&&o.cancelToken.subscribe(f),o.signal&&(o.signal.aborted?f():o.signal.addEventListener("abort",f)));const I=_me(o.url);if(I&&Di.protocols.indexOf(I)===-1){r(new wn("Unsupported protocol "+I+":",wn.ERR_BAD_REQUEST,e));return}E.send(i||null)})},Hme=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(d){if(!o){o=!0,l();const f=d instanceof Error?d:this.reason;r.abort(f instanceof wn?f:new J0(f instanceof Error?f.message:f))}};let a=t&&setTimeout(()=>{a=null,i(new wn(`timeout ${t} of ms exceeded`,wn.ETIMEDOUT))},t);const l=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(i):d.removeEventListener("abort",i)}),e=null)};e.forEach(d=>d.addEventListener("abort",i));const{signal:u}=r;return u.unsubscribe=()=>Ye.asap(l),u}},Ume=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},Gme=async function*(e,t){for await(const n of Vme(e))yield*Ume(n,t)},Vme=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},T5=(e,t,n,r)=>{const o=Gme(e,t);let i=0,a,l=u=>{a||(a=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:f}=await o.next();if(d){l(),u.close();return}let m=f.byteLength;if(n){let g=i+=m;n(g)}u.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(u){return l(u),o.return()}},{highWaterMark:2})},ET=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",v8=ET&&typeof ReadableStream=="function",Wme=ET&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),x8=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qme=v8&&x8(()=>{let e=!1;const t=new Request(Di.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),M5=64*1024,gA=v8&&x8(()=>Ye.isReadableStream(new Response("").body)),R2={stream:gA&&(e=>e.body)};ET&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!R2[t]&&(R2[t]=Ye.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new wn(`Response type '${t}' is not supported`,wn.ERR_NOT_SUPPORT,r)})})})(new Response);const Yme=async e=>{if(e==null)return 0;if(Ye.isBlob(e))return e.size;if(Ye.isSpecCompliantForm(e))return(await new Request(Di.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(Ye.isArrayBufferView(e)||Ye.isArrayBuffer(e))return e.byteLength;if(Ye.isURLSearchParams(e)&&(e=e+""),Ye.isString(e))return(await Wme(e)).byteLength},Kme=async(e,t)=>{const n=Ye.toFiniteNumber(e.getContentLength());return n??Yme(t)},Xme=ET&&(async e=>{let{url:t,method:n,data:r,signal:o,cancelToken:i,timeout:a,onDownloadProgress:l,onUploadProgress:u,responseType:d,headers:f,withCredentials:m="same-origin",fetchOptions:g}=y8(e);d=d?(d+"").toLowerCase():"text";let w=Hme([o,i&&i.toAbortSignal()],a),C;const S=w&&w.unsubscribe&&(()=>{w.unsubscribe()});let E;try{if(u&&qme&&n!=="get"&&n!=="head"&&(E=await Kme(f,r))!==0){let P=new Request(t,{method:"POST",body:r,duplex:"half"}),O;if(Ye.isFormData(r)&&(O=P.headers.get("content-type"))&&f.setContentType(O),P.body){const[j,F]=C5(E,A2(S5(u)));r=T5(P.body,M5,j,F)}}Ye.isString(m)||(m=m?"include":"omit");const T="credentials"in Request.prototype;C=new Request(t,{...g,signal:w,method:n.toUpperCase(),headers:f.normalize().toJSON(),body:r,duplex:"half",credentials:T?m:void 0});let I=await fetch(C);const k=gA&&(d==="stream"||d==="response");if(gA&&(l||k&&S)){const P={};["status","statusText","headers"].forEach(D=>{P[D]=I[D]});const O=Ye.toFiniteNumber(I.headers.get("content-length")),[j,F]=l&&C5(O,A2(S5(l),!0))||[];I=new Response(T5(I.body,M5,j,()=>{F&&F(),S&&S()}),P)}d=d||"text";let R=await R2[Ye.findKey(R2,d)||"text"](I,e);return!k&&S&&S(),await new Promise((P,O)=>{g8(P,O,{data:R,headers:Ea.from(I.headers),status:I.status,statusText:I.statusText,config:e,request:C})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new wn("Network Error",wn.ERR_NETWORK,e,C),{cause:T.cause||T}):wn.from(T,T&&T.code,e,C)}}),bA={http:dme,xhr:Bme,fetch:Xme};Ye.forEach(bA,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const k5=e=>`- ${e}`,Zme=e=>Ye.isFunction(e)||e===null||e===!1,w8={getAdapter:e=>{e=Ye.isArray(e)?e:[e];const{length:t}=e;let n,r;const o={};for(let i=0;i<t;i++){n=e[i];let a;if(r=n,!Zme(n)&&(r=bA[(a=String(n)).toLowerCase()],r===void 0))throw new wn(`Unknown adapter '${a}'`);if(r)break;o[a||"#"+i]=r}if(!r){const i=Object.entries(o).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let a=t?i.length>1?`since :
`+i.map(k5).join(`
`):" "+k5(i[0]):"as no adapter specified";throw new wn("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return r},adapters:bA};function lP(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new J0(null,e)}function P5(e){return lP(e),e.headers=Ea.from(e.headers),e.data=sP.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),w8.getAdapter(e.adapter||n1.adapter)(e).then(function(r){return lP(e),r.data=sP.call(e,e.transformResponse,r),r.headers=Ea.from(r.headers),r},function(r){return m8(r)||(lP(e),r&&r.response&&(r.response.data=sP.call(e,e.transformResponse,r.response),r.response.headers=Ea.from(r.response.headers))),Promise.reject(r)})}const C8="1.9.0",TT={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{TT[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const I5={};TT.transitional=function(t,n,r){function o(i,a){return"[Axios v"+C8+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,l)=>{if(t===!1)throw new wn(o(a," has been removed"+(n?" in "+n:"")),wn.ERR_DEPRECATED);return n&&!I5[a]&&(I5[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,l):!0}};TT.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Qme(e,t,n){if(typeof e!="object")throw new wn("options must be an object",wn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const l=e[i],u=l===void 0||a(l,i,e);if(u!==!0)throw new wn("option "+i+" must be "+u,wn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new wn("Unknown option "+i,wn.ERR_BAD_OPTION)}}const XS={assertOptions:Qme,validators:TT},nc=XS.validators;let th=class{constructor(t){this.defaults=t||{},this.interceptors={request:new x5,response:new x5}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bh(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&XS.assertOptions(r,{silentJSONParsing:nc.transitional(nc.boolean),forcedJSONParsing:nc.transitional(nc.boolean),clarifyTimeoutError:nc.transitional(nc.boolean)},!1),o!=null&&(Ye.isFunction(o)?n.paramsSerializer={serialize:o}:XS.assertOptions(o,{encode:nc.function,serialize:nc.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),XS.assertOptions(n,{baseUrl:nc.spelling("baseURL"),withXsrfToken:nc.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Ye.merge(i.common,i[n.method]);i&&Ye.forEach(["delete","get","head","post","put","patch","common"],C=>{delete i[C]}),n.headers=Ea.concat(a,i);const l=[];let u=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(u=u&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let f,m=0,g;if(!u){const C=[P5.bind(this),void 0];for(C.unshift.apply(C,l),C.push.apply(C,d),g=C.length,f=Promise.resolve(n);m<g;)f=f.then(C[m++],C[m++]);return f}g=l.length;let w=n;for(m=0;m<g;){const C=l[m++],S=l[m++];try{w=C(w)}catch(E){S.call(this,E);break}}try{f=P5.call(this,w)}catch(C){return Promise.reject(C)}for(m=0,g=d.length;m<g;)f=f.then(d[m++],d[m++]);return f}getUri(t){t=bh(this.defaults,t);const n=b8(t.baseURL,t.url,t.allowAbsoluteUrls);return f8(n,t.params,t.paramsSerializer)}};Ye.forEach(["delete","get","head","options"],function(t){th.prototype[t]=function(n,r){return this.request(bh(r||{},{method:t,url:n,data:(r||{}).data}))}});Ye.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,l){return this.request(bh(l||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}th.prototype[t]=n(),th.prototype[t+"Form"]=n(!0)});let Jme=class S8{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(l=>{r.subscribe(l),i=l}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,l){r.reason||(r.reason=new J0(i,a,l),n(r.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)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new S8(function(o){t=o}),cancel:t}}};function ege(e){return function(n){return e.apply(null,n)}}function tge(e){return Ye.isObject(e)&&e.isAxiosError===!0}const yA={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(yA).forEach(([e,t])=>{yA[t]=e});function E8(e){const t=new th(e),n=e8(th.prototype.request,t);return Ye.extend(n,th.prototype,t,{allOwnKeys:!0}),Ye.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return E8(bh(e,o))},n}const ko=E8(n1);ko.Axios=th;ko.CanceledError=J0;ko.CancelToken=Jme;ko.isCancel=m8;ko.VERSION=C8;ko.toFormData=ST;ko.AxiosError=wn;ko.Cancel=ko.CanceledError;ko.all=function(t){return Promise.all(t)};ko.spread=ege;ko.isAxiosError=tge;ko.mergeConfig=bh;ko.AxiosHeaders=Ea;ko.formToJSON=e=>h8(Ye.isHTMLForm(e)?new FormData(e):e);ko.getAdapter=w8.getAdapter;ko.HttpStatusCode=yA;ko.default=ko;const{Axios:e5e,AxiosError:t5e,CanceledError:n5e,isCancel:r5e,CancelToken:o5e,VERSION:i5e,all:a5e,Cancel:s5e,isAxiosError:l5e,spread:c5e,toFormData:u5e,AxiosHeaders:d5e,HttpStatusCode:f5e,formToJSON:p5e,getAdapter:h5e,mergeConfig:m5e}=ko;/*! js-cookie v3.0.5 | MIT */function sS(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var nge={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function vA(e,t){function n(o,i,a){if(!(typeof document>"u")){a=sS({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var u in a)a[u]&&(l+="; "+u,a[u]!==!0&&(l+="="+a[u].split(";")[0]));return document.cookie=o+"="+e.write(i,o)+l}}function r(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l<i.length;l++){var u=i[l].split("="),d=u.slice(1).join("=");try{var f=decodeURIComponent(u[0]);if(a[f]=e.read(d,f),o===f)break}catch{}}return o?a[o]:a}}return Object.create({set:n,get:r,remove:function(o,i){n(o,"",sS({},i,{expires:-1}))},withAttributes:function(o){return vA(this.converter,sS({},this.attributes,o))},withConverter:function(o){return vA(sS({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var eb=vA(nge,{path:"/"});const LO="nl_access_token_cookie",$O="nl_temp",T8=e=>eb.set(LO,e),M8=()=>eb.get(LO),k8=()=>eb.remove(LO),P8=e=>{eb.set($O,JSON.stringify(e),{expires:1})},I8=()=>{const e=eb.get($O);return e?JSON.parse(e):{}},A8=()=>eb.remove($O);function R8(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=R8(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function Th(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=R8(e))&&(r&&(r+=" "),r+=t);return r}let rge={data:""},oge=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||rge,ige=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,age=/\/\*[^]*?\*\/|  +/g,A5=/\n+/g,zp=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+a+";":r+=i[1]=="f"?zp(a,i):i+"{"+zp(a,i[1]=="k"?"":t)+"}":typeof a=="object"?r+=zp(a,t?t.replace(/([^,])+/g,l=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,l):l?l+" "+u:u)):i):a!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=zp.p?zp.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},eu={},O8=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+O8(e[n]);return t}return e},sge=(e,t,n,r,o)=>{let i=O8(e),a=eu[i]||(eu[i]=(u=>{let d=0,f=11;for(;d<u.length;)f=101*f+u.charCodeAt(d++)>>>0;return"go"+f})(i));if(!eu[a]){let u=i!==e?e:(d=>{let f,m,g=[{}];for(;f=ige.exec(d.replace(age,""));)f[4]?g.shift():f[3]?(m=f[3].replace(A5," ").trim(),g.unshift(g[0][m]=g[0][m]||{})):g[0][f[1]]=f[2].replace(A5," ").trim();return g[0]})(e);eu[a]=zp(o?{["@keyframes "+a]:u}:u,n?"":"."+a)}let l=n&&eu.g?eu.g:null;return n&&(eu.g=eu[a]),((u,d,f,m)=>{m?d.data=d.data.replace(m,u):d.data.indexOf(u)===-1&&(d.data=f?u+d.data:d.data+u)})(eu[a],t,r,l),a},lge=(e,t,n)=>e.reduce((r,o,i)=>{let a=t[i];if(a&&a.call){let l=a(n),u=l&&l.props&&l.props.className||/^go/.test(l)&&l;a=u?"."+u:l&&typeof l=="object"?l.props?"":zp(l,""):l===!1?"":l}return r+o+(a??"")},"");function jO(e){let t=this||{},n=e.call?e(t.p):e;return sge(n.unshift?n.raw?lge(n,[].slice.call(arguments,1),t.p):n.reduce((r,o)=>Object.assign(r,o&&o.call?o(t.p):o),{}):n,oge(t.target),t.g,t.o,t.k)}jO.bind({g:1});jO.bind({k:1});function cge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _8(e,t,n){return t&&cge(e.prototype,t),e}function Pr(){return Pr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pr.apply(this,arguments)}function D8(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function r1(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function R5(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var O5=function(){return""},uge=un.createContext({enqueueSnackbar:O5,closeSnackbar:O5}),_p={downXs:"@media (max-width:599.95px)",upSm:"@media (min-width:600px)"},_5=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},FO=function(t){return""+_5(t.vertical)+_5(t.horizontal)},lS=function(t){return!!t||t===0},cS="unmounted",Mg="exited",kg="entering",cv="entered",D5="exiting",NO=function(e){D8(t,e);function t(r){var o;o=e.call(this,r)||this;var i=r.appear,a;return o.appearStatus=null,r.in?i?(a=Mg,o.appearStatus=kg):a=cv:r.unmountOnExit||r.mountOnEnter?a=cS:a=Mg,o.state={status:a},o.nextCallback=null,o}t.getDerivedStateFromProps=function(o,i){var a=o.in;return a&&i.status===cS?{status:Mg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(o){var i=null;if(o!==this.props){var a=this.state.status;this.props.in?a!==kg&&a!==cv&&(i=kg):(a===kg||a===cv)&&(i=D5)}this.updateStatus(!1,i)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var o=this.props.timeout,i=o,a=o;return o!=null&&typeof o!="number"&&typeof o!="string"&&(a=o.exit,i=o.enter),{exit:a,enter:i}},n.updateStatus=function(o,i){o===void 0&&(o=!1),i!==null?(this.cancelNextCallback(),i===kg?this.performEnter(o):this.performExit()):this.props.unmountOnExit&&this.state.status===Mg&&this.setState({status:cS})},n.performEnter=function(o){var i=this,a=this.props.enter,l=o,u=this.getTimeouts();if(!o&&!a){this.safeSetState({status:cv},function(){i.props.onEntered&&i.props.onEntered(i.node,l)});return}this.props.onEnter&&this.props.onEnter(this.node,l),this.safeSetState({status:kg},function(){i.props.onEntering&&i.props.onEntering(i.node,l),i.onTransitionEnd(u.enter,function(){i.safeSetState({status:cv},function(){i.props.onEntered&&i.props.onEntered(i.node,l)})})})},n.performExit=function(){var o=this,i=this.props.exit,a=this.getTimeouts();if(!i){this.safeSetState({status:Mg},function(){o.props.onExited&&o.props.onExited(o.node)});return}this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:D5},function(){o.props.onExiting&&o.props.onExiting(o.node),o.onTransitionEnd(a.exit,function(){o.safeSetState({status:Mg},function(){o.props.onExited&&o.props.onExited(o.node)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},n.setNextCallback=function(o){var i=this,a=!0;return this.nextCallback=function(){a&&(a=!1,i.nextCallback=null,o())},this.nextCallback.cancel=function(){a=!1},this.nextCallback},n.onTransitionEnd=function(o,i){this.setNextCallback(i);var a=o==null&&!this.props.addEndListener;if(!this.node||a){setTimeout(this.nextCallback,0);return}this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),o!=null&&setTimeout(this.nextCallback,o)},n.render=function(){var o=this.state.status;if(o===cS)return null;var i=this.props,a=i.children,l=r1(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return a(o,l)},_8(t,[{key:"node",get:function(){var o,i=(o=this.props.nodeRef)===null||o===void 0?void 0:o.current;if(!i)throw new Error("notistack - Custom snackbar is not refForwarding");return i}}]),t}(un.Component);function Pg(){}NO.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Pg,onEntering:Pg,onEntered:Pg,onExit:Pg,onExiting:Pg,onExited:Pg};function L5(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function xA(e,t){return b.useMemo(function(){return e==null&&t==null?null:function(n){L5(e,n),L5(t,n)}},[e,t])}function O2(e){var t=e.timeout,n=e.style,r=n===void 0?{}:n,o=e.mode;return{duration:typeof t=="object"?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}var wA={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},L8=function(t){t.scrollTop=t.scrollTop},$5=function(t){return Math.round(t)+"ms"};function Qg(e,t){e===void 0&&(e=["all"]);var n=t||{},r=n.duration,o=r===void 0?300:r,i=n.easing,a=i===void 0?wA.easeInOut:i,l=n.delay,u=l===void 0?0:l,d=Array.isArray(e)?e:[e];return d.map(function(f){var m=typeof o=="string"?o:$5(o),g=typeof u=="string"?u:$5(u);return f+" "+m+" "+a+" "+g}).join(",")}function dge(e){return e&&e.ownerDocument||document}function $8(e){var t=dge(e);return t.defaultView||window}function fge(e,t){t===void 0&&(t=166);var n;function r(){for(var o=this,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var u=function(){e.apply(o,a)};clearTimeout(n),n=setTimeout(u,t)}return r.clear=function(){clearTimeout(n)},r}function pge(e,t){var n=t.getBoundingClientRect(),r=$8(t),o;if(t.fakeTransform)o=t.fakeTransform;else{var i=r.getComputedStyle(t);o=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,l=0;if(o&&o!=="none"&&typeof o=="string"){var u=o.split("(")[1].split(")")[0].split(",");a=parseInt(u[4],10),l=parseInt(u[5],10)}switch(e){case"left":return"translateX("+(r.innerWidth+a-n.left)+"px)";case"right":return"translateX(-"+(n.left+n.width-a)+"px)";case"up":return"translateY("+(r.innerHeight+l-n.top)+"px)";default:return"translateY(-"+(n.top+n.height-l)+"px)"}}function uS(e,t){if(t){var n=pge(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var j8=b.forwardRef(function(e,t){var n=e.children,r=e.direction,o=r===void 0?"down":r,i=e.in,a=e.style,l=e.timeout,u=l===void 0?0:l,d=e.onEnter,f=e.onEntered,m=e.onExit,g=e.onExited,w=r1(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),C=b.useRef(null),S=xA(n.ref,C),E=xA(S,t),T=function(j,F){uS(o,j),L8(j),d&&d(j,F)},I=function(j){var F=(a==null?void 0:a.transitionTimingFunction)||wA.easeOut,D=O2({timeout:u,mode:"enter",style:Pr({},a,{transitionTimingFunction:F})});j.style.webkitTransition=Qg("-webkit-transform",D),j.style.transition=Qg("transform",D),j.style.webkitTransform="none",j.style.transform="none"},k=function(j){var F=(a==null?void 0:a.transitionTimingFunction)||wA.sharp,D=O2({timeout:u,mode:"exit",style:Pr({},a,{transitionTimingFunction:F})});j.style.webkitTransition=Qg("-webkit-transform",D),j.style.transition=Qg("transform",D),uS(o,j),m&&m(j)},R=function(j){j.style.webkitTransition="",j.style.transition="",g&&g(j)},P=b.useCallback(function(){C.current&&uS(o,C.current)},[o]);return b.useEffect(function(){if(!(i||o==="down"||o==="right")){var O=fge(function(){C.current&&uS(o,C.current)}),j=$8(C.current);return j.addEventListener("resize",O),function(){O.clear(),j.removeEventListener("resize",O)}}},[o,i]),b.useEffect(function(){i||P()},[i,P]),b.createElement(NO,Object.assign({appear:!0,nodeRef:C,onEnter:T,onEntered:f,onEntering:I,onExit:k,onExited:R,in:i,timeout:u},w),function(O,j){return b.cloneElement(n,Pr({ref:E,style:Pr({visibility:O==="exited"&&!i?"hidden":void 0},a,{},n.props.style)},j))})});j8.displayName="Slide";var MT=function(t){return un.createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},t))},hge=function(){return un.createElement(MT,null,un.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41
        10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},mge=function(){return un.createElement(MT,null,un.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},gge=function(){return un.createElement(MT,null,un.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,
        6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,
        13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},bge=function(){return un.createElement(MT,null,un.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,
        0 22,12A10,10 0 0,0 12,2Z`}))},yge={default:void 0,success:un.createElement(hge,null),warning:un.createElement(mge,null),error:un.createElement(gge,null),info:un.createElement(bge,null)},nh={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:yge,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:j8,transitionDuration:{enter:225,exit:195}},vge=function(t,n){var r=function(i){return typeof i=="number"||i===null};return r(t)?t:r(n)?n:nh.autoHideDuration},xge=function(t,n){var r=function(i,a){return a.some(function(l){return typeof i===l})};return r(t,["string","number"])?t:r(t,["object"])?Pr({},nh.transitionDuration,{},r(n,["object"])&&n,{},t):r(n,["string","number"])?n:r(n,["object"])?Pr({},nh.transitionDuration,{},n):nh.transitionDuration},wge=function(t,n){return function(r,o){return o===void 0&&(o=!1),o?Pr({},nh[r],{},n[r],{},t[r]):r==="autoHideDuration"?vge(t.autoHideDuration,n.autoHideDuration):r==="transitionDuration"?xge(t.transitionDuration,n.transitionDuration):t[r]||n[r]||nh[r]}};function o1(e){return Object.entries(e).reduce(function(t,n){var r,o=n[0],i=n[1];return Pr({},t,(r={},r[o]=jO(i),r))},{})}var v0={SnackbarContainer:"notistack-SnackbarContainer",Snackbar:"notistack-Snackbar",CollapseWrapper:"notistack-CollapseWrapper",MuiContent:"notistack-MuiContent",MuiContentVariant:function(t){return"notistack-MuiContent-"+t}},j5=o1({root:{height:0},entered:{height:"auto"}}),cP="0px",uP=175,F8=b.forwardRef(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=b.useRef(null),a=b.useRef(null),l=xA(t,a),u=function(){return i.current?i.current.clientHeight:0},d=function(S){S.style.height=cP},f=function(S){var E=u(),T=O2({timeout:uP,mode:"enter"}),I=T.duration,k=T.easing;S.style.transitionDuration=typeof I=="string"?I:I+"ms",S.style.height=E+"px",S.style.transitionTimingFunction=k||""},m=function(S){S.style.height="auto"},g=function(S){S.style.height=u()+"px"},w=function(S){L8(S);var E=O2({timeout:uP,mode:"exit"}),T=E.duration,I=E.easing;S.style.transitionDuration=typeof T=="string"?T:T+"ms",S.style.height=cP,S.style.transitionTimingFunction=I||""};return b.createElement(NO,{in:r,unmountOnExit:!0,onEnter:d,onEntered:m,onEntering:f,onExit:g,onExited:o,onExiting:w,nodeRef:a,timeout:uP},function(C,S){return b.createElement("div",Object.assign({ref:l,className:Th(j5.root,C==="entered"&&j5.entered),style:Pr({pointerEvents:"all",overflow:"hidden",minHeight:cP,transition:Qg("height")},C==="entered"&&{overflow:"visible"},{},C==="exited"&&!r&&{visibility:"hidden"})},S),b.createElement("div",{ref:i,className:v0.CollapseWrapper,style:{display:"flex",width:"100%"}},n))})});F8.displayName="Collapse";var F5={right:"left",left:"right",bottom:"up",top:"down"},Cge=function(t){return t.horizontal!=="center"?F5[t.horizontal]:F5[t.vertical]},Sge=function(t){return"anchorOrigin"+FO(t)},Ege=function(t){t===void 0&&(t={});var n={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(t).filter(function(r){return!n[r]}).reduce(function(r,o){var i;return Pr({},r,(i={},i[o]=t[o],i))},{})},Tge=function(){};function Kv(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];var u=[].concat(a);t&&u.indexOf(t)===-1&&u.push(t),n.apply(this,u),r.apply(this,u)}},Tge)}var Mge=typeof window<"u"?b.useLayoutEffect:b.useEffect;function N5(e){var t=b.useRef(e);return Mge(function(){t.current=e}),b.useCallback(function(){return t.current.apply(void 0,arguments)},[])}var N8=b.forwardRef(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=i===void 0?!1:i,l=e.onClose,u=e.id,d=e.open,f=e.SnackbarProps,m=f===void 0?{}:f,g=b.useRef(),w=N5(function(){l&&l.apply(void 0,arguments)}),C=N5(function(k){!l||k==null||(g.current&&clearTimeout(g.current),g.current=setTimeout(function(){w(null,"timeout",u)},k))});b.useEffect(function(){return d&&C(o),function(){g.current&&clearTimeout(g.current)}},[d,o,C]);var S=function(){g.current&&clearTimeout(g.current)},E=b.useCallback(function(){o!=null&&C(o*.5)},[o,C]),T=function(R){m.onMouseEnter&&m.onMouseEnter(R),S()},I=function(R){m.onMouseLeave&&m.onMouseLeave(R),E()};return b.useEffect(function(){if(!a&&d)return window.addEventListener("focus",E),window.addEventListener("blur",S),function(){window.removeEventListener("focus",E),window.removeEventListener("blur",S)}},[a,E,d]),b.createElement("div",Object.assign({ref:t},m,{className:Th(v0.Snackbar,r),onMouseEnter:T,onMouseLeave:I}),n)});N8.displayName="Snackbar";var dP,kge=o1({root:(dP={display:"flex",flexWrap:"wrap",flexGrow:1},dP[_p.upSm]={flexGrow:"initial",minWidth:"288px"},dP)}),z8=b.forwardRef(function(e,t){var n=e.className,r=r1(e,["className"]);return un.createElement("div",Object.assign({ref:t,className:Th(kge.root,n)},r))});z8.displayName="SnackbarContent";var uv=o1({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:8*2.5+"px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),z5="notistack-snackbar",B8=b.forwardRef(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,a=e.variant,l=e.hideIconVariant,u=e.style,d=e.className,f=i[a],m=o;return typeof m=="function"&&(m=m(n)),un.createElement(z8,{ref:t,role:"alert","aria-describedby":z5,style:u,className:Th(v0.MuiContent,v0.MuiContentVariant(a),uv.root,uv[a],d,!l&&f&&uv.lessPadding)},un.createElement("div",{id:z5,className:uv.message},l?null:f,r),m&&un.createElement("div",{className:uv.action},m))});B8.displayName="MaterialDesignContent";var Pge=b.memo(B8),Ige=o1({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),Age=function(t){var n=b.useRef(),r=b.useState(!0),o=r[0],i=r[1],a=Kv([t.snack.onClose,t.onClose]),l=function(){t.snack.requestClose&&a(null,"instructed",t.snack.id)},u=b.useCallback(function(){n.current=setTimeout(function(){i(function(D){return!D})},125)},[]);b.useEffect(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var d=t.snack,f=t.classes,m=t.Component,g=m===void 0?Pge:m,w=b.useMemo(function(){return Ege(f)},[f]),C=d.open,S=d.SnackbarProps,E=d.TransitionComponent,T=d.TransitionProps,I=d.transitionDuration,k=d.disableWindowBlurListener,R=d.content,P=r1(d,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),O=Pr({direction:Cge(P.anchorOrigin),timeout:I},T),j=R;typeof j=="function"&&(j=j(P.id,P.message));var F=["onEnter","onEntered","onExit","onExited"].reduce(function(D,_){var $;return Pr({},D,($={},$[_]=Kv([t.snack[_],t[_]],P.id),$))},{});return un.createElement(F8,{in:o,onExited:F.onExited},un.createElement(N8,{open:C,id:P.id,disableWindowBlurListener:k,autoHideDuration:P.autoHideDuration,className:Th(Ige.wrappedRoot,w.root,w[Sge(P.anchorOrigin)]),SnackbarProps:S,onClose:a},un.createElement(E,Object.assign({},O,{appear:!0,in:C,onExit:F.onExit,onExited:u,onEnter:F.onEnter,onEntered:Kv([F.onEntered,l],P.id)}),j||un.createElement(g,Object.assign({},P)))))},dv,fP,dS,fS,pP,tu={view:{default:20},snackbar:{default:6,dense:2}},B5="."+v0.CollapseWrapper,hP=16,pS=o1({root:(dv={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:Qg(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"},dv[B5]={padding:tu.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},dv.maxWidth="calc(100% - "+tu.view.default*2+"px)",dv[_p.downXs]={width:"100%",maxWidth:"calc(100% - "+hP*2+"px)"},dv),rootDense:(fP={},fP[B5]={padding:tu.snackbar.dense+"px 0px"},fP),top:{top:tu.view.default-tu.snackbar.default+"px",flexDirection:"column"},bottom:{bottom:tu.view.default-tu.snackbar.default+"px",flexDirection:"column-reverse"},left:(dS={left:tu.view.default+"px"},dS[_p.upSm]={alignItems:"flex-start"},dS[_p.downXs]={left:hP+"px"},dS),right:(fS={right:tu.view.default+"px"},fS[_p.upSm]={alignItems:"flex-end"},fS[_p.downXs]={right:hP+"px"},fS),center:(pP={left:"50%",transform:"translateX(-50%)"},pP[_p.upSm]={alignItems:"center"},pP)}),Rge=function(t){var n=t.classes,r=n===void 0?{}:n,o=t.anchorOrigin,i=t.dense,a=t.children,l=Th(v0.SnackbarContainer,pS[o.vertical],pS[o.horizontal],pS.root,r.containerRoot,r["containerAnchorOrigin"+FO(o)],i&&pS.rootDense);return un.createElement("div",{className:l},a)},Oge=b.memo(Rge),H5=function(t){var n=typeof t=="string"||b.isValidElement(t);return!n},H8,_ge=function(e){D8(t,e);function t(r){var o;return o=e.call(this,r)||this,o.enqueueSnackbar=function(i,a){if(a===void 0&&(a={}),i==null)throw new Error("enqueueSnackbar called with invalid argument");var l=H5(i)?i:a,u=H5(i)?i.message:i,d=l.key,f=l.preventDuplicate,m=r1(l,["key","preventDuplicate"]),g=lS(d),w=g?d:new Date().getTime()+Math.random(),C=wge(m,o.props),S=Pr({id:w},m,{message:u,open:!0,entered:!1,requestClose:!1,persist:C("persist"),action:C("action"),content:C("content"),variant:C("variant"),anchorOrigin:C("anchorOrigin"),disableWindowBlurListener:C("disableWindowBlurListener"),autoHideDuration:C("autoHideDuration"),hideIconVariant:C("hideIconVariant"),TransitionComponent:C("TransitionComponent"),transitionDuration:C("transitionDuration"),TransitionProps:C("TransitionProps",!0),iconVariant:C("iconVariant",!0),style:C("style",!0),SnackbarProps:C("SnackbarProps",!0),className:Th(o.props.className,m.className)});return S.persist&&(S.autoHideDuration=void 0),o.setState(function(E){if(f===void 0&&o.props.preventDuplicate||f){var T=function(P){return g?P.id===w:P.message===u},I=E.queue.findIndex(T)>-1,k=E.snacks.findIndex(T)>-1;if(I||k)return E}return o.handleDisplaySnack(Pr({},E,{queue:[].concat(E.queue,[S])}))}),w},o.handleDisplaySnack=function(i){var a=i.snacks;return a.length>=o.maxSnack?o.handleDismissOldest(i):o.processQueue(i)},o.processQueue=function(i){var a=i.queue,l=i.snacks;return a.length>0?Pr({},i,{snacks:[].concat(l,[a[0]]),queue:a.slice(1,a.length)}):i},o.handleDismissOldest=function(i){if(i.snacks.some(function(f){return!f.open||f.requestClose}))return i;var a=!1,l=!1,u=i.snacks.reduce(function(f,m){return f+(m.open&&m.persist?1:0)},0);u===o.maxSnack&&(l=!0);var d=i.snacks.map(function(f){return!a&&(!f.persist||l)?(a=!0,f.entered?(f.onClose&&f.onClose(null,"maxsnack",f.id),o.props.onClose&&o.props.onClose(null,"maxsnack",f.id),Pr({},f,{open:!1})):Pr({},f,{requestClose:!0})):Pr({},f)});return Pr({},i,{snacks:d})},o.handleEnteredSnack=function(i,a,l){if(!lS(l))throw new Error("handleEnteredSnack Cannot be called with undefined key");o.setState(function(u){var d=u.snacks;return{snacks:d.map(function(f){return f.id===l?Pr({},f,{entered:!0}):Pr({},f)})}})},o.handleCloseSnack=function(i,a,l){o.props.onClose&&o.props.onClose(i,a,l);var u=l===void 0;o.setState(function(d){var f=d.snacks,m=d.queue;return{snacks:f.map(function(g){return!u&&g.id!==l?Pr({},g):g.entered?Pr({},g,{open:!1}):Pr({},g,{requestClose:!0})}),queue:m.filter(function(g){return g.id!==l})}})},o.closeSnackbar=function(i){var a=o.state.snacks.find(function(l){return l.id===i});lS(i)&&a&&a.onClose&&a.onClose(null,"instructed",i),o.handleCloseSnack(null,"instructed",i)},o.handleExitedSnack=function(i,a){if(!lS(a))throw new Error("handleExitedSnack Cannot be called with undefined key");o.setState(function(l){var u=o.processQueue(Pr({},l,{snacks:l.snacks.filter(function(d){return d.id!==a})}));return u.queue.length===0?u:o.handleDismissOldest(u)})},H8=o.enqueueSnackbar,o.closeSnackbar,o.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:o.enqueueSnackbar.bind(R5(o)),closeSnackbar:o.closeSnackbar.bind(R5(o))}},o}var n=t.prototype;return n.render=function(){var o=this,i=this.state.contextValue,a=this.props,l=a.domRoot,u=a.children,d=a.dense,f=d===void 0?!1:d,m=a.Components,g=m===void 0?{}:m,w=a.classes,C=this.state.snacks.reduce(function(E,T){var I,k=FO(T.anchorOrigin),R=E[k]||[];return Pr({},E,(I={},I[k]=[].concat(R,[T]),I))},{}),S=Object.keys(C).map(function(E){var T=C[E],I=T[0];return un.createElement(Oge,{key:E,dense:f,anchorOrigin:I.anchorOrigin,classes:w},T.map(function(k){return un.createElement(Age,{key:k.id,snack:k,classes:w,Component:g[k.variant],onClose:o.handleCloseSnack,onEnter:o.props.onEnter,onExit:o.props.onExit,onExited:Kv([o.handleExitedSnack,o.props.onExited],k.id),onEntered:Kv([o.handleEnteredSnack,o.props.onEntered],k.id)})}))});return un.createElement(uge.Provider,{value:i},u,l?WE.createPortal(S,l):S)},_8(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||nh.maxSnack}}]),t}(b.Component);const Ps=(e,t="success")=>{H8(e,{variant:t,autoHideDuration:2e3})},hn=ko.create({baseURL:"https://nlapi.y2ldev.site"});hn.interceptors.request.use(e=>{const t=M8();return t&&(e.headers.Authorization=`Bearer ${t}`),e});hn.interceptors.response.use(e=>e,async e=>((e.status===400||e.status===401||e.status===500)&&Ps(e.response.data.error||e.response.data.message,"error"),e.response.status===401&&k8(),Promise.reject(e)));var Id=(e=>(e.domains="domains",e.domains_import="domains_import",e.search="search",e.domains_create="domains_create",e.domains_update="domains_update",e.domains_export_confirm="domains_export_confirm",e.domain_detailed="domain_detailed",e))(Id||{});const Pp=e=>{const{name:t,domainId:n}=e;switch(t){case"domains":return"/domains";case"domains_import":return"/domains/import";case"search":return"/domains/search";case"domains_create":return"/domains/create";case"domains_update":return`/domains/${n}/update`;case"domains_export_confirm":return"/domains/export/confirm";case"domain_detailed":return`/domains/${n}`;default:return""}};class x0{static async domains(t){return hn.get(Pp({name:Id.domains}),{params:{_page:t.page}})}static async domain_detailed(t){return hn.get(Pp({name:Id.domain_detailed,domainId:t}))}static async domains_import(t){return hn.post(Pp({name:Id.domains_import}),{file:t.file},{headers:{"Content-Type":"multipart/form-data"}})}static async search(t){return hn.post(Pp({name:Id.search})+`?_page=${t.page}`,{searchValue:t.searchValue,filters:t.filters,sort:t.sort})}static async create(t){return hn.post(Pp({name:Id.domains_create}),t)}static async update(t,n){return hn.post(Pp({name:Id.domains_update,domainId:n}),t)}static async export_confirm(t){return hn.post(Pp({name:Id.domains_export_confirm}),t,{responseType:"blob"})}}const rr=({onClick:e,sx:t,variant:n="contained",to:r,children:o,disabled:i,loading:a,startIcon:l,color:u,className:d=""})=>y.jsx(B0,{className:d,loading:a,sx:t,onClick:e,href:r,disabled:i,variant:n,color:u,startIcon:l,children:o}),U8=Kr(y.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"})),ku=({title:e,onSubmit:t,submitText:n,Trigger:r,children:o,open:i,setOpen:a,withCancel:l,fullWidth:u=!0,maxWidth:d="sm",scroll:f,disabled:m,loading:g,withoutClose:w=!1,submitColor:C,sx:S})=>{const E=()=>a(!1),T=()=>a(!0),I=r&&un.cloneElement(r,{onClick:T});return y.jsxs(un.Fragment,{children:[I,y.jsxs(yQ,{maxWidth:d,scroll:f,fullWidth:u,onClose:w?void 0:E,open:i,slotProps:{paper:{sx:S}},children:[y.jsxs(RQ,{variant:"h5",textAlign:"center",children:[e,!w&&y.jsx(Ur,{className:"custom-dialog-close","aria-label":"close",onClick:E,sx:{position:"absolute",right:8,top:8},children:y.jsx(U8,{})})]}),y.jsx(PQ,{sx:{overflowY:"visible"},children:o}),y.jsxs(CQ,{sx:{padding:"0 24px 16px"},children:[n&&y.jsx(rr,{onClick:t,disabled:m,loading:g,color:C,children:n}),l&&y.jsx(rr,{sx:{mb:"-24px"},variant:"text",onClick:E,children:"Cancel"})]})]})]})},Dge=e=>b.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M9.34268 18.7819L7.41083 18.2642L8.1983 15.3254C7.00919 14.8874 5.91661 14.2498 4.96116 13.4534L2.80783 15.6067L1.39362 14.1925L3.54695 12.0392C2.35581 10.6103 1.52014 8.87466 1.17578 6.96818L3.14386 6.61035C3.90289 10.8126 7.57931 14.0001 12.0002 14.0001C16.4211 14.0001 20.0976 10.8126 20.8566 6.61035L22.8247 6.96818C22.4803 8.87466 21.6446 10.6103 20.4535 12.0392L22.6068 14.1925L21.1926 15.6067L19.0393 13.4534C18.0838 14.2498 16.9912 14.8874 15.8021 15.3254L16.5896 18.2642L14.6578 18.7819L13.87 15.8418C13.2623 15.9459 12.6376 16.0001 12.0002 16.0001C11.3629 16.0001 10.7381 15.9459 10.1305 15.8418L9.34268 18.7819Z"})),Lge=e=>b.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:0,viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fill:"none",d:"M0 0h24v24H0V0z"}),b.createElement("path",{d:"M12 6.5a9.77 9.77 0 0 1 8.82 5.5c-1.65 3.37-5.02 5.5-8.82 5.5S4.83 15.37 3.18 12A9.77 9.77 0 0 1 12 6.5m0-2C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zm0 5a2.5 2.5 0 0 1 0 5 2.5 2.5 0 0 1 0-5m0-2c-2.48 0-4.5 2.02-4.5 4.5s2.02 4.5 4.5 4.5 4.5-2.02 4.5-4.5-2.02-4.5-4.5-4.5z"})),nr=({label:e="",value:t,onChange:n,placeholder:r="",type:o="text",error:i=!1,id:a,name:l,helperText:u,onBlur:d,disabled:f,multiline:m,onChangeValue:g,maxRows:w,minRows:C,startAdornment:S,endAdornment:E,inputSx:T,step:I,min:k,max:R,autoComplete:P=!0,maxLength:O=50,sx:j})=>{const[F,D]=b.useState(!1),_=G=>!!g&&g(G.target.value),$=()=>D(!F),B=o==="password"||o==="new-password",V=B&&F?"text":o,q=()=>y.jsx(Yd,{position:"end",children:y.jsx(Ur,{sx:{svg:{width:"24px"}},"aria-label":F?"hide the password":"display the password",onClick:$,children:F?y.jsx(Dge,{}):y.jsx(Lge,{})})});return y.jsx(rf,{sx:j,label:e,size:"small",id:a,name:l,type:V,placeholder:r,value:t,onChange:g?_:n,onBlur:d,error:i,helperText:u,disabled:f,multiline:m,maxRows:w,minRows:C,slotProps:{htmlInput:{step:I,min:k,max:R,maxLength:O},input:{autoComplete:P?"on":"off",sx:T,startAdornment:S,endAdornment:B?y.jsx(q,{}):E}}})};var mP={exports:{}},gP={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var U5;function $ge(){if(U5)return gP;U5=1;var e=F0();function t(u,d){return u===d&&(u!==0||1/u===1/d)||u!==u&&d!==d}var n=typeof Object.is=="function"?Object.is:t,r=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,a=e.useMemo,l=e.useDebugValue;return gP.useSyncExternalStoreWithSelector=function(u,d,f,m,g){var w=o(null);if(w.current===null){var C={hasValue:!1,value:null};w.current=C}else C=w.current;w=a(function(){function E(P){if(!T){if(T=!0,I=P,P=m(P),g!==void 0&&C.hasValue){var O=C.value;if(g(O,P))return k=O}return k=P}if(O=k,n(I,P))return O;var j=m(P);return g!==void 0&&g(O,j)?(I=P,O):(I=P,k=j)}var T=!1,I,k,R=f===void 0?null:f;return[function(){return E(d())},R===null?void 0:function(){return E(R())}]},[d,f,m,g]);var S=r(u,w[0],w[1]);return i(function(){C.hasValue=!0,C.value=S},[S]),l(S),S},gP}var G5;function jge(){return G5||(G5=1,mP.exports=$ge()),mP.exports}var Fge=jge();function Nge(e){e()}function zge(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Nge(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var V5={notify(){},get:()=>[]};function Bge(e,t){let n,r=V5,o=0,i=!1;function a(S){f();const E=r.subscribe(S);let T=!1;return()=>{T||(T=!0,E(),m())}}function l(){r.notify()}function u(){C.onStateChange&&C.onStateChange()}function d(){return i}function f(){o++,n||(n=e.subscribe(u),r=zge())}function m(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=V5)}function g(){i||(i=!0,f())}function w(){i&&(i=!1,m())}const C={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:u,isSubscribed:d,trySubscribe:g,tryUnsubscribe:w,getListeners:()=>r};return C}var Hge=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Uge=Hge(),Gge=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Vge=Gge(),Wge=()=>Uge||Vge?b.useLayoutEffect:b.useEffect,qge=Wge(),bP=Symbol.for("react-redux-context"),yP=typeof globalThis<"u"?globalThis:{};function Yge(){if(!b.createContext)return{};const e=yP[bP]??(yP[bP]=new Map);let t=e.get(b.createContext);return t||(t=b.createContext(null),e.set(b.createContext,t)),t}var Xd=Yge();function Kge(e){const{children:t,context:n,serverState:r,store:o}=e,i=b.useMemo(()=>{const u=Bge(o);return{store:o,subscription:u,getServerState:r?()=>r:void 0}},[o,r]),a=b.useMemo(()=>o.getState(),[o]);qge(()=>{const{subscription:u}=i;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==o.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[i,a]);const l=n||Xd;return b.createElement(l.Provider,{value:i},t)}var Xge=Kge;function zO(e=Xd){return function(){return b.useContext(e)}}var G8=zO();function V8(e=Xd){const t=e===Xd?G8:zO(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var W8=V8();function Zge(e=Xd){const t=e===Xd?W8:V8(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Qge=Zge(),Jge=(e,t)=>e===t;function e0e(e=Xd){const t=e===Xd?G8:zO(e),n=(r,o={})=>{const{equalityFn:i=Jge}=typeof o=="function"?{equalityFn:o}:o,a=t(),{store:l,subscription:u,getServerState:d}=a;b.useRef(!0);const f=b.useCallback({[r.name](g){return r(g)}}[r.name],[r]),m=Fge.useSyncExternalStoreWithSelector(u.addNestedSub,l.getState,d||l.getState,f,i);return b.useDebugValue(m),m};return Object.assign(n,{withTypes:()=>n}),n}var t0e=e0e();const so=Qge.withTypes(),xt=t0e.withTypes();W8.withTypes();var CA=(e=>(e.market_search="market_search",e.domain_detailed="domain_detailed",e))(CA||{});const W5=e=>{const{name:t,domainId:n}=e;switch(t){case"market_search":return"/market/search";case"domain_detailed":return`/market/domains/${n}`;default:return""}};class q8{static async market_search(t){return hn.post(W5({name:CA.market_search})+`?_page=${t.page}`,{searchValue:t.searchValue,filters:t.filters,sort:t.sort})}static async domain_detailed(t){return hn.post(W5({name:CA.domain_detailed,domainId:t}))}}function di(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var n0e=typeof Symbol=="function"&&Symbol.observable||"@@observable",q5=n0e,vP=()=>Math.random().toString(36).substring(7).split("").join("."),r0e={INIT:`@@redux/INIT${vP()}`,REPLACE:`@@redux/REPLACE${vP()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${vP()}`},_2=r0e;function BO(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Y8(e,t,n){if(typeof e!="function")throw new Error(di(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(di(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(di(1));return n(Y8)(e,t)}let r=e,o=t,i=new Map,a=i,l=0,u=!1;function d(){a===i&&(a=new Map,i.forEach((E,T)=>{a.set(T,E)}))}function f(){if(u)throw new Error(di(3));return o}function m(E){if(typeof E!="function")throw new Error(di(4));if(u)throw new Error(di(5));let T=!0;d();const I=l++;return a.set(I,E),function(){if(T){if(u)throw new Error(di(6));T=!1,d(),a.delete(I),i=null}}}function g(E){if(!BO(E))throw new Error(di(7));if(typeof E.type>"u")throw new Error(di(8));if(typeof E.type!="string")throw new Error(di(17));if(u)throw new Error(di(9));try{u=!0,o=r(o,E)}finally{u=!1}return(i=a).forEach(I=>{I()}),E}function w(E){if(typeof E!="function")throw new Error(di(10));r=E,g({type:_2.REPLACE})}function C(){const E=m;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(di(11));function I(){const R=T;R.next&&R.next(f())}return I(),{unsubscribe:E(I)}},[q5](){return this}}}return g({type:_2.INIT}),{dispatch:g,subscribe:m,getState:f,replaceReducer:w,[q5]:C}}function o0e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:_2.INIT})>"u")throw new Error(di(12));if(typeof n(void 0,{type:_2.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(di(13))})}function K8(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let o;try{o0e(n)}catch(i){o=i}return function(a={},l){if(o)throw o;let u=!1;const d={};for(let f=0;f<r.length;f++){const m=r[f],g=n[m],w=a[m],C=g(w,l);if(typeof C>"u")throw l&&l.type,new Error(di(14));d[m]=C,u=u||C!==w}return u=u||r.length!==Object.keys(a).length,u?d:a}}function D2(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function i0e(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(di(15))};const a={getState:o.getState,dispatch:(u,...d)=>i(u,...d)},l=e.map(u=>u(a));return i=D2(...l)(o.dispatch),{...o,dispatch:i}}}function a0e(e){return BO(e)&&"type"in e&&typeof e.type=="string"}var X8=Symbol.for("immer-nothing"),Y5=Symbol.for("immer-draftable"),Xa=Symbol.for("immer-state");function sl(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var w0=Object.getPrototypeOf;function yh(e){return!!e&&!!e[Xa]}function gu(e){var t;return e?Z8(e)||Array.isArray(e)||!!e[Y5]||!!((t=e.constructor)!=null&&t[Y5])||PT(e)||IT(e):!1}var s0e=Object.prototype.constructor.toString();function Z8(e){if(!e||typeof e!="object")return!1;const t=w0(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===s0e}function L2(e,t){kT(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function kT(e){const t=e[Xa];return t?t.type_:Array.isArray(e)?1:PT(e)?2:IT(e)?3:0}function SA(e,t){return kT(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Q8(e,t,n){const r=kT(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function l0e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function PT(e){return e instanceof Map}function IT(e){return e instanceof Set}function Dp(e){return e.copy_||e.base_}function EA(e,t){if(PT(e))return new Map(e);if(IT(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Z8(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Xa];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],l=r[a];l.writable===!1&&(l.writable=!0,l.configurable=!0),(l.get||l.set)&&(r[a]={configurable:!0,writable:!0,enumerable:l.enumerable,value:e[a]})}return Object.create(w0(e),r)}else{const r=w0(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function HO(e,t=!1){return AT(e)||yh(e)||!gu(e)||(kT(e)>1&&(e.set=e.add=e.clear=e.delete=c0e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>HO(r,!0))),e}function c0e(){sl(2)}function AT(e){return Object.isFrozen(e)}var u0e={};function vh(e){const t=u0e[e];return t||sl(0,e),t}var hx;function J8(){return hx}function d0e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function K5(e,t){t&&(vh("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function TA(e){MA(e),e.drafts_.forEach(f0e),e.drafts_=null}function MA(e){e===hx&&(hx=e.parent_)}function X5(e){return hx=d0e(hx,e)}function f0e(e){const t=e[Xa];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Z5(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Xa].modified_&&(TA(t),sl(4)),gu(e)&&(e=$2(t,e),t.parent_||j2(t,e)),t.patches_&&vh("Patches").generateReplacementPatches_(n[Xa].base_,e,t.patches_,t.inversePatches_)):e=$2(t,n,[]),TA(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==X8?e:void 0}function $2(e,t,n){if(AT(t))return t;const r=t[Xa];if(!r)return L2(t,(o,i)=>Q5(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return j2(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),L2(i,(l,u)=>Q5(e,r,o,l,u,n,a)),j2(e,o,!1),n&&e.patches_&&vh("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function Q5(e,t,n,r,o,i,a){if(yh(o)){const l=i&&t&&t.type_!==3&&!SA(t.assigned_,r)?i.concat(r):void 0,u=$2(e,o,l);if(Q8(n,r,u),yh(u))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(gu(o)&&!AT(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;$2(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&j2(e,o)}}function j2(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&HO(t,n)}function p0e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:J8(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=UO;n&&(o=[r],i=mx);const{revoke:a,proxy:l}=Proxy.revocable(o,i);return r.draft_=l,r.revoke_=a,l}var UO={get(e,t){if(t===Xa)return e;const n=Dp(e);if(!SA(n,t))return h0e(e,n,t);const r=n[t];return e.finalized_||!gu(r)?r:r===xP(e.base_,t)?(wP(e),e.copy_[t]=PA(r,e)):r},has(e,t){return t in Dp(e)},ownKeys(e){return Reflect.ownKeys(Dp(e))},set(e,t,n){const r=ez(Dp(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=xP(Dp(e),t),i=o==null?void 0:o[Xa];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(l0e(n,o)&&(n!==void 0||SA(e.base_,t)))return!0;wP(e),kA(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return xP(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,wP(e),kA(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Dp(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){sl(11)},getPrototypeOf(e){return w0(e.base_)},setPrototypeOf(){sl(12)}},mx={};L2(UO,(e,t)=>{mx[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});mx.deleteProperty=function(e,t){return mx.set.call(this,e,t,void 0)};mx.set=function(e,t,n){return UO.set.call(this,e[0],t,n,e[0])};function xP(e,t){const n=e[Xa];return(n?Dp(n):e)[t]}function h0e(e,t,n){var o;const r=ez(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function ez(e,t){if(!(t in e))return;let n=w0(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=w0(n)}}function kA(e){e.modified_||(e.modified_=!0,e.parent_&&kA(e.parent_))}function wP(e){e.copy_||(e.copy_=EA(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var m0e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(u=i,...d){return a.produce(u,f=>n.call(this,f,...d))}}typeof n!="function"&&sl(6),r!==void 0&&typeof r!="function"&&sl(7);let o;if(gu(t)){const i=X5(this),a=PA(t,void 0);let l=!0;try{o=n(a),l=!1}finally{l?TA(i):MA(i)}return K5(i,r),Z5(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===X8&&(o=void 0),this.autoFreeze_&&HO(o,!0),r){const i=[],a=[];vh("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else sl(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...l)=>this.produceWithPatches(a,u=>t(u,...l));let r,o;return[this.produce(t,n,(a,l)=>{r=a,o=l}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){gu(e)||sl(8),yh(e)&&(e=g0e(e));const t=X5(this),n=PA(e,void 0);return n[Xa].isManual_=!0,MA(t),n}finishDraft(e,t){const n=e&&e[Xa];(!n||!n.isManual_)&&sl(9);const{scope_:r}=n;return K5(r,t),Z5(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=vh("Patches").applyPatches_;return yh(e)?r(e,t):this.produce(e,o=>r(o,t))}};function PA(e,t){const n=PT(e)?vh("MapSet").proxyMap_(e,t):IT(e)?vh("MapSet").proxySet_(e,t):p0e(e,t);return(t?t.scope_:J8()).drafts_.push(n),n}function g0e(e){return yh(e)||sl(10,e),tz(e)}function tz(e){if(!gu(e)||AT(e))return e;const t=e[Xa];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=EA(e,t.scope_.immer_.useStrictShallowCopy_)}else n=EA(e,!0);return L2(n,(r,o)=>{Q8(n,r,tz(o))}),t&&(t.finalized_=!1),n}var Za=new m0e,nz=Za.produce;Za.produceWithPatches.bind(Za);Za.setAutoFreeze.bind(Za);Za.setUseStrictShallowCopy.bind(Za);Za.applyPatches.bind(Za);Za.createDraft.bind(Za);Za.finishDraft.bind(Za);function rz(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var b0e=rz(),y0e=rz,v0e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?D2:D2.apply(null,arguments)},x0e=e=>e&&typeof e.match=="function";function Xv(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(uu(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>a0e(r)&&r.type===e,n}var oz=class _v extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,_v.prototype)}static get[Symbol.species](){return _v}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new _v(...t[0].concat(this)):new _v(...t.concat(this))}};function J5(e){return gu(e)?nz(e,()=>{}):e}function hS(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function w0e(e){return typeof e=="boolean"}var C0e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new oz;return n&&(w0e(n)?a.push(b0e):a.push(y0e(n.extraArgument))),a},S0e="RTK_autoBatch",eL=e=>t=>{setTimeout(t,e)},E0e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const l=new Set,u=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:eL(10):e.type==="callback"?e.queueNotification:eL(e.timeout),d=()=>{a=!1,i&&(i=!1,l.forEach(f=>f()))};return Object.assign({},r,{subscribe(f){const m=()=>o&&f(),g=r.subscribe(m);return l.add(f),()=>{g(),l.delete(f)}},dispatch(f){var m;try{return o=!((m=f==null?void 0:f.meta)!=null&&m[S0e]),i=!o,i&&(a||(a=!0,u(d))),r.dispatch(f)}finally{o=!0}}})},T0e=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new oz(e);return r&&o.push(E0e(typeof r=="object"?r:void 0)),o};function M0e(e){const t=C0e(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(BO(n))l=K8(n);else throw new Error(uu(1));let u;typeof r=="function"?u=r(t):u=t();let d=D2;o&&(d=v0e({trace:!1,...typeof o=="object"&&o}));const f=i0e(...u),m=T0e(f);let g=typeof a=="function"?a(m):m();const w=d(...g);return Y8(l,i,w)}function iz(e){const t={},n=[];let r;const o={addCase(i,a){const l=typeof i=="string"?i:i.type;if(!l)throw new Error(uu(28));if(l in t)throw new Error(uu(29));return t[l]=a,o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function k0e(e){return typeof e=="function"}function P0e(e,t){let[n,r,o]=iz(t),i;if(k0e(e))i=()=>J5(e());else{const l=J5(e);i=()=>l}function a(l=i(),u){let d=[n[u.type],...r.filter(({matcher:f})=>f(u)).map(({reducer:f})=>f)];return d.filter(f=>!!f).length===0&&(d=[o]),d.reduce((f,m)=>{if(m)if(yh(f)){const w=m(f,u);return w===void 0?f:w}else{if(gu(f))return nz(f,g=>m(g,u));{const g=m(f,u);if(g===void 0){if(f===null)return f;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return f},l)}return a.getInitialState=i,a}var I0e=(e,t)=>x0e(e)?e.match(t):e(t);function A0e(...e){return t=>e.some(n=>I0e(n,t))}var R0e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",O0e=(e=21)=>{let t="",n=e;for(;n--;)t+=R0e[Math.random()*64|0];return t},_0e=["name","message","stack","code"],CP=class{constructor(e,t){Tp(this,"_type");this.payload=e,this.meta=t}},tL=class{constructor(e,t){Tp(this,"_type");this.payload=e,this.meta=t}},D0e=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of _0e)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},nL="External signal was aborted",ni=(()=>{function e(t,n,r){const o=Xv(t+"/fulfilled",(u,d,f,m)=>({payload:u,meta:{...m||{},arg:f,requestId:d,requestStatus:"fulfilled"}})),i=Xv(t+"/pending",(u,d,f)=>({payload:void 0,meta:{...f||{},arg:d,requestId:u,requestStatus:"pending"}})),a=Xv(t+"/rejected",(u,d,f,m,g)=>({payload:m,error:(r&&r.serializeError||D0e)(u||"Rejected"),meta:{...g||{},arg:f,requestId:d,rejectedWithValue:!!m,requestStatus:"rejected",aborted:(u==null?void 0:u.name)==="AbortError",condition:(u==null?void 0:u.name)==="ConditionError"}}));function l(u,{signal:d}={}){return(f,m,g)=>{const w=r!=null&&r.idGenerator?r.idGenerator(u):O0e(),C=new AbortController;let S,E;function T(k){E=k,C.abort()}d&&(d.aborted?T(nL):d.addEventListener("abort",()=>T(nL),{once:!0}));const I=async function(){var P,O;let k;try{let j=(P=r==null?void 0:r.condition)==null?void 0:P.call(r,u,{getState:m,extra:g});if($0e(j)&&(j=await j),j===!1||C.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const F=new Promise((D,_)=>{S=()=>{_({name:"AbortError",message:E||"Aborted"})},C.signal.addEventListener("abort",S)});f(i(w,u,(O=r==null?void 0:r.getPendingMeta)==null?void 0:O.call(r,{requestId:w,arg:u},{getState:m,extra:g}))),k=await Promise.race([F,Promise.resolve(n(u,{dispatch:f,getState:m,extra:g,requestId:w,signal:C.signal,abort:T,rejectWithValue:(D,_)=>new CP(D,_),fulfillWithValue:(D,_)=>new tL(D,_)})).then(D=>{if(D instanceof CP)throw D;return D instanceof tL?o(D.payload,w,u,D.meta):o(D,w,u)})])}catch(j){k=j instanceof CP?a(null,w,u,j.payload,j.meta):a(j,w,u)}finally{S&&C.signal.removeEventListener("abort",S)}return r&&!r.dispatchConditionRejection&&a.match(k)&&k.meta.condition||f(k),k}();return Object.assign(I,{abort:T,requestId:w,arg:u,unwrap(){return I.then(L0e)}})}}return Object.assign(l,{pending:i,rejected:a,fulfilled:o,settled:A0e(a,o),typePrefix:t})}return e.withTypes=()=>e,e})();function L0e(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function $0e(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var j0e=Symbol.for("rtk-slice-createasyncthunk");function F0e(e,t){return`${e}/${t}`}function N0e({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[j0e];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(uu(11));const l=(typeof o.reducers=="function"?o.reducers(B0e()):o.reducers)||{},u=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(R,P){const O=typeof R=="string"?R:R.type;if(!O)throw new Error(uu(12));if(O in d.sliceCaseReducersByType)throw new Error(uu(13));return d.sliceCaseReducersByType[O]=P,f},addMatcher(R,P){return d.sliceMatchers.push({matcher:R,reducer:P}),f},exposeAction(R,P){return d.actionCreators[R]=P,f},exposeCaseReducer(R,P){return d.sliceCaseReducersByName[R]=P,f}};u.forEach(R=>{const P=l[R],O={reducerName:R,type:F0e(i,R),createNotation:typeof o.reducers=="function"};U0e(P)?V0e(O,P,f,t):H0e(O,P,f)});function m(){const[R={},P=[],O=void 0]=typeof o.extraReducers=="function"?iz(o.extraReducers):[o.extraReducers],j={...R,...d.sliceCaseReducersByType};return P0e(o.initialState,F=>{for(let D in j)F.addCase(D,j[D]);for(let D of d.sliceMatchers)F.addMatcher(D.matcher,D.reducer);for(let D of P)F.addMatcher(D.matcher,D.reducer);O&&F.addDefaultCase(O)})}const g=R=>R,w=new Map,C=new WeakMap;let S;function E(R,P){return S||(S=m()),S(R,P)}function T(){return S||(S=m()),S.getInitialState()}function I(R,P=!1){function O(F){let D=F[R];return typeof D>"u"&&P&&(D=hS(C,O,T)),D}function j(F=g){const D=hS(w,P,()=>new WeakMap);return hS(D,F,()=>{const _={};for(const[$,B]of Object.entries(o.selectors??{}))_[$]=z0e(B,F,()=>hS(C,F,T),P);return _})}return{reducerPath:R,getSelectors:j,get selectors(){return j(O)},selectSlice:O}}const k={name:i,reducer:E,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:T,...I(a),injectInto(R,{reducerPath:P,...O}={}){const j=P??a;return R.inject({reducerPath:j,reducer:E},O),{...k,...I(j,!0)}}};return k}}function z0e(e,t,n,r){function o(i,...a){let l=t(i);return typeof l>"u"&&r&&(l=n()),e(l,...a)}return o.unwrapped=e,o}var Mh=N0e();function B0e(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function H0e({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!G0e(r))throw new Error(uu(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?Xv(e,a):Xv(e))}function U0e(e){return e._reducerDefinitionType==="asyncThunk"}function G0e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function V0e({type:e,reducerName:t},n,r,o){if(!o)throw new Error(uu(18));const{payloadCreator:i,fulfilled:a,pending:l,rejected:u,settled:d,options:f}=n,m=o(e,i,f);r.exposeAction(t,m),a&&r.addCase(m.fulfilled,a),l&&r.addCase(m.pending,l),u&&r.addCase(m.rejected,u),d&&r.addMatcher(m.settled,d),r.exposeCaseReducer(t,{fulfilled:a||mS,pending:l||mS,rejected:u||mS,settled:d||mS})}function mS(){}function uu(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const F2=ni("fetchDomainsSearch",async({searchValue:e,page:t,filters:n,sort:r})=>(await x0.search({searchValue:e,page:t,filters:n,sort:r})).data),IA=ni("fetchCustomerDomainsSearch",async({searchValue:e,page:t,filters:n,sort:r})=>(await q8.market_search({searchValue:e,page:t,filters:n,sort:r})).data),AA=ni("fetchDomainDetailed",async({domainId:e})=>(await x0.domain_detailed(e)).data),RA=ni("fetchCustomerDomainDetailed",async({domainId:e})=>(await q8.domain_detailed(e)).data),W0e={domains:{data:[],pagination:{},isLoading:!1},paginationModel:e1,filters:{},search:"",sort:"",detailed:{data:{},isLoading:!1}},az=Mh({name:"domainsSlice",initialState:W0e,reducers:{setPaginationModel:(e,t)=>{e.paginationModel=t.payload},setFilters:(e,t)=>{e.filters=t.payload},setSearch:(e,t)=>{e.search=t.payload},setSort:(e,t)=>{e.sort=t.payload}},extraReducers:e=>{e.addCase(F2.pending,t=>{t.domains.isLoading=!0}).addCase(F2.fulfilled,(t,n)=>{t.domains.data=n.payload.data,t.domains.pagination=n.payload.pagination,t.domains.isLoading=!1}),e.addCase(IA.pending,t=>{t.domains.isLoading=!0}).addCase(IA.fulfilled,(t,n)=>{t.domains.data=n.payload.data,t.domains.pagination=n.payload.pagination,t.domains.isLoading=!1}),e.addCase(AA.pending,t=>{t.detailed.isLoading=!0}).addCase(AA.fulfilled,(t,n)=>{t.detailed.data=n.payload,t.detailed.isLoading=!1}),e.addCase(RA.pending,t=>{t.detailed.isLoading=!0}).addCase(RA.fulfilled,(t,n)=>{t.detailed.data=n.payload,t.detailed.isLoading=!1})}}),sz=bn([e=>e.domainsState.domains],e=>e.data),RT=bn([e=>e.domainsState.domains],e=>e.pagination),lz=bn([e=>e.domainsState.domains],e=>e.isLoading),i1=bn([e=>e.domainsState],e=>e.search),OT=bn([e=>e.domainsState],e=>e.filters),_T=bn([e=>e.domainsState],e=>e.sort),cz=bn([e=>e.domainsState],e=>e.paginationModel),sf=bn([e=>e.domainsState.detailed],e=>e.data);bn([e=>e.domainsState.detailed],e=>e.isLoading);const{setPaginationModel:N2,setFilters:rL,setSearch:C0,setSort:uz}=az.actions,q0e=az.reducer;var Ad=(e=>(e.resources_countries="resources_countries",e.resources_languages="resources_languages",e.resources_metrics="resources_metrics",e.resources_categories="resources_categories",e.resources_niches="resources_niches",e.resources_filter_admin="resources_filter_admin",e.resources_filter_users="resources_filter_users",e))(Ad||{});const Ip=e=>{const{name:t}=e;switch(t){case"resources_countries":return"/resources/countries";case"resources_languages":return"/resources/languages";case"resources_metrics":return"/resources/metrics";case"resources_categories":return"/resources/categories";case"resources_niches":return"/resources/niches";case"resources_filter_admin":return"/resources/filter/admin";case"resources_filter_users":return"/resources/filter/users";default:return""}};class kh{static async resources_countries(){return hn.get(Ip({name:Ad.resources_countries}))}static async resources_languages(){return hn.get(Ip({name:Ad.resources_languages}))}static async resources_metrics(){return hn.get(Ip({name:Ad.resources_metrics}))}static async resources_categories(){return hn.get(Ip({name:Ad.resources_categories}))}static async resources_niches(){return hn.get(Ip({name:Ad.resources_niches}))}static async resources_filter_admin(){return hn.get(Ip({name:Ad.resources_filter_admin}))}static async resources_filter_users(){return hn.get(Ip({name:Ad.resources_filter_users}))}}const z2=ni("fetchResourcesCountries",async()=>(await kh.resources_countries()).data),gx=ni("fetchResourcesLanguages",async()=>(await kh.resources_languages()).data),oL=ni("fetchResourcesMetrics",async()=>(await kh.resources_metrics()).data),B2=ni("fetchResourcesCategories",async()=>(await kh.resources_categories()).data),OA=ni("fetchResourcesFilterAdmin",async()=>(await kh.resources_filter_admin()).data),_A=ni("fetchResourcesFilterUsers",async()=>(await kh.resources_filter_users()).data),H2=ni("fetchResourcesNiches",async()=>(await kh.resources_niches()).data,{condition:(e,{getState:t})=>{const{resourcesState:n}=t();return n.resources_niches.data.length===0}}),Y0e={resources_countries:{data:[],isLoading:!1},resources_languages:{data:[],isLoading:!1},resources_metrics:{data:[],isLoading:!1},resources_categories:{data:[],isLoading:!1},resources_niches:{data:[],isLoading:!1},resources_filter:{data:{},isLoading:!1}},K0e=Mh({name:"domainsSlice",initialState:Y0e,reducers:{},extraReducers:e=>{e.addCase(z2.pending,t=>{t.resources_countries.isLoading=!0}).addCase(z2.fulfilled,(t,n)=>{t.resources_countries.data=n.payload,t.resources_countries.isLoading=!1}),e.addCase(gx.pending,t=>{t.resources_languages.isLoading=!0}).addCase(gx.fulfilled,(t,n)=>{t.resources_languages.data=n.payload,t.resources_languages.isLoading=!1}),e.addCase(oL.pending,t=>{t.resources_metrics.isLoading=!0}).addCase(oL.fulfilled,(t,n)=>{t.resources_metrics.data=n.payload,t.resources_metrics.isLoading=!1}),e.addCase(B2.pending,t=>{t.resources_categories.isLoading=!0}).addCase(B2.fulfilled,(t,n)=>{t.resources_categories.data=n.payload,t.resources_categories.isLoading=!1}),e.addCase(H2.pending,t=>{t.resources_niches.isLoading=!0}).addCase(H2.fulfilled,(t,n)=>{t.resources_niches.data=n.payload,t.resources_niches.isLoading=!1}),e.addCase(OA.pending,t=>{t.resources_filter.isLoading=!0}).addCase(OA.fulfilled,(t,n)=>{t.resources_filter.data=n.payload,t.resources_filter.isLoading=!1}),e.addCase(_A.pending,t=>{t.resources_filter.isLoading=!0}).addCase(_A.fulfilled,(t,n)=>{t.resources_filter.data=n.payload,t.resources_filter.isLoading=!1})}}),DT=bn([e=>e.resourcesState.resources_categories],e=>e.data);bn([e=>e.resourcesState.resources_categories],e=>e.isLoading);const LT=bn([e=>e.resourcesState.resources_countries],e=>e.data);bn([e=>e.resourcesState.resources_countries],e=>e.isLoading);const a1=bn([e=>e.resourcesState.resources_languages],e=>e.data);bn([e=>e.resourcesState.resources_languages],e=>e.isLoading);bn([e=>e.resourcesState.resources_metrics],e=>e.data);bn([e=>e.resourcesState.resources_metrics],e=>e.isLoading);const dz=bn([e=>e.resourcesState.resources_niches],e=>e.data),fz=bn([dz],e=>e==null?void 0:e.map(t=>({value:t.id,label:t.displayName})));bn([e=>e.resourcesState.resources_niches],e=>e.isLoading);const X0e=bn([e=>e.resourcesState.resources_filter],e=>e.data),Z0e=bn([e=>e.resourcesState.resources_filter],e=>e.isLoading),Q0e=K0e.reducer;var SP,iL;function J0e(){if(iL)return SP;iL=1;function e(T){this._maxSize=T,this.clear()}e.prototype.clear=function(){this._size=0,this._values=Object.create(null)},e.prototype.get=function(T){return this._values[T]},e.prototype.set=function(T,I){return this._size>=this._maxSize&&this.clear(),T in this._values||this._size++,this._values[T]=I};var t=/[^.^\]^[]+|(?=\[\]|\.\.)/g,n=/^\d+$/,r=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,a=512,l=new e(a),u=new e(a),d=new e(a);SP={Cache:e,split:m,normalizePath:f,setter:function(T){var I=f(T);return u.get(T)||u.set(T,function(R,P){for(var O=0,j=I.length,F=R;O<j-1;){var D=I[O];if(D==="__proto__"||D==="constructor"||D==="prototype")return R;F=F[I[O++]]}F[I[O]]=P})},getter:function(T,I){var k=f(T);return d.get(T)||d.set(T,function(P){for(var O=0,j=k.length;O<j;)if(P!=null||!I)P=P[k[O++]];else return;return P})},join:function(T){return T.reduce(function(I,k){return I+(w(k)||n.test(k)?"["+k+"]":(I?".":"")+k)},"")},forEach:function(T,I,k){g(Array.isArray(T)?T:m(T),I,k)}};function f(T){return l.get(T)||l.set(T,m(T).map(function(I){return I.replace(i,"$2")}))}function m(T){return T.match(t)||[""]}function g(T,I,k){var R=T.length,P,O,j,F;for(O=0;O<R;O++)P=T[O],P&&(E(P)&&(P='"'+P+'"'),F=w(P),j=!F&&/^\d+$/.test(P),I.call(k,P,F,j,O,T))}function w(T){return typeof T=="string"&&T&&["'",'"'].indexOf(T.charAt(0))!==-1}function C(T){return T.match(r)&&!T.match(n)}function S(T){return o.test(T)}function E(T){return!w(T)&&(C(T)||S(T))}return SP}var rh=J0e(),EP,aL;function ebe(){if(aL)return EP;aL=1;const e=/[A-Z\xc0-\xd6\xd8-\xde]?[a-z\xdf-\xf6\xf8-\xff]+(?:['’](?:d|ll|m|re|s|t|ve))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde]|$)|(?:[A-Z\xc0-\xd6\xd8-\xde]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=[\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000]|[A-Z\xc0-\xd6\xd8-\xde](?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])|$)|[A-Z\xc0-\xd6\xd8-\xde]?(?:[a-z\xdf-\xf6\xf8-\xff]|[^\ud800-\udfff\xac\xb1\xd7\xf7\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\xbf\u2000-\u206f \t\x0b\f\xa0\ufeff\n\r\u2028\u2029\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\d+\u2700-\u27bfa-z\xdf-\xf6\xf8-\xffA-Z\xc0-\xd6\xd8-\xde])+(?:['’](?:d|ll|m|re|s|t|ve))?|[A-Z\xc0-\xd6\xd8-\xde]+(?:['’](?:D|LL|M|RE|S|T|VE))?|\d*(?:1ST|2ND|3RD|(?![123])\dTH)(?=\b|[a-z_])|\d*(?:1st|2nd|3rd|(?![123])\dth)(?=\b|[A-Z_])|\d+|(?:[\u2700-\u27bf]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?(?:\u200d(?:[^\ud800-\udfff]|(?:\ud83c[\udde6-\uddff]){2}|[\ud800-\udbff][\udc00-\udfff])[\ufe0e\ufe0f]?(?:[\u0300-\u036f\ufe20-\ufe2f\u20d0-\u20ff]|\ud83c[\udffb-\udfff])?)*/g,t=f=>f.match(e)||[],n=f=>f[0].toUpperCase()+f.slice(1),r=(f,m)=>t(f).join(m).toLowerCase(),o=f=>t(f).reduce((m,g)=>`${m}${m?g[0].toUpperCase()+g.slice(1).toLowerCase():g.toLowerCase()}`,"");return EP={words:t,upperFirst:n,camelCase:o,pascalCase:f=>n(o(f)),snakeCase:f=>r(f,"_"),kebabCase:f=>r(f,"-"),sentenceCase:f=>n(r(f," ")),titleCase:f=>t(f).map(n).join(" ")},EP}var TP=ebe(),gS={exports:{}},sL;function tbe(){if(sL)return gS.exports;sL=1,gS.exports=function(o){return e(t(o),o)},gS.exports.array=e;function e(o,i){var a=o.length,l=new Array(a),u={},d=a,f=n(i),m=r(o);for(i.forEach(function(w){if(!m.has(w[0])||!m.has(w[1]))throw new Error("Unknown node. There is an unknown node in the supplied edges.")});d--;)u[d]||g(o[d],d,new Set);return l;function g(w,C,S){if(S.has(w)){var E;try{E=", node was:"+JSON.stringify(w)}catch{E=""}throw new Error("Cyclic dependency"+E)}if(!m.has(w))throw new Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(w));if(!u[C]){u[C]=!0;var T=f.get(w)||new Set;if(T=Array.from(T),C=T.length){S.add(w);do{var I=T[--C];g(I,m.get(I),S)}while(C);S.delete(w)}l[--a]=w}}}function t(o){for(var i=new Set,a=0,l=o.length;a<l;a++){var u=o[a];i.add(u[0]),i.add(u[1])}return Array.from(i)}function n(o){for(var i=new Map,a=0,l=o.length;a<l;a++){var u=o[a];i.has(u[0])||i.set(u[0],new Set),i.has(u[1])||i.set(u[1],new Set),i.get(u[0]).add(u[1])}return i}function r(o){for(var i=new Map,a=0,l=o.length;a<l;a++)i.set(o[a],a);return i}return gS.exports}var nbe=tbe();const rbe=wu(nbe),obe=Object.prototype.toString,ibe=Error.prototype.toString,abe=RegExp.prototype.toString,sbe=typeof Symbol<"u"?Symbol.prototype.toString:()=>"",lbe=/^Symbol\((.*)\)(.*)$/;function cbe(e){return e!=+e?"NaN":e===0&&1/e<0?"-0":""+e}function lL(e,t=!1){if(e==null||e===!0||e===!1)return""+e;const n=typeof e;if(n==="number")return cbe(e);if(n==="string")return t?`"${e}"`:e;if(n==="function")return"[Function "+(e.name||"anonymous")+"]";if(n==="symbol")return sbe.call(e).replace(lbe,"Symbol($1)");const r=obe.call(e).slice(8,-1);return r==="Date"?isNaN(e.getTime())?""+e:e.toISOString(e):r==="Error"||e instanceof Error?"["+ibe.call(e)+"]":r==="RegExp"?abe.call(e):null}function Ud(e,t){let n=lL(e,t);return n!==null?n:JSON.stringify(e,function(r,o){let i=lL(this[r],t);return i!==null?i:o},2)}function pz(e){return e==null?[]:[].concat(e)}let hz,mz,gz,ube=/\$\{\s*(\w+)\s*\}/g;hz=Symbol.toStringTag;class cL{constructor(t,n,r,o){this.name=void 0,this.message=void 0,this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=void 0,this.inner=void 0,this[hz]="Error",this.name="ValidationError",this.value=n,this.path=r,this.type=o,this.errors=[],this.inner=[],pz(t).forEach(i=>{if(ba.isError(i)){this.errors.push(...i.errors);const a=i.inner.length?i.inner:[i];this.inner.push(...a)}else this.errors.push(i)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0]}}mz=Symbol.hasInstance;gz=Symbol.toStringTag;class ba extends Error{static formatError(t,n){const r=n.label||n.path||"this";return n=Object.assign({},n,{path:r,originalPath:n.path}),typeof t=="string"?t.replace(ube,(o,i)=>Ud(n[i])):typeof t=="function"?t(n):t}static isError(t){return t&&t.name==="ValidationError"}constructor(t,n,r,o,i){const a=new cL(t,n,r,o);if(i)return a;super(),this.value=void 0,this.path=void 0,this.type=void 0,this.params=void 0,this.errors=[],this.inner=[],this[gz]="Error",this.name=a.name,this.message=a.message,this.type=a.type,this.value=a.value,this.path=a.path,this.errors=a.errors,this.inner=a.inner,Error.captureStackTrace&&Error.captureStackTrace(this,ba)}static[mz](t){return cL[Symbol.hasInstance](t)||super[Symbol.hasInstance](t)}}let ic={default:"${path} is invalid",required:"${path} is a required field",defined:"${path} must be defined",notNull:"${path} cannot be null",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:n,originalValue:r})=>{const o=r!=null&&r!==n?` (cast from the value \`${Ud(r,!0)}\`).`:".";return t!=="mixed"?`${e} must be a \`${t}\` type, but the final value was: \`${Ud(n,!0)}\``+o:`${e} must match the configured type. The validated value was: \`${Ud(n,!0)}\``+o}},ma={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",datetime:"${path} must be a valid ISO date-time",datetime_precision:"${path} must be a valid ISO date-time with a sub-second precision of exactly ${precision} digits",datetime_offset:'${path} must be a valid ISO date-time with UTC "Z" timezone',trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},Rd={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},DA={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},dbe={isValue:"${path} field must be ${value}"},ZS={noUnknown:"${path} field has unspecified keys: ${unknown}",exact:"${path} object contains unknown properties: ${properties}"},fbe={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"},pbe={notType:e=>{const{path:t,value:n,spec:r}=e,o=r.types.length;if(Array.isArray(n)){if(n.length<o)return`${t} tuple value has too few items, expected a length of ${o} but got ${n.length} for value: \`${Ud(n,!0)}\``;if(n.length>o)return`${t} tuple value has too many items, expected a length of ${o} but got ${n.length} for value: \`${Ud(n,!0)}\``}return ba.formatError(ic.notType,e)}};Object.assign(Object.create(null),{mixed:ic,string:ma,number:Rd,date:DA,object:ZS,array:fbe,boolean:dbe,tuple:pbe});const GO=e=>e&&e.__isYupSchema__;class U2{static fromOptions(t,n){if(!n.then&&!n.otherwise)throw new TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:r,then:o,otherwise:i}=n,a=typeof r=="function"?r:(...l)=>l.every(u=>u===r);return new U2(t,(l,u)=>{var d;let f=a(...l)?o:i;return(d=f==null?void 0:f(u))!=null?d:u})}constructor(t,n){this.fn=void 0,this.refs=t,this.refs=t,this.fn=n}resolve(t,n){let r=this.refs.map(i=>i.getValue(n==null?void 0:n.value,n==null?void 0:n.parent,n==null?void 0:n.context)),o=this.fn(r,t,n);if(o===void 0||o===t)return t;if(!GO(o))throw new TypeError("conditions must return a schema object");return o.resolve(n)}}const bS={context:"$",value:"."};function VO(e,t){return new lf(e,t)}class lf{constructor(t,n={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,typeof t!="string")throw new TypeError("ref must be a string, got: "+t);if(this.key=t.trim(),t==="")throw new TypeError("ref must be a non-empty string");this.isContext=this.key[0]===bS.context,this.isValue=this.key[0]===bS.value,this.isSibling=!this.isContext&&!this.isValue;let r=this.isContext?bS.context:this.isValue?bS.value:"";this.path=this.key.slice(r.length),this.getter=this.path&&rh.getter(this.path,!0),this.map=n.map}getValue(t,n,r){let o=this.isContext?r:this.isValue?t:n;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(t,n){return this.getValue(t,n==null?void 0:n.parent,n==null?void 0:n.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(t){return t&&t.__isYupRef}}lf.prototype.__isYupRef=!0;const su=e=>e==null;function Ig(e){function t({value:n,path:r="",options:o,originalValue:i,schema:a},l,u){const{name:d,test:f,params:m,message:g,skipAbsent:w}=e;let{parent:C,context:S,abortEarly:E=a.spec.abortEarly,disableStackTrace:T=a.spec.disableStackTrace}=o;function I($){return lf.isRef($)?$.getValue(n,C,S):$}function k($={}){const B=Object.assign({value:n,originalValue:i,label:a.spec.label,path:$.path||r,spec:a.spec,disableStackTrace:$.disableStackTrace||T},m,$.params);for(const q of Object.keys(B))B[q]=I(B[q]);const V=new ba(ba.formatError($.message||g,B),n,B.path,$.type||d,B.disableStackTrace);return V.params=B,V}const R=E?l:u;let P={path:r,parent:C,type:d,from:o.from,createError:k,resolve:I,options:o,originalValue:i,schema:a};const O=$=>{ba.isError($)?R($):$?u(null):R(k())},j=$=>{ba.isError($)?R($):l($)};if(w&&su(n))return O(!0);let D;try{var _;if(D=f.call(P,n,P),typeof((_=D)==null?void 0:_.then)=="function"){if(o.sync)throw new Error(`Validation test of type: "${P.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`);return Promise.resolve(D).then(O,j)}}catch($){j($);return}O(D)}return t.OPTIONS=e,t}function hbe(e,t,n,r=n){let o,i,a;return t?(rh.forEach(t,(l,u,d)=>{let f=u?l.slice(1,l.length-1):l;e=e.resolve({context:r,parent:o,value:n});let m=e.type==="tuple",g=d?parseInt(f,10):0;if(e.innerType||m){if(m&&!d)throw new Error(`Yup.reach cannot implicitly index into a tuple type. the path part "${a}" must contain an index to the tuple element, e.g. "${a}[0]"`);if(n&&g>=n.length)throw new Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);o=n,n=n&&n[g],e=m?e.spec.types[g]:e.innerType}if(!d){if(!e.fields||!e.fields[f])throw new Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e.type}")`);o=n,n=n&&n[f],e=e.fields[f]}i=f,a=u?"["+l+"]":"."+l}),{schema:e,parent:o,parentPath:i}):{parent:o,parentPath:t,schema:e}}class G2 extends Set{describe(){const t=[];for(const n of this.values())t.push(lf.isRef(n)?n.describe():n);return t}resolveAll(t){let n=[];for(const r of this.values())n.push(t(r));return n}clone(){return new G2(this.values())}merge(t,n){const r=this.clone();return t.forEach(o=>r.add(o)),n.forEach(o=>r.delete(o)),r}}function Jg(e,t=new Map){if(GO(e)||!e||typeof e!="object")return e;if(t.has(e))return t.get(e);let n;if(e instanceof Date)n=new Date(e.getTime()),t.set(e,n);else if(e instanceof RegExp)n=new RegExp(e),t.set(e,n);else if(Array.isArray(e)){n=new Array(e.length),t.set(e,n);for(let r=0;r<e.length;r++)n[r]=Jg(e[r],t)}else if(e instanceof Map){n=new Map,t.set(e,n);for(const[r,o]of e.entries())n.set(r,Jg(o,t))}else if(e instanceof Set){n=new Set,t.set(e,n);for(const r of e)n.add(Jg(r,t))}else if(e instanceof Object){n={},t.set(e,n);for(const[r,o]of Object.entries(e))n[r]=Jg(o,t)}else throw Error(`Unable to clone ${e}`);return n}class ml{constructor(t){this.type=void 0,this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this.internalTests={},this._whitelist=new G2,this._blacklist=new G2,this.exclusiveTests=Object.create(null),this._typeCheck=void 0,this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(ic.notType)}),this.type=t.type,this._typeCheck=t.check,this.spec=Object.assign({strip:!1,strict:!1,abortEarly:!0,recursive:!0,disableStackTrace:!1,nullable:!1,optional:!0,coerce:!0},t==null?void 0:t.spec),this.withMutation(n=>{n.nonNullable()})}get _type(){return this.type}clone(t){if(this._mutate)return t&&Object.assign(this.spec,t),this;const n=Object.create(Object.getPrototypeOf(this));return n.type=this.type,n._typeCheck=this._typeCheck,n._whitelist=this._whitelist.clone(),n._blacklist=this._blacklist.clone(),n.internalTests=Object.assign({},this.internalTests),n.exclusiveTests=Object.assign({},this.exclusiveTests),n.deps=[...this.deps],n.conditions=[...this.conditions],n.tests=[...this.tests],n.transforms=[...this.transforms],n.spec=Jg(Object.assign({},this.spec,t)),n}label(t){let n=this.clone();return n.spec.label=t,n}meta(...t){if(t.length===0)return this.spec.meta;let n=this.clone();return n.spec.meta=Object.assign(n.spec.meta||{},t[0]),n}withMutation(t){let n=this._mutate;this._mutate=!0;let r=t(this);return this._mutate=n,r}concat(t){if(!t||t===this)return this;if(t.type!==this.type&&this.type!=="mixed")throw new TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${t.type}`);let n=this,r=t.clone();const o=Object.assign({},n.spec,r.spec);return r.spec=o,r.internalTests=Object.assign({},n.internalTests,r.internalTests),r._whitelist=n._whitelist.merge(t._whitelist,t._blacklist),r._blacklist=n._blacklist.merge(t._blacklist,t._whitelist),r.tests=n.tests,r.exclusiveTests=n.exclusiveTests,r.withMutation(i=>{t.tests.forEach(a=>{i.test(a.OPTIONS)})}),r.transforms=[...n.transforms,...r.transforms],r}isType(t){return t==null?!!(this.spec.nullable&&t===null||this.spec.optional&&t===void 0):this._typeCheck(t)}resolve(t){let n=this;if(n.conditions.length){let r=n.conditions;n=n.clone(),n.conditions=[],n=r.reduce((o,i)=>i.resolve(o,t),n),n=n.resolve(t)}return n}resolveOptions(t){var n,r,o,i;return Object.assign({},t,{from:t.from||[],strict:(n=t.strict)!=null?n:this.spec.strict,abortEarly:(r=t.abortEarly)!=null?r:this.spec.abortEarly,recursive:(o=t.recursive)!=null?o:this.spec.recursive,disableStackTrace:(i=t.disableStackTrace)!=null?i:this.spec.disableStackTrace})}cast(t,n={}){let r=this.resolve(Object.assign({value:t},n)),o=n.assert==="ignore-optionality",i=r._cast(t,n);if(n.assert!==!1&&!r.isType(i)){if(o&&su(i))return i;let a=Ud(t),l=Ud(i);throw new TypeError(`The value of ${n.path||"field"} could not be cast to a value that satisfies the schema type: "${r.type}". 

attempted value: ${a} 
`+(l!==a?`result of cast: ${l}`:""))}return i}_cast(t,n){let r=t===void 0?t:this.transforms.reduce((o,i)=>i.call(this,o,t,this),t);return r===void 0&&(r=this.getDefault(n)),r}_validate(t,n={},r,o){let{path:i,originalValue:a=t,strict:l=this.spec.strict}=n,u=t;l||(u=this._cast(u,Object.assign({assert:!1},n)));let d=[];for(let f of Object.values(this.internalTests))f&&d.push(f);this.runTests({path:i,value:u,originalValue:a,options:n,tests:d},r,f=>{if(f.length)return o(f,u);this.runTests({path:i,value:u,originalValue:a,options:n,tests:this.tests},r,o)})}runTests(t,n,r){let o=!1,{tests:i,value:a,originalValue:l,path:u,options:d}=t,f=S=>{o||(o=!0,n(S,a))},m=S=>{o||(o=!0,r(S,a))},g=i.length,w=[];if(!g)return m([]);let C={value:a,originalValue:l,path:u,options:d,schema:this};for(let S=0;S<i.length;S++){const E=i[S];E(C,f,function(I){I&&(Array.isArray(I)?w.push(...I):w.push(I)),--g<=0&&m(w)})}}asNestedTest({key:t,index:n,parent:r,parentPath:o,originalParent:i,options:a}){const l=t??n;if(l==null)throw TypeError("Must include `key` or `index` for nested validations");const u=typeof l=="number";let d=r[l];const f=Object.assign({},a,{strict:!0,parent:r,value:d,originalValue:i[l],key:void 0,[u?"index":"key"]:l,path:u||l.includes(".")?`${o||""}[${u?l:`"${l}"`}]`:(o?`${o}.`:"")+t});return(m,g,w)=>this.resolve(f)._validate(d,f,g,w)}validate(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return new Promise((a,l)=>o._validate(t,n,(u,d)=>{ba.isError(u)&&(u.value=d),l(u)},(u,d)=>{u.length?l(new ba(u,d,void 0,void 0,i)):a(d)}))}validateSync(t,n){var r;let o=this.resolve(Object.assign({},n,{value:t})),i,a=(r=n==null?void 0:n.disableStackTrace)!=null?r:o.spec.disableStackTrace;return o._validate(t,Object.assign({},n,{sync:!0}),(l,u)=>{throw ba.isError(l)&&(l.value=u),l},(l,u)=>{if(l.length)throw new ba(l,t,void 0,void 0,a);i=u}),i}isValid(t,n){return this.validate(t,n).then(()=>!0,r=>{if(ba.isError(r))return!1;throw r})}isValidSync(t,n){try{return this.validateSync(t,n),!0}catch(r){if(ba.isError(r))return!1;throw r}}_getDefault(t){let n=this.spec.default;return n==null?n:typeof n=="function"?n.call(this,t):Jg(n)}getDefault(t){return this.resolve(t||{})._getDefault(t)}default(t){return arguments.length===0?this._getDefault():this.clone({default:t})}strict(t=!0){return this.clone({strict:t})}nullability(t,n){const r=this.clone({nullable:t});return r.internalTests.nullable=Ig({message:n,name:"nullable",test(o){return o===null?this.schema.spec.nullable:!0}}),r}optionality(t,n){const r=this.clone({optional:t});return r.internalTests.optionality=Ig({message:n,name:"optionality",test(o){return o===void 0?this.schema.spec.optional:!0}}),r}optional(){return this.optionality(!0)}defined(t=ic.defined){return this.optionality(!1,t)}nullable(){return this.nullability(!0)}nonNullable(t=ic.notNull){return this.nullability(!1,t)}required(t=ic.required){return this.clone().withMutation(n=>n.nonNullable(t).defined(t))}notRequired(){return this.clone().withMutation(t=>t.nullable().optional())}transform(t){let n=this.clone();return n.transforms.push(t),n}test(...t){let n;if(t.length===1?typeof t[0]=="function"?n={test:t[0]}:n=t[0]:t.length===2?n={name:t[0],test:t[1]}:n={name:t[0],message:t[1],test:t[2]},n.message===void 0&&(n.message=ic.default),typeof n.test!="function")throw new TypeError("`test` is a required parameters");let r=this.clone(),o=Ig(n),i=n.exclusive||n.name&&r.exclusiveTests[n.name]===!0;if(n.exclusive&&!n.name)throw new TypeError("Exclusive tests must provide a unique `name` identifying the test");return n.name&&(r.exclusiveTests[n.name]=!!n.exclusive),r.tests=r.tests.filter(a=>!(a.OPTIONS.name===n.name&&(i||a.OPTIONS.test===o.OPTIONS.test))),r.tests.push(o),r}when(t,n){!Array.isArray(t)&&typeof t!="string"&&(n=t,t=".");let r=this.clone(),o=pz(t).map(i=>new lf(i));return o.forEach(i=>{i.isSibling&&r.deps.push(i.key)}),r.conditions.push(typeof n=="function"?new U2(o,n):U2.fromOptions(o,n)),r}typeError(t){let n=this.clone();return n.internalTests.typeError=Ig({message:t,name:"typeError",skipAbsent:!0,test(r){return this.schema._typeCheck(r)?!0:this.createError({params:{type:this.schema.type}})}}),n}oneOf(t,n=ic.oneOf){let r=this.clone();return t.forEach(o=>{r._whitelist.add(o),r._blacklist.delete(o)}),r.internalTests.whiteList=Ig({message:n,name:"oneOf",skipAbsent:!0,test(o){let i=this.schema._whitelist,a=i.resolveAll(this.resolve);return a.includes(o)?!0:this.createError({params:{values:Array.from(i).join(", "),resolved:a}})}}),r}notOneOf(t,n=ic.notOneOf){let r=this.clone();return t.forEach(o=>{r._blacklist.add(o),r._whitelist.delete(o)}),r.internalTests.blacklist=Ig({message:n,name:"notOneOf",test(o){let i=this.schema._blacklist,a=i.resolveAll(this.resolve);return a.includes(o)?this.createError({params:{values:Array.from(i).join(", "),resolved:a}}):!0}}),r}strip(t=!0){let n=this.clone();return n.spec.strip=t,n}describe(t){const n=(t?this.resolve(t):this).clone(),{label:r,meta:o,optional:i,nullable:a}=n.spec;return{meta:o,label:r,optional:i,nullable:a,default:n.getDefault(t),type:n.type,oneOf:n._whitelist.describe(),notOneOf:n._blacklist.describe(),tests:n.tests.map(u=>({name:u.OPTIONS.name,params:u.OPTIONS.params})).filter((u,d,f)=>f.findIndex(m=>m.name===u.name)===d)}}}ml.prototype.__isYupSchema__=!0;for(const e of["validate","validateSync"])ml.prototype[`${e}At`]=function(t,n,r={}){const{parent:o,parentPath:i,schema:a}=hbe(this,t,n,r.context);return a[e](o&&o[i],Object.assign({},r,{parent:o,path:t}))};for(const e of["equals","is"])ml.prototype[e]=ml.prototype.oneOf;for(const e of["not","nope"])ml.prototype[e]=ml.prototype.notOneOf;const mbe=/^(\d{4}|[+-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,.](\d{1,}))?)?(?:(Z)|([+-])(\d{2})(?::?(\d{2}))?)?)?$/;function gbe(e){const t=LA(e);if(!t)return Date.parse?Date.parse(e):Number.NaN;if(t.z===void 0&&t.plusMinus===void 0)return new Date(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond).valueOf();let n=0;return t.z!=="Z"&&t.plusMinus!==void 0&&(n=t.hourOffset*60+t.minuteOffset,t.plusMinus==="+"&&(n=0-n)),Date.UTC(t.year,t.month,t.day,t.hour,t.minute+n,t.second,t.millisecond)}function LA(e){var t,n;const r=mbe.exec(e);return r?{year:nu(r[1]),month:nu(r[2],1)-1,day:nu(r[3],1),hour:nu(r[4]),minute:nu(r[5]),second:nu(r[6]),millisecond:r[7]?nu(r[7].substring(0,3)):0,precision:(t=(n=r[7])==null?void 0:n.length)!=null?t:void 0,z:r[8]||void 0,plusMinus:r[9]||void 0,hourOffset:nu(r[10]),minuteOffset:nu(r[11])}:null}function nu(e,t=0){return Number(e)||t}let bbe=/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ybe=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,vbe=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,xbe="^\\d{4}-\\d{2}-\\d{2}",wbe="\\d{2}:\\d{2}:\\d{2}",Cbe="(([+-]\\d{2}(:?\\d{2})?)|Z)",Sbe=new RegExp(`${xbe}T${wbe}(\\.\\d+)?${Cbe}$`),Ebe=e=>su(e)||e===e.trim(),Tbe={}.toString();function oh(){return new bz}class bz extends ml{constructor(){super({type:"string",check(t){return t instanceof String&&(t=t.valueOf()),typeof t=="string"}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce||r.isType(t)||Array.isArray(t))return t;const o=t!=null&&t.toString?t.toString():t;return o===Tbe?t:o})})}required(t){return super.required(t).withMutation(n=>n.test({message:t||ic.required,name:"required",skipAbsent:!0,test:r=>!!r.length}))}notRequired(){return super.notRequired().withMutation(t=>(t.tests=t.tests.filter(n=>n.OPTIONS.name!=="required"),t))}length(t,n=ma.length){return this.test({message:n,name:"length",exclusive:!0,params:{length:t},skipAbsent:!0,test(r){return r.length===this.resolve(t)}})}min(t,n=ma.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r.length>=this.resolve(t)}})}max(t,n=ma.max){return this.test({name:"max",exclusive:!0,message:n,params:{max:t},skipAbsent:!0,test(r){return r.length<=this.resolve(t)}})}matches(t,n){let r=!1,o,i;return n&&(typeof n=="object"?{excludeEmptyString:r=!1,message:o,name:i}=n:o=n),this.test({name:i||"matches",message:o||ma.matches,params:{regex:t},skipAbsent:!0,test:a=>a===""&&r||a.search(t)!==-1})}email(t=ma.email){return this.matches(bbe,{name:"email",message:t,excludeEmptyString:!0})}url(t=ma.url){return this.matches(ybe,{name:"url",message:t,excludeEmptyString:!0})}uuid(t=ma.uuid){return this.matches(vbe,{name:"uuid",message:t,excludeEmptyString:!1})}datetime(t){let n="",r,o;return t&&(typeof t=="object"?{message:n="",allowOffset:r=!1,precision:o=void 0}=t:n=t),this.matches(Sbe,{name:"datetime",message:n||ma.datetime,excludeEmptyString:!0}).test({name:"datetime_offset",message:n||ma.datetime_offset,params:{allowOffset:r},skipAbsent:!0,test:i=>{if(!i||r)return!0;const a=LA(i);return a?!!a.z:!1}}).test({name:"datetime_precision",message:n||ma.datetime_precision,params:{precision:o},skipAbsent:!0,test:i=>{if(!i||o==null)return!0;const a=LA(i);return a?a.precision===o:!1}})}ensure(){return this.default("").transform(t=>t===null?"":t)}trim(t=ma.trim){return this.transform(n=>n!=null?n.trim():n).test({message:t,name:"trim",test:Ebe})}lowercase(t=ma.lowercase){return this.transform(n=>su(n)?n:n.toLowerCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>su(n)||n===n.toLowerCase()})}uppercase(t=ma.uppercase){return this.transform(n=>su(n)?n:n.toUpperCase()).test({message:t,name:"string_case",exclusive:!0,skipAbsent:!0,test:n=>su(n)||n===n.toUpperCase()})}}oh.prototype=bz.prototype;let Mbe=e=>e!=+e;function QS(){return new yz}class yz extends ml{constructor(){super({type:"number",check(t){return t instanceof Number&&(t=t.valueOf()),typeof t=="number"&&!Mbe(t)}}),this.withMutation(()=>{this.transform((t,n,r)=>{if(!r.spec.coerce)return t;let o=t;if(typeof o=="string"){if(o=o.replace(/\s/g,""),o==="")return NaN;o=+o}return r.isType(o)||o===null?o:parseFloat(o)})})}min(t,n=Rd.min){return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(r){return r>=this.resolve(t)}})}max(t,n=Rd.max){return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(r){return r<=this.resolve(t)}})}lessThan(t,n=Rd.lessThan){return this.test({message:n,name:"max",exclusive:!0,params:{less:t},skipAbsent:!0,test(r){return r<this.resolve(t)}})}moreThan(t,n=Rd.moreThan){return this.test({message:n,name:"min",exclusive:!0,params:{more:t},skipAbsent:!0,test(r){return r>this.resolve(t)}})}positive(t=Rd.positive){return this.moreThan(0,t)}negative(t=Rd.negative){return this.lessThan(0,t)}integer(t=Rd.integer){return this.test({name:"integer",message:t,skipAbsent:!0,test:n=>Number.isInteger(n)})}truncate(){return this.transform(t=>su(t)?t:t|0)}round(t){var n;let r=["ceil","floor","round","trunc"];if(t=((n=t)==null?void 0:n.toLowerCase())||"round",t==="trunc")return this.truncate();if(r.indexOf(t.toLowerCase())===-1)throw new TypeError("Only valid options for round() are: "+r.join(", "));return this.transform(o=>su(o)?o:Math[t](o))}}QS.prototype=yz.prototype;let kbe=new Date(""),Pbe=e=>Object.prototype.toString.call(e)==="[object Date]";class WO extends ml{constructor(){super({type:"date",check(t){return Pbe(t)&&!isNaN(t.getTime())}}),this.withMutation(()=>{this.transform((t,n,r)=>!r.spec.coerce||r.isType(t)||t===null?t:(t=gbe(t),isNaN(t)?WO.INVALID_DATE:new Date(t)))})}prepareParam(t,n){let r;if(lf.isRef(t))r=t;else{let o=this.cast(t);if(!this._typeCheck(o))throw new TypeError(`\`${n}\` must be a Date or a value that can be \`cast()\` to a Date`);r=o}return r}min(t,n=DA.min){let r=this.prepareParam(t,"min");return this.test({message:n,name:"min",exclusive:!0,params:{min:t},skipAbsent:!0,test(o){return o>=this.resolve(r)}})}max(t,n=DA.max){let r=this.prepareParam(t,"max");return this.test({message:n,name:"max",exclusive:!0,params:{max:t},skipAbsent:!0,test(o){return o<=this.resolve(r)}})}}WO.INVALID_DATE=kbe;function Ibe(e,t=[]){let n=[],r=new Set,o=new Set(t.map(([a,l])=>`${a}-${l}`));function i(a,l){let u=rh.split(a)[0];r.add(u),o.has(`${l}-${u}`)||n.push([l,u])}for(const a of Object.keys(e)){let l=e[a];r.add(a),lf.isRef(l)&&l.isSibling?i(l.path,a):GO(l)&&"deps"in l&&l.deps.forEach(u=>i(u,a))}return rbe.array(Array.from(r),n).reverse()}function uL(e,t){let n=1/0;return e.some((r,o)=>{var i;if((i=t.path)!=null&&i.includes(r))return n=o,!0}),n}function vz(e){return(t,n)=>uL(e,t)-uL(e,n)}const Abe=(e,t,n)=>{if(typeof e!="string")return e;let r=e;try{r=JSON.parse(e)}catch{}return n.isType(r)?r:e};function JS(e){if("fields"in e){const t={};for(const[n,r]of Object.entries(e.fields))t[n]=JS(r);return e.setFields(t)}if(e.type==="array"){const t=e.optional();return t.innerType&&(t.innerType=JS(t.innerType)),t}return e.type==="tuple"?e.optional().clone({types:e.spec.types.map(JS)}):"optional"in e?e.optional():e}const Rbe=(e,t)=>{const n=[...rh.normalizePath(t)];if(n.length===1)return n[0]in e;let r=n.pop(),o=rh.getter(rh.join(n),!0)(e);return!!(o&&r in o)};let dL=e=>Object.prototype.toString.call(e)==="[object Object]";function fL(e,t){let n=Object.keys(e.fields);return Object.keys(t).filter(r=>n.indexOf(r)===-1)}const Obe=vz([]);function cf(e){return new xz(e)}class xz extends ml{constructor(t){super({type:"object",check(n){return dL(n)||typeof n=="function"}}),this.fields=Object.create(null),this._sortErrors=Obe,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{t&&this.shape(t)})}_cast(t,n={}){var r;let o=super._cast(t,n);if(o===void 0)return this.getDefault(n);if(!this._typeCheck(o))return o;let i=this.fields,a=(r=n.stripUnknown)!=null?r:this.spec.noUnknown,l=[].concat(this._nodes,Object.keys(o).filter(m=>!this._nodes.includes(m))),u={},d=Object.assign({},n,{parent:u,__validating:n.__validating||!1}),f=!1;for(const m of l){let g=i[m],w=m in o;if(g){let C,S=o[m];d.path=(n.path?`${n.path}.`:"")+m,g=g.resolve({value:S,context:n.context,parent:u});let E=g instanceof ml?g.spec:void 0,T=E==null?void 0:E.strict;if(E!=null&&E.strip){f=f||m in o;continue}C=!n.__validating||!T?g.cast(o[m],d):o[m],C!==void 0&&(u[m]=C)}else w&&!a&&(u[m]=o[m]);(w!==m in u||u[m]!==o[m])&&(f=!0)}return f?u:o}_validate(t,n={},r,o){let{from:i=[],originalValue:a=t,recursive:l=this.spec.recursive}=n;n.from=[{schema:this,value:a},...i],n.__validating=!0,n.originalValue=a,super._validate(t,n,r,(u,d)=>{if(!l||!dL(d)){o(u,d);return}a=a||d;let f=[];for(let m of this._nodes){let g=this.fields[m];!g||lf.isRef(g)||f.push(g.asNestedTest({options:n,key:m,parent:d,parentPath:n.path,originalParent:a}))}this.runTests({tests:f,value:d,originalValue:a,options:n},r,m=>{o(m.sort(this._sortErrors).concat(u),d)})})}clone(t){const n=super.clone(t);return n.fields=Object.assign({},this.fields),n._nodes=this._nodes,n._excludedEdges=this._excludedEdges,n._sortErrors=this._sortErrors,n}concat(t){let n=super.concat(t),r=n.fields;for(let[o,i]of Object.entries(this.fields)){const a=r[o];r[o]=a===void 0?i:a}return n.withMutation(o=>o.setFields(r,[...this._excludedEdges,...t._excludedEdges]))}_getDefault(t){if("default"in this.spec)return super._getDefault(t);if(!this._nodes.length)return;let n={};return this._nodes.forEach(r=>{var o;const i=this.fields[r];let a=t;(o=a)!=null&&o.value&&(a=Object.assign({},a,{parent:a.value,value:a.value[r]})),n[r]=i&&"getDefault"in i?i.getDefault(a):void 0}),n}setFields(t,n){let r=this.clone();return r.fields=t,r._nodes=Ibe(t,n),r._sortErrors=vz(Object.keys(t)),n&&(r._excludedEdges=n),r}shape(t,n=[]){return this.clone().withMutation(r=>{let o=r._excludedEdges;return n.length&&(Array.isArray(n[0])||(n=[n]),o=[...r._excludedEdges,...n]),r.setFields(Object.assign(r.fields,t),o)})}partial(){const t={};for(const[n,r]of Object.entries(this.fields))t[n]="optional"in r&&r.optional instanceof Function?r.optional():r;return this.setFields(t)}deepPartial(){return JS(this)}pick(t){const n={};for(const r of t)this.fields[r]&&(n[r]=this.fields[r]);return this.setFields(n,this._excludedEdges.filter(([r,o])=>t.includes(r)&&t.includes(o)))}omit(t){const n=[];for(const r of Object.keys(this.fields))t.includes(r)||n.push(r);return this.pick(n)}from(t,n,r){let o=rh.getter(t,!0);return this.transform(i=>{if(!i)return i;let a=i;return Rbe(i,t)&&(a=Object.assign({},i),r||delete a[t],a[n]=o(i)),a})}json(){return this.transform(Abe)}exact(t){return this.test({name:"exact",exclusive:!0,message:t||ZS.exact,test(n){if(n==null)return!0;const r=fL(this.schema,n);return r.length===0||this.createError({params:{properties:r.join(", ")}})}})}stripUnknown(){return this.clone({noUnknown:!0})}noUnknown(t=!0,n=ZS.noUnknown){typeof t!="boolean"&&(n=t,t=!0);let r=this.test({name:"noUnknown",exclusive:!0,message:n,test(o){if(o==null)return!0;const i=fL(this.schema,o);return!t||i.length===0||this.createError({params:{unknown:i.join(", ")}})}});return r.spec.noUnknown=t,r}unknown(t=!0,n=ZS.noUnknown){return this.noUnknown(!t,n)}transformKeys(t){return this.transform(n=>{if(!n)return n;const r={};for(const o of Object.keys(n))r[t(o)]=n[o];return r})}camelCase(){return this.transformKeys(TP.camelCase)}snakeCase(){return this.transformKeys(TP.snakeCase)}constantCase(){return this.transformKeys(t=>TP.snakeCase(t).toUpperCase())}describe(t){const n=(t?this.resolve(t):this).clone(),r=super.describe(t);r.fields={};for(const[i,a]of Object.entries(n.fields)){var o;let l=t;(o=l)!=null&&o.value&&(l=Object.assign({},l,{parent:l.value,value:l.value[i]})),r.fields[i]=a.describe(l)}return r}}cf.prototype=xz.prototype;const s1=oh().email("Enter a valid email").required("Email is required"),xh=oh().min(8,"Password should be of minimum 8 characters length").matches(/[0-9]/,"Password must contain at least one digit").matches(/[a-z]/,"Password must contain at least one lowercase letter.").matches(/[A-Z]/,"Password must contain at least one uppercase letter.").matches(/^\S+$/,"Password must not contain spaces.").required("Password is required"),V2=oh().required("This field is required"),_be=cf({name:V2,email:s1,password:xh,confirm_password:xh.oneOf([VO("password"),null],"Passwords must match")}),Dbe=cf({name:V2,secret:V2,email:s1,password:xh,confirm_password:xh.oneOf([VO("password"),null],"Passwords must match")}),Lbe=cf({email:s1,password:xh}),$be=cf({password:xh,confirm_password:xh.oneOf([VO("password"),null],"Passwords must match")}),jbe=cf({email:s1}),Fbe=cf({name:V2,email:s1}),Nbe=cf({domainName:oh().required("This field is required"),contentSampleLink:oh(),contentNotes:oh(),contentLifetime:QS(),contentPublicationSpeed:QS(),price:QS().required("This field is required")});var zbe=function(t){return Bbe(t)&&!Hbe(t)};function Bbe(e){return!!e&&typeof e=="object"}function Hbe(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Vbe(e)}var Ube=typeof Symbol=="function"&&Symbol.for,Gbe=Ube?Symbol.for("react.element"):60103;function Vbe(e){return e.$$typeof===Gbe}function Wbe(e){return Array.isArray(e)?[]:{}}function W2(e,t){return t.clone!==!1&&t.isMergeableObject(e)?bx(Wbe(e),e,t):e}function qbe(e,t,n){return e.concat(t).map(function(r){return W2(r,n)})}function Ybe(e,t,n){var r={};return n.isMergeableObject(e)&&Object.keys(e).forEach(function(o){r[o]=W2(e[o],n)}),Object.keys(t).forEach(function(o){!n.isMergeableObject(t[o])||!e[o]?r[o]=W2(t[o],n):r[o]=bx(e[o],t[o],n)}),r}function bx(e,t,n){n=n||{},n.arrayMerge=n.arrayMerge||qbe,n.isMergeableObject=n.isMergeableObject||zbe;var r=Array.isArray(t),o=Array.isArray(e),i=r===o;return i?r?n.arrayMerge(e,t,n):Ybe(e,t,n):W2(t,n)}bx.all=function(t,n){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(r,o){return bx(r,o,n)},{})};var $A=bx,wz=typeof global=="object"&&global&&global.Object===Object&&global,Kbe=typeof self=="object"&&self&&self.Object===Object&&self,Cc=wz||Kbe||Function("return this")(),Zd=Cc.Symbol,Cz=Object.prototype,Xbe=Cz.hasOwnProperty,Zbe=Cz.toString,fv=Zd?Zd.toStringTag:void 0;function Qbe(e){var t=Xbe.call(e,fv),n=e[fv];try{e[fv]=void 0;var r=!0}catch{}var o=Zbe.call(e);return r&&(t?e[fv]=n:delete e[fv]),o}var Jbe=Object.prototype,eye=Jbe.toString;function tye(e){return eye.call(e)}var nye="[object Null]",rye="[object Undefined]",pL=Zd?Zd.toStringTag:void 0;function Ph(e){return e==null?e===void 0?rye:nye:pL&&pL in Object(e)?Qbe(e):tye(e)}function Sz(e,t){return function(n){return e(t(n))}}var qO=Sz(Object.getPrototypeOf,Object);function Ih(e){return e!=null&&typeof e=="object"}var oye="[object Object]",iye=Function.prototype,aye=Object.prototype,Ez=iye.toString,sye=aye.hasOwnProperty,lye=Ez.call(Object);function hL(e){if(!Ih(e)||Ph(e)!=oye)return!1;var t=qO(e);if(t===null)return!0;var n=sye.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Ez.call(n)==lye}function cye(){this.__data__=[],this.size=0}function Tz(e,t){return e===t||e!==e&&t!==t}function $T(e,t){for(var n=e.length;n--;)if(Tz(e[n][0],t))return n;return-1}var uye=Array.prototype,dye=uye.splice;function fye(e){var t=this.__data__,n=$T(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():dye.call(t,n,1),--this.size,!0}function pye(e){var t=this.__data__,n=$T(t,e);return n<0?void 0:t[n][1]}function hye(e){return $T(this.__data__,e)>-1}function mye(e,t){var n=this.__data__,r=$T(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Pu(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Pu.prototype.clear=cye;Pu.prototype.delete=fye;Pu.prototype.get=pye;Pu.prototype.has=hye;Pu.prototype.set=mye;function gye(){this.__data__=new Pu,this.size=0}function bye(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function yye(e){return this.__data__.get(e)}function vye(e){return this.__data__.has(e)}function l1(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var xye="[object AsyncFunction]",wye="[object Function]",Cye="[object GeneratorFunction]",Sye="[object Proxy]";function Mz(e){if(!l1(e))return!1;var t=Ph(e);return t==wye||t==Cye||t==xye||t==Sye}var MP=Cc["__core-js_shared__"],mL=function(){var e=/[^.]+$/.exec(MP&&MP.keys&&MP.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function Eye(e){return!!mL&&mL in e}var Tye=Function.prototype,Mye=Tye.toString;function Ah(e){if(e!=null){try{return Mye.call(e)}catch{}try{return e+""}catch{}}return""}var kye=/[\\^$.*+?()[\]{}|]/g,Pye=/^\[object .+?Constructor\]$/,Iye=Function.prototype,Aye=Object.prototype,Rye=Iye.toString,Oye=Aye.hasOwnProperty,_ye=RegExp("^"+Rye.call(Oye).replace(kye,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Dye(e){if(!l1(e)||Eye(e))return!1;var t=Mz(e)?_ye:Pye;return t.test(Ah(e))}function Lye(e,t){return e==null?void 0:e[t]}function Rh(e,t){var n=Lye(e,t);return Dye(n)?n:void 0}var yx=Rh(Cc,"Map"),vx=Rh(Object,"create");function $ye(){this.__data__=vx?vx(null):{},this.size=0}function jye(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var Fye="__lodash_hash_undefined__",Nye=Object.prototype,zye=Nye.hasOwnProperty;function Bye(e){var t=this.__data__;if(vx){var n=t[e];return n===Fye?void 0:n}return zye.call(t,e)?t[e]:void 0}var Hye=Object.prototype,Uye=Hye.hasOwnProperty;function Gye(e){var t=this.__data__;return vx?t[e]!==void 0:Uye.call(t,e)}var Vye="__lodash_hash_undefined__";function Wye(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=vx&&t===void 0?Vye:t,this}function wh(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}wh.prototype.clear=$ye;wh.prototype.delete=jye;wh.prototype.get=Bye;wh.prototype.has=Gye;wh.prototype.set=Wye;function qye(){this.size=0,this.__data__={hash:new wh,map:new(yx||Pu),string:new wh}}function Yye(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function jT(e,t){var n=e.__data__;return Yye(t)?n[typeof t=="string"?"string":"hash"]:n.map}function Kye(e){var t=jT(this,e).delete(e);return this.size-=t?1:0,t}function Xye(e){return jT(this,e).get(e)}function Zye(e){return jT(this,e).has(e)}function Qye(e,t){var n=jT(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function uf(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}uf.prototype.clear=qye;uf.prototype.delete=Kye;uf.prototype.get=Xye;uf.prototype.has=Zye;uf.prototype.set=Qye;var Jye=200;function eve(e,t){var n=this.__data__;if(n instanceof Pu){var r=n.__data__;if(!yx||r.length<Jye-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new uf(r)}return n.set(e,t),this.size=n.size,this}function tb(e){var t=this.__data__=new Pu(e);this.size=t.size}tb.prototype.clear=gye;tb.prototype.delete=bye;tb.prototype.get=yye;tb.prototype.has=vye;tb.prototype.set=eve;function tve(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var gL=function(){try{var e=Rh(Object,"defineProperty");return e({},"",{}),e}catch{}}();function kz(e,t,n){t=="__proto__"&&gL?gL(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var nve=Object.prototype,rve=nve.hasOwnProperty;function Pz(e,t,n){var r=e[t];(!(rve.call(e,t)&&Tz(r,n))||n===void 0&&!(t in e))&&kz(e,t,n)}function FT(e,t,n,r){var o=!n;n||(n={});for(var i=-1,a=t.length;++i<a;){var l=t[i],u=void 0;u===void 0&&(u=e[l]),o?kz(n,l,u):Pz(n,l,u)}return n}function ove(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var ive="[object Arguments]";function bL(e){return Ih(e)&&Ph(e)==ive}var Iz=Object.prototype,ave=Iz.hasOwnProperty,sve=Iz.propertyIsEnumerable,lve=bL(function(){return arguments}())?bL:function(e){return Ih(e)&&ave.call(e,"callee")&&!sve.call(e,"callee")},c1=Array.isArray;function cve(){return!1}var Az=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,yL=Az&&typeof Va=="object"&&Va&&!Va.nodeType&&Va,uve=yL&&yL.exports===Az,vL=uve?Cc.Buffer:void 0,dve=vL?vL.isBuffer:void 0,Rz=dve||cve,fve=9007199254740991,pve=/^(?:0|[1-9]\d*)$/;function hve(e,t){var n=typeof e;return t=t??fve,!!t&&(n=="number"||n!="symbol"&&pve.test(e))&&e>-1&&e%1==0&&e<t}var mve=9007199254740991;function Oz(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=mve}var gve="[object Arguments]",bve="[object Array]",yve="[object Boolean]",vve="[object Date]",xve="[object Error]",wve="[object Function]",Cve="[object Map]",Sve="[object Number]",Eve="[object Object]",Tve="[object RegExp]",Mve="[object Set]",kve="[object String]",Pve="[object WeakMap]",Ive="[object ArrayBuffer]",Ave="[object DataView]",Rve="[object Float32Array]",Ove="[object Float64Array]",_ve="[object Int8Array]",Dve="[object Int16Array]",Lve="[object Int32Array]",$ve="[object Uint8Array]",jve="[object Uint8ClampedArray]",Fve="[object Uint16Array]",Nve="[object Uint32Array]",qr={};qr[Rve]=qr[Ove]=qr[_ve]=qr[Dve]=qr[Lve]=qr[$ve]=qr[jve]=qr[Fve]=qr[Nve]=!0;qr[gve]=qr[bve]=qr[Ive]=qr[yve]=qr[Ave]=qr[vve]=qr[xve]=qr[wve]=qr[Cve]=qr[Sve]=qr[Eve]=qr[Tve]=qr[Mve]=qr[kve]=qr[Pve]=!1;function zve(e){return Ih(e)&&Oz(e.length)&&!!qr[Ph(e)]}function YO(e){return function(t){return e(t)}}var _z=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,Zv=_z&&typeof Va=="object"&&Va&&!Va.nodeType&&Va,Bve=Zv&&Zv.exports===_z,kP=Bve&&wz.process,S0=function(){try{var e=Zv&&Zv.require&&Zv.require("util").types;return e||kP&&kP.binding&&kP.binding("util")}catch{}}(),xL=S0&&S0.isTypedArray,Hve=xL?YO(xL):zve,Uve=Object.prototype,Gve=Uve.hasOwnProperty;function Dz(e,t){var n=c1(e),r=!n&&lve(e),o=!n&&!r&&Rz(e),i=!n&&!r&&!o&&Hve(e),a=n||r||o||i,l=a?ove(e.length,String):[],u=l.length;for(var d in e)(t||Gve.call(e,d))&&!(a&&(d=="length"||o&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||hve(d,u)))&&l.push(d);return l}var Vve=Object.prototype;function KO(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Vve;return e===n}var Wve=Sz(Object.keys,Object),qve=Object.prototype,Yve=qve.hasOwnProperty;function Kve(e){if(!KO(e))return Wve(e);var t=[];for(var n in Object(e))Yve.call(e,n)&&n!="constructor"&&t.push(n);return t}function Lz(e){return e!=null&&Oz(e.length)&&!Mz(e)}function XO(e){return Lz(e)?Dz(e):Kve(e)}function Xve(e,t){return e&&FT(t,XO(t),e)}function Zve(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var Qve=Object.prototype,Jve=Qve.hasOwnProperty;function exe(e){if(!l1(e))return Zve(e);var t=KO(e),n=[];for(var r in e)r=="constructor"&&(t||!Jve.call(e,r))||n.push(r);return n}function ZO(e){return Lz(e)?Dz(e,!0):exe(e)}function txe(e,t){return e&&FT(t,ZO(t),e)}var $z=typeof Ga=="object"&&Ga&&!Ga.nodeType&&Ga,wL=$z&&typeof Va=="object"&&Va&&!Va.nodeType&&Va,nxe=wL&&wL.exports===$z,CL=nxe?Cc.Buffer:void 0,SL=CL?CL.allocUnsafe:void 0;function rxe(e,t){if(t)return e.slice();var n=e.length,r=SL?SL(n):new e.constructor(n);return e.copy(r),r}function jz(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function oxe(e,t){for(var n=-1,r=e==null?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}function Fz(){return[]}var ixe=Object.prototype,axe=ixe.propertyIsEnumerable,EL=Object.getOwnPropertySymbols,QO=EL?function(e){return e==null?[]:(e=Object(e),oxe(EL(e),function(t){return axe.call(e,t)}))}:Fz;function sxe(e,t){return FT(e,QO(e),t)}function Nz(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}var lxe=Object.getOwnPropertySymbols,zz=lxe?function(e){for(var t=[];e;)Nz(t,QO(e)),e=qO(e);return t}:Fz;function cxe(e,t){return FT(e,zz(e),t)}function Bz(e,t,n){var r=t(e);return c1(e)?r:Nz(r,n(e))}function uxe(e){return Bz(e,XO,QO)}function dxe(e){return Bz(e,ZO,zz)}var jA=Rh(Cc,"DataView"),FA=Rh(Cc,"Promise"),NA=Rh(Cc,"Set"),zA=Rh(Cc,"WeakMap"),TL="[object Map]",fxe="[object Object]",ML="[object Promise]",kL="[object Set]",PL="[object WeakMap]",IL="[object DataView]",pxe=Ah(jA),hxe=Ah(yx),mxe=Ah(FA),gxe=Ah(NA),bxe=Ah(zA),ou=Ph;(jA&&ou(new jA(new ArrayBuffer(1)))!=IL||yx&&ou(new yx)!=TL||FA&&ou(FA.resolve())!=ML||NA&&ou(new NA)!=kL||zA&&ou(new zA)!=PL)&&(ou=function(e){var t=Ph(e),n=t==fxe?e.constructor:void 0,r=n?Ah(n):"";if(r)switch(r){case pxe:return IL;case hxe:return TL;case mxe:return ML;case gxe:return kL;case bxe:return PL}return t});var yxe=Object.prototype,vxe=yxe.hasOwnProperty;function xxe(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&vxe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}var AL=Cc.Uint8Array;function JO(e){var t=new e.constructor(e.byteLength);return new AL(t).set(new AL(e)),t}function wxe(e,t){var n=t?JO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var Cxe=/\w*$/;function Sxe(e){var t=new e.constructor(e.source,Cxe.exec(e));return t.lastIndex=e.lastIndex,t}var RL=Zd?Zd.prototype:void 0,OL=RL?RL.valueOf:void 0;function Exe(e){return OL?Object(OL.call(e)):{}}function Txe(e,t){var n=t?JO(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var Mxe="[object Boolean]",kxe="[object Date]",Pxe="[object Map]",Ixe="[object Number]",Axe="[object RegExp]",Rxe="[object Set]",Oxe="[object String]",_xe="[object Symbol]",Dxe="[object ArrayBuffer]",Lxe="[object DataView]",$xe="[object Float32Array]",jxe="[object Float64Array]",Fxe="[object Int8Array]",Nxe="[object Int16Array]",zxe="[object Int32Array]",Bxe="[object Uint8Array]",Hxe="[object Uint8ClampedArray]",Uxe="[object Uint16Array]",Gxe="[object Uint32Array]";function Vxe(e,t,n){var r=e.constructor;switch(t){case Dxe:return JO(e);case Mxe:case kxe:return new r(+e);case Lxe:return wxe(e,n);case $xe:case jxe:case Fxe:case Nxe:case zxe:case Bxe:case Hxe:case Uxe:case Gxe:return Txe(e,n);case Pxe:return new r;case Ixe:case Oxe:return new r(e);case Axe:return Sxe(e);case Rxe:return new r;case _xe:return Exe(e)}}var _L=Object.create,Wxe=function(){function e(){}return function(t){if(!l1(t))return{};if(_L)return _L(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();function qxe(e){return typeof e.constructor=="function"&&!KO(e)?Wxe(qO(e)):{}}var Yxe="[object Map]";function Kxe(e){return Ih(e)&&ou(e)==Yxe}var DL=S0&&S0.isMap,Xxe=DL?YO(DL):Kxe,Zxe="[object Set]";function Qxe(e){return Ih(e)&&ou(e)==Zxe}var LL=S0&&S0.isSet,Jxe=LL?YO(LL):Qxe,e1e=1,t1e=2,n1e=4,Hz="[object Arguments]",r1e="[object Array]",o1e="[object Boolean]",i1e="[object Date]",a1e="[object Error]",Uz="[object Function]",s1e="[object GeneratorFunction]",l1e="[object Map]",c1e="[object Number]",Gz="[object Object]",u1e="[object RegExp]",d1e="[object Set]",f1e="[object String]",p1e="[object Symbol]",h1e="[object WeakMap]",m1e="[object ArrayBuffer]",g1e="[object DataView]",b1e="[object Float32Array]",y1e="[object Float64Array]",v1e="[object Int8Array]",x1e="[object Int16Array]",w1e="[object Int32Array]",C1e="[object Uint8Array]",S1e="[object Uint8ClampedArray]",E1e="[object Uint16Array]",T1e="[object Uint32Array]",Hr={};Hr[Hz]=Hr[r1e]=Hr[m1e]=Hr[g1e]=Hr[o1e]=Hr[i1e]=Hr[b1e]=Hr[y1e]=Hr[v1e]=Hr[x1e]=Hr[w1e]=Hr[l1e]=Hr[c1e]=Hr[Gz]=Hr[u1e]=Hr[d1e]=Hr[f1e]=Hr[p1e]=Hr[C1e]=Hr[S1e]=Hr[E1e]=Hr[T1e]=!0;Hr[a1e]=Hr[Uz]=Hr[h1e]=!1;function Qv(e,t,n,r,o,i){var a,l=t&e1e,u=t&t1e,d=t&n1e;if(a!==void 0)return a;if(!l1(e))return e;var f=c1(e);if(f){if(a=xxe(e),!l)return jz(e,a)}else{var m=ou(e),g=m==Uz||m==s1e;if(Rz(e))return rxe(e,l);if(m==Gz||m==Hz||g&&!o){if(a=u||g?{}:qxe(e),!l)return u?cxe(e,txe(a,e)):sxe(e,Xve(a,e))}else{if(!Hr[m])return o?e:{};a=Vxe(e,m,l)}}i||(i=new tb);var w=i.get(e);if(w)return w;i.set(e,a),Jxe(e)?e.forEach(function(E){a.add(Qv(E,t,n,E,e,i))}):Xxe(e)&&e.forEach(function(E,T){a.set(T,Qv(E,t,n,T,e,i))});var C=d?u?dxe:uxe:u?ZO:XO,S=f?void 0:C(e);return tve(S||e,function(E,T){S&&(T=E,E=e[T]),Pz(a,T,Qv(E,t,n,T,e,i))}),a}var M1e=1,k1e=4;function yS(e){return Qv(e,M1e|k1e)}var PP,$L;function P1e(){if($L)return PP;$L=1;var e=Array.isArray,t=Object.keys,n=Object.prototype.hasOwnProperty,r=typeof Element<"u";function o(i,a){if(i===a)return!0;if(i&&a&&typeof i=="object"&&typeof a=="object"){var l=e(i),u=e(a),d,f,m;if(l&&u){if(f=i.length,f!=a.length)return!1;for(d=f;d--!==0;)if(!o(i[d],a[d]))return!1;return!0}if(l!=u)return!1;var g=i instanceof Date,w=a instanceof Date;if(g!=w)return!1;if(g&&w)return i.getTime()==a.getTime();var C=i instanceof RegExp,S=a instanceof RegExp;if(C!=S)return!1;if(C&&S)return i.toString()==a.toString();var E=t(i);if(f=E.length,f!==t(a).length)return!1;for(d=f;d--!==0;)if(!n.call(a,E[d]))return!1;if(r&&i instanceof Element&&a instanceof Element)return i===a;for(d=f;d--!==0;)if(m=E[d],!(m==="_owner"&&i.$$typeof)&&!o(i[m],a[m]))return!1;return!0}return i!==i&&a!==a}return PP=function(a,l){try{return o(a,l)}catch(u){if(u.message&&u.message.match(/stack|recursion/i)||u.number===-2146828260)return console.warn("Warning: react-fast-compare does not handle circular references.",u.name,u.message),!1;throw u}},PP}var I1e=P1e();const Lp=wu(I1e);var A1e=4;function jL(e){return Qv(e,A1e)}function Vz(e,t){for(var n=-1,r=e==null?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}var R1e="[object Symbol]";function e_(e){return typeof e=="symbol"||Ih(e)&&Ph(e)==R1e}var O1e="Expected a function";function t_(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(O1e);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return n.cache=i.set(o,a)||i,a};return n.cache=new(t_.Cache||uf),n}t_.Cache=uf;var _1e=500;function D1e(e){var t=t_(e,function(r){return n.size===_1e&&n.clear(),r}),n=t.cache;return t}var L1e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,$1e=/\\(\\)?/g,j1e=D1e(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(L1e,function(n,r,o,i){t.push(o?i.replace($1e,"$1"):r||n)}),t});function F1e(e){if(typeof e=="string"||e_(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var FL=Zd?Zd.prototype:void 0,NL=FL?FL.toString:void 0;function Wz(e){if(typeof e=="string")return e;if(c1(e))return Vz(e,Wz)+"";if(e_(e))return NL?NL.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function N1e(e){return e==null?"":Wz(e)}function qz(e){return c1(e)?Vz(e,F1e):e_(e)?[e]:jz(j1e(N1e(e)))}function Xo(){return Xo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xo.apply(this,arguments)}function Yz(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var NT=b.createContext(void 0);NT.displayName="FormikContext";NT.Provider;NT.Consumer;function z1e(){var e=b.useContext(NT);return e}var rl=function(t){return typeof t=="function"},zT=function(t){return t!==null&&typeof t=="object"},B1e=function(t){return String(Math.floor(Number(t)))===t},IP=function(t){return Object.prototype.toString.call(t)==="[object String]"},AP=function(t){return zT(t)&&rl(t.then)};function Fa(e,t,n,r){r===void 0&&(r=0);for(var o=qz(t);e&&r<o.length;)e=e[o[r++]];return r!==o.length&&!e||e===void 0?n:e}function ih(e,t,n){for(var r=jL(e),o=r,i=0,a=qz(t);i<a.length-1;i++){var l=a[i],u=Fa(e,a.slice(0,i+1));if(u&&(zT(u)||Array.isArray(u)))o=o[l]=jL(u);else{var d=a[i+1];o=o[l]=B1e(d)&&Number(d)>=0?[]:{}}}return(i===0?e:o)[a[i]]===n?e:(n===void 0?delete o[a[i]]:o[a[i]]=n,i===0&&n===void 0&&delete r[a[i]],r)}function Kz(e,t,n,r){n===void 0&&(n=new WeakMap),r===void 0&&(r={});for(var o=0,i=Object.keys(e);o<i.length;o++){var a=i[o],l=e[a];zT(l)?n.get(l)||(n.set(l,!0),r[a]=Array.isArray(l)?[]:{},Kz(l,t,n,r[a])):r[a]=t}return r}function H1e(e,t){switch(t.type){case"SET_VALUES":return Xo({},e,{values:t.payload});case"SET_TOUCHED":return Xo({},e,{touched:t.payload});case"SET_ERRORS":return Lp(e.errors,t.payload)?e:Xo({},e,{errors:t.payload});case"SET_STATUS":return Xo({},e,{status:t.payload});case"SET_ISSUBMITTING":return Xo({},e,{isSubmitting:t.payload});case"SET_ISVALIDATING":return Xo({},e,{isValidating:t.payload});case"SET_FIELD_VALUE":return Xo({},e,{values:ih(e.values,t.payload.field,t.payload.value)});case"SET_FIELD_TOUCHED":return Xo({},e,{touched:ih(e.touched,t.payload.field,t.payload.value)});case"SET_FIELD_ERROR":return Xo({},e,{errors:ih(e.errors,t.payload.field,t.payload.value)});case"RESET_FORM":return Xo({},e,t.payload);case"SET_FORMIK_STATE":return t.payload(e);case"SUBMIT_ATTEMPT":return Xo({},e,{touched:Kz(e.values,!0),isSubmitting:!0,submitCount:e.submitCount+1});case"SUBMIT_FAILURE":return Xo({},e,{isSubmitting:!1});case"SUBMIT_SUCCESS":return Xo({},e,{isSubmitting:!1});default:return e}}var Ap={},vS={};function Oh(e){var t=e.validateOnChange,n=t===void 0?!0:t,r=e.validateOnBlur,o=r===void 0?!0:r,i=e.validateOnMount,a=i===void 0?!1:i,l=e.isInitialValid,u=e.enableReinitialize,d=u===void 0?!1:u,f=e.onSubmit,m=Yz(e,["validateOnChange","validateOnBlur","validateOnMount","isInitialValid","enableReinitialize","onSubmit"]),g=Xo({validateOnChange:n,validateOnBlur:o,validateOnMount:a,onSubmit:f},m),w=b.useRef(g.initialValues),C=b.useRef(g.initialErrors||Ap),S=b.useRef(g.initialTouched||vS),E=b.useRef(g.initialStatus),T=b.useRef(!1),I=b.useRef({});b.useEffect(function(){return T.current=!0,function(){T.current=!1}},[]);var k=b.useState(0),R=k[1],P=b.useRef({values:yS(g.initialValues),errors:yS(g.initialErrors)||Ap,touched:yS(g.initialTouched)||vS,status:yS(g.initialStatus),isSubmitting:!1,isValidating:!1,submitCount:0}),O=P.current,j=b.useCallback(function(se){var De=P.current;P.current=H1e(De,se),De!==P.current&&R(function(ye){return ye+1})},[]),F=b.useCallback(function(se,De){return new Promise(function(ye,Pe){var qe=g.validate(se,De);qe==null?ye(Ap):AP(qe)?qe.then(function(Ke){ye(Ke||Ap)},function(Ke){Pe(Ke)}):ye(qe)})},[g.validate]),D=b.useCallback(function(se,De){var ye=g.validationSchema,Pe=rl(ye)?ye(De):ye,qe=De&&Pe.validateAt?Pe.validateAt(De,se):G1e(se,Pe);return new Promise(function(Ke,it){qe.then(function(){Ke(Ap)},function(ot){ot.name==="ValidationError"?Ke(U1e(ot)):it(ot)})})},[g.validationSchema]),_=b.useCallback(function(se,De){return new Promise(function(ye){return ye(I.current[se].validate(De))})},[]),$=b.useCallback(function(se){var De=Object.keys(I.current).filter(function(Pe){return rl(I.current[Pe].validate)}),ye=De.length>0?De.map(function(Pe){return _(Pe,Fa(se,Pe))}):[Promise.resolve("DO_NOT_DELETE_YOU_WILL_BE_FIRED")];return Promise.all(ye).then(function(Pe){return Pe.reduce(function(qe,Ke,it){return Ke==="DO_NOT_DELETE_YOU_WILL_BE_FIRED"||Ke&&(qe=ih(qe,De[it],Ke)),qe},{})})},[_]),B=b.useCallback(function(se){return Promise.all([$(se),g.validationSchema?D(se):{},g.validate?F(se):{}]).then(function(De){var ye=De[0],Pe=De[1],qe=De[2],Ke=$A.all([ye,Pe,qe],{arrayMerge:V1e});return Ke})},[g.validate,g.validationSchema,$,F,D]),V=fs(function(se){return se===void 0&&(se=O.values),j({type:"SET_ISVALIDATING",payload:!0}),B(se).then(function(De){return T.current&&(j({type:"SET_ISVALIDATING",payload:!1}),j({type:"SET_ERRORS",payload:De})),De})});b.useEffect(function(){a&&T.current===!0&&Lp(w.current,g.initialValues)&&V(w.current)},[a,V]);var q=b.useCallback(function(se){var De=se&&se.values?se.values:w.current,ye=se&&se.errors?se.errors:C.current?C.current:g.initialErrors||{},Pe=se&&se.touched?se.touched:S.current?S.current:g.initialTouched||{},qe=se&&se.status?se.status:E.current?E.current:g.initialStatus;w.current=De,C.current=ye,S.current=Pe,E.current=qe;var Ke=function(){j({type:"RESET_FORM",payload:{isSubmitting:!!se&&!!se.isSubmitting,errors:ye,touched:Pe,status:qe,values:De,isValidating:!!se&&!!se.isValidating,submitCount:se&&se.submitCount&&typeof se.submitCount=="number"?se.submitCount:0}})};if(g.onReset){var it=g.onReset(O.values,me);AP(it)?it.then(Ke):Ke()}else Ke()},[g.initialErrors,g.initialStatus,g.initialTouched,g.onReset]);b.useEffect(function(){T.current===!0&&!Lp(w.current,g.initialValues)&&d&&(w.current=g.initialValues,q(),a&&V(w.current))},[d,g.initialValues,q,a,V]),b.useEffect(function(){d&&T.current===!0&&!Lp(C.current,g.initialErrors)&&(C.current=g.initialErrors||Ap,j({type:"SET_ERRORS",payload:g.initialErrors||Ap}))},[d,g.initialErrors]),b.useEffect(function(){d&&T.current===!0&&!Lp(S.current,g.initialTouched)&&(S.current=g.initialTouched||vS,j({type:"SET_TOUCHED",payload:g.initialTouched||vS}))},[d,g.initialTouched]),b.useEffect(function(){d&&T.current===!0&&!Lp(E.current,g.initialStatus)&&(E.current=g.initialStatus,j({type:"SET_STATUS",payload:g.initialStatus}))},[d,g.initialStatus,g.initialTouched]);var G=fs(function(se){if(I.current[se]&&rl(I.current[se].validate)){var De=Fa(O.values,se),ye=I.current[se].validate(De);return AP(ye)?(j({type:"SET_ISVALIDATING",payload:!0}),ye.then(function(Pe){return Pe}).then(function(Pe){j({type:"SET_FIELD_ERROR",payload:{field:se,value:Pe}}),j({type:"SET_ISVALIDATING",payload:!1})})):(j({type:"SET_FIELD_ERROR",payload:{field:se,value:ye}}),Promise.resolve(ye))}else if(g.validationSchema)return j({type:"SET_ISVALIDATING",payload:!0}),D(O.values,se).then(function(Pe){return Pe}).then(function(Pe){j({type:"SET_FIELD_ERROR",payload:{field:se,value:Fa(Pe,se)}}),j({type:"SET_ISVALIDATING",payload:!1})});return Promise.resolve()}),N=b.useCallback(function(se,De){var ye=De.validate;I.current[se]={validate:ye}},[]),H=b.useCallback(function(se){delete I.current[se]},[]),Y=fs(function(se,De){j({type:"SET_TOUCHED",payload:se});var ye=De===void 0?o:De;return ye?V(O.values):Promise.resolve()}),Q=b.useCallback(function(se){j({type:"SET_ERRORS",payload:se})},[]),W=fs(function(se,De){var ye=rl(se)?se(O.values):se;j({type:"SET_VALUES",payload:ye});var Pe=De===void 0?n:De;return Pe?V(ye):Promise.resolve()}),K=b.useCallback(function(se,De){j({type:"SET_FIELD_ERROR",payload:{field:se,value:De}})},[]),J=fs(function(se,De,ye){j({type:"SET_FIELD_VALUE",payload:{field:se,value:De}});var Pe=ye===void 0?n:ye;return Pe?V(ih(O.values,se,De)):Promise.resolve()}),ae=b.useCallback(function(se,De){var ye=De,Pe=se,qe;if(!IP(se)){se.persist&&se.persist();var Ke=se.target?se.target:se.currentTarget,it=Ke.type,ot=Ke.name,gt=Ke.id,Ue=Ke.value,jt=Ke.checked;Ke.outerHTML;var Ht=Ke.options,pt=Ke.multiple;ye=De||ot||gt,Pe=/number|range/.test(it)?(qe=parseFloat(Ue),isNaN(qe)?"":qe):/checkbox/.test(it)?q1e(Fa(O.values,ye),jt,Ue):Ht&&pt?W1e(Ht):Ue}ye&&J(ye,Pe)},[J,O.values]),ce=fs(function(se){if(IP(se))return function(De){return ae(De,se)};ae(se)}),de=fs(function(se,De,ye){De===void 0&&(De=!0),j({type:"SET_FIELD_TOUCHED",payload:{field:se,value:De}});var Pe=ye===void 0?o:ye;return Pe?V(O.values):Promise.resolve()}),re=b.useCallback(function(se,De){se.persist&&se.persist();var ye=se.target,Pe=ye.name,qe=ye.id;ye.outerHTML;var Ke=De||Pe||qe;de(Ke,!0)},[de]),ke=fs(function(se){if(IP(se))return function(De){return re(De,se)};re(se)}),Ce=b.useCallback(function(se){rl(se)?j({type:"SET_FORMIK_STATE",payload:se}):j({type:"SET_FORMIK_STATE",payload:function(){return se}})},[]),ie=b.useCallback(function(se){j({type:"SET_STATUS",payload:se})},[]),le=b.useCallback(function(se){j({type:"SET_ISSUBMITTING",payload:se})},[]),ve=fs(function(){return j({type:"SUBMIT_ATTEMPT"}),V().then(function(se){var De=se instanceof Error,ye=!De&&Object.keys(se).length===0;if(ye){var Pe;try{if(Pe=be(),Pe===void 0)return}catch(qe){throw qe}return Promise.resolve(Pe).then(function(qe){return T.current&&j({type:"SUBMIT_SUCCESS"}),qe}).catch(function(qe){if(T.current)throw j({type:"SUBMIT_FAILURE"}),qe})}else if(T.current&&(j({type:"SUBMIT_FAILURE"}),De))throw se})}),ue=fs(function(se){se&&se.preventDefault&&rl(se.preventDefault)&&se.preventDefault(),se&&se.stopPropagation&&rl(se.stopPropagation)&&se.stopPropagation(),ve().catch(function(De){console.warn("Warning: An unhandled error was caught from submitForm()",De)})}),me={resetForm:q,validateForm:V,validateField:G,setErrors:Q,setFieldError:K,setFieldTouched:de,setFieldValue:J,setStatus:ie,setSubmitting:le,setTouched:Y,setValues:W,setFormikState:Ce,submitForm:ve},be=fs(function(){return f(O.values,me)}),Fe=fs(function(se){se&&se.preventDefault&&rl(se.preventDefault)&&se.preventDefault(),se&&se.stopPropagation&&rl(se.stopPropagation)&&se.stopPropagation(),q()}),Ze=b.useCallback(function(se){return{value:Fa(O.values,se),error:Fa(O.errors,se),touched:!!Fa(O.touched,se),initialValue:Fa(w.current,se),initialTouched:!!Fa(S.current,se),initialError:Fa(C.current,se)}},[O.errors,O.touched,O.values]),We=b.useCallback(function(se){return{setValue:function(ye,Pe){return J(se,ye,Pe)},setTouched:function(ye,Pe){return de(se,ye,Pe)},setError:function(ye){return K(se,ye)}}},[J,de,K]),_e=b.useCallback(function(se){var De=zT(se),ye=De?se.name:se,Pe=Fa(O.values,ye),qe={name:ye,value:Pe,onChange:ce,onBlur:ke};if(De){var Ke=se.type,it=se.value,ot=se.as,gt=se.multiple;Ke==="checkbox"?it===void 0?qe.checked=!!Pe:(qe.checked=!!(Array.isArray(Pe)&&~Pe.indexOf(it)),qe.value=it):Ke==="radio"?(qe.checked=Pe===it,qe.value=it):ot==="select"&&gt&&(qe.value=qe.value||[],qe.multiple=!0)}return qe},[ke,ce,O.values]),ft=b.useMemo(function(){return!Lp(w.current,O.values)},[w.current,O.values]),nt=b.useMemo(function(){return typeof l<"u"?ft?O.errors&&Object.keys(O.errors).length===0:l!==!1&&rl(l)?l(g):l:O.errors&&Object.keys(O.errors).length===0},[l,ft,O.errors,g]),dt=Xo({},O,{initialValues:w.current,initialErrors:C.current,initialTouched:S.current,initialStatus:E.current,handleBlur:ke,handleChange:ce,handleReset:Fe,handleSubmit:ue,resetForm:q,setErrors:Q,setFormikState:Ce,setFieldTouched:de,setFieldValue:J,setFieldError:K,setStatus:ie,setSubmitting:le,setTouched:Y,setValues:W,submitForm:ve,validateForm:V,validateField:G,isValid:nt,dirty:ft,unregisterField:H,registerField:N,getFieldProps:_e,getFieldMeta:Ze,getFieldHelpers:We,validateOnBlur:o,validateOnChange:n,validateOnMount:a});return dt}function U1e(e){var t={};if(e.inner){if(e.inner.length===0)return ih(t,e.path,e.message);for(var o=e.inner,n=Array.isArray(o),r=0,o=n?o:o[Symbol.iterator]();;){var i;if(n){if(r>=o.length)break;i=o[r++]}else{if(r=o.next(),r.done)break;i=r.value}var a=i;Fa(t,a.path)||(t=ih(t,a.path,a.message))}}return t}function G1e(e,t,n,r){n===void 0&&(n=!1);var o=BA(e);return t[n?"validateSync":"validate"](o,{abortEarly:!1,context:o})}function BA(e){var t=Array.isArray(e)?[]:{};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=String(n);Array.isArray(e[r])===!0?t[r]=e[r].map(function(o){return Array.isArray(o)===!0||hL(o)?BA(o):o!==""?o:void 0}):hL(e[r])?t[r]=BA(e[r]):t[r]=e[r]!==""?e[r]:void 0}return t}function V1e(e,t,n){var r=e.slice();return t.forEach(function(i,a){if(typeof r[a]>"u"){var l=n.clone!==!1,u=l&&n.isMergeableObject(i);r[a]=u?$A(Array.isArray(i)?[]:{},i,n):i}else n.isMergeableObject(i)?r[a]=$A(e[a],i,n):e.indexOf(i)===-1&&r.push(i)}),r}function W1e(e){return Array.from(e).filter(function(t){return t.selected}).map(function(t){return t.value})}function q1e(e,t,n){if(typeof e=="boolean")return!!t;var r=[],o=!1,i=-1;if(Array.isArray(e))r=e,i=e.indexOf(n),o=i>=0;else if(!n||n=="true"||n=="false")return!!t;return t&&n&&!o?r.concat(n):o?r.slice(0,i).concat(r.slice(i+1)):r}var Y1e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?b.useLayoutEffect:b.useEffect;function fs(e){var t=b.useRef(e);return Y1e(function(){t.current=e}),b.useCallback(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return t.current.apply(void 0,r)},[])}var K1e=b.forwardRef(function(e,t){var n=e.action,r=Yz(e,["action"]),o=n??"#",i=z1e(),a=i.handleReset,l=i.handleSubmit;return b.createElement("form",Xo({onSubmit:l,ref:t,onReset:a,action:o},r))});K1e.displayName="Form";var Dv={exports:{}};/**
 * @license
 * Lodash <https://lodash.com/>
 * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
 * Released under MIT license <https://lodash.com/license>
 * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
 */var X1e=Dv.exports,zL;function Z1e(){return zL||(zL=1,function(e,t){(function(){var n,r="4.17.21",o=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",a="Expected a function",l="Invalid `variable` option passed into `_.template`",u="__lodash_hash_undefined__",d=500,f="__lodash_placeholder__",m=1,g=2,w=4,C=1,S=2,E=1,T=2,I=4,k=8,R=16,P=32,O=64,j=128,F=256,D=512,_=30,$="...",B=800,V=16,q=1,G=2,N=3,H=1/0,Y=9007199254740991,Q=17976931348623157e292,W=NaN,K=4294967295,J=K-1,ae=K>>>1,ce=[["ary",j],["bind",E],["bindKey",T],["curry",k],["curryRight",R],["flip",D],["partial",P],["partialRight",O],["rearg",F]],de="[object Arguments]",re="[object Array]",ke="[object AsyncFunction]",Ce="[object Boolean]",ie="[object Date]",le="[object DOMException]",ve="[object Error]",ue="[object Function]",me="[object GeneratorFunction]",be="[object Map]",Fe="[object Number]",Ze="[object Null]",We="[object Object]",_e="[object Promise]",ft="[object Proxy]",nt="[object RegExp]",dt="[object Set]",se="[object String]",De="[object Symbol]",ye="[object Undefined]",Pe="[object WeakMap]",qe="[object WeakSet]",Ke="[object ArrayBuffer]",it="[object DataView]",ot="[object Float32Array]",gt="[object Float64Array]",Ue="[object Int8Array]",jt="[object Int16Array]",Ht="[object Int32Array]",pt="[object Uint8Array]",ht="[object Uint8ClampedArray]",Ct="[object Uint16Array]",Nt="[object Uint32Array]",Yn=/\b__p \+= '';/g,pr=/\b(__p \+=) '' \+/g,Go=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Jn=/&(?:amp|lt|gt|quot|#39);/g,Er=/[&<>"']/g,Xr=RegExp(Jn.source),Vr=RegExp(Er.source),Ar=/<%-([\s\S]+?)%>/g,$o=/<%([\s\S]+?)%>/g,Kt=/<%=([\s\S]+?)%>/g,he=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fe=/^\w*$/,xe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ze=/[\\^$.*+?()[\]{}|]/g,Qe=RegExp(ze.source),bt=/^\s+/,_t=/\s/,St=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Dt=/\{\n\/\* \[wrapped with (.+)\] \*/,Ut=/,? & /,Gt=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Et=/[()=,{}\[\]\/\s]/,Lt=/\\(\\)?/g,gn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Kn=/\w*$/,hr=/^[-+]0x[0-9a-f]+$/i,Ne=/^0b[01]+$/i,je=/^\[object .+?Constructor\]$/,Tt=/^0o[0-7]+$/i,Zt=/^(?:0|[1-9]\d*)$/,Ft=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vn=/($^)/,ir=/['\n\r\u2028\u2029\\]/g,$r="\\ud800-\\udfff",Ds="\\u0300-\\u036f",gi="\\ufe20-\\ufe2f",Ji="\\u20d0-\\u20ff",fn=Ds+gi+Ji,Zr="\\u2700-\\u27bf",dn="a-z\\xdf-\\xf6\\xf8-\\xff",fo="\\xac\\xb1\\xd7\\xf7",Vo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",er="\\u2000-\\u206f",El=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ou="A-Z\\xc0-\\xd6\\xd8-\\xde",oi="\\ufe0e\\ufe0f",cb=fo+Vo+er+El,ub="['’]",Hh="["+$r+"]",db="["+cb+"]",Mc="["+fn+"]",k1="\\d+",ea="["+Zr+"]",Uh="["+dn+"]",fb="[^"+$r+cb+k1+Zr+dn+Ou+"]",mf="\\ud83c[\\udffb-\\udfff]",_u="(?:"+Mc+"|"+mf+")",pb="[^"+$r+"]",Gh="(?:\\ud83c[\\udde6-\\uddff]){2}",Tl="[\\ud800-\\udbff][\\udc00-\\udfff]",Du="["+Ou+"]",hb="\\u200d",mb="(?:"+Uh+"|"+fb+")",gb="(?:"+Du+"|"+fb+")",P1="(?:"+ub+"(?:d|ll|m|re|s|t|ve))?",I1="(?:"+ub+"(?:D|LL|M|RE|S|T|VE))?",gf=_u+"?",Vh="["+oi+"]?",bb="(?:"+hb+"(?:"+[pb,Gh,Tl].join("|")+")"+Vh+gf+")*",Lu="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",$u="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",yb=Vh+gf+bb,vb="(?:"+[ea,Gh,Tl].join("|")+")"+yb,A1="(?:"+[pb+Mc+"?",Mc,Gh,Tl,Hh].join("|")+")",bf=RegExp(ub,"g"),Ls=RegExp(Mc,"g"),yf=RegExp(mf+"(?="+mf+")|"+A1+yb,"g"),vf=RegExp([Du+"?"+Uh+"+"+P1+"(?="+[db,Du,"$"].join("|")+")",gb+"+"+I1+"(?="+[db,Du+mb,"$"].join("|")+")",Du+"?"+mb+"+"+P1,Du+"+"+I1,$u,Lu,k1,vb].join("|"),"g"),Ml=RegExp("["+hb+$r+fn+oi+"]"),xb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Wh=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],R1=-1,mr={};mr[ot]=mr[gt]=mr[Ue]=mr[jt]=mr[Ht]=mr[pt]=mr[ht]=mr[Ct]=mr[Nt]=!0,mr[de]=mr[re]=mr[Ke]=mr[Ce]=mr[it]=mr[ie]=mr[ve]=mr[ue]=mr[be]=mr[Fe]=mr[We]=mr[nt]=mr[dt]=mr[se]=mr[Pe]=!1;var ar={};ar[de]=ar[re]=ar[Ke]=ar[it]=ar[Ce]=ar[ie]=ar[ot]=ar[gt]=ar[Ue]=ar[jt]=ar[Ht]=ar[be]=ar[Fe]=ar[We]=ar[nt]=ar[dt]=ar[se]=ar[De]=ar[pt]=ar[ht]=ar[Ct]=ar[Nt]=!0,ar[ve]=ar[ue]=ar[Pe]=!1;var O1={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},bi={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},kc={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qh={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},xf=parseFloat,xM=parseInt,Yh=typeof GC=="object"&&GC&&GC.Object===Object&&GC,wb=typeof self=="object"&&self&&self.Object===Object&&self,lo=Yh||wb||Function("return this")(),ju=t&&!t.nodeType&&t,kl=ju&&!0&&e&&!e.nodeType&&e,_1=kl&&kl.exports===ju,Cb=_1&&Yh.process,ta=function(){try{var Me=kl&&kl.require&&kl.require("util").types;return Me||Cb&&Cb.binding&&Cb.binding("util")}catch{}}(),Kh=ta&&ta.isArrayBuffer,D1=ta&&ta.isDate,L1=ta&&ta.isMap,$1=ta&&ta.isRegExp,j1=ta&&ta.isSet,F1=ta&&ta.isTypedArray;function yi(Me,Je,Ge){switch(Ge.length){case 0:return Me.call(Je);case 1:return Me.call(Je,Ge[0]);case 2:return Me.call(Je,Ge[0],Ge[1]);case 3:return Me.call(Je,Ge[0],Ge[1],Ge[2])}return Me.apply(Je,Ge)}function wM(Me,Je,Ge,It){for(var on=-1,Un=Me==null?0:Me.length;++on<Un;){var po=Me[on];Je(It,po,Ge(po),Me)}return It}function na(Me,Je){for(var Ge=-1,It=Me==null?0:Me.length;++Ge<It&&Je(Me[Ge],Ge,Me)!==!1;);return Me}function CM(Me,Je){for(var Ge=Me==null?0:Me.length;Ge--&&Je(Me[Ge],Ge,Me)!==!1;);return Me}function N1(Me,Je){for(var Ge=-1,It=Me==null?0:Me.length;++Ge<It;)if(!Je(Me[Ge],Ge,Me))return!1;return!0}function Ja(Me,Je){for(var Ge=-1,It=Me==null?0:Me.length,on=0,Un=[];++Ge<It;){var po=Me[Ge];Je(po,Ge,Me)&&(Un[on++]=po)}return Un}function Xh(Me,Je){var Ge=Me==null?0:Me.length;return!!Ge&&Fu(Me,Je,0)>-1}function Sb(Me,Je,Ge){for(var It=-1,on=Me==null?0:Me.length;++It<on;)if(Ge(Je,Me[It]))return!0;return!1}function jr(Me,Je){for(var Ge=-1,It=Me==null?0:Me.length,on=Array(It);++Ge<It;)on[Ge]=Je(Me[Ge],Ge,Me);return on}function $s(Me,Je){for(var Ge=-1,It=Je.length,on=Me.length;++Ge<It;)Me[on+Ge]=Je[Ge];return Me}function Eb(Me,Je,Ge,It){var on=-1,Un=Me==null?0:Me.length;for(It&&Un&&(Ge=Me[++on]);++on<Un;)Ge=Je(Ge,Me[on],on,Me);return Ge}function SM(Me,Je,Ge,It){var on=Me==null?0:Me.length;for(It&&on&&(Ge=Me[--on]);on--;)Ge=Je(Ge,Me[on],on,Me);return Ge}function Tb(Me,Je){for(var Ge=-1,It=Me==null?0:Me.length;++Ge<It;)if(Je(Me[Ge],Ge,Me))return!0;return!1}var EM=Qh("length");function TM(Me){return Me.split("")}function MM(Me){return Me.match(Gt)||[]}function z1(Me,Je,Ge){var It;return Ge(Me,function(on,Un,po){if(Je(on,Un,po))return It=Un,!1}),It}function Zh(Me,Je,Ge,It){for(var on=Me.length,Un=Ge+(It?1:-1);It?Un--:++Un<on;)if(Je(Me[Un],Un,Me))return Un;return-1}function Fu(Me,Je,Ge){return Je===Je?AM(Me,Je,Ge):Zh(Me,Nu,Ge)}function Mb(Me,Je,Ge,It){for(var on=Ge-1,Un=Me.length;++on<Un;)if(It(Me[on],Je))return on;return-1}function Nu(Me){return Me!==Me}function B1(Me,Je){var Ge=Me==null?0:Me.length;return Ge?em(Me,Je)/Ge:W}function Qh(Me){return function(Je){return Je==null?n:Je[Me]}}function Jh(Me){return function(Je){return Me==null?n:Me[Je]}}function kb(Me,Je,Ge,It,on){return on(Me,function(Un,po,Gn){Ge=It?(It=!1,Un):Je(Ge,Un,po,Gn)}),Ge}function H1(Me,Je){var Ge=Me.length;for(Me.sort(Je);Ge--;)Me[Ge]=Me[Ge].value;return Me}function em(Me,Je){for(var Ge,It=-1,on=Me.length;++It<on;){var Un=Je(Me[It]);Un!==n&&(Ge=Ge===n?Un:Ge+Un)}return Ge}function Pl(Me,Je){for(var Ge=-1,It=Array(Me);++Ge<Me;)It[Ge]=Je(Ge);return It}function kM(Me,Je){return jr(Je,function(Ge){return[Ge,Me[Ge]]})}function U1(Me){return Me&&Me.slice(0,Ib(Me)+1).replace(bt,"")}function ji(Me){return function(Je){return Me(Je)}}function tm(Me,Je){return jr(Je,function(Ge){return Me[Ge]})}function zu(Me,Je){return Me.has(Je)}function Bu(Me,Je){for(var Ge=-1,It=Me.length;++Ge<It&&Fu(Je,Me[Ge],0)>-1;);return Ge}function Hu(Me,Je){for(var Ge=Me.length;Ge--&&Fu(Je,Me[Ge],0)>-1;);return Ge}function PM(Me,Je){for(var Ge=Me.length,It=0;Ge--;)Me[Ge]===Je&&++It;return It}var nm=Jh(O1),G1=Jh(bi);function V1(Me){return"\\"+qh[Me]}function Pb(Me,Je){return Me==null?n:Me[Je]}function Il(Me){return Ml.test(Me)}function W1(Me){return xb.test(Me)}function q1(Me){for(var Je,Ge=[];!(Je=Me.next()).done;)Ge.push(Je.value);return Ge}function rm(Me){var Je=-1,Ge=Array(Me.size);return Me.forEach(function(It,on){Ge[++Je]=[on,It]}),Ge}function Y1(Me,Je){return function(Ge){return Me(Je(Ge))}}function Al(Me,Je){for(var Ge=-1,It=Me.length,on=0,Un=[];++Ge<It;){var po=Me[Ge];(po===Je||po===f)&&(Me[Ge]=f,Un[on++]=Ge)}return Un}function om(Me){var Je=-1,Ge=Array(Me.size);return Me.forEach(function(It){Ge[++Je]=It}),Ge}function IM(Me){var Je=-1,Ge=Array(Me.size);return Me.forEach(function(It){Ge[++Je]=[It,It]}),Ge}function AM(Me,Je,Ge){for(var It=Ge-1,on=Me.length;++It<on;)if(Me[It]===Je)return It;return-1}function Fi(Me,Je,Ge){for(var It=Ge+1;It--;)if(Me[It]===Je)return It;return It}function es(Me){return Il(Me)?X1(Me):EM(Me)}function ra(Me){return Il(Me)?Ab(Me):TM(Me)}function Ib(Me){for(var Je=Me.length;Je--&&_t.test(Me.charAt(Je)););return Je}var K1=Jh(kc);function X1(Me){for(var Je=yf.lastIndex=0;yf.test(Me);)++Je;return Je}function Ab(Me){return Me.match(yf)||[]}function RM(Me){return Me.match(vf)||[]}var Uu=function Me(Je){Je=Je==null?lo:Rl.defaults(lo.Object(),Je,Rl.pick(lo,Wh));var Ge=Je.Array,It=Je.Date,on=Je.Error,Un=Je.Function,po=Je.Math,Gn=Je.Object,im=Je.RegExp,Z1=Je.String,Ni=Je.TypeError,am=Ge.prototype,OM=Un.prototype,Gu=Gn.prototype,wf=Je["__core-js_shared__"],Cf=OM.toString,Xn=Gu.hasOwnProperty,ka=0,Rb=function(){var h=/[^.]+$/.exec(wf&&wf.keys&&wf.keys.IE_PROTO||"");return h?"Symbol(src)_1."+h:""}(),ii=Gu.toString,oa=Cf.call(Gn),Vu=lo._,Ob=im("^"+Cf.call(Xn).replace(ze,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Pc=_1?Je.Buffer:n,Pa=Je.Symbol,Wu=Je.Uint8Array,Ic=Pc?Pc.allocUnsafe:n,Sf=Y1(Gn.getPrototypeOf,Gn),Ef=Gn.create,Ac=Gu.propertyIsEnumerable,sm=am.splice,vi=Pa?Pa.isConcatSpreadable:n,Rc=Pa?Pa.iterator:n,ai=Pa?Pa.toStringTag:n,Tf=function(){try{var h=zl(Gn,"defineProperty");return h({},"",{}),h}catch{}}(),lm=Je.clearTimeout!==lo.clearTimeout&&Je.clearTimeout,Oc=It&&It.now!==lo.Date.now&&It.now,_b=Je.setTimeout!==lo.setTimeout&&Je.setTimeout,qu=po.ceil,js=po.floor,Ol=Gn.getOwnPropertySymbols,cm=Pc?Pc.isBuffer:n,Mf=Je.isFinite,ia=am.join,aa=Y1(Gn.keys,Gn),Rr=po.max,Fr=po.min,Fs=It.now,_c=Je.parseInt,Db=po.random,Lb=am.reverse,kf=zl(Je,"DataView"),yo=zl(Je,"Map"),Nr=zl(Je,"Promise"),Ln=zl(Je,"Set"),Ia=zl(Je,"WeakMap"),xi=zl(Gn,"create"),Yu=Ia&&new Ia,sa={},Q1=qs(kf),J1=qs(yo),Pf=qs(Nr),If=qs(Ln),ew=qs(Ia),_l=Pa?Pa.prototype:n,Dc=_l?_l.valueOf:n,Dl=_l?_l.toString:n;function te(h){if(Wr(h)&&!ln(h)&&!(h instanceof Pn)){if(h instanceof wi)return h;if(Xn.call(h,"__wrapped__"))return xo(h)}return new wi(h)}var zi=function(){function h(){}return function(v){if(!Br(v))return{};if(Ef)return Ef(v);h.prototype=v;var A=new h;return h.prototype=n,A}}();function la(){}function wi(h,v){this.__wrapped__=h,this.__actions__=[],this.__chain__=!!v,this.__index__=0,this.__values__=n}te.templateSettings={escape:Ar,evaluate:$o,interpolate:Kt,variable:"",imports:{_:te}},te.prototype=la.prototype,te.prototype.constructor=te,wi.prototype=zi(la.prototype),wi.prototype.constructor=wi;function Pn(h){this.__wrapped__=h,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=K,this.__views__=[]}function Af(){var h=new Pn(this.__wrapped__);return h.__actions__=vo(this.__actions__),h.__dir__=this.__dir__,h.__filtered__=this.__filtered__,h.__iteratees__=vo(this.__iteratees__),h.__takeCount__=this.__takeCount__,h.__views__=vo(this.__views__),h}function um(){if(this.__filtered__){var h=new Pn(this);h.__dir__=-1,h.__filtered__=!0}else h=this.clone(),h.__dir__*=-1;return h}function Lc(){var h=this.__wrapped__.value(),v=this.__dir__,A=ln(h),U=v<0,Z=A?h.length:0,oe=_w(0,Z,this.__views__),pe=oe.start,Se=oe.end,Ae=Se-pe,lt=U?Se:pe-1,ut=this.__iteratees__,mt=ut.length,At=0,qt=Fr(Ae,this.__takeCount__);if(!A||!U&&Z==Ae&&qt==Ae)return vw(h,this.__actions__);var an=[];e:for(;Ae--&&At<qt;){lt+=v;for(var An=-1,sn=h[lt];++An<mt;){var Fn=ut[An],Wn=Fn.iteratee,$a=Fn.type,qi=Wn(sn);if($a==G)sn=qi;else if(!qi){if($a==q)continue e;break e}}an[At++]=sn}return an}Pn.prototype=zi(la.prototype),Pn.prototype.constructor=Pn;function Qr(h){var v=-1,A=h==null?0:h.length;for(this.clear();++v<A;){var U=h[v];this.set(U[0],U[1])}}function dm(){this.__data__=xi?xi(null):{},this.size=0}function tw(h){var v=this.has(h)&&delete this.__data__[h];return this.size-=v?1:0,v}function _M(h){var v=this.__data__;if(xi){var A=v[h];return A===u?n:A}return Xn.call(v,h)?v[h]:n}function DM(h){var v=this.__data__;return xi?v[h]!==n:Xn.call(v,h)}function LM(h,v){var A=this.__data__;return this.size+=this.has(h)?0:1,A[h]=xi&&v===n?u:v,this}Qr.prototype.clear=dm,Qr.prototype.delete=tw,Qr.prototype.get=_M,Qr.prototype.has=DM,Qr.prototype.set=LM;function xr(h){var v=-1,A=h==null?0:h.length;for(this.clear();++v<A;){var U=h[v];this.set(U[0],U[1])}}function $b(){this.__data__=[],this.size=0}function Rf(h){var v=this.__data__,A=Zu(v,h);if(A<0)return!1;var U=v.length-1;return A==U?v.pop():sm.call(v,A,1),--this.size,!0}function Of(h){var v=this.__data__,A=Zu(v,h);return A<0?n:v[A][1]}function jb(h){return Zu(this.__data__,h)>-1}function Ku(h,v){var A=this.__data__,U=Zu(A,h);return U<0?(++this.size,A.push([h,v])):A[U][1]=v,this}xr.prototype.clear=$b,xr.prototype.delete=Rf,xr.prototype.get=Of,xr.prototype.has=jb,xr.prototype.set=Ku;function Ci(h){var v=-1,A=h==null?0:h.length;for(this.clear();++v<A;){var U=h[v];this.set(U[0],U[1])}}function $M(){this.size=0,this.__data__={hash:new Qr,map:new(yo||xr),string:new Qr}}function nw(h){var v=rd(this,h).delete(h);return this.size-=v?1:0,v}function jM(h){return rd(this,h).get(h)}function rw(h){return rd(this,h).has(h)}function $c(h,v){var A=rd(this,h),U=A.size;return A.set(h,v),this.size+=A.size==U?0:1,this}Ci.prototype.clear=$M,Ci.prototype.delete=nw,Ci.prototype.get=jM,Ci.prototype.has=rw,Ci.prototype.set=$c;function Ns(h){var v=-1,A=h==null?0:h.length;for(this.__data__=new Ci;++v<A;)this.add(h[v])}function fm(h){return this.__data__.set(h,u),this}function ow(h){return this.__data__.has(h)}Ns.prototype.add=Ns.prototype.push=fm,Ns.prototype.has=ow;function si(h){var v=this.__data__=new xr(h);this.size=v.size}function iw(){this.__data__=new xr,this.size=0}function pm(h){var v=this.__data__,A=v.delete(h);return this.size=v.size,A}function Fb(h){return this.__data__.get(h)}function aw(h){return this.__data__.has(h)}function hm(h,v){var A=this.__data__;if(A instanceof xr){var U=A.__data__;if(!yo||U.length<o-1)return U.push([h,v]),this.size=++A.size,this;A=this.__data__=new Ci(U)}return A.set(h,v),this.size=A.size,this}si.prototype.clear=iw,si.prototype.delete=pm,si.prototype.get=Fb,si.prototype.has=aw,si.prototype.set=hm;function Nb(h,v){var A=ln(h),U=!A&&Zs(h),Z=!A&&!U&&Xl(h),oe=!A&&!U&&!Z&&bd(h),pe=A||U||Z||oe,Se=pe?Pl(h.length,Z1):[],Ae=Se.length;for(var lt in h)(v||Xn.call(h,lt))&&!(pe&&(lt=="length"||Z&&(lt=="offset"||lt=="parent")||oe&&(lt=="buffer"||lt=="byteLength"||lt=="byteOffset")||_a(lt,Ae)))&&Se.push(lt);return Se}function Xu(h){var v=h.length;return v?h[Em(0,v-1)]:n}function sw(h,v){return ip(vo(h),Ra(v,0,h.length))}function lw(h){return ip(vo(h))}function ts(h,v,A){(A!==n&&!Ii(h[v],A)||A===n&&!(v in h))&&Aa(h,v,A)}function jc(h,v,A){var U=h[v];(!(Xn.call(h,v)&&Ii(U,A))||A===n&&!(v in h))&&Aa(h,v,A)}function Zu(h,v){for(var A=h.length;A--;)if(Ii(h[A][0],v))return A;return-1}function Ll(h,v,A,U){return Bs(h,function(Z,oe,pe){v(U,Z,A(Z),pe)}),U}function zs(h,v){return h&&Ti(v,So(v),h)}function _f(h,v){return h&&Ti(v,Ro(v),h)}function Aa(h,v,A){v=="__proto__"&&Tf?Tf(h,v,{configurable:!0,enumerable:!0,value:A,writable:!0}):h[v]=A}function Df(h,v){for(var A=-1,U=v.length,Z=Ge(U),oe=h==null;++A<U;)Z[A]=oe?n:vp(h,v[A]);return Z}function Ra(h,v,A){return h===h&&(A!==n&&(h=h<=A?h:A),v!==n&&(h=h>=v?h:v)),h}function Wo(h,v,A,U,Z,oe){var pe,Se=v&m,Ae=v&g,lt=v&w;if(A&&(pe=Z?A(h,U,Z,oe):A(h)),pe!==n)return pe;if(!Br(h))return h;var ut=ln(h);if(ut){if(pe=dy(h),!Se)return vo(h,pe)}else{var mt=Ao(h),At=mt==ue||mt==me;if(Xl(h))return ry(h,Se);if(mt==We||mt==de||At&&!Z){if(pe=Ae||At?{}:fy(h),!Se)return Ae?qf(h,_f(pe,h)):Am(h,zs(pe,h))}else{if(!ar[mt])return Z?h:{};pe=py(h,mt,Se)}}oe||(oe=new si);var qt=oe.get(h);if(qt)return qt;oe.set(h,pe),TC(h)?h.forEach(function(sn){pe.add(Wo(sn,v,A,sn,h,oe))}):tg(h)&&h.forEach(function(sn,Fn){pe.set(Fn,Wo(sn,v,A,Fn,h,oe))});var an=lt?Ae?Dm:_m:Ae?Ro:So,An=ut?n:an(h);return na(An||h,function(sn,Fn){An&&(Fn=sn,sn=h[Fn]),jc(pe,Fn,Wo(sn,v,A,Fn,h,oe))}),pe}function cw(h){var v=So(h);return function(A){return zb(A,h,v)}}function zb(h,v,A){var U=A.length;if(h==null)return!U;for(h=Gn(h);U--;){var Z=A[U],oe=v[Z],pe=h[Z];if(pe===n&&!(Z in h)||!oe(pe))return!1}return!0}function Fc(h,v,A){if(typeof h!="function")throw new Ni(a);return id(function(){h.apply(n,A)},v)}function $l(h,v,A,U){var Z=-1,oe=Xh,pe=!0,Se=h.length,Ae=[],lt=v.length;if(!Se)return Ae;A&&(v=jr(v,ji(A))),U?(oe=Sb,pe=!1):v.length>=o&&(oe=zu,pe=!1,v=new Ns(v));e:for(;++Z<Se;){var ut=h[Z],mt=A==null?ut:A(ut);if(ut=U||ut!==0?ut:0,pe&&mt===mt){for(var At=lt;At--;)if(v[At]===mt)continue e;Ae.push(ut)}else oe(v,mt,U)||Ae.push(ut)}return Ae}var Bs=sy(qo),mm=sy(Ju,!0);function Bb(h,v){var A=!0;return Bs(h,function(U,Z,oe){return A=!!v(U,Z,oe),A}),A}function Oa(h,v,A){for(var U=-1,Z=h.length;++U<Z;){var oe=h[U],pe=v(oe);if(pe!=null&&(Se===n?pe===pe&&!ui(pe):A(pe,Se)))var Se=pe,Ae=oe}return Ae}function Sn(h,v,A,U){var Z=h.length;for(A=pn(A),A<0&&(A=-A>Z?0:Z+A),U=U===n||U>Z?Z:pn(U),U<0&&(U+=Z),U=A>U?0:us(U);A<U;)h[A++]=v;return h}function sr(h,v){var A=[];return Bs(h,function(U,Z,oe){v(U,Z,oe)&&A.push(U)}),A}function $n(h,v,A,U,Z){var oe=-1,pe=h.length;for(A||(A=Vs),Z||(Z=[]);++oe<pe;){var Se=h[oe];v>0&&A(Se)?v>1?$n(Se,v-1,A,U,Z):$s(Z,Se):U||(Z[Z.length]=Se)}return Z}var Qu=Vc(),Nc=Vc(!0);function qo(h,v){return h&&Qu(h,v,So)}function Ju(h,v){return h&&Nc(h,v,So)}function jl(h,v){return Ja(v,function(A){return Da(h[A])})}function ca(h,v){v=Us(v,h);for(var A=0,U=v.length;h!=null&&A<U;)h=h[tr(v[A++])];return A&&A==U?h:n}function uw(h,v,A){var U=v(h);return ln(h)?U:$s(U,A(h))}function jn(h){return h==null?h===n?ye:Ze:ai&&ai in Gn(h)?Ow(h):Fw(h)}function Lf(h,v){return h>v}function Hb(h,v){return h!=null&&Xn.call(h,v)}function dw(h,v){return h!=null&&v in Gn(h)}function fw(h,v,A){return h>=Fr(v,A)&&h<Rr(v,A)}function Ub(h,v,A){for(var U=A?Sb:Xh,Z=h[0].length,oe=h.length,pe=oe,Se=Ge(oe),Ae=1/0,lt=[];pe--;){var ut=h[pe];pe&&v&&(ut=jr(ut,ji(v))),Ae=Fr(ut.length,Ae),Se[pe]=!A&&(v||Z>=120&&ut.length>=120)?new Ns(pe&&ut):n}ut=h[0];var mt=-1,At=Se[0];e:for(;++mt<Z&&lt.length<Ae;){var qt=ut[mt],an=v?v(qt):qt;if(qt=A||qt!==0?qt:0,!(At?zu(At,an):U(lt,an,A))){for(pe=oe;--pe;){var An=Se[pe];if(!(An?zu(An,an):U(h[pe],an,A)))continue e}At&&At.push(an),lt.push(qt)}}return lt}function Gb(h,v,A,U){return qo(h,function(Z,oe,pe){v(U,A(Z),oe,pe)}),U}function zc(h,v,A){v=Us(v,h),h=od(h,v);var U=h==null?h:h[tr(Yo(v))];return U==null?n:yi(U,h,A)}function gm(h){return Wr(h)&&jn(h)==de}function Si(h){return Wr(h)&&jn(h)==Ke}function ho(h){return Wr(h)&&jn(h)==ie}function Bc(h,v,A,U,Z){return h===v?!0:h==null||v==null||!Wr(h)&&!Wr(v)?h!==h&&v!==v:$f(h,v,A,U,Bc,Z)}function $f(h,v,A,U,Z,oe){var pe=ln(h),Se=ln(v),Ae=pe?re:Ao(h),lt=Se?re:Ao(v);Ae=Ae==de?We:Ae,lt=lt==de?We:lt;var ut=Ae==We,mt=lt==We,At=Ae==lt;if(At&&Xl(h)){if(!Xl(v))return!1;pe=!0,ut=!1}if(At&&!ut)return oe||(oe=new si),pe||bd(h)?Aw(h,v,A,U,Z,oe):Rw(h,v,Ae,A,U,Z,oe);if(!(A&C)){var qt=ut&&Xn.call(h,"__wrapped__"),an=mt&&Xn.call(v,"__wrapped__");if(qt||an){var An=qt?h.value():h,sn=an?v.value():v;return oe||(oe=new si),Z(An,sn,A,U,oe)}}return At?(oe||(oe=new si),Io(h,v,A,U,Z,oe)):!1}function bm(h){return Wr(h)&&Ao(h)==be}function jf(h,v,A,U){var Z=A.length,oe=Z,pe=!U;if(h==null)return!oe;for(h=Gn(h);Z--;){var Se=A[Z];if(pe&&Se[2]?Se[1]!==h[Se[0]]:!(Se[0]in h))return!1}for(;++Z<oe;){Se=A[Z];var Ae=Se[0],lt=h[Ae],ut=Se[1];if(pe&&Se[2]){if(lt===n&&!(Ae in h))return!1}else{var mt=new si;if(U)var At=U(lt,ut,Ae,h,v,mt);if(!(At===n?Bc(ut,lt,C|S,U,mt):At))return!1}}return!0}function ns(h){if(!Br(h)||zm(h))return!1;var v=Da(h)?Ob:je;return v.test(qs(h))}function ym(h){return Wr(h)&&jn(h)==nt}function Vb(h){return Wr(h)&&Ao(h)==dt}function Wb(h){return Wr(h)&&Xc(h.length)&&!!mr[jn(h)]}function qb(h){return typeof h=="function"?h:h==null?$e:typeof h=="object"?ln(h)?wm(h[0],h[1]):Kb(h):Vn(h)}function vm(h){if(!wr(h))return aa(h);var v=[];for(var A in Gn(h))Xn.call(h,A)&&A!="constructor"&&v.push(A);return v}function pw(h){if(!Br(h))return Bl(h);var v=wr(h),A=[];for(var U in h)U=="constructor"&&(v||!Xn.call(h,U))||A.push(U);return A}function xm(h,v){return h<v}function Yb(h,v){var A=-1,U=wo(h)?Ge(h.length):[];return Bs(h,function(Z,oe,pe){U[++A]=v(Z,oe,pe)}),U}function Kb(h){var v=$m(h);return v.length==1&&v[0][2]?$w(v[0][0],v[0][1]):function(A){return A===h||jf(A,h,v)}}function wm(h,v){return Fm(h)&&Lw(v)?$w(tr(h),v):function(A){var U=vp(A,h);return U===n&&U===v?wd(A,h):Bc(v,U,C|S)}}function Ff(h,v,A,U,Z){h!==v&&Qu(v,function(oe,pe){if(Z||(Z=new si),Br(oe))FM(h,v,pe,A,Ff,U,Z);else{var Se=U?U(Bm(h,pe),oe,pe+"",h,v,Z):n;Se===n&&(Se=oe),ts(h,pe,Se)}},Ro)}function FM(h,v,A,U,Z,oe,pe){var Se=Bm(h,A),Ae=Bm(v,A),lt=pe.get(Ae);if(lt){ts(h,A,lt);return}var ut=oe?oe(Se,Ae,A+"",h,v,pe):n,mt=ut===n;if(mt){var At=ln(Ae),qt=!At&&Xl(Ae),an=!At&&!qt&&bd(Ae);ut=Ae,At||qt||an?ln(Se)?ut=Se:to(Se)?ut=vo(Se):qt?(mt=!1,ut=ry(Ae,!0)):an?(mt=!1,ut=iy(Ae,!0)):ut=[]:pa(Ae)||Zs(Ae)?(ut=Se,Zs(Se)?ut=PC(Se):(!Br(Se)||Da(Se))&&(ut=fy(Ae))):mt=!1}mt&&(pe.set(Ae,ut),Z(ut,Ae,U,oe,pe),pe.delete(Ae)),ts(h,A,ut)}function Xb(h,v){var A=h.length;if(A)return v+=v<0?A:0,_a(v,A)?h[v]:n}function Zb(h,v,A){v.length?v=jr(v,function(oe){return ln(oe)?function(pe){return ca(pe,oe.length===1?oe[0]:oe)}:oe}):v=[$e];var U=-1;v=jr(v,ji(Qt()));var Z=Yb(h,function(oe,pe,Se){var Ae=jr(v,function(lt){return lt(oe)});return{criteria:Ae,index:++U,value:oe}});return H1(Z,function(oe,pe){return Sw(oe,pe,A)})}function hw(h,v){return Cm(h,v,function(A,U){return wd(h,U)})}function Cm(h,v,A){for(var U=-1,Z=v.length,oe={};++U<Z;){var pe=v[U],Se=ca(h,pe);A(Se,pe)&&td(oe,Us(pe,h),Se)}return oe}function mw(h){return function(v){return ca(v,h)}}function Sm(h,v,A,U){var Z=U?Mb:Fu,oe=-1,pe=v.length,Se=h;for(h===v&&(v=vo(v)),A&&(Se=jr(h,ji(A)));++oe<pe;)for(var Ae=0,lt=v[oe],ut=A?A(lt):lt;(Ae=Z(Se,ut,Ae,U))>-1;)Se!==h&&sm.call(Se,Ae,1),sm.call(h,Ae,1);return h}function Qb(h,v){for(var A=h?v.length:0,U=A-1;A--;){var Z=v[A];if(A==U||Z!==oe){var oe=Z;_a(Z)?sm.call(h,Z,1):Hf(h,Z)}}return h}function Em(h,v){return h+js(Db()*(v-h+1))}function gw(h,v,A,U){for(var Z=-1,oe=Rr(qu((v-h)/(A||1)),0),pe=Ge(oe);oe--;)pe[U?oe:++Z]=h,h+=A;return pe}function Jb(h,v){var A="";if(!h||v<1||v>Y)return A;do v%2&&(A+=h),v=js(v/2),v&&(h+=h);while(v);return A}function xn(h,v){return rp(hy(h,v,$e),h+"")}function ed(h){return Xu(Sd(h))}function Tm(h,v){var A=Sd(h);return ip(A,Ra(v,0,A.length))}function td(h,v,A,U){if(!Br(h))return h;v=Us(v,h);for(var Z=-1,oe=v.length,pe=oe-1,Se=h;Se!=null&&++Z<oe;){var Ae=tr(v[Z]),lt=A;if(Ae==="__proto__"||Ae==="constructor"||Ae==="prototype")return h;if(Z!=pe){var ut=Se[Ae];lt=U?U(ut,Ae,Se):n,lt===n&&(lt=Br(ut)?ut:_a(v[Z+1])?[]:{})}jc(Se,Ae,lt),Se=Se[Ae]}return h}var Nf=Yu?function(h,v){return Yu.set(h,v),h}:$e,zf=Tf?function(h,v){return Tf(h,"toString",{configurable:!0,enumerable:!1,value:Le(v),writable:!0})}:$e;function bw(h){return ip(Sd(h))}function Bi(h,v,A){var U=-1,Z=h.length;v<0&&(v=-v>Z?0:Z+v),A=A>Z?Z:A,A<0&&(A+=Z),Z=v>A?0:A-v>>>0,v>>>=0;for(var oe=Ge(Z);++U<Z;)oe[U]=h[U+v];return oe}function yw(h,v){var A;return Bs(h,function(U,Z,oe){return A=v(U,Z,oe),!A}),!!A}function Bf(h,v,A){var U=0,Z=h==null?U:h.length;if(typeof v=="number"&&v===v&&Z<=ae){for(;U<Z;){var oe=U+Z>>>1,pe=h[oe];pe!==null&&!ui(pe)&&(A?pe<=v:pe<v)?U=oe+1:Z=oe}return Z}return Mm(h,v,$e,A)}function Mm(h,v,A,U){var Z=0,oe=h==null?0:h.length;if(oe===0)return 0;v=A(v);for(var pe=v!==v,Se=v===null,Ae=ui(v),lt=v===n;Z<oe;){var ut=js((Z+oe)/2),mt=A(h[ut]),At=mt!==n,qt=mt===null,an=mt===mt,An=ui(mt);if(pe)var sn=U||an;else lt?sn=an&&(U||At):Se?sn=an&&At&&(U||!qt):Ae?sn=an&&At&&!qt&&(U||!An):qt||An?sn=!1:sn=U?mt<=v:mt<v;sn?Z=ut+1:oe=ut}return Fr(oe,J)}function ey(h,v){for(var A=-1,U=h.length,Z=0,oe=[];++A<U;){var pe=h[A],Se=v?v(pe):pe;if(!A||!Ii(Se,Ae)){var Ae=Se;oe[Z++]=pe===0?0:pe}}return oe}function km(h){return typeof h=="number"?h:ui(h)?W:+h}function Ei(h){if(typeof h=="string")return h;if(ln(h))return jr(h,Ei)+"";if(ui(h))return Dl?Dl.call(h):"";var v=h+"";return v=="0"&&1/h==-1/0?"-0":v}function Hs(h,v,A){var U=-1,Z=Xh,oe=h.length,pe=!0,Se=[],Ae=Se;if(A)pe=!1,Z=Sb;else if(oe>=o){var lt=v?null:Pw(h);if(lt)return om(lt);pe=!1,Z=zu,Ae=new Ns}else Ae=v?[]:Se;e:for(;++U<oe;){var ut=h[U],mt=v?v(ut):ut;if(ut=A||ut!==0?ut:0,pe&&mt===mt){for(var At=Ae.length;At--;)if(Ae[At]===mt)continue e;v&&Ae.push(mt),Se.push(ut)}else Z(Ae,mt,A)||(Ae!==Se&&Ae.push(mt),Se.push(ut))}return Se}function Hf(h,v){return v=Us(v,h),h=od(h,v),h==null||delete h[tr(Yo(v))]}function ty(h,v,A,U){return td(h,v,A(ca(h,v)),U)}function Uf(h,v,A,U){for(var Z=h.length,oe=U?Z:-1;(U?oe--:++oe<Z)&&v(h[oe],oe,h););return A?Bi(h,U?0:oe,U?oe+1:Z):Bi(h,U?oe+1:0,U?Z:oe)}function vw(h,v){var A=h;return A instanceof Pn&&(A=A.value()),Eb(v,function(U,Z){return Z.func.apply(Z.thisArg,$s([U],Z.args))},A)}function Gf(h,v,A){var U=h.length;if(U<2)return U?Hs(h[0]):[];for(var Z=-1,oe=Ge(U);++Z<U;)for(var pe=h[Z],Se=-1;++Se<U;)Se!=Z&&(oe[Z]=$l(oe[Z]||pe,h[Se],v,A));return Hs($n(oe,1),v,A)}function ny(h,v,A){for(var U=-1,Z=h.length,oe=v.length,pe={};++U<Z;){var Se=U<oe?v[U]:n;A(pe,h[U],Se)}return pe}function Pm(h){return to(h)?h:[]}function Vf(h){return typeof h=="function"?h:$e}function Us(h,v){return ln(h)?h:Fm(h,v)?[h]:as(Zn(h))}var xw=xn;function Fl(h,v,A){var U=h.length;return A=A===n?U:A,!v&&A>=U?h:Bi(h,v,A)}var ww=lm||function(h){return lo.clearTimeout(h)};function ry(h,v){if(v)return h.slice();var A=h.length,U=Ic?Ic(A):new h.constructor(A);return h.copy(U),U}function Hc(h){var v=new h.constructor(h.byteLength);return new Wu(v).set(new Wu(h)),v}function oy(h,v){var A=v?Hc(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.byteLength)}function Im(h){var v=new h.constructor(h.source,Kn.exec(h));return v.lastIndex=h.lastIndex,v}function Cw(h){return Dc?Gn(Dc.call(h)):{}}function iy(h,v){var A=v?Hc(h.buffer):h.buffer;return new h.constructor(A,h.byteOffset,h.length)}function Wf(h,v){if(h!==v){var A=h!==n,U=h===null,Z=h===h,oe=ui(h),pe=v!==n,Se=v===null,Ae=v===v,lt=ui(v);if(!Se&&!lt&&!oe&&h>v||oe&&pe&&Ae&&!Se&&!lt||U&&pe&&Ae||!A&&Ae||!Z)return 1;if(!U&&!oe&&!lt&&h<v||lt&&A&&Z&&!U&&!oe||Se&&A&&Z||!pe&&Z||!Ae)return-1}return 0}function Sw(h,v,A){for(var U=-1,Z=h.criteria,oe=v.criteria,pe=Z.length,Se=A.length;++U<pe;){var Ae=Wf(Z[U],oe[U]);if(Ae){if(U>=Se)return Ae;var lt=A[U];return Ae*(lt=="desc"?-1:1)}}return h.index-v.index}function ay(h,v,A,U){for(var Z=-1,oe=h.length,pe=A.length,Se=-1,Ae=v.length,lt=Rr(oe-pe,0),ut=Ge(Ae+lt),mt=!U;++Se<Ae;)ut[Se]=v[Se];for(;++Z<pe;)(mt||Z<oe)&&(ut[A[Z]]=h[Z]);for(;lt--;)ut[Se++]=h[Z++];return ut}function Ew(h,v,A,U){for(var Z=-1,oe=h.length,pe=-1,Se=A.length,Ae=-1,lt=v.length,ut=Rr(oe-Se,0),mt=Ge(ut+lt),At=!U;++Z<ut;)mt[Z]=h[Z];for(var qt=Z;++Ae<lt;)mt[qt+Ae]=v[Ae];for(;++pe<Se;)(At||Z<oe)&&(mt[qt+A[pe]]=h[Z++]);return mt}function vo(h,v){var A=-1,U=h.length;for(v||(v=Ge(U));++A<U;)v[A]=h[A];return v}function Ti(h,v,A,U){var Z=!A;A||(A={});for(var oe=-1,pe=v.length;++oe<pe;){var Se=v[oe],Ae=U?U(A[Se],h[Se],Se,A,h):n;Ae===n&&(Ae=h[Se]),Z?Aa(A,Se,Ae):jc(A,Se,Ae)}return A}function Am(h,v){return Ti(h,Jf(h),v)}function qf(h,v){return Ti(h,jm(h),v)}function Uc(h,v){return function(A,U){var Z=ln(A)?wM:Ll,oe=v?v():{};return Z(A,h,Qt(U,2),oe)}}function Gc(h){return xn(function(v,A){var U=-1,Z=A.length,oe=Z>1?A[Z-1]:n,pe=Z>2?A[2]:n;for(oe=h.length>3&&typeof oe=="function"?(Z--,oe):n,pe&&ci(A[0],A[1],pe)&&(oe=Z<3?n:oe,Z=1),v=Gn(v);++U<Z;){var Se=A[U];Se&&h(v,Se,U,oe)}return v})}function sy(h,v){return function(A,U){if(A==null)return A;if(!wo(A))return h(A,U);for(var Z=A.length,oe=v?Z:-1,pe=Gn(A);(v?oe--:++oe<Z)&&U(pe[oe],oe,pe)!==!1;);return A}}function Vc(h){return function(v,A,U){for(var Z=-1,oe=Gn(v),pe=U(v),Se=pe.length;Se--;){var Ae=pe[h?Se:++Z];if(A(oe[Ae],Ae,oe)===!1)break}return v}}function Tw(h,v,A){var U=v&E,Z=ua(h);function oe(){var pe=this&&this!==lo&&this instanceof oe?Z:h;return pe.apply(U?A:this,arguments)}return oe}function Hi(h){return function(v){v=Zn(v);var A=Il(v)?ra(v):n,U=A?A[0]:v.charAt(0),Z=A?Fl(A,1).join(""):v.slice(1);return U[h]()+Z}}function li(h){return function(v){return Eb(M(Qs(v).replace(bf,"")),h,"")}}function ua(h){return function(){var v=arguments;switch(v.length){case 0:return new h;case 1:return new h(v[0]);case 2:return new h(v[0],v[1]);case 3:return new h(v[0],v[1],v[2]);case 4:return new h(v[0],v[1],v[2],v[3]);case 5:return new h(v[0],v[1],v[2],v[3],v[4]);case 6:return new h(v[0],v[1],v[2],v[3],v[4],v[5]);case 7:return new h(v[0],v[1],v[2],v[3],v[4],v[5],v[6])}var A=zi(h.prototype),U=h.apply(A,v);return Br(U)?U:A}}function Mw(h,v,A){var U=ua(h);function Z(){for(var oe=arguments.length,pe=Ge(oe),Se=oe,Ae=qc(Z);Se--;)pe[Se]=arguments[Se];var lt=oe<3&&pe[0]!==Ae&&pe[oe-1]!==Ae?[]:Al(pe,Ae);if(oe-=lt.length,oe<A)return ly(h,v,Jr,Z.placeholder,n,pe,lt,n,n,A-oe);var ut=this&&this!==lo&&this instanceof Z?U:h;return yi(ut,this,pe)}return Z}function Gs(h){return function(v,A,U){var Z=Gn(v);if(!wo(v)){var oe=Qt(A,3);v=So(v),A=function(Se){return oe(Z[Se],Se,Z)}}var pe=h(v,A,U);return pe>-1?Z[oe?v[pe]:pe]:n}}function rs(h){return Or(function(v){var A=v.length,U=A,Z=wi.prototype.thru;for(h&&v.reverse();U--;){var oe=v[U];if(typeof oe!="function")throw new Ni(a);if(Z&&!pe&&Qf(oe)=="wrapper")var pe=new wi([],!0)}for(U=pe?U:A;++U<A;){oe=v[U];var Se=Qf(oe),Ae=Se=="wrapper"?Lm(oe):n;Ae&&Nm(Ae[0])&&Ae[1]==(j|k|P|F)&&!Ae[4].length&&Ae[9]==1?pe=pe[Qf(Ae[0])].apply(pe,Ae[3]):pe=oe.length==1&&Nm(oe)?pe[Se]():pe.thru(oe)}return function(){var lt=arguments,ut=lt[0];if(pe&&lt.length==1&&ln(ut))return pe.plant(ut).value();for(var mt=0,At=A?v[mt].apply(this,lt):ut;++mt<A;)At=v[mt].call(this,At);return At}})}function Jr(h,v,A,U,Z,oe,pe,Se,Ae,lt){var ut=v&j,mt=v&E,At=v&T,qt=v&(k|R),an=v&D,An=At?n:ua(h);function sn(){for(var Fn=arguments.length,Wn=Ge(Fn),$a=Fn;$a--;)Wn[$a]=arguments[$a];if(qt)var qi=qc(sn),ja=PM(Wn,qi);if(U&&(Wn=ay(Wn,U,Z,qt)),oe&&(Wn=Ew(Wn,oe,pe,qt)),Fn-=ja,qt&&Fn<lt){var Eo=Al(Wn,qi);return ly(h,v,Jr,sn.placeholder,A,Wn,Eo,Se,Ae,lt-Fn)}var Js=mt?A:this,Zc=At?Js[h]:h;return Fn=Wn.length,Se?Wn=is(Wn,Se):an&&Fn>1&&Wn.reverse(),ut&&Ae<Fn&&(Wn.length=Ae),this&&this!==lo&&this instanceof sn&&(Zc=An||ua(Zc)),Zc.apply(Js,Wn)}return sn}function Yf(h,v){return function(A,U){return Gb(A,h,v(U),{})}}function nd(h,v){return function(A,U){var Z;if(A===n&&U===n)return v;if(A!==n&&(Z=A),U!==n){if(Z===n)return U;typeof A=="string"||typeof U=="string"?(A=Ei(A),U=Ei(U)):(A=km(A),U=km(U)),Z=h(A,U)}return Z}}function Kf(h){return Or(function(v){return v=jr(v,ji(Qt())),xn(function(A){var U=this;return h(v,function(Z){return yi(Z,U,A)})})})}function Xf(h,v){v=v===n?" ":Ei(v);var A=v.length;if(A<2)return A?Jb(v,h):v;var U=Jb(v,qu(h/es(v)));return Il(v)?Fl(ra(U),0,h).join(""):U.slice(0,h)}function kw(h,v,A,U){var Z=v&E,oe=ua(h);function pe(){for(var Se=-1,Ae=arguments.length,lt=-1,ut=U.length,mt=Ge(ut+Ae),At=this&&this!==lo&&this instanceof pe?oe:h;++lt<ut;)mt[lt]=U[lt];for(;Ae--;)mt[lt++]=arguments[++Se];return yi(At,Z?A:this,mt)}return pe}function Nl(h){return function(v,A,U){return U&&typeof U!="number"&&ci(v,A,U)&&(A=U=n),v=cs(v),A===n?(A=v,v=0):A=cs(A),U=U===n?v<A?1:-1:cs(U),gw(v,A,U,h)}}function Wc(h){return function(v,A){return typeof v=="string"&&typeof A=="string"||(v=ha(v),A=ha(A)),h(v,A)}}function ly(h,v,A,U,Z,oe,pe,Se,Ae,lt){var ut=v&k,mt=ut?pe:n,At=ut?n:pe,qt=ut?oe:n,an=ut?n:oe;v|=ut?P:O,v&=~(ut?O:P),v&I||(v&=-4);var An=[h,v,Z,qt,mt,an,At,Se,Ae,lt],sn=A.apply(n,An);return Nm(h)&&Hm(sn,An),sn.placeholder=U,Um(sn,h,v)}function Rm(h){var v=po[h];return function(A,U){if(A=ha(A),U=U==null?0:Fr(pn(U),292),U&&Mf(A)){var Z=(Zn(A)+"e").split("e"),oe=v(Z[0]+"e"+(+Z[1]+U));return Z=(Zn(oe)+"e").split("e"),+(Z[0]+"e"+(+Z[1]-U))}return v(A)}}var Pw=Ln&&1/om(new Ln([,-0]))[1]==H?function(h){return new Ln(h)}:$t;function Zf(h){return function(v){var A=Ao(v);return A==be?rm(v):A==dt?IM(v):kM(v,h(v))}}function os(h,v,A,U,Z,oe,pe,Se){var Ae=v&T;if(!Ae&&typeof h!="function")throw new Ni(a);var lt=U?U.length:0;if(lt||(v&=-97,U=Z=n),pe=pe===n?pe:Rr(pn(pe),0),Se=Se===n?Se:pn(Se),lt-=Z?Z.length:0,v&O){var ut=U,mt=Z;U=Z=n}var At=Ae?n:Lm(h),qt=[h,v,A,U,Z,ut,mt,oe,pe,Se];if(At&&np(qt,At),h=qt[0],v=qt[1],A=qt[2],U=qt[3],Z=qt[4],Se=qt[9]=qt[9]===n?Ae?0:h.length:Rr(qt[9]-lt,0),!Se&&v&(k|R)&&(v&=-25),!v||v==E)var an=Tw(h,v,A);else v==k||v==R?an=Mw(h,v,Se):(v==P||v==(E|P))&&!Z.length?an=kw(h,v,A,U):an=Jr.apply(n,qt);var An=At?Nf:Hm;return Um(An(an,qt),h,v)}function Om(h,v,A,U){return h===n||Ii(h,Gu[A])&&!Xn.call(U,A)?v:h}function cy(h,v,A,U,Z,oe){return Br(h)&&Br(v)&&(oe.set(v,h),Ff(h,v,n,cy,oe),oe.delete(v)),h}function Iw(h){return pa(h)?n:h}function Aw(h,v,A,U,Z,oe){var pe=A&C,Se=h.length,Ae=v.length;if(Se!=Ae&&!(pe&&Ae>Se))return!1;var lt=oe.get(h),ut=oe.get(v);if(lt&&ut)return lt==v&&ut==h;var mt=-1,At=!0,qt=A&S?new Ns:n;for(oe.set(h,v),oe.set(v,h);++mt<Se;){var an=h[mt],An=v[mt];if(U)var sn=pe?U(An,an,mt,v,h,oe):U(an,An,mt,h,v,oe);if(sn!==n){if(sn)continue;At=!1;break}if(qt){if(!Tb(v,function(Fn,Wn){if(!zu(qt,Wn)&&(an===Fn||Z(an,Fn,A,U,oe)))return qt.push(Wn)})){At=!1;break}}else if(!(an===An||Z(an,An,A,U,oe))){At=!1;break}}return oe.delete(h),oe.delete(v),At}function Rw(h,v,A,U,Z,oe,pe){switch(A){case it:if(h.byteLength!=v.byteLength||h.byteOffset!=v.byteOffset)return!1;h=h.buffer,v=v.buffer;case Ke:return!(h.byteLength!=v.byteLength||!oe(new Wu(h),new Wu(v)));case Ce:case ie:case Fe:return Ii(+h,+v);case ve:return h.name==v.name&&h.message==v.message;case nt:case se:return h==v+"";case be:var Se=rm;case dt:var Ae=U&C;if(Se||(Se=om),h.size!=v.size&&!Ae)return!1;var lt=pe.get(h);if(lt)return lt==v;U|=S,pe.set(h,v);var ut=Aw(Se(h),Se(v),U,Z,oe,pe);return pe.delete(h),ut;case De:if(Dc)return Dc.call(h)==Dc.call(v)}return!1}function Io(h,v,A,U,Z,oe){var pe=A&C,Se=_m(h),Ae=Se.length,lt=_m(v),ut=lt.length;if(Ae!=ut&&!pe)return!1;for(var mt=Ae;mt--;){var At=Se[mt];if(!(pe?At in v:Xn.call(v,At)))return!1}var qt=oe.get(h),an=oe.get(v);if(qt&&an)return qt==v&&an==h;var An=!0;oe.set(h,v),oe.set(v,h);for(var sn=pe;++mt<Ae;){At=Se[mt];var Fn=h[At],Wn=v[At];if(U)var $a=pe?U(Wn,Fn,At,v,h,oe):U(Fn,Wn,At,h,v,oe);if(!($a===n?Fn===Wn||Z(Fn,Wn,A,U,oe):$a)){An=!1;break}sn||(sn=At=="constructor")}if(An&&!sn){var qi=h.constructor,ja=v.constructor;qi!=ja&&"constructor"in h&&"constructor"in v&&!(typeof qi=="function"&&qi instanceof qi&&typeof ja=="function"&&ja instanceof ja)&&(An=!1)}return oe.delete(h),oe.delete(v),An}function Or(h){return rp(hy(h,n,ki),h+"")}function _m(h){return uw(h,So,Jf)}function Dm(h){return uw(h,Ro,jm)}var Lm=Yu?function(h){return Yu.get(h)}:$t;function Qf(h){for(var v=h.name+"",A=sa[v],U=Xn.call(sa,v)?A.length:0;U--;){var Z=A[U],oe=Z.func;if(oe==null||oe==h)return Z.name}return v}function qc(h){var v=Xn.call(te,"placeholder")?te:h;return v.placeholder}function Qt(){var h=te.iteratee||tn;return h=h===tn?qb:h,arguments.length?h(arguments[0],arguments[1]):h}function rd(h,v){var A=h.__data__;return Ws(v)?A[typeof v=="string"?"string":"hash"]:A.map}function $m(h){for(var v=So(h),A=v.length;A--;){var U=v[A],Z=h[U];v[A]=[U,Z,Lw(Z)]}return v}function zl(h,v){var A=Pb(h,v);return ns(A)?A:n}function Ow(h){var v=Xn.call(h,ai),A=h[ai];try{h[ai]=n;var U=!0}catch{}var Z=ii.call(h);return U&&(v?h[ai]=A:delete h[ai]),Z}var Jf=Ol?function(h){return h==null?[]:(h=Gn(h),Ja(Ol(h),function(v){return Ac.call(h,v)}))}:wk,jm=Ol?function(h){for(var v=[];h;)$s(v,Jf(h)),h=Sf(h);return v}:wk,Ao=jn;(kf&&Ao(new kf(new ArrayBuffer(1)))!=it||yo&&Ao(new yo)!=be||Nr&&Ao(Nr.resolve())!=_e||Ln&&Ao(new Ln)!=dt||Ia&&Ao(new Ia)!=Pe)&&(Ao=function(h){var v=jn(h),A=v==We?h.constructor:n,U=A?qs(A):"";if(U)switch(U){case Q1:return it;case J1:return be;case Pf:return _e;case If:return dt;case ew:return Pe}return v});function _w(h,v,A){for(var U=-1,Z=A.length;++U<Z;){var oe=A[U],pe=oe.size;switch(oe.type){case"drop":h+=pe;break;case"dropRight":v-=pe;break;case"take":v=Fr(v,h+pe);break;case"takeRight":h=Rr(h,v-pe);break}}return{start:h,end:v}}function uy(h){var v=h.match(Dt);return v?v[1].split(Ut):[]}function ep(h,v,A){v=Us(v,h);for(var U=-1,Z=v.length,oe=!1;++U<Z;){var pe=tr(v[U]);if(!(oe=h!=null&&A(h,pe)))break;h=h[pe]}return oe||++U!=Z?oe:(Z=h==null?0:h.length,!!Z&&Xc(Z)&&_a(pe,Z)&&(ln(h)||Zs(h)))}function dy(h){var v=h.length,A=new h.constructor(v);return v&&typeof h[0]=="string"&&Xn.call(h,"index")&&(A.index=h.index,A.input=h.input),A}function fy(h){return typeof h.constructor=="function"&&!wr(h)?zi(Sf(h)):{}}function py(h,v,A){var U=h.constructor;switch(v){case Ke:return Hc(h);case Ce:case ie:return new U(+h);case it:return oy(h,A);case ot:case gt:case Ue:case jt:case Ht:case pt:case ht:case Ct:case Nt:return iy(h,A);case be:return new U;case Fe:case se:return new U(h);case nt:return Im(h);case dt:return new U;case De:return Cw(h)}}function Dw(h,v){var A=v.length;if(!A)return h;var U=A-1;return v[U]=(A>1?"& ":"")+v[U],v=v.join(A>2?", ":" "),h.replace(St,`{
/* [wrapped with `+v+`] */
`)}function Vs(h){return ln(h)||Zs(h)||!!(vi&&h&&h[vi])}function _a(h,v){var A=typeof h;return v=v??Y,!!v&&(A=="number"||A!="symbol"&&Zt.test(h))&&h>-1&&h%1==0&&h<v}function ci(h,v,A){if(!Br(A))return!1;var U=typeof v;return(U=="number"?wo(A)&&_a(v,A.length):U=="string"&&v in A)?Ii(A[v],h):!1}function Fm(h,v){if(ln(h))return!1;var A=typeof h;return A=="number"||A=="symbol"||A=="boolean"||h==null||ui(h)?!0:fe.test(h)||!he.test(h)||v!=null&&h in Gn(v)}function Ws(h){var v=typeof h;return v=="string"||v=="number"||v=="symbol"||v=="boolean"?h!=="__proto__":h===null}function Nm(h){var v=Qf(h),A=te[v];if(typeof A!="function"||!(v in Pn.prototype))return!1;if(h===A)return!0;var U=Lm(A);return!!U&&h===U[0]}function zm(h){return!!Rb&&Rb in h}var tp=wf?Da:Ck;function wr(h){var v=h&&h.constructor,A=typeof v=="function"&&v.prototype||Gu;return h===A}function Lw(h){return h===h&&!Br(h)}function $w(h,v){return function(A){return A==null?!1:A[h]===v&&(v!==n||h in Gn(A))}}function jw(h){var v=pp(h,function(U){return A.size===d&&A.clear(),U}),A=v.cache;return v}function np(h,v){var A=h[1],U=v[1],Z=A|U,oe=Z<(E|T|j),pe=U==j&&A==k||U==j&&A==F&&h[7].length<=v[8]||U==(j|F)&&v[7].length<=v[8]&&A==k;if(!(oe||pe))return h;U&E&&(h[2]=v[2],Z|=A&E?0:I);var Se=v[3];if(Se){var Ae=h[3];h[3]=Ae?ay(Ae,Se,v[4]):Se,h[4]=Ae?Al(h[3],f):v[4]}return Se=v[5],Se&&(Ae=h[5],h[5]=Ae?Ew(Ae,Se,v[6]):Se,h[6]=Ae?Al(h[5],f):v[6]),Se=v[7],Se&&(h[7]=Se),U&j&&(h[8]=h[8]==null?v[8]:Fr(h[8],v[8])),h[9]==null&&(h[9]=v[9]),h[0]=v[0],h[1]=Z,h}function Bl(h){var v=[];if(h!=null)for(var A in Gn(h))v.push(A);return v}function Fw(h){return ii.call(h)}function hy(h,v,A){return v=Rr(v===n?h.length-1:v,0),function(){for(var U=arguments,Z=-1,oe=Rr(U.length-v,0),pe=Ge(oe);++Z<oe;)pe[Z]=U[v+Z];Z=-1;for(var Se=Ge(v+1);++Z<v;)Se[Z]=U[Z];return Se[v]=A(pe),yi(h,this,Se)}}function od(h,v){return v.length<2?h:ca(h,Bi(v,0,-1))}function is(h,v){for(var A=h.length,U=Fr(v.length,A),Z=vo(h);U--;){var oe=v[U];h[U]=_a(oe,A)?Z[oe]:n}return h}function Bm(h,v){if(!(v==="constructor"&&typeof h[v]=="function")&&v!="__proto__")return h[v]}var Hm=op(Nf),id=_b||function(h,v){return lo.setTimeout(h,v)},rp=op(zf);function Um(h,v,A){var U=v+"";return rp(h,Dw(U,Nw(uy(U),A)))}function op(h){var v=0,A=0;return function(){var U=Fs(),Z=V-(U-A);if(A=U,Z>0){if(++v>=B)return arguments[0]}else v=0;return h.apply(n,arguments)}}function ip(h,v){var A=-1,U=h.length,Z=U-1;for(v=v===n?U:v;++A<v;){var oe=Em(A,Z),pe=h[oe];h[oe]=h[A],h[A]=pe}return h.length=v,h}var as=jw(function(h){var v=[];return h.charCodeAt(0)===46&&v.push(""),h.replace(xe,function(A,U,Z,oe){v.push(Z?oe.replace(Lt,"$1"):U||A)}),v});function tr(h){if(typeof h=="string"||ui(h))return h;var v=h+"";return v=="0"&&1/h==-1/0?"-0":v}function qs(h){if(h!=null){try{return Cf.call(h)}catch{}try{return h+""}catch{}}return""}function Nw(h,v){return na(ce,function(A){var U="_."+A[0];v&A[1]&&!Xh(h,U)&&h.push(U)}),h.sort()}function xo(h){if(h instanceof Pn)return h.clone();var v=new wi(h.__wrapped__,h.__chain__);return v.__actions__=vo(h.__actions__),v.__index__=h.__index__,v.__values__=h.__values__,v}function NM(h,v,A){(A?ci(h,v,A):v===n)?v=1:v=Rr(pn(v),0);var U=h==null?0:h.length;if(!U||v<1)return[];for(var Z=0,oe=0,pe=Ge(qu(U/v));Z<U;)pe[oe++]=Bi(h,Z,Z+=v);return pe}function zw(h){for(var v=-1,A=h==null?0:h.length,U=0,Z=[];++v<A;){var oe=h[v];oe&&(Z[U++]=oe)}return Z}function Bw(){var h=arguments.length;if(!h)return[];for(var v=Ge(h-1),A=arguments[0],U=h;U--;)v[U-1]=arguments[U];return $s(ln(A)?vo(A):[A],$n(v,1))}var zr=xn(function(h,v){return to(h)?$l(h,$n(v,1,to,!0)):[]}),Mi=xn(function(h,v){var A=Yo(v);return to(A)&&(A=n),to(h)?$l(h,$n(v,1,to,!0),Qt(A,2)):[]}),Ys=xn(function(h,v){var A=Yo(v);return to(A)&&(A=n),to(h)?$l(h,$n(v,1,to,!0),n,A):[]});function Hw(h,v,A){var U=h==null?0:h.length;return U?(v=A||v===n?1:pn(v),Bi(h,v<0?0:v,U)):[]}function Uw(h,v,A){var U=h==null?0:h.length;return U?(v=A||v===n?1:pn(v),v=U-v,Bi(h,0,v<0?0:v)):[]}function zM(h,v){return h&&h.length?Uf(h,Qt(v,3),!0,!0):[]}function my(h,v){return h&&h.length?Uf(h,Qt(v,3),!0):[]}function Ui(h,v,A,U){var Z=h==null?0:h.length;return Z?(A&&typeof A!="number"&&ci(h,v,A)&&(A=0,U=Z),Sn(h,v,A,U)):[]}function da(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=A==null?0:pn(A);return Z<0&&(Z=Rr(U+Z,0)),Zh(h,Qt(v,3),Z)}function gy(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=U-1;return A!==n&&(Z=pn(A),Z=A<0?Rr(U+Z,0):Fr(Z,U-1)),Zh(h,Qt(v,3),Z,!0)}function ki(h){var v=h==null?0:h.length;return v?$n(h,1):[]}function Gw(h){var v=h==null?0:h.length;return v?$n(h,H):[]}function Hl(h,v){var A=h==null?0:h.length;return A?(v=v===n?1:pn(v),$n(h,v)):[]}function Yc(h){for(var v=-1,A=h==null?0:h.length,U={};++v<A;){var Z=h[v];U[Z[0]]=Z[1]}return U}function Ks(h){return h&&h.length?h[0]:n}function by(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=A==null?0:pn(A);return Z<0&&(Z=Rr(U+Z,0)),Fu(h,v,Z)}function yy(h){var v=h==null?0:h.length;return v?Bi(h,0,-1):[]}var ss=xn(function(h){var v=jr(h,Pm);return v.length&&v[0]===h[0]?Ub(v):[]}),Vw=xn(function(h){var v=Yo(h),A=jr(h,Pm);return v===Yo(A)?v=n:A.pop(),A.length&&A[0]===h[0]?Ub(A,Qt(v,2)):[]}),ad=xn(function(h){var v=Yo(h),A=jr(h,Pm);return v=typeof v=="function"?v:n,v&&A.pop(),A.length&&A[0]===h[0]?Ub(A,n,v):[]});function ap(h,v){return h==null?"":ia.call(h,v)}function Yo(h){var v=h==null?0:h.length;return v?h[v-1]:n}function sd(h,v,A){var U=h==null?0:h.length;if(!U)return-1;var Z=U;return A!==n&&(Z=pn(A),Z=Z<0?Rr(U+Z,0):Fr(Z,U-1)),v===v?Fi(h,v,Z):Zh(h,Nu,Z,!0)}function Ww(h,v){return h&&h.length?Xb(h,pn(v)):n}var qw=xn(ld);function ld(h,v){return h&&h.length&&v&&v.length?Sm(h,v):h}function Yw(h,v,A){return h&&h.length&&v&&v.length?Sm(h,v,Qt(A,2)):h}function Gm(h,v,A){return h&&h.length&&v&&v.length?Sm(h,v,n,A):h}var Kw=Or(function(h,v){var A=h==null?0:h.length,U=Df(h,v);return Qb(h,jr(v,function(Z){return _a(Z,A)?+Z:Z}).sort(Wf)),U});function BM(h,v){var A=[];if(!(h&&h.length))return A;var U=-1,Z=[],oe=h.length;for(v=Qt(v,3);++U<oe;){var pe=h[U];v(pe,U,h)&&(A.push(pe),Z.push(U))}return Qb(h,Z),A}function vy(h){return h==null?h:Lb.call(h)}function lr(h,v,A){var U=h==null?0:h.length;return U?(A&&typeof A!="number"&&ci(h,v,A)?(v=0,A=U):(v=v==null?0:pn(v),A=A===n?U:pn(A)),Bi(h,v,A)):[]}function Tr(h,v){return Bf(h,v)}function On(h,v,A){return Mm(h,v,Qt(A,2))}function Hn(h,v){var A=h==null?0:h.length;if(A){var U=Bf(h,v);if(U<A&&Ii(h[U],v))return U}return-1}function cr(h,v){return Bf(h,v,!0)}function Gi(h,v,A){return Mm(h,v,Qt(A,2),!0)}function Ul(h,v){var A=h==null?0:h.length;if(A){var U=Bf(h,v,!0)-1;if(Ii(h[U],v))return U}return-1}function cd(h){return h&&h.length?ey(h):[]}function xy(h,v){return h&&h.length?ey(h,Qt(v,2)):[]}function Xs(h){var v=h==null?0:h.length;return v?Bi(h,1,v):[]}function eo(h,v,A){return h&&h.length?(v=A||v===n?1:pn(v),Bi(h,0,v<0?0:v)):[]}function Gl(h,v,A){var U=h==null?0:h.length;return U?(v=A||v===n?1:pn(v),v=U-v,Bi(h,v<0?0:v,U)):[]}function Kc(h,v){return h&&h.length?Uf(h,Qt(v,3),!1,!0):[]}function wy(h,v){return h&&h.length?Uf(h,Qt(v,3)):[]}var fa=xn(function(h){return Hs($n(h,1,to,!0))}),ud=xn(function(h){var v=Yo(h);return to(v)&&(v=n),Hs($n(h,1,to,!0),Qt(v,2))}),sp=xn(function(h){var v=Yo(h);return v=typeof v=="function"?v:n,Hs($n(h,1,to,!0),n,v)});function Pi(h){return h&&h.length?Hs(h):[]}function Cy(h,v){return h&&h.length?Hs(h,Qt(v,2)):[]}function Sy(h,v){return v=typeof v=="function"?v:n,h&&h.length?Hs(h,n,v):[]}function dd(h){if(!(h&&h.length))return[];var v=0;return h=Ja(h,function(A){if(to(A))return v=Rr(A.length,v),!0}),Pl(v,function(A){return jr(h,Qh(A))})}function lp(h,v){if(!(h&&h.length))return[];var A=dd(h);return v==null?A:jr(A,function(U){return yi(v,n,U)})}var Vl=xn(function(h,v){return to(h)?$l(h,v):[]}),jo=xn(function(h){return Gf(Ja(h,to))}),Wl=xn(function(h){var v=Yo(h);return to(v)&&(v=n),Gf(Ja(h,to),Qt(v,2))}),fd=xn(function(h){var v=Yo(h);return v=typeof v=="function"?v:n,Gf(Ja(h,to),n,v)}),pd=xn(dd);function Ey(h,v){return ny(h||[],v||[],jc)}function Ty(h,v){return ny(h||[],v||[],td)}var Xw=xn(function(h){var v=h.length,A=v>1?h[v-1]:n;return A=typeof A=="function"?(h.pop(),A):n,lp(h,A)});function hd(h){var v=te(h);return v.__chain__=!0,v}function My(h,v){return v(h),h}function Ko(h,v){return v(h)}var Zw=Or(function(h){var v=h.length,A=v?h[0]:0,U=this.__wrapped__,Z=function(oe){return Df(oe,h)};return v>1||this.__actions__.length||!(U instanceof Pn)||!_a(A)?this.thru(Z):(U=U.slice(A,+A+(v?1:0)),U.__actions__.push({func:Ko,args:[Z],thisArg:n}),new wi(U,this.__chain__).thru(function(oe){return v&&!oe.length&&oe.push(n),oe}))});function Vi(){return hd(this)}function Qw(){return new wi(this.value(),this.__chain__)}function Jw(){this.__values__===n&&(this.__values__=Wi(this.value()));var h=this.__index__>=this.__values__.length,v=h?n:this.__values__[this.__index__++];return{done:h,value:v}}function HM(){return this}function ql(h){for(var v,A=this;A instanceof la;){var U=xo(A);U.__index__=0,U.__values__=n,v?Z.__wrapped__=U:v=U;var Z=U;A=A.__wrapped__}return Z.__wrapped__=h,v}function Vm(){var h=this.__wrapped__;if(h instanceof Pn){var v=h;return this.__actions__.length&&(v=new Pn(this)),v=v.reverse(),v.__actions__.push({func:Ko,args:[vy],thisArg:n}),new wi(v,this.__chain__)}return this.thru(vy)}function ky(){return vw(this.__wrapped__,this.__actions__)}var md=Uc(function(h,v,A){Xn.call(h,A)?++h[A]:Aa(h,A,1)});function eC(h,v,A){var U=ln(h)?N1:Bb;return A&&ci(h,v,A)&&(v=n),U(h,Qt(v,3))}function tC(h,v){var A=ln(h)?Ja:sr;return A(h,Qt(v,3))}var nC=Gs(da),Py=Gs(gy);function Iy(h,v){return $n(cp(h,v),1)}function UM(h,v){return $n(cp(h,v),H)}function GM(h,v,A){return A=A===n?1:pn(A),$n(cp(h,v),A)}function rC(h,v){var A=ln(h)?na:Bs;return A(h,Qt(v,3))}function Ay(h,v){var A=ln(h)?CM:mm;return A(h,Qt(v,3))}var oC=Uc(function(h,v,A){Xn.call(h,A)?h[A].push(v):Aa(h,A,[v])});function gd(h,v,A,U){h=wo(h)?h:Sd(h),A=A&&!U?pn(A):0;var Z=h.length;return A<0&&(A=Rr(Z+A,0)),rg(h)?A<=Z&&h.indexOf(v,A)>-1:!!Z&&Fu(h,v,A)>-1}var Wm=xn(function(h,v,A){var U=-1,Z=typeof v=="function",oe=wo(h)?Ge(h.length):[];return Bs(h,function(pe){oe[++U]=Z?yi(v,pe,A):zc(pe,v,A)}),oe}),iC=Uc(function(h,v,A){Aa(h,A,v)});function cp(h,v){var A=ln(h)?jr:Yb;return A(h,Qt(v,3))}function aC(h,v,A,U){return h==null?[]:(ln(v)||(v=v==null?[]:[v]),A=U?n:A,ln(A)||(A=A==null?[]:[A]),Zb(h,v,A))}var sC=Uc(function(h,v,A){h[A?0:1].push(v)},function(){return[[],[]]});function lC(h,v,A){var U=ln(h)?Eb:kb,Z=arguments.length<3;return U(h,Qt(v,4),A,Z,Bs)}function cC(h,v,A){var U=ln(h)?SM:kb,Z=arguments.length<3;return U(h,Qt(v,4),A,Z,mm)}function qm(h,v){var A=ln(h)?Ja:sr;return A(h,hp(Qt(v,3)))}function uC(h){var v=ln(h)?Xu:ed;return v(h)}function dC(h,v,A){(A?ci(h,v,A):v===n)?v=1:v=pn(v);var U=ln(h)?sw:Tm;return U(h,v)}function Cr(h){var v=ln(h)?lw:bw;return v(h)}function Ry(h){if(h==null)return 0;if(wo(h))return rg(h)?es(h):h.length;var v=Ao(h);return v==be||v==dt?h.size:vm(h).length}function VM(h,v,A){var U=ln(h)?Tb:yw;return A&&ci(h,v,A)&&(v=n),U(h,Qt(v,3))}var fC=xn(function(h,v){if(h==null)return[];var A=v.length;return A>1&&ci(h,v[0],v[1])?v=[]:A>2&&ci(v[0],v[1],v[2])&&(v=[v[0]]),Zb(h,$n(v,1),[])}),Ym=Oc||function(){return lo.Date.now()};function WM(h,v){if(typeof v!="function")throw new Ni(a);return h=pn(h),function(){if(--h<1)return v.apply(this,arguments)}}function pC(h,v,A){return v=A?n:v,v=h&&v==null?h.length:v,os(h,j,n,n,n,n,v)}function up(h,v){var A;if(typeof v!="function")throw new Ni(a);return h=pn(h),function(){return--h>0&&(A=v.apply(this,arguments)),h<=1&&(v=n),A}}var Yl=xn(function(h,v,A){var U=E;if(A.length){var Z=Al(A,qc(Yl));U|=P}return os(h,U,v,A,Z)}),Km=xn(function(h,v,A){var U=E|T;if(A.length){var Z=Al(A,qc(Km));U|=P}return os(v,U,h,A,Z)});function dp(h,v,A){v=A?n:v;var U=os(h,k,n,n,n,n,n,v);return U.placeholder=dp.placeholder,U}function Xm(h,v,A){v=A?n:v;var U=os(h,R,n,n,n,n,n,v);return U.placeholder=Xm.placeholder,U}function Kl(h,v,A){var U,Z,oe,pe,Se,Ae,lt=0,ut=!1,mt=!1,At=!0;if(typeof h!="function")throw new Ni(a);v=ha(v)||0,Br(A)&&(ut=!!A.leading,mt="maxWait"in A,oe=mt?Rr(ha(A.maxWait)||0,v):oe,At="trailing"in A?!!A.trailing:At);function qt(Eo){var Js=U,Zc=Z;return U=Z=n,lt=Eo,pe=h.apply(Zc,Js),pe}function an(Eo){return lt=Eo,Se=id(Fn,v),ut?qt(Eo):pe}function An(Eo){var Js=Eo-Ae,Zc=Eo-lt,l4=v-Js;return mt?Fr(l4,oe-Zc):l4}function sn(Eo){var Js=Eo-Ae,Zc=Eo-lt;return Ae===n||Js>=v||Js<0||mt&&Zc>=oe}function Fn(){var Eo=Ym();if(sn(Eo))return Wn(Eo);Se=id(Fn,An(Eo))}function Wn(Eo){return Se=n,At&&U?qt(Eo):(U=Z=n,pe)}function $a(){Se!==n&&ww(Se),lt=0,U=Ae=Z=Se=n}function qi(){return Se===n?pe:Wn(Ym())}function ja(){var Eo=Ym(),Js=sn(Eo);if(U=arguments,Z=this,Ae=Eo,Js){if(Se===n)return an(Ae);if(mt)return ww(Se),Se=id(Fn,v),qt(Ae)}return Se===n&&(Se=id(Fn,v)),pe}return ja.cancel=$a,ja.flush=qi,ja}var ls=xn(function(h,v){return Fc(h,1,v)}),fp=xn(function(h,v,A){return Fc(h,ha(v)||0,A)});function qM(h){return os(h,D)}function pp(h,v){if(typeof h!="function"||v!=null&&typeof v!="function")throw new Ni(a);var A=function(){var U=arguments,Z=v?v.apply(this,U):U[0],oe=A.cache;if(oe.has(Z))return oe.get(Z);var pe=h.apply(this,U);return A.cache=oe.set(Z,pe)||oe,pe};return A.cache=new(pp.Cache||Ci),A}pp.Cache=Ci;function hp(h){if(typeof h!="function")throw new Ni(a);return function(){var v=arguments;switch(v.length){case 0:return!h.call(this);case 1:return!h.call(this,v[0]);case 2:return!h.call(this,v[0],v[1]);case 3:return!h.call(this,v[0],v[1],v[2])}return!h.apply(this,v)}}function hC(h){return up(2,h)}var mC=xw(function(h,v){v=v.length==1&&ln(v[0])?jr(v[0],ji(Qt())):jr($n(v,1),ji(Qt()));var A=v.length;return xn(function(U){for(var Z=-1,oe=Fr(U.length,A);++Z<oe;)U[Z]=v[Z].call(this,U[Z]);return yi(h,this,U)})}),Oy=xn(function(h,v){var A=Al(v,qc(Oy));return os(h,P,n,v,A)}),Zm=xn(function(h,v){var A=Al(v,qc(Zm));return os(h,O,n,v,A)}),gC=Or(function(h,v){return os(h,F,n,n,n,v)});function bC(h,v){if(typeof h!="function")throw new Ni(a);return v=v===n?v:pn(v),xn(h,v)}function YM(h,v){if(typeof h!="function")throw new Ni(a);return v=v==null?0:Rr(pn(v),0),xn(function(A){var U=A[v],Z=Fl(A,0,v);return U&&$s(Z,U),yi(h,this,Z)})}function _y(h,v,A){var U=!0,Z=!0;if(typeof h!="function")throw new Ni(a);return Br(A)&&(U="leading"in A?!!A.leading:U,Z="trailing"in A?!!A.trailing:Z),Kl(h,v,{leading:U,maxWait:v,trailing:Z})}function Dy(h){return pC(h,1)}function KM(h,v){return Oy(Vf(v),h)}function XM(){if(!arguments.length)return[];var h=arguments[0];return ln(h)?h:[h]}function mp(h){return Wo(h,w)}function ZM(h,v){return v=typeof v=="function"?v:n,Wo(h,w,v)}function yC(h){return Wo(h,m|w)}function _n(h,v){return v=typeof v=="function"?v:n,Wo(h,m|w,v)}function Ly(h,v){return v==null||zb(h,v,So(v))}function Ii(h,v){return h===v||h!==h&&v!==v}var $y=Wc(Lf),vC=Wc(function(h,v){return h>=v}),Zs=gm(function(){return arguments}())?gm:function(h){return Wr(h)&&Xn.call(h,"callee")&&!Ac.call(h,"callee")},ln=Ge.isArray,Qm=Kh?ji(Kh):Si;function wo(h){return h!=null&&Xc(h.length)&&!Da(h)}function to(h){return Wr(h)&&wo(h)}function QM(h){return h===!0||h===!1||Wr(h)&&jn(h)==Ce}var Xl=cm||Ck,xC=D1?ji(D1):ho;function wC(h){return Wr(h)&&h.nodeType===1&&!pa(h)}function Jm(h){if(h==null)return!0;if(wo(h)&&(ln(h)||typeof h=="string"||typeof h.splice=="function"||Xl(h)||bd(h)||Zs(h)))return!h.length;var v=Ao(h);if(v==be||v==dt)return!h.size;if(wr(h))return!vm(h).length;for(var A in h)if(Xn.call(h,A))return!1;return!0}function gr(h,v){return Bc(h,v)}function jy(h,v,A){A=typeof A=="function"?A:n;var U=A?A(h,v):n;return U===n?Bc(h,v,n,A):!!U}function Co(h){if(!Wr(h))return!1;var v=jn(h);return v==ve||v==le||typeof h.message=="string"&&typeof h.name=="string"&&!pa(h)}function JM(h){return typeof h=="number"&&Mf(h)}function Da(h){if(!Br(h))return!1;var v=jn(h);return v==ue||v==me||v==ke||v==ft}function eg(h){return typeof h=="number"&&h==pn(h)}function Xc(h){return typeof h=="number"&&h>-1&&h%1==0&&h<=Y}function Br(h){var v=typeof h;return h!=null&&(v=="object"||v=="function")}function Wr(h){return h!=null&&typeof h=="object"}var tg=L1?ji(L1):bm;function Fy(h,v){return h===v||jf(h,v,$m(v))}function ek(h,v,A){return A=typeof A=="function"?A:n,jf(h,v,$m(v),A)}function CC(h){return EC(h)&&h!=+h}function tk(h){if(tp(h))throw new on(i);return ns(h)}function SC(h){return h===null}function nk(h){return h==null}function EC(h){return typeof h=="number"||Wr(h)&&jn(h)==Fe}function pa(h){if(!Wr(h)||jn(h)!=We)return!1;var v=Sf(h);if(v===null)return!0;var A=Xn.call(v,"constructor")&&v.constructor;return typeof A=="function"&&A instanceof A&&Cf.call(A)==oa}var ng=$1?ji($1):ym;function Ny(h){return eg(h)&&h>=-9007199254740991&&h<=Y}var TC=j1?ji(j1):Vb;function rg(h){return typeof h=="string"||!ln(h)&&Wr(h)&&jn(h)==se}function ui(h){return typeof h=="symbol"||Wr(h)&&jn(h)==De}var bd=F1?ji(F1):Wb;function La(h){return h===n}function zy(h){return Wr(h)&&Ao(h)==Pe}function MC(h){return Wr(h)&&jn(h)==qe}var kC=Wc(xm),gp=Wc(function(h,v){return h<=v});function Wi(h){if(!h)return[];if(wo(h))return rg(h)?ra(h):vo(h);if(Rc&&h[Rc])return q1(h[Rc]());var v=Ao(h),A=v==be?rm:v==dt?om:Sd;return A(h)}function cs(h){if(!h)return h===0?h:0;if(h=ha(h),h===H||h===-1/0){var v=h<0?-1:1;return v*Q}return h===h?h:0}function pn(h){var v=cs(h),A=v%1;return v===v?A?v-A:v:0}function us(h){return h?Ra(pn(h),0,K):0}function ha(h){if(typeof h=="number")return h;if(ui(h))return W;if(Br(h)){var v=typeof h.valueOf=="function"?h.valueOf():h;h=Br(v)?v+"":v}if(typeof h!="string")return h===0?h:+h;h=U1(h);var A=Ne.test(h);return A||Tt.test(h)?xM(h.slice(2),A?2:8):hr.test(h)?W:+h}function PC(h){return Ti(h,Ro(h))}function yd(h){return h?Ra(pn(h),-9007199254740991,Y):h===0?h:0}function Zn(h){return h==null?"":Ei(h)}var rk=Gc(function(h,v){if(wr(v)||wo(v)){Ti(v,So(v),h);return}for(var A in v)Xn.call(v,A)&&jc(h,A,v[A])}),IC=Gc(function(h,v){Ti(v,Ro(v),h)}),og=Gc(function(h,v,A,U){Ti(v,Ro(v),h,U)}),ok=Gc(function(h,v,A,U){Ti(v,So(v),h,U)}),ik=Or(Df);function ak(h,v){var A=zi(h);return v==null?A:zs(A,v)}var sk=xn(function(h,v){h=Gn(h);var A=-1,U=v.length,Z=U>2?v[2]:n;for(Z&&ci(v[0],v[1],Z)&&(U=1);++A<U;)for(var oe=v[A],pe=Ro(oe),Se=-1,Ae=pe.length;++Se<Ae;){var lt=pe[Se],ut=h[lt];(ut===n||Ii(ut,Gu[lt])&&!Xn.call(h,lt))&&(h[lt]=oe[lt])}return h}),AC=xn(function(h){return h.push(n,cy),yi(xp,n,h)});function vd(h,v){return z1(h,Qt(v,3),qo)}function bp(h,v){return z1(h,Qt(v,3),Ju)}function RC(h,v){return h==null?h:Qu(h,Qt(v,3),Ro)}function lk(h,v){return h==null?h:Nc(h,Qt(v,3),Ro)}function xd(h,v){return h&&qo(h,Qt(v,3))}function yp(h,v){return h&&Ju(h,Qt(v,3))}function OC(h){return h==null?[]:jl(h,So(h))}function ig(h){return h==null?[]:jl(h,Ro(h))}function vp(h,v,A){var U=h==null?n:ca(h,v);return U===n?A:U}function By(h,v){return h!=null&&ep(h,v,Hb)}function wd(h,v){return h!=null&&ep(h,v,dw)}var _C=Yf(function(h,v,A){v!=null&&typeof v.toString!="function"&&(v=ii.call(v)),h[v]=A},Le($e)),DC=Yf(function(h,v,A){v!=null&&typeof v.toString!="function"&&(v=ii.call(v)),Xn.call(h,v)?h[v].push(A):h[v]=[A]},Qt),ck=xn(zc);function So(h){return wo(h)?Nb(h):vm(h)}function Ro(h){return wo(h)?Nb(h,!0):pw(h)}function uk(h,v){var A={};return v=Qt(v,3),qo(h,function(U,Z,oe){Aa(A,v(U,Z,oe),U)}),A}function dk(h,v){var A={};return v=Qt(v,3),qo(h,function(U,Z,oe){Aa(A,Z,v(U,Z,oe))}),A}var fk=Gc(function(h,v,A){Ff(h,v,A)}),xp=Gc(function(h,v,A,U){Ff(h,v,A,U)}),ag=Or(function(h,v){var A={};if(h==null)return A;var U=!1;v=jr(v,function(oe){return oe=Us(oe,h),U||(U=oe.length>1),oe}),Ti(h,Dm(h),A),U&&(A=Wo(A,m|g|w,Iw));for(var Z=v.length;Z--;)Hf(A,v[Z]);return A});function Hy(h,v){return Cd(h,hp(Qt(v)))}var pk=Or(function(h,v){return h==null?{}:hw(h,v)});function Cd(h,v){if(h==null)return{};var A=jr(Dm(h),function(U){return[U]});return v=Qt(v),Cm(h,A,function(U,Z){return v(U,Z[0])})}function hk(h,v,A){v=Us(v,h);var U=-1,Z=v.length;for(Z||(Z=1,h=n);++U<Z;){var oe=h==null?n:h[tr(v[U])];oe===n&&(U=Z,oe=A),h=Da(oe)?oe.call(h):oe}return h}function LC(h,v,A){return h==null?h:td(h,v,A)}function $C(h,v,A,U){return U=typeof U=="function"?U:n,h==null?h:td(h,v,A,U)}var Uy=Zf(So),Gy=Zf(Ro);function Vy(h,v,A){var U=ln(h),Z=U||Xl(h)||bd(h);if(v=Qt(v,4),A==null){var oe=h&&h.constructor;Z?A=U?new oe:[]:Br(h)?A=Da(oe)?zi(Sf(h)):{}:A={}}return(Z?na:qo)(h,function(pe,Se,Ae){return v(A,pe,Se,Ae)}),A}function jC(h,v){return h==null?!0:Hf(h,v)}function sg(h,v,A){return h==null?h:ty(h,v,Vf(A))}function mk(h,v,A,U){return U=typeof U=="function"?U:n,h==null?h:ty(h,v,Vf(A),U)}function Sd(h){return h==null?[]:tm(h,So(h))}function Wy(h){return h==null?[]:tm(h,Ro(h))}function qy(h,v,A){return A===n&&(A=v,v=n),A!==n&&(A=ha(A),A=A===A?A:0),v!==n&&(v=ha(v),v=v===v?v:0),Ra(ha(h),v,A)}function lg(h,v,A){return v=cs(v),A===n?(A=v,v=0):A=cs(A),h=ha(h),fw(h,v,A)}function Yy(h,v,A){if(A&&typeof A!="boolean"&&ci(h,v,A)&&(v=A=n),A===n&&(typeof v=="boolean"?(A=v,v=n):typeof h=="boolean"&&(A=h,h=n)),h===n&&v===n?(h=0,v=1):(h=cs(h),v===n?(v=h,h=0):v=cs(v)),h>v){var U=h;h=v,v=U}if(A||h%1||v%1){var Z=Db();return Fr(h+Z*(v-h+xf("1e-"+((Z+"").length-1))),v)}return Em(h,v)}var FC=li(function(h,v,A){return v=v.toLowerCase(),h+(A?cg(v):v)});function cg(h){return x(Zn(h).toLowerCase())}function Qs(h){return h=Zn(h),h&&h.replace(Ft,nm).replace(Ls,"")}function Zl(h,v,A){h=Zn(h),v=Ei(v);var U=h.length;A=A===n?U:Ra(pn(A),0,U);var Z=A;return A-=v.length,A>=0&&h.slice(A,Z)==v}function Ql(h){return h=Zn(h),h&&Vr.test(h)?h.replace(Er,G1):h}function wp(h){return h=Zn(h),h&&Qe.test(h)?h.replace(ze,"\\$&"):h}var Cp=li(function(h,v,A){return h+(A?"-":"")+v.toLowerCase()}),Jl=li(function(h,v,A){return h+(A?" ":"")+v.toLowerCase()}),gk=Hi("toLowerCase");function NC(h,v,A){h=Zn(h),v=pn(v);var U=v?es(h):0;if(!v||U>=v)return h;var Z=(v-U)/2;return Xf(js(Z),A)+h+Xf(qu(Z),A)}function Sp(h,v,A){h=Zn(h),v=pn(v);var U=v?es(h):0;return v&&U<v?h+Xf(v-U,A):h}function bk(h,v,A){h=Zn(h),v=pn(v);var U=v?es(h):0;return v&&U<v?Xf(v-U,A)+h:h}function zC(h,v,A){return A||v==null?v=0:v&&(v=+v),_c(Zn(h).replace(bt,""),v||0)}function ug(h,v,A){return(A?ci(h,v,A):v===n)?v=1:v=pn(v),Jb(Zn(h),v)}function BC(){var h=arguments,v=Zn(h[0]);return h.length<3?v:v.replace(h[1],h[2])}var yk=li(function(h,v,A){return h+(A?"_":"")+v.toLowerCase()});function dg(h,v,A){return A&&typeof A!="number"&&ci(h,v,A)&&(v=A=n),A=A===n?K:A>>>0,A?(h=Zn(h),h&&(typeof v=="string"||v!=null&&!ng(v))&&(v=Ei(v),!v&&Il(h))?Fl(ra(h),0,A):h.split(v,A)):[]}var fg=li(function(h,v,A){return h+(A?" ":"")+x(v)});function HC(h,v,A){return h=Zn(h),A=A==null?0:Ra(pn(A),0,h.length),v=Ei(v),h.slice(A,A+v.length)==v}function Ep(h,v,A){var U=te.templateSettings;A&&ci(h,v,A)&&(v=n),h=Zn(h),v=og({},v,U,Om);var Z=og({},v.imports,U.imports,Om),oe=So(Z),pe=tm(Z,oe),Se,Ae,lt=0,ut=v.interpolate||vn,mt="__p += '",At=im((v.escape||vn).source+"|"+ut.source+"|"+(ut===Kt?gn:vn).source+"|"+(v.evaluate||vn).source+"|$","g"),qt="//# sourceURL="+(Xn.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++R1+"]")+`
`;h.replace(At,function(sn,Fn,Wn,$a,qi,ja){return Wn||(Wn=$a),mt+=h.slice(lt,ja).replace(ir,V1),Fn&&(Se=!0,mt+=`' +
__e(`+Fn+`) +
'`),qi&&(Ae=!0,mt+=`';
`+qi+`;
__p += '`),Wn&&(mt+=`' +
((__t = (`+Wn+`)) == null ? '' : __t) +
'`),lt=ja+sn.length,sn}),mt+=`';
`;var an=Xn.call(v,"variable")&&v.variable;if(!an)mt=`with (obj) {
`+mt+`
}
`;else if(Et.test(an))throw new on(l);mt=(Ae?mt.replace(Yn,""):mt).replace(pr,"$1").replace(Go,"$1;"),mt="function("+(an||"obj")+`) {
`+(an?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Se?", __e = _.escape":"")+(Ae?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+mt+`return __p
}`;var An=L(function(){return Un(oe,qt+"return "+mt).apply(n,pe)});if(An.source=mt,Co(An))throw An;return An}function Ky(h){return Zn(h).toLowerCase()}function pg(h){return Zn(h).toUpperCase()}function UC(h,v,A){if(h=Zn(h),h&&(A||v===n))return U1(h);if(!h||!(v=Ei(v)))return h;var U=ra(h),Z=ra(v),oe=Bu(U,Z),pe=Hu(U,Z)+1;return Fl(U,oe,pe).join("")}function vk(h,v,A){if(h=Zn(h),h&&(A||v===n))return h.slice(0,Ib(h)+1);if(!h||!(v=Ei(v)))return h;var U=ra(h),Z=Hu(U,ra(v))+1;return Fl(U,0,Z).join("")}function hg(h,v,A){if(h=Zn(h),h&&(A||v===n))return h.replace(bt,"");if(!h||!(v=Ei(v)))return h;var U=ra(h),Z=Bu(U,ra(v));return Fl(U,Z).join("")}function s(h,v){var A=_,U=$;if(Br(v)){var Z="separator"in v?v.separator:Z;A="length"in v?pn(v.length):A,U="omission"in v?Ei(v.omission):U}h=Zn(h);var oe=h.length;if(Il(h)){var pe=ra(h);oe=pe.length}if(A>=oe)return h;var Se=A-es(U);if(Se<1)return U;var Ae=pe?Fl(pe,0,Se).join(""):h.slice(0,Se);if(Z===n)return Ae+U;if(pe&&(Se+=Ae.length-Se),ng(Z)){if(h.slice(Se).search(Z)){var lt,ut=Ae;for(Z.global||(Z=im(Z.source,Zn(Kn.exec(Z))+"g")),Z.lastIndex=0;lt=Z.exec(ut);)var mt=lt.index;Ae=Ae.slice(0,mt===n?Se:mt)}}else if(h.indexOf(Ei(Z),Se)!=Se){var At=Ae.lastIndexOf(Z);At>-1&&(Ae=Ae.slice(0,At))}return Ae+U}function c(h){return h=Zn(h),h&&Xr.test(h)?h.replace(Jn,K1):h}var p=li(function(h,v,A){return h+(A?" ":"")+v.toUpperCase()}),x=Hi("toUpperCase");function M(h,v,A){return h=Zn(h),v=A?n:v,v===n?W1(h)?RM(h):MM(h):h.match(v)||[]}var L=xn(function(h,v){try{return yi(h,n,v)}catch(A){return Co(A)?A:new on(A)}}),X=Or(function(h,v){return na(v,function(A){A=tr(A),Aa(h,A,Yl(h[A],h))}),h});function ne(h){var v=h==null?0:h.length,A=Qt();return h=v?jr(h,function(U){if(typeof U[1]!="function")throw new Ni(a);return[A(U[0]),U[1]]}):[],xn(function(U){for(var Z=-1;++Z<v;){var oe=h[Z];if(yi(oe[0],this,U))return yi(oe[1],this,U)}})}function ge(h){return cw(Wo(h,m))}function Le(h){return function(){return h}}function rt(h,v){return h==null||h!==h?v:h}var ct=rs(),He=rs(!0);function $e(h){return h}function tn(h){return qb(typeof h=="function"?h:Wo(h,m))}function en(h){return Kb(Wo(h,m))}function br(h,v){return wm(h,Wo(v,m))}var Ie=xn(function(h,v){return function(A){return zc(A,h,v)}}),Ee=xn(function(h,v){return function(A){return zc(h,A,v)}});function Re(h,v,A){var U=So(v),Z=jl(v,U);A==null&&!(Br(v)&&(Z.length||!U.length))&&(A=v,v=h,h=this,Z=jl(v,So(v)));var oe=!(Br(A)&&"chain"in A)||!!A.chain,pe=Da(h);return na(Z,function(Se){var Ae=v[Se];h[Se]=Ae,pe&&(h.prototype[Se]=function(){var lt=this.__chain__;if(oe||lt){var ut=h(this.__wrapped__),mt=ut.__actions__=vo(this.__actions__);return mt.push({func:Ae,args:arguments,thisArg:h}),ut.__chain__=lt,ut}return Ae.apply(h,$s([this.value()],arguments))})}),h}function at(){return lo._===this&&(lo._=Vu),this}function $t(){}function In(h){return h=pn(h),xn(function(v){return Xb(v,h)})}var Yt=Kf(jr),nn=Kf(N1),Oo=Kf(Tb);function Vn(h){return Fm(h)?Qh(tr(h)):mw(h)}function ec(h){return function(v){return h==null?n:ca(h,v)}}var xk=Nl(),bU=Nl(!0);function wk(){return[]}function Ck(){return!1}function yU(){return{}}function vU(){return""}function xU(){return!0}function wU(h,v){if(h=pn(h),h<1||h>Y)return[];var A=K,U=Fr(h,K);v=Qt(v),h-=K;for(var Z=Pl(U,v);++A<h;)v(A);return Z}function CU(h){return ln(h)?jr(h,tr):ui(h)?[h]:vo(as(Zn(h)))}function SU(h){var v=++ka;return Zn(h)+v}var EU=nd(function(h,v){return h+v},0),TU=Rm("ceil"),MU=nd(function(h,v){return h/v},1),kU=Rm("floor");function PU(h){return h&&h.length?Oa(h,$e,Lf):n}function IU(h,v){return h&&h.length?Oa(h,Qt(v,2),Lf):n}function AU(h){return B1(h,$e)}function RU(h,v){return B1(h,Qt(v,2))}function OU(h){return h&&h.length?Oa(h,$e,xm):n}function _U(h,v){return h&&h.length?Oa(h,Qt(v,2),xm):n}var DU=nd(function(h,v){return h*v},1),LU=Rm("round"),$U=nd(function(h,v){return h-v},0);function jU(h){return h&&h.length?em(h,$e):0}function FU(h,v){return h&&h.length?em(h,Qt(v,2)):0}return te.after=WM,te.ary=pC,te.assign=rk,te.assignIn=IC,te.assignInWith=og,te.assignWith=ok,te.at=ik,te.before=up,te.bind=Yl,te.bindAll=X,te.bindKey=Km,te.castArray=XM,te.chain=hd,te.chunk=NM,te.compact=zw,te.concat=Bw,te.cond=ne,te.conforms=ge,te.constant=Le,te.countBy=md,te.create=ak,te.curry=dp,te.curryRight=Xm,te.debounce=Kl,te.defaults=sk,te.defaultsDeep=AC,te.defer=ls,te.delay=fp,te.difference=zr,te.differenceBy=Mi,te.differenceWith=Ys,te.drop=Hw,te.dropRight=Uw,te.dropRightWhile=zM,te.dropWhile=my,te.fill=Ui,te.filter=tC,te.flatMap=Iy,te.flatMapDeep=UM,te.flatMapDepth=GM,te.flatten=ki,te.flattenDeep=Gw,te.flattenDepth=Hl,te.flip=qM,te.flow=ct,te.flowRight=He,te.fromPairs=Yc,te.functions=OC,te.functionsIn=ig,te.groupBy=oC,te.initial=yy,te.intersection=ss,te.intersectionBy=Vw,te.intersectionWith=ad,te.invert=_C,te.invertBy=DC,te.invokeMap=Wm,te.iteratee=tn,te.keyBy=iC,te.keys=So,te.keysIn=Ro,te.map=cp,te.mapKeys=uk,te.mapValues=dk,te.matches=en,te.matchesProperty=br,te.memoize=pp,te.merge=fk,te.mergeWith=xp,te.method=Ie,te.methodOf=Ee,te.mixin=Re,te.negate=hp,te.nthArg=In,te.omit=ag,te.omitBy=Hy,te.once=hC,te.orderBy=aC,te.over=Yt,te.overArgs=mC,te.overEvery=nn,te.overSome=Oo,te.partial=Oy,te.partialRight=Zm,te.partition=sC,te.pick=pk,te.pickBy=Cd,te.property=Vn,te.propertyOf=ec,te.pull=qw,te.pullAll=ld,te.pullAllBy=Yw,te.pullAllWith=Gm,te.pullAt=Kw,te.range=xk,te.rangeRight=bU,te.rearg=gC,te.reject=qm,te.remove=BM,te.rest=bC,te.reverse=vy,te.sampleSize=dC,te.set=LC,te.setWith=$C,te.shuffle=Cr,te.slice=lr,te.sortBy=fC,te.sortedUniq=cd,te.sortedUniqBy=xy,te.split=dg,te.spread=YM,te.tail=Xs,te.take=eo,te.takeRight=Gl,te.takeRightWhile=Kc,te.takeWhile=wy,te.tap=My,te.throttle=_y,te.thru=Ko,te.toArray=Wi,te.toPairs=Uy,te.toPairsIn=Gy,te.toPath=CU,te.toPlainObject=PC,te.transform=Vy,te.unary=Dy,te.union=fa,te.unionBy=ud,te.unionWith=sp,te.uniq=Pi,te.uniqBy=Cy,te.uniqWith=Sy,te.unset=jC,te.unzip=dd,te.unzipWith=lp,te.update=sg,te.updateWith=mk,te.values=Sd,te.valuesIn=Wy,te.without=Vl,te.words=M,te.wrap=KM,te.xor=jo,te.xorBy=Wl,te.xorWith=fd,te.zip=pd,te.zipObject=Ey,te.zipObjectDeep=Ty,te.zipWith=Xw,te.entries=Uy,te.entriesIn=Gy,te.extend=IC,te.extendWith=og,Re(te,te),te.add=EU,te.attempt=L,te.camelCase=FC,te.capitalize=cg,te.ceil=TU,te.clamp=qy,te.clone=mp,te.cloneDeep=yC,te.cloneDeepWith=_n,te.cloneWith=ZM,te.conformsTo=Ly,te.deburr=Qs,te.defaultTo=rt,te.divide=MU,te.endsWith=Zl,te.eq=Ii,te.escape=Ql,te.escapeRegExp=wp,te.every=eC,te.find=nC,te.findIndex=da,te.findKey=vd,te.findLast=Py,te.findLastIndex=gy,te.findLastKey=bp,te.floor=kU,te.forEach=rC,te.forEachRight=Ay,te.forIn=RC,te.forInRight=lk,te.forOwn=xd,te.forOwnRight=yp,te.get=vp,te.gt=$y,te.gte=vC,te.has=By,te.hasIn=wd,te.head=Ks,te.identity=$e,te.includes=gd,te.indexOf=by,te.inRange=lg,te.invoke=ck,te.isArguments=Zs,te.isArray=ln,te.isArrayBuffer=Qm,te.isArrayLike=wo,te.isArrayLikeObject=to,te.isBoolean=QM,te.isBuffer=Xl,te.isDate=xC,te.isElement=wC,te.isEmpty=Jm,te.isEqual=gr,te.isEqualWith=jy,te.isError=Co,te.isFinite=JM,te.isFunction=Da,te.isInteger=eg,te.isLength=Xc,te.isMap=tg,te.isMatch=Fy,te.isMatchWith=ek,te.isNaN=CC,te.isNative=tk,te.isNil=nk,te.isNull=SC,te.isNumber=EC,te.isObject=Br,te.isObjectLike=Wr,te.isPlainObject=pa,te.isRegExp=ng,te.isSafeInteger=Ny,te.isSet=TC,te.isString=rg,te.isSymbol=ui,te.isTypedArray=bd,te.isUndefined=La,te.isWeakMap=zy,te.isWeakSet=MC,te.join=ap,te.kebabCase=Cp,te.last=Yo,te.lastIndexOf=sd,te.lowerCase=Jl,te.lowerFirst=gk,te.lt=kC,te.lte=gp,te.max=PU,te.maxBy=IU,te.mean=AU,te.meanBy=RU,te.min=OU,te.minBy=_U,te.stubArray=wk,te.stubFalse=Ck,te.stubObject=yU,te.stubString=vU,te.stubTrue=xU,te.multiply=DU,te.nth=Ww,te.noConflict=at,te.noop=$t,te.now=Ym,te.pad=NC,te.padEnd=Sp,te.padStart=bk,te.parseInt=zC,te.random=Yy,te.reduce=lC,te.reduceRight=cC,te.repeat=ug,te.replace=BC,te.result=hk,te.round=LU,te.runInContext=Me,te.sample=uC,te.size=Ry,te.snakeCase=yk,te.some=VM,te.sortedIndex=Tr,te.sortedIndexBy=On,te.sortedIndexOf=Hn,te.sortedLastIndex=cr,te.sortedLastIndexBy=Gi,te.sortedLastIndexOf=Ul,te.startCase=fg,te.startsWith=HC,te.subtract=$U,te.sum=jU,te.sumBy=FU,te.template=Ep,te.times=wU,te.toFinite=cs,te.toInteger=pn,te.toLength=us,te.toLower=Ky,te.toNumber=ha,te.toSafeInteger=yd,te.toString=Zn,te.toUpper=pg,te.trim=UC,te.trimEnd=vk,te.trimStart=hg,te.truncate=s,te.unescape=c,te.uniqueId=SU,te.upperCase=p,te.upperFirst=x,te.each=rC,te.eachRight=Ay,te.first=Ks,Re(te,function(){var h={};return qo(te,function(v,A){Xn.call(te.prototype,A)||(h[A]=v)}),h}(),{chain:!1}),te.VERSION=r,na(["bind","bindKey","curry","curryRight","partial","partialRight"],function(h){te[h].placeholder=te}),na(["drop","take"],function(h,v){Pn.prototype[h]=function(A){A=A===n?1:Rr(pn(A),0);var U=this.__filtered__&&!v?new Pn(this):this.clone();return U.__filtered__?U.__takeCount__=Fr(A,U.__takeCount__):U.__views__.push({size:Fr(A,K),type:h+(U.__dir__<0?"Right":"")}),U},Pn.prototype[h+"Right"]=function(A){return this.reverse()[h](A).reverse()}}),na(["filter","map","takeWhile"],function(h,v){var A=v+1,U=A==q||A==N;Pn.prototype[h]=function(Z){var oe=this.clone();return oe.__iteratees__.push({iteratee:Qt(Z,3),type:A}),oe.__filtered__=oe.__filtered__||U,oe}}),na(["head","last"],function(h,v){var A="take"+(v?"Right":"");Pn.prototype[h]=function(){return this[A](1).value()[0]}}),na(["initial","tail"],function(h,v){var A="drop"+(v?"":"Right");Pn.prototype[h]=function(){return this.__filtered__?new Pn(this):this[A](1)}}),Pn.prototype.compact=function(){return this.filter($e)},Pn.prototype.find=function(h){return this.filter(h).head()},Pn.prototype.findLast=function(h){return this.reverse().find(h)},Pn.prototype.invokeMap=xn(function(h,v){return typeof h=="function"?new Pn(this):this.map(function(A){return zc(A,h,v)})}),Pn.prototype.reject=function(h){return this.filter(hp(Qt(h)))},Pn.prototype.slice=function(h,v){h=pn(h);var A=this;return A.__filtered__&&(h>0||v<0)?new Pn(A):(h<0?A=A.takeRight(-h):h&&(A=A.drop(h)),v!==n&&(v=pn(v),A=v<0?A.dropRight(-v):A.take(v-h)),A)},Pn.prototype.takeRightWhile=function(h){return this.reverse().takeWhile(h).reverse()},Pn.prototype.toArray=function(){return this.take(K)},qo(Pn.prototype,function(h,v){var A=/^(?:filter|find|map|reject)|While$/.test(v),U=/^(?:head|last)$/.test(v),Z=te[U?"take"+(v=="last"?"Right":""):v],oe=U||/^find/.test(v);Z&&(te.prototype[v]=function(){var pe=this.__wrapped__,Se=U?[1]:arguments,Ae=pe instanceof Pn,lt=Se[0],ut=Ae||ln(pe),mt=function(Fn){var Wn=Z.apply(te,$s([Fn],Se));return U&&At?Wn[0]:Wn};ut&&A&&typeof lt=="function"&&lt.length!=1&&(Ae=ut=!1);var At=this.__chain__,qt=!!this.__actions__.length,an=oe&&!At,An=Ae&&!qt;if(!oe&&ut){pe=An?pe:new Pn(this);var sn=h.apply(pe,Se);return sn.__actions__.push({func:Ko,args:[mt],thisArg:n}),new wi(sn,At)}return an&&An?h.apply(this,Se):(sn=this.thru(mt),an?U?sn.value()[0]:sn.value():sn)})}),na(["pop","push","shift","sort","splice","unshift"],function(h){var v=am[h],A=/^(?:push|sort|unshift)$/.test(h)?"tap":"thru",U=/^(?:pop|shift)$/.test(h);te.prototype[h]=function(){var Z=arguments;if(U&&!this.__chain__){var oe=this.value();return v.apply(ln(oe)?oe:[],Z)}return this[A](function(pe){return v.apply(ln(pe)?pe:[],Z)})}}),qo(Pn.prototype,function(h,v){var A=te[v];if(A){var U=A.name+"";Xn.call(sa,U)||(sa[U]=[]),sa[U].push({name:v,func:A})}}),sa[Jr(n,T).name]=[{name:"wrapper",func:n}],Pn.prototype.clone=Af,Pn.prototype.reverse=um,Pn.prototype.value=Lc,te.prototype.at=Zw,te.prototype.chain=Vi,te.prototype.commit=Qw,te.prototype.next=Jw,te.prototype.plant=ql,te.prototype.reverse=Vm,te.prototype.toJSON=te.prototype.valueOf=te.prototype.value=ky,te.prototype.first=te.prototype.head,Rc&&(te.prototype[Rc]=HM),te},Rl=Uu();kl?((kl.exports=Rl)._=Rl,ju._=Rl):lo._=Rl}).call(X1e)}(Dv,Dv.exports)),Dv.exports}var Q1e=Z1e();const Ua=wu(Q1e),n_=({checked:e,setChecked:t,children:n,error:r,helperText:o,sx:i})=>{const a=l=>{t(l.target.checked)};return y.jsxs(Hx,{required:!0,error:r,sx:i,children:[y.jsx(qF,{label:n,control:y.jsx(NF,{sx:{mt:"-12px",mb:"-12px",flexShrink:0,"& .MuiSvgIcon-root":{fontSize:24}},checked:e,onChange:a})}),r&&y.jsx(YF,{children:o})]})},J1e=/^[\w-.]+@([\w-]+\.)+[\w-]{2,4}$/,BL=({values:e,setValues:t,label:n})=>{const[r,o]=b.useState(""),[i,a]=b.useState(!1),l=g=>{const w=g.trim().replace(/,$/,"");J1e.test(w)&&!e.includes(w)?(t([...e,w]),o(""),a(!1)):w!==""&&a(!0)},u=g=>{(g.key==="Enter"||g.key===","||g.key===" ")&&r.trim()&&(g.preventDefault(),l(r))},d=()=>{r.trim()&&l(r)},f=g=>{t(e.filter(w=>w!==g))},m=e.length?{p:1,border:"1px solid",borderColor:i?"error.main":"grey.400",borderRadius:1}:{};return y.jsxs(Oe,{children:[y.jsxs(Oe,{sx:{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:1,rowGap:2,...m},children:[e.map(g=>y.jsx(xc,{label:g,onDelete:()=>f(g),color:"primary"},g)),y.jsx(rf,{size:"small",fullWidth:!e.length,label:n,value:r,onBlur:d,onChange:g=>{o(g.target.value),a(!1)},onKeyDown:u,placeholder:"Type email and press enter or space",slotProps:{input:{sx:{minWidth:300}}},error:i})]}),i&&y.jsx(Jt,{variant:"caption",color:"error",children:"Invalid email address"})]})},Xz=({value:e,onChange:t})=>{const n=so(),r=xt(DT);return b.useEffect(()=>{r.length===0&&n(B2())},[]),y.jsx(Bx,{multiple:!0,size:"small",filterSelectedOptions:!0,autoHighlight:!0,value:e,onChange:(o,i)=>{t(i)},options:r,getOptionLabel:o=>o.displayName,renderInput:o=>y.jsx(rf,{...o,label:"Categories",slotProps:{htmlInput:{...o.inputProps,autoComplete:"new-password"}}})})},Zz=({code:e})=>y.jsx(Oe,{component:"span",border:"1px solid var(--mui-palette-divider)",display:"inline-flex",mr:"4px",children:y.jsx("img",{loading:"lazy",width:"20",srcSet:`https://flagcdn.com/w40/${e.toLowerCase()}.png 2x`,src:`https://flagcdn.com/w20/${e.toLowerCase()}.png`,alt:""})}),Qz=({value:e,onChange:t})=>{const n=so(),r=xt(LT);return b.useEffect(()=>{r.length===0&&n(z2())},[]),y.jsx(Bx,{size:"small",multiple:!0,filterSelectedOptions:!0,options:r,autoHighlight:!0,value:e,onChange:(o,i)=>{t(i)},getOptionLabel:o=>o.name,renderOption:(o,i)=>{const{key:a,...l}=o;return y.jsxs(Oe,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...l,children:[y.jsx(Zz,{code:i.code}),i.name]},a)},renderInput:o=>y.jsx(rf,{...o,label:"Countries",slotProps:{htmlInput:{...o.inputProps,autoComplete:"new-password"}}})})};var Jz={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},HL=un.createContext&&un.createContext(Jz),ewe=["attr","size","title"];function twe(e,t){if(e==null)return{};var n=nwe(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nwe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function q2(){return q2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},q2.apply(this,arguments)}function UL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Y2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UL(Object(n),!0).forEach(function(r){rwe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UL(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rwe(e,t,n){return t=owe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function owe(e){var t=iwe(e,"string");return typeof t=="symbol"?t:t+""}function iwe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function e7(e){return e&&e.map((t,n)=>un.createElement(t.tag,Y2({key:n},t.attr),e7(t.child)))}function $i(e){return t=>un.createElement(awe,q2({attr:Y2({},e.attr)},t),e7(e.child))}function awe(e){var t=n=>{var{attr:r,size:o,title:i}=e,a=twe(e,ewe),l=o||n.size||"1em",u;return n.className&&(u=n.className),e.className&&(u=(u?u+" ":"")+e.className),un.createElement("svg",q2({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},n.attr,r,a,{className:u,style:Y2(Y2({color:e.color||n.color},n.style),e.style),height:l,width:l,xmlns:"http://www.w3.org/2000/svg"}),i&&un.createElement("title",null,i),e.children)};return HL!==void 0?un.createElement(HL.Consumer,null,n=>t(n)):t(Jz)}function swe(e){return $i({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M504.717 320H211.572l6.545 32h268.418c15.401 0 26.816 14.301 23.403 29.319l-5.517 24.276C523.112 414.668 536 433.828 536 456c0 31.202-25.519 56.444-56.824 55.994-29.823-.429-54.35-24.631-55.155-54.447-.44-16.287 6.085-31.049 16.803-41.548H231.176C241.553 426.165 248 440.326 248 456c0 31.813-26.528 57.431-58.67 55.938-28.54-1.325-51.751-24.385-53.251-52.917-1.158-22.034 10.436-41.455 28.051-51.586L93.883 64H24C10.745 64 0 53.255 0 40V24C0 10.745 10.745 0 24 0h102.529c11.401 0 21.228 8.021 23.513 19.19L159.208 64H551.99c15.401 0 26.816 14.301 23.403 29.319l-47.273 208C525.637 312.246 515.923 320 504.717 320zM408 168h-48v-40c0-8.837-7.163-16-16-16h-16c-8.837 0-16 7.163-16 16v40h-48c-8.837 0-16 7.163-16 16v16c0 8.837 7.163 16 16 16h48v40c0 8.837 7.163 16 16 16h16c8.837 0 16-7.163 16-16v-40h48c8.837 0 16-7.163 16-16v-16c0-8.837-7.163-16-16-16z"},child:[]}]})(e)}function lwe(e){return $i({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M528.12 301.319l47.273-208C578.806 78.301 567.391 64 551.99 64H159.208l-9.166-44.81C147.758 8.021 137.93 0 126.529 0H24C10.745 0 0 10.745 0 24v16c0 13.255 10.745 24 24 24h69.883l70.248 343.435C147.325 417.1 136 435.222 136 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-15.674-6.447-29.835-16.824-40h209.647C430.447 426.165 424 440.326 424 456c0 30.928 25.072 56 56 56s56-25.072 56-56c0-22.172-12.888-41.332-31.579-50.405l5.517-24.276c3.413-15.018-8.002-29.319-23.403-29.319H218.117l-6.545-32h293.145c11.206 0 20.92-7.754 23.403-18.681z"},child:[]}]})(e)}function cwe(e){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M57.7 193l9.4 16.4c8.3 14.5 21.9 25.2 38 29.8L163 255.7c17.2 4.9 29 20.6 29 38.5l0 39.9c0 11 6.2 21 16 25.9s16 14.9 16 25.9l0 39c0 15.6 14.9 26.9 29.9 22.6c16.1-4.6 28.6-17.5 32.7-33.8l2.8-11.2c4.2-16.9 15.2-31.4 30.3-40l8.1-4.6c15-8.5 24.2-24.5 24.2-41.7l0-8.3c0-12.7-5.1-24.9-14.1-33.9l-3.9-3.9c-9-9-21.2-14.1-33.9-14.1L257 256c-11.1 0-22.1-2.9-31.8-8.4l-34.5-19.7c-4.3-2.5-7.6-6.5-9.2-11.2c-3.2-9.6 1.1-20 10.2-24.5l5.9-3c6.6-3.3 14.3-3.9 21.3-1.5l23.2 7.7c8.2 2.7 17.2-.4 21.9-7.5c4.7-7 4.2-16.3-1.2-22.8l-13.6-16.3c-10-12-9.9-29.5 .3-41.3l15.7-18.3c8.8-10.3 10.2-25 3.5-36.7l-2.4-4.2c-3.5-.2-6.9-.3-10.4-.3C163.1 48 84.4 108.9 57.7 193zM464 256c0-36.8-9.6-71.4-26.4-101.5L412 164.8c-15.7 6.3-23.8 23.8-18.5 39.8l16.9 50.7c3.5 10.4 12 18.3 22.6 20.9l29.1 7.3c1.2-9 1.8-18.2 1.8-27.5zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"},child:[]}]})(e)}function uwe(e){return $i({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM609.3 512l-137.8 0c5.4-9.4 8.6-20.3 8.6-32l0-8c0-60.7-27.1-115.2-69.8-151.8c2.4-.1 4.7-.2 7.1-.2l61.4 0C567.8 320 640 392.2 640 481.3c0 17-13.8 30.7-30.7 30.7zM432 256c-31 0-59-12.6-79.3-32.9C372.4 196.5 384 163.6 384 128c0-26.8-6.6-52.1-18.3-74.3C384.3 40.1 407.2 32 432 32c61.9 0 112 50.1 112 112s-50.1 112-112 112z"},child:[]}]})(e)}function dwe(e){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64L80 128c-8.8 0-16-7.2-16-16s7.2-16 16-16l368 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L64 32zM416 272a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"},child:[]}]})(e)}function fwe(e){return $i({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"},child:[]}]})(e)}function pwe(e){return $i({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"},child:[]},{tag:"path",attr:{d:"M686.7 638.6L544.1 535.5V288c0-4.4-3.6-8-8-8H488c-4.4 0-8 3.6-8 8v275.4c0 2.6 1.2 5 3.3 6.5l165.4 120.6c3.6 2.6 8.6 1.8 11.2-1.7l28.6-39c2.6-3.7 1.8-8.7-1.8-11.2z"},child:[]}]})(e)}function hwe(e){return $i({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0 0 42 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"},child:[]}]})(e)}function mwe(e){return $i({attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M574 665.4a8.03 8.03 0 0 0-11.3 0L446.5 781.6c-53.8 53.8-144.6 59.5-204 0-59.5-59.5-53.8-150.2 0-204l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3l-39.8-39.8a8.03 8.03 0 0 0-11.3 0L191.4 526.5c-84.6 84.6-84.6 221.5 0 306s221.5 84.6 306 0l116.2-116.2c3.1-3.1 3.1-8.2 0-11.3L574 665.4zm258.6-474c-84.6-84.6-221.5-84.6-306 0L410.3 307.6a8.03 8.03 0 0 0 0 11.3l39.7 39.7c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c53.8-53.8 144.6-59.5 204 0 59.5 59.5 53.8 150.2 0 204L665.3 562.6a8.03 8.03 0 0 0 0 11.3l39.8 39.8c3.1 3.1 8.2 3.1 11.3 0l116.2-116.2c84.5-84.6 84.5-221.5 0-306.1zM610.1 372.3a8.03 8.03 0 0 0-11.3 0L372.3 598.7a8.03 8.03 0 0 0 0 11.3l39.6 39.6c3.1 3.1 8.2 3.1 11.3 0l226.4-226.4c3.1-3.1 3.1-8.2 0-11.3l-39.5-39.6z"},child:[]}]})(e)}function K2(e){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"m289.94 256 95-95A24 24 0 0 0 351 127l-95 95-95-95a24 24 0 0 0-34 34l95 95-95 95a24 24 0 1 0 34 34l95-95 95 95a24 24 0 0 0 34-34z"},child:[]}]})(e)}function gwe(e){return $i({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"},child:[]},{tag:"path",attr:{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"},child:[]}]})(e)}function t7(e){return $i({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(e)}function bwe(e){return $i({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M7 4V2H17V4H22V6H20V21C20 21.5523 19.5523 22 19 22H5C4.44772 22 4 21.5523 4 21V6H2V4H7ZM6 6V20H18V6H6ZM9 9H11V17H9V9ZM13 9H15V17H13V9Z"},child:[]}]})(e)}const BT=24,r_=20,n7=()=>y.jsx(lwe,{size:BT}),ywe=()=>y.jsx(swe,{}),r7=()=>y.jsx(cwe,{size:BT}),vwe=()=>y.jsx(uwe,{size:BT}),o7=()=>y.jsx(gwe,{size:r_}),HT=()=>y.jsx(K2,{size:r_}),i7=()=>y.jsx(bwe,{size:r_}),o_=()=>y.jsx(dwe,{size:BT}),a7=()=>y.jsx(t7,{}),bu=({label:e,value:t,onChange:n,options:r=[],sx:o,withClear:i})=>{const a=u=>n(u.target.value),l=()=>n("");return y.jsx(Oe,{sx:{minWidth:120,...o},children:y.jsxs(Hx,{fullWidth:!0,size:"small",children:[y.jsx(nT,{children:e}),y.jsx(H0,{value:t,label:e,onChange:a,endAdornment:!!t&&i&&y.jsx(Yd,{position:"end",sx:{marginRight:"10px",marginLeft:"-20px"},children:y.jsx(Ur,{onClick:l,children:y.jsx(HT,{})})}),children:r.map(u=>y.jsx(fh,{value:u.value,children:u.label},u.value))})]})})},xwe=({value:e,onChange:t})=>y.jsx(bu,{label:"Domain Status",value:e,onChange:t,options:dA}),wwe=({value:e,onChange:t,error:n,helperText:r,onBlur:o,name:i})=>{const a=so(),l=xt(a1);return b.useEffect(()=>{l.length===0&&a(gx())},[]),y.jsx(Bx,{size:"small",id:"country-select-demo",options:l,autoHighlight:!0,value:e,onBlur:o,onChange:(u,d)=>{t(d)},getOptionLabel:u=>u.name,renderOption:(u,d)=>{const{key:f,...m}=u;return y.jsxs(Oe,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...m,children:[d.name," (",d.code,")"]},f)},renderInput:u=>y.jsx(rf,{...u,name:i,label:"Language",helperText:r,error:n,slotProps:{htmlInput:{...u.inputProps,autoComplete:"new-password"}}})})},Cwe={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Swe=(e,t,n)=>{let r;const o=Cwe[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+r:r+" ago":r};function RP(e){return(t={})=>{const n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}const Ewe={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Twe={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mwe={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},kwe={date:RP({formats:Ewe,defaultWidth:"full"}),time:RP({formats:Twe,defaultWidth:"full"}),dateTime:RP({formats:Mwe,defaultWidth:"full"})},Pwe={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Iwe=(e,t,n,r)=>Pwe[e];function pv(e){return(t,n)=>{const r=n!=null&&n.context?String(n.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=n!=null&&n.width?String(n.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=n!=null&&n.width?String(n.width):e.defaultWidth;o=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return o[i]}}const Awe={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Rwe={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Owe={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},_we={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Dwe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Lwe={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},$we=(e,t)=>{const n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},jwe={ordinalNumber:$we,era:pv({values:Awe,defaultWidth:"wide"}),quarter:pv({values:Rwe,defaultWidth:"wide",argumentCallback:e=>e-1}),month:pv({values:Owe,defaultWidth:"wide"}),day:pv({values:_we,defaultWidth:"wide"}),dayPeriod:pv({values:Dwe,defaultWidth:"wide",formattingValues:Lwe,defaultFormattingWidth:"wide"})};function hv(e){return(t,n={})=>{const r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],u=Array.isArray(l)?Nwe(l,m=>m.test(a)):Fwe(l,m=>m.test(a));let d;d=e.valueCallback?e.valueCallback(u):u,d=n.valueCallback?n.valueCallback(d):d;const f=t.slice(a.length);return{value:d,rest:f}}}function Fwe(e,t){for(const n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function Nwe(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function zwe(e){return(t,n={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=n.valueCallback?n.valueCallback(a):a;const l=t.slice(o.length);return{value:a,rest:l}}}const Bwe=/^(\d+)(th|st|nd|rd)?/i,Hwe=/\d+/i,Uwe={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Gwe={any:[/^b/i,/^(a|c)/i]},Vwe={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wwe={any:[/1/i,/2/i,/3/i,/4/i]},qwe={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ywe={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Kwe={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Xwe={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Zwe={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Qwe={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Jwe={ordinalNumber:zwe({matchPattern:Bwe,parsePattern:Hwe,valueCallback:e=>parseInt(e,10)}),era:hv({matchPatterns:Uwe,defaultMatchWidth:"wide",parsePatterns:Gwe,defaultParseWidth:"any"}),quarter:hv({matchPatterns:Vwe,defaultMatchWidth:"wide",parsePatterns:Wwe,defaultParseWidth:"any",valueCallback:e=>e+1}),month:hv({matchPatterns:qwe,defaultMatchWidth:"wide",parsePatterns:Ywe,defaultParseWidth:"any"}),day:hv({matchPatterns:Kwe,defaultMatchWidth:"wide",parsePatterns:Xwe,defaultParseWidth:"any"}),dayPeriod:hv({matchPatterns:Zwe,defaultMatchWidth:"any",parsePatterns:Qwe,defaultParseWidth:"any"})},s7={code:"en-US",formatDistance:Swe,formatLong:kwe,formatRelative:Iwe,localize:jwe,match:Jwe,options:{weekStartsOn:0,firstWeekContainsDate:1}};let eCe={};function u1(){return eCe}const l7=6048e5,tCe=864e5,xS=43200,GL=1440,VL=Symbol.for("constructDateFrom");function Qd(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&VL in e?e[VL](t):e instanceof Date?new e.constructor(t):new Date(t)}function ti(e,t){return Qd(t||e,e)}function X2(e){const t=ti(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function UT(e,...t){const n=Qd.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function WL(e,t){const n=ti(e,t==null?void 0:t.in);return n.setHours(0,0,0,0),n}function nCe(e,t,n){const[r,o]=UT(n==null?void 0:n.in,e,t),i=WL(r),a=WL(o),l=+i-X2(i),u=+a-X2(a);return Math.round((l-u)/tCe)}function rCe(e,t){const n=ti(e,t==null?void 0:t.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function oCe(e,t){const n=ti(e,t==null?void 0:t.in);return nCe(n,rCe(n))+1}function xx(e,t){var l,u,d,f;const n=u1(),r=(t==null?void 0:t.weekStartsOn)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.weekStartsOn)??n.weekStartsOn??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.weekStartsOn)??0,o=ti(e,t==null?void 0:t.in),i=o.getDay(),a=(i<r?7:0)+i-r;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function Z2(e,t){return xx(e,{...t,weekStartsOn:1})}function c7(e,t){const n=ti(e,t==null?void 0:t.in),r=n.getFullYear(),o=Qd(n,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const i=Z2(o),a=Qd(n,0);a.setFullYear(r,0,4),a.setHours(0,0,0,0);const l=Z2(a);return n.getTime()>=i.getTime()?r+1:n.getTime()>=l.getTime()?r:r-1}function iCe(e,t){const n=c7(e,t),r=Qd(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),Z2(r)}function aCe(e,t){const n=ti(e,t==null?void 0:t.in),r=+Z2(n)-+iCe(n);return Math.round(r/l7)+1}function u7(e,t){var f,m,g,w;const n=ti(e,t==null?void 0:t.in),r=n.getFullYear(),o=u1(),i=(t==null?void 0:t.firstWeekContainsDate)??((m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??o.firstWeekContainsDate??((w=(g=o.locale)==null?void 0:g.options)==null?void 0:w.firstWeekContainsDate)??1,a=Qd((t==null?void 0:t.in)||e,0);a.setFullYear(r+1,0,i),a.setHours(0,0,0,0);const l=xx(a,t),u=Qd((t==null?void 0:t.in)||e,0);u.setFullYear(r,0,i),u.setHours(0,0,0,0);const d=xx(u,t);return+n>=+l?r+1:+n>=+d?r:r-1}function sCe(e,t){var l,u,d,f;const n=u1(),r=(t==null?void 0:t.firstWeekContainsDate)??((u=(l=t==null?void 0:t.locale)==null?void 0:l.options)==null?void 0:u.firstWeekContainsDate)??n.firstWeekContainsDate??((f=(d=n.locale)==null?void 0:d.options)==null?void 0:f.firstWeekContainsDate)??1,o=u7(e,t),i=Qd((t==null?void 0:t.in)||e,0);return i.setFullYear(o,0,r),i.setHours(0,0,0,0),xx(i,t)}function lCe(e,t){const n=ti(e,t==null?void 0:t.in),r=+xx(n,t)-+sCe(n,t);return Math.round(r/l7)+1}function Sr(e,t){const n=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return n+r}const kd={y(e,t){const n=e.getFullYear(),r=n>0?n:1-n;return Sr(t==="yy"?r%100:r,t.length)},M(e,t){const n=e.getMonth();return t==="M"?String(n+1):Sr(n+1,2)},d(e,t){return Sr(e.getDate(),t.length)},a(e,t){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.toUpperCase();case"aaa":return n;case"aaaaa":return n[0];case"aaaa":default:return n==="am"?"a.m.":"p.m."}},h(e,t){return Sr(e.getHours()%12||12,t.length)},H(e,t){return Sr(e.getHours(),t.length)},m(e,t){return Sr(e.getMinutes(),t.length)},s(e,t){return Sr(e.getSeconds(),t.length)},S(e,t){const n=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,n-3));return Sr(o,t.length)}},Ag={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},qL={G:function(e,t,n){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return n.era(r,{width:"abbreviated"});case"GGGGG":return n.era(r,{width:"narrow"});case"GGGG":default:return n.era(r,{width:"wide"})}},y:function(e,t,n){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return n.ordinalNumber(o,{unit:"year"})}return kd.y(e,t)},Y:function(e,t,n,r){const o=u7(e,r),i=o>0?o:1-o;if(t==="YY"){const a=i%100;return Sr(a,2)}return t==="Yo"?n.ordinalNumber(i,{unit:"year"}):Sr(i,t.length)},R:function(e,t){const n=c7(e);return Sr(n,t.length)},u:function(e,t){const n=e.getFullYear();return Sr(n,t.length)},Q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Sr(r,2);case"Qo":return n.ordinalNumber(r,{unit:"quarter"});case"QQQ":return n.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return n.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return n.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,n){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Sr(r,2);case"qo":return n.ordinalNumber(r,{unit:"quarter"});case"qqq":return n.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return n.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return n.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,n){const r=e.getMonth();switch(t){case"M":case"MM":return kd.M(e,t);case"Mo":return n.ordinalNumber(r+1,{unit:"month"});case"MMM":return n.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return n.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return n.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,n){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Sr(r+1,2);case"Lo":return n.ordinalNumber(r+1,{unit:"month"});case"LLL":return n.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return n.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return n.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,n,r){const o=lCe(e,r);return t==="wo"?n.ordinalNumber(o,{unit:"week"}):Sr(o,t.length)},I:function(e,t,n){const r=aCe(e);return t==="Io"?n.ordinalNumber(r,{unit:"week"}):Sr(r,t.length)},d:function(e,t,n){return t==="do"?n.ordinalNumber(e.getDate(),{unit:"date"}):kd.d(e,t)},D:function(e,t,n){const r=oCe(e);return t==="Do"?n.ordinalNumber(r,{unit:"dayOfYear"}):Sr(r,t.length)},E:function(e,t,n){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return n.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return n.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return n.day(r,{width:"short",context:"formatting"});case"EEEE":default:return n.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Sr(i,2);case"eo":return n.ordinalNumber(i,{unit:"day"});case"eee":return n.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return n.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return n.day(o,{width:"short",context:"formatting"});case"eeee":default:return n.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,n,r){const o=e.getDay(),i=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Sr(i,t.length);case"co":return n.ordinalNumber(i,{unit:"day"});case"ccc":return n.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return n.day(o,{width:"narrow",context:"standalone"});case"cccccc":return n.day(o,{width:"short",context:"standalone"});case"cccc":default:return n.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,n){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Sr(o,t.length);case"io":return n.ordinalNumber(o,{unit:"day"});case"iii":return n.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return n.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return n.day(r,{width:"short",context:"formatting"});case"iiii":default:return n.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,n){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,n){const r=e.getHours();let o;switch(r===12?o=Ag.noon:r===0?o=Ag.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,n){const r=e.getHours();let o;switch(r>=17?o=Ag.evening:r>=12?o=Ag.afternoon:r>=4?o=Ag.morning:o=Ag.night,t){case"B":case"BB":case"BBB":return n.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return n.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return n.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,n){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),n.ordinalNumber(r,{unit:"hour"})}return kd.h(e,t)},H:function(e,t,n){return t==="Ho"?n.ordinalNumber(e.getHours(),{unit:"hour"}):kd.H(e,t)},K:function(e,t,n){const r=e.getHours()%12;return t==="Ko"?n.ordinalNumber(r,{unit:"hour"}):Sr(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t==="ko"?n.ordinalNumber(r,{unit:"hour"}):Sr(r,t.length)},m:function(e,t,n){return t==="mo"?n.ordinalNumber(e.getMinutes(),{unit:"minute"}):kd.m(e,t)},s:function(e,t,n){return t==="so"?n.ordinalNumber(e.getSeconds(),{unit:"second"}):kd.s(e,t)},S:function(e,t){return kd.S(e,t)},X:function(e,t,n){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return KL(r);case"XXXX":case"XX":return $p(r);case"XXXXX":case"XXX":default:return $p(r,":")}},x:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"x":return KL(r);case"xxxx":case"xx":return $p(r);case"xxxxx":case"xxx":default:return $p(r,":")}},O:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+YL(r,":");case"OOOO":default:return"GMT"+$p(r,":")}},z:function(e,t,n){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+YL(r,":");case"zzzz":default:return"GMT"+$p(r,":")}},t:function(e,t,n){const r=Math.trunc(+e/1e3);return Sr(r,t.length)},T:function(e,t,n){return Sr(+e,t.length)}};function YL(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),i=r%60;return i===0?n+String(o):n+String(o)+t+Sr(i,2)}function KL(e,t){return e%60===0?(e>0?"-":"+")+Sr(Math.abs(e)/60,2):$p(e,t)}function $p(e,t=""){const n=e>0?"-":"+",r=Math.abs(e),o=Sr(Math.trunc(r/60),2),i=Sr(r%60,2);return n+o+t+i}const XL=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},d7=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},cCe=(e,t)=>{const n=e.match(/(P+)(p+)?/)||[],r=n[1],o=n[2];if(!o)return XL(e,t);let i;switch(r){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;case"PPPP":default:i=t.dateTime({width:"full"});break}return i.replace("{{date}}",XL(r,t)).replace("{{time}}",d7(o,t))},uCe={p:d7,P:cCe},dCe=/^D+$/,fCe=/^Y+$/,pCe=["D","DD","YY","YYYY"];function hCe(e){return dCe.test(e)}function mCe(e){return fCe.test(e)}function gCe(e,t,n){const r=bCe(e,t,n);if(console.warn(r),pCe.includes(e))throw new RangeError(r)}function bCe(e,t,n){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}function yCe(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function vCe(e){return!(!yCe(e)&&typeof e!="number"||isNaN(+ti(e)))}const xCe=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,wCe=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,CCe=/^'([^]*?)'?$/,SCe=/''/g,ECe=/[a-zA-Z]/;function i_(e,t,n){var f,m,g,w;const r=u1(),o=r.locale??s7,i=r.firstWeekContainsDate??((m=(f=r.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)??1,a=r.weekStartsOn??((w=(g=r.locale)==null?void 0:g.options)==null?void 0:w.weekStartsOn)??0,l=ti(e,n==null?void 0:n.in);if(!vCe(l))throw new RangeError("Invalid time value");let u=t.match(wCe).map(C=>{const S=C[0];if(S==="p"||S==="P"){const E=uCe[S];return E(C,o.formatLong)}return C}).join("").match(xCe).map(C=>{if(C==="''")return{isToken:!1,value:"'"};const S=C[0];if(S==="'")return{isToken:!1,value:TCe(C)};if(qL[S])return{isToken:!0,value:C};if(S.match(ECe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+S+"`");return{isToken:!1,value:C}});o.localize.preprocessor&&(u=o.localize.preprocessor(l,u));const d={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return u.map(C=>{if(!C.isToken)return C.value;const S=C.value;(mCe(S)||hCe(S))&&gCe(S,t,String(e));const E=qL[S[0]];return E(l,S,o.localize,d)}).join("")}function TCe(e){const t=e.match(CCe);return t?t[1].replace(SCe,"'"):e}function e2(e,t){const n=+ti(e)-+ti(t);return n<0?-1:n>0?1:n}function MCe(e,t,n){const[r,o]=UT(n==null?void 0:n.in,e,t),i=r.getFullYear()-o.getFullYear(),a=r.getMonth()-o.getMonth();return i*12+a}function kCe(e){return t=>{const n=Math.trunc,r=n(t);return r===0?0:r}}function PCe(e,t){return+ti(e)-+ti(t)}function ICe(e,t){const n=ti(e,t==null?void 0:t.in);return n.setHours(23,59,59,999),n}function ACe(e,t){const n=ti(e,t==null?void 0:t.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function RCe(e,t){const n=ti(e,t==null?void 0:t.in);return+ICe(n,t)==+ACe(n,t)}function OCe(e,t,n){const[r,o,i]=UT(n==null?void 0:n.in,e,e,t),a=e2(o,i),l=Math.abs(MCe(o,i));if(l<1)return 0;o.getMonth()===1&&o.getDate()>27&&o.setDate(30),o.setMonth(o.getMonth()-a*l);let u=e2(o,i)===-a;RCe(r)&&l===1&&e2(r,i)===1&&(u=!1);const d=a*(l-+u);return d===0?0:d}function _Ce(e,t,n){const r=PCe(e,t)/1e3;return kCe()(r)}function DCe(e,t,n){const o=u1().locale??s7,i=2520,a=e2(e,t);if(isNaN(a))throw new RangeError("Invalid time value");const l=Object.assign({},n,{addSuffix:n==null?void 0:n.addSuffix,comparison:a}),[u,d]=UT(n==null?void 0:n.in,...a>0?[t,e]:[e,t]),f=_Ce(d,u),m=(X2(d)-X2(u))/1e3,g=Math.round((f-m)/60);let w;if(g<2)return g===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",g,l);if(g<45)return o.formatDistance("xMinutes",g,l);if(g<90)return o.formatDistance("aboutXHours",1,l);if(g<GL){const C=Math.round(g/60);return o.formatDistance("aboutXHours",C,l)}else{if(g<i)return o.formatDistance("xDays",1,l);if(g<xS){const C=Math.round(g/GL);return o.formatDistance("xDays",C,l)}else if(g<xS*2)return w=Math.round(g/xS),o.formatDistance("aboutXMonths",w,l)}if(w=OCe(d,u),w<12){const C=Math.round(g/xS);return o.formatDistance("xMonths",C,l)}else{const C=w%12,S=Math.trunc(w/12);return C<3?o.formatDistance("aboutXYears",S,l):C<9?o.formatDistance("overXYears",S,l):o.formatDistance("almostXYears",S+1,l)}}const qp=e=>e.slice(1),LCe=(e,t)=>{const n=Ua.toArray(_o).map(o=>o.path),r=Ua.toArray(_i).map(o=>o.path);return!!(e===iA.customer&&n.includes(t)||e===iA.admin&&r.includes(t))},$Ce=(e,t)=>e.find(n=>n.code===t),jCe=(e,t)=>e.filter(n=>t.includes(n.code)),FCe=(e,t)=>e.filter(n=>t.includes(n.id));function NCe(e,t){return Ua.transform(t,(n,r,o)=>{Ua.isEqual(r,e[o])||(n[o]=r)},{})}const zCe=e=>i_(new Date(e),"PP"),f7=e=>e?i_(new Date(e),"PPp"):"",BCe=e=>e?DCe(new Date(e),new Date):"",HCe=e=>(e/30.5).toFixed(0)+" months",UCe={domainName:"",contentSampleLink:"",contentNotes:"",contentLifetime:0,contentPublicationSpeed:0,price:0},p7=({isEdit:e,open:t,setOpen:n,data:r})=>{const o=so(),[i,a]=b.useState(!1),[l,u]=b.useState({code:"",name:""}),[d,f]=b.useState([]),[m,g]=b.useState([]),[w,C]=b.useState(!1),[S,E]=b.useState(dA[0].value),[T,I]=b.useState([]),[k,R]=b.useState([]),P=xt(a1),O=xt(DT),j=xt(LT),F=xt(i1),[D,_]=b.useState({});b.useEffect(()=>{if(e&&r&&t&&P.length){const G=$Ce(P,r==null?void 0:r.language),N=r==null?void 0:r.domainStatus,H=jCe(j,r==null?void 0:r.countries),Y=FCe(O,r==null?void 0:r.categories),Q=r==null?void 0:r.contentDoFollowLink,W=r==null?void 0:r.webmasterEmails,K=r==null?void 0:r.nlEmails;_({initialEditLanguage:G,initialEditDomainStatus:N,initialEditCountries:H,initialEditCategories:Y,initialEditContentDoFollowLink:Q,initialEditWebmasterEmails:W,initialEditNlEmails:K}),u(G),f(H),g(Y),C(Q),E(N),I(W),R(K)}},[r,e,t,P,O,j]);const $=Oh({initialValues:e?{domainName:r==null?void 0:r.domainName,contentSampleLink:r==null?void 0:r.contentSampleLink,contentNotes:r==null?void 0:r.contentNotes,contentLifetime:r==null?void 0:r.contentLifetime,contentPublicationSpeed:r==null?void 0:r.contentPublicationSpeed,price:r==null?void 0:r.basePrice}:UCe,validationSchema:Nbe,onSubmit:async G=>{const N={...G,language:(l==null?void 0:l.code)||"",contentDoFollowLink:w,domainStatus:S,webmasterEmails:T,nlEmails:k,categories:m.map(H=>H.id),countries:d.map(H=>H.code)};try{a(!0),e?await x0.update(N,r==null?void 0:r.id).then(()=>{Ps("Updated"),B()}).catch(()=>{}).finally(()=>{a(!1)}):await x0.create(N).then(()=>{Ps("Created"),B()}).catch(()=>{}).finally(()=>{a(!1)})}catch{return!1}}}),B=()=>{n(!1),$.resetForm(),u(null),f([]),g([]),C(!1),E(dA[0].value),I([]),R([]),o(F2({searchValue:F,page:0,filters:{},sort:""}))},V=Ua.isEqual($.values,$.initialValues)&&D.initialEditLanguage===l&&D.initialEditCountries===d&&D.initialEditCategories===m&&D.initialEditContentDoFollowLink===w&&D.initialEditDomainStatus===S&&D.initialEditWebmasterEmails===T&&D.initialEditNlEmails===k,q=()=>$.submitForm();return y.jsx(ku,{maxWidth:"sm",title:e?"Edit domain":"Add domain",loading:i,open:t,setOpen:n,onSubmit:q,submitText:"Submit",disabled:V,scroll:"body",Trigger:e?void 0:y.jsx(rr,{variant:"outlined",children:"Add domain"}),children:y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{variant:"h6",children:"General Info"}),y.jsx(nr,{name:"domainName",label:"Name",placeholder:"example.com",value:$.values.domainName,onChange:$.handleChange,error:$.touched.domainName&&!!$.errors.domainName,helperText:$.touched.domainName&&$.errors.domainName,onBlur:$.handleBlur}),y.jsx(wwe,{value:l,onChange:u}),y.jsx(Qz,{value:d,onChange:f}),y.jsx(Xz,{value:m,onChange:g}),y.jsx(Zi,{}),y.jsx(Jt,{variant:"h6",children:"Content"}),y.jsx(nr,{name:"contentSampleLink",label:"Content Sample Link",placeholder:"Content Sample Link",value:$.values.contentSampleLink,onChange:$.handleChange,error:$.touched.contentSampleLink&&!!$.errors.contentSampleLink,helperText:$.touched.contentSampleLink&&$.errors.contentSampleLink,onBlur:$.handleBlur}),y.jsx(nr,{name:"contentNotes",label:"Content Notes",placeholder:"Content Notes",value:$.values.contentNotes,onChange:$.handleChange,error:$.touched.contentNotes&&!!$.errors.contentNotes,helperText:$.touched.contentNotes&&$.errors.contentNotes,onBlur:$.handleBlur}),y.jsxs(Oe,{display:"flex",gap:2,justifyContent:"space-between",children:[y.jsx(nr,{sx:{width:"100%"},type:"number",name:"contentLifetime",label:"Content Lifetime",placeholder:"Content Lifetime",value:$.values.contentLifetime,onChange:$.handleChange,error:$.touched.contentLifetime&&!!$.errors.contentLifetime,helperText:$.touched.contentLifetime&&$.errors.contentLifetime,onBlur:$.handleBlur,min:0}),y.jsx(nr,{sx:{width:"100%"},type:"number",name:"contentPublicationSpeed",label:"Content Publication Speed",placeholder:"Content Publication Speed",value:$.values.contentPublicationSpeed,onChange:$.handleChange,error:$.touched.contentPublicationSpeed&&!!$.errors.contentPublicationSpeed,helperText:$.touched.contentPublicationSpeed&&$.errors.contentPublicationSpeed,onBlur:$.handleBlur,min:0})]}),y.jsx(Zi,{}),y.jsx(Jt,{variant:"h6",children:"Emails"}),y.jsx(BL,{label:"Webmaster Emails",values:T,setValues:I}),y.jsx(BL,{label:"NL Emails",values:k,setValues:R}),y.jsx(Zi,{}),y.jsxs(Oe,{display:"flex",alignItems:"center",gap:2,children:[y.jsx(Jt,{variant:"h6",flexShrink:0,children:"Price, $"}),y.jsx(nr,{sx:{width:"100%"},type:"number",name:"price",label:"Price",placeholder:"Price in $",value:$.values.price,onChange:$.handleChange,error:$.touched.price&&!!$.errors.price,helperText:$.touched.price&&$.errors.price,onBlur:$.handleBlur,min:0}),y.jsx(n_,{checked:w,setChecked:C,sx:{flexShrink:0},children:"Do Follow Link"})]}),y.jsx(Zi,{}),y.jsx(xwe,{value:S,onChange:E})]})})},GT=({value:e,onChange:t,onClear:n,label:r,sx:o,placeholder:i="example.com"})=>y.jsx(nr,{inputSx:o,label:r,value:e,onChangeValue:t,placeholder:i,endAdornment:!!e&&y.jsx(Yd,{position:"end",children:y.jsx(Ur,{onClick:n,children:y.jsx(HT,{})})})}),a_=()=>{const e=so(),t=xt(_T),n=r=>e(uz(r));return y.jsx(bu,{label:"Sort",value:t,onChange:n,options:JN,withClear:!0})},GCe={loader:{show:!1}},h7=Mh({name:"ui-state",initialState:GCe,reducers:{setLoaderState:(e,t)=>{e.loader.show=t.payload}}}),m7=bn([e=>e.uiState.loader],e=>e.show),{setLoaderState:ZL}=h7.actions,VCe=h7.reducer,VT=()=>{const e=so(),t=xt(m7);return{showLoader:()=>e(ZL(!0)),hideLoader:()=>e(ZL(!1)),loading:t}};function WCe(e){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256 90c44.3 0 86 17.3 117.4 48.6C404.7 170 422 211.7 422 256s-17.3 86-48.6 117.4C342 404.7 300.3 422 256 422s-86-17.3-117.4-48.6C107.3 342 90 300.3 90 256s17.3-86 48.6-117.4C170 107.3 211.7 90 256 90m0-42C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48z"},child:[]},{tag:"path",attr:{d:"M277 360h-42V235h42v125zm0-166h-42v-42h42v42z"},child:[]}]})(e)}function qCe(e){return $i({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M296 136c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0 240c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40zm0-120c0-22.002-17.998-40-40-40s-40 17.998-40 40 17.998 40 40 40 40-17.998 40-40z"},child:[]}]})(e)}const YCe=Te(({className:e,...t})=>y.jsx(U0,{...t,classes:{popper:e}}))({[`& .${co.tooltip}`]:{maxWidth:500,fontSize:"14px"}}),E0=({text:e,children:t,sx:n})=>y.jsx(YCe,{title:e,placement:"top",sx:n,children:t||y.jsx(WCe,{})}),pc=({children:e})=>y.jsx(Jt,{fontSize:"20px",fontWeight:"600",children:e}),nb=2,d1="outlined",KCe=()=>{const{categories:e}=xt(sf),n=xt(DT).filter(r=>e.includes(r.id));if(n.length)return y.jsxs(Oe,{children:[y.jsx(pc,{children:"Categories"}),y.jsx(Oe,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:nb,mt:1,children:n==null?void 0:n.map(r=>y.jsx(xc,{variant:d1,label:y.jsxs(Oe,{display:"flex",alignItems:"center",gap:.5,children:[r.displayName," ",y.jsx(E0,{text:r.displayName})]})},r.id))})]})},mv=20,XCe=()=>{const{contentPublicationSpeed:e,contentLifetime:t,contentDoFollowLink:n,contentNotes:r,contentSampleLink:o}=xt(sf),[i,a]=b.useState(!1),l=()=>a(d=>!d),u=[{title:"Sample:",value:o&&y.jsx(y.Fragment,{children:y.jsxs(Jt,{fontWeight:600,display:"flex",alignItems:"center",gap:1,component:QR,target:"_blank",sx:{textDecoration:"none",pointerEvents:o?"initial":"none"},href:o+"",children:["View Sample ",y.jsx(a7,{})]})}),icon:y.jsx(t7,{size:mv})},{title:"Publication Speed:",value:`${e} days`,icon:y.jsx(pwe,{size:mv})},{title:"Content Lifetime:",value:HCe(t),icon:y.jsx(fwe,{size:mv})},{title:"Link Type:",value:n?"DoFollow":"DoNotFollow",icon:y.jsx(mwe,{size:mv})},{title:"Content Notes",value:!!r&&y.jsx(rr,{onClick:l,variant:"text",sx:{padding:"2px 10px",fontWeight:600},children:i?"hide":"show"}),icon:y.jsx(hwe,{size:mv})}].filter(d=>d.value);return y.jsxs(Oe,{children:[y.jsx(pc,{children:"Content Info"}),y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:"5px",paddingLeft:nb,mt:1,children:[u.map(d=>y.jsxs(Jt,{display:"flex",alignItems:"center",gap:1,height:"30px",sx:{span:{fontWeight:"600"}},children:[d.icon," ",d.title," ",y.jsx("span",{children:d.value})]},d.title)),!!r&&y.jsx(c2,{in:i,children:r})]})]})},ZCe=()=>{const{countries:e}=xt(sf),n=xt(LT).filter(r=>e.includes(r.code));if(n.length)return y.jsxs(Oe,{children:[y.jsx(pc,{children:"Countries"}),y.jsx(Oe,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:nb,mt:1,children:n==null?void 0:n.map(r=>y.jsx(xc,{variant:d1,avatar:y.jsx(Oe,{display:"flex",overflow:"hidden",borderRadius:"50%",children:y.jsx("img",{width:"100%",loading:"lazy",srcSet:`https://flagcdn.com/w40/${r.code.toLowerCase()}.png 2x`,src:`https://flagcdn.com/w20/${r.code.toLowerCase()}.png`,alt:""})}),label:y.jsx(Oe,{display:"flex",alignItems:"center",gap:.5,children:r.name})},r.code))})]})},QCe=({children:e})=>y.jsx(Oe,{display:"flex",alignItems:"center",justifyContent:"center",border:"1px solid var(--mui-palette-divider)",flexDirection:"column",textAlign:"center",padding:1,borderRadius:3,sx:{aspectRatio:"1/0.6"},children:e}),JCe=()=>{const{domainCreationDate:e,domainRating:t,domainAuthority:n,organicTraffic:r,linkedRootDomains:o,referringDomains:i,citationFlow:a,trustFlow:l,spamScore:u}=xt(sf),d=[{title:"Domain Age",value:BCe(e)},{title:"Domain Rating",value:t},{title:"Domain Authority",value:n},{title:"Organic Traffic",value:r},{title:"Linked Root Domains",value:o},{title:"Referring Domains",value:i},{title:"Citation Flow",value:a},{title:"Trust Flow",value:l},{title:"Spam Score",value:u}];return y.jsxs(Oe,{children:[y.jsx(pc,{children:"Domain Metrics"}),y.jsx(Oe,{display:"grid",gridTemplateColumns:"repeat(3, 1fr)",gap:1,mt:1,children:d.map(f=>y.jsxs(QCe,{children:[y.jsx(Jt,{fontWeight:"600",fontSize:"18px",lineHeight:1,children:f.value}),y.jsx(Jt,{fontSize:"14px",children:f.title})]},f.title))})]})},eSe=()=>{var t;const{trafficGeoDistribution:e}=xt(sf);return y.jsxs(Oe,{children:[y.jsx(pc,{children:"Geo Distribution"}),y.jsx(Oe,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:nb,mt:1,children:(t=Object.entries(e||{}))==null?void 0:t.map(n=>y.jsx(xc,{variant:d1,avatar:y.jsx(Oe,{display:"flex",overflow:"hidden",borderRadius:"50%",children:y.jsx("img",{width:"100%",loading:"lazy",srcSet:`https://flagcdn.com/w40/${n[0].toLowerCase()}.png 2x`,src:`https://flagcdn.com/w20/${n[0].toLowerCase()}.png`,alt:""})}),label:y.jsxs(Oe,{display:"flex",alignItems:"center",gap:.5,textTransform:"uppercase",children:[n[0]," ",n[1]]})},n[0]))})]})},tSe=()=>{var i;const e=xt(a1),{domainName:t,totalPrice:n,language:r}=xt(sf),o=(i=e.find(a=>a.code===r))==null?void 0:i.name;return y.jsxs(y.Fragment,{children:[y.jsxs(Oe,{children:[y.jsx(pc,{children:"Domain Name"}),y.jsxs(Oe,{display:"flex",justifyContent:"space-between",alignItems:"center",paddingLeft:nb,children:[y.jsxs(Jt,{display:"flex",alignItems:"center",sx:{textDecoration:"none"},gap:1,variant:"h6",component:QR,href:"https://"+t,target:"_blank",children:[t,y.jsx(a7,{})]}),y.jsxs(pc,{children:[oo,n]})]})]}),y.jsxs(Oe,{display:"flex",justifyContent:"space-between",children:[y.jsx(pc,{children:"Language"}),y.jsx(xc,{variant:d1,label:o})]})]})},nSe=()=>{const{contentAcceptedNiches:e,contentNichePriceMultipliers:t}=xt(sf),r=xt(dz).filter(o=>e.includes(o.id));if(r.length)return y.jsxs(Oe,{children:[y.jsx(pc,{children:"Accepted Niches"}),y.jsx(Oe,{display:"flex",flexWrap:"wrap",gap:1,paddingLeft:nb,mt:1,children:r==null?void 0:r.map(o=>y.jsx(xc,{variant:d1,label:y.jsxs(Oe,{display:"flex",alignItems:"center",gap:.5,children:[`${o.displayName} x${t[o.id]}`," ",y.jsx(E0,{text:o.displayName})]})},o.id))})]})};function rSe(e){return kt("MuiBarElement",e)}const oSe=Pt("MuiBarElement",["root","highlighted","faded","series"]),iSe=e=>{const{classes:t,id:n,isHighlighted:r,isFaded:o}=e,i={root:["root",`series-${n}`,r&&"highlighted",o&&"faded"]};return st(i,rSe,t)};class aSe{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=>{const r=n(this.value);r!==this.value&&(this.value=r,this.listeners.forEach(o=>o(r)))},this.value=t,this.listeners=new Set}}const WT=({params:e,store:t})=>{b.useEffect(()=>{t.update(r=>z({},r,{animation:z({},r.animation,{skip:e.skipAnimation})}))},[t,e.skipAnimation]);const n=b.useCallback(()=>{let r=!1;return t.update(o=>z({},o,{animation:z({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests+1})})),()=>{r||(r=!0,t.update(o=>z({},o,{animation:z({},o.animation,{skipAnimationRequests:o.animation.skipAnimationRequests-1})})))}},[t]);return kn(()=>{if(typeof window>"u"||!(window!=null&&window.matchMedia))return;let o;const i=l=>{l.matches?o=n():o==null||o()},a=window.matchMedia("(prefers-reduced-motion)");return i(a),a.addEventListener("change",i),()=>{a.removeEventListener("change",i)}},[n,t]),{instance:{disableAnimation:n}}};WT.params={skipAnimation:!0};WT.getDefaultizedParams=({params:e})=>z({},e,{skipAnimation:e.skipAnimation??!1});WT.getInitialState=({skipAnimation:e})=>({animation:{skip:e,skipAnimationRequests:0}});const sSe=rO({memoize:nO,memoizeOptions:{maxSize:1,equalityCheck:Object.is}}),QL=new WeakMap,Xt=(...e)=>(n,...r)=>{const o=n.cacheKey;let i=QL.get(o);i||(i=new Map,QL.set(o,i));const a=i.get(e);if(a)return a(n,...r);const l=sSe(...e);return i.set(e,l),l(n,...r)},lSe=e=>e.animation,cSe=Xt([lSe],e=>e.skip||e.skipAnimationRequests>0);var OP={exports:{}},_P={};/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var JL;function uSe(){if(JL)return _P;JL=1;var e=F0(),t=b9();function n(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var r=typeof Object.is=="function"?Object.is:n,o=t.useSyncExternalStore,i=e.useRef,a=e.useEffect,l=e.useMemo,u=e.useDebugValue;return _P.useSyncExternalStoreWithSelector=function(d,f,m,g,w){var C=i(null);if(C.current===null){var S={hasValue:!1,value:null};C.current=S}else S=C.current;C=l(function(){function T(O){if(!I){if(I=!0,k=O,O=g(O),w!==void 0&&S.hasValue){var j=S.value;if(w(j,O))return R=j}return R=O}if(j=R,r(k,O))return j;var F=g(O);return w!==void 0&&w(j,F)?(k=O,j):(k=O,R=F)}var I=!1,k,R,P=m===void 0?null:m;return[function(){return T(f())},P===null?void 0:function(){return T(P())}]},[f,m,g,w]);var E=o(d,C[0],C[1]);return a(function(){S.hasValue=!0,S.value=E},[E]),u(E),E},_P}var e$;function dSe(){return e$||(e$=1,OP.exports=uSe()),OP.exports}var fSe=dSe();const pSe=Object.is,yn=(e,t,n=[],r=pSe)=>{const o=i=>t(i,...n);return fSe.useSyncExternalStoreWithSelector(e.subscribe,e.getSnapshot,e.getSnapshot,o,r)},s_="DEFAULT_X_AXIS_KEY",l_="DEFAULT_Y_AXIS_KEY",hSe={top:20,bottom:20,left:20,right:20},mSe=45,gSe=25,g7=20,_h=e=>{var t;return(t=e.cartesianAxis)==null?void 0:t.x},rb=e=>{var t;return(t=e.cartesianAxis)==null?void 0:t.y},bSe=Xt([rb],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="left"?t+(n.width||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),ySe=Xt([rb],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="right"?t+(n.width||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),vSe=Xt([_h],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="top"?t+(n.height||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),xSe=Xt([_h],e=>(e??[]).reduce((t,n)=>{var r;return n.position==="bottom"?t+(n.height||0)+((r=n.zoom)!=null&&r.slider.enabled?n.zoom.slider.size:0):t},0)),wSe=e=>e.dimensions,b7=e=>e.dimensions.width,y7=e=>e.dimensions.height,CSe=e=>e.dimensions.margin.top,SSe=e=>e.dimensions.margin.right,ESe=e=>e.dimensions.margin.bottom,TSe=e=>e.dimensions.margin.left,Iu=Xt([b7,y7,CSe,SSe,ESe,TSe,vSe,ySe,xSe,bSe],(e,t,n,r,o,i,a,l,u,d)=>({width:e-i-r-d-l,left:i+d,right:r+l,height:t-n-o-a-u,top:n+a,bottom:o+u})),v7=Xt([wSe],e=>({width:e.propsWidth,height:e.propsHeight})),MSe=Xt([b7,y7],(e,t)=>({width:e,height:t}));function kSe(e,t){return typeof e=="number"?{top:e,bottom:e,left:e,right:e}:t?z({},t,e):e}function wx(e,t){const n=e.createSVGPoint();return n.x=t.clientX,n.y=t.clientY,n.matrixTransform(e.getScreenCTM().inverse())}const PSe=10,qT=({params:e,store:t,svgRef:n})=>{const r=e.width!==void 0&&e.height!==void 0,o=b.useRef({displayError:!1,initialCompute:!0,computeRun:0}),[i,a]=b.useState(0),[l,u]=b.useState(0),d=b.useCallback(()=>{const S=n==null?void 0:n.current;if(!S)return{};const T=Ma(S).getComputedStyle(S),I=Math.floor(parseFloat(T.height))||0,k=Math.floor(parseFloat(T.width))||0;return t.update(R=>R.dimensions.width===k&&R.dimensions.height===I?R:z({},R,{dimensions:{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:e.width??k,height:e.height??I,propsWidth:e.width,propsHeight:e.height}})),{height:I,width:k}},[t,n,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]);b.useEffect(()=>{t.update(S=>{const E=e.width??S.dimensions.width,T=e.height??S.dimensions.height;return z({},S,{dimensions:{margin:{top:e.margin.top,right:e.margin.right,bottom:e.margin.bottom,left:e.margin.left},width:E,height:T,propsHeight:e.height,propsWidth:e.width}})})},[t,e.height,e.width,e.margin.left,e.margin.right,e.margin.top,e.margin.bottom]),b.useEffect(()=>{o.current.displayError=!0},[]),kn(()=>{if(r||!o.current.initialCompute||o.current.computeRun>PSe)return;const S=d();S.width!==i||S.height!==l?(o.current.computeRun+=1,S.width!==void 0&&a(S.width),S.height!==void 0&&u(S.height)):o.current.initialCompute&&(o.current.initialCompute=!1)},[l,i,d,r]),kn(()=>{if(r)return()=>{};d();const S=n.current;if(typeof ResizeObserver>"u")return()=>{};let E;const T=new ResizeObserver(()=>{E=requestAnimationFrame(()=>{d()})});return S&&T.observe(S),()=>{E&&cancelAnimationFrame(E),S&&T.unobserve(S)}},[d,r,n]);const f=yn(t,Iu),m=b.useCallback(S=>S>=f.left-1&&S<=f.left+f.width,[f.left,f.width]),g=b.useCallback(S=>S>=f.top-1&&S<=f.top+f.height,[f.height,f.top]),w=b.useCallback((S,E,T)=>T&&"closest"in T&&T.closest("[data-drawing-container]")?!0:m(S)&&g(E),[m,g]),C=b.useCallback(S=>{const E=n.current;if(!S||!(S instanceof Element)||!E)return!1;if(S.closest("[data-drawing-container]"))return!0;const T=S.getBoundingClientRect(),{x:I,y:k}=wx(E,{clientX:T.left,clientY:T.top}),{x:R,y:P}=wx(E,{clientX:T.right,clientY:T.bottom});return m(I)&&m(R)&&g(k)&&g(P)},[m,g,n]);return{instance:{isPointInside:w,isXInside:m,isYInside:g,isElementInside:C}}};qT.params={width:!0,height:!0,margin:!0};qT.getDefaultizedParams=({params:e})=>z({},e,{margin:kSe(e.margin,hSe)});qT.getInitialState=({width:e,height:t,margin:n})=>({dimensions:{margin:n,width:e??0,height:t??0,propsWidth:e,propsHeight:t}});let t$=0;const ISe=()=>(t$+=1,`mui-chart-${t$}`),c_=({params:e,store:t})=>(b.useEffect(()=>{t.update(n=>e.id===void 0||e.id===n.id.providedChartId&&n.id.chartId!==void 0?n:z({},n,{id:z({},n.id,{chartId:e.id??ISe()})}))},[t,e.id]),{});c_.params={id:!0};c_.getInitialState=({id:e})=>({id:{chartId:e,providedChartId:e}});const ASe=e=>e.id,RSe=Xt([ASe],e=>e.chartId),OSe=["#4254FB","#FFB422","#FA4F58","#0DBEFF","#22BF75","#FA83B4","#FF7511"],_Se=["#495AFB","#FFC758","#F35865","#30C8FF","#44CE8D","#F286B3","#FF8C39"],x7=e=>e==="dark"?_Se:OSe,w7=({series:e,colors:t,seriesConfig:n,dataset:r})=>{const o={};e.forEach((a,l)=>{var f;const u=n[a.type].getSeriesWithDefaultValues(a,l,t),d=u.id;if(o[a.type]===void 0&&(o[a.type]={series:{},seriesOrder:[]}),((f=o[a.type])==null?void 0:f.series[d])!==void 0)throw new Error(`MUI X Charts: series' id "${d}" is not unique.`);o[a.type].series[d]=u,o[a.type].seriesOrder.push(d)});const i={};return Object.keys(n).forEach(a=>{var u,d;const l=o[a];l!==void 0&&(i[a]=((d=(u=n[a])==null?void 0:u.seriesProcessor)==null?void 0:d.call(u,l,r))??o[a])}),i},YT=({params:e,store:t,seriesConfig:n})=>{const{series:r,dataset:o,theme:i,colors:a}=e,l=b.useRef(!0);return b.useEffect(()=>{if(l.current){l.current=!1;return}t.update(u=>z({},u,{series:z({},u.series,{processedSeries:w7({series:r,colors:typeof a=="function"?a(i):a,seriesConfig:n,dataset:o})})}))},[a,o,r,i,n,t]),{}};YT.params={dataset:!0,series:!0,colors:!0,theme:!0};const DSe=[];YT.getDefaultizedParams=({params:e})=>{var t;return z({},e,{series:(t=e.series)!=null&&t.length?e.series:DSe,colors:e.colors??x7,theme:e.theme??"light"})};YT.getInitialState=({series:e=[],colors:t,theme:n,dataset:r},o,i)=>({series:{seriesConfig:i,processedSeries:w7({series:e,colors:typeof t=="function"?t(n):t,seriesConfig:i,dataset:r})}});const C7=e=>e.series,wl=Xt([C7],e=>e.processedSeries),Au=Xt([C7],e=>e.seriesConfig),LSe=[c_,qT,YT,WT],$Se=["apiRef"],jSe=e=>{let{plugins:t}=e,n=tt(e.props,$Se);const r={};t.forEach(a=>{Object.assign(r,a.params)});const o={};return Object.keys(n).forEach(a=>{const l=n[a];r[a]&&(o[a]=l)}),t.reduce((a,l)=>l.getDefaultizedParams?l.getDefaultizedParams({params:a}):a,o)};let n$=0;function FSe(e,t,n){const r=Mn(),o=b.useMemo(()=>[...LSe,...e],[e]),i=jSe({plugins:o,props:t});i.id=i.id??r;const l=b.useRef({}).current,u=zSe(t.apiRef),d=b.useRef(null),f=b.useRef(null),m=b.useRef(null);if(m.current==null){n$+=1;const C={cacheKey:{id:n$}};o.forEach(S=>{S.getInitialState&&Object.assign(C,S.getInitialState(i,C,n))}),m.current=new aSe(C)}const g=C=>{const S=C({instance:l,params:i,plugins:o,store:m.current,svgRef:f,chartRootRef:d,seriesConfig:n});S.publicAPI&&Object.assign(u.current,S.publicAPI),S.instance&&Object.assign(l,S.instance)};return o.forEach(g),{contextValue:b.useMemo(()=>({store:m.current,publicAPI:u.current,instance:l,svgRef:f,chartRootRef:d}),[l,u])}}function NSe(e){return e.current==null&&(e.current={}),e}function zSe(e){const t=b.useRef({});return e?NSe(e):t}const S7=b.createContext(null),BSe=4,HSe=20+2*BSe,USe="hover",DP={minStart:0,maxEnd:100,step:5,minSpan:10,maxSpan:100,panning:!0,filterMode:"keep",slider:{enabled:!1,size:HSe,showTooltip:USe}},u_=(e,t,n)=>{if(e)return e===!0?z({axisId:t,axisDirection:n},DP):z({axisId:t,axisDirection:n},DP,e,{slider:z({},DP.slider,e.slider)})};function E7(e,t){const n={top:0,bottom:0,none:0};return(e&&e.length>0?e:[{id:s_,scaleType:"linear"}]).map((i,a)=>{var w;const l=i.dataKey,u=a===0?"bottom":"none",d=i.position??u,f=gSe+(i.label?g7:0),m=i.id??`defaultized-x-axis-${a}`,g=z({offset:n[d]},i,{id:m,position:d,height:i.height??f,zoom:u_(i.zoom,m,"x")});if(d!=="none"&&(n[d]+=g.height,(w=g.zoom)!=null&&w.slider.enabled&&(n[d]+=g.zoom.slider.size)),l===void 0||i.data!==void 0)return g;if(t===void 0)throw new Error("MUI X Charts: x-axis uses `dataKey` but no `dataset` is provided.");return z({},g,{data:t.map(C=>C[l])})})}function T7(e,t){const n={right:0,left:0,none:0};return(e&&e.length>0?e:[{id:l_,scaleType:"linear"}]).map((i,a)=>{var w;const l=i.dataKey,u=a===0?"left":"none",d=i.position??u,f=mSe+(i.label?g7:0),m=i.id??`defaultized-y-axis-${a}`,g=z({offset:n[d]},i,{id:m,position:d,width:i.width??f,zoom:u_(i.zoom,m,"y")});if(d!=="none"&&(n[d]+=g.width,(w=g.zoom)!=null&&w.slider.enabled&&(n[d]+=g.zoom.slider.size)),l===void 0||i.data!==void 0)return g;if(t===void 0)throw new Error("MUI X Charts: y-axis uses `dataKey` but no `dataset` is provided.");return z({},g,{data:t.map(C=>C[l])})})}function t2(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function GSe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function d_(e){let t,n,r;e.length!==2?(t=t2,n=(l,u)=>t2(e(l),u),r=(l,u)=>e(l)-u):(t=e===t2||e===GSe?e:VSe,n=e,r=e);function o(l,u,d=0,f=l.length){if(d<f){if(t(u,u)!==0)return f;do{const m=d+f>>>1;n(l[m],u)<0?d=m+1:f=m}while(d<f)}return d}function i(l,u,d=0,f=l.length){if(d<f){if(t(u,u)!==0)return f;do{const m=d+f>>>1;n(l[m],u)<=0?d=m+1:f=m}while(d<f)}return d}function a(l,u,d=0,f=l.length){const m=o(l,u,d,f-1);return m>d&&r(l[m-1],u)>-r(l[m],u)?m-1:m}return{left:o,center:a,right:i}}function VSe(){return 0}function WSe(e){return e===null?NaN:+e}const qSe=d_(t2),M7=qSe.right;d_(WSe).center;class r$ extends Map{constructor(t,n=XSe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(o$(this,t))}has(t){return super.has(o$(this,t))}set(t,n){return super.set(YSe(this,t),n)}delete(t){return super.delete(KSe(this,t))}}function o$({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function YSe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function KSe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function XSe(e){return e!==null&&typeof e=="object"?e.valueOf():e}const ZSe=Math.sqrt(50),QSe=Math.sqrt(10),JSe=Math.sqrt(2);function Q2(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=ZSe?10:i>=QSe?5:i>=JSe?2:1;let l,u,d;return o<0?(d=Math.pow(10,-o)/a,l=Math.round(e*d),u=Math.round(t*d),l/d<e&&++l,u/d>t&&--u,d=-d):(d=Math.pow(10,o)*a,l=Math.round(e/d),u=Math.round(t/d),l*d<e&&++l,u*d>t&&--u),u<l&&.5<=n&&n<2?Q2(e,t,n*2):[l,u,d]}function HA(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?Q2(t,e,n):Q2(e,t,n);if(!(i>=o))return[];const l=i-o+1,u=new Array(l);if(r)if(a<0)for(let d=0;d<l;++d)u[d]=(i-d)/-a;else for(let d=0;d<l;++d)u[d]=(i-d)*a;else if(a<0)for(let d=0;d<l;++d)u[d]=(o+d)/-a;else for(let d=0;d<l;++d)u[d]=(o+d)*a;return u}function UA(e,t,n){return t=+t,e=+e,n=+n,Q2(e,t,n)[2]}function GA(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?UA(t,e,n):UA(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function e2e(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function df(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function t2e(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const i$=Symbol("implicit");function J2(){var e=new r$,t=[],n=[],r=i$;function o(i){let a=e.get(i);if(a===void 0){if(r!==i$)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new r$;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return J2(t,n).unknown(r)},df.apply(o,arguments),o}function KT(){var e=J2().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,l=!1,u=0,d=0,f=.5;delete e.unknown;function m(){var g=t().length,w=o<r,C=w?o:r,S=w?r:o;i=(S-C)/Math.max(1,g-u+d*2),l&&(i=Math.floor(i)),C+=(S-C-i*(g-u))*f,a=i*(1-u),l&&(C=Math.round(C),a=Math.round(a));var E=e2e(g).map(function(T){return C+i*T});return n(w?E.reverse():E)}return e.domain=function(g){return arguments.length?(t(g),m()):t()},e.range=function(g){return arguments.length?([r,o]=g,r=+r,o=+o,m()):[r,o]},e.rangeRound=function(g){return[r,o]=g,r=+r,o=+o,l=!0,m()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(g){return arguments.length?(l=!!g,m()):l},e.padding=function(g){return arguments.length?(u=Math.min(1,d=+g),m()):u},e.paddingInner=function(g){return arguments.length?(u=Math.min(1,g),m()):u},e.paddingOuter=function(g){return arguments.length?(d=+g,m()):d},e.align=function(g){return arguments.length?(f=Math.max(0,Math.min(1,g)),m()):f},e.copy=function(){return KT(t(),[r,o]).round(l).paddingInner(u).paddingOuter(d).align(f)},df.apply(m(),arguments)}function k7(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return k7(t())},e}function P7(){return k7(KT.apply(null,arguments).paddingInner(1))}function f_(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function I7(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function f1(){}var Cx=.7,eE=1/Cx,a0="\\s*([+-]?\\d+)\\s*",Sx="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",hc="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",n2e=/^#([0-9a-f]{3,8})$/,r2e=new RegExp(`^rgb\\(${a0},${a0},${a0}\\)$`),o2e=new RegExp(`^rgb\\(${hc},${hc},${hc}\\)$`),i2e=new RegExp(`^rgba\\(${a0},${a0},${a0},${Sx}\\)$`),a2e=new RegExp(`^rgba\\(${hc},${hc},${hc},${Sx}\\)$`),s2e=new RegExp(`^hsl\\(${Sx},${hc},${hc}\\)$`),l2e=new RegExp(`^hsla\\(${Sx},${hc},${hc},${Sx}\\)$`),a$={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};f_(f1,Ex,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:s$,formatHex:s$,formatHex8:c2e,formatHsl:u2e,formatRgb:l$,toString:l$});function s$(){return this.rgb().formatHex()}function c2e(){return this.rgb().formatHex8()}function u2e(){return A7(this).formatHsl()}function l$(){return this.rgb().formatRgb()}function Ex(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=n2e.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?c$(t):n===3?new xa(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?wS(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?wS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=r2e.exec(e))?new xa(t[1],t[2],t[3],1):(t=o2e.exec(e))?new xa(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=i2e.exec(e))?wS(t[1],t[2],t[3],t[4]):(t=a2e.exec(e))?wS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=s2e.exec(e))?f$(t[1],t[2]/100,t[3]/100,1):(t=l2e.exec(e))?f$(t[1],t[2]/100,t[3]/100,t[4]):a$.hasOwnProperty(e)?c$(a$[e]):e==="transparent"?new xa(NaN,NaN,NaN,0):null}function c$(e){return new xa(e>>16&255,e>>8&255,e&255,1)}function wS(e,t,n,r){return r<=0&&(e=t=n=NaN),new xa(e,t,n,r)}function d2e(e){return e instanceof f1||(e=Ex(e)),e?(e=e.rgb(),new xa(e.r,e.g,e.b,e.opacity)):new xa}function VA(e,t,n,r){return arguments.length===1?d2e(e):new xa(e,t,n,r??1)}function xa(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}f_(xa,VA,I7(f1,{brighter(e){return e=e==null?eE:Math.pow(eE,e),new xa(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Cx:Math.pow(Cx,e),new xa(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new xa(ah(this.r),ah(this.g),ah(this.b),tE(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:u$,formatHex:u$,formatHex8:f2e,formatRgb:d$,toString:d$}));function u$(){return`#${Yp(this.r)}${Yp(this.g)}${Yp(this.b)}`}function f2e(){return`#${Yp(this.r)}${Yp(this.g)}${Yp(this.b)}${Yp((isNaN(this.opacity)?1:this.opacity)*255)}`}function d$(){const e=tE(this.opacity);return`${e===1?"rgb(":"rgba("}${ah(this.r)}, ${ah(this.g)}, ${ah(this.b)}${e===1?")":`, ${e})`}`}function tE(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ah(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Yp(e){return e=ah(e),(e<16?"0":"")+e.toString(16)}function f$(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ll(e,t,n,r)}function A7(e){if(e instanceof ll)return new ll(e.h,e.s,e.l,e.opacity);if(e instanceof f1||(e=Ex(e)),!e)return new ll;if(e instanceof ll)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,u=(i+o)/2;return l?(t===i?a=(n-r)/l+(n<r)*6:n===i?a=(r-t)/l+2:a=(t-n)/l+4,l/=u<.5?i+o:2-i-o,a*=60):l=u>0&&u<1?0:a,new ll(a,l,u,e.opacity)}function p2e(e,t,n,r){return arguments.length===1?A7(e):new ll(e,t,n,r??1)}function ll(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}f_(ll,p2e,I7(f1,{brighter(e){return e=e==null?eE:Math.pow(eE,e),new ll(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Cx:Math.pow(Cx,e),new ll(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new xa(LP(e>=240?e-240:e+120,o,r),LP(e,o,r),LP(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new ll(p$(this.h),CS(this.s),CS(this.l),tE(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=tE(this.opacity);return`${e===1?"hsl(":"hsla("}${p$(this.h)}, ${CS(this.s)*100}%, ${CS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function p$(e){return e=(e||0)%360,e<0?e+360:e}function CS(e){return Math.max(0,Math.min(1,e||0))}function LP(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const p_=e=>()=>e;function h2e(e,t){return function(n){return e+n*t}}function m2e(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function g2e(e){return(e=+e)==1?R7:function(t,n){return n-t?m2e(t,n,e):p_(isNaN(t)?n:t)}}function R7(e,t){var n=t-e;return n?h2e(e,n):p_(isNaN(e)?t:e)}const h$=function e(t){var n=g2e(t);function r(o,i){var a=n((o=VA(o)).r,(i=VA(i)).r),l=n(o.g,i.g),u=n(o.b,i.b),d=R7(o.opacity,i.opacity);return function(f){return o.r=a(f),o.g=l(f),o.b=u(f),o.opacity=d(f),o+""}}return r.gamma=e,r}(1);function b2e(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function y2e(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function v2e(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=XT(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(l){for(a=0;a<r;++a)i[a]=o[a](l);return i}}function h_(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function Bo(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function x2e(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=XT(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var WA=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,$P=new RegExp(WA.source,"g");function w2e(e){return function(){return e}}function C2e(e){return function(t){return e(t)+""}}function S2e(e,t){var n=WA.lastIndex=$P.lastIndex=0,r,o,i,a=-1,l=[],u=[];for(e=e+"",t=t+"";(r=WA.exec(e))&&(o=$P.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),l[a]?l[a]+=i:l[++a]=i),(r=r[0])===(o=o[0])?l[a]?l[a]+=o:l[++a]=o:(l[++a]=null,u.push({i:a,x:Bo(r,o)})),n=$P.lastIndex;return n<t.length&&(i=t.slice(n),l[a]?l[a]+=i:l[++a]=i),l.length<2?u[0]?C2e(u[0].x):w2e(t):(t=u.length,function(d){for(var f=0,m;f<t;++f)l[(m=u[f]).i]=m.x(d);return l.join("")})}function XT(e,t){var n=typeof t,r;return t==null||n==="boolean"?p_(t):(n==="number"?Bo:n==="string"?(r=Ex(t))?(t=r,h$):S2e:t instanceof Ex?h$:t instanceof Date?h_:y2e(t)?b2e:Array.isArray(t)?v2e:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?x2e:Bo)(e,t)}function O7(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function E2e(e){return function(){return e}}function T2e(e){return+e}var m$=[0,1];function ws(e){return e}function qA(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:E2e(isNaN(t)?NaN:.5)}function M2e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function k2e(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=qA(o,r),i=n(a,i)):(r=qA(r,o),i=n(i,a)),function(l){return i(r(l))}}function P2e(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=qA(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(l){var u=M7(e,l,1,r)-1;return i[u](o[u](l))}}function ZT(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function m_(){var e=m$,t=m$,n=XT,r,o,i,a=ws,l,u,d;function f(){var g=Math.min(e.length,t.length);return a!==ws&&(a=M2e(e[0],e[g-1])),l=g>2?P2e:k2e,u=d=null,m}function m(g){return g==null||isNaN(g=+g)?i:(u||(u=l(e.map(r),t,n)))(r(a(g)))}return m.invert=function(g){return a(o((d||(d=l(t,e.map(r),Bo)))(g)))},m.domain=function(g){return arguments.length?(e=Array.from(g,T2e),f()):e.slice()},m.range=function(g){return arguments.length?(t=Array.from(g),f()):t.slice()},m.rangeRound=function(g){return t=Array.from(g),n=O7,f()},m.clamp=function(g){return arguments.length?(a=g?!0:ws,f()):a!==ws},m.interpolate=function(g){return arguments.length?(n=g,f()):n},m.unknown=function(g){return arguments.length?(i=g,m):i},function(g,w){return r=g,o=w,f()}}function _7(){return m_()(ws,ws)}function I2e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function nE(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function T0(e){return e=nE(Math.abs(e)),e?e[1]:NaN}function A2e(e,t){return function(n,r){for(var o=n.length,i=[],a=0,l=e[0],u=0;o>0&&l>0&&(u+l+1>r&&(l=Math.max(1,r-u)),i.push(n.substring(o-=l,o+l)),!((u+=l+1)>r));)l=e[a=(a+1)%e.length];return i.reverse().join(t)}}function R2e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var O2e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Tx(e){if(!(t=O2e.exec(e)))throw new Error("invalid format: "+e);var t;return new g_({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Tx.prototype=g_.prototype;function g_(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}g_.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function _2e(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var D7;function D2e(e,t){var n=nE(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(D7=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+nE(e,Math.max(0,t+i-1))[0]}function g$(e,t){var n=nE(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const b$={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:I2e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>g$(e*100,t),r:g$,s:D2e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function y$(e){return e}var v$=Array.prototype.map,x$=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function L2e(e){var t=e.grouping===void 0||e.thousands===void 0?y$:A2e(v$.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?y$:R2e(v$.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",l=e.minus===void 0?"−":e.minus+"",u=e.nan===void 0?"NaN":e.nan+"";function d(m){m=Tx(m);var g=m.fill,w=m.align,C=m.sign,S=m.symbol,E=m.zero,T=m.width,I=m.comma,k=m.precision,R=m.trim,P=m.type;P==="n"?(I=!0,P="g"):b$[P]||(k===void 0&&(k=12),R=!0,P="g"),(E||g==="0"&&w==="=")&&(E=!0,g="0",w="=");var O=S==="$"?n:S==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",j=S==="$"?r:/[%p]/.test(P)?a:"",F=b$[P],D=/[defgprs%]/.test(P);k=k===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,k)):Math.max(0,Math.min(20,k));function _($){var B=O,V=j,q,G,N;if(P==="c")V=F($)+V,$="";else{$=+$;var H=$<0||1/$<0;if($=isNaN($)?u:F(Math.abs($),k),R&&($=_2e($)),H&&+$==0&&C!=="+"&&(H=!1),B=(H?C==="("?C:l:C==="-"||C==="("?"":C)+B,V=(P==="s"?x$[8+D7/3]:"")+V+(H&&C==="("?")":""),D){for(q=-1,G=$.length;++q<G;)if(N=$.charCodeAt(q),48>N||N>57){V=(N===46?o+$.slice(q+1):$.slice(q))+V,$=$.slice(0,q);break}}}I&&!E&&($=t($,1/0));var Y=B.length+$.length+V.length,Q=Y<T?new Array(T-Y+1).join(g):"";switch(I&&E&&($=t(Q+$,Q.length?T-V.length:1/0),Q=""),w){case"<":$=B+$+V+Q;break;case"=":$=B+Q+$+V;break;case"^":$=Q.slice(0,Y=Q.length>>1)+B+$+V+Q.slice(Y);break;default:$=Q+B+$+V;break}return i($)}return _.toString=function(){return m+""},_}function f(m,g){var w=d((m=Tx(m),m.type="f",m)),C=Math.max(-8,Math.min(8,Math.floor(T0(g)/3)))*3,S=Math.pow(10,-C),E=x$[8+C/3];return function(T){return w(S*T)+E}}return{format:d,formatPrefix:f}}var SS,b_,L7;$2e({thousands:",",grouping:[3],currency:["$",""]});function $2e(e){return SS=L2e(e),b_=SS.format,L7=SS.formatPrefix,SS}function j2e(e){return Math.max(0,-T0(Math.abs(e)))}function F2e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(T0(t)/3)))*3-T0(Math.abs(e)))}function N2e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,T0(t)-T0(e))+1}function z2e(e,t,n,r){var o=GA(e,t,n),i;switch(r=Tx(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=F2e(o,a))&&(r.precision=i),L7(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=N2e(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=j2e(o))&&(r.precision=i-(r.type==="%")*2);break}}return b_(r)}function y_(e){var t=e.domain;return e.ticks=function(n){var r=t();return HA(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return z2e(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],l=r[i],u,d,f=10;for(l<a&&(d=a,a=l,l=d,d=o,o=i,i=d);f-- >0;){if(d=UA(a,l,n),d===u)return r[o]=a,r[i]=l,t(r);if(d>0)a=Math.floor(a/d)*d,l=Math.ceil(l/d)*d;else if(d<0)a=Math.ceil(a*d)/d,l=Math.floor(l*d)/d;else break;u=d}return e},e}function $7(){var e=_7();return e.copy=function(){return ZT(e,$7())},df.apply(e,arguments),y_(e)}function j7(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function w$(e){return Math.log(e)}function C$(e){return Math.exp(e)}function B2e(e){return-Math.log(-e)}function H2e(e){return-Math.exp(-e)}function U2e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function G2e(e){return e===10?U2e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function V2e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function S$(e){return(t,n)=>-e(-t,n)}function W2e(e){const t=e(w$,C$),n=t.domain;let r=10,o,i;function a(){return o=V2e(r),i=G2e(r),n()[0]<0?(o=S$(o),i=S$(i),e(B2e,H2e)):e(w$,C$),t}return t.base=function(l){return arguments.length?(r=+l,a()):r},t.domain=function(l){return arguments.length?(n(l),a()):n()},t.ticks=l=>{const u=n();let d=u[0],f=u[u.length-1];const m=f<d;m&&([d,f]=[f,d]);let g=o(d),w=o(f),C,S;const E=l==null?10:+l;let T=[];if(!(r%1)&&w-g<E){if(g=Math.floor(g),w=Math.ceil(w),d>0){for(;g<=w;++g)for(C=1;C<r;++C)if(S=g<0?C/i(-g):C*i(g),!(S<d)){if(S>f)break;T.push(S)}}else for(;g<=w;++g)for(C=r-1;C>=1;--C)if(S=g>0?C/i(-g):C*i(g),!(S<d)){if(S>f)break;T.push(S)}T.length*2<E&&(T=HA(d,f,E))}else T=HA(g,w,Math.min(w-g,E)).map(i);return m?T.reverse():T},t.tickFormat=(l,u)=>{if(l==null&&(l=10),u==null&&(u=r===10?"s":","),typeof u!="function"&&(!(r%1)&&(u=Tx(u)).precision==null&&(u.trim=!0),u=b_(u)),l===1/0)return u;const d=Math.max(1,r*l/t.ticks().length);return f=>{let m=f/i(Math.round(o(f)));return m*r<r-.5&&(m*=r),m<=d?u(f):""}},t.nice=()=>n(j7(n(),{floor:l=>i(Math.floor(o(l))),ceil:l=>i(Math.ceil(o(l)))})),t}function F7(){const e=W2e(m_()).domain([1,10]);return e.copy=()=>ZT(e,F7()).base(e.base()),df.apply(e,arguments),e}function E$(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function q2e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Y2e(e){return e<0?-e*e:e*e}function K2e(e){var t=e(ws,ws),n=1;function r(){return n===1?e(ws,ws):n===.5?e(q2e,Y2e):e(E$(n),E$(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},y_(t)}function v_(){var e=K2e(m_());return e.copy=function(){return ZT(e,v_()).exponent(e.exponent())},df.apply(e,arguments),e}function X2e(){return v_.apply(null,arguments).exponent(.5)}function N7(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[M7(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return N7().domain(e).range(t).unknown(n)},df.apply(o,arguments)}const jP=new Date,FP=new Date;function Uo(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),l=o.ceil(i);return i-a<l-i?a:l},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,l)=>{const u=[];if(i=o.ceil(i),l=l==null?1:Math.floor(l),!(i<a)||!(l>0))return u;let d;do u.push(d=new Date(+i)),t(i,l),e(i);while(d<i&&i<a);return u},o.filter=i=>Uo(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;t(a,-1),!i(a););else for(;--l>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(jP.setTime(+i),FP.setTime(+a),e(jP),e(FP),Math.floor(n(jP,FP))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const rE=Uo(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);rE.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Uo(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):rE);rE.range;const lu=1e3,Cs=lu*60,cu=Cs*60,yu=cu*24,x_=yu*7,T$=yu*30,NP=yu*365,Kp=Uo(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*lu)},(e,t)=>(t-e)/lu,e=>e.getUTCSeconds());Kp.range;const w_=Uo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lu)},(e,t)=>{e.setTime(+e+t*Cs)},(e,t)=>(t-e)/Cs,e=>e.getMinutes());w_.range;const C_=Uo(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Cs)},(e,t)=>(t-e)/Cs,e=>e.getUTCMinutes());C_.range;const S_=Uo(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*lu-e.getMinutes()*Cs)},(e,t)=>{e.setTime(+e+t*cu)},(e,t)=>(t-e)/cu,e=>e.getHours());S_.range;const E_=Uo(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*cu)},(e,t)=>(t-e)/cu,e=>e.getUTCHours());E_.range;const p1=Uo(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Cs)/yu,e=>e.getDate()-1);p1.range;const QT=Uo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yu,e=>e.getUTCDate()-1);QT.range;const z7=Uo(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/yu,e=>Math.floor(e/yu));z7.range;function Dh(e){return Uo(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Cs)/x_)}const JT=Dh(0),oE=Dh(1),Z2e=Dh(2),Q2e=Dh(3),M0=Dh(4),J2e=Dh(5),eEe=Dh(6);JT.range;oE.range;Z2e.range;Q2e.range;M0.range;J2e.range;eEe.range;function Lh(e){return Uo(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/x_)}const eM=Lh(0),iE=Lh(1),tEe=Lh(2),nEe=Lh(3),k0=Lh(4),rEe=Lh(5),oEe=Lh(6);eM.range;iE.range;tEe.range;nEe.range;k0.range;rEe.range;oEe.range;const T_=Uo(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());T_.range;const M_=Uo(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());M_.range;const vu=Uo(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());vu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Uo(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});vu.range;const xu=Uo(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());xu.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Uo(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});xu.range;function B7(e,t,n,r,o,i){const a=[[Kp,1,lu],[Kp,5,5*lu],[Kp,15,15*lu],[Kp,30,30*lu],[i,1,Cs],[i,5,5*Cs],[i,15,15*Cs],[i,30,30*Cs],[o,1,cu],[o,3,3*cu],[o,6,6*cu],[o,12,12*cu],[r,1,yu],[r,2,2*yu],[n,1,x_],[t,1,T$],[t,3,3*T$],[e,1,NP]];function l(d,f,m){const g=f<d;g&&([d,f]=[f,d]);const w=m&&typeof m.range=="function"?m:u(d,f,m),C=w?w.range(d,+f+1):[];return g?C.reverse():C}function u(d,f,m){const g=Math.abs(f-d)/m,w=d_(([,,E])=>E).right(a,g);if(w===a.length)return e.every(GA(d/NP,f/NP,m));if(w===0)return rE.every(Math.max(GA(d,f,m),1));const[C,S]=a[g/a[w-1][2]<a[w][2]/g?w-1:w];return C.every(S)}return[l,u]}const[iEe,aEe]=B7(xu,M_,eM,z7,E_,C_),[sEe,lEe]=B7(vu,T_,JT,p1,S_,w_);function zP(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function BP(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function gv(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function cEe(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,l=e.months,u=e.shortMonths,d=bv(o),f=yv(o),m=bv(i),g=yv(i),w=bv(a),C=yv(a),S=bv(l),E=yv(l),T=bv(u),I=yv(u),k={a:H,A:Y,b:Q,B:W,c:null,d:R$,e:R$,f:OEe,g:HEe,G:GEe,H:IEe,I:AEe,j:REe,L:H7,m:_Ee,M:DEe,p:K,q:J,Q:D$,s:L$,S:LEe,u:$Ee,U:jEe,V:FEe,w:NEe,W:zEe,x:null,X:null,y:BEe,Y:UEe,Z:VEe,"%":_$},R={a:ae,A:ce,b:de,B:re,c:null,d:O$,e:O$,f:KEe,g:iTe,G:sTe,H:WEe,I:qEe,j:YEe,L:G7,m:XEe,M:ZEe,p:ke,q:Ce,Q:D$,s:L$,S:QEe,u:JEe,U:eTe,V:tTe,w:nTe,W:rTe,x:null,X:null,y:oTe,Y:aTe,Z:lTe,"%":_$},P={a:_,A:$,b:B,B:V,c:q,d:I$,e:I$,f:TEe,g:P$,G:k$,H:A$,I:A$,j:wEe,L:EEe,m:xEe,M:CEe,p:D,q:vEe,Q:kEe,s:PEe,S:SEe,u:hEe,U:mEe,V:gEe,w:pEe,W:bEe,x:G,X:N,y:P$,Y:k$,Z:yEe,"%":MEe};k.x=O(n,k),k.X=O(r,k),k.c=O(t,k),R.x=O(n,R),R.X=O(r,R),R.c=O(t,R);function O(ie,le){return function(ve){var ue=[],me=-1,be=0,Fe=ie.length,Ze,We,_e;for(ve instanceof Date||(ve=new Date(+ve));++me<Fe;)ie.charCodeAt(me)===37&&(ue.push(ie.slice(be,me)),(We=M$[Ze=ie.charAt(++me)])!=null?Ze=ie.charAt(++me):We=Ze==="e"?" ":"0",(_e=le[Ze])&&(Ze=_e(ve,We)),ue.push(Ze),be=me+1);return ue.push(ie.slice(be,me)),ue.join("")}}function j(ie,le){return function(ve){var ue=gv(1900,void 0,1),me=F(ue,ie,ve+="",0),be,Fe;if(me!=ve.length)return null;if("Q"in ue)return new Date(ue.Q);if("s"in ue)return new Date(ue.s*1e3+("L"in ue?ue.L:0));if(le&&!("Z"in ue)&&(ue.Z=0),"p"in ue&&(ue.H=ue.H%12+ue.p*12),ue.m===void 0&&(ue.m="q"in ue?ue.q:0),"V"in ue){if(ue.V<1||ue.V>53)return null;"w"in ue||(ue.w=1),"Z"in ue?(be=BP(gv(ue.y,0,1)),Fe=be.getUTCDay(),be=Fe>4||Fe===0?iE.ceil(be):iE(be),be=QT.offset(be,(ue.V-1)*7),ue.y=be.getUTCFullYear(),ue.m=be.getUTCMonth(),ue.d=be.getUTCDate()+(ue.w+6)%7):(be=zP(gv(ue.y,0,1)),Fe=be.getDay(),be=Fe>4||Fe===0?oE.ceil(be):oE(be),be=p1.offset(be,(ue.V-1)*7),ue.y=be.getFullYear(),ue.m=be.getMonth(),ue.d=be.getDate()+(ue.w+6)%7)}else("W"in ue||"U"in ue)&&("w"in ue||(ue.w="u"in ue?ue.u%7:"W"in ue?1:0),Fe="Z"in ue?BP(gv(ue.y,0,1)).getUTCDay():zP(gv(ue.y,0,1)).getDay(),ue.m=0,ue.d="W"in ue?(ue.w+6)%7+ue.W*7-(Fe+5)%7:ue.w+ue.U*7-(Fe+6)%7);return"Z"in ue?(ue.H+=ue.Z/100|0,ue.M+=ue.Z%100,BP(ue)):zP(ue)}}function F(ie,le,ve,ue){for(var me=0,be=le.length,Fe=ve.length,Ze,We;me<be;){if(ue>=Fe)return-1;if(Ze=le.charCodeAt(me++),Ze===37){if(Ze=le.charAt(me++),We=P[Ze in M$?le.charAt(me++):Ze],!We||(ue=We(ie,ve,ue))<0)return-1}else if(Ze!=ve.charCodeAt(ue++))return-1}return ue}function D(ie,le,ve){var ue=d.exec(le.slice(ve));return ue?(ie.p=f.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function _(ie,le,ve){var ue=w.exec(le.slice(ve));return ue?(ie.w=C.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function $(ie,le,ve){var ue=m.exec(le.slice(ve));return ue?(ie.w=g.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function B(ie,le,ve){var ue=T.exec(le.slice(ve));return ue?(ie.m=I.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function V(ie,le,ve){var ue=S.exec(le.slice(ve));return ue?(ie.m=E.get(ue[0].toLowerCase()),ve+ue[0].length):-1}function q(ie,le,ve){return F(ie,t,le,ve)}function G(ie,le,ve){return F(ie,n,le,ve)}function N(ie,le,ve){return F(ie,r,le,ve)}function H(ie){return a[ie.getDay()]}function Y(ie){return i[ie.getDay()]}function Q(ie){return u[ie.getMonth()]}function W(ie){return l[ie.getMonth()]}function K(ie){return o[+(ie.getHours()>=12)]}function J(ie){return 1+~~(ie.getMonth()/3)}function ae(ie){return a[ie.getUTCDay()]}function ce(ie){return i[ie.getUTCDay()]}function de(ie){return u[ie.getUTCMonth()]}function re(ie){return l[ie.getUTCMonth()]}function ke(ie){return o[+(ie.getUTCHours()>=12)]}function Ce(ie){return 1+~~(ie.getUTCMonth()/3)}return{format:function(ie){var le=O(ie+="",k);return le.toString=function(){return ie},le},parse:function(ie){var le=j(ie+="",!1);return le.toString=function(){return ie},le},utcFormat:function(ie){var le=O(ie+="",R);return le.toString=function(){return ie},le},utcParse:function(ie){var le=j(ie+="",!0);return le.toString=function(){return ie},le}}}var M$={"-":"",_:" ",0:"0"},ri=/^\s*\d+/,uEe=/^%/,dEe=/[\\^$*+?|[\]().{}]/g;function or(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function fEe(e){return e.replace(dEe,"\\$&")}function bv(e){return new RegExp("^(?:"+e.map(fEe).join("|")+")","i")}function yv(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function pEe(e,t,n){var r=ri.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function hEe(e,t,n){var r=ri.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function mEe(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function gEe(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function bEe(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function k$(e,t,n){var r=ri.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function P$(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function yEe(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function vEe(e,t,n){var r=ri.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function xEe(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function I$(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function wEe(e,t,n){var r=ri.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function A$(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function CEe(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function SEe(e,t,n){var r=ri.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function EEe(e,t,n){var r=ri.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function TEe(e,t,n){var r=ri.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function MEe(e,t,n){var r=uEe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function kEe(e,t,n){var r=ri.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function PEe(e,t,n){var r=ri.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function R$(e,t){return or(e.getDate(),t,2)}function IEe(e,t){return or(e.getHours(),t,2)}function AEe(e,t){return or(e.getHours()%12||12,t,2)}function REe(e,t){return or(1+p1.count(vu(e),e),t,3)}function H7(e,t){return or(e.getMilliseconds(),t,3)}function OEe(e,t){return H7(e,t)+"000"}function _Ee(e,t){return or(e.getMonth()+1,t,2)}function DEe(e,t){return or(e.getMinutes(),t,2)}function LEe(e,t){return or(e.getSeconds(),t,2)}function $Ee(e){var t=e.getDay();return t===0?7:t}function jEe(e,t){return or(JT.count(vu(e)-1,e),t,2)}function U7(e){var t=e.getDay();return t>=4||t===0?M0(e):M0.ceil(e)}function FEe(e,t){return e=U7(e),or(M0.count(vu(e),e)+(vu(e).getDay()===4),t,2)}function NEe(e){return e.getDay()}function zEe(e,t){return or(oE.count(vu(e)-1,e),t,2)}function BEe(e,t){return or(e.getFullYear()%100,t,2)}function HEe(e,t){return e=U7(e),or(e.getFullYear()%100,t,2)}function UEe(e,t){return or(e.getFullYear()%1e4,t,4)}function GEe(e,t){var n=e.getDay();return e=n>=4||n===0?M0(e):M0.ceil(e),or(e.getFullYear()%1e4,t,4)}function VEe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+or(t/60|0,"0",2)+or(t%60,"0",2)}function O$(e,t){return or(e.getUTCDate(),t,2)}function WEe(e,t){return or(e.getUTCHours(),t,2)}function qEe(e,t){return or(e.getUTCHours()%12||12,t,2)}function YEe(e,t){return or(1+QT.count(xu(e),e),t,3)}function G7(e,t){return or(e.getUTCMilliseconds(),t,3)}function KEe(e,t){return G7(e,t)+"000"}function XEe(e,t){return or(e.getUTCMonth()+1,t,2)}function ZEe(e,t){return or(e.getUTCMinutes(),t,2)}function QEe(e,t){return or(e.getUTCSeconds(),t,2)}function JEe(e){var t=e.getUTCDay();return t===0?7:t}function eTe(e,t){return or(eM.count(xu(e)-1,e),t,2)}function V7(e){var t=e.getUTCDay();return t>=4||t===0?k0(e):k0.ceil(e)}function tTe(e,t){return e=V7(e),or(k0.count(xu(e),e)+(xu(e).getUTCDay()===4),t,2)}function nTe(e){return e.getUTCDay()}function rTe(e,t){return or(iE.count(xu(e)-1,e),t,2)}function oTe(e,t){return or(e.getUTCFullYear()%100,t,2)}function iTe(e,t){return e=V7(e),or(e.getUTCFullYear()%100,t,2)}function aTe(e,t){return or(e.getUTCFullYear()%1e4,t,4)}function sTe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?k0(e):k0.ceil(e),or(e.getUTCFullYear()%1e4,t,4)}function lTe(){return"+0000"}function _$(){return"%"}function D$(e){return+e}function L$(e){return Math.floor(+e/1e3)}var Rg,W7,q7;cTe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function cTe(e){return Rg=cEe(e),W7=Rg.format,Rg.parse,q7=Rg.utcFormat,Rg.utcParse,Rg}function uTe(e){return new Date(e)}function dTe(e){return e instanceof Date?+e:+new Date(+e)}function k_(e,t,n,r,o,i,a,l,u,d){var f=_7(),m=f.invert,g=f.domain,w=d(".%L"),C=d(":%S"),S=d("%I:%M"),E=d("%I %p"),T=d("%a %d"),I=d("%b %d"),k=d("%B"),R=d("%Y");function P(O){return(u(O)<O?w:l(O)<O?C:a(O)<O?S:i(O)<O?E:r(O)<O?o(O)<O?T:I:n(O)<O?k:R)(O)}return f.invert=function(O){return new Date(m(O))},f.domain=function(O){return arguments.length?g(Array.from(O,dTe)):g().map(uTe)},f.ticks=function(O){var j=g();return e(j[0],j[j.length-1],O??10)},f.tickFormat=function(O,j){return j==null?P:d(j)},f.nice=function(O){var j=g();return(!O||typeof O.range!="function")&&(O=t(j[0],j[j.length-1],O??10)),O?g(j7(j,O)):f},f.copy=function(){return ZT(f,k_(e,t,n,r,o,i,a,l,u,d))},f}function Y7(){return df.apply(k_(sEe,lEe,vu,T_,JT,p1,S_,w_,Kp,W7).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function fTe(){return df.apply(k_(iEe,aEe,xu,M_,eM,QT,E_,C_,Kp,q7).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function pTe(){var e=0,t=1,n,r,o,i,a=ws,l=!1,u;function d(m){return m==null||isNaN(m=+m)?u:a(o===0?.5:(m=(i(m)-n)*o,l?Math.max(0,Math.min(1,m)):m))}d.domain=function(m){return arguments.length?([e,t]=m,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),d):[e,t]},d.clamp=function(m){return arguments.length?(l=!!m,d):l},d.interpolator=function(m){return arguments.length?(a=m,d):a};function f(m){return function(g){var w,C;return arguments.length?([w,C]=g,a=m(w,C),d):[a(0),a(1)]}}return d.range=f(XT),d.rangeRound=f(O7),d.unknown=function(m){return arguments.length?(u=m,d):u},function(m){return i=m,n=m(e),r=m(t),o=n===r?0:1/(r-n),d}}function hTe(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function K7(){var e=y_(pTe()(ws));return e.copy=function(){return hTe(e,K7())},t2e.apply(e,arguments)}function mTe(e,t){return function(r,o){return o.location==="tick"?o.scale.tickFormat(e)(r):o.location==="zoom-slider-tooltip"?t.tickFormat(2)(r):`${r}`}}function aE(e){return e.scaleType==="band"}function P_(e){return e.scaleType==="point"}function gTe(e){return e.type==="piecewise"?N7(e.thresholds,e.colors):K7([e.min??0,e.max??100],e.color)}function P0(e){return e.values?J2(e.values,e.colors).unknown(e.unknownColor??null):J2(e.colors.map((t,n)=>n),e.colors).unknown(e.unknownColor??null)}function sh(e){return e.type==="ordinal"?P0(e):gTe(e)}function X7(e){const{tickMaxStep:t,tickMinStep:n,tickNumber:r,range:o,domain:i}=e,a=n===void 0?999:Math.floor(Math.abs(i[1]-i[0])/n),l=t===void 0?2:Math.ceil(Math.abs(i[1]-i[0])/t),u=r??Math.floor(Math.abs(o[1]-o[0])/50);return Math.min(a,Math.max(l,u))}function Z7(e,t){return t[1]-t[0]===0?1:e/((t[1]-t[0])/100)}function sE(e,t,n){switch(e){case"log":return F7(t,n);case"pow":return v_(t,n);case"sqrt":return X2e(t,n);case"time":return Y7(t,n);case"utc":return fTe(t,n);default:return $7(t,n)}}const lE=e=>(e==null?void 0:e[0])instanceof Date;function cE(e,t){const n=Y7(e.data,t);return(r,{location:o})=>o==="tick"?n.tickFormat(e.tickNumber)(r):`${r.toLocaleString()}`}const HP=(e,t)=>{const n=e[1]-e[0],r=t[1]-t[0],o=e[0]-t[0]*n/r,i=e[1]+(100-t[1])*n/r;return[o,i]};let $$,j$;class bTe{constructor(){if(this.types=new Set,$$)throw new Error("You can only create one instance!");$$=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}class yTe{constructor(){if(this.types=new Set,j$)throw new Error("You can only create one instance!");j$=this.types}addType(t){this.types.add(t)}getTypes(){return this.types}}const tM=new bTe;tM.addType("bar");tM.addType("line");tM.addType("scatter");const Q7=new yTe;Q7.addType("radar");function I_(e){return tM.getTypes().has(e)}const vTe=(e,t,n,r,o,i,a,l)=>{var C;const u=r==="x"?o[t].xExtremumGetter:o[t].yExtremumGetter,d=((C=a[t])==null?void 0:C.series)??{},[f,m]=(u==null?void 0:u({series:d,axis:n,axisIndex:i,isDefaultAxis:i===0,getFilters:l}))??[1/0,-1/0],[g,w]=e;return[Math.min(f,g),Math.max(m,w)]},J7=(e,t,n,r,o,i)=>{const l=Object.keys(n).filter(I_).reduce((u,d)=>vTe(u,d,e,t,n,r,o,i),[1/0,-1/0]);return Number.isNaN(l[0])||Number.isNaN(l[1])?[1/0,-1/0]:l},xTe=(e,t,n,r)=>{const o=new Set;return Object.keys(t).filter(I_).forEach(a=>{var d,f,m;const l=((d=n[a])==null?void 0:d.series)??{},u=(m=(f=t[a]).axisTooltipGetter)==null?void 0:m.call(f,l);u!==void 0&&u.forEach(({axisId:g,direction:w})=>{w===e&&o.add(g??r)})}),o};function wTe(e,t,n){const r=t==="x"?[e.left,e.left+e.width]:[e.top+e.height,e.top];return n.reverse?[r[1],r[0]]:r}const CTe=.2,STe=.1;function eB({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:o,zoomMap:i,zoomOptions:a,getFilters:l}){if(n===void 0)return{axis:{},axisIds:[]};const u=xTe(o,r,t,n[0].id),d={};return n.forEach((f,m)=>{const g=f,w=a==null?void 0:a[g.id],C=i==null?void 0:i.get(g.id),S=C?[C.start,C.end]:[0,100],E=wTe(e,o,g),[T,I]=J7(g,o,r,m,t,C===void 0&&!w?l:void 0),k=!g.ignoreTooltip&&u.has(g.id),R=g.data??[];if(aE(g)){const N=g.categoryGapRatio??CTe,H=g.barGapRatio??STe,Y=o==="y"?[E[1],E[0]]:E,Q=HP(Y,S);if(d[g.id]=z({offset:0,height:0,categoryGapRatio:N,barGapRatio:H,triggerTooltip:k},g,{data:R,scale:KT(g.data,Q).paddingInner(N).paddingOuter(N/2),tickNumber:g.data.length,colorScale:g.colorMap&&(g.colorMap.type==="ordinal"?P0(z({values:g.data},g.colorMap)):sh(g.colorMap))}),lE(g.data)){const W=cE(g,Y);d[g.id].valueFormatter=g.valueFormatter??W}}if(P_(g)){const N=o==="y"?[...E].reverse():E,H=HP(N,S);if(d[g.id]=z({offset:0,height:0,triggerTooltip:k},g,{data:R,scale:P7(g.data,H),tickNumber:g.data.length,colorScale:g.colorMap&&(g.colorMap.type==="ordinal"?P0(z({values:g.data},g.colorMap)):sh(g.colorMap))}),lE(g.data)){const Y=cE(g,N);d[g.id].valueFormatter=g.valueFormatter??Y}}if(g.scaleType==="band"||g.scaleType==="point")return;const P=g.scaleType??"linear",O=g.domainLimit??"nice",j=[g.min??T,g.max??I];if(typeof O=="function"){const{min:N,max:H}=O(T,I);j[0]=N,j[1]=H}const F=X7(z({},g,{range:E,domain:j})),D=Z7(F,S),_=HP(E,S),$=sE(P,j,_),B=O==="nice"?$.nice(F):$,[V,q]=B.domain(),G=[g.min??V,g.max??q];d[g.id]=z({offset:0,height:0,triggerTooltip:k},g,{data:R,scaleType:P,scale:B.domain(G),tickNumber:D,colorScale:g.colorMap&&sh(g.colorMap),valueFormatter:g.valueFormatter??mTe(D,sE(P,E.map(N=>$.invert(N)),E))})}),{axis:d,axisIds:n.map(({id:f})=>f)}}function ETe(e){return e!=null}function tB({zoomMap:e,zoomOptions:t,seriesConfig:n,formattedSeries:r,direction:o}){return(i,a)=>{var E;const l=t[i.id];if(!l||l.filterMode!=="discard")return null;const u=e==null?void 0:e.get(i.id);if(u===void 0||u.start<=0&&u.end>=100)return null;let d=[];const f=i.scaleType;f==="point"||f==="band"?d=[0,(((E=i.data)==null?void 0:E.length)??1)-1]:d=J7(i,o,n,a,r);let m,g;[m,g]=sE(!f||f==="band"||f==="point"?"linear":f,d,[0,100]).nice().domain(),m=m instanceof Date?m.getTime():m,g=g instanceof Date?g.getTime():g;const C=m+u.start*(g-m)/100,S=m+u.end*(g-m)/100;return(T,I)=>{var R;const k=T[o]??((R=i.data)==null?void 0:R[I]);return k==null?!0:i.scaleType==="point"||i.scaleType==="band"||typeof k=="string"?I>=C&&I<=S:k>=C&&k<=S}}}const TTe=e=>({currentAxisId:t,seriesXAxisId:n,seriesYAxisId:r,isDefaultAxis:o})=>(i,a)=>{var d,f;return!(t===n?r:n)||o?((f=(d=Object.values(e??{}))[0])==null?void 0:f.call(d,i,a))??!0:[r,n].filter(m=>m!==t).map(m=>e[m??""]).filter(ETe).every(m=>m(i,a))},F$=e=>(t=[])=>t.reduce((n,r)=>{const{zoom:o,id:i}=r,a=u_(o,i,e);return a&&(n[i]=a),n},{}),MTe=e=>{const t=new Map;return e.forEach(n=>{t.set(n.axisId,n)}),t},nB=e=>e.zoom,rB=Xt([nB],e=>e==null?void 0:e.isInteracting),nM=Xt([nB],e=>(e==null?void 0:e.zoomData)&&MTe(e==null?void 0:e.zoomData)),h1=Xt([_h,rb],(e,t)=>z({},F$("x")(e),F$("y")(t)));Xt([h1,(e,t)=>t],(e,t)=>e[t]);const kTe=Xt([nM,h1,Au,wl],(e,t,n,r)=>e&&t&&tB({zoomMap:e,zoomOptions:t,seriesConfig:n,formattedSeries:r,direction:"x"})),PTe=Xt([nM,h1,Au,wl],(e,t,n,r)=>e&&t&&tB({zoomMap:e,zoomOptions:t,seriesConfig:n,formattedSeries:r,direction:"y"})),oB=Xt([kTe,PTe,_h,rb],(e,t,n,r)=>{if(e===void 0||t===void 0)return;const o=n==null?void 0:n.reduce((a,l,u)=>{const d=e(l,u);return d!==null&&(a[l.id]=d),a},{}),i=r==null?void 0:r.reduce((a,l,u)=>{const d=t(l,u);return d!==null&&(a[l.id]=d),a},{});if(!(Object.keys(o??{}).length===0&&Object.keys(i??{}).length===0))return TTe(z({},o,i))}),ff=Xt([_h,Iu,wl,Au,nM,h1,oB],(e,t,n,r,o,i,a)=>eB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"x",zoomMap:o,zoomOptions:i,getFilters:a})),pf=Xt([rb,Iu,wl,Au,nM,h1,oB],(e,t,n,r,o,i,a)=>eB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"y",zoomMap:o,zoomOptions:i,getFilters:a}));Xt([ff,pf,(e,t)=>t],(e,t,n)=>(e==null?void 0:e.axis[n])??(t==null?void 0:t.axis[n]));Xt([_h,rb,(e,t)=>t],(e,t,n)=>{const r=(e==null?void 0:e.find(o=>o.id===n))??(t==null?void 0:t.find(o=>o.id===n))??null;if(r)return r});function Ru(e){return e.bandwidth!==void 0}function Og(e){return e instanceof Date?e.getTime():e}function I0(e,t){const{scale:n,data:r,reverse:o}=e;if(!Ru(n)){const a=n.invert(t);if(r===void 0)return-1;const l=Og(a);return r==null?void 0:r.findIndex((d,f)=>{const m=Og(d);return m>l&&(f===0||Math.abs(l-m)<=Math.abs(l-Og(r[f-1])))||m<=l&&(f===r.length-1||Math.abs(Og(a)-m)<Math.abs(Og(a)-Og(r[f+1])))})}const i=n.bandwidth()===0?Math.floor((t-Math.min(...n.range())+n.step()/2)/n.step()):Math.floor((t-Math.min(...n.range()))/n.step());return i<0||i>=r.length?-1:o?r.length-1-i:i}function N$(e,t,n){const{scale:r,data:o}=e;if(!Ru(r)){const i=r.invert(t);return n<0?i:o[n]}return n<0||n>=o.length?null:o[n]}const ITe=Object.is;function iB(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(const o in e)if(n+=1,!ITe(e[o],t[o])||!(o in t))return!1;for(const o in t)r+=1;return n===r}const m1=({store:e})=>{const t=Vt(()=>{e.update(i=>z({},i,{interaction:{pointer:null,item:null}}))}),n=Vt(i=>{e.update(a=>{const l=a.interaction.item;return i?l===null||Object.keys(i).some(u=>i[u]!==l[u])?a:z({},a,{interaction:z({},a.interaction,{item:null})}):l===null?a:z({},a,{interaction:z({},a.interaction,{item:null})})})}),r=Vt(i=>{e.update(a=>iB(a.interaction.item,i)?a:z({},a,{interaction:z({},a.interaction,{item:i})}))}),o=Vt(i=>{e.update(a=>z({},a,{interaction:z({},a.interaction,{pointer:i})}))});return{instance:{cleanInteraction:t,setItemInteraction:r,removeItemInteraction:n,setPointerCoordinate:o}}};m1.getInitialState=()=>({interaction:{item:null,pointer:null}});m1.params={};const A_=e=>e.interaction,ATe=Xt([A_],e=>e!==void 0),aB=Xt([A_],e=>(e==null?void 0:e.item)??null),sB=Xt([A_],e=>(e==null?void 0:e.pointer)??null),rM=Xt([sB],e=>e&&e.x),oM=Xt([sB],e=>e&&e.y),RTe=Xt([aB],e=>e!==null),ob=({params:e,store:t,seriesConfig:n,svgRef:r,instance:o})=>{const{xAxis:i,yAxis:a,dataset:l}=e,u=yn(t,Iu),d=yn(t,wl),f=yn(t,ATe),{axis:m,axisIds:g}=yn(t,ff),{axis:w,axisIds:C}=yn(t,pf),S=b.useRef(!0);b.useEffect(()=>{if(S.current){S.current=!1;return}t.update(I=>z({},I,{cartesianAxis:z({},I.cartesianAxis,{x:E7(i,l),y:T7(a,l)})}))},[n,u,i,a,l,t]);const E=g[0],T=C[0];return b.useEffect(()=>{const I=r.current;if(!f||I===null||e.disableAxisListener)return()=>{};const k=()=>{var O;(O=o.cleanInteraction)==null||O.call(o)},R=O=>{var D,_;const j="targetTouches"in O?O.targetTouches[0]:O,F=wx(I,j);if(!o.isPointInside(F.x,F.y,O.target)){(D=o.cleanInteraction)==null||D.call(o);return}(_=o.setPointerCoordinate)==null||_.call(o,F)},P=O=>{const j=O.currentTarget;j&&"hasPointerCapture"in j&&j.hasPointerCapture(O.pointerId)&&j.releasePointerCapture(O.pointerId)};return I.addEventListener("pointerdown",P),I.addEventListener("pointermove",R),I.addEventListener("pointercancel",k),I.addEventListener("pointerleave",k),()=>{I.removeEventListener("pointerdown",P),I.removeEventListener("pointermove",R),I.removeEventListener("pointercancel",k),I.removeEventListener("pointerleave",k)}},[r,t,m,E,w,T,o,e.disableAxisListener,f]),b.useEffect(()=>{const I=r.current,k=e.onAxisClick;if(I===null||!k)return()=>{};const R=P=>{P.preventDefault();let O=null,j=!1;const F=wx(I,P),D=I0(m[E],F.x);j=D!==-1,O=j?D:I0(w[T],F.y);const _=j?g[0]:C[0];if(O==null||O===-1)return;const $=(j?m:w)[_].data[O],B={};Object.keys(d).filter(V=>["bar","line"].includes(V)).forEach(V=>{var q;(q=d[V])==null||q.seriesOrder.forEach(G=>{const N=d[V].series[G],H=N.xAxisId,Y=N.yAxisId,Q=j?H:Y;(Q===void 0||Q===_)&&(B[G]=N.data[O])})}),k(P,{dataIndex:O,axisValue:$,seriesValues:B})};return I.addEventListener("click",R),()=>{I.removeEventListener("click",R)}},[e.onAxisClick,d,r,m,g,w,C,E,T]),{}};ob.params={xAxis:!0,yAxis:!0,dataset:!0,onAxisClick:!0,disableAxisListener:!0};ob.getDefaultizedParams=({params:e})=>z({},e,{colors:e.colors??x7,theme:e.theme??"light",defaultizedXAxis:E7(e.xAxis,e.dataset),defaultizedYAxis:T7(e.yAxis,e.dataset)});ob.getInitialState=e=>({cartesianAxis:{x:e.defaultizedXAxis,y:e.defaultizedYAxis}});function s0(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 o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(!s0(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;for(let i=0;i<o.length;i+=1){const a=o[i];if(!s0(a[1],t.get(a[0])))return!1}return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;const o=Array.from(e.entries());for(let i=0;i<o.length;i+=1)if(!t.has(o[i][0]))return!1;return!0}if(ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){const o=e.length;if(o!==t.length)return!1;for(let i=0;i<o;i+=1)if(e[i]!==t[i])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),r=n.length;if(r!==Object.keys(t).length)return!1;for(let o=0;o<r;o+=1)if(!Object.prototype.hasOwnProperty.call(t,n[o]))return!1;for(let o=0;o<r;o+=1){const i=n[o];if(!s0(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}const iM=(e,t)=>t;function lB(e,t,n=t.axisIds[0]){return Array.isArray(n)?n.map(r=>I0(t.axis[r],e)):I0(t.axis[n],e)}const OTe=Xt([rM,ff,iM],(e,t,n)=>e===null?null:lB(e,t,n)),_Te=Xt([oM,pf,iM],(e,t,n)=>e===null?null:lB(e,t,n));function cB(e,t,n,r=t.axisIds[0]){return Array.isArray(r)?r.map((o,i)=>N$(t.axis[o],e,n[i])):N$(t.axis[r],e,n)}const DTe=Xt([rM,ff,OTe,iM],(e,t,n,r)=>e===null||n===null||t.axisIds.length===0?null:cB(e,t,n,r)),LTe=Xt([oM,pf,_Te,iM],(e,t,n,r)=>e===null||n===null||t.axisIds.length===0?null:cB(e,t,n,r)),uB=Xt([rM,ff],(e,t)=>e===null?[]:t.axisIds.filter(n=>t.axis[n].triggerTooltip).map(n=>({axisId:n,dataIndex:I0(t.axis[n],e)})).filter(({dataIndex:n})=>n>=0),{memoizeOptions:{resultEqualityCheck:s0}}),dB=Xt([oM,pf],(e,t)=>e===null?[]:t.axisIds.filter(n=>t.axis[n].triggerTooltip).map(n=>({axisId:n,dataIndex:I0(t.axis[n],e)})).filter(({dataIndex:n})=>n>=0),{memoizeOptions:{resultEqualityCheck:s0}}),$Te=Xt([uB,dB],(e,t)=>e.length>0||t.length>0);function z$(e,t){return e.id!==void 0?e:z({id:t},e)}function B$(e){return e.colorMap?z({},e,{colorScale:e.colorMap.type==="ordinal"&&e.data?P0(z({values:e.data},e.colorMap)):sh(e.colorMap.type==="continuous"?z({min:e.min,max:e.max},e.colorMap):e.colorMap)}):e}function fB(e,t){if(!e||e.length===0)return{axis:{},axisIds:[]};const n={},r=[];return e.forEach((o,i)=>{const a=o.dataKey,l=o.id??`defaultized-z-axis-${i}`;if(a===void 0||o.data!==void 0){n[l]=B$(z$(o,l)),r.push(l);return}if(t===void 0)throw new Error("MUI X Charts: z-axis uses `dataKey` but no `dataset` is provided.");n[l]=B$(z$(z({},o,{data:t.map(u=>u[a])}),l)),r.push(l)}),{axis:n,axisIds:r}}const g1=({params:e,store:t})=>{const{zAxis:n,dataset:r}=e,o=b.useRef(!0);return b.useEffect(()=>{if(o.current){o.current=!1;return}t.update(i=>z({},i,{zAxis:fB(n,r)}))},[n,r,t]),{}};g1.params={zAxis:!0,dataset:!0};g1.getInitialState=e=>({zAxis:fB(e.zAxis,e.dataset)});const jTe=e=>e,FTe=Xt([jTe],e=>e.zAxis),NTe=()=>{},ib=({store:e,params:t})=>{NTe({controlled:t.highlightedItem}),kn(()=>{e.update(o=>o.highlight.item===t.highlightedItem?o:z({},o,{highlight:z({},o.highlight,{item:t.highlightedItem})}))},[e,t.highlightedItem]);const n=Vt(()=>{var o;(o=t.onHighlightChange)==null||o.call(t,null),e.update(i=>z({},i,{highlight:{item:null}}))}),r=Vt(o=>{var a;const i=e.getSnapshot().highlight.item;iB(i,o)||((a=t.onHighlightChange)==null||a.call(t,o),e.update(l=>z({},l,{highlight:{item:o}})))});return{instance:{clearHighlight:n,setHighlight:r}}};ib.getDefaultizedParams=({params:e})=>z({},e,{highlightedItem:e.highlightedItem??null});ib.getInitialState=e=>({highlight:{item:e.highlightedItem}});ib.params={highlightedItem:!0,onHighlightChange:!0};const H$=(e,t)=>t==="x"?{x:e,y:null}:{x:null,y:e},pB=e=>{var u;const{axis:t,getFilters:n,isDefaultAxis:r}=e,o=n==null?void 0:n({currentAxisId:t.id,isDefaultAxis:r}),i=o?(u=t.data)==null?void 0:u.filter((d,f)=>o({x:null,y:null},f)):t.data,a=Math.min(...i??[]),l=Math.max(...i??[]);return[a,l]},hB=e=>t=>{const{series:n,axis:r,getFilters:o,isDefaultAxis:i}=t;return Object.keys(n).filter(a=>{const l=e==="x"?n[a].xAxisId:n[a].yAxisId;return l===r.id||i&&l===void 0}).reduce((a,l)=>{const{stackedData:u}=n[l],d=o==null?void 0:o({currentAxisId:r.id,isDefaultAxis:i,seriesXAxisId:n[l].xAxisId,seriesYAxisId:n[l].yAxisId}),[f,m]=(u==null?void 0:u.reduce((g,w,C)=>d&&(!d(H$(w[0],e),C)||!d(H$(w[1],e),C))?g:[Math.min(...w,g[0]),Math.max(...w,g[1])],[1/0,-1/0]))??[1/0,-1/0];return[Math.min(f,a[0]),Math.max(m,a[1])]},[1/0,-1/0])},zTe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?hB("x")(e):pB(e),BTe=e=>Object.keys(e.series).some(n=>e.series[n].layout==="horizontal")?pB(e):hB("y")(e);function al(e){return function(){return e}}const HTe=Math.PI,UP=2*HTe;function mB(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function UTe(e,t){return t<e?-1:t>e?1:t>=e?0:NaN}function GTe(e){return e}function VTe(){var e=GTe,t=UTe,n=null,r=al(0),o=al(UP),i=al(0);function a(l){var u,d=(l=mB(l)).length,f,m,g=0,w=new Array(d),C=new Array(d),S=+r.apply(this,arguments),E=Math.min(UP,Math.max(-UP,o.apply(this,arguments)-S)),T,I=Math.min(Math.abs(E)/d,i.apply(this,arguments)),k=I*(E<0?-1:1),R;for(u=0;u<d;++u)(R=C[w[u]=u]=+e(l[u],u,l))>0&&(g+=R);for(t!=null?w.sort(function(P,O){return t(C[P],C[O])}):n!=null&&w.sort(function(P,O){return n(l[P],l[O])}),u=0,m=g?(E-d*k)/g:0;u<d;++u,S=T)f=w[u],R=C[f],T=S+(R>0?R*m:0)+k,C[f]={data:l[f],index:u,value:R,startAngle:S,endAngle:T,padAngle:I};return C}return a.value=function(l){return arguments.length?(e=typeof l=="function"?l:al(+l),a):e},a.sortValues=function(l){return arguments.length?(t=l,n=null,a):t},a.sort=function(l){return arguments.length?(n=l,t=null,a):n},a.startAngle=function(l){return arguments.length?(r=typeof l=="function"?l:al(+l),a):r},a.endAngle=function(l){return arguments.length?(o=typeof l=="function"?l:al(+l),a):o},a.padAngle=function(l){return arguments.length?(i=typeof l=="function"?l:al(+l),a):i},a}function A0(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,l=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<l;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function R0(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function WTe(e,t){return e[t]}function qTe(e){const t=[];return t.key=e,t}function gB(){var e=al([]),t=R0,n=A0,r=WTe;function o(i){var a=Array.from(e.apply(this,arguments),qTe),l,u=a.length,d=-1,f;for(const m of i)for(l=0,++d;l<u;++l)(a[l][d]=[0,+r(m,a[l].key,d,i)]).data=m;for(l=0,f=mB(t(a));l<u;++l)a[f[l]].index=l;return n(a,f),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:al(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:al(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?R0:typeof i=="function"?i:al(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??A0,o):n},o}function YTe(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}A0(e,t)}}function KTe(e,t){if((u=e.length)>0)for(var n,r=0,o,i,a,l,u,d=e[t[0]].length;r<d;++r)for(a=l=0,n=0;n<u;++n)(i=(o=e[t[n]][r])[1]-o[0])>0?(o[0]=a,o[1]=a+=i):i<0?(o[1]=l,o[0]=l+=i):(o[0]=0,o[1]=i)}function XTe(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,l=0;a<o;++a)l+=e[a][n][1]||0;r[n][1]+=r[n][0]=-l/2}A0(e,t)}}function ZTe(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var l=0,u=0,d=0;l<a;++l){for(var f=e[t[l]],m=f[r][1]||0,g=f[r-1][1]||0,w=(m-g)/2,C=0;C<l;++C){var S=e[t[C]],E=S[r][1]||0,T=S[r-1][1]||0;w+=E-T}u+=m,d+=w*m}o[r-1][1]+=o[r-1][0]=n,u&&(n-=d/u)}o[r-1][1]+=o[r-1][0]=n,A0(e,t)}}function bB(e){var t=e.map(QTe);return R0(e).sort(function(n,r){return t[n]-t[r]})}function QTe(e){for(var t=-1,n=0,r=e.length,o,i=-1/0;++t<r;)(o=+e[t][1])>i&&(i=o,n=t);return n}function yB(e){var t=e.map(vB);return R0(e).sort(function(n,r){return t[n]-t[r]})}function vB(e){for(var t=0,n=-1,r=e.length,o;++n<r;)(o=+e[n][1])&&(t+=o);return t}function JTe(e){return yB(e).reverse()}function eMe(e){var t=e.length,n,r,o=e.map(vB),i=bB(e),a=0,l=0,u=[],d=[];for(n=0;n<t;++n)r=i[n],a<l?(a+=o[r],u.push(r)):(l+=o[r],d.push(r));return d.reverse().concat(u)}function tMe(e){return R0(e).reverse()}const GP={appearance:bB,ascending:yB,descending:JTe,insideOut:eMe,none:R0,reverse:tMe},VP={expand:YTe,diverging:KTe,none:A0,silhouette:XTe,wiggle:ZTe},xB=e=>{const{series:t,seriesOrder:n,defaultStrategy:r}=e,o=[],i={};return n.forEach(a=>{const{stack:l,stackOrder:u,stackOffset:d}=t[a];l===void 0?o.push({ids:[a],stackingOrder:GP.none,stackingOffset:VP.none}):i[l]===void 0?(i[l]=o.length,o.push({ids:[a],stackingOrder:GP[u??(r==null?void 0:r.stackOrder)??"none"],stackingOffset:VP[d??(r==null?void 0:r.stackOffset)??"diverging"]})):(o[i[l]].ids.push(a),u!==void 0&&(o[i[l]].stackingOrder=GP[u]),d!==void 0&&(o[i[l]].stackingOffset=VP[d]))}),o};function wB(e,t){const n={};return Object.keys(e).forEach(r=>{n[r]=z({},e[r],{valueFormatter:e[r].valueFormatter??t})}),n}const nMe=(e,t)=>{const{seriesOrder:n,series:r}=e,o=xB(e),i=t??[];n.forEach(l=>{const u=r[l].data;if(u!==void 0)u.forEach((d,f)=>{i.length<=f?i.push({[l]:d}):i[f][l]=d});else if(t===void 0)throw new Error([`MUI X Charts: bar series with id='${l}' has no data.`,"Either provide a data property to the series or use the dataset prop."].join(`
`))});const a={};return o.forEach(l=>{const{ids:u,stackingOffset:d,stackingOrder:f}=l,m=gB().keys(u.map(g=>{const w=r[g].dataKey;return r[g].data===void 0&&w!==void 0?w:g})).value((g,w)=>g[w]??0).order(f).offset(d)(i);u.forEach((g,w)=>{const C=r[g].dataKey;a[g]=z({layout:"vertical",labelMarkType:"square"},r[g],{data:C?t.map(S=>{const E=S[C];return typeof E!="number"?null:E}):r[g].data,stackedData:m[w].map(([S,E])=>[S,E])})})}),{seriesOrder:n,stackingGroups:o,series:wB(a,l=>l==null?"":l.toLocaleString())}};function gl(e,t){return typeof e=="function"?e(t):e}const rMe=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=gl(n[o].label,"legend");return i===void 0||r.push({markType:n[o].labelMarkType,id:o,seriesId:o,color:n[o].color,label:i}),r},[])},CB=(e,t,n)=>{const r=e.layout==="vertical",o=r?t==null?void 0:t.colorScale:n==null?void 0:n.colorScale,i=r?n==null?void 0:n.colorScale:t==null?void 0:t.colorScale,a=r?t==null?void 0:t.data:n==null?void 0:n.data;return i?l=>{if(l===void 0)return e.color;const u=e.data[l],d=u===null?e.color:i(u);return d===null?e.color:d}:o&&a?l=>{if(l===void 0)return e.color;const u=a[l],d=u===null?e.color:o(u);return d===null?e.color:d}:()=>e.color},oMe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=gl(t.label,"tooltip"),i=t.data[r.dataIndex];if(i==null)return null;const a=t.valueFormatter(i,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:o,value:i,formattedValue:a,markType:t.labelMarkType}},iMe=e=>Object.values(e).map(t=>t.layout==="horizontal"?{direction:"y",axisId:t.yAxisId}:{direction:"x",axisId:t.xAxisId}),aMe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e),sMe={seriesProcessor:nMe,colorProcessor:CB,legendGetter:rMe,tooltipGetter:oMe,axisTooltipGetter:iMe,xExtremumGetter:zTe,yExtremumGetter:BTe,getSeriesWithDefaultValues:aMe},uE=(e,t)=>[t[0]===null?e[0]:Math.min(e[0],t[0]),t[1]===null?e[1]:Math.max(e[1],t[1])],lMe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(i=>{const a=t[i].xAxisId;return a===n.id||a===void 0&&r}).reduce((i,a)=>{var d;const l=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),u=(d=t[a].data)==null?void 0:d.reduce((f,m,g)=>l&&!l(m,g)?f:uE(f,[m.x,m.x]),[1/0,-1/0]);return uE(i,u??[1/0,-1/0])},[1/0,-1/0])},cMe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(i=>{const a=t[i].yAxisId;return a===n.id||a===void 0&&r}).reduce((i,a)=>{var d;const l=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),u=(d=t[a].data)==null?void 0:d.reduce((f,m,g)=>l&&!l(m,g)?f:uE(f,[m.y,m.y]),[1/0,-1/0]);return uE(i,u??[1/0,-1/0])},[1/0,-1/0])},uMe=({series:e,seriesOrder:t},n)=>({series:Object.fromEntries(Object.entries(e).map(([o,i])=>{const a=i==null?void 0:i.datasetKeys,l=["x","y","id"].filter(d=>typeof(a==null?void 0:a[d])!="string");if(i!=null&&i.datasetKeys&&l.length>0)throw new Error([`MUI X Charts: scatter series with id='${o}' has incomplete datasetKeys.`,`Properties ${l.map(d=>`"${d}"`).join(", ")} are missing.`].join(`
`));const u=a?(n==null?void 0:n.map(d=>({x:d[a.x]??null,y:d[a.y]??null,z:a.z&&d[a.z],id:a.id&&d[a.id]})))??[]:i.data??[];return[o,z({labelMarkType:"circle",markerSize:4},i,{data:u,valueFormatter:i.valueFormatter??(d=>d&&`(${d.x}, ${d.y})`)})]})),seriesOrder:t}),dMe=(e,t,n,r)=>{const o=r==null?void 0:r.colorScale,i=n==null?void 0:n.colorScale,a=t==null?void 0:t.colorScale;return o?l=>{var f,m;if(l===void 0)return e.color;if(((f=r==null?void 0:r.data)==null?void 0:f[l])!==void 0){const g=o((m=r==null?void 0:r.data)==null?void 0:m[l]);if(g!==null)return g}const u=e.data[l],d=u===null?e.color:o(u.z);return d===null?e.color:d}:i?l=>{if(l===void 0)return e.color;const u=e.data[l],d=u===null?e.color:i(u.y);return d===null?e.color:d}:a?l=>{if(l===void 0)return e.color;const u=e.data[l],d=u===null?e.color:a(u.x);return d===null?e.color:d}:()=>e.color},fMe=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=gl(n[o].label,"legend");return i===void 0||r.push({markType:n[o].labelMarkType,id:o,seriesId:o,color:n[o].color,label:i}),r},[])},pMe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=gl(t.label,"tooltip"),i=t.data[r.dataIndex],a=t.valueFormatter(i,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:o,value:i,formattedValue:a,markType:t.labelMarkType}},hMe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e),mMe={seriesProcessor:uMe,colorProcessor:dMe,legendGetter:fMe,tooltipGetter:pMe,xExtremumGetter:lMe,yExtremumGetter:cMe,getSeriesWithDefaultValues:hMe},gMe=e=>{const{axis:t}=e,n=Math.min(...t.data??[]),r=Math.max(...t.data??[]);return[n,r]};function bMe(e,t,n,r){return n.reduce((o,i,a)=>{if(t[a]===null)return o;const[l,u]=e(i);return r&&(!r({y:l,x:null},a)||!r({y:u,x:null},a))?o:[Math.min(l,u,o[0]),Math.max(l,u,o[1])]},[1/0,-1/0])}const yMe=e=>{const{series:t,axis:n,isDefaultAxis:r,getFilters:o}=e;return Object.keys(t).filter(i=>{const a=t[i].yAxisId;return a===n.id||r&&a===void 0}).reduce((i,a)=>{const{area:l,stackedData:u,data:d}=t[a],f=l!==void 0,m=o==null?void 0:o({currentAxisId:n.id,isDefaultAxis:r,seriesXAxisId:t[a].xAxisId,seriesYAxisId:t[a].yAxisId}),g=f&&n.scaleType!=="log"&&typeof t[a].baseline!="string"?E=>E:E=>[E[1],E[1]],w=bMe(g,d,u,m),[C,S]=w;return[Math.min(C,i[0]),Math.max(S,i[1])]},[1/0,-1/0])},vMe=(e,t)=>{const{seriesOrder:n,series:r}=e,o=xB(z({},e,{defaultStrategy:{stackOffset:"none"}})),i=t??[];n.forEach(l=>{const u=r[l].data;u!==void 0&&u.forEach((d,f)=>{i.length<=f?i.push({[l]:d}):i[f][l]=d})});const a={};return o.forEach(l=>{const{ids:u,stackingOrder:d,stackingOffset:f}=l,m=gB().keys(u.map(g=>{const w=r[g].dataKey;return r[g].data===void 0&&w!==void 0?w:g})).value((g,w)=>g[w]??0).order(d).offset(f)(i);u.forEach((g,w)=>{const C=r[g].dataKey;a[g]=z({labelMarkType:"line"},r[g],{data:C?t.map(S=>{const E=S[C];return typeof E!="number"?null:E}):r[g].data,stackedData:m[w].map(([S,E])=>[S,E])})})}),{seriesOrder:n,stackingGroups:o,series:wB(a,l=>l==null?"":l.toLocaleString())}},xMe=(e,t,n)=>{const r=n==null?void 0:n.colorScale,o=t==null?void 0:t.colorScale;return r?i=>{if(i===void 0)return e.color;const a=e.data[i],l=a===null?e.color:r(a);return l===null?e.color:l}:o?i=>{var u;if(i===void 0)return e.color;const a=(u=t.data)==null?void 0:u[i],l=a===null?e.color:o(a);return l===null?e.color:l}:()=>e.color},wMe=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>{const i=gl(n[o].label,"legend");return i===void 0||r.push({markType:n[o].labelMarkType,id:o,seriesId:o,color:n[o].color,label:i}),r},[])},CMe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=gl(t.label,"tooltip"),i=t.data[r.dataIndex],a=t.valueFormatter(i,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:o,value:i,formattedValue:a,markType:t.labelMarkType}},SMe=e=>Object.values(e).map(t=>({direction:"x",axisId:t.xAxisId})),EMe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`,color:n[t%n.length]},e),TMe={colorProcessor:xMe,seriesProcessor:vMe,legendGetter:wMe,tooltipGetter:CMe,axisTooltipGetter:SMe,xExtremumGetter:gMe,yExtremumGetter:yMe,getSeriesWithDefaultValues:EMe},MMe=(e="none")=>{if(typeof e=="function")return e;switch(e){case"none":return null;case"desc":return(t,n)=>n-t;case"asc":return(t,n)=>t-n;default:return null}},kMe=e=>{const{seriesOrder:t,series:n}=e,r={};return t.forEach(o=>{const i=VTe().startAngle(2*Math.PI*(n[o].startAngle??0)/360).endAngle(2*Math.PI*(n[o].endAngle??360)/360).padAngle(2*Math.PI*(n[o].paddingAngle??0)/360).sortValues(MMe(n[o].sortingValues??"none"))(n[o].data.map(a=>a.value));r[o]=z({labelMarkType:"circle",valueFormatter:a=>a.value.toLocaleString()},n[o],{data:n[o].data.map((a,l)=>z({},a,{id:a.id??`auto-generated-pie-id-${o}-${l}`},i[l])).map((a,l)=>{var u,d;return z({labelMarkType:"circle"},a,{formattedValue:((d=(u=n[o]).valueFormatter)==null?void 0:d.call(u,z({},a,{label:gl(a.label,"arc")}),{dataIndex:l}))??a.value.toLocaleString()})})})}),{seriesOrder:t,series:r}},PMe=e=>t=>e.data[t].color,IMe=e=>{const{seriesOrder:t,series:n}=e;return t.reduce((r,o)=>(n[o].data.forEach((i,a)=>{const l=gl(i.label,"legend");l!==void 0&&r.push({markType:i.labelMarkType??n[o].labelMarkType,id:i.id??a,seriesId:o,color:i.color,label:l,itemId:i.id??a})}),r),[])},AMe=e=>{const{series:t,getColor:n,identifier:r}=e;if(!r||r.dataIndex===void 0)return null;const o=t.data[r.dataIndex];if(o==null)return null;const i=gl(o.label,"tooltip"),a=z({},o,{label:i}),l=t.valueFormatter(a,{dataIndex:r.dataIndex});return{identifier:r,color:n(r.dataIndex),label:i,value:a,formattedValue:l,markType:o.labelMarkType??t.labelMarkType}},RMe=(e,t,n)=>z({id:e.id??`auto-generated-id-${t}`},e,{data:e.data.map((r,o)=>z({color:n[o%n.length]},r))}),OMe={colorProcessor:PMe,seriesProcessor:kMe,legendGetter:IMe,tooltipGetter:AMe,getSeriesWithDefaultValues:RMe},_Me={bar:sMe,scatter:mMe,line:TMe,pie:OMe},DMe=[g1,ob,m1,ib];function LMe(e){const{children:t,plugins:n=DMe,pluginParams:r={},seriesConfig:o=_Me}=e,{contextValue:i}=FSe(n,r,o);return y.jsx(S7.Provider,{value:i,children:t})}const $h=()=>{const e=b.useContext(S7);if(e==null)throw new Error(["MUI X Charts: Could not find the Chart context.","It looks like you rendered your component outside of a ChartDataProvider.","This can also happen if you are bundling multiple versions of the library."].join(`
`));return e},$Me=e=>{"hasPointerCapture"in e.currentTarget&&e.currentTarget.hasPointerCapture(e.pointerId)&&e.currentTarget.releasePointerCapture(e.pointerId)},jMe=(e,t)=>{const{instance:n}=$h(),r=b.useRef(!1),o=b.useCallback(()=>{r.current=!0,n.setItemInteraction({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex}),n.setHighlight({seriesId:e.seriesId,dataIndex:e.dataIndex})},[n,e.type,e.seriesId,e.dataIndex]),i=b.useCallback(()=>{r.current=!1,n.removeItemInteraction({type:e.type,seriesId:e.seriesId,dataIndex:e.dataIndex}),n.clearHighlight()},[n,e.type,e.seriesId,e.dataIndex]);return b.useEffect(()=>()=>{r.current&&i()},[i]),{onPointerEnter:o,onPointerLeave:i,onPointerDown:$Me}};function Gr(){const e=$h();if(!e)throw new Error(["MUI X Charts: Could not find the charts context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(`
`));return e.store}const SB=(e,t)=>n=>!e||!t||!n?!1:e.highlight==="series"?n.seriesId===t.seriesId:e.highlight==="item"?n.dataIndex===t.dataIndex&&n.seriesId===t.seriesId:!1,EB=(e,t)=>n=>!e||!t||!n?!1:e.fade==="series"?n.seriesId===t.seriesId&&n.dataIndex!==t.dataIndex:e.fade==="global"?n.seriesId!==t.seriesId||n.dataIndex!==t.dataIndex:!1,FMe=e=>e.highlight,NMe=e=>e.series,zMe=Xt([NMe],e=>{const t=new Map;return Object.keys(e.processedSeries).forEach(n=>{var o;const r=e.processedSeries[n];(o=r==null?void 0:r.seriesOrder)==null||o.forEach(i=>{const a=r==null?void 0:r.series[i];t.set(i,a==null?void 0:a.highlightScope)})}),t}),b1=Xt([FMe],e=>e.item),aM=Xt([zMe,b1],(e,t)=>{if(!t)return null;const n=e.get(t.seriesId);return n===void 0?null:n});Xt([aM,b1],SB);Xt([aM,b1],EB);const BMe=Xt([aM,b1,(e,t)=>t],(e,t,n)=>SB(e,t)(n)),HMe=Xt([aM,b1,(e,t)=>t],(e,t,n)=>EB(e,t)(n));function TB(e){const t=Gr(),n=yn(t,BMe,[e]),r=yn(t,HMe,[e]);return{isHighlighted:n,isFaded:!n&&r}}var WP,U$;function UMe(){if(U$)return WP;U$=1;var e=4,t=.001,n=1e-7,r=10,o=11,i=1/(o-1),a=typeof Float32Array=="function";function l(S,E){return 1-3*E+3*S}function u(S,E){return 3*E-6*S}function d(S){return 3*S}function f(S,E,T){return((l(E,T)*S+u(E,T))*S+d(E))*S}function m(S,E,T){return 3*l(E,T)*S*S+2*u(E,T)*S+d(E)}function g(S,E,T,I,k){var R,P,O=0;do P=E+(T-E)/2,R=f(P,I,k)-S,R>0?T=P:E=P;while(Math.abs(R)>n&&++O<r);return P}function w(S,E,T,I){for(var k=0;k<e;++k){var R=m(E,T,I);if(R===0)return E;var P=f(E,T,I)-S;E-=P/R}return E}function C(S){return S}return WP=function(E,T,I,k){if(!(0<=E&&E<=1&&0<=I&&I<=1))throw new Error("bezier x values must be in [0, 1] range");if(E===T&&I===k)return C;for(var R=a?new Float32Array(o):new Array(o),P=0;P<o;++P)R[P]=f(P*i,E,I);function O(j){for(var F=0,D=1,_=o-1;D!==_&&R[D]<=j;++D)F+=i;--D;var $=(j-R[D])/(R[D+1]-R[D]),B=F+$*i,V=m(B,E,I);return V>=t?w(j,B,E,I):V===0?B:g(j,F,F+i,E,I)}return function(F){return F===0?0:F===1?1:f(O(F),T,k)}},WP}var GMe=UMe();const VMe=wu(GMe),WMe=300,qMe=VMe(.66,0,.34,1);var O0=0,Lv=0,vv=0,MB=1e3,dE,$v,fE=0,Ch=0,sM=0,Mx=typeof performance=="object"&&performance.now?performance:Date,kB=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function R_(){return Ch||(kB(YMe),Ch=Mx.now()+sM)}function YMe(){Ch=0}function pE(){this._call=this._time=this._next=null}pE.prototype=PB.prototype={constructor:pE,restart:function(e,t,n){if(typeof e!="function")throw new TypeError("callback is not a function");n=(n==null?R_():+n)+(t==null?0:+t),!this._next&&$v!==this&&($v?$v._next=this:dE=this,$v=this),this._call=e,this._time=n,KA()},stop:function(){this._call&&(this._call=null,this._time=1/0,KA())}};function PB(e,t,n){var r=new pE;return r.restart(e,t,n),r}function YA(){R_(),++O0;for(var e=dE,t;e;)(t=Ch-e._time)>=0&&e._call.call(void 0,t),e=e._next;--O0}function G$(){Ch=(fE=Mx.now())+sM,O0=Lv=0;try{YA()}finally{O0=0,XMe(),Ch=0}}function KMe(){var e=Mx.now(),t=e-fE;t>MB&&(sM-=t,fE=e)}function XMe(){for(var e,t=dE,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:dE=n);$v=e,KA(r)}function KA(e){if(!O0){Lv&&(Lv=clearTimeout(Lv));var t=e-Ch;t>24?(e<1/0&&(Lv=setTimeout(G$,e-Mx.now()-sM)),vv&&(vv=clearInterval(vv))):(vv||(fE=Mx.now(),vv=setInterval(KMe,MB)),O0=1,kB(G$))}}function ZMe(e,t,n){var r=new pE;return t=t==null?0:+t,r.restart(o=>{r.stop(),e(o+t)},t,n),r}class QMe{constructor(t,n,r){this.duration=void 0,this.elapsed=0,this.easingFn=void 0,this.timer=null,this.onTickCallback=void 0,this.duration=t,this.easingFn=n,this.onTickCallback=r,this.resume()}get running(){return this.timer!==null}timerCallback(t){this.elapsed=Math.min(t,this.duration);const n=this.duration===0?1:this.elapsed/this.duration,r=this.easingFn(n);this.onTickCallback(r),this.elapsed>=this.duration&&this.stop()}resume(){if(this.running||this.elapsed>=this.duration)return this;const t=R_()-this.elapsed;return this.timer=PB(n=>this.timerCallback(n),0,t),YA(),this}stop(){return this.running?(this.timer&&(this.timer.stop(),this.timer=null),this):this}finish(){return this.stop(),ZMe(()=>this.timerCallback(this.duration)),YA(),this}}function JMe(e,t){if(Object.is(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o+=1){const i=n[o];if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1}return!0}function eke(e,{createInterpolator:t,applyProps:n,skip:r,initialProps:o=e}){const i=b.useRef(o),a=b.useRef(null),l=b.useRef(null),u=b.useRef(e);kn(()=>{u.current=e},[e]),kn(()=>{var m;r&&((m=a.current)==null||m.finish(),a.current=null,l.current=null,i.current=e)},[e,r]);const d=b.useCallback(m=>{const g=i.current,w=t(g,e);a.current=new QMe(WMe,qMe,C=>{const S=w(C);i.current=S,n(m,S)})},[n,t,e]);return b.useCallback(m=>{var w,C,S,E;if(m===null){(w=a.current)==null||w.stop();return}const g=l.current;if(g===m){if(JMe(u.current,e)){(C=a.current)==null||C.resume();return}(S=a.current)==null||S.stop()}g&&((E=a.current)==null||E.stop()),l.current=m,(a.current||!r)&&d(m)},[d,e,r])}function O_(e,{createInterpolator:t,transformProps:n,applyProps:r,skip:o,initialProps:i=e,ref:a}){const l=n??(f=>f),u=eke(e,{initialProps:i,createInterpolator:t,applyProps:(f,m)=>r(f,l(m)),skip:o});return z({},n(o?e:i),{ref:Dn(u,a)})}function tke(e,t){const n=Bo(e.x,t.x),r=Bo(e.y,t.y),o=Bo(e.width,t.width),i=Bo(e.height,t.height);return a=>({x:n(a),y:r(a),width:o(a),height:i(a)})}function nke(e){const t={x:e.layout==="vertical"?e.x:e.xOrigin,y:e.layout==="vertical"?e.yOrigin:e.y,width:e.layout==="vertical"?e.width:0,height:e.layout==="vertical"?0:e.height};return O_({x:e.x,y:e.y,width:e.width,height:e.height},{createInterpolator:tke,applyProps(n,r){n.setAttribute("x",r.x.toString()),n.setAttribute("y",r.y.toString()),n.setAttribute("width",r.width.toString()),n.setAttribute("height",r.height.toString())},transformProps:n=>n,initialProps:t,skip:e.skipAnimation,ref:e.ref})}const rke=["ownerState","skipAnimation","id","dataIndex","xOrigin","yOrigin"];function oke(e){const{ownerState:t}=e,n=tt(e,rke),r=nke(e);return y.jsx("rect",z({},n,{filter:t.isHighlighted?"brightness(120%)":void 0,opacity:t.isFaded?.3:1,"data-highlighted":t.isHighlighted||void 0,"data-faded":t.isFaded||void 0},r))}const ike=["id","dataIndex","classes","color","slots","slotProps","style","onClick","skipAnimation","layout","x","xOrigin","y","yOrigin","width","height"];function ake(e){const{id:t,dataIndex:n,classes:r,color:o,slots:i,slotProps:a,style:l,onClick:u,skipAnimation:d,layout:f,x:m,xOrigin:g,y:w,yOrigin:C,width:S,height:E}=e,T=tt(e,ike),I=jMe({type:"bar",seriesId:t,dataIndex:n}),{isFaded:k,isHighlighted:R}=TB({seriesId:t,dataIndex:n}),P={id:t,dataIndex:n,classes:r,color:o,isFaded:k,isHighlighted:R},O=iSe(P),j=(i==null?void 0:i.bar)??oke,F=mi({elementType:j,externalSlotProps:a==null?void 0:a.bar,externalForwardedProps:T,additionalProps:z({},I,{id:t,dataIndex:n,color:o,x:m,xOrigin:g,y:w,yOrigin:C,width:S,height:E,style:l,onClick:u,cursor:u?"pointer":"unset",stroke:"none",fill:o,skipAnimation:d,layout:f}),className:O.root,ownerState:P});return y.jsx(j,z({},F))}function Sc(){const e=Gr();return yn(e,Iu)}function __(){const e=Gr();return yn(e,RSe)}function D_(e){return Q7.getTypes().has(e)}const ske=(e,t,n,r,o,i,a)=>{var w;const l=r==="rotation"?o[t].rotationExtremumGetter:o[t].radiusExtremumGetter,u=((w=a[t])==null?void 0:w.series)??{},[d,f]=(l==null?void 0:l({series:u,axis:n,axisIndex:i,isDefaultAxis:i===0}))??[1/0,-1/0],[m,g]=e;return[Math.min(d,m),Math.max(f,g)]},lke=(e,t,n,r,o)=>{const a=Object.keys(n).filter(D_).reduce((l,u)=>ske(l,u,e,t,n,r,o),[1/0,-1/0]);return Number.isNaN(a[0])||Number.isNaN(a[1])?[1/0,-1/0]:a},jv=(e,t)=>e===void 0?t:Math.PI*e/180,cke=(e,t,n,r)=>{const o=new Set;return Object.keys(t).filter(D_).forEach(a=>{var d,f,m;const l=((d=n[a])==null?void 0:d.series)??{},u=(m=(f=t[a]).axisTooltipGetter)==null?void 0:m.call(f,l);u!==void 0&&u.forEach(({axisId:g,direction:w})=>{w===e&&o.add(g??r)})}),o};function uke(e,t,n){if(t==="rotation"){if(n.scaleType==="point"){const r=[jv(n.startAngle,0),jv(n.endAngle,2*Math.PI)],o=r[1]-r[0];return o>Math.PI*2-.1&&(r[1]-=o/n.data.length),r}return[jv(n.startAngle,0),jv(n.endAngle,2*Math.PI)]}return[0,Math.min(e.height,e.width)/2]}const dke=.2,fke=.1;function IB({drawingArea:e,formattedSeries:t,axis:n,seriesConfig:r,axisDirection:o}){if(n===void 0)return{axis:{},axisIds:[]};const i=cke(o,r,t,n[0].id),a={};return n.forEach((l,u)=>{const d=l,f=uke(e,o,d),[m,g]=lke(d,o,r,u,t),w=!d.ignoreTooltip&&i.has(d.id),C=d.data??[];if(aE(d)){const D=d.categoryGapRatio??dke,_=d.barGapRatio??fke;if(a[d.id]=z({offset:0,categoryGapRatio:D,barGapRatio:_,triggerTooltip:w},d,{data:C,scale:KT(d.data,f).paddingInner(D).paddingOuter(D/2),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?P0(z({values:d.data},d.colorMap)):sh(d.colorMap))}),lE(d.data)){const $=cE(d,f);a[d.id].valueFormatter=d.valueFormatter??$}}if(P_(d)&&(a[d.id]=z({offset:0,triggerTooltip:w},d,{data:C,scale:P7(d.data,f),tickNumber:d.data.length,colorScale:d.colorMap&&(d.colorMap.type==="ordinal"?P0(z({values:d.data},d.colorMap)):sh(d.colorMap))}),lE(d.data))){const D=cE(d,f);a[d.id].valueFormatter=d.valueFormatter??D}if(d.scaleType==="band"||d.scaleType==="point")return;const S=d.scaleType??"linear",E=d.domainLimit??"nice",T=[d.min??m,d.max??g];if(typeof E=="function"){const{min:D,max:_}=E(m,g);T[0]=D,T[1]=_}const I=X7(z({},d,{range:f,domain:T})),k=Z7(I,f),R=sE(S,T,f),P=E==="nice"?R.nice(I):R,[O,j]=P.domain(),F=[d.min??O,d.max??j];a[d.id]=z({offset:0,triggerTooltip:w},d,{data:C,scaleType:S,scale:P.domain(F),tickNumber:k,colorScale:d.colorMap&&sh(d.colorMap)})}),{axis:a,axisIds:n.map(({id:l})=>l)}}const AB=e=>e.polarAxis,RB=Xt([AB],e=>e==null?void 0:e.rotation),pke=Xt([AB],e=>e==null?void 0:e.radius),jh=Xt([RB,Iu,wl,Au],(e,t,n,r)=>IB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"rotation"})),hke=Xt([pke,Iu,wl,Au],(e,t,n,r)=>IB({drawingArea:t,formattedSeries:n,axis:e,seriesConfig:r,axisDirection:"radius"})),mke=Xt([Iu],e=>({cx:e.left+e.width/2,cy:e.top+e.height/2})),gke=e=>(t,n)=>Math.atan2(t-e.cx,e.cy-n);function Fh(){const e=Gr(),{axis:t,axisIds:n}=yn(e,ff);return{xAxis:t,xAxisIds:n}}function Nh(){const e=Gr(),{axis:t,axisIds:n}=yn(e,pf);return{yAxis:t,yAxisIds:n}}function OB(e){const t=Gr(),{axis:n,axisIds:r}=yn(t,ff),o=r[0];return n[o]}function _B(e){const t=Gr(),{axis:n,axisIds:r}=yn(t,pf),o=r[0];return n[o]}function DB(){const e=Gr(),{axis:t,axisIds:n}=yn(e,jh);return{rotationAxis:t,rotationAxisIds:n}}function bke(){const e=Gr(),{axis:t,axisIds:n}=yn(e,hke);return{radiusAxis:t,radiusAxisIds:n}}function yke(e){const t=Gr(),{axis:n,axisIds:r}=yn(t,jh),o=r[0];return n[o]}function hE(e){return Ru(e)?t=>(e(t)??0)+e.bandwidth()/2:t=>e(t)}function vke(e){return OB().scale}function xke(e){return _B().scale}function L_(){const e=Gr(),{axis:t,axisIds:n}=yn(e,FTe)??{axis:{},axisIds:[]};return{zAxis:t,zAxisIds:n}}function $_(){const e=$h();if(!e)throw new Error(["MUI X Charts: Could not find the svg ref context.","It looks like you rendered your component outside of a ChartContainer parent component."].join(`
`));return e.svgRef}function lM(){const e=Gr();return yn(e,wl)}function wke(e,t){if(e===t)return!0;if(!Array.isArray(e)||!Array.isArray(t))return!1;let n=e.length;if(n!==t.length)return!1;for(;n--;)if(e[n]!==t[n])return!1;return!0}function Cke(e){const t=Xt([wl,(n,r)=>r],(n,r)=>{var i,a,l,u,d,f;if(!r||Array.isArray(r)&&r.length===0)return((a=(i=n[e])==null?void 0:i.seriesOrder)==null?void 0:a.map(m=>{var g;return(g=n[e])==null?void 0:g.series[m]}))??[];if(!Array.isArray(r))return(u=(l=n[e])==null?void 0:l.series)==null?void 0:u[r];const o=[];for(const m of r){const g=(f=(d=n[e])==null?void 0:d.series)==null?void 0:f[m];g&&o.push(g)}return o});return n=>{const r=Gr();return yn(r,t,[n],wke)}}function Ske(e){const t=Xt([wl],n=>n[e]);return()=>{const n=Gr();return yn(n,t)}}Cke("bar");const Eke=Ske("bar");function Tke(){return Eke()}function Mke(e,t){return Object.keys(e).flatMap(n=>{const r=t[n].legendGetter;return r===void 0?[]:r(e[n])})}function kke(){const e=lM(),t=Gr(),n=yn(t,Au);return{items:Mke(e,n)}}function Pke(){const e=__();return b.useCallback(t=>`${e}-gradient-${t}`,[e])}function Ike(){const e=__();return b.useCallback(t=>`${e}-gradient-${t}-object-bound`,[e])}function Ake(e,t){const n=Bo(e.x,t.x),r=Bo(e.y,t.y),o=Bo(e.width,t.width),i=Bo(e.height,t.height);return a=>({x:n(a),y:r(a),width:o(a),height:i(a)})}function Rke(e){const t={x:e.layout==="vertical"?e.x+e.width/2:e.xOrigin,y:e.layout==="vertical"?e.yOrigin:e.y+e.height/2,width:e.width,height:e.height},n={x:e.x+e.width/2,y:e.y+e.height/2,width:e.width,height:e.height};return O_(n,{createInterpolator:Ake,transformProps:r=>r,applyProps(r,o){r.setAttribute("x",o.x.toString()),r.setAttribute("y",o.y.toString()),r.setAttribute("width",o.width.toString()),r.setAttribute("height",o.height.toString())},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function Oke(){return $h().chartRootRef}const _ke={"image/png":"PNG","image/jpeg":"JPEG","image/webp":"WebP"},Dke=e=>({components:{MuiChartsLocalizationProvider:{defaultProps:{localeText:z({},e)}}}}),LB={loading:"Loading data…",noData:"No data to display",zoomIn:"Zoom in",zoomOut:"Zoom out",toolbarExport:"Export",toolbarExportPrint:"Print",toolbarExportImage:e=>`Export as ${_ke[e]??e}`},Lke=LB;Dke(LB);const $ke=["localeText"],XA=b.createContext(null);function jke(e){const{localeText:t}=e,n=tt(e,$ke),{localeText:r}=b.useContext(XA)??{localeText:void 0},o=vc({props:n,name:"MuiChartsLocalizationProvider"}),{children:i,localeText:a}=o,l=b.useMemo(()=>z({},Lke,a,r,t),[a,r,t]),u=b.useMemo(()=>({localeText:l}),[l]);return y.jsx(XA.Provider,{value:u,children:i})}const $B=()=>{const e=b.useContext(XA);if(e===null)throw new Error(["MUI X Charts: Can not find the charts localization context.","It looks like you forgot to wrap your component in ChartsLocalizationProvider.","This can also happen if you are bundling multiple versions of the `@mui/x-charts` package"].join(`
`));return e},ES=(e,{hasNegative:t,hasPositive:n,borderRadius:r,layout:o})=>{if(!r)return 0;const i=o==="vertical";return e==="top-left"&&(i&&n||!i&&t)||e==="top-right"&&(i&&n||!i&&n)||e==="bottom-right"&&(i&&t||!i&&n)||e==="bottom-left"&&(i&&t||!i&&t)?r:0},Fke=["maskId","x","y","width","height","skipAnimation"];function Nke(e,t,n){const r=z({},n,{borderRadius:t}),o=Math.min(e,ES("top-left",r)),i=Math.min(e,ES("top-right",r)),a=Math.min(e,ES("bottom-right",r)),l=Math.min(e,ES("bottom-left",r));return`inset(0px round ${o}px ${i}px ${a}px ${l}px)`}function zke(e,t){const n=Bo(e.x,t.x),r=Bo(e.y,t.y),o=Bo(e.width,t.width),i=Bo(e.height,t.height),a=Bo(e.borderRadius,t.borderRadius);return l=>({x:n(l),y:r(l),width:o(l),height:i(l),borderRadius:a(l)})}function Bke(e){const t={x:e.x,y:e.y+(e.ownerState.layout==="vertical"?e.height:0),width:e.ownerState.layout==="vertical"?e.width:0,height:e.ownerState.layout==="vertical"?0:e.height,borderRadius:e.borderRadius};return O_({x:e.x,y:e.y,width:e.width,height:e.height,borderRadius:e.borderRadius},{createInterpolator:zke,transformProps:n=>({x:n.x,y:n.y,width:n.width,height:n.height,style:{clipPath:Nke(e.ownerState.layout==="vertical"?n.height:n.width,n.borderRadius,e.ownerState)}}),applyProps(n,r){n.setAttribute("x",r.x.toString()),n.setAttribute("y",r.y.toString()),n.setAttribute("width",r.width.toString()),n.setAttribute("height",r.height.toString()),n.style.clipPath=r.style.clipPath},initialProps:t,skip:e.skipAnimation,ref:e.ref})}function Hke(e){const t=Bke(z({},e,{borderRadius:e.ownerState.borderRadius??0}));return y.jsx("rect",z({},t))}function Uke(e){const{maskId:t,x:n,y:r,width:o,height:i,skipAnimation:a}=e,l=tt(e,Fke);return!e.borderRadius||e.borderRadius<=0?null:y.jsx("clipPath",{id:t,children:y.jsx(Hke,{ownerState:l,x:n,y:r,width:o,height:i,skipAnimation:a})})}function Gke(e){return kt("MuiBarLabel",e)}const qP=Pt("MuiBarLabel",["root","highlighted","faded","animate"]),Vke=e=>{const{classes:t,seriesId:n,isFaded:r,isHighlighted:o,skipAnimation:i}=e,a={root:["root",`series-${n}`,o&&"highlighted",r&&"faded",!i&&"animate"]};return st(a,Gke,t)},Wke=e=>{const{barLabel:t,value:n,dataIndex:r,seriesId:o,height:i,width:a}=e;return t==="value"?n?n==null?void 0:n.toString():null:t({seriesId:o,dataIndex:r,value:n},{bar:{height:i,width:a}})},qke=["seriesId","dataIndex","color","isFaded","isHighlighted","classes","skipAnimation","layout","xOrigin","yOrigin"],Yke=Te("text",{name:"MuiBarLabel",slot:"Root",overridesResolver:(e,t)=>[{[`&.${qP.faded}`]:t.faded},{[`&.${qP.highlighted}`]:t.highlighted},t.root]})(({theme:e})=>{var t,n,r,o;return z({},(t=e==null?void 0:e.typography)==null?void 0:t.body2,{stroke:"none",fill:(o=(r=(n=e.vars||e)==null?void 0:n.palette)==null?void 0:r.text)==null?void 0:o.primary,transition:"opacity 0.2s ease-in, fill 0.2s ease-in",textAnchor:"middle",dominantBaseline:"central",pointerEvents:"none",opacity:1,[`&.${qP.faded}`]:{opacity:.3}})});function Kke(e){const t=vc({props:e,name:"MuiBarLabel"}),n=tt(t,qke),r=Rke(t);return y.jsx(Yke,z({},n,r))}const Xke=["seriesId","classes","color","dataIndex","barLabel","slots","slotProps","xOrigin","yOrigin","x","y","width","height","value","skipAnimation","layout"],Zke=["ownerState"];function Qke(e){const{seriesId:t,classes:n,color:r,dataIndex:o,barLabel:i,slots:a,slotProps:l,xOrigin:u,yOrigin:d,x:f,y:m,width:g,height:w,value:C,skipAnimation:S,layout:E}=e,T=tt(e,Xke),{isFaded:I,isHighlighted:k}=TB({seriesId:t,dataIndex:o}),R={seriesId:t,classes:n,color:r,isFaded:I,isHighlighted:k,dataIndex:o,skipAnimation:S,layout:E},P=Vke(R),O=(a==null?void 0:a.barLabel)??Kke,j=mi({elementType:O,externalSlotProps:l==null?void 0:l.barLabel,additionalProps:z({},T,{xOrigin:u,yOrigin:d,x:f,y:m,width:g,height:w,className:P.root}),ownerState:R}),{ownerState:F}=j,D=tt(j,Zke);if(!i)return null;const _=Wke({barLabel:i,value:C,dataIndex:o,seriesId:t,height:w,width:g});return _?y.jsx(O,z({},D,F,{children:_})):null}function Jke(e){return kt("MuiBar",e)}Pt("MuiBar",["root","series","seriesLabels"]);const jB=e=>st({root:["root"],series:["series"],seriesLabels:["seriesLabels"]},Jke,e),ePe=["bars","skipAnimation"];function tPe(e){const{bars:t,skipAnimation:n}=e,r=tt(e,ePe),o=jB();return y.jsx(b.Fragment,{children:t.flatMap(({seriesId:i,data:a})=>y.jsx("g",{className:o.seriesLabels,"data-series":i,children:a.map(({xOrigin:l,yOrigin:u,x:d,y:f,dataIndex:m,color:g,value:w,width:C,height:S,layout:E})=>y.jsx(Qke,z({seriesId:i,dataIndex:m,value:w,color:g,xOrigin:l,yOrigin:u,x:d,y:f,width:C,height:S,skipAnimation:n??!1,layout:E??"vertical"},r),m))},i))})}const YP=(e,t)=>{const n=`${e}-axis`,r=`${e}Axis`;return t===(e==="x"?s_:l_)?`The first \`${r}\``:`The ${n} with id "${t}"`};function nPe(e,t,n,r,o,i,a){const l=o[r],u=a[i],d=e?l:u,f=e?u:l,m=e?r:i,g=e?i:r,w=e?"x":"y",C=e?"y":"x";if(!aE(d))throw new Error(`MUI X Charts: ${YP(w,m)} should be of type "band" to display the bar series of id "${t}".`);if(d.data===void 0)throw new Error(`MUI X Charts: ${YP(w,m)} should have data property.`);if(aE(f)||P_(f))throw new Error(`MUI X Charts: ${YP(C,g)} should be a continuous type to display the bar series of id "${t}".`)}function rPe(e){const t=Gr(),n=yn(t,cSe);return e||n}function oPe(){const e=Gr();return yn(e,rB)}const iPe=["skipAnimation","onItemClick","borderRadius","barLabel"];function aPe({bandWidth:e,numberOfGroups:t,gapRatio:n}){if(n===0)return{barWidth:e/t,offset:0};const r=e/(t+(t-1)*n),o=n*r;return{barWidth:r,offset:o}}const sPe=()=>{const e=Tke()??{series:{},stackingGroups:[]},t=Sc(),n=__(),{series:r,stackingGroups:o}=e,{xAxis:i,xAxisIds:a}=Fh(),{yAxis:l,yAxisIds:u}=Nh(),d=a[0],f=u[0],m={};return{completedData:o.flatMap(({ids:w},C)=>{const S=t.left,E=t.left+t.width,T=t.top,I=t.top+t.height;return w.map(k=>{const R=r[k].xAxisId??d,P=r[k].yAxisId??f,O=i[R],j=l[P],F=r[k].layout==="vertical";nPe(F,k,r[k],R,i,P,l);const D=F?O:j,_=O.scale,$=j.scale,B=CB(r[k],i[R],l[P]),V=D.scale.bandwidth(),{barWidth:q,offset:G}=aPe({bandWidth:V,numberOfGroups:o.length,gapRatio:D.barGapRatio}),N=C*(q+G),{stackedData:H,data:Y,layout:Q}=r[k],W=D.data.map((K,J)=>{if(Y[J]==null)return null;const ce=H[J].map(le=>F?$(le):_(le)),de=Math.round(Math.min(...ce)),re=Math.round(Math.max(...ce)),ke=r[k].stack,Ce={seriesId:k,dataIndex:J,layout:Q,x:F?_(K)+N:de,y:F?de:$(K)+N,xOrigin:_(0)??0,yOrigin:$(0)??0,height:F?re-de:q,width:F?q:re-de,color:B(J),value:Y[J],maskId:`${n}_${ke||k}_${C}_${J}`};if(Ce.x>E||Ce.x+Ce.width<S||Ce.y>I||Ce.y+Ce.height<T)return null;m[Ce.maskId]||(m[Ce.maskId]={id:Ce.maskId,width:0,height:0,hasNegative:!1,hasPositive:!1,layout:Ce.layout,xOrigin:_(0),yOrigin:$(0),x:0,y:0});const ie=m[Ce.maskId];return ie.width=Ce.layout==="vertical"?Ce.width:ie.width+Ce.width,ie.height=Ce.layout==="vertical"?ie.height+Ce.height:Ce.height,ie.x=Math.min(ie.x===0?1/0:ie.x,Ce.x),ie.y=Math.min(ie.y===0?1/0:ie.y,Ce.y),ie.hasNegative=ie.hasNegative||(Ce.value??0)<0,ie.hasPositive=ie.hasPositive||(Ce.value??0)>0,Ce}).filter(K=>K!==null);return{seriesId:k,data:W}})}),masksData:Object.values(m)}},lPe=Te("g",{name:"MuiBarPlot",slot:"Root"})({[`& .${oSe.root}`]:{transition:"opacity 0.2s ease-in, fill 0.2s ease-in"}});function cPe(e){const{completedData:t,masksData:n}=sPe(),{skipAnimation:r,onItemClick:o,borderRadius:i,barLabel:a}=e,l=tt(e,iPe),u=oPe(),d=rPe(u||r),f=!i||i<=0,m=jB();return y.jsxs(lPe,{className:m.root,children:[!f&&n.map(({id:g,x:w,y:C,width:S,height:E,hasPositive:T,hasNegative:I,layout:k})=>y.jsx(Uke,{maskId:g,borderRadius:i,hasNegative:I,hasPositive:T,layout:k,x:w,y:C,width:S,height:E,skipAnimation:d??!1},g)),t.map(({seriesId:g,data:w})=>y.jsx("g",{"data-series":g,className:m.series,children:w.map(({dataIndex:C,color:S,maskId:E,layout:T,x:I,xOrigin:k,y:R,yOrigin:P,width:O,height:j})=>{const F=y.jsx(ake,z({id:g,dataIndex:C,color:S,skipAnimation:d??!1,layout:T??"vertical",x:I,xOrigin:k,y:R,yOrigin:P,width:O,height:j},l,{onClick:o&&(D=>{o(D,{type:"bar",seriesId:g,dataIndex:C})})}),C);return f?F:y.jsx("g",{clipPath:`url(#${E})`,children:F},C)})},g)),a&&y.jsx(tPe,z({bars:t,skipAnimation:d,barLabel:a},l))]})}function j_(){const[e,t]=b.useState(typeof window<"u"||!1);return b.useEffect(()=>{t(!0)},[]),e}function uPe(){return typeof window>"u"}const TS=new Map,dPe=2e3,fPe={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},pPe=["minWidth","maxWidth","width","minHeight","maxHeight","height","top","left","fontSize","padding","margin","paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom"],V$="mui_measurement_span";function FB(e,t){return pPe.indexOf(e)>=0&&t===+t?`${t}px`:t}function NB(e){return e.split("").reduce((r,o)=>o===o.toUpperCase()?[...r,"-",o.toLowerCase()]:[...r,o],[]).join("")}const hPe=e=>Object.keys(e).sort().reduce((t,n)=>`${t}${NB(n)}:${FB(n,e[n])};`,"");let KP;const y1=(e,t={})=>{if(e==null||uPe())return{width:0,height:0};const n=`${e}`,r=hPe(t),o=`${n}-${r}`,i=TS.get(o);if(i)return i;try{let a=document.getElementById(V$);a===null&&(a=document.createElement("span"),a.setAttribute("id",V$),a.setAttribute("aria-hidden","true"),document.body.appendChild(a));const l=z({},fPe,t);Object.keys(l).map(f=>(a.style[NB(f)]=FB(f,l[f]),f)),a.textContent=n;const u=a.getBoundingClientRect(),d={width:u.width,height:u.height};return TS.set(o,d),TS.size+1>dPe&&TS.clear(),KP&&clearTimeout(KP),KP=setTimeout(()=>{a.textContent=""},0),d}catch{return{width:0,height:0}}};function F_(e){return typeof e=="number"&&!Number.isFinite(e)}const XP={start:0,extremities:0,end:1,middle:.5};function cM(e){const{scale:t,tickNumber:n,valueFormatter:r,tickInterval:o,tickPlacement:i="extremities",tickLabelPlacement:a,direction:l}=e,{instance:u}=$h();return b.useMemo(()=>{if(Ru(t)){const w=t.domain(),C=a??"middle";return t.bandwidth()>0?[...(typeof o=="function"&&w.filter(o)||typeof o=="object"&&o||w).map(T=>({value:T,formattedValue:(r==null?void 0:r(T,{location:"tick",scale:t}))??`${T}`,offset:t(T)-(t.step()-t.bandwidth())/2+XP[i]*t.step(),labelOffset:C==="tick"?0:t.step()*(XP[C]-XP[i])})),...i==="extremities"?[{formattedValue:void 0,offset:t.range()[1],labelOffset:0}]:[]]:(typeof o=="function"&&w.filter(o)||typeof o=="object"&&o||w).map(E=>({value:E,formattedValue:(r==null?void 0:r(E,{location:"tick",scale:t}))??`${E}`,offset:t(E),labelOffset:0}))}if(t.domain().some(F_))return[];const f=a,m=typeof o=="object"?o:t.ticks(n),g=[];for(let w=0;w<m.length;w+=1){const C=m[w],S=t(C);(l==="x"?u.isXInside(S):u.isYInside(S))&&g.push({value:C,formattedValue:(r==null?void 0:r(C,{location:"tick",scale:t}))??t.tickFormat(n)(C),offset:S,labelOffset:f==="middle"?t(m[w-1]??0)-(S+t(m[w-1]??0))/2:0})}return g},[t,a,o,n,i,r,l,u])}function zB(e){return kt("MuiChartsAxis",e)}const MS=Pt("MuiChartsAxis",["root","line","tickContainer","tick","tickLabel","label","directionX","directionY","top","bottom","left","right","id"]),BB=Te("g",{name:"MuiChartsAxis",slot:"Root"})(({theme:e})=>({[`& .${MS.tickLabel}`]:z({},e.typography.caption,{fill:(e.vars||e).palette.text.primary}),[`& .${MS.label}`]:{fill:(e.vars||e).palette.text.primary},[`& .${MS.line}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",strokeWidth:1},[`& .${MS.tick}`]:{stroke:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges"}}));function HB({style:e,needsComputation:t,text:n}){return n.split(`
`).map(r=>z({text:r},t?y1(r,e):{width:0,height:0}))}const mPe=["x","y","style","text","ownerState"],gPe=["angle","textAnchor","dominantBaseline"];function mE(e){const{x:t,y:n,style:r,text:o}=e,i=tt(e,mPe),a=r??{},{angle:l,textAnchor:u,dominantBaseline:d}=a,f=tt(a,gPe),m=j_(),g=b.useMemo(()=>HB({style:f,needsComputation:m&&o.includes(`
`),text:o}),[f,o,m]);let w;switch(d){case"hanging":case"text-before-edge":w=0;break;case"central":w=(g.length-1)/2*-g[0].height;break;default:w=(g.length-1)*-g[0].height;break}return y.jsx("text",z({},i,{transform:l?`rotate(${l}, ${t}, ${n})`:void 0,x:t,y:n,textAnchor:u,dominantBaseline:d,style:f,children:g.map((C,S)=>y.jsx("tspan",{x:t,dy:`${S===0?w:g[0].height}px`,dominantBaseline:d,children:C.text},S))}))}function bPe(e=!1){const[t,n]=b.useState(!1);return kn(()=>{e||n(!0)},[e]),b.useEffect(()=>{e&&n(!0)},[e]),t}function uM(e){return(e%360+360)%360}const ZP=2*Math.PI;function yPe(e){return(e%ZP+ZP)%ZP}function UB(e){const t=uM(e);return t<=30||t>=330||t<=210&&t>=150?"middle":t<=180?"end":"start"}function GB(e){const t=uM(e);return t<=30||t>=330?"hanging":t<=210&&t>=150?"auto":"central"}function VB(e){switch(e){case"start":return"end";case"end":return"start";default:return e}}const WB=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function vPe(e){return e.length}function xPe(e){const t=WB.segment(e);let n=0;for(const r of t)n+=1;return n}const wPe=WB?xPe:vPe;function CPe(e){return e*(Math.PI/180)}const qB=typeof window<"u"&&"Intl"in window&&"Segmenter"in Intl?new Intl.Segmenter(void 0,{granularity:"grapheme"}):null;function SPe(e,t){return e.slice(0,t)}function EPe(e,t){const n=qB.segment(e);let r="",o=0;for(const i of n)if(r+=i.segment,o+=1,o>=t)break;return r}const TPe=qB?EPe:SPe,W$="…";function YB(e,t){const{width:n,height:r,measureText:o}=t,i=CPe(t.angle),a=o(e),l=Math.abs(a.width*Math.cos(i))+Math.abs(a.height*Math.sin(i)),u=Math.abs(a.width*Math.sin(i))+Math.abs(a.height*Math.cos(i));return l<=n&&u<=r}function KB(e,t){if(t(e))return e;let n=e,r=1,o=1/2;const i=wPe(e);let a=i,l=i,u=null;do{if(l=a,a=Math.floor(i*o),a===0)break;n=TPe(e,a).trim();const d=t(n+W$);r+=1,d?(u=n,o+=1/2**r):o-=1/2**r}while(Math.abs(a-l)!==1);return u?u+W$:""}function MPe(e,t,n,r,o){const i=new Map,a=uM((o==null?void 0:o.angle)??0);let l=1,u=1;(o==null?void 0:o.textAnchor)==="start"?(l=1/0,u=1):(o==null?void 0:o.textAnchor)==="end"?(l=1,u=1/0):(l=2,u=2),a>90&&a<270&&([l,u]=[u,l]),r&&([l,u]=[u,l]);for(const d of e)if(d.formattedValue){const f=Math.min((d.offset+d.labelOffset)*l,(t.left+t.width+t.right-d.offset-d.labelOffset)*u),m=g=>YB(g,{width:f,height:n,angle:a,measureText:w=>y1(w,o)});i.set(d,KB(d.formattedValue.toString(),m))}return i}const q$=5;function kPe(e,t,n=0){const r=Math.min(Math.abs(n)%180,Math.abs(Math.abs(n)%180-180)%180);if(r<q$)return e;if(r>90-q$)return t;const o=jv(r),i=Math.atan2(t,e);return o<i?e/Math.cos(o):t/Math.sin(o)}function PPe(e,{tickLabelStyle:t,tickLabelInterval:n,tickLabelMinGap:r,reverse:o,isMounted:i,isXInside:a}){const l=f=>{if(!i||f.formattedValue===void 0)return{width:0,height:0};const m=HB({style:t,needsComputation:!0,text:f.formattedValue});return{width:Math.max(...m.map(g=>g.width)),height:Math.max(m.length*m[0].height)}};if(typeof n=="function")return new Set(e.filter((f,m)=>n(f.value,m)));let u=0;const d=o?-1:1;return new Set(e.filter((f,m)=>{const{offset:g,labelOffset:w}=f,C=g+w;if(m>0&&d*C<d*(u+r)||!a(C))return!1;const{width:S,height:E}=l(f),T=kPe(S,E,t==null?void 0:t.angle),I=C-d*T/2;return m>0&&d*I<d*(u+r)?!1:(u=C+d*T/2,!0)}))}const IPe=["scale","tickNumber","reverse"],APe=e=>{const{classes:t,position:n,id:r}=e,o={root:["root","directionX",n,`id-${r}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return st(o,zB,t)},Y$=3,RPe=4,OPe=Te(BB,{name:"MuiChartsXAxis",slot:"Root"})({}),_Pe={disableLine:!1,disableTicks:!1,tickSize:6,tickLabelMinGap:4};function DPe(e){const{xAxis:t,xAxisIds:n}=Fh(),r=t[e.axisId??n[0]],{scale:o,tickNumber:i,reverse:a}=r,l=tt(r,IPe),u=bPe(),d=vc({props:z({},l,e),name:"MuiChartsXAxis"}),f=z({},_Pe,d),{position:m,disableLine:g,disableTicks:w,tickLabelStyle:C,label:S,labelStyle:E,tickSize:T,valueFormatter:I,slots:k,slotProps:R,tickInterval:P,tickLabelInterval:O,tickPlacement:j,tickLabelPlacement:F,tickLabelMinGap:D,sx:_,offset:$,height:B}=f,V=bo(),q=Lo(),G=APe(f),N=Sc(),{left:H,top:Y,width:Q,height:W}=N,{instance:K}=$h(),J=j_(),ae=w?4:T,ce=m==="bottom"?1:-1,de=(k==null?void 0:k.axisLine)??"line",re=(k==null?void 0:k.axisTick)??"line",ke=(k==null?void 0:k.axisTickLabel)??mE,Ce=(k==null?void 0:k.axisLabel)??mE,ie=UB((m==="bottom"?0:180)-((C==null?void 0:C.angle)??0)),le=GB((m==="bottom"?0:180)-((C==null?void 0:C.angle)??0)),ve=mi({elementType:ke,externalSlotProps:R==null?void 0:R.axisTickLabel,additionalProps:{style:z({},V.typography.caption,{fontSize:12,lineHeight:1.25,textAnchor:q?VB(ie):ie,dominantBaseline:le},C)},className:G.tickLabel,ownerState:{}}),ue=cM({scale:o,tickNumber:i,valueFormatter:I,tickInterval:P,tickPlacement:j,tickLabelPlacement:F,direction:"x"}),me=PPe(ue,{tickLabelStyle:ve.style,tickLabelInterval:O,tickLabelMinGap:D,reverse:a,isMounted:u,isXInside:K.isXInside}),be=mi({elementType:Ce,externalSlotProps:R==null?void 0:R.axisLabel,additionalProps:{style:z({},V.typography.body1,{lineHeight:1,fontSize:14,textAnchor:"middle",dominantBaseline:m==="bottom"?"text-after-edge":"text-before-edge"},E)},ownerState:{}}),Fe=o.domain(),Ze=Ru(o);if(Ze&&Fe.length===0||!Ze&&Fe.some(F_)||m==="none")return null;const We=S?y1(S,be.style).height:0,_e={x:H+Q/2,y:ce*B},ft=Math.max(0,B-(S?We+RPe:0)-ae-Y$),nt=J?MPe(me,N,ft,q,ve.style):new Map(Array.from(me).map(dt=>[dt,dt.formattedValue]));return y.jsxs(OPe,{transform:`translate(0, ${m==="bottom"?Y+W+$:Y-$})`,className:G.root,sx:_,children:[!g&&y.jsx(de,z({x1:H,x2:H+Q,className:G.line},R==null?void 0:R.axisLine)),ue.map((dt,se)=>{const{offset:De,labelOffset:ye}=dt,Pe=ye??0,qe=ce*(ae+Y$),Ke=K.isXInside(De),it=nt.get(dt),ot=me.has(dt);return y.jsxs("g",{transform:`translate(${De}, 0)`,className:G.tickContainer,children:[!w&&Ke&&y.jsx(re,z({y2:ce*ae,className:G.tick},R==null?void 0:R.axisTick)),it!==void 0&&ot&&y.jsx(ke,z({x:Pe,y:qe},ve,{text:it}))]},se)}),S&&y.jsx("g",{className:G.label,children:y.jsx(Ce,z({},_e,be,{text:S}))})]})}function LPe(e,t,n,r,o){const i=new Map,a=uM((o==null?void 0:o.angle)??0);let l=1,u=1;(o==null?void 0:o.textAnchor)==="start"?(l=1/0,u=1):(o==null?void 0:o.textAnchor)==="end"?(l=1,u=1/0):(l=2,u=2),a>180&&([l,u]=[u,l]),r&&([l,u]=[u,l]);for(const d of e)if(d.formattedValue){const f=Math.min((d.offset+d.labelOffset)*l,(t.top+t.height+t.bottom-d.offset-d.labelOffset)*u),m=g=>YB(g,{width:n,height:f,angle:a,measureText:w=>y1(w,o)});i.set(d,KB(d.formattedValue.toString(),m))}return i}const $Pe=["scale","tickNumber"],jPe=e=>{const{classes:t,position:n,id:r}=e,o={root:["root","directionY",n,`id-${r}`],line:["line"],tickContainer:["tickContainer"],tick:["tick"],tickLabel:["tickLabel"],label:["label"]};return st(o,zB,t)},K$=2,FPe=2,NPe=Te(BB,{name:"MuiChartsYAxis",slot:"Root"})({}),zPe={disableLine:!1,disableTicks:!1,tickSize:6};function BPe(e){const{yAxisIds:t,yAxis:n}=Nh(),r=n[e.axisId??t[0]],{scale:o,tickNumber:i}=r,a=tt(r,$Pe),l=vc({props:z({},a,e),name:"MuiChartsYAxis"}),u=z({},zPe,l),{position:d,disableLine:f,disableTicks:m,label:g,labelStyle:w,tickLabelStyle:C,tickSize:S,valueFormatter:E,slots:T,slotProps:I,tickPlacement:k,tickLabelPlacement:R,tickInterval:P,tickLabelInterval:O,sx:j,offset:F,width:D}=u,_=bo(),$=Lo(),B=j_(),V=jPe(u),{instance:q}=$h(),G=Sc(),{left:N,top:H,width:Y,height:Q}=G,W=m?4:S,K=cM({scale:o,tickNumber:i,valueFormatter:E,tickPlacement:k,tickLabelPlacement:R,tickInterval:P,direction:"y"}),J=d==="right"?1:-1,ae=typeof(C==null?void 0:C.fontSize)=="number"?C.fontSize:12,ce=(T==null?void 0:T.axisLine)??"line",de=(T==null?void 0:T.axisTick)??"line",re=(T==null?void 0:T.axisTickLabel)??mE,ke=(T==null?void 0:T.axisLabel)??mE,Ce=UB((d==="right"?-90:90)-((C==null?void 0:C.angle)??0)),ie=GB((d==="right"?-90:90)-((C==null?void 0:C.angle)??0)),le=mi({elementType:re,externalSlotProps:I==null?void 0:I.axisTickLabel,additionalProps:{style:z({},_.typography.caption,{fontSize:ae,textAnchor:$?VB(Ce):Ce,dominantBaseline:ie},C)},className:V.tickLabel,ownerState:{}}),ve=mi({elementType:ke,externalSlotProps:I==null?void 0:I.axisLabel,additionalProps:{style:z({},_.typography.body1,{lineHeight:1,fontSize:14,angle:J*90,textAnchor:"middle",dominantBaseline:"text-before-edge"},w)},ownerState:{}}),ue=mi({elementType:ce,externalSlotProps:I==null?void 0:I.axisLine,additionalProps:{strokeLinecap:"square"},ownerState:{}}),me=o.domain(),be=Ru(o);if(be&&me.length===0||!be&&me.some(F_)||d==="none")return null;const Fe={x:J*D,y:H+Q/2},Ze=Math.max(0,D-(g?y1(g,ve.style).height+FPe:0)-W-K$),We=B?LPe(K,G,Ze,$,le.style):new Map(Array.from(K).map(_e=>[_e,_e.formattedValue]));return y.jsxs(NPe,{transform:`translate(${d==="right"?N+Y+F:N-F}, 0)`,className:V.root,sx:j,children:[!f&&y.jsx(ce,z({y1:H,y2:H+Q,className:V.line},ue)),K.map((_e,ft)=>{const{offset:nt,labelOffset:dt,value:se}=_e,De=J*(W+K$),ye=dt,Pe=typeof O=="function"&&!(O!=null&&O(se,ft)),qe=q.isYInside(nt),Ke=We.get(_e);return qe?y.jsxs("g",{transform:`translate(0, ${nt})`,className:V.tickContainer,children:[!m&&y.jsx(de,z({x2:J*W,className:V.tick},I==null?void 0:I.axisTick)),Ke!==void 0&&!Pe&&y.jsx(re,z({x:De,y:ye,text:Ke},le))]},ft):null}),g&&B&&y.jsx("g",{className:V.label,children:y.jsx(ke,z({},Fe,ve,{text:g}))})]})}function HPe(e){const{slots:t,slotProps:n}=e,{xAxisIds:r,xAxis:o}=Fh(),{yAxisIds:i,yAxis:a}=Nh();return y.jsxs(b.Fragment,{children:[r.map(l=>!o[l].position||o[l].position==="none"?null:y.jsx(DPe,{slots:t,slotProps:n,axisId:l},l)),i.map(l=>!a[l].position||a[l].position==="none"?null:y.jsx(BPe,{slots:t,slotProps:n,axisId:l},l))]})}function UPe(e){return kt("MuiChartsTooltip",e)}const Ug=Pt("MuiChartsTooltip",["root","paper","table","row","cell","mark","markContainer","labelCell","valueCell","axisValueCell"]),dM=e=>st({root:["root"],paper:["paper"],table:["table"],row:["row"],cell:["cell"],mark:["mark"],markContainer:["markContainer"],labelCell:["labelCell"],valueCell:["valueCell"],axisValueCell:["axisValueCell"]},UPe,e);function GPe(){var O,j,F;const e=Gr(),t=yn(e,aB),n=yn(e,Au),r=lM(),{xAxis:o,xAxisIds:i}=Fh(),{yAxis:a,yAxisIds:l}=Nh(),{zAxis:u,zAxisIds:d}=L_(),{rotationAxis:f,rotationAxisIds:m}=DB(),{radiusAxis:g,radiusAxisIds:w}=bke(),C=r.xAxisId??i[0],S=r.yAxisId??l[0],E=r.zAxisId??d[0],T=r.rotationAxisId??m[0],I=r.radiusAxisId??w[0];if(!t)return null;const k=(O=r[t.type])==null?void 0:O.series[t.seriesId];if(!k)return null;const R=((F=(j=n[k.type]).colorProcessor)==null?void 0:F.call(j,k,C&&o[C],S&&a[S],E&&u[E]))??(()=>""),P={};return C!==void 0&&(P.x=o[C]),S!==void 0&&(P.y=a[S]),T!==void 0&&(P.rotation=f[T]),I!==void 0&&(P.radius=g[I]),n[k.type].tooltipGetter({series:k,axesConfig:P,getColor:R,identifier:t})}const ZA=Te("div",{name:"MuiChartsTooltip",slot:"Container",overridesResolver:(e,t)=>t.paper})(({theme:e})=>{var t;return{backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,borderRadius:(t=(e.vars||e).shape)==null?void 0:t.borderRadius,border:`solid ${(e.vars||e).palette.divider} 1px`}}),QA=Te("table",{name:"MuiChartsTooltip",slot:"Table"})(({theme:e})=>({borderSpacing:0,[`& .${Ug.markContainer}`]:{display:"inline-block",width:`calc(20px + ${e.spacing(1.5)})`,verticalAlign:"middle"},"& caption":{borderBottom:`solid ${(e.vars||e).palette.divider} 1px`,padding:e.spacing(.5,1.5),textAlign:"start",whiteSpace:"nowrap","& span":{marginRight:e.spacing(1.5)}}})),JA=Te("tr",{name:"MuiChartsTooltip",slot:"Row"})(({theme:e})=>({"tr:first-of-type& td":{paddingTop:e.spacing(.5)},"tr:last-of-type& td":{paddingBottom:e.spacing(.5)}})),e0=Te(Jt,{name:"MuiChartsTooltip",slot:"Cell"})(({theme:e})=>({verticalAlign:"middle",color:(e.vars||e).palette.text.secondary,textAlign:"start",[`&.${Ug.cell}`]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1)},[`&.${Ug.labelCell}`]:{fontWeight:e.typography.fontWeightRegular},[`&.${Ug.valueCell}, &.${Ug.axisValueCell}`]:{color:(e.vars||e).palette.text.primary,fontWeight:e.typography.fontWeightMedium},[`&.${Ug.valueCell}`]:{paddingLeft:e.spacing(1.5),paddingRight:e.spacing(1.5)},"td:first-of-type&, th:first-of-type&":{paddingLeft:e.spacing(1.5)},"td:last-of-type&, th:last-of-type&":{paddingRight:e.spacing(1.5)}}));function VPe(e){return kt("MuiChartsLabelMark",e)}const _g=Pt("MuiChartsLabelMark",["root","line","square","circle","mask","fill"]),WPe=e=>{const{type:t}=e;return st({root:typeof t=="function"?["root"]:["root",t],mask:["mask"],fill:["fill"]},VPe,e.classes)},XB=(e,t,n)=>b.forwardRef(function(o,i){var g;const a=vc({props:o,name:e}),l=typeof t.defaultProps=="function"?t.defaultProps(a):t.defaultProps??{},u=Vd(l,a),d=bo(),f=(g=t.classesResolver)==null?void 0:g.call(t,u,d),m=b.forwardRef(n);return y.jsx(m,z({},u,{classes:f,ref:i}))}),qPe=["type","color","className","classes"],YPe=Te("div",{name:"MuiChartsLabelMark",slot:"Root"})(()=>({display:"flex",width:14,height:14,[`&.${_g.line}`]:{width:16,height:"unset",alignItems:"center",[`.${_g.mask}`]:{height:4,width:"100%",borderRadius:1,overflow:"hidden"}},[`&.${_g.square}`]:{height:13,width:13,borderRadius:2,overflow:"hidden"},[`&.${_g.circle}`]:{height:15,width:15},svg:{display:"block"},[`& .${_g.mask} > *`]:{height:"100%",width:"100%"},[`& .${_g.mask}`]:{height:"100%",width:"100%"}})),gE=XB("MuiChartsLabelMark",{defaultProps:{type:"square"},classesResolver:WPe},function(t,n){const{type:r,color:o,className:i,classes:a}=t,l=tt(t,qPe),u=r;return y.jsx(YPe,z({className:Ve(a==null?void 0:a.root,i),ownerState:t,"aria-hidden":"true",ref:n},l,{children:y.jsx("div",{className:a==null?void 0:a.mask,children:typeof u=="function"?y.jsx(u,{className:a==null?void 0:a.fill,color:o}):y.jsx("svg",{viewBox:"0 0 24 24",preserveAspectRatio:r==="line"?"none":void 0,children:r==="circle"?y.jsx("circle",{className:a==null?void 0:a.fill,r:"12",cx:"12",cy:"12",fill:o}):y.jsx("rect",{className:a==null?void 0:a.fill,width:"24",height:"24",fill:o})})})}))});function KPe(e){const{classes:t,sx:n}=e,r=GPe(),o=dM(t);if(!r)return null;if("values"in r){const{label:d,color:f,markType:m}=r;return y.jsx(ZA,{sx:n,className:o.paper,children:y.jsxs(QA,{className:o.table,children:[y.jsxs(Jt,{component:"caption",children:[y.jsx("div",{className:o.markContainer,children:y.jsx(gE,{type:m,color:f,className:o.mark})}),d]}),y.jsx("tbody",{children:r.values.map(({formattedValue:g,label:w})=>y.jsxs(JA,{className:o.row,children:[y.jsx(e0,{className:Ve(o.labelCell,o.cell),component:"th",children:w}),y.jsx(e0,{className:Ve(o.valueCell,o.cell),component:"td",children:g})]},w))})]})})}const{color:i,label:a,formattedValue:l,markType:u}=r;return y.jsx(ZA,{sx:n,className:o.paper,children:y.jsx(QA,{className:o.table,children:y.jsx("tbody",{children:y.jsxs(JA,{className:o.row,children:[y.jsxs(e0,{className:Ve(o.labelCell,o.cell),component:"th",children:[y.jsx("div",{className:o.markContainer,children:y.jsx(gE,{type:u,color:i,className:o.mark})}),a]}),y.jsx(e0,{className:Ve(o.valueCell,o.cell),component:"td",children:l})]})})})})}function XPe(e){const t=Gr(),n=yn(t,Au);return b.useMemo(()=>{const o={};return Object.keys(n).forEach(i=>{o[i]=n[i].colorProcessor}),o},[n])}function ZPe(){const e=$_(),[t,n]=b.useState(null);return b.useEffect(()=>{const r=e.current;if(r===null)return()=>{};const o=a=>{a.pointerType!=="mouse"&&n(null)},i=a=>{n({pointerType:a.pointerType})};return r.addEventListener("pointerenter",i),r.addEventListener("pointerup",o),()=>{r.removeEventListener("pointerenter",i),r.removeEventListener("pointerup",o)}},[e]),t}function QPe(e){return e instanceof Date?e.toUTCString():e.toLocaleString()}const JPe="@media (pointer: fine)",eIe=()=>g2(JPe,{defaultMatches:!0});function X$(e,t){const{scale:n,data:r,reverse:o}=e;if(!Ru(n))throw new Error("MUI X Charts: getAxisValue is not implemented for polare continuous axes.");if(!r)return-1;const i=yPe(t-Math.min(...n.range())),a=n.bandwidth()===0?Math.floor((i+n.step()/2)/n.step())%r.length:Math.floor(i/n.step());return a<0||a>=r.length?-1:o?r.length-1-a:a}const ZB=(e,t)=>t,QB=(e,t)=>t;function JB(e,t,n){return Array.isArray(n)?n.map(r=>X$(t.axis[r],e)):X$(t.axis[n],e)}const eH=Xt([rM,oM,mke],(e,t,n)=>e===null||t===null?null:gke(n)(e,t)),tIe=Xt([eH,jh,ZB],(e,t,n=t.axisIds[0])=>e===null?null:JB(e,t,n)),tH=Xt([eH,jh,QB],(e,t,n=t.axisIds)=>e===null?null:JB(e,t,n));Xt([jh,tIe,ZB],(e,t,n=e.axisIds[0])=>{var o;if(t===null||t===-1||e.axisIds.length===0)return null;const r=(o=e.axis[n])==null?void 0:o.data;return r?r[t]:null});Xt([jh,tH,QB],(e,t,n=e.axisIds)=>t===null?null:n.map((r,o)=>{var a;const i=t[o];return i===-1?null:(a=e.axis[r].data)==null?void 0:a[i]}));const nH=Xt([tH,jh],(e,t)=>e===null?[]:t.axisIds.map((n,r)=>({axisId:n,dataIndex:e[r]})).filter(({axisId:n,dataIndex:r})=>t.axis[n].triggerTooltip&&r>=0),{memoizeOptions:{resultEqualityCheck:s0}});Xt([],()=>[]);const nIe=Xt([nH],e=>e.length>0);function QP(e,t,n){var a;const r=((a=e.data)==null?void 0:a[t])??null,i=(e.valueFormatter??(l=>e.scaleType==="utc"?QPe(l):l.toLocaleString()))(r,{location:"tooltip",scale:e.scale});return{axisDirection:n,axisId:e.id,mainAxis:e,dataIndex:t,axisValue:r,axisFormattedValue:i,seriesItems:[]}}function rIe(e={}){const{multipleAxes:t,directions:n}=e,r=OB(),o=_B(),i=yke(),a=Gr(),l=yn(a,uB),u=yn(a,dB),d=yn(a,nH),f=lM(),{xAxis:m}=Fh(),{yAxis:g}=Nh(),{zAxis:w,zAxisIds:C}=L_(),{rotationAxis:S}=DB(),E=XPe();if(l.length===0&&u.length===0&&d.length===0)return null;const T=[];return(n===void 0||n.includes("x"))&&l.forEach(({axisId:I,dataIndex:k})=>{!t&&T.length>1||T.push(QP(m[I],k,"x"))}),(n===void 0||n.includes("y"))&&u.forEach(({axisId:I,dataIndex:k})=>{!t&&T.length>1||T.push(QP(g[I],k,"y"))}),(n===void 0||n.includes("rotation"))&&d.forEach(({axisId:I,dataIndex:k})=>{!t&&T.length>1||T.push(QP(S[I],k,"rotation"))}),Object.keys(f).filter(I_).forEach(I=>{const k=f[I];return k?k.seriesOrder.forEach(R=>{var D;const P=k.series[R],O=P.xAxisId??r.id,j=P.yAxisId??o.id,F=T.findIndex(({axisDirection:_,axisId:$})=>_==="x"&&$===O||_==="y"&&$===j);if(F>=0){const _="zAxisId"in P?P.zAxisId:C[0],{dataIndex:$}=T[F],B=((D=E[I])==null?void 0:D.call(E,P,m[O],g[j],_?w[_]:void 0)($))??"",V=P.data[$]??null,q=P.valueFormatter(V,{dataIndex:$}),G=gl(P.label,"tooltip")??null;T[F].seriesItems.push({seriesId:R,color:B,value:V,formattedValue:q,formattedLabel:G,markType:P.labelMarkType})}}):[]}),Object.keys(f).filter(D_).forEach(I=>{const k=f[I];return k?k.seriesOrder.forEach(R=>{var F;const P=k.series[R],O=P.rotationAxisId??(i==null?void 0:i.id),j=T.findIndex(({axisDirection:D,axisId:_})=>D==="rotation"&&_===O);if(j>=0){const{dataIndex:D}=T[j],_=((F=E[I])==null?void 0:F.call(E,P)(D))??"",$=P.data[D]??null,B=P.valueFormatter($,{dataIndex:D}),V=gl(P.label,"tooltip")??null;T[j].seriesItems.push({seriesId:R,color:_,value:$,formattedValue:B,formattedLabel:V,markType:P.labelMarkType})}}):[]}),t?T:T.length===0?T[0]:null}function oIe(e){return rIe(z({},e,{multipleAxes:!0}))}function iIe(e){const t=dM(e.classes),n=oIe();return n===null?null:y.jsx(ZA,{sx:e.sx,className:t.paper,children:n.map(({axisId:r,mainAxis:o,axisValue:i,axisFormattedValue:a,seriesItems:l})=>y.jsxs(QA,{className:t.table,children:[i!=null&&!o.hideTooltip&&y.jsx(Jt,{component:"caption",children:a}),y.jsx("tbody",{children:l.map(({seriesId:u,color:d,formattedValue:f,formattedLabel:m,markType:g})=>f==null?null:y.jsxs(JA,{className:t.row,children:[y.jsxs(e0,{className:Ve(t.labelCell,t.cell),component:"th",children:[y.jsx("div",{className:t.markContainer,children:y.jsx(gE,{type:g,color:d,className:t.mark})}),m||null]}),y.jsx(e0,{className:Ve(t.valueCell,t.cell),component:"td",children:f})]},u))})]},r))})}function aIe(){const e=Gr(),t=yn(e,RB),n=yn(e,_h);return t!==void 0?"polar":n!==void 0?"cartesian":"none"}const sIe=["trigger","classes","children"],lIe=()=>!1,cIe=Te(z0,{name:"MuiChartsTooltip",slot:"Root"})(({theme:e})=>({pointerEvents:"none",zIndex:e.zIndex.modal}));function uIe(e){const t=vc({props:e,name:"MuiChartsTooltipContainer"}),{trigger:n="axis",classes:r,children:o}=t,i=tt(t,sIe),a=dM(r),l=$_(),u=ZPe(),d=eIe(),f=b.useRef(null),m=_s(()=>({x:0,y:0})),g=aIe(),w=Gr(),C=yn(w,n==="axis"?g==="polar"&&nIe||g==="cartesian"&&$Te||lIe:RTe);b.useEffect(()=>{const k=l.current;if(k===null)return()=>{};const R=P=>{var O;m.current={x:P.clientX,y:P.clientY},(O=f.current)==null||O.update()};return k.addEventListener("pointerdown",R),k.addEventListener("pointermove",R),()=>{k.removeEventListener("pointerdown",R),k.removeEventListener("pointermove",R)}},[l,m]);const S=b.useMemo(()=>({getBoundingClientRect:()=>({x:m.current.x,y:m.current.y,top:m.current.y,left:m.current.x,right:m.current.x,bottom:m.current.y,width:0,height:0,toJSON:()=>""})}),[m]),E=(u==null?void 0:u.pointerType)==="mouse"||d,T=(u==null?void 0:u.pointerType)==="touch"||!d,I=b.useMemo(()=>[{name:"offset",options:{offset:()=>T?[0,64]:[0,8]}},...E?[]:[{name:"flip",options:{fallbackPlacements:["top-end","top-start","bottom-end","bottom"]}}]],[E,T]);return n==="none"?null:y.jsx(Eee,{children:C&&y.jsx(cIe,z({className:a==null?void 0:a.root,open:C,placement:E?"right-start":"top",popperRef:f,anchorEl:S,modifiers:I},i,{children:o}))})}function dIe(e){const{classes:t,trigger:n="axis"}=e,r=dM(t);return y.jsx(uIe,z({},e,{classes:t,children:n==="axis"?y.jsx(iIe,{classes:r}):y.jsx(KPe,{classes:r})}))}const fIe=e=>({type:"series",color:e.color,label:e.label,seriesId:e.seriesId,itemId:e.itemId});function pIe(e){return kt("MuiChartsLegend",e)}const hIe=e=>{const{classes:t,direction:n}=e;return st({root:["root",n],item:["item"],mark:["mark"],label:["label"],series:["series"]},pIe,t)},Z$=Pt("MuiChartsLegend",["root","item","series","mark","label","vertical","horizontal"]),mIe=["slots","slotProps"],gIe=["ownerState"],bIe=(e,t,n,r)=>{function o(i,a){var P;const l=vc({props:i,name:e}),u=typeof n.defaultProps=="function"?n.defaultProps(l):n.defaultProps??{},d=Vd(u,l),f=d,{slots:m,slotProps:g}=f,w=tt(f,mIe),C=bo(),S=(P=n.classesResolver)==null?void 0:P.call(n,d,C),E=(m==null?void 0:m[t])??r,T=n.propagateSlots&&!(m!=null&&m[t]),I=mi({elementType:E,externalSlotProps:g==null?void 0:g[t],additionalProps:z({},w,{classes:S},T&&{slots:m,slotProps:g}),ownerState:{}}),k=tt(I,gIe),R=z({},k);for(const O of n.omitProps??[])delete R[O];return y.jsx(E,z({},R,{ref:a}))}return b.forwardRef(o)};function yIe(e){return kt("MuiChartsLabel",e)}Pt("MuiChartsLabel",["root"]);const vIe=e=>st({root:["root"]},yIe,e.classes),xIe=["children","className","classes"],wIe=XB("MuiChartsLabel",{classesResolver:vIe},function(t,n){const{children:r,className:o,classes:i}=t,a=tt(t,xIe);return y.jsx("span",z({className:Ve(i==null?void 0:i.root,o),ref:n},a,{children:r}))}),CIe=["direction","onItemClick","className","classes"],SIe=Te("ul",{name:"MuiChartsLegend",slot:"Root"})(({ownerState:e,theme:t})=>z({},t.typography.caption,{color:(t.vars||t).palette.text.primary,lineHeight:"100%",display:"flex",flexDirection:e.direction==="vertical"?"column":"row",alignItems:e.direction==="vertical"?void 0:"center",flexShrink:0,gap:t.spacing(2),listStyleType:"none",paddingInlineStart:0,marginBlock:t.spacing(1),marginInline:t.spacing(1),flexWrap:"wrap",li:{display:e.direction==="horizontal"?"inline-flex":void 0},[`button.${Z$.series}`]:{background:"none",border:"none",padding:0,fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",letterSpacing:"inherit",color:"inherit"},[`& .${Z$.series}`]:{display:e.direction==="vertical"?"flex":"inline-flex",alignItems:"center",gap:t.spacing(1)}})),EIe=bIe("MuiChartsLegend","legend",{defaultProps:{direction:"horizontal"},omitProps:["position"],classesResolver:hIe},b.forwardRef(function(t,n){const r=kke(),{onItemClick:o,className:i,classes:a}=t,l=tt(t,CIe);if(r.items.length===0)return null;const u=o?"button":"div";return y.jsx(SIe,z({className:Ve(a==null?void 0:a.root,i),ref:n},l,{ownerState:t,children:r.items.map((d,f)=>y.jsx("li",{className:a==null?void 0:a.item,"data-series":d.id,children:y.jsxs(u,{className:a==null?void 0:a.series,role:o?"button":void 0,type:o?"button":void 0,onClick:o?m=>o(m,fIe(d),f):void 0,children:[y.jsx(gE,{className:a==null?void 0:a.mark,color:d.color,type:d.markType}),y.jsx(wIe,{className:a==null?void 0:a.label,children:d.label})]})},d.id))}))}));function TIe(e){return kt("MuiChartsAxisHighlight",e)}Pt("MuiChartsAxisHighlight",["root"]);const bE=Te("path",{name:"MuiChartsAxisHighlight",slot:"Root"})(({theme:e})=>({pointerEvents:"none",variants:[{props:{axisHighlight:"band"},style:z({fill:"white",fillOpacity:.1},e.applyStyles("light",{fill:"gray"}))},{props:{axisHighlight:"line"},style:z({strokeDasharray:"5 2",stroke:"#ffffff"},e.applyStyles("light",{stroke:"#000000"}))}]}));function MIe(e){const{type:t,classes:n}=e,{left:r,width:o}=Sc(),i=xke(),a=Gr(),l=yn(a,LTe),u=hE(i),d=t==="band"&&l!==null&&Ru(i);return y.jsxs(b.Fragment,{children:[d&&i(l)!==void 0&&y.jsx(bE,{d:`M ${r} ${i(l)-(i.step()-i.bandwidth())/2} l 0 ${i.step()} l ${o} 0 l 0 ${-i.step()} Z`,className:n.root,ownerState:{axisHighlight:"band"}}),t==="line"&&l!==null&&y.jsx(bE,{d:`M ${r} ${u(l)} L ${r+o} ${u(l)}`,className:n.root,ownerState:{axisHighlight:"line"}})]})}function kIe(e){const{type:t,classes:n}=e,{top:r,height:o}=Sc(),i=vke(),a=Gr(),l=yn(a,DTe),u=hE(i),d=t==="band"&&l!==null&&Ru(i);return y.jsxs(b.Fragment,{children:[d&&i(l)!==void 0&&y.jsx(bE,{d:`M ${i(l)-(i.step()-i.bandwidth())/2} ${r} l ${i.step()} 0 l 0 ${o} l ${-i.step()} 0 Z`,className:n.root,ownerState:{axisHighlight:"band"}}),t==="line"&&l!==null&&y.jsx(bE,{d:`M ${u(l)} ${r} L ${u(l)} ${r+o}`,className:n.root,ownerState:{axisHighlight:"line"}})]})}const PIe=()=>st({root:["root"]},TIe);function IIe(e){const{x:t,y:n}=e,r=PIe();return y.jsxs(b.Fragment,{children:[t&&y.jsx(kIe,{type:t,classes:r}),n&&y.jsx(MIe,{type:n,classes:r})]})}function AIe(e){const{id:t,offset:n}=e,{left:r,top:o,width:i,height:a}=Sc(),l=z({top:0,right:0,bottom:0,left:0},n);return y.jsx("clipPath",{id:t,children:y.jsx("rect",{x:r-l.left,y:o-l.top,width:i+l.left+l.right,height:a+l.top+l.bottom})})}function RIe(e){return kt("MuiChartsGrid",e)}const Q$=Pt("MuiChartsGrid",["root","line","horizontalLine","verticalLine"]),OIe=Te("g",{name:"MuiChartsGrid",slot:"Root",overridesResolver:(e,t)=>[{[`&.${Q$.verticalLine}`]:t.verticalLine},{[`&.${Q$.horizontalLine}`]:t.horizontalLine},t.root]})({}),rH=Te("line",{name:"MuiChartsGrid",slot:"Line"})(({theme:e})=>({stroke:(e.vars||e).palette.divider,shapeRendering:"crispEdges",strokeWidth:1}));function _Ie(e){const{axis:t,start:n,end:r,classes:o}=e,{scale:i,tickNumber:a,tickInterval:l}=t,u=cM({scale:i,tickNumber:a,tickInterval:l,direction:"x"});return y.jsx(b.Fragment,{children:u.map(({value:d,offset:f})=>{var m;return y.jsx(rH,{y1:n,y2:r,x1:f,x2:f,className:o.verticalLine},`vertical-${((m=d==null?void 0:d.getTime)==null?void 0:m.call(d))??d}`)})})}function DIe(e){const{axis:t,start:n,end:r,classes:o}=e,{scale:i,tickNumber:a,tickInterval:l}=t,u=cM({scale:i,tickNumber:a,tickInterval:l,direction:"y"});return y.jsx(b.Fragment,{children:u.map(({value:d,offset:f})=>{var m;return y.jsx(rH,{y1:f,y2:f,x1:n,x2:r,className:o.horizontalLine},`horizontal-${((m=d==null?void 0:d.getTime)==null?void 0:m.call(d))??d}`)})})}const LIe=["vertical","horizontal"],$Ie=({classes:e})=>st({root:["root"],verticalLine:["line","verticalLine"],horizontalLine:["line","horizontalLine"]},RIe,e);function jIe(e){const t=vc({props:e,name:"MuiChartsGrid"}),n=Sc(),{vertical:r,horizontal:o}=t,i=tt(t,LIe),{xAxis:a,xAxisIds:l}=Fh(),{yAxis:u,yAxisIds:d}=Nh(),f=$Ie(t),m=u[d[0]],g=a[l[0]];return y.jsxs(OIe,z({},i,{className:f.root,children:[r&&y.jsx(_Ie,{axis:g,start:n.top,end:n.height+n.top,classes:f}),o&&y.jsx(DIe,{axis:m,start:n.left,end:n.width+n.left,classes:f})]}))}const FIe=["message"],NIe=Te("text")(({theme:e})=>z({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function zIe(e){const{message:t}=e,n=tt(e,FIe),{top:r,left:o,height:i,width:a}=Sc(),{localeText:l}=$B();return y.jsx(NIe,z({x:o+a/2,y:r+i/2},n,{children:t??l.loading}))}const BIe=["message"],HIe=Te("text")(({theme:e})=>z({},e.typography.body2,{stroke:"none",fill:(e.vars||e).palette.text.primary,shapeRendering:"crispEdges",textAnchor:"middle",dominantBaseline:"middle"}));function UIe(e){const{message:t}=e,n=tt(e,BIe),{top:r,left:o,height:i,width:a}=Sc(),{localeText:l}=$B();return y.jsx(HIe,z({x:o+a/2,y:r+i/2},n,{children:t??l.noData}))}function GIe(){const e=lM();return Object.values(e).every(t=>{if(!t)return!0;const{series:n,seriesOrder:r}=t;return r.every(o=>n[o].data.length===0)})}function VIe(e){var n,r,o,i;const t=GIe();if(e.loading){const a=((n=e.slots)==null?void 0:n.loadingOverlay)??zIe;return y.jsx(a,z({},(r=e.slotProps)==null?void 0:r.loadingOverlay))}if(t){const a=((o=e.slots)==null?void 0:o.noDataOverlay)??UIe;return y.jsx(a,z({},(i=e.slotProps)==null?void 0:i.noDataOverlay))}return null}const WIe=[g1,ob,m1,ib],qIe=["xAxis","yAxis","series","width","height","margin","colors","dataset","sx","axisHighlight","grid","children","slots","slotProps","skipAnimation","loading","layout","onItemClick","highlightedItem","onHighlightChange","borderRadius","barLabel","className","hideLegend","showToolbar"],YIe=e=>{var ie,le,ve,ue,me;const{xAxis:t,yAxis:n,series:r,width:o,height:i,margin:a,colors:l,dataset:u,sx:d,axisHighlight:f,grid:m,children:g,slots:w,slotProps:C,skipAnimation:S,loading:E,layout:T,onItemClick:I,highlightedItem:k,onHighlightChange:R,borderRadius:P,barLabel:O,className:j}=e,F=tt(e,qIe),_=`${Mn()}-clip-path`,$=T==="horizontal"||T===void 0&&r.some(be=>be.layout==="horizontal"),B=b.useMemo(()=>[{id:s_,scaleType:"band",data:Array.from({length:Math.max(...r.map(be=>(be.data??u??[]).length))},(be,Fe)=>Fe)}],[u,r]),V=b.useMemo(()=>[{id:l_,scaleType:"band",data:Array.from({length:Math.max(...r.map(be=>(be.data??u??[]).length))},(be,Fe)=>Fe)}],[u,r]),q=b.useMemo(()=>r.map(be=>z({type:"bar"},be,{layout:$?"horizontal":"vertical"})),[$,r]),G=$?void 0:B,N=b.useMemo(()=>t?$?t:t.map(be=>z({scaleType:"band"},be)):G,[G,$,t]),H=$?V:void 0,Y=b.useMemo(()=>n?$?n.map(be=>z({scaleType:"band"},be)):n:H,[H,$,n]),Q=z({},F,{series:q,width:o,height:i,margin:a,colors:l,dataset:u,xAxis:N,yAxis:Y,highlightedItem:k,onHighlightChange:R,disableAxisListener:((ie=C==null?void 0:C.tooltip)==null?void 0:ie.trigger)!=="axis"&&(f==null?void 0:f.x)==="none"&&(f==null?void 0:f.y)==="none",className:j,skipAnimation:S,plugins:WIe}),W={onItemClick:I,slots:w,slotProps:C,borderRadius:P,barLabel:O},K={vertical:m==null?void 0:m.vertical,horizontal:m==null?void 0:m.horizontal},J={clipPath:`url(#${_})`},ae={id:_},ce={slots:w,slotProps:C,loading:E},de={slots:w,slotProps:C},re=z({},$?{y:"band"}:{x:"band"},f),ke={slots:w,slotProps:C};return{chartsWrapperProps:{sx:d,legendPosition:(ve=(le=e.slotProps)==null?void 0:le.legend)==null?void 0:ve.position,legendDirection:(me=(ue=e.slotProps)==null?void 0:ue.legend)==null?void 0:me.direction},chartContainerProps:Q,barPlotProps:W,gridProps:K,clipPathProps:ae,clipPathGroupProps:J,overlayProps:ce,chartsAxisProps:de,axisHighlightProps:re,legendProps:ke,children:g}},KIe={baseButton:B0,baseIconButton:Ur},XIe={},ZIe=z({},KIe,XIe),QIe=b.createContext(null);function JIe(e){const{slots:t,slotProps:n={},defaultSlots:r,children:o}=e,i=b.useMemo(()=>({slots:z({},r,t),slotProps:n}),[r,t,n]);return y.jsx(QIe.Provider,{value:i,children:o})}const du=11102230246251565e-32,Ri=134217729,eAe=(3+8*du)*du;function JP(e,t,n,r,o){let i,a,l,u,d=t[0],f=r[0],m=0,g=0;f>d==f>-d?(i=d,d=t[++m]):(i=f,f=r[++g]);let w=0;if(m<e&&g<n)for(f>d==f>-d?(a=d+i,l=i-(a-d),d=t[++m]):(a=f+i,l=i-(a-f),f=r[++g]),i=a,l!==0&&(o[w++]=l);m<e&&g<n;)f>d==f>-d?(a=i+d,u=a-i,l=i-(a-u)+(d-u),d=t[++m]):(a=i+f,u=a-i,l=i-(a-u)+(f-u),f=r[++g]),i=a,l!==0&&(o[w++]=l);for(;m<e;)a=i+d,u=a-i,l=i-(a-u)+(d-u),d=t[++m],i=a,l!==0&&(o[w++]=l);for(;g<n;)a=i+f,u=a-i,l=i-(a-u)+(f-u),f=r[++g],i=a,l!==0&&(o[w++]=l);return(i!==0||w===0)&&(o[w++]=i),w}function tAe(e,t){let n=t[0];for(let r=1;r<e;r++)n+=t[r];return n}function v1(e){return new Float64Array(e)}const nAe=(3+16*du)*du,rAe=(2+12*du)*du,oAe=(9+64*du)*du*du,Dg=v1(4),J$=v1(8),ej=v1(12),tj=v1(16),Yi=v1(4);function iAe(e,t,n,r,o,i,a){let l,u,d,f,m,g,w,C,S,E,T,I,k,R,P,O,j,F;const D=e-o,_=n-o,$=t-i,B=r-i;R=D*B,g=Ri*D,w=g-(g-D),C=D-w,g=Ri*B,S=g-(g-B),E=B-S,P=C*E-(R-w*S-C*S-w*E),O=$*_,g=Ri*$,w=g-(g-$),C=$-w,g=Ri*_,S=g-(g-_),E=_-S,j=C*E-(O-w*S-C*S-w*E),T=P-j,m=P-T,Dg[0]=P-(T+m)+(m-j),I=R+T,m=I-R,k=R-(I-m)+(T-m),T=k-O,m=k-T,Dg[1]=k-(T+m)+(m-O),F=I+T,m=F-I,Dg[2]=I-(F-m)+(T-m),Dg[3]=F;let V=tAe(4,Dg),q=rAe*a;if(V>=q||-V>=q||(m=e-D,l=e-(D+m)+(m-o),m=n-_,d=n-(_+m)+(m-o),m=t-$,u=t-($+m)+(m-i),m=r-B,f=r-(B+m)+(m-i),l===0&&u===0&&d===0&&f===0)||(q=oAe*a+eAe*Math.abs(V),V+=D*f+B*l-($*d+_*u),V>=q||-V>=q))return V;R=l*B,g=Ri*l,w=g-(g-l),C=l-w,g=Ri*B,S=g-(g-B),E=B-S,P=C*E-(R-w*S-C*S-w*E),O=u*_,g=Ri*u,w=g-(g-u),C=u-w,g=Ri*_,S=g-(g-_),E=_-S,j=C*E-(O-w*S-C*S-w*E),T=P-j,m=P-T,Yi[0]=P-(T+m)+(m-j),I=R+T,m=I-R,k=R-(I-m)+(T-m),T=k-O,m=k-T,Yi[1]=k-(T+m)+(m-O),F=I+T,m=F-I,Yi[2]=I-(F-m)+(T-m),Yi[3]=F;const G=JP(4,Dg,4,Yi,J$);R=D*f,g=Ri*D,w=g-(g-D),C=D-w,g=Ri*f,S=g-(g-f),E=f-S,P=C*E-(R-w*S-C*S-w*E),O=$*d,g=Ri*$,w=g-(g-$),C=$-w,g=Ri*d,S=g-(g-d),E=d-S,j=C*E-(O-w*S-C*S-w*E),T=P-j,m=P-T,Yi[0]=P-(T+m)+(m-j),I=R+T,m=I-R,k=R-(I-m)+(T-m),T=k-O,m=k-T,Yi[1]=k-(T+m)+(m-O),F=I+T,m=F-I,Yi[2]=I-(F-m)+(T-m),Yi[3]=F;const N=JP(G,J$,4,Yi,ej);R=l*f,g=Ri*l,w=g-(g-l),C=l-w,g=Ri*f,S=g-(g-f),E=f-S,P=C*E-(R-w*S-C*S-w*E),O=u*d,g=Ri*u,w=g-(g-u),C=u-w,g=Ri*d,S=g-(g-d),E=d-S,j=C*E-(O-w*S-C*S-w*E),T=P-j,m=P-T,Yi[0]=P-(T+m)+(m-j),I=R+T,m=I-R,k=R-(I-m)+(T-m),T=k-O,m=k-T,Yi[1]=k-(T+m)+(m-O),F=I+T,m=F-I,Yi[2]=I-(F-m)+(T-m),Yi[3]=F;const H=JP(N,ej,4,Yi,tj);return tj[H-1]}function kS(e,t,n,r,o,i){const a=(t-i)*(n-o),l=(e-o)*(r-i),u=a-l,d=Math.abs(a+l);return Math.abs(u)>=nAe*d?u:-iAe(e,t,n,r,o,i,d)}const nj=Math.pow(2,-52),PS=new Uint32Array(512);class yE{static from(t,n=uAe,r=dAe){const o=t.length,i=new Float64Array(o*2);for(let a=0;a<o;a++){const l=t[a];i[2*a]=n(l),i[2*a+1]=r(l)}return new yE(i)}constructor(t){const n=t.length>>1;if(n>0&&typeof t[0]!="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const r=Math.max(2*n-5,0);this._triangles=new Uint32Array(r*3),this._halfedges=new Int32Array(r*3),this._hashSize=Math.ceil(Math.sqrt(n)),this._hullPrev=new Uint32Array(n),this._hullNext=new Uint32Array(n),this._hullTri=new Uint32Array(n),this._hullHash=new Int32Array(this._hashSize),this._ids=new Uint32Array(n),this._dists=new Float64Array(n),this.update()}update(){const{coords:t,_hullPrev:n,_hullNext:r,_hullTri:o,_hullHash:i}=this,a=t.length>>1;let l=1/0,u=1/0,d=-1/0,f=-1/0;for(let D=0;D<a;D++){const _=t[2*D],$=t[2*D+1];_<l&&(l=_),$<u&&(u=$),_>d&&(d=_),$>f&&(f=$),this._ids[D]=D}const m=(l+d)/2,g=(u+f)/2;let w,C,S;for(let D=0,_=1/0;D<a;D++){const $=eI(m,g,t[2*D],t[2*D+1]);$<_&&(w=D,_=$)}const E=t[2*w],T=t[2*w+1];for(let D=0,_=1/0;D<a;D++){if(D===w)continue;const $=eI(E,T,t[2*D],t[2*D+1]);$<_&&$>0&&(C=D,_=$)}let I=t[2*C],k=t[2*C+1],R=1/0;for(let D=0;D<a;D++){if(D===w||D===C)continue;const _=lAe(E,T,I,k,t[2*D],t[2*D+1]);_<R&&(S=D,R=_)}let P=t[2*S],O=t[2*S+1];if(R===1/0){for(let $=0;$<a;$++)this._dists[$]=t[2*$]-t[0]||t[2*$+1]-t[1];t0(this._ids,this._dists,0,a-1);const D=new Uint32Array(a);let _=0;for(let $=0,B=-1/0;$<a;$++){const V=this._ids[$],q=this._dists[V];q>B&&(D[_++]=V,B=q)}this.hull=D.subarray(0,_),this.triangles=new Uint32Array(0),this.halfedges=new Uint32Array(0);return}if(kS(E,T,I,k,P,O)<0){const D=C,_=I,$=k;C=S,I=P,k=O,S=D,P=_,O=$}const j=cAe(E,T,I,k,P,O);this._cx=j.x,this._cy=j.y;for(let D=0;D<a;D++)this._dists[D]=eI(t[2*D],t[2*D+1],j.x,j.y);t0(this._ids,this._dists,0,a-1),this._hullStart=w;let F=3;r[w]=n[S]=C,r[C]=n[w]=S,r[S]=n[C]=w,o[w]=0,o[C]=1,o[S]=2,i.fill(-1),i[this._hashKey(E,T)]=w,i[this._hashKey(I,k)]=C,i[this._hashKey(P,O)]=S,this.trianglesLen=0,this._addTriangle(w,C,S,-1,-1,-1);for(let D=0,_,$;D<this._ids.length;D++){const B=this._ids[D],V=t[2*B],q=t[2*B+1];if(D>0&&Math.abs(V-_)<=nj&&Math.abs(q-$)<=nj||(_=V,$=q,B===w||B===C||B===S))continue;let G=0;for(let W=0,K=this._hashKey(V,q);W<this._hashSize&&(G=i[(K+W)%this._hashSize],!(G!==-1&&G!==r[G]));W++);G=n[G];let N=G,H;for(;H=r[N],kS(V,q,t[2*N],t[2*N+1],t[2*H],t[2*H+1])>=0;)if(N=H,N===G){N=-1;break}if(N===-1)continue;let Y=this._addTriangle(N,B,r[N],-1,-1,o[N]);o[B]=this._legalize(Y+2),o[N]=Y,F++;let Q=r[N];for(;H=r[Q],kS(V,q,t[2*Q],t[2*Q+1],t[2*H],t[2*H+1])<0;)Y=this._addTriangle(Q,B,H,o[B],-1,o[Q]),o[B]=this._legalize(Y+2),r[Q]=Q,F--,Q=H;if(N===G)for(;H=n[N],kS(V,q,t[2*H],t[2*H+1],t[2*N],t[2*N+1])<0;)Y=this._addTriangle(H,B,N,-1,o[N],o[H]),this._legalize(Y+2),o[H]=Y,r[N]=N,F--,N=H;this._hullStart=n[B]=N,r[N]=n[Q]=B,r[B]=Q,i[this._hashKey(V,q)]=B,i[this._hashKey(t[2*N],t[2*N+1])]=N}this.hull=new Uint32Array(F);for(let D=0,_=this._hullStart;D<F;D++)this.hull[D]=_,_=r[_];this.triangles=this._triangles.subarray(0,this.trianglesLen),this.halfedges=this._halfedges.subarray(0,this.trianglesLen)}_hashKey(t,n){return Math.floor(aAe(t-this._cx,n-this._cy)*this._hashSize)%this._hashSize}_legalize(t){const{_triangles:n,_halfedges:r,coords:o}=this;let i=0,a=0;for(;;){const l=r[t],u=t-t%3;if(a=u+(t+2)%3,l===-1){if(i===0)break;t=PS[--i];continue}const d=l-l%3,f=u+(t+1)%3,m=d+(l+2)%3,g=n[a],w=n[t],C=n[f],S=n[m];if(sAe(o[2*g],o[2*g+1],o[2*w],o[2*w+1],o[2*C],o[2*C+1],o[2*S],o[2*S+1])){n[t]=S,n[l]=g;const T=r[m];if(T===-1){let k=this._hullStart;do{if(this._hullTri[k]===m){this._hullTri[k]=t;break}k=this._hullPrev[k]}while(k!==this._hullStart)}this._link(t,T),this._link(l,r[a]),this._link(a,m);const I=d+(l+1)%3;i<PS.length&&(PS[i++]=I)}else{if(i===0)break;t=PS[--i]}}return a}_link(t,n){this._halfedges[t]=n,n!==-1&&(this._halfedges[n]=t)}_addTriangle(t,n,r,o,i,a){const l=this.trianglesLen;return this._triangles[l]=t,this._triangles[l+1]=n,this._triangles[l+2]=r,this._link(l,o),this._link(l+1,i),this._link(l+2,a),this.trianglesLen+=3,l}}function aAe(e,t){const n=e/(Math.abs(e)+Math.abs(t));return(t>0?3-n:1+n)/4}function eI(e,t,n,r){const o=e-n,i=t-r;return o*o+i*i}function sAe(e,t,n,r,o,i,a,l){const u=e-a,d=t-l,f=n-a,m=r-l,g=o-a,w=i-l,C=u*u+d*d,S=f*f+m*m,E=g*g+w*w;return u*(m*E-S*w)-d*(f*E-S*g)+C*(f*w-m*g)<0}function lAe(e,t,n,r,o,i){const a=n-e,l=r-t,u=o-e,d=i-t,f=a*a+l*l,m=u*u+d*d,g=.5/(a*d-l*u),w=(d*f-l*m)*g,C=(a*m-u*f)*g;return w*w+C*C}function cAe(e,t,n,r,o,i){const a=n-e,l=r-t,u=o-e,d=i-t,f=a*a+l*l,m=u*u+d*d,g=.5/(a*d-l*u),w=e+(d*f-l*m)*g,C=t+(a*m-u*f)*g;return{x:w,y:C}}function t0(e,t,n,r){if(r-n<=20)for(let o=n+1;o<=r;o++){const i=e[o],a=t[i];let l=o-1;for(;l>=n&&t[e[l]]>a;)e[l+1]=e[l--];e[l+1]=i}else{const o=n+r>>1;let i=n+1,a=r;xv(e,o,i),t[e[n]]>t[e[r]]&&xv(e,n,r),t[e[i]]>t[e[r]]&&xv(e,i,r),t[e[n]]>t[e[i]]&&xv(e,n,i);const l=e[i],u=t[l];for(;;){do i++;while(t[e[i]]<u);do a--;while(t[e[a]]>u);if(a<i)break;xv(e,i,a)}e[n+1]=e[a],e[a]=l,r-i+1>=a-n?(t0(e,t,i,r),t0(e,t,n,a-1)):(t0(e,t,n,a-1),t0(e,t,i,r))}}function xv(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function uAe(e){return e[0]}function dAe(e){return e[1]}const rj=1e-6;class Xp{constructor(){this._x0=this._y0=this._x1=this._y1=null,this._=""}moveTo(t,n){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")}lineTo(t,n){this._+=`L${this._x1=+t},${this._y1=+n}`}arc(t,n,r){t=+t,n=+n,r=+r;const o=t+r,i=n;if(r<0)throw new Error("negative radius");this._x1===null?this._+=`M${o},${i}`:(Math.abs(this._x1-o)>rj||Math.abs(this._y1-i)>rj)&&(this._+="L"+o+","+i),r&&(this._+=`A${r},${r},0,1,1,${t-r},${n}A${r},${r},0,1,1,${this._x1=o},${this._y1=i}`)}rect(t,n,r,o){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${+r}v${+o}h${-r}Z`}value(){return this._||null}}class eR{constructor(){this._=[]}moveTo(t,n){this._.push([t,n])}closePath(){this._.push(this._[0].slice())}lineTo(t,n){this._.push([t,n])}value(){return this._.length?this._:null}}class fAe{constructor(t,[n,r,o,i]=[0,0,960,500]){if(!((o=+o)>=(n=+n))||!((i=+i)>=(r=+r)))throw new Error("invalid bounds");this.delaunay=t,this._circumcenters=new Float64Array(t.points.length*2),this.vectors=new Float64Array(t.points.length*2),this.xmax=o,this.xmin=n,this.ymax=i,this.ymin=r,this._init()}update(){return this.delaunay.update(),this._init(),this}_init(){const{delaunay:{points:t,hull:n,triangles:r},vectors:o}=this;let i,a;const l=this.circumcenters=this._circumcenters.subarray(0,r.length/3*2);for(let S=0,E=0,T=r.length,I,k;S<T;S+=3,E+=2){const R=r[S]*2,P=r[S+1]*2,O=r[S+2]*2,j=t[R],F=t[R+1],D=t[P],_=t[P+1],$=t[O],B=t[O+1],V=D-j,q=_-F,G=$-j,N=B-F,H=(V*N-q*G)*2;if(Math.abs(H)<1e-9){if(i===void 0){i=a=0;for(const Q of n)i+=t[Q*2],a+=t[Q*2+1];i/=n.length,a/=n.length}const Y=1e9*Math.sign((i-j)*N-(a-F)*G);I=(j+$)/2-Y*N,k=(F+B)/2+Y*G}else{const Y=1/H,Q=V*V+q*q,W=G*G+N*N;I=j+(N*Q-q*W)*Y,k=F+(V*W-G*Q)*Y}l[E]=I,l[E+1]=k}let u=n[n.length-1],d,f=u*4,m,g=t[2*u],w,C=t[2*u+1];o.fill(0);for(let S=0;S<n.length;++S)u=n[S],d=f,m=g,w=C,f=u*4,g=t[2*u],C=t[2*u+1],o[d+2]=o[f]=w-C,o[d+3]=o[f+1]=g-m}render(t){const n=t==null?t=new Xp:void 0,{delaunay:{halfedges:r,inedges:o,hull:i},circumcenters:a,vectors:l}=this;if(i.length<=1)return null;for(let f=0,m=r.length;f<m;++f){const g=r[f];if(g<f)continue;const w=Math.floor(f/3)*2,C=Math.floor(g/3)*2,S=a[w],E=a[w+1],T=a[C],I=a[C+1];this._renderSegment(S,E,T,I,t)}let u,d=i[i.length-1];for(let f=0;f<i.length;++f){u=d,d=i[f];const m=Math.floor(o[d]/3)*2,g=a[m],w=a[m+1],C=u*4,S=this._project(g,w,l[C+2],l[C+3]);S&&this._renderSegment(g,w,S[0],S[1],t)}return n&&n.value()}renderBounds(t){const n=t==null?t=new Xp:void 0;return t.rect(this.xmin,this.ymin,this.xmax-this.xmin,this.ymax-this.ymin),n&&n.value()}renderCell(t,n){const r=n==null?n=new Xp:void 0,o=this._clip(t);if(o===null||!o.length)return;n.moveTo(o[0],o[1]);let i=o.length;for(;o[0]===o[i-2]&&o[1]===o[i-1]&&i>1;)i-=2;for(let a=2;a<i;a+=2)(o[a]!==o[a-2]||o[a+1]!==o[a-1])&&n.lineTo(o[a],o[a+1]);return n.closePath(),r&&r.value()}*cellPolygons(){const{delaunay:{points:t}}=this;for(let n=0,r=t.length/2;n<r;++n){const o=this.cellPolygon(n);o&&(o.index=n,yield o)}}cellPolygon(t){const n=new eR;return this.renderCell(t,n),n.value()}_renderSegment(t,n,r,o,i){let a;const l=this._regioncode(t,n),u=this._regioncode(r,o);l===0&&u===0?(i.moveTo(t,n),i.lineTo(r,o)):(a=this._clipSegment(t,n,r,o,l,u))&&(i.moveTo(a[0],a[1]),i.lineTo(a[2],a[3]))}contains(t,n,r){return n=+n,n!==n||(r=+r,r!==r)?!1:this.delaunay._step(t,n,r)===t}*neighbors(t){const n=this._clip(t);if(n)for(const r of this.delaunay.neighbors(t)){const o=this._clip(r);if(o){e:for(let i=0,a=n.length;i<a;i+=2)for(let l=0,u=o.length;l<u;l+=2)if(n[i]===o[l]&&n[i+1]===o[l+1]&&n[(i+2)%a]===o[(l+u-2)%u]&&n[(i+3)%a]===o[(l+u-1)%u]){yield r;break e}}}}_cell(t){const{circumcenters:n,delaunay:{inedges:r,halfedges:o,triangles:i}}=this,a=r[t];if(a===-1)return null;const l=[];let u=a;do{const d=Math.floor(u/3);if(l.push(n[d*2],n[d*2+1]),u=u%3===2?u-2:u+1,i[u]!==t)break;u=o[u]}while(u!==a&&u!==-1);return l}_clip(t){if(t===0&&this.delaunay.hull.length===1)return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];const n=this._cell(t);if(n===null)return null;const{vectors:r}=this,o=t*4;return this._simplify(r[o]||r[o+1]?this._clipInfinite(t,n,r[o],r[o+1],r[o+2],r[o+3]):this._clipFinite(t,n))}_clipFinite(t,n){const r=n.length;let o=null,i,a,l=n[r-2],u=n[r-1],d,f=this._regioncode(l,u),m,g=0;for(let w=0;w<r;w+=2)if(i=l,a=u,l=n[w],u=n[w+1],d=f,f=this._regioncode(l,u),d===0&&f===0)m=g,g=0,o?o.push(l,u):o=[l,u];else{let C,S,E,T,I;if(d===0){if((C=this._clipSegment(i,a,l,u,d,f))===null)continue;[S,E,T,I]=C}else{if((C=this._clipSegment(l,u,i,a,f,d))===null)continue;[T,I,S,E]=C,m=g,g=this._edgecode(S,E),m&&g&&this._edge(t,m,g,o,o.length),o?o.push(S,E):o=[S,E]}m=g,g=this._edgecode(T,I),m&&g&&this._edge(t,m,g,o,o.length),o?o.push(T,I):o=[T,I]}if(o)m=g,g=this._edgecode(o[0],o[1]),m&&g&&this._edge(t,m,g,o,o.length);else if(this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2))return[this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax,this.xmin,this.ymin];return o}_clipSegment(t,n,r,o,i,a){const l=i<a;for(l&&([t,n,r,o,i,a]=[r,o,t,n,a,i]);;){if(i===0&&a===0)return l?[r,o,t,n]:[t,n,r,o];if(i&a)return null;let u,d,f=i||a;f&8?(u=t+(r-t)*(this.ymax-n)/(o-n),d=this.ymax):f&4?(u=t+(r-t)*(this.ymin-n)/(o-n),d=this.ymin):f&2?(d=n+(o-n)*(this.xmax-t)/(r-t),u=this.xmax):(d=n+(o-n)*(this.xmin-t)/(r-t),u=this.xmin),i?(t=u,n=d,i=this._regioncode(t,n)):(r=u,o=d,a=this._regioncode(r,o))}}_clipInfinite(t,n,r,o,i,a){let l=Array.from(n),u;if((u=this._project(l[0],l[1],r,o))&&l.unshift(u[0],u[1]),(u=this._project(l[l.length-2],l[l.length-1],i,a))&&l.push(u[0],u[1]),l=this._clipFinite(t,l))for(let d=0,f=l.length,m,g=this._edgecode(l[f-2],l[f-1]);d<f;d+=2)m=g,g=this._edgecode(l[d],l[d+1]),m&&g&&(d=this._edge(t,m,g,l,d),f=l.length);else this.contains(t,(this.xmin+this.xmax)/2,(this.ymin+this.ymax)/2)&&(l=[this.xmin,this.ymin,this.xmax,this.ymin,this.xmax,this.ymax,this.xmin,this.ymax]);return l}_edge(t,n,r,o,i){for(;n!==r;){let a,l;switch(n){case 5:n=4;continue;case 4:n=6,a=this.xmax,l=this.ymin;break;case 6:n=2;continue;case 2:n=10,a=this.xmax,l=this.ymax;break;case 10:n=8;continue;case 8:n=9,a=this.xmin,l=this.ymax;break;case 9:n=1;continue;case 1:n=5,a=this.xmin,l=this.ymin;break}(o[i]!==a||o[i+1]!==l)&&this.contains(t,a,l)&&(o.splice(i,0,a,l),i+=2)}return i}_project(t,n,r,o){let i=1/0,a,l,u;if(o<0){if(n<=this.ymin)return null;(a=(this.ymin-n)/o)<i&&(u=this.ymin,l=t+(i=a)*r)}else if(o>0){if(n>=this.ymax)return null;(a=(this.ymax-n)/o)<i&&(u=this.ymax,l=t+(i=a)*r)}if(r>0){if(t>=this.xmax)return null;(a=(this.xmax-t)/r)<i&&(l=this.xmax,u=n+(i=a)*o)}else if(r<0){if(t<=this.xmin)return null;(a=(this.xmin-t)/r)<i&&(l=this.xmin,u=n+(i=a)*o)}return[l,u]}_edgecode(t,n){return(t===this.xmin?1:t===this.xmax?2:0)|(n===this.ymin?4:n===this.ymax?8:0)}_regioncode(t,n){return(t<this.xmin?1:t>this.xmax?2:0)|(n<this.ymin?4:n>this.ymax?8:0)}_simplify(t){if(t&&t.length>4){for(let n=0;n<t.length;n+=2){const r=(n+2)%t.length,o=(n+4)%t.length;(t[n]===t[r]&&t[r]===t[o]||t[n+1]===t[r+1]&&t[r+1]===t[o+1])&&(t.splice(r,2),n-=2)}t.length||(t=null)}return t}}const pAe=2*Math.PI,Lg=Math.pow;function hAe(e){return e[0]}function mAe(e){return e[1]}function gAe(e){const{triangles:t,coords:n}=e;for(let r=0;r<t.length;r+=3){const o=2*t[r],i=2*t[r+1],a=2*t[r+2];if((n[a]-n[o])*(n[i+1]-n[o+1])-(n[i]-n[o])*(n[a+1]-n[o+1])>1e-10)return!1}return!0}function bAe(e,t,n){return[e+Math.sin(e+t)*n,t+Math.cos(e-t)*n]}class N_{static from(t,n=hAe,r=mAe,o){return new N_("length"in t?yAe(t,n,r,o):Float64Array.from(vAe(t,n,r,o)))}constructor(t){this._delaunator=new yE(t),this.inedges=new Int32Array(t.length/2),this._hullIndex=new Int32Array(t.length/2),this.points=this._delaunator.coords,this._init()}update(){return this._delaunator.update(),this._init(),this}_init(){const t=this._delaunator,n=this.points;if(t.hull&&t.hull.length>2&&gAe(t)){this.collinear=Int32Array.from({length:n.length/2},(g,w)=>w).sort((g,w)=>n[2*g]-n[2*w]||n[2*g+1]-n[2*w+1]);const u=this.collinear[0],d=this.collinear[this.collinear.length-1],f=[n[2*u],n[2*u+1],n[2*d],n[2*d+1]],m=1e-8*Math.hypot(f[3]-f[1],f[2]-f[0]);for(let g=0,w=n.length/2;g<w;++g){const C=bAe(n[2*g],n[2*g+1],m);n[2*g]=C[0],n[2*g+1]=C[1]}this._delaunator=new yE(n)}else delete this.collinear;const r=this.halfedges=this._delaunator.halfedges,o=this.hull=this._delaunator.hull,i=this.triangles=this._delaunator.triangles,a=this.inedges.fill(-1),l=this._hullIndex.fill(-1);for(let u=0,d=r.length;u<d;++u){const f=i[u%3===2?u-2:u+1];(r[u]===-1||a[f]===-1)&&(a[f]=u)}for(let u=0,d=o.length;u<d;++u)l[o[u]]=u;o.length<=2&&o.length>0&&(this.triangles=new Int32Array(3).fill(-1),this.halfedges=new Int32Array(3).fill(-1),this.triangles[0]=o[0],a[o[0]]=1,o.length===2&&(a[o[1]]=0,this.triangles[1]=o[1],this.triangles[2]=o[1]))}voronoi(t){return new fAe(this,t)}*neighbors(t){const{inedges:n,hull:r,_hullIndex:o,halfedges:i,triangles:a,collinear:l}=this;if(l){const m=l.indexOf(t);m>0&&(yield l[m-1]),m<l.length-1&&(yield l[m+1]);return}const u=n[t];if(u===-1)return;let d=u,f=-1;do{if(yield f=a[d],d=d%3===2?d-2:d+1,a[d]!==t)return;if(d=i[d],d===-1){const m=r[(o[t]+1)%r.length];m!==f&&(yield m);return}}while(d!==u)}find(t,n,r=0){if(t=+t,t!==t||(n=+n,n!==n))return-1;const o=r;let i;for(;(i=this._step(r,t,n))>=0&&i!==r&&i!==o;)r=i;return i}_step(t,n,r){const{inedges:o,hull:i,_hullIndex:a,halfedges:l,triangles:u,points:d}=this;if(o[t]===-1||!d.length)return(t+1)%(d.length>>1);let f=t,m=Lg(n-d[t*2],2)+Lg(r-d[t*2+1],2);const g=o[t];let w=g;do{let C=u[w];const S=Lg(n-d[C*2],2)+Lg(r-d[C*2+1],2);if(S<m&&(m=S,f=C),w=w%3===2?w-2:w+1,u[w]!==t)break;if(w=l[w],w===-1){if(w=i[(a[t]+1)%i.length],w!==C&&Lg(n-d[w*2],2)+Lg(r-d[w*2+1],2)<m)return w;break}}while(w!==g);return f}render(t){const n=t==null?t=new Xp:void 0,{points:r,halfedges:o,triangles:i}=this;for(let a=0,l=o.length;a<l;++a){const u=o[a];if(u<a)continue;const d=i[a]*2,f=i[u]*2;t.moveTo(r[d],r[d+1]),t.lineTo(r[f],r[f+1])}return this.renderHull(t),n&&n.value()}renderPoints(t,n){n===void 0&&(!t||typeof t.moveTo!="function")&&(n=t,t=null),n=n==null?2:+n;const r=t==null?t=new Xp:void 0,{points:o}=this;for(let i=0,a=o.length;i<a;i+=2){const l=o[i],u=o[i+1];t.moveTo(l+n,u),t.arc(l,u,n,0,pAe)}return r&&r.value()}renderHull(t){const n=t==null?t=new Xp:void 0,{hull:r,points:o}=this,i=r[0]*2,a=r.length;t.moveTo(o[i],o[i+1]);for(let l=1;l<a;++l){const u=2*r[l];t.lineTo(o[u],o[u+1])}return t.closePath(),n&&n.value()}hullPolygon(){const t=new eR;return this.renderHull(t),t.value()}renderTriangle(t,n){const r=n==null?n=new Xp:void 0,{points:o,triangles:i}=this,a=i[t*=3]*2,l=i[t+1]*2,u=i[t+2]*2;return n.moveTo(o[a],o[a+1]),n.lineTo(o[l],o[l+1]),n.lineTo(o[u],o[u+1]),n.closePath(),r&&r.value()}*trianglePolygons(){const{triangles:t}=this;for(let n=0,r=t.length/3;n<r;++n)yield this.trianglePolygon(n)}trianglePolygon(t){const n=new eR;return this.renderTriangle(t,n),n.value()}}function yAe(e,t,n,r){const o=e.length,i=new Float64Array(o*2);for(let a=0;a<o;++a){const l=e[a];i[a*2]=t.call(r,l,a,e),i[a*2+1]=n.call(r,l,a,e)}return i}function*vAe(e,t,n,r){let o=0;for(const i of e)yield t.call(r,i,o,e),yield n.call(r,i,o,e),++o}const fM=({svgRef:e,params:t,store:n,instance:r})=>{var O;const{disableVoronoi:o,voronoiMaxRadius:i,onItemClick:a}=t,l=yn(n,Iu),{axis:u,axisIds:d}=yn(n,ff),{axis:f,axisIds:m}=yn(n,pf),g=yn(n,rB),{series:w,seriesOrder:C}=((O=yn(n,wl))==null?void 0:O.scatter)??{},S=b.useRef({}),E=b.useRef(void 0),T=b.useRef(void 0),I=d[0],k=m[0];kn(()=>{n.update(j=>j.voronoi.isVoronoiEnabled===!o?j:z({},j,{voronoi:{isVoronoiEnabled:!o}}))},[n,o]),kn(()=>{if(g||C===void 0||w===void 0||o)return;S.current={};let j=[];C.forEach(F=>{const{data:D,xAxisId:_,yAxisId:$}=w[F],B=u[_??I].scale,V=f[$??k].scale,q=hE(B),G=hE(V),N=D.flatMap(({x:H,y:Y})=>{const Q=q(H),W=G(Y);return r.isPointInside(Q,W)?[Q,W]:[-l.width,-l.height]});S.current[F]={seriesId:F,startIndex:j.length,endIndex:j.length+N.length},j=j.concat(N)}),E.current=new N_(j),T.current=void 0},[g,I,k,w,C,u,f,l,r,o]),b.useEffect(()=>{if(e.current===null||o)return;const j=e.current;function F(B){const V=wx(j,B);if(!r.isPointInside(V.x,V.y))return T.current=void 0,"outside-chart";if(!E.current)return"no-point-found";const q=E.current.find(V.x,V.y,T.current);if(q===void 0)return"no-point-found";T.current=q;const G=Object.values(S.current).find(H=>2*q>=H.startIndex&&2*q<H.endIndex);if(G===void 0)return"no-point-found";const N=(2*q-S.current[G.seriesId].startIndex)/2;if(i!==void 0){const H=E.current.points[2*q],Y=E.current.points[2*q+1];if((H-V.x)**2+(Y-V.y)**2>i**2)return"outside-voronoi-max-radius"}return{seriesId:G.seriesId,dataIndex:N}}const D=()=>{var B,V;(B=r.cleanInteraction)==null||B.call(r),(V=r.clearHighlight)==null||V.call(r)},_=B=>{var N,H,Y,Q,W,K;const V=F(B);if(V==="outside-chart"){(N=r.cleanInteraction)==null||N.call(r),(H=r.clearHighlight)==null||H.call(r);return}if(V==="outside-voronoi-max-radius"||V==="no-point-found"){(Y=r.removeItemInteraction)==null||Y.call(r),(Q=r.clearHighlight)==null||Q.call(r);return}const{seriesId:q,dataIndex:G}=V;(W=r.setItemInteraction)==null||W.call(r,{type:"scatter",seriesId:q,dataIndex:G}),(K=r.setHighlight)==null||K.call(r,{seriesId:q,dataIndex:G})},$=B=>{if(!a)return;const V=F(B);if(typeof V=="string")return;const{seriesId:q,dataIndex:G}=V;a(B,{type:"scatter",seriesId:q,dataIndex:G})};return j.addEventListener("pointerleave",D),j.addEventListener("pointermove",_),j.addEventListener("click",$),()=>{j.removeEventListener("pointerleave",D),j.removeEventListener("pointermove",_),j.removeEventListener("click",$)}},[e,f,u,i,a,o,l,r]);const R=Vt(()=>{n.update(j=>z({},j,{voronoi:z({},j.voronoi,{isVoronoiEnabled:!0})}))}),P=Vt(()=>{n.update(j=>z({},j,{voronoi:z({},j.voronoi,{isVoronoiEnabled:!1})}))});return{instance:{enableVoronoi:R,disableVoronoi:P}}};fM.getDefaultizedParams=({params:e})=>z({},e,{disableVoronoi:e.disableVoronoi??!e.series.some(t=>t.type==="scatter")});fM.getInitialState=e=>({voronoi:{isVoronoiEnabled:!e.disableVoronoi}});fM.params={disableVoronoi:!0,voronoiMaxRadius:!0,onItemClick:!0};const oH=[g1,ob,m1,ib,fM],xAe=["children","localeText","plugins","seriesConfig","slots","slotProps"],wAe=e=>{const{children:t,localeText:n,plugins:r=oH,seriesConfig:o,slots:i,slotProps:a}=e,l=tt(e,xAe),u=bo(),d={plugins:r,seriesConfig:o,pluginParams:z({theme:u.palette.mode},l)};return{children:t,localeText:n,chartProviderProps:d,slots:i,slotProps:a}};function CAe(e){const{children:t,localeText:n,chartProviderProps:r,slots:o,slotProps:i}=wAe(e);return y.jsx(LMe,z({},r,{children:y.jsx(jke,{localeText:n,children:y.jsx(JIe,{slots:o,slotProps:i,defaultSlots:ZIe,children:t})})}))}function oj(e){const{isReversed:t,gradientId:n,size:r,direction:o,scale:i,colorMap:a}=e;return r<=0?null:y.jsx("linearGradient",{id:n,x1:"0",x2:"0",y1:"0",y2:"0",[`${o}${t?1:2}`]:`${r}px`,gradientUnits:"userSpaceOnUse",children:a.thresholds.map((l,u)=>{const d=i(l);if(d===void 0)return null;const f=t?1-d/r:d/r;return Number.isNaN(f)?null:y.jsxs(b.Fragment,{children:[y.jsx("stop",{offset:f,stopColor:a.colors[u],stopOpacity:1}),y.jsx("stop",{offset:f,stopColor:a.colors[u+1],stopOpacity:1})]},l.toString()+u)})})}const SAe=10;function ij(e){const{gradientUnits:t,isReversed:n,gradientId:r,size:o,direction:i,scale:a,colorScale:l,colorMap:u}=e,d=[u.min??0,u.max??100],f=d.map(a).filter(C=>C!==void 0);if(f.length!==2)return null;const m=typeof d[0]=="number"?Bo(d[0],d[1]):h_(d[0],d[1]),g=Math.round((Math.max(...f)-Math.min(...f))/SAe),w=`${d[0]}-${d[1]}-`;return y.jsx("linearGradient",{id:r,x1:"0",x2:"0",y1:"0",y2:"0",[`${i}${n?1:2}`]:t==="objectBoundingBox"?1:`${o}px`,gradientUnits:t??"userSpaceOnUse",children:Array.from({length:g+1},(C,S)=>{const E=m(S/g);if(E===void 0)return null;const T=a(E);if(T===void 0)return null;const I=n?1-T/o:T/o,k=l(E);return k===null?null:y.jsx("stop",{offset:I,stopColor:k,stopOpacity:1},w+S)})})}const EAe=10,TAe=e=>e?{x1:"1",x2:"0",y1:"0",y2:"0"}:{x1:"0",x2:"1",y1:"0",y2:"0"};function tI(e){const{isReversed:t,gradientId:n,colorScale:r,colorMap:o}=e,i=[o.min??0,o.max??100],a=typeof i[0]=="number"?Bo(i[0],i[1]):h_(i[0],i[1]),l=EAe,u=`${i[0]}-${i[1]}-`;return y.jsx("linearGradient",z({id:n},TAe(t),{gradientUnits:"objectBoundingBox",children:Array.from({length:l+1},(d,f)=>{const m=f/l,g=a(m);if(g===void 0)return null;const w=r(g);return w===null?null:y.jsx("stop",{offset:m,stopColor:w,stopOpacity:1},u+f)})}))}function MAe(){const{top:e,height:t,bottom:n,left:r,width:o,right:i}=Sc(),a=e+t+n,l=r+o+i,u=Pke(),d=Ike(),{xAxis:f,xAxisIds:m}=Fh(),{yAxis:g,yAxisIds:w}=Nh(),{zAxis:C,zAxisIds:S}=L_(),E=w.filter(k=>g[k].colorMap!==void 0),T=m.filter(k=>f[k].colorMap!==void 0),I=S.filter(k=>C[k].colorMap!==void 0);return E.length===0&&T.length===0&&I.length===0?null:y.jsxs("defs",{children:[E.map(k=>{const R=u(k),P=d(k),{colorMap:O,scale:j,colorScale:F,reverse:D}=g[k];return(O==null?void 0:O.type)==="piecewise"?y.jsx(oj,{isReversed:!D,scale:j,colorMap:O,size:a,gradientId:R,direction:"y"},R):(O==null?void 0:O.type)==="continuous"?y.jsxs(b.Fragment,{children:[y.jsx(ij,{isReversed:!D,scale:j,colorScale:F,colorMap:O,size:a,gradientId:R,direction:"y"}),y.jsx(tI,{isReversed:D,colorScale:F,colorMap:O,gradientId:P})]},R):null}),T.map(k=>{const R=u(k),P=d(k),{colorMap:O,scale:j,reverse:F,colorScale:D}=f[k];return(O==null?void 0:O.type)==="piecewise"?y.jsx(oj,{isReversed:F,scale:j,colorMap:O,size:l,gradientId:R,direction:"x"},R):(O==null?void 0:O.type)==="continuous"?y.jsxs(b.Fragment,{children:[y.jsx(ij,{isReversed:F,scale:j,colorScale:D,colorMap:O,size:l,gradientId:R,direction:"x"}),y.jsx(tI,{isReversed:F,colorScale:D,colorMap:O,gradientId:P})]},R):null}),I.map(k=>{const R=d(k),{colorMap:P,colorScale:O}=C[k];return(P==null?void 0:P.type)==="continuous"?y.jsx(tI,{colorScale:O,colorMap:P,gradientId:R},R):null})]})}const kAe=["children","className","title","desc"],PAe=Te("svg",{name:"MuiChartsSurface",slot:"Root"})(({ownerState:e})=>({width:e.width??"100%",height:e.height??"100%",display:"flex",position:"relative",flexDirection:"column",alignItems:"center",justifyContent:"center",overflow:"hidden",touchAction:"none"})),IAe=b.forwardRef(function(t,n){const r=Gr(),{width:o,height:i}=yn(r,MSe),{width:a,height:l}=yn(r,v7),u=$_(),d=Dn(u,n),f=vc({props:t,name:"MuiChartsSurface"}),{children:m,className:g,title:w,desc:C}=f,S=tt(f,kAe),E=i>0&&o>0;return y.jsxs(PAe,z({ownerState:{width:a,height:l},viewBox:`0 0 ${o} ${i}`,className:g},S,{ref:d,children:[w&&y.jsx("title",{children:w}),C&&y.jsx("desc",{children:C}),y.jsx(MAe,{}),E&&m]}))}),AAe=["width","height","margin","children","series","colors","dataset","desc","onAxisClick","disableVoronoi","voronoiMaxRadius","onItemClick","disableAxisListener","highlightedItem","onHighlightChange","sx","title","xAxis","yAxis","zAxis","rotationAxis","radiusAxis","skipAnimation","seriesConfig","plugins","localeText","slots","slotProps"],RAe=(e,t)=>{const n=e,{width:r,height:o,margin:i,children:a,series:l,colors:u,dataset:d,desc:f,onAxisClick:m,disableVoronoi:g,voronoiMaxRadius:w,onItemClick:C,disableAxisListener:S,highlightedItem:E,onHighlightChange:T,sx:I,title:k,xAxis:R,yAxis:P,zAxis:O,rotationAxis:j,radiusAxis:F,skipAnimation:D,seriesConfig:_,plugins:$,localeText:B,slots:V,slotProps:q}=n,G=tt(n,AAe),N=z({title:k,desc:f,sx:I,ref:t},G);return{chartDataProviderProps:{margin:i,series:l,colors:u,dataset:d,disableAxisListener:S,highlightedItem:E,onHighlightChange:T,onAxisClick:m,disableVoronoi:g,voronoiMaxRadius:w,onItemClick:C,xAxis:R,yAxis:P,zAxis:O,rotationAxis:j,radiusAxis:F,skipAnimation:D,width:r,height:o,localeText:B,seriesConfig:_,plugins:$??oH,slots:V,slotProps:q},chartsSurfaceProps:N,children:a}},OAe=(e,t)=>e==="vertical"?(t==null?void 0:t.horizontal)==="start"?"row":"row-reverse":(t==null?void 0:t.vertical)==="bottom"?"column-reverse":"column",_Ae=(e,t)=>{if(e==="vertical"){if((t==null?void 0:t.vertical)==="top")return"flex-start";if((t==null?void 0:t.vertical)==="bottom")return"flex-end"}if(e==="horizontal"){if((t==null?void 0:t.horizontal)==="start")return"flex-start";if((t==null?void 0:t.horizontal)==="end")return"flex-end"}return"center"},DAe=Te("div",{name:"MuiChartsWrapper",slot:"Root",shouldForwardProp:e=>$S(e)&&e!=="extendVertically"})(({ownerState:e})=>({display:"flex",flexDirection:OAe(e.legendDirection,e.legendPosition),flex:1,justifyContent:"center",alignItems:_Ae(e.legendDirection,e.legendPosition),variants:[{props:{extendVertically:!0},style:{height:"100%"}}]}));function LAe(e){const{children:t,sx:n,extendVertically:r}=e,o=Oke(),i=Gr(),{height:a}=yn(i,v7);return y.jsx(DAe,{ref:o,ownerState:e,sx:n,extendVertically:r??a===void 0,children:t})}const $Ae=b.forwardRef(function(t,n){var k,R,P,O;const r=vc({props:t,name:"MuiBarChart"}),{chartsWrapperProps:o,chartContainerProps:i,barPlotProps:a,gridProps:l,clipPathProps:u,clipPathGroupProps:d,overlayProps:f,chartsAxisProps:m,axisHighlightProps:g,legendProps:w,children:C}=YIe(r),{chartDataProviderProps:S,chartsSurfaceProps:E}=RAe(i,n),T=((k=r.slots)==null?void 0:k.tooltip)??dIe,I=(R=r.slots)==null?void 0:R.toolbar;return y.jsx(CAe,z({},S,{children:y.jsxs(LAe,z({},o,{children:[r.showToolbar&&I?y.jsx(I,z({},(P=r.slotProps)==null?void 0:P.toolbar)):null,!r.hideLegend&&y.jsx(EIe,z({},w)),y.jsxs(IAe,z({},E,{children:[y.jsx(jIe,z({},l)),y.jsxs("g",z({},d,{children:[y.jsx(cPe,z({},a)),y.jsx(VIe,z({},f)),y.jsx(IIe,z({},g))]})),y.jsx(HPe,z({},m)),y.jsx(AIe,z({},u)),C]})),!r.loading&&y.jsx(T,z({},(O=r.slotProps)==null?void 0:O.tooltip))]}))}))});function jAe(e){return`${e}`}const FAe=()=>{const{organicTrafficHistory:e}=xt(sf),t=Object.entries(e).map(n=>({value:n[1],label:n[0]}));return y.jsxs(Oe,{children:[y.jsx(pc,{children:"Organic Traffic History"}),y.jsx($Ae,{sx:{".MuiChartsLegend-root":{display:"none"}},colors:["var(--mui-palette-primary-main)"],dataset:t,xAxis:[{dataKey:"label",tickPlacement:"start",tickLabelPlacement:"middle",valueFormatter:n=>i_(new Date(n),"PP")}],series:[{dataKey:"value",label:"Organic Traffic",valueFormatter:jAe}],height:300})]})},NAe=()=>y.jsxs(Oe,{padding:3,display:"flex",flexDirection:"column",children:[y.jsx(Jt,{variant:"h5",textAlign:"center",marginBottom:2,fontWeight:600,children:"Detailed info"}),y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:3,children:[y.jsx(tSe,{}),y.jsx(ZCe,{}),y.jsx(KCe,{}),y.jsx(nSe,{}),y.jsx(JCe,{}),y.jsx(FAe,{}),y.jsx(eSe,{}),y.jsx(XCe,{})]})]});function iH({open:e,setOpen:t,footer:n}){const r=o=>()=>t(o);return y.jsx(Gv,{anchor:"right",open:e,onClose:r(!1),slotProps:{paper:{sx:{height:"auto",top:"64px",bottom:"0"}}},children:y.jsxs(Oe,{sx:{width:500},role:"presentation",display:"flex",flexDirection:"column",gap:2,children:[y.jsx(NAe,{}),n&&y.jsxs(Oe,{padding:3,paddingTop:0,zIndex:1,display:"flex",flexDirection:"column",gap:2,position:"sticky",bottom:0,sx:{backgroundColor:"white"},children:[y.jsx(Zi,{}),n]})]})})}const zAe=({value:e,onChange:t,error:n,helperText:r,onBlur:o,name:i})=>{const a=so(),l=xt(a1);return b.useEffect(()=>{l.length===0&&a(gx())},[]),y.jsx(Bx,{size:"small",id:"country-select-demo",multiple:!0,options:l,autoHighlight:!0,value:e,onBlur:o,onChange:(u,d)=>{t(d)},getOptionLabel:u=>u.name,renderOption:(u,d)=>{const{key:f,...m}=u;return y.jsxs(Oe,{component:"li",sx:{"& > img":{mr:2,flexShrink:0}},...m,children:[d.name," (",d.code,")"]},f)},renderInput:u=>y.jsx(rf,{...u,name:i,label:"Languages",helperText:r,error:n,slotProps:{htmlInput:{...u.inputProps,autoComplete:"new-password"}}})})},BAe=({value:e,onChange:t,min:n,max:r,labelMin:o,labelMax:i,sx:a,startAdornment:l})=>{const u=g=>t({...e,min:Number(g)}),d=g=>t({...e,max:Number(g)}),f=()=>t({...e,min:n}),m=()=>t({...e,max:r});return y.jsxs(Oe,{sx:a,display:"flex",gap:1,children:[y.jsx(nr,{sx:{flexGrow:"1",width:"calc(50% - 4px)"},startAdornment:l,min:n,value:e.min,label:o,onChangeValue:u,type:"Number",endAdornment:e.min!==n&&y.jsx(Yd,{position:"end",children:y.jsx(Ur,{onClick:f,children:y.jsx(K2,{})})})}),y.jsx(nr,{sx:{flexGrow:"1",width:"calc(50% - 4px)"},startAdornment:l,max:r,value:e.max,label:i,onChangeValue:d,type:"Number",endAdornment:e.max!==r&&y.jsx(Yd,{position:"end",children:y.jsx(Ur,{onClick:m,children:y.jsx(K2,{})})})})]})};var wv={},aj;function HAe(){if(aj)return wv;aj=1,Object.defineProperty(wv,"__esModule",{value:!0}),wv.parse=a,wv.serialize=d;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,i=(()=>{const g=function(){};return g.prototype=Object.create(null),g})();function a(g,w){const C=new i,S=g.length;if(S<2)return C;const E=(w==null?void 0:w.decode)||f;let T=0;do{const I=g.indexOf("=",T);if(I===-1)break;const k=g.indexOf(";",T),R=k===-1?S:k;if(I>R){T=g.lastIndexOf(";",I-1)+1;continue}const P=l(g,T,I),O=u(g,I,P),j=g.slice(P,O);if(C[j]===void 0){let F=l(g,I+1,R),D=u(g,R,F);const _=E(g.slice(F,D));C[j]=_}T=R+1}while(T<S);return C}function l(g,w,C){do{const S=g.charCodeAt(w);if(S!==32&&S!==9)return w}while(++w<C);return C}function u(g,w,C){for(;w>C;){const S=g.charCodeAt(--w);if(S!==32&&S!==9)return w+1}return C}function d(g,w,C){const S=(C==null?void 0:C.encode)||encodeURIComponent;if(!e.test(g))throw new TypeError(`argument name is invalid: ${g}`);const E=S(w);if(!t.test(E))throw new TypeError(`argument val is invalid: ${w}`);let T=g+"="+E;if(!C)return T;if(C.maxAge!==void 0){if(!Number.isInteger(C.maxAge))throw new TypeError(`option maxAge is invalid: ${C.maxAge}`);T+="; Max-Age="+C.maxAge}if(C.domain){if(!n.test(C.domain))throw new TypeError(`option domain is invalid: ${C.domain}`);T+="; Domain="+C.domain}if(C.path){if(!r.test(C.path))throw new TypeError(`option path is invalid: ${C.path}`);T+="; Path="+C.path}if(C.expires){if(!m(C.expires)||!Number.isFinite(C.expires.valueOf()))throw new TypeError(`option expires is invalid: ${C.expires}`);T+="; Expires="+C.expires.toUTCString()}if(C.httpOnly&&(T+="; HttpOnly"),C.secure&&(T+="; Secure"),C.partitioned&&(T+="; Partitioned"),C.priority)switch(typeof C.priority=="string"?C.priority.toLowerCase():void 0){case"low":T+="; Priority=Low";break;case"medium":T+="; Priority=Medium";break;case"high":T+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${C.priority}`)}if(C.sameSite)switch(typeof C.sameSite=="string"?C.sameSite.toLowerCase():C.sameSite){case!0:case"strict":T+="; SameSite=Strict";break;case"lax":T+="; SameSite=Lax";break;case"none":T+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${C.sameSite}`)}return T}function f(g){if(g.indexOf("%")===-1)return g;try{return decodeURIComponent(g)}catch{return g}}function m(g){return o.call(g)==="[object Date]"}return wv}HAe();/**
 * react-router v7.6.1
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var aH=e=>{throw TypeError(e)},UAe=(e,t,n)=>t.has(e)||aH("Cannot "+n),nI=(e,t,n)=>(UAe(e,t,"read from private field"),n?n.call(e):t.get(e)),GAe=(e,t,n)=>t.has(e)?aH("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),sj="popstate";function VAe(e={}){function t(r,o){let{pathname:i,search:a,hash:l}=r.location;return kx("",{pathname:i,search:a,hash:l},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:Jd(o)}return qAe(t,n,null,e)}function zn(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Mo(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function WAe(){return Math.random().toString(36).substring(2,10)}function lj(e,t){return{usr:e.state,key:e.key,idx:t}}function kx(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?hf(t):t,state:n,key:t&&t.key||r||WAe()}}function Jd({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function hf(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function qAe(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,l="POP",u=null,d=f();d==null&&(d=0,a.replaceState({...a.state,idx:d},""));function f(){return(a.state||{idx:null}).idx}function m(){l="POP";let E=f(),T=E==null?null:E-d;d=E,u&&u({action:l,location:S.location,delta:T})}function g(E,T){l="PUSH";let I=kx(S.location,E,T);d=f()+1;let k=lj(I,d),R=S.createHref(I);try{a.pushState(k,"",R)}catch(P){if(P instanceof DOMException&&P.name==="DataCloneError")throw P;o.location.assign(R)}i&&u&&u({action:l,location:S.location,delta:1})}function w(E,T){l="REPLACE";let I=kx(S.location,E,T);d=f();let k=lj(I,d),R=S.createHref(I);a.replaceState(k,"",R),i&&u&&u({action:l,location:S.location,delta:0})}function C(E){return sH(E)}let S={get action(){return l},get location(){return e(o,a)},listen(E){if(u)throw new Error("A history only accepts one active listener");return o.addEventListener(sj,m),u=E,()=>{o.removeEventListener(sj,m),u=null}},createHref(E){return t(o,E)},createURL:C,encodeLocation(E){let T=C(E);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:g,replace:w,go(E){return a.go(E)}};return S}function sH(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),zn(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Jd(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}var Fv,cj=class{constructor(e){if(GAe(this,Fv,new Map),e)for(let[t,n]of e)this.set(t,n)}get(e){if(nI(this,Fv).has(e))return nI(this,Fv).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,t){nI(this,Fv).set(e,t)}};Fv=new WeakMap;var YAe=new Set(["lazy","caseSensitive","path","id","index","children"]);function KAe(e){return YAe.has(e)}var XAe=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function ZAe(e){return XAe.has(e)}function QAe(e){return e.index===!0}function vE(e,t,n=[],r={}){return e.map((o,i)=>{let a=[...n,String(i)],l=typeof o.id=="string"?o.id:a.join("-");if(zn(o.index!==!0||!o.children,"Cannot specify children on an index route"),zn(!r[l],`Found a route id collision on id "${l}".  Route id's must be globally unique within Data Router usages`),QAe(o)){let u={...o,...t(o),id:l};return r[l]=u,u}else{let u={...o,...t(o),id:l,children:void 0};return r[l]=u,o.children&&(u.children=vE(o.children,t,a,r)),u}})}function Nd(e,t,n="/"){return n2(e,t,n,!1)}function n2(e,t,n,r){let o=typeof t=="string"?hf(t):t,i=Is(o.pathname||"/",n);if(i==null)return null;let a=lH(e);eRe(a);let l=null;for(let u=0;l==null&&u<a.length;++u){let d=dRe(i);l=cRe(a[u],d,r)}return l}function JAe(e,t){let{route:n,pathname:r,params:o}=e;return{id:n.id,pathname:r,params:o,data:t[n.id],handle:n.handle}}function lH(e,t=[],n=[],r=""){let o=(i,a,l)=>{let u={relativePath:l===void 0?i.path||"":l,caseSensitive:i.caseSensitive===!0,childrenIndex:a,route:i};u.relativePath.startsWith("/")&&(zn(u.relativePath.startsWith(r),`Absolute route path "${u.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),u.relativePath=u.relativePath.slice(r.length));let d=mc([r,u.relativePath]),f=n.concat(u);i.children&&i.children.length>0&&(zn(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),lH(i.children,t,f,d)),!(i.path==null&&!i.index)&&t.push({path:d,score:sRe(d,i.index),routesMeta:f})};return e.forEach((i,a)=>{var l;if(i.path===""||!((l=i.path)!=null&&l.includes("?")))o(i,a);else for(let u of cH(i.path))o(i,a,u)}),t}function cH(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=cH(r.join("/")),l=[];return l.push(...a.map(u=>u===""?i:[i,u].join("/"))),o&&l.push(...a),l.map(u=>e.startsWith("/")&&u===""?"/":u)}function eRe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:lRe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var tRe=/^:[\w-]+$/,nRe=3,rRe=2,oRe=1,iRe=10,aRe=-2,uj=e=>e==="*";function sRe(e,t){let n=e.split("/"),r=n.length;return n.some(uj)&&(r+=aRe),t&&(r+=rRe),n.filter(o=>!uj(o)).reduce((o,i)=>o+(tRe.test(i)?nRe:i===""?oRe:iRe),r)}function lRe(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function cRe(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let l=0;l<r.length;++l){let u=r[l],d=l===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",m=xE({path:u.relativePath,caseSensitive:u.caseSensitive,end:d},f),g=u.route;if(!m&&d&&n&&!r[r.length-1].route.index&&(m=xE({path:u.relativePath,caseSensitive:u.caseSensitive,end:!1},f)),!m)return null;Object.assign(o,m.params),a.push({params:o,pathname:mc([i,m.pathname]),pathnameBase:hRe(mc([i,m.pathnameBase])),route:g}),m.pathnameBase!=="/"&&(i=mc([i,m.pathnameBase]))}return a}function xE(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=uRe(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),l=o.slice(1);return{params:r.reduce((d,{paramName:f,isOptional:m},g)=>{if(f==="*"){let C=l[g]||"";a=i.slice(0,i.length-C.length).replace(/(.)\/+$/,"$1")}const w=l[g];return m&&!w?d[f]=void 0:d[f]=(w||"").replace(/%2F/g,"/"),d},{}),pathname:i,pathnameBase:a,pattern:e}}function uRe(e,t=!1,n=!0){Mo(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,l,u)=>(r.push({paramName:l,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function dRe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Mo(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Is(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function fRe(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?hf(e):e;return{pathname:n?n.startsWith("/")?n:pRe(n,t):t,search:mRe(r),hash:gRe(o)}}function pRe(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?n.length>1&&n.pop():o!=="."&&n.push(o)}),n.length>1?n.join("/"):"/"}function rI(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function uH(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function z_(e){let t=uH(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function B_(e,t,n,r=!1){let o;typeof e=="string"?o=hf(e):(o={...e},zn(!o.pathname||!o.pathname.includes("?"),rI("?","pathname","search",o)),zn(!o.pathname||!o.pathname.includes("#"),rI("#","pathname","hash",o)),zn(!o.search||!o.search.includes("#"),rI("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,l;if(a==null)l=n;else{let m=t.length-1;if(!r&&a.startsWith("..")){let g=a.split("/");for(;g[0]==="..";)g.shift(),m-=1;o.pathname=g.join("/")}l=m>=0?t[m]:"/"}let u=fRe(o,l),d=a&&a!=="/"&&a.endsWith("/"),f=(i||a===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(d||f)&&(u.pathname+="/"),u}var mc=e=>e.join("/").replace(/\/\/+/g,"/"),hRe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mRe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,gRe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,wE=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Px(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var dH=["POST","PUT","PATCH","DELETE"],bRe=new Set(dH),yRe=["GET",...dH],vRe=new Set(yRe),xRe=new Set([301,302,303,307,308]),wRe=new Set([307,308]),oI={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},CRe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Cv={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},H_=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,SRe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),fH="remix-router-transitions",pH=Symbol("ResetLoaderData");function ERe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u";zn(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.hydrationRouteProperties||[],o=e.mapRouteProperties||SRe,i={},a=vE(e.routes,o,void 0,i),l,u=e.basename||"/",d=e.dataStrategy||IRe,f={unstable_middleware:!1,...e.future},m=null,g=new Set,w=null,C=null,S=null,E=e.hydrationData!=null,T=Nd(a,e.history.location,u),I=!1,k=null,R;if(T==null&&!e.patchRoutesOnNavigation){let he=gs(404,{pathname:e.history.location.pathname}),{matches:fe,route:xe}=Cj(a);R=!0,T=fe,k={[xe.id]:he}}else if(T&&!e.hydrationData&&Vr(T,a,e.history.location.pathname).active&&(T=null),T)if(T.some(he=>he.route.lazy))R=!1;else if(!T.some(he=>he.route.loader))R=!0;else{let he=e.hydrationData?e.hydrationData.loaderData:null,fe=e.hydrationData?e.hydrationData.errors:null;if(fe){let xe=T.findIndex(ze=>fe[ze.route.id]!==void 0);R=T.slice(0,xe+1).every(ze=>!nR(ze.route,he,fe))}else R=T.every(xe=>!nR(xe.route,he,fe))}else{R=!1,T=[];let he=Vr(null,a,e.history.location.pathname);he.active&&he.matches&&(I=!0,T=he.matches)}let P,O={historyAction:e.history.action,location:e.history.location,matches:T,initialized:R,navigation:oI,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||k,fetchers:new Map,blockers:new Map},j="POP",F=!1,D,_=!1,$=new Map,B=null,V=!1,q=!1,G=new Set,N=new Map,H=0,Y=-1,Q=new Map,W=new Set,K=new Map,J=new Map,ae=new Set,ce=new Map,de,re=null;function ke(){if(m=e.history.listen(({action:he,location:fe,delta:xe})=>{if(de){de(),de=void 0;return}Mo(ce.size===0||xe!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let ze=Yn({currentLocation:O.location,nextLocation:fe,historyAction:he});if(ze&&xe!=null){let Qe=new Promise(bt=>{de=bt});e.history.go(xe*-1),Nt(ze,{state:"blocked",location:fe,proceed(){Nt(ze,{state:"proceeding",proceed:void 0,reset:void 0,location:fe}),Qe.then(()=>e.history.go(xe))},reset(){let bt=new Map(O.blockers);bt.set(ze,Cv),le({blockers:bt})}});return}return be(he,fe)}),n){zRe(t,$);let he=()=>BRe(t,$);t.addEventListener("pagehide",he),B=()=>t.removeEventListener("pagehide",he)}return O.initialized||be("POP",O.location,{initialHydration:!0}),P}function Ce(){m&&m(),B&&B(),g.clear(),D&&D.abort(),O.fetchers.forEach((he,fe)=>ot(fe)),O.blockers.forEach((he,fe)=>Ct(fe))}function ie(he){return g.add(he),()=>g.delete(he)}function le(he,fe={}){O={...O,...he};let xe=[],ze=[];O.fetchers.forEach((Qe,bt)=>{Qe.state==="idle"&&(ae.has(bt)?xe.push(bt):ze.push(bt))}),ae.forEach(Qe=>{!O.fetchers.has(Qe)&&!N.has(Qe)&&xe.push(Qe)}),[...g].forEach(Qe=>Qe(O,{deletedFetchers:xe,viewTransitionOpts:fe.viewTransitionOpts,flushSync:fe.flushSync===!0})),xe.forEach(Qe=>ot(Qe)),ze.forEach(Qe=>O.fetchers.delete(Qe))}function ve(he,fe,{flushSync:xe}={}){var Ut,Gt;let ze=O.actionData!=null&&O.navigation.formMethod!=null&&Ba(O.navigation.formMethod)&&O.navigation.state==="loading"&&((Ut=he.state)==null?void 0:Ut._isRedirect)!==!0,Qe;fe.actionData?Object.keys(fe.actionData).length>0?Qe=fe.actionData:Qe=null:ze?Qe=O.actionData:Qe=null;let bt=fe.loaderData?xj(O.loaderData,fe.loaderData,fe.matches||[],fe.errors):O.loaderData,_t=O.blockers;_t.size>0&&(_t=new Map(_t),_t.forEach((Et,Lt)=>_t.set(Lt,Cv)));let St=F===!0||O.navigation.formMethod!=null&&Ba(O.navigation.formMethod)&&((Gt=he.state)==null?void 0:Gt._isRedirect)!==!0;l&&(a=l,l=void 0),V||j==="POP"||(j==="PUSH"?e.history.push(he,he.state):j==="REPLACE"&&e.history.replace(he,he.state));let Dt;if(j==="POP"){let Et=$.get(O.location.pathname);Et&&Et.has(he.pathname)?Dt={currentLocation:O.location,nextLocation:he}:$.has(he.pathname)&&(Dt={currentLocation:he,nextLocation:O.location})}else if(_){let Et=$.get(O.location.pathname);Et?Et.add(he.pathname):(Et=new Set([he.pathname]),$.set(O.location.pathname,Et)),Dt={currentLocation:O.location,nextLocation:he}}le({...fe,actionData:Qe,loaderData:bt,historyAction:j,location:he,initialized:!0,navigation:oI,revalidation:"idle",restoreScrollPosition:Xr(he,fe.matches||O.matches),preventScrollReset:St,blockers:_t},{viewTransitionOpts:Dt,flushSync:xe===!0}),j="POP",F=!1,_=!1,V=!1,q=!1,re==null||re.resolve(),re=null}async function ue(he,fe){if(typeof he=="number"){e.history.go(he);return}let xe=tR(O.location,O.matches,u,he,fe==null?void 0:fe.fromRouteId,fe==null?void 0:fe.relative),{path:ze,submission:Qe,error:bt}=dj(!1,xe,fe),_t=O.location,St=kx(O.location,ze,fe&&fe.state);St={...St,...e.history.encodeLocation(St)};let Dt=fe&&fe.replace!=null?fe.replace:void 0,Ut="PUSH";Dt===!0?Ut="REPLACE":Dt===!1||Qe!=null&&Ba(Qe.formMethod)&&Qe.formAction===O.location.pathname+O.location.search&&(Ut="REPLACE");let Gt=fe&&"preventScrollReset"in fe?fe.preventScrollReset===!0:void 0,Et=(fe&&fe.flushSync)===!0,Lt=Yn({currentLocation:_t,nextLocation:St,historyAction:Ut});if(Lt){Nt(Lt,{state:"blocked",location:St,proceed(){Nt(Lt,{state:"proceeding",proceed:void 0,reset:void 0,location:St}),ue(he,fe)},reset(){let gn=new Map(O.blockers);gn.set(Lt,Cv),le({blockers:gn})}});return}await be(Ut,St,{submission:Qe,pendingError:bt,preventScrollReset:Gt,replace:fe&&fe.replace,enableViewTransition:fe&&fe.viewTransition,flushSync:Et})}function me(){re||(re=HRe()),Pe(),le({revalidation:"loading"});let he=re.promise;return O.navigation.state==="submitting"?he:O.navigation.state==="idle"?(be(O.historyAction,O.location,{startUninterruptedRevalidation:!0}),he):(be(j||O.historyAction,O.navigation.location,{overrideNavigation:O.navigation,enableViewTransition:_===!0}),he)}async function be(he,fe,xe){D&&D.abort(),D=null,j=he,V=(xe&&xe.startUninterruptedRevalidation)===!0,Er(O.location,O.matches),F=(xe&&xe.preventScrollReset)===!0,_=(xe&&xe.enableViewTransition)===!0;let ze=l||a,Qe=xe&&xe.overrideNavigation,bt=xe!=null&&xe.initialHydration&&O.matches&&O.matches.length>0&&!I?O.matches:Nd(ze,fe,u),_t=(xe&&xe.flushSync)===!0;if(bt&&O.initialized&&!q&&LRe(O.location,fe)&&!(xe&&xe.submission&&Ba(xe.submission.formMethod))){ve(fe,{matches:bt},{flushSync:_t});return}let St=Vr(bt,ze,fe.pathname);if(St.active&&St.matches&&(bt=St.matches),!bt){let{error:hr,notFoundMatches:Ne,route:je}=pr(fe.pathname);ve(fe,{matches:Ne,loaderData:{},errors:{[je.id]:hr}},{flushSync:_t});return}D=new AbortController;let Dt=Gg(e.history,fe,D.signal,xe&&xe.submission),Ut=new cj(e.unstable_getContext?await e.unstable_getContext():void 0),Gt;if(xe&&xe.pendingError)Gt=[Bp(bt).route.id,{type:"error",error:xe.pendingError}];else if(xe&&xe.submission&&Ba(xe.submission.formMethod)){let hr=await Fe(Dt,fe,xe.submission,bt,Ut,St.active,xe&&xe.initialHydration===!0,{replace:xe.replace,flushSync:_t});if(hr.shortCircuited)return;if(hr.pendingActionResult){let[Ne,je]=hr.pendingActionResult;if(za(je)&&Px(je.error)&&je.error.status===404){D=null,ve(fe,{matches:hr.matches,loaderData:{},errors:{[Ne]:je.error}});return}}bt=hr.matches||bt,Gt=hr.pendingActionResult,Qe=iI(fe,xe.submission),_t=!1,St.active=!1,Dt=Gg(e.history,Dt.url,Dt.signal)}let{shortCircuited:Et,matches:Lt,loaderData:gn,errors:Kn}=await Ze(Dt,fe,bt,Ut,St.active,Qe,xe&&xe.submission,xe&&xe.fetcherSubmission,xe&&xe.replace,xe&&xe.initialHydration===!0,_t,Gt);Et||(D=null,ve(fe,{matches:Lt||bt,...wj(Gt),loaderData:gn,errors:Kn}))}async function Fe(he,fe,xe,ze,Qe,bt,_t,St={}){Pe();let Dt=FRe(fe,xe);if(le({navigation:Dt},{flushSync:St.flushSync===!0}),bt){let Et=await Ar(ze,fe.pathname,he.signal);if(Et.type==="aborted")return{shortCircuited:!0};if(Et.type==="error"){let Lt=Bp(Et.partialMatches).route.id;return{matches:Et.partialMatches,pendingActionResult:[Lt,{type:"error",error:Et.error}]}}else if(Et.matches)ze=Et.matches;else{let{notFoundMatches:Lt,error:gn,route:Kn}=pr(fe.pathname);return{matches:Lt,pendingActionResult:[Kn.id,{type:"error",error:gn}]}}}let Ut,Gt=Nv(ze,fe);if(!Gt.route.action&&!Gt.route.lazy)Ut={type:"error",error:gs(405,{method:he.method,pathname:fe.pathname,routeId:Gt.route.id})};else{let Et=l0(o,i,he,ze,Gt,_t?[]:r,Qe),Lt=await De(he,Et,Qe,null);if(Ut=Lt[Gt.route.id],!Ut){for(let gn of ze)if(Lt[gn.route.id]){Ut=Lt[gn.route.id];break}}if(he.signal.aborted)return{shortCircuited:!0}}if(Zp(Ut)){let Et;return St&&St.replace!=null?Et=St.replace:Et=bj(Ut.response.headers.get("Location"),new URL(he.url),u)===O.location.pathname+O.location.search,await se(he,Ut,!0,{submission:xe,replace:Et}),{shortCircuited:!0}}if(za(Ut)){let Et=Bp(ze,Gt.route.id);return(St&&St.replace)!==!0&&(j="PUSH"),{matches:ze,pendingActionResult:[Et.route.id,Ut,Gt.route.id]}}return{matches:ze,pendingActionResult:[Gt.route.id,Ut]}}async function Ze(he,fe,xe,ze,Qe,bt,_t,St,Dt,Ut,Gt,Et){let Lt=bt||iI(fe,_t),gn=_t||St||Ej(Lt),Kn=!V&&!Ut;if(Qe){if(Kn){let Zr=We(Et);le({navigation:Lt,...Zr!==void 0?{actionData:Zr}:{}},{flushSync:Gt})}let fn=await Ar(xe,fe.pathname,he.signal);if(fn.type==="aborted")return{shortCircuited:!0};if(fn.type==="error"){let Zr=Bp(fn.partialMatches).route.id;return{matches:fn.partialMatches,loaderData:{},errors:{[Zr]:fn.error}}}else if(fn.matches)xe=fn.matches;else{let{error:Zr,notFoundMatches:dn,route:fo}=pr(fe.pathname);return{matches:dn,loaderData:{},errors:{[fo.id]:Zr}}}}let hr=l||a,{dsMatches:Ne,revalidatingFetchers:je}=fj(he,ze,o,i,e.history,O,xe,gn,fe,Ut?[]:r,Ut===!0,q,G,ae,K,W,hr,u,e.patchRoutesOnNavigation!=null,Et);if(Y=++H,!e.dataStrategy&&!Ne.some(fn=>fn.shouldLoad)&&je.length===0){let fn=Ht();return ve(fe,{matches:xe,loaderData:{},errors:Et&&za(Et[1])?{[Et[0]]:Et[1].error}:null,...wj(Et),...fn?{fetchers:new Map(O.fetchers)}:{}},{flushSync:Gt}),{shortCircuited:!0}}if(Kn){let fn={};if(!Qe){fn.navigation=Lt;let Zr=We(Et);Zr!==void 0&&(fn.actionData=Zr)}je.length>0&&(fn.fetchers=_e(je)),le(fn,{flushSync:Gt})}je.forEach(fn=>{Ue(fn.key),fn.controller&&N.set(fn.key,fn.controller)});let Tt=()=>je.forEach(fn=>Ue(fn.key));D&&D.signal.addEventListener("abort",Tt);let{loaderResults:Zt,fetcherResults:Ft}=await ye(Ne,je,he,ze);if(he.signal.aborted)return{shortCircuited:!0};D&&D.signal.removeEventListener("abort",Tt),je.forEach(fn=>N.delete(fn.key));let vn=IS(Zt);if(vn)return await se(he,vn.result,!0,{replace:Dt}),{shortCircuited:!0};if(vn=IS(Ft),vn)return W.add(vn.key),await se(he,vn.result,!0,{replace:Dt}),{shortCircuited:!0};let{loaderData:ir,errors:$r}=vj(O,xe,Zt,Et,je,Ft);Ut&&O.errors&&($r={...O.errors,...$r});let Ds=Ht(),gi=pt(Y),Ji=Ds||gi||je.length>0;return{matches:xe,loaderData:ir,errors:$r,...Ji?{fetchers:new Map(O.fetchers)}:{}}}function We(he){if(he&&!za(he[1]))return{[he[0]]:he[1].data};if(O.actionData)return Object.keys(O.actionData).length===0?null:O.actionData}function _e(he){return he.forEach(fe=>{let xe=O.fetchers.get(fe.key),ze=Sv(void 0,xe?xe.data:void 0);O.fetchers.set(fe.key,ze)}),new Map(O.fetchers)}async function ft(he,fe,xe,ze){Ue(he);let Qe=(ze&&ze.flushSync)===!0,bt=l||a,_t=tR(O.location,O.matches,u,xe,fe,ze==null?void 0:ze.relative),St=Nd(bt,_t,u),Dt=Vr(St,bt,_t);if(Dt.active&&Dt.matches&&(St=Dt.matches),!St){Ke(he,fe,gs(404,{pathname:_t}),{flushSync:Qe});return}let{path:Ut,submission:Gt,error:Et}=dj(!0,_t,ze);if(Et){Ke(he,fe,Et,{flushSync:Qe});return}let Lt=Nv(St,Ut),gn=new cj(e.unstable_getContext?await e.unstable_getContext():void 0),Kn=(ze&&ze.preventScrollReset)===!0;if(Gt&&Ba(Gt.formMethod)){await nt(he,fe,Ut,Lt,St,gn,Dt.active,Qe,Kn,Gt);return}K.set(he,{routeId:fe,path:Ut}),await dt(he,fe,Ut,Lt,St,gn,Dt.active,Qe,Kn,Gt)}async function nt(he,fe,xe,ze,Qe,bt,_t,St,Dt,Ut){Pe(),K.delete(he);function Gt(er){if(!er.route.action&&!er.route.lazy){let El=gs(405,{method:Ut.formMethod,pathname:xe,routeId:fe});return Ke(he,fe,El,{flushSync:St}),!0}return!1}if(!_t&&Gt(ze))return;let Et=O.fetchers.get(he);qe(he,NRe(Ut,Et),{flushSync:St});let Lt=new AbortController,gn=Gg(e.history,xe,Lt.signal,Ut);if(_t){let er=await Ar(Qe,xe,gn.signal,he);if(er.type==="aborted")return;if(er.type==="error"){Ke(he,fe,er.error,{flushSync:St});return}else if(er.matches){if(Qe=er.matches,ze=Nv(Qe,xe),Gt(ze))return}else{Ke(he,fe,gs(404,{pathname:xe}),{flushSync:St});return}}N.set(he,Lt);let Kn=H,hr=l0(o,i,gn,Qe,ze,r,bt),je=(await De(gn,hr,bt,he))[ze.route.id];if(gn.signal.aborted){N.get(he)===Lt&&N.delete(he);return}if(ae.has(he)){if(Zp(je)||za(je)){qe(he,Od(void 0));return}}else{if(Zp(je))if(N.delete(he),Y>Kn){qe(he,Od(void 0));return}else return W.add(he),qe(he,Sv(Ut)),se(gn,je,!1,{fetcherSubmission:Ut,preventScrollReset:Dt});if(za(je)){Ke(he,fe,je.error);return}}let Tt=O.navigation.location||O.location,Zt=Gg(e.history,Tt,Lt.signal),Ft=l||a,vn=O.navigation.state!=="idle"?Nd(Ft,O.navigation.location,u):O.matches;zn(vn,"Didn't find any matches after fetcher action");let ir=++H;Q.set(he,ir);let $r=Sv(Ut,je.data);O.fetchers.set(he,$r);let{dsMatches:Ds,revalidatingFetchers:gi}=fj(Zt,bt,o,i,e.history,O,vn,Ut,Tt,r,!1,q,G,ae,K,W,Ft,u,e.patchRoutesOnNavigation!=null,[ze.route.id,je]);gi.filter(er=>er.key!==he).forEach(er=>{let El=er.key,Ou=O.fetchers.get(El),oi=Sv(void 0,Ou?Ou.data:void 0);O.fetchers.set(El,oi),Ue(El),er.controller&&N.set(El,er.controller)}),le({fetchers:new Map(O.fetchers)});let Ji=()=>gi.forEach(er=>Ue(er.key));Lt.signal.addEventListener("abort",Ji);let{loaderResults:fn,fetcherResults:Zr}=await ye(Ds,gi,Zt,bt);if(Lt.signal.aborted)return;if(Lt.signal.removeEventListener("abort",Ji),Q.delete(he),N.delete(he),gi.forEach(er=>N.delete(er.key)),O.fetchers.has(he)){let er=Od(je.data);O.fetchers.set(he,er)}let dn=IS(fn);if(dn)return se(Zt,dn.result,!1,{preventScrollReset:Dt});if(dn=IS(Zr),dn)return W.add(dn.key),se(Zt,dn.result,!1,{preventScrollReset:Dt});let{loaderData:fo,errors:Vo}=vj(O,vn,fn,void 0,gi,Zr);pt(ir),O.navigation.state==="loading"&&ir>Y?(zn(j,"Expected pending action"),D&&D.abort(),ve(O.navigation.location,{matches:vn,loaderData:fo,errors:Vo,fetchers:new Map(O.fetchers)})):(le({errors:Vo,loaderData:xj(O.loaderData,fo,vn,Vo),fetchers:new Map(O.fetchers)}),q=!1)}async function dt(he,fe,xe,ze,Qe,bt,_t,St,Dt,Ut){let Gt=O.fetchers.get(he);qe(he,Sv(Ut,Gt?Gt.data:void 0),{flushSync:St});let Et=new AbortController,Lt=Gg(e.history,xe,Et.signal);if(_t){let je=await Ar(Qe,xe,Lt.signal,he);if(je.type==="aborted")return;if(je.type==="error"){Ke(he,fe,je.error,{flushSync:St});return}else if(je.matches)Qe=je.matches,ze=Nv(Qe,xe);else{Ke(he,fe,gs(404,{pathname:xe}),{flushSync:St});return}}N.set(he,Et);let gn=H,Kn=l0(o,i,Lt,Qe,ze,r,bt),Ne=(await De(Lt,Kn,bt,he))[ze.route.id];if(N.get(he)===Et&&N.delete(he),!Lt.signal.aborted){if(ae.has(he)){qe(he,Od(void 0));return}if(Zp(Ne))if(Y>gn){qe(he,Od(void 0));return}else{W.add(he),await se(Lt,Ne,!1,{preventScrollReset:Dt});return}if(za(Ne)){Ke(he,fe,Ne.error);return}qe(he,Od(Ne.data))}}async function se(he,fe,xe,{submission:ze,fetcherSubmission:Qe,preventScrollReset:bt,replace:_t}={}){fe.response.headers.has("X-Remix-Revalidate")&&(q=!0);let St=fe.response.headers.get("Location");zn(St,"Expected a Location header on the redirect Response"),St=bj(St,new URL(he.url),u);let Dt=kx(O.location,St,{_isRedirect:!0});if(n){let Kn=!1;if(fe.response.headers.has("X-Remix-Reload-Document"))Kn=!0;else if(H_.test(St)){const hr=sH(St,!0);Kn=hr.origin!==t.location.origin||Is(hr.pathname,u)==null}if(Kn){_t?t.location.replace(St):t.location.assign(St);return}}D=null;let Ut=_t===!0||fe.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Gt,formAction:Et,formEncType:Lt}=O.navigation;!ze&&!Qe&&Gt&&Et&&Lt&&(ze=Ej(O.navigation));let gn=ze||Qe;if(wRe.has(fe.response.status)&&gn&&Ba(gn.formMethod))await be(Ut,Dt,{submission:{...gn,formAction:St},preventScrollReset:bt||F,enableViewTransition:xe?_:void 0});else{let Kn=iI(Dt,ze);await be(Ut,Dt,{overrideNavigation:Kn,fetcherSubmission:Qe,preventScrollReset:bt||F,enableViewTransition:xe?_:void 0})}}async function De(he,fe,xe,ze){let Qe,bt={};try{Qe=await ARe(d,he,fe,ze,xe,!1)}catch(_t){return fe.filter(St=>St.shouldLoad).forEach(St=>{bt[St.route.id]={type:"error",error:_t}}),bt}if(he.signal.aborted)return bt;for(let[_t,St]of Object.entries(Qe))if($Re(St)){let Dt=St.result;bt[_t]={type:"redirect",response:_Re(Dt,he,_t,fe,u)}}else bt[_t]=await ORe(St);return bt}async function ye(he,fe,xe,ze){let Qe=De(xe,he,ze,null),bt=Promise.all(fe.map(async Dt=>{if(Dt.matches&&Dt.match&&Dt.request&&Dt.controller){let Gt=(await De(Dt.request,Dt.matches,ze,Dt.key))[Dt.match.route.id];return{[Dt.key]:Gt}}else return Promise.resolve({[Dt.key]:{type:"error",error:gs(404,{pathname:Dt.path})}})})),_t=await Qe,St=(await bt).reduce((Dt,Ut)=>Object.assign(Dt,Ut),{});return{loaderResults:_t,fetcherResults:St}}function Pe(){q=!0,K.forEach((he,fe)=>{N.has(fe)&&G.add(fe),Ue(fe)})}function qe(he,fe,xe={}){O.fetchers.set(he,fe),le({fetchers:new Map(O.fetchers)},{flushSync:(xe&&xe.flushSync)===!0})}function Ke(he,fe,xe,ze={}){let Qe=Bp(O.matches,fe);ot(he),le({errors:{[Qe.route.id]:xe},fetchers:new Map(O.fetchers)},{flushSync:(ze&&ze.flushSync)===!0})}function it(he){return J.set(he,(J.get(he)||0)+1),ae.has(he)&&ae.delete(he),O.fetchers.get(he)||CRe}function ot(he){let fe=O.fetchers.get(he);N.has(he)&&!(fe&&fe.state==="loading"&&Q.has(he))&&Ue(he),K.delete(he),Q.delete(he),W.delete(he),ae.delete(he),G.delete(he),O.fetchers.delete(he)}function gt(he){let fe=(J.get(he)||0)-1;fe<=0?(J.delete(he),ae.add(he)):J.set(he,fe),le({fetchers:new Map(O.fetchers)})}function Ue(he){let fe=N.get(he);fe&&(fe.abort(),N.delete(he))}function jt(he){for(let fe of he){let xe=it(fe),ze=Od(xe.data);O.fetchers.set(fe,ze)}}function Ht(){let he=[],fe=!1;for(let xe of W){let ze=O.fetchers.get(xe);zn(ze,`Expected fetcher: ${xe}`),ze.state==="loading"&&(W.delete(xe),he.push(xe),fe=!0)}return jt(he),fe}function pt(he){let fe=[];for(let[xe,ze]of Q)if(ze<he){let Qe=O.fetchers.get(xe);zn(Qe,`Expected fetcher: ${xe}`),Qe.state==="loading"&&(Ue(xe),Q.delete(xe),fe.push(xe))}return jt(fe),fe.length>0}function ht(he,fe){let xe=O.blockers.get(he)||Cv;return ce.get(he)!==fe&&ce.set(he,fe),xe}function Ct(he){O.blockers.delete(he),ce.delete(he)}function Nt(he,fe){let xe=O.blockers.get(he)||Cv;zn(xe.state==="unblocked"&&fe.state==="blocked"||xe.state==="blocked"&&fe.state==="blocked"||xe.state==="blocked"&&fe.state==="proceeding"||xe.state==="blocked"&&fe.state==="unblocked"||xe.state==="proceeding"&&fe.state==="unblocked",`Invalid blocker state transition: ${xe.state} -> ${fe.state}`);let ze=new Map(O.blockers);ze.set(he,fe),le({blockers:ze})}function Yn({currentLocation:he,nextLocation:fe,historyAction:xe}){if(ce.size===0)return;ce.size>1&&Mo(!1,"A router only supports one blocker at a time");let ze=Array.from(ce.entries()),[Qe,bt]=ze[ze.length-1],_t=O.blockers.get(Qe);if(!(_t&&_t.state==="proceeding")&&bt({currentLocation:he,nextLocation:fe,historyAction:xe}))return Qe}function pr(he){let fe=gs(404,{pathname:he}),xe=l||a,{matches:ze,route:Qe}=Cj(xe);return{notFoundMatches:ze,route:Qe,error:fe}}function Go(he,fe,xe){if(w=he,S=fe,C=xe||null,!E&&O.navigation===oI){E=!0;let ze=Xr(O.location,O.matches);ze!=null&&le({restoreScrollPosition:ze})}return()=>{w=null,S=null,C=null}}function Jn(he,fe){return C&&C(he,fe.map(ze=>JAe(ze,O.loaderData)))||he.key}function Er(he,fe){if(w&&S){let xe=Jn(he,fe);w[xe]=S()}}function Xr(he,fe){if(w){let xe=Jn(he,fe),ze=w[xe];if(typeof ze=="number")return ze}return null}function Vr(he,fe,xe){if(e.patchRoutesOnNavigation)if(he){if(Object.keys(he[0].params).length>0)return{active:!0,matches:n2(fe,xe,u,!0)}}else return{active:!0,matches:n2(fe,xe,u,!0)||[]};return{active:!1,matches:null}}async function Ar(he,fe,xe,ze){if(!e.patchRoutesOnNavigation)return{type:"success",matches:he};let Qe=he;for(;;){let bt=l==null,_t=l||a,St=i;try{await e.patchRoutesOnNavigation({signal:xe,path:fe,matches:Qe,fetcherKey:ze,patch:(Gt,Et)=>{xe.aborted||pj(Gt,Et,_t,St,o)}})}catch(Gt){return{type:"error",error:Gt,partialMatches:Qe}}finally{bt&&!xe.aborted&&(a=[...a])}if(xe.aborted)return{type:"aborted"};let Dt=Nd(_t,fe,u);if(Dt)return{type:"success",matches:Dt};let Ut=n2(_t,fe,u,!0);if(!Ut||Qe.length===Ut.length&&Qe.every((Gt,Et)=>Gt.route.id===Ut[Et].route.id))return{type:"success",matches:null};Qe=Ut}}function $o(he){i={},l=vE(he,o,void 0,i)}function Kt(he,fe){let xe=l==null;pj(he,fe,l||a,i,o),xe&&(a=[...a],le({}))}return P={get basename(){return u},get future(){return f},get state(){return O},get routes(){return a},get window(){return t},initialize:ke,subscribe:ie,enableScrollRestoration:Go,navigate:ue,fetch:ft,revalidate:me,createHref:he=>e.history.createHref(he),encodeLocation:he=>e.history.encodeLocation(he),getFetcher:it,deleteFetcher:gt,dispose:Ce,getBlocker:ht,deleteBlocker:Ct,patchRoutes:Kt,_internalFetchControllers:N,_internalSetRoutes:$o},P}function TRe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tR(e,t,n,r,o,i){let a,l;if(o){a=[];for(let d of t)if(a.push(d),d.route.id===o){l=d;break}}else a=t,l=t[t.length-1];let u=B_(r||".",z_(a),Is(e.pathname,n)||e.pathname,i==="path");if(r==null&&(u.search=e.search,u.hash=e.hash),(r==null||r===""||r===".")&&l){let d=U_(u.search);if(l.route.index&&!d)u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index";else if(!l.route.index&&d){let f=new URLSearchParams(u.search),m=f.getAll("index");f.delete("index"),m.filter(w=>w).forEach(w=>f.append("index",w));let g=f.toString();u.search=g?`?${g}`:""}}return n!=="/"&&(u.pathname=u.pathname==="/"?n:mc([n,u.pathname])),Jd(u)}function dj(e,t,n){if(!n||!TRe(n))return{path:t};if(n.formMethod&&!jRe(n.formMethod))return{path:t,error:gs(405,{method:n.formMethod})};let r=()=>({path:t,error:gs(400,{type:"invalid-body"})}),i=(n.formMethod||"get").toUpperCase(),a=vH(t);if(n.body!==void 0){if(n.formEncType==="text/plain"){if(!Ba(i))return r();let m=typeof n.body=="string"?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((g,[w,C])=>`${g}${w}=${C}
`,""):String(n.body);return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:void 0,text:m}}}else if(n.formEncType==="application/json"){if(!Ba(i))return r();try{let m=typeof n.body=="string"?JSON.parse(n.body):n.body;return{path:t,submission:{formMethod:i,formAction:a,formEncType:n.formEncType,formData:void 0,json:m,text:void 0}}}catch{return r()}}}zn(typeof FormData=="function","FormData is not available in this environment");let l,u;if(n.formData)l=oR(n.formData),u=n.formData;else if(n.body instanceof FormData)l=oR(n.body),u=n.body;else if(n.body instanceof URLSearchParams)l=n.body,u=yj(l);else if(n.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(n.body),u=yj(l)}catch{return r()}let d={formMethod:i,formAction:a,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(Ba(d.formMethod))return{path:t,submission:d};let f=hf(t);return e&&f.search&&U_(f.search)&&l.append("index",""),f.search=`?${l}`,{path:Jd(f),submission:d}}function fj(e,t,n,r,o,i,a,l,u,d,f,m,g,w,C,S,E,T,I,k){var V;let R=k?za(k[1])?k[1].error:k[1].data:void 0,P=o.createURL(i.location),O=o.createURL(u),j;if(f&&i.errors){let q=Object.keys(i.errors)[0];j=a.findIndex(G=>G.route.id===q)}else if(k&&za(k[1])){let q=k[0];j=a.findIndex(G=>G.route.id===q)-1}let F=k?k[1].statusCode:void 0,D=F&&F>=400,_={currentUrl:P,currentParams:((V=i.matches[0])==null?void 0:V.params)||{},nextUrl:O,nextParams:a[0].params,...l,actionResult:R,actionStatus:F},$=a.map((q,G)=>{let{route:N}=q,H=null;if(j!=null&&G>j?H=!1:N.lazy?H=!0:N.loader==null?H=!1:f?H=nR(N,i.loaderData,i.errors):MRe(i.loaderData,i.matches[G],q)&&(H=!0),H!==null)return rR(n,r,e,q,d,t,H);let Y=D?!1:m||P.pathname+P.search===O.pathname+O.search||P.search!==O.search||kRe(i.matches[G],q),Q={..._,defaultShouldRevalidate:Y},W=CE(q,Q);return rR(n,r,e,q,d,t,W,Q)}),B=[];return C.forEach((q,G)=>{if(f||!a.some(ae=>ae.route.id===q.routeId)||w.has(G))return;let N=i.fetchers.get(G),H=N&&N.state!=="idle"&&N.data===void 0,Y=Nd(E,q.path,T);if(!Y){if(I&&H)return;B.push({key:G,routeId:q.routeId,path:q.path,matches:null,match:null,request:null,controller:null});return}if(S.has(G))return;let Q=Nv(Y,q.path),W=new AbortController,K=Gg(o,q.path,W.signal),J=null;if(g.has(G))g.delete(G),J=l0(n,r,K,Y,Q,d,t);else if(H)m&&(J=l0(n,r,K,Y,Q,d,t));else{let ae={..._,defaultShouldRevalidate:D?!1:m};CE(Q,ae)&&(J=l0(n,r,K,Y,Q,d,t,ae))}J&&B.push({key:G,routeId:q.routeId,path:q.path,matches:J,match:Q,request:K,controller:W})}),{dsMatches:$,revalidatingFetchers:B}}function nR(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&e.id in t,o=n!=null&&n[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function MRe(e,t,n){let r=!t||n.route.id!==t.route.id,o=!e.hasOwnProperty(n.route.id);return r||o}function kRe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function CE(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}function pj(e,t,n,r,o){let i;if(e){let u=r[e];zn(u,`No route found to patch children into: routeId = ${e}`),u.children||(u.children=[]),i=u.children}else i=n;let a=t.filter(u=>!i.some(d=>hH(u,d))),l=vE(a,o,[e||"_","patch",String((i==null?void 0:i.length)||"0")],r);i.push(...l)}function hH(e,t){return"id"in e&&"id"in t&&e.id===t.id?!0:e.index===t.index&&e.path===t.path&&e.caseSensitive===t.caseSensitive?(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)?!0:e.children.every((n,r)=>{var o;return(o=t.children)==null?void 0:o.some(i=>hH(n,i))}):!1}var hj=new WeakMap,mH=({key:e,route:t,manifest:n,mapRouteProperties:r})=>{let o=n[t.id];if(zn(o,"No route found in manifest"),!o.lazy||typeof o.lazy!="object")return;let i=o.lazy[e];if(!i)return;let a=hj.get(o);a||(a={},hj.set(o,a));let l=a[e];if(l)return l;let u=(async()=>{let d=KAe(e),m=o[e]!==void 0&&e!=="hasErrorBoundary";if(d)Mo(!d,"Route property "+e+" is not a supported lazy route property. This property will be ignored."),a[e]=Promise.resolve();else if(m)Mo(!1,`Route "${o.id}" has a static property "${e}" defined. The lazy property will be ignored.`);else{let g=await i();g!=null&&(Object.assign(o,{[e]:g}),Object.assign(o,r(o)))}typeof o.lazy=="object"&&(o.lazy[e]=void 0,Object.values(o.lazy).every(g=>g===void 0)&&(o.lazy=void 0))})();return a[e]=u,u},mj=new WeakMap;function PRe(e,t,n,r,o){let i=n[e.id];if(zn(i,"No route found in manifest"),!e.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof e.lazy=="function"){let f=mj.get(i);if(f)return{lazyRoutePromise:f,lazyHandlerPromise:f};let m=(async()=>{zn(typeof e.lazy=="function","No lazy route function found");let g=await e.lazy(),w={};for(let C in g){let S=g[C];if(S===void 0)continue;let E=ZAe(C),I=i[C]!==void 0&&C!=="hasErrorBoundary";E?Mo(!E,"Route property "+C+" is not a supported property to be returned from a lazy route function. This property will be ignored."):I?Mo(!I,`Route "${i.id}" has a static property "${C}" defined but its lazy function is also returning a value for this property. The lazy route property "${C}" will be ignored.`):w[C]=S}Object.assign(i,w),Object.assign(i,{...r(i),lazy:void 0})})();return mj.set(i,m),m.catch(()=>{}),{lazyRoutePromise:m,lazyHandlerPromise:m}}let a=Object.keys(e.lazy),l=[],u;for(let f of a){if(o&&o.includes(f))continue;let m=mH({key:f,route:e,manifest:n,mapRouteProperties:r});m&&(l.push(m),f===t&&(u=m))}let d=l.length>0?Promise.all(l).then(()=>{}):void 0;return d==null||d.catch(()=>{}),u==null||u.catch(()=>{}),{lazyRoutePromise:d,lazyHandlerPromise:u}}async function gj(e){let t=e.matches.filter(o=>o.shouldLoad),n={};return(await Promise.all(t.map(o=>o.resolve()))).forEach((o,i)=>{n[t[i].route.id]=o}),n}async function IRe(e){return e.matches.some(t=>t.route.unstable_middleware)?gH(e,!1,()=>gj(e),(t,n)=>({[n]:{type:"error",result:t}})):gj(e)}async function gH(e,t,n,r){let{matches:o,request:i,params:a,context:l}=e,u={handlerResult:void 0};try{let d=o.flatMap(m=>m.route.unstable_middleware?m.route.unstable_middleware.map(g=>[m.route.id,g]):[]),f=await bH({request:i,params:a,context:l},d,t,u,n);return t?f:u.handlerResult}catch(d){if(!u.middlewareError)throw d;let f=await r(u.middlewareError.error,u.middlewareError.routeId);return u.handlerResult?Object.assign(u.handlerResult,f):f}}async function bH(e,t,n,r,o,i=0){let{request:a}=e;if(a.signal.aborted)throw a.signal.reason?a.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${a.method} ${a.url}`);let l=t[i];if(!l)return r.handlerResult=await o(),r.handlerResult;let[u,d]=l,f=!1,m,g=async()=>{if(f)throw new Error("You may only call `next()` once per middleware");f=!0,await bH(e,t,n,r,o,i+1)};try{let w=await d({request:e.request,params:e.params,context:e.context},g);return f?w===void 0?m:w:g()}catch(w){throw r.middlewareError?r.middlewareError.error!==w&&(r.middlewareError={routeId:u,error:w}):r.middlewareError={routeId:u,error:w},w}}function yH(e,t,n,r,o){let i=mH({key:"unstable_middleware",route:r.route,manifest:t,mapRouteProperties:e}),a=PRe(r.route,Ba(n.method)?"action":"loader",t,e,o);return{middleware:i,route:a.lazyRoutePromise,handler:a.lazyHandlerPromise}}function rR(e,t,n,r,o,i,a,l=null){let u=!1,d=yH(e,t,n,r,o);return{...r,_lazyPromises:d,shouldLoad:a,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler(f){return u=!0,l?typeof f=="boolean"?CE(r,{...l,defaultShouldRevalidate:f}):CE(r,l):a},resolve(f){return u||a||f&&n.method==="GET"&&(r.route.lazy||r.route.loader)?RRe({request:n,match:r,lazyHandlerPromise:d==null?void 0:d.handler,lazyRoutePromise:d==null?void 0:d.route,handlerOverride:f,scopedContext:i}):Promise.resolve({type:"data",result:void 0})}}}function l0(e,t,n,r,o,i,a,l=null){return r.map(u=>u.route.id!==o.route.id?{...u,shouldLoad:!1,unstable_shouldRevalidateArgs:l,unstable_shouldCallHandler:()=>!1,_lazyPromises:yH(e,t,n,u,i),resolve:()=>Promise.resolve({type:"data",result:void 0})}:rR(e,t,n,u,i,a,!0,l))}async function ARe(e,t,n,r,o,i){n.some(d=>{var f;return(f=d._lazyPromises)==null?void 0:f.middleware})&&await Promise.all(n.map(d=>{var f;return(f=d._lazyPromises)==null?void 0:f.middleware}));let a={request:t,params:n[0].params,context:o,matches:n},u=await e({...a,fetcherKey:r,unstable_runClientMiddleware:d=>{let f=a;return gH(f,!1,()=>d({...f,fetcherKey:r,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(m,g)=>({[g]:{type:"error",result:m}}))}});try{await Promise.all(n.flatMap(d=>{var f,m;return[(f=d._lazyPromises)==null?void 0:f.handler,(m=d._lazyPromises)==null?void 0:m.route]}))}catch{}return u}async function RRe({request:e,match:t,lazyHandlerPromise:n,lazyRoutePromise:r,handlerOverride:o,scopedContext:i}){let a,l,u=Ba(e.method),d=u?"action":"loader",f=m=>{let g,w=new Promise((E,T)=>g=T);l=()=>g(),e.signal.addEventListener("abort",l);let C=E=>typeof m!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${d}" [routeId: ${t.route.id}]`)):m({request:e,params:t.params,context:i},...E!==void 0?[E]:[]),S=(async()=>{try{return{type:"data",result:await(o?o(T=>C(T)):C())}}catch(E){return{type:"error",result:E}}})();return Promise.race([S,w])};try{let m=u?t.route.action:t.route.loader;if(n||r)if(m){let g,[w]=await Promise.all([f(m).catch(C=>{g=C}),n,r]);if(g!==void 0)throw g;a=w}else{await n;let g=u?t.route.action:t.route.loader;if(g)[a]=await Promise.all([f(g),r]);else if(d==="action"){let w=new URL(e.url),C=w.pathname+w.search;throw gs(405,{method:e.method,pathname:C,routeId:t.route.id})}else return{type:"data",result:void 0}}else if(m)a=await f(m);else{let g=new URL(e.url),w=g.pathname+g.search;throw gs(404,{pathname:w})}}catch(m){return{type:"error",result:m}}finally{l&&e.signal.removeEventListener("abort",l)}return a}async function ORe(e){var r,o,i,a,l,u;let{result:t,type:n}=e;if(xH(t)){let d;try{let f=t.headers.get("Content-Type");f&&/\bapplication\/json\b/.test(f)?t.body==null?d=null:d=await t.json():d=await t.text()}catch(f){return{type:"error",error:f}}return n==="error"?{type:"error",error:new wE(t.status,t.statusText,d),statusCode:t.status,headers:t.headers}:{type:"data",data:d,statusCode:t.status,headers:t.headers}}return n==="error"?Sj(t)?t.data instanceof Error?{type:"error",error:t.data,statusCode:(r=t.init)==null?void 0:r.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}:{type:"error",error:new wE(((i=t.init)==null?void 0:i.status)||500,void 0,t.data),statusCode:Px(t)?t.status:void 0,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}:{type:"error",error:t,statusCode:Px(t)?t.status:void 0}:Sj(t)?{type:"data",data:t.data,statusCode:(l=t.init)==null?void 0:l.status,headers:(u=t.init)!=null&&u.headers?new Headers(t.init.headers):void 0}:{type:"data",data:t}}function _Re(e,t,n,r,o){let i=e.headers.get("Location");if(zn(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!H_.test(i)){let a=r.slice(0,r.findIndex(l=>l.route.id===n)+1);i=tR(new URL(t.url),a,o,i),e.headers.set("Location",i)}return e}function bj(e,t,n){if(H_.test(e)){let r=e,o=r.startsWith("//")?new URL(t.protocol+r):new URL(r),i=Is(o.pathname,n)!=null;if(o.origin===t.origin&&i)return o.pathname+o.search+o.hash}return e}function Gg(e,t,n,r){let o=e.createURL(vH(t)).toString(),i={signal:n};if(r&&Ba(r.formMethod)){let{formMethod:a,formEncType:l}=r;i.method=a.toUpperCase(),l==="application/json"?(i.headers=new Headers({"Content-Type":l}),i.body=JSON.stringify(r.json)):l==="text/plain"?i.body=r.text:l==="application/x-www-form-urlencoded"&&r.formData?i.body=oR(r.formData):i.body=r.formData}return new Request(o,i)}function oR(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function yj(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function DRe(e,t,n,r=!1,o=!1){let i={},a=null,l,u=!1,d={},f=n&&za(n[1])?n[1].error:void 0;return e.forEach(m=>{if(!(m.route.id in t))return;let g=m.route.id,w=t[g];if(zn(!Zp(w),"Cannot handle redirect results in processLoaderData"),za(w)){let C=w.error;if(f!==void 0&&(C=f,f=void 0),a=a||{},o)a[g]=C;else{let S=Bp(e,g);a[S.route.id]==null&&(a[S.route.id]=C)}r||(i[g]=pH),u||(u=!0,l=Px(w.error)?w.error.status:500),w.headers&&(d[g]=w.headers)}else i[g]=w.data,w.statusCode&&w.statusCode!==200&&!u&&(l=w.statusCode),w.headers&&(d[g]=w.headers)}),f!==void 0&&n&&(a={[n[0]]:f},n[2]&&(i[n[2]]=void 0)),{loaderData:i,errors:a,statusCode:l||200,loaderHeaders:d}}function vj(e,t,n,r,o,i){let{loaderData:a,errors:l}=DRe(t,n,r);return o.filter(u=>!u.matches||u.matches.some(d=>d.shouldLoad)).forEach(u=>{let{key:d,match:f,controller:m}=u,g=i[d];if(zn(g,"Did not find corresponding fetcher result"),!(m&&m.signal.aborted))if(za(g)){let w=Bp(e.matches,f==null?void 0:f.route.id);l&&l[w.route.id]||(l={...l,[w.route.id]:g.error}),e.fetchers.delete(d)}else if(Zp(g))zn(!1,"Unhandled fetcher revalidation redirect");else{let w=Od(g.data);e.fetchers.set(d,w)}}),{loaderData:a,errors:l}}function xj(e,t,n,r){let o=Object.entries(t).filter(([,i])=>i!==pH).reduce((i,[a,l])=>(i[a]=l,i),{});for(let i of n){let a=i.route.id;if(!t.hasOwnProperty(a)&&e.hasOwnProperty(a)&&i.route.loader&&(o[a]=e[a]),r&&r.hasOwnProperty(a))break}return o}function wj(e){return e?za(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Bp(e,t){return(t?e.slice(0,e.findIndex(r=>r.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function Cj(e){let t=e.length===1?e[0]:e.find(n=>n.index||!n.path||n.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function gs(e,{pathname:t,routeId:n,method:r,type:o,message:i}={}){let a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",r&&t&&n?l=`You made a ${r} request to "${t}" but did not provide a \`loader\` for route "${n}", so there is no way to handle the request.`:o==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l=`Route "${n}" does not match URL "${t}"`):e===404?(a="Not Found",l=`No route matches URL "${t}"`):e===405&&(a="Method Not Allowed",r&&t&&n?l=`You made a ${r.toUpperCase()} request to "${t}" but did not provide an \`action\` for route "${n}", so there is no way to handle the request.`:r&&(l=`Invalid request method "${r.toUpperCase()}"`)),new wE(e||500,a,new Error(l),!0)}function IS(e){let t=Object.entries(e);for(let n=t.length-1;n>=0;n--){let[r,o]=t[n];if(Zp(o))return{key:r,result:o}}}function vH(e){let t=typeof e=="string"?hf(e):e;return Jd({...t,hash:""})}function LRe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function $Re(e){return xH(e.result)&&xRe.has(e.result.status)}function za(e){return e.type==="error"}function Zp(e){return(e&&e.type)==="redirect"}function Sj(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function xH(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function jRe(e){return vRe.has(e.toUpperCase())}function Ba(e){return bRe.has(e.toUpperCase())}function U_(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Nv(e,t){let n=typeof t=="string"?hf(t).search:t.search;if(e[e.length-1].route.index&&U_(n||""))return e[e.length-1];let r=uH(e);return r[r.length-1]}function Ej(e){let{formMethod:t,formAction:n,formEncType:r,text:o,formData:i,json:a}=e;if(!(!t||!n||!r)){if(o!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:o};if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:i,json:void 0,text:void 0};if(a!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:a,text:void 0}}}function iI(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function FRe(e,t){return{state:"submitting",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Sv(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function NRe(e,t){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function Od(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function zRe(e,t){try{let n=e.sessionStorage.getItem(fH);if(n){let r=JSON.parse(n);for(let[o,i]of Object.entries(r||{}))i&&Array.isArray(i)&&t.set(o,new Set(i||[]))}}catch{}}function BRe(e,t){if(t.size>0){let n={};for(let[r,o]of t)n[r]=[...o];try{e.sessionStorage.setItem(fH,JSON.stringify(n))}catch(r){Mo(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function HRe(){let e,t,n=new Promise((r,o)=>{e=async i=>{r(i);try{await n}catch{}},t=async i=>{o(i);try{await n}catch{}}});return{promise:n,resolve:e,reject:t}}var zh=b.createContext(null);zh.displayName="DataRouter";var x1=b.createContext(null);x1.displayName="DataRouterState";var G_=b.createContext({isTransitioning:!1});G_.displayName="ViewTransition";var wH=b.createContext(new Map);wH.displayName="Fetchers";var URe=b.createContext(null);URe.displayName="Await";var Ec=b.createContext(null);Ec.displayName="Navigation";var pM=b.createContext(null);pM.displayName="Location";var Tc=b.createContext({outlet:null,matches:[],isDataRoute:!1});Tc.displayName="Route";var V_=b.createContext(null);V_.displayName="RouteError";function GRe(e,{relative:t}={}){zn(w1(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=b.useContext(Ec),{hash:o,pathname:i,search:a}=C1(e,{relative:t}),l=i;return n!=="/"&&(l=i==="/"?n:mc([n,i])),r.createHref({pathname:l,search:a,hash:o})}function w1(){return b.useContext(pM)!=null}function Cl(){return zn(w1(),"useLocation() may be used only in the context of a <Router> component."),b.useContext(pM).location}var CH="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function SH(e){b.useContext(Ec).static||b.useLayoutEffect(e)}function Sl(){let{isDataRoute:e}=b.useContext(Tc);return e?iOe():VRe()}function VRe(){zn(w1(),"useNavigate() may be used only in the context of a <Router> component.");let e=b.useContext(zh),{basename:t,navigator:n}=b.useContext(Ec),{matches:r}=b.useContext(Tc),{pathname:o}=Cl(),i=JSON.stringify(z_(r)),a=b.useRef(!1);return SH(()=>{a.current=!0}),b.useCallback((u,d={})=>{if(Mo(a.current,CH),!a.current)return;if(typeof u=="number"){n.go(u);return}let f=B_(u,JSON.parse(i),o,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:mc([t,f.pathname])),(d.replace?n.replace:n.push)(f,d.state,d)},[t,n,i,o,e])}var WRe=b.createContext(null);function qRe(e){let t=b.useContext(Tc).outlet;return t&&b.createElement(WRe.Provider,{value:e},t)}function C1(e,{relative:t}={}){let{matches:n}=b.useContext(Tc),{pathname:r}=Cl(),o=JSON.stringify(z_(n));return b.useMemo(()=>B_(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function YRe(e,t,n,r){zn(w1(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=b.useContext(Ec),{matches:i}=b.useContext(Tc),a=i[i.length-1],l=a?a.params:{},u=a?a.pathname:"/",d=a?a.pathnameBase:"/",f=a&&a.route;{let T=f&&f.path||"";EH(u,!f||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${T}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let m=Cl(),g;g=m;let w=g.pathname||"/",C=w;if(d!=="/"){let T=d.replace(/^\//,"").split("/");C="/"+w.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=Nd(e,{pathname:C});return Mo(f||S!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),Mo(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),JRe(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},l,T.params),pathname:mc([d,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?d:mc([d,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),i,n,r)}function KRe(){let e=oOe(),t=Px(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=b.createElement(b.Fragment,null,b.createElement("p",null,"💿 Hey developer 👋"),b.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",b.createElement("code",{style:i},"ErrorBoundary")," or"," ",b.createElement("code",{style:i},"errorElement")," prop on your route.")),b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),n?b.createElement("pre",{style:o},n):null,a)}var XRe=b.createElement(KRe,null),ZRe=class extends b.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?b.createElement(Tc.Provider,{value:this.props.routeContext},b.createElement(V_.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function QRe({routeContext:e,match:t,children:n}){let r=b.useContext(zh);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),b.createElement(Tc.Provider,{value:e},n)}function JRe(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let o=e,i=n==null?void 0:n.errors;if(i!=null){let u=o.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);zn(u>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),o=o.slice(0,Math.min(o.length,u+1))}let a=!1,l=-1;if(n)for(let u=0;u<o.length;u++){let d=o[u];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(l=u),d.route.id){let{loaderData:f,errors:m}=n,g=d.route.loader&&!f.hasOwnProperty(d.route.id)&&(!m||m[d.route.id]===void 0);if(d.route.lazy||g){a=!0,l>=0?o=o.slice(0,l+1):o=[o[0]];break}}}return o.reduceRight((u,d,f)=>{let m,g=!1,w=null,C=null;n&&(m=i&&d.route.id?i[d.route.id]:void 0,w=d.route.errorElement||XRe,a&&(l<0&&f===0?(EH("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,C=null):l===f&&(g=!0,C=d.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,f+1)),E=()=>{let T;return m?T=w:g?T=C:d.route.Component?T=b.createElement(d.route.Component,null):d.route.element?T=d.route.element:T=u,b.createElement(QRe,{match:d,routeContext:{outlet:u,matches:S,isDataRoute:n!=null},children:T})};return n&&(d.route.ErrorBoundary||d.route.errorElement||f===0)?b.createElement(ZRe,{location:n.location,revalidation:n.revalidation,component:w,error:m,children:E(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):E()},null)}function W_(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function eOe(e){let t=b.useContext(zh);return zn(t,W_(e)),t}function tOe(e){let t=b.useContext(x1);return zn(t,W_(e)),t}function nOe(e){let t=b.useContext(Tc);return zn(t,W_(e)),t}function q_(e){let t=nOe(e),n=t.matches[t.matches.length-1];return zn(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function rOe(){return q_("useRouteId")}function oOe(){var r;let e=b.useContext(V_),t=tOe("useRouteError"),n=q_("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function iOe(){let{router:e}=eOe("useNavigate"),t=q_("useNavigate"),n=b.useRef(!1);return SH(()=>{n.current=!0}),b.useCallback(async(o,i={})=>{Mo(n.current,CH),n.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var Tj={};function EH(e,t,n){!t&&!Tj[e]&&(Tj[e]=!0,Mo(!1,n))}var Mj={};function kj(e,t){!e&&!Mj[t]&&(Mj[t]=!0,console.warn(t))}function aOe(e){let t={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&Mo(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(t,{element:b.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&Mo(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(t,{hydrateFallbackElement:b.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&Mo(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(t,{errorElement:b.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),t}var sOe=["HydrateFallback","hydrateFallbackElement"],lOe=class{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=n=>{this.status==="pending"&&(this.status="resolved",e(n))},this.reject=n=>{this.status==="pending"&&(this.status="rejected",t(n))}})}};function cOe({router:e,flushSync:t}){let[n,r]=b.useState(e.state),[o,i]=b.useState(),[a,l]=b.useState({isTransitioning:!1}),[u,d]=b.useState(),[f,m]=b.useState(),[g,w]=b.useState(),C=b.useRef(new Map),S=b.useCallback((k,{deletedFetchers:R,flushSync:P,viewTransitionOpts:O})=>{k.fetchers.forEach((F,D)=>{F.data!==void 0&&C.current.set(D,F.data)}),R.forEach(F=>C.current.delete(F)),kj(P===!1||t!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let j=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(kj(O==null||j,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!O||!j){t&&P?t(()=>r(k)):b.startTransition(()=>r(k));return}if(t&&P){t(()=>{f&&(u&&u.resolve(),f.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:O.currentLocation,nextLocation:O.nextLocation})});let F=e.window.document.startViewTransition(()=>{t(()=>r(k))});F.finished.finally(()=>{t(()=>{d(void 0),m(void 0),i(void 0),l({isTransitioning:!1})})}),t(()=>m(F));return}f?(u&&u.resolve(),f.skipTransition(),w({state:k,currentLocation:O.currentLocation,nextLocation:O.nextLocation})):(i(k),l({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}))},[e.window,t,f,u]);b.useLayoutEffect(()=>e.subscribe(S),[e,S]),b.useEffect(()=>{a.isTransitioning&&!a.flushSync&&d(new lOe)},[a]),b.useEffect(()=>{if(u&&o&&e.window){let k=o,R=u.promise,P=e.window.document.startViewTransition(async()=>{b.startTransition(()=>r(k)),await R});P.finished.finally(()=>{d(void 0),m(void 0),i(void 0),l({isTransitioning:!1})}),m(P)}},[o,u,e.window]),b.useEffect(()=>{u&&o&&n.location.key===o.location.key&&u.resolve()},[u,f,n.location,o]),b.useEffect(()=>{!a.isTransitioning&&g&&(i(g.state),l({isTransitioning:!0,flushSync:!1,currentLocation:g.currentLocation,nextLocation:g.nextLocation}),w(void 0))},[a.isTransitioning,g]);let E=b.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:k=>e.navigate(k),push:(k,R,P)=>e.navigate(k,{state:R,preventScrollReset:P==null?void 0:P.preventScrollReset}),replace:(k,R,P)=>e.navigate(k,{replace:!0,state:R,preventScrollReset:P==null?void 0:P.preventScrollReset})}),[e]),T=e.basename||"/",I=b.useMemo(()=>({router:e,navigator:E,static:!1,basename:T}),[e,E,T]);return b.createElement(b.Fragment,null,b.createElement(zh.Provider,{value:I},b.createElement(x1.Provider,{value:n},b.createElement(wH.Provider,{value:C.current},b.createElement(G_.Provider,{value:a},b.createElement(fOe,{basename:T,location:n.location,navigationType:n.historyAction,navigator:E},b.createElement(uOe,{routes:e.routes,future:e.future,state:n})))))),null)}var uOe=b.memo(dOe);function dOe({routes:e,future:t,state:n}){return YRe(e,void 0,n,t)}function Y_(e){return qRe(e.context)}function fOe({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1}){zn(!w1(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let a=e.replace(/^\/*/,"/"),l=b.useMemo(()=>({basename:a,navigator:o,static:i,future:{}}),[a,o,i]);typeof n=="string"&&(n=hf(n));let{pathname:u="/",search:d="",hash:f="",state:m=null,key:g="default"}=n,w=b.useMemo(()=>{let C=Is(u,a);return C==null?null:{location:{pathname:C,search:d,hash:f,state:m,key:g},navigationType:r}},[a,u,d,f,m,g,r]);return Mo(w!=null,`<Router basename="${a}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),w==null?null:b.createElement(Ec.Provider,{value:l},b.createElement(pM.Provider,{children:t,value:w}))}var r2="get",o2="application/x-www-form-urlencoded";function hM(e){return e!=null&&typeof e.tagName=="string"}function pOe(e){return hM(e)&&e.tagName.toLowerCase()==="button"}function hOe(e){return hM(e)&&e.tagName.toLowerCase()==="form"}function mOe(e){return hM(e)&&e.tagName.toLowerCase()==="input"}function gOe(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function bOe(e,t){return e.button===0&&(!t||t==="_self")&&!gOe(e)}function iR(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(o=>[n,o]):[[n,r]])},[]))}function yOe(e,t){let n=iR(e);return t&&t.forEach((r,o)=>{n.has(o)||t.getAll(o).forEach(i=>{n.append(o,i)})}),n}var AS=null;function vOe(){if(AS===null)try{new FormData(document.createElement("form"),0),AS=!1}catch{AS=!0}return AS}var xOe=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function aI(e){return e!=null&&!xOe.has(e)?(Mo(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${o2}"`),null):e}function wOe(e,t){let n,r,o,i,a;if(hOe(e)){let l=e.getAttribute("action");r=l?Is(l,t):null,n=e.getAttribute("method")||r2,o=aI(e.getAttribute("enctype"))||o2,i=new FormData(e)}else if(pOe(e)||mOe(e)&&(e.type==="submit"||e.type==="image")){let l=e.form;if(l==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let u=e.getAttribute("formaction")||l.getAttribute("action");if(r=u?Is(u,t):null,n=e.getAttribute("formmethod")||l.getAttribute("method")||r2,o=aI(e.getAttribute("formenctype"))||aI(l.getAttribute("enctype"))||o2,i=new FormData(l,e),!vOe()){let{name:d,type:f,value:m}=e;if(f==="image"){let g=d?`${d}.`:"";i.append(`${g}x`,"0"),i.append(`${g}y`,"0")}else d&&i.append(d,m)}}else{if(hM(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=r2,r=null,o=o2,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}function K_(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function COe(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function SOe(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function EOe(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await COe(i,n);return a.links?a.links():[]}return[]}));return POe(r.flat(1).filter(SOe).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Pj(e,t,n,r,o,i){let a=(u,d)=>n[d]?u.route.id!==n[d].route.id:!0,l=(u,d)=>{var f;return n[d].pathname!==u.pathname||((f=n[d].route.path)==null?void 0:f.endsWith("*"))&&n[d].params["*"]!==u.params["*"]};return i==="assets"?t.filter((u,d)=>a(u,d)||l(u,d)):i==="data"?t.filter((u,d)=>{var m;let f=r.routes[u.route.id];if(!f||!f.hasLoader)return!1;if(a(u,d)||l(u,d))return!0;if(u.route.shouldRevalidate){let g=u.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((m=n[0])==null?void 0:m.params)||{},nextUrl:new URL(e,window.origin),nextParams:u.params,defaultShouldRevalidate:!0});if(typeof g=="boolean")return g}return!0}):[]}function TOe(e,t,{includeHydrateFallback:n}={}){return MOe(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function MOe(e){return[...new Set(e)]}function kOe(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function POe(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(kOe(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var IOe=new Set([100,101,204,205]);function AOe(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&Is(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function TH(){let e=b.useContext(zh);return K_(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ROe(){let e=b.useContext(x1);return K_(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var X_=b.createContext(void 0);X_.displayName="FrameworkContext";function MH(){let e=b.useContext(X_);return K_(e,"You must render this element inside a <HydratedRouter> element"),e}function OOe(e,t){let n=b.useContext(X_),[r,o]=b.useState(!1),[i,a]=b.useState(!1),{onFocus:l,onBlur:u,onMouseEnter:d,onMouseLeave:f,onTouchStart:m}=t,g=b.useRef(null);b.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let S=T=>{T.forEach(I=>{a(I.isIntersecting)})},E=new IntersectionObserver(S,{threshold:.5});return g.current&&E.observe(g.current),()=>{E.disconnect()}}},[e]),b.useEffect(()=>{if(r){let S=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(S)}}},[r]);let w=()=>{o(!0)},C=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,g,{}]:[i,g,{onFocus:Ev(l,w),onBlur:Ev(u,C),onMouseEnter:Ev(d,w),onMouseLeave:Ev(f,C),onTouchStart:Ev(m,w)}]:[!1,g,{}]}function Ev(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function _Oe({page:e,...t}){let{router:n}=TH(),r=b.useMemo(()=>Nd(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?b.createElement(LOe,{page:e,matches:r,...t}):null}function DOe(e){let{manifest:t,routeModules:n}=MH(),[r,o]=b.useState([]);return b.useEffect(()=>{let i=!1;return EOe(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function LOe({page:e,matches:t,...n}){let r=Cl(),{manifest:o,routeModules:i}=MH(),{basename:a}=TH(),{loaderData:l,matches:u}=ROe(),d=b.useMemo(()=>Pj(e,t,u,o,r,"data"),[e,t,u,o,r]),f=b.useMemo(()=>Pj(e,t,u,o,r,"assets"),[e,t,u,o,r]),m=b.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let C=new Set,S=!1;if(t.forEach(T=>{var k;let I=o.routes[T.route.id];!I||!I.hasLoader||(!d.some(R=>R.route.id===T.route.id)&&T.route.id in l&&((k=i[T.route.id])!=null&&k.shouldRevalidate)||I.hasClientLoader?S=!0:C.add(T.route.id))}),C.size===0)return[];let E=AOe(e,a);return S&&C.size>0&&E.searchParams.set("_routes",t.filter(T=>C.has(T.route.id)).map(T=>T.route.id).join(",")),[E.pathname+E.search]},[a,l,r,o,d,t,e,i]),g=b.useMemo(()=>TOe(f,o),[f,o]),w=DOe(f);return b.createElement(b.Fragment,null,m.map(C=>b.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...n})),g.map(C=>b.createElement("link",{key:C,rel:"modulepreload",href:C,...n})),w.map(({key:C,link:S})=>b.createElement("link",{key:C,...S})))}function $Oe(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var kH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{kH&&(window.__reactRouterVersion="7.6.1")}catch{}function jOe(e,t){return ERe({basename:t==null?void 0:t.basename,unstable_getContext:t==null?void 0:t.unstable_getContext,future:t==null?void 0:t.future,history:VAe({window:t==null?void 0:t.window}),hydrationData:FOe(),routes:e,mapRouteProperties:aOe,hydrationRouteProperties:sOe,dataStrategy:t==null?void 0:t.dataStrategy,patchRoutesOnNavigation:t==null?void 0:t.patchRoutesOnNavigation,window:t==null?void 0:t.window}).initialize()}function FOe(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:NOe(e.errors)}),e}function NOe(e){if(!e)return null;let t=Object.entries(e),n={};for(let[r,o]of t)if(o&&o.__type==="RouteErrorResponse")n[r]=new wE(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let i=window[o.__subType];if(typeof i=="function")try{let a=new i(o.message);a.stack="",n[r]=a}catch{}}if(n[r]==null){let i=new Error(o.message);i.stack="",n[r]=i}}else n[r]=o;return n}var PH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,_0=b.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:l,target:u,to:d,preventScrollReset:f,viewTransition:m,...g},w){let{basename:C}=b.useContext(Ec),S=typeof d=="string"&&PH.test(d),E,T=!1;if(typeof d=="string"&&S&&(E=d,kH))try{let D=new URL(window.location.href),_=d.startsWith("//")?new URL(D.protocol+d):new URL(d),$=Is(_.pathname,C);_.origin===D.origin&&$!=null?d=$+_.search+_.hash:T=!0}catch{Mo(!1,`<Link to="${d}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let I=GRe(d,{relative:o}),[k,R,P]=OOe(r,g),O=HOe(d,{replace:a,state:l,target:u,preventScrollReset:f,relative:o,viewTransition:m});function j(D){t&&t(D),D.defaultPrevented||O(D)}let F=b.createElement("a",{...g,...P,href:E||I,onClick:T||i?t:j,ref:$Oe(w,R),target:u,"data-discover":!S&&n==="render"?"true":void 0});return k&&!S?b.createElement(b.Fragment,null,F,b.createElement(_Oe,{page:I})):F});_0.displayName="Link";var IH=b.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:l,children:u,...d},f){let m=C1(a,{relative:d.relative}),g=Cl(),w=b.useContext(x1),{navigator:C,basename:S}=b.useContext(Ec),E=w!=null&&qOe(m)&&l===!0,T=C.encodeLocation?C.encodeLocation(m).pathname:m.pathname,I=g.pathname,k=w&&w.navigation&&w.navigation.location?w.navigation.location.pathname:null;n||(I=I.toLowerCase(),k=k?k.toLowerCase():null,T=T.toLowerCase()),k&&S&&(k=Is(k,S)||k);const R=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let P=I===T||!o&&I.startsWith(T)&&I.charAt(R)==="/",O=k!=null&&(k===T||!o&&k.startsWith(T)&&k.charAt(T.length)==="/"),j={isActive:P,isPending:O,isTransitioning:E},F=P?t:void 0,D;typeof r=="function"?D=r(j):D=[r,P?"active":null,O?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let _=typeof i=="function"?i(j):i;return b.createElement(_0,{...d,"aria-current":F,className:D,ref:f,style:_,to:a,viewTransition:l},typeof u=="function"?u(j):u)});IH.displayName="NavLink";var zOe=b.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=r2,action:l,onSubmit:u,relative:d,preventScrollReset:f,viewTransition:m,...g},w)=>{let C=VOe(),S=WOe(l,{relative:d}),E=a.toLowerCase()==="get"?"get":"post",T=typeof l=="string"&&PH.test(l),I=k=>{if(u&&u(k),k.defaultPrevented)return;k.preventDefault();let R=k.nativeEvent.submitter,P=(R==null?void 0:R.getAttribute("formmethod"))||a;C(R||k.currentTarget,{fetcherKey:t,method:P,navigate:n,replace:o,state:i,relative:d,preventScrollReset:f,viewTransition:m})};return b.createElement("form",{ref:w,method:E,action:S,onSubmit:r?u:I,...g,"data-discover":!T&&e==="render"?"true":void 0})});zOe.displayName="Form";function BOe(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function AH(e){let t=b.useContext(zh);return zn(t,BOe(e)),t}function HOe(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a}={}){let l=Sl(),u=Cl(),d=C1(e,{relative:i});return b.useCallback(f=>{if(bOe(f,t)){f.preventDefault();let m=n!==void 0?n:Jd(u)===Jd(d);l(e,{replace:m,state:r,preventScrollReset:o,relative:i,viewTransition:a})}},[u,l,d,n,r,t,e,o,i,a])}function S1(e){Mo(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=b.useRef(iR(e)),n=b.useRef(!1),r=Cl(),o=b.useMemo(()=>yOe(r.search,n.current?null:t.current),[r.search]),i=Sl(),a=b.useCallback((l,u)=>{const d=iR(typeof l=="function"?l(o):l);n.current=!0,i("?"+d,u)},[i,o]);return[o,a]}var UOe=0,GOe=()=>`__${String(++UOe)}__`;function VOe(){let{router:e}=AH("useSubmit"),{basename:t}=b.useContext(Ec),n=rOe();return b.useCallback(async(r,o={})=>{let{action:i,method:a,encType:l,formData:u,body:d}=wOe(r,t);if(o.navigate===!1){let f=o.fetcherKey||GOe();await e.fetch(f,n,o.action||i,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||a,formEncType:o.encType||l,flushSync:o.flushSync})}else await e.navigate(o.action||i,{preventScrollReset:o.preventScrollReset,formData:u,body:d,formMethod:o.method||a,formEncType:o.encType||l,replace:o.replace,state:o.state,fromRouteId:n,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,t,n])}function WOe(e,{relative:t}={}){let{basename:n}=b.useContext(Ec),r=b.useContext(Tc);zn(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...C1(e||".",{relative:t})},a=Cl();if(e==null){i.search=a.search;let l=new URLSearchParams(i.search),u=l.getAll("index");if(u.some(f=>f==="")){l.delete("index"),u.filter(m=>m).forEach(m=>l.append("index",m));let f=l.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:mc([n,i.pathname])),Jd(i)}function qOe(e,t={}){let n=b.useContext(G_);zn(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=AH("useViewTransitionState"),o=C1(e,{relative:t.relative});if(!n.isTransitioning)return!1;let i=Is(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Is(n.nextLocation.pathname,r)||n.nextLocation.pathname;return xE(o.pathname,a)!=null||xE(o.pathname,i)!=null}[...IOe];function RH({label:e,options:t,value:n,onChange:r,sx:o,withClear:i=!1}){const a=u=>{const{target:{value:d}}=u;r(typeof d=="string"?d.split(","):d)},l=()=>r([]);return y.jsxs(Hx,{sx:o,fullWidth:!0,children:[y.jsx(nT,{sx:{"&.MuiFormLabel-root:not(.MuiFormLabel-filled):not(.Mui-focused)":{top:"-7px"}},children:e}),y.jsx(H0,{size:"small",multiple:!0,value:n,onChange:a,input:y.jsx(rT,{label:e}),endAdornment:!!n.length&&i&&y.jsx(Yd,{position:"end",sx:{marginRight:"10px",marginLeft:"-20px"},children:y.jsx(Ur,{onClick:l,children:y.jsx(HT,{})})}),children:t.map(u=>y.jsx(fh,{value:u.value,children:u.label},u.value))})]})}const YOe=e=>{const{filter:t,key:n,min:r,max:o,result:i}=e;(t.min!==r||t.max!==o)&&(i[n]={min:t.min,max:t.max})},Ij=e=>({[nl.countries]:"countries",[nl.languages]:"languages",[nl.categories]:"categories",[nl.price]:"Price, "+oo,[nl.basePrice]:"Base Price, "+oo,[nl.totalPrice]:"Total Price, "+oo,[nl.domainRating]:"Domain Rating",[nl.domainAuthority]:"Domain Authority",[nl.spamScore]:"Spam Score",[nl.citationFlow]:"Citation Flow"})[e],OH=()=>{const e=Cl(),t=so(),n=xt(X0e),r=xt(Z0e),o=xt(fz),[i,a]=b.useState(!1),l=xt(OT),u=xt(i1),[d,f]=b.useState([]),[m,g]=b.useState([]),[w,C]=b.useState([]),[S,E]=b.useState([]),[T,I]=b.useState({}),k=D=>()=>a(D),R=D=>t(C0(D)),P=()=>t(C0("")),O=()=>{const D={...l};D.languages=m.map(_=>_.code),D.countries=d.map(_=>_.code),D.categories=w.map(_=>_.id),D.niches=S,Object.entries(T).map(_=>{const $=_[0];YOe({filter:_[1],result:D,key:$,...n[$]})}),t(rL(D))},j=()=>{console.log("reset"),f([]),g([]),C([]),E([]),I(n),t(rL({countries:[],languages:[],categories:[],niches:[]}))};b.useEffect(()=>{!Ua.isEmpty(n)&&Ua.isEmpty(T)&&I(n),console.log({initial:n,values:T})},[r]),b.useEffect(()=>()=>{j()},[e]);const F=Object.keys(Ua.omitBy(l,Ua.isEmpty)).length;return r?y.jsx(y.Fragment,{}):y.jsxs(y.Fragment,{children:[y.jsx(tT,{badgeContent:F,color:"primary",children:y.jsx(rr,{variant:"outlined",onClick:k(!0),children:"Filters"})}),y.jsx(Gv,{anchor:"right",open:i,onClose:k(!1),slotProps:{paper:{sx:{height:"auto",top:{xs:"57px",sm:"64px"},bottom:"0",width:{xs:"90%",sm:500}}}},children:y.jsxs(Oe,{role:"presentation",display:"flex",flexDirection:"column",gap:2,children:[y.jsxs(Oe,{padding:3,display:"flex",flexDirection:"column",gap:2,paddingBottom:0,children:[y.jsxs(Oe,{display:"flex",justifyContent:"space-between",position:"relative",children:[y.jsxs(Jt,{variant:"h6",children:["Filters ",F?`(${F})`:""]}),y.jsx(Ur,{sx:{display:{xs:"flex",sm:"none"},position:"absolute",top:"-16px",right:"-12px"},onClick:k(!1),children:y.jsx(HT,{})})]}),y.jsx(Zi,{}),y.jsx(GT,{value:u,onChange:R,onClear:P,label:"Domain name"}),y.jsx(Qz,{value:d,onChange:f}),y.jsx(zAe,{value:m,onChange:g}),y.jsx(Xz,{value:w,onChange:C}),y.jsx(RH,{label:"Niches",options:o,value:S,onChange:E,withClear:!0}),Object.entries(T).map(D=>y.jsx(BAe,{value:D[1],min:D[1].min,max:D[1].max,onChange:_=>{I({...T,[D[0]]:{min:_.min,max:_.max}})},labelMin:`${Ij(D[0])} min`,labelMax:`${Ij(D[0])} max`},D[0]))]}),y.jsxs(Oe,{padding:3,paddingTop:0,zIndex:1,display:"flex",flexDirection:"column",gap:2,position:"sticky",bottom:0,sx:{backgroundColor:"white"},children:[y.jsx(Zi,{}),y.jsx(rr,{onClick:O,children:"OK"}),y.jsx(rr,{variant:"outlined",onClick:j,children:"reset"})]})]})})]})},_H=({data:e})=>{const n=xt(DT).filter(r=>e.includes(r.id)).map(r=>r.displayName).join(", ");return y.jsx(Oe,{textOverflow:"ellipsis",overflow:"hidden",children:n})},DH=({data:e})=>{const n=xt(LT).filter(r=>e.includes(r.code)).map(r=>y.jsxs(Oe,{textTransform:"uppercase",display:"flex",alignItems:"center",gap:"4px",children:[y.jsx(Zz,{code:r.code}),r.code]},r.code));return y.jsx(Oe,{display:"flex",gap:1,textOverflow:"ellipsis",overflow:"hidden",children:n})},LH=({value:e})=>{var r;const n=(r=xt(a1).find(o=>o.code===e))==null?void 0:r.name;return y.jsx(Oe,{textTransform:"capitalize",children:n})},KOe=()=>{const{showLoader:e,hideLoader:t}=VT(),n=so(),r=xt(sz),o=xt(RT),i=xt(cz),a=xt(lz),l=xt(i1),u=RO(l),[d,f]=b.useState(!1),[m,g]=b.useState({}),w=xt(OT),C=xt(_T),[S,E]=b.useState(!1),T=[{field:Bt.domainName.key,headerName:Bt.domainName.name,width:180},{field:Bt.basePrice.key,headerName:Bt.basePrice.adminName,width:180,valueGetter:P=>oo+P},{field:Bt.totalPrice.key,headerName:Bt.totalPrice.adminName,width:180,valueGetter:P=>oo+P},{field:Bt.contentNotes.key,headerName:Bt.contentNotes.name,width:180},{field:Bt.domainStatus.key,headerName:Bt.domainStatus.name,width:180},{field:Bt.categories.key,headerName:Bt.categories.name,width:250,renderCell:P=>y.jsx(_H,{data:P.value??[]})},{field:Bt.countries.key,headerName:Bt.countries.name,width:250,renderCell:P=>y.jsx(DH,{data:P.value??[]})},{field:Bt.language.key,headerName:Bt.language.name,width:Bt.language.width,renderCell:P=>y.jsx(LH,{value:P.value??""})},{field:Bt.contentSampleLink.key,headerName:Bt.contentSampleLink.name,width:300},{field:Bt.webmasterEmails.key,headerName:Bt.webmasterEmails.name,width:250,valueGetter:P=>P.join(", ")},{field:Bt.nlEmails.key,headerName:Bt.nlEmails.name,width:250,valueGetter:P=>P.join(", ")},{field:"actions",type:"actions",headerName:"Actions",width:100,cellClassName:"actions",getActions:({row:P})=>[y.jsx(XI,{color:"inherit",icon:y.jsx(o7,{}),label:"Edit",onClick:()=>{g(P),f(!0)}})]}],I=()=>{n(C0("")),n(N2(e1))},k=P=>n(C0(P)),R=P=>{try{e(),n(AA({domainId:P.id})).unwrap().then(()=>{E(!0)}).finally(()=>{t()})}catch{}};return b.useEffect(()=>{n(F2({searchValue:u,page:i.page,filters:w,sort:C}))},[n,u,i.page,w,C]),y.jsxs(Oe,{children:[y.jsxs(Oe,{display:"flex",mb:2,justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:2,children:[y.jsx(GT,{sx:{paddingRight:1,width:{xs:"100%",sm:"300px"}},value:l,onChange:k,onClear:I,label:"Search by domain name"}),y.jsxs(Oe,{display:"flex",gap:2,ml:{xs:"auto",sm:"0"},children:[y.jsx(OH,{}),y.jsx(a_,{})]})]}),y.jsx(AO,{sx:{height:{xs:"calc(100vh - 275px)",sm:"calc(100vh - 230px)"}},rows:r,onRowClick:R,loading:a,columns:T,rowCount:o.totalCount||0,paginationModel:i,onPaginationModelChange:P=>n(N2(P))}),d&&y.jsx(p7,{isEdit:!0,open:d,setOpen:f,data:m}),y.jsx(iH,{open:S,setOpen:E})]})};function Aj(e){return $i({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M12 3v12"},child:[]},{tag:"path",attr:{d:"m8 11 4 4 4-4"},child:[]},{tag:"path",attr:{d:"M8 5H4a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-4"},child:[]}]})(e)}function Bh(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function l(f){try{d(r.next(f))}catch(m){a(m)}}function u(f){try{d(r.throw(f))}catch(m){a(m)}}function d(f){f.done?i(f.value):o(f.value).then(l,u)}d((r=r.apply(e,t||[])).next())})}const XOe=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function D0(e,t,n){const r=ZOe(e),{webkitRelativePath:o}=e,i=typeof t=="string"?t:typeof o=="string"&&o.length>0?o:`./${e.name}`;return typeof r.path!="string"&&Rj(r,"path",i),Rj(r,"relativePath",i),r}function ZOe(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),o=XOe.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}function Rj(e,t,n){Object.defineProperty(e,t,{value:n,writable:!1,configurable:!1,enumerable:!0})}const QOe=[".DS_Store","Thumbs.db"];function JOe(e){return Bh(this,void 0,void 0,function*(){return SE(e)&&e_e(e.dataTransfer)?o_e(e.dataTransfer,e.type):t_e(e)?n_e(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?r_e(e):[]})}function e_e(e){return SE(e)}function t_e(e){return SE(e)&&SE(e.target)}function SE(e){return typeof e=="object"&&e!==null}function n_e(e){return aR(e.target.files).map(t=>D0(t))}function r_e(e){return Bh(this,void 0,void 0,function*(){return(yield Promise.all(e.map(n=>n.getFile()))).map(n=>D0(n))})}function o_e(e,t){return Bh(this,void 0,void 0,function*(){if(e.items){const n=aR(e.items).filter(o=>o.kind==="file");if(t!=="drop")return n;const r=yield Promise.all(n.map(i_e));return Oj($H(r))}return Oj(aR(e.files).map(n=>D0(n)))})}function Oj(e){return e.filter(t=>QOe.indexOf(t.name)===-1)}function aR(e){if(e===null)return[];const t=[];for(let n=0;n<e.length;n++){const r=e[n];t.push(r)}return t}function i_e(e){if(typeof e.webkitGetAsEntry!="function")return _j(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?jH(t):_j(e,t)}function $H(e){return e.reduce((t,n)=>[...t,...Array.isArray(n)?$H(n):[n]],[])}function _j(e,t){return Bh(this,void 0,void 0,function*(){var n;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const i=yield e.getAsFileSystemHandle();if(i===null)throw new Error(`${e} is not a File`);if(i!==void 0){const a=yield i.getFile();return a.handle=i,D0(a)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return D0(r,(n=t==null?void 0:t.fullPath)!==null&&n!==void 0?n:void 0)})}function a_e(e){return Bh(this,void 0,void 0,function*(){return e.isDirectory?jH(e):s_e(e)})}function jH(e){const t=e.createReader();return new Promise((n,r)=>{const o=[];function i(){t.readEntries(a=>Bh(this,void 0,void 0,function*(){if(a.length){const l=Promise.all(a.map(a_e));o.push(l),i()}else try{const l=yield Promise.all(o);n(l)}catch(l){r(l)}}),a=>{r(a)})}i()})}function s_e(e){return Bh(this,void 0,void 0,function*(){return new Promise((t,n)=>{e.file(r=>{const o=D0(r,e.fullPath);t(o)},r=>{n(r)})})})}var RS={},Dj;function l_e(){return Dj||(Dj=1,RS.__esModule=!0,RS.default=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(",");if(n.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),i=o.replace(/\/.*$/,"");return n.some(function(a){var l=a.trim().toLowerCase();return l.charAt(0)==="."?r.toLowerCase().endsWith(l):l.endsWith("/*")?i===l.replace(/\/.*$/,""):o===l})}return!0}),RS}var c_e=l_e();const sI=wu(c_e);function Lj(e){return f_e(e)||d_e(e)||NH(e)||u_e()}function u_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function d_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function f_e(e){if(Array.isArray(e))return sR(e)}function $j(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function jj(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$j(Object(n),!0).forEach(function(r){FH(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$j(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ix(e,t){return m_e(e)||h_e(e,t)||NH(e,t)||p_e()}function p_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NH(e,t){if(e){if(typeof e=="string")return sR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return sR(e,t)}}function sR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function h_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,l;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function m_e(e){if(Array.isArray(e))return e}var g_e=typeof sI=="function"?sI:sI.default,b_e="file-invalid-type",y_e="file-too-large",v_e="file-too-small",x_e="too-many-files",w_e=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",n=t.split(","),r=n.length>1?"one of ".concat(n.join(", ")):n[0];return{code:b_e,message:"File type must be ".concat(r)}},Fj=function(t){return{code:y_e,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},Nj=function(t){return{code:v_e,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},C_e={code:x_e,message:"Too many files"};function zH(e,t){var n=e.type==="application/x-moz-file"||g_e(e,t);return[n,n?null:w_e(t)]}function BH(e,t,n){if(Hp(e.size))if(Hp(t)&&Hp(n)){if(e.size>n)return[!1,Fj(n)];if(e.size<t)return[!1,Nj(t)]}else{if(Hp(t)&&e.size<t)return[!1,Nj(t)];if(Hp(n)&&e.size>n)return[!1,Fj(n)]}return[!0,null]}function Hp(e){return e!=null}function S_e(e){var t=e.files,n=e.accept,r=e.minSize,o=e.maxSize,i=e.multiple,a=e.maxFiles,l=e.validator;return!i&&t.length>1||i&&a>=1&&t.length>a?!1:t.every(function(u){var d=zH(u,n),f=Ix(d,1),m=f[0],g=BH(u,r,o),w=Ix(g,1),C=w[0],S=l?l(u):null;return m&&C&&!S})}function EE(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function OS(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function zj(e){e.preventDefault()}function E_e(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function T_e(e){return e.indexOf("Edge/")!==-1}function M_e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return E_e(e)||T_e(e)}function rc(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(r){for(var o=arguments.length,i=new Array(o>1?o-1:0),a=1;a<o;a++)i[a-1]=arguments[a];return t.some(function(l){return!EE(r)&&l&&l.apply(void 0,[r].concat(i)),EE(r)})}}function k_e(){return"showOpenFilePicker"in window}function P_e(e){if(Hp(e)){var t=Object.entries(e).filter(function(n){var r=Ix(n,2),o=r[0],i=r[1],a=!0;return HH(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),a=!1),(!Array.isArray(i)||!i.every(UH))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),a=!1),a}).reduce(function(n,r){var o=Ix(r,2),i=o[0],a=o[1];return jj(jj({},n),{},FH({},i,a))},{});return[{description:"Files",accept:t}]}return e}function I_e(e){if(Hp(e))return Object.entries(e).reduce(function(t,n){var r=Ix(n,2),o=r[0],i=r[1];return[].concat(Lj(t),[o],Lj(i))},[]).filter(function(t){return HH(t)||UH(t)}).join(",")}function A_e(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function R_e(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function HH(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function UH(e){return/^.*\.[\w]+$/.test(e)}var O_e=["children"],__e=["open"],D_e=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],L_e=["refKey","onChange","onClick"];function $_e(e){return N_e(e)||F_e(e)||GH(e)||j_e()}function j_e(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function F_e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function N_e(e){if(Array.isArray(e))return lR(e)}function lI(e,t){return H_e(e)||B_e(e,t)||GH(e,t)||z_e()}function z_e(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function GH(e,t){if(e){if(typeof e=="string")return lR(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return lR(e,t)}}function lR(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B_e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],o=!0,i=!1,a,l;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(r.push(a.value),!(t&&r.length===t));o=!0);}catch(u){i=!0,l=u}finally{try{!o&&n.return!=null&&n.return()}finally{if(i)throw l}}return r}}function H_e(e){if(Array.isArray(e))return e}function Bj(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function uo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Bj(Object(n),!0).forEach(function(r){cR(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bj(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cR(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TE(e,t){if(e==null)return{};var n=U_e(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function U_e(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}var Z_=b.forwardRef(function(e,t){var n=e.children,r=TE(e,O_e),o=WH(r),i=o.open,a=TE(o,__e);return b.useImperativeHandle(t,function(){return{open:i}},[i]),un.createElement(b.Fragment,null,n(uo(uo({},a),{},{open:i})))});Z_.displayName="Dropzone";var VH={disabled:!1,getFilesFromEvent:JOe,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Z_.defaultProps=VH;Z_.propTypes={children:we.func,accept:we.objectOf(we.arrayOf(we.string)),multiple:we.bool,preventDropOnDocument:we.bool,noClick:we.bool,noKeyboard:we.bool,noDrag:we.bool,noDragEventsBubbling:we.bool,minSize:we.number,maxSize:we.number,maxFiles:we.number,disabled:we.bool,getFilesFromEvent:we.func,onFileDialogCancel:we.func,onFileDialogOpen:we.func,useFsAccessApi:we.bool,autoFocus:we.bool,onDragEnter:we.func,onDragLeave:we.func,onDragOver:we.func,onDrop:we.func,onDropAccepted:we.func,onDropRejected:we.func,onError:we.func,validator:we.func};var uR={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function WH(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=uo(uo({},VH),e),n=t.accept,r=t.disabled,o=t.getFilesFromEvent,i=t.maxSize,a=t.minSize,l=t.multiple,u=t.maxFiles,d=t.onDragEnter,f=t.onDragLeave,m=t.onDragOver,g=t.onDrop,w=t.onDropAccepted,C=t.onDropRejected,S=t.onFileDialogCancel,E=t.onFileDialogOpen,T=t.useFsAccessApi,I=t.autoFocus,k=t.preventDropOnDocument,R=t.noClick,P=t.noKeyboard,O=t.noDrag,j=t.noDragEventsBubbling,F=t.onError,D=t.validator,_=b.useMemo(function(){return I_e(n)},[n]),$=b.useMemo(function(){return P_e(n)},[n]),B=b.useMemo(function(){return typeof E=="function"?E:Hj},[E]),V=b.useMemo(function(){return typeof S=="function"?S:Hj},[S]),q=b.useRef(null),G=b.useRef(null),N=b.useReducer(G_e,uR),H=lI(N,2),Y=H[0],Q=H[1],W=Y.isFocused,K=Y.isFileDialogActive,J=b.useRef(typeof window<"u"&&window.isSecureContext&&T&&k_e()),ae=function(){!J.current&&K&&setTimeout(function(){if(G.current){var Pe=G.current.files;Pe.length||(Q({type:"closeDialog"}),V())}},300)};b.useEffect(function(){return window.addEventListener("focus",ae,!1),function(){window.removeEventListener("focus",ae,!1)}},[G,K,V,J]);var ce=b.useRef([]),de=function(Pe){q.current&&q.current.contains(Pe.target)||(Pe.preventDefault(),ce.current=[])};b.useEffect(function(){return k&&(document.addEventListener("dragover",zj,!1),document.addEventListener("drop",de,!1)),function(){k&&(document.removeEventListener("dragover",zj),document.removeEventListener("drop",de))}},[q,k]),b.useEffect(function(){return!r&&I&&q.current&&q.current.focus(),function(){}},[q,I,r]);var re=b.useCallback(function(ye){F?F(ye):console.error(ye)},[F]),ke=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye),ce.current=[].concat($_e(ce.current),[ye.target]),OS(ye)&&Promise.resolve(o(ye)).then(function(Pe){if(!(EE(ye)&&!j)){var qe=Pe.length,Ke=qe>0&&S_e({files:Pe,accept:_,minSize:a,maxSize:i,multiple:l,maxFiles:u,validator:D}),it=qe>0&&!Ke;Q({isDragAccept:Ke,isDragReject:it,isDragActive:!0,type:"setDraggedFiles"}),d&&d(ye)}}).catch(function(Pe){return re(Pe)})},[o,d,re,j,_,a,i,l,u,D]),Ce=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye);var Pe=OS(ye);if(Pe&&ye.dataTransfer)try{ye.dataTransfer.dropEffect="copy"}catch{}return Pe&&m&&m(ye),!1},[m,j]),ie=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye);var Pe=ce.current.filter(function(Ke){return q.current&&q.current.contains(Ke)}),qe=Pe.indexOf(ye.target);qe!==-1&&Pe.splice(qe,1),ce.current=Pe,!(Pe.length>0)&&(Q({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),OS(ye)&&f&&f(ye))},[q,f,j]),le=b.useCallback(function(ye,Pe){var qe=[],Ke=[];ye.forEach(function(it){var ot=zH(it,_),gt=lI(ot,2),Ue=gt[0],jt=gt[1],Ht=BH(it,a,i),pt=lI(Ht,2),ht=pt[0],Ct=pt[1],Nt=D?D(it):null;if(Ue&&ht&&!Nt)qe.push(it);else{var Yn=[jt,Ct];Nt&&(Yn=Yn.concat(Nt)),Ke.push({file:it,errors:Yn.filter(function(pr){return pr})})}}),(!l&&qe.length>1||l&&u>=1&&qe.length>u)&&(qe.forEach(function(it){Ke.push({file:it,errors:[C_e]})}),qe.splice(0)),Q({acceptedFiles:qe,fileRejections:Ke,isDragReject:Ke.length>0,type:"setFiles"}),g&&g(qe,Ke,Pe),Ke.length>0&&C&&C(Ke,Pe),qe.length>0&&w&&w(qe,Pe)},[Q,l,_,a,i,u,g,w,C,D]),ve=b.useCallback(function(ye){ye.preventDefault(),ye.persist(),nt(ye),ce.current=[],OS(ye)&&Promise.resolve(o(ye)).then(function(Pe){EE(ye)&&!j||le(Pe,ye)}).catch(function(Pe){return re(Pe)}),Q({type:"reset"})},[o,le,re,j]),ue=b.useCallback(function(){if(J.current){Q({type:"openDialog"}),B();var ye={multiple:l,types:$};window.showOpenFilePicker(ye).then(function(Pe){return o(Pe)}).then(function(Pe){le(Pe,null),Q({type:"closeDialog"})}).catch(function(Pe){A_e(Pe)?(V(Pe),Q({type:"closeDialog"})):R_e(Pe)?(J.current=!1,G.current?(G.current.value=null,G.current.click()):re(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):re(Pe)});return}G.current&&(Q({type:"openDialog"}),B(),G.current.value=null,G.current.click())},[Q,B,V,T,le,re,$,l]),me=b.useCallback(function(ye){!q.current||!q.current.isEqualNode(ye.target)||(ye.key===" "||ye.key==="Enter"||ye.keyCode===32||ye.keyCode===13)&&(ye.preventDefault(),ue())},[q,ue]),be=b.useCallback(function(){Q({type:"focus"})},[]),Fe=b.useCallback(function(){Q({type:"blur"})},[]),Ze=b.useCallback(function(){R||(M_e()?setTimeout(ue,0):ue())},[R,ue]),We=function(Pe){return r?null:Pe},_e=function(Pe){return P?null:We(Pe)},ft=function(Pe){return O?null:We(Pe)},nt=function(Pe){j&&Pe.stopPropagation()},dt=b.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe=ye.refKey,qe=Pe===void 0?"ref":Pe,Ke=ye.role,it=ye.onKeyDown,ot=ye.onFocus,gt=ye.onBlur,Ue=ye.onClick,jt=ye.onDragEnter,Ht=ye.onDragOver,pt=ye.onDragLeave,ht=ye.onDrop,Ct=TE(ye,D_e);return uo(uo(cR({onKeyDown:_e(rc(it,me)),onFocus:_e(rc(ot,be)),onBlur:_e(rc(gt,Fe)),onClick:We(rc(Ue,Ze)),onDragEnter:ft(rc(jt,ke)),onDragOver:ft(rc(Ht,Ce)),onDragLeave:ft(rc(pt,ie)),onDrop:ft(rc(ht,ve)),role:typeof Ke=="string"&&Ke!==""?Ke:"presentation"},qe,q),!r&&!P?{tabIndex:0}:{}),Ct)}},[q,me,be,Fe,Ze,ke,Ce,ie,ve,P,O,r]),se=b.useCallback(function(ye){ye.stopPropagation()},[]),De=b.useMemo(function(){return function(){var ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Pe=ye.refKey,qe=Pe===void 0?"ref":Pe,Ke=ye.onChange,it=ye.onClick,ot=TE(ye,L_e),gt=cR({accept:_,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:We(rc(Ke,ve)),onClick:We(rc(it,se)),tabIndex:-1},qe,G);return uo(uo({},gt),ot)}},[G,n,l,ve,r]);return uo(uo({},Y),{},{isFocused:W&&!r,getRootProps:dt,getInputProps:De,rootRef:q,inputRef:G,open:We(ue)})}function G_e(e,t){switch(t.type){case"focus":return uo(uo({},e),{},{isFocused:!0});case"blur":return uo(uo({},e),{},{isFocused:!1});case"openDialog":return uo(uo({},uR),{},{isFileDialogActive:!0});case"closeDialog":return uo(uo({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return uo(uo({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return uo(uo({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return uo({},uR);default:return e}}function Hj(){}const V_e=({open:e,setOpen:t})=>{const n=b.useRef(null),[r,o]=b.useState(!1),i=b.useRef(null),{getRootProps:a,getInputProps:l,acceptedFiles:u}=WH({accept:{"text/csv":[".csv"],"application/json":[".json"]},multiple:!1,onDrop:m=>{if(i.current){const g=new DataTransfer;m.forEach(w=>{g.items.add(w)}),i.current.files=g.files}}}),d=async()=>{const g=new FormData(n.current).get("my-file");try{o(!0),await x0.domains_import({file:g}).then(()=>{Ps("File successfully uploaded"),t(!1)}).catch(w=>{console.log(w)}).finally(()=>{o(!1)})}catch{}},f=!u.length;return y.jsx(ku,{maxWidth:"xs",title:"Import domains",loading:r,open:e,setOpen:t,onSubmit:d,submitText:"Submit",disabled:f,children:y.jsx(Oe,{flexDirection:"column",gap:"24px",textAlign:"center",pb:4,border:"1px dashed grey",borderRadius:1,children:y.jsx("form",{ref:n,children:y.jsx("div",{className:"my-dropzone-container",children:y.jsxs("div",{...a({className:"dropzone"}),className:"my-dropzone-container__dropzone",children:[y.jsx("input",{type:"file",name:"my-file",required:!0,style:{opacity:0},ref:i}),y.jsx("input",{...l()}),u.length?y.jsx("p",{children:u[0].name}):y.jsx("p",{children:"Drag 'n' drop some files here"}),y.jsx(rr,{variant:"outlined",children:"Open File Dialog"})]})})})})})},Uj=[{value:Bt.domainName.key,label:Bt.domainName.name},{value:Bt.totalPrice.key,label:Bt.totalPrice.adminName},{value:Bt.categories.key,label:Bt.categories.name},{value:Bt.contentNotes.key,label:Bt.contentNotes.name},{value:Bt.domainStatus.key,label:Bt.domainStatus.name},{value:Bt.language.key,label:Bt.language.name},{value:Bt.contentSampleLink.key,label:Bt.contentSampleLink.name},{value:Bt.webmasterEmails.key,label:Bt.webmasterEmails.name},{value:Bt.nlEmails.key,label:Bt.nlEmails.name}],W_e=({open:e,setOpen:t})=>{const[n,r]=b.useState(!1),o=xt(i1),i=xt(OT),[a,l]=b.useState(Uj.map(g=>g.value)),{totalCount:u}=xt(RT),d=xt(_T),f=async()=>{try{r(!0),await x0.export_confirm({fields:a,filters:{...i,domainName:o},sort:d}).then(g=>{const w=new Blob([g.data],{type:"text/csv;charset=utf-8;"}),C=window.URL.createObjectURL(w);window.open(C,"_blank"),t(!1)}).catch(()=>{}).finally(()=>{r(!1)})}catch{}};return y.jsx(ku,{maxWidth:"sm",title:`Export domains (${u})`,loading:n,open:e,setOpen:t,onSubmit:f,submitText:"Export",disabled:!1,children:y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(RH,{label:"Fields",options:Uj,value:a,onChange:l}),y.jsx(a_,{})]})})},q_e=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(null),o=!!n,[i,a]=b.useState(!1),[l,u]=b.useState(!1),{totalCount:d}=xt(RT),f=C=>{r(C.currentTarget)},m=()=>{r(null)},g=()=>{m(),a(!0)},w=()=>{m(),u(!0)};return y.jsxs(Oe,{display:"flex",gap:1,children:[y.jsx(p7,{open:e,setOpen:t}),y.jsx(V_e,{open:i,setOpen:a}),y.jsx(W_e,{open:l,setOpen:u}),y.jsx(Ur,{onClick:f,children:y.jsx(qCe,{})}),y.jsxs(t9,{anchorEl:n,open:o,onClose:m,children:[y.jsxs(fh,{onClick:g,children:[y.jsx(sx,{children:y.jsx(Aj,{size:"24px"})}),y.jsx(m2,{children:"Import domains"})]}),y.jsxs(fh,{onClick:w,children:[y.jsx(sx,{sx:{svg:{transform:"rotate(180deg)"}},children:y.jsx(Aj,{size:"24px"})}),y.jsxs(m2,{children:["Export domains (",d,")"]})]})]})]})},Y_e=()=>y.jsxs(Oe,{children:[y.jsx(yl,{title:"Domains",end:y.jsx(q_e,{})}),y.jsx(KOe,{})]});var jp=(e=>(e.cart="cart",e.cart_add="cart_add",e.cart_update="cart_update",e.cart_pay="cart_pay",e.cart_remove="cart_remove",e.cart_clear="cart_clear",e))(jp||{});const $g=e=>{const{name:t}=e;switch(t){case"cart":return"/market/cart";case"cart_add":return"/market/cart/add";case"cart_update":return"/market/cart/update";case"cart_pay":return"/market/cart/pay";case"cart_remove":return"/market/cart/remove";case"cart_clear":return"/market/cart/clear";default:return""}};class n0{static async cart(){return hn.get($g({name:jp.cart}))}static async cart_add(t){return hn.post($g({name:jp.cart_add}),{domainId:t})}static async cart_update(t){return hn.post($g({name:jp.cart_update}),t)}static async cart_pay(){return hn.post($g({name:jp.cart_pay}))}static async cart_remove(t){return hn.post($g({name:jp.cart_remove}),{itemId:t})}static async cart_clear(){return hn.post($g({name:jp.cart_clear}))}}const au=ni("fetchCart",async()=>(await n0.cart()).data),K_e={cart:{data:{items:[]},isLoading:!1}},X_e=Mh({name:"cartSlice",initialState:K_e,reducers:{},extraReducers:e=>{e.addCase(au.pending,t=>{t.cart.isLoading=!0}).addCase(au.fulfilled,(t,n)=>{t.cart.data=n.payload,t.cart.isLoading=!1})}}),qH=bn([e=>e.cartState.cart],e=>e.data),YH=bn([qH],e=>e.items);bn([e=>e.cartState.cart],e=>e.isLoading);const Z_e=X_e.reducer,Gj=({id:e})=>{const t=so(),[n,r]=b.useState(!1),o=async()=>{try{r(!0),await n0.cart_add(e).then(i=>{console.log(i),Ps("Added"),t(au())}).catch(()=>{}).finally(()=>{r(!1)})}catch{}};return y.jsx(rr,{variant:"outlined",startIcon:y.jsx(ywe,{}),onClick:o,loading:n,children:"ADD"})},cI=({name:e,tooltipText:t})=>y.jsxs(Oe,{display:"flex",alignItems:"center",gap:1,children:[e,t&&y.jsx(E0,{text:t})]}),Q_e=()=>{const e=so(),{showLoader:t,hideLoader:n}=VT(),r=xt(sz),o=xt(RT),i=xt(cz),a=xt(lz),l=xt(i1),u=RO(l),[d,f]=b.useState(!1),m=xt(OT),g=xt(_T),[w,C]=b.useState(""),S=[{field:Bt.domainName.key,headerName:Bt.domainName.name,width:180},{field:Bt.totalPrice.key,headerName:Bt.totalPrice.name,width:110,valueGetter:k=>oo+k},{field:Bt.domainRating.key,headerName:Bt.domainRating.shortName,width:100,renderHeader:()=>y.jsx(cI,{name:Bt.domainRating.shortName,tooltipText:Bt.domainRating.tooltip})},{field:Bt.organicTraffic.key,headerName:Bt.organicTraffic.shortName,width:100,renderHeader:()=>y.jsx(cI,{name:Bt.organicTraffic.shortName,tooltipText:Bt.organicTraffic.tooltip})},{field:Bt.domainAuthority.key,headerName:Bt.domainAuthority.shortName,width:100,renderHeader:()=>y.jsx(cI,{name:Bt.domainAuthority.shortName,tooltipText:Bt.domainAuthority.tooltip})},{field:Bt.countries.key,headerName:Bt.countries.name,width:150,renderCell:k=>y.jsx(DH,{data:k.value??[]})},{field:Bt.language.key,headerName:Bt.language.name,width:Bt.language.width,renderCell:k=>y.jsx(LH,{value:k.value??""})},{field:Bt.categories.key,headerName:Bt.categories.name,width:150,renderCell:k=>y.jsx(_H,{data:k.value??[]})},{field:"actions",type:"actions",headerName:"",minWidth:100,renderCell:({row:k})=>y.jsx(Gj,{id:k.id})}],E=()=>{e(C0("")),e(N2(e1))},T=k=>e(C0(k)),I=k=>{try{C(k.id),t(),e(RA({domainId:k.id})).unwrap().then(()=>{f(!0)}).finally(()=>{n()})}catch{}};return b.useEffect(()=>{e(IA({searchValue:u,page:i.page,filters:m,sort:g}))},[e,u,i.page,m,g]),y.jsxs(Oe,{children:[y.jsxs(Oe,{display:"flex",mb:2,justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:2,children:[y.jsx(GT,{sx:{paddingRight:1,width:{xs:"100%",sm:"300px"}},value:l,onChange:T,onClear:E,label:"Search by domain name"}),y.jsxs(Oe,{display:"flex",gap:2,ml:{xs:"auto",sm:"0"},children:[y.jsx(OH,{}),y.jsx(a_,{})]})]}),y.jsx(AO,{sx:{height:{xs:"calc(100vh - 270px)",sm:"calc(100vh - 230px)"}},onRowClick:I,rows:r,loading:a,columns:S,rowCount:o.totalCount||0,paginationModel:i,onPaginationModelChange:k=>e(N2(k))}),y.jsx(iH,{open:d,setOpen:f,footer:y.jsx(Gj,{id:w})})]})},J_e=()=>y.jsxs(Oe,{children:[y.jsx(yl,{title:"Domains"}),y.jsx(Q_e,{})]});var uI={exports:{}},Tv={},dI={exports:{}},fI={};/**
 * @license React
 * scheduler.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vj;function e4e(){return Vj||(Vj=1,function(e){function t(N,H){var Y=N.length;N.push(H);e:for(;0<Y;){var Q=Y-1>>>1,W=N[Q];if(0<o(W,H))N[Q]=H,N[Y]=W,Y=Q;else break e}}function n(N){return N.length===0?null:N[0]}function r(N){if(N.length===0)return null;var H=N[0],Y=N.pop();if(Y!==H){N[0]=Y;e:for(var Q=0,W=N.length,K=W>>>1;Q<K;){var J=2*(Q+1)-1,ae=N[J],ce=J+1,de=N[ce];if(0>o(ae,Y))ce<W&&0>o(de,ae)?(N[Q]=de,N[ce]=Y,Q=ce):(N[Q]=ae,N[J]=Y,Q=J);else if(ce<W&&0>o(de,Y))N[Q]=de,N[ce]=Y,Q=ce;else break e}}return H}function o(N,H){var Y=N.sortIndex-H.sortIndex;return Y!==0?Y:N.id-H.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var u=[],d=[],f=1,m=null,g=3,w=!1,C=!1,S=!1,E=!1,T=typeof setTimeout=="function"?setTimeout:null,I=typeof clearTimeout=="function"?clearTimeout:null,k=typeof setImmediate<"u"?setImmediate:null;function R(N){for(var H=n(d);H!==null;){if(H.callback===null)r(d);else if(H.startTime<=N)r(d),H.sortIndex=H.expirationTime,t(u,H);else break;H=n(d)}}function P(N){if(S=!1,R(N),!C)if(n(u)!==null)C=!0,O||(O=!0,B());else{var H=n(d);H!==null&&G(P,H.startTime-N)}}var O=!1,j=-1,F=5,D=-1;function _(){return E?!0:!(e.unstable_now()-D<F)}function $(){if(E=!1,O){var N=e.unstable_now();D=N;var H=!0;try{e:{C=!1,S&&(S=!1,I(j),j=-1),w=!0;var Y=g;try{t:{for(R(N),m=n(u);m!==null&&!(m.expirationTime>N&&_());){var Q=m.callback;if(typeof Q=="function"){m.callback=null,g=m.priorityLevel;var W=Q(m.expirationTime<=N);if(N=e.unstable_now(),typeof W=="function"){m.callback=W,R(N),H=!0;break t}m===n(u)&&r(u),R(N)}else r(u);m=n(u)}if(m!==null)H=!0;else{var K=n(d);K!==null&&G(P,K.startTime-N),H=!1}}break e}finally{m=null,g=Y,w=!1}H=void 0}}finally{H?B():O=!1}}}var B;if(typeof k=="function")B=function(){k($)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,q=V.port2;V.port1.onmessage=$,B=function(){q.postMessage(null)}}else B=function(){T($,0)};function G(N,H){j=T(function(){N(e.unstable_now())},H)}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(N){N.callback=null},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):F=0<N?Math.floor(1e3/N):5},e.unstable_getCurrentPriorityLevel=function(){return g},e.unstable_next=function(N){switch(g){case 1:case 2:case 3:var H=3;break;default:H=g}var Y=g;g=H;try{return N()}finally{g=Y}},e.unstable_requestPaint=function(){E=!0},e.unstable_runWithPriority=function(N,H){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var Y=g;g=N;try{return H()}finally{g=Y}},e.unstable_scheduleCallback=function(N,H,Y){var Q=e.unstable_now();switch(typeof Y=="object"&&Y!==null?(Y=Y.delay,Y=typeof Y=="number"&&0<Y?Q+Y:Q):Y=Q,N){case 1:var W=-1;break;case 2:W=250;break;case 5:W=1073741823;break;case 4:W=1e4;break;default:W=5e3}return W=Y+W,N={id:f++,callback:H,priorityLevel:N,startTime:Y,expirationTime:W,sortIndex:-1},Y>Q?(N.sortIndex=Y,t(d,N),n(u)===null&&N===n(d)&&(S?(I(j),j=-1):S=!0,G(P,Y-Q))):(N.sortIndex=W,t(u,N),C||w||(C=!0,O||(O=!0,B()))),N},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(N){var H=g;return function(){var Y=g;g=H;try{return N.apply(this,arguments)}finally{g=Y}}}}(fI)),fI}var Wj;function t4e(){return Wj||(Wj=1,dI.exports=e4e()),dI.exports}/**
 * @license React
 * react-dom-client.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var qj;function n4e(){if(qj)return Tv;qj=1;var e=t4e(),t=F0(),n=vF();function r(s){var c="https://react.dev/errors/"+s;if(1<arguments.length){c+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)c+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+s+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(s){return!(!s||s.nodeType!==1&&s.nodeType!==9&&s.nodeType!==11)}function i(s){var c=s,p=s;if(s.alternate)for(;c.return;)c=c.return;else{s=c;do c=s,(c.flags&4098)!==0&&(p=c.return),s=c.return;while(s)}return c.tag===3?p:null}function a(s){if(s.tag===13){var c=s.memoizedState;if(c===null&&(s=s.alternate,s!==null&&(c=s.memoizedState)),c!==null)return c.dehydrated}return null}function l(s){if(i(s)!==s)throw Error(r(188))}function u(s){var c=s.alternate;if(!c){if(c=i(s),c===null)throw Error(r(188));return c!==s?null:s}for(var p=s,x=c;;){var M=p.return;if(M===null)break;var L=M.alternate;if(L===null){if(x=M.return,x!==null){p=x;continue}break}if(M.child===L.child){for(L=M.child;L;){if(L===p)return l(M),s;if(L===x)return l(M),c;L=L.sibling}throw Error(r(188))}if(p.return!==x.return)p=M,x=L;else{for(var X=!1,ne=M.child;ne;){if(ne===p){X=!0,p=M,x=L;break}if(ne===x){X=!0,x=M,p=L;break}ne=ne.sibling}if(!X){for(ne=L.child;ne;){if(ne===p){X=!0,p=L,x=M;break}if(ne===x){X=!0,x=L,p=M;break}ne=ne.sibling}if(!X)throw Error(r(189))}}if(p.alternate!==x)throw Error(r(190))}if(p.tag!==3)throw Error(r(188));return p.stateNode.current===p?s:c}function d(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s;for(s=s.child;s!==null;){if(c=d(s),c!==null)return c;s=s.sibling}return null}var f=Object.assign,m=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),w=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),E=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),I=Symbol.for("react.consumer"),k=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),j=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),_=Symbol.for("react.memo_cache_sentinel"),$=Symbol.iterator;function B(s){return s===null||typeof s!="object"?null:(s=$&&s[$]||s["@@iterator"],typeof s=="function"?s:null)}var V=Symbol.for("react.client.reference");function q(s){if(s==null)return null;if(typeof s=="function")return s.$$typeof===V?null:s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case C:return"Fragment";case E:return"Profiler";case S:return"StrictMode";case P:return"Suspense";case O:return"SuspenseList";case D:return"Activity"}if(typeof s=="object")switch(s.$$typeof){case w:return"Portal";case k:return(s.displayName||"Context")+".Provider";case I:return(s._context.displayName||"Context")+".Consumer";case R:var c=s.render;return s=s.displayName,s||(s=c.displayName||c.name||"",s=s!==""?"ForwardRef("+s+")":"ForwardRef"),s;case j:return c=s.displayName||null,c!==null?c:q(s.type)||"Memo";case F:c=s._payload,s=s._init;try{return q(s(c))}catch{}}return null}var G=Array.isArray,N=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,H=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Y={pending:!1,data:null,method:null,action:null},Q=[],W=-1;function K(s){return{current:s}}function J(s){0>W||(s.current=Q[W],Q[W]=null,W--)}function ae(s,c){W++,Q[W]=s.current,s.current=c}var ce=K(null),de=K(null),re=K(null),ke=K(null);function Ce(s,c){switch(ae(re,c),ae(de,s),ae(ce,null),c.nodeType){case 9:case 11:s=(s=c.documentElement)&&(s=s.namespaceURI)?Br(s):0;break;default:if(s=c.tagName,c=c.namespaceURI)c=Br(c),s=Wr(c,s);else switch(s){case"svg":s=1;break;case"math":s=2;break;default:s=0}}J(ce),ae(ce,s)}function ie(){J(ce),J(de),J(re)}function le(s){s.memoizedState!==null&&ae(ke,s);var c=ce.current,p=Wr(c,s.type);c!==p&&(ae(de,s),ae(ce,p))}function ve(s){de.current===s&&(J(ce),J(de)),ke.current===s&&(J(ke),Cd._currentValue=Y)}var ue=Object.prototype.hasOwnProperty,me=e.unstable_scheduleCallback,be=e.unstable_cancelCallback,Fe=e.unstable_shouldYield,Ze=e.unstable_requestPaint,We=e.unstable_now,_e=e.unstable_getCurrentPriorityLevel,ft=e.unstable_ImmediatePriority,nt=e.unstable_UserBlockingPriority,dt=e.unstable_NormalPriority,se=e.unstable_LowPriority,De=e.unstable_IdlePriority,ye=e.log,Pe=e.unstable_setDisableYieldValue,qe=null,Ke=null;function it(s){if(typeof ye=="function"&&Pe(s),Ke&&typeof Ke.setStrictMode=="function")try{Ke.setStrictMode(qe,s)}catch{}}var ot=Math.clz32?Math.clz32:jt,gt=Math.log,Ue=Math.LN2;function jt(s){return s>>>=0,s===0?32:31-(gt(s)/Ue|0)|0}var Ht=256,pt=4194304;function ht(s){var c=s&42;if(c!==0)return c;switch(s&-s){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return s&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return s&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return s}}function Ct(s,c,p){var x=s.pendingLanes;if(x===0)return 0;var M=0,L=s.suspendedLanes,X=s.pingedLanes;s=s.warmLanes;var ne=x&134217727;return ne!==0?(x=ne&~L,x!==0?M=ht(x):(X&=ne,X!==0?M=ht(X):p||(p=ne&~s,p!==0&&(M=ht(p))))):(ne=x&~L,ne!==0?M=ht(ne):X!==0?M=ht(X):p||(p=x&~s,p!==0&&(M=ht(p)))),M===0?0:c!==0&&c!==M&&(c&L)===0&&(L=M&-M,p=c&-c,L>=p||L===32&&(p&4194048)!==0)?c:M}function Nt(s,c){return(s.pendingLanes&~(s.suspendedLanes&~s.pingedLanes)&c)===0}function Yn(s,c){switch(s){case 1:case 2:case 4:case 8:case 64:return c+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 c+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 pr(){var s=Ht;return Ht<<=1,(Ht&4194048)===0&&(Ht=256),s}function Go(){var s=pt;return pt<<=1,(pt&62914560)===0&&(pt=4194304),s}function Jn(s){for(var c=[],p=0;31>p;p++)c.push(s);return c}function Er(s,c){s.pendingLanes|=c,c!==268435456&&(s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0)}function Xr(s,c,p,x,M,L){var X=s.pendingLanes;s.pendingLanes=p,s.suspendedLanes=0,s.pingedLanes=0,s.warmLanes=0,s.expiredLanes&=p,s.entangledLanes&=p,s.errorRecoveryDisabledLanes&=p,s.shellSuspendCounter=0;var ne=s.entanglements,ge=s.expirationTimes,Le=s.hiddenUpdates;for(p=X&~p;0<p;){var rt=31-ot(p),ct=1<<rt;ne[rt]=0,ge[rt]=-1;var He=Le[rt];if(He!==null)for(Le[rt]=null,rt=0;rt<He.length;rt++){var $e=He[rt];$e!==null&&($e.lane&=-536870913)}p&=~ct}x!==0&&Vr(s,x,0),L!==0&&M===0&&s.tag!==0&&(s.suspendedLanes|=L&~(X&~c))}function Vr(s,c,p){s.pendingLanes|=c,s.suspendedLanes&=~c;var x=31-ot(c);s.entangledLanes|=c,s.entanglements[x]=s.entanglements[x]|1073741824|p&4194090}function Ar(s,c){var p=s.entangledLanes|=c;for(s=s.entanglements;p;){var x=31-ot(p),M=1<<x;M&c|s[x]&c&&(s[x]|=c),p&=~M}}function $o(s){switch(s){case 2:s=1;break;case 8:s=4;break;case 32:s=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:s=128;break;case 268435456:s=134217728;break;default:s=0}return s}function Kt(s){return s&=-s,2<s?8<s?(s&134217727)!==0?32:268435456:8:2}function he(){var s=H.p;return s!==0?s:(s=window.event,s===void 0?32:FC(s.type))}function fe(s,c){var p=H.p;try{return H.p=s,c()}finally{H.p=p}}var xe=Math.random().toString(36).slice(2),ze="__reactFiber$"+xe,Qe="__reactProps$"+xe,bt="__reactContainer$"+xe,_t="__reactEvents$"+xe,St="__reactListeners$"+xe,Dt="__reactHandles$"+xe,Ut="__reactResources$"+xe,Gt="__reactMarker$"+xe;function Et(s){delete s[ze],delete s[Qe],delete s[_t],delete s[St],delete s[Dt]}function Lt(s){var c=s[ze];if(c)return c;for(var p=s.parentNode;p;){if(c=p[bt]||p[ze]){if(p=c.alternate,c.child!==null||p!==null&&p.child!==null)for(s=MC(s);s!==null;){if(p=s[ze])return p;s=MC(s)}return c}s=p,p=s.parentNode}return null}function gn(s){if(s=s[ze]||s[bt]){var c=s.tag;if(c===5||c===6||c===13||c===26||c===27||c===3)return s}return null}function Kn(s){var c=s.tag;if(c===5||c===26||c===27||c===6)return s.stateNode;throw Error(r(33))}function hr(s){var c=s[Ut];return c||(c=s[Ut]={hoistableStyles:new Map,hoistableScripts:new Map}),c}function Ne(s){s[Gt]=!0}var je=new Set,Tt={};function Zt(s,c){Ft(s,c),Ft(s+"Capture",c)}function Ft(s,c){for(Tt[s]=c,s=0;s<c.length;s++)je.add(c[s])}var vn=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]*$"),ir={},$r={};function Ds(s){return ue.call($r,s)?!0:ue.call(ir,s)?!1:vn.test(s)?$r[s]=!0:(ir[s]=!0,!1)}function gi(s,c,p){if(Ds(c))if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":s.removeAttribute(c);return;case"boolean":var x=c.toLowerCase().slice(0,5);if(x!=="data-"&&x!=="aria-"){s.removeAttribute(c);return}}s.setAttribute(c,""+p)}}function Ji(s,c,p){if(p===null)s.removeAttribute(c);else{switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(c);return}s.setAttribute(c,""+p)}}function fn(s,c,p,x){if(x===null)s.removeAttribute(p);else{switch(typeof x){case"undefined":case"function":case"symbol":case"boolean":s.removeAttribute(p);return}s.setAttributeNS(c,p,""+x)}}var Zr,dn;function fo(s){if(Zr===void 0)try{throw Error()}catch(p){var c=p.stack.trim().match(/\n( *(at )?)/);Zr=c&&c[1]||"",dn=-1<p.stack.indexOf(`
    at`)?" (<anonymous>)":-1<p.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Zr+s+dn}var Vo=!1;function er(s,c){if(!s||Vo)return"";Vo=!0;var p=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var x={DetermineComponentFrameRoot:function(){try{if(c){var ct=function(){throw Error()};if(Object.defineProperty(ct.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ct,[])}catch($e){var He=$e}Reflect.construct(s,[],ct)}else{try{ct.call()}catch($e){He=$e}s.call(ct.prototype)}}else{try{throw Error()}catch($e){He=$e}(ct=s())&&typeof ct.catch=="function"&&ct.catch(function(){})}}catch($e){if($e&&He&&typeof $e.stack=="string")return[$e.stack,He.stack]}return[null,null]}};x.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var M=Object.getOwnPropertyDescriptor(x.DetermineComponentFrameRoot,"name");M&&M.configurable&&Object.defineProperty(x.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var L=x.DetermineComponentFrameRoot(),X=L[0],ne=L[1];if(X&&ne){var ge=X.split(`
`),Le=ne.split(`
`);for(M=x=0;x<ge.length&&!ge[x].includes("DetermineComponentFrameRoot");)x++;for(;M<Le.length&&!Le[M].includes("DetermineComponentFrameRoot");)M++;if(x===ge.length||M===Le.length)for(x=ge.length-1,M=Le.length-1;1<=x&&0<=M&&ge[x]!==Le[M];)M--;for(;1<=x&&0<=M;x--,M--)if(ge[x]!==Le[M]){if(x!==1||M!==1)do if(x--,M--,0>M||ge[x]!==Le[M]){var rt=`
`+ge[x].replace(" at new "," at ");return s.displayName&&rt.includes("<anonymous>")&&(rt=rt.replace("<anonymous>",s.displayName)),rt}while(1<=x&&0<=M);break}}}finally{Vo=!1,Error.prepareStackTrace=p}return(p=s?s.displayName||s.name:"")?fo(p):""}function El(s){switch(s.tag){case 26:case 27:case 5:return fo(s.type);case 16:return fo("Lazy");case 13:return fo("Suspense");case 19:return fo("SuspenseList");case 0:case 15:return er(s.type,!1);case 11:return er(s.type.render,!1);case 1:return er(s.type,!0);case 31:return fo("Activity");default:return""}}function Ou(s){try{var c="";do c+=El(s),s=s.return;while(s);return c}catch(p){return`
Error generating stack: `+p.message+`
`+p.stack}}function oi(s){switch(typeof s){case"bigint":case"boolean":case"number":case"string":case"undefined":return s;case"object":return s;default:return""}}function cb(s){var c=s.type;return(s=s.nodeName)&&s.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function ub(s){var c=cb(s)?"checked":"value",p=Object.getOwnPropertyDescriptor(s.constructor.prototype,c),x=""+s[c];if(!s.hasOwnProperty(c)&&typeof p<"u"&&typeof p.get=="function"&&typeof p.set=="function"){var M=p.get,L=p.set;return Object.defineProperty(s,c,{configurable:!0,get:function(){return M.call(this)},set:function(X){x=""+X,L.call(this,X)}}),Object.defineProperty(s,c,{enumerable:p.enumerable}),{getValue:function(){return x},setValue:function(X){x=""+X},stopTracking:function(){s._valueTracker=null,delete s[c]}}}}function Hh(s){s._valueTracker||(s._valueTracker=ub(s))}function db(s){if(!s)return!1;var c=s._valueTracker;if(!c)return!0;var p=c.getValue(),x="";return s&&(x=cb(s)?s.checked?"true":"false":s.value),s=x,s!==p?(c.setValue(s),!0):!1}function Mc(s){if(s=s||(typeof document<"u"?document:void 0),typeof s>"u")return null;try{return s.activeElement||s.body}catch{return s.body}}var k1=/[\n"\\]/g;function ea(s){return s.replace(k1,function(c){return"\\"+c.charCodeAt(0).toString(16)+" "})}function Uh(s,c,p,x,M,L,X,ne){s.name="",X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?s.type=X:s.removeAttribute("type"),c!=null?X==="number"?(c===0&&s.value===""||s.value!=c)&&(s.value=""+oi(c)):s.value!==""+oi(c)&&(s.value=""+oi(c)):X!=="submit"&&X!=="reset"||s.removeAttribute("value"),c!=null?mf(s,X,oi(c)):p!=null?mf(s,X,oi(p)):x!=null&&s.removeAttribute("value"),M==null&&L!=null&&(s.defaultChecked=!!L),M!=null&&(s.checked=M&&typeof M!="function"&&typeof M!="symbol"),ne!=null&&typeof ne!="function"&&typeof ne!="symbol"&&typeof ne!="boolean"?s.name=""+oi(ne):s.removeAttribute("name")}function fb(s,c,p,x,M,L,X,ne){if(L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(s.type=L),c!=null||p!=null){if(!(L!=="submit"&&L!=="reset"||c!=null))return;p=p!=null?""+oi(p):"",c=c!=null?""+oi(c):p,ne||c===s.value||(s.value=c),s.defaultValue=c}x=x??M,x=typeof x!="function"&&typeof x!="symbol"&&!!x,s.checked=ne?s.checked:!!x,s.defaultChecked=!!x,X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"&&(s.name=X)}function mf(s,c,p){c==="number"&&Mc(s.ownerDocument)===s||s.defaultValue===""+p||(s.defaultValue=""+p)}function _u(s,c,p,x){if(s=s.options,c){c={};for(var M=0;M<p.length;M++)c["$"+p[M]]=!0;for(p=0;p<s.length;p++)M=c.hasOwnProperty("$"+s[p].value),s[p].selected!==M&&(s[p].selected=M),M&&x&&(s[p].defaultSelected=!0)}else{for(p=""+oi(p),c=null,M=0;M<s.length;M++){if(s[M].value===p){s[M].selected=!0,x&&(s[M].defaultSelected=!0);return}c!==null||s[M].disabled||(c=s[M])}c!==null&&(c.selected=!0)}}function pb(s,c,p){if(c!=null&&(c=""+oi(c),c!==s.value&&(s.value=c),p==null)){s.defaultValue!==c&&(s.defaultValue=c);return}s.defaultValue=p!=null?""+oi(p):""}function Gh(s,c,p,x){if(c==null){if(x!=null){if(p!=null)throw Error(r(92));if(G(x)){if(1<x.length)throw Error(r(93));x=x[0]}p=x}p==null&&(p=""),c=p}p=oi(c),s.defaultValue=p,x=s.textContent,x===p&&x!==""&&x!==null&&(s.value=x)}function Tl(s,c){if(c){var p=s.firstChild;if(p&&p===s.lastChild&&p.nodeType===3){p.nodeValue=c;return}}s.textContent=c}var Du=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 hb(s,c,p){var x=c.indexOf("--")===0;p==null||typeof p=="boolean"||p===""?x?s.setProperty(c,""):c==="float"?s.cssFloat="":s[c]="":x?s.setProperty(c,p):typeof p!="number"||p===0||Du.has(c)?c==="float"?s.cssFloat=p:s[c]=(""+p).trim():s[c]=p+"px"}function mb(s,c,p){if(c!=null&&typeof c!="object")throw Error(r(62));if(s=s.style,p!=null){for(var x in p)!p.hasOwnProperty(x)||c!=null&&c.hasOwnProperty(x)||(x.indexOf("--")===0?s.setProperty(x,""):x==="float"?s.cssFloat="":s[x]="");for(var M in c)x=c[M],c.hasOwnProperty(M)&&p[M]!==x&&hb(s,M,x)}else for(var L in c)c.hasOwnProperty(L)&&hb(s,L,c[L])}function gb(s){if(s.indexOf("-")===-1)return!1;switch(s){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 P1=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"]]),I1=/^[\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 gf(s){return I1.test(""+s)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":s}var Vh=null;function bb(s){return s=s.target||s.srcElement||window,s.correspondingUseElement&&(s=s.correspondingUseElement),s.nodeType===3?s.parentNode:s}var Lu=null,$u=null;function yb(s){var c=gn(s);if(c&&(s=c.stateNode)){var p=s[Qe]||null;e:switch(s=c.stateNode,c.type){case"input":if(Uh(s,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name),c=p.name,p.type==="radio"&&c!=null){for(p=s;p.parentNode;)p=p.parentNode;for(p=p.querySelectorAll('input[name="'+ea(""+c)+'"][type="radio"]'),c=0;c<p.length;c++){var x=p[c];if(x!==s&&x.form===s.form){var M=x[Qe]||null;if(!M)throw Error(r(90));Uh(x,M.value,M.defaultValue,M.defaultValue,M.checked,M.defaultChecked,M.type,M.name)}}for(c=0;c<p.length;c++)x=p[c],x.form===s.form&&db(x)}break e;case"textarea":pb(s,p.value,p.defaultValue);break e;case"select":c=p.value,c!=null&&_u(s,!!p.multiple,c,!1)}}}var vb=!1;function A1(s,c,p){if(vb)return s(c,p);vb=!0;try{var x=s(c);return x}finally{if(vb=!1,(Lu!==null||$u!==null)&&(Vm(),Lu&&(c=Lu,s=$u,$u=Lu=null,yb(c),s)))for(c=0;c<s.length;c++)yb(s[c])}}function bf(s,c){var p=s.stateNode;if(p===null)return null;var x=p[Qe]||null;if(x===null)return null;p=x[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(x=!x.disabled)||(s=s.type,x=!(s==="button"||s==="input"||s==="select"||s==="textarea")),s=!x;break e;default:s=!1}if(s)return null;if(p&&typeof p!="function")throw Error(r(231,c,typeof p));return p}var Ls=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),yf=!1;if(Ls)try{var vf={};Object.defineProperty(vf,"passive",{get:function(){yf=!0}}),window.addEventListener("test",vf,vf),window.removeEventListener("test",vf,vf)}catch{yf=!1}var Ml=null,xb=null,Wh=null;function R1(){if(Wh)return Wh;var s,c=xb,p=c.length,x,M="value"in Ml?Ml.value:Ml.textContent,L=M.length;for(s=0;s<p&&c[s]===M[s];s++);var X=p-s;for(x=1;x<=X&&c[p-x]===M[L-x];x++);return Wh=M.slice(s,1<x?1-x:void 0)}function mr(s){var c=s.keyCode;return"charCode"in s?(s=s.charCode,s===0&&c===13&&(s=13)):s=c,s===10&&(s=13),32<=s||s===13?s:0}function ar(){return!0}function O1(){return!1}function bi(s){function c(p,x,M,L,X){this._reactName=p,this._targetInst=M,this.type=x,this.nativeEvent=L,this.target=X,this.currentTarget=null;for(var ne in s)s.hasOwnProperty(ne)&&(p=s[ne],this[ne]=p?p(L):L[ne]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?ar:O1,this.isPropagationStopped=O1,this}return f(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var p=this.nativeEvent;p&&(p.preventDefault?p.preventDefault():typeof p.returnValue!="unknown"&&(p.returnValue=!1),this.isDefaultPrevented=ar)},stopPropagation:function(){var p=this.nativeEvent;p&&(p.stopPropagation?p.stopPropagation():typeof p.cancelBubble!="unknown"&&(p.cancelBubble=!0),this.isPropagationStopped=ar)},persist:function(){},isPersistent:ar}),c}var kc={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(s){return s.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qh=bi(kc),xf=f({},kc,{view:0,detail:0}),xM=bi(xf),Yh,wb,lo,ju=f({},xf,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ja,button:0,buttons:0,relatedTarget:function(s){return s.relatedTarget===void 0?s.fromElement===s.srcElement?s.toElement:s.fromElement:s.relatedTarget},movementX:function(s){return"movementX"in s?s.movementX:(s!==lo&&(lo&&s.type==="mousemove"?(Yh=s.screenX-lo.screenX,wb=s.screenY-lo.screenY):wb=Yh=0,lo=s),Yh)},movementY:function(s){return"movementY"in s?s.movementY:wb}}),kl=bi(ju),_1=f({},ju,{dataTransfer:0}),Cb=bi(_1),ta=f({},xf,{relatedTarget:0}),Kh=bi(ta),D1=f({},kc,{animationName:0,elapsedTime:0,pseudoElement:0}),L1=bi(D1),$1=f({},kc,{clipboardData:function(s){return"clipboardData"in s?s.clipboardData:window.clipboardData}}),j1=bi($1),F1=f({},kc,{data:0}),yi=bi(F1),wM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},na={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"},CM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function N1(s){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(s):(s=CM[s])?!!c[s]:!1}function Ja(){return N1}var Xh=f({},xf,{key:function(s){if(s.key){var c=wM[s.key]||s.key;if(c!=="Unidentified")return c}return s.type==="keypress"?(s=mr(s),s===13?"Enter":String.fromCharCode(s)):s.type==="keydown"||s.type==="keyup"?na[s.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ja,charCode:function(s){return s.type==="keypress"?mr(s):0},keyCode:function(s){return s.type==="keydown"||s.type==="keyup"?s.keyCode:0},which:function(s){return s.type==="keypress"?mr(s):s.type==="keydown"||s.type==="keyup"?s.keyCode:0}}),Sb=bi(Xh),jr=f({},ju,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$s=bi(jr),Eb=f({},xf,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ja}),SM=bi(Eb),Tb=f({},kc,{propertyName:0,elapsedTime:0,pseudoElement:0}),EM=bi(Tb),TM=f({},ju,{deltaX:function(s){return"deltaX"in s?s.deltaX:"wheelDeltaX"in s?-s.wheelDeltaX:0},deltaY:function(s){return"deltaY"in s?s.deltaY:"wheelDeltaY"in s?-s.wheelDeltaY:"wheelDelta"in s?-s.wheelDelta:0},deltaZ:0,deltaMode:0}),MM=bi(TM),z1=f({},kc,{newState:0,oldState:0}),Zh=bi(z1),Fu=[9,13,27,32],Mb=Ls&&"CompositionEvent"in window,Nu=null;Ls&&"documentMode"in document&&(Nu=document.documentMode);var B1=Ls&&"TextEvent"in window&&!Nu,Qh=Ls&&(!Mb||Nu&&8<Nu&&11>=Nu),Jh=" ",kb=!1;function H1(s,c){switch(s){case"keyup":return Fu.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function em(s){return s=s.detail,typeof s=="object"&&"data"in s?s.data:null}var Pl=!1;function kM(s,c){switch(s){case"compositionend":return em(c);case"keypress":return c.which!==32?null:(kb=!0,Jh);case"textInput":return s=c.data,s===Jh&&kb?null:s;default:return null}}function U1(s,c){if(Pl)return s==="compositionend"||!Mb&&H1(s,c)?(s=R1(),Wh=xb=Ml=null,Pl=!1,s):null;switch(s){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return Qh&&c.locale!=="ko"?null:c.data;default:return null}}var ji={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 tm(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c==="input"?!!ji[s.type]:c==="textarea"}function zu(s,c,p,x){Lu?$u?$u.push(x):$u=[x]:Lu=x,c=Qm(c,"onChange"),0<c.length&&(p=new qh("onChange","change",null,p,x),s.push({event:p,listeners:c}))}var Bu=null,Hu=null;function PM(s){yC(s,0)}function nm(s){var c=Kn(s);if(db(c))return s}function G1(s,c){if(s==="change")return c}var V1=!1;if(Ls){var Pb;if(Ls){var Il="oninput"in document;if(!Il){var W1=document.createElement("div");W1.setAttribute("oninput","return;"),Il=typeof W1.oninput=="function"}Pb=Il}else Pb=!1;V1=Pb&&(!document.documentMode||9<document.documentMode)}function q1(){Bu&&(Bu.detachEvent("onpropertychange",rm),Hu=Bu=null)}function rm(s){if(s.propertyName==="value"&&nm(Hu)){var c=[];zu(c,Hu,s,bb(s)),A1(PM,c)}}function Y1(s,c,p){s==="focusin"?(q1(),Bu=c,Hu=p,Bu.attachEvent("onpropertychange",rm)):s==="focusout"&&q1()}function Al(s){if(s==="selectionchange"||s==="keyup"||s==="keydown")return nm(Hu)}function om(s,c){if(s==="click")return nm(c)}function IM(s,c){if(s==="input"||s==="change")return nm(c)}function AM(s,c){return s===c&&(s!==0||1/s===1/c)||s!==s&&c!==c}var Fi=typeof Object.is=="function"?Object.is:AM;function es(s,c){if(Fi(s,c))return!0;if(typeof s!="object"||s===null||typeof c!="object"||c===null)return!1;var p=Object.keys(s),x=Object.keys(c);if(p.length!==x.length)return!1;for(x=0;x<p.length;x++){var M=p[x];if(!ue.call(c,M)||!Fi(s[M],c[M]))return!1}return!0}function ra(s){for(;s&&s.firstChild;)s=s.firstChild;return s}function Ib(s,c){var p=ra(s);s=0;for(var x;p;){if(p.nodeType===3){if(x=s+p.textContent.length,s<=c&&x>=c)return{node:p,offset:c-s};s=x}e:{for(;p;){if(p.nextSibling){p=p.nextSibling;break e}p=p.parentNode}p=void 0}p=ra(p)}}function K1(s,c){return s&&c?s===c?!0:s&&s.nodeType===3?!1:c&&c.nodeType===3?K1(s,c.parentNode):"contains"in s?s.contains(c):s.compareDocumentPosition?!!(s.compareDocumentPosition(c)&16):!1:!1}function X1(s){s=s!=null&&s.ownerDocument!=null&&s.ownerDocument.defaultView!=null?s.ownerDocument.defaultView:window;for(var c=Mc(s.document);c instanceof s.HTMLIFrameElement;){try{var p=typeof c.contentWindow.location.href=="string"}catch{p=!1}if(p)s=c.contentWindow;else break;c=Mc(s.document)}return c}function Ab(s){var c=s&&s.nodeName&&s.nodeName.toLowerCase();return c&&(c==="input"&&(s.type==="text"||s.type==="search"||s.type==="tel"||s.type==="url"||s.type==="password")||c==="textarea"||s.contentEditable==="true")}var RM=Ls&&"documentMode"in document&&11>=document.documentMode,Uu=null,Rl=null,Me=null,Je=!1;function Ge(s,c,p){var x=p.window===p?p.document:p.nodeType===9?p:p.ownerDocument;Je||Uu==null||Uu!==Mc(x)||(x=Uu,"selectionStart"in x&&Ab(x)?x={start:x.selectionStart,end:x.selectionEnd}:(x=(x.ownerDocument&&x.ownerDocument.defaultView||window).getSelection(),x={anchorNode:x.anchorNode,anchorOffset:x.anchorOffset,focusNode:x.focusNode,focusOffset:x.focusOffset}),Me&&es(Me,x)||(Me=x,x=Qm(Rl,"onSelect"),0<x.length&&(c=new qh("onSelect","select",null,c,p),s.push({event:c,listeners:x}),c.target=Uu)))}function It(s,c){var p={};return p[s.toLowerCase()]=c.toLowerCase(),p["Webkit"+s]="webkit"+c,p["Moz"+s]="moz"+c,p}var on={animationend:It("Animation","AnimationEnd"),animationiteration:It("Animation","AnimationIteration"),animationstart:It("Animation","AnimationStart"),transitionrun:It("Transition","TransitionRun"),transitionstart:It("Transition","TransitionStart"),transitioncancel:It("Transition","TransitionCancel"),transitionend:It("Transition","TransitionEnd")},Un={},po={};Ls&&(po=document.createElement("div").style,"AnimationEvent"in window||(delete on.animationend.animation,delete on.animationiteration.animation,delete on.animationstart.animation),"TransitionEvent"in window||delete on.transitionend.transition);function Gn(s){if(Un[s])return Un[s];if(!on[s])return s;var c=on[s],p;for(p in c)if(c.hasOwnProperty(p)&&p in po)return Un[s]=c[p];return s}var im=Gn("animationend"),Z1=Gn("animationiteration"),Ni=Gn("animationstart"),am=Gn("transitionrun"),OM=Gn("transitionstart"),Gu=Gn("transitioncancel"),wf=Gn("transitionend"),Cf=new Map,Xn="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(" ");Xn.push("scrollEnd");function ka(s,c){Cf.set(s,c),Zt(c,[s])}var Rb=new WeakMap;function ii(s,c){if(typeof s=="object"&&s!==null){var p=Rb.get(s);return p!==void 0?p:(c={value:s,source:c,stack:Ou(c)},Rb.set(s,c),c)}return{value:s,source:c,stack:Ou(c)}}var oa=[],Vu=0,Ob=0;function Pc(){for(var s=Vu,c=Ob=Vu=0;c<s;){var p=oa[c];oa[c++]=null;var x=oa[c];oa[c++]=null;var M=oa[c];oa[c++]=null;var L=oa[c];if(oa[c++]=null,x!==null&&M!==null){var X=x.pending;X===null?M.next=M:(M.next=X.next,X.next=M),x.pending=M}L!==0&&Sf(p,M,L)}}function Pa(s,c,p,x){oa[Vu++]=s,oa[Vu++]=c,oa[Vu++]=p,oa[Vu++]=x,Ob|=x,s.lanes|=x,s=s.alternate,s!==null&&(s.lanes|=x)}function Wu(s,c,p,x){return Pa(s,c,p,x),Ef(s)}function Ic(s,c){return Pa(s,null,null,c),Ef(s)}function Sf(s,c,p){s.lanes|=p;var x=s.alternate;x!==null&&(x.lanes|=p);for(var M=!1,L=s.return;L!==null;)L.childLanes|=p,x=L.alternate,x!==null&&(x.childLanes|=p),L.tag===22&&(s=L.stateNode,s===null||s._visibility&1||(M=!0)),s=L,L=L.return;return s.tag===3?(L=s.stateNode,M&&c!==null&&(M=31-ot(p),s=L.hiddenUpdates,x=s[M],x===null?s[M]=[c]:x.push(c),c.lane=p|536870912),L):null}function Ef(s){if(50<hd)throw hd=0,My=null,Error(r(185));for(var c=s.return;c!==null;)s=c,c=s.return;return s.tag===3?s.stateNode:null}var Ac={};function sm(s,c,p,x){this.tag=s,this.key=p,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=x,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function vi(s,c,p,x){return new sm(s,c,p,x)}function Rc(s){return s=s.prototype,!(!s||!s.isReactComponent)}function ai(s,c){var p=s.alternate;return p===null?(p=vi(s.tag,c,s.key,s.mode),p.elementType=s.elementType,p.type=s.type,p.stateNode=s.stateNode,p.alternate=s,s.alternate=p):(p.pendingProps=c,p.type=s.type,p.flags=0,p.subtreeFlags=0,p.deletions=null),p.flags=s.flags&65011712,p.childLanes=s.childLanes,p.lanes=s.lanes,p.child=s.child,p.memoizedProps=s.memoizedProps,p.memoizedState=s.memoizedState,p.updateQueue=s.updateQueue,c=s.dependencies,p.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},p.sibling=s.sibling,p.index=s.index,p.ref=s.ref,p.refCleanup=s.refCleanup,p}function Tf(s,c){s.flags&=65011714;var p=s.alternate;return p===null?(s.childLanes=0,s.lanes=c,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=p.childLanes,s.lanes=p.lanes,s.child=p.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=p.memoizedProps,s.memoizedState=p.memoizedState,s.updateQueue=p.updateQueue,s.type=p.type,c=p.dependencies,s.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext}),s}function lm(s,c,p,x,M,L){var X=0;if(x=s,typeof s=="function")Rc(s)&&(X=1);else if(typeof s=="string")X=ck(s,p,ce.current)?26:s==="html"||s==="head"||s==="body"?27:5;else e:switch(s){case D:return s=vi(31,p,c,M),s.elementType=D,s.lanes=L,s;case C:return Oc(p.children,M,L,c);case S:X=8,M|=24;break;case E:return s=vi(12,p,c,M|2),s.elementType=E,s.lanes=L,s;case P:return s=vi(13,p,c,M),s.elementType=P,s.lanes=L,s;case O:return s=vi(19,p,c,M),s.elementType=O,s.lanes=L,s;default:if(typeof s=="object"&&s!==null)switch(s.$$typeof){case T:case k:X=10;break e;case I:X=9;break e;case R:X=11;break e;case j:X=14;break e;case F:X=16,x=null;break e}X=29,p=Error(r(130,s===null?"null":typeof s,"")),x=null}return c=vi(X,p,c,M),c.elementType=s,c.type=x,c.lanes=L,c}function Oc(s,c,p,x){return s=vi(7,s,x,c),s.lanes=p,s}function _b(s,c,p){return s=vi(6,s,null,c),s.lanes=p,s}function qu(s,c,p){return c=vi(4,s.children!==null?s.children:[],s.key,c),c.lanes=p,c.stateNode={containerInfo:s.containerInfo,pendingChildren:null,implementation:s.implementation},c}var js=[],Ol=0,cm=null,Mf=0,ia=[],aa=0,Rr=null,Fr=1,Fs="";function _c(s,c){js[Ol++]=Mf,js[Ol++]=cm,cm=s,Mf=c}function Db(s,c,p){ia[aa++]=Fr,ia[aa++]=Fs,ia[aa++]=Rr,Rr=s;var x=Fr;s=Fs;var M=32-ot(x)-1;x&=~(1<<M),p+=1;var L=32-ot(c)+M;if(30<L){var X=M-M%5;L=(x&(1<<X)-1).toString(32),x>>=X,M-=X,Fr=1<<32-ot(c)+M|p<<M|x,Fs=L+s}else Fr=1<<L|p<<M|x,Fs=s}function Lb(s){s.return!==null&&(_c(s,1),Db(s,1,0))}function kf(s){for(;s===cm;)cm=js[--Ol],js[Ol]=null,Mf=js[--Ol],js[Ol]=null;for(;s===Rr;)Rr=ia[--aa],ia[aa]=null,Fs=ia[--aa],ia[aa]=null,Fr=ia[--aa],ia[aa]=null}var yo=null,Nr=null,Ln=!1,Ia=null,xi=!1,Yu=Error(r(519));function sa(s){var c=Error(r(418,""));throw _l(ii(c,s)),Yu}function Q1(s){var c=s.stateNode,p=s.type,x=s.memoizedProps;switch(c[ze]=s,c[Qe]=x,p){case"dialog":_n("cancel",c),_n("close",c);break;case"iframe":case"object":case"embed":_n("load",c);break;case"video":case"audio":for(p=0;p<mp.length;p++)_n(mp[p],c);break;case"source":_n("error",c);break;case"img":case"image":case"link":_n("error",c),_n("load",c);break;case"details":_n("toggle",c);break;case"input":_n("invalid",c),fb(c,x.value,x.defaultValue,x.checked,x.defaultChecked,x.type,x.name,!0),Hh(c);break;case"select":_n("invalid",c);break;case"textarea":_n("invalid",c),Gh(c,x.value,x.defaultValue,x.children),Hh(c)}p=x.children,typeof p!="string"&&typeof p!="number"&&typeof p!="bigint"||c.textContent===""+p||x.suppressHydrationWarning===!0||wC(c.textContent,p)?(x.popover!=null&&(_n("beforetoggle",c),_n("toggle",c)),x.onScroll!=null&&_n("scroll",c),x.onScrollEnd!=null&&_n("scrollend",c),x.onClick!=null&&(c.onclick=Jm),c=!0):c=!1,c||sa(s)}function J1(s){for(yo=s.return;yo;)switch(yo.tag){case 5:case 13:xi=!1;return;case 27:case 3:xi=!0;return;default:yo=yo.return}}function Pf(s){if(s!==yo)return!1;if(!Ln)return J1(s),Ln=!0,!1;var c=s.tag,p;if((p=c!==3&&c!==27)&&((p=c===5)&&(p=s.type,p=!(p!=="form"&&p!=="button")||tg(s.type,s.memoizedProps)),p=!p),p&&Nr&&sa(s),J1(s),c===13){if(s=s.memoizedState,s=s!==null?s.dehydrated:null,!s)throw Error(r(317));e:{for(s=s.nextSibling,c=0;s;){if(s.nodeType===8)if(p=s.data,p==="/$"){if(c===0){Nr=La(s.nextSibling);break e}c--}else p!=="$"&&p!=="$!"&&p!=="$?"||c++;s=s.nextSibling}Nr=null}}else c===27?(c=Nr,pa(s.type)?(s=zy,zy=null,Nr=s):Nr=c):Nr=yo?La(s.stateNode.nextSibling):null;return!0}function If(){Nr=yo=null,Ln=!1}function ew(){var s=Ia;return s!==null&&(Pi===null?Pi=s:Pi.push.apply(Pi,s),Ia=null),s}function _l(s){Ia===null?Ia=[s]:Ia.push(s)}var Dc=K(null),Dl=null,te=null;function zi(s,c,p){ae(Dc,c._currentValue),c._currentValue=p}function la(s){s._currentValue=Dc.current,J(Dc)}function wi(s,c,p){for(;s!==null;){var x=s.alternate;if((s.childLanes&c)!==c?(s.childLanes|=c,x!==null&&(x.childLanes|=c)):x!==null&&(x.childLanes&c)!==c&&(x.childLanes|=c),s===p)break;s=s.return}}function Pn(s,c,p,x){var M=s.child;for(M!==null&&(M.return=s);M!==null;){var L=M.dependencies;if(L!==null){var X=M.child;L=L.firstContext;e:for(;L!==null;){var ne=L;L=M;for(var ge=0;ge<c.length;ge++)if(ne.context===c[ge]){L.lanes|=p,ne=L.alternate,ne!==null&&(ne.lanes|=p),wi(L.return,p,s),x||(X=null);break e}L=ne.next}}else if(M.tag===18){if(X=M.return,X===null)throw Error(r(341));X.lanes|=p,L=X.alternate,L!==null&&(L.lanes|=p),wi(X,p,s),X=null}else X=M.child;if(X!==null)X.return=M;else for(X=M;X!==null;){if(X===s){X=null;break}if(M=X.sibling,M!==null){M.return=X.return,X=M;break}X=X.return}M=X}}function Af(s,c,p,x){s=null;for(var M=c,L=!1;M!==null;){if(!L){if((M.flags&524288)!==0)L=!0;else if((M.flags&262144)!==0)break}if(M.tag===10){var X=M.alternate;if(X===null)throw Error(r(387));if(X=X.memoizedProps,X!==null){var ne=M.type;Fi(M.pendingProps.value,X.value)||(s!==null?s.push(ne):s=[ne])}}else if(M===ke.current){if(X=M.alternate,X===null)throw Error(r(387));X.memoizedState.memoizedState!==M.memoizedState.memoizedState&&(s!==null?s.push(Cd):s=[Cd])}M=M.return}s!==null&&Pn(c,s,p,x),c.flags|=262144}function um(s){for(s=s.firstContext;s!==null;){if(!Fi(s.context._currentValue,s.memoizedValue))return!0;s=s.next}return!1}function Lc(s){Dl=s,te=null,s=s.dependencies,s!==null&&(s.firstContext=null)}function Qr(s){return tw(Dl,s)}function dm(s,c){return Dl===null&&Lc(s),tw(s,c)}function tw(s,c){var p=c._currentValue;if(c={context:c,memoizedValue:p,next:null},te===null){if(s===null)throw Error(r(308));te=c,s.dependencies={lanes:0,firstContext:c},s.flags|=524288}else te=te.next=c;return p}var _M=typeof AbortController<"u"?AbortController:function(){var s=[],c=this.signal={aborted:!1,addEventListener:function(p,x){s.push(x)}};this.abort=function(){c.aborted=!0,s.forEach(function(p){return p()})}},DM=e.unstable_scheduleCallback,LM=e.unstable_NormalPriority,xr={$$typeof:k,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $b(){return{controller:new _M,data:new Map,refCount:0}}function Rf(s){s.refCount--,s.refCount===0&&DM(LM,function(){s.controller.abort()})}var Of=null,jb=0,Ku=0,Ci=null;function $M(s,c){if(Of===null){var p=Of=[];jb=0,Ku=Zm(),Ci={status:"pending",value:void 0,then:function(x){p.push(x)}}}return jb++,c.then(nw,nw),c}function nw(){if(--jb===0&&Of!==null){Ci!==null&&(Ci.status="fulfilled");var s=Of;Of=null,Ku=0,Ci=null;for(var c=0;c<s.length;c++)(0,s[c])()}}function jM(s,c){var p=[],x={status:"pending",value:null,reason:null,then:function(M){p.push(M)}};return s.then(function(){x.status="fulfilled",x.value=c;for(var M=0;M<p.length;M++)(0,p[M])(c)},function(M){for(x.status="rejected",x.reason=M,M=0;M<p.length;M++)(0,p[M])(void 0)}),x}var rw=N.S;N.S=function(s,c){typeof c=="object"&&c!==null&&typeof c.then=="function"&&$M(s,c),rw!==null&&rw(s,c)};var $c=K(null);function Ns(){var s=$c.current;return s!==null?s:Tr.pooledCache}function fm(s,c){c===null?ae($c,$c.current):ae($c,c.pool)}function ow(){var s=Ns();return s===null?null:{parent:xr._currentValue,pool:s}}var si=Error(r(460)),iw=Error(r(474)),pm=Error(r(542)),Fb={then:function(){}};function aw(s){return s=s.status,s==="fulfilled"||s==="rejected"}function hm(){}function Nb(s,c,p){switch(p=s[p],p===void 0?s.push(c):p!==c&&(c.then(hm,hm),c=p),c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,lw(s),s;default:if(typeof c.status=="string")c.then(hm,hm);else{if(s=Tr,s!==null&&100<s.shellSuspendCounter)throw Error(r(482));s=c,s.status="pending",s.then(function(x){if(c.status==="pending"){var M=c;M.status="fulfilled",M.value=x}},function(x){if(c.status==="pending"){var M=c;M.status="rejected",M.reason=x}})}switch(c.status){case"fulfilled":return c.value;case"rejected":throw s=c.reason,lw(s),s}throw Xu=c,si}}var Xu=null;function sw(){if(Xu===null)throw Error(r(459));var s=Xu;return Xu=null,s}function lw(s){if(s===si||s===pm)throw Error(r(483))}var ts=!1;function jc(s){s.updateQueue={baseState:s.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Zu(s,c){s=s.updateQueue,c.updateQueue===s&&(c.updateQueue={baseState:s.baseState,firstBaseUpdate:s.firstBaseUpdate,lastBaseUpdate:s.lastBaseUpdate,shared:s.shared,callbacks:null})}function Ll(s){return{lane:s,tag:0,payload:null,callback:null,next:null}}function zs(s,c,p){var x=s.updateQueue;if(x===null)return null;if(x=x.shared,(lr&2)!==0){var M=x.pending;return M===null?c.next=c:(c.next=M.next,M.next=c),x.pending=c,c=Ef(s),Sf(s,null,p),c}return Pa(s,x,c,p),Ef(s)}function _f(s,c,p){if(c=c.updateQueue,c!==null&&(c=c.shared,(p&4194048)!==0)){var x=c.lanes;x&=s.pendingLanes,p|=x,c.lanes=p,Ar(s,p)}}function Aa(s,c){var p=s.updateQueue,x=s.alternate;if(x!==null&&(x=x.updateQueue,p===x)){var M=null,L=null;if(p=p.firstBaseUpdate,p!==null){do{var X={lane:p.lane,tag:p.tag,payload:p.payload,callback:null,next:null};L===null?M=L=X:L=L.next=X,p=p.next}while(p!==null);L===null?M=L=c:L=L.next=c}else M=L=c;p={baseState:x.baseState,firstBaseUpdate:M,lastBaseUpdate:L,shared:x.shared,callbacks:x.callbacks},s.updateQueue=p;return}s=p.lastBaseUpdate,s===null?p.firstBaseUpdate=c:s.next=c,p.lastBaseUpdate=c}var Df=!1;function Ra(){if(Df){var s=Ci;if(s!==null)throw s}}function Wo(s,c,p,x){Df=!1;var M=s.updateQueue;ts=!1;var L=M.firstBaseUpdate,X=M.lastBaseUpdate,ne=M.shared.pending;if(ne!==null){M.shared.pending=null;var ge=ne,Le=ge.next;ge.next=null,X===null?L=Le:X.next=Le,X=ge;var rt=s.alternate;rt!==null&&(rt=rt.updateQueue,ne=rt.lastBaseUpdate,ne!==X&&(ne===null?rt.firstBaseUpdate=Le:ne.next=Le,rt.lastBaseUpdate=ge))}if(L!==null){var ct=M.baseState;X=0,rt=Le=ge=null,ne=L;do{var He=ne.lane&-536870913,$e=He!==ne.lane;if($e?(Hn&He)===He:(x&He)===He){He!==0&&He===Ku&&(Df=!0),rt!==null&&(rt=rt.next={lane:0,tag:ne.tag,payload:ne.payload,callback:null,next:null});e:{var tn=s,en=ne;He=c;var br=p;switch(en.tag){case 1:if(tn=en.payload,typeof tn=="function"){ct=tn.call(br,ct,He);break e}ct=tn;break e;case 3:tn.flags=tn.flags&-65537|128;case 0:if(tn=en.payload,He=typeof tn=="function"?tn.call(br,ct,He):tn,He==null)break e;ct=f({},ct,He);break e;case 2:ts=!0}}He=ne.callback,He!==null&&(s.flags|=64,$e&&(s.flags|=8192),$e=M.callbacks,$e===null?M.callbacks=[He]:$e.push(He))}else $e={lane:He,tag:ne.tag,payload:ne.payload,callback:ne.callback,next:null},rt===null?(Le=rt=$e,ge=ct):rt=rt.next=$e,X|=He;if(ne=ne.next,ne===null){if(ne=M.shared.pending,ne===null)break;$e=ne,ne=$e.next,$e.next=null,M.lastBaseUpdate=$e,M.shared.pending=null}}while(!0);rt===null&&(ge=ct),M.baseState=ge,M.firstBaseUpdate=Le,M.lastBaseUpdate=rt,L===null&&(M.shared.lanes=0),Gl|=X,s.lanes=X,s.memoizedState=ct}}function cw(s,c){if(typeof s!="function")throw Error(r(191,s));s.call(c)}function zb(s,c){var p=s.callbacks;if(p!==null)for(s.callbacks=null,s=0;s<p.length;s++)cw(p[s],c)}var Fc=K(null),$l=K(0);function Bs(s,c){s=Xs,ae($l,s),ae(Fc,c),Xs=s|c.baseLanes}function mm(){ae($l,Xs),ae(Fc,Fc.current)}function Bb(){Xs=$l.current,J(Fc),J($l)}var Oa=0,Sn=null,sr=null,$n=null,Qu=!1,Nc=!1,qo=!1,Ju=0,jl=0,ca=null,uw=0;function jn(){throw Error(r(321))}function Lf(s,c){if(c===null)return!1;for(var p=0;p<c.length&&p<s.length;p++)if(!Fi(s[p],c[p]))return!1;return!0}function Hb(s,c,p,x,M,L){return Oa=L,Sn=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,N.H=s===null||s.memoizedState===null?Sw:ay,qo=!1,L=p(x,M),qo=!1,Nc&&(L=fw(c,p,x,M)),dw(s),L}function dw(s){N.H=Wf;var c=sr!==null&&sr.next!==null;if(Oa=0,$n=sr=Sn=null,Qu=!1,jl=0,ca=null,c)throw Error(r(300));s===null||Io||(s=s.dependencies,s!==null&&um(s)&&(Io=!0))}function fw(s,c,p,x){Sn=s;var M=0;do{if(Nc&&(ca=null),jl=0,Nc=!1,25<=M)throw Error(r(301));if(M+=1,$n=sr=null,s.updateQueue!=null){var L=s.updateQueue;L.lastEffect=null,L.events=null,L.stores=null,L.memoCache!=null&&(L.memoCache.index=0)}N.H=Ew,L=c(p,x)}while(Nc);return L}function Ub(){var s=N.H,c=s.useState()[0];return c=typeof c.then=="function"?$f(c):c,s=s.useState()[0],(sr!==null?sr.memoizedState:null)!==s&&(Sn.flags|=1024),c}function Gb(){var s=Ju!==0;return Ju=0,s}function zc(s,c,p){c.updateQueue=s.updateQueue,c.flags&=-2053,s.lanes&=~p}function gm(s){if(Qu){for(s=s.memoizedState;s!==null;){var c=s.queue;c!==null&&(c.pending=null),s=s.next}Qu=!1}Oa=0,$n=sr=Sn=null,Nc=!1,jl=Ju=0,ca=null}function Si(){var s={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return $n===null?Sn.memoizedState=$n=s:$n=$n.next=s,$n}function ho(){if(sr===null){var s=Sn.alternate;s=s!==null?s.memoizedState:null}else s=sr.next;var c=$n===null?Sn.memoizedState:$n.next;if(c!==null)$n=c,sr=s;else{if(s===null)throw Sn.alternate===null?Error(r(467)):Error(r(310));sr=s,s={memoizedState:sr.memoizedState,baseState:sr.baseState,baseQueue:sr.baseQueue,queue:sr.queue,next:null},$n===null?Sn.memoizedState=$n=s:$n=$n.next=s}return $n}function Bc(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function $f(s){var c=jl;return jl+=1,ca===null&&(ca=[]),s=Nb(ca,s,c),c=Sn,($n===null?c.memoizedState:$n.next)===null&&(c=c.alternate,N.H=c===null||c.memoizedState===null?Sw:ay),s}function bm(s){if(s!==null&&typeof s=="object"){if(typeof s.then=="function")return $f(s);if(s.$$typeof===k)return Qr(s)}throw Error(r(438,String(s)))}function jf(s){var c=null,p=Sn.updateQueue;if(p!==null&&(c=p.memoCache),c==null){var x=Sn.alternate;x!==null&&(x=x.updateQueue,x!==null&&(x=x.memoCache,x!=null&&(c={data:x.data.map(function(M){return M.slice()}),index:0})))}if(c==null&&(c={data:[],index:0}),p===null&&(p=Bc(),Sn.updateQueue=p),p.memoCache=c,p=c.data[c.index],p===void 0)for(p=c.data[c.index]=Array(s),x=0;x<s;x++)p[x]=_;return c.index++,p}function ns(s,c){return typeof c=="function"?c(s):c}function ym(s){var c=ho();return Vb(c,sr,s)}function Vb(s,c,p){var x=s.queue;if(x===null)throw Error(r(311));x.lastRenderedReducer=p;var M=s.baseQueue,L=x.pending;if(L!==null){if(M!==null){var X=M.next;M.next=L.next,L.next=X}c.baseQueue=M=L,x.pending=null}if(L=s.baseState,M===null)s.memoizedState=L;else{c=M.next;var ne=X=null,ge=null,Le=c,rt=!1;do{var ct=Le.lane&-536870913;if(ct!==Le.lane?(Hn&ct)===ct:(Oa&ct)===ct){var He=Le.revertLane;if(He===0)ge!==null&&(ge=ge.next={lane:0,revertLane:0,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null}),ct===Ku&&(rt=!0);else if((Oa&He)===He){Le=Le.next,He===Ku&&(rt=!0);continue}else ct={lane:0,revertLane:Le.revertLane,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},ge===null?(ne=ge=ct,X=L):ge=ge.next=ct,Sn.lanes|=He,Gl|=He;ct=Le.action,qo&&p(L,ct),L=Le.hasEagerState?Le.eagerState:p(L,ct)}else He={lane:ct,revertLane:Le.revertLane,action:Le.action,hasEagerState:Le.hasEagerState,eagerState:Le.eagerState,next:null},ge===null?(ne=ge=He,X=L):ge=ge.next=He,Sn.lanes|=ct,Gl|=ct;Le=Le.next}while(Le!==null&&Le!==c);if(ge===null?X=L:ge.next=ne,!Fi(L,s.memoizedState)&&(Io=!0,rt&&(p=Ci,p!==null)))throw p;s.memoizedState=L,s.baseState=X,s.baseQueue=ge,x.lastRenderedState=L}return M===null&&(x.lanes=0),[s.memoizedState,x.dispatch]}function Wb(s){var c=ho(),p=c.queue;if(p===null)throw Error(r(311));p.lastRenderedReducer=s;var x=p.dispatch,M=p.pending,L=c.memoizedState;if(M!==null){p.pending=null;var X=M=M.next;do L=s(L,X.action),X=X.next;while(X!==M);Fi(L,c.memoizedState)||(Io=!0),c.memoizedState=L,c.baseQueue===null&&(c.baseState=L),p.lastRenderedState=L}return[L,x]}function qb(s,c,p){var x=Sn,M=ho(),L=Ln;if(L){if(p===void 0)throw Error(r(407));p=p()}else p=c();var X=!Fi((sr||M).memoizedState,p);X&&(M.memoizedState=p,Io=!0),M=M.queue;var ne=xm.bind(null,x,M,s);if(zf(2048,8,ne,[s]),M.getSnapshot!==c||X||$n!==null&&$n.memoizedState.tag&1){if(x.flags|=2048,ed(9,Tm(),pw.bind(null,x,M,p,c),null),Tr===null)throw Error(r(349));L||(Oa&124)!==0||vm(x,c,p)}return p}function vm(s,c,p){s.flags|=16384,s={getSnapshot:c,value:p},c=Sn.updateQueue,c===null?(c=Bc(),Sn.updateQueue=c,c.stores=[s]):(p=c.stores,p===null?c.stores=[s]:p.push(s))}function pw(s,c,p,x){c.value=p,c.getSnapshot=x,Yb(c)&&Kb(s)}function xm(s,c,p){return p(function(){Yb(c)&&Kb(s)})}function Yb(s){var c=s.getSnapshot;s=s.value;try{var p=c();return!Fi(s,p)}catch{return!0}}function Kb(s){var c=Ic(s,2);c!==null&&Vi(c,s,2)}function wm(s){var c=Si();if(typeof s=="function"){var p=s;if(s=p(),qo){it(!0);try{p()}finally{it(!1)}}}return c.memoizedState=c.baseState=s,c.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:s},c}function Ff(s,c,p,x){return s.baseState=p,Vb(s,sr,typeof x=="function"?x:ns)}function FM(s,c,p,x,M){if(Im(s))throw Error(r(485));if(s=c.action,s!==null){var L={payload:M,action:s,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(X){L.listeners.push(X)}};N.T!==null?p(!0):L.isTransition=!1,x(L),p=c.pending,p===null?(L.next=c.pending=L,Xb(c,L)):(L.next=p.next,c.pending=p.next=L)}}function Xb(s,c){var p=c.action,x=c.payload,M=s.state;if(c.isTransition){var L=N.T,X={};N.T=X;try{var ne=p(M,x),ge=N.S;ge!==null&&ge(X,ne),Zb(s,c,ne)}catch(Le){Cm(s,c,Le)}finally{N.T=L}}else try{L=p(M,x),Zb(s,c,L)}catch(Le){Cm(s,c,Le)}}function Zb(s,c,p){p!==null&&typeof p=="object"&&typeof p.then=="function"?p.then(function(x){hw(s,c,x)},function(x){return Cm(s,c,x)}):hw(s,c,p)}function hw(s,c,p){c.status="fulfilled",c.value=p,mw(c),s.state=p,c=s.pending,c!==null&&(p=c.next,p===c?s.pending=null:(p=p.next,c.next=p,Xb(s,p)))}function Cm(s,c,p){var x=s.pending;if(s.pending=null,x!==null){x=x.next;do c.status="rejected",c.reason=p,mw(c),c=c.next;while(c!==x)}s.action=null}function mw(s){s=s.listeners;for(var c=0;c<s.length;c++)(0,s[c])()}function Sm(s,c){return c}function Qb(s,c){if(Ln){var p=Tr.formState;if(p!==null){e:{var x=Sn;if(Ln){if(Nr){t:{for(var M=Nr,L=xi;M.nodeType!==8;){if(!L){M=null;break t}if(M=La(M.nextSibling),M===null){M=null;break t}}L=M.data,M=L==="F!"||L==="F"?M:null}if(M){Nr=La(M.nextSibling),x=M.data==="F!";break e}}sa(x)}x=!1}x&&(c=p[0])}}return p=Si(),p.memoizedState=p.baseState=c,x={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sm,lastRenderedState:c},p.queue=x,p=ry.bind(null,Sn,x),x.dispatch=p,x=wm(!1),L=oy.bind(null,Sn,!1,x.queue),x=Si(),M={state:c,dispatch:null,action:s,pending:null},x.queue=M,p=FM.bind(null,Sn,M,L,p),M.dispatch=p,x.memoizedState=s,[c,p,!1]}function Em(s){var c=ho();return gw(c,sr,s)}function gw(s,c,p){if(c=Vb(s,c,Sm)[0],s=ym(ns)[0],typeof c=="object"&&c!==null&&typeof c.then=="function")try{var x=$f(c)}catch(X){throw X===si?pm:X}else x=c;c=ho();var M=c.queue,L=M.dispatch;return p!==c.memoizedState&&(Sn.flags|=2048,ed(9,Tm(),Jb.bind(null,M,p),null)),[x,L,s]}function Jb(s,c){s.action=c}function xn(s){var c=ho(),p=sr;if(p!==null)return gw(c,p,s);ho(),c=c.memoizedState,p=ho();var x=p.queue.dispatch;return p.memoizedState=s,[c,x,!1]}function ed(s,c,p,x){return s={tag:s,create:p,deps:x,inst:c,next:null},c=Sn.updateQueue,c===null&&(c=Bc(),Sn.updateQueue=c),p=c.lastEffect,p===null?c.lastEffect=s.next=s:(x=p.next,p.next=s,s.next=x,c.lastEffect=s),s}function Tm(){return{destroy:void 0,resource:void 0}}function td(){return ho().memoizedState}function Nf(s,c,p,x){var M=Si();x=x===void 0?null:x,Sn.flags|=s,M.memoizedState=ed(1|c,Tm(),p,x)}function zf(s,c,p,x){var M=ho();x=x===void 0?null:x;var L=M.memoizedState.inst;sr!==null&&x!==null&&Lf(x,sr.memoizedState.deps)?M.memoizedState=ed(c,L,p,x):(Sn.flags|=s,M.memoizedState=ed(1|c,L,p,x))}function bw(s,c){Nf(8390656,8,s,c)}function Bi(s,c){zf(2048,8,s,c)}function yw(s,c){return zf(4,2,s,c)}function Bf(s,c){return zf(4,4,s,c)}function Mm(s,c){if(typeof c=="function"){s=s();var p=c(s);return function(){typeof p=="function"?p():c(null)}}if(c!=null)return s=s(),c.current=s,function(){c.current=null}}function ey(s,c,p){p=p!=null?p.concat([s]):null,zf(4,4,Mm.bind(null,c,s),p)}function km(){}function Ei(s,c){var p=ho();c=c===void 0?null:c;var x=p.memoizedState;return c!==null&&Lf(c,x[1])?x[0]:(p.memoizedState=[s,c],s)}function Hs(s,c){var p=ho();c=c===void 0?null:c;var x=p.memoizedState;if(c!==null&&Lf(c,x[1]))return x[0];if(x=s(),qo){it(!0);try{s()}finally{it(!1)}}return p.memoizedState=[x,c],x}function Hf(s,c,p){return p===void 0||(Oa&1073741824)!==0?s.memoizedState=c:(s.memoizedState=p,s=Zw(),Sn.lanes|=s,Gl|=s,p)}function ty(s,c,p,x){return Fi(p,c)?p:Fc.current!==null?(s=Hf(s,p,x),Fi(s,c)||(Io=!0),s):(Oa&42)===0?(Io=!0,s.memoizedState=p):(s=Zw(),Sn.lanes|=s,Gl|=s,c)}function Uf(s,c,p,x,M){var L=H.p;H.p=L!==0&&8>L?L:8;var X=N.T,ne={};N.T=ne,oy(s,!1,c,p);try{var ge=M(),Le=N.S;if(Le!==null&&Le(ne,ge),ge!==null&&typeof ge=="object"&&typeof ge.then=="function"){var rt=jM(ge,x);Hc(s,c,rt,Ko(s))}else Hc(s,c,x,Ko(s))}catch(ct){Hc(s,c,{then:function(){},status:"rejected",reason:ct},Ko())}finally{H.p=L,N.T=X}}function vw(){}function Gf(s,c,p,x){if(s.tag!==5)throw Error(r(476));var M=ny(s).queue;Uf(s,M,c,Y,p===null?vw:function(){return Pm(s),p(x)})}function ny(s){var c=s.memoizedState;if(c!==null)return c;c={memoizedState:Y,baseState:Y,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:Y},next:null};var p={};return c.next={memoizedState:p,baseState:p,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:p},next:null},s.memoizedState=c,s=s.alternate,s!==null&&(s.memoizedState=c),c}function Pm(s){var c=ny(s).next.queue;Hc(s,c,{},Ko())}function Vf(){return Qr(Cd)}function Us(){return ho().memoizedState}function xw(){return ho().memoizedState}function Fl(s){for(var c=s.return;c!==null;){switch(c.tag){case 24:case 3:var p=Ko();s=Ll(p);var x=zs(c,s,p);x!==null&&(Vi(x,c,p),_f(x,c,p)),c={cache:$b()},s.payload=c;return}c=c.return}}function ww(s,c,p){var x=Ko();p={lane:x,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null},Im(s)?Cw(c,p):(p=Wu(s,c,p,x),p!==null&&(Vi(p,s,x),iy(p,c,x)))}function ry(s,c,p){var x=Ko();Hc(s,c,p,x)}function Hc(s,c,p,x){var M={lane:x,revertLane:0,action:p,hasEagerState:!1,eagerState:null,next:null};if(Im(s))Cw(c,M);else{var L=s.alternate;if(s.lanes===0&&(L===null||L.lanes===0)&&(L=c.lastRenderedReducer,L!==null))try{var X=c.lastRenderedState,ne=L(X,p);if(M.hasEagerState=!0,M.eagerState=ne,Fi(ne,X))return Pa(s,c,M,0),Tr===null&&Pc(),!1}catch{}finally{}if(p=Wu(s,c,M,x),p!==null)return Vi(p,s,x),iy(p,c,x),!0}return!1}function oy(s,c,p,x){if(x={lane:2,revertLane:Zm(),action:x,hasEagerState:!1,eagerState:null,next:null},Im(s)){if(c)throw Error(r(479))}else c=Wu(s,p,x,2),c!==null&&Vi(c,s,2)}function Im(s){var c=s.alternate;return s===Sn||c!==null&&c===Sn}function Cw(s,c){Nc=Qu=!0;var p=s.pending;p===null?c.next=c:(c.next=p.next,p.next=c),s.pending=c}function iy(s,c,p){if((p&4194048)!==0){var x=c.lanes;x&=s.pendingLanes,p|=x,c.lanes=p,Ar(s,p)}}var Wf={readContext:Qr,use:bm,useCallback:jn,useContext:jn,useEffect:jn,useImperativeHandle:jn,useLayoutEffect:jn,useInsertionEffect:jn,useMemo:jn,useReducer:jn,useRef:jn,useState:jn,useDebugValue:jn,useDeferredValue:jn,useTransition:jn,useSyncExternalStore:jn,useId:jn,useHostTransitionStatus:jn,useFormState:jn,useActionState:jn,useOptimistic:jn,useMemoCache:jn,useCacheRefresh:jn},Sw={readContext:Qr,use:bm,useCallback:function(s,c){return Si().memoizedState=[s,c===void 0?null:c],s},useContext:Qr,useEffect:bw,useImperativeHandle:function(s,c,p){p=p!=null?p.concat([s]):null,Nf(4194308,4,Mm.bind(null,c,s),p)},useLayoutEffect:function(s,c){return Nf(4194308,4,s,c)},useInsertionEffect:function(s,c){Nf(4,2,s,c)},useMemo:function(s,c){var p=Si();c=c===void 0?null:c;var x=s();if(qo){it(!0);try{s()}finally{it(!1)}}return p.memoizedState=[x,c],x},useReducer:function(s,c,p){var x=Si();if(p!==void 0){var M=p(c);if(qo){it(!0);try{p(c)}finally{it(!1)}}}else M=c;return x.memoizedState=x.baseState=M,s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:s,lastRenderedState:M},x.queue=s,s=s.dispatch=ww.bind(null,Sn,s),[x.memoizedState,s]},useRef:function(s){var c=Si();return s={current:s},c.memoizedState=s},useState:function(s){s=wm(s);var c=s.queue,p=ry.bind(null,Sn,c);return c.dispatch=p,[s.memoizedState,p]},useDebugValue:km,useDeferredValue:function(s,c){var p=Si();return Hf(p,s,c)},useTransition:function(){var s=wm(!1);return s=Uf.bind(null,Sn,s.queue,!0,!1),Si().memoizedState=s,[!1,s]},useSyncExternalStore:function(s,c,p){var x=Sn,M=Si();if(Ln){if(p===void 0)throw Error(r(407));p=p()}else{if(p=c(),Tr===null)throw Error(r(349));(Hn&124)!==0||vm(x,c,p)}M.memoizedState=p;var L={value:p,getSnapshot:c};return M.queue=L,bw(xm.bind(null,x,L,s),[s]),x.flags|=2048,ed(9,Tm(),pw.bind(null,x,L,p,c),null),p},useId:function(){var s=Si(),c=Tr.identifierPrefix;if(Ln){var p=Fs,x=Fr;p=(x&~(1<<32-ot(x)-1)).toString(32)+p,c="«"+c+"R"+p,p=Ju++,0<p&&(c+="H"+p.toString(32)),c+="»"}else p=uw++,c="«"+c+"r"+p.toString(32)+"»";return s.memoizedState=c},useHostTransitionStatus:Vf,useFormState:Qb,useActionState:Qb,useOptimistic:function(s){var c=Si();c.memoizedState=c.baseState=s;var p={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return c.queue=p,c=oy.bind(null,Sn,!0,p),p.dispatch=c,[s,c]},useMemoCache:jf,useCacheRefresh:function(){return Si().memoizedState=Fl.bind(null,Sn)}},ay={readContext:Qr,use:bm,useCallback:Ei,useContext:Qr,useEffect:Bi,useImperativeHandle:ey,useInsertionEffect:yw,useLayoutEffect:Bf,useMemo:Hs,useReducer:ym,useRef:td,useState:function(){return ym(ns)},useDebugValue:km,useDeferredValue:function(s,c){var p=ho();return ty(p,sr.memoizedState,s,c)},useTransition:function(){var s=ym(ns)[0],c=ho().memoizedState;return[typeof s=="boolean"?s:$f(s),c]},useSyncExternalStore:qb,useId:Us,useHostTransitionStatus:Vf,useFormState:Em,useActionState:Em,useOptimistic:function(s,c){var p=ho();return Ff(p,sr,s,c)},useMemoCache:jf,useCacheRefresh:xw},Ew={readContext:Qr,use:bm,useCallback:Ei,useContext:Qr,useEffect:Bi,useImperativeHandle:ey,useInsertionEffect:yw,useLayoutEffect:Bf,useMemo:Hs,useReducer:Wb,useRef:td,useState:function(){return Wb(ns)},useDebugValue:km,useDeferredValue:function(s,c){var p=ho();return sr===null?Hf(p,s,c):ty(p,sr.memoizedState,s,c)},useTransition:function(){var s=Wb(ns)[0],c=ho().memoizedState;return[typeof s=="boolean"?s:$f(s),c]},useSyncExternalStore:qb,useId:Us,useHostTransitionStatus:Vf,useFormState:xn,useActionState:xn,useOptimistic:function(s,c){var p=ho();return sr!==null?Ff(p,sr,s,c):(p.baseState=s,[s,p.queue.dispatch])},useMemoCache:jf,useCacheRefresh:xw},vo=null,Ti=0;function Am(s){var c=Ti;return Ti+=1,vo===null&&(vo=[]),Nb(vo,s,c)}function qf(s,c){c=c.props.ref,s.ref=c!==void 0?c:null}function Uc(s,c){throw c.$$typeof===m?Error(r(525)):(s=Object.prototype.toString.call(c),Error(r(31,s==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":s)))}function Gc(s){var c=s._init;return c(s._payload)}function sy(s){function c(Ie,Ee){if(s){var Re=Ie.deletions;Re===null?(Ie.deletions=[Ee],Ie.flags|=16):Re.push(Ee)}}function p(Ie,Ee){if(!s)return null;for(;Ee!==null;)c(Ie,Ee),Ee=Ee.sibling;return null}function x(Ie){for(var Ee=new Map;Ie!==null;)Ie.key!==null?Ee.set(Ie.key,Ie):Ee.set(Ie.index,Ie),Ie=Ie.sibling;return Ee}function M(Ie,Ee){return Ie=ai(Ie,Ee),Ie.index=0,Ie.sibling=null,Ie}function L(Ie,Ee,Re){return Ie.index=Re,s?(Re=Ie.alternate,Re!==null?(Re=Re.index,Re<Ee?(Ie.flags|=67108866,Ee):Re):(Ie.flags|=67108866,Ee)):(Ie.flags|=1048576,Ee)}function X(Ie){return s&&Ie.alternate===null&&(Ie.flags|=67108866),Ie}function ne(Ie,Ee,Re,at){return Ee===null||Ee.tag!==6?(Ee=_b(Re,Ie.mode,at),Ee.return=Ie,Ee):(Ee=M(Ee,Re),Ee.return=Ie,Ee)}function ge(Ie,Ee,Re,at){var $t=Re.type;return $t===C?rt(Ie,Ee,Re.props.children,at,Re.key):Ee!==null&&(Ee.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===F&&Gc($t)===Ee.type)?(Ee=M(Ee,Re.props),qf(Ee,Re),Ee.return=Ie,Ee):(Ee=lm(Re.type,Re.key,Re.props,null,Ie.mode,at),qf(Ee,Re),Ee.return=Ie,Ee)}function Le(Ie,Ee,Re,at){return Ee===null||Ee.tag!==4||Ee.stateNode.containerInfo!==Re.containerInfo||Ee.stateNode.implementation!==Re.implementation?(Ee=qu(Re,Ie.mode,at),Ee.return=Ie,Ee):(Ee=M(Ee,Re.children||[]),Ee.return=Ie,Ee)}function rt(Ie,Ee,Re,at,$t){return Ee===null||Ee.tag!==7?(Ee=Oc(Re,Ie.mode,at,$t),Ee.return=Ie,Ee):(Ee=M(Ee,Re),Ee.return=Ie,Ee)}function ct(Ie,Ee,Re){if(typeof Ee=="string"&&Ee!==""||typeof Ee=="number"||typeof Ee=="bigint")return Ee=_b(""+Ee,Ie.mode,Re),Ee.return=Ie,Ee;if(typeof Ee=="object"&&Ee!==null){switch(Ee.$$typeof){case g:return Re=lm(Ee.type,Ee.key,Ee.props,null,Ie.mode,Re),qf(Re,Ee),Re.return=Ie,Re;case w:return Ee=qu(Ee,Ie.mode,Re),Ee.return=Ie,Ee;case F:var at=Ee._init;return Ee=at(Ee._payload),ct(Ie,Ee,Re)}if(G(Ee)||B(Ee))return Ee=Oc(Ee,Ie.mode,Re,null),Ee.return=Ie,Ee;if(typeof Ee.then=="function")return ct(Ie,Am(Ee),Re);if(Ee.$$typeof===k)return ct(Ie,dm(Ie,Ee),Re);Uc(Ie,Ee)}return null}function He(Ie,Ee,Re,at){var $t=Ee!==null?Ee.key:null;if(typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint")return $t!==null?null:ne(Ie,Ee,""+Re,at);if(typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case g:return Re.key===$t?ge(Ie,Ee,Re,at):null;case w:return Re.key===$t?Le(Ie,Ee,Re,at):null;case F:return $t=Re._init,Re=$t(Re._payload),He(Ie,Ee,Re,at)}if(G(Re)||B(Re))return $t!==null?null:rt(Ie,Ee,Re,at,null);if(typeof Re.then=="function")return He(Ie,Ee,Am(Re),at);if(Re.$$typeof===k)return He(Ie,Ee,dm(Ie,Re),at);Uc(Ie,Re)}return null}function $e(Ie,Ee,Re,at,$t){if(typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint")return Ie=Ie.get(Re)||null,ne(Ee,Ie,""+at,$t);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case g:return Ie=Ie.get(at.key===null?Re:at.key)||null,ge(Ee,Ie,at,$t);case w:return Ie=Ie.get(at.key===null?Re:at.key)||null,Le(Ee,Ie,at,$t);case F:var In=at._init;return at=In(at._payload),$e(Ie,Ee,Re,at,$t)}if(G(at)||B(at))return Ie=Ie.get(Re)||null,rt(Ee,Ie,at,$t,null);if(typeof at.then=="function")return $e(Ie,Ee,Re,Am(at),$t);if(at.$$typeof===k)return $e(Ie,Ee,Re,dm(Ee,at),$t);Uc(Ee,at)}return null}function tn(Ie,Ee,Re,at){for(var $t=null,In=null,Yt=Ee,nn=Ee=0,Oo=null;Yt!==null&&nn<Re.length;nn++){Yt.index>nn?(Oo=Yt,Yt=null):Oo=Yt.sibling;var Vn=He(Ie,Yt,Re[nn],at);if(Vn===null){Yt===null&&(Yt=Oo);break}s&&Yt&&Vn.alternate===null&&c(Ie,Yt),Ee=L(Vn,Ee,nn),In===null?$t=Vn:In.sibling=Vn,In=Vn,Yt=Oo}if(nn===Re.length)return p(Ie,Yt),Ln&&_c(Ie,nn),$t;if(Yt===null){for(;nn<Re.length;nn++)Yt=ct(Ie,Re[nn],at),Yt!==null&&(Ee=L(Yt,Ee,nn),In===null?$t=Yt:In.sibling=Yt,In=Yt);return Ln&&_c(Ie,nn),$t}for(Yt=x(Yt);nn<Re.length;nn++)Oo=$e(Yt,Ie,nn,Re[nn],at),Oo!==null&&(s&&Oo.alternate!==null&&Yt.delete(Oo.key===null?nn:Oo.key),Ee=L(Oo,Ee,nn),In===null?$t=Oo:In.sibling=Oo,In=Oo);return s&&Yt.forEach(function(ec){return c(Ie,ec)}),Ln&&_c(Ie,nn),$t}function en(Ie,Ee,Re,at){if(Re==null)throw Error(r(151));for(var $t=null,In=null,Yt=Ee,nn=Ee=0,Oo=null,Vn=Re.next();Yt!==null&&!Vn.done;nn++,Vn=Re.next()){Yt.index>nn?(Oo=Yt,Yt=null):Oo=Yt.sibling;var ec=He(Ie,Yt,Vn.value,at);if(ec===null){Yt===null&&(Yt=Oo);break}s&&Yt&&ec.alternate===null&&c(Ie,Yt),Ee=L(ec,Ee,nn),In===null?$t=ec:In.sibling=ec,In=ec,Yt=Oo}if(Vn.done)return p(Ie,Yt),Ln&&_c(Ie,nn),$t;if(Yt===null){for(;!Vn.done;nn++,Vn=Re.next())Vn=ct(Ie,Vn.value,at),Vn!==null&&(Ee=L(Vn,Ee,nn),In===null?$t=Vn:In.sibling=Vn,In=Vn);return Ln&&_c(Ie,nn),$t}for(Yt=x(Yt);!Vn.done;nn++,Vn=Re.next())Vn=$e(Yt,Ie,nn,Vn.value,at),Vn!==null&&(s&&Vn.alternate!==null&&Yt.delete(Vn.key===null?nn:Vn.key),Ee=L(Vn,Ee,nn),In===null?$t=Vn:In.sibling=Vn,In=Vn);return s&&Yt.forEach(function(xk){return c(Ie,xk)}),Ln&&_c(Ie,nn),$t}function br(Ie,Ee,Re,at){if(typeof Re=="object"&&Re!==null&&Re.type===C&&Re.key===null&&(Re=Re.props.children),typeof Re=="object"&&Re!==null){switch(Re.$$typeof){case g:e:{for(var $t=Re.key;Ee!==null;){if(Ee.key===$t){if($t=Re.type,$t===C){if(Ee.tag===7){p(Ie,Ee.sibling),at=M(Ee,Re.props.children),at.return=Ie,Ie=at;break e}}else if(Ee.elementType===$t||typeof $t=="object"&&$t!==null&&$t.$$typeof===F&&Gc($t)===Ee.type){p(Ie,Ee.sibling),at=M(Ee,Re.props),qf(at,Re),at.return=Ie,Ie=at;break e}p(Ie,Ee);break}else c(Ie,Ee);Ee=Ee.sibling}Re.type===C?(at=Oc(Re.props.children,Ie.mode,at,Re.key),at.return=Ie,Ie=at):(at=lm(Re.type,Re.key,Re.props,null,Ie.mode,at),qf(at,Re),at.return=Ie,Ie=at)}return X(Ie);case w:e:{for($t=Re.key;Ee!==null;){if(Ee.key===$t)if(Ee.tag===4&&Ee.stateNode.containerInfo===Re.containerInfo&&Ee.stateNode.implementation===Re.implementation){p(Ie,Ee.sibling),at=M(Ee,Re.children||[]),at.return=Ie,Ie=at;break e}else{p(Ie,Ee);break}else c(Ie,Ee);Ee=Ee.sibling}at=qu(Re,Ie.mode,at),at.return=Ie,Ie=at}return X(Ie);case F:return $t=Re._init,Re=$t(Re._payload),br(Ie,Ee,Re,at)}if(G(Re))return tn(Ie,Ee,Re,at);if(B(Re)){if($t=B(Re),typeof $t!="function")throw Error(r(150));return Re=$t.call(Re),en(Ie,Ee,Re,at)}if(typeof Re.then=="function")return br(Ie,Ee,Am(Re),at);if(Re.$$typeof===k)return br(Ie,Ee,dm(Ie,Re),at);Uc(Ie,Re)}return typeof Re=="string"&&Re!==""||typeof Re=="number"||typeof Re=="bigint"?(Re=""+Re,Ee!==null&&Ee.tag===6?(p(Ie,Ee.sibling),at=M(Ee,Re),at.return=Ie,Ie=at):(p(Ie,Ee),at=_b(Re,Ie.mode,at),at.return=Ie,Ie=at),X(Ie)):p(Ie,Ee)}return function(Ie,Ee,Re,at){try{Ti=0;var $t=br(Ie,Ee,Re,at);return vo=null,$t}catch(Yt){if(Yt===si||Yt===pm)throw Yt;var In=vi(29,Yt,null,Ie.mode);return In.lanes=at,In.return=Ie,In}finally{}}}var Vc=sy(!0),Tw=sy(!1),Hi=K(null),li=null;function ua(s){var c=s.alternate;ae(Jr,Jr.current&1),ae(Hi,s),li===null&&(c===null||Fc.current!==null||c.memoizedState!==null)&&(li=s)}function Mw(s){if(s.tag===22){if(ae(Jr,Jr.current),ae(Hi,s),li===null){var c=s.alternate;c!==null&&c.memoizedState!==null&&(li=s)}}else Gs()}function Gs(){ae(Jr,Jr.current),ae(Hi,Hi.current)}function rs(s){J(Hi),li===s&&(li=null),J(Jr)}var Jr=K(0);function Yf(s){for(var c=s;c!==null;){if(c.tag===13){var p=c.memoizedState;if(p!==null&&(p=p.dehydrated,p===null||p.data==="$?"||ui(p)))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if((c.flags&128)!==0)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}function nd(s,c,p,x){c=s.memoizedState,p=p(x,c),p=p==null?c:f({},c,p),s.memoizedState=p,s.lanes===0&&(s.updateQueue.baseState=p)}var Kf={enqueueSetState:function(s,c,p){s=s._reactInternals;var x=Ko(),M=Ll(x);M.payload=c,p!=null&&(M.callback=p),c=zs(s,M,x),c!==null&&(Vi(c,s,x),_f(c,s,x))},enqueueReplaceState:function(s,c,p){s=s._reactInternals;var x=Ko(),M=Ll(x);M.tag=1,M.payload=c,p!=null&&(M.callback=p),c=zs(s,M,x),c!==null&&(Vi(c,s,x),_f(c,s,x))},enqueueForceUpdate:function(s,c){s=s._reactInternals;var p=Ko(),x=Ll(p);x.tag=2,c!=null&&(x.callback=c),c=zs(s,x,p),c!==null&&(Vi(c,s,p),_f(c,s,p))}};function Xf(s,c,p,x,M,L,X){return s=s.stateNode,typeof s.shouldComponentUpdate=="function"?s.shouldComponentUpdate(x,L,X):c.prototype&&c.prototype.isPureReactComponent?!es(p,x)||!es(M,L):!0}function kw(s,c,p,x){s=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(p,x),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(p,x),c.state!==s&&Kf.enqueueReplaceState(c,c.state,null)}function Nl(s,c){var p=c;if("ref"in c){p={};for(var x in c)x!=="ref"&&(p[x]=c[x])}if(s=s.defaultProps){p===c&&(p=f({},p));for(var M in s)p[M]===void 0&&(p[M]=s[M])}return p}var Wc=typeof reportError=="function"?reportError:function(s){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var c=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof s=="object"&&s!==null&&typeof s.message=="string"?String(s.message):String(s),error:s});if(!window.dispatchEvent(c))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",s);return}console.error(s)};function ly(s){Wc(s)}function Rm(s){console.error(s)}function Pw(s){Wc(s)}function Zf(s,c){try{var p=s.onUncaughtError;p(c.value,{componentStack:c.stack})}catch(x){setTimeout(function(){throw x})}}function os(s,c,p){try{var x=s.onCaughtError;x(p.value,{componentStack:p.stack,errorBoundary:c.tag===1?c.stateNode:null})}catch(M){setTimeout(function(){throw M})}}function Om(s,c,p){return p=Ll(p),p.tag=3,p.payload={element:null},p.callback=function(){Zf(s,c)},p}function cy(s){return s=Ll(s),s.tag=3,s}function Iw(s,c,p,x){var M=p.type.getDerivedStateFromError;if(typeof M=="function"){var L=x.value;s.payload=function(){return M(L)},s.callback=function(){os(c,p,x)}}var X=p.stateNode;X!==null&&typeof X.componentDidCatch=="function"&&(s.callback=function(){os(c,p,x),typeof M!="function"&&(Vl===null?Vl=new Set([this]):Vl.add(this));var ne=x.stack;this.componentDidCatch(x.value,{componentStack:ne!==null?ne:""})})}function Aw(s,c,p,x,M){if(p.flags|=32768,x!==null&&typeof x=="object"&&typeof x.then=="function"){if(c=p.alternate,c!==null&&Af(c,p,M,!0),p=Hi.current,p!==null){switch(p.tag){case 13:return li===null?Py():p.alternate===null&&eo===0&&(eo=3),p.flags&=-257,p.flags|=65536,p.lanes=M,x===Fb?p.flags|=16384:(c=p.updateQueue,c===null?p.updateQueue=new Set([x]):c.add(x),Ry(s,x,M)),!1;case 22:return p.flags|=65536,x===Fb?p.flags|=16384:(c=p.updateQueue,c===null?(c={transitions:null,markerInstances:null,retryQueue:new Set([x])},p.updateQueue=c):(p=c.retryQueue,p===null?c.retryQueue=new Set([x]):p.add(x)),Ry(s,x,M)),!1}throw Error(r(435,p.tag))}return Ry(s,x,M),Py(),!1}if(Ln)return c=Hi.current,c!==null?((c.flags&65536)===0&&(c.flags|=256),c.flags|=65536,c.lanes=M,x!==Yu&&(s=Error(r(422),{cause:x}),_l(ii(s,p)))):(x!==Yu&&(c=Error(r(423),{cause:x}),_l(ii(c,p))),s=s.current.alternate,s.flags|=65536,M&=-M,s.lanes|=M,x=ii(x,p),M=Om(s.stateNode,x,M),Aa(s,M),eo!==4&&(eo=2)),!1;var L=Error(r(520),{cause:x});if(L=ii(L,p),sp===null?sp=[L]:sp.push(L),eo!==4&&(eo=2),c===null)return!0;x=ii(x,p),p=c;do{switch(p.tag){case 3:return p.flags|=65536,s=M&-M,p.lanes|=s,s=Om(p.stateNode,x,s),Aa(p,s),!1;case 1:if(c=p.type,L=p.stateNode,(p.flags&128)===0&&(typeof c.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Vl===null||!Vl.has(L))))return p.flags|=65536,M&=-M,p.lanes|=M,M=cy(M),Iw(M,s,p,x),Aa(p,M),!1}p=p.return}while(p!==null);return!1}var Rw=Error(r(461)),Io=!1;function Or(s,c,p,x){c.child=s===null?Tw(c,null,p,x):Vc(c,s.child,p,x)}function _m(s,c,p,x,M){p=p.render;var L=c.ref;if("ref"in x){var X={};for(var ne in x)ne!=="ref"&&(X[ne]=x[ne])}else X=x;return Lc(c),x=Hb(s,c,p,X,L,M),ne=Gb(),s!==null&&!Io?(zc(s,c,M),Vs(s,c,M)):(Ln&&ne&&Lb(c),c.flags|=1,Or(s,c,x,M),c.child)}function Dm(s,c,p,x,M){if(s===null){var L=p.type;return typeof L=="function"&&!Rc(L)&&L.defaultProps===void 0&&p.compare===null?(c.tag=15,c.type=L,Lm(s,c,L,x,M)):(s=lm(p.type,null,x,c,c.mode,M),s.ref=c.ref,s.return=c,c.child=s)}if(L=s.child,!_a(s,M)){var X=L.memoizedProps;if(p=p.compare,p=p!==null?p:es,p(X,x)&&s.ref===c.ref)return Vs(s,c,M)}return c.flags|=1,s=ai(L,x),s.ref=c.ref,s.return=c,c.child=s}function Lm(s,c,p,x,M){if(s!==null){var L=s.memoizedProps;if(es(L,x)&&s.ref===c.ref)if(Io=!1,c.pendingProps=x=L,_a(s,M))(s.flags&131072)!==0&&(Io=!0);else return c.lanes=s.lanes,Vs(s,c,M)}return rd(s,c,p,x,M)}function Qf(s,c,p){var x=c.pendingProps,M=x.children,L=s!==null?s.memoizedState:null;if(x.mode==="hidden"){if((c.flags&128)!==0){if(x=L!==null?L.baseLanes|p:p,s!==null){for(M=c.child=s.child,L=0;M!==null;)L=L|M.lanes|M.childLanes,M=M.sibling;c.childLanes=L&~x}else c.childLanes=0,c.child=null;return qc(s,c,x,p)}if((p&536870912)!==0)c.memoizedState={baseLanes:0,cachePool:null},s!==null&&fm(c,L!==null?L.cachePool:null),L!==null?Bs(c,L):mm(),Mw(c);else return c.lanes=c.childLanes=536870912,qc(s,c,L!==null?L.baseLanes|p:p,p)}else L!==null?(fm(c,L.cachePool),Bs(c,L),Gs(),c.memoizedState=null):(s!==null&&fm(c,null),mm(),Gs());return Or(s,c,M,p),c.child}function qc(s,c,p,x){var M=Ns();return M=M===null?null:{parent:xr._currentValue,pool:M},c.memoizedState={baseLanes:p,cachePool:M},s!==null&&fm(c,null),mm(),Mw(c),s!==null&&Af(s,c,x,!0),null}function Qt(s,c){var p=c.ref;if(p===null)s!==null&&s.ref!==null&&(c.flags|=4194816);else{if(typeof p!="function"&&typeof p!="object")throw Error(r(284));(s===null||s.ref!==p)&&(c.flags|=4194816)}}function rd(s,c,p,x,M){return Lc(c),p=Hb(s,c,p,x,void 0,M),x=Gb(),s!==null&&!Io?(zc(s,c,M),Vs(s,c,M)):(Ln&&x&&Lb(c),c.flags|=1,Or(s,c,p,M),c.child)}function $m(s,c,p,x,M,L){return Lc(c),c.updateQueue=null,p=fw(c,x,p,M),dw(s),x=Gb(),s!==null&&!Io?(zc(s,c,L),Vs(s,c,L)):(Ln&&x&&Lb(c),c.flags|=1,Or(s,c,p,L),c.child)}function zl(s,c,p,x,M){if(Lc(c),c.stateNode===null){var L=Ac,X=p.contextType;typeof X=="object"&&X!==null&&(L=Qr(X)),L=new p(x,L),c.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,L.updater=Kf,c.stateNode=L,L._reactInternals=c,L=c.stateNode,L.props=x,L.state=c.memoizedState,L.refs={},jc(c),X=p.contextType,L.context=typeof X=="object"&&X!==null?Qr(X):Ac,L.state=c.memoizedState,X=p.getDerivedStateFromProps,typeof X=="function"&&(nd(c,p,X,x),L.state=c.memoizedState),typeof p.getDerivedStateFromProps=="function"||typeof L.getSnapshotBeforeUpdate=="function"||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(X=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),X!==L.state&&Kf.enqueueReplaceState(L,L.state,null),Wo(c,x,L,M),Ra(),L.state=c.memoizedState),typeof L.componentDidMount=="function"&&(c.flags|=4194308),x=!0}else if(s===null){L=c.stateNode;var ne=c.memoizedProps,ge=Nl(p,ne);L.props=ge;var Le=L.context,rt=p.contextType;X=Ac,typeof rt=="object"&&rt!==null&&(X=Qr(rt));var ct=p.getDerivedStateFromProps;rt=typeof ct=="function"||typeof L.getSnapshotBeforeUpdate=="function",ne=c.pendingProps!==ne,rt||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(ne||Le!==X)&&kw(c,L,x,X),ts=!1;var He=c.memoizedState;L.state=He,Wo(c,x,L,M),Ra(),Le=c.memoizedState,ne||He!==Le||ts?(typeof ct=="function"&&(nd(c,p,ct,x),Le=c.memoizedState),(ge=ts||Xf(c,p,ge,x,He,Le,X))?(rt||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"&&(c.flags|=4194308)):(typeof L.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=x,c.memoizedState=Le),L.props=x,L.state=Le,L.context=X,x=ge):(typeof L.componentDidMount=="function"&&(c.flags|=4194308),x=!1)}else{L=c.stateNode,Zu(s,c),X=c.memoizedProps,rt=Nl(p,X),L.props=rt,ct=c.pendingProps,He=L.context,Le=p.contextType,ge=Ac,typeof Le=="object"&&Le!==null&&(ge=Qr(Le)),ne=p.getDerivedStateFromProps,(Le=typeof ne=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(X!==ct||He!==ge)&&kw(c,L,x,ge),ts=!1,He=c.memoizedState,L.state=He,Wo(c,x,L,M),Ra();var $e=c.memoizedState;X!==ct||He!==$e||ts||s!==null&&s.dependencies!==null&&um(s.dependencies)?(typeof ne=="function"&&(nd(c,p,ne,x),$e=c.memoizedState),(rt=ts||Xf(c,p,rt,x,He,$e,ge)||s!==null&&s.dependencies!==null&&um(s.dependencies))?(Le||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(x,$e,ge),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(x,$e,ge)),typeof L.componentDidUpdate=="function"&&(c.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof L.componentDidUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=1024),c.memoizedProps=x,c.memoizedState=$e),L.props=x,L.state=$e,L.context=ge,x=rt):(typeof L.componentDidUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||X===s.memoizedProps&&He===s.memoizedState||(c.flags|=1024),x=!1)}return L=x,Qt(s,c),x=(c.flags&128)!==0,L||x?(L=c.stateNode,p=x&&typeof p.getDerivedStateFromError!="function"?null:L.render(),c.flags|=1,s!==null&&x?(c.child=Vc(c,s.child,null,M),c.child=Vc(c,null,p,M)):Or(s,c,p,M),c.memoizedState=L.state,s=c.child):s=Vs(s,c,M),s}function Ow(s,c,p,x){return If(),c.flags|=256,Or(s,c,p,x),c.child}var Jf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function jm(s){return{baseLanes:s,cachePool:ow()}}function Ao(s,c,p){return s=s!==null?s.childLanes&~p:0,c&&(s|=fa),s}function _w(s,c,p){var x=c.pendingProps,M=!1,L=(c.flags&128)!==0,X;if((X=L)||(X=s!==null&&s.memoizedState===null?!1:(Jr.current&2)!==0),X&&(M=!0,c.flags&=-129),X=(c.flags&32)!==0,c.flags&=-33,s===null){if(Ln){if(M?ua(c):Gs(),Ln){var ne=Nr,ge;if(ge=ne){e:{for(ge=ne,ne=xi;ge.nodeType!==8;){if(!ne){ne=null;break e}if(ge=La(ge.nextSibling),ge===null){ne=null;break e}}ne=ge}ne!==null?(c.memoizedState={dehydrated:ne,treeContext:Rr!==null?{id:Fr,overflow:Fs}:null,retryLane:536870912,hydrationErrors:null},ge=vi(18,null,null,0),ge.stateNode=ne,ge.return=c,c.child=ge,yo=c,Nr=null,ge=!0):ge=!1}ge||sa(c)}if(ne=c.memoizedState,ne!==null&&(ne=ne.dehydrated,ne!==null))return ui(ne)?c.lanes=32:c.lanes=536870912,null;rs(c)}return ne=x.children,x=x.fallback,M?(Gs(),M=c.mode,ne=ep({mode:"hidden",children:ne},M),x=Oc(x,M,p,null),ne.return=c,x.return=c,ne.sibling=x,c.child=ne,M=c.child,M.memoizedState=jm(p),M.childLanes=Ao(s,X,p),c.memoizedState=Jf,x):(ua(c),uy(c,ne))}if(ge=s.memoizedState,ge!==null&&(ne=ge.dehydrated,ne!==null)){if(L)c.flags&256?(ua(c),c.flags&=-257,c=dy(s,c,p)):c.memoizedState!==null?(Gs(),c.child=s.child,c.flags|=128,c=null):(Gs(),M=x.fallback,ne=c.mode,x=ep({mode:"visible",children:x.children},ne),M=Oc(M,ne,p,null),M.flags|=2,x.return=c,M.return=c,x.sibling=M,c.child=x,Vc(c,s.child,null,p),x=c.child,x.memoizedState=jm(p),x.childLanes=Ao(s,X,p),c.memoizedState=Jf,c=M);else if(ua(c),ui(ne)){if(X=ne.nextSibling&&ne.nextSibling.dataset,X)var Le=X.dgst;X=Le,x=Error(r(419)),x.stack="",x.digest=X,_l({value:x,source:null,stack:null}),c=dy(s,c,p)}else if(Io||Af(s,c,p,!1),X=(p&s.childLanes)!==0,Io||X){if(X=Tr,X!==null&&(x=p&-p,x=(x&42)!==0?1:$o(x),x=(x&(X.suspendedLanes|p))!==0?0:x,x!==0&&x!==ge.retryLane))throw ge.retryLane=x,Ic(s,x),Vi(X,s,x),Rw;ne.data==="$?"||Py(),c=dy(s,c,p)}else ne.data==="$?"?(c.flags|=192,c.child=s.child,c=null):(s=ge.treeContext,Nr=La(ne.nextSibling),yo=c,Ln=!0,Ia=null,xi=!1,s!==null&&(ia[aa++]=Fr,ia[aa++]=Fs,ia[aa++]=Rr,Fr=s.id,Fs=s.overflow,Rr=c),c=uy(c,x.children),c.flags|=4096);return c}return M?(Gs(),M=x.fallback,ne=c.mode,ge=s.child,Le=ge.sibling,x=ai(ge,{mode:"hidden",children:x.children}),x.subtreeFlags=ge.subtreeFlags&65011712,Le!==null?M=ai(Le,M):(M=Oc(M,ne,p,null),M.flags|=2),M.return=c,x.return=c,x.sibling=M,c.child=x,x=M,M=c.child,ne=s.child.memoizedState,ne===null?ne=jm(p):(ge=ne.cachePool,ge!==null?(Le=xr._currentValue,ge=ge.parent!==Le?{parent:Le,pool:Le}:ge):ge=ow(),ne={baseLanes:ne.baseLanes|p,cachePool:ge}),M.memoizedState=ne,M.childLanes=Ao(s,X,p),c.memoizedState=Jf,x):(ua(c),p=s.child,s=p.sibling,p=ai(p,{mode:"visible",children:x.children}),p.return=c,p.sibling=null,s!==null&&(X=c.deletions,X===null?(c.deletions=[s],c.flags|=16):X.push(s)),c.child=p,c.memoizedState=null,p)}function uy(s,c){return c=ep({mode:"visible",children:c},s.mode),c.return=s,s.child=c}function ep(s,c){return s=vi(22,s,null,c),s.lanes=0,s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},s}function dy(s,c,p){return Vc(c,s.child,null,p),s=uy(c,c.pendingProps.children),s.flags|=2,c.memoizedState=null,s}function fy(s,c,p){s.lanes|=c;var x=s.alternate;x!==null&&(x.lanes|=c),wi(s.return,c,p)}function py(s,c,p,x,M){var L=s.memoizedState;L===null?s.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:x,tail:p,tailMode:M}:(L.isBackwards=c,L.rendering=null,L.renderingStartTime=0,L.last=x,L.tail=p,L.tailMode=M)}function Dw(s,c,p){var x=c.pendingProps,M=x.revealOrder,L=x.tail;if(Or(s,c,x.children,p),x=Jr.current,(x&2)!==0)x=x&1|2,c.flags|=128;else{if(s!==null&&(s.flags&128)!==0)e:for(s=c.child;s!==null;){if(s.tag===13)s.memoizedState!==null&&fy(s,p,c);else if(s.tag===19)fy(s,p,c);else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===c)break e;for(;s.sibling===null;){if(s.return===null||s.return===c)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}x&=1}switch(ae(Jr,x),M){case"forwards":for(p=c.child,M=null;p!==null;)s=p.alternate,s!==null&&Yf(s)===null&&(M=p),p=p.sibling;p=M,p===null?(M=c.child,c.child=null):(M=p.sibling,p.sibling=null),py(c,!1,M,p,L);break;case"backwards":for(p=null,M=c.child,c.child=null;M!==null;){if(s=M.alternate,s!==null&&Yf(s)===null){c.child=M;break}s=M.sibling,M.sibling=p,p=M,M=s}py(c,!0,p,null,L);break;case"together":py(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function Vs(s,c,p){if(s!==null&&(c.dependencies=s.dependencies),Gl|=c.lanes,(p&c.childLanes)===0)if(s!==null){if(Af(s,c,p,!1),(p&c.childLanes)===0)return null}else return null;if(s!==null&&c.child!==s.child)throw Error(r(153));if(c.child!==null){for(s=c.child,p=ai(s,s.pendingProps),c.child=p,p.return=c;s.sibling!==null;)s=s.sibling,p=p.sibling=ai(s,s.pendingProps),p.return=c;p.sibling=null}return c.child}function _a(s,c){return(s.lanes&c)!==0?!0:(s=s.dependencies,!!(s!==null&&um(s)))}function ci(s,c,p){switch(c.tag){case 3:Ce(c,c.stateNode.containerInfo),zi(c,xr,s.memoizedState.cache),If();break;case 27:case 5:le(c);break;case 4:Ce(c,c.stateNode.containerInfo);break;case 10:zi(c,c.type,c.memoizedProps.value);break;case 13:var x=c.memoizedState;if(x!==null)return x.dehydrated!==null?(ua(c),c.flags|=128,null):(p&c.child.childLanes)!==0?_w(s,c,p):(ua(c),s=Vs(s,c,p),s!==null?s.sibling:null);ua(c);break;case 19:var M=(s.flags&128)!==0;if(x=(p&c.childLanes)!==0,x||(Af(s,c,p,!1),x=(p&c.childLanes)!==0),M){if(x)return Dw(s,c,p);c.flags|=128}if(M=c.memoizedState,M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),ae(Jr,Jr.current),x)break;return null;case 22:case 23:return c.lanes=0,Qf(s,c,p);case 24:zi(c,xr,s.memoizedState.cache)}return Vs(s,c,p)}function Fm(s,c,p){if(s!==null)if(s.memoizedProps!==c.pendingProps)Io=!0;else{if(!_a(s,p)&&(c.flags&128)===0)return Io=!1,ci(s,c,p);Io=(s.flags&131072)!==0}else Io=!1,Ln&&(c.flags&1048576)!==0&&Db(c,Mf,c.index);switch(c.lanes=0,c.tag){case 16:e:{s=c.pendingProps;var x=c.elementType,M=x._init;if(x=M(x._payload),c.type=x,typeof x=="function")Rc(x)?(s=Nl(x,s),c.tag=1,c=zl(null,c,x,s,p)):(c.tag=0,c=rd(null,c,x,s,p));else{if(x!=null){if(M=x.$$typeof,M===R){c.tag=11,c=_m(null,c,x,s,p);break e}else if(M===j){c.tag=14,c=Dm(null,c,x,s,p);break e}}throw c=q(x)||x,Error(r(306,c,""))}}return c;case 0:return rd(s,c,c.type,c.pendingProps,p);case 1:return x=c.type,M=Nl(x,c.pendingProps),zl(s,c,x,M,p);case 3:e:{if(Ce(c,c.stateNode.containerInfo),s===null)throw Error(r(387));x=c.pendingProps;var L=c.memoizedState;M=L.element,Zu(s,c),Wo(c,x,null,p);var X=c.memoizedState;if(x=X.cache,zi(c,xr,x),x!==L.cache&&Pn(c,[xr],p,!0),Ra(),x=X.element,L.isDehydrated)if(L={element:x,isDehydrated:!1,cache:X.cache},c.updateQueue.baseState=L,c.memoizedState=L,c.flags&256){c=Ow(s,c,x,p);break e}else if(x!==M){M=ii(Error(r(424)),c),_l(M),c=Ow(s,c,x,p);break e}else{switch(s=c.stateNode.containerInfo,s.nodeType){case 9:s=s.body;break;default:s=s.nodeName==="HTML"?s.ownerDocument.body:s}for(Nr=La(s.firstChild),yo=c,Ln=!0,Ia=null,xi=!0,p=Tw(c,null,x,p),c.child=p;p;)p.flags=p.flags&-3|4096,p=p.sibling}else{if(If(),x===M){c=Vs(s,c,p);break e}Or(s,c,x,p)}c=c.child}return c;case 26:return Qt(s,c),s===null?(p=AC(c.type,null,c.pendingProps,null))?c.memoizedState=p:Ln||(p=c.type,s=c.pendingProps,x=Xc(re.current).createElement(p),x[ze]=c,x[Qe]=s,Co(x,p,s),Ne(x),c.stateNode=x):c.memoizedState=AC(c.type,s.memoizedProps,c.pendingProps,s.memoizedState),null;case 27:return le(c),s===null&&Ln&&(x=c.stateNode=kC(c.type,c.pendingProps,re.current),yo=c,xi=!0,M=Nr,pa(c.type)?(zy=M,Nr=La(x.firstChild)):Nr=M),Or(s,c,c.pendingProps.children,p),Qt(s,c),s===null&&(c.flags|=4194304),c.child;case 5:return s===null&&Ln&&((M=x=Nr)&&(x=TC(x,c.type,c.pendingProps,xi),x!==null?(c.stateNode=x,yo=c,Nr=La(x.firstChild),xi=!1,M=!0):M=!1),M||sa(c)),le(c),M=c.type,L=c.pendingProps,X=s!==null?s.memoizedProps:null,x=L.children,tg(M,L)?x=null:X!==null&&tg(M,X)&&(c.flags|=32),c.memoizedState!==null&&(M=Hb(s,c,Ub,null,null,p),Cd._currentValue=M),Qt(s,c),Or(s,c,x,p),c.child;case 6:return s===null&&Ln&&((s=p=Nr)&&(p=rg(p,c.pendingProps,xi),p!==null?(c.stateNode=p,yo=c,Nr=null,s=!0):s=!1),s||sa(c)),null;case 13:return _w(s,c,p);case 4:return Ce(c,c.stateNode.containerInfo),x=c.pendingProps,s===null?c.child=Vc(c,null,x,p):Or(s,c,x,p),c.child;case 11:return _m(s,c,c.type,c.pendingProps,p);case 7:return Or(s,c,c.pendingProps,p),c.child;case 8:return Or(s,c,c.pendingProps.children,p),c.child;case 12:return Or(s,c,c.pendingProps.children,p),c.child;case 10:return x=c.pendingProps,zi(c,c.type,x.value),Or(s,c,x.children,p),c.child;case 9:return M=c.type._context,x=c.pendingProps.children,Lc(c),M=Qr(M),x=x(M),c.flags|=1,Or(s,c,x,p),c.child;case 14:return Dm(s,c,c.type,c.pendingProps,p);case 15:return Lm(s,c,c.type,c.pendingProps,p);case 19:return Dw(s,c,p);case 31:return x=c.pendingProps,p=c.mode,x={mode:x.mode,children:x.children},s===null?(p=ep(x,p),p.ref=c.ref,c.child=p,p.return=c,c=p):(p=ai(s.child,x),p.ref=c.ref,c.child=p,p.return=c,c=p),c;case 22:return Qf(s,c,p);case 24:return Lc(c),x=Qr(xr),s===null?(M=Ns(),M===null&&(M=Tr,L=$b(),M.pooledCache=L,L.refCount++,L!==null&&(M.pooledCacheLanes|=p),M=L),c.memoizedState={parent:x,cache:M},jc(c),zi(c,xr,M)):((s.lanes&p)!==0&&(Zu(s,c),Wo(c,null,null,p),Ra()),M=s.memoizedState,L=c.memoizedState,M.parent!==x?(M={parent:x,cache:x},c.memoizedState=M,c.lanes===0&&(c.memoizedState=c.updateQueue.baseState=M),zi(c,xr,x)):(x=L.cache,zi(c,xr,x),x!==M.cache&&Pn(c,[xr],p,!0))),Or(s,c,c.pendingProps.children,p),c.child;case 29:throw c.pendingProps}throw Error(r(156,c.tag))}function Ws(s){s.flags|=4}function Nm(s,c){if(c.type!=="stylesheet"||(c.state.loading&4)!==0)s.flags&=-16777217;else if(s.flags|=16777216,!So(c)){if(c=Hi.current,c!==null&&((Hn&4194048)===Hn?li!==null:(Hn&62914560)!==Hn&&(Hn&536870912)===0||c!==li))throw Xu=Fb,iw;s.flags|=8192}}function zm(s,c){c!==null&&(s.flags|=4),s.flags&16384&&(c=s.tag!==22?Go():536870912,s.lanes|=c,ud|=c)}function tp(s,c){if(!Ln)switch(s.tailMode){case"hidden":c=s.tail;for(var p=null;c!==null;)c.alternate!==null&&(p=c),c=c.sibling;p===null?s.tail=null:p.sibling=null;break;case"collapsed":p=s.tail;for(var x=null;p!==null;)p.alternate!==null&&(x=p),p=p.sibling;x===null?c||s.tail===null?s.tail=null:s.tail.sibling=null:x.sibling=null}}function wr(s){var c=s.alternate!==null&&s.alternate.child===s.child,p=0,x=0;if(c)for(var M=s.child;M!==null;)p|=M.lanes|M.childLanes,x|=M.subtreeFlags&65011712,x|=M.flags&65011712,M.return=s,M=M.sibling;else for(M=s.child;M!==null;)p|=M.lanes|M.childLanes,x|=M.subtreeFlags,x|=M.flags,M.return=s,M=M.sibling;return s.subtreeFlags|=x,s.childLanes=p,c}function Lw(s,c,p){var x=c.pendingProps;switch(kf(c),c.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return wr(c),null;case 1:return wr(c),null;case 3:return p=c.stateNode,x=null,s!==null&&(x=s.memoizedState.cache),c.memoizedState.cache!==x&&(c.flags|=2048),la(xr),ie(),p.pendingContext&&(p.context=p.pendingContext,p.pendingContext=null),(s===null||s.child===null)&&(Pf(c)?Ws(c):s===null||s.memoizedState.isDehydrated&&(c.flags&256)===0||(c.flags|=1024,ew())),wr(c),null;case 26:return p=c.memoizedState,s===null?(Ws(c),p!==null?(wr(c),Nm(c,p)):(wr(c),c.flags&=-16777217)):p?p!==s.memoizedState?(Ws(c),wr(c),Nm(c,p)):(wr(c),c.flags&=-16777217):(s.memoizedProps!==x&&Ws(c),wr(c),c.flags&=-16777217),null;case 27:ve(c),p=re.current;var M=c.type;if(s!==null&&c.stateNode!=null)s.memoizedProps!==x&&Ws(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return wr(c),null}s=ce.current,Pf(c)?Q1(c):(s=kC(M,x,p),c.stateNode=s,Ws(c))}return wr(c),null;case 5:if(ve(c),p=c.type,s!==null&&c.stateNode!=null)s.memoizedProps!==x&&Ws(c);else{if(!x){if(c.stateNode===null)throw Error(r(166));return wr(c),null}if(s=ce.current,Pf(c))Q1(c);else{switch(M=Xc(re.current),s){case 1:s=M.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:s=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":s=M.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":s=M.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":s=M.createElement("div"),s.innerHTML="<script><\/script>",s=s.removeChild(s.firstChild);break;case"select":s=typeof x.is=="string"?M.createElement("select",{is:x.is}):M.createElement("select"),x.multiple?s.multiple=!0:x.size&&(s.size=x.size);break;default:s=typeof x.is=="string"?M.createElement(p,{is:x.is}):M.createElement(p)}}s[ze]=c,s[Qe]=x;e:for(M=c.child;M!==null;){if(M.tag===5||M.tag===6)s.appendChild(M.stateNode);else if(M.tag!==4&&M.tag!==27&&M.child!==null){M.child.return=M,M=M.child;continue}if(M===c)break e;for(;M.sibling===null;){if(M.return===null||M.return===c)break e;M=M.return}M.sibling.return=M.return,M=M.sibling}c.stateNode=s;e:switch(Co(s,p,x),p){case"button":case"input":case"select":case"textarea":s=!!x.autoFocus;break e;case"img":s=!0;break e;default:s=!1}s&&Ws(c)}}return wr(c),c.flags&=-16777217,null;case 6:if(s&&c.stateNode!=null)s.memoizedProps!==x&&Ws(c);else{if(typeof x!="string"&&c.stateNode===null)throw Error(r(166));if(s=re.current,Pf(c)){if(s=c.stateNode,p=c.memoizedProps,x=null,M=yo,M!==null)switch(M.tag){case 27:case 5:x=M.memoizedProps}s[ze]=c,s=!!(s.nodeValue===p||x!==null&&x.suppressHydrationWarning===!0||wC(s.nodeValue,p)),s||sa(c)}else s=Xc(s).createTextNode(x),s[ze]=c,c.stateNode=s}return wr(c),null;case 13:if(x=c.memoizedState,s===null||s.memoizedState!==null&&s.memoizedState.dehydrated!==null){if(M=Pf(c),x!==null&&x.dehydrated!==null){if(s===null){if(!M)throw Error(r(318));if(M=c.memoizedState,M=M!==null?M.dehydrated:null,!M)throw Error(r(317));M[ze]=c}else If(),(c.flags&128)===0&&(c.memoizedState=null),c.flags|=4;wr(c),M=!1}else M=ew(),s!==null&&s.memoizedState!==null&&(s.memoizedState.hydrationErrors=M),M=!0;if(!M)return c.flags&256?(rs(c),c):(rs(c),null)}if(rs(c),(c.flags&128)!==0)return c.lanes=p,c;if(p=x!==null,s=s!==null&&s.memoizedState!==null,p){x=c.child,M=null,x.alternate!==null&&x.alternate.memoizedState!==null&&x.alternate.memoizedState.cachePool!==null&&(M=x.alternate.memoizedState.cachePool.pool);var L=null;x.memoizedState!==null&&x.memoizedState.cachePool!==null&&(L=x.memoizedState.cachePool.pool),L!==M&&(x.flags|=2048)}return p!==s&&p&&(c.child.flags|=8192),zm(c,c.updateQueue),wr(c),null;case 4:return ie(),s===null&&$y(c.stateNode.containerInfo),wr(c),null;case 10:return la(c.type),wr(c),null;case 19:if(J(Jr),M=c.memoizedState,M===null)return wr(c),null;if(x=(c.flags&128)!==0,L=M.rendering,L===null)if(x)tp(M,!1);else{if(eo!==0||s!==null&&(s.flags&128)!==0)for(s=c.child;s!==null;){if(L=Yf(s),L!==null){for(c.flags|=128,tp(M,!1),s=L.updateQueue,c.updateQueue=s,zm(c,s),c.subtreeFlags=0,s=p,p=c.child;p!==null;)Tf(p,s),p=p.sibling;return ae(Jr,Jr.current&1|2),c.child}s=s.sibling}M.tail!==null&&We()>dd&&(c.flags|=128,x=!0,tp(M,!1),c.lanes=4194304)}else{if(!x)if(s=Yf(L),s!==null){if(c.flags|=128,x=!0,s=s.updateQueue,c.updateQueue=s,zm(c,s),tp(M,!0),M.tail===null&&M.tailMode==="hidden"&&!L.alternate&&!Ln)return wr(c),null}else 2*We()-M.renderingStartTime>dd&&p!==536870912&&(c.flags|=128,x=!0,tp(M,!1),c.lanes=4194304);M.isBackwards?(L.sibling=c.child,c.child=L):(s=M.last,s!==null?s.sibling=L:c.child=L,M.last=L)}return M.tail!==null?(c=M.tail,M.rendering=c,M.tail=c.sibling,M.renderingStartTime=We(),c.sibling=null,s=Jr.current,ae(Jr,x?s&1|2:s&1),c):(wr(c),null);case 22:case 23:return rs(c),Bb(),x=c.memoizedState!==null,s!==null?s.memoizedState!==null!==x&&(c.flags|=8192):x&&(c.flags|=8192),x?(p&536870912)!==0&&(c.flags&128)===0&&(wr(c),c.subtreeFlags&6&&(c.flags|=8192)):wr(c),p=c.updateQueue,p!==null&&zm(c,p.retryQueue),p=null,s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),x=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(x=c.memoizedState.cachePool.pool),x!==p&&(c.flags|=2048),s!==null&&J($c),null;case 24:return p=null,s!==null&&(p=s.memoizedState.cache),c.memoizedState.cache!==p&&(c.flags|=2048),la(xr),wr(c),null;case 25:return null;case 30:return null}throw Error(r(156,c.tag))}function $w(s,c){switch(kf(c),c.tag){case 1:return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 3:return la(xr),ie(),s=c.flags,(s&65536)!==0&&(s&128)===0?(c.flags=s&-65537|128,c):null;case 26:case 27:case 5:return ve(c),null;case 13:if(rs(c),s=c.memoizedState,s!==null&&s.dehydrated!==null){if(c.alternate===null)throw Error(r(340));If()}return s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 19:return J(Jr),null;case 4:return ie(),null;case 10:return la(c.type),null;case 22:case 23:return rs(c),Bb(),s!==null&&J($c),s=c.flags,s&65536?(c.flags=s&-65537|128,c):null;case 24:return la(xr),null;case 25:return null;default:return null}}function jw(s,c){switch(kf(c),c.tag){case 3:la(xr),ie();break;case 26:case 27:case 5:ve(c);break;case 4:ie();break;case 13:rs(c);break;case 19:J(Jr);break;case 10:la(c.type);break;case 22:case 23:rs(c),Bb(),s!==null&&J($c);break;case 24:la(xr)}}function np(s,c){try{var p=c.updateQueue,x=p!==null?p.lastEffect:null;if(x!==null){var M=x.next;p=M;do{if((p.tag&s)===s){x=void 0;var L=p.create,X=p.inst;x=L(),X.destroy=x}p=p.next}while(p!==M)}}catch(ne){Cr(c,c.return,ne)}}function Bl(s,c,p){try{var x=c.updateQueue,M=x!==null?x.lastEffect:null;if(M!==null){var L=M.next;x=L;do{if((x.tag&s)===s){var X=x.inst,ne=X.destroy;if(ne!==void 0){X.destroy=void 0,M=c;var ge=p,Le=ne;try{Le()}catch(rt){Cr(M,ge,rt)}}}x=x.next}while(x!==L)}}catch(rt){Cr(c,c.return,rt)}}function Fw(s){var c=s.updateQueue;if(c!==null){var p=s.stateNode;try{zb(c,p)}catch(x){Cr(s,s.return,x)}}}function hy(s,c,p){p.props=Nl(s.type,s.memoizedProps),p.state=s.memoizedState;try{p.componentWillUnmount()}catch(x){Cr(s,c,x)}}function od(s,c){try{var p=s.ref;if(p!==null){switch(s.tag){case 26:case 27:case 5:var x=s.stateNode;break;case 30:x=s.stateNode;break;default:x=s.stateNode}typeof p=="function"?s.refCleanup=p(x):p.current=x}}catch(M){Cr(s,c,M)}}function is(s,c){var p=s.ref,x=s.refCleanup;if(p!==null)if(typeof x=="function")try{x()}catch(M){Cr(s,c,M)}finally{s.refCleanup=null,s=s.alternate,s!=null&&(s.refCleanup=null)}else if(typeof p=="function")try{p(null)}catch(M){Cr(s,c,M)}else p.current=null}function Bm(s){var c=s.type,p=s.memoizedProps,x=s.stateNode;try{e:switch(c){case"button":case"input":case"select":case"textarea":p.autoFocus&&x.focus();break e;case"img":p.src?x.src=p.src:p.srcSet&&(x.srcset=p.srcSet)}}catch(M){Cr(s,s.return,M)}}function Hm(s,c,p){try{var x=s.stateNode;JM(x,s.type,p,c),x[Qe]=c}catch(M){Cr(s,s.return,M)}}function id(s){return s.tag===5||s.tag===3||s.tag===26||s.tag===27&&pa(s.type)||s.tag===4}function rp(s){e:for(;;){for(;s.sibling===null;){if(s.return===null||id(s.return))return null;s=s.return}for(s.sibling.return=s.return,s=s.sibling;s.tag!==5&&s.tag!==6&&s.tag!==18;){if(s.tag===27&&pa(s.type)||s.flags&2||s.child===null||s.tag===4)continue e;s.child.return=s,s=s.child}if(!(s.flags&2))return s.stateNode}}function Um(s,c,p){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?(p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p).insertBefore(s,c):(c=p.nodeType===9?p.body:p.nodeName==="HTML"?p.ownerDocument.body:p,c.appendChild(s),p=p._reactRootContainer,p!=null||c.onclick!==null||(c.onclick=Jm));else if(x!==4&&(x===27&&pa(s.type)&&(p=s.stateNode,c=null),s=s.child,s!==null))for(Um(s,c,p),s=s.sibling;s!==null;)Um(s,c,p),s=s.sibling}function op(s,c,p){var x=s.tag;if(x===5||x===6)s=s.stateNode,c?p.insertBefore(s,c):p.appendChild(s);else if(x!==4&&(x===27&&pa(s.type)&&(p=s.stateNode),s=s.child,s!==null))for(op(s,c,p),s=s.sibling;s!==null;)op(s,c,p),s=s.sibling}function ip(s){var c=s.stateNode,p=s.memoizedProps;try{for(var x=s.type,M=c.attributes;M.length;)c.removeAttributeNode(M[0]);Co(c,x,p),c[ze]=s,c[Qe]=p}catch(L){Cr(s,s.return,L)}}var as=!1,tr=!1,qs=!1,Nw=typeof WeakSet=="function"?WeakSet:Set,xo=null;function NM(s,c){if(s=s.containerInfo,Da=sg,s=X1(s),Ab(s)){if("selectionStart"in s)var p={start:s.selectionStart,end:s.selectionEnd};else e:{p=(p=s.ownerDocument)&&p.defaultView||window;var x=p.getSelection&&p.getSelection();if(x&&x.rangeCount!==0){p=x.anchorNode;var M=x.anchorOffset,L=x.focusNode;x=x.focusOffset;try{p.nodeType,L.nodeType}catch{p=null;break e}var X=0,ne=-1,ge=-1,Le=0,rt=0,ct=s,He=null;t:for(;;){for(var $e;ct!==p||M!==0&&ct.nodeType!==3||(ne=X+M),ct!==L||x!==0&&ct.nodeType!==3||(ge=X+x),ct.nodeType===3&&(X+=ct.nodeValue.length),($e=ct.firstChild)!==null;)He=ct,ct=$e;for(;;){if(ct===s)break t;if(He===p&&++Le===M&&(ne=X),He===L&&++rt===x&&(ge=X),($e=ct.nextSibling)!==null)break;ct=He,He=ct.parentNode}ct=$e}p=ne===-1||ge===-1?null:{start:ne,end:ge}}else p=null}p=p||{start:0,end:0}}else p=null;for(eg={focusedElem:s,selectionRange:p},sg=!1,xo=c;xo!==null;)if(c=xo,s=c.child,(c.subtreeFlags&1024)!==0&&s!==null)s.return=c,xo=s;else for(;xo!==null;){switch(c=xo,L=c.alternate,s=c.flags,c.tag){case 0:break;case 11:case 15:break;case 1:if((s&1024)!==0&&L!==null){s=void 0,p=c,M=L.memoizedProps,L=L.memoizedState,x=p.stateNode;try{var tn=Nl(p.type,M,p.elementType===p.type);s=x.getSnapshotBeforeUpdate(tn,L),x.__reactInternalSnapshotBeforeUpdate=s}catch(en){Cr(p,p.return,en)}}break;case 3:if((s&1024)!==0){if(s=c.stateNode.containerInfo,p=s.nodeType,p===9)Ny(s);else if(p===1)switch(s.nodeName){case"HEAD":case"HTML":case"BODY":Ny(s);break;default:s.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((s&1024)!==0)throw Error(r(163))}if(s=c.sibling,s!==null){s.return=c.return,xo=s;break}xo=c.return}}function zw(s,c,p){var x=p.flags;switch(p.tag){case 0:case 11:case 15:Hl(s,p),x&4&&np(5,p);break;case 1:if(Hl(s,p),x&4)if(s=p.stateNode,c===null)try{s.componentDidMount()}catch(X){Cr(p,p.return,X)}else{var M=Nl(p.type,c.memoizedProps);c=c.memoizedState;try{s.componentDidUpdate(M,c,s.__reactInternalSnapshotBeforeUpdate)}catch(X){Cr(p,p.return,X)}}x&64&&Fw(p),x&512&&od(p,p.return);break;case 3:if(Hl(s,p),x&64&&(s=p.updateQueue,s!==null)){if(c=null,p.child!==null)switch(p.child.tag){case 27:case 5:c=p.child.stateNode;break;case 1:c=p.child.stateNode}try{zb(s,c)}catch(X){Cr(p,p.return,X)}}break;case 27:c===null&&x&4&&ip(p);case 26:case 5:Hl(s,p),c===null&&x&4&&Bm(p),x&512&&od(p,p.return);break;case 12:Hl(s,p);break;case 13:Hl(s,p),x&4&&Uw(s,p),x&64&&(s=p.memoizedState,s!==null&&(s=s.dehydrated,s!==null&&(p=Ym.bind(null,p),bd(s,p))));break;case 22:if(x=p.memoizedState!==null||as,!x){c=c!==null&&c.memoizedState!==null||tr,M=as;var L=tr;as=x,(tr=c)&&!L?Ks(s,p,(p.subtreeFlags&8772)!==0):Hl(s,p),as=M,tr=L}break;case 30:break;default:Hl(s,p)}}function Bw(s){var c=s.alternate;c!==null&&(s.alternate=null,Bw(c)),s.child=null,s.deletions=null,s.sibling=null,s.tag===5&&(c=s.stateNode,c!==null&&Et(c)),s.stateNode=null,s.return=null,s.dependencies=null,s.memoizedProps=null,s.memoizedState=null,s.pendingProps=null,s.stateNode=null,s.updateQueue=null}var zr=null,Mi=!1;function Ys(s,c,p){for(p=p.child;p!==null;)Hw(s,c,p),p=p.sibling}function Hw(s,c,p){if(Ke&&typeof Ke.onCommitFiberUnmount=="function")try{Ke.onCommitFiberUnmount(qe,p)}catch{}switch(p.tag){case 26:tr||is(p,c),Ys(s,c,p),p.memoizedState?p.memoizedState.count--:p.stateNode&&(p=p.stateNode,p.parentNode.removeChild(p));break;case 27:tr||is(p,c);var x=zr,M=Mi;pa(p.type)&&(zr=p.stateNode,Mi=!1),Ys(s,c,p),gp(p.stateNode),zr=x,Mi=M;break;case 5:tr||is(p,c);case 6:if(x=zr,M=Mi,zr=null,Ys(s,c,p),zr=x,Mi=M,zr!==null)if(Mi)try{(zr.nodeType===9?zr.body:zr.nodeName==="HTML"?zr.ownerDocument.body:zr).removeChild(p.stateNode)}catch(L){Cr(p,c,L)}else try{zr.removeChild(p.stateNode)}catch(L){Cr(p,c,L)}break;case 18:zr!==null&&(Mi?(s=zr,ng(s.nodeType===9?s.body:s.nodeName==="HTML"?s.ownerDocument.body:s,p.stateNode),Ep(s)):ng(zr,p.stateNode));break;case 4:x=zr,M=Mi,zr=p.stateNode.containerInfo,Mi=!0,Ys(s,c,p),zr=x,Mi=M;break;case 0:case 11:case 14:case 15:tr||Bl(2,p,c),tr||Bl(4,p,c),Ys(s,c,p);break;case 1:tr||(is(p,c),x=p.stateNode,typeof x.componentWillUnmount=="function"&&hy(p,c,x)),Ys(s,c,p);break;case 21:Ys(s,c,p);break;case 22:tr=(x=tr)||p.memoizedState!==null,Ys(s,c,p),tr=x;break;default:Ys(s,c,p)}}function Uw(s,c){if(c.memoizedState===null&&(s=c.alternate,s!==null&&(s=s.memoizedState,s!==null&&(s=s.dehydrated,s!==null))))try{Ep(s)}catch(p){Cr(c,c.return,p)}}function zM(s){switch(s.tag){case 13:case 19:var c=s.stateNode;return c===null&&(c=s.stateNode=new Nw),c;case 22:return s=s.stateNode,c=s._retryCache,c===null&&(c=s._retryCache=new Nw),c;default:throw Error(r(435,s.tag))}}function my(s,c){var p=zM(s);c.forEach(function(x){var M=WM.bind(null,s,x);p.has(x)||(p.add(x),x.then(M,M))})}function Ui(s,c){var p=c.deletions;if(p!==null)for(var x=0;x<p.length;x++){var M=p[x],L=s,X=c,ne=X;e:for(;ne!==null;){switch(ne.tag){case 27:if(pa(ne.type)){zr=ne.stateNode,Mi=!1;break e}break;case 5:zr=ne.stateNode,Mi=!1;break e;case 3:case 4:zr=ne.stateNode.containerInfo,Mi=!0;break e}ne=ne.return}if(zr===null)throw Error(r(160));Hw(L,X,M),zr=null,Mi=!1,L=M.alternate,L!==null&&(L.return=null),M.return=null}if(c.subtreeFlags&13878)for(c=c.child;c!==null;)gy(c,s),c=c.sibling}var da=null;function gy(s,c){var p=s.alternate,x=s.flags;switch(s.tag){case 0:case 11:case 14:case 15:Ui(c,s),ki(s),x&4&&(Bl(3,s,s.return),np(3,s),Bl(5,s,s.return));break;case 1:Ui(c,s),ki(s),x&512&&(tr||p===null||is(p,p.return)),x&64&&as&&(s=s.updateQueue,s!==null&&(x=s.callbacks,x!==null&&(p=s.shared.hiddenCallbacks,s.shared.hiddenCallbacks=p===null?x:p.concat(x))));break;case 26:var M=da;if(Ui(c,s),ki(s),x&512&&(tr||p===null||is(p,p.return)),x&4){var L=p!==null?p.memoizedState:null;if(x=s.memoizedState,p===null)if(x===null)if(s.stateNode===null){e:{x=s.type,p=s.memoizedProps,M=M.ownerDocument||M;t:switch(x){case"title":L=M.getElementsByTagName("title")[0],(!L||L[Gt]||L[ze]||L.namespaceURI==="http://www.w3.org/2000/svg"||L.hasAttribute("itemprop"))&&(L=M.createElement(x),M.head.insertBefore(L,M.querySelector("head > title"))),Co(L,x,p),L[ze]=s,Ne(L),x=L;break e;case"link":var X=_C("link","href",M).get(x+(p.href||""));if(X){for(var ne=0;ne<X.length;ne++)if(L=X[ne],L.getAttribute("href")===(p.href==null||p.href===""?null:p.href)&&L.getAttribute("rel")===(p.rel==null?null:p.rel)&&L.getAttribute("title")===(p.title==null?null:p.title)&&L.getAttribute("crossorigin")===(p.crossOrigin==null?null:p.crossOrigin)){X.splice(ne,1);break t}}L=M.createElement(x),Co(L,x,p),M.head.appendChild(L);break;case"meta":if(X=_C("meta","content",M).get(x+(p.content||""))){for(ne=0;ne<X.length;ne++)if(L=X[ne],L.getAttribute("content")===(p.content==null?null:""+p.content)&&L.getAttribute("name")===(p.name==null?null:p.name)&&L.getAttribute("property")===(p.property==null?null:p.property)&&L.getAttribute("http-equiv")===(p.httpEquiv==null?null:p.httpEquiv)&&L.getAttribute("charset")===(p.charSet==null?null:p.charSet)){X.splice(ne,1);break t}}L=M.createElement(x),Co(L,x,p),M.head.appendChild(L);break;default:throw Error(r(468,x))}L[ze]=s,Ne(L),x=L}s.stateNode=x}else DC(M,s.type,s.stateNode);else s.stateNode=OC(M,x,s.memoizedProps);else L!==x?(L===null?p.stateNode!==null&&(p=p.stateNode,p.parentNode.removeChild(p)):L.count--,x===null?DC(M,s.type,s.stateNode):OC(M,x,s.memoizedProps)):x===null&&s.stateNode!==null&&Hm(s,s.memoizedProps,p.memoizedProps)}break;case 27:Ui(c,s),ki(s),x&512&&(tr||p===null||is(p,p.return)),p!==null&&x&4&&Hm(s,s.memoizedProps,p.memoizedProps);break;case 5:if(Ui(c,s),ki(s),x&512&&(tr||p===null||is(p,p.return)),s.flags&32){M=s.stateNode;try{Tl(M,"")}catch($e){Cr(s,s.return,$e)}}x&4&&s.stateNode!=null&&(M=s.memoizedProps,Hm(s,M,p!==null?p.memoizedProps:M)),x&1024&&(qs=!0);break;case 6:if(Ui(c,s),ki(s),x&4){if(s.stateNode===null)throw Error(r(162));x=s.memoizedProps,p=s.stateNode;try{p.nodeValue=x}catch($e){Cr(s,s.return,$e)}}break;case 3:if(wd=null,M=da,da=pn(c.containerInfo),Ui(c,s),da=M,ki(s),x&4&&p!==null&&p.memoizedState.isDehydrated)try{Ep(c.containerInfo)}catch($e){Cr(s,s.return,$e)}qs&&(qs=!1,Gw(s));break;case 4:x=da,da=pn(s.stateNode.containerInfo),Ui(c,s),ki(s),da=x;break;case 12:Ui(c,s),ki(s);break;case 13:Ui(c,s),ki(s),s.child.flags&8192&&s.memoizedState!==null!=(p!==null&&p.memoizedState!==null)&&(Sy=We()),x&4&&(x=s.updateQueue,x!==null&&(s.updateQueue=null,my(s,x)));break;case 22:M=s.memoizedState!==null;var ge=p!==null&&p.memoizedState!==null,Le=as,rt=tr;if(as=Le||M,tr=rt||ge,Ui(c,s),tr=rt,as=Le,ki(s),x&8192)e:for(c=s.stateNode,c._visibility=M?c._visibility&-2:c._visibility|1,M&&(p===null||ge||as||tr||Yc(s)),p=null,c=s;;){if(c.tag===5||c.tag===26){if(p===null){ge=p=c;try{if(L=ge.stateNode,M)X=L.style,typeof X.setProperty=="function"?X.setProperty("display","none","important"):X.display="none";else{ne=ge.stateNode;var ct=ge.memoizedProps.style,He=ct!=null&&ct.hasOwnProperty("display")?ct.display:null;ne.style.display=He==null||typeof He=="boolean"?"":(""+He).trim()}}catch($e){Cr(ge,ge.return,$e)}}}else if(c.tag===6){if(p===null){ge=c;try{ge.stateNode.nodeValue=M?"":ge.memoizedProps}catch($e){Cr(ge,ge.return,$e)}}}else if((c.tag!==22&&c.tag!==23||c.memoizedState===null||c===s)&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===s)break e;for(;c.sibling===null;){if(c.return===null||c.return===s)break e;p===c&&(p=null),c=c.return}p===c&&(p=null),c.sibling.return=c.return,c=c.sibling}x&4&&(x=s.updateQueue,x!==null&&(p=x.retryQueue,p!==null&&(x.retryQueue=null,my(s,p))));break;case 19:Ui(c,s),ki(s),x&4&&(x=s.updateQueue,x!==null&&(s.updateQueue=null,my(s,x)));break;case 30:break;case 21:break;default:Ui(c,s),ki(s)}}function ki(s){var c=s.flags;if(c&2){try{for(var p,x=s.return;x!==null;){if(id(x)){p=x;break}x=x.return}if(p==null)throw Error(r(160));switch(p.tag){case 27:var M=p.stateNode,L=rp(s);op(s,L,M);break;case 5:var X=p.stateNode;p.flags&32&&(Tl(X,""),p.flags&=-33);var ne=rp(s);op(s,ne,X);break;case 3:case 4:var ge=p.stateNode.containerInfo,Le=rp(s);Um(s,Le,ge);break;default:throw Error(r(161))}}catch(rt){Cr(s,s.return,rt)}s.flags&=-3}c&4096&&(s.flags&=-4097)}function Gw(s){if(s.subtreeFlags&1024)for(s=s.child;s!==null;){var c=s;Gw(c),c.tag===5&&c.flags&1024&&c.stateNode.reset(),s=s.sibling}}function Hl(s,c){if(c.subtreeFlags&8772)for(c=c.child;c!==null;)zw(s,c.alternate,c),c=c.sibling}function Yc(s){for(s=s.child;s!==null;){var c=s;switch(c.tag){case 0:case 11:case 14:case 15:Bl(4,c,c.return),Yc(c);break;case 1:is(c,c.return);var p=c.stateNode;typeof p.componentWillUnmount=="function"&&hy(c,c.return,p),Yc(c);break;case 27:gp(c.stateNode);case 26:case 5:is(c,c.return),Yc(c);break;case 22:c.memoizedState===null&&Yc(c);break;case 30:Yc(c);break;default:Yc(c)}s=s.sibling}}function Ks(s,c,p){for(p=p&&(c.subtreeFlags&8772)!==0,c=c.child;c!==null;){var x=c.alternate,M=s,L=c,X=L.flags;switch(L.tag){case 0:case 11:case 15:Ks(M,L,p),np(4,L);break;case 1:if(Ks(M,L,p),x=L,M=x.stateNode,typeof M.componentDidMount=="function")try{M.componentDidMount()}catch(Le){Cr(x,x.return,Le)}if(x=L,M=x.updateQueue,M!==null){var ne=x.stateNode;try{var ge=M.shared.hiddenCallbacks;if(ge!==null)for(M.shared.hiddenCallbacks=null,M=0;M<ge.length;M++)cw(ge[M],ne)}catch(Le){Cr(x,x.return,Le)}}p&&X&64&&Fw(L),od(L,L.return);break;case 27:ip(L);case 26:case 5:Ks(M,L,p),p&&x===null&&X&4&&Bm(L),od(L,L.return);break;case 12:Ks(M,L,p);break;case 13:Ks(M,L,p),p&&X&4&&Uw(M,L);break;case 22:L.memoizedState===null&&Ks(M,L,p),od(L,L.return);break;case 30:break;default:Ks(M,L,p)}c=c.sibling}}function by(s,c){var p=null;s!==null&&s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(p=s.memoizedState.cachePool.pool),s=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(s=c.memoizedState.cachePool.pool),s!==p&&(s!=null&&s.refCount++,p!=null&&Rf(p))}function yy(s,c){s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&Rf(s))}function ss(s,c,p,x){if(c.subtreeFlags&10256)for(c=c.child;c!==null;)Vw(s,c,p,x),c=c.sibling}function Vw(s,c,p,x){var M=c.flags;switch(c.tag){case 0:case 11:case 15:ss(s,c,p,x),M&2048&&np(9,c);break;case 1:ss(s,c,p,x);break;case 3:ss(s,c,p,x),M&2048&&(s=null,c.alternate!==null&&(s=c.alternate.memoizedState.cache),c=c.memoizedState.cache,c!==s&&(c.refCount++,s!=null&&Rf(s)));break;case 12:if(M&2048){ss(s,c,p,x),s=c.stateNode;try{var L=c.memoizedProps,X=L.id,ne=L.onPostCommit;typeof ne=="function"&&ne(X,c.alternate===null?"mount":"update",s.passiveEffectDuration,-0)}catch(ge){Cr(c,c.return,ge)}}else ss(s,c,p,x);break;case 13:ss(s,c,p,x);break;case 23:break;case 22:L=c.stateNode,X=c.alternate,c.memoizedState!==null?L._visibility&2?ss(s,c,p,x):ap(s,c):L._visibility&2?ss(s,c,p,x):(L._visibility|=2,ad(s,c,p,x,(c.subtreeFlags&10256)!==0)),M&2048&&by(X,c);break;case 24:ss(s,c,p,x),M&2048&&yy(c.alternate,c);break;default:ss(s,c,p,x)}}function ad(s,c,p,x,M){for(M=M&&(c.subtreeFlags&10256)!==0,c=c.child;c!==null;){var L=s,X=c,ne=p,ge=x,Le=X.flags;switch(X.tag){case 0:case 11:case 15:ad(L,X,ne,ge,M),np(8,X);break;case 23:break;case 22:var rt=X.stateNode;X.memoizedState!==null?rt._visibility&2?ad(L,X,ne,ge,M):ap(L,X):(rt._visibility|=2,ad(L,X,ne,ge,M)),M&&Le&2048&&by(X.alternate,X);break;case 24:ad(L,X,ne,ge,M),M&&Le&2048&&yy(X.alternate,X);break;default:ad(L,X,ne,ge,M)}c=c.sibling}}function ap(s,c){if(c.subtreeFlags&10256)for(c=c.child;c!==null;){var p=s,x=c,M=x.flags;switch(x.tag){case 22:ap(p,x),M&2048&&by(x.alternate,x);break;case 24:ap(p,x),M&2048&&yy(x.alternate,x);break;default:ap(p,x)}c=c.sibling}}var Yo=8192;function sd(s){if(s.subtreeFlags&Yo)for(s=s.child;s!==null;)Ww(s),s=s.sibling}function Ww(s){switch(s.tag){case 26:sd(s),s.flags&Yo&&s.memoizedState!==null&&dk(da,s.memoizedState,s.memoizedProps);break;case 5:sd(s);break;case 3:case 4:var c=da;da=pn(s.stateNode.containerInfo),sd(s),da=c;break;case 22:s.memoizedState===null&&(c=s.alternate,c!==null&&c.memoizedState!==null?(c=Yo,Yo=16777216,sd(s),Yo=c):sd(s));break;default:sd(s)}}function qw(s){var c=s.alternate;if(c!==null&&(s=c.child,s!==null)){c.child=null;do c=s.sibling,s.sibling=null,s=c;while(s!==null)}}function ld(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var x=c[p];xo=x,Kw(x,s)}qw(s)}if(s.subtreeFlags&10256)for(s=s.child;s!==null;)Yw(s),s=s.sibling}function Yw(s){switch(s.tag){case 0:case 11:case 15:ld(s),s.flags&2048&&Bl(9,s,s.return);break;case 3:ld(s);break;case 12:ld(s);break;case 22:var c=s.stateNode;s.memoizedState!==null&&c._visibility&2&&(s.return===null||s.return.tag!==13)?(c._visibility&=-3,Gm(s)):ld(s);break;default:ld(s)}}function Gm(s){var c=s.deletions;if((s.flags&16)!==0){if(c!==null)for(var p=0;p<c.length;p++){var x=c[p];xo=x,Kw(x,s)}qw(s)}for(s=s.child;s!==null;){switch(c=s,c.tag){case 0:case 11:case 15:Bl(8,c,c.return),Gm(c);break;case 22:p=c.stateNode,p._visibility&2&&(p._visibility&=-3,Gm(c));break;default:Gm(c)}s=s.sibling}}function Kw(s,c){for(;xo!==null;){var p=xo;switch(p.tag){case 0:case 11:case 15:Bl(8,p,c);break;case 23:case 22:if(p.memoizedState!==null&&p.memoizedState.cachePool!==null){var x=p.memoizedState.cachePool.pool;x!=null&&x.refCount++}break;case 24:Rf(p.memoizedState.cache)}if(x=p.child,x!==null)x.return=p,xo=x;else e:for(p=s;xo!==null;){x=xo;var M=x.sibling,L=x.return;if(Bw(x),x===p){xo=null;break e}if(M!==null){M.return=L,xo=M;break e}xo=L}}}var BM={getCacheForType:function(s){var c=Qr(xr),p=c.data.get(s);return p===void 0&&(p=s(),c.data.set(s,p)),p}},vy=typeof WeakMap=="function"?WeakMap:Map,lr=0,Tr=null,On=null,Hn=0,cr=0,Gi=null,Ul=!1,cd=!1,xy=!1,Xs=0,eo=0,Gl=0,Kc=0,wy=0,fa=0,ud=0,sp=null,Pi=null,Cy=!1,Sy=0,dd=1/0,lp=null,Vl=null,jo=0,Wl=null,fd=null,pd=0,Ey=0,Ty=null,Xw=null,hd=0,My=null;function Ko(){if((lr&2)!==0&&Hn!==0)return Hn&-Hn;if(N.T!==null){var s=Ku;return s!==0?s:Zm()}return he()}function Zw(){fa===0&&(fa=(Hn&536870912)===0||Ln?pr():536870912);var s=Hi.current;return s!==null&&(s.flags|=32),fa}function Vi(s,c,p){(s===Tr&&(cr===2||cr===9)||s.cancelPendingCommit!==null)&&(md(s,0),ql(s,Hn,fa,!1)),Er(s,p),((lr&2)===0||s!==Tr)&&(s===Tr&&((lr&2)===0&&(Kc|=p),eo===4&&ql(s,Hn,fa,!1)),ls(s))}function Qw(s,c,p){if((lr&6)!==0)throw Error(r(327));var x=!p&&(c&124)===0&&(c&s.expiredLanes)===0||Nt(s,c),M=x?GM(s,c):Iy(s,c,!0),L=x;do{if(M===0){cd&&!x&&ql(s,c,0,!1);break}else{if(p=s.current.alternate,L&&!HM(p)){M=Iy(s,c,!1),L=!1;continue}if(M===2){if(L=c,s.errorRecoveryDisabledLanes&L)var X=0;else X=s.pendingLanes&-536870913,X=X!==0?X:X&536870912?536870912:0;if(X!==0){c=X;e:{var ne=s;M=sp;var ge=ne.current.memoizedState.isDehydrated;if(ge&&(md(ne,X).flags|=256),X=Iy(ne,X,!1),X!==2){if(xy&&!ge){ne.errorRecoveryDisabledLanes|=L,Kc|=L,M=4;break e}L=Pi,Pi=M,L!==null&&(Pi===null?Pi=L:Pi.push.apply(Pi,L))}M=X}if(L=!1,M!==2)continue}}if(M===1){md(s,0),ql(s,c,0,!0);break}e:{switch(x=s,L=M,L){case 0:case 1:throw Error(r(345));case 4:if((c&4194048)!==c)break;case 6:ql(x,c,fa,!Ul);break e;case 2:Pi=null;break;case 3:case 5:break;default:throw Error(r(329))}if((c&62914560)===c&&(M=Sy+300-We(),10<M)){if(ql(x,c,fa,!Ul),Ct(x,0,!0)!==0)break e;x.timeoutHandle=CC(Jw.bind(null,x,p,Pi,lp,Cy,c,fa,Kc,ud,Ul,L,2,-0,0),M);break e}Jw(x,p,Pi,lp,Cy,c,fa,Kc,ud,Ul,L,0,-0,0)}}break}while(!0);ls(s)}function Jw(s,c,p,x,M,L,X,ne,ge,Le,rt,ct,He,$e){if(s.timeoutHandle=-1,ct=c.subtreeFlags,(ct&8192||(ct&16785408)===16785408)&&(Ro={stylesheets:null,count:0,unsuspend:uk},Ww(c),ct=fk(),ct!==null)){s.cancelPendingCommit=ct(cp.bind(null,s,c,L,p,x,M,X,ne,ge,rt,1,He,$e)),ql(s,L,X,!Le);return}cp(s,c,L,p,x,M,X,ne,ge)}function HM(s){for(var c=s;;){var p=c.tag;if((p===0||p===11||p===15)&&c.flags&16384&&(p=c.updateQueue,p!==null&&(p=p.stores,p!==null)))for(var x=0;x<p.length;x++){var M=p[x],L=M.getSnapshot;M=M.value;try{if(!Fi(L(),M))return!1}catch{return!1}}if(p=c.child,c.subtreeFlags&16384&&p!==null)p.return=c,c=p;else{if(c===s)break;for(;c.sibling===null;){if(c.return===null||c.return===s)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function ql(s,c,p,x){c&=~wy,c&=~Kc,s.suspendedLanes|=c,s.pingedLanes&=~c,x&&(s.warmLanes|=c),x=s.expirationTimes;for(var M=c;0<M;){var L=31-ot(M),X=1<<L;x[L]=-1,M&=~X}p!==0&&Vr(s,p,c)}function Vm(){return(lr&6)===0?(fp(0),!1):!0}function ky(){if(On!==null){if(cr===0)var s=On.return;else s=On,te=Dl=null,gm(s),vo=null,Ti=0,s=On;for(;s!==null;)jw(s.alternate,s),s=s.return;On=null}}function md(s,c){var p=s.timeoutHandle;p!==-1&&(s.timeoutHandle=-1,tk(p)),p=s.cancelPendingCommit,p!==null&&(s.cancelPendingCommit=null,p()),ky(),Tr=s,On=p=ai(s.current,null),Hn=c,cr=0,Gi=null,Ul=!1,cd=Nt(s,c),xy=!1,ud=fa=wy=Kc=Gl=eo=0,Pi=sp=null,Cy=!1,(c&8)!==0&&(c|=c&32);var x=s.entangledLanes;if(x!==0)for(s=s.entanglements,x&=c;0<x;){var M=31-ot(x),L=1<<M;c|=s[M],x&=~L}return Xs=c,Pc(),p}function eC(s,c){Sn=null,N.H=Wf,c===si||c===pm?(c=sw(),cr=3):c===iw?(c=sw(),cr=4):cr=c===Rw?8:c!==null&&typeof c=="object"&&typeof c.then=="function"?6:1,Gi=c,On===null&&(eo=1,Zf(s,ii(c,s.current)))}function tC(){var s=N.H;return N.H=Wf,s===null?Wf:s}function nC(){var s=N.A;return N.A=BM,s}function Py(){eo=4,Ul||(Hn&4194048)!==Hn&&Hi.current!==null||(cd=!0),(Gl&134217727)===0&&(Kc&134217727)===0||Tr===null||ql(Tr,Hn,fa,!1)}function Iy(s,c,p){var x=lr;lr|=2;var M=tC(),L=nC();(Tr!==s||Hn!==c)&&(lp=null,md(s,c)),c=!1;var X=eo;e:do try{if(cr!==0&&On!==null){var ne=On,ge=Gi;switch(cr){case 8:ky(),X=6;break e;case 3:case 2:case 9:case 6:Hi.current===null&&(c=!0);var Le=cr;if(cr=0,Gi=null,gd(s,ne,ge,Le),p&&cd){X=0;break e}break;default:Le=cr,cr=0,Gi=null,gd(s,ne,ge,Le)}}UM(),X=eo;break}catch(rt){eC(s,rt)}while(!0);return c&&s.shellSuspendCounter++,te=Dl=null,lr=x,N.H=M,N.A=L,On===null&&(Tr=null,Hn=0,Pc()),X}function UM(){for(;On!==null;)Ay(On)}function GM(s,c){var p=lr;lr|=2;var x=tC(),M=nC();Tr!==s||Hn!==c?(lp=null,dd=We()+500,md(s,c)):cd=Nt(s,c);e:do try{if(cr!==0&&On!==null){c=On;var L=Gi;t:switch(cr){case 1:cr=0,Gi=null,gd(s,c,L,1);break;case 2:case 9:if(aw(L)){cr=0,Gi=null,oC(c);break}c=function(){cr!==2&&cr!==9||Tr!==s||(cr=7),ls(s)},L.then(c,c);break e;case 3:cr=7;break e;case 4:cr=5;break e;case 7:aw(L)?(cr=0,Gi=null,oC(c)):(cr=0,Gi=null,gd(s,c,L,7));break;case 5:var X=null;switch(On.tag){case 26:X=On.memoizedState;case 5:case 27:var ne=On;if(!X||So(X)){cr=0,Gi=null;var ge=ne.sibling;if(ge!==null)On=ge;else{var Le=ne.return;Le!==null?(On=Le,Wm(Le)):On=null}break t}}cr=0,Gi=null,gd(s,c,L,5);break;case 6:cr=0,Gi=null,gd(s,c,L,6);break;case 8:ky(),eo=6;break e;default:throw Error(r(462))}}rC();break}catch(rt){eC(s,rt)}while(!0);return te=Dl=null,N.H=x,N.A=M,lr=p,On!==null?0:(Tr=null,Hn=0,Pc(),eo)}function rC(){for(;On!==null&&!Fe();)Ay(On)}function Ay(s){var c=Fm(s.alternate,s,Xs);s.memoizedProps=s.pendingProps,c===null?Wm(s):On=c}function oC(s){var c=s,p=c.alternate;switch(c.tag){case 15:case 0:c=$m(p,c,c.pendingProps,c.type,void 0,Hn);break;case 11:c=$m(p,c,c.pendingProps,c.type.render,c.ref,Hn);break;case 5:gm(c);default:jw(p,c),c=On=Tf(c,Xs),c=Fm(p,c,Xs)}s.memoizedProps=s.pendingProps,c===null?Wm(s):On=c}function gd(s,c,p,x){te=Dl=null,gm(c),vo=null,Ti=0;var M=c.return;try{if(Aw(s,M,c,p,Hn)){eo=1,Zf(s,ii(p,s.current)),On=null;return}}catch(L){if(M!==null)throw On=M,L;eo=1,Zf(s,ii(p,s.current)),On=null;return}c.flags&32768?(Ln||x===1?s=!0:cd||(Hn&536870912)!==0?s=!1:(Ul=s=!0,(x===2||x===9||x===3||x===6)&&(x=Hi.current,x!==null&&x.tag===13&&(x.flags|=16384))),iC(c,s)):Wm(c)}function Wm(s){var c=s;do{if((c.flags&32768)!==0){iC(c,Ul);return}s=c.return;var p=Lw(c.alternate,c,Xs);if(p!==null){On=p;return}if(c=c.sibling,c!==null){On=c;return}On=c=s}while(c!==null);eo===0&&(eo=5)}function iC(s,c){do{var p=$w(s.alternate,s);if(p!==null){p.flags&=32767,On=p;return}if(p=s.return,p!==null&&(p.flags|=32768,p.subtreeFlags=0,p.deletions=null),!c&&(s=s.sibling,s!==null)){On=s;return}On=s=p}while(s!==null);eo=6,On=null}function cp(s,c,p,x,M,L,X,ne,ge){s.cancelPendingCommit=null;do qm();while(jo!==0);if((lr&6)!==0)throw Error(r(327));if(c!==null){if(c===s.current)throw Error(r(177));if(L=c.lanes|c.childLanes,L|=Ob,Xr(s,p,L,X,ne,ge),s===Tr&&(On=Tr=null,Hn=0),fd=c,Wl=s,pd=p,Ey=L,Ty=M,Xw=x,(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?(s.callbackNode=null,s.callbackPriority=0,pC(dt,function(){return uC(),null})):(s.callbackNode=null,s.callbackPriority=0),x=(c.flags&13878)!==0,(c.subtreeFlags&13878)!==0||x){x=N.T,N.T=null,M=H.p,H.p=2,X=lr,lr|=4;try{NM(s,c,p)}finally{lr=X,H.p=M,N.T=x}}jo=1,aC(),sC(),lC()}}function aC(){if(jo===1){jo=0;var s=Wl,c=fd,p=(c.flags&13878)!==0;if((c.subtreeFlags&13878)!==0||p){p=N.T,N.T=null;var x=H.p;H.p=2;var M=lr;lr|=4;try{gy(c,s);var L=eg,X=X1(s.containerInfo),ne=L.focusedElem,ge=L.selectionRange;if(X!==ne&&ne&&ne.ownerDocument&&K1(ne.ownerDocument.documentElement,ne)){if(ge!==null&&Ab(ne)){var Le=ge.start,rt=ge.end;if(rt===void 0&&(rt=Le),"selectionStart"in ne)ne.selectionStart=Le,ne.selectionEnd=Math.min(rt,ne.value.length);else{var ct=ne.ownerDocument||document,He=ct&&ct.defaultView||window;if(He.getSelection){var $e=He.getSelection(),tn=ne.textContent.length,en=Math.min(ge.start,tn),br=ge.end===void 0?en:Math.min(ge.end,tn);!$e.extend&&en>br&&(X=br,br=en,en=X);var Ie=Ib(ne,en),Ee=Ib(ne,br);if(Ie&&Ee&&($e.rangeCount!==1||$e.anchorNode!==Ie.node||$e.anchorOffset!==Ie.offset||$e.focusNode!==Ee.node||$e.focusOffset!==Ee.offset)){var Re=ct.createRange();Re.setStart(Ie.node,Ie.offset),$e.removeAllRanges(),en>br?($e.addRange(Re),$e.extend(Ee.node,Ee.offset)):(Re.setEnd(Ee.node,Ee.offset),$e.addRange(Re))}}}}for(ct=[],$e=ne;$e=$e.parentNode;)$e.nodeType===1&&ct.push({element:$e,left:$e.scrollLeft,top:$e.scrollTop});for(typeof ne.focus=="function"&&ne.focus(),ne=0;ne<ct.length;ne++){var at=ct[ne];at.element.scrollLeft=at.left,at.element.scrollTop=at.top}}sg=!!Da,eg=Da=null}finally{lr=M,H.p=x,N.T=p}}s.current=c,jo=2}}function sC(){if(jo===2){jo=0;var s=Wl,c=fd,p=(c.flags&8772)!==0;if((c.subtreeFlags&8772)!==0||p){p=N.T,N.T=null;var x=H.p;H.p=2;var M=lr;lr|=4;try{zw(s,c.alternate,c)}finally{lr=M,H.p=x,N.T=p}}jo=3}}function lC(){if(jo===4||jo===3){jo=0,Ze();var s=Wl,c=fd,p=pd,x=Xw;(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0?jo=5:(jo=0,fd=Wl=null,cC(s,s.pendingLanes));var M=s.pendingLanes;if(M===0&&(Vl=null),Kt(p),c=c.stateNode,Ke&&typeof Ke.onCommitFiberRoot=="function")try{Ke.onCommitFiberRoot(qe,c,void 0,(c.current.flags&128)===128)}catch{}if(x!==null){c=N.T,M=H.p,H.p=2,N.T=null;try{for(var L=s.onRecoverableError,X=0;X<x.length;X++){var ne=x[X];L(ne.value,{componentStack:ne.stack})}}finally{N.T=c,H.p=M}}(pd&3)!==0&&qm(),ls(s),M=s.pendingLanes,(p&4194090)!==0&&(M&42)!==0?s===My?hd++:(hd=0,My=s):hd=0,fp(0)}}function cC(s,c){(s.pooledCacheLanes&=c)===0&&(c=s.pooledCache,c!=null&&(s.pooledCache=null,Rf(c)))}function qm(s){return aC(),sC(),lC(),uC()}function uC(){if(jo!==5)return!1;var s=Wl,c=Ey;Ey=0;var p=Kt(pd),x=N.T,M=H.p;try{H.p=32>p?32:p,N.T=null,p=Ty,Ty=null;var L=Wl,X=pd;if(jo=0,fd=Wl=null,pd=0,(lr&6)!==0)throw Error(r(331));var ne=lr;if(lr|=4,Yw(L.current),Vw(L,L.current,X,p),lr=ne,fp(0,!1),Ke&&typeof Ke.onPostCommitFiberRoot=="function")try{Ke.onPostCommitFiberRoot(qe,L)}catch{}return!0}finally{H.p=M,N.T=x,cC(s,c)}}function dC(s,c,p){c=ii(p,c),c=Om(s.stateNode,c,2),s=zs(s,c,2),s!==null&&(Er(s,2),ls(s))}function Cr(s,c,p){if(s.tag===3)dC(s,s,p);else for(;c!==null;){if(c.tag===3){dC(c,s,p);break}else if(c.tag===1){var x=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof x.componentDidCatch=="function"&&(Vl===null||!Vl.has(x))){s=ii(p,s),p=cy(2),x=zs(c,p,2),x!==null&&(Iw(p,x,c,s),Er(x,2),ls(x));break}}c=c.return}}function Ry(s,c,p){var x=s.pingCache;if(x===null){x=s.pingCache=new vy;var M=new Set;x.set(c,M)}else M=x.get(c),M===void 0&&(M=new Set,x.set(c,M));M.has(p)||(xy=!0,M.add(p),s=VM.bind(null,s,c,p),c.then(s,s))}function VM(s,c,p){var x=s.pingCache;x!==null&&x.delete(c),s.pingedLanes|=s.suspendedLanes&p,s.warmLanes&=~p,Tr===s&&(Hn&p)===p&&(eo===4||eo===3&&(Hn&62914560)===Hn&&300>We()-Sy?(lr&2)===0&&md(s,0):wy|=p,ud===Hn&&(ud=0)),ls(s)}function fC(s,c){c===0&&(c=Go()),s=Ic(s,c),s!==null&&(Er(s,c),ls(s))}function Ym(s){var c=s.memoizedState,p=0;c!==null&&(p=c.retryLane),fC(s,p)}function WM(s,c){var p=0;switch(s.tag){case 13:var x=s.stateNode,M=s.memoizedState;M!==null&&(p=M.retryLane);break;case 19:x=s.stateNode;break;case 22:x=s.stateNode._retryCache;break;default:throw Error(r(314))}x!==null&&x.delete(c),fC(s,p)}function pC(s,c){return me(s,c)}var up=null,Yl=null,Km=!1,dp=!1,Xm=!1,Kl=0;function ls(s){s!==Yl&&s.next===null&&(Yl===null?up=Yl=s:Yl=Yl.next=s),dp=!0,Km||(Km=!0,Oy())}function fp(s,c){if(!Xm&&dp){Xm=!0;do for(var p=!1,x=up;x!==null;){if(s!==0){var M=x.pendingLanes;if(M===0)var L=0;else{var X=x.suspendedLanes,ne=x.pingedLanes;L=(1<<31-ot(42|s)+1)-1,L&=M&~(X&~ne),L=L&201326741?L&201326741|1:L?L|2:0}L!==0&&(p=!0,mC(x,L))}else L=Hn,L=Ct(x,x===Tr?L:0,x.cancelPendingCommit!==null||x.timeoutHandle!==-1),(L&3)===0||Nt(x,L)||(p=!0,mC(x,L));x=x.next}while(p);Xm=!1}}function qM(){pp()}function pp(){dp=Km=!1;var s=0;Kl!==0&&(ek()&&(s=Kl),Kl=0);for(var c=We(),p=null,x=up;x!==null;){var M=x.next,L=hp(x,c);L===0?(x.next=null,p===null?up=M:p.next=M,M===null&&(Yl=p)):(p=x,(s!==0||(L&3)!==0)&&(dp=!0)),x=M}fp(s)}function hp(s,c){for(var p=s.suspendedLanes,x=s.pingedLanes,M=s.expirationTimes,L=s.pendingLanes&-62914561;0<L;){var X=31-ot(L),ne=1<<X,ge=M[X];ge===-1?((ne&p)===0||(ne&x)!==0)&&(M[X]=Yn(ne,c)):ge<=c&&(s.expiredLanes|=ne),L&=~ne}if(c=Tr,p=Hn,p=Ct(s,s===c?p:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),x=s.callbackNode,p===0||s===c&&(cr===2||cr===9)||s.cancelPendingCommit!==null)return x!==null&&x!==null&&be(x),s.callbackNode=null,s.callbackPriority=0;if((p&3)===0||Nt(s,p)){if(c=p&-p,c===s.callbackPriority)return c;switch(x!==null&&be(x),Kt(p)){case 2:case 8:p=nt;break;case 32:p=dt;break;case 268435456:p=De;break;default:p=dt}return x=hC.bind(null,s),p=me(p,x),s.callbackPriority=c,s.callbackNode=p,c}return x!==null&&x!==null&&be(x),s.callbackPriority=2,s.callbackNode=null,2}function hC(s,c){if(jo!==0&&jo!==5)return s.callbackNode=null,s.callbackPriority=0,null;var p=s.callbackNode;if(qm()&&s.callbackNode!==p)return null;var x=Hn;return x=Ct(s,s===Tr?x:0,s.cancelPendingCommit!==null||s.timeoutHandle!==-1),x===0?null:(Qw(s,x,c),hp(s,We()),s.callbackNode!=null&&s.callbackNode===p?hC.bind(null,s):null)}function mC(s,c){if(qm())return null;Qw(s,c,!0)}function Oy(){nk(function(){(lr&6)!==0?me(ft,qM):pp()})}function Zm(){return Kl===0&&(Kl=pr()),Kl}function gC(s){return s==null||typeof s=="symbol"||typeof s=="boolean"?null:typeof s=="function"?s:gf(""+s)}function bC(s,c){var p=c.ownerDocument.createElement("input");return p.name=c.name,p.value=c.value,s.id&&p.setAttribute("form",s.id),c.parentNode.insertBefore(p,c),s=new FormData(s),p.parentNode.removeChild(p),s}function YM(s,c,p,x,M){if(c==="submit"&&p&&p.stateNode===M){var L=gC((M[Qe]||null).action),X=x.submitter;X&&(c=(c=X[Qe]||null)?gC(c.formAction):X.getAttribute("formAction"),c!==null&&(L=c,X=null));var ne=new qh("action","action",null,x,M);s.push({event:ne,listeners:[{instance:null,listener:function(){if(x.defaultPrevented){if(Kl!==0){var ge=X?bC(M,X):new FormData(M);Gf(p,{pending:!0,data:ge,method:M.method,action:L},null,ge)}}else typeof L=="function"&&(ne.preventDefault(),ge=X?bC(M,X):new FormData(M),Gf(p,{pending:!0,data:ge,method:M.method,action:L},L,ge))},currentTarget:M}]})}}for(var _y=0;_y<Xn.length;_y++){var Dy=Xn[_y],KM=Dy.toLowerCase(),XM=Dy[0].toUpperCase()+Dy.slice(1);ka(KM,"on"+XM)}ka(im,"onAnimationEnd"),ka(Z1,"onAnimationIteration"),ka(Ni,"onAnimationStart"),ka("dblclick","onDoubleClick"),ka("focusin","onFocus"),ka("focusout","onBlur"),ka(am,"onTransitionRun"),ka(OM,"onTransitionStart"),ka(Gu,"onTransitionCancel"),ka(wf,"onTransitionEnd"),Ft("onMouseEnter",["mouseout","mouseover"]),Ft("onMouseLeave",["mouseout","mouseover"]),Ft("onPointerEnter",["pointerout","pointerover"]),Ft("onPointerLeave",["pointerout","pointerover"]),Zt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Zt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Zt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Zt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Zt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Zt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var mp="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(" "),ZM=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(mp));function yC(s,c){c=(c&4)!==0;for(var p=0;p<s.length;p++){var x=s[p],M=x.event;x=x.listeners;e:{var L=void 0;if(c)for(var X=x.length-1;0<=X;X--){var ne=x[X],ge=ne.instance,Le=ne.currentTarget;if(ne=ne.listener,ge!==L&&M.isPropagationStopped())break e;L=ne,M.currentTarget=Le;try{L(M)}catch(rt){Wc(rt)}M.currentTarget=null,L=ge}else for(X=0;X<x.length;X++){if(ne=x[X],ge=ne.instance,Le=ne.currentTarget,ne=ne.listener,ge!==L&&M.isPropagationStopped())break e;L=ne,M.currentTarget=Le;try{L(M)}catch(rt){Wc(rt)}M.currentTarget=null,L=ge}}}}function _n(s,c){var p=c[_t];p===void 0&&(p=c[_t]=new Set);var x=s+"__bubble";p.has(x)||(vC(c,s,2,!1),p.add(x))}function Ly(s,c,p){var x=0;c&&(x|=4),vC(p,s,x,c)}var Ii="_reactListening"+Math.random().toString(36).slice(2);function $y(s){if(!s[Ii]){s[Ii]=!0,je.forEach(function(p){p!=="selectionchange"&&(ZM.has(p)||Ly(p,!1,s),Ly(p,!0,s))});var c=s.nodeType===9?s:s.ownerDocument;c===null||c[Ii]||(c[Ii]=!0,Ly("selectionchange",!1,c))}}function vC(s,c,p,x){switch(FC(c)){case 2:var M=mk;break;case 8:M=Sd;break;default:M=Wy}p=M.bind(null,c,p,s),M=void 0,!yf||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(M=!0),x?M!==void 0?s.addEventListener(c,p,{capture:!0,passive:M}):s.addEventListener(c,p,!0):M!==void 0?s.addEventListener(c,p,{passive:M}):s.addEventListener(c,p,!1)}function Zs(s,c,p,x,M){var L=x;if((c&1)===0&&(c&2)===0&&x!==null)e:for(;;){if(x===null)return;var X=x.tag;if(X===3||X===4){var ne=x.stateNode.containerInfo;if(ne===M)break;if(X===4)for(X=x.return;X!==null;){var ge=X.tag;if((ge===3||ge===4)&&X.stateNode.containerInfo===M)return;X=X.return}for(;ne!==null;){if(X=Lt(ne),X===null)return;if(ge=X.tag,ge===5||ge===6||ge===26||ge===27){x=L=X;continue e}ne=ne.parentNode}}x=x.return}A1(function(){var Le=L,rt=bb(p),ct=[];e:{var He=Cf.get(s);if(He!==void 0){var $e=qh,tn=s;switch(s){case"keypress":if(mr(p)===0)break e;case"keydown":case"keyup":$e=Sb;break;case"focusin":tn="focus",$e=Kh;break;case"focusout":tn="blur",$e=Kh;break;case"beforeblur":case"afterblur":$e=Kh;break;case"click":if(p.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":$e=kl;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":$e=Cb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":$e=SM;break;case im:case Z1:case Ni:$e=L1;break;case wf:$e=EM;break;case"scroll":case"scrollend":$e=xM;break;case"wheel":$e=MM;break;case"copy":case"cut":case"paste":$e=j1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":$e=$s;break;case"toggle":case"beforetoggle":$e=Zh}var en=(c&4)!==0,br=!en&&(s==="scroll"||s==="scrollend"),Ie=en?He!==null?He+"Capture":null:He;en=[];for(var Ee=Le,Re;Ee!==null;){var at=Ee;if(Re=at.stateNode,at=at.tag,at!==5&&at!==26&&at!==27||Re===null||Ie===null||(at=bf(Ee,Ie),at!=null&&en.push(ln(Ee,at,Re))),br)break;Ee=Ee.return}0<en.length&&(He=new $e(He,tn,null,p,rt),ct.push({event:He,listeners:en}))}}if((c&7)===0){e:{if(He=s==="mouseover"||s==="pointerover",$e=s==="mouseout"||s==="pointerout",He&&p!==Vh&&(tn=p.relatedTarget||p.fromElement)&&(Lt(tn)||tn[bt]))break e;if(($e||He)&&(He=rt.window===rt?rt:(He=rt.ownerDocument)?He.defaultView||He.parentWindow:window,$e?(tn=p.relatedTarget||p.toElement,$e=Le,tn=tn?Lt(tn):null,tn!==null&&(br=i(tn),en=tn.tag,tn!==br||en!==5&&en!==27&&en!==6)&&(tn=null)):($e=null,tn=Le),$e!==tn)){if(en=kl,at="onMouseLeave",Ie="onMouseEnter",Ee="mouse",(s==="pointerout"||s==="pointerover")&&(en=$s,at="onPointerLeave",Ie="onPointerEnter",Ee="pointer"),br=$e==null?He:Kn($e),Re=tn==null?He:Kn(tn),He=new en(at,Ee+"leave",$e,p,rt),He.target=br,He.relatedTarget=Re,at=null,Lt(rt)===Le&&(en=new en(Ie,Ee+"enter",tn,p,rt),en.target=Re,en.relatedTarget=br,at=en),br=at,$e&&tn)t:{for(en=$e,Ie=tn,Ee=0,Re=en;Re;Re=wo(Re))Ee++;for(Re=0,at=Ie;at;at=wo(at))Re++;for(;0<Ee-Re;)en=wo(en),Ee--;for(;0<Re-Ee;)Ie=wo(Ie),Re--;for(;Ee--;){if(en===Ie||Ie!==null&&en===Ie.alternate)break t;en=wo(en),Ie=wo(Ie)}en=null}else en=null;$e!==null&&to(ct,He,$e,en,!1),tn!==null&&br!==null&&to(ct,br,tn,en,!0)}}e:{if(He=Le?Kn(Le):window,$e=He.nodeName&&He.nodeName.toLowerCase(),$e==="select"||$e==="input"&&He.type==="file")var $t=G1;else if(tm(He))if(V1)$t=IM;else{$t=Al;var In=Y1}else $e=He.nodeName,!$e||$e.toLowerCase()!=="input"||He.type!=="checkbox"&&He.type!=="radio"?Le&&gb(Le.elementType)&&($t=G1):$t=om;if($t&&($t=$t(s,Le))){zu(ct,$t,p,rt);break e}In&&In(s,He,Le),s==="focusout"&&Le&&He.type==="number"&&Le.memoizedProps.value!=null&&mf(He,"number",He.value)}switch(In=Le?Kn(Le):window,s){case"focusin":(tm(In)||In.contentEditable==="true")&&(Uu=In,Rl=Le,Me=null);break;case"focusout":Me=Rl=Uu=null;break;case"mousedown":Je=!0;break;case"contextmenu":case"mouseup":case"dragend":Je=!1,Ge(ct,p,rt);break;case"selectionchange":if(RM)break;case"keydown":case"keyup":Ge(ct,p,rt)}var Yt;if(Mb)e:{switch(s){case"compositionstart":var nn="onCompositionStart";break e;case"compositionend":nn="onCompositionEnd";break e;case"compositionupdate":nn="onCompositionUpdate";break e}nn=void 0}else Pl?H1(s,p)&&(nn="onCompositionEnd"):s==="keydown"&&p.keyCode===229&&(nn="onCompositionStart");nn&&(Qh&&p.locale!=="ko"&&(Pl||nn!=="onCompositionStart"?nn==="onCompositionEnd"&&Pl&&(Yt=R1()):(Ml=rt,xb="value"in Ml?Ml.value:Ml.textContent,Pl=!0)),In=Qm(Le,nn),0<In.length&&(nn=new yi(nn,s,null,p,rt),ct.push({event:nn,listeners:In}),Yt?nn.data=Yt:(Yt=em(p),Yt!==null&&(nn.data=Yt)))),(Yt=B1?kM(s,p):U1(s,p))&&(nn=Qm(Le,"onBeforeInput"),0<nn.length&&(In=new yi("onBeforeInput","beforeinput",null,p,rt),ct.push({event:In,listeners:nn}),In.data=Yt)),YM(ct,s,Le,p,rt)}yC(ct,c)})}function ln(s,c,p){return{instance:s,listener:c,currentTarget:p}}function Qm(s,c){for(var p=c+"Capture",x=[];s!==null;){var M=s,L=M.stateNode;if(M=M.tag,M!==5&&M!==26&&M!==27||L===null||(M=bf(s,p),M!=null&&x.unshift(ln(s,M,L)),M=bf(s,c),M!=null&&x.push(ln(s,M,L))),s.tag===3)return x;s=s.return}return[]}function wo(s){if(s===null)return null;do s=s.return;while(s&&s.tag!==5&&s.tag!==27);return s||null}function to(s,c,p,x,M){for(var L=c._reactName,X=[];p!==null&&p!==x;){var ne=p,ge=ne.alternate,Le=ne.stateNode;if(ne=ne.tag,ge!==null&&ge===x)break;ne!==5&&ne!==26&&ne!==27||Le===null||(ge=Le,M?(Le=bf(p,L),Le!=null&&X.unshift(ln(p,Le,ge))):M||(Le=bf(p,L),Le!=null&&X.push(ln(p,Le,ge)))),p=p.return}X.length!==0&&s.push({event:c,listeners:X})}var QM=/\r\n?/g,Xl=/\u0000|\uFFFD/g;function xC(s){return(typeof s=="string"?s:""+s).replace(QM,`
`).replace(Xl,"")}function wC(s,c){return c=xC(c),xC(s)===c}function Jm(){}function gr(s,c,p,x,M,L){switch(p){case"children":typeof x=="string"?c==="body"||c==="textarea"&&x===""||Tl(s,x):(typeof x=="number"||typeof x=="bigint")&&c!=="body"&&Tl(s,""+x);break;case"className":Ji(s,"class",x);break;case"tabIndex":Ji(s,"tabindex",x);break;case"dir":case"role":case"viewBox":case"width":case"height":Ji(s,p,x);break;case"style":mb(s,x,L);break;case"data":if(c!=="object"){Ji(s,"data",x);break}case"src":case"href":if(x===""&&(c!=="a"||p!=="href")){s.removeAttribute(p);break}if(x==null||typeof x=="function"||typeof x=="symbol"||typeof x=="boolean"){s.removeAttribute(p);break}x=gf(""+x),s.setAttribute(p,x);break;case"action":case"formAction":if(typeof x=="function"){s.setAttribute(p,"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"&&(p==="formAction"?(c!=="input"&&gr(s,c,"name",M.name,M,null),gr(s,c,"formEncType",M.formEncType,M,null),gr(s,c,"formMethod",M.formMethod,M,null),gr(s,c,"formTarget",M.formTarget,M,null)):(gr(s,c,"encType",M.encType,M,null),gr(s,c,"method",M.method,M,null),gr(s,c,"target",M.target,M,null)));if(x==null||typeof x=="symbol"||typeof x=="boolean"){s.removeAttribute(p);break}x=gf(""+x),s.setAttribute(p,x);break;case"onClick":x!=null&&(s.onclick=Jm);break;case"onScroll":x!=null&&_n("scroll",s);break;case"onScrollEnd":x!=null&&_n("scrollend",s);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(M.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"multiple":s.multiple=x&&typeof x!="function"&&typeof x!="symbol";break;case"muted":s.muted=x&&typeof x!="function"&&typeof x!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(x==null||typeof x=="function"||typeof x=="boolean"||typeof x=="symbol"){s.removeAttribute("xlink:href");break}p=gf(""+x),s.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",p);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":x!=null&&typeof x!="function"&&typeof x!="symbol"?s.setAttribute(p,""+x):s.removeAttribute(p);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":x&&typeof x!="function"&&typeof x!="symbol"?s.setAttribute(p,""):s.removeAttribute(p);break;case"capture":case"download":x===!0?s.setAttribute(p,""):x!==!1&&x!=null&&typeof x!="function"&&typeof x!="symbol"?s.setAttribute(p,x):s.removeAttribute(p);break;case"cols":case"rows":case"size":case"span":x!=null&&typeof x!="function"&&typeof x!="symbol"&&!isNaN(x)&&1<=x?s.setAttribute(p,x):s.removeAttribute(p);break;case"rowSpan":case"start":x==null||typeof x=="function"||typeof x=="symbol"||isNaN(x)?s.removeAttribute(p):s.setAttribute(p,x);break;case"popover":_n("beforetoggle",s),_n("toggle",s),gi(s,"popover",x);break;case"xlinkActuate":fn(s,"http://www.w3.org/1999/xlink","xlink:actuate",x);break;case"xlinkArcrole":fn(s,"http://www.w3.org/1999/xlink","xlink:arcrole",x);break;case"xlinkRole":fn(s,"http://www.w3.org/1999/xlink","xlink:role",x);break;case"xlinkShow":fn(s,"http://www.w3.org/1999/xlink","xlink:show",x);break;case"xlinkTitle":fn(s,"http://www.w3.org/1999/xlink","xlink:title",x);break;case"xlinkType":fn(s,"http://www.w3.org/1999/xlink","xlink:type",x);break;case"xmlBase":fn(s,"http://www.w3.org/XML/1998/namespace","xml:base",x);break;case"xmlLang":fn(s,"http://www.w3.org/XML/1998/namespace","xml:lang",x);break;case"xmlSpace":fn(s,"http://www.w3.org/XML/1998/namespace","xml:space",x);break;case"is":gi(s,"is",x);break;case"innerText":case"textContent":break;default:(!(2<p.length)||p[0]!=="o"&&p[0]!=="O"||p[1]!=="n"&&p[1]!=="N")&&(p=P1.get(p)||p,gi(s,p,x))}}function jy(s,c,p,x,M,L){switch(p){case"style":mb(s,x,L);break;case"dangerouslySetInnerHTML":if(x!=null){if(typeof x!="object"||!("__html"in x))throw Error(r(61));if(p=x.__html,p!=null){if(M.children!=null)throw Error(r(60));s.innerHTML=p}}break;case"children":typeof x=="string"?Tl(s,x):(typeof x=="number"||typeof x=="bigint")&&Tl(s,""+x);break;case"onScroll":x!=null&&_n("scroll",s);break;case"onScrollEnd":x!=null&&_n("scrollend",s);break;case"onClick":x!=null&&(s.onclick=Jm);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Tt.hasOwnProperty(p))e:{if(p[0]==="o"&&p[1]==="n"&&(M=p.endsWith("Capture"),c=p.slice(2,M?p.length-7:void 0),L=s[Qe]||null,L=L!=null?L[p]:null,typeof L=="function"&&s.removeEventListener(c,L,M),typeof x=="function")){typeof L!="function"&&L!==null&&(p in s?s[p]=null:s.hasAttribute(p)&&s.removeAttribute(p)),s.addEventListener(c,x,M);break e}p in s?s[p]=x:x===!0?s.setAttribute(p,""):gi(s,p,x)}}}function Co(s,c,p){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":_n("error",s),_n("load",s);var x=!1,M=!1,L;for(L in p)if(p.hasOwnProperty(L)){var X=p[L];if(X!=null)switch(L){case"src":x=!0;break;case"srcSet":M=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:gr(s,c,L,X,p,null)}}M&&gr(s,c,"srcSet",p.srcSet,p,null),x&&gr(s,c,"src",p.src,p,null);return;case"input":_n("invalid",s);var ne=L=X=M=null,ge=null,Le=null;for(x in p)if(p.hasOwnProperty(x)){var rt=p[x];if(rt!=null)switch(x){case"name":M=rt;break;case"type":X=rt;break;case"checked":ge=rt;break;case"defaultChecked":Le=rt;break;case"value":L=rt;break;case"defaultValue":ne=rt;break;case"children":case"dangerouslySetInnerHTML":if(rt!=null)throw Error(r(137,c));break;default:gr(s,c,x,rt,p,null)}}fb(s,L,ne,ge,Le,X,M,!1),Hh(s);return;case"select":_n("invalid",s),x=X=L=null;for(M in p)if(p.hasOwnProperty(M)&&(ne=p[M],ne!=null))switch(M){case"value":L=ne;break;case"defaultValue":X=ne;break;case"multiple":x=ne;default:gr(s,c,M,ne,p,null)}c=L,p=X,s.multiple=!!x,c!=null?_u(s,!!x,c,!1):p!=null&&_u(s,!!x,p,!0);return;case"textarea":_n("invalid",s),L=M=x=null;for(X in p)if(p.hasOwnProperty(X)&&(ne=p[X],ne!=null))switch(X){case"value":x=ne;break;case"defaultValue":M=ne;break;case"children":L=ne;break;case"dangerouslySetInnerHTML":if(ne!=null)throw Error(r(91));break;default:gr(s,c,X,ne,p,null)}Gh(s,x,M,L),Hh(s);return;case"option":for(ge in p)if(p.hasOwnProperty(ge)&&(x=p[ge],x!=null))switch(ge){case"selected":s.selected=x&&typeof x!="function"&&typeof x!="symbol";break;default:gr(s,c,ge,x,p,null)}return;case"dialog":_n("beforetoggle",s),_n("toggle",s),_n("cancel",s),_n("close",s);break;case"iframe":case"object":_n("load",s);break;case"video":case"audio":for(x=0;x<mp.length;x++)_n(mp[x],s);break;case"image":_n("error",s),_n("load",s);break;case"details":_n("toggle",s);break;case"embed":case"source":case"link":_n("error",s),_n("load",s);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(Le in p)if(p.hasOwnProperty(Le)&&(x=p[Le],x!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,c));default:gr(s,c,Le,x,p,null)}return;default:if(gb(c)){for(rt in p)p.hasOwnProperty(rt)&&(x=p[rt],x!==void 0&&jy(s,c,rt,x,p,void 0));return}}for(ne in p)p.hasOwnProperty(ne)&&(x=p[ne],x!=null&&gr(s,c,ne,x,p,null))}function JM(s,c,p,x){switch(c){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var M=null,L=null,X=null,ne=null,ge=null,Le=null,rt=null;for($e in p){var ct=p[$e];if(p.hasOwnProperty($e)&&ct!=null)switch($e){case"checked":break;case"value":break;case"defaultValue":ge=ct;default:x.hasOwnProperty($e)||gr(s,c,$e,null,x,ct)}}for(var He in x){var $e=x[He];if(ct=p[He],x.hasOwnProperty(He)&&($e!=null||ct!=null))switch(He){case"type":L=$e;break;case"name":M=$e;break;case"checked":Le=$e;break;case"defaultChecked":rt=$e;break;case"value":X=$e;break;case"defaultValue":ne=$e;break;case"children":case"dangerouslySetInnerHTML":if($e!=null)throw Error(r(137,c));break;default:$e!==ct&&gr(s,c,He,$e,x,ct)}}Uh(s,X,ne,ge,Le,rt,L,M);return;case"select":$e=X=ne=He=null;for(L in p)if(ge=p[L],p.hasOwnProperty(L)&&ge!=null)switch(L){case"value":break;case"multiple":$e=ge;default:x.hasOwnProperty(L)||gr(s,c,L,null,x,ge)}for(M in x)if(L=x[M],ge=p[M],x.hasOwnProperty(M)&&(L!=null||ge!=null))switch(M){case"value":He=L;break;case"defaultValue":ne=L;break;case"multiple":X=L;default:L!==ge&&gr(s,c,M,L,x,ge)}c=ne,p=X,x=$e,He!=null?_u(s,!!p,He,!1):!!x!=!!p&&(c!=null?_u(s,!!p,c,!0):_u(s,!!p,p?[]:"",!1));return;case"textarea":$e=He=null;for(ne in p)if(M=p[ne],p.hasOwnProperty(ne)&&M!=null&&!x.hasOwnProperty(ne))switch(ne){case"value":break;case"children":break;default:gr(s,c,ne,null,x,M)}for(X in x)if(M=x[X],L=p[X],x.hasOwnProperty(X)&&(M!=null||L!=null))switch(X){case"value":He=M;break;case"defaultValue":$e=M;break;case"children":break;case"dangerouslySetInnerHTML":if(M!=null)throw Error(r(91));break;default:M!==L&&gr(s,c,X,M,x,L)}pb(s,He,$e);return;case"option":for(var tn in p)if(He=p[tn],p.hasOwnProperty(tn)&&He!=null&&!x.hasOwnProperty(tn))switch(tn){case"selected":s.selected=!1;break;default:gr(s,c,tn,null,x,He)}for(ge in x)if(He=x[ge],$e=p[ge],x.hasOwnProperty(ge)&&He!==$e&&(He!=null||$e!=null))switch(ge){case"selected":s.selected=He&&typeof He!="function"&&typeof He!="symbol";break;default:gr(s,c,ge,He,x,$e)}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 en in p)He=p[en],p.hasOwnProperty(en)&&He!=null&&!x.hasOwnProperty(en)&&gr(s,c,en,null,x,He);for(Le in x)if(He=x[Le],$e=p[Le],x.hasOwnProperty(Le)&&He!==$e&&(He!=null||$e!=null))switch(Le){case"children":case"dangerouslySetInnerHTML":if(He!=null)throw Error(r(137,c));break;default:gr(s,c,Le,He,x,$e)}return;default:if(gb(c)){for(var br in p)He=p[br],p.hasOwnProperty(br)&&He!==void 0&&!x.hasOwnProperty(br)&&jy(s,c,br,void 0,x,He);for(rt in x)He=x[rt],$e=p[rt],!x.hasOwnProperty(rt)||He===$e||He===void 0&&$e===void 0||jy(s,c,rt,He,x,$e);return}}for(var Ie in p)He=p[Ie],p.hasOwnProperty(Ie)&&He!=null&&!x.hasOwnProperty(Ie)&&gr(s,c,Ie,null,x,He);for(ct in x)He=x[ct],$e=p[ct],!x.hasOwnProperty(ct)||He===$e||He==null&&$e==null||gr(s,c,ct,He,x,$e)}var Da=null,eg=null;function Xc(s){return s.nodeType===9?s:s.ownerDocument}function Br(s){switch(s){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wr(s,c){if(s===0)switch(c){case"svg":return 1;case"math":return 2;default:return 0}return s===1&&c==="foreignObject"?0:s}function tg(s,c){return s==="textarea"||s==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.children=="bigint"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var Fy=null;function ek(){var s=window.event;return s&&s.type==="popstate"?s===Fy?!1:(Fy=s,!0):(Fy=null,!1)}var CC=typeof setTimeout=="function"?setTimeout:void 0,tk=typeof clearTimeout=="function"?clearTimeout:void 0,SC=typeof Promise=="function"?Promise:void 0,nk=typeof queueMicrotask=="function"?queueMicrotask:typeof SC<"u"?function(s){return SC.resolve(null).then(s).catch(EC)}:CC;function EC(s){setTimeout(function(){throw s})}function pa(s){return s==="head"}function ng(s,c){var p=c,x=0,M=0;do{var L=p.nextSibling;if(s.removeChild(p),L&&L.nodeType===8)if(p=L.data,p==="/$"){if(0<x&&8>x){p=x;var X=s.ownerDocument;if(p&1&&gp(X.documentElement),p&2&&gp(X.body),p&4)for(p=X.head,gp(p),X=p.firstChild;X;){var ne=X.nextSibling,ge=X.nodeName;X[Gt]||ge==="SCRIPT"||ge==="STYLE"||ge==="LINK"&&X.rel.toLowerCase()==="stylesheet"||p.removeChild(X),X=ne}}if(M===0){s.removeChild(L),Ep(c);return}M--}else p==="$"||p==="$?"||p==="$!"?M++:x=p.charCodeAt(0)-48;else x=0;p=L}while(p);Ep(c)}function Ny(s){var c=s.firstChild;for(c&&c.nodeType===10&&(c=c.nextSibling);c;){var p=c;switch(c=c.nextSibling,p.nodeName){case"HTML":case"HEAD":case"BODY":Ny(p),Et(p);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(p.rel.toLowerCase()==="stylesheet")continue}s.removeChild(p)}}function TC(s,c,p,x){for(;s.nodeType===1;){var M=p;if(s.nodeName.toLowerCase()!==c.toLowerCase()){if(!x&&(s.nodeName!=="INPUT"||s.type!=="hidden"))break}else if(x){if(!s[Gt])switch(c){case"meta":if(!s.hasAttribute("itemprop"))break;return s;case"link":if(L=s.getAttribute("rel"),L==="stylesheet"&&s.hasAttribute("data-precedence"))break;if(L!==M.rel||s.getAttribute("href")!==(M.href==null||M.href===""?null:M.href)||s.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin)||s.getAttribute("title")!==(M.title==null?null:M.title))break;return s;case"style":if(s.hasAttribute("data-precedence"))break;return s;case"script":if(L=s.getAttribute("src"),(L!==(M.src==null?null:M.src)||s.getAttribute("type")!==(M.type==null?null:M.type)||s.getAttribute("crossorigin")!==(M.crossOrigin==null?null:M.crossOrigin))&&L&&s.hasAttribute("async")&&!s.hasAttribute("itemprop"))break;return s;default:return s}}else if(c==="input"&&s.type==="hidden"){var L=M.name==null?null:""+M.name;if(M.type==="hidden"&&s.getAttribute("name")===L)return s}else return s;if(s=La(s.nextSibling),s===null)break}return null}function rg(s,c,p){if(c==="")return null;for(;s.nodeType!==3;)if((s.nodeType!==1||s.nodeName!=="INPUT"||s.type!=="hidden")&&!p||(s=La(s.nextSibling),s===null))return null;return s}function ui(s){return s.data==="$!"||s.data==="$?"&&s.ownerDocument.readyState==="complete"}function bd(s,c){var p=s.ownerDocument;if(s.data!=="$?"||p.readyState==="complete")c();else{var x=function(){c(),p.removeEventListener("DOMContentLoaded",x)};p.addEventListener("DOMContentLoaded",x),s._reactRetry=x}}function La(s){for(;s!=null;s=s.nextSibling){var c=s.nodeType;if(c===1||c===3)break;if(c===8){if(c=s.data,c==="$"||c==="$!"||c==="$?"||c==="F!"||c==="F")break;if(c==="/$")return null}}return s}var zy=null;function MC(s){s=s.previousSibling;for(var c=0;s;){if(s.nodeType===8){var p=s.data;if(p==="$"||p==="$!"||p==="$?"){if(c===0)return s;c--}else p==="/$"&&c++}s=s.previousSibling}return null}function kC(s,c,p){switch(c=Xc(p),s){case"html":if(s=c.documentElement,!s)throw Error(r(452));return s;case"head":if(s=c.head,!s)throw Error(r(453));return s;case"body":if(s=c.body,!s)throw Error(r(454));return s;default:throw Error(r(451))}}function gp(s){for(var c=s.attributes;c.length;)s.removeAttributeNode(c[0]);Et(s)}var Wi=new Map,cs=new Set;function pn(s){return typeof s.getRootNode=="function"?s.getRootNode():s.nodeType===9?s:s.ownerDocument}var us=H.d;H.d={f:ha,r:PC,D:rk,C:IC,L:og,m:ok,X:ak,S:ik,M:sk};function ha(){var s=us.f(),c=Vm();return s||c}function PC(s){var c=gn(s);c!==null&&c.tag===5&&c.type==="form"?Pm(c):us.r(s)}var yd=typeof document>"u"?null:document;function Zn(s,c,p){var x=yd;if(x&&typeof c=="string"&&c){var M=ea(c);M='link[rel="'+s+'"][href="'+M+'"]',typeof p=="string"&&(M+='[crossorigin="'+p+'"]'),cs.has(M)||(cs.add(M),s={rel:s,crossOrigin:p,href:c},x.querySelector(M)===null&&(c=x.createElement("link"),Co(c,"link",s),Ne(c),x.head.appendChild(c)))}}function rk(s){us.D(s),Zn("dns-prefetch",s,null)}function IC(s,c){us.C(s,c),Zn("preconnect",s,c)}function og(s,c,p){us.L(s,c,p);var x=yd;if(x&&s&&c){var M='link[rel="preload"][as="'+ea(c)+'"]';c==="image"&&p&&p.imageSrcSet?(M+='[imagesrcset="'+ea(p.imageSrcSet)+'"]',typeof p.imageSizes=="string"&&(M+='[imagesizes="'+ea(p.imageSizes)+'"]')):M+='[href="'+ea(s)+'"]';var L=M;switch(c){case"style":L=vd(s);break;case"script":L=xd(s)}Wi.has(L)||(s=f({rel:"preload",href:c==="image"&&p&&p.imageSrcSet?void 0:s,as:c},p),Wi.set(L,s),x.querySelector(M)!==null||c==="style"&&x.querySelector(bp(L))||c==="script"&&x.querySelector(yp(L))||(c=x.createElement("link"),Co(c,"link",s),Ne(c),x.head.appendChild(c)))}}function ok(s,c){us.m(s,c);var p=yd;if(p&&s){var x=c&&typeof c.as=="string"?c.as:"script",M='link[rel="modulepreload"][as="'+ea(x)+'"][href="'+ea(s)+'"]',L=M;switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":L=xd(s)}if(!Wi.has(L)&&(s=f({rel:"modulepreload",href:s},c),Wi.set(L,s),p.querySelector(M)===null)){switch(x){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(p.querySelector(yp(L)))return}x=p.createElement("link"),Co(x,"link",s),Ne(x),p.head.appendChild(x)}}}function ik(s,c,p){us.S(s,c,p);var x=yd;if(x&&s){var M=hr(x).hoistableStyles,L=vd(s);c=c||"default";var X=M.get(L);if(!X){var ne={loading:0,preload:null};if(X=x.querySelector(bp(L)))ne.loading=5;else{s=f({rel:"stylesheet",href:s,"data-precedence":c},p),(p=Wi.get(L))&&vp(s,p);var ge=X=x.createElement("link");Ne(ge),Co(ge,"link",s),ge._p=new Promise(function(Le,rt){ge.onload=Le,ge.onerror=rt}),ge.addEventListener("load",function(){ne.loading|=1}),ge.addEventListener("error",function(){ne.loading|=2}),ne.loading|=4,ig(X,c,x)}X={type:"stylesheet",instance:X,count:1,state:ne},M.set(L,X)}}}function ak(s,c){us.X(s,c);var p=yd;if(p&&s){var x=hr(p).hoistableScripts,M=xd(s),L=x.get(M);L||(L=p.querySelector(yp(M)),L||(s=f({src:s,async:!0},c),(c=Wi.get(M))&&By(s,c),L=p.createElement("script"),Ne(L),Co(L,"link",s),p.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},x.set(M,L))}}function sk(s,c){us.M(s,c);var p=yd;if(p&&s){var x=hr(p).hoistableScripts,M=xd(s),L=x.get(M);L||(L=p.querySelector(yp(M)),L||(s=f({src:s,async:!0,type:"module"},c),(c=Wi.get(M))&&By(s,c),L=p.createElement("script"),Ne(L),Co(L,"link",s),p.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},x.set(M,L))}}function AC(s,c,p,x){var M=(M=re.current)?pn(M):null;if(!M)throw Error(r(446));switch(s){case"meta":case"title":return null;case"style":return typeof p.precedence=="string"&&typeof p.href=="string"?(c=vd(p.href),p=hr(M).hoistableStyles,x=p.get(c),x||(x={type:"style",instance:null,count:0,state:null},p.set(c,x)),x):{type:"void",instance:null,count:0,state:null};case"link":if(p.rel==="stylesheet"&&typeof p.href=="string"&&typeof p.precedence=="string"){s=vd(p.href);var L=hr(M).hoistableStyles,X=L.get(s);if(X||(M=M.ownerDocument||M,X={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},L.set(s,X),(L=M.querySelector(bp(s)))&&!L._p&&(X.instance=L,X.state.loading=5),Wi.has(s)||(p={rel:"preload",as:"style",href:p.href,crossOrigin:p.crossOrigin,integrity:p.integrity,media:p.media,hrefLang:p.hrefLang,referrerPolicy:p.referrerPolicy},Wi.set(s,p),L||lk(M,s,p,X.state))),c&&x===null)throw Error(r(528,""));return X}if(c&&x!==null)throw Error(r(529,""));return null;case"script":return c=p.async,p=p.src,typeof p=="string"&&c&&typeof c!="function"&&typeof c!="symbol"?(c=xd(p),p=hr(M).hoistableScripts,x=p.get(c),x||(x={type:"script",instance:null,count:0,state:null},p.set(c,x)),x):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,s))}}function vd(s){return'href="'+ea(s)+'"'}function bp(s){return'link[rel="stylesheet"]['+s+"]"}function RC(s){return f({},s,{"data-precedence":s.precedence,precedence:null})}function lk(s,c,p,x){s.querySelector('link[rel="preload"][as="style"]['+c+"]")?x.loading=1:(c=s.createElement("link"),x.preload=c,c.addEventListener("load",function(){return x.loading|=1}),c.addEventListener("error",function(){return x.loading|=2}),Co(c,"link",p),Ne(c),s.head.appendChild(c))}function xd(s){return'[src="'+ea(s)+'"]'}function yp(s){return"script[async]"+s}function OC(s,c,p){if(c.count++,c.instance===null)switch(c.type){case"style":var x=s.querySelector('style[data-href~="'+ea(p.href)+'"]');if(x)return c.instance=x,Ne(x),x;var M=f({},p,{"data-href":p.href,"data-precedence":p.precedence,href:null,precedence:null});return x=(s.ownerDocument||s).createElement("style"),Ne(x),Co(x,"style",M),ig(x,p.precedence,s),c.instance=x;case"stylesheet":M=vd(p.href);var L=s.querySelector(bp(M));if(L)return c.state.loading|=4,c.instance=L,Ne(L),L;x=RC(p),(M=Wi.get(M))&&vp(x,M),L=(s.ownerDocument||s).createElement("link"),Ne(L);var X=L;return X._p=new Promise(function(ne,ge){X.onload=ne,X.onerror=ge}),Co(L,"link",x),c.state.loading|=4,ig(L,p.precedence,s),c.instance=L;case"script":return L=xd(p.src),(M=s.querySelector(yp(L)))?(c.instance=M,Ne(M),M):(x=p,(M=Wi.get(L))&&(x=f({},p),By(x,M)),s=s.ownerDocument||s,M=s.createElement("script"),Ne(M),Co(M,"link",x),s.head.appendChild(M),c.instance=M);case"void":return null;default:throw Error(r(443,c.type))}else c.type==="stylesheet"&&(c.state.loading&4)===0&&(x=c.instance,c.state.loading|=4,ig(x,p.precedence,s));return c.instance}function ig(s,c,p){for(var x=p.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),M=x.length?x[x.length-1]:null,L=M,X=0;X<x.length;X++){var ne=x[X];if(ne.dataset.precedence===c)L=ne;else if(L!==M)break}L?L.parentNode.insertBefore(s,L.nextSibling):(c=p.nodeType===9?p.head:p,c.insertBefore(s,c.firstChild))}function vp(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.title==null&&(s.title=c.title)}function By(s,c){s.crossOrigin==null&&(s.crossOrigin=c.crossOrigin),s.referrerPolicy==null&&(s.referrerPolicy=c.referrerPolicy),s.integrity==null&&(s.integrity=c.integrity)}var wd=null;function _C(s,c,p){if(wd===null){var x=new Map,M=wd=new Map;M.set(p,x)}else M=wd,x=M.get(p),x||(x=new Map,M.set(p,x));if(x.has(s))return x;for(x.set(s,null),p=p.getElementsByTagName(s),M=0;M<p.length;M++){var L=p[M];if(!(L[Gt]||L[ze]||s==="link"&&L.getAttribute("rel")==="stylesheet")&&L.namespaceURI!=="http://www.w3.org/2000/svg"){var X=L.getAttribute(c)||"";X=s+X;var ne=x.get(X);ne?ne.push(L):x.set(X,[L])}}return x}function DC(s,c,p){s=s.ownerDocument||s,s.head.insertBefore(p,c==="title"?s.querySelector("head > title"):null)}function ck(s,c,p){if(p===1||c.itemProp!=null)return!1;switch(s){case"meta":case"title":return!0;case"style":if(typeof c.precedence!="string"||typeof c.href!="string"||c.href==="")break;return!0;case"link":if(typeof c.rel!="string"||typeof c.href!="string"||c.href===""||c.onLoad||c.onError)break;switch(c.rel){case"stylesheet":return s=c.disabled,typeof c.precedence=="string"&&s==null;default:return!0}case"script":if(c.async&&typeof c.async!="function"&&typeof c.async!="symbol"&&!c.onLoad&&!c.onError&&c.src&&typeof c.src=="string")return!0}return!1}function So(s){return!(s.type==="stylesheet"&&(s.state.loading&3)===0)}var Ro=null;function uk(){}function dk(s,c,p){if(Ro===null)throw Error(r(475));var x=Ro;if(c.type==="stylesheet"&&(typeof p.media!="string"||matchMedia(p.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var M=vd(p.href),L=s.querySelector(bp(M));if(L){s=L._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(x.count++,x=xp.bind(x),s.then(x,x)),c.state.loading|=4,c.instance=L,Ne(L);return}L=s.ownerDocument||s,p=RC(p),(M=Wi.get(M))&&vp(p,M),L=L.createElement("link"),Ne(L);var X=L;X._p=new Promise(function(ne,ge){X.onload=ne,X.onerror=ge}),Co(L,"link",p),c.instance=L}x.stylesheets===null&&(x.stylesheets=new Map),x.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(x.count++,c=xp.bind(x),s.addEventListener("load",c),s.addEventListener("error",c))}}function fk(){if(Ro===null)throw Error(r(475));var s=Ro;return s.stylesheets&&s.count===0&&Hy(s,s.stylesheets),0<s.count?function(c){var p=setTimeout(function(){if(s.stylesheets&&Hy(s,s.stylesheets),s.unsuspend){var x=s.unsuspend;s.unsuspend=null,x()}},6e4);return s.unsuspend=c,function(){s.unsuspend=null,clearTimeout(p)}}:null}function xp(){if(this.count--,this.count===0){if(this.stylesheets)Hy(this,this.stylesheets);else if(this.unsuspend){var s=this.unsuspend;this.unsuspend=null,s()}}}var ag=null;function Hy(s,c){s.stylesheets=null,s.unsuspend!==null&&(s.count++,ag=new Map,c.forEach(pk,s),ag=null,xp.call(s))}function pk(s,c){if(!(c.state.loading&4)){var p=ag.get(s);if(p)var x=p.get(null);else{p=new Map,ag.set(s,p);for(var M=s.querySelectorAll("link[data-precedence],style[data-precedence]"),L=0;L<M.length;L++){var X=M[L];(X.nodeName==="LINK"||X.getAttribute("media")!=="not all")&&(p.set(X.dataset.precedence,X),x=X)}x&&p.set(null,x)}M=c.instance,X=M.getAttribute("data-precedence"),L=p.get(X)||x,L===x&&p.set(null,M),p.set(X,M),this.count++,x=xp.bind(this),M.addEventListener("load",x),M.addEventListener("error",x),L?L.parentNode.insertBefore(M,L.nextSibling):(s=s.nodeType===9?s.head:s,s.insertBefore(M,s.firstChild)),c.state.loading|=4}}var Cd={$$typeof:k,Provider:null,Consumer:null,_currentValue:Y,_currentValue2:Y,_threadCount:0};function hk(s,c,p,x,M,L,X,ne){this.tag=1,this.containerInfo=s,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=Jn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Jn(0),this.hiddenUpdates=Jn(null),this.identifierPrefix=x,this.onUncaughtError=M,this.onCaughtError=L,this.onRecoverableError=X,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=ne,this.incompleteTransitions=new Map}function LC(s,c,p,x,M,L,X,ne,ge,Le,rt,ct){return s=new hk(s,c,p,X,ne,ge,Le,ct),c=1,L===!0&&(c|=24),L=vi(3,null,null,c),s.current=L,L.stateNode=s,c=$b(),c.refCount++,s.pooledCache=c,c.refCount++,L.memoizedState={element:x,isDehydrated:p,cache:c},jc(L),s}function $C(s){return s?(s=Ac,s):Ac}function Uy(s,c,p,x,M,L){M=$C(M),x.context===null?x.context=M:x.pendingContext=M,x=Ll(c),x.payload={element:p},L=L===void 0?null:L,L!==null&&(x.callback=L),p=zs(s,x,c),p!==null&&(Vi(p,s,c),_f(p,s,c))}function Gy(s,c){if(s=s.memoizedState,s!==null&&s.dehydrated!==null){var p=s.retryLane;s.retryLane=p!==0&&p<c?p:c}}function Vy(s,c){Gy(s,c),(s=s.alternate)&&Gy(s,c)}function jC(s){if(s.tag===13){var c=Ic(s,67108864);c!==null&&Vi(c,s,67108864),Vy(s,67108864)}}var sg=!0;function mk(s,c,p,x){var M=N.T;N.T=null;var L=H.p;try{H.p=2,Wy(s,c,p,x)}finally{H.p=L,N.T=M}}function Sd(s,c,p,x){var M=N.T;N.T=null;var L=H.p;try{H.p=8,Wy(s,c,p,x)}finally{H.p=L,N.T=M}}function Wy(s,c,p,x){if(sg){var M=qy(x);if(M===null)Zs(s,c,x,lg,p),NC(s,x);else if(bk(M,s,c,p,x))x.stopPropagation();else if(NC(s,x),c&4&&-1<gk.indexOf(s)){for(;M!==null;){var L=gn(M);if(L!==null)switch(L.tag){case 3:if(L=L.stateNode,L.current.memoizedState.isDehydrated){var X=ht(L.pendingLanes);if(X!==0){var ne=L;for(ne.pendingLanes|=2,ne.entangledLanes|=2;X;){var ge=1<<31-ot(X);ne.entanglements[1]|=ge,X&=~ge}ls(L),(lr&6)===0&&(dd=We()+500,fp(0))}}break;case 13:ne=Ic(L,2),ne!==null&&Vi(ne,L,2),Vm(),Vy(L,2)}if(L=qy(x),L===null&&Zs(s,c,x,lg,p),L===M)break;M=L}M!==null&&x.stopPropagation()}else Zs(s,c,x,null,p)}}function qy(s){return s=bb(s),Yy(s)}var lg=null;function Yy(s){if(lg=null,s=Lt(s),s!==null){var c=i(s);if(c===null)s=null;else{var p=c.tag;if(p===13){if(s=a(c),s!==null)return s;s=null}else if(p===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;s=null}else c!==s&&(s=null)}}return lg=s,null}function FC(s){switch(s){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(_e()){case ft:return 2;case nt:return 8;case dt:case se:return 32;case De:return 268435456;default:return 32}default:return 32}}var cg=!1,Qs=null,Zl=null,Ql=null,wp=new Map,Cp=new Map,Jl=[],gk="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 NC(s,c){switch(s){case"focusin":case"focusout":Qs=null;break;case"dragenter":case"dragleave":Zl=null;break;case"mouseover":case"mouseout":Ql=null;break;case"pointerover":case"pointerout":wp.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Cp.delete(c.pointerId)}}function Sp(s,c,p,x,M,L){return s===null||s.nativeEvent!==L?(s={blockedOn:c,domEventName:p,eventSystemFlags:x,nativeEvent:L,targetContainers:[M]},c!==null&&(c=gn(c),c!==null&&jC(c)),s):(s.eventSystemFlags|=x,c=s.targetContainers,M!==null&&c.indexOf(M)===-1&&c.push(M),s)}function bk(s,c,p,x,M){switch(c){case"focusin":return Qs=Sp(Qs,s,c,p,x,M),!0;case"dragenter":return Zl=Sp(Zl,s,c,p,x,M),!0;case"mouseover":return Ql=Sp(Ql,s,c,p,x,M),!0;case"pointerover":var L=M.pointerId;return wp.set(L,Sp(wp.get(L)||null,s,c,p,x,M)),!0;case"gotpointercapture":return L=M.pointerId,Cp.set(L,Sp(Cp.get(L)||null,s,c,p,x,M)),!0}return!1}function zC(s){var c=Lt(s.target);if(c!==null){var p=i(c);if(p!==null){if(c=p.tag,c===13){if(c=a(p),c!==null){s.blockedOn=c,fe(s.priority,function(){if(p.tag===13){var x=Ko();x=$o(x);var M=Ic(p,x);M!==null&&Vi(M,p,x),Vy(p,x)}});return}}else if(c===3&&p.stateNode.current.memoizedState.isDehydrated){s.blockedOn=p.tag===3?p.stateNode.containerInfo:null;return}}}s.blockedOn=null}function ug(s){if(s.blockedOn!==null)return!1;for(var c=s.targetContainers;0<c.length;){var p=qy(s.nativeEvent);if(p===null){p=s.nativeEvent;var x=new p.constructor(p.type,p);Vh=x,p.target.dispatchEvent(x),Vh=null}else return c=gn(p),c!==null&&jC(c),s.blockedOn=p,!1;c.shift()}return!0}function BC(s,c,p){ug(s)&&p.delete(c)}function yk(){cg=!1,Qs!==null&&ug(Qs)&&(Qs=null),Zl!==null&&ug(Zl)&&(Zl=null),Ql!==null&&ug(Ql)&&(Ql=null),wp.forEach(BC),Cp.forEach(BC)}function dg(s,c){s.blockedOn===c&&(s.blockedOn=null,cg||(cg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,yk)))}var fg=null;function HC(s){fg!==s&&(fg=s,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){fg===s&&(fg=null);for(var c=0;c<s.length;c+=3){var p=s[c],x=s[c+1],M=s[c+2];if(typeof x!="function"){if(Yy(x||p)===null)continue;break}var L=gn(p);L!==null&&(s.splice(c,3),c-=3,Gf(L,{pending:!0,data:M,method:p.method,action:x},x,M))}}))}function Ep(s){function c(ge){return dg(ge,s)}Qs!==null&&dg(Qs,s),Zl!==null&&dg(Zl,s),Ql!==null&&dg(Ql,s),wp.forEach(c),Cp.forEach(c);for(var p=0;p<Jl.length;p++){var x=Jl[p];x.blockedOn===s&&(x.blockedOn=null)}for(;0<Jl.length&&(p=Jl[0],p.blockedOn===null);)zC(p),p.blockedOn===null&&Jl.shift();if(p=(s.ownerDocument||s).$$reactFormReplay,p!=null)for(x=0;x<p.length;x+=3){var M=p[x],L=p[x+1],X=M[Qe]||null;if(typeof L=="function")X||HC(p);else if(X){var ne=null;if(L&&L.hasAttribute("formAction")){if(M=L,X=L[Qe]||null)ne=X.formAction;else if(Yy(M)!==null)continue}else ne=X.action;typeof ne=="function"?p[x+1]=ne:(p.splice(x,3),x-=3),HC(p)}}}function Ky(s){this._internalRoot=s}pg.prototype.render=Ky.prototype.render=function(s){var c=this._internalRoot;if(c===null)throw Error(r(409));var p=c.current,x=Ko();Uy(p,x,s,c,null,null)},pg.prototype.unmount=Ky.prototype.unmount=function(){var s=this._internalRoot;if(s!==null){this._internalRoot=null;var c=s.containerInfo;Uy(s.current,2,null,s,null,null),Vm(),c[bt]=null}};function pg(s){this._internalRoot=s}pg.prototype.unstable_scheduleHydration=function(s){if(s){var c=he();s={blockedOn:null,target:s,priority:c};for(var p=0;p<Jl.length&&c!==0&&c<Jl[p].priority;p++);Jl.splice(p,0,s),p===0&&zC(s)}};var UC=t.version;if(UC!=="19.1.0")throw Error(r(527,UC,"19.1.0"));H.findDOMNode=function(s){var c=s._reactInternals;if(c===void 0)throw typeof s.render=="function"?Error(r(188)):(s=Object.keys(s).join(","),Error(r(268,s)));return s=u(c),s=s!==null?d(s):null,s=s===null?null:s.stateNode,s};var vk={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:N,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var hg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!hg.isDisabled&&hg.supportsFiber)try{qe=hg.inject(vk),Ke=hg}catch{}}return Tv.createRoot=function(s,c){if(!o(s))throw Error(r(299));var p=!1,x="",M=ly,L=Rm,X=Pw,ne=null;return c!=null&&(c.unstable_strictMode===!0&&(p=!0),c.identifierPrefix!==void 0&&(x=c.identifierPrefix),c.onUncaughtError!==void 0&&(M=c.onUncaughtError),c.onCaughtError!==void 0&&(L=c.onCaughtError),c.onRecoverableError!==void 0&&(X=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(ne=c.unstable_transitionCallbacks)),c=LC(s,1,!1,null,null,p,x,M,L,X,ne,null),s[bt]=c.current,$y(s),new Ky(c)},Tv.hydrateRoot=function(s,c,p){if(!o(s))throw Error(r(299));var x=!1,M="",L=ly,X=Rm,ne=Pw,ge=null,Le=null;return p!=null&&(p.unstable_strictMode===!0&&(x=!0),p.identifierPrefix!==void 0&&(M=p.identifierPrefix),p.onUncaughtError!==void 0&&(L=p.onUncaughtError),p.onCaughtError!==void 0&&(X=p.onCaughtError),p.onRecoverableError!==void 0&&(ne=p.onRecoverableError),p.unstable_transitionCallbacks!==void 0&&(ge=p.unstable_transitionCallbacks),p.formState!==void 0&&(Le=p.formState)),c=LC(s,1,!0,c,p??null,x,M,L,X,ne,ge,Le),c.context=$C(null),p=c.current,x=Ko(),x=$o(x),M=Ll(x),M.callback=null,zs(p,M,x),p=x,c.current.lanes=p,Er(c,p),ls(c),s[bt]=c.current,$y(s),new pg(c)},Tv.version="19.1.0",Tv}var Yj;function r4e(){if(Yj)return uI.exports;Yj=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),uI.exports=n4e(),uI.exports}var o4e=r4e();const KH=b.createContext(null);function i4e(e,t){const n=b.useContext(e);if(n==null)throw new Error(`context "${t}" was used without a Provider`);return n}const a4e=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:{...e}}}}}),s4e={accountSignInLabel:"Sign In",accountSignOutLabel:"Sign Out",accountPreviewTitle:"Account",accountPreviewIconButtonLabel:"Current User",signInTitle:e=>e?`Sign in to ${e}`:"Sign in",signInSubtitle:"Welcome user, please sign in to continue",signInRememberMe:"Remember Me",providerSignInTitle:e=>`Sign in with ${e}`,email:"Email",password:"Password",username:"Username",passkey:"Passkey",save:"Save",cancel:"Cancel",ok:"Ok",or:"Or",to:"To",with:"With",close:"Close",delete:"Delete",alert:"Alert",confirm:"Confirm",loading:"Loading...",createNewButtonLabel:"Create new",reloadButtonLabel:"Reload data",createLabel:"Create",createSuccessMessage:"Item created successfully.",createErrorMessage:"Failed to create item. Reason:",editLabel:"Edit",editSuccessMessage:"Item edited successfully.",editErrorMessage:"Failed to edit item. Reason:",deleteLabel:"Delete",deleteConfirmTitle:"Delete item?",deleteConfirmMessage:"Do you wish to delete this item?",deleteConfirmLabel:"Delete",deleteCancelLabel:"Cancel",deleteSuccessMessage:"Item deleted successfully.",deleteErrorMessage:"Failed to delete item. Reason:",deletedItemMessage:"This item has been deleted."},l4e=a4e(s4e),XH=b.createContext({}),c4e=function(t){var u,d,f;const{localeText:n,children:r}=t,o=bo(),i=(f=(d=(u=o==null?void 0:o.components)==null?void 0:u.MuiLocalizationProvider)==null?void 0:d.defaultProps)==null?void 0:f.localeText,a=l4e.components.MuiLocalizationProvider.defaultProps.localeText,l=b.useMemo(()=>({...a,...i,...n}),[a,i,n]);return y.jsx(XH.Provider,{value:l,children:r})};function E1(){return b.useContext(XH)}var Kj;const ZH=b.createContext(null),u4e={close:"Close"};function d4e({notificationKey:e,open:t,message:n,options:r,badge:o}){var T,I;const i=E1(),a={...u4e,...i},{close:l}=i4e(KH),{severity:u,actionText:d,onAction:f,autoHideDuration:m}=r,g=b.useCallback((k,R)=>{R!=="clickaway"&&l(e)},[e,l]),w=y.jsxs(b.Fragment,{children:[f?y.jsx(B0,{color:"inherit",size:"small",onClick:f,children:d??"Action"}):null,y.jsx(Ur,{size:"small","aria-label":a==null?void 0:a.close,title:a==null?void 0:a.close,color:"inherit",onClick:g,children:Kj||(Kj=y.jsx(U8,{fontSize:"small"}))})]}),C=b.useContext(ZH),S=((T=C==null?void 0:C.slots)==null?void 0:T.snackbar)??ite,E=mi({elementType:S,ownerState:C,externalSlotProps:(I=C==null?void 0:C.slotProps)==null?void 0:I.snackbar,additionalProps:{open:t,autoHideDuration:m,onClose:g,action:w}});return y.jsx(S,{...E,children:y.jsx(tT,{badgeContent:o,color:"primary",sx:{width:"100%"},children:u?y.jsx(FY,{severity:u,sx:{width:"100%"},action:w,children:n}):y.jsx(i9,{message:n,action:w})})},e)}function f4e({state:e}){const t=e.queue[0]??null;return t?y.jsx(d4e,{...t,badge:e.queue.length>1?String(e.queue.length):null}):null}let Xj=0;const p4e=()=>{const e=Xj;return Xj+=1,e};function h4e(e){const{children:t}=e,[n,r]=b.useState({queue:[]}),o=b.useCallback((l,u={})=>{const d=u.key??`::toolpad-internal::notification::${p4e()}`;return r(f=>f.queue.some(m=>m.notificationKey===d)?f:{...f,queue:[...f.queue,{message:l,options:u,notificationKey:d,open:!0}]}),d},[]),i=b.useCallback(l=>{r(u=>({...u,queue:u.queue.filter(d=>d.notificationKey!==l)}))},[]),a=b.useMemo(()=>({show:o,close:i}),[o,i]);return y.jsx(ZH.Provider,{value:e,children:y.jsxs(KH.Provider,{value:a,children:[t,y.jsx(f4e,{state:n})]})})}var pI,Zj;function m4e(){if(Zj)return pI;Zj=1;var e=function(t,n,r,o,i,a,l,u){if(!t){var d;if(n===void 0)d=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var f=[r,o,i,a,l,u],m=0;d=new Error(n.replace(/%s/g,function(){return f[m++]})),d.name="Invariant Violation"}throw d.framesToPop=1,d}};return pI=e,pI}var g4e=m4e();const L0=wu(g4e),b4e=b.createContext(null),Q_=b.createContext(null),ab=b.createContext([]),J_=b.createContext({paletteMode:"light",setPaletteMode:()=>{},isDualTheme:!1}),mM=b.createContext(null),QH=b.createContext(null),JH=b.createContext(void 0);function y4e(e){const{children:t,unmountAfter:n=1e3}=e,[r,o]=b.useState([]),i=b.useId(),a=b.useRef(0),l=Vt(function(g,w,C={}){const{onClose:S=async()=>{}}=C;let E;const T=new Promise(R=>{E=R});L0(E,"resolve not set");const I=`${i}-${a.current}`;a.current+=1;const k={key:I,open:!0,promise:T,Component:g,payload:w,onClose:S,resolve:E};return o(R=>[...R,k]),T}),u=Vt(function(g){o(w=>w.map(C=>C.promise===g?{...C,open:!1}:C)),setTimeout(()=>{o(w=>w.filter(C=>C.promise!==g))},n)}),d=Vt(async function(g,w){const C=r.find(S=>S.promise===g);return L0(C,"dialog not found"),await C.onClose(w),C.resolve(w),u(g),g}),f=b.useMemo(()=>({open:l,close:d}),[l,d]);return y.jsxs(b4e.Provider,{value:f,children:[t,r.map(({key:m,open:g,Component:w,payload:C,promise:S})=>y.jsx(w,{payload:C,open:g,onClose:async E=>{await d(S,E)}},m))]})}const v4e={parse:e=>e,stringify:e=>e},Ax=new Map;function x4e(e,t){let n=Ax.get(e);n||(n=new Set,Ax.set(e,n)),n.add(t)}function w4e(e,t){const n=Ax.get(e);n&&(n.delete(t),n.size===0&&Ax.delete(e))}function eU(e){const t=Ax.get(e);t&&t.forEach(n=>n())}if(typeof window<"u"){const e=window.localStorage.setItem;window.localStorage.setItem=function(n,r){const o=e.call(this,n,r);return eU(n),o}}function C4e(e,t,n){if(!t)return()=>{};const r=o=>{o.storageArea===e&&o.key===t&&n()};return window.addEventListener("storage",r),x4e(t,n),()=>{window.removeEventListener("storage",r),w4e(t,n)}}function S4e(e,t){if(!t)return null;try{return e.getItem(t)}catch{return null}}function E4e(e,t,n){if(t){try{n===null?e.removeItem(t):e.setItem(t,String(n))}catch{return}eU(t)}}const T4e=[null,()=>{}];function M4e(){return T4e}function Qj(e,t){return t===null?null:e.stringify(t)}function k4e(e,t){return t===null?null:e.parse(t)}const P4e=()=>null;function I4e(e,t,n=null,r){const o=(r==null?void 0:r.codec)??v4e,[i]=b.useState(n),a=b.useMemo(()=>Qj(o,i),[o,i]),l=b.useCallback(C=>C4e(e,t,C),[e,t]),u=b.useCallback(()=>S4e(e,t)??a,[e,a,t]),d=b.useSyncExternalStore(l,u,P4e),f=b.useMemo(()=>k4e(o,d),[o,d]),m=b.useCallback(C=>{const S=C instanceof Function?C(f):C,E=Qj(o,S);E4e(e,t,E)},[e,o,f,t]),[g,w]=b.useState(i);return t?[f,m]:[g,w]}const A4e=(...e)=>I4e(window.localStorage,...e),R4e=typeof window>"u"?M4e:A4e;var Jj,e6;const t6="toolpad-color-scheme",dR="toolpad-mode";function tU(e){return g2("(prefers-color-scheme: dark)",e&&{matchMedia:e.matchMedia})?"dark":"light"}function e4(e){return"vars"in e}function O4e(e){const{children:t,theme:n,window:r}=e;L0(!e4(n),"This provider only accepts legacy themes.");const o="light"in n||"dark"in n,i=tU(r),[a,l]=R4e(dR,"system"),u=!a||a==="system"?i:a,d=b.useMemo(()=>o?n[u==="dark"?"dark":"light"]??n[u==="dark"?"light":"dark"]:n,[o,u,n]),f=b.useMemo(()=>({paletteMode:u,setPaletteMode:l,isDualTheme:o}),[o,u,l]);return y.jsx(OR,{theme:d,children:y.jsxs(J_.Provider,{value:f,children:[Jj||(Jj=y.jsx(qR,{enableColorScheme:!0})),t]})})}function _4e(e){const{children:t,window:n}=e,r=tU(n),{mode:o,setMode:i,allColorSchemes:a}=kq(),l=b.useMemo(()=>({paletteMode:!o||o==="system"?r:o,setPaletteMode:i,isDualTheme:a.length>1}),[a,o,r,i]);return y.jsx(J_.Provider,{value:l,children:t})}function D4e(e){const{children:t,theme:n,window:r,nonce:o}=e;return L0(e4(n),"This provider only accepts CSS vars themes."),y.jsxs(OR,{theme:n,documentNode:r==null?void 0:r.document,colorSchemeNode:r==null?void 0:r.document.documentElement,disableNestedContext:!0,colorSchemeStorageKey:t6,modeStorageKey:dR,children:[y.jsx(Tq,{attribute:n.colorSchemeSelector,colorSchemeStorageKey:t6,modeStorageKey:dR,nonce:o}),y.jsxs(_4e,{window:r,children:[e6||(e6=y.jsx(qR,{enableColorScheme:!0})),t]})]})}function L4e(e){const{children:t,theme:n,...r}=e;return e4(n)?y.jsx(D4e,{theme:n,...r,children:t}):y.jsx(O4e,{theme:n,...r,children:t})}const gM=b.createContext(null),t4=b.createContext(null);function $4e(){return jx({cssVariables:{colorSchemeSelector:"data-toolpad-color-scheme"},colorSchemes:{dark:!0}})}function j4e(e){const{children:t,theme:n=$4e(),branding:r=null,navigation:o=[],localeText:i,router:a=null,authentication:l=null,session:u=null,window:d,nonce:f}=e;return y.jsx(JH.Provider,{value:d,children:y.jsx(gM.Provider,{value:l,children:y.jsx(t4.Provider,{value:u,children:y.jsx(mM.Provider,{value:a,children:y.jsx(L4e,{theme:n,window:d,nonce:f,children:y.jsx(c4e,{localeText:i,children:y.jsx(h4e,{children:y.jsx(y4e,{children:y.jsx(Q_.Provider,{value:r,children:y.jsx(ab.Provider,{value:o,children:t})})})})})})})})})})}const F4e=b.forwardRef((e,t)=>{const{href:n,history:r,...o}=e;return y.jsx(_0,{ref:t,to:n,replace:r==="replace",...o})});function N4e(e){const{pathname:t}=Cl(),[n]=S1(),r=Sl(),o=b.useCallback((a,{history:l="auto"}={})=>{if(l==="auto"||l==="push")return r(a);if(l==="replace")return r(a,{replace:!0});throw new Error(`Invalid history option: ${l}`)},[r]),i=b.useMemo(()=>({pathname:t,searchParams:n,navigate:o,Link:F4e}),[t,n,o]);return y.jsx(j4e,{router:i,...e})}const z4e=[{segment:qp(_i.domains.path),title:_i.domains.name,icon:y.jsx(r7,{})},{segment:qp(_i.users.path),title:_i.users.name,icon:y.jsx(vwe,{})},{segment:"",title:"Pricing",icon:y.jsx(o_,{}),children:[{segment:qp(_i.pricingDomain.path),title:_i.pricingDomain.name},{segment:qp(_i.pricingContent.path),title:_i.pricingContent.name}]}],B4e=({cartItems:e})=>[{segment:qp(_o.domains.path),title:_o.domains.name,icon:y.jsx(r7,{})},{segment:qp(_o.balance.path),title:_o.balance.name,icon:y.jsx(o_,{})},{kind:"divider"},{segment:qp(_o.cart.path),title:_o.cart.name,icon:y.jsx(n7,{}),action:e?y.jsx(xc,{label:e,color:"primary",size:"small"}):void 0}];var Vg=(e=>(e.me="me",e.stripe_checkout="stripe_checkout",e.stripe_confirm="stripe_confirm",e.euka_checkout="euka_checkout",e.transactions="transactions",e))(Vg||{});const Mv=e=>{const{name:t}=e;switch(t){case"me":return"/me";case"stripe_checkout":return"/payments/deposit/stripe/checkout";case"stripe_confirm":return"/payments/deposit/stripe/confirm";case"euka_checkout":return"/payments/deposit/euka/checkout";case"transactions":return"/payments/transactions";default:return""}};class $0{static async me(){return hn.get(Mv({name:Vg.me}))}static async transactions(){return hn.get(Mv({name:Vg.transactions}))}static async stripe_checkout(t){return hn.post(Mv({name:Vg.stripe_checkout}),{amount:t})}static async stripe_confirm(t){return hn.post(Mv({name:Vg.stripe_confirm}),{sessionId:t})}static async euka_checkout(t){return hn.post(Mv({name:Vg.euka_checkout}),{amount:t})}}const ME=ni("fetchMe",async()=>(await $0.me()).data),fR=ni("fetchTransactions",async()=>(await $0.transactions()).data),H4e={user:{data:{},isLoading:!1},transactions:{data:[],isLoading:!1}},U4e=Mh({name:"profileSlice",initialState:H4e,reducers:{},extraReducers:e=>{e.addCase(ME.pending,t=>{t.user.isLoading=!0}).addCase(ME.fulfilled,(t,n)=>{t.user.data=n.payload,t.user.isLoading=!1}),e.addCase(fR.pending,t=>{t.transactions.isLoading=!0}).addCase(fR.fulfilled,(t,n)=>{t.transactions.data=n.payload,t.transactions.isLoading=!1})}}),bM=bn([e=>e.profileState.user],e=>e.data),n4=bn([bM],e=>e.role),r4=bn([n4],e=>e==="admin"),nU=bn([n4],e=>e==="customer"),G4e=bn([e=>e.profileState.user],e=>e.isLoading),V4e=bn([e=>e.profileState.transactions],e=>[...e.data].reverse()),W4e=bn([e=>e.profileState.transactions],e=>e.isLoading),q4e=U4e.reducer,Y4e=un.forwardRef((e,t)=>{const{href:n,...r}=e;return y.jsx(IH,{ref:t,to:n,...r})}),rU=jx({cssVariables:!0,breakpoints:{values:{xs:0,sm:768,md:1024,lg:1200,xl:1536}},palette:{},typography:{},components:{MuiButton:{defaultProps:{LinkComponent:Y4e}}}});function K4e(){const e=M8(),t=Sl(),n=Cl(),r=so(),o=xt(bM),i=xt(YH).length,a=xt(G4e),l=xt(r4),u=a?[]:l?z4e:B4e({cartItems:i}),[d,f]=b.useState(null);b.useEffect(()=>{console.log("app",e),e?(r(ME()),n.pathname.includes("/auth")&&t("/")):n.pathname.includes("/auth")||(t(Jo.auth.path),console.log("navigate(AUTH_ROUTES.auth.path);"))},[e]);const m=b.useMemo(()=>({signIn:()=>{},signOut:()=>{k8(),window.location.href=Jo.auth.path}}),[]);return b.useEffect(()=>{const g={user:{name:`${o.name}`,email:o.email,image:""}};f(g)},[o]),y.jsx(N4e,{navigation:u,session:d,authentication:m,theme:rU,children:y.jsx(Y_,{})})}const n6=e=>b.createElement("svg",{width:260,height:21,viewBox:"0 0 260 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{d:"M0.701755 19.6491C0.495907 19.6491 0.327486 19.5836 0.196492 19.4526C0.0654972 19.3216 0 19.1532 0 18.9474V0.701755C0 0.495907 0.0654972 0.327486 0.196492 0.196492C0.327486 0.0654973 0.495907 0 0.701755 0H3.67719C3.99532 0 4.21988 0.074854 4.35088 0.224562C4.50059 0.355555 4.59415 0.458479 4.63158 0.533333L11.4807 11.3404V0.701755C11.4807 0.495907 11.5462 0.327486 11.6772 0.196492C11.8082 0.0654973 11.9766 0 12.1825 0H15.5509C15.7567 0 15.9251 0.0654973 16.0561 0.196492C16.1871 0.327486 16.2526 0.495907 16.2526 0.701755V18.9474C16.2526 19.1345 16.1871 19.3029 16.0561 19.4526C15.9251 19.5836 15.7567 19.6491 15.5509 19.6491H12.5474C12.248 19.6491 12.0234 19.5743 11.8737 19.4246C11.7427 19.2749 11.6585 19.1719 11.6211 19.1158L4.77193 8.72982V18.9474C4.77193 19.1532 4.70643 19.3216 4.57544 19.4526C4.44445 19.5836 4.27602 19.6491 4.07018 19.6491H0.701755Z",fill:"black"}),b.createElement("path",{d:"M19.3335 19.6491C19.1838 19.6491 19.0435 19.593 18.9125 19.4807C18.8002 19.3497 18.7441 19.2094 18.7441 19.0597C18.7441 18.9661 18.7534 18.8819 18.7721 18.807L25.3686 0.785965C25.4248 0.580117 25.537 0.40234 25.7055 0.252632C25.8926 0.0842106 26.1452 0 26.4634 0H30.6177C30.9359 0 31.1792 0.0842106 31.3476 0.252632C31.5347 0.40234 31.6563 0.580117 31.7125 0.785965L38.2809 18.807C38.3183 18.8819 38.337 18.9661 38.337 19.0597C38.337 19.2094 38.2715 19.3497 38.1406 19.4807C38.0283 19.593 37.8879 19.6491 37.7195 19.6491H34.2669C33.9862 19.6491 33.771 19.5836 33.6213 19.4526C33.4903 19.3029 33.4061 19.1719 33.3686 19.0597L32.2739 16.1965H24.7791L23.7125 19.0597C23.6751 19.1719 23.5908 19.3029 23.4598 19.4526C23.3289 19.5836 23.1043 19.6491 22.7862 19.6491H19.3335ZM25.93 12.1544H31.1511L28.5125 4.74386L25.93 12.1544Z",fill:"black"}),b.createElement("path",{d:"M43.8531 19.6491C43.6473 19.6491 43.4788 19.5836 43.3478 19.4526C43.2169 19.3216 43.1514 19.1532 43.1514 18.9474V4.40702H38.1549C37.949 4.40702 37.7806 4.34152 37.6496 4.21053C37.5186 4.06082 37.4531 3.8924 37.4531 3.70526V0.701755C37.4531 0.495907 37.5186 0.327486 37.6496 0.196492C37.7806 0.0654973 37.949 0 38.1549 0H53.2566C53.4625 0 53.6309 0.0654973 53.7619 0.196492C53.8929 0.327486 53.9584 0.495907 53.9584 0.701755V3.70526C53.9584 3.8924 53.8929 4.06082 53.7619 4.21053C53.6309 4.34152 53.4625 4.40702 53.2566 4.40702H48.2601V18.9474C48.2601 19.1532 48.1946 19.3216 48.0636 19.4526C47.9326 19.5836 47.7642 19.6491 47.5584 19.6491H43.8531Z",fill:"black"}),b.createElement("path",{d:"M65.0159 19.9298C63.3317 19.9298 61.8534 19.6585 60.5809 19.1158C59.3271 18.5544 58.3539 17.7029 57.6616 16.5614C56.9692 15.4012 56.623 13.9322 56.623 12.1544V0.701755C56.623 0.495907 56.6885 0.327486 56.8194 0.196492C56.9504 0.0654973 57.1189 0 57.3247 0H60.9458C61.1516 0 61.32 0.0654973 61.451 0.196492C61.582 0.327486 61.6475 0.495907 61.6475 0.701755V12.1263C61.6475 13.3427 61.9376 14.2597 62.5177 14.8772C63.1165 15.476 63.9493 15.7754 65.0159 15.7754C66.0639 15.7754 66.8779 15.476 67.458 14.8772C68.0569 14.2597 68.3563 13.3427 68.3563 12.1263V0.701755C68.3563 0.495907 68.4218 0.327486 68.5528 0.196492C68.7025 0.0654973 68.8709 0 69.058 0H72.7072C72.8943 0 73.0534 0.0654973 73.1844 0.196492C73.3341 0.327486 73.4089 0.495907 73.4089 0.701755V12.1544C73.4089 13.9322 73.0627 15.4012 72.3703 16.5614C71.6779 17.7029 70.7048 18.5544 69.451 19.1158C68.1972 19.6585 66.7189 19.9298 65.0159 19.9298Z",fill:"black"}),b.createElement("path",{d:"M78.1138 19.6491C77.908 19.6491 77.7396 19.5836 77.6086 19.4526C77.4776 19.3216 77.4121 19.1532 77.4121 18.9474V0.701755C77.4121 0.495907 77.4776 0.327486 77.6086 0.196492C77.7396 0.0654973 77.908 0 78.1138 0H85.7489C88.163 0 90.0624 0.561404 91.4472 1.68421C92.8507 2.7883 93.5524 4.36023 93.5524 6.4C93.5524 7.72866 93.225 8.85146 92.57 9.76842C91.9337 10.6854 91.0916 11.3778 90.0437 11.8456L93.9174 18.7509C93.9735 18.8632 94.0016 18.9661 94.0016 19.0597C94.0016 19.2094 93.9361 19.3497 93.8051 19.4807C93.6928 19.593 93.5524 19.6491 93.384 19.6491H89.6788C89.3232 19.6491 89.0612 19.5649 88.8928 19.3965C88.7244 19.2094 88.6027 19.0409 88.5279 18.8912L85.3279 12.7158H82.4367V18.9474C82.4367 19.1532 82.3712 19.3216 82.2402 19.4526C82.1092 19.5836 81.9407 19.6491 81.7349 19.6491H78.1138ZM82.4367 8.7579H85.6928C86.5723 8.7579 87.2273 8.54269 87.6577 8.11228C88.1068 7.68187 88.3314 7.0924 88.3314 6.34386C88.3314 5.61404 88.1162 5.02456 87.6858 4.57544C87.2741 4.12632 86.6097 3.90175 85.6928 3.90175H82.4367V8.7579Z",fill:"black"}),b.createElement("path",{d:"M95.9762 19.6491C95.8265 19.6491 95.6861 19.593 95.5551 19.4807C95.4428 19.3497 95.3867 19.2094 95.3867 19.0597C95.3867 18.9661 95.3961 18.8819 95.4148 18.807L102.011 0.785965C102.067 0.580117 102.179 0.40234 102.348 0.252632C102.535 0.0842106 102.788 0 103.106 0H107.26C107.578 0 107.822 0.0842106 107.99 0.252632C108.177 0.40234 108.299 0.580117 108.355 0.785965L114.923 18.807C114.961 18.8819 114.979 18.9661 114.979 19.0597C114.979 19.2094 114.914 19.3497 114.783 19.4807C114.671 19.593 114.53 19.6491 114.362 19.6491H110.909C110.629 19.6491 110.413 19.5836 110.264 19.4526C110.133 19.3029 110.048 19.1719 110.011 19.0597L108.916 16.1965H101.422L100.355 19.0597C100.318 19.1719 100.233 19.3029 100.102 19.4526C99.9715 19.5836 99.7469 19.6491 99.4288 19.6491H95.9762ZM102.572 12.1544H107.794L105.155 4.74386L102.572 12.1544Z",fill:"black"}),b.createElement("path",{d:"M118.176 19.6491C117.971 19.6491 117.802 19.5836 117.671 19.4526C117.54 19.3216 117.475 19.1532 117.475 18.9474V0.701755C117.475 0.495907 117.54 0.327486 117.671 0.196492C117.802 0.0654973 117.971 0 118.176 0H121.882C122.069 0 122.228 0.0654973 122.359 0.196492C122.509 0.327486 122.583 0.495907 122.583 0.701755V15.4105H131.061C131.266 15.4105 131.435 15.4854 131.566 15.6351C131.716 15.7661 131.79 15.9345 131.79 16.1404V18.9474C131.79 19.1532 131.716 19.3216 131.566 19.4526C131.435 19.5836 131.266 19.6491 131.061 19.6491H118.176Z",fill:"black"}),b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M237.794 9.765C237.718 9.809 237.732 9.9233 237.814 9.9522C240.133 10.7655 242.849 14.0152 244.971 14.4609C242.897 14.2089 240.054 11.9604 237.874 11.2813C237.226 11.0791 236.535 11.24 235.958 11.5989C234.762 12.343 233.656 13.3158 232.851 14.4609C232.851 14.4609 233.593 12.0135 234.678 10.5667C238.143 5.9486 254.691 4.0247 254.691 4.2072L250.994 6.2438C250.723 6.3929 250.431 6.4993 250.127 6.5592L246.158 7.3433C246.068 7.361 246.045 7.4777 246.123 7.5252C246.967 8.0419 250.056 9.9275 251.203 10.5667L244.976 8.5138C244.175 8.2499 243.321 8.1931 242.484 8.2961C241.121 8.4638 239.741 8.6279 237.794 9.765ZM230.034 16.1348C230.659 12.916 231.582 7.4078 236.86 4.5605C242.414 1.1653 251.697 3.6497 259.942 0C257.458 4.931 256.811 9.8913 252.541 14.4115C244.327 22.5225 234.561 15.9095 232.851 16.477C231.82 16.5456 230.993 17.0028 230.513 17.162C230.033 17.3212 229.937 16.6395 230.034 16.1348Z",fill:"#5DC883"}),b.createElement("path",{d:"M142.702 19.9303C142.496 19.9303 142.327 19.8649 142.196 19.7339C142.065 19.6029 142 19.4345 142 19.2286V0.98295C142 0.77715 142.065 0.608751 142.196 0.477751C142.327 0.346751 142.496 0.28125 142.702 0.28125H146.407C146.594 0.28125 146.753 0.346751 146.884 0.477751C147.034 0.608751 147.109 0.77715 147.109 0.98295V15.6918H155.586C155.792 15.6918 155.96 15.7666 156.091 15.9163C156.241 16.0473 156.316 16.2157 156.316 16.4215V19.2286C156.316 19.4345 156.241 19.6029 156.091 19.7339C155.96 19.8649 155.792 19.9303 155.586 19.9303H142.702Z",fill:"black"}),b.createElement("path",{d:"M159.731 19.9303C159.525 19.9303 159.357 19.8649 159.226 19.7339C159.095 19.6029 159.029 19.4345 159.029 19.2286V0.98295C159.029 0.77715 159.095 0.608751 159.226 0.477751C159.357 0.346751 159.525 0.28125 159.731 0.28125H163.492C163.698 0.28125 163.867 0.346751 163.998 0.477751C164.129 0.608751 164.194 0.77715 164.194 0.98295V19.2286C164.194 19.4345 164.129 19.6029 163.998 19.7339C163.867 19.8649 163.698 19.9303 163.492 19.9303H159.731Z",fill:"black"}),b.createElement("path",{d:"M169.114 19.9303C168.908 19.9303 168.74 19.8649 168.609 19.7339C168.478 19.6029 168.412 19.4345 168.412 19.2286V0.98295C168.412 0.77715 168.478 0.608751 168.609 0.477751C168.74 0.346751 168.908 0.28125 169.114 0.28125H172.089C172.407 0.28125 172.632 0.356051 172.763 0.505751C172.913 0.636751 173.006 0.73975 173.044 0.81455L179.893 11.6215V0.98295C179.893 0.77715 179.958 0.608751 180.089 0.477751C180.22 0.346751 180.389 0.28125 180.595 0.28125H183.963C184.169 0.28125 184.337 0.346751 184.468 0.477751C184.599 0.608751 184.665 0.77715 184.665 0.98295V19.2286C184.665 19.4158 184.599 19.5842 184.468 19.7339C184.337 19.8649 184.169 19.9303 183.963 19.9303H180.96C180.66 19.9303 180.436 19.8555 180.286 19.7058C180.155 19.5561 180.071 19.4532 180.033 19.3971L173.184 9.01105V19.2286C173.184 19.4345 173.119 19.6029 172.988 19.7339C172.857 19.8649 172.688 19.9303 172.482 19.9303H169.114Z",fill:"black"}),b.createElement("path",{d:"M189.569 19.9303C189.363 19.9303 189.195 19.8649 189.064 19.7339C188.933 19.6029 188.867 19.4345 188.867 19.2286V0.98295C188.867 0.77715 188.933 0.608751 189.064 0.477751C189.195 0.346751 189.363 0.28125 189.569 0.28125H193.106C193.312 0.28125 193.48 0.346751 193.611 0.477751C193.742 0.608751 193.808 0.77715 193.808 0.98295V7.21455L199.001 0.81455C199.075 0.70225 199.197 0.589951 199.365 0.477751C199.553 0.346751 199.796 0.28125 200.095 0.28125H204.137C204.306 0.28125 204.446 0.346751 204.558 0.477751C204.671 0.589951 204.727 0.72095 204.727 0.87075C204.727 1.00165 204.689 1.11395 204.615 1.20755L197.906 9.68475L205.148 19.004C205.223 19.0788 205.26 19.1911 205.26 19.3408C205.26 19.4905 205.195 19.6309 205.064 19.7619C204.951 19.8742 204.82 19.9303 204.671 19.9303H200.488C200.151 19.9303 199.889 19.8555 199.702 19.7058C199.534 19.5561 199.422 19.4439 199.365 19.369L193.808 12.4357V19.2286C193.808 19.4345 193.742 19.6029 193.611 19.7339C193.48 19.8649 193.312 19.9303 193.106 19.9303H189.569Z",fill:"black"}),b.createElement("path",{d:"M214.512 20.2105C212.641 20.2105 211.088 19.9485 209.853 19.4245C208.618 18.8818 207.682 18.1801 207.046 17.3193C206.409 16.4585 206.073 15.5415 206.035 14.5684C206.035 14.4187 206.091 14.2877 206.204 14.1754C206.335 14.0444 206.484 13.9789 206.653 13.9789H210.19C210.452 13.9789 210.648 14.0257 210.779 14.1193C210.929 14.2128 211.06 14.3345 211.172 14.4842C211.322 14.7649 211.528 15.0362 211.79 15.2982C212.07 15.5602 212.426 15.7754 212.856 15.9438C213.305 16.0935 213.857 16.1684 214.512 16.1684C215.598 16.1684 216.412 16 216.954 15.6631C217.516 15.3263 217.797 14.8678 217.797 14.2877C217.797 13.876 217.647 13.5392 217.347 13.2772C217.048 12.9965 216.562 12.7532 215.888 12.5473C215.233 12.3228 214.353 12.0982 213.249 11.8737C211.827 11.5742 210.611 11.1906 209.6 10.7228C208.608 10.2362 207.85 9.6093 207.326 8.8421C206.802 8.0561 206.54 7.083 206.54 5.9228C206.54 4.7813 206.859 3.7614 207.495 2.8631C208.15 1.9649 209.057 1.2631 210.218 0.7579C211.378 0.2526 212.753 0 214.344 0C215.635 0 216.767 0.168401 217.74 0.505201C218.732 0.842101 219.565 1.2912 220.239 1.8526C220.912 2.414 221.418 3.0128 221.754 3.6491C222.11 4.2666 222.297 4.8748 222.316 5.4737C222.316 5.6234 222.26 5.7637 222.147 5.8947C222.035 6.007 221.895 6.0631 221.726 6.0631H218.021C217.815 6.0631 217.638 6.0257 217.488 5.9508C217.338 5.876 217.207 5.7544 217.095 5.5859C216.983 5.1742 216.683 4.8187 216.197 4.5193C215.729 4.2011 215.111 4.0421 214.344 4.0421C213.521 4.0421 212.875 4.1918 212.407 4.4912C211.958 4.7719 211.733 5.2117 211.733 5.8105C211.733 6.1848 211.855 6.5123 212.098 6.793C212.36 7.0737 212.781 7.3169 213.361 7.5228C213.96 7.7286 214.774 7.9438 215.804 8.1684C217.507 8.4865 218.882 8.8889 219.93 9.3754C220.978 9.8433 221.745 10.4608 222.232 11.228C222.718 11.9766 222.961 12.9216 222.961 14.0631C222.961 15.3356 222.597 16.4397 221.867 17.3754C221.156 18.2924 220.164 18.9941 218.891 19.4807C217.619 19.9672 216.159 20.2105 214.512 20.2105Z",fill:"black"})),X4e=e=>b.createElement("svg",{width:30,height:19,viewBox:"0 0 30 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},b.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.794 9.765C7.718 9.809 7.73199 9.9233 7.81399 9.9522C10.133 10.7655 12.849 14.0152 14.971 14.4609C12.897 14.2089 10.054 11.9604 7.87398 11.2813C7.22598 11.0791 6.53498 11.24 5.95798 11.5989C4.76198 12.343 3.65599 13.3158 2.85099 14.4609C2.85099 14.4609 3.59298 12.0135 4.67798 10.5667C8.14298 5.9486 24.691 4.0247 24.691 4.2072L20.994 6.2438C20.723 6.3929 20.431 6.4993 20.127 6.5592L16.158 7.3433C16.068 7.361 16.045 7.4777 16.123 7.5252C16.967 8.0419 20.056 9.9275 21.203 10.5667L14.976 8.5138C14.175 8.2499 13.321 8.1931 12.484 8.2961C11.121 8.4638 9.741 8.6279 7.794 9.765ZM0.0339877 16.1348C0.658988 12.916 1.58199 7.4078 6.85999 4.5605C12.414 1.1653 21.697 3.6497 29.942 0C27.458 4.931 26.811 9.8913 22.541 14.4115C14.327 22.5225 4.56099 15.9095 2.85099 16.477C1.81999 16.5456 0.992992 17.0028 0.512992 17.162C0.0329917 17.3212 -0.0630123 16.6395 0.0339877 16.1348Z",fill:"#5DC883"})),Z4e=()=>{const[e,t]=b.useState({width:0,height:0}),n=()=>{t({width:window.innerWidth,height:window.innerHeight})};return b.useLayoutEffect(()=>(n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)),[]),e},oU=({onlyDesktop:e})=>{const{width:t}=Z4e(),n=xt(r4),r=xt(nU),i=n?I2:r?cA:Jo.auth.path,a=e?y.jsx(n6,{}):t<=600?y.jsx(X4e,{}):y.jsx(n6,{});return y.jsx(Oe,{component:_0,to:i,display:"flex",children:a})},Q4e=()=>(b.useEffect(()=>{console.log("AuthLayout")},[]),y.jsxs(Oe,{className:"auth-layout",padding:3,marginTop:4,children:[y.jsx(Oe,{display:"flex",justifyContent:"center",paddingBottom:3,children:y.jsx(oU,{onlyDesktop:!0})}),y.jsx(Oe,{display:"flex",justifyContent:"center",height:"100%",padding:3,border:"1px solid #c8c8c8",flexDirection:"column",maxWidth:"500px",width:"100$",margin:"0 auto",borderRadius:1,children:y.jsx(Y_,{})}),y.jsx(Oe,{display:"flex",justifyContent:"center",padding:3,children:y.jsx(Jt,{textAlign:"center",children:"Natural Links, 2025 © All Rights Reserved"})})]})),J4e=Kr(y.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),eDe=Kr(y.jsx("path",{d:"M3 18h13v-2H3zm0-5h10v-2H3zm0-7v2h13V6zm18 9.59L17.42 12 21 8.41 19.59 7l-5 5 5 5z"})),yM=b.createContext(null);function tDe(e){const t=b.useContext(gM),n=E1(),r=b.useContext(yM),o={...n,...r};return y.jsx(B0,{disableElevation:!0,variant:"contained",size:"small",onClick:t==null?void 0:t.signIn,sx:{textTransform:"capitalize",filter:"opacity(0.9)",width:"50%",margin:i=>`${i.spacing(1)} auto`,transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},...e,children:o==null?void 0:o.accountSignInLabel})}const nDe=Kr(y.jsx("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}));var r6;function rDe(e){const t=b.useContext(gM),n=E1(),r=b.useContext(yM),o={...n,...r};return y.jsx(B0,{disabled:!t,variant:"outlined",size:"small",disableElevation:!0,onClick:t==null?void 0:t.signOut,sx:{textTransform:"capitalize",fontWeight:"normal",filter:"opacity(0.9)",transition:"filter 0.2s ease-in","&:hover":{filter:"opacity(1)"}},startIcon:r6||(r6=y.jsx(nDe,{})),...e,children:o==null?void 0:o.accountSignOutLabel})}const oDe=Kr(y.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2"}));var o6;function i6(e){var g,w,C,S,E,T,I;const{slots:t,variant:n="condensed",slotProps:r,open:o,handleClick:i,sx:a}=e,l=b.useContext(t4),u=E1(),d=b.useContext(yM),f={...u,...d};if(!l||!l.user)return null;const m=t!=null&&t.avatar?y.jsx(t.avatar,{}):y.jsx(LF,{src:((g=l.user)==null?void 0:g.image)||"",alt:((w=l.user)==null?void 0:w.name)||((C=l.user)==null?void 0:C.email)||"",sx:{height:n==="expanded"?48:32,width:n==="expanded"?48:32},...r==null?void 0:r.avatar});return n==="expanded"?y.jsxs(va,{direction:"row",justifyContent:"space-between",sx:{py:1,px:2,gap:2,...a},children:[y.jsxs(va,{direction:"row",justifyContent:"flex-start",spacing:2,overflow:"hidden",children:[m,y.jsxs(va,{direction:"column",justifyContent:"space-evenly",overflow:"hidden",children:[y.jsx(Jt,{variant:"body2",fontWeight:"bolder",noWrap:!0,children:(S=l.user)==null?void 0:S.name}),y.jsx(Jt,{variant:"caption",noWrap:!0,children:(E=l.user)==null?void 0:E.email})]})]}),i&&(t!=null&&t.moreIconButton?y.jsx(t.moreIconButton,{}):y.jsx(Ur,{size:"small",onClick:i,...r==null?void 0:r.moreIconButton,sx:{alignSelf:"center",...(T=r==null?void 0:r.moreIconButton)==null?void 0:T.sx},children:o6||(o6=y.jsx(oDe,{fontSize:"small"}))}))]}):y.jsx(U0,{title:l.user.name??(d==null?void 0:d.accountPreviewTitle),children:t!=null&&t.avatarIconButton?y.jsx(t.avatarIconButton,{...r==null?void 0:r.avatarIconButton}):y.jsx(va,{sx:{py:.5,...a},children:y.jsx(Ur,{onClick:i,"aria-label":f==null?void 0:f.accountPreviewIconButtonLabel,size:"small","aria-controls":o?"account-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,...r==null?void 0:r.avatarIconButton,sx:{width:"fit-content",margin:"0 auto",...(I=r==null?void 0:r.avatarIconButton)==null?void 0:I.sx},children:m})})})}function iDe(e){const{children:t,...n}=e;return y.jsx(va,{...n,children:t})}function aDe(e){const{children:t,...n}=e;return y.jsx(Oe,{...n,sx:{display:"flex",flexDirection:"row",p:1,justifyContent:"flex-end",...n.sx},children:t})}var a6,s6;const sDe={accountPreviewIconButtonLabel:"Current User",accountPreviewTitle:"Account",accountSignInLabel:"Sign in",accountSignOutLabel:"Sign out"};function lDe(e){var C;const{localeText:t}=e,n=E1(),r=b.useMemo(()=>({...sDe,...n,...t}),[n,t]),{slots:o,slotProps:i}=e,[a,l]=b.useState(null),u=b.useContext(t4),d=b.useContext(gM),f=!!a,m=S=>{l(S.currentTarget)},g=()=>{l(null)};if(!d)return null;let w=null;return u!=null&&u.user?w=y.jsxs(b.Fragment,{children:[o!=null&&o.preview?y.jsx(o.preview,{handleClick:m,open:f}):y.jsx(i6,{variant:"condensed",handleClick:m,open:f,...i==null?void 0:i.preview}),o!=null&&o.popover?y.jsx(o.popover,{open:f,onClick:m,onClose:g,...i==null?void 0:i.popover}):y.jsx(e9,{anchorEl:a,id:"account-menu",open:f,onClose:g,onClick:g,transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"bottom"},...i==null?void 0:i.popover,slotProps:{paper:{elevation:0,sx:{overflow:"visible",filter:S=>`drop-shadow(0px 2px 8px ${S.palette.mode==="dark"?"rgba(255,255,255,0.10)":"rgba(0,0,0,0.32)"})`,mt:1,"&::before":{content:'""',display:"block",position:"absolute",top:0,right:14,width:10,height:10,bgcolor:"background.paper",transform:"translateY(-50%) rotate(45deg)",zIndex:0}}},...(C=i==null?void 0:i.popover)==null?void 0:C.slotProps},children:o!=null&&o.popoverContent?y.jsx(o.popoverContent,{...i==null?void 0:i.popoverContent}):y.jsxs(va,{direction:"column",...i==null?void 0:i.popoverContent,children:[a6||(a6=y.jsx(iDe,{children:y.jsx(i6,{variant:"expanded"})})),s6||(s6=y.jsx(Zi,{})),y.jsx(aDe,{children:y.jsx(rDe,{...i==null?void 0:i.signOutButton})})]})})]}):w=o!=null&&o.signInButton?y.jsx(o.signInButton,{onClick:d.signIn}):y.jsx(tDe,{...i==null?void 0:i.signInButton}),y.jsx(yM.Provider,{value:r,children:w})}function cDe(e){for(var t=[],n=0;n<e.length;){var r=e[n];if(r==="*"||r==="+"||r==="?"){t.push({type:"MODIFIER",index:n,value:e[n++]});continue}if(r==="\\"){t.push({type:"ESCAPED_CHAR",index:n++,value:e[n++]});continue}if(r==="{"){t.push({type:"OPEN",index:n,value:e[n++]});continue}if(r==="}"){t.push({type:"CLOSE",index:n,value:e[n++]});continue}if(r===":"){for(var o="",i=n+1;i<e.length;){var a=e.charCodeAt(i);if(a>=48&&a<=57||a>=65&&a<=90||a>=97&&a<=122||a===95){o+=e[i++];continue}break}if(!o)throw new TypeError("Missing parameter name at ".concat(n));t.push({type:"NAME",index:n,value:o}),n=i;continue}if(r==="("){var l=1,u="",i=n+1;if(e[i]==="?")throw new TypeError('Pattern cannot start with "?" at '.concat(i));for(;i<e.length;){if(e[i]==="\\"){u+=e[i++]+e[i++];continue}if(e[i]===")"){if(l--,l===0){i++;break}}else if(e[i]==="("&&(l++,e[i+1]!=="?"))throw new TypeError("Capturing groups are not allowed at ".concat(i));u+=e[i++]}if(l)throw new TypeError("Unbalanced pattern at ".concat(n));if(!u)throw new TypeError("Missing pattern at ".concat(n));t.push({type:"PATTERN",index:n,value:u}),n=i;continue}t.push({type:"CHAR",index:n,value:e[n++]})}return t.push({type:"END",index:n,value:""}),t}function uDe(e,t){t===void 0&&(t={});for(var n=cDe(e),r=t.prefixes,o=r===void 0?"./":r,i=t.delimiter,a=i===void 0?"/#?":i,l=[],u=0,d=0,f="",m=function(D){if(d<n.length&&n[d].type===D)return n[d++].value},g=function(D){var _=m(D);if(_!==void 0)return _;var $=n[d],B=$.type,V=$.index;throw new TypeError("Unexpected ".concat(B," at ").concat(V,", expected ").concat(D))},w=function(){for(var D="",_;_=m("CHAR")||m("ESCAPED_CHAR");)D+=_;return D},C=function(D){for(var _=0,$=a;_<$.length;_++){var B=$[_];if(D.indexOf(B)>-1)return!0}return!1},S=function(D){var _=l[l.length-1],$=D||(_&&typeof _=="string"?_:"");if(_&&!$)throw new TypeError('Must have text between two parameters, missing text after "'.concat(_.name,'"'));return!$||C($)?"[^".concat(zd(a),"]+?"):"(?:(?!".concat(zd($),")[^").concat(zd(a),"])+?")};d<n.length;){var E=m("CHAR"),T=m("NAME"),I=m("PATTERN");if(T||I){var k=E||"";o.indexOf(k)===-1&&(f+=k,k=""),f&&(l.push(f),f=""),l.push({name:T||u++,prefix:k,suffix:"",pattern:I||S(k),modifier:m("MODIFIER")||""});continue}var R=E||m("ESCAPED_CHAR");if(R){f+=R;continue}f&&(l.push(f),f="");var P=m("OPEN");if(P){var k=w(),O=m("NAME")||"",j=m("PATTERN")||"",F=w();g("CLOSE"),l.push({name:O||(j?u++:""),pattern:O&&!j?S(k):j,prefix:k,suffix:F,modifier:m("MODIFIER")||""});continue}g("END")}return l}function zd(e){return e.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1")}function iU(e){return e&&e.sensitive?"":"i"}function dDe(e,t){return e}function fDe(e,t,n){var r=e.map(function(o){return aU(o,t,n).source});return new RegExp("(?:".concat(r.join("|"),")"),iU(n))}function pDe(e,t,n){return hDe(uDe(e,n),t,n)}function hDe(e,t,n){n===void 0&&(n={});for(var r=n.strict,o=r===void 0?!1:r,i=n.start,a=i===void 0?!0:i,l=n.end,u=l===void 0?!0:l,d=n.encode,f=d===void 0?function(_){return _}:d,m=n.delimiter,g=m===void 0?"/#?":m,w=n.endsWith,C=w===void 0?"":w,S="[".concat(zd(C),"]|$"),E="[".concat(zd(g),"]"),T=a?"^":"",I=0,k=e;I<k.length;I++){var R=k[I];if(typeof R=="string")T+=zd(f(R));else{var P=zd(f(R.prefix)),O=zd(f(R.suffix));if(R.pattern)if(P||O)if(R.modifier==="+"||R.modifier==="*"){var j=R.modifier==="*"?"?":"";T+="(?:".concat(P,"((?:").concat(R.pattern,")(?:").concat(O).concat(P,"(?:").concat(R.pattern,"))*)").concat(O,")").concat(j)}else T+="(?:".concat(P,"(").concat(R.pattern,")").concat(O,")").concat(R.modifier);else{if(R.modifier==="+"||R.modifier==="*")throw new TypeError('Can not repeat "'.concat(R.name,'" without a prefix and suffix'));T+="(".concat(R.pattern,")").concat(R.modifier)}else T+="(?:".concat(P).concat(O,")").concat(R.modifier)}}if(u)o||(T+="".concat(E,"?")),T+=n.endsWith?"(?=".concat(S,")"):"$";else{var F=e[e.length-1],D=typeof F=="string"?E.indexOf(F[F.length-1])>-1:F===void 0;o||(T+="(?:".concat(E,"(?=").concat(S,"))?")),D||(T+="(?=".concat(E,"|").concat(S,")"))}return new RegExp(T,iU(n))}function aU(e,t,n){return e instanceof RegExp?dDe(e):Array.isArray(e)?fDe(e,t,n):pDe(e,t,n)}const mDe=e=>e.kind??"page",T1=e=>mDe(e)==="page",lh=e=>T1(e)?e.title??e.segment??"":e.title;function gDe(e){const t=new Map,n=(r,o)=>{if(T1(r)){const i=`${o.startsWith("/")?o:`/${o}`}${o&&o!=="/"&&r.segment?"/":""}${r.segment||""}`||"/";if(t.set(r,i),r.children)for(const a of r.children)n(a,i)}};for(const r of e)n(r,"");return t}const l6=new WeakMap;function bDe(e){let t=l6.get(e);return t||(t=gDe(e),l6.set(e,t)),t}function yDe(e){const t=new Map,n=r=>{if(T1(r)){const o=j0(e,r);if(t.has(o)&&console.warn(`Duplicate path in navigation: ${o}`),t.set(o,r),r.pattern){const i=r.segment?o.slice(0,-r.segment.length):o;t.set(aU(i+r.pattern),r)}if(r.children)for(const i of r.children)n(i)}};for(const r of e)n(r);return t}const c6=new WeakMap;function vDe(e){let t=c6.get(e);return t||(t=yDe(e),c6.set(e,t)),t}function hI(e,t){const n=vDe(e);for(const[r,o]of n.entries())if(typeof r=="string"&&r===t||r instanceof RegExp&&r.test(t))return o;return null}function j0(e,t){const r=bDe(e).get(t);return L0(r,`Item not found in navigation: ${t.title}`),r}function o4(e,t,n){return t.children?t.children.some(r=>T1(r)?r.children?o4(e,r,n):n===j0(e,r):!1):!1}function kE(e,t){return{transition:n=>n.transitions.create(t,{easing:n.transitions.easing.sharp,duration:e?n.transitions.duration.enteringScreen:n.transitions.duration.leavingScreen})}}function u6(e){return{...kE(e,"width"),overflowX:"hidden"}}function i4(){const e=b.useContext(ab),t=b.useContext(mM),n=(t==null?void 0:t.pathname)??"/",r=hI(e,n),o=hI(e,"/");return b.useMemo(()=>{if(!r)return null;const i=[];o&&i.push({title:lh(o),path:"/"});const a=n.split("/").filter(Boolean);let l="";for(const u of a){const d=`${l}/${u}`;l=d;const f=hI(e,d);if(!f)continue;const m=j0(e,f),g=i[i.length-1];(g==null?void 0:g.path)!==m&&i.push({title:lh(f),path:m})}return{title:lh(r),path:j0(e,r),breadcrumbs:i}},[r,o,n,e])}const xDe=Kr(y.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"})),wDe=b.forwardRef(function(t,n){const{children:r,href:o,onClick:i,history:a,...l}=t,u=b.useContext(mM),d=b.useMemo(()=>u?f=>{f.preventDefault();const m=new URL(f.currentTarget.href);u.navigate(m.pathname,{history:a}),i==null||i(f)}:i,[u,i,a]);return y.jsx("a",{ref:n,href:o,...l,onClick:d,children:r})}),a4=b.forwardRef(function(t,n){const r=b.useContext(mM),o=(r==null?void 0:r.Link)??wDe;return y.jsx(o,{ref:n,...t,children:t.children})}),PE=84,CDe=Te(GJ)(({theme:e})=>({borderRadius:8,"&.Mui-selected":{"& .MuiListItemIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiTypography-root":{color:(e.vars??e).palette.primary.dark},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.primary.dark},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.primary.dark},"& .MuiTouchRipple-child":{backgroundColor:(e.vars??e).palette.primary.dark}},"& .MuiSvgIcon-root":{color:(e.vars??e).palette.action.active},"& .MuiAvatar-root":{backgroundColor:(e.vars??e).palette.action.active}})),mI=34;function SDe(e){const t=b.useContext(ab),n=b.useContext(QH);L0(n,"No navigation page item context provided.");const r={...n,...e},{item:o,href:i=j0(t,o),LinkComponent:a,expanded:l=!1,selected:u=!1,disabled:d=!1,id:f,onClick:m,isMini:g=!1,isSidebarFullyExpanded:w=!0,isSidebarFullyCollapsed:C=!1,renderNestedNavigation:S}=r,[E,T]=b.useState(null),I=b.useCallback(()=>{m(f,o)},[f,o,m]);let k={display:"none"};g&&C?k={fontSize:18,position:"absolute",top:"41.5%",right:"2px",transform:"translateY(-50%) rotate(-90deg)"}:!g&&w&&(k={ml:.5,transform:`rotate(${l?0:-90}deg)`,transition:F=>F.transitions.create("transform",{easing:F.transitions.easing.sharp,duration:100})});const R=i.startsWith("http://")||i.startsWith("https://"),P=a??(R?"a":a4),O=lh(o),j=y.jsxs(QJ,{...o.children&&g?{onMouseEnter:()=>{T(f)},onMouseLeave:()=>{T(null)}}:{},sx:{py:0,px:1,overflowX:"hidden"},children:[y.jsxs(CDe,{selected:u,disabled:d,sx:{px:1.4,height:g?60:48},...o.children&&!g?{onClick:I}:{},...o.children?{}:{LinkComponent:P,...R?{target:"_blank",rel:"noopener noreferrer"}:{},href:i,onClick:I},children:[o.icon||g?y.jsxs(Oe,{sx:g?{position:"absolute",left:"50%",top:"calc(50% - 6px)",transform:"translate(-50%, -50%)"}:{},children:[y.jsxs(sx,{sx:{display:"flex",alignItems:"center",justifyContent:"center",minWidth:mI},children:[o.icon??null,!o.icon&&g?y.jsx(LF,{sx:{width:mI-7,height:mI-7,fontSize:12},children:O.split(" ").slice(0,2).map(F=>F.charAt(0).toUpperCase())}):null]}),g?y.jsx(Jt,{variant:"caption",sx:{position:"absolute",bottom:-18,left:"50%",transform:"translateX(-50%)",fontSize:10,fontWeight:500,textAlign:"center",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:PE-28},children:O}):null]}):null,g?null:y.jsx(m2,{primary:O,sx:{ml:1.2,whiteSpace:"nowrap",zIndex:1}}),o.action&&!g&&w?o.action:null,o.children?y.jsx(xDe,{sx:k}):null]}),o.children&&g?y.jsx(dh,{in:f===E,children:y.jsx(Oe,{sx:{position:"fixed",left:PE-2,pl:"6px"},children:y.jsx(bl,{sx:{pt:.5,pb:.5,transform:"translateY(calc(50% - 30px))"},children:S(o.children)})})}):null]});return y.jsxs(b.Fragment,{children:[j,o.children&&!g?y.jsx(c2,{in:l,timeout:"auto",unmountOnExit:!0,children:S(o.children)}):null]},f)}function EDe({id:e,item:t,isExpanded:n,onClick:r,depth:o,onLinkClick:i,isMini:a,isFullyExpanded:l,isFullyCollapsed:u,sidebarExpandedWidth:d,renderPageItem:f}){const m=b.useContext(ab),g=i4(),w=!!g&&g.path===j0(m,t),C=g&&t.children&&a?o4(m,t,g.path):w&&!t.children,S=b.useMemo(()=>({expanded:n,selected:C,id:e,onClick:r,isMini:a,isSidebarFullyExpanded:l,isSidebarFullyCollapsed:u,renderNestedNavigation:()=>y.jsx(sU,{subNavigation:t.children??[],depth:o+1,onLinkClick:i,isPopover:a,sidebarExpandedWidth:d})}),[o,e,n,u,l,a,C,t.children,r,i,d]);return y.jsx(QH.Provider,{value:S,children:f?f(t,{mini:a}):y.jsx(SDe,{item:t})})}function sU({subNavigation:e,depth:t=0,onLinkClick:n,isMini:r=!1,isPopover:o=!1,isFullyExpanded:i=!0,isFullyCollapsed:a=!1,hasDrawerTransitions:l=!1,sidebarExpandedWidth:u,renderPageItem:d}){const f=b.useContext(ab),m=i4(),g=b.useMemo(()=>e.map((E,T)=>({navigationItem:E,originalIndex:T})).filter(({navigationItem:E})=>T1(E)&&!!m&&o4(f,E,m.path)).map(({originalIndex:E})=>`page-${t}-${E}`),[m,t,f,e]),[w,C]=b.useState(g),S=b.useCallback((E,T)=>{T.children&&!r?C(I=>I.includes(E)?I.filter(k=>k!==E):[...I,E]):T.children||n()},[r,n]);return y.jsx(KF,{sx:{padding:0,mt:o&&t===1?.5:0,mb:t===0&&!o?4:.5,pl:(o?1:2)*(o?t-1:t),minWidth:o&&t===1?240:"auto",width:r?PE:"auto"},children:e.map((E,T)=>{if(E.kind==="header")return y.jsx(p2,{sx:{fontSize:12,fontWeight:"700",height:r?0:40,...l?kE(i,"height"):{},px:2,minWidth:u,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap",zIndex:2},children:lh(E)},`subheader-${t}-${T}`);if(E.kind==="divider"){const k=e[T+1];return y.jsx("li",{children:y.jsx(Zi,{sx:{borderBottomWidth:2,mx:1,mt:1,mb:(k==null?void 0:k.kind)==="header"&&!r?0:1,...l?kE(i,"margin"):{}}})},`divider-${t}-${T}`)}const I=`page-${t}-${T}`;return y.jsx(EDe,{id:I,item:E,isExpanded:w.includes(I),onClick:S,depth:t,onLinkClick:n,isMini:r,isFullyExpanded:i,isFullyCollapsed:a,sidebarExpandedWidth:u,renderPageItem:d},I)})})}const d6=Kr(y.jsx("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"})),f6=Kr(y.jsx("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}));function TDe(){return()=>{}}function MDe(){return!1}function kDe(){return!0}function PDe(){return b.useSyncExternalStore(TDe,MDe,kDe)}var p6,h6;function IDe(){const e=PDe(),t=bo(),{paletteMode:n,setPaletteMode:r,isDualTheme:o}=b.useContext(J_),i=b.useCallback(()=>{r(n==="dark"?"light":"dark")},[n,r]);return o?y.jsx(U0,{title:e?"Switch mode":`${n==="dark"?"Light":"Dark"} mode`,enterDelay:1e3,children:y.jsx("div",{children:y.jsx(Ur,{"aria-label":e?"Switch theme mode":`Switch to ${n==="dark"?"light":"dark"} mode`,onClick:i,sx:{color:(t.vars??t).palette.primary.dark},children:t.getColorSchemeSelector?y.jsxs(b.Fragment,{children:[y.jsx(d6,{sx:{display:"inline",[t.getColorSchemeSelector("dark")]:{display:"none"}}}),y.jsx(f6,{sx:{display:"none",[t.getColorSchemeSelector("dark")]:{display:"inline"}}})]}):y.jsx(b.Fragment,{children:e||n!=="dark"?p6||(p6=y.jsx(d6,{})):h6||(h6=y.jsx(f6,{}))})})})}):null}var m6;function ADe(){return m6||(m6=y.jsx(va,{direction:"row",alignItems:"center",children:y.jsx(IDe,{})}))}var g6,b6,y6,v6,x6;function RDe({size:e=40}){return y.jsxs("svg",{width:e,height:e,fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g6||(g6=y.jsxs("g",{mask:"url(#a)",children:[y.jsx("path",{d:"M22.74 27.73v-7.6l6.64-3.79v7.6l-6.64 3.79Z",fill:"#007FFF"}),y.jsx("path",{d:"M16.1 23.93v-7.59l6.64 3.8v7.59l-6.65-3.8Z",fill:"#39F"}),y.jsx("path",{d:"m16.1 16.34 6.64-3.8 6.64 3.8-6.64 3.8-6.65-3.8Z",fill:"#A5D8FF"})]})),y.jsx("mask",{id:"b",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"17",width:"14",height:"15",children:b6||(b6=y.jsx("path",{d:"M8.5 22.3c0-1.05.56-2 1.46-2.53l3.75-2.14c.89-.5 1.98-.5 2.87 0l3.75 2.14a2.9 2.9 0 0 1 1.46 2.52v4.23c0 1.04-.56 2-1.46 2.52l-3.75 2.14c-.89.5-1.98.5-2.87 0l-3.75-2.14a2.9 2.9 0 0 1-1.46-2.52v-4.23Z",fill:"#D7DCE1"}))}),y6||(y6=y.jsxs("g",{mask:"url(#b)",children:[y.jsx("path",{d:"M15.14 32v-7.6l6.65-3.8v7.6L15.14 32Z",fill:"#007FFF"}),y.jsx("path",{d:"M8.5 28.2v-7.6l6.64 3.8V32L8.5 28.2Z",fill:"#39F"}),y.jsx("path",{d:"m8.5 20.6 6.64-3.79 6.65 3.8-6.65 3.8-6.64-3.8Z",fill:"#A5D8FF"})]})),y.jsx("mask",{id:"c",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"8",y:"4",width:"22",height:"20",children:v6||(v6=y.jsx("path",{d:"M24.17 4.82a2.9 2.9 0 0 0-2.87 0L9.97 11.22a2.9 2.9 0 0 0-1.47 2.53v4.22c0 1.04.56 2 1.46 2.52l3.75 2.14c.89.5 1.98.5 2.87 0l11.33-6.42a2.9 2.9 0 0 0 1.47-2.52V9.48c0-1.04-.56-2-1.46-2.52l-3.75-2.14Z",fill:"#D7DCE1"}))}),x6||(x6=y.jsxs("g",{mask:"url(#c)",children:[y.jsx("path",{d:"M15.14 23.46v-7.6L29.38 7.8v7.59l-14.24 8.07Z",fill:"#007FFF"}),y.jsx("path",{d:"M8.5 19.66v-7.6l6.64 3.8v7.6l-6.64-3.8Z",fill:"#39F"}),y.jsx("path",{d:"M8.5 12.07 22.74 4l6.64 3.8-14.24 8.06-6.64-3.8Z",fill:"#A5D8FF"})]}))]})}function ODe(){const e=b.useContext(Q_);return(e==null?void 0:e.title)??"Toolpad"}var w6;const _De=Te("div")({position:"relative",height:40,display:"flex",alignItems:"center","& img":{maxHeight:40}});function DDe(e){var o,i,a;const t=bo(),n=ODe(),r=((o=e==null?void 0:e.branding)==null?void 0:o.title)??n;return y.jsx(a4,{href:((i=e==null?void 0:e.branding)==null?void 0:i.homeUrl)??"/",style:{textDecoration:"none"},children:y.jsxs(va,{direction:"row",alignItems:"center",children:[y.jsx(_De,{children:((a=e==null?void 0:e.branding)==null?void 0:a.logo)??(w6||(w6=y.jsx(RDe,{size:40})))}),y.jsx(Jt,{variant:"h6",sx:{color:(t.vars??t).palette.primary.main,fontWeight:"700",ml:1,whiteSpace:"nowrap",lineHeight:1},children:r})]})})}var C6,S6,E6;const LDe=Te(qY)(({theme:e})=>({borderWidth:0,borderBottomWidth:1,borderStyle:"solid",borderColor:(e.vars??e).palette.divider,boxShadow:"none",zIndex:e.zIndex.drawer+1}));function $De(e){const{children:t,branding:n,navigation:r,defaultSidebarCollapsed:o=!1,disableCollapsibleSidebar:i=!1,hideNavigation:a=!1,sidebarExpandedWidth:l=320,renderPageItem:u,slots:d,slotProps:f,sx:m}=e,g=bo(),w=b.useContext(Q_),C=b.useContext(ab),S=b.useContext(JH),E={...w,...n},T=r??C,[I,k]=b.useState(!o),[R,P]=b.useState(!1),O=g2(g.breakpoints.up("sm"),S&&{matchMedia:S.matchMedia}),j=g2(g.breakpoints.up("md"),S&&{matchMedia:S.matchMedia}),F=j?I:R,D=b.useCallback(re=>{j?k(re):P(re)},[j]),[_,$]=b.useState(F),[B,V]=b.useState(!F);b.useEffect(()=>{if(F){const re=setTimeout(()=>{$(!0)},g.transitions.duration.enteringScreen);return()=>clearTimeout(re)}return $(!1),()=>{}},[F,g]),b.useEffect(()=>{if(!F){const re=setTimeout(()=>{V(!0)},g.transitions.duration.leavingScreen);return()=>clearTimeout(re)}return V(!1),()=>{}},[F,g]);const q=b.useCallback(re=>()=>{D(re)},[D]),G=b.useCallback(()=>{D(!F)},[F,D]),N=b.useCallback(()=>{P(!1)},[P]),H=!i&&!I,Y=!i&&!R,Q=b.useCallback(re=>{const ke="Expand",Ce="Collapse";return y.jsx(U0,{title:`${re?Ce:ke} menu`,enterDelay:1e3,children:y.jsx("div",{children:y.jsx(Ur,{"aria-label":`${re?Ce:ke} navigation menu`,onClick:G,children:re?C6||(C6=y.jsx(eDe,{})):S6||(S6=y.jsx(J4e,{}))})})})},[G]),W=O&&(!i||j),K=(d==null?void 0:d.toolbarActions)??ADe,J=(d==null?void 0:d.toolbarAccount)??lDe,ae=(d==null?void 0:d.sidebarFooter)??null,ce=b.useCallback((re,ke)=>{var Ce;return y.jsxs(b.Fragment,{children:[E6||(E6=y.jsx(BS,{})),y.jsxs(Oe,{component:"nav","aria-label":`${ke.charAt(0).toUpperCase()}${ke.slice(1)}`,sx:{height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",overflow:"auto",scrollbarGutter:re?"stable":"auto",overflowX:"hidden",pt:((Ce=T[0])==null?void 0:Ce.kind)==="header"&&!re?0:2,...W?kE(_,"padding"):{}},children:[y.jsx(sU,{subNavigation:T,onLinkClick:N,isMini:re,isFullyExpanded:_,isFullyCollapsed:B,hasDrawerTransitions:W,sidebarExpandedWidth:l,renderPageItem:u}),ae?y.jsx(ae,{mini:re,...f==null?void 0:f.sidebarFooter}):null]})]})},[ae,N,W,B,_,T,l,u,f==null?void 0:f.sidebarFooter]),de=b.useCallback((re,ke)=>{const Ce=re?PE:l;return{displayPrint:"none",width:Ce,flexShrink:0,...u6(F),...ke?{position:"absolute"}:{},"& .MuiDrawer-paper":{position:"absolute",width:Ce,boxSizing:"border-box",backgroundImage:"none",...u6(F)}}},[F,l]);return y.jsxs(Oe,{sx:{position:"relative",display:"flex",overflow:"hidden",height:"100vh",width:"100vw",...m},children:[y.jsx(LDe,{color:"inherit",position:"absolute",sx:{displayPrint:"none"},children:y.jsx(BS,{sx:{backgroundColor:"inherit",mx:{xs:-.75,sm:-1}},children:y.jsxs(va,{direction:"row",justifyContent:"space-between",alignItems:"center",sx:{flexWrap:"wrap",width:"100%"},children:[y.jsxs(va,{direction:"row",children:[a?null:y.jsxs(b.Fragment,{children:[y.jsx(Oe,{sx:{mr:{sm:i?0:1},display:{md:"none"}},children:Q(R)}),y.jsx(Oe,{sx:{display:{xs:"none",md:i?"none":"block"},mr:i?0:1},children:Q(I)})]}),d!=null&&d.appTitle?y.jsx(d.appTitle,{...f==null?void 0:f.appTitle}):y.jsx(DDe,{branding:E,...f==null?void 0:f.appTitle})]}),y.jsxs(va,{direction:"row",alignItems:"center",spacing:1,sx:{marginLeft:"auto"},children:[y.jsx(K,{...f==null?void 0:f.toolbarActions}),y.jsx(J,{...f==null?void 0:f.toolbarAccount})]})]})})}),a?null:y.jsxs(b.Fragment,{children:[y.jsx(Gv,{container:S==null?void 0:S.document.body,variant:"temporary",open:R,onClose:q(!1),ModalProps:{keepMounted:!0},sx:{display:{xs:"block",sm:i?"block":"none",md:"none"},...de(!1,!0)},children:ce(!1,"phone")}),y.jsx(Gv,{variant:"permanent",sx:{display:{xs:"none",sm:i?"none":"block",md:"none"},...de(Y,!1)},children:ce(Y,"tablet")}),y.jsx(Gv,{variant:"permanent",sx:{display:{xs:"none",md:"block"},...de(H,!1)},children:ce(H,"desktop")})]}),y.jsxs(Oe,{sx:{display:"flex",flexDirection:"column",flex:1,minWidth:0},children:[y.jsx(BS,{sx:{displayPrint:"none"}}),y.jsx(Oe,{component:"main",sx:{display:"flex",flexDirection:"column",flex:1,overflow:"auto"},children:t})]})]})}const jDe=Te("div")(({theme:e})=>({display:"flex",flexDirection:"row",gap:e.spacing(1),marginLeft:"auto"}));function FDe(e){return y.jsx(jDe,{...e})}const NDe=Te("div")(({theme:e})=>({display:"flex",flexDirection:"row",justifyContent:"space-between",gap:e.spacing(2)}));function zDe(e){var u,d;const{breadcrumbs:t,title:n}=e,r=i4(),o=t??(r==null?void 0:r.breadcrumbs)??[],i=n??(r==null?void 0:r.title)??"",a=((u=e==null?void 0:e.slots)==null?void 0:u.toolbar)??FDe,l=mi({elementType:a,ownerState:e,externalSlotProps:(d=e==null?void 0:e.slotProps)==null?void 0:d.toolbar,additionalProps:{}});return y.jsxs(va,{children:[y.jsx(xZ,{"aria-label":"breadcrumb",children:o?o.map((f,m)=>f.path?y.jsx(QR,{component:a4,underline:"hover",color:"inherit",href:f.path,children:lh(f)},m):y.jsx(Jt,{color:"text.primary",children:lh(f)},m)):null}),y.jsxs(NDe,{children:[i?y.jsx(Jt,{variant:"h4",children:i}):null,y.jsx(a,{...l})]})]})}function BDe(e){const{children:t,breadcrumbs:n,slots:r,slotProps:o,title:i,...a}=e,l=(r==null?void 0:r.header)??zDe;return y.jsx(UZ,{...a,sx:{flex:1,display:"flex",flexDirection:"column",...a.sx},children:y.jsxs(va,{sx:{flex:1,my:2},spacing:2,children:[y.jsx(l,{title:i,breadcrumbs:n,...o==null?void 0:o.header}),y.jsx(Oe,{sx:{flex:1,display:"flex",flexDirection:"column"},children:t})]})})}const HDe=Te(tT)(()=>({"& .MuiBadge-badge":{right:5,top:5,pointerEvents:"none"}})),UDe=()=>{const e=Sl(),{balance:t}=xt(bM),n=xt(YH),r=n==null?void 0:n.length,o=()=>e(_o.cart.path);return y.jsxs(Oe,{display:"flex",alignItems:"center",gap:1,children:[y.jsxs(Oe,{fontWeight:"600",display:"flex",gap:1,color:"#575757",children:[y.jsx(o_,{})," ",oo+t]}),y.jsx(U0,{title:"Open cart",enterDelay:1e3,children:y.jsx(HDe,{badgeContent:r,color:"primary",children:y.jsx(Ur,{type:"button","aria-label":"settings",onClick:o,sx:{color:"var(--mui-palette-Avatar-defaultBg)"},children:y.jsx(n7,{})})})})]})};function vM({block:e=!1}){const t=e?{flexGrow:1,height:"200px",alignItems:"center",justifyContent:"center"}:{};return y.jsx(Oe,{sx:{display:"flex",...t},children:y.jsx(YE,{})})}const GDe=()=>xt(m7)&&y.jsx(Oe,{position:"fixed",right:"16px",bottom:"16px",zIndex:"9999",children:y.jsx(vM,{})}),VDe=()=>y.jsx(va,{direction:"row",alignItems:"center",spacing:2,children:y.jsx(oU,{})}),WDe={".MuiStack-root > .MuiStack-root":{display:"none"}},T6=()=>{const e=Sl(),t=so(),n=xt(n4),r=xt(r4),o=xt(nU),i=LCe(n,location.pathname),a=o?UDe:void 0;return b.useEffect(()=>{console.log("MainLayout",{isValidPage:i})},[]),b.useEffect(()=>{var l;o&&(t(uz((l=JN.find(u=>u.value===QN.lowestPrice))==null?void 0:l.value)),t(au()),t(_A()),i||e(cA),location.pathname==="/"&&e(cA)),r&&(t(OA()),i||e(I2),location.pathname==="/"&&e(I2)),t(H2()),t(B2()),t(z2()),t(gx())},[n]),i?y.jsx($De,{slots:{appTitle:VDe,toolbarActions:a},children:y.jsxs(BDe,{breadcrumbs:[],title:"",sx:WDe,children:[y.jsx(Y_,{}),y.jsx(GDe,{})]})}):y.jsx(y.Fragment,{})};var Fp=(e=>(e.create_admin="create_admin",e.create_user="create_user",e.users="users",e.delete_user="delete_user",e.edit_user="edit_user",e.users_search="users_search",e))(Fp||{});const jg=e=>{const{name:t,userId:n}=e;switch(t){case"create_admin":return"/users/create/admin";case"create_user":return"/users/create";case"users":return"/users";case"users_search":return"/users/search";case"delete_user":return`/users/${n}/delete`;case"edit_user":return`/users/${n}/update`;default:return""}};class sb{static async create_admin(t){return hn.post(jg({name:Fp.create_admin}),{...t,APP_SECRET:t.secret})}static async create_user(t){return hn.post(jg({name:Fp.create_user}),t)}static async users(t){return hn.get(jg({name:Fp.users}),{params:{_page:t.page}})}static async delete_user(t){return hn.delete(jg({name:Fp.delete_user,userId:t}))}static async search(t){return hn.post(jg({name:Fp.users_search})+`?_page=${t.page}`,{query:t.query,type:t.type})}static async edit_user(t,n){return hn.post(jg({name:Fp.edit_user,userId:n}),t)}}const IE=ni("fetchUsers",async({page:e})=>(await sb.users({page:e})).data),AE=ni("fetchUsersSearch",async({query:e,page:t,type:n})=>(await sb.search({query:e,page:t,type:n})).data),qDe={users:{data:[],pagination:{},isLoading:!1},paginationModel:e1,query:"",type:P2.customers},lU=Mh({name:"usersSlice",initialState:qDe,reducers:{setUserPaginationModel:(e,t)=>{e.paginationModel=t.payload},setQuery:(e,t)=>{e.query=t.payload},setType:(e,t)=>{e.type=t.payload}},extraReducers:e=>{e.addCase(IE.pending,t=>{t.users.isLoading=!0}).addCase(IE.fulfilled,(t,n)=>{t.users.data=n.payload.data,t.users.pagination=n.payload.pagination,t.users.isLoading=!1}),e.addCase(AE.pending,t=>{t.users.isLoading=!0}).addCase(AE.fulfilled,(t,n)=>{t.users.data=n.payload.data,t.users.pagination=n.payload.pagination,t.users.isLoading=!1})}}),YDe=bn([e=>e.usersState.users],e=>e.data),KDe=bn([e=>e.usersState.users],e=>e.pagination),XDe=bn([e=>e.usersState.users],e=>e.isLoading),cU=bn([e=>e.usersState],e=>e.query),s4=bn([e=>e.usersState],e=>e.type),uU=bn([e=>e.usersState],e=>e.paginationModel),{setQuery:M6,setType:ZDe,setUserPaginationModel:k6}=lU.actions,QDe=lU.reducer,JDe=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),o=so(),[i,a]=b.useState(m5[0].value),[l,u]=b.useState(uA[0].value),d=Oh({initialValues:{name:"",email:""},validationSchema:Fbe,onSubmit:async m=>{try{const g={...m,status:l,role:i};r(!0),await sb.create_user(g).then(()=>{Ps("User has been successfully created"),o(IE({page:1})),t(!1)}).catch(()=>{}).finally(()=>{r(!1)})}catch{}}}),f=()=>d.submitForm();return y.jsx(ku,{maxWidth:"xs",title:"Create user",open:e,setOpen:t,onSubmit:f,submitText:"Create",loading:n,Trigger:y.jsx(rr,{variant:"outlined",sx:{height:"40px"},children:"Create user"}),children:y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(nr,{name:"name",label:"Name",placeholder:"Enter name",value:d.values.name,onChange:d.handleChange,error:d.touched.name&&!!d.errors.name,helperText:d.touched.name&&d.errors.name,onBlur:d.handleBlur}),y.jsx(nr,{name:"email",label:"Email",placeholder:"Enter email",value:d.values.email,onChange:d.handleChange,error:d.touched.email&&!!d.errors.email,helperText:d.touched.email&&d.errors.email,onBlur:d.handleBlur}),y.jsx(bu,{label:"Role",value:i,onChange:a,options:m5}),y.jsx(bu,{label:"Status",value:l,onChange:u,options:uA})]})})},e3e=({open:e,setOpen:t,data:n})=>{const[r,o]=b.useState(!1),i=so(),a=async()=>{try{o(!0),await sb.delete_user(n.id).then(()=>{Ps("User has been successfully deleted"),i(IE({page:1})),t(!1)}).catch(()=>{}).finally(()=>{o(!1)})}catch{}};return y.jsx(ku,{maxWidth:"xs",title:"Delete user",open:e,setOpen:t,onSubmit:a,submitText:"Delete",submitColor:"error",loading:r,children:y.jsxs(Jt,{children:["Are you sure you want to remove"," ",y.jsx(Jt,{fontWeight:"700",component:"span",children:n==null?void 0:n.name}),"?"]})})},t3e=({open:e,setOpen:t,data:n})=>{const[r,o]=b.useState(!1),i=so(),[a,l]=b.useState(n==null?void 0:n.balance),[u,d]=b.useState(n==null?void 0:n.status),[f,m]=b.useState(n==null?void 0:n.enabled),[g,w]=b.useState({}),C=xt(uU),S=xt(cU),E=xt(s4);b.useEffect(()=>{if(e){const{balance:R,status:P,enabled:O}=n;w({balance:R,status:P,enabled:O}),l(R),d(P),m(O)}},[e]);const T=async()=>{const P=NCe(g,{balance:a,status:u,enabled:f});try{o(!0),await sb.edit_user(P,n.id).then(()=>{Ps("User has been successfully updated"),i(AE({page:C.page,query:S,type:E})),t(!1)}).catch(()=>{}).finally(()=>{o(!1)})}catch{}},I=R=>l(Number(R)),k=Ua.isEqual(g,{balance:a,status:u,enabled:f});return y.jsx(ku,{maxWidth:"xs",title:"Edit user",open:e,setOpen:t,onSubmit:T,submitText:"Save",loading:r,disabled:k,children:y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:3,children:[y.jsx(bu,{label:"Status",value:u,onChange:d,options:uA}),y.jsx(nr,{startAdornment:oo,label:"Balance",placeholder:"number",value:a,onChangeValue:I,type:"Number"}),y.jsx(n_,{checked:f,setChecked:m,children:"Enabled"})]})})},n3e=()=>{const e=so(),t=xt(s4),n=r=>e(ZDe(r));return y.jsx(bu,{label:"Type",value:t,onChange:n,options:Ehe})},r3e=()=>{const e=so(),t=xt(YDe),n=xt(KDe),r=xt(XDe),[o,i]=b.useState(!1),[a,l]=b.useState(!1),[u,d]=b.useState(null),f=xt(uU),m=xt(cU),g=RO(m),w=xt(s4),C=[{field:"name",headerName:"Name",sortable:!0,width:180},{field:"email",headerName:"Email",width:250},{field:"balance",headerName:"Balance",width:90,valueGetter:T=>oo+T},{field:"enabled",headerName:"Enabled",width:90},{field:"status",headerName:"Status",width:90},{field:"role",headerName:"Role",width:90},{field:"createdAt",headerName:"Created",width:150,valueGetter:T=>zCe(T)},{field:"actions",type:"actions",headerName:"Actions",width:100,cellClassName:"actions",getActions:({row:T})=>[y.jsx(XI,{icon:y.jsx(o7,{}),label:"Edit",className:"textPrimary",color:"inherit",onClick:()=>{i(!0),d(T)}}),y.jsx(XI,{icon:y.jsx(i7,{}),label:"Delete",color:"inherit",onClick:()=>{l(!0),d(T)}})]}],S=()=>{e(M6("")),e(k6(e1))},E=T=>e(M6(T));return b.useEffect(()=>{e(AE({query:g,page:f.page,type:w}))},[e,g,f.page,w]),y.jsxs(Oe,{children:[y.jsxs(Oe,{display:"flex",mb:2,justifyContent:"space-between",flexDirection:{xs:"column",sm:"row"},gap:2,children:[y.jsx(GT,{sx:{paddingRight:1,width:{xs:"100%",sm:"300px"}},value:m,onChange:E,onClear:S,label:"Search by name or email",placeholder:"type name or email..."}),y.jsx(n3e,{})]}),y.jsx(AO,{sx:{height:{xs:"calc(100vh - 275px)",sm:"calc(100vh - 230px)"}},rows:t,loading:r,rowCount:n.totalCount||0,columns:C,paginationModel:f,onPaginationModelChange:T=>e(k6(T))}),y.jsx(t3e,{data:u,open:o,setOpen:i}),y.jsx(e3e,{data:u,open:a,setOpen:l})]})},o3e=()=>y.jsxs(Oe,{children:[y.jsx(yl,{title:"Users",end:y.jsx(JDe,{})}),y.jsx(r3e,{})]}),i3e=()=>y.jsx(Oe,{children:y.jsx(yl,{title:"Orders"})});var Np=(e=>(e.login="login",e.sign_up="sign_up",e.confirmation_send="confirmation_send",e.confirmation_verify="confirmation_verify",e.reset_send="reset_send",e.reset_verify="reset_verify",e))(Np||{});const Fg=e=>{const{name:t}=e;switch(t){case"login":return"/auth/login";case"sign_up":return"/auth/sign-up";case"confirmation_send":return"/auth/confirmation/send";case"confirmation_verify":return"/auth/confirmation/verify";case"reset_send":return"/auth/reset/send";case"reset_verify":return"/auth/reset/verify";default:return""}};class lb{static async login(t){return hn.post(Fg({name:Np.login}),t)}static async sign_up(t){return hn.post(Fg({name:Np.sign_up}),t)}static async confirmation_send(t){return hn.post(Fg({name:Np.confirmation_send}),t)}static async confirmation_verify(t){return hn.post(Fg({name:Np.confirmation_verify}),t)}static async reset_send(t){return hn.post(Fg({name:Np.reset_send}),t)}static async reset_verify(t){return hn.post(Fg({name:Np.reset_verify}),t)}}const a3e=()=>{const[e,t]=b.useState(!1),n=Sl(),r=Oh({initialValues:{email:"",password:""},validationSchema:Lbe,onSubmit:async i=>{try{t(!0),await lb.login(i).then(a=>{console.log(a),console.log("this",a.data.requiresConfirmation),a.data.requiresConfirmation&&(console.log("this",a.data.requiresConfirmation),P8(i),n(Jo.authConfirmEmail.path)),a.data.token&&(T8(a.data.token),A8(),n("/"))}).finally(()=>{t(!1)})}catch{return!1}}}),o=()=>r.submitForm();return y.jsxs(y.Fragment,{children:[y.jsx(nr,{name:"email",label:"Email",placeholder:"Enter email",value:r.values.email,onChange:r.handleChange,error:r.touched.email&&!!r.errors.email,helperText:r.touched.email&&r.errors.email,onBlur:r.handleBlur}),y.jsx(nr,{type:"password",name:"password",label:"Password",placeholder:"Enter password",value:r.values.password,onChange:r.handleChange,error:r.touched.password&&!!r.errors.password,helperText:r.touched.password&&r.errors.password,onBlur:r.handleBlur}),y.jsx(rr,{onClick:o,loading:e,children:"Sign in"}),y.jsx(rr,{variant:"text",to:Jo.forgotPassword.path,children:"Forgot your password?"})]})},s3e=({onBackClick:e})=>{const t=Sl(),[n,r]=b.useState(!0),[o,i]=b.useState(!1),[a,l]=b.useState(!1),u=Oh({initialValues:{name:"",email:"",password:"",confirm_password:""},validationSchema:_be,onSubmit:async f=>{try{i(!0),await lb.sign_up(f).then(m=>{console.log(m),P8(f),t(Jo.authConfirmEmail.path)}).finally(()=>{i(!1)})}catch{return!1}}});b.useEffect(()=>{n&&l(!1)},[n]);const d=()=>{n?u.submitForm():l(!0)};return y.jsxs(y.Fragment,{children:[y.jsx(nr,{name:"name",label:"Name",placeholder:"Enter name",value:u.values.name,onChange:u.handleChange,error:u.touched.name&&!!u.errors.name,helperText:u.touched.name&&u.errors.name,onBlur:u.handleBlur}),y.jsx(nr,{name:"email",label:"Email",placeholder:"Enter email",value:u.values.email,onChange:u.handleChange,error:u.touched.email&&!!u.errors.email,helperText:u.touched.email&&u.errors.email,onBlur:u.handleBlur}),y.jsx(nr,{type:"password",name:"password",label:"Password",placeholder:"Enter password",value:u.values.password,onChange:u.handleChange,error:u.touched.password&&!!u.errors.password,helperText:u.touched.password&&u.errors.password,onBlur:u.handleBlur}),y.jsx(nr,{type:"password",name:"confirm_password",label:"Confirm password",placeholder:"Confirm password",value:u.values.confirm_password,onChange:u.handleChange,error:u.touched.confirm_password&&!!u.errors.confirm_password,helperText:u.touched.confirm_password&&u.errors.confirm_password,onBlur:u.handleBlur}),y.jsx(n_,{checked:n,setChecked:r,error:a,helperText:"You must agree to the Terms & Conditions and Privacy Policy",children:y.jsxs(Jt,{fontWeight:"400",variant:"body2",children:["I agree with"," ",y.jsx(_0,{to:"/#",target:"_blank",children:"Terms & Conditions"})," ","and"," ",y.jsx(_0,{to:"/#",target:"_blank",children:"Privacy Policy"})]})}),y.jsx(rr,{onClick:d,loading:o,children:"Create account"}),y.jsx(rr,{variant:"text",onClick:e,children:"Already have account?"})]})};function P6(e){const{children:t,value:n,index:r}=e;return y.jsx("div",{role:"tabpanel",hidden:n!==r,children:n===r&&y.jsx(Oe,{paddingTop:2,display:"flex",flexDirection:"column",gap:2,children:t})})}const l3e=({value:e,setValue:t})=>{const n=(r,o)=>t(o);return y.jsxs(Oe,{children:[y.jsx(Oe,{children:y.jsxs(lne,{value:e,onChange:n,centered:!0,children:[y.jsx(GD,{label:"Sign In"}),y.jsx(GD,{label:"Create Account"})]})}),y.jsx(P6,{value:e,index:0,children:y.jsx(a3e,{})}),y.jsx(P6,{value:e,index:1,children:y.jsx(s3e,{onBackClick:()=>t(0)})})]})},c3e=()=>{const[e,t]=b.useState(0);return y.jsx(l3e,{value:e,setValue:t})},u3e=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),o=Oh({initialValues:{email:""},validationSchema:jbe,onSubmit:async({email:a})=>{try{r(!1),await lb.reset_send({email:a}).then(()=>{Ps("Email was send successfully"),t(!0)}).catch(()=>{}).finally(()=>{r(!0)})}catch{return!1}}}),i=()=>o.submitForm();return e?y.jsxs(Oe,{children:[y.jsx(Jt,{textAlign:"center",typography:"h5",children:"Please check you email"}),y.jsx(Jt,{textAlign:"center",typography:"body2",children:"You can close this page"})]}):y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{typography:"h5",children:"Reset Password"}),y.jsx(nr,{name:"email",label:"Email",placeholder:"Enter email",value:o.values.email,onChange:o.handleChange,error:o.touched.email&&!!o.errors.email,helperText:o.touched.email&&o.errors.email,onBlur:o.handleBlur}),y.jsx(rr,{onClick:i,loading:n,children:"Send code"}),y.jsx(rr,{variant:"text",to:Jo.auth.path,children:"Back to Sign In"})]})},d3e=()=>y.jsxs(Oe,{minHeight:"100vh",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",gap:2,children:[y.jsx(Jt,{children:"404"}),y.jsx(rr,{to:"/",children:"HOME"})]}),f3e=({children:e})=>y.jsx(_ge,{maxSnack:5,anchorOrigin:{horizontal:"center",vertical:"top"},children:e});var Wg=(e=>(e.pricing_domains="pricing_domains",e.pricing_domains_update="pricing_domains_update",e.pricing_content="pricing_content",e.pricing_content_update="pricing_content_update",e.pricing_calculate="pricing_calculate",e))(Wg||{});const kv=e=>{const{name:t}=e;switch(t){case"pricing_domains":return"/pricing/domains";case"pricing_domains_update":return"/pricing/domains/update";case"pricing_content":return"/pricing/content";case"pricing_content_update":return"/pricing/content/update";case"pricing_calculate":return"/pricing/calculate";default:return""}};class M1{static async pricing_domains(){return hn.get(kv({name:Wg.pricing_domains}))}static async pricing_domains_update(t){return hn.post(kv({name:Wg.pricing_domains_update}),{data:t})}static async pricing_content(){return hn.get(kv({name:Wg.pricing_content}))}static async pricing_content_update(t){return hn.post(kv({name:Wg.pricing_content_update}),t)}static async pricing_calculate(){return hn.post(kv({name:Wg.pricing_calculate}))}}const RE=ni("fetchPricingDomain",async()=>(await M1.pricing_domains()).data),OE=ni("fetchPricingContent",async()=>(await M1.pricing_content()).data),p3e={domainPricing:{data:[],isLoading:!1},contentPricing:{data:{},isLoading:!1}},h3e=Mh({name:"pricingSlice",initialState:p3e,reducers:{},extraReducers:e=>{e.addCase(RE.pending,t=>{t.domainPricing.isLoading=!0}).addCase(RE.fulfilled,(t,n)=>{t.domainPricing.data=n.payload,t.domainPricing.isLoading=!1}),e.addCase(OE.pending,t=>{t.contentPricing.isLoading=!0}).addCase(OE.fulfilled,(t,n)=>{t.contentPricing.data=n.payload,t.contentPricing.isLoading=!1})}}),dU=bn([e=>e.pricingState.domainPricing],e=>e.data),m3e=bn([e=>e.pricingState.domainPricing],e=>e.isLoading),fU=bn([e=>e.pricingState.contentPricing],e=>e.data),g3e=bn([e=>e.pricingState.contentPricing],e=>e.isLoading),b3e=h3e.reducer,y3e=K8({uiState:VCe,profileState:q4e,usersState:QDe,domainsState:q0e,resourcesState:Q0e,cartState:Z_e,pricingState:b3e}),v3e=M0e({reducer:y3e}),x3e=({value:e,onChange:t})=>{const n=xt(fz);return y.jsx(bu,{label:"Niche",value:e,onChange:t,options:n,withClear:!0})};function w3e({checked:e,setChecked:t}){const n=r=>{t(r.target.checked)};return y.jsx(GI,{checked:e,onChange:n})}const C3e=[{value:"500",label:"500 words"},{value:"600",label:"600 words"},{value:"700",label:"700 words"},{value:"800",label:"800 words"},{value:"900",label:"900 words"},{value:"1000",label:"1000 words"},{value:"1100",label:"1100 words"},{value:"1200",label:"1200 words"},{value:"1300",label:"1300 words"},{value:"1400",label:"1400 words"},{value:"1500",label:"1500 words"}],S3e=({value:e,onChange:t,sx:n})=>y.jsx(bu,{sx:n,label:"Words",value:e,onChange:t,options:C3e}),E3e=()=>y.jsxs(Oe,{border:"1px solid var(--mui-palette-divider)",display:"flex",flexDirection:"column",borderRadius:2,gap:1,padding:3,alignItems:"center",children:[y.jsx(Jt,{variant:"h6",children:"Cart is empty"}),y.jsx(Jt,{children:"You have no items in your cart"}),y.jsx(rr,{to:_o.domains.path,children:"Continue Shopping"})]}),pU={display:"grid",gridTemplateColumns:"200px 180px 130px 150px 100px 40px",gap:1},T3e=()=>y.jsxs(Oe,{sx:pU,paddingBottom:1,borderBottom:"1px solid var(--mui-palette-divider)",fontWeight:"bold",gap:1,children:[y.jsx(Oe,{children:"Domain"}),y.jsxs(Oe,{display:"flex",alignItems:"center",gap:"4px",children:["Niche ",y.jsx(E0,{text:"Specific content niche"})]}),y.jsxs(Oe,{display:"flex",alignItems:"center",gap:"4px",children:["Need Content ",y.jsx(E0,{text:"Content will be provided by Naturallinks"})]}),y.jsx(Oe,{children:"Article Words"}),y.jsx(Oe,{children:"Price"}),y.jsx(Oe,{})]}),M3e=()=>{const e=so(),{items:t,checkout:n}=xt(qH),{showLoader:r,hideLoader:o,loading:i}=VT(),a=async m=>{try{r(),await n0.cart_update(m).then(()=>{e(au())}).catch(()=>{}).finally(()=>{o()})}catch{}},l=async m=>{try{r(),await n0.cart_remove(m).then(()=>{e(au())}).catch(()=>{}).finally(()=>{o()})}catch{}},u=async()=>{try{r(),await n0.cart_pay().then(()=>{e(au()),e(ME()),Ps("Success")}).catch(()=>{}).finally(()=>{o()})}catch{}},d=async()=>{try{r(),await n0.cart_clear().then(()=>{e(au())}).catch(()=>{}).finally(()=>{o()})}catch{}},f=t.length===1?`${t.length} item`:`${t.length} items`;return b.useEffect(()=>{e(au()),e(H2())},[]),(t==null?void 0:t.length)===0?y.jsx(E3e,{}):y.jsxs(y.Fragment,{children:[y.jsx(yl,{title:`Cart (${f})`}),y.jsxs(Oe,{display:"grid",gridTemplateColumns:{xs:"1fr",lg:"1fr 250px"},gap:2,children:[y.jsx(Oe,{border:"1px solid var(--mui-palette-divider)",borderRadius:2,padding:3,sx:{overflowY:"auto"},children:y.jsxs(Oe,{minWidth:"836px",children:[y.jsx(T3e,{}),y.jsx(Oe,{display:"flex",flexDirection:"column",gap:2,paddingTop:1,children:t==null?void 0:t.map(m=>y.jsxs(Oe,{gap:1,borderBottom:"1px solid var(--mui-palette-divider)",sx:pU,alignItems:"center",paddingY:1,children:[y.jsx(Jt,{textOverflow:"ellipsis",overflow:"hidden",children:m.domainName}),y.jsx(x3e,{value:m.contentNiche||"",onChange:g=>a({itemId:m.id,contentNiche:g===""?null:g})}),y.jsx(w3e,{checked:m.contentRequired,setChecked:g=>a({itemId:m.id,contentRequired:g})}),m.contentRequired?y.jsx(S3e,{sx:{marginRight:2},value:String(m.contentWordsCount),onChange:g=>a({itemId:m.id,contentWordsCount:Number(g)})}):y.jsx("div",{}),y.jsx(Jt,{children:oo+m.domainPrice}),y.jsx(Oe,{children:y.jsx(Ur,{onClick:()=>l(m.id),disabled:i,children:y.jsx(i7,{})})})]},m.id))})]})}),y.jsxs(Oe,{children:[y.jsxs(Oe,{border:"1px solid var(--mui-palette-divider)",borderRadius:2,padding:3,alignSelf:"flex-start",children:[y.jsxs(Oe,{borderBottom:"1px solid var(--mui-palette-divider)",paddingBottom:1,mb:2,display:"flex",justifyContent:"space-between",children:[y.jsx(Oe,{fontWeight:600,children:"Summary"}),y.jsx(Oe,{fontSize:"14px",children:f})]}),y.jsxs(Oe,{display:"flex",justifyContent:"space-between",children:[y.jsx(Oe,{children:"Link"}),y.jsx(Oe,{fontSize:"14px",children:oo+n.domains})]}),y.jsxs(Oe,{display:"flex",justifyContent:"space-between",children:[y.jsx(Oe,{children:"Content"}),y.jsx(Oe,{fontSize:"14px",children:oo+n.content})]}),y.jsxs(Oe,{display:"flex",justifyContent:"space-between",alignItems:"center",mt:2,pt:1,borderTop:"1px solid var(--mui-palette-divider)",children:[y.jsx(Oe,{fontWeight:600,children:"Total"}),y.jsx(Oe,{fontSize:"20px",fontWeight:900,children:oo+n.total})]}),y.jsx(rr,{sx:{width:"100%",marginTop:2},onClick:u,children:"Pay"})]}),y.jsx(rr,{sx:{width:"100%",marginTop:2},onClick:d,variant:"text",children:"Clear cart"})]})]})]})},k3e=()=>{const[e]=S1(),t=Sl(),n=e.get("token")||"",{password:r}=I8();return b.useEffect(()=>{n&&r?(async()=>{await lb.confirmation_verify({token:n,password:r}).then(i=>{T8(i.data.token),A8(),t(I2)})})():t(Jo.auth.path)},[n,r]),y.jsx("div",{})},P3e=()=>{const[e]=S1(),t=e.get("token")||"",[n,r]=b.useState(!1),o=Sl(),i=Oh({initialValues:{password:"",confirm_password:""},validationSchema:$be,onSubmit:async l=>{try{r(!0),await lb.reset_verify({password:l.password,token:t}).then(()=>{Ps("Password was changed"),o(Jo.auth.path)}).finally(()=>{r(!1)})}catch{return!1}}}),a=()=>i.submitForm();return y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{typography:"h5",children:"Reset Password"}),y.jsx(nr,{type:"password",autoComplete:!1,name:"password",label:"Password",placeholder:"Enter password",value:i.values.password,onChange:i.handleChange,error:i.touched.password&&!!i.errors.password,helperText:i.touched.password&&i.errors.password,onBlur:i.handleBlur}),y.jsx(nr,{type:"password",autoComplete:!1,name:"confirm_password",label:"Confirm password",placeholder:"Confirm password",value:i.values.confirm_password,onChange:i.handleChange,error:i.touched.confirm_password&&!!i.errors.confirm_password,helperText:i.touched.confirm_password&&i.errors.confirm_password,onBlur:i.handleBlur}),y.jsx(rr,{onClick:a,loading:n,children:"Send code"}),y.jsx(rr,{variant:"text",to:Jo.auth.path,children:"Back to Sign In"})]})},I3e=()=>{const[e,t]=b.useState(!1),[n,r]=b.useState(!1),{email:o}=I8(),i=async()=>{try{t(!0),await lb.confirmation_send({email:o}).then(()=>{r(!0)}).catch(()=>{}).finally(()=>{t(!1)})}catch{}};return n?y.jsxs(Oe,{children:[y.jsx(Jt,{textAlign:"center",typography:"h5",children:"Please check you email"}),y.jsx(Jt,{textAlign:"center",typography:"body2",children:"You can close this page"})]}):o?y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{typography:"h5",children:"Confirm Email"}),y.jsx(Jt,{typography:"h6",children:o}),y.jsx(rr,{onClick:i,loading:e,children:"Send email"}),y.jsx(rr,{variant:"text",to:Jo.auth.path,children:"Back"})]}):null},A3e=()=>{const e=Sl(),[t,n]=b.useState(!1),r=Oh({initialValues:{name:"",email:"",password:"",confirm_password:"",secret:""},validationSchema:Dbe,onSubmit:async i=>{try{n(!0),await sb.create_admin(i).then(()=>{e(Jo.auth.path)}).finally(()=>{n(!1)})}catch{return!1}}}),o=()=>r.submitForm();return y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,children:[y.jsx(Jt,{variant:"h5",children:"Create admin"}),y.jsx(nr,{name:"name",label:"Name",placeholder:"Enter name",value:r.values.name,onChange:r.handleChange,error:r.touched.name&&!!r.errors.name,helperText:r.touched.name&&r.errors.name,onBlur:r.handleBlur}),y.jsx(nr,{name:"secret",label:"Secret",placeholder:"Enter secret",value:r.values.secret,onChange:r.handleChange,error:r.touched.secret&&!!r.errors.secret,helperText:r.touched.secret&&r.errors.secret,onBlur:r.handleBlur}),y.jsx(nr,{name:"email",label:"Email",placeholder:"Enter email",value:r.values.email,onChange:r.handleChange,error:r.touched.email&&!!r.errors.email,helperText:r.touched.email&&r.errors.email,onBlur:r.handleBlur}),y.jsx(nr,{type:"password",name:"password",label:"Password",placeholder:"Enter password",value:r.values.password,onChange:r.handleChange,error:r.touched.password&&!!r.errors.password,helperText:r.touched.password&&r.errors.password,onBlur:r.handleBlur}),y.jsx(nr,{type:"password",name:"confirm_password",label:"Confirm password",placeholder:"Confirm password",value:r.values.confirm_password,onChange:r.handleChange,error:r.touched.confirm_password&&!!r.errors.confirm_password,helperText:r.touched.confirm_password&&r.errors.confirm_password,onBlur:r.handleBlur}),y.jsx(rr,{onClick:o,loading:t,children:"Create admin"})]})},R3e=()=>y.jsx(Oe,{children:y.jsx(Jt,{children:"You have no transactions"})}),hU="1fr 1fr 100px 200px 200px",O3e=()=>y.jsxs(Oe,{display:"grid",gridTemplateColumns:hU,paddingBottom:1,fontWeight:"bold",gap:1,children:[y.jsxs(Oe,{children:["Amount, ",oo]}),y.jsx(Oe,{children:"Status"}),y.jsx(Oe,{children:"Type"}),y.jsx(Oe,{children:"Notes"}),y.jsx(Oe,{children:"Created At"})]}),_3e=()=>{const e=so(),t=xt(V4e),n=xt(W4e);return b.useEffect(()=>{e(fR())},[]),y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,border:"1px solid var(--mui-palette-divider)",padding:2,borderRadius:2,sx:{overflowX:"auto"},width:"100%",children:[y.jsx(Jt,{variant:"h6",children:"Transactions"}),n?y.jsx(vM,{block:!0}):t.length===0?y.jsx(R3e,{}):y.jsxs(Oe,{minWidth:"750px",children:[y.jsx(O3e,{}),y.jsx(Zi,{}),t.map(r=>y.jsxs(Oe,{gap:1,display:"grid",gridTemplateColumns:hU,paddingY:1,borderBottom:"1px solid var(--mui-palette-divider)",height:"60px",alignItems:"center",children:[y.jsx(Oe,{children:r.amount}),y.jsx(Oe,{children:r.status}),y.jsx(Oe,{children:r.type}),y.jsx(Oe,{textOverflow:"ellipsis",overflow:"hidden",fontSize:"14px",children:r.notes}),y.jsx(Oe,{children:f7(r.createdAt)})]},r.id))]})]})},D3e=()=>{const{balance:e}=xt(bM),[t,n]=b.useState(100),[r,o]=b.useState(g5[0].value),[i,a]=b.useState(!1),l=g=>n(Number(g)),u=()=>n(0),d=async()=>{try{r===fA.stripe&&(a(!0),await $0.stripe_checkout(t).then(g=>{window.location.href=g.data.url}).catch(()=>{}).finally(()=>{a(!1)})),r===fA.euka&&(a(!0),await $0.euka_checkout(t).then(g=>{window.location.href=g.data.url}).catch(()=>{}).finally(()=>{a(!1)}))}catch{}},f=t===0,m=`Balance - ${oo}${e}`;return y.jsxs(y.Fragment,{children:[y.jsx(yl,{title:m}),y.jsxs(Oe,{display:{xs:"flex",lg:"grid"},flexDirection:{xs:"column-reverse",lg:"row"},gridTemplateColumns:{xs:"1fr",lg:"1fr 250px"},alignItems:"flex-start",gap:2,children:[y.jsx(_3e,{}),y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,border:"1px solid var(--mui-palette-divider)",padding:2,borderRadius:2,width:{xs:"100%",sm:"auto"},children:[y.jsx(Jt,{variant:"h6",children:"Top up balance"}),y.jsx(bu,{label:"Payment type",value:r,onChange:o,options:g5}),y.jsx(nr,{min:0,value:t,label:"Amount",onChangeValue:l,type:"Number",startAdornment:oo,endAdornment:!!t&&y.jsx(Yd,{position:"end",children:y.jsx(Ur,{onClick:u,children:y.jsx(K2,{})})})}),y.jsx(rr,{disabled:f,loading:i,onClick:d,children:"Confirm"})]})]})]})},L3e=()=>{const[e,t]=S1(),n=e.get("sessionId");return b.useEffect(()=>{(async()=>{if(n)try{await $0.stripe_confirm(n).then(()=>{t({})}).catch(()=>{}).finally(()=>{})}catch{}})()},[]),y.jsxs(Oe,{children:[y.jsx(yl,{title:"Top up success"}),y.jsx(rr,{to:_o.balance.path,children:"Check balance"})]})},$3e=()=>{const[e,t]=S1(),n=e.get("sessionId");return b.useEffect(()=>{(async()=>{if(n)try{await $0.stripe_confirm(n).then(()=>{t({})}).catch(()=>{}).finally(()=>{})}catch{}})()},[]),y.jsxs(Oe,{children:[y.jsx(yl,{title:"Top up error"}),y.jsx(rr,{to:_o.balance.path,children:"Check balance"})]})},j3e=()=>y.jsxs(Oe,{children:[y.jsx(yl,{title:"Top up in progress"}),y.jsx(rr,{to:_o.balance.path,children:"Check balance"})]}),F3e=()=>{const[e,t]=b.useState(!1),n=so(),r=xt(dU),[o,i]=b.useState([]),[a,l]=b.useState(!1),u=async()=>{try{l(!0),await M1.pricing_domains_update(o).then(()=>{n(RE()),t(!1)}).catch(()=>{}).finally(()=>{l(!1)})}catch{}},d=Ua.isEqual(r,o);return b.useEffect(()=>{e&&i(r)},[e]),y.jsx(ku,{sx:{maxWidth:"550px"},title:y.jsxs(Oe,{display:"flex",alignItems:"center",gap:1,justifyContent:"center",children:["Edit Pricing Tiers",y.jsx(E0,{sx:{maxWidth:"300px",textAlign:"center"},text:"Define your pricing tiers. Each tier must be continuous with no gaps or overlaps."})]}),loading:a,open:e,setOpen:t,onSubmit:u,submitText:"Submit",disabled:d,Trigger:y.jsx(rr,{children:"Edit tiers"}),children:y.jsx(Oe,{display:"flex",flexDirection:"column",gap:2,mt:1,children:o.map(f=>{const m=(g,w)=>{const C=o.map(S=>S.id===f.id?{...S,[g]:w}:S);i(C)};return y.jsxs(Oe,{display:"grid",gap:{xs:2,sm:1},gridTemplateColumns:{xs:"1fr",sm:"1fr 1fr 100px"},marginBottom:{xs:3,sm:"0"},children:[y.jsx(nr,{min:0,type:"Number",label:"Start price, "+oo,value:f.startBasePrice,onChangeValue:g=>m("startBasePrice",Number(g))}),y.jsx(nr,{min:0,type:"Number",label:"End price, "+oo,value:f.endBasePrice,onChangeValue:g=>m("endBasePrice",Number(g))}),y.jsx(nr,{step:.1,min:0,type:"Number",label:"Markup",value:f.priceMultiplier,onChangeValue:g=>m("priceMultiplier",Number(g))})]},f.id)})})})},mU="200px 100px",N3e=()=>y.jsxs(Oe,{display:"grid",gridTemplateColumns:mU,paddingBottom:1,fontWeight:"bold",gap:1,children:[y.jsxs(Oe,{children:["Base Price Range, ",oo]}),y.jsx(Oe,{children:"Markup"})]}),z3e=()=>{const e=so(),t=xt(dU),n=xt(m3e);return b.useEffect(()=>{e(RE())},[]),y.jsx(Oe,{display:"flex",flexDirection:"column",gap:2,border:"1px solid var(--mui-palette-divider)",padding:2,borderRadius:2,children:n?y.jsx(vM,{block:!0}):y.jsxs(Oe,{children:[y.jsx(N3e,{}),y.jsx(Zi,{}),t.map(r=>y.jsxs(Oe,{gap:1,display:"grid",gridTemplateColumns:mU,paddingY:1,borderBottom:"1px solid var(--mui-palette-divider)",alignItems:"center",children:[y.jsxs(Oe,{children:[oo,r.startBasePrice," - ",oo,r.endBasePrice]}),y.jsx(Oe,{children:r.priceMultiplier})]},r.id))]})})},B3e=()=>{const[e,t]=b.useState(!1),{showLoader:n,hideLoader:r,loading:o}=VT(),i=async()=>{try{n(),await M1.pricing_calculate().then(()=>{Ps("Success"),t(!1)}).catch(()=>{}).finally(()=>{r()})}catch{}};return y.jsx(ku,{sx:{maxWidth:"420px"},title:"Warning",loading:o,open:e,setOpen:t,onSubmit:i,submitText:"Confirm",Trigger:y.jsx(rr,{loading:o,variant:"outlined",sx:{marginTop:3},children:"recalculation of prices"}),children:y.jsx(Jt,{fontSize:"18px",children:"Are you sure you want to recalculate prices?"})})},H3e=()=>y.jsxs(Oe,{children:[y.jsx(yl,{title:_i.pricingDomain.name,end:y.jsx(F3e,{})}),y.jsx(z3e,{}),y.jsx(B3e,{})]}),gU="200px 100px 200px",U3e=()=>y.jsxs(Oe,{display:"grid",gridTemplateColumns:gU,paddingBottom:1,fontWeight:"bold",gap:1,children:[y.jsx(Oe,{children:"Bundle Size"}),y.jsx(Oe,{children:"Price"}),y.jsx(Oe,{children:"Last Updated"})]}),G3e=()=>{const e=so(),t=xt(fU),n=xt(g3e);return b.useEffect(()=>{e(OE())},[]),y.jsx(Oe,{display:"flex",flexDirection:"column",gap:2,border:"1px solid var(--mui-palette-divider)",padding:2,borderRadius:2,sx:{overflowY:"auto"},children:n?y.jsx(vM,{block:!0}):y.jsxs(Oe,{minWidth:"500px",children:[y.jsx(U3e,{}),y.jsx(Zi,{}),y.jsxs(Oe,{gap:1,display:"grid",gridTemplateColumns:gU,paddingY:1,borderBottom:"1px solid var(--mui-palette-divider)",alignItems:"center",children:[y.jsxs(Oe,{children:[t.wordsBundleSize," words"]}),y.jsx(Oe,{children:oo+t.bundlePrice}),y.jsx(Oe,{children:f7(t.updatedAt)})]})]})})},V3e=()=>{const[e,t]=b.useState(!1),n=so(),r=xt(fU),[o,i]=b.useState({}),[a,l]=b.useState(!1),u=async()=>{try{l(!0),await M1.pricing_content_update(Ua.omit(o,["createdAt","updatedAt"])).then(()=>{n(OE()),t(!1)}).catch(()=>{}).finally(()=>{l(!1)})}catch{}},d=(m,g)=>i({...o,[m]:g}),f=Ua.isEqual(r,o);return b.useEffect(()=>{e&&i(r)},[e]),y.jsx(ku,{maxWidth:"xs",title:"Edit Price",loading:a,open:e,setOpen:t,onSubmit:u,submitText:"Submit",disabled:f,Trigger:y.jsx(rr,{children:"Edit Price"}),children:y.jsxs(Oe,{display:"flex",flexDirection:"column",gap:2,mt:1,children:[y.jsx(nr,{min:0,type:"Number",label:"Bundle Size (words)",value:o.wordsBundleSize,onChangeValue:m=>d("wordsBundleSize",Number(m))}),y.jsx(nr,{min:0,type:"Number",label:"Price",startAdornment:oo,step:.1,value:o.bundlePrice,onChangeValue:m=>d("bundlePrice",Number(m))})]})})},W3e=()=>y.jsxs(Oe,{children:[y.jsx(yl,{title:_i.pricingContent.name,end:y.jsx(V3e,{})}),y.jsx(G3e,{})]}),q3e=jOe([{Component:K4e,errorElement:y.jsx(d3e,{}),children:[{Component:Q4e,children:[{path:Jo.authAdmin.path,Component:A3e},{path:Jo.auth.path,Component:c3e},{path:Jo.forgotPassword.path,Component:u3e},{path:Jo.authConfirmEmail.path,Component:I3e},{path:Jo.authReset.path,Component:P3e},{path:Jo.authConfirm.path,Component:k3e}]},{path:"/admin",Component:T6,children:[{path:_i.domains.path,Component:Y_e},{path:_i.users.path,Component:o3e},{path:_i.pricingDomain.path,Component:H3e},{path:_i.pricingContent.path,Component:W3e}]},{path:"/",Component:T6,children:[{path:_o.domains.path,Component:J_e},{path:_o.balance.path,Component:D3e},{path:_o.orders.path,Component:i3e},{path:_o.cart.path,Component:M3e},{path:_o.balanceSuccess.path,Component:L3e},{path:_o.balanceError.path,Component:$3e},{path:_o.euka.path,Component:j3e}]}]}]);o4e.createRoot(document.getElementById("root")).render(y.jsx(Xge,{store:v3e,children:y.jsx(f3e,{children:y.jsxs(OR,{theme:rU,children:[y.jsx(qR,{}),y.jsx(cOe,{router:q3e})]})})}))});export default Y3e();