function oM(e,t){for(var s=0;sr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function nu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Mo(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var s=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};s.prototype=t.prototype}else s={};return Object.defineProperty(s,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(s,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),s}var xv={exports:{}},rd={},Rv={exports:{}},Gt={};/** * @license React * react.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 N0;function VN(){if(N0)return Gt;N0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.provider"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),p=Symbol.iterator;function g(V){return V===null||typeof V!="object"?null:(V=p&&V[p]||V["@@iterator"],typeof V=="function"?V:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,v={};function w(V,K,fe){this.props=V,this.context=K,this.refs=v,this.updater=fe||m}w.prototype.isReactComponent={},w.prototype.setState=function(V,K){if(typeof V!="object"&&typeof V!="function"&&V!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,V,K,"setState")},w.prototype.forceUpdate=function(V){this.updater.enqueueForceUpdate(this,V,"forceUpdate")};function S(){}S.prototype=w.prototype;function P(V,K,fe){this.props=V,this.context=K,this.refs=v,this.updater=fe||m}var T=P.prototype=new S;T.constructor=P,C(T,w.prototype),T.isPureReactComponent=!0;var F=Array.isArray,E=Object.prototype.hasOwnProperty,D={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function A(V,K,fe){var ue,me={},ge=null,Be=null;if(K!=null)for(ue in K.ref!==void 0&&(Be=K.ref),K.key!==void 0&&(ge=""+K.key),K)E.call(K,ue)&&!R.hasOwnProperty(ue)&&(me[ue]=K[ue]);var Ie=arguments.length-2;if(Ie===1)me.children=fe;else if(1>>1,K=z[V];if(0>>1;Vi(me,ne))gei(Be,me)?(z[V]=Be,z[ge]=ne,V=ge):(z[V]=me,z[ue]=ne,V=ue);else if(gei(Be,ne))z[V]=Be,z[ge]=ne,V=ge;else break e}}return ie}function i(z,ie){var ne=z.sortIndex-ie.sortIndex;return ne!==0?ne:z.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var n=performance;e.unstable_now=function(){return n.now()}}else{var o=Date,a=o.now();e.unstable_now=function(){return o.now()-a}}var l=[],u=[],h=1,p=null,g=3,m=!1,C=!1,v=!1,w=typeof setTimeout=="function"?setTimeout:null,S=typeof clearTimeout=="function"?clearTimeout:null,P=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function T(z){for(var ie=s(u);ie!==null;){if(ie.callback===null)r(u);else if(ie.startTime<=z)r(u),ie.sortIndex=ie.expirationTime,t(l,ie);else break;ie=s(u)}}function F(z){if(v=!1,T(z),!C)if(s(l)!==null)C=!0,Y(E);else{var ie=s(u);ie!==null&&re(F,ie.startTime-z)}}function E(z,ie){C=!1,v&&(v=!1,S(A),A=-1),m=!0;var ne=g;try{for(T(ie),p=s(l);p!==null&&(!(p.expirationTime>ie)||z&&!O());){var V=p.callback;if(typeof V=="function"){p.callback=null,g=p.priorityLevel;var K=V(p.expirationTime<=ie);ie=e.unstable_now(),typeof K=="function"?p.callback=K:p===s(l)&&r(l),T(ie)}else r(l);p=s(l)}if(p!==null)var fe=!0;else{var ue=s(u);ue!==null&&re(F,ue.startTime-ie),fe=!1}return fe}finally{p=null,g=ne,m=!1}}var D=!1,R=null,A=-1,G=5,L=-1;function O(){return!(e.unstable_now()-Lz||125V?(z.sortIndex=ne,t(u,z),s(l)===null&&z===s(u)&&(v?(S(A),A=-1):v=!0,re(F,ne-V))):(z.sortIndex=K,t(l,z),C||m||(C=!0,Y(E))),z},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(z){var ie=g;return function(){var ne=g;g=ie;try{return z.apply(this,arguments)}finally{g=ne}}}}(Ev)),Ev}var W0;function WN(){return W0||(W0=1,Fv.exports=zN()),Fv.exports}/** * @license React * react-dom.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 _0;function _N(){if(_0)return qr;_0=1;var e=Lf(),t=WN();function s(c){for(var d="https://reactjs.org/docs/error-decoder.html?invariant="+c,f=1;f"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,h={},p={};function g(c){return l.call(p,c)?!0:l.call(h,c)?!1:u.test(c)?p[c]=!0:(h[c]=!0,!1)}function m(c,d,f,y){if(f!==null&&f.type===0)return!1;switch(typeof d){case"function":case"symbol":return!0;case"boolean":return y?!1:f!==null?!f.acceptsBooleans:(c=c.toLowerCase().slice(0,5),c!=="data-"&&c!=="aria-");default:return!1}}function C(c,d,f,y){if(d===null||typeof d>"u"||m(c,d,f,y))return!0;if(y)return!1;if(f!==null)switch(f.type){case 3:return!d;case 4:return d===!1;case 5:return isNaN(d);case 6:return isNaN(d)||1>d}return!1}function v(c,d,f,y,x,M,k){this.acceptsBooleans=d===2||d===3||d===4,this.attributeName=y,this.attributeNamespace=x,this.mustUseProperty=f,this.propertyName=c,this.type=d,this.sanitizeURL=M,this.removeEmptyString=k}var w={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(c){w[c]=new v(c,0,!1,c,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(c){var d=c[0];w[d]=new v(d,1,!1,c[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(c){w[c]=new v(c,2,!1,c.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(c){w[c]=new v(c,2,!1,c,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(c){w[c]=new v(c,3,!1,c.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(c){w[c]=new v(c,3,!0,c,null,!1,!1)}),["capture","download"].forEach(function(c){w[c]=new v(c,4,!1,c,null,!1,!1)}),["cols","rows","size","span"].forEach(function(c){w[c]=new v(c,6,!1,c,null,!1,!1)}),["rowSpan","start"].forEach(function(c){w[c]=new v(c,5,!1,c.toLowerCase(),null,!1,!1)});var S=/[\-:]([a-z])/g;function P(c){return c[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(c){var d=c.replace(S,P);w[d]=new v(d,1,!1,c,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(c){var d=c.replace(S,P);w[d]=new v(d,1,!1,c,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(c){var d=c.replace(S,P);w[d]=new v(d,1,!1,c,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(c){w[c]=new v(c,1,!1,c.toLowerCase(),null,!1,!1)}),w.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(c){w[c]=new v(c,1,!1,c.toLowerCase(),null,!0,!0)});function T(c,d,f,y){var x=w.hasOwnProperty(d)?w[d]:null;(x!==null?x.type!==0:y||!(2W||x[k]!==M[W]){var X=` `+x[k].replace(" at new "," at ");return c.displayName&&X.includes("")&&(X=X.replace("",c.displayName)),X}while(1<=k&&0<=W);break}}}finally{fe=!1,Error.prepareStackTrace=f}return(c=c?c.displayName||c.name:"")?K(c):""}function me(c){switch(c.tag){case 5:return K(c.type);case 16:return K("Lazy");case 13:return K("Suspense");case 19:return K("SuspenseList");case 0:case 2:case 15:return c=ue(c.type,!1),c;case 11:return c=ue(c.type.render,!1),c;case 1:return c=ue(c.type,!0),c;default:return""}}function ge(c){if(c==null)return null;if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case R:return"Fragment";case D:return"Portal";case G:return"Profiler";case A:return"StrictMode";case H:return"Suspense";case $:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case O:return(c.displayName||"Context")+".Consumer";case L:return(c._context.displayName||"Context")+".Provider";case N:var d=c.render;return c=c.displayName,c||(c=d.displayName||d.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case q:return d=c.displayName||null,d!==null?d:ge(c.type)||"Memo";case Y:d=c._payload,c=c._init;try{return ge(c(d))}catch{}}return null}function Be(c){var d=c.type;switch(c.tag){case 24:return"Cache";case 9:return(d.displayName||"Context")+".Consumer";case 10:return(d._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return c=d.render,c=c.displayName||c.name||"",d.displayName||(c!==""?"ForwardRef("+c+")":"ForwardRef");case 7:return"Fragment";case 5:return d;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ge(d);case 8:return d===A?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d}return null}function Ie(c){switch(typeof c){case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function Ee(c){var d=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(d==="checkbox"||d==="radio")}function et(c){var d=Ee(c)?"checked":"value",f=Object.getOwnPropertyDescriptor(c.constructor.prototype,d),y=""+c[d];if(!c.hasOwnProperty(d)&&typeof f<"u"&&typeof f.get=="function"&&typeof f.set=="function"){var x=f.get,M=f.set;return Object.defineProperty(c,d,{configurable:!0,get:function(){return x.call(this)},set:function(k){y=""+k,M.call(this,k)}}),Object.defineProperty(c,d,{enumerable:f.enumerable}),{getValue:function(){return y},setValue:function(k){y=""+k},stopTracking:function(){c._valueTracker=null,delete c[d]}}}}function Ze(c){c._valueTracker||(c._valueTracker=et(c))}function Re(c){if(!c)return!1;var d=c._valueTracker;if(!d)return!0;var f=d.getValue(),y="";return c&&(y=Ee(c)?c.checked?"true":"false":c.value),c=y,c!==f?(d.setValue(c),!0):!1}function ke(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}function Xe(c,d){var f=d.checked;return ne({},d,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:f??c._wrapperState.initialChecked})}function He(c,d){var f=d.defaultValue==null?"":d.defaultValue,y=d.checked!=null?d.checked:d.defaultChecked;f=Ie(d.value!=null?d.value:f),c._wrapperState={initialChecked:y,initialValue:f,controlled:d.type==="checkbox"||d.type==="radio"?d.checked!=null:d.value!=null}}function Ve(c,d){d=d.checked,d!=null&&T(c,"checked",d,!1)}function It(c,d){Ve(c,d);var f=Ie(d.value),y=d.type;if(f!=null)y==="number"?(f===0&&c.value===""||c.value!=f)&&(c.value=""+f):c.value!==""+f&&(c.value=""+f);else if(y==="submit"||y==="reset"){c.removeAttribute("value");return}d.hasOwnProperty("value")?Bt(c,d.type,f):d.hasOwnProperty("defaultValue")&&Bt(c,d.type,Ie(d.defaultValue)),d.checked==null&&d.defaultChecked!=null&&(c.defaultChecked=!!d.defaultChecked)}function ut(c,d,f){if(d.hasOwnProperty("value")||d.hasOwnProperty("defaultValue")){var y=d.type;if(!(y!=="submit"&&y!=="reset"||d.value!==void 0&&d.value!==null))return;d=""+c._wrapperState.initialValue,f||d===c.value||(c.value=d),c.defaultValue=d}f=c.name,f!==""&&(c.name=""),c.defaultChecked=!!c._wrapperState.initialChecked,f!==""&&(c.name=f)}function Bt(c,d,f){(d!=="number"||ke(c.ownerDocument)!==c)&&(f==null?c.defaultValue=""+c._wrapperState.initialValue:c.defaultValue!==""+f&&(c.defaultValue=""+f))}var wt=Array.isArray;function ht(c,d,f,y){if(c=c.options,d){d={};for(var x=0;x"+d.valueOf().toString()+"",d=Ge.firstChild;c.firstChild;)c.removeChild(c.firstChild);for(;d.firstChild;)c.appendChild(d.firstChild)}});function Vt(c,d){if(d){var f=c.firstChild;if(f&&f===c.lastChild&&f.nodeType===3){f.nodeValue=d;return}}c.textContent=d}var ls={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qs=["Webkit","ms","Moz","O"];Object.keys(ls).forEach(function(c){Qs.forEach(function(d){d=d+c.charAt(0).toUpperCase()+c.substring(1),ls[d]=ls[c]})});function Ue(c,d,f){return d==null||typeof d=="boolean"||d===""?"":f||typeof d!="number"||d===0||ls.hasOwnProperty(c)&&ls[c]?(""+d).trim():d+"px"}function Pt(c,d){c=c.style;for(var f in d)if(d.hasOwnProperty(f)){var y=f.indexOf("--")===0,x=Ue(f,d[f],y);f==="float"&&(f="cssFloat"),y?c.setProperty(f,x):c[f]=x}}var De=ne({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function je(c,d){if(d){if(De[c]&&(d.children!=null||d.dangerouslySetInnerHTML!=null))throw Error(s(137,c));if(d.dangerouslySetInnerHTML!=null){if(d.children!=null)throw Error(s(60));if(typeof d.dangerouslySetInnerHTML!="object"||!("__html"in d.dangerouslySetInnerHTML))throw Error(s(61))}if(d.style!=null&&typeof d.style!="object")throw Error(s(62))}}function Et(c,d){if(c.indexOf("-")===-1)return typeof d.is=="string";switch(c){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 Mt=null;function Dt(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var $t=null,Ut=null,Ps=null;function Ls(c){if(c=Wu(c)){if(typeof $t!="function")throw Error(s(280));var d=c.stateNode;d&&(d=up(d),$t(c.stateNode,c.type,d))}}function Wr(c){Ut?Ps?Ps.push(c):Ps=[c]:Ut=c}function Zn(){if(Ut){var c=Ut,d=Ps;if(Ps=Ut=null,Ls(c),d)for(c=0;c>>=0,c===0?32:31-(Lo(c)/Uh|0)|0}var jh=64,Kh=4194304;function Ru(c){switch(c&-c){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: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&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return c&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return c}}function qh(c,d){var f=c.pendingLanes;if(f===0)return 0;var y=0,x=c.suspendedLanes,M=c.pingedLanes,k=f&268435455;if(k!==0){var W=k&~x;W!==0?y=Ru(W):(M&=k,M!==0&&(y=Ru(M)))}else k=f&~x,k!==0?y=Ru(k):M!==0&&(y=Ru(M));if(y===0)return 0;if(d!==0&&d!==y&&(d&x)===0&&(x=y&-y,M=d&-d,x>=M||x===16&&(M&4194240)!==0))return d;if((y&4)!==0&&(y|=f&16),d=c.entangledLanes,d!==0)for(c=c.entanglements,d&=y;0f;f++)d.push(c);return d}function Pu(c,d,f){c.pendingLanes|=d,d!==536870912&&(c.suspendedLanes=0,c.pingedLanes=0),c=c.eventTimes,d=31-Kt(d),c[d]=f}function oG(c,d){var f=c.pendingLanes&~d;c.pendingLanes=d,c.suspendedLanes=0,c.pingedLanes=0,c.expiredLanes&=d,c.mutableReadLanes&=d,c.entangledLanes&=d,d=c.entanglements;var y=c.eventTimes;for(c=c.expirationTimes;0=ku),Dx=" ",Ax=!1;function Ix(c,d){switch(c){case"keyup":return LG.indexOf(d.keyCode)!==-1;case"keydown":return d.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function kx(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var ql=!1;function GG(c,d){switch(c){case"compositionend":return kx(d);case"keypress":return d.which!==32?null:(Ax=!0,Dx);case"textInput":return c=d.data,c===Dx&&Ax?null:c;default:return null}}function NG(c,d){if(ql)return c==="compositionend"||!rC&&Ix(c,d)?(c=Rx(),Zh=Qm=Vo=null,ql=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(d.ctrlKey||d.altKey||d.metaKey)||d.ctrlKey&&d.altKey){if(d.char&&1=d)return{node:f,offset:d-c};c=y}e:{for(;f;){if(f.nextSibling){f=f.nextSibling;break e}f=f.parentNode}f=void 0}f=Hx(f)}}function Wx(c,d){return c&&d?c===d?!0:c&&c.nodeType===3?!1:d&&d.nodeType===3?Wx(c,d.parentNode):"contains"in c?c.contains(d):c.compareDocumentPosition?!!(c.compareDocumentPosition(d)&16):!1:!1}function _x(){for(var c=window,d=ke();d instanceof c.HTMLIFrameElement;){try{var f=typeof d.contentWindow.location.href=="string"}catch{f=!1}if(f)c=d.contentWindow;else break;d=ke(c.document)}return d}function oC(c){var d=c&&c.nodeName&&c.nodeName.toLowerCase();return d&&(d==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||d==="textarea"||c.contentEditable==="true")}function jG(c){var d=_x(),f=c.focusedElem,y=c.selectionRange;if(d!==f&&f&&f.ownerDocument&&Wx(f.ownerDocument.documentElement,f)){if(y!==null&&oC(f)){if(d=y.start,c=y.end,c===void 0&&(c=d),"selectionStart"in f)f.selectionStart=d,f.selectionEnd=Math.min(c,f.value.length);else if(c=(d=f.ownerDocument||document)&&d.defaultView||window,c.getSelection){c=c.getSelection();var x=f.textContent.length,M=Math.min(y.start,x);y=y.end===void 0?M:Math.min(y.end,x),!c.extend&&M>y&&(x=y,y=M,M=x),x=zx(f,M);var k=zx(f,y);x&&k&&(c.rangeCount!==1||c.anchorNode!==x.node||c.anchorOffset!==x.offset||c.focusNode!==k.node||c.focusOffset!==k.offset)&&(d=d.createRange(),d.setStart(x.node,x.offset),c.removeAllRanges(),M>y?(c.addRange(d),c.extend(k.node,k.offset)):(d.setEnd(k.node,k.offset),c.addRange(d)))}}for(d=[],c=f;c=c.parentNode;)c.nodeType===1&&d.push({element:c,left:c.scrollLeft,top:c.scrollTop});for(typeof f.focus=="function"&&f.focus(),f=0;f=document.documentMode,Yl=null,aC=null,Nu=null,lC=!1;function $x(c,d,f){var y=f.window===f?f.document:f.nodeType===9?f:f.ownerDocument;lC||Yl==null||Yl!==ke(y)||(y=Yl,"selectionStart"in y&&oC(y)?y={start:y.selectionStart,end:y.selectionEnd}:(y=(y.ownerDocument&&y.ownerDocument.defaultView||window).getSelection(),y={anchorNode:y.anchorNode,anchorOffset:y.anchorOffset,focusNode:y.focusNode,focusOffset:y.focusOffset}),Nu&&Gu(Nu,y)||(Nu=y,y=ap(aC,"onSelect"),0ec||(c.current=wC[ec],wC[ec]=null,ec--)}function ds(c,d){ec++,wC[ec]=c.current,c.current=d}var _o={},mr=Wo(_o),_r=Wo(!1),za=_o;function tc(c,d){var f=c.type.contextTypes;if(!f)return _o;var y=c.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===d)return y.__reactInternalMemoizedMaskedChildContext;var x={},M;for(M in f)x[M]=d[M];return y&&(c=c.stateNode,c.__reactInternalMemoizedUnmaskedChildContext=d,c.__reactInternalMemoizedMaskedChildContext=x),x}function $r(c){return c=c.childContextTypes,c!=null}function dp(){ms(_r),ms(mr)}function nR(c,d,f){if(mr.current!==_o)throw Error(s(168));ds(mr,d),ds(_r,f)}function oR(c,d,f){var y=c.stateNode;if(d=d.childContextTypes,typeof y.getChildContext!="function")return f;y=y.getChildContext();for(var x in y)if(!(x in d))throw Error(s(108,Be(c)||"Unknown",x));return ne({},f,y)}function hp(c){return c=(c=c.stateNode)&&c.__reactInternalMemoizedMergedChildContext||_o,za=mr.current,ds(mr,c),ds(_r,_r.current),!0}function aR(c,d,f){var y=c.stateNode;if(!y)throw Error(s(169));f?(c=oR(c,d,za),y.__reactInternalMemoizedMergedChildContext=c,ms(_r),ms(mr),ds(mr,c)):ms(_r),ds(_r,f)}var ro=null,pp=!1,bC=!1;function lR(c){ro===null?ro=[c]:ro.push(c)}function iN(c){pp=!0,lR(c)}function $o(){if(!bC&&ro!==null){bC=!0;var c=0,d=rs;try{var f=ro;for(rs=1;c>=k,x-=k,io=1<<32-Kt(d)+x|f<St?(er=vt,vt=null):er=vt.sibling;var qt=xe(oe,vt,ae[St],Le);if(qt===null){vt===null&&(vt=er);break}c&&vt&&qt.alternate===null&&d(oe,vt),ee=M(qt,ee,St),Ct===null?lt=qt:Ct.sibling=qt,Ct=qt,vt=er}if(St===ae.length)return f(oe,vt),bs&&_a(oe,St),lt;if(vt===null){for(;StSt?(er=vt,vt=null):er=vt.sibling;var Zo=xe(oe,vt,qt.value,Le);if(Zo===null){vt===null&&(vt=er);break}c&&vt&&Zo.alternate===null&&d(oe,vt),ee=M(Zo,ee,St),Ct===null?lt=Zo:Ct.sibling=Zo,Ct=Zo,vt=er}if(qt.done)return f(oe,vt),bs&&_a(oe,St),lt;if(vt===null){for(;!qt.done;St++,qt=ae.next())qt=Me(oe,qt.value,Le),qt!==null&&(ee=M(qt,ee,St),Ct===null?lt=qt:Ct.sibling=qt,Ct=qt);return bs&&_a(oe,St),lt}for(vt=y(oe,vt);!qt.done;St++,qt=ae.next())qt=Ye(vt,oe,St,qt.value,Le),qt!==null&&(c&&qt.alternate!==null&&vt.delete(qt.key===null?St:qt.key),ee=M(qt,ee,St),Ct===null?lt=qt:Ct.sibling=qt,Ct=qt);return c&&vt.forEach(function(BN){return d(oe,BN)}),bs&&_a(oe,St),lt}function Os(oe,ee,ae,Le){if(typeof ae=="object"&&ae!==null&&ae.type===R&&ae.key===null&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case E:e:{for(var lt=ae.key,Ct=ee;Ct!==null;){if(Ct.key===lt){if(lt=ae.type,lt===R){if(Ct.tag===7){f(oe,Ct.sibling),ee=x(Ct,ae.props.children),ee.return=oe,oe=ee;break e}}else if(Ct.elementType===lt||typeof lt=="object"&<!==null&<.$$typeof===Y&&gR(lt)===Ct.type){f(oe,Ct.sibling),ee=x(Ct,ae.props),ee.ref=_u(oe,Ct,ae),ee.return=oe,oe=ee;break e}f(oe,Ct);break}else d(oe,Ct);Ct=Ct.sibling}ae.type===R?(ee=Qa(ae.props.children,oe.mode,Le,ae.key),ee.return=oe,oe=ee):(Le=zp(ae.type,ae.key,ae.props,null,oe.mode,Le),Le.ref=_u(oe,ee,ae),Le.return=oe,oe=Le)}return k(oe);case D:e:{for(Ct=ae.key;ee!==null;){if(ee.key===Ct)if(ee.tag===4&&ee.stateNode.containerInfo===ae.containerInfo&&ee.stateNode.implementation===ae.implementation){f(oe,ee.sibling),ee=x(ee,ae.children||[]),ee.return=oe,oe=ee;break e}else{f(oe,ee);break}else d(oe,ee);ee=ee.sibling}ee=vv(ae,oe.mode,Le),ee.return=oe,oe=ee}return k(oe);case Y:return Ct=ae._init,Os(oe,ee,Ct(ae._payload),Le)}if(wt(ae))return st(oe,ee,ae,Le);if(ie(ae))return it(oe,ee,ae,Le);Cp(oe,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?(ae=""+ae,ee!==null&&ee.tag===6?(f(oe,ee.sibling),ee=x(ee,ae),ee.return=oe,oe=ee):(f(oe,ee),ee=Cv(ae,oe.mode,Le),ee.return=oe,oe=ee),k(oe)):f(oe,ee)}return Os}var nc=fR(!0),mR=fR(!1),vp=Wo(null),yp=null,oc=null,EC=null;function TC(){EC=oc=yp=null}function MC(c){var d=vp.current;ms(vp),c._currentValue=d}function DC(c,d,f){for(;c!==null;){var y=c.alternate;if((c.childLanes&d)!==d?(c.childLanes|=d,y!==null&&(y.childLanes|=d)):y!==null&&(y.childLanes&d)!==d&&(y.childLanes|=d),c===f)break;c=c.return}}function ac(c,d){yp=c,EC=oc=null,c=c.dependencies,c!==null&&c.firstContext!==null&&((c.lanes&d)!==0&&(Ur=!0),c.firstContext=null)}function Mi(c){var d=c._currentValue;if(EC!==c)if(c={context:c,memoizedValue:d,next:null},oc===null){if(yp===null)throw Error(s(308));oc=c,yp.dependencies={lanes:0,firstContext:c}}else oc=oc.next=c;return d}var $a=null;function AC(c){$a===null?$a=[c]:$a.push(c)}function CR(c,d,f,y){var x=d.interleaved;return x===null?(f.next=f,AC(d)):(f.next=x.next,x.next=f),d.interleaved=f,oo(c,y)}function oo(c,d){c.lanes|=d;var f=c.alternate;for(f!==null&&(f.lanes|=d),f=c,c=c.return;c!==null;)c.childLanes|=d,f=c.alternate,f!==null&&(f.childLanes|=d),f=c,c=c.return;return f.tag===3?f.stateNode:null}var Uo=!1;function IC(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function vR(c,d){c=c.updateQueue,d.updateQueue===c&&(d.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,effects:c.effects})}function ao(c,d){return{eventTime:c,lane:d,tag:0,payload:null,callback:null,next:null}}function jo(c,d,f){var y=c.updateQueue;if(y===null)return null;if(y=y.shared,(_t&2)!==0){var x=y.pending;return x===null?d.next=d:(d.next=x.next,x.next=d),y.pending=d,oo(c,f)}return x=y.interleaved,x===null?(d.next=d,AC(y)):(d.next=x.next,x.next=d),y.interleaved=d,oo(c,f)}function wp(c,d,f){if(d=d.updateQueue,d!==null&&(d=d.shared,(f&4194240)!==0)){var y=d.lanes;y&=c.pendingLanes,f|=y,d.lanes=f,jm(c,f)}}function yR(c,d){var f=c.updateQueue,y=c.alternate;if(y!==null&&(y=y.updateQueue,f===y)){var x=null,M=null;if(f=f.firstBaseUpdate,f!==null){do{var k={eventTime:f.eventTime,lane:f.lane,tag:f.tag,payload:f.payload,callback:f.callback,next:null};M===null?x=M=k:M=M.next=k,f=f.next}while(f!==null);M===null?x=M=d:M=M.next=d}else x=M=d;f={baseState:y.baseState,firstBaseUpdate:x,lastBaseUpdate:M,shared:y.shared,effects:y.effects},c.updateQueue=f;return}c=f.lastBaseUpdate,c===null?f.firstBaseUpdate=d:c.next=d,f.lastBaseUpdate=d}function bp(c,d,f,y){var x=c.updateQueue;Uo=!1;var M=x.firstBaseUpdate,k=x.lastBaseUpdate,W=x.shared.pending;if(W!==null){x.shared.pending=null;var X=W,le=X.next;X.next=null,k===null?M=le:k.next=le,k=X;var Pe=c.alternate;Pe!==null&&(Pe=Pe.updateQueue,W=Pe.lastBaseUpdate,W!==k&&(W===null?Pe.firstBaseUpdate=le:W.next=le,Pe.lastBaseUpdate=X))}if(M!==null){var Me=x.baseState;k=0,Pe=le=X=null,W=M;do{var xe=W.lane,Ye=W.eventTime;if((y&xe)===xe){Pe!==null&&(Pe=Pe.next={eventTime:Ye,lane:0,tag:W.tag,payload:W.payload,callback:W.callback,next:null});e:{var st=c,it=W;switch(xe=d,Ye=f,it.tag){case 1:if(st=it.payload,typeof st=="function"){Me=st.call(Ye,Me,xe);break e}Me=st;break e;case 3:st.flags=st.flags&-65537|128;case 0:if(st=it.payload,xe=typeof st=="function"?st.call(Ye,Me,xe):st,xe==null)break e;Me=ne({},Me,xe);break e;case 2:Uo=!0}}W.callback!==null&&W.lane!==0&&(c.flags|=64,xe=x.effects,xe===null?x.effects=[W]:xe.push(W))}else Ye={eventTime:Ye,lane:xe,tag:W.tag,payload:W.payload,callback:W.callback,next:null},Pe===null?(le=Pe=Ye,X=Me):Pe=Pe.next=Ye,k|=xe;if(W=W.next,W===null){if(W=x.shared.pending,W===null)break;xe=W,W=xe.next,xe.next=null,x.lastBaseUpdate=xe,x.shared.pending=null}}while(!0);if(Pe===null&&(X=Me),x.baseState=X,x.firstBaseUpdate=le,x.lastBaseUpdate=Pe,d=x.shared.interleaved,d!==null){x=d;do k|=x.lane,x=x.next;while(x!==d)}else M===null&&(x.shared.lanes=0);Ka|=k,c.lanes=k,c.memoizedState=Me}}function wR(c,d,f){if(c=d.effects,d.effects=null,c!==null)for(d=0;df?f:4,c(!0);var y=NC.transition;NC.transition={};try{c(!1),d()}finally{rs=f,NC.transition=y}}function VR(){return Di().memoizedState}function lN(c,d,f){var y=Xo(c);if(f={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null},HR(c))zR(d,f);else if(f=CR(c,d,f,y),f!==null){var x=Ar();an(f,c,y,x),WR(f,d,y)}}function cN(c,d,f){var y=Xo(c),x={lane:y,action:f,hasEagerState:!1,eagerState:null,next:null};if(HR(c))zR(d,x);else{var M=c.alternate;if(c.lanes===0&&(M===null||M.lanes===0)&&(M=d.lastRenderedReducer,M!==null))try{var k=d.lastRenderedState,W=M(k,f);if(x.hasEagerState=!0,x.eagerState=W,tn(W,k)){var X=d.interleaved;X===null?(x.next=x,AC(d)):(x.next=X.next,X.next=x),d.interleaved=x;return}}catch{}finally{}f=CR(c,d,x,y),f!==null&&(x=Ar(),an(f,c,y,x),WR(f,d,y))}}function HR(c){var d=c.alternate;return c===Es||d!==null&&d===Es}function zR(c,d){Ku=Rp=!0;var f=c.pending;f===null?d.next=d:(d.next=f.next,f.next=d),c.pending=d}function WR(c,d,f){if((f&4194240)!==0){var y=d.lanes;y&=c.pendingLanes,f|=y,d.lanes=f,jm(c,f)}}var Ep={readContext:Mi,useCallback:Cr,useContext:Cr,useEffect:Cr,useImperativeHandle:Cr,useInsertionEffect:Cr,useLayoutEffect:Cr,useMemo:Cr,useReducer:Cr,useRef:Cr,useState:Cr,useDebugValue:Cr,useDeferredValue:Cr,useTransition:Cr,useMutableSource:Cr,useSyncExternalStore:Cr,useId:Cr,unstable_isNewReconciler:!1},uN={readContext:Mi,useCallback:function(c,d){return Mn().memoizedState=[c,d===void 0?null:d],c},useContext:Mi,useEffect:AR,useImperativeHandle:function(c,d,f){return f=f!=null?f.concat([c]):null,Pp(4194308,4,LR.bind(null,d,c),f)},useLayoutEffect:function(c,d){return Pp(4194308,4,c,d)},useInsertionEffect:function(c,d){return Pp(4,2,c,d)},useMemo:function(c,d){var f=Mn();return d=d===void 0?null:d,c=c(),f.memoizedState=[c,d],c},useReducer:function(c,d,f){var y=Mn();return d=f!==void 0?f(d):d,y.memoizedState=y.baseState=d,c={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:d},y.queue=c,c=c.dispatch=lN.bind(null,Es,c),[y.memoizedState,c]},useRef:function(c){var d=Mn();return c={current:c},d.memoizedState=c},useState:MR,useDebugValue:$C,useDeferredValue:function(c){return Mn().memoizedState=c},useTransition:function(){var c=MR(!1),d=c[0];return c=aN.bind(null,c[1]),Mn().memoizedState=c,[d,c]},useMutableSource:function(){},useSyncExternalStore:function(c,d,f){var y=Es,x=Mn();if(bs){if(f===void 0)throw Error(s(407));f=f()}else{if(f=d(),Zs===null)throw Error(s(349));(ja&30)!==0||RR(y,d,f)}x.memoizedState=f;var M={value:f,getSnapshot:d};return x.queue=M,AR(FR.bind(null,y,M,c),[c]),y.flags|=2048,Xu(9,PR.bind(null,y,M,f,d),void 0,null),f},useId:function(){var c=Mn(),d=Zs.identifierPrefix;if(bs){var f=no,y=io;f=(y&~(1<<32-Kt(y)-1)).toString(32)+f,d=":"+d+"R"+f,f=qu++,0<\/script>",c=c.removeChild(c.firstChild)):typeof y.is=="string"?c=k.createElement(f,{is:y.is}):(c=k.createElement(f),f==="select"&&(k=c,y.multiple?k.multiple=!0:y.size&&(k.size=y.size))):c=k.createElementNS(c,f),c[En]=d,c[zu]=y,l0(c,d,!1,!1),d.stateNode=c;e:{switch(k=Et(f,y),f){case"dialog":fs("cancel",c),fs("close",c),x=y;break;case"iframe":case"object":case"embed":fs("load",c),x=y;break;case"video":case"audio":for(x=0;xhc&&(d.flags|=128,y=!0,Qu(M,!1),d.lanes=4194304)}else{if(!y)if(c=Sp(k),c!==null){if(d.flags|=128,y=!0,f=c.updateQueue,f!==null&&(d.updateQueue=f,d.flags|=4),Qu(M,!0),M.tail===null&&M.tailMode==="hidden"&&!k.alternate&&!bs)return vr(d),null}else 2*jt()-M.renderingStartTime>hc&&f!==1073741824&&(d.flags|=128,y=!0,Qu(M,!1),d.lanes=4194304);M.isBackwards?(k.sibling=d.child,d.child=k):(f=M.last,f!==null?f.sibling=k:d.child=k,M.last=k)}return M.tail!==null?(d=M.tail,M.rendering=d,M.tail=d.sibling,M.renderingStartTime=jt(),d.sibling=null,f=Fs.current,ds(Fs,y?f&1|2:f&1),d):(vr(d),null);case 22:case 23:return gv(),y=d.memoizedState!==null,c!==null&&c.memoizedState!==null!==y&&(d.flags|=8192),y&&(d.mode&1)!==0?(gi&1073741824)!==0&&(vr(d),d.subtreeFlags&6&&(d.flags|=8192)):vr(d),null;case 24:return null;case 25:return null}throw Error(s(156,d.tag))}function vN(c,d){switch(xC(d),d.tag){case 1:return $r(d.type)&&dp(),c=d.flags,c&65536?(d.flags=c&-65537|128,d):null;case 3:return lc(),ms(_r),ms(mr),GC(),c=d.flags,(c&65536)!==0&&(c&128)===0?(d.flags=c&-65537|128,d):null;case 5:return LC(d),null;case 13:if(ms(Fs),c=d.memoizedState,c!==null&&c.dehydrated!==null){if(d.alternate===null)throw Error(s(340));ic()}return c=d.flags,c&65536?(d.flags=c&-65537|128,d):null;case 19:return ms(Fs),null;case 4:return lc(),null;case 10:return MC(d.type._context),null;case 22:case 23:return gv(),null;case 24:return null;default:return null}}var Ap=!1,yr=!1,yN=typeof WeakSet=="function"?WeakSet:Set,tt=null;function uc(c,d){var f=c.ref;if(f!==null)if(typeof f=="function")try{f(null)}catch(y){As(c,d,y)}else f.current=null}function sv(c,d,f){try{f()}catch(y){As(c,d,y)}}var d0=!1;function wN(c,d){if(gC=Qh,c=_x(),oC(c)){if("selectionStart"in c)var f={start:c.selectionStart,end:c.selectionEnd};else e:{f=(f=c.ownerDocument)&&f.defaultView||window;var y=f.getSelection&&f.getSelection();if(y&&y.rangeCount!==0){f=y.anchorNode;var x=y.anchorOffset,M=y.focusNode;y=y.focusOffset;try{f.nodeType,M.nodeType}catch{f=null;break e}var k=0,W=-1,X=-1,le=0,Pe=0,Me=c,xe=null;t:for(;;){for(var Ye;Me!==f||x!==0&&Me.nodeType!==3||(W=k+x),Me!==M||y!==0&&Me.nodeType!==3||(X=k+y),Me.nodeType===3&&(k+=Me.nodeValue.length),(Ye=Me.firstChild)!==null;)xe=Me,Me=Ye;for(;;){if(Me===c)break t;if(xe===f&&++le===x&&(W=k),xe===M&&++Pe===y&&(X=k),(Ye=Me.nextSibling)!==null)break;Me=xe,xe=Me.parentNode}Me=Ye}f=W===-1||X===-1?null:{start:W,end:X}}else f=null}f=f||{start:0,end:0}}else f=null;for(fC={focusedElem:c,selectionRange:f},Qh=!1,tt=d;tt!==null;)if(d=tt,c=d.child,(d.subtreeFlags&1028)!==0&&c!==null)c.return=d,tt=c;else for(;tt!==null;){d=tt;try{var st=d.alternate;if((d.flags&1024)!==0)switch(d.tag){case 0:case 11:case 15:break;case 1:if(st!==null){var it=st.memoizedProps,Os=st.memoizedState,oe=d.stateNode,ee=oe.getSnapshotBeforeUpdate(d.elementType===d.type?it:rn(d.type,it),Os);oe.__reactInternalSnapshotBeforeUpdate=ee}break;case 3:var ae=d.stateNode.containerInfo;ae.nodeType===1?ae.textContent="":ae.nodeType===9&&ae.documentElement&&ae.removeChild(ae.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(s(163))}}catch(Le){As(d,d.return,Le)}if(c=d.sibling,c!==null){c.return=d.return,tt=c;break}tt=d.return}return st=d0,d0=!1,st}function Ju(c,d,f){var y=d.updateQueue;if(y=y!==null?y.lastEffect:null,y!==null){var x=y=y.next;do{if((x.tag&c)===c){var M=x.destroy;x.destroy=void 0,M!==void 0&&sv(d,f,M)}x=x.next}while(x!==y)}}function Ip(c,d){if(d=d.updateQueue,d=d!==null?d.lastEffect:null,d!==null){var f=d=d.next;do{if((f.tag&c)===c){var y=f.create;f.destroy=y()}f=f.next}while(f!==d)}}function rv(c){var d=c.ref;if(d!==null){var f=c.stateNode;switch(c.tag){case 5:c=f;break;default:c=f}typeof d=="function"?d(c):d.current=c}}function h0(c){var d=c.alternate;d!==null&&(c.alternate=null,h0(d)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(d=c.stateNode,d!==null&&(delete d[En],delete d[zu],delete d[yC],delete d[sN],delete d[rN])),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}function p0(c){return c.tag===5||c.tag===3||c.tag===4}function g0(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||p0(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function iv(c,d,f){var y=c.tag;if(y===5||y===6)c=c.stateNode,d?f.nodeType===8?f.parentNode.insertBefore(c,d):f.insertBefore(c,d):(f.nodeType===8?(d=f.parentNode,d.insertBefore(c,f)):(d=f,d.appendChild(c)),f=f._reactRootContainer,f!=null||d.onclick!==null||(d.onclick=cp));else if(y!==4&&(c=c.child,c!==null))for(iv(c,d,f),c=c.sibling;c!==null;)iv(c,d,f),c=c.sibling}function nv(c,d,f){var y=c.tag;if(y===5||y===6)c=c.stateNode,d?f.insertBefore(c,d):f.appendChild(c);else if(y!==4&&(c=c.child,c!==null))for(nv(c,d,f),c=c.sibling;c!==null;)nv(c,d,f),c=c.sibling}var ar=null,nn=!1;function Ko(c,d,f){for(f=f.child;f!==null;)f0(c,d,f),f=f.sibling}function f0(c,d,f){if(or&&typeof or.onCommitFiberUnmount=="function")try{or.onCommitFiberUnmount(cs,f)}catch{}switch(f.tag){case 5:yr||uc(f,d);case 6:var y=ar,x=nn;ar=null,Ko(c,d,f),ar=y,nn=x,ar!==null&&(nn?(c=ar,f=f.stateNode,c.nodeType===8?c.parentNode.removeChild(f):c.removeChild(f)):ar.removeChild(f.stateNode));break;case 18:ar!==null&&(nn?(c=ar,f=f.stateNode,c.nodeType===8?vC(c.parentNode,f):c.nodeType===1&&vC(c,f),Du(c)):vC(ar,f.stateNode));break;case 4:y=ar,x=nn,ar=f.stateNode.containerInfo,nn=!0,Ko(c,d,f),ar=y,nn=x;break;case 0:case 11:case 14:case 15:if(!yr&&(y=f.updateQueue,y!==null&&(y=y.lastEffect,y!==null))){x=y=y.next;do{var M=x,k=M.destroy;M=M.tag,k!==void 0&&((M&2)!==0||(M&4)!==0)&&sv(f,d,k),x=x.next}while(x!==y)}Ko(c,d,f);break;case 1:if(!yr&&(uc(f,d),y=f.stateNode,typeof y.componentWillUnmount=="function"))try{y.props=f.memoizedProps,y.state=f.memoizedState,y.componentWillUnmount()}catch(W){As(f,d,W)}Ko(c,d,f);break;case 21:Ko(c,d,f);break;case 22:f.mode&1?(yr=(y=yr)||f.memoizedState!==null,Ko(c,d,f),yr=y):Ko(c,d,f);break;default:Ko(c,d,f)}}function m0(c){var d=c.updateQueue;if(d!==null){c.updateQueue=null;var f=c.stateNode;f===null&&(f=c.stateNode=new yN),d.forEach(function(y){var x=MN.bind(null,c,y);f.has(y)||(f.add(y),y.then(x,x))})}}function on(c,d){var f=d.deletions;if(f!==null)for(var y=0;yx&&(x=k),y&=~M}if(y=x,y=jt()-y,y=(120>y?120:480>y?480:1080>y?1080:1920>y?1920:3e3>y?3e3:4320>y?4320:1960*SN(y/1960))-y,10c?16:c,Yo===null)var y=!1;else{if(c=Yo,Yo=null,Np=0,(_t&6)!==0)throw Error(s(331));var x=_t;for(_t|=4,tt=c.current;tt!==null;){var M=tt,k=M.child;if((tt.flags&16)!==0){var W=M.deletions;if(W!==null){for(var X=0;Xjt()-lv?Ya(c,0):av|=f),Kr(c,d)}function M0(c,d){d===0&&((c.mode&1)===0?d=1:(d=Kh,Kh<<=1,(Kh&130023424)===0&&(Kh=4194304)));var f=Ar();c=oo(c,d),c!==null&&(Pu(c,d,f),Kr(c,f))}function TN(c){var d=c.memoizedState,f=0;d!==null&&(f=d.retryLane),M0(c,f)}function MN(c,d){var f=0;switch(c.tag){case 13:var y=c.stateNode,x=c.memoizedState;x!==null&&(f=x.retryLane);break;case 19:y=c.stateNode;break;default:throw Error(s(314))}y!==null&&y.delete(d),M0(c,f)}var D0;D0=function(c,d,f){if(c!==null)if(c.memoizedProps!==d.pendingProps||_r.current)Ur=!0;else{if((c.lanes&f)===0&&(d.flags&128)===0)return Ur=!1,mN(c,d,f);Ur=(c.flags&131072)!==0}else Ur=!1,bs&&(d.flags&1048576)!==0&&cR(d,fp,d.index);switch(d.lanes=0,d.tag){case 2:var y=d.type;Dp(c,d),c=d.pendingProps;var x=tc(d,mr.current);ac(d,f),x=VC(null,d,y,c,x,f);var M=HC();return d.flags|=1,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0?(d.tag=1,d.memoizedState=null,d.updateQueue=null,$r(y)?(M=!0,hp(d)):M=!1,d.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,IC(d),x.updater=Tp,d.stateNode=x,x._reactInternals=d,jC(d,y,c,f),d=XC(null,d,y,!0,M,f)):(d.tag=0,bs&&M&&SC(d),Dr(null,d,x,f),d=d.child),d;case 16:y=d.elementType;e:{switch(Dp(c,d),c=d.pendingProps,x=y._init,y=x(y._payload),d.type=y,x=d.tag=AN(y),c=rn(y,c),x){case 0:d=YC(null,d,y,c,f);break e;case 1:d=s0(null,d,y,c,f);break e;case 11:d=QR(null,d,y,c,f);break e;case 14:d=JR(null,d,y,rn(y.type,c),f);break e}throw Error(s(306,y,""))}return d;case 0:return y=d.type,x=d.pendingProps,x=d.elementType===y?x:rn(y,x),YC(c,d,y,x,f);case 1:return y=d.type,x=d.pendingProps,x=d.elementType===y?x:rn(y,x),s0(c,d,y,x,f);case 3:e:{if(r0(d),c===null)throw Error(s(387));y=d.pendingProps,M=d.memoizedState,x=M.element,vR(c,d),bp(d,y,null,f);var k=d.memoizedState;if(y=k.element,M.isDehydrated)if(M={element:y,isDehydrated:!1,cache:k.cache,pendingSuspenseBoundaries:k.pendingSuspenseBoundaries,transitions:k.transitions},d.updateQueue.baseState=M,d.memoizedState=M,d.flags&256){x=cc(Error(s(423)),d),d=i0(c,d,y,f,x);break e}else if(y!==x){x=cc(Error(s(424)),d),d=i0(c,d,y,f,x);break e}else for(pi=zo(d.stateNode.containerInfo.firstChild),hi=d,bs=!0,sn=null,f=mR(d,null,y,f),d.child=f;f;)f.flags=f.flags&-3|4096,f=f.sibling;else{if(ic(),y===x){d=lo(c,d,f);break e}Dr(c,d,y,f)}d=d.child}return d;case 5:return bR(d),c===null&&PC(d),y=d.type,x=d.pendingProps,M=c!==null?c.memoizedProps:null,k=x.children,mC(y,x)?k=null:M!==null&&mC(y,M)&&(d.flags|=32),t0(c,d),Dr(c,d,k,f),d.child;case 6:return c===null&&PC(d),null;case 13:return n0(c,d,f);case 4:return kC(d,d.stateNode.containerInfo),y=d.pendingProps,c===null?d.child=nc(d,null,y,f):Dr(c,d,y,f),d.child;case 11:return y=d.type,x=d.pendingProps,x=d.elementType===y?x:rn(y,x),QR(c,d,y,x,f);case 7:return Dr(c,d,d.pendingProps,f),d.child;case 8:return Dr(c,d,d.pendingProps.children,f),d.child;case 12:return Dr(c,d,d.pendingProps.children,f),d.child;case 10:e:{if(y=d.type._context,x=d.pendingProps,M=d.memoizedProps,k=x.value,ds(vp,y._currentValue),y._currentValue=k,M!==null)if(tn(M.value,k)){if(M.children===x.children&&!_r.current){d=lo(c,d,f);break e}}else for(M=d.child,M!==null&&(M.return=d);M!==null;){var W=M.dependencies;if(W!==null){k=M.child;for(var X=W.firstContext;X!==null;){if(X.context===y){if(M.tag===1){X=ao(-1,f&-f),X.tag=2;var le=M.updateQueue;if(le!==null){le=le.shared;var Pe=le.pending;Pe===null?X.next=X:(X.next=Pe.next,Pe.next=X),le.pending=X}}M.lanes|=f,X=M.alternate,X!==null&&(X.lanes|=f),DC(M.return,f,d),W.lanes|=f;break}X=X.next}}else if(M.tag===10)k=M.type===d.type?null:M.child;else if(M.tag===18){if(k=M.return,k===null)throw Error(s(341));k.lanes|=f,W=k.alternate,W!==null&&(W.lanes|=f),DC(k,f,d),k=M.sibling}else k=M.child;if(k!==null)k.return=M;else for(k=M;k!==null;){if(k===d){k=null;break}if(M=k.sibling,M!==null){M.return=k.return,k=M;break}k=k.return}M=k}Dr(c,d,x.children,f),d=d.child}return d;case 9:return x=d.type,y=d.pendingProps.children,ac(d,f),x=Mi(x),y=y(x),d.flags|=1,Dr(c,d,y,f),d.child;case 14:return y=d.type,x=rn(y,d.pendingProps),x=rn(y.type,x),JR(c,d,y,x,f);case 15:return ZR(c,d,d.type,d.pendingProps,f);case 17:return y=d.type,x=d.pendingProps,x=d.elementType===y?x:rn(y,x),Dp(c,d),d.tag=1,$r(y)?(c=!0,hp(d)):c=!1,ac(d,f),$R(d,y,x),jC(d,y,x,f),XC(null,d,y,!0,c,f);case 19:return a0(c,d,f);case 22:return e0(c,d,f)}throw Error(s(156,d.tag))};function A0(c,d){return bt(c,d)}function DN(c,d,f,y){this.tag=c,this.key=f,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=d,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=y,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ii(c,d,f,y){return new DN(c,d,f,y)}function mv(c){return c=c.prototype,!(!c||!c.isReactComponent)}function AN(c){if(typeof c=="function")return mv(c)?1:0;if(c!=null){if(c=c.$$typeof,c===N)return 11;if(c===q)return 14}return 2}function Jo(c,d){var f=c.alternate;return f===null?(f=Ii(c.tag,d,c.key,c.mode),f.elementType=c.elementType,f.type=c.type,f.stateNode=c.stateNode,f.alternate=c,c.alternate=f):(f.pendingProps=d,f.type=c.type,f.flags=0,f.subtreeFlags=0,f.deletions=null),f.flags=c.flags&14680064,f.childLanes=c.childLanes,f.lanes=c.lanes,f.child=c.child,f.memoizedProps=c.memoizedProps,f.memoizedState=c.memoizedState,f.updateQueue=c.updateQueue,d=c.dependencies,f.dependencies=d===null?null:{lanes:d.lanes,firstContext:d.firstContext},f.sibling=c.sibling,f.index=c.index,f.ref=c.ref,f}function zp(c,d,f,y,x,M){var k=2;if(y=c,typeof c=="function")mv(c)&&(k=1);else if(typeof c=="string")k=5;else e:switch(c){case R:return Qa(f.children,x,M,d);case A:k=8,x|=8;break;case G:return c=Ii(12,f,d,x|2),c.elementType=G,c.lanes=M,c;case H:return c=Ii(13,f,d,x),c.elementType=H,c.lanes=M,c;case $:return c=Ii(19,f,d,x),c.elementType=$,c.lanes=M,c;case re:return Wp(f,x,M,d);default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case L:k=10;break e;case O:k=9;break e;case N:k=11;break e;case q:k=14;break e;case Y:k=16,y=null;break e}throw Error(s(130,c==null?c:typeof c,""))}return d=Ii(k,f,d,x),d.elementType=c,d.type=y,d.lanes=M,d}function Qa(c,d,f,y){return c=Ii(7,c,y,d),c.lanes=f,c}function Wp(c,d,f,y){return c=Ii(22,c,y,d),c.elementType=re,c.lanes=f,c.stateNode={isHidden:!1},c}function Cv(c,d,f){return c=Ii(6,c,null,d),c.lanes=f,c}function vv(c,d,f){return d=Ii(4,c.children!==null?c.children:[],c.key,d),d.lanes=f,d.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},d}function IN(c,d,f,y,x){this.tag=d,this.containerInfo=c,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Um(0),this.expirationTimes=Um(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Um(0),this.identifierPrefix=y,this.onRecoverableError=x,this.mutableSourceEagerHydrationData=null}function yv(c,d,f,y,x,M,k,W,X){return c=new IN(c,d,f,W,X),d===1?(d=1,M===!0&&(d|=8)):d=0,M=Ii(3,null,null,d),c.current=M,M.stateNode=c,M.memoizedState={element:y,isDehydrated:f,cache:null,transitions:null,pendingSuspenseBoundaries:null},IC(M),c}function kN(c,d,f){var y=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Pv.exports=_N(),Pv.exports}var U0;function $N(){if(U0)return Yp;U0=1;var e=lM();return Yp.createRoot=e.createRoot,Yp.hydrateRoot=e.hydrateRoot,Yp}var UN=$N();const mve=nu(UN);function Te(e,t){if(e==null)return{};var s={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;s[r]=e[r]}return s}function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t{if(r.toString().match(/^(components|slots)$/))s[r]=I({},e[r],s[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},n=t[r];s[r]={},!n||!Object.keys(n)?s[r]=i:!i||!Object.keys(i)?s[r]=n:(s[r]=I({},n),Object.keys(i).forEach(o=>{s[r][o]=Yd(i[o],n[o])}))}else s[r]===void 0&&(s[r]=e[r])}),s}function ct(e,t,s=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((n,o)=>{if(o){const a=t(o);a!==""&&n.push(a),s&&s[o]&&n.push(s[o])}return n},[]).join(" ")}),r}var Ts={},Tv={exports:{}},j0;function Xw(){return j0||(j0=1,function(e){function t(s){return s&&s.__esModule?s:{default:s}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Tv)),Tv.exports}function bo(e){let t="https://mui.com/production-error/?code="+e;for(let s=1;s=6?2:1}}`,"g");let G=R.match(A);return G&&G[0].length===1&&(G=G.map(L=>L+L)),G?`rgb${G.length===4?"a":""}(${G.map((L,O)=>O<3?parseInt(L,16):Math.round(parseInt(L,16)/255*1e3)/1e3).join(", ")})`:""}function n(R){const A=R.toString(16);return A.length===1?`0${A}`:A}function o(R){if(R.type)return R;if(R.charAt(0)==="#")return o(i(R));const A=R.indexOf("("),G=R.substring(0,A);if(["rgb","rgba","hsl","hsla","color"].indexOf(G)===-1)throw new Error((0,t.default)(9,R));let L=R.substring(A+1,R.length-1),O;if(G==="color"){if(L=L.split(" "),O=L.shift(),L.length===4&&L[3].charAt(0)==="/"&&(L[3]=L[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(O)===-1)throw new Error((0,t.default)(10,O))}else L=L.split(",");return L=L.map(N=>parseFloat(N)),{type:G,values:L,colorSpace:O}}const a=R=>{const A=o(R);return A.values.slice(0,3).map((G,L)=>A.type.indexOf("hsl")!==-1&&L!==0?`${G}%`:G).join(" ")};Ts.colorChannel=a;const l=(R,A)=>{try{return a(R)}catch{return R}};Ts.private_safeColorChannel=l;function u(R){const{type:A,colorSpace:G}=R;let{values:L}=R;return A.indexOf("rgb")!==-1?L=L.map((O,N)=>N<3?parseInt(O,10):O):A.indexOf("hsl")!==-1&&(L[1]=`${L[1]}%`,L[2]=`${L[2]}%`),A.indexOf("color")!==-1?L=`${G} ${L.join(" ")}`:L=`${L.join(", ")}`,`${A}(${L})`}function h(R){if(R.indexOf("#")===0)return R;const{values:A}=o(R);return`#${A.map((G,L)=>n(L===3?Math.round(255*G):G)).join("")}`}function p(R){R=o(R);const{values:A}=R,G=A[0],L=A[1]/100,O=A[2]/100,N=L*Math.min(O,1-O),H=(Y,re=(Y+G/30)%12)=>O-N*Math.max(Math.min(re-3,9-re,1),-1);let $="rgb";const q=[Math.round(H(0)*255),Math.round(H(8)*255),Math.round(H(4)*255)];return R.type==="hsla"&&($+="a",q.push(A[3])),u({type:$,values:q})}function g(R){R=o(R);let A=R.type==="hsl"||R.type==="hsla"?o(p(R)).values:R.values;return A=A.map(G=>(R.type!=="color"&&(G/=255),G<=.03928?G/12.92:((G+.055)/1.055)**2.4)),Number((.2126*A[0]+.7152*A[1]+.0722*A[2]).toFixed(3))}function m(R,A){const G=g(R),L=g(A);return(Math.max(G,L)+.05)/(Math.min(G,L)+.05)}function C(R,A){return R=o(R),A=r(A),(R.type==="rgb"||R.type==="hsl")&&(R.type+="a"),R.type==="color"?R.values[3]=`/${A}`:R.values[3]=A,u(R)}function v(R,A,G){try{return C(R,A)}catch{return R}}function w(R,A){if(R=o(R),A=r(A),R.type.indexOf("hsl")!==-1)R.values[2]*=1-A;else if(R.type.indexOf("rgb")!==-1||R.type.indexOf("color")!==-1)for(let G=0;G<3;G+=1)R.values[G]*=1-A;return u(R)}function S(R,A,G){try{return w(R,A)}catch{return R}}function P(R,A){if(R=o(R),A=r(A),R.type.indexOf("hsl")!==-1)R.values[2]+=(100-R.values[2])*A;else if(R.type.indexOf("rgb")!==-1)for(let G=0;G<3;G+=1)R.values[G]+=(255-R.values[G])*A;else if(R.type.indexOf("color")!==-1)for(let G=0;G<3;G+=1)R.values[G]+=(1-R.values[G])*A;return u(R)}function T(R,A,G){try{return P(R,A)}catch{return R}}function F(R,A=.15){return g(R)>.5?w(R,A):P(R,A)}function E(R,A,G){try{return F(R,A)}catch{return R}}function D(R,A,G,L=1){const O=(q,Y)=>Math.round((q**(1/L)*(1-G)+Y**(1/L)*G)**L),N=o(R),H=o(A),$=[O(N.values[0],H.values[0]),O(N.values[1],H.values[1]),O(N.values[2],H.values[2])];return u({type:"rgb",values:$})}return Ts}var yt=XN(),Ja={},Mv={exports:{}},q0;function QN(){return q0||(q0=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(s){for(var r=1;r0?dr(ou,--ai):0,Nc--,$s===10&&(Nc=1,Gf--),$s}function xi(){return $s=ai2||Qd($s)>3?"":" "}function hB(e,t){for(;--t&&xi()&&!($s<48||$s>102||$s>57&&$s<65||$s>70&&$s<97););return vh(e,Sg()+(t<6&&Hn()==32&&xi()==32))}function Wy(e){for(;xi();)switch($s){case e:return ai;case 34:case 39:e!==34&&e!==39&&Wy($s);break;case 40:e===41&&Wy(e);break;case 92:xi();break}return ai}function pB(e,t){for(;xi()&&e+$s!==57;)if(e+$s===84&&Hn()===47)break;return"/*"+vh(t,ai-1)+"*"+Of(e===47?e:xi())}function gB(e){for(;!Qd(Hn());)xi();return vh(e,ai)}function fB(e){return mM(Rg("",null,null,null,[""],e=fM(e),0,[0],e))}function Rg(e,t,s,r,i,n,o,a,l){for(var u=0,h=0,p=o,g=0,m=0,C=0,v=1,w=1,S=1,P=0,T="",F=i,E=n,D=r,R=T;w;)switch(C=P,P=xi()){case 40:if(C!=108&&dr(R,p-1)==58){zy(R+=Zt(xg(P),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:R+=xg(P);break;case 9:case 10:case 13:case 32:R+=dB(C);break;case 92:R+=hB(Sg()-1,7);continue;case 47:switch(Hn()){case 42:case 47:Xp(mB(pB(xi(),Sg()),t,s),l);break;default:R+="/"}break;case 123*v:a[u++]=Ln(R)*S;case 125*v:case 59:case 0:switch(P){case 0:case 125:w=0;case 59+h:S==-1&&(R=Zt(R,/\f/g,"")),m>0&&Ln(R)-p&&Xp(m>32?Q0(R+";",r,s,p-1):Q0(Zt(R," ","")+";",r,s,p-2),l);break;case 59:R+=";";default:if(Xp(D=X0(R,t,s,u,h,i,a,T,F=[],E=[],p),n),P===123)if(h===0)Rg(R,t,D,D,F,n,p,a,E);else switch(g===99&&dr(R,3)===110?100:g){case 100:case 108:case 109:case 115:Rg(e,D,D,r&&Xp(X0(e,D,D,0,0,i,a,T,i,F=[],p),E),i,E,p,a,r?F:E);break;default:Rg(R,D,D,D,[""],E,0,a,E)}}u=h=m=0,v=S=1,T=R="",p=o;break;case 58:p=1+Ln(R),m=C;default:if(v<1){if(P==123)--v;else if(P==125&&v++==0&&uB()==125)continue}switch(R+=Of(P),P*v){case 38:S=h>0?1:(R+="\f",-1);break;case 44:a[u++]=(Ln(R)-1)*S,S=1;break;case 64:Hn()===45&&(R+=xg(xi())),g=Hn(),h=p=Ln(T=R+=gB(Sg())),P++;break;case 45:C===45&&Ln(R)==2&&(v=0)}}return n}function X0(e,t,s,r,i,n,o,a,l,u,h){for(var p=i-1,g=i===0?n:[""],m=Zw(g),C=0,v=0,w=0;C0?g[S]+" "+P:Zt(P,/&\f/g,g[S])))&&(l[w++]=T);return Nf(e,t,s,i===0?Qw:a,l,u,h)}function mB(e,t,s){return Nf(e,t,s,dM,Of(cB()),Xd(e,2,-2),0)}function Q0(e,t,s,r){return Nf(e,t,s,Jw,Xd(e,0,r),Xd(e,r+1,-1),r)}function Dc(e,t){for(var s="",r=Zw(e),i=0;i6)switch(dr(e,t+1)){case 109:if(dr(e,t+4)!==45)break;case 102:return Zt(e,/(.+:)(.+)-([^]+)/,"$1"+Jt+"$2-$3$1"+$g+(dr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~zy(e,"stretch")?vM(Zt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(dr(e,t+1)!==115)break;case 6444:switch(dr(e,Ln(e)-3-(~zy(e,"!important")&&10))){case 107:return Zt(e,":",":"+Jt)+e;case 101:return Zt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Jt+(dr(e,14)===45?"inline-":"")+"box$3$1"+Jt+"$2$3$1"+Sr+"$2box$3")+e}break;case 5936:switch(dr(e,t+11)){case 114:return Jt+e+Sr+Zt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Jt+e+Sr+Zt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Jt+e+Sr+Zt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Jt+e+Sr+e+e}return e}var PB=function(t,s,r,i){if(t.length>-1&&!t.return)switch(t.type){case Jw:t.return=vM(t.value,t.length);break;case hM:return Dc([id(t,{value:Zt(t.value,"@","@"+Jt)})],i);case Qw:if(t.length)return lB(t.props,function(n){switch(aB(n,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Dc([id(t,{props:[Zt(n,/:(read-\w+)/,":"+$g+"$1")]})],i);case"::placeholder":return Dc([id(t,{props:[Zt(n,/:(plac\w+)/,":"+Jt+"input-$1")]}),id(t,{props:[Zt(n,/:(plac\w+)/,":"+$g+"$1")]}),id(t,{props:[Zt(n,/:(plac\w+)/,Sr+"input-$1")]})],i)}return""})}},FB=[PB],yM=function(t){var s=t.key;if(s==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(v){var w=v.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(v),v.setAttribute("data-s",""))})}var i=t.stylisPlugins||FB,n={},o,a=[];o=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+s+' "]'),function(v){for(var w=v.getAttribute("data-emotion").split(" "),S=1;S=4;++r,i-=4)s=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,s=(s&65535)*1540483477+((s>>>16)*59797<<16),s^=s>>>24,t=(s&65535)*1540483477+((s>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){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 IB={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},kB=/[A-Z]|^ms/g,LB=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bM=function(t){return t.charCodeAt(1)===45},sP=function(t){return t!=null&&typeof t!="boolean"},kv=CM(function(e){return bM(e)?e:e.replace(kB,"-$&").toLowerCase()}),rP=function(t,s){switch(t){case"animation":case"animationName":if(typeof s=="string")return s.replace(LB,function(r,i,n){return On={name:i,styles:n,next:On},i})}return IB[t]!==1&&!bM(t)&&typeof s=="number"&&s!==0?s+"px":s};function Jd(e,t,s){if(s==null)return"";var r=s;if(r.__emotion_styles!==void 0)return r;switch(typeof s){case"boolean":return"";case"object":{var i=s;if(i.anim===1)return On={name:i.name,styles:i.styles,next:On},i.name;var n=s;if(n.styles!==void 0){var o=n.next;if(o!==void 0)for(;o!==void 0;)On={name:o.name,styles:o.styles,next:On},o=o.next;var a=n.styles+";";return a}return OB(e,t,s)}case"function":{if(e!==void 0){var l=On,u=s(e);return On=l,Jd(e,t,u)}break}}var h=s;if(t==null)return h;var p=t[h];return p!==void 0?p:h}function OB(e,t,s){var r="";if(Array.isArray(s))for(var i=0;i96?UB:jB},lP=function(t,s,r){var i;if(s){var n=s.shouldForwardProp;i=t.__emotion_forwardProp&&n?function(o){return t.__emotion_forwardProp(o)&&n(o)}:n}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},KB=function(t){var s=t.cache,r=t.serialized,i=t.isStringTag;return eb(s,r,i),xM(function(){return tb(s,r,i)}),null},qB=function e(t,s){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,n,o;s!==void 0&&(n=s.label,o=s.target);var a=lP(t,s,r),l=a||aP(i),u=!l("as");return function(){var h=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(n!==void 0&&p.push("label:"+n+";"),h[0]==null||h[0].raw===void 0)p.push.apply(p,h);else{var g=h[0];p.push(g[0]);for(var m=h.length,C=1;Ct(QB(i)?s:i):t;return U.jsx(WB,{styles:r})}function ib(e,t){return $y(e,t)}const FM=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},JB=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:PM,StyledEngineProvider:XB,ThemeContext:au,css:Bc,default:ib,internal_processStyles:FM,keyframes:Ma},Symbol.toStringTag,{value:"Module"})),EM=Mo(JB);function po(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 TM(e){if(b.isValidElement(e)||!po(e))return e;const t={};return Object.keys(e).forEach(s=>{t[s]=TM(e[s])}),t}function Gr(e,t,s={clone:!0}){const r=s.clone?I({},e):e;return po(e)&&po(t)&&Object.keys(t).forEach(i=>{b.isValidElement(t[i])?r[i]=t[i]:po(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&po(e[i])?r[i]=Gr(e[i],t[i],s):s.clone?r[i]=po(t[i])?TM(t[i]):t[i]:r[i]=t[i]}),r}const ZB=Object.freeze(Object.defineProperty({__proto__:null,default:Gr,isPlainObject:po},Symbol.toStringTag,{value:"Module"})),eV=Mo(ZB);function ye(e){if(typeof e!="string")throw new Error(bo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const tV=Object.freeze(Object.defineProperty({__proto__:null,default:ye},Symbol.toStringTag,{value:"Module"})),sV=Mo(tV);var Lv={exports:{}},os={};/** * @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 cP;function rV(){if(cP)return os;cP=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),n=Symbol.for("react.consumer"),o=Symbol.for("react.context"),a=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),g=Symbol.for("react.view_transition"),m=Symbol.for("react.client.reference");function C(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case s:case i:case r:case l:case u:case g:return v;default:switch(v=v&&v.$$typeof,v){case o:case a:case p:case h:return v;case n:return v;default:return w}}case t:return w}}}return os.ContextConsumer=n,os.ContextProvider=o,os.Element=e,os.ForwardRef=a,os.Fragment=s,os.Lazy=p,os.Memo=h,os.Portal=t,os.Profiler=i,os.StrictMode=r,os.Suspense=l,os.SuspenseList=u,os.isContextConsumer=function(v){return C(v)===n},os.isContextProvider=function(v){return C(v)===o},os.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},os.isForwardRef=function(v){return C(v)===a},os.isFragment=function(v){return C(v)===s},os.isLazy=function(v){return C(v)===p},os.isMemo=function(v){return C(v)===h},os.isPortal=function(v){return C(v)===t},os.isProfiler=function(v){return C(v)===i},os.isStrictMode=function(v){return C(v)===r},os.isSuspense=function(v){return C(v)===l},os.isSuspenseList=function(v){return C(v)===u},os.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===s||v===i||v===r||v===l||v===u||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===h||v.$$typeof===o||v.$$typeof===n||v.$$typeof===a||v.$$typeof===m||v.getModuleId!==void 0)},os.typeOf=C,os}var uP;function iV(){return uP||(uP=1,Lv.exports=rV()),Lv.exports}var dP=iV();const nV=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function MM(e){const t=`${e}`.match(nV);return t&&t[1]||""}function DM(e,t=""){return e.displayName||e.name||MM(e)||t}function hP(e,t,s){const r=DM(t);return e.displayName||(r!==""?`${s}(${r})`:s)}function oV(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return DM(e,"Component");if(typeof e=="object")switch(e.$$typeof){case dP.ForwardRef:return hP(e,e.render,"ForwardRef");case dP.Memo:return hP(e,e.type,"memo");default:return}}}const aV=Object.freeze(Object.defineProperty({__proto__:null,default:oV,getFunctionName:MM},Symbol.toStringTag,{value:"Module"})),lV=Mo(aV),cV=["values","unit","step"],uV=e=>{const t=Object.keys(e).map(s=>({key:s,val:e[s]}))||[];return t.sort((s,r)=>s.val-r.val),t.reduce((s,r)=>I({},s,{[r.key]:r.val}),{})};function AM(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:s="px",step:r=5}=e,i=Te(e,cV),n=uV(t),o=Object.keys(n);function a(g){return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${s})`}function l(g){return`@media (max-width:${(typeof t[g]=="number"?t[g]:g)-r/100}${s})`}function u(g,m){const C=o.indexOf(m);return`@media (min-width:${typeof t[g]=="number"?t[g]:g}${s}) and (max-width:${(C!==-1&&typeof t[o[C]]=="number"?t[o[C]]:m)-r/100}${s})`}function h(g){return o.indexOf(g)+1`@media (min-width:${nb[e]}px)`};function mn(e,t,s){const r=e.theme||{};if(Array.isArray(t)){const n=r.breakpoints||pP;return t.reduce((o,a,l)=>(o[n.up(n.keys[l])]=s(t[l]),o),{})}if(typeof t=="object"){const n=r.breakpoints||pP;return Object.keys(t).reduce((o,a)=>{if(Object.keys(n.values||nb).indexOf(a)!==-1){const l=n.up(a);o[l]=s(t[a],a)}else{const l=a;o[l]=t[l]}return o},{})}return s(t)}function IM(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const n=e.up(i);return r[n]={},r},{}))||{}}function kM(e,t){return e.reduce((s,r)=>{const i=s[r];return(!i||Object.keys(i).length===0)&&delete s[r],s},t)}function hV(e,...t){const s=IM(e),r=[s,...t].reduce((i,n)=>Gr(i,n),{});return kM(Object.keys(s),r)}function pV(e,t){if(typeof e!="object")return{};const s={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,n)=>{n{e[i]!=null&&(s[i]=!0)}),s}function Ov({values:e,breakpoints:t,base:s}){const r=s||pV(e,t),i=Object.keys(r);if(i.length===0)return e;let n;return i.reduce((o,a,l)=>(Array.isArray(e)?(o[a]=e[l]!=null?e[l]:e[n],n=l):typeof e=="object"?(o[a]=e[a]!=null?e[a]:e[n],n=a):o[a]=e,o),{})}function Vc(e,t,s=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&s){const r=`vars.${t}`.split(".").reduce((i,n)=>i&&i[n]?i[n]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Ug(e,t,s,r=s){let i;return typeof e=="function"?i=e(s):Array.isArray(e)?i=e[s]||r:i=Vc(e,s)||r,t&&(i=t(i,r,e)),i}function Vs(e){const{prop:t,cssProperty:s=e.prop,themeKey:r,transform:i}=e,n=o=>{if(o[t]==null)return null;const a=o[t],l=o.theme,u=Vc(l,r)||{};return mn(o,a,p=>{let g=Ug(u,i,p);return p===g&&typeof p=="string"&&(g=Ug(u,i,`${t}${p==="default"?"":ye(p)}`,p)),s===!1?g:{[s]:g}})};return n.propTypes={},n.filterProps=[t],n}function gV(e){const t={};return s=>(t[s]===void 0&&(t[s]=e(s)),t[s])}const fV={m:"margin",p:"padding"},mV={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},gP={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},CV=gV(e=>{if(e.length>2)if(gP[e])e=gP[e];else return[e];const[t,s]=e.split(""),r=fV[t],i=mV[s]||"";return Array.isArray(i)?i.map(n=>r+n):[r+i]}),ob=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],ab=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ob,...ab];function yh(e,t,s,r){var i;const n=(i=Vc(e,t,!1))!=null?i:s;return typeof n=="number"?o=>typeof o=="string"?o:n*o:Array.isArray(n)?o=>typeof o=="string"?o:n[o]:typeof n=="function"?n:()=>{}}function lb(e){return yh(e,"spacing",8)}function Fl(e,t){if(typeof t=="string"||t==null)return t;const s=Math.abs(t),r=e(s);return t>=0?r:typeof r=="number"?-r:`-${r}`}function vV(e,t){return s=>e.reduce((r,i)=>(r[i]=Fl(t,s),r),{})}function yV(e,t,s,r){if(t.indexOf(s)===-1)return null;const i=CV(s),n=vV(i,r),o=e[s];return mn(e,o,n)}function LM(e,t){const s=lb(e.theme);return Object.keys(e).map(r=>yV(e,t,r,s)).reduce(Ad,{})}function Is(e){return LM(e,ob)}Is.propTypes={};Is.filterProps=ob;function ks(e){return LM(e,ab)}ks.propTypes={};ks.filterProps=ab;function wV(e=8){if(e.mui)return e;const t=lb({spacing:e}),s=(...r)=>(r.length===0?[1]:r).map(n=>{const o=t(n);return typeof o=="number"?`${o}px`:o}).join(" ");return s.mui=!0,s}function Vf(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(n=>{r[n]=i}),r),{}),s=r=>Object.keys(r).reduce((i,n)=>t[n]?Ad(i,t[n](r)):i,{});return s.propTypes={},s.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),s}function Oi(e){return typeof e!="number"?e:`${e}px solid`}function Ki(e,t){return Vs({prop:e,themeKey:"borders",transform:t})}const bV=Ki("border",Oi),SV=Ki("borderTop",Oi),xV=Ki("borderRight",Oi),RV=Ki("borderBottom",Oi),PV=Ki("borderLeft",Oi),FV=Ki("borderColor"),EV=Ki("borderTopColor"),TV=Ki("borderRightColor"),MV=Ki("borderBottomColor"),DV=Ki("borderLeftColor"),AV=Ki("outline",Oi),IV=Ki("outlineColor"),Hf=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=yh(e.theme,"shape.borderRadius",4),s=r=>({borderRadius:Fl(t,r)});return mn(e,e.borderRadius,s)}return null};Hf.propTypes={};Hf.filterProps=["borderRadius"];Vf(bV,SV,xV,RV,PV,FV,EV,TV,MV,DV,Hf,AV,IV);const zf=e=>{if(e.gap!==void 0&&e.gap!==null){const t=yh(e.theme,"spacing",8),s=r=>({gap:Fl(t,r)});return mn(e,e.gap,s)}return null};zf.propTypes={};zf.filterProps=["gap"];const Wf=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=yh(e.theme,"spacing",8),s=r=>({columnGap:Fl(t,r)});return mn(e,e.columnGap,s)}return null};Wf.propTypes={};Wf.filterProps=["columnGap"];const _f=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=yh(e.theme,"spacing",8),s=r=>({rowGap:Fl(t,r)});return mn(e,e.rowGap,s)}return null};_f.propTypes={};_f.filterProps=["rowGap"];const kV=Vs({prop:"gridColumn"}),LV=Vs({prop:"gridRow"}),OV=Vs({prop:"gridAutoFlow"}),GV=Vs({prop:"gridAutoColumns"}),NV=Vs({prop:"gridAutoRows"}),BV=Vs({prop:"gridTemplateColumns"}),VV=Vs({prop:"gridTemplateRows"}),HV=Vs({prop:"gridTemplateAreas"}),zV=Vs({prop:"gridArea"});Vf(zf,Wf,_f,kV,LV,OV,GV,NV,BV,VV,HV,zV);function Ac(e,t){return t==="grey"?t:e}const WV=Vs({prop:"color",themeKey:"palette",transform:Ac}),_V=Vs({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ac}),$V=Vs({prop:"backgroundColor",themeKey:"palette",transform:Ac});Vf(WV,_V,$V);function bi(e){return e<=1&&e!==0?`${e*100}%`:e}const UV=Vs({prop:"width",transform:bi}),cb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=s=>{var r,i;const n=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[s])||nb[s];return n?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:n}:{maxWidth:bi(s)}};return mn(e,e.maxWidth,t)}return null};cb.filterProps=["maxWidth"];const jV=Vs({prop:"minWidth",transform:bi}),KV=Vs({prop:"height",transform:bi}),qV=Vs({prop:"maxHeight",transform:bi}),YV=Vs({prop:"minHeight",transform:bi});Vs({prop:"size",cssProperty:"width",transform:bi});Vs({prop:"size",cssProperty:"height",transform:bi});const XV=Vs({prop:"boxSizing"});Vf(UV,cb,jV,KV,qV,YV,XV);const wh={border:{themeKey:"borders",transform:Oi},borderTop:{themeKey:"borders",transform:Oi},borderRight:{themeKey:"borders",transform:Oi},borderBottom:{themeKey:"borders",transform:Oi},borderLeft:{themeKey:"borders",transform:Oi},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Oi},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hf},color:{themeKey:"palette",transform:Ac},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ac},backgroundColor:{themeKey:"palette",transform:Ac},p:{style:ks},pt:{style:ks},pr:{style:ks},pb:{style:ks},pl:{style:ks},px:{style:ks},py:{style:ks},padding:{style:ks},paddingTop:{style:ks},paddingRight:{style:ks},paddingBottom:{style:ks},paddingLeft:{style:ks},paddingX:{style:ks},paddingY:{style:ks},paddingInline:{style:ks},paddingInlineStart:{style:ks},paddingInlineEnd:{style:ks},paddingBlock:{style:ks},paddingBlockStart:{style:ks},paddingBlockEnd:{style:ks},m:{style:Is},mt:{style:Is},mr:{style:Is},mb:{style:Is},ml:{style:Is},mx:{style:Is},my:{style:Is},margin:{style:Is},marginTop:{style:Is},marginRight:{style:Is},marginBottom:{style:Is},marginLeft:{style:Is},marginX:{style:Is},marginY:{style:Is},marginInline:{style:Is},marginInlineStart:{style:Is},marginInlineEnd:{style:Is},marginBlock:{style:Is},marginBlockStart:{style:Is},marginBlockEnd:{style:Is},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:zf},rowGap:{style:_f},columnGap:{style:Wf},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:bi},maxWidth:{style:cb},minWidth:{transform:bi},height:{transform:bi},maxHeight:{transform:bi},minHeight:{transform:bi},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function QV(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),s=new Set(t);return e.every(r=>s.size===Object.keys(r).length)}function JV(e,t){return typeof e=="function"?e(t):e}function OM(){function e(s,r,i,n){const o={[s]:r,theme:i},a=n[s];if(!a)return{[s]:r};const{cssProperty:l=s,themeKey:u,transform:h,style:p}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[s]:r};const g=Vc(i,u)||{};return p?p(o):mn(o,r,C=>{let v=Ug(g,h,C);return C===v&&typeof C=="string"&&(v=Ug(g,h,`${s}${C==="default"?"":ye(C)}`,C)),l===!1?v:{[l]:v}})}function t(s){var r;const{sx:i,theme:n={}}=s||{};if(!i)return null;const o=(r=n.unstable_sxConfig)!=null?r:wh;function a(l){let u=l;if(typeof l=="function")u=l(n);else if(typeof l!="object")return l;if(!u)return null;const h=IM(n.breakpoints),p=Object.keys(h);let g=h;return Object.keys(u).forEach(m=>{const C=JV(u[m],n);if(C!=null)if(typeof C=="object")if(o[m])g=Ad(g,e(m,C,n,o));else{const v=mn({theme:n},C,w=>({[m]:w}));QV(v,C)?g[m]=t({sx:C,theme:n}):g=Ad(g,v)}else g=Ad(g,e(m,C,n,o))}),kM(p,g)}return Array.isArray(i)?i.map(a):a(i)}return t}const lu=OM();lu.filterProps=["sx"];function GM(e,t){const s=this;return s.vars&&typeof s.getColorSchemeSelector=="function"?{[s.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:s.palette.mode===e?t:{}}const ZV=["breakpoints","palette","spacing","shape"];function cu(e={},...t){const{breakpoints:s={},palette:r={},spacing:i,shape:n={}}=e,o=Te(e,ZV),a=AM(s),l=wV(i);let u=Gr({breakpoints:a,direction:"ltr",components:{},palette:I({mode:"light"},r),spacing:l,shape:I({},dV,n)},o);return u.applyStyles=GM,u=t.reduce((h,p)=>Gr(h,p),u),u.unstable_sxConfig=I({},wh,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(p){return lu({sx:p,theme:this})},u}const eH=Object.freeze(Object.defineProperty({__proto__:null,default:cu,private_createBreakpoints:AM,unstable_applyStyles:GM},Symbol.toStringTag,{value:"Module"})),tH=Mo(eH),sH=["sx"],rH=e=>{var t,s;const r={systemProps:{},otherProps:{}},i=(t=e==null||(s=e.theme)==null?void 0:s.unstable_sxConfig)!=null?t:wh;return Object.keys(e).forEach(n=>{i[n]?r.systemProps[n]=e[n]:r.otherProps[n]=e[n]}),r};function $f(e){const{sx:t}=e,s=Te(e,sH),{systemProps:r,otherProps:i}=rH(s);let n;return Array.isArray(t)?n=[r,...t]:typeof t=="function"?n=(...o)=>{const a=t(...o);return po(a)?I({},r,a):r}:n=I({},r,t),I({},i,{sx:n})}const iH=Object.freeze(Object.defineProperty({__proto__:null,default:lu,extendSxProp:$f,unstable_createStyleFunctionSx:OM,unstable_defaultSxConfig:wh},Symbol.toStringTag,{value:"Module"})),nH=Mo(iH);var fP;function oH(){if(fP)return Ja;fP=1;var e=Xw();Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=F,Ja.shouldForwardProp=C,Ja.systemDefaultTheme=void 0;var t=e(QN()),s=e(JN()),r=p(EM),i=eV;e(sV),e(lV);var n=e(tH),o=e(nH);const a=["ownerState"],l=["variants"],u=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function h(E){if(typeof WeakMap!="function")return null;var D=new WeakMap,R=new WeakMap;return(h=function(A){return A?R:D})(E)}function p(E,D){if(E&&E.__esModule)return E;if(E===null||typeof E!="object"&&typeof E!="function")return{default:E};var R=h(D);if(R&&R.has(E))return R.get(E);var A={__proto__:null},G=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in E)if(L!=="default"&&Object.prototype.hasOwnProperty.call(E,L)){var O=G?Object.getOwnPropertyDescriptor(E,L):null;O&&(O.get||O.set)?Object.defineProperty(A,L,O):A[L]=E[L]}return A.default=E,R&&R.set(E,A),A}function g(E){return Object.keys(E).length===0}function m(E){return typeof E=="string"&&E.charCodeAt(0)>96}function C(E){return E!=="ownerState"&&E!=="theme"&&E!=="sx"&&E!=="as"}const v=Ja.systemDefaultTheme=(0,n.default)(),w=E=>E&&E.charAt(0).toLowerCase()+E.slice(1);function S({defaultTheme:E,theme:D,themeId:R}){return g(D)?E:D[R]||D}function P(E){return E?(D,R)=>R[E]:null}function T(E,D){let{ownerState:R}=D,A=(0,s.default)(D,a);const G=typeof E=="function"?E((0,t.default)({ownerState:R},A)):E;if(Array.isArray(G))return G.flatMap(L=>T(L,(0,t.default)({ownerState:R},A)));if(G&&typeof G=="object"&&Array.isArray(G.variants)){const{variants:L=[]}=G;let N=(0,s.default)(G,l);return L.forEach(H=>{let $=!0;typeof H.props=="function"?$=H.props((0,t.default)({ownerState:R},A,R)):Object.keys(H.props).forEach(q=>{(R==null?void 0:R[q])!==H.props[q]&&A[q]!==H.props[q]&&($=!1)}),$&&(Array.isArray(N)||(N=[N]),N.push(typeof H.style=="function"?H.style((0,t.default)({ownerState:R},A,R)):H.style))}),N}return G}function F(E={}){const{themeId:D,defaultTheme:R=v,rootShouldForwardProp:A=C,slotShouldForwardProp:G=C}=E,L=O=>(0,o.default)((0,t.default)({},O,{theme:S((0,t.default)({},O,{defaultTheme:R,themeId:D}))}));return L.__mui_systemSx=!0,(O,N={})=>{(0,r.internal_processStyles)(O,ge=>ge.filter(Be=>!(Be!=null&&Be.__mui_systemSx)));const{name:H,slot:$,skipVariantsResolver:q,skipSx:Y,overridesResolver:re=P(w($))}=N,z=(0,s.default)(N,u),ie=q!==void 0?q:$&&$!=="Root"&&$!=="root"||!1,ne=Y||!1;let V,K=C;$==="Root"||$==="root"?K=A:$?K=G:m(O)&&(K=void 0);const fe=(0,r.default)(O,(0,t.default)({shouldForwardProp:K,label:V},z)),ue=ge=>typeof ge=="function"&&ge.__emotion_real!==ge||(0,i.isPlainObject)(ge)?Be=>T(ge,(0,t.default)({},Be,{theme:S({theme:Be.theme,defaultTheme:R,themeId:D})})):ge,me=(ge,...Be)=>{let Ie=ue(ge);const Ee=Be?Be.map(ue):[];H&&re&&Ee.push(Re=>{const ke=S((0,t.default)({},Re,{defaultTheme:R,themeId:D}));if(!ke.components||!ke.components[H]||!ke.components[H].styleOverrides)return null;const Xe=ke.components[H].styleOverrides,He={};return Object.entries(Xe).forEach(([Ve,It])=>{He[Ve]=T(It,(0,t.default)({},Re,{theme:ke}))}),re(Re,He)}),H&&!ie&&Ee.push(Re=>{var ke;const Xe=S((0,t.default)({},Re,{defaultTheme:R,themeId:D})),He=Xe==null||(ke=Xe.components)==null||(ke=ke[H])==null?void 0:ke.variants;return T({variants:He},(0,t.default)({},Re,{theme:Xe}))}),ne||Ee.push(L);const et=Ee.length-Be.length;if(Array.isArray(ge)&&et>0){const Re=new Array(et).fill("");Ie=[...ge,...Re],Ie.raw=[...ge.raw,...Re]}const Ze=fe(Ie,...Ee);return O.muiName&&(Ze.muiName=O.muiName),Ze};return fe.withConfig&&(me.withConfig=fe.withConfig),me}}return Ja}var aH=oH();const lH=nu(aH),mP=e=>e,cH=()=>{let e=mP;return{configure(t){e=t},generate(t){return e(t)},reset(){e=mP}}},ub=cH(),uH={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function at(e,t,s="Mui"){const r=uH[t];return r?`${s}-${r}`:`${ub.generate(e)}-${t}`}function dH(e,t){return I({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Zd={black:"#000",white:"#fff"},hH={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"},gc={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},fc={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},nd={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},mc={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Cc={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},vc={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},pH=["mode","contrastThreshold","tonalOffset"],CP={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:Zd.white,default:Zd.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}},Gv={text:{primary:Zd.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:Zd.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}};function vP(e,t,s,r){const i=r.light||r,n=r.dark||r*1.5;e[t]||(e.hasOwnProperty(s)?e[t]=e[s]:t==="light"?e.light=yt.lighten(e.main,i):t==="dark"&&(e.dark=yt.darken(e.main,n)))}function gH(e="light"){return e==="dark"?{main:mc[200],light:mc[50],dark:mc[400]}:{main:mc[700],light:mc[400],dark:mc[800]}}function fH(e="light"){return e==="dark"?{main:gc[200],light:gc[50],dark:gc[400]}:{main:gc[500],light:gc[300],dark:gc[700]}}function mH(e="light"){return e==="dark"?{main:fc[500],light:fc[300],dark:fc[700]}:{main:fc[700],light:fc[400],dark:fc[800]}}function CH(e="light"){return e==="dark"?{main:Cc[400],light:Cc[300],dark:Cc[700]}:{main:Cc[700],light:Cc[500],dark:Cc[900]}}function vH(e="light"){return e==="dark"?{main:vc[400],light:vc[300],dark:vc[700]}:{main:vc[800],light:vc[500],dark:vc[900]}}function yH(e="light"){return e==="dark"?{main:nd[400],light:nd[300],dark:nd[700]}:{main:"#ed6c02",light:nd[500],dark:nd[900]}}function wH(e){const{mode:t="light",contrastThreshold:s=3,tonalOffset:r=.2}=e,i=Te(e,pH),n=e.primary||gH(t),o=e.secondary||fH(t),a=e.error||mH(t),l=e.info||CH(t),u=e.success||vH(t),h=e.warning||yH(t);function p(v){return yt.getContrastRatio(v,Gv.text.primary)>=s?Gv.text.primary:CP.text.primary}const g=({color:v,name:w,mainShade:S=500,lightShade:P=300,darkShade:T=700})=>{if(v=I({},v),!v.main&&v[S]&&(v.main=v[S]),!v.hasOwnProperty("main"))throw new Error(bo(11,w?` (${w})`:"",S));if(typeof v.main!="string")throw new Error(bo(12,w?` (${w})`:"",JSON.stringify(v.main)));return vP(v,"light",P,r),vP(v,"dark",T,r),v.contrastText||(v.contrastText=p(v.main)),v},m={dark:Gv,light:CP};return Gr(I({common:I({},Zd),mode:t,primary:g({color:n,name:"primary"}),secondary:g({color:o,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:g({color:a,name:"error"}),warning:g({color:h,name:"warning"}),info:g({color:l,name:"info"}),success:g({color:u,name:"success"}),grey:hH,contrastThreshold:s,getContrastText:p,augmentColor:g,tonalOffset:r},m[t]),i)}const bH=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function SH(e){return Math.round(e*1e5)/1e5}const yP={textTransform:"uppercase"},wP='"Roboto", "Helvetica", "Arial", sans-serif';function xH(e,t){const s=typeof t=="function"?t(e):t,{fontFamily:r=wP,fontSize:i=14,fontWeightLight:n=300,fontWeightRegular:o=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:h,pxToRem:p}=s,g=Te(s,bH),m=i/14,C=p||(S=>`${S/u*m}rem`),v=(S,P,T,F,E)=>I({fontFamily:r,fontWeight:S,fontSize:C(P),lineHeight:T},r===wP?{letterSpacing:`${SH(F/P)}em`}:{},E,h),w={h1:v(n,96,1.167,-1.5),h2:v(n,60,1.2,-.5),h3:v(o,48,1.167,0),h4:v(o,34,1.235,.25),h5:v(o,24,1.334,0),h6:v(a,20,1.6,.15),subtitle1:v(o,16,1.75,.15),subtitle2:v(a,14,1.57,.1),body1:v(o,16,1.5,.15),body2:v(o,14,1.43,.15),button:v(a,14,1.75,.4,yP),caption:v(o,12,1.66,.4),overline:v(o,12,2.66,1,yP),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Gr(I({htmlFontSize:u,pxToRem:C,fontFamily:r,fontSize:i,fontWeightLight:n,fontWeightRegular:o,fontWeightMedium:a,fontWeightBold:l},w),g,{clone:!1})}const RH=.2,PH=.14,FH=.12;function Ss(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${RH})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${PH})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${FH})`].join(",")}const EH=["none",Ss(0,2,1,-1,0,1,1,0,0,1,3,0),Ss(0,3,1,-2,0,2,2,0,0,1,5,0),Ss(0,3,3,-2,0,3,4,0,0,1,8,0),Ss(0,2,4,-1,0,4,5,0,0,1,10,0),Ss(0,3,5,-1,0,5,8,0,0,1,14,0),Ss(0,3,5,-1,0,6,10,0,0,1,18,0),Ss(0,4,5,-2,0,7,10,1,0,2,16,1),Ss(0,5,5,-3,0,8,10,1,0,3,14,2),Ss(0,5,6,-3,0,9,12,1,0,3,16,2),Ss(0,6,6,-3,0,10,14,1,0,4,18,3),Ss(0,6,7,-4,0,11,15,1,0,4,20,3),Ss(0,7,8,-4,0,12,17,2,0,5,22,4),Ss(0,7,8,-4,0,13,19,2,0,5,24,4),Ss(0,7,9,-4,0,14,21,2,0,5,26,4),Ss(0,8,9,-5,0,15,22,2,0,6,28,5),Ss(0,8,10,-5,0,16,24,2,0,6,30,5),Ss(0,8,11,-5,0,17,26,2,0,6,32,5),Ss(0,9,11,-5,0,18,28,2,0,7,34,6),Ss(0,9,12,-6,0,19,29,2,0,7,36,6),Ss(0,10,13,-6,0,20,31,3,0,8,38,7),Ss(0,10,13,-6,0,21,33,3,0,8,40,7),Ss(0,10,14,-6,0,22,35,3,0,8,42,7),Ss(0,11,14,-7,0,23,36,3,0,9,44,8),Ss(0,11,15,-7,0,24,38,3,0,9,46,8)],TH=["duration","easing","delay"],MH={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)"},DH={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function bP(e){return`${Math.round(e)}ms`}function AH(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function IH(e){const t=I({},MH,e.easing),s=I({},DH,e.duration);return I({getAutoHeightDuration:AH,create:(i=["all"],n={})=>{const{duration:o=s.standard,easing:a=t.easeInOut,delay:l=0}=n;return Te(n,TH),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof o=="string"?o:bP(o)} ${a} ${typeof l=="string"?l:bP(l)}`).join(",")}},e,{easing:t,duration:s})}const kH={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},LH=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function NM(e={},...t){const{mixins:s={},palette:r={},transitions:i={},typography:n={}}=e,o=Te(e,LH);if(e.vars&&e.generateCssVars===void 0)throw new Error(bo(18));const a=wH(r),l=cu(e);let u=Gr(l,{mixins:dH(l.breakpoints,s),palette:a,shadows:EH.slice(),typography:xH(a,n),transitions:IH(i),zIndex:I({},kH)});return u=Gr(u,o),u=t.reduce((h,p)=>Gr(h,p),u),u.unstable_sxConfig=I({},wh,o==null?void 0:o.unstable_sxConfig),u.unstable_sx=function(p){return lu({sx:p,theme:this})},u}const db=NM(),Hc="$$material";function BM(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const nr=e=>BM(e)&&e!=="classes",ve=lH({themeId:Hc,defaultTheme:db,rootShouldForwardProp:nr}),VM=b.createContext(void 0);function OH({value:e,children:t}){return U.jsx(VM.Provider,{value:e,children:t})}function GH(e){const{theme:t,name:s,props:r}=e;if(!t||!t.components||!t.components[s])return r;const i=t.components[s];return i.defaultProps?Yd(i.defaultProps,r):!i.styleOverrides&&!i.variants?Yd(i,r):r}function NH({props:e,name:t}){const s=b.useContext(VM);return GH({props:e,name:t,theme:{components:s}})}function dt(e){return NH(e)}function eh(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function vs(...e){return b.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(s=>{eh(s,t)})},e)}const li=typeof window<"u"?b.useLayoutEffect:b.useEffect;function kr(e){const t=b.useRef(e);return li(()=>{t.current=e}),b.useRef((...s)=>(0,t.current)(...s)).current}const SP={};function BH(e,t){const s=b.useRef(SP);return s.current===SP&&(s.current=e(t)),s}const VH=[];function HH(e){b.useEffect(e,VH)}class Uf{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Uf}start(t,s){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,s()},t)}}function HM(){const e=BH(Uf.create).current;return HH(e.disposeEffect),e}let jf=!0,jy=!1;const zH=new Uf,WH={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function _H(e){const{type:t,tagName:s}=e;return!!(s==="INPUT"&&WH[t]&&!e.readOnly||s==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function $H(e){e.metaKey||e.altKey||e.ctrlKey||(jf=!0)}function Nv(){jf=!1}function UH(){this.visibilityState==="hidden"&&jy&&(jf=!0)}function jH(e){e.addEventListener("keydown",$H,!0),e.addEventListener("mousedown",Nv,!0),e.addEventListener("pointerdown",Nv,!0),e.addEventListener("touchstart",Nv,!0),e.addEventListener("visibilitychange",UH,!0)}function KH(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return jf||_H(t)}function hb(){const e=b.useCallback(i=>{i!=null&&jH(i.ownerDocument)},[]),t=b.useRef(!1);function s(){return t.current?(jy=!0,zH.start(100,()=>{jy=!1}),t.current=!1,!0):!1}function r(i){return KH(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:s,ref:e}}function Ky(e,t){return Ky=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(s,r){return s.__proto__=r,s},Ky(e,t)}function zM(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ky(e,t)}var bh=lM();const Ec=nu(bh),qH=oM({__proto__:null,default:Ec},[bh]),xP={disabled:!1},jg=be.createContext(null);var YH=function(t){return t.scrollTop},Rd="unmounted",el="exited",tl="entering",Rc="entered",qy="exiting",Yn=function(e){zM(t,e);function t(r,i){var n;n=e.call(this,r,i)||this;var o=i,a=o&&!o.isMounting?r.enter:r.appear,l;return n.appearStatus=null,r.in?a?(l=el,n.appearStatus=tl):l=Rc:r.unmountOnExit||r.mountOnEnter?l=Rd:l=el,n.state={status:l},n.nextCallback=null,n}t.getDerivedStateFromProps=function(i,n){var o=i.in;return o&&n.status===Rd?{status:el}:null};var s=t.prototype;return s.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},s.componentDidUpdate=function(i){var n=null;if(i!==this.props){var o=this.state.status;this.props.in?o!==tl&&o!==Rc&&(n=tl):(o===tl||o===Rc)&&(n=qy)}this.updateStatus(!1,n)},s.componentWillUnmount=function(){this.cancelNextCallback()},s.getTimeouts=function(){var i=this.props.timeout,n,o,a;return n=o=a=i,i!=null&&typeof i!="number"&&(n=i.exit,o=i.enter,a=i.appear!==void 0?i.appear:o),{exit:n,enter:o,appear:a}},s.updateStatus=function(i,n){if(i===void 0&&(i=!1),n!==null)if(this.cancelNextCallback(),n===tl){if(this.props.unmountOnExit||this.props.mountOnEnter){var o=this.props.nodeRef?this.props.nodeRef.current:Ec.findDOMNode(this);o&&YH(o)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===el&&this.setState({status:Rd})},s.performEnter=function(i){var n=this,o=this.props.enter,a=this.context?this.context.isMounting:i,l=this.props.nodeRef?[a]:[Ec.findDOMNode(this),a],u=l[0],h=l[1],p=this.getTimeouts(),g=a?p.appear:p.enter;if(!i&&!o||xP.disabled){this.safeSetState({status:Rc},function(){n.props.onEntered(u)});return}this.props.onEnter(u,h),this.safeSetState({status:tl},function(){n.props.onEntering(u,h),n.onTransitionEnd(g,function(){n.safeSetState({status:Rc},function(){n.props.onEntered(u,h)})})})},s.performExit=function(){var i=this,n=this.props.exit,o=this.getTimeouts(),a=this.props.nodeRef?void 0:Ec.findDOMNode(this);if(!n||xP.disabled){this.safeSetState({status:el},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:qy},function(){i.props.onExiting(a),i.onTransitionEnd(o.exit,function(){i.safeSetState({status:el},function(){i.props.onExited(a)})})})},s.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},s.safeSetState=function(i,n){n=this.setNextCallback(n),this.setState(i,n)},s.setNextCallback=function(i){var n=this,o=!0;return this.nextCallback=function(a){o&&(o=!1,n.nextCallback=null,i(a))},this.nextCallback.cancel=function(){o=!1},this.nextCallback},s.onTransitionEnd=function(i,n){this.setNextCallback(n);var o=this.props.nodeRef?this.props.nodeRef.current:Ec.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!o||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[o,this.nextCallback],u=l[0],h=l[1];this.props.addEndListener(u,h)}i!=null&&setTimeout(this.nextCallback,i)},s.render=function(){var i=this.state.status;if(i===Rd)return null;var n=this.props,o=n.children;n.in,n.mountOnEnter,n.unmountOnExit,n.appear,n.enter,n.exit,n.timeout,n.addEndListener,n.onEnter,n.onEntering,n.onEntered,n.onExit,n.onExiting,n.onExited,n.nodeRef;var a=Te(n,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return be.createElement(jg.Provider,{value:null},typeof o=="function"?o(i,a):be.cloneElement(be.Children.only(o),a))},t}(be.Component);Yn.contextType=jg;Yn.propTypes={};function yc(){}Yn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:yc,onEntering:yc,onEntered:yc,onExit:yc,onExiting:yc,onExited:yc};Yn.UNMOUNTED=Rd;Yn.EXITED=el;Yn.ENTERING=tl;Yn.ENTERED=Rc;Yn.EXITING=qy;function XH(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pb(e,t){var s=function(n){return t&&b.isValidElement(n)?t(n):n},r=Object.create(null);return e&&b.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=s(i)}),r}function QH(e,t){e=e||{},t=t||{};function s(h){return h in t?t[h]:e[h]}var r=Object.create(null),i=[];for(var n in e)n in t?i.length&&(r[n]=i,i=[]):i.push(n);var o,a={};for(var l in t){if(r[l])for(o=0;oa!=="theme"&&a!=="sx"&&a!=="as"})(lu);return b.forwardRef(function(l,u){const h=Kf(s),p=$f(l),{className:g,component:m="div"}=p,C=Te(p,n2);return U.jsx(n,I({as:m,ref:u,className:Ae(g,i?i(r):r),theme:t&&h[t]||h},C))})}function ot(e,t,s="Mui"){const r={};return t.forEach(i=>{r[i]=at(e,i,s)}),r}const a2=["ownerState"],l2=["variants"],c2=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function u2(e){return Object.keys(e).length===0}function d2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Bv(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const h2=cu(),p2=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Qp({defaultTheme:e,theme:t,themeId:s}){return u2(t)?e:t[s]||t}function g2(e){return e?(t,s)=>s[e]:null}function Pg(e,t){let{ownerState:s}=t,r=Te(t,a2);const i=typeof e=="function"?e(I({ownerState:s},r)):e;if(Array.isArray(i))return i.flatMap(n=>Pg(n,I({ownerState:s},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:n=[]}=i;let a=Te(i,l2);return n.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(I({ownerState:s},r,s)):Object.keys(l.props).forEach(h=>{(s==null?void 0:s[h])!==l.props[h]&&r[h]!==l.props[h]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style(I({ownerState:s},r,s)):l.style))}),a}return i}function f2(e={}){const{themeId:t,defaultTheme:s=h2,rootShouldForwardProp:r=Bv,slotShouldForwardProp:i=Bv}=e,n=o=>lu(I({},o,{theme:Qp(I({},o,{defaultTheme:s,themeId:t}))}));return n.__mui_systemSx=!0,(o,a={})=>{FM(o,E=>E.filter(D=>!(D!=null&&D.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:h,skipSx:p,overridesResolver:g=g2(p2(u))}=a,m=Te(a,c2),C=h!==void 0?h:u&&u!=="Root"&&u!=="root"||!1,v=p||!1;let w,S=Bv;u==="Root"||u==="root"?S=r:u?S=i:d2(o)&&(S=void 0);const P=ib(o,I({shouldForwardProp:S,label:w},m)),T=E=>typeof E=="function"&&E.__emotion_real!==E||po(E)?D=>Pg(E,I({},D,{theme:Qp({theme:D.theme,defaultTheme:s,themeId:t})})):E,F=(E,...D)=>{let R=T(E);const A=D?D.map(T):[];l&&g&&A.push(O=>{const N=Qp(I({},O,{defaultTheme:s,themeId:t}));if(!N.components||!N.components[l]||!N.components[l].styleOverrides)return null;const H=N.components[l].styleOverrides,$={};return Object.entries(H).forEach(([q,Y])=>{$[q]=Pg(Y,I({},O,{theme:N}))}),g(O,$)}),l&&!C&&A.push(O=>{var N;const H=Qp(I({},O,{defaultTheme:s,themeId:t})),$=H==null||(N=H.components)==null||(N=N[l])==null?void 0:N.variants;return Pg({variants:$},I({},O,{theme:H}))}),v||A.push(n);const G=A.length-D.length;if(Array.isArray(E)&&G>0){const O=new Array(G).fill("");R=[...E,...O],R.raw=[...E.raw,...O]}const L=P(R,...A);return o.muiName&&(L.muiName=o.muiName),L};return P.withConfig&&(F.withConfig=P.withConfig),F}}const _M=f2();function m2(e){const{theme:t,name:s,props:r}=e;return!t||!t.components||!t.components[s]||!t.components[s].defaultProps?r:Yd(t.components[s].defaultProps,r)}function $M({props:e,name:t,defaultTheme:s,themeId:r}){let i=Kf(s);return r&&(i=i[r]||i),m2({theme:i,name:t,props:e})}function C2(e,t=0,s=1){return uM(e,t,s)}function v2(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let s=e.match(t);return s&&s[0].length===1&&(s=s.map(r=>r+r)),s?`rgb${s.length===4?"a":""}(${s.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function th(e){if(e.type)return e;if(e.charAt(0)==="#")return th(v2(e));const t=e.indexOf("("),s=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(s)===-1)throw new Error(bo(9,e));let r=e.substring(t+1,e.length-1),i;if(s==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error(bo(10,i))}else r=r.split(",");return r=r.map(n=>parseFloat(n)),{type:s,values:r,colorSpace:i}}function UM(e){const{type:t,colorSpace:s}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,n)=>n<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${s} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function y2(e){e=th(e);const{values:t}=e,s=t[0],r=t[1]/100,i=t[2]/100,n=r*Math.min(i,1-i),o=(u,h=(u+s/30)%12)=>i-n*Math.max(Math.min(h-3,9-h,1),-1);let a="rgb";const l=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),UM({type:a,values:l})}function RP(e){e=th(e);let t=e.type==="hsl"||e.type==="hsla"?th(y2(e)).values:e.values;return t=t.map(s=>(e.type!=="color"&&(s/=255),s<=.03928?s/12.92:((s+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Cve(e,t){const s=RP(e),r=RP(t);return(Math.max(s,r)+.05)/(Math.min(s,r)+.05)}function w2(e,t){return e=th(e),t=C2(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,UM(e)}function Kg(...e){return e.reduce((t,s)=>s==null?t:function(...i){t.apply(this,i),s.apply(this,i)},()=>{})}function Sh(e,t=166){let s;function r(...i){const n=()=>{e.apply(this,i)};clearTimeout(s),s=setTimeout(n,t)}return r.clear=()=>{clearTimeout(s)},r}function b2(e,t){return()=>null}function Id(e,t){var s,r;return b.isValidElement(e)&&t.indexOf((s=e.type.muiName)!=null?s:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function hr(e){return e&&e.ownerDocument||document}function Un(e){return hr(e).defaultView||window}function S2(e,t){return()=>null}let PP=0;function x2(e){const[t,s]=b.useState(e),r=e||t;return b.useEffect(()=>{t==null&&(PP+=1,s(`mui-${PP}`))},[t]),r}const FP=_g.useId;function uu(e){if(FP!==void 0){const t=FP();return e??t}return x2(e)}function R2(e,t,s,r,i){return null}function va({controlled:e,default:t,name:s,state:r="value"}){const{current:i}=b.useRef(e!==void 0),[n,o]=b.useState(t),a=i?e:n,l=b.useCallback(u=>{i||o(u)},[]);return[a,l]}function jM(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let wc;function KM(){if(wc)return wc;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),wc="reverse",e.scrollLeft>0?wc="default":(e.scrollLeft=1,e.scrollLeft===0&&(wc="negative")),document.body.removeChild(e),wc}function P2(e,t){const s=e.scrollLeft;if(t!=="rtl")return s;switch(KM()){case"negative":return e.scrollWidth-e.clientWidth+s;case"reverse":return e.scrollWidth-e.clientWidth-s;default:return s}}const F2=e=>{const t=b.useRef({});return b.useEffect(()=>{t.current=e}),t.current};function zc(e){return typeof e=="string"}function qM(e,t,s){return e===void 0||zc(e)?t:I({},t,{ownerState:I({},t.ownerState,s)})}function YM(e,t=[]){if(e===void 0)return{};const s={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{s[r]=e[r]}),s}function EP(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(s=>!(s.match(/^on[A-Z]/)&&typeof e[s]=="function")).forEach(s=>{t[s]=e[s]}),t}function XM(e){const{getSlotProps:t,additionalProps:s,externalSlotProps:r,externalForwardedProps:i,className:n}=e;if(!t){const m=Ae(s==null?void 0:s.className,n,i==null?void 0:i.className,r==null?void 0:r.className),C=I({},s==null?void 0:s.style,i==null?void 0:i.style,r==null?void 0:r.style),v=I({},s,i,r);return m.length>0&&(v.className=m),Object.keys(C).length>0&&(v.style=C),{props:v,internalRef:void 0}}const o=YM(I({},i,r)),a=EP(r),l=EP(i),u=t(o),h=Ae(u==null?void 0:u.className,s==null?void 0:s.className,n,i==null?void 0:i.className,r==null?void 0:r.className),p=I({},u==null?void 0:u.style,s==null?void 0:s.style,i==null?void 0:i.style,r==null?void 0:r.style),g=I({},u,s,l,a);return h.length>0&&(g.className=h),Object.keys(p).length>0&&(g.style=p),{props:g,internalRef:u.ref}}function QM(e,t,s){return typeof e=="function"?e(t,s):e}const E2=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function _i(e){var t;const{elementType:s,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:n=!1}=e,o=Te(e,E2),a=n?{}:QM(r,i),{props:l,internalRef:u}=XM(I({},o,{externalSlotProps:a})),h=vs(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return qM(s,I({},l,{ref:h}),i)}function xh(e){if(parseInt(b.version,10)>=19){var t;return(e==null||(t=e.props)==null?void 0:t.ref)||null}return(e==null?void 0:e.ref)||null}const JM=b.createContext(null);function ZM(){return b.useContext(JM)}const T2=typeof Symbol=="function"&&Symbol.for,M2=T2?Symbol.for("mui.nested"):"__THEME_NESTED__";function D2(e,t){return typeof t=="function"?t(e):I({},e,t)}function A2(e){const{children:t,theme:s}=e,r=ZM(),i=b.useMemo(()=>{const n=r===null?s:D2(r,s);return n!=null&&(n[M2]=r!==null),n},[s,r]);return U.jsx(JM.Provider,{value:i,children:t})}const I2=["value"],eD=b.createContext();function k2(e){let{value:t}=e,s=Te(e,I2);return U.jsx(eD.Provider,I({value:t??!0},s))}const fb=()=>{const e=b.useContext(eD);return e??!1},TP={};function MP(e,t,s,r=!1){return b.useMemo(()=>{const i=e&&t[e]||t;if(typeof s=="function"){const n=s(i),o=e?I({},t,{[e]:n}):n;return r?()=>o:o}return e?I({},t,{[e]:s}):I({},t,s)},[e,t,s,r])}function L2(e){const{children:t,theme:s,themeId:r}=e,i=WM(TP),n=ZM()||TP,o=MP(r,i,s),a=MP(r,n,s,!0),l=o.direction==="rtl";return U.jsx(A2,{theme:a,children:U.jsx(au.Provider,{value:o,children:U.jsx(k2,{value:l,children:U.jsx(OH,{value:o==null?void 0:o.components,children:t})})})})}const O2=["className","component","disableGutters","fixed","maxWidth","classes"],G2=cu(),N2=_M("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`maxWidth${ye(String(s.maxWidth))}`],s.fixed&&t.fixed,s.disableGutters&&t.disableGutters]}}),B2=e=>$M({props:e,name:"MuiContainer",defaultTheme:G2}),V2=(e,t)=>{const s=l=>at(t,l),{classes:r,fixed:i,disableGutters:n,maxWidth:o}=e,a={root:["root",o&&`maxWidth${ye(String(o))}`,i&&"fixed",n&&"disableGutters"]};return ct(a,s,r)};function H2(e={}){const{createStyledComponent:t=N2,useThemeProps:s=B2,componentName:r="MuiContainer"}=e,i=t(({theme:o,ownerState:a})=>I({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!a.disableGutters&&{paddingLeft:o.spacing(2),paddingRight:o.spacing(2),[o.breakpoints.up("sm")]:{paddingLeft:o.spacing(3),paddingRight:o.spacing(3)}}),({theme:o,ownerState:a})=>a.fixed&&Object.keys(o.breakpoints.values).reduce((l,u)=>{const h=u,p=o.breakpoints.values[h];return p!==0&&(l[o.breakpoints.up(h)]={maxWidth:`${p}${o.breakpoints.unit}`}),l},{}),({theme:o,ownerState:a})=>I({},a.maxWidth==="xs"&&{[o.breakpoints.up("xs")]:{maxWidth:Math.max(o.breakpoints.values.xs,444)}},a.maxWidth&&a.maxWidth!=="xs"&&{[o.breakpoints.up(a.maxWidth)]:{maxWidth:`${o.breakpoints.values[a.maxWidth]}${o.breakpoints.unit}`}}));return b.forwardRef(function(a,l){const u=s(a),{className:h,component:p="div",disableGutters:g=!1,fixed:m=!1,maxWidth:C="lg"}=u,v=Te(u,O2),w=I({},u,{component:p,disableGutters:g,fixed:m,maxWidth:C}),S=V2(w,r);return U.jsx(i,I({as:p,ownerState:w,className:Ae(S.root,h),ref:l},v))})}const z2=["component","direction","spacing","divider","children","className","useFlexGap"],W2=cu(),_2=_M("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function $2(e){return $M({props:e,name:"MuiStack",defaultTheme:W2})}function U2(e,t){const s=b.Children.toArray(e).filter(Boolean);return s.reduce((r,i,n)=>(r.push(i),n({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],K2=({ownerState:e,theme:t})=>{let s=I({display:"flex",flexDirection:"column"},mn({theme:t},Ov({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=lb(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),n=Ov({values:e.direction,base:i}),o=Ov({values:e.spacing,base:i});typeof n=="object"&&Object.keys(n).forEach((l,u,h)=>{if(!n[l]){const g=u>0?n[h[u-1]]:"column";n[l]=g}}),s=Gr(s,mn({theme:t},o,(l,u)=>e.useFlexGap?{gap:Fl(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${j2(u?n[u]:e.direction)}`]:Fl(r,l)}}))}return s=hV(t.breakpoints,s),s};function q2(e={}){const{createStyledComponent:t=_2,useThemeProps:s=$2,componentName:r="MuiStack"}=e,i=()=>ct({root:["root"]},l=>at(r,l),{}),n=t(K2);return b.forwardRef(function(l,u){const h=s(l),p=$f(h),{component:g="div",direction:m="column",spacing:C=0,divider:v,children:w,className:S,useFlexGap:P=!1}=p,T=Te(p,z2),F={direction:m,spacing:C,useFlexGap:P},E=i();return U.jsx(n,I({as:g,ownerState:F,ref:u,className:Ae(E.root,S)},T,{children:v?U2(w,v):w}))})}function Y2(e){const{className:t,classes:s,pulsate:r=!1,rippleX:i,rippleY:n,rippleSize:o,in:a,onExited:l,timeout:u}=e,[h,p]=b.useState(!1),g=Ae(t,s.ripple,s.rippleVisible,r&&s.ripplePulsate),m={width:o,height:o,top:-(o/2)+n,left:-(o/2)+i},C=Ae(s.child,h&&s.childLeaving,r&&s.childPulsate);return!a&&!h&&p(!0),b.useEffect(()=>{if(!a&&l!=null){const v=setTimeout(l,u);return()=>{clearTimeout(v)}}},[l,a,u]),U.jsx("span",{className:g,style:m,children:U.jsx("span",{className:C})})}const Li=ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),X2=["center","classes","className"];let qf=e=>e,DP,AP,IP,kP;const Yy=550,Q2=80,J2=Ma(DP||(DP=qf` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),Z2=Ma(AP||(AP=qf` 0% { opacity: 1; } 100% { opacity: 0; } `)),ez=Ma(IP||(IP=qf` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),tz=ve("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sz=ve(Y2,{name:"MuiTouchRipple",slot:"Ripple"})(kP||(kP=qf` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),Li.rippleVisible,J2,Yy,({theme:e})=>e.transitions.easing.easeInOut,Li.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Li.child,Li.childLeaving,Z2,Yy,({theme:e})=>e.transitions.easing.easeInOut,Li.childPulsate,ez,({theme:e})=>e.transitions.easing.easeInOut),rz=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:n={},className:o}=r,a=Te(r,X2),[l,u]=b.useState([]),h=b.useRef(0),p=b.useRef(null);b.useEffect(()=>{p.current&&(p.current(),p.current=null)},[l]);const g=b.useRef(!1),m=HM(),C=b.useRef(null),v=b.useRef(null),w=b.useCallback(F=>{const{pulsate:E,rippleX:D,rippleY:R,rippleSize:A,cb:G}=F;u(L=>[...L,U.jsx(sz,{classes:{ripple:Ae(n.ripple,Li.ripple),rippleVisible:Ae(n.rippleVisible,Li.rippleVisible),ripplePulsate:Ae(n.ripplePulsate,Li.ripplePulsate),child:Ae(n.child,Li.child),childLeaving:Ae(n.childLeaving,Li.childLeaving),childPulsate:Ae(n.childPulsate,Li.childPulsate)},timeout:Yy,pulsate:E,rippleX:D,rippleY:R,rippleSize:A},h.current)]),h.current+=1,p.current=G},[n]),S=b.useCallback((F={},E={},D=()=>{})=>{const{pulsate:R=!1,center:A=i||E.pulsate,fakeElement:G=!1}=E;if((F==null?void 0:F.type)==="mousedown"&&g.current){g.current=!1;return}(F==null?void 0:F.type)==="touchstart"&&(g.current=!0);const L=G?null:v.current,O=L?L.getBoundingClientRect():{width:0,height:0,left:0,top:0};let N,H,$;if(A||F===void 0||F.clientX===0&&F.clientY===0||!F.clientX&&!F.touches)N=Math.round(O.width/2),H=Math.round(O.height/2);else{const{clientX:q,clientY:Y}=F.touches&&F.touches.length>0?F.touches[0]:F;N=Math.round(q-O.left),H=Math.round(Y-O.top)}if(A)$=Math.sqrt((2*O.width**2+O.height**2)/3),$%2===0&&($+=1);else{const q=Math.max(Math.abs((L?L.clientWidth:0)-N),N)*2+2,Y=Math.max(Math.abs((L?L.clientHeight:0)-H),H)*2+2;$=Math.sqrt(q**2+Y**2)}F!=null&&F.touches?C.current===null&&(C.current=()=>{w({pulsate:R,rippleX:N,rippleY:H,rippleSize:$,cb:D})},m.start(Q2,()=>{C.current&&(C.current(),C.current=null)})):w({pulsate:R,rippleX:N,rippleY:H,rippleSize:$,cb:D})},[i,w,m]),P=b.useCallback(()=>{S({},{pulsate:!0})},[S]),T=b.useCallback((F,E)=>{if(m.clear(),(F==null?void 0:F.type)==="touchend"&&C.current){C.current(),C.current=null,m.start(0,()=>{T(F,E)});return}C.current=null,u(D=>D.length>0?D.slice(1):D),p.current=E},[m]);return b.useImperativeHandle(s,()=>({pulsate:P,start:S,stop:T}),[P,S,T]),U.jsx(tz,I({className:Ae(Li.root,n.root,o),ref:v},a,{children:U.jsx(gb,{component:null,exit:!0,children:l})}))});function iz(e){return at("MuiButtonBase",e)}const nz=ot("MuiButtonBase",["root","disabled","focusVisible"]),oz=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],az=e=>{const{disabled:t,focusVisible:s,focusVisibleClassName:r,classes:i}=e,o=ct({root:["root",t&&"disabled",s&&"focusVisible"]},iz,i);return s&&r&&(o.root+=` ${r}`),o},lz=ve("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${nz.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Cn=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:n=!1,children:o,className:a,component:l="button",disabled:u=!1,disableRipple:h=!1,disableTouchRipple:p=!1,focusRipple:g=!1,LinkComponent:m="a",onBlur:C,onClick:v,onContextMenu:w,onDragLeave:S,onFocus:P,onFocusVisible:T,onKeyDown:F,onKeyUp:E,onMouseDown:D,onMouseLeave:R,onMouseUp:A,onTouchEnd:G,onTouchMove:L,onTouchStart:O,tabIndex:N=0,TouchRippleProps:H,touchRippleRef:$,type:q}=r,Y=Te(r,oz),re=b.useRef(null),z=b.useRef(null),ie=vs(z,$),{isFocusVisibleRef:ne,onFocus:V,onBlur:K,ref:fe}=hb(),[ue,me]=b.useState(!1);u&&ue&&me(!1),b.useImperativeHandle(i,()=>({focusVisible:()=>{me(!0),re.current.focus()}}),[]);const[ge,Be]=b.useState(!1);b.useEffect(()=>{Be(!0)},[]);const Ie=ge&&!h&&!u;b.useEffect(()=>{ue&&g&&!h&&ge&&z.current.pulsate()},[h,g,ue,ge]);function Ee(Se,Vt,ls=p){return kr(Qs=>(Vt&&Vt(Qs),!ls&&z.current&&z.current[Se](Qs),!0))}const et=Ee("start",D),Ze=Ee("stop",w),Re=Ee("stop",S),ke=Ee("stop",A),Xe=Ee("stop",Se=>{ue&&Se.preventDefault(),R&&R(Se)}),He=Ee("start",O),Ve=Ee("stop",G),It=Ee("stop",L),ut=Ee("stop",Se=>{K(Se),ne.current===!1&&me(!1),C&&C(Se)},!1),Bt=kr(Se=>{re.current||(re.current=Se.currentTarget),V(Se),ne.current===!0&&(me(!0),T&&T(Se)),P&&P(Se)}),wt=()=>{const Se=re.current;return l&&l!=="button"&&!(Se.tagName==="A"&&Se.href)},ht=b.useRef(!1),Wt=kr(Se=>{g&&!ht.current&&ue&&z.current&&Se.key===" "&&(ht.current=!0,z.current.stop(Se,()=>{z.current.start(Se)})),Se.target===Se.currentTarget&&wt()&&Se.key===" "&&Se.preventDefault(),F&&F(Se),Se.target===Se.currentTarget&&wt()&&Se.key==="Enter"&&!u&&(Se.preventDefault(),v&&v(Se))}),Ot=kr(Se=>{g&&Se.key===" "&&z.current&&ue&&!Se.defaultPrevented&&(ht.current=!1,z.current.stop(Se,()=>{z.current.pulsate(Se)})),E&&E(Se),v&&Se.target===Se.currentTarget&&wt()&&Se.key===" "&&!Se.defaultPrevented&&v(Se)});let mt=l;mt==="button"&&(Y.href||Y.to)&&(mt=m);const Qt={};mt==="button"?(Qt.type=q===void 0?"button":q,Qt.disabled=u):(!Y.href&&!Y.to&&(Qt.role="button"),u&&(Qt["aria-disabled"]=u));const us=vs(s,fe,re),ts=I({},r,{centerRipple:n,component:l,disabled:u,disableRipple:h,disableTouchRipple:p,focusRipple:g,tabIndex:N,focusVisible:ue}),Ge=az(ts);return U.jsxs(lz,I({as:mt,className:Ae(Ge.root,a),ownerState:ts,onBlur:ut,onClick:v,onContextMenu:Ze,onFocus:Bt,onKeyDown:Wt,onKeyUp:Ot,onMouseDown:et,onMouseLeave:Xe,onMouseUp:ke,onDragLeave:Re,onTouchEnd:Ve,onTouchMove:It,onTouchStart:He,ref:us,tabIndex:u?-1:N,type:q},Qt,Y,{children:[o,Ie?U.jsx(rz,I({ref:ie,center:n},H)):null]}))});function cz(e){return at("MuiButton",e)}const Jp=ot("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"]),uz=b.createContext({}),dz=b.createContext(void 0),hz=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pz=e=>{const{color:t,disableElevation:s,fullWidth:r,size:i,variant:n,classes:o}=e,a={root:["root",n,`${n}${ye(t)}`,`size${ye(i)}`,`${n}Size${ye(i)}`,`color${ye(t)}`,s&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${ye(i)}`],endIcon:["icon","endIcon",`iconSize${ye(i)}`]},l=ct(a,cz,o);return I({},o,l)},tD=e=>I({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),gz=ve(Cn,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[s.variant],t[`${s.variant}${ye(s.color)}`],t[`size${ye(s.size)}`],t[`${s.variant}Size${ye(s.size)}`],s.color==="inherit"&&t.colorInherit,s.disableElevation&&t.disableElevation,s.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var s,r;const i=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 I({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":I({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Jp.focusVisible}`]:I({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Jp.disabled}`]:I({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${yt.alpha(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(s=(r=e.palette).getContrastText)==null?void 0:s.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Jp.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Jp.disabled}`]:{boxShadow:"none"}}),fz=ve("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.startIcon,t[`iconSize${ye(s.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},tD(e))),mz=ve("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.endIcon,t[`iconSize${ye(s.size)}`]]}})(({ownerState:e})=>I({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},tD(e))),vve=b.forwardRef(function(t,s){const r=b.useContext(uz),i=b.useContext(dz),n=Yd(r,t),o=dt({props:n,name:"MuiButton"}),{children:a,color:l="primary",component:u="button",className:h,disabled:p=!1,disableElevation:g=!1,disableFocusRipple:m=!1,endIcon:C,focusVisibleClassName:v,fullWidth:w=!1,size:S="medium",startIcon:P,type:T,variant:F="text"}=o,E=Te(o,hz),D=I({},o,{color:l,component:u,disabled:p,disableElevation:g,disableFocusRipple:m,fullWidth:w,size:S,type:T,variant:F}),R=pz(D),A=P&&U.jsx(fz,{className:R.startIcon,ownerState:D,children:P}),G=C&&U.jsx(mz,{className:R.endIcon,ownerState:D,children:C}),L=i||"";return U.jsxs(gz,I({ownerState:D,className:Ae(r.className,R.root,h,L),component:u,disabled:p,focusRipple:!m,focusVisibleClassName:Ae(R.focusVisible,v),ref:s,type:T},E,{classes:R,children:[A,a,G]}))}),sD=b.createContext();function Cz(e){return at("MuiTable",e)}ot("MuiTable",["root","stickyHeader"]);const vz=["className","component","padding","size","stickyHeader"],yz=e=>{const{classes:t,stickyHeader:s}=e;return ct({root:["root",s&&"stickyHeader"]},Cz,t)},wz=ve("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":I({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),LP="table",yve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTable"}),{className:i,component:n=LP,padding:o="normal",size:a="medium",stickyHeader:l=!1}=r,u=Te(r,vz),h=I({},r,{component:n,padding:o,size:a,stickyHeader:l}),p=yz(h),g=b.useMemo(()=>({padding:o,size:a,stickyHeader:l}),[o,a,l]);return U.jsx(sD.Provider,{value:g,children:U.jsx(wz,I({as:n,role:n===LP?null:"table",ref:s,className:Ae(p.root,i),ownerState:h},u))})}),Yf=b.createContext();function bz(e){return at("MuiTableBody",e)}ot("MuiTableBody",["root"]);const Sz=["className","component"],xz=e=>{const{classes:t}=e;return ct({root:["root"]},bz,t)},Rz=ve("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),Pz={variant:"body"},OP="tbody",wve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTableBody"}),{className:i,component:n=OP}=r,o=Te(r,Sz),a=I({},r,{component:n}),l=xz(a);return U.jsx(Yf.Provider,{value:Pz,children:U.jsx(Rz,I({className:Ae(l.root,i),as:n,ref:s,role:n===OP?null:"rowgroup",ownerState:a},o))})});function Fz(e){return at("MuiTableCell",e)}const Ez=ot("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Tz=["align","className","component","padding","scope","size","sortDirection","variant"],Mz=e=>{const{classes:t,variant:s,align:r,padding:i,size:n,stickyHeader:o}=e,a={root:["root",s,o&&"stickyHeader",r!=="inherit"&&`align${ye(r)}`,i!=="normal"&&`padding${ye(i)}`,`size${ye(n)}`]};return ct(a,Fz,t)},Dz=ve("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[s.variant],t[`size${ye(s.size)}`],s.padding!=="normal"&&t[`padding${ye(s.padding)}`],s.align!=="inherit"&&t[`align${ye(s.align)}`],s.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>I({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid ${e.palette.mode==="light"?yt.lighten(yt.alpha(e.palette.divider,1),.88):yt.darken(yt.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${Ez.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),bve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTableCell"}),{align:i="inherit",className:n,component:o,padding:a,scope:l,size:u,sortDirection:h,variant:p}=r,g=Te(r,Tz),m=b.useContext(sD),C=b.useContext(Yf),v=C&&C.variant==="head";let w;o?w=o:w=v?"th":"td";let S=l;w==="td"?S=void 0:!S&&v&&(S="col");const P=p||C&&C.variant,T=I({},r,{align:i,component:w,padding:a||(m&&m.padding?m.padding:"normal"),size:u||(m&&m.size?m.size:"medium"),sortDirection:h,stickyHeader:P==="head"&&m&&m.stickyHeader,variant:P}),F=Mz(T);let E=null;return h&&(E=h==="asc"?"ascending":"descending"),U.jsx(Dz,I({as:w,ref:s,className:Ae(F.root,n),"aria-sort":E,scope:S,ownerState:T},g))});function Az(e){return at("MuiTableContainer",e)}ot("MuiTableContainer",["root"]);const Iz=["className","component"],kz=e=>{const{classes:t}=e;return ct({root:["root"]},Az,t)},Lz=ve("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Sve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTableContainer"}),{className:i,component:n="div"}=r,o=Te(r,Iz),a=I({},r,{component:n}),l=kz(a);return U.jsx(Lz,I({ref:s,as:n,className:Ae(l.root,i),ownerState:a},o))});function Oz(e){return at("MuiTableHead",e)}ot("MuiTableHead",["root"]);const Gz=["className","component"],Nz=e=>{const{classes:t}=e;return ct({root:["root"]},Oz,t)},Bz=ve("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Vz={variant:"head"},GP="thead",xve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTableHead"}),{className:i,component:n=GP}=r,o=Te(r,Gz),a=I({},r,{component:n}),l=Nz(a);return U.jsx(Yf.Provider,{value:Vz,children:U.jsx(Bz,I({as:n,className:Ae(l.root,i),ref:s,role:n===GP?null:"rowgroup",ownerState:a},o))})});function Hz(e){return at("MuiTableRow",e)}const NP=ot("MuiTableRow",["root","selected","hover","head","footer"]),zz=["className","component","hover","selected"],Wz=e=>{const{classes:t,selected:s,hover:r,head:i,footer:n}=e;return ct({root:["root",s&&"selected",r&&"hover",i&&"head",n&&"footer"]},Hz,t)},_z=ve("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.head&&t.head,s.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${NP.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${NP.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),BP="tr",Rve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTableRow"}),{className:i,component:n=BP,hover:o=!1,selected:a=!1}=r,l=Te(r,zz),u=b.useContext(Yf),h=I({},r,{component:n,hover:o,selected:a,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),p=Wz(h);return U.jsx(_z,I({as:n,ref:s,className:Ae(p.root,i),role:n===BP?null:"row",ownerState:h},l))}),VP=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function Xf(){const e=Kf(db);return e[Hc]||e}function $z(e){return at("MuiPaper",e)}ot("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 Uz=["className","component","elevation","square","variant"],jz=e=>{const{square:t,elevation:s,variant:r,classes:i}=e,n={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${s}`]};return ct(n,$z,i)},Kz=ve("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[s.variant],!s.square&&t.rounded,s.variant==="elevation"&&t[`elevation${s.elevation}`]]}})(({theme:e,ownerState:t})=>{var s;return I({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&I({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${yt.alpha("#fff",VP(t.elevation))}, ${yt.alpha("#fff",VP(t.elevation))})`},e.vars&&{backgroundImage:(s=e.vars.overlays)==null?void 0:s[t.elevation]}))}),Hl=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiPaper"}),{className:i,component:n="div",elevation:o=1,square:a=!1,variant:l="elevation"}=r,u=Te(r,Uz),h=I({},r,{component:n,elevation:o,square:a,variant:l}),p=jz(h);return U.jsx(Kz,I({as:n,ownerState:h,className:Ae(p.root,i),ref:s},u))});function qz(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||""}function Yz(e){return parseFloat(e)}const Xz=["theme"];function Pve(e){let{theme:t}=e,s=Te(e,Xz);const r=t[Hc];let i=r||t;return typeof t!="function"&&(r&&!r.vars?i=I({},r,{vars:null}):t&&!t.vars&&(i=I({},t,{vars:null}))),U.jsx(L2,I({},s,{themeId:r?Hc:void 0,theme:i}))}function Qz(e){return at("MuiSvgIcon",e)}ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Jz=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Zz=e=>{const{color:t,fontSize:s,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ye(t)}`,`fontSize${ye(s)}`]};return ct(i,Qz,r)},eW=ve("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.color!=="inherit"&&t[`color${ye(s.color)}`],t[`fontSize${ye(s.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var s,r,i,n,o,a,l,u,h,p,g,m,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(s=e.transitions)==null||(r=s.create)==null?void 0:r.call(s,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((n=e.typography)==null||(o=n.pxToRem)==null?void 0:o.call(n,20))||"1.25rem",medium:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,24))||"1.5rem",large:((u=e.typography)==null||(h=u.pxToRem)==null?void 0:h.call(u,35))||"2.1875rem"}[t.fontSize],color:(p=(g=(e.vars||e).palette)==null||(g=g[t.color])==null?void 0:g.main)!=null?p:{action:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.active,disabled:(C=(e.vars||e).palette)==null||(C=C.action)==null?void 0:C.disabled,inherit:void 0}[t.color]}}),Xy=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiSvgIcon"}),{children:i,className:n,color:o="inherit",component:a="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:h=!1,titleAccess:p,viewBox:g="0 0 24 24"}=r,m=Te(r,Jz),C=b.isValidElement(i)&&i.type==="svg",v=I({},r,{color:o,component:a,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:h,viewBox:g,hasSvgAsChild:C}),w={};h||(w.viewBox=g);const S=Zz(v);return U.jsxs(eW,I({as:a,className:Ae(S.root,n),focusable:"false",color:u,"aria-hidden":p?void 0:!0,role:p?"img":void 0,ref:s},w,m,C&&i.props,{ownerState:v,children:[C?i.props.children:i,p?U.jsx("title",{children:p}):null]}))});Xy.muiName="SvgIcon";function fr(e,t){function s(r,i){return U.jsx(Xy,I({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return s.muiName=Xy.muiName,b.memo(b.forwardRef(s))}const tW={configure:e=>{ub.configure(e)}},sW=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ye,createChainedFunction:Kg,createSvgIcon:fr,debounce:Sh,deprecatedPropType:b2,isMuiElement:Id,ownerDocument:hr,ownerWindow:Un,requirePropFactory:S2,setRef:eh,unstable_ClassNameGenerator:tW,unstable_useEnhancedEffect:li,unstable_useId:uu,unsupportedProp:R2,useControlled:va,useEventCallback:kr,useForkRef:vs,useIsFocusVisible:hb},Symbol.toStringTag,{value:"Module"})),rD=e=>e.scrollTop;function qg(e,t){var s,r;const{timeout:i,easing:n,style:o={}}=e;return{duration:(s=o.transitionDuration)!=null?s:typeof i=="number"?i:i[t.mode]||0,easing:(r=o.transitionTimingFunction)!=null?r:typeof n=="object"?n[t.mode]:n,delay:o.transitionDelay}}const rW=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],iW=["component","slots","slotProps"],nW=["component"];function HP(e,t){const{className:s,elementType:r,ownerState:i,externalForwardedProps:n,getSlotOwnerState:o,internalForwardedProps:a}=t,l=Te(t,rW),{component:u,slots:h={[e]:void 0},slotProps:p={[e]:void 0}}=n,g=Te(n,iW),m=h[e]||r,C=QM(p[e],i),v=XM(I({className:s},l,{externalForwardedProps:e==="root"?g:void 0,externalSlotProps:C})),{props:{component:w},internalRef:S}=v,P=Te(v.props,nW),T=vs(S,C==null?void 0:C.ref,t.ref),F=o?o(P):{},E=I({},i,F),D=e==="root"?w||u:w,R=qM(m,I({},e==="root"&&!u&&!h[e]&&a,e!=="root"&&!h[e]&&a,P,D&&{as:D},{ref:T}),E);return Object.keys(F).forEach(A=>{delete R[A]}),[m,R]}function oW(e){return at("MuiAlert",e)}const zP=ot("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 aW(e){return at("MuiIconButton",e)}const lW=ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),cW=["edge","children","className","color","disabled","disableFocusRipple","size"],uW=e=>{const{classes:t,disabled:s,color:r,edge:i,size:n}=e,o={root:["root",s&&"disabled",r!=="default"&&`color${ye(r)}`,i&&`edge${ye(i)}`,`size${ye(n)}`]};return ct(o,aW,t)},dW=ve(Cn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.color!=="default"&&t[`color${ye(s.color)}`],s.edge&&t[`edge${ye(s.edge)}`],t[`size${ye(s.size)}`]]}})(({theme:e,ownerState:t})=>I({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var s;const r=(s=(e.vars||e).palette)==null?void 0:s[t.color];return I({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&I({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":I({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${lW.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),mb=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:n,className:o,color:a="default",disabled:l=!1,disableFocusRipple:u=!1,size:h="medium"}=r,p=Te(r,cW),g=I({},r,{edge:i,color:a,disabled:l,disableFocusRipple:u,size:h}),m=uW(g);return U.jsx(dW,I({className:Ae(m.root,o),centerRipple:!0,focusRipple:!u,disabled:l,ref:s},p,{ownerState:g,children:n}))}),hW=fr(U.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"}),"SuccessOutlined"),pW=fr(U.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),gW=fr(U.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"}),"ErrorOutline"),fW=fr(U.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"}),"InfoOutlined"),iD=fr(U.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"}),"Close"),mW=["action","children","className","closeText","color","components","componentsProps","icon","iconMapping","onClose","role","severity","slotProps","slots","variant"],CW=e=>{const{variant:t,color:s,severity:r,classes:i}=e,n={root:["root",`color${ye(s||r)}`,`${t}${ye(s||r)}`,`${t}`],icon:["icon"],message:["message"],action:["action"]};return ct(n,oW,i)},vW=ve(Hl,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[s.variant],t[`${s.variant}${ye(s.color||s.severity)}`]]}})(({theme:e})=>{const t=e.palette.mode==="light"?yt.darken:yt.lighten,s=e.palette.mode==="light"?yt.lighten:yt.darken;return I({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px",variants:[...Object.entries(e.palette).filter(([,r])=>r.main&&r.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`]:s(e.palette[r].light,.9),[`& .${zP.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.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}`,[`& .${zP.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(([,r])=>r.main&&r.dark).map(([r])=>({props:{colorSeverity:r,variant:"filled"},style:I({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)})}))]})}),yW=ve("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),wW=ve("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),WP=ve("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),_P={success:U.jsx(hW,{fontSize:"inherit"}),warning:U.jsx(pW,{fontSize:"inherit"}),error:U.jsx(gW,{fontSize:"inherit"}),info:U.jsx(fW,{fontSize:"inherit"})},Fve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiAlert"}),{action:i,children:n,className:o,closeText:a="Close",color:l,components:u={},componentsProps:h={},icon:p,iconMapping:g=_P,onClose:m,role:C="alert",severity:v="success",slotProps:w={},slots:S={},variant:P="standard"}=r,T=Te(r,mW),F=I({},r,{color:l,severity:v,variant:P,colorSeverity:l||v}),E=CW(F),D={slots:I({closeButton:u.CloseButton,closeIcon:u.CloseIcon},S),slotProps:I({},h,w)},[R,A]=HP("closeButton",{elementType:mb,externalForwardedProps:D,ownerState:F}),[G,L]=HP("closeIcon",{elementType:iD,externalForwardedProps:D,ownerState:F});return U.jsxs(vW,I({role:C,elevation:0,ownerState:F,className:Ae(E.root,o),ref:s},T,{children:[p!==!1?U.jsx(yW,{ownerState:F,className:E.icon,children:p||g[v]||_P[v]}):null,U.jsx(wW,{ownerState:F,className:E.message,children:n}),i!=null?U.jsx(WP,{ownerState:F,className:E.action,children:i}):null,i==null&&m?U.jsx(WP,{ownerState:F,className:E.action,children:U.jsx(R,I({size:"small","aria-label":a,title:a,color:"inherit",onClick:m},A,{children:U.jsx(G,I({fontSize:"small"},L))}))}):null]}))});function bW(e){return at("MuiTypography",e)}ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const SW=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],xW=e=>{const{align:t,gutterBottom:s,noWrap:r,paragraph:i,variant:n,classes:o}=e,a={root:["root",n,e.align!=="inherit"&&`align${ye(t)}`,s&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ct(a,bW,o)},RW=ve("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.variant&&t[s.variant],s.align!=="inherit"&&t[`align${ye(s.align)}`],s.noWrap&&t.noWrap,s.gutterBottom&&t.gutterBottom,s.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>I({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),$P={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},PW={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},FW=e=>PW[e]||e,Nn=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTypography"}),i=FW(r.color),n=$f(I({},r,{color:i})),{align:o="inherit",className:a,component:l,gutterBottom:u=!1,noWrap:h=!1,paragraph:p=!1,variant:g="body1",variantMapping:m=$P}=n,C=Te(n,SW),v=I({},n,{align:o,color:i,className:a,component:l,gutterBottom:u,noWrap:h,paragraph:p,variant:g,variantMapping:m}),w=l||(p?"p":m[g]||$P[g])||"span",S=xW(v);return U.jsx(RW,I({as:w,ref:s,ownerState:v,className:Ae(S.root,a)},C))});function EW(e){return at("MuiAppBar",e)}ot("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const TW=["className","color","enableColorOnDark","position"],MW=e=>{const{color:t,position:s,classes:r}=e,i={root:["root",`color${ye(t)}`,`position${ye(s)}`]};return ct(i,EW,r)},Zp=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,DW=ve(Hl,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`position${ye(s.position)}`],t[`color${ye(s.color)}`]]}})(({theme:e,ownerState:t})=>{const s=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return I({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&I({},t.color==="default"&&{backgroundColor:s,color:e.palette.getContrastText(s)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&I({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&I({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:Zp(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:Zp(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:Zp(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:Zp(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Eve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiAppBar"}),{className:i,color:n="primary",enableColorOnDark:o=!1,position:a="fixed"}=r,l=Te(r,TW),u=I({},r,{color:n,position:a,enableColorOnDark:o}),h=MW(u);return U.jsx(DW,I({square:!0,component:"header",ownerState:u,elevation:4,className:Ae(h.root,i,a==="fixed"&&"mui-fixed"),ref:s},l))});function UP(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function AW(e={}){const{ignoreAccents:t=!0,ignoreCase:s=!0,limit:r,matchFrom:i="any",stringify:n,trim:o=!1}=e;return(a,{inputValue:l,getOptionLabel:u})=>{let h=o?l.trim():l;s&&(h=h.toLowerCase()),t&&(h=UP(h));const p=h?a.filter(g=>{let m=(n||u)(g);return s&&(m=m.toLowerCase()),t&&(m=UP(m)),i==="start"?m.indexOf(h)===0:m.indexOf(h)>-1}):a;return typeof r=="number"?p.slice(0,r):p}}function eg(e,t){for(let s=0;s{var t;return e.current!==null&&((t=e.current.parentElement)==null?void 0:t.contains(document.activeElement))},OW=[];function GW(e){const{unstable_isActiveElementInListbox:t=LW,unstable_classNamePrefix:s="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:n=!1,blurOnSelect:o=!1,clearOnBlur:a=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:h=e.multiple?OW:null,disableClearable:p=!1,disableCloseOnSelect:g=!1,disabled:m,disabledItemsFocusable:C=!1,disableListWrap:v=!1,filterOptions:w=IW,filterSelectedOptions:S=!1,freeSolo:P=!1,getOptionDisabled:T,getOptionKey:F,getOptionLabel:E=se=>{var Z;return(Z=se.label)!=null?Z:se},groupBy:D,handleHomeEndKeys:R=!e.freeSolo,id:A,includeInputInList:G=!1,inputValue:L,isOptionEqualToValue:O=(se,Z)=>se===Z,multiple:N=!1,onChange:H,onClose:$,onHighlightChange:q,onInputChange:Y,onOpen:re,open:z,openOnFocus:ie=!1,options:ne,readOnly:V=!1,selectOnFocus:K=!e.freeSolo,value:fe}=e,ue=uu(A);let me=E;me=se=>{const Z=E(se);return typeof Z!="string"?String(Z):Z};const ge=b.useRef(!1),Be=b.useRef(!0),Ie=b.useRef(null),Ee=b.useRef(null),[et,Ze]=b.useState(null),[Re,ke]=b.useState(-1),Xe=i?0:-1,He=b.useRef(Xe),[Ve,It]=va({controlled:fe,default:h,name:u}),[ut,Bt]=va({controlled:L,default:"",name:u,state:"inputValue"}),[wt,ht]=b.useState(!1),Wt=b.useCallback((se,Z)=>{if(!(N?Ve.length!(S&&(N?Ve:[Ve]).some(Z=>Z!==null&&O(se,Z)))),{inputValue:ts&&Qt?"":ut,getOptionLabel:me}):[],Vt=F2({filteredOptions:Se,value:Ve,inputValue:ut});b.useEffect(()=>{const se=Ve!==Vt.value;wt&&!se||P&&!se||Wt(null,Ve)},[Ve,Wt,wt,Vt.value,P]);const ls=Ot&&Se.length>0&&!V,Qs=kr(se=>{se===-1?Ie.current.focus():et.querySelector(`[data-tag-index="${se}"]`).focus()});b.useEffect(()=>{N&&Re>Ve.length-1&&(ke(-1),Qs(-1))},[Ve,N,Re,Qs]);function Ue(se,Z){if(!Ee.current||se<0||se>=Se.length)return-1;let Ce=se;for(;;){const _e=Ee.current.querySelector(`[data-option-index="${Ce}"]`),Qe=C?!1:!_e||_e.disabled||_e.getAttribute("aria-disabled")==="true";if(_e&&_e.hasAttribute("tabindex")&&!Qe)return Ce;if(Z==="next"?Ce=(Ce+1)%Se.length:Ce=(Ce-1+Se.length)%Se.length,Ce===se)return-1}}const Pt=kr(({event:se,index:Z,reason:Ce="auto"})=>{if(He.current=Z,Z===-1?Ie.current.removeAttribute("aria-activedescendant"):Ie.current.setAttribute("aria-activedescendant",`${ue}-option-${Z}`),q&&q(se,Z===-1?null:Se[Z],Ce),!Ee.current)return;const _e=Ee.current.querySelector(`[role="option"].${s}-focused`);_e&&(_e.classList.remove(`${s}-focused`),_e.classList.remove(`${s}-focusVisible`));let Qe=Ee.current;if(Ee.current.getAttribute("role")!=="listbox"&&(Qe=Ee.current.parentElement.querySelector('[role="listbox"]')),!Qe)return;if(Z===-1){Qe.scrollTop=0;return}const pt=Ee.current.querySelector(`[data-option-index="${Z}"]`);if(pt&&(pt.classList.add(`${s}-focused`),Ce==="keyboard"&&pt.classList.add(`${s}-focusVisible`),Qe.scrollHeight>Qe.clientHeight&&Ce!=="mouse"&&Ce!=="touch")){const bt=pt,Hs=Qe.clientHeight+Qe.scrollTop,Pn=bt.offsetTop+bt.offsetHeight;Pn>Hs?Qe.scrollTop=Pn-Qe.clientHeight:bt.offsetTop-bt.offsetHeight*(D?1.3:0){if(!Ge)return;const pt=Ue((()=>{const bt=Se.length-1;if(Z==="reset")return Xe;if(Z==="start")return 0;if(Z==="end")return bt;const Hs=He.current+Z;return Hs<0?Hs===-1&&G?-1:v&&He.current!==-1||Math.abs(Z)>1?0:bt:Hs>bt?Hs===bt+1&&G?-1:v||Math.abs(Z)>1?bt:0:Hs})(),Ce);if(Pt({index:pt,reason:_e,event:se}),r&&Z!=="reset")if(pt===-1)Ie.current.value=ut;else{const bt=me(Se[pt]);Ie.current.value=bt,bt.toLowerCase().indexOf(ut.toLowerCase())===0&&ut.length>0&&Ie.current.setSelectionRange(ut.length,bt.length)}}),je=()=>{const se=(Z,Ce)=>{const _e=Z?me(Z):"",Qe=Ce?me(Ce):"";return _e===Qe};if(He.current!==-1&&Vt.filteredOptions&&Vt.filteredOptions.length!==Se.length&&Vt.inputValue===ut&&(N?Ve.length===Vt.value.length&&Vt.value.every((Z,Ce)=>me(Ve[Ce])===me(Z)):se(Vt.value,Ve))){const Z=Vt.filteredOptions[He.current];if(Z)return eg(Se,Ce=>me(Ce)===me(Z))}return-1},Et=b.useCallback(()=>{if(!Ge)return;const se=je();if(se!==-1){He.current=se;return}const Z=N?Ve[0]:Ve;if(Se.length===0||Z==null){De({diff:"reset"});return}if(Ee.current){if(Z!=null){const Ce=Se[He.current];if(N&&Ce&&eg(Ve,Qe=>O(Ce,Qe))!==-1)return;const _e=eg(Se,Qe=>O(Qe,Z));_e===-1?De({diff:"reset"}):Pt({index:_e});return}if(He.current>=Se.length-1){Pt({index:Se.length-1});return}Pt({index:He.current})}},[Se.length,N?!1:Ve,S,De,Pt,Ge,ut,N]),Mt=kr(se=>{eh(Ee,se),se&&Et()});b.useEffect(()=>{Et()},[Et]);const Dt=se=>{Ot||(mt(!0),us(!0),re&&re(se))},$t=(se,Z)=>{Ot&&(mt(!1),$&&$(se,Z))},Ut=(se,Z,Ce,_e)=>{if(N){if(Ve.length===Z.length&&Ve.every((Qe,pt)=>Qe===Z[pt]))return}else if(Ve===Z)return;H&&H(se,Z,Ce,_e),It(Z)},Ps=b.useRef(!1),Ls=(se,Z,Ce="selectOption",_e="options")=>{let Qe=Ce,pt=Z;if(N){pt=Array.isArray(Ve)?Ve.slice():[];const bt=eg(pt,Hs=>O(Z,Hs));bt===-1?pt.push(Z):_e!=="freeSolo"&&(pt.splice(bt,1),Qe="removeOption")}Wt(se,pt),Ut(se,pt,Qe,{option:Z}),!g&&(!se||!se.ctrlKey&&!se.metaKey)&&$t(se,Qe),(o===!0||o==="touch"&&Ps.current||o==="mouse"&&!Ps.current)&&Ie.current.blur()};function Wr(se,Z){if(se===-1)return-1;let Ce=se;for(;;){if(Z==="next"&&Ce===Ve.length||Z==="previous"&&Ce===-1)return-1;const _e=et.querySelector(`[data-tag-index="${Ce}"]`);if(!_e||!_e.hasAttribute("tabindex")||_e.disabled||_e.getAttribute("aria-disabled")==="true")Ce+=Z==="next"?1:-1;else return Ce}}const Zn=(se,Z)=>{if(!N)return;ut===""&&$t(se,"toggleInput");let Ce=Re;Re===-1?ut===""&&Z==="previous"&&(Ce=Ve.length-1):(Ce+=Z==="next"?1:-1,Ce<0&&(Ce=0),Ce===Ve.length&&(Ce=-1)),Ce=Wr(Ce,Z),ke(Ce),Qs(Ce)},Rn=se=>{ge.current=!0,Bt(""),Y&&Y(se,"","clear"),Ut(se,N?[]:null,"clear")},Qi=se=>Z=>{if(se.onKeyDown&&se.onKeyDown(Z),!Z.defaultMuiPrevented&&(Re!==-1&&["ArrowLeft","ArrowRight"].indexOf(Z.key)===-1&&(ke(-1),Qs(-1)),Z.which!==229))switch(Z.key){case"Home":Ge&&R&&(Z.preventDefault(),De({diff:"start",direction:"next",reason:"keyboard",event:Z}));break;case"End":Ge&&R&&(Z.preventDefault(),De({diff:"end",direction:"previous",reason:"keyboard",event:Z}));break;case"PageUp":Z.preventDefault(),De({diff:-5,direction:"previous",reason:"keyboard",event:Z}),Dt(Z);break;case"PageDown":Z.preventDefault(),De({diff:kW,direction:"next",reason:"keyboard",event:Z}),Dt(Z);break;case"ArrowDown":Z.preventDefault(),De({diff:1,direction:"next",reason:"keyboard",event:Z}),Dt(Z);break;case"ArrowUp":Z.preventDefault(),De({diff:-1,direction:"previous",reason:"keyboard",event:Z}),Dt(Z);break;case"ArrowLeft":Zn(Z,"previous");break;case"ArrowRight":Zn(Z,"next");break;case"Enter":if(He.current!==-1&&Ge){const Ce=Se[He.current],_e=T?T(Ce):!1;if(Z.preventDefault(),_e)return;Ls(Z,Ce,"selectOption"),r&&Ie.current.setSelectionRange(Ie.current.value.length,Ie.current.value.length)}else P&&ut!==""&&ts===!1&&(N&&Z.preventDefault(),Ls(Z,ut,"createOption","freeSolo"));break;case"Escape":Ge?(Z.preventDefault(),Z.stopPropagation(),$t(Z,"escape")):l&&(ut!==""||N&&Ve.length>0)&&(Z.preventDefault(),Z.stopPropagation(),Rn(Z));break;case"Backspace":if(N&&!V&&ut===""&&Ve.length>0){const Ce=Re===-1?Ve.length-1:Re,_e=Ve.slice();_e.splice(Ce,1),Ut(Z,_e,"removeOption",{option:Ve[Ce]})}break;case"Delete":if(N&&!V&&ut===""&&Ve.length>0&&Re!==-1){const Ce=Re,_e=Ve.slice();_e.splice(Ce,1),Ut(Z,_e,"removeOption",{option:Ve[Ce]})}break}},Ji=se=>{ht(!0),ie&&!ge.current&&Dt(se)},Zi=se=>{if(t(Ee)){Ie.current.focus();return}ht(!1),Be.current=!0,ge.current=!1,n&&He.current!==-1&&Ge?Ls(se,Se[He.current],"blur"):n&&P&&ut!==""?Ls(se,ut,"blur","freeSolo"):a&&Wt(se,Ve),$t(se,"blur")},ws=se=>{const Z=se.target.value;ut!==Z&&(Bt(Z),us(!1),Y&&Y(se,Z,"input")),Z===""?!p&&!N&&Ut(se,null,"clear"):Dt(se)},_=se=>{const Z=Number(se.currentTarget.getAttribute("data-option-index"));He.current!==Z&&Pt({event:se,index:Z,reason:"mouse"})},te=se=>{Pt({event:se,index:Number(se.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Ps.current=!0},ce=se=>{const Z=Number(se.currentTarget.getAttribute("data-option-index"));Ls(se,Se[Z],"selectOption"),Ps.current=!1},we=se=>Z=>{const Ce=Ve.slice();Ce.splice(se,1),Ut(Z,Ce,"removeOption",{option:Ve[se]})},Ne=se=>{Ot?$t(se,"toggleInput"):Dt(se)},rt=se=>{se.currentTarget.contains(se.target)&&se.target.getAttribute("id")!==ue&&se.preventDefault()},gt=se=>{se.currentTarget.contains(se.target)&&(Ie.current.focus(),K&&Be.current&&Ie.current.selectionEnd-Ie.current.selectionStart===0&&Ie.current.select(),Be.current=!1)},Ke=se=>{!m&&(ut===""||!Ot)&&Ne(se)};let qe=P&&ut.length>0;qe=qe||(N?Ve.length>0:Ve!==null);let $e=Se;return D&&($e=Se.reduce((se,Z,Ce)=>{const _e=D(Z);return se.length>0&&se[se.length-1].group===_e?se[se.length-1].options.push(Z):se.push({key:Ce,index:Ce,group:_e,options:[Z]}),se},[])),m&&wt&&Zi(),{getRootProps:(se={})=>I({"aria-owns":ls?`${ue}-listbox`:null},se,{onKeyDown:Qi(se),onMouseDown:rt,onClick:gt}),getInputLabelProps:()=>({id:`${ue}-label`,htmlFor:ue}),getInputProps:()=>({id:ue,value:ut,onBlur:Zi,onFocus:Ji,onChange:ws,onMouseDown:Ke,"aria-activedescendant":Ge?"":null,"aria-autocomplete":r?"both":"list","aria-controls":ls?`${ue}-listbox`:void 0,"aria-expanded":ls,autoComplete:"off",ref:Ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:m}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Rn}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Ne}),getTagProps:({index:se})=>I({key:se,"data-tag-index":se,tabIndex:-1},!V&&{onDelete:we(se)}),getListboxProps:()=>({role:"listbox",id:`${ue}-listbox`,"aria-labelledby":`${ue}-label`,ref:Mt,onMouseDown:se=>{se.preventDefault()}}),getOptionProps:({index:se,option:Z})=>{var Ce;const _e=(N?Ve:[Ve]).some(pt=>pt!=null&&O(Z,pt)),Qe=T?T(Z):!1;return{key:(Ce=F==null?void 0:F(Z))!=null?Ce:me(Z),tabIndex:-1,role:"option",id:`${ue}-option-${se}`,onMouseMove:_,onClick:ce,onTouchStart:te,"data-option-index":se,"aria-disabled":Qe,"aria-selected":_e}},id:ue,inputValue:ut,value:Ve,dirty:qe,expanded:Ge&&et,popupOpen:Ge,focused:wt||Re!==-1,anchorEl:et,setAnchorEl:Ze,focusedTag:Re,groupedOptions:$e}}var od={},jP;function NW(){if(jP)return od;jP=1,Object.defineProperty(od,"__esModule",{value:!0}),od.default=void 0;var e=r(Lf()),t=EM;function s(o){if(typeof WeakMap!="function")return null;var a=new WeakMap,l=new WeakMap;return(s=function(u){return u?l:a})(o)}function r(o,a){if(o&&o.__esModule)return o;if(o===null||typeof o!="object"&&typeof o!="function")return{default:o};var l=s(a);if(l&&l.has(o))return l.get(o);var u={__proto__:null},h=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var p in o)if(p!=="default"&&Object.prototype.hasOwnProperty.call(o,p)){var g=h?Object.getOwnPropertyDescriptor(o,p):null;g&&(g.get||g.set)?Object.defineProperty(u,p,g):u[p]=o[p]}return u.default=o,l&&l.set(o,u),u}function i(o){return Object.keys(o).length===0}function n(o=null){const a=e.useContext(t.ThemeContext);return!a||i(a)?o:a}return od.default=n,od}var BW=NW();const VW=nu(BW);var Zr="top",$i="bottom",Ui="right",ei="left",Cb="auto",Rh=[Zr,$i,Ui,ei],Wc="start",sh="end",HW="clippingParents",nD="viewport",ad="popper",zW="reference",KP=Rh.reduce(function(e,t){return e.concat([t+"-"+Wc,t+"-"+sh])},[]),oD=[].concat(Rh,[Cb]).reduce(function(e,t){return e.concat([t,t+"-"+Wc,t+"-"+sh])},[]),WW="beforeRead",_W="read",$W="afterRead",UW="beforeMain",jW="main",KW="afterMain",qW="beforeWrite",YW="write",XW="afterWrite",QW=[WW,_W,$W,UW,jW,KW,qW,YW,XW];function jn(e){return e?(e.nodeName||"").toLowerCase():null}function Pi(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function El(e){var t=Pi(e).Element;return e instanceof t||e instanceof Element}function Hi(e){var t=Pi(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function vb(e){if(typeof ShadowRoot>"u")return!1;var t=Pi(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function JW(e){var t=e.state;Object.keys(t.elements).forEach(function(s){var r=t.styles[s]||{},i=t.attributes[s]||{},n=t.elements[s];!Hi(n)||!jn(n)||(Object.assign(n.style,r),Object.keys(i).forEach(function(o){var a=i[o];a===!1?n.removeAttribute(o):n.setAttribute(o,a===!0?"":a)}))})}function ZW(e){var t=e.state,s={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,s.popper),t.styles=s,t.elements.arrow&&Object.assign(t.elements.arrow.style,s.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],n=t.attributes[r]||{},o=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:s[r]),a=o.reduce(function(l,u){return l[u]="",l},{});!Hi(i)||!jn(i)||(Object.assign(i.style,a),Object.keys(n).forEach(function(l){i.removeAttribute(l)}))})}}const e_={name:"applyStyles",enabled:!0,phase:"write",fn:JW,effect:ZW,requires:["computeStyles"]};function zn(e){return e.split("-")[0]}var Cl=Math.max,Yg=Math.min,_c=Math.round;function Qy(){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 aD(){return!/^((?!chrome|android).)*safari/i.test(Qy())}function $c(e,t,s){t===void 0&&(t=!1),s===void 0&&(s=!1);var r=e.getBoundingClientRect(),i=1,n=1;t&&Hi(e)&&(i=e.offsetWidth>0&&_c(r.width)/e.offsetWidth||1,n=e.offsetHeight>0&&_c(r.height)/e.offsetHeight||1);var o=El(e)?Pi(e):window,a=o.visualViewport,l=!aD()&&s,u=(r.left+(l&&a?a.offsetLeft:0))/i,h=(r.top+(l&&a?a.offsetTop:0))/n,p=r.width/i,g=r.height/n;return{width:p,height:g,top:h,right:u+p,bottom:h+g,left:u,x:u,y:h}}function yb(e){var t=$c(e),s=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-s)<=1&&(s=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:s,height:r}}function lD(e,t){var s=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(s&&vb(s)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function So(e){return Pi(e).getComputedStyle(e)}function t_(e){return["table","td","th"].indexOf(jn(e))>=0}function Da(e){return((El(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qf(e){return jn(e)==="html"?e:e.assignedSlot||e.parentNode||(vb(e)?e.host:null)||Da(e)}function qP(e){return!Hi(e)||So(e).position==="fixed"?null:e.offsetParent}function s_(e){var t=/firefox/i.test(Qy()),s=/Trident/i.test(Qy());if(s&&Hi(e)){var r=So(e);if(r.position==="fixed")return null}var i=Qf(e);for(vb(i)&&(i=i.host);Hi(i)&&["html","body"].indexOf(jn(i))<0;){var n=So(i);if(n.transform!=="none"||n.perspective!=="none"||n.contain==="paint"||["transform","perspective"].indexOf(n.willChange)!==-1||t&&n.willChange==="filter"||t&&n.filter&&n.filter!=="none")return i;i=i.parentNode}return null}function Ph(e){for(var t=Pi(e),s=qP(e);s&&t_(s)&&So(s).position==="static";)s=qP(s);return s&&(jn(s)==="html"||jn(s)==="body"&&So(s).position==="static")?t:s||s_(e)||t}function wb(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function kd(e,t,s){return Cl(e,Yg(t,s))}function r_(e,t,s){var r=kd(e,t,s);return r>s?s:r}function cD(){return{top:0,right:0,bottom:0,left:0}}function uD(e){return Object.assign({},cD(),e)}function dD(e,t){return t.reduce(function(s,r){return s[r]=e,s},{})}var i_=function(t,s){return t=typeof t=="function"?t(Object.assign({},s.rects,{placement:s.placement})):t,uD(typeof t!="number"?t:dD(t,Rh))};function n_(e){var t,s=e.state,r=e.name,i=e.options,n=s.elements.arrow,o=s.modifiersData.popperOffsets,a=zn(s.placement),l=wb(a),u=[ei,Ui].indexOf(a)>=0,h=u?"height":"width";if(!(!n||!o)){var p=i_(i.padding,s),g=yb(n),m=l==="y"?Zr:ei,C=l==="y"?$i:Ui,v=s.rects.reference[h]+s.rects.reference[l]-o[l]-s.rects.popper[h],w=o[l]-s.rects.reference[l],S=Ph(n),P=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,T=v/2-w/2,F=p[m],E=P-g[h]-p[C],D=P/2-g[h]/2+T,R=kd(F,D,E),A=l;s.modifiersData[r]=(t={},t[A]=R,t.centerOffset=R-D,t)}}function o_(e){var t=e.state,s=e.options,r=s.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||lD(t.elements.popper,i)&&(t.elements.arrow=i))}const a_={name:"arrow",enabled:!0,phase:"main",fn:n_,effect:o_,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Uc(e){return e.split("-")[1]}var l_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function c_(e,t){var s=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:_c(s*i)/i||0,y:_c(r*i)/i||0}}function YP(e){var t,s=e.popper,r=e.popperRect,i=e.placement,n=e.variation,o=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,h=e.roundOffsets,p=e.isFixed,g=o.x,m=g===void 0?0:g,C=o.y,v=C===void 0?0:C,w=typeof h=="function"?h({x:m,y:v}):{x:m,y:v};m=w.x,v=w.y;var S=o.hasOwnProperty("x"),P=o.hasOwnProperty("y"),T=ei,F=Zr,E=window;if(u){var D=Ph(s),R="clientHeight",A="clientWidth";if(D===Pi(s)&&(D=Da(s),So(D).position!=="static"&&a==="absolute"&&(R="scrollHeight",A="scrollWidth")),D=D,i===Zr||(i===ei||i===Ui)&&n===sh){F=$i;var G=p&&D===E&&E.visualViewport?E.visualViewport.height:D[R];v-=G-r.height,v*=l?1:-1}if(i===ei||(i===Zr||i===$i)&&n===sh){T=Ui;var L=p&&D===E&&E.visualViewport?E.visualViewport.width:D[A];m-=L-r.width,m*=l?1:-1}}var O=Object.assign({position:a},u&&l_),N=h===!0?c_({x:m,y:v},Pi(s)):{x:m,y:v};if(m=N.x,v=N.y,l){var H;return Object.assign({},O,(H={},H[F]=P?"0":"",H[T]=S?"0":"",H.transform=(E.devicePixelRatio||1)<=1?"translate("+m+"px, "+v+"px)":"translate3d("+m+"px, "+v+"px, 0)",H))}return Object.assign({},O,(t={},t[F]=P?v+"px":"",t[T]=S?m+"px":"",t.transform="",t))}function u_(e){var t=e.state,s=e.options,r=s.gpuAcceleration,i=r===void 0?!0:r,n=s.adaptive,o=n===void 0?!0:n,a=s.roundOffsets,l=a===void 0?!0:a,u={placement:zn(t.placement),variation:Uc(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,YP(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,YP(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const d_={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:u_,data:{}};var tg={passive:!0};function h_(e){var t=e.state,s=e.instance,r=e.options,i=r.scroll,n=i===void 0?!0:i,o=r.resize,a=o===void 0?!0:o,l=Pi(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return n&&u.forEach(function(h){h.addEventListener("scroll",s.update,tg)}),a&&l.addEventListener("resize",s.update,tg),function(){n&&u.forEach(function(h){h.removeEventListener("scroll",s.update,tg)}),a&&l.removeEventListener("resize",s.update,tg)}}const p_={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:h_,data:{}};var g_={left:"right",right:"left",bottom:"top",top:"bottom"};function Fg(e){return e.replace(/left|right|bottom|top/g,function(t){return g_[t]})}var f_={start:"end",end:"start"};function XP(e){return e.replace(/start|end/g,function(t){return f_[t]})}function bb(e){var t=Pi(e),s=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:s,scrollTop:r}}function Sb(e){return $c(Da(e)).left+bb(e).scrollLeft}function m_(e,t){var s=Pi(e),r=Da(e),i=s.visualViewport,n=r.clientWidth,o=r.clientHeight,a=0,l=0;if(i){n=i.width,o=i.height;var u=aD();(u||!u&&t==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}return{width:n,height:o,x:a+Sb(e),y:l}}function C_(e){var t,s=Da(e),r=bb(e),i=(t=e.ownerDocument)==null?void 0:t.body,n=Cl(s.scrollWidth,s.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),o=Cl(s.scrollHeight,s.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Sb(e),l=-r.scrollTop;return So(i||s).direction==="rtl"&&(a+=Cl(s.clientWidth,i?i.clientWidth:0)-n),{width:n,height:o,x:a,y:l}}function xb(e){var t=So(e),s=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(s+i+r)}function hD(e){return["html","body","#document"].indexOf(jn(e))>=0?e.ownerDocument.body:Hi(e)&&xb(e)?e:hD(Qf(e))}function Ld(e,t){var s;t===void 0&&(t=[]);var r=hD(e),i=r===((s=e.ownerDocument)==null?void 0:s.body),n=Pi(r),o=i?[n].concat(n.visualViewport||[],xb(r)?r:[]):r,a=t.concat(o);return i?a:a.concat(Ld(Qf(o)))}function Jy(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function v_(e,t){var s=$c(e,!1,t==="fixed");return s.top=s.top+e.clientTop,s.left=s.left+e.clientLeft,s.bottom=s.top+e.clientHeight,s.right=s.left+e.clientWidth,s.width=e.clientWidth,s.height=e.clientHeight,s.x=s.left,s.y=s.top,s}function QP(e,t,s){return t===nD?Jy(m_(e,s)):El(t)?v_(t,s):Jy(C_(Da(e)))}function y_(e){var t=Ld(Qf(e)),s=["absolute","fixed"].indexOf(So(e).position)>=0,r=s&&Hi(e)?Ph(e):e;return El(r)?t.filter(function(i){return El(i)&&lD(i,r)&&jn(i)!=="body"}):[]}function w_(e,t,s,r){var i=t==="clippingParents"?y_(e):[].concat(t),n=[].concat(i,[s]),o=n[0],a=n.reduce(function(l,u){var h=QP(e,u,r);return l.top=Cl(h.top,l.top),l.right=Yg(h.right,l.right),l.bottom=Yg(h.bottom,l.bottom),l.left=Cl(h.left,l.left),l},QP(e,o,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function pD(e){var t=e.reference,s=e.element,r=e.placement,i=r?zn(r):null,n=r?Uc(r):null,o=t.x+t.width/2-s.width/2,a=t.y+t.height/2-s.height/2,l;switch(i){case Zr:l={x:o,y:t.y-s.height};break;case $i:l={x:o,y:t.y+t.height};break;case Ui:l={x:t.x+t.width,y:a};break;case ei:l={x:t.x-s.width,y:a};break;default:l={x:t.x,y:t.y}}var u=i?wb(i):null;if(u!=null){var h=u==="y"?"height":"width";switch(n){case Wc:l[u]=l[u]-(t[h]/2-s[h]/2);break;case sh:l[u]=l[u]+(t[h]/2-s[h]/2);break}}return l}function rh(e,t){t===void 0&&(t={});var s=t,r=s.placement,i=r===void 0?e.placement:r,n=s.strategy,o=n===void 0?e.strategy:n,a=s.boundary,l=a===void 0?HW:a,u=s.rootBoundary,h=u===void 0?nD:u,p=s.elementContext,g=p===void 0?ad:p,m=s.altBoundary,C=m===void 0?!1:m,v=s.padding,w=v===void 0?0:v,S=uD(typeof w!="number"?w:dD(w,Rh)),P=g===ad?zW:ad,T=e.rects.popper,F=e.elements[C?P:g],E=w_(El(F)?F:F.contextElement||Da(e.elements.popper),l,h,o),D=$c(e.elements.reference),R=pD({reference:D,element:T,placement:i}),A=Jy(Object.assign({},T,R)),G=g===ad?A:D,L={top:E.top-G.top+S.top,bottom:G.bottom-E.bottom+S.bottom,left:E.left-G.left+S.left,right:G.right-E.right+S.right},O=e.modifiersData.offset;if(g===ad&&O){var N=O[i];Object.keys(L).forEach(function(H){var $=[Ui,$i].indexOf(H)>=0?1:-1,q=[Zr,$i].indexOf(H)>=0?"y":"x";L[H]+=N[q]*$})}return L}function b_(e,t){t===void 0&&(t={});var s=t,r=s.placement,i=s.boundary,n=s.rootBoundary,o=s.padding,a=s.flipVariations,l=s.allowedAutoPlacements,u=l===void 0?oD:l,h=Uc(r),p=h?a?KP:KP.filter(function(C){return Uc(C)===h}):Rh,g=p.filter(function(C){return u.indexOf(C)>=0});g.length===0&&(g=p);var m=g.reduce(function(C,v){return C[v]=rh(e,{placement:v,boundary:i,rootBoundary:n,padding:o})[zn(v)],C},{});return Object.keys(m).sort(function(C,v){return m[C]-m[v]})}function S_(e){if(zn(e)===Cb)return[];var t=Fg(e);return[XP(e),t,XP(t)]}function x_(e){var t=e.state,s=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=s.mainAxis,n=i===void 0?!0:i,o=s.altAxis,a=o===void 0?!0:o,l=s.fallbackPlacements,u=s.padding,h=s.boundary,p=s.rootBoundary,g=s.altBoundary,m=s.flipVariations,C=m===void 0?!0:m,v=s.allowedAutoPlacements,w=t.options.placement,S=zn(w),P=S===w,T=l||(P||!C?[Fg(w)]:S_(w)),F=[w].concat(T).reduce(function(ue,me){return ue.concat(zn(me)===Cb?b_(t,{placement:me,boundary:h,rootBoundary:p,padding:u,flipVariations:C,allowedAutoPlacements:v}):me)},[]),E=t.rects.reference,D=t.rects.popper,R=new Map,A=!0,G=F[0],L=0;L=0,q=$?"width":"height",Y=rh(t,{placement:O,boundary:h,rootBoundary:p,altBoundary:g,padding:u}),re=$?H?Ui:ei:H?$i:Zr;E[q]>D[q]&&(re=Fg(re));var z=Fg(re),ie=[];if(n&&ie.push(Y[N]<=0),a&&ie.push(Y[re]<=0,Y[z]<=0),ie.every(function(ue){return ue})){G=O,A=!1;break}R.set(O,ie)}if(A)for(var ne=C?3:1,V=function(me){var ge=F.find(function(Be){var Ie=R.get(Be);if(Ie)return Ie.slice(0,me).every(function(Ee){return Ee})});if(ge)return G=ge,"break"},K=ne;K>0;K--){var fe=V(K);if(fe==="break")break}t.placement!==G&&(t.modifiersData[r]._skip=!0,t.placement=G,t.reset=!0)}}const R_={name:"flip",enabled:!0,phase:"main",fn:x_,requiresIfExists:["offset"],data:{_skip:!1}};function JP(e,t,s){return s===void 0&&(s={x:0,y:0}),{top:e.top-t.height-s.y,right:e.right-t.width+s.x,bottom:e.bottom-t.height+s.y,left:e.left-t.width-s.x}}function ZP(e){return[Zr,Ui,$i,ei].some(function(t){return e[t]>=0})}function P_(e){var t=e.state,s=e.name,r=t.rects.reference,i=t.rects.popper,n=t.modifiersData.preventOverflow,o=rh(t,{elementContext:"reference"}),a=rh(t,{altBoundary:!0}),l=JP(o,r),u=JP(a,i,n),h=ZP(l),p=ZP(u);t.modifiersData[s]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:h,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":p})}const F_={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:P_};function E_(e,t,s){var r=zn(e),i=[ei,Zr].indexOf(r)>=0?-1:1,n=typeof s=="function"?s(Object.assign({},t,{placement:e})):s,o=n[0],a=n[1];return o=o||0,a=(a||0)*i,[ei,Ui].indexOf(r)>=0?{x:a,y:o}:{x:o,y:a}}function T_(e){var t=e.state,s=e.options,r=e.name,i=s.offset,n=i===void 0?[0,0]:i,o=oD.reduce(function(h,p){return h[p]=E_(p,t.rects,n),h},{}),a=o[t.placement],l=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=o}const M_={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:T_};function D_(e){var t=e.state,s=e.name;t.modifiersData[s]=pD({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const A_={name:"popperOffsets",enabled:!0,phase:"read",fn:D_,data:{}};function I_(e){return e==="x"?"y":"x"}function k_(e){var t=e.state,s=e.options,r=e.name,i=s.mainAxis,n=i===void 0?!0:i,o=s.altAxis,a=o===void 0?!1:o,l=s.boundary,u=s.rootBoundary,h=s.altBoundary,p=s.padding,g=s.tether,m=g===void 0?!0:g,C=s.tetherOffset,v=C===void 0?0:C,w=rh(t,{boundary:l,rootBoundary:u,padding:p,altBoundary:h}),S=zn(t.placement),P=Uc(t.placement),T=!P,F=wb(S),E=I_(F),D=t.modifiersData.popperOffsets,R=t.rects.reference,A=t.rects.popper,G=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,L=typeof G=="number"?{mainAxis:G,altAxis:G}:Object.assign({mainAxis:0,altAxis:0},G),O=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,N={x:0,y:0};if(D){if(n){var H,$=F==="y"?Zr:ei,q=F==="y"?$i:Ui,Y=F==="y"?"height":"width",re=D[F],z=re+w[$],ie=re-w[q],ne=m?-A[Y]/2:0,V=P===Wc?R[Y]:A[Y],K=P===Wc?-A[Y]:-R[Y],fe=t.elements.arrow,ue=m&&fe?yb(fe):{width:0,height:0},me=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cD(),ge=me[$],Be=me[q],Ie=kd(0,R[Y],ue[Y]),Ee=T?R[Y]/2-ne-Ie-ge-L.mainAxis:V-Ie-ge-L.mainAxis,et=T?-R[Y]/2+ne+Ie+Be+L.mainAxis:K+Ie+Be+L.mainAxis,Ze=t.elements.arrow&&Ph(t.elements.arrow),Re=Ze?F==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,ke=(H=O==null?void 0:O[F])!=null?H:0,Xe=re+Ee-ke-Re,He=re+et-ke,Ve=kd(m?Yg(z,Xe):z,re,m?Cl(ie,He):ie);D[F]=Ve,N[F]=Ve-re}if(a){var It,ut=F==="x"?Zr:ei,Bt=F==="x"?$i:Ui,wt=D[E],ht=E==="y"?"height":"width",Wt=wt+w[ut],Ot=wt-w[Bt],mt=[Zr,ei].indexOf(S)!==-1,Qt=(It=O==null?void 0:O[E])!=null?It:0,us=mt?Wt:wt-R[ht]-A[ht]-Qt+L.altAxis,ts=mt?wt+R[ht]+A[ht]-Qt-L.altAxis:Ot,Ge=m&&mt?r_(us,wt,ts):kd(m?us:Wt,wt,m?ts:Ot);D[E]=Ge,N[E]=Ge-wt}t.modifiersData[r]=N}}const L_={name:"preventOverflow",enabled:!0,phase:"main",fn:k_,requiresIfExists:["offset"]};function O_(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function G_(e){return e===Pi(e)||!Hi(e)?bb(e):O_(e)}function N_(e){var t=e.getBoundingClientRect(),s=_c(t.width)/e.offsetWidth||1,r=_c(t.height)/e.offsetHeight||1;return s!==1||r!==1}function B_(e,t,s){s===void 0&&(s=!1);var r=Hi(t),i=Hi(t)&&N_(t),n=Da(t),o=$c(e,i,s),a={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!s)&&((jn(t)!=="body"||xb(n))&&(a=G_(t)),Hi(t)?(l=$c(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):n&&(l.x=Sb(n))),{x:o.left+a.scrollLeft-l.x,y:o.top+a.scrollTop-l.y,width:o.width,height:o.height}}function V_(e){var t=new Map,s=new Set,r=[];e.forEach(function(n){t.set(n.name,n)});function i(n){s.add(n.name);var o=[].concat(n.requires||[],n.requiresIfExists||[]);o.forEach(function(a){if(!s.has(a)){var l=t.get(a);l&&i(l)}}),r.push(n)}return e.forEach(function(n){s.has(n.name)||i(n)}),r}function H_(e){var t=V_(e);return QW.reduce(function(s,r){return s.concat(t.filter(function(i){return i.phase===r}))},[])}function z_(e){var t;return function(){return t||(t=new Promise(function(s){Promise.resolve().then(function(){t=void 0,s(e())})})),t}}function W_(e){var t=e.reduce(function(s,r){var i=s[r.name];return s[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,s},{});return Object.keys(t).map(function(s){return t[s]})}var eF={placement:"bottom",modifiers:[],strategy:"absolute"};function tF(){for(var e=arguments.length,t=new Array(e),s=0;s{n||a(j_(i)||document.body)},[i,n]),li(()=>{if(o&&!n)return eh(s,o),()=>{eh(s,null)}},[s,o,n]),n){if(b.isValidElement(r)){const u={ref:l};return b.cloneElement(r,u)}return U.jsx(b.Fragment,{children:r})}return U.jsx(b.Fragment,{children:o&&bh.createPortal(r,o)})});function K_(e){return at("MuiPopper",e)}ot("MuiPopper",["root"]);const q_=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Y_=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function X_(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 Zy(e){return typeof e=="function"?e():e}function Q_(e){return e.nodeType!==void 0}const J_=e=>{const{classes:t}=e;return ct({root:["root"]},K_,t)},Z_={},e$=b.forwardRef(function(t,s){var r;const{anchorEl:i,children:n,direction:o,disablePortal:a,modifiers:l,open:u,placement:h,popperOptions:p,popperRef:g,slotProps:m={},slots:C={},TransitionProps:v}=t,w=Te(t,q_),S=b.useRef(null),P=vs(S,s),T=b.useRef(null),F=vs(T,g),E=b.useRef(F);li(()=>{E.current=F},[F]),b.useImperativeHandle(g,()=>T.current,[]);const D=X_(h,o),[R,A]=b.useState(D),[G,L]=b.useState(Zy(i));b.useEffect(()=>{T.current&&T.current.forceUpdate()}),b.useEffect(()=>{i&&L(Zy(i))},[i]),li(()=>{if(!G||!u)return;const q=z=>{A(z.placement)};let Y=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:z})=>{q(z)}}];l!=null&&(Y=Y.concat(l)),p&&p.modifiers!=null&&(Y=Y.concat(p.modifiers));const re=U_(G,S.current,I({placement:D},p,{modifiers:Y}));return E.current(re),()=>{re.destroy(),E.current(null)}},[G,a,l,u,p,D]);const O={placement:R};v!==null&&(O.TransitionProps=v);const N=J_(t),H=(r=C.root)!=null?r:"div",$=_i({elementType:H,externalSlotProps:m.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:P},ownerState:t,className:N.root});return U.jsx(H,I({},$,{children:typeof n=="function"?n(O):n}))}),t$=b.forwardRef(function(t,s){const{anchorEl:r,children:i,container:n,direction:o="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:u,open:h,placement:p="bottom",popperOptions:g=Z_,popperRef:m,style:C,transition:v=!1,slotProps:w={},slots:S={}}=t,P=Te(t,Y_),[T,F]=b.useState(!0),E=()=>{F(!1)},D=()=>{F(!0)};if(!l&&!h&&(!v||T))return null;let R;if(n)R=n;else if(r){const L=Zy(r);R=L&&Q_(L)?hr(L).body:hr(null).body}const A=!h&&l&&(!v||T)?"none":void 0,G=v?{in:h,onEnter:E,onExited:D}:void 0;return U.jsx(gD,{disablePortal:a,container:R,children:U.jsx(e$,I({anchorEl:r,direction:o,disablePortal:a,modifiers:u,ref:s,open:v?!T:h,placement:p,popperOptions:g,popperRef:m,slotProps:w,slots:S},P,{style:I({position:"fixed",top:0,left:0,display:A},C),TransitionProps:G,children:i}))})}),s$=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],r$=ve(t$,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),fD=b.forwardRef(function(t,s){var r;const i=VW(),n=dt({props:t,name:"MuiPopper"}),{anchorEl:o,component:a,components:l,componentsProps:u,container:h,disablePortal:p,keepMounted:g,modifiers:m,open:C,placement:v,popperOptions:w,popperRef:S,transition:P,slots:T,slotProps:F}=n,E=Te(n,s$),D=(r=T==null?void 0:T.root)!=null?r:l==null?void 0:l.Root,R=I({anchorEl:o,container:h,disablePortal:p,keepMounted:g,modifiers:m,open:C,placement:v,popperOptions:w,popperRef:S,transition:P},E);return U.jsx(r$,I({as:a,direction:i==null?void 0:i.direction,slots:{root:D},slotProps:F??u},R,{ref:s}))});function i$(e){return at("MuiListSubheader",e)}ot("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const n$=["className","color","component","disableGutters","disableSticky","inset"],o$=e=>{const{classes:t,color:s,disableGutters:r,inset:i,disableSticky:n}=e,o={root:["root",s!=="default"&&`color${ye(s)}`,!r&&"gutters",i&&"inset",!n&&"sticky"]};return ct(o,i$,t)},a$=ve("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.color!=="default"&&t[`color${ye(s.color)}`],!s.disableGutters&&t.gutters,s.inset&&t.inset,!s.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>I({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)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),mD=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiListSubheader"}),{className:i,color:n="default",component:o="li",disableGutters:a=!1,disableSticky:l=!1,inset:u=!1}=r,h=Te(r,n$),p=I({},r,{color:n,component:o,disableGutters:a,disableSticky:l,inset:u}),g=o$(p);return U.jsx(a$,I({as:o,className:Ae(g.root,i),ref:s,ownerState:p},h))});mD.muiSkipListHighlight=!0;const l$=fr(U.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"}),"Cancel");function c$(e){return at("MuiChip",e)}const Yt=ot("MuiChip",["root","sizeSmall","sizeMedium","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"]),u$=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],d$=e=>{const{classes:t,disabled:s,size:r,color:i,iconColor:n,onDelete:o,clickable:a,variant:l}=e,u={root:["root",l,s&&"disabled",`size${ye(r)}`,`color${ye(i)}`,a&&"clickable",a&&`clickableColor${ye(i)}`,o&&"deletable",o&&`deletableColor${ye(i)}`,`${l}${ye(i)}`],label:["label",`label${ye(r)}`],avatar:["avatar",`avatar${ye(r)}`,`avatarColor${ye(i)}`],icon:["icon",`icon${ye(r)}`,`iconColor${ye(n)}`],deleteIcon:["deleteIcon",`deleteIcon${ye(r)}`,`deleteIconColor${ye(i)}`,`deleteIcon${ye(l)}Color${ye(i)}`]};return ct(u,c$,t)},h$=ve("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e,{color:r,iconColor:i,clickable:n,onDelete:o,size:a,variant:l}=s;return[{[`& .${Yt.avatar}`]:t.avatar},{[`& .${Yt.avatar}`]:t[`avatar${ye(a)}`]},{[`& .${Yt.avatar}`]:t[`avatarColor${ye(r)}`]},{[`& .${Yt.icon}`]:t.icon},{[`& .${Yt.icon}`]:t[`icon${ye(a)}`]},{[`& .${Yt.icon}`]:t[`iconColor${ye(i)}`]},{[`& .${Yt.deleteIcon}`]:t.deleteIcon},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${ye(a)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIconColor${ye(r)}`]},{[`& .${Yt.deleteIcon}`]:t[`deleteIcon${ye(l)}Color${ye(r)}`]},t.root,t[`size${ye(a)}`],t[`color${ye(r)}`],n&&t.clickable,n&&r!=="default"&&t[`clickableColor${ye(r)})`],o&&t.deletable,o&&r!=="default"&&t[`deletableColor${ye(r)}`],t[l],t[`${l}${ye(r)}`]]}})(({theme:e,ownerState:t})=>{const s=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return I({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",[`&.${Yt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Yt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:s,fontSize:e.typography.pxToRem(12)},[`& .${Yt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Yt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Yt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Yt.icon}`]:I({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&I({color:e.vars?e.vars.palette.Chip.defaultIconColor:s},t.color!=="default"&&{color:"inherit"})),[`& .${Yt.deleteIcon}`]:I({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:yt.alpha(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)`:yt.alpha(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:yt.alpha(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>I({},t.clickable&&{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}))`:yt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>I({},t.variant==="outlined"&&{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]}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Yt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Yt.avatar}`]:{marginLeft:4},[`& .${Yt.avatarSmall}`]:{marginLeft:2},[`& .${Yt.icon}`]:{marginLeft:4},[`& .${Yt.iconSmall}`]:{marginLeft:2},[`& .${Yt.deleteIcon}`]:{marginRight:5},[`& .${Yt.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:yt.alpha(e.palette[t.color].main,.7)}`,[`&.${Yt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Yt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:yt.alpha(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Yt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:yt.alpha(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),p$=ve("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:s}=e,{size:r}=s;return[t.label,t[`label${ye(r)}`]]}})(({ownerState:e})=>I({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function sF(e){return e.key==="Backspace"||e.key==="Delete"}const g$=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiChip"}),{avatar:i,className:n,clickable:o,color:a="default",component:l,deleteIcon:u,disabled:h=!1,icon:p,label:g,onClick:m,onDelete:C,onKeyDown:v,onKeyUp:w,size:S="medium",variant:P="filled",tabIndex:T,skipFocusWhenDisabled:F=!1}=r,E=Te(r,u$),D=b.useRef(null),R=vs(D,s),A=ie=>{ie.stopPropagation(),C&&C(ie)},G=ie=>{ie.currentTarget===ie.target&&sF(ie)&&ie.preventDefault(),v&&v(ie)},L=ie=>{ie.currentTarget===ie.target&&(C&&sF(ie)?C(ie):ie.key==="Escape"&&D.current&&D.current.blur()),w&&w(ie)},O=o!==!1&&m?!0:o,N=O||C?Cn:l||"div",H=I({},r,{component:N,disabled:h,size:S,color:a,iconColor:b.isValidElement(p)&&p.props.color||a,onDelete:!!C,clickable:O,variant:P}),$=d$(H),q=N===Cn?I({component:l||"div",focusVisibleClassName:$.focusVisible},C&&{disableRipple:!0}):{};let Y=null;C&&(Y=u&&b.isValidElement(u)?b.cloneElement(u,{className:Ae(u.props.className,$.deleteIcon),onClick:A}):U.jsx(l$,{className:Ae($.deleteIcon),onClick:A}));let re=null;i&&b.isValidElement(i)&&(re=b.cloneElement(i,{className:Ae($.avatar,i.props.className)}));let z=null;return p&&b.isValidElement(p)&&(z=b.cloneElement(p,{className:Ae($.icon,p.props.className)})),U.jsxs(h$,I({as:N,className:Ae($.root,n),disabled:O&&h?!0:void 0,onClick:m,onKeyDown:G,onKeyUp:L,ref:R,tabIndex:F&&h?-1:T,ownerState:H},q,E,{children:[re||z,U.jsx(p$,{className:Ae($.label),ownerState:H,children:g}),Y]}))}),f$=["onChange","maxRows","minRows","style","value"];function sg(e){return parseInt(e,10)||0}const m$={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function C$(e){for(const t in e)return!1;return!0}function rF(e){return C$(e)||e.outerHeightStyle===0&&!e.overflowing}const v$=b.forwardRef(function(t,s){const{onChange:r,maxRows:i,minRows:n=1,style:o,value:a}=t,l=Te(t,f$),{current:u}=b.useRef(a!=null),h=b.useRef(null),p=vs(s,h),g=b.useRef(null),m=b.useRef(null),C=b.useCallback(()=>{const T=h.current,F=m.current;if(!T||!F)return;const D=Un(T).getComputedStyle(T);if(D.width==="0px")return{outerHeightStyle:0,overflowing:!1};F.style.width=D.width,F.value=T.value||t.placeholder||"x",F.value.slice(-1)===` `&&(F.value+=" ");const R=D.boxSizing,A=sg(D.paddingBottom)+sg(D.paddingTop),G=sg(D.borderBottomWidth)+sg(D.borderTopWidth),L=F.scrollHeight;F.value="x";const O=F.scrollHeight;let N=L;n&&(N=Math.max(Number(n)*O,N)),i&&(N=Math.min(Number(i)*O,N)),N=Math.max(N,O);const H=N+(R==="border-box"?A+G:0),$=Math.abs(N-L)<=1;return{outerHeightStyle:H,overflowing:$}},[i,n,t.placeholder]),v=kr(()=>{const T=h.current,F=C();if(!T||!F||rF(F))return!1;const E=F.outerHeightStyle;return g.current!=null&&g.current!==E}),w=b.useCallback(()=>{const T=h.current,F=C();if(!T||!F||rF(F))return;const E=F.outerHeightStyle;g.current!==E&&(g.current=E,T.style.height=`${E}px`),T.style.overflow=F.overflowing?"hidden":""},[C]),S=b.useRef(-1);li(()=>{const T=Sh(w),F=h==null?void 0:h.current;if(!F)return;const E=Un(F);E.addEventListener("resize",T);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(()=>{v()&&(D.unobserve(F),cancelAnimationFrame(S.current),w(),S.current=requestAnimationFrame(()=>{D.observe(F)}))}),D.observe(F)),()=>{T.clear(),cancelAnimationFrame(S.current),E.removeEventListener("resize",T),D&&D.disconnect()}},[C,w,v]),li(()=>{w()});const P=T=>{u||w(),r&&r(T)};return U.jsxs(b.Fragment,{children:[U.jsx("textarea",I({value:a,onChange:P,ref:p,rows:n,style:o},l)),U.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:m,tabIndex:-1,style:I({},m$.shadow,o,{paddingTop:0,paddingBottom:0})})]})});function Aa({props:e,states:t,muiFormControl:s}){return t.reduce((r,i)=>(r[i]=e[i],s&&typeof e[i]>"u"&&(r[i]=s[i]),r),{})}const Rb=b.createContext(void 0);function Do(){return b.useContext(Rb)}function CD(e){return U.jsx(i2,I({},e,{defaultTheme:db,themeId:Hc}))}function iF(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Xg(e,t=!1){return e&&(iF(e.value)&&e.value!==""||t&&iF(e.defaultValue)&&e.defaultValue!=="")}function y$(e){return e.startAdornment}function w$(e){return at("MuiInputBase",e)}const Ci=ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),b$=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Jf=(e,t)=>{const{ownerState:s}=e;return[t.root,s.formControl&&t.formControl,s.startAdornment&&t.adornedStart,s.endAdornment&&t.adornedEnd,s.error&&t.error,s.size==="small"&&t.sizeSmall,s.multiline&&t.multiline,s.color&&t[`color${ye(s.color)}`],s.fullWidth&&t.fullWidth,s.hiddenLabel&&t.hiddenLabel]},Zf=(e,t)=>{const{ownerState:s}=e;return[t.input,s.size==="small"&&t.inputSizeSmall,s.multiline&&t.inputMultiline,s.type==="search"&&t.inputTypeSearch,s.startAdornment&&t.inputAdornedStart,s.endAdornment&&t.inputAdornedEnd,s.hiddenLabel&&t.inputHiddenLabel]},S$=e=>{const{classes:t,color:s,disabled:r,error:i,endAdornment:n,focused:o,formControl:a,fullWidth:l,hiddenLabel:u,multiline:h,readOnly:p,size:g,startAdornment:m,type:C}=e,v={root:["root",`color${ye(s)}`,r&&"disabled",i&&"error",l&&"fullWidth",o&&"focused",a&&"formControl",g&&g!=="medium"&&`size${ye(g)}`,h&&"multiline",m&&"adornedStart",n&&"adornedEnd",u&&"hiddenLabel",p&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",h&&"inputMultiline",g==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",m&&"inputAdornedStart",n&&"inputAdornedEnd",p&&"readOnly"]};return ct(v,w$,t)},em=ve("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Jf})(({theme:e,ownerState:t})=>I({},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",[`&.${Ci.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&I({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),tm=ve("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Zf})(({theme:e,ownerState:t})=>{const s=e.palette.mode==="light",r=I({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:s?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},n=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:s?.42:.5};return I({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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Ci.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":n,"&:focus::-moz-placeholder":n,"&:focus:-ms-input-placeholder":n,"&:focus::-ms-input-placeholder":n},[`&.${Ci.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),x$=U.jsx(CD,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Pb=b.forwardRef(function(t,s){var r;const i=dt({props:t,name:"MuiInputBase"}),{"aria-describedby":n,autoComplete:o,autoFocus:a,className:l,components:u={},componentsProps:h={},defaultValue:p,disabled:g,disableInjectingGlobalStyles:m,endAdornment:C,fullWidth:v=!1,id:w,inputComponent:S="input",inputProps:P={},inputRef:T,maxRows:F,minRows:E,multiline:D=!1,name:R,onBlur:A,onChange:G,onClick:L,onFocus:O,onKeyDown:N,onKeyUp:H,placeholder:$,readOnly:q,renderSuffix:Y,rows:re,slotProps:z={},slots:ie={},startAdornment:ne,type:V="text",value:K}=i,fe=Te(i,b$),ue=P.value!=null?P.value:K,{current:me}=b.useRef(ue!=null),ge=b.useRef(),Be=b.useCallback(Ge=>{},[]),Ie=vs(ge,T,P.ref,Be),[Ee,et]=b.useState(!1),Ze=Do(),Re=Aa({props:i,muiFormControl:Ze,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Re.focused=Ze?Ze.focused:Ee,b.useEffect(()=>{!Ze&&g&&Ee&&(et(!1),A&&A())},[Ze,g,Ee,A]);const ke=Ze&&Ze.onFilled,Xe=Ze&&Ze.onEmpty,He=b.useCallback(Ge=>{Xg(Ge)?ke&&ke():Xe&&Xe()},[ke,Xe]);li(()=>{me&&He({value:ue})},[ue,He,me]);const Ve=Ge=>{if(Re.disabled){Ge.stopPropagation();return}O&&O(Ge),P.onFocus&&P.onFocus(Ge),Ze&&Ze.onFocus?Ze.onFocus(Ge):et(!0)},It=Ge=>{A&&A(Ge),P.onBlur&&P.onBlur(Ge),Ze&&Ze.onBlur?Ze.onBlur(Ge):et(!1)},ut=(Ge,...Se)=>{if(!me){const Vt=Ge.target||ge.current;if(Vt==null)throw new Error(bo(1));He({value:Vt.value})}P.onChange&&P.onChange(Ge,...Se),G&&G(Ge,...Se)};b.useEffect(()=>{He(ge.current)},[]);const Bt=Ge=>{ge.current&&Ge.currentTarget===Ge.target&&ge.current.focus(),L&&L(Ge)};let wt=S,ht=P;D&&wt==="input"&&(re?ht=I({type:void 0,minRows:re,maxRows:re},ht):ht=I({type:void 0,maxRows:F,minRows:E},ht),wt=v$);const Wt=Ge=>{He(Ge.animationName==="mui-auto-fill-cancel"?ge.current:{value:"x"})};b.useEffect(()=>{Ze&&Ze.setAdornedStart(!!ne)},[Ze,ne]);const Ot=I({},i,{color:Re.color||"primary",disabled:Re.disabled,endAdornment:C,error:Re.error,focused:Re.focused,formControl:Ze,fullWidth:v,hiddenLabel:Re.hiddenLabel,multiline:D,size:Re.size,startAdornment:ne,type:V}),mt=S$(Ot),Qt=ie.root||u.Root||em,us=z.root||h.root||{},ts=ie.input||u.Input||tm;return ht=I({},ht,(r=z.input)!=null?r:h.input),U.jsxs(b.Fragment,{children:[!m&&x$,U.jsxs(Qt,I({},us,!zc(Qt)&&{ownerState:I({},Ot,us.ownerState)},{ref:s,onClick:Bt},fe,{className:Ae(mt.root,us.className,l,q&&"MuiInputBase-readOnly"),children:[ne,U.jsx(Rb.Provider,{value:null,children:U.jsx(ts,I({ownerState:Ot,"aria-invalid":Re.error,"aria-describedby":n,autoComplete:o,autoFocus:a,defaultValue:p,disabled:Re.disabled,id:w,onAnimationStart:Wt,name:R,placeholder:$,readOnly:q,required:Re.required,rows:re,value:ue,onKeyDown:N,onKeyUp:H,type:V},ht,!zc(ts)&&{as:wt,ownerState:I({},Ot,ht.ownerState)},{ref:Ie,className:Ae(mt.input,ht.className,q&&"MuiInputBase-readOnly"),onBlur:It,onChange:ut,onFocus:Ve}))}),C,Y?Y(I({},Re,{startAdornment:ne})):null]}))]})});function R$(e){return at("MuiInput",e)}const ha=I({},Ci,ot("MuiInput",["root","underline","input"]));function P$(e){return at("MuiOutlinedInput",e)}const kn=I({},Ci,ot("MuiOutlinedInput",["root","notchedOutline","input"]));function F$(e){return at("MuiFilledInput",e)}const vi=I({},Ci,ot("MuiFilledInput",["root","underline","input"])),vD=fr(U.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function E$(e){return at("MuiAutocomplete",e)}const kt=ot("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 nF,oF;const T$=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionKey","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","slotProps","value"],M$=["ref"],D$=["key"],A$=["key"],I$=e=>{const{classes:t,disablePortal:s,expanded:r,focused:i,fullWidth:n,hasClearIcon:o,hasPopupIcon:a,inputFocused:l,popupOpen:u,size:h}=e,p={root:["root",r&&"expanded",i&&"focused",n&&"fullWidth",o&&"hasClearIcon",a&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ye(h)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",s&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return ct(p,E$,t)},k$=ve("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:n,inputFocused:o,size:a}=s;return[{[`& .${kt.tag}`]:t.tag},{[`& .${kt.tag}`]:t[`tagSize${ye(a)}`]},{[`& .${kt.inputRoot}`]:t.inputRoot},{[`& .${kt.input}`]:t.input},{[`& .${kt.input}`]:o&&t.inputFocused},t.root,r&&t.fullWidth,n&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${kt.focused} .${kt.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${kt.clearIndicator}`]:{visibility:"visible"}},[`& .${kt.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${kt.inputRoot}`]:{[`.${kt.hasPopupIcon}&, .${kt.hasClearIcon}&`]:{paddingRight:30},[`.${kt.hasPopupIcon}.${kt.hasClearIcon}&`]:{paddingRight:56},[`& .${kt.input}`]:{width:0,minWidth:30}},[`& .${ha.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${ha.root}.${Ci.sizeSmall}`]:{[`& .${ha.input}`]:{padding:"2px 4px 3px 0"}},[`& .${kn.root}`]:{padding:9,[`.${kt.hasPopupIcon}&, .${kt.hasClearIcon}&`]:{paddingRight:39},[`.${kt.hasPopupIcon}.${kt.hasClearIcon}&`]:{paddingRight:65},[`& .${kt.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${kt.endAdornment}`]:{right:9}},[`& .${kn.root}.${Ci.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${kt.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${vi.root}`]:{paddingTop:19,paddingLeft:8,[`.${kt.hasPopupIcon}&, .${kt.hasClearIcon}&`]:{paddingRight:39},[`.${kt.hasPopupIcon}.${kt.hasClearIcon}&`]:{paddingRight:65},[`& .${vi.input}`]:{padding:"7px 4px"},[`& .${kt.endAdornment}`]:{right:9}},[`& .${vi.root}.${Ci.sizeSmall}`]:{paddingBottom:1,[`& .${vi.input}`]:{padding:"2.5px 4px"}},[`& .${Ci.hiddenLabel}`]:{paddingTop:8},[`& .${vi.root}.${Ci.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${kt.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${vi.root}.${Ci.hiddenLabel}.${Ci.sizeSmall}`]:{[`& .${kt.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${kt.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${kt.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${kt.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${kt.inputRoot}`]:{flexWrap:"wrap"}}}]}),L$=ve("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),O$=ve(mb,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),G$=ve(mb,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>I({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),N$=ve(fD,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${kt.option}`]:t.option},t.popper,s.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),B$=ve(Hl,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>I({},e.typography.body1,{overflow:"auto"})),V$=ve("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),H$=ve("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),z$=ve("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${kt.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"},[`&.${kt.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"},[`&.${kt.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})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kt.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),W$=ve(mD,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),_$=ve("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${kt.option}`]:{paddingLeft:24}}),Tve=b.forwardRef(function(t,s){var r,i,n,o;const a=dt({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:h=!1,blurOnSelect:p=!1,ChipProps:g,className:m,clearIcon:C=nF||(nF=U.jsx(iD,{fontSize:"small"})),clearOnBlur:v=!a.freeSolo,clearOnEscape:w=!1,clearText:S="Clear",closeText:P="Close",componentsProps:T={},defaultValue:F=a.multiple?[]:null,disableClearable:E=!1,disableCloseOnSelect:D=!1,disabled:R=!1,disabledItemsFocusable:A=!1,disableListWrap:G=!1,disablePortal:L=!1,filterSelectedOptions:O=!1,forcePopupIcon:N="auto",freeSolo:H=!1,fullWidth:$=!1,getLimitTagsText:q=Z=>`+${Z}`,getOptionLabel:Y,groupBy:re,handleHomeEndKeys:z=!a.freeSolo,includeInputInList:ie=!1,limitTags:ne=-1,ListboxComponent:V="ul",ListboxProps:K,loading:fe=!1,loadingText:ue="Loading…",multiple:me=!1,noOptionsText:ge="No options",openOnFocus:Be=!1,openText:Ie="Open",PaperComponent:Ee=Hl,PopperComponent:et=fD,popupIcon:Ze=oF||(oF=U.jsx(vD,{})),readOnly:Re=!1,renderGroup:ke,renderInput:Xe,renderOption:He,renderTags:Ve,selectOnFocus:It=!a.freeSolo,size:ut="medium",slotProps:Bt={}}=a,wt=Te(a,T$),{getRootProps:ht,getInputProps:Wt,getInputLabelProps:Ot,getPopupIndicatorProps:mt,getClearProps:Qt,getTagProps:us,getListboxProps:ts,getOptionProps:Ge,value:Se,dirty:Vt,expanded:ls,id:Qs,popupOpen:Ue,focused:Pt,focusedTag:De,anchorEl:je,setAnchorEl:Et,inputValue:Mt,groupedOptions:Dt}=GW(I({},a,{componentName:"Autocomplete"})),$t=!E&&!R&&Vt&&!Re,Ut=(!H||N===!0)&&N!==!1,{onMouseDown:Ps}=Wt(),{ref:Ls}=K??{},Wr=ts(),{ref:Zn}=Wr,Rn=Te(Wr,M$),Qi=vs(Zn,Ls),Zi=Y||(Z=>{var Ce;return(Ce=Z.label)!=null?Ce:Z}),ws=I({},a,{disablePortal:L,expanded:ls,focused:Pt,fullWidth:$,getOptionLabel:Zi,hasClearIcon:$t,hasPopupIcon:Ut,inputFocused:De===-1,popupOpen:Ue,size:ut}),_=I$(ws);let te;if(me&&Se.length>0){const Z=Ce=>I({className:_.tag,disabled:R},us(Ce));Ve?te=Ve(Se,Z,ws):te=Se.map((Ce,_e)=>{const Qe=Z({index:_e}),{key:pt}=Qe,bt=Te(Qe,D$);return U.jsx(g$,I({label:Zi(Ce),size:ut},bt,g),pt)})}if(ne>-1&&Array.isArray(te)){const Z=te.length-ne;!Pt&&Z>0&&(te=te.splice(0,ne),te.push(U.jsx("span",{className:_.tag,children:q(Z)},te.length)))}const we=ke||(Z=>U.jsxs("li",{children:[U.jsx(W$,{className:_.groupLabel,ownerState:ws,component:"div",children:Z.group}),U.jsx(_$,{className:_.groupUl,ownerState:ws,children:Z.children})]},Z.key)),rt=He||((Z,Ce)=>{const{key:_e}=Z,Qe=Te(Z,A$);return U.jsx("li",I({},Qe,{children:Zi(Ce)}),_e)}),gt=(Z,Ce)=>{const _e=Ge({option:Z,index:Ce});return rt(I({},_e,{className:_.option}),Z,{selected:_e["aria-selected"],index:Ce,inputValue:Mt},ws)},Ke=(r=Bt.clearIndicator)!=null?r:T.clearIndicator,qe=(i=Bt.paper)!=null?i:T.paper,$e=(n=Bt.popper)!=null?n:T.popper,se=(o=Bt.popupIndicator)!=null?o:T.popupIndicator;return U.jsxs(b.Fragment,{children:[U.jsx(k$,I({ref:s,className:Ae(_.root,m),ownerState:ws},ht(wt),{children:Xe({id:Qs,disabled:R,fullWidth:!0,size:ut==="small"?"small":void 0,InputLabelProps:Ot(),InputProps:I({ref:Et,className:_.inputRoot,startAdornment:te,onClick:Z=>{Z.target===Z.currentTarget&&Ps(Z)}},($t||Ut)&&{endAdornment:U.jsxs(L$,{className:_.endAdornment,ownerState:ws,children:[$t?U.jsx(O$,I({},Qt(),{"aria-label":S,title:S,ownerState:ws},Ke,{className:Ae(_.clearIndicator,Ke==null?void 0:Ke.className),children:C})):null,Ut?U.jsx(G$,I({},mt(),{disabled:R,"aria-label":Ue?P:Ie,title:Ue?P:Ie,ownerState:ws},se,{className:Ae(_.popupIndicator,se==null?void 0:se.className),children:Ze})):null]})}),inputProps:I({className:_.input,disabled:R,readOnly:Re},Wt())})})),je?U.jsx(N$,I({as:et,disablePortal:L,style:{width:je?je.clientWidth:null},ownerState:ws,role:"presentation",anchorEl:je,open:Ue},$e,{className:Ae(_.popper,$e==null?void 0:$e.className),children:U.jsxs(B$,I({ownerState:ws,as:Ee},qe,{className:Ae(_.paper,qe==null?void 0:qe.className),children:[fe&&Dt.length===0?U.jsx(V$,{className:_.loading,ownerState:ws,children:ue}):null,Dt.length===0&&!H&&!fe?U.jsx(H$,{className:_.noOptions,ownerState:ws,role:"presentation",onMouseDown:Z=>{Z.preventDefault()},children:ge}):null,Dt.length>0?U.jsx(z$,I({as:V,className:_.listbox,ownerState:ws},Rn,K,{ref:Qi,children:Dt.map((Z,Ce)=>re?we({key:Z.key,group:Z.group,children:Z.options.map((_e,Qe)=>gt(_e,Z.index+Qe))}):gt(Z,Ce))})):null]}))})):null]})}),$$=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],U$={entering:{opacity:1},entered:{opacity:1}},yD=b.forwardRef(function(t,s){const r=Xf(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:n,appear:o=!0,children:a,easing:l,in:u,onEnter:h,onEntered:p,onEntering:g,onExit:m,onExited:C,onExiting:v,style:w,timeout:S=i,TransitionComponent:P=Yn}=t,T=Te(t,$$),F=b.useRef(null),E=vs(F,xh(a),s),D=$=>q=>{if($){const Y=F.current;q===void 0?$(Y):$(Y,q)}},R=D(g),A=D(($,q)=>{rD($);const Y=qg({style:w,timeout:S,easing:l},{mode:"enter"});$.style.webkitTransition=r.transitions.create("opacity",Y),$.style.transition=r.transitions.create("opacity",Y),h&&h($,q)}),G=D(p),L=D(v),O=D($=>{const q=qg({style:w,timeout:S,easing:l},{mode:"exit"});$.style.webkitTransition=r.transitions.create("opacity",q),$.style.transition=r.transitions.create("opacity",q),m&&m($)}),N=D(C),H=$=>{n&&n(F.current,$)};return U.jsx(P,I({appear:o,in:u,nodeRef:F,onEnter:A,onEntered:G,onEntering:R,onExit:O,onExited:N,onExiting:L,addEndListener:H,timeout:S},T,{children:($,q)=>b.cloneElement(a,I({style:I({opacity:0,visibility:$==="exited"&&!u?"hidden":void 0},U$[$],w,a.props.style),ref:E},q))}))});function j$(e){return at("MuiBackdrop",e)}ot("MuiBackdrop",["root","invisible"]);const K$=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],q$=e=>{const{classes:t,invisible:s}=e;return ct({root:["root",s&&"invisible"]},j$,t)},Y$=ve("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.invisible&&t.invisible]}})(({ownerState:e})=>I({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"},e.invisible&&{backgroundColor:"transparent"})),wD=b.forwardRef(function(t,s){var r,i,n;const o=dt({props:t,name:"MuiBackdrop"}),{children:a,className:l,component:u="div",components:h={},componentsProps:p={},invisible:g=!1,open:m,slotProps:C={},slots:v={},TransitionComponent:w=yD,transitionDuration:S}=o,P=Te(o,K$),T=I({},o,{component:u,invisible:g}),F=q$(T),E=(r=C.root)!=null?r:p.root;return U.jsx(w,I({in:m,timeout:S},P,{children:U.jsx(Y$,I({"aria-hidden":!0},E,{as:(i=(n=v.root)!=null?n:h.Root)!=null?i:u,className:Ae(F.root,l,E==null?void 0:E.className),ownerState:I({},T,E==null?void 0:E.ownerState),classes:F,ref:s,children:a}))}))}),X$=ot("MuiBox",["root"]),Q$=NM(),Mve=o2({themeId:Hc,defaultTheme:Q$,defaultClassName:X$.root,generateClassName:ub.generate}),J$=fr(U.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"}),"MoreHoriz"),Z$=["slots","slotProps"],eU=ve(Cn)(({theme:e})=>I({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":I({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":I({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:yt.emphasize(e.palette.grey[200],.12)}:{backgroundColor:yt.emphasize(e.palette.grey[600],.12)})})),tU=ve(J$)({width:24,height:16});function sU(e){const{slots:t={},slotProps:s={}}=e,r=Te(e,Z$),i=e;return U.jsx("li",{children:U.jsx(eU,I({focusRipple:!0},r,{ownerState:i,children:U.jsx(tU,I({as:t.CollapsedIcon,ownerState:i},s.collapsedIcon))}))})}function rU(e){return at("MuiBreadcrumbs",e)}const iU=ot("MuiBreadcrumbs",["root","ol","li","separator"]),nU=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],oU=e=>{const{classes:t}=e;return ct({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},rU,t)},aU=ve(Nn,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${iU.li}`]:t.li},t.root]})({}),lU=ve("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),cU=ve("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function uU(e,t,s,r){return e.reduce((i,n,o)=>(o{const A=()=>{w(!0);const G=F.current.querySelector("a[href],button,[tabindex]");G&&G.focus()};return p+h>=R.length?R:[...R.slice(0,p),U.jsx(sU,{"aria-label":u,slots:{CollapsedIcon:a.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:A},"ellipsis"),...R.slice(R.length-h,R.length)]},D=b.Children.toArray(i).filter(R=>b.isValidElement(R)).map((R,A)=>U.jsx("li",{className:P.li,children:R},`child-${A}`));return U.jsx(aU,I({ref:s,component:o,color:"text.secondary",className:Ae(P.root,n),ownerState:S},C,{children:U.jsx(lU,{className:P.ol,ref:F,ownerState:S,children:uU(v||g&&D.length<=g?D:E(D),P.separator,m,S)})}))});function dU(e){return at("PrivateSwitchBase",e)}ot("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const hU=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],pU=e=>{const{classes:t,checked:s,disabled:r,edge:i}=e,n={root:["root",s&&"checked",r&&"disabled",i&&`edge${ye(i)}`],input:["input"]};return ct(n,dU,t)},gU=ve(Cn)(({ownerState:e})=>I({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),fU=ve("input",{shouldForwardProp:nr})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),bD=b.forwardRef(function(t,s){const{autoFocus:r,checked:i,checkedIcon:n,className:o,defaultChecked:a,disabled:l,disableFocusRipple:u=!1,edge:h=!1,icon:p,id:g,inputProps:m,inputRef:C,name:v,onBlur:w,onChange:S,onFocus:P,readOnly:T,required:F=!1,tabIndex:E,type:D,value:R}=t,A=Te(t,hU),[G,L]=va({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),O=Do(),N=ie=>{P&&P(ie),O&&O.onFocus&&O.onFocus(ie)},H=ie=>{w&&w(ie),O&&O.onBlur&&O.onBlur(ie)},$=ie=>{if(ie.nativeEvent.defaultPrevented)return;const ne=ie.target.checked;L(ne),S&&S(ie,ne)};let q=l;O&&typeof q>"u"&&(q=O.disabled);const Y=D==="checkbox"||D==="radio",re=I({},t,{checked:G,disabled:q,disableFocusRipple:u,edge:h}),z=pU(re);return U.jsxs(gU,I({component:"span",className:Ae(z.root,o),centerRipple:!0,focusRipple:!u,disabled:q,tabIndex:null,role:void 0,onFocus:N,onBlur:H,ownerState:re,ref:s},A,{children:[U.jsx(fU,I({autoFocus:r,checked:i,defaultChecked:a,className:z.input,disabled:q,id:Y?g:void 0,name:v,onChange:$,readOnly:T,ref:C,required:F,ownerState:re,tabIndex:E,type:D},D==="checkbox"&&R===void 0?{}:{value:R},m)),G?n:p]}))}),mU=fr(U.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"}),"CheckBoxOutlineBlank"),CU=fr(U.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"}),"CheckBox"),vU=fr(U.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"}),"IndeterminateCheckBox");function yU(e){return at("MuiCheckbox",e)}const Vv=ot("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),wU=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],bU=e=>{const{classes:t,indeterminate:s,color:r,size:i}=e,n={root:["root",s&&"indeterminate",`color${ye(r)}`,`size${ye(i)}`]},o=ct(n,yU,t);return I({},t,o)},SU=ve(bD,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.indeterminate&&t.indeterminate,t[`size${ye(s.size)}`],s.color!=="default"&&t[`color${ye(s.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Vv.checked}, &.${Vv.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Vv.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),xU=U.jsx(CU,{}),RU=U.jsx(mU,{}),PU=U.jsx(vU,{}),Ave=b.forwardRef(function(t,s){var r,i;const n=dt({props:t,name:"MuiCheckbox"}),{checkedIcon:o=xU,color:a="primary",icon:l=RU,indeterminate:u=!1,indeterminateIcon:h=PU,inputProps:p,size:g="medium",className:m}=n,C=Te(n,wU),v=u?h:l,w=u?h:o,S=I({},n,{color:a,indeterminate:u,size:g}),P=bU(S);return U.jsx(SU,I({type:"checkbox",inputProps:I({"data-indeterminate":u},p),icon:b.cloneElement(v,{fontSize:(r=v.props.fontSize)!=null?r:g}),checkedIcon:b.cloneElement(w,{fontSize:(i=w.props.fontSize)!=null?i:g}),ownerState:S,ref:s,className:Ae(P.root,m)},C,{classes:P}))});function FU(e){return at("MuiCircularProgress",e)}ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const EU=["className","color","disableShrink","size","style","thickness","value","variant"];let sm=e=>e,aF,lF,cF,uF;const ea=44,TU=Ma(aF||(aF=sm` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `)),MU=Ma(lF||(lF=sm` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `)),DU=e=>{const{classes:t,variant:s,color:r,disableShrink:i}=e,n={root:["root",s,`color${ye(r)}`],svg:["svg"],circle:["circle",`circle${ye(s)}`,i&&"circleDisableShrink"]};return ct(n,FU,t)},AU=ve("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[s.variant],t[`color${ye(s.color)}`]]}})(({ownerState:e,theme:t})=>I({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&Bc(cF||(cF=sm` animation: ${0} 1.4s linear infinite; `),TU)),IU=ve("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),kU=ve("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.circle,t[`circle${ye(s.variant)}`],s.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>I({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&Bc(uF||(uF=sm` animation: ${0} 1.4s ease-in-out infinite; `),MU)),Ive=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiCircularProgress"}),{className:i,color:n="primary",disableShrink:o=!1,size:a=40,style:l,thickness:u=3.6,value:h=0,variant:p="indeterminate"}=r,g=Te(r,EU),m=I({},r,{color:n,disableShrink:o,size:a,thickness:u,value:h,variant:p}),C=DU(m),v={},w={},S={};if(p==="determinate"){const P=2*Math.PI*((ea-u)/2);v.strokeDasharray=P.toFixed(3),S["aria-valuenow"]=Math.round(h),v.strokeDashoffset=`${((100-h)/100*P).toFixed(3)}px`,w.transform="rotate(-90deg)"}return U.jsx(AU,I({className:Ae(C.root,i),style:I({width:a,height:a},w,l),ownerState:m,ref:s,role:"progressbar"},S,g,{children:U.jsx(IU,{className:C.svg,ownerState:m,viewBox:`${ea/2} ${ea/2} ${ea} ${ea}`,children:U.jsx(kU,{className:C.circle,style:v,ownerState:m,cx:ea,cy:ea,r:(ea-u)/2,fill:"none",strokeWidth:u})})}))}),kve=H2({createStyledComponent:ve("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`maxWidth${ye(String(s.maxWidth))}`],s.fixed&&t.fixed,s.disableGutters&&t.disableGutters]}}),useThemeProps:e=>dt({props:e,name:"MuiContainer"})}),LU=(e,t)=>I({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),OU=e=>I({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}}),GU=(e,t=!1)=>{var s;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([o,a])=>{var l;r[e.getColorSchemeSelector(o).replace(/\s*&/,"")]={colorScheme:(l=a.palette)==null?void 0:l.mode}});let i=I({html:LU(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:I({margin:0},OU(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const n=(s=e.components)==null||(s=s.MuiCssBaseline)==null?void 0:s.styleOverrides;return n&&(i=[i,n]),i};function Lve(e){const t=dt({props:e,name:"MuiCssBaseline"}),{children:s,enableColorScheme:r=!1}=t;return U.jsxs(b.Fragment,{children:[U.jsx(CD,{styles:i=>GU(i,r)}),s]})}function NU(e){const t=hr(e);return t.body===e?Un(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Od(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function dF(e){return parseInt(Un(e).getComputedStyle(e).paddingRight,10)||0}function BU(e){const s=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return s||r}function hF(e,t,s,r,i){const n=[t,s,...r];[].forEach.call(e.children,o=>{const a=n.indexOf(o)===-1,l=!BU(o);a&&l&&Od(o,i)})}function Hv(e,t){let s=-1;return e.some((r,i)=>t(r)?(s=i,!0):!1),s}function VU(e,t){const s=[],r=e.container;if(!t.disableScrollLock){if(NU(r)){const o=jM(hr(r));s.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${dF(r)+o}px`;const a=hr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,l=>{s.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${dF(l)+o}px`})}let n;if(r.parentNode instanceof DocumentFragment)n=hr(r).body;else{const o=r.parentElement,a=Un(r);n=(o==null?void 0:o.nodeName)==="HTML"&&a.getComputedStyle(o).overflowY==="scroll"?o:r}s.push({value:n.style.overflow,property:"overflow",el:n},{value:n.style.overflowX,property:"overflow-x",el:n},{value:n.style.overflowY,property:"overflow-y",el:n}),n.style.overflow="hidden"}return()=>{s.forEach(({value:n,el:o,property:a})=>{n?o.style.setProperty(a,n):o.style.removeProperty(a)})}}function HU(e){const t=[];return[].forEach.call(e.children,s=>{s.getAttribute("aria-hidden")==="true"&&t.push(s)}),t}class zU{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,s){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&Od(t.modalRef,!1);const i=HU(s);hF(s,t.mount,t.modalRef,i,!0);const n=Hv(this.containers,o=>o.container===s);return n!==-1?(this.containers[n].modals.push(t),r):(this.containers.push({modals:[t],container:s,restore:null,hiddenSiblings:i}),r)}mount(t,s){const r=Hv(this.containers,n=>n.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=VU(i,s))}remove(t,s=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=Hv(this.containers,o=>o.modals.indexOf(t)!==-1),n=this.containers[i];if(n.modals.splice(n.modals.indexOf(t),1),this.modals.splice(r,1),n.modals.length===0)n.restore&&n.restore(),t.modalRef&&Od(t.modalRef,s),hF(n.container,t.mount,t.modalRef,n.hiddenSiblings,!1),this.containers.splice(i,1);else{const o=n.modals[n.modals.length-1];o.modalRef&&Od(o.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const WU=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _U(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 $U(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let s=t(`[name="${e.name}"]:checked`);return s||(s=t(`[name="${e.name}"]`)),s!==e}function UU(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||$U(e))}function jU(e){const t=[],s=[];return Array.from(e.querySelectorAll(WU)).forEach((r,i)=>{const n=_U(r);n===-1||!UU(r)||(n===0?t.push(r):s.push({documentOrder:i,tabIndex:n,node:r}))}),s.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function KU(){return!0}function qU(e){const{children:t,disableAutoFocus:s=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:n=jU,isEnabled:o=KU,open:a}=e,l=b.useRef(!1),u=b.useRef(null),h=b.useRef(null),p=b.useRef(null),g=b.useRef(null),m=b.useRef(!1),C=b.useRef(null),v=vs(xh(t),C),w=b.useRef(null);b.useEffect(()=>{!a||!C.current||(m.current=!s)},[s,a]),b.useEffect(()=>{if(!a||!C.current)return;const T=hr(C.current);return C.current.contains(T.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),m.current&&C.current.focus()),()=>{i||(p.current&&p.current.focus&&(l.current=!0,p.current.focus()),p.current=null)}},[a]),b.useEffect(()=>{if(!a||!C.current)return;const T=hr(C.current),F=R=>{w.current=R,!(r||!o()||R.key!=="Tab")&&T.activeElement===C.current&&R.shiftKey&&(l.current=!0,h.current&&h.current.focus())},E=()=>{const R=C.current;if(R===null)return;if(!T.hasFocus()||!o()||l.current){l.current=!1;return}if(R.contains(T.activeElement)||r&&T.activeElement!==u.current&&T.activeElement!==h.current)return;if(T.activeElement!==g.current)g.current=null;else if(g.current!==null)return;if(!m.current)return;let A=[];if((T.activeElement===u.current||T.activeElement===h.current)&&(A=n(C.current)),A.length>0){var G,L;const O=!!((G=w.current)!=null&&G.shiftKey&&((L=w.current)==null?void 0:L.key)==="Tab"),N=A[0],H=A[A.length-1];typeof N!="string"&&typeof H!="string"&&(O?H.focus():N.focus())}else R.focus()};T.addEventListener("focusin",E),T.addEventListener("keydown",F,!0);const D=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&E()},50);return()=>{clearInterval(D),T.removeEventListener("focusin",E),T.removeEventListener("keydown",F,!0)}},[s,r,i,o,a,n]);const S=T=>{p.current===null&&(p.current=T.relatedTarget),m.current=!0,g.current=T.target;const F=t.props.onFocus;F&&F(T)},P=T=>{p.current===null&&(p.current=T.relatedTarget),m.current=!0};return U.jsxs(b.Fragment,{children:[U.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:u,"data-testid":"sentinelStart"}),b.cloneElement(t,{ref:v,onFocus:S}),U.jsx("div",{tabIndex:a?0:-1,onFocus:P,ref:h,"data-testid":"sentinelEnd"})]})}function YU(e){return typeof e=="function"?e():e}function XU(e){return e?e.props.hasOwnProperty("in"):!1}const QU=new zU;function JU(e){const{container:t,disableEscapeKeyDown:s=!1,disableScrollLock:r=!1,manager:i=QU,closeAfterTransition:n=!1,onTransitionEnter:o,onTransitionExited:a,children:l,onClose:u,open:h,rootRef:p}=e,g=b.useRef({}),m=b.useRef(null),C=b.useRef(null),v=vs(C,p),[w,S]=b.useState(!h),P=XU(l);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const F=()=>hr(m.current),E=()=>(g.current.modalRef=C.current,g.current.mount=m.current,g.current),D=()=>{i.mount(E(),{disableScrollLock:r}),C.current&&(C.current.scrollTop=0)},R=kr(()=>{const Y=YU(t)||F().body;i.add(E(),Y),C.current&&D()}),A=b.useCallback(()=>i.isTopModal(E()),[i]),G=kr(Y=>{m.current=Y,Y&&(h&&A()?D():C.current&&Od(C.current,T))}),L=b.useCallback(()=>{i.remove(E(),T)},[T,i]);b.useEffect(()=>()=>{L()},[L]),b.useEffect(()=>{h?R():(!P||!n)&&L()},[h,L,P,n,R]);const O=Y=>re=>{var z;(z=Y.onKeyDown)==null||z.call(Y,re),!(re.key!=="Escape"||re.which===229||!A())&&(s||(re.stopPropagation(),u&&u(re,"escapeKeyDown")))},N=Y=>re=>{var z;(z=Y.onClick)==null||z.call(Y,re),re.target===re.currentTarget&&u&&u(re,"backdropClick")};return{getRootProps:(Y={})=>{const re=YM(e);delete re.onTransitionEnter,delete re.onTransitionExited;const z=I({},re,Y);return I({role:"presentation"},z,{onKeyDown:O(z),ref:v})},getBackdropProps:(Y={})=>{const re=Y;return I({"aria-hidden":!0},re,{onClick:N(re),open:h})},getTransitionProps:()=>{const Y=()=>{S(!1),o&&o()},re=()=>{S(!0),a&&a(),n&&L()};return{onEnter:Kg(Y,l==null?void 0:l.props.onEnter),onExited:Kg(re,l==null?void 0:l.props.onExited)}},rootRef:v,portalRef:G,isTopModal:A,exited:w,hasTransition:P}}function ZU(e){return at("MuiModal",e)}ot("MuiModal",["root","hidden","backdrop"]);const e4=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],t4=e=>{const{open:t,exited:s,classes:r}=e;return ct({root:["root",!t&&s&&"hidden"],backdrop:["backdrop"]},ZU,r)},s4=ve("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.open&&s.exited&&t.hidden]}})(({theme:e,ownerState:t})=>I({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),r4=ve(wD,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),SD=b.forwardRef(function(t,s){var r,i,n,o,a,l;const u=dt({name:"MuiModal",props:t}),{BackdropComponent:h=r4,BackdropProps:p,className:g,closeAfterTransition:m=!1,children:C,container:v,component:w,components:S={},componentsProps:P={},disableAutoFocus:T=!1,disableEnforceFocus:F=!1,disableEscapeKeyDown:E=!1,disablePortal:D=!1,disableRestoreFocus:R=!1,disableScrollLock:A=!1,hideBackdrop:G=!1,keepMounted:L=!1,onBackdropClick:O,open:N,slotProps:H,slots:$}=u,q=Te(u,e4),Y=I({},u,{closeAfterTransition:m,disableAutoFocus:T,disableEnforceFocus:F,disableEscapeKeyDown:E,disablePortal:D,disableRestoreFocus:R,disableScrollLock:A,hideBackdrop:G,keepMounted:L}),{getRootProps:re,getBackdropProps:z,getTransitionProps:ie,portalRef:ne,isTopModal:V,exited:K,hasTransition:fe}=JU(I({},Y,{rootRef:s})),ue=I({},Y,{exited:K}),me=t4(ue),ge={};if(C.props.tabIndex===void 0&&(ge.tabIndex="-1"),fe){const{onEnter:ke,onExited:Xe}=ie();ge.onEnter=ke,ge.onExited=Xe}const Be=(r=(i=$==null?void 0:$.root)!=null?i:S.Root)!=null?r:s4,Ie=(n=(o=$==null?void 0:$.backdrop)!=null?o:S.Backdrop)!=null?n:h,Ee=(a=H==null?void 0:H.root)!=null?a:P.root,et=(l=H==null?void 0:H.backdrop)!=null?l:P.backdrop,Ze=_i({elementType:Be,externalSlotProps:Ee,externalForwardedProps:q,getSlotProps:re,additionalProps:{ref:s,as:w},ownerState:ue,className:Ae(g,Ee==null?void 0:Ee.className,me==null?void 0:me.root,!ue.open&&ue.exited&&(me==null?void 0:me.hidden))}),Re=_i({elementType:Ie,externalSlotProps:et,additionalProps:p,getSlotProps:ke=>z(I({},ke,{onClick:Xe=>{O&&O(Xe),ke!=null&&ke.onClick&&ke.onClick(Xe)}})),className:Ae(et==null?void 0:et.className,p==null?void 0:p.className,me==null?void 0:me.backdrop),ownerState:ue});return!L&&!N&&(!fe||K)?null:U.jsx(gD,{ref:ne,container:v,disablePortal:D,children:U.jsxs(Be,I({},Ze,{children:[!G&&h?U.jsx(Ie,I({},Re)):null,U.jsx(qU,{disableEnforceFocus:F,disableAutoFocus:T,disableRestoreFocus:R,isEnabled:V,open:N,children:b.cloneElement(C,ge)})]}))})});function i4(e){return at("MuiDialog",e)}const zv=ot("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),xD=b.createContext({}),n4=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],o4=ve(wD,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),a4=e=>{const{classes:t,scroll:s,maxWidth:r,fullWidth:i,fullScreen:n}=e,o={root:["root"],container:["container",`scroll${ye(s)}`],paper:["paper",`paperScroll${ye(s)}`,`paperWidth${ye(String(r))}`,i&&"paperFullWidth",n&&"paperFullScreen"]};return ct(o,i4,t)},l4=ve(SD,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),c4=ve("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.container,t[`scroll${ye(s.scroll)}`]]}})(({ownerState:e})=>I({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),u4=ve(Hl,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.paper,t[`scrollPaper${ye(s.scroll)}`],t[`paperWidth${ye(String(s.maxWidth))}`],s.fullWidth&&t.paperFullWidth,s.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>I({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${zv.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${zv.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${zv.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Ove=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiDialog"}),i=Xf(),n={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":o,"aria-labelledby":a,BackdropComponent:l,BackdropProps:u,children:h,className:p,disableEscapeKeyDown:g=!1,fullScreen:m=!1,fullWidth:C=!1,maxWidth:v="sm",onBackdropClick:w,onClick:S,onClose:P,open:T,PaperComponent:F=Hl,PaperProps:E={},scroll:D="paper",TransitionComponent:R=yD,transitionDuration:A=n,TransitionProps:G}=r,L=Te(r,n4),O=I({},r,{disableEscapeKeyDown:g,fullScreen:m,fullWidth:C,maxWidth:v,scroll:D}),N=a4(O),H=b.useRef(),$=z=>{H.current=z.target===z.currentTarget},q=z=>{S&&S(z),H.current&&(H.current=null,w&&w(z),P&&P(z,"backdropClick"))},Y=uu(a),re=b.useMemo(()=>({titleId:Y}),[Y]);return U.jsx(l4,I({className:Ae(N.root,p),closeAfterTransition:!0,components:{Backdrop:o4},componentsProps:{backdrop:I({transitionDuration:A,as:l},u)},disableEscapeKeyDown:g,onClose:P,open:T,ref:s,onClick:q,ownerState:O},L,{children:U.jsx(R,I({appear:!0,in:T,timeout:A,role:"presentation"},G,{children:U.jsx(c4,{className:Ae(N.container),onMouseDown:$,ownerState:O,children:U.jsx(u4,I({as:F,elevation:24,role:"dialog","aria-describedby":o,"aria-labelledby":Y},E,{className:Ae(N.paper,E.className),ownerState:O,children:U.jsx(xD.Provider,{value:re,children:h})}))})}))}))});function d4(e){return at("MuiDialogActions",e)}ot("MuiDialogActions",["root","spacing"]);const h4=["className","disableSpacing"],p4=e=>{const{classes:t,disableSpacing:s}=e;return ct({root:["root",!s&&"spacing"]},d4,t)},g4=ve("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disableSpacing&&t.spacing]}})(({ownerState:e})=>I({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),Gve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:n=!1}=r,o=Te(r,h4),a=I({},r,{disableSpacing:n}),l=p4(a);return U.jsx(g4,I({className:Ae(l.root,i),ownerState:a,ref:s},o))});function f4(e){return at("MuiDialogContent",e)}ot("MuiDialogContent",["root","dividers"]);function m4(e){return at("MuiDialogTitle",e)}const C4=ot("MuiDialogTitle",["root"]),v4=["className","dividers"],y4=e=>{const{classes:t,dividers:s}=e;return ct({root:["root",s&&"dividers"]},f4,t)},w4=ve("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>I({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},t.dividers?{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}:{[`.${C4.root} + &`]:{paddingTop:0}})),Nve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiDialogContent"}),{className:i,dividers:n=!1}=r,o=Te(r,v4),a=I({},r,{dividers:n}),l=y4(a);return U.jsx(w4,I({className:Ae(l.root,i),ownerState:a,ref:s},o))});function b4(e){return at("MuiDialogContentText",e)}ot("MuiDialogContentText",["root"]);const S4=["children","className"],x4=e=>{const{classes:t}=e,r=ct({root:["root"]},b4,t);return I({},t,r)},R4=ve(Nn,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiDialogContentText",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiDialogContentText"}),{className:i}=r,n=Te(r,S4),o=x4(n);return U.jsx(R4,I({component:"p",variant:"body1",color:"text.secondary",ref:s,ownerState:n,className:Ae(o.root,i)},r,{classes:o}))}),P4=["className","id"],F4=e=>{const{classes:t}=e;return ct({root:["root"]},m4,t)},E4=ve(Nn,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:"16px 24px",flex:"0 0 auto"}),Vve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiDialogTitle"}),{className:i,id:n}=r,o=Te(r,P4),a=r,l=F4(a),{titleId:u=n}=b.useContext(xD);return U.jsx(E4,I({component:"h2",className:Ae(l.root,i),ownerState:a,ref:s,variant:"h6",id:n??u},o))}),pF=ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),T4=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],M4=e=>{const{classes:t,disableUnderline:s}=e,i=ct({root:["root",!s&&"underline"],input:["input"]},F$,t);return I({},t,i)},D4=ve(em,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[...Jf(e,t),!s.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var s;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",n=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",o=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return I({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,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:n}},[`&.${vi.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${vi.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(s=(e.vars||e).palette[t.color||"primary"])==null?void 0:s.main}`,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"},[`&.${vi.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vi.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})`:i}`,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(.${vi.disabled}, .${vi.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vi.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&I({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),A4=ve(tm,{name:"MuiFilledInput",slot:"Input",overridesResolver:Zf})(({theme:e,ownerState:t})=>I({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),Fb=b.forwardRef(function(t,s){var r,i,n,o;const a=dt({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:m,slots:C={},type:v="text"}=a,w=Te(a,T4),S=I({},a,{fullWidth:h,inputComponent:p,multiline:g,type:v}),P=M4(a),T={root:{ownerState:S},input:{ownerState:S}},F=m??u?Gr(T,m??u):T,E=(r=(i=C.root)!=null?i:l.Root)!=null?r:D4,D=(n=(o=C.input)!=null?o:l.Input)!=null?n:A4;return U.jsx(Pb,I({slots:{root:E,input:D},componentsProps:F,fullWidth:h,inputComponent:p,multiline:g,ref:s,type:v},w,{classes:P}))});Fb.muiName="Input";function I4(e){return at("MuiFormControl",e)}ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const k4=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],L4=e=>{const{classes:t,margin:s,fullWidth:r}=e,i={root:["root",s!=="none"&&`margin${ye(s)}`,r&&"fullWidth"]};return ct(i,I4,t)},O4=ve("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,t[`margin${ye(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>I({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),G4=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiFormControl"}),{children:i,className:n,color:o="primary",component:a="div",disabled:l=!1,error:u=!1,focused:h,fullWidth:p=!1,hiddenLabel:g=!1,margin:m="none",required:C=!1,size:v="medium",variant:w="outlined"}=r,S=Te(r,k4),P=I({},r,{color:o,component:a,disabled:l,error:u,fullWidth:p,hiddenLabel:g,margin:m,required:C,size:v,variant:w}),T=L4(P),[F,E]=b.useState(()=>{let H=!1;return i&&b.Children.forEach(i,$=>{if(!Id($,["Input","Select"]))return;const q=Id($,["Select"])?$.props.input:$;q&&y$(q.props)&&(H=!0)}),H}),[D,R]=b.useState(()=>{let H=!1;return i&&b.Children.forEach(i,$=>{Id($,["Input","Select"])&&(Xg($.props,!0)||Xg($.props.inputProps,!0))&&(H=!0)}),H}),[A,G]=b.useState(!1);l&&A&&G(!1);const L=h!==void 0&&!l?h:A;let O;const N=b.useMemo(()=>({adornedStart:F,setAdornedStart:E,color:o,disabled:l,error:u,filled:D,focused:L,fullWidth:p,hiddenLabel:g,size:v,onBlur:()=>{G(!1)},onEmpty:()=>{R(!1)},onFilled:()=>{R(!0)},onFocus:()=>{G(!0)},registerEffect:O,required:C,variant:w}),[F,o,l,u,D,L,p,g,O,C,v,w]);return U.jsx(Rb.Provider,{value:N,children:U.jsx(O4,I({as:a,ownerState:P,className:Ae(T.root,n),ref:s},S,{children:i}))})}),N4=q2({createStyledComponent:ve("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>dt({props:e,name:"MuiStack"})});function B4(e){return at("MuiFormControlLabel",e)}const Pd=ot("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),V4=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],H4=e=>{const{classes:t,disabled:s,labelPlacement:r,error:i,required:n}=e,o={root:["root",s&&"disabled",`labelPlacement${ye(r)}`,i&&"error",n&&"required"],label:["label",s&&"disabled"],asterisk:["asterisk",i&&"error"]};return ct(o,B4,t)},z4=ve("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${Pd.label}`]:t.label},t.root,t[`labelPlacement${ye(s.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>I({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Pd.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${Pd.label}`]:{[`&.${Pd.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),W4=ve("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Pd.error}`]:{color:(e.vars||e).palette.error.main}})),Hve=b.forwardRef(function(t,s){var r,i;const n=dt({props:t,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:l,disabled:u,disableTypography:h,label:p,labelPlacement:g="end",required:m,slotProps:C={}}=n,v=Te(n,V4),w=Do(),S=(r=u??l.props.disabled)!=null?r:w==null?void 0:w.disabled,P=m??l.props.required,T={disabled:S,required:P};["checked","name","onChange","value","inputRef"].forEach(G=>{typeof l.props[G]>"u"&&typeof n[G]<"u"&&(T[G]=n[G])});const F=Aa({props:n,muiFormControl:w,states:["error"]}),E=I({},n,{disabled:S,labelPlacement:g,required:P,error:F.error}),D=H4(E),R=(i=C.typography)!=null?i:a.typography;let A=p;return A!=null&&A.type!==Nn&&!h&&(A=U.jsx(Nn,I({component:"span"},R,{className:Ae(D.label,R==null?void 0:R.className),children:A}))),U.jsxs(z4,I({className:Ae(D.root,o),ownerState:E,ref:s},v,{children:[b.cloneElement(l,T),P?U.jsxs(N4,{display:"block",children:[A,U.jsxs(W4,{ownerState:E,"aria-hidden":!0,className:D.asterisk,children:[" ","*"]})]}):A]}))});function _4(e){return at("MuiFormGroup",e)}ot("MuiFormGroup",["root","row","error"]);const $4=["className","row"],U4=e=>{const{classes:t,row:s,error:r}=e;return ct({root:["root",s&&"row",r&&"error"]},_4,t)},j4=ve("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.row&&t.row]}})(({ownerState:e})=>I({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),K4=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiFormGroup"}),{className:i,row:n=!1}=r,o=Te(r,$4),a=Do(),l=Aa({props:r,muiFormControl:a,states:["error"]}),u=I({},r,{row:n,error:l.error}),h=U4(u);return U.jsx(j4,I({className:Ae(h.root,i),ownerState:u,ref:s},o))});function q4(e){return at("MuiFormHelperText",e)}const gF=ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var fF;const Y4=["children","className","component","disabled","error","filled","focused","margin","required","variant"],X4=e=>{const{classes:t,contained:s,size:r,disabled:i,error:n,filled:o,focused:a,required:l}=e,u={root:["root",i&&"disabled",n&&"error",r&&`size${ye(r)}`,s&&"contained",a&&"focused",o&&"filled",l&&"required"]};return ct(u,q4,t)},Q4=ve("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.size&&t[`size${ye(s.size)}`],s.contained&&t.contained,s.filled&&t.filled]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${gF.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${gF.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),J4=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiFormHelperText"}),{children:i,className:n,component:o="p"}=r,a=Te(r,Y4),l=Do(),u=Aa({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),h=I({},r,{component:o,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=X4(h);return U.jsx(Q4,I({as:o,ownerState:h,className:Ae(p.root,n),ref:s},a,{children:i===" "?fF||(fF=U.jsx("span",{className:"notranslate",children:"​"})):i}))});function Z4(e){return at("MuiFormLabel",e)}const Gd=ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),e5=["children","className","color","component","disabled","error","filled","focused","required"],t5=e=>{const{classes:t,color:s,focused:r,disabled:i,error:n,filled:o,required:a}=e,l={root:["root",`color${ye(s)}`,i&&"disabled",n&&"error",o&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",n&&"error"]};return ct(l,Z4,t)},s5=ve("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>I({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Gd.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Gd.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Gd.error}`]:{color:(e.vars||e).palette.error.main}})),r5=ve("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Gd.error}`]:{color:(e.vars||e).palette.error.main}})),i5=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiFormLabel"}),{children:i,className:n,component:o="label"}=r,a=Te(r,e5),l=Do(),u=Aa({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),h=I({},r,{color:u.color||"primary",component:o,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),p=t5(h);return U.jsxs(s5,I({as:o,ownerState:h,className:Ae(p.root,n),ref:s},a,{children:[i,u.required&&U.jsxs(r5,{ownerState:h,"aria-hidden":!0,className:p.asterisk,children:[" ","*"]})]}))}),n5=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ew(e){return`scale(${e}, ${e**2})`}const o5={entering:{opacity:1,transform:ew(1)},entered:{opacity:1,transform:"none"}},Wv=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),RD=b.forwardRef(function(t,s){const{addEndListener:r,appear:i=!0,children:n,easing:o,in:a,onEnter:l,onEntered:u,onEntering:h,onExit:p,onExited:g,onExiting:m,style:C,timeout:v="auto",TransitionComponent:w=Yn}=t,S=Te(t,n5),P=HM(),T=b.useRef(),F=Xf(),E=b.useRef(null),D=vs(E,xh(n),s),R=q=>Y=>{if(q){const re=E.current;Y===void 0?q(re):q(re,Y)}},A=R(h),G=R((q,Y)=>{rD(q);const{duration:re,delay:z,easing:ie}=qg({style:C,timeout:v,easing:o},{mode:"enter"});let ne;v==="auto"?(ne=F.transitions.getAutoHeightDuration(q.clientHeight),T.current=ne):ne=re,q.style.transition=[F.transitions.create("opacity",{duration:ne,delay:z}),F.transitions.create("transform",{duration:Wv?ne:ne*.666,delay:z,easing:ie})].join(","),l&&l(q,Y)}),L=R(u),O=R(m),N=R(q=>{const{duration:Y,delay:re,easing:z}=qg({style:C,timeout:v,easing:o},{mode:"exit"});let ie;v==="auto"?(ie=F.transitions.getAutoHeightDuration(q.clientHeight),T.current=ie):ie=Y,q.style.transition=[F.transitions.create("opacity",{duration:ie,delay:re}),F.transitions.create("transform",{duration:Wv?ie:ie*.666,delay:Wv?re:re||ie*.333,easing:z})].join(","),q.style.opacity=0,q.style.transform=ew(.75),p&&p(q)}),H=R(g),$=q=>{v==="auto"&&P.start(T.current||0,q),r&&r(E.current,q)};return U.jsx(w,I({appear:i,in:a,nodeRef:E,onEnter:G,onEntered:L,onEntering:A,onExit:N,onExited:H,onExiting:O,addEndListener:$,timeout:v==="auto"?null:v},S,{children:(q,Y)=>b.cloneElement(n,I({style:I({opacity:0,transform:ew(.75),visibility:q==="exited"&&!a?"hidden":void 0},o5[q],C,n.props.style),ref:D},Y))}))});RD.muiSupportAuto=!0;const a5=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],l5=e=>{const{classes:t,disableUnderline:s}=e,i=ct({root:["root",!s&&"underline"],input:["input"]},R$,t);return I({},t,i)},c5=ve(em,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[...Jf(e,t),!s.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),I({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${ha.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ha.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,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(.${ha.disabled}, .${ha.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${ha.disabled}:before`]:{borderBottomStyle:"dotted"}})}),u5=ve(tm,{name:"MuiInput",slot:"Input",overridesResolver:Zf})({}),Eb=b.forwardRef(function(t,s){var r,i,n,o;const a=dt({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:h,fullWidth:p=!1,inputComponent:g="input",multiline:m=!1,slotProps:C,slots:v={},type:w="text"}=a,S=Te(a,a5),P=l5(a),F={root:{ownerState:{disableUnderline:l}}},E=C??h?Gr(C??h,F):F,D=(r=(i=v.root)!=null?i:u.Root)!=null?r:c5,R=(n=(o=v.input)!=null?o:u.Input)!=null?n:u5;return U.jsx(Pb,I({slots:{root:D,input:R},slotProps:E,fullWidth:p,inputComponent:g,multiline:m,ref:s,type:w},S,{classes:P}))});Eb.muiName="Input";function d5(e){return at("MuiInputLabel",e)}ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const h5=["disableAnimation","margin","shrink","variant","className"],p5=e=>{const{classes:t,formControl:s,size:r,shrink:i,disableAnimation:n,variant:o,required:a}=e,l={root:["root",s&&"formControl",!n&&"animated",i&&"shrink",r&&r!=="normal"&&`size${ye(r)}`,o],asterisk:[a&&"asterisk"]},u=ct(l,d5,t);return I({},t,u)},g5=ve(i5,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${Gd.asterisk}`]:t.asterisk},t.root,s.formControl&&t.formControl,s.size==="small"&&t.sizeSmall,s.shrink&&t.shrink,!s.disableAnimation&&t.animated,s.focused&&t.focused,t[s.variant]]}})(({theme:e,ownerState:t})=>I({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&I({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&I({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&I({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),f5=b.forwardRef(function(t,s){const r=dt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:n,className:o}=r,a=Te(r,h5),l=Do();let u=n;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const h=Aa({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),p=I({},r,{disableAnimation:i,formControl:l,shrink:u,size:h.size,variant:h.variant,required:h.required,focused:h.focused}),g=p5(p);return U.jsx(g5,I({"data-shrink":u,ownerState:p,ref:s,className:Ae(g.root,o)},a,{classes:g}))});function m5(e){return at("MuiLink",e)}const C5=ot("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),PD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},v5=e=>PD[e]||e,y5=({theme:e,ownerState:t})=>{const s=v5(t.color),r=Vc(e,`palette.${s}`,!1)||t.color,i=Vc(e,`palette.${s}Channel`);return"vars"in e&&i?`rgba(${i} / 0.4)`:yt.alpha(r,.4)},w5=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],b5=e=>{const{classes:t,component:s,focusVisible:r,underline:i}=e,n={root:["root",`underline${ye(i)}`,s==="button"&&"button",r&&"focusVisible"]};return ct(n,m5,t)},S5=ve(Nn,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[`underline${ye(s.underline)}`],s.component==="button"&&t.button]}})(({theme:e,ownerState:t})=>I({},t.underline==="none"&&{textDecoration:"none"},t.underline==="hover"&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},t.underline==="always"&&I({textDecoration:"underline"},t.color!=="inherit"&&{textDecorationColor:y5({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),t.component==="button"&&{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"},[`&.${C5.focusVisible}`]:{outline:"auto"}})),zve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiLink"}),{className:i,color:n="primary",component:o="a",onBlur:a,onFocus:l,TypographyClasses:u,underline:h="always",variant:p="inherit",sx:g}=r,m=Te(r,w5),{isFocusVisibleRef:C,onBlur:v,onFocus:w,ref:S}=hb(),[P,T]=b.useState(!1),F=vs(s,S),E=G=>{v(G),C.current===!1&&T(!1),a&&a(G)},D=G=>{w(G),C.current===!0&&T(!0),l&&l(G)},R=I({},r,{color:n,component:o,focusVisible:P,underline:h,variant:p}),A=b5(R);return U.jsx(S5,I({color:n,className:Ae(A.root,i),classes:u,component:o,onBlur:E,onFocus:D,ref:F,ownerState:R,variant:p,sx:[...Object.keys(PD).includes(n)?[]:[{color:n}],...Array.isArray(g)?g:[g]]},m))}),Wn=b.createContext({});function x5(e){return at("MuiList",e)}ot("MuiList",["root","padding","dense","subheader"]);const R5=["children","className","component","dense","disablePadding","subheader"],P5=e=>{const{classes:t,disablePadding:s,dense:r,subheader:i}=e;return ct({root:["root",!s&&"padding",r&&"dense",i&&"subheader"]},x5,t)},F5=ve("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disablePadding&&t.padding,s.dense&&t.dense,s.subheader&&t.subheader]}})(({ownerState:e})=>I({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),E5=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiList"}),{children:i,className:n,component:o="ul",dense:a=!1,disablePadding:l=!1,subheader:u}=r,h=Te(r,R5),p=b.useMemo(()=>({dense:a}),[a]),g=I({},r,{component:o,dense:a,disablePadding:l}),m=P5(g);return U.jsx(Wn.Provider,{value:p,children:U.jsxs(F5,I({as:o,className:Ae(m.root,n),ref:s,ownerState:g},h,{children:[u,i]}))})});function T5(e){return at("MuiListItem",e)}const Pc=ot("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function M5(e){return at("MuiListItemButton",e)}const Fc=ot("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),D5=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],A5=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters]},I5=e=>{const{alignItems:t,classes:s,dense:r,disabled:i,disableGutters:n,divider:o,selected:a}=e,u=ct({root:["root",r&&"dense",!n&&"gutters",o&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},M5,s);return I({},s,u)},k5=ve(Cn,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:A5})(({theme:e,ownerState:t})=>I({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"}},[`&.${Fc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Fc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Fc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt.alpha(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})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Fc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Fc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Wve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:n=!1,component:o="div",children:a,dense:l=!1,disableGutters:u=!1,divider:h=!1,focusVisibleClassName:p,selected:g=!1,className:m}=r,C=Te(r,D5),v=b.useContext(Wn),w=b.useMemo(()=>({dense:l||v.dense||!1,alignItems:i,disableGutters:u}),[i,v.dense,l,u]),S=b.useRef(null);li(()=>{n&&S.current&&S.current.focus()},[n]);const P=I({},r,{alignItems:i,dense:w.dense,disableGutters:u,divider:h,selected:g}),T=I5(P),F=vs(S,s);return U.jsx(Wn.Provider,{value:w,children:U.jsx(k5,I({ref:F,href:C.href||C.to,component:(C.href||C.to)&&o==="div"?"button":o,focusVisibleClassName:Ae(T.focusVisible,p),ownerState:P,className:Ae(T.root,m)},C,{classes:T,children:a}))})});function L5(e){return at("MuiListItemSecondaryAction",e)}ot("MuiListItemSecondaryAction",["root","disableGutters"]);const O5=["className"],G5=e=>{const{disableGutters:t,classes:s}=e;return ct({root:["root",t&&"disableGutters"]},L5,s)},N5=ve("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.disableGutters&&t.disableGutters]}})(({ownerState:e})=>I({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),FD=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,n=Te(r,O5),o=b.useContext(Wn),a=I({},r,{disableGutters:o.disableGutters}),l=G5(a);return U.jsx(N5,I({className:Ae(l.root,i),ownerState:a,ref:s},n))});FD.muiName="ListItemSecondaryAction";const B5=["className"],V5=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],H5=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.alignItems==="flex-start"&&t.alignItemsFlexStart,s.divider&&t.divider,!s.disableGutters&&t.gutters,!s.disablePadding&&t.padding,s.button&&t.button,s.hasSecondaryAction&&t.secondaryAction]},z5=e=>{const{alignItems:t,button:s,classes:r,dense:i,disabled:n,disableGutters:o,disablePadding:a,divider:l,hasSecondaryAction:u,selected:h}=e;return ct({root:["root",i&&"dense",!o&&"gutters",!a&&"padding",l&&"divider",n&&"disabled",s&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",h&&"selected"],container:["container"]},T5,r)},W5=ve("div",{name:"MuiListItem",slot:"Root",overridesResolver:H5})(({theme:e,ownerState:t})=>I({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&I({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Fc.root}`]:{paddingRight:48}},{[`&.${Pc.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pc.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pc.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pc.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${Pc.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt.alpha(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})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),_5=ve("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),_ve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:n=!1,button:o=!1,children:a,className:l,component:u,components:h={},componentsProps:p={},ContainerComponent:g="li",ContainerProps:{className:m}={},dense:C=!1,disabled:v=!1,disableGutters:w=!1,disablePadding:S=!1,divider:P=!1,focusVisibleClassName:T,secondaryAction:F,selected:E=!1,slotProps:D={},slots:R={}}=r,A=Te(r.ContainerProps,B5),G=Te(r,V5),L=b.useContext(Wn),O=b.useMemo(()=>({dense:C||L.dense||!1,alignItems:i,disableGutters:w}),[i,L.dense,C,w]),N=b.useRef(null);li(()=>{n&&N.current&&N.current.focus()},[n]);const H=b.Children.toArray(a),$=H.length&&Id(H[H.length-1],["ListItemSecondaryAction"]),q=I({},r,{alignItems:i,autoFocus:n,button:o,dense:O.dense,disabled:v,disableGutters:w,disablePadding:S,divider:P,hasSecondaryAction:$,selected:E}),Y=z5(q),re=vs(N,s),z=R.root||h.Root||W5,ie=D.root||p.root||{},ne=I({className:Ae(Y.root,ie.className,l),disabled:v},G);let V=u||"li";return o&&(ne.component=u||"div",ne.focusVisibleClassName=Ae(Pc.focusVisible,T),V=Cn),$?(V=!ne.component&&!u?"div":V,g==="li"&&(V==="li"?V="div":ne.component==="li"&&(ne.component="div")),U.jsx(Wn.Provider,{value:O,children:U.jsxs(_5,I({as:g,className:Ae(Y.container,m),ref:re,ownerState:q},A,{children:[U.jsx(z,I({},ie,!zc(z)&&{as:V,ownerState:I({},q,ie.ownerState)},ne,{children:H})),H.pop()]}))})):U.jsx(Wn.Provider,{value:O,children:U.jsxs(z,I({},ie,{as:V,ref:re},!zc(z)&&{ownerState:I({},q,ie.ownerState)},ne,{children:[H,F&&U.jsx(FD,{children:F})]}))})}),mF=ot("MuiListItemIcon",["root","alignItemsFlexStart"]);function $5(e){return at("MuiListItemText",e)}const Qg=ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),U5=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],j5=e=>{const{classes:t,inset:s,primary:r,secondary:i,dense:n}=e;return ct({root:["root",s&&"inset",n&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},$5,t)},K5=ve("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${Qg.primary}`]:t.primary},{[`& .${Qg.secondary}`]:t.secondary},t.root,s.inset&&t.inset,s.primary&&s.secondary&&t.multiline,s.dense&&t.dense]}})(({ownerState:e})=>I({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),$ve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiListItemText"}),{children:i,className:n,disableTypography:o=!1,inset:a=!1,primary:l,primaryTypographyProps:u,secondary:h,secondaryTypographyProps:p}=r,g=Te(r,U5),{dense:m}=b.useContext(Wn);let C=l??i,v=h;const w=I({},r,{disableTypography:o,inset:a,primary:!!C,secondary:!!v,dense:m}),S=j5(w);return C!=null&&C.type!==Nn&&!o&&(C=U.jsx(Nn,I({variant:m?"body2":"body1",className:S.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:C}))),v!=null&&v.type!==Nn&&!o&&(v=U.jsx(Nn,I({variant:"body2",className:S.secondary,color:"text.secondary",display:"block"},p,{children:v}))),U.jsxs(K5,I({className:Ae(S.root,n),ownerState:w,ref:s},g,{children:[C,v]}))}),q5=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _v(e,t,s){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:s?null:e.firstChild}function CF(e,t,s){return e===t?s?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:s?null:e.lastChild}function ED(e,t){if(t===void 0)return!0;let s=e.innerText;return s===void 0&&(s=e.textContent),s=s.trim().toLowerCase(),s.length===0?!1:t.repeating?s[0]===t.keys[0]:s.indexOf(t.keys.join(""))===0}function ld(e,t,s,r,i,n){let o=!1,a=i(e,t,t?s:!1);for(;a;){if(a===e.firstChild){if(o)return!1;o=!0}const l=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!ED(a,n)||l)a=i(e,a,s);else return a.focus(),!0}return!1}const Y5=b.forwardRef(function(t,s){const{actions:r,autoFocus:i=!1,autoFocusItem:n=!1,children:o,className:a,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:h,variant:p="selectedMenu"}=t,g=Te(t,q5),m=b.useRef(null),C=b.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});li(()=>{i&&m.current.focus()},[i]),b.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(T,{direction:F})=>{const E=!m.current.style.width;if(T.clientHeight{const F=m.current,E=T.key,D=hr(F).activeElement;if(E==="ArrowDown")T.preventDefault(),ld(F,D,u,l,_v);else if(E==="ArrowUp")T.preventDefault(),ld(F,D,u,l,CF);else if(E==="Home")T.preventDefault(),ld(F,null,u,l,_v);else if(E==="End")T.preventDefault(),ld(F,null,u,l,CF);else if(E.length===1){const R=C.current,A=E.toLowerCase(),G=performance.now();R.keys.length>0&&(G-R.lastTime>500?(R.keys=[],R.repeating=!0,R.previousKeyMatched=!0):R.repeating&&A!==R.keys[0]&&(R.repeating=!1)),R.lastTime=G,R.keys.push(A);const L=D&&!R.repeating&&ED(D,R);R.previousKeyMatched&&(L||ld(F,D,!1,l,_v,R))?T.preventDefault():R.previousKeyMatched=!1}h&&h(T)},w=vs(m,s);let S=-1;b.Children.forEach(o,(T,F)=>{if(!b.isValidElement(T)){S===F&&(S+=1,S>=o.length&&(S=-1));return}T.props.disabled||(p==="selectedMenu"&&T.props.selected||S===-1)&&(S=F),S===F&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(S+=1,S>=o.length&&(S=-1))});const P=b.Children.map(o,(T,F)=>{if(F===S){const E={};return n&&(E.autoFocus=!0),T.props.tabIndex===void 0&&p==="selectedMenu"&&(E.tabIndex=0),b.cloneElement(T,E)}return T});return U.jsx(E5,I({role:"menu",ref:w,className:a,onKeyDown:v,tabIndex:i?0:-1},g,{children:P}))});function X5(e){return at("MuiPopover",e)}ot("MuiPopover",["root","paper"]);const Q5=["onEntering"],J5=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Z5=["slotProps"];function vF(e,t){let s=0;return typeof t=="number"?s=t:t==="center"?s=e.height/2:t==="bottom"&&(s=e.height),s}function yF(e,t){let s=0;return typeof t=="number"?s=t:t==="center"?s=e.width/2:t==="right"&&(s=e.width),s}function wF(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function $v(e){return typeof e=="function"?e():e}const e3=e=>{const{classes:t}=e;return ct({root:["root"],paper:["paper"]},X5,t)},t3=ve(SD,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TD=ve(Hl,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),s3=b.forwardRef(function(t,s){var r,i,n;const o=dt({props:t,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:h,anchorReference:p="anchorEl",children:g,className:m,container:C,elevation:v=8,marginThreshold:w=16,open:S,PaperProps:P={},slots:T,slotProps:F,transformOrigin:E={vertical:"top",horizontal:"left"},TransitionComponent:D=RD,transitionDuration:R="auto",TransitionProps:{onEntering:A}={},disableScrollLock:G=!1}=o,L=Te(o.TransitionProps,Q5),O=Te(o,J5),N=(r=F==null?void 0:F.paper)!=null?r:P,H=b.useRef(),$=vs(H,N.ref),q=I({},o,{anchorOrigin:u,anchorReference:p,elevation:v,marginThreshold:w,externalPaperSlotProps:N,transformOrigin:E,TransitionComponent:D,transitionDuration:R,TransitionProps:L}),Y=e3(q),re=b.useCallback(()=>{if(p==="anchorPosition")return h;const ke=$v(l),He=(ke&&ke.nodeType===1?ke:hr(H.current).body).getBoundingClientRect();return{top:He.top+vF(He,u.vertical),left:He.left+yF(He,u.horizontal)}},[l,u.horizontal,u.vertical,h,p]),z=b.useCallback(ke=>({vertical:vF(ke,E.vertical),horizontal:yF(ke,E.horizontal)}),[E.horizontal,E.vertical]),ie=b.useCallback(ke=>{const Xe={width:ke.offsetWidth,height:ke.offsetHeight},He=z(Xe);if(p==="none")return{top:null,left:null,transformOrigin:wF(He)};const Ve=re();let It=Ve.top-He.vertical,ut=Ve.left-He.horizontal;const Bt=It+Xe.height,wt=ut+Xe.width,ht=Un($v(l)),Wt=ht.innerHeight-w,Ot=ht.innerWidth-w;if(w!==null&&ItWt){const mt=Bt-Wt;It-=mt,He.vertical+=mt}if(w!==null&&utOt){const mt=wt-Ot;ut-=mt,He.horizontal+=mt}return{top:`${Math.round(It)}px`,left:`${Math.round(ut)}px`,transformOrigin:wF(He)}},[l,p,re,z,w]),[ne,V]=b.useState(S),K=b.useCallback(()=>{const ke=H.current;if(!ke)return;const Xe=ie(ke);Xe.top!==null&&(ke.style.top=Xe.top),Xe.left!==null&&(ke.style.left=Xe.left),ke.style.transformOrigin=Xe.transformOrigin,V(!0)},[ie]);b.useEffect(()=>(G&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[l,G,K]);const fe=(ke,Xe)=>{A&&A(ke,Xe),K()},ue=()=>{V(!1)};b.useEffect(()=>{S&&K()}),b.useImperativeHandle(a,()=>S?{updatePosition:()=>{K()}}:null,[S,K]),b.useEffect(()=>{if(!S)return;const ke=Sh(()=>{K()}),Xe=Un(l);return Xe.addEventListener("resize",ke),()=>{ke.clear(),Xe.removeEventListener("resize",ke)}},[l,S,K]);let me=R;R==="auto"&&!D.muiSupportAuto&&(me=void 0);const ge=C||(l?hr($v(l)).body:void 0),Be=(i=T==null?void 0:T.root)!=null?i:t3,Ie=(n=T==null?void 0:T.paper)!=null?n:TD,Ee=_i({elementType:Ie,externalSlotProps:I({},N,{style:ne?N.style:I({},N.style,{opacity:0})}),additionalProps:{elevation:v,ref:$},ownerState:q,className:Ae(Y.paper,N==null?void 0:N.className)}),et=_i({elementType:Be,externalSlotProps:(F==null?void 0:F.root)||{},externalForwardedProps:O,additionalProps:{ref:s,slotProps:{backdrop:{invisible:!0}},container:ge,open:S},ownerState:q,className:Ae(Y.root,m)}),{slotProps:Ze}=et,Re=Te(et,Z5);return U.jsx(Be,I({},Re,!zc(Be)&&{slotProps:Ze,disableScrollLock:G},{children:U.jsx(D,I({appear:!0,in:S,onEntering:fe,onExited:ue,timeout:me},L,{children:U.jsx(Ie,I({},Ee,{children:g}))}))}))});function r3(e){return at("MuiMenu",e)}ot("MuiMenu",["root","paper","list"]);const i3=["onEntering"],n3=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],o3={vertical:"top",horizontal:"right"},a3={vertical:"top",horizontal:"left"},l3=e=>{const{classes:t}=e;return ct({root:["root"],paper:["paper"],list:["list"]},r3,t)},c3=ve(s3,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),u3=ve(TD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),d3=ve(Y5,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),h3=b.forwardRef(function(t,s){var r,i;const n=dt({props:t,name:"MuiMenu"}),{autoFocus:o=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:h={},onClose:p,open:g,PaperProps:m={},PopoverClasses:C,transitionDuration:v="auto",TransitionProps:{onEntering:w}={},variant:S="selectedMenu",slots:P={},slotProps:T={}}=n,F=Te(n.TransitionProps,i3),E=Te(n,n3),D=fb(),R=I({},n,{autoFocus:o,disableAutoFocusItem:u,MenuListProps:h,onEntering:w,PaperProps:m,transitionDuration:v,TransitionProps:F,variant:S}),A=l3(R),G=o&&!u&&g,L=b.useRef(null),O=(z,ie)=>{L.current&&L.current.adjustStyleForScrollbar(z,{direction:D?"rtl":"ltr"}),w&&w(z,ie)},N=z=>{z.key==="Tab"&&(z.preventDefault(),p&&p(z,"tabKeyDown"))};let H=-1;b.Children.map(a,(z,ie)=>{b.isValidElement(z)&&(z.props.disabled||(S==="selectedMenu"&&z.props.selected||H===-1)&&(H=ie))});const $=(r=P.paper)!=null?r:u3,q=(i=T.paper)!=null?i:m,Y=_i({elementType:P.root,externalSlotProps:T.root,ownerState:R,className:[A.root,l]}),re=_i({elementType:$,externalSlotProps:q,ownerState:R,className:A.paper});return U.jsx(c3,I({onClose:p,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?o3:a3,slots:{paper:$,root:P.root},slotProps:{root:Y,paper:re},open:g,ref:s,transitionDuration:v,TransitionProps:I({onEntering:O},F),ownerState:R},E,{classes:C,children:U.jsx(d3,I({onKeyDown:N,actions:L,autoFocus:o&&(H===-1||u),autoFocusItem:G,variant:S},h,{className:Ae(A.list,h.className),children:a}))}))});function p3(e){return at("MuiMenuItem",e)}const cd=ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),g3=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],f3=(e,t)=>{const{ownerState:s}=e;return[t.root,s.dense&&t.dense,s.divider&&t.divider,!s.disableGutters&&t.gutters]},m3=e=>{const{disabled:t,dense:s,divider:r,disableGutters:i,selected:n,classes:o}=e,l=ct({root:["root",s&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",n&&"selected"]},p3,o);return I({},o,l)},C3=ve(Cn,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:f3})(({theme:e,ownerState:t})=>I({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${cd.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cd.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cd.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:yt.alpha(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})`:yt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cd.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cd.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pF.inset}`]:{marginLeft:52},[`& .${Qg.root}`]:{marginTop:0,marginBottom:0},[`& .${Qg.inset}`]:{paddingLeft:36},[`& .${mF.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&I({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mF.root} svg`]:{fontSize:"1.25rem"}}))),Uve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:n="li",dense:o=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:u,role:h="menuitem",tabIndex:p,className:g}=r,m=Te(r,g3),C=b.useContext(Wn),v=b.useMemo(()=>({dense:o||C.dense||!1,disableGutters:l}),[C.dense,o,l]),w=b.useRef(null);li(()=>{i&&w.current&&w.current.focus()},[i]);const S=I({},r,{dense:v.dense,divider:a,disableGutters:l}),P=m3(r),T=vs(w,s);let F;return r.disabled||(F=p!==void 0?p:-1),U.jsx(Wn.Provider,{value:v,children:U.jsx(C3,I({ref:T,role:h,tabIndex:F,component:n,focusVisibleClassName:Ae(P.focusVisible,u),className:Ae(P.root,g)},m,{ownerState:S,classes:P}))})});function v3(e){return at("MuiNativeSelect",e)}const Tb=ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),y3=["className","disabled","error","IconComponent","inputRef","variant"],w3=e=>{const{classes:t,variant:s,disabled:r,multiple:i,open:n,error:o}=e,a={select:["select",s,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${ye(s)}`,n&&"iconOpen",r&&"disabled"]};return ct(a,v3,t)},MD=({ownerState:e,theme:t})=>I({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":I({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${Tb.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),b3=ve("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:nr,overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.select,t[s.variant],s.error&&t.error,{[`&.${Tb.multiple}`]:t.multiple}]}})(MD),DD=({ownerState:e,theme:t})=>I({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Tb.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),S3=ve("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.icon,s.variant&&t[`icon${ye(s.variant)}`],s.open&&t.iconOpen]}})(DD),x3=b.forwardRef(function(t,s){const{className:r,disabled:i,error:n,IconComponent:o,inputRef:a,variant:l="standard"}=t,u=Te(t,y3),h=I({},t,{disabled:i,variant:l,error:n}),p=w3(h);return U.jsxs(b.Fragment,{children:[U.jsx(b3,I({ownerState:h,className:Ae(p.select,r),disabled:i,ref:a||s},u)),t.multiple?null:U.jsx(S3,{as:o,ownerState:h,className:p.icon})]})});var bF;const R3=["children","classes","className","label","notched"],P3=ve("fieldset",{shouldForwardProp:nr})({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%"}),F3=ve("legend",{shouldForwardProp:nr})(({ownerState:e,theme:t})=>I({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&I({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function E3(e){const{className:t,label:s,notched:r}=e,i=Te(e,R3),n=s!=null&&s!=="",o=I({},e,{notched:r,withLabel:n});return U.jsx(P3,I({"aria-hidden":!0,className:t,ownerState:o},i,{children:U.jsx(F3,{ownerState:o,children:n?U.jsx("span",{children:s}):bF||(bF=U.jsx("span",{className:"notranslate",children:"​"}))})}))}const T3=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],M3=e=>{const{classes:t}=e,r=ct({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},P$,t);return I({},t,r)},D3=ve(em,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Jf})(({theme:e,ownerState:t})=>{const s=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return I({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${kn.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:s}},[`&.${kn.focused} .${kn.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${kn.error} .${kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${kn.disabled} .${kn.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&I({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),A3=ve(E3,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),I3=ve(tm,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Zf})(({theme:e,ownerState:t})=>I({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),Mb=b.forwardRef(function(t,s){var r,i,n,o,a;const l=dt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:h=!1,inputComponent:p="input",label:g,multiline:m=!1,notched:C,slots:v={},type:w="text"}=l,S=Te(l,T3),P=M3(l),T=Do(),F=Aa({props:l,muiFormControl:T,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),E=I({},l,{color:F.color||"primary",disabled:F.disabled,error:F.error,focused:F.focused,formControl:T,fullWidth:h,hiddenLabel:F.hiddenLabel,multiline:m,size:F.size,type:w}),D=(r=(i=v.root)!=null?i:u.Root)!=null?r:D3,R=(n=(o=v.input)!=null?o:u.Input)!=null?n:I3;return U.jsx(Pb,I({slots:{root:D,input:R},renderSuffix:A=>U.jsx(A3,{ownerState:E,className:P.notchedOutline,label:g!=null&&g!==""&&F.required?a||(a=U.jsxs(b.Fragment,{children:[g," ","*"]})):g,notched:typeof C<"u"?C:!!(A.startAdornment||A.filled||A.focused)}),fullWidth:h,inputComponent:p,multiline:m,ref:s,type:w},S,{classes:I({},P,{notchedOutline:null})}))});Mb.muiName="Input";const k3=fr(U.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),L3=fr(U.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked"),O3=ve("span",{shouldForwardProp:nr})({position:"relative",display:"flex"}),G3=ve(k3)({transform:"scale(1)"}),N3=ve(L3)(({theme:e,ownerState:t})=>I({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function AD(e){const{checked:t=!1,classes:s={},fontSize:r}=e,i=I({},e,{checked:t});return U.jsxs(O3,{className:s.root,ownerState:i,children:[U.jsx(G3,{fontSize:r,className:s.background,ownerState:i}),U.jsx(N3,{fontSize:r,className:s.dot,ownerState:i})]})}const ID=b.createContext(void 0);function B3(){return b.useContext(ID)}function V3(e){return at("MuiRadio",e)}const SF=ot("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),H3=["checked","checkedIcon","color","icon","name","onChange","size","className"],z3=e=>{const{classes:t,color:s,size:r}=e,i={root:["root",`color${ye(s)}`,r!=="medium"&&`size${ye(r)}`]};return I({},t,ct(i,V3,t))},W3=ve(bD,{shouldForwardProp:e=>nr(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.size!=="medium"&&t[`size${ye(s.size)}`],t[`color${ye(s.color)}`]]}})(({theme:e,ownerState:t})=>I({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:yt.alpha(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${SF.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${SF.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function _3(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const xF=U.jsx(AD,{checked:!0}),RF=U.jsx(AD,{}),jve=b.forwardRef(function(t,s){var r,i;const n=dt({props:t,name:"MuiRadio"}),{checked:o,checkedIcon:a=xF,color:l="primary",icon:u=RF,name:h,onChange:p,size:g="medium",className:m}=n,C=Te(n,H3),v=I({},n,{color:l,size:g}),w=z3(v),S=B3();let P=o;const T=Kg(p,S&&S.onChange);let F=h;return S&&(typeof P>"u"&&(P=_3(S.value,n.value)),typeof F>"u"&&(F=S.name)),U.jsx(W3,I({type:"radio",icon:b.cloneElement(u,{fontSize:(r=RF.props.fontSize)!=null?r:g}),checkedIcon:b.cloneElement(a,{fontSize:(i=xF.props.fontSize)!=null?i:g}),ownerState:v,classes:w,name:F,checked:P,onChange:T,ref:s,className:Ae(w.root,m)},C))});function $3(e){return at("MuiRadioGroup",e)}ot("MuiRadioGroup",["root","row","error"]);const U3=["actions","children","className","defaultValue","name","onChange","value"],j3=e=>{const{classes:t,row:s,error:r}=e;return ct({root:["root",s&&"row",r&&"error"]},$3,t)},Kve=b.forwardRef(function(t,s){const{actions:r,children:i,className:n,defaultValue:o,name:a,onChange:l,value:u}=t,h=Te(t,U3),p=b.useRef(null),g=j3(t),[m,C]=va({controlled:u,default:o,name:"RadioGroup"});b.useImperativeHandle(r,()=>({focus:()=>{let P=p.current.querySelector("input:not(:disabled):checked");P||(P=p.current.querySelector("input:not(:disabled)")),P&&P.focus()}}),[]);const v=vs(s,p),w=uu(a),S=b.useMemo(()=>({name:w,onChange(P){C(P.target.value),l&&l(P,P.target.value)},value:m}),[w,l,C,m]);return U.jsx(ID.Provider,{value:S,children:U.jsx(K4,I({role:"radiogroup",ref:v,className:Ae(g.root,n)},h,{children:i}))})});function K3(e){return at("MuiSelect",e)}const ud=ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var PF;const q3=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Y3=ve("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`&.${ud.select}`]:t.select},{[`&.${ud.select}`]:t[s.variant]},{[`&.${ud.error}`]:t.error},{[`&.${ud.multiple}`]:t.multiple}]}})(MD,{[`&.${ud.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),X3=ve("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.icon,s.variant&&t[`icon${ye(s.variant)}`],s.open&&t.iconOpen]}})(DD),Q3=ve("input",{shouldForwardProp:e=>BM(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function FF(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function J3(e){return e==null||typeof e=="string"&&!e.trim()}const Z3=e=>{const{classes:t,variant:s,disabled:r,multiple:i,open:n,error:o}=e,a={select:["select",s,r&&"disabled",i&&"multiple",o&&"error"],icon:["icon",`icon${ye(s)}`,n&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ct(a,K3,t)},ej=b.forwardRef(function(t,s){var r;const{"aria-describedby":i,"aria-label":n,autoFocus:o,autoWidth:a,children:l,className:u,defaultOpen:h,defaultValue:p,disabled:g,displayEmpty:m,error:C=!1,IconComponent:v,inputRef:w,labelId:S,MenuProps:P={},multiple:T,name:F,onBlur:E,onChange:D,onClose:R,onFocus:A,onOpen:G,open:L,readOnly:O,renderValue:N,SelectDisplayProps:H={},tabIndex:$,value:q,variant:Y="standard"}=t,re=Te(t,q3),[z,ie]=va({controlled:q,default:p,name:"Select"}),[ne,V]=va({controlled:L,default:h,name:"Select"}),K=b.useRef(null),fe=b.useRef(null),[ue,me]=b.useState(null),{current:ge}=b.useRef(L!=null),[Be,Ie]=b.useState(),Ee=vs(s,w),et=b.useCallback(Ue=>{fe.current=Ue,Ue&&me(Ue)},[]),Ze=ue==null?void 0:ue.parentNode;b.useImperativeHandle(Ee,()=>({focus:()=>{fe.current.focus()},node:K.current,value:z}),[z]),b.useEffect(()=>{h&&ne&&ue&&!ge&&(Ie(a?null:Ze.clientWidth),fe.current.focus())},[ue,a]),b.useEffect(()=>{o&&fe.current.focus()},[o]),b.useEffect(()=>{if(!S)return;const Ue=hr(fe.current).getElementById(S);if(Ue){const Pt=()=>{getSelection().isCollapsed&&fe.current.focus()};return Ue.addEventListener("click",Pt),()=>{Ue.removeEventListener("click",Pt)}}},[S]);const Re=(Ue,Pt)=>{Ue?G&&G(Pt):R&&R(Pt),ge||(Ie(a?null:Ze.clientWidth),V(Ue))},ke=Ue=>{Ue.button===0&&(Ue.preventDefault(),fe.current.focus(),Re(!0,Ue))},Xe=Ue=>{Re(!1,Ue)},He=b.Children.toArray(l),Ve=Ue=>{const Pt=He.find(De=>De.props.value===Ue.target.value);Pt!==void 0&&(ie(Pt.props.value),D&&D(Ue,Pt))},It=Ue=>Pt=>{let De;if(Pt.currentTarget.hasAttribute("tabindex")){if(T){De=Array.isArray(z)?z.slice():[];const je=z.indexOf(Ue.props.value);je===-1?De.push(Ue.props.value):De.splice(je,1)}else De=Ue.props.value;if(Ue.props.onClick&&Ue.props.onClick(Pt),z!==De&&(ie(De),D)){const je=Pt.nativeEvent||Pt,Et=new je.constructor(je.type,je);Object.defineProperty(Et,"target",{writable:!0,value:{value:De,name:F}}),D(Et,Ue)}T||Re(!1,Pt)}},ut=Ue=>{O||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ue.key)!==-1&&(Ue.preventDefault(),Re(!0,Ue))},Bt=ue!==null&&ne,wt=Ue=>{!Bt&&E&&(Object.defineProperty(Ue,"target",{writable:!0,value:{value:z,name:F}}),E(Ue))};delete re["aria-invalid"];let ht,Wt;const Ot=[];let mt=!1;(Xg({value:z})||m)&&(N?ht=N(z):mt=!0);const Qt=He.map(Ue=>{if(!b.isValidElement(Ue))return null;let Pt;if(T){if(!Array.isArray(z))throw new Error(bo(2));Pt=z.some(De=>FF(De,Ue.props.value)),Pt&&mt&&Ot.push(Ue.props.children)}else Pt=FF(z,Ue.props.value),Pt&&mt&&(Wt=Ue.props.children);return b.cloneElement(Ue,{"aria-selected":Pt?"true":"false",onClick:It(Ue),onKeyUp:De=>{De.key===" "&&De.preventDefault(),Ue.props.onKeyUp&&Ue.props.onKeyUp(De)},role:"option",selected:Pt,value:void 0,"data-value":Ue.props.value})});mt&&(T?Ot.length===0?ht=null:ht=Ot.reduce((Ue,Pt,De)=>(Ue.push(Pt),De{const{classes:t}=e;return t},Db={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>nr(e)&&e!=="variant",slot:"Root"},ij=ve(Eb,Db)(""),nj=ve(Mb,Db)(""),oj=ve(Fb,Db)(""),kD=b.forwardRef(function(t,s){const r=dt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:n,classes:o={},className:a,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:h=vD,id:p,input:g,inputProps:m,label:C,labelId:v,MenuProps:w,multiple:S=!1,native:P=!1,onClose:T,onOpen:F,open:E,renderValue:D,SelectDisplayProps:R,variant:A="outlined"}=r,G=Te(r,tj),L=P?x3:ej,O=Do(),N=Aa({props:r,muiFormControl:O,states:["variant","error"]}),H=N.variant||A,$=I({},r,{variant:H,classes:o}),q=rj($),Y=Te(q,sj),re=g||{standard:U.jsx(ij,{ownerState:$}),outlined:U.jsx(nj,{label:C,ownerState:$}),filled:U.jsx(oj,{ownerState:$})}[H],z=vs(s,xh(re));return U.jsx(b.Fragment,{children:b.cloneElement(re,I({inputComponent:L,inputProps:I({children:n,error:N.error,IconComponent:h,variant:H,type:void 0,multiple:S},P?{id:p}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:v,MenuProps:w,onClose:T,onOpen:F,open:E,renderValue:D,SelectDisplayProps:I({id:p},R)},m,{classes:m?Gr(Y,m.classes):Y},g?g.props.inputProps:{})},(S&&P||u)&&H==="outlined"?{notched:!0}:{},{ref:z,className:Ae(re.props.className,a,q.root)},!g&&{variant:H},G))})});kD.muiName="Select";function aj(e){return at("MuiSkeleton",e)}ot("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const lj=["animation","className","component","height","style","variant","width"];let Jg=e=>e,EF,TF,MF,DF;const cj=e=>{const{classes:t,variant:s,animation:r,hasChildren:i,width:n,height:o}=e;return ct({root:["root",s,r,i&&"withChildren",i&&!n&&"fitContent",i&&!o&&"heightAuto"]},aj,t)},uj=Ma(EF||(EF=Jg` 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } `)),dj=Ma(TF||(TF=Jg` 0% { transform: translateX(-100%); } 50% { /* +0.5s of delay between each loop */ transform: translateX(100%); } 100% { transform: translateX(100%); } `)),hj=ve("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,t[s.variant],s.animation!==!1&&t[s.animation],s.hasChildren&&t.withChildren,s.hasChildren&&!s.width&&t.fitContent,s.hasChildren&&!s.height&&t.heightAuto]}})(({theme:e,ownerState:t})=>{const s=qz(e.shape.borderRadius)||"px",r=Yz(e.shape.borderRadius);return I({display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:w2(e.palette.text.primary,e.palette.mode==="light"?.11:.13),height:"1.2em"},t.variant==="text"&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${r}${s}/${Math.round(r/.6*10)/10}${s}`,"&:empty:before":{content:'"\\00a0"'}},t.variant==="circular"&&{borderRadius:"50%"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.hasChildren&&{"& > *":{visibility:"hidden"}},t.hasChildren&&!t.width&&{maxWidth:"fit-content"},t.hasChildren&&!t.height&&{height:"auto"})},({ownerState:e})=>e.animation==="pulse"&&Bc(MF||(MF=Jg` animation: ${0} 2s ease-in-out 0.5s infinite; `),uj),({ownerState:e,theme:t})=>e.animation==="wave"&&Bc(DF||(DF=Jg` position: relative; overflow: hidden; /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ -webkit-mask-image: -webkit-radial-gradient(white, black); &::after { animation: ${0} 2s linear 0.5s infinite; background: linear-gradient( 90deg, transparent, ${0}, transparent ); content: ''; position: absolute; transform: translateX(-100%); /* Avoid flash during server-side hydration */ bottom: 0; left: 0; right: 0; top: 0; } `),dj,(t.vars||t).palette.action.hover)),qve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:n,component:o="span",height:a,style:l,variant:u="text",width:h}=r,p=Te(r,lj),g=I({},r,{animation:i,component:o,variant:u,hasChildren:!!p.children}),m=cj(g);return U.jsx(hj,I({as:o,ref:s,className:Ae(m.root,n),ownerState:g},p,{style:I({width:h,height:a},l)}))});function pj(e){return at("MuiTab",e)}const ta=ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),gj=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],fj=e=>{const{classes:t,textColor:s,fullWidth:r,wrapped:i,icon:n,label:o,selected:a,disabled:l}=e,u={root:["root",n&&o&&"labelIcon",`textColor${ye(s)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return ct(u,pj,t)},mj=ve(Cn,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.label&&s.icon&&t.labelIcon,t[`textColor${ye(s.textColor)}`],s.fullWidth&&t.fullWidth,s.wrapped&&t.wrapped,{[`& .${ta.iconWrapper}`]:t.iconWrapper}]}})(({theme:e,ownerState:t})=>I({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${ta.iconWrapper}`]:I({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${ta.selected}`]:{opacity:1},[`&.${ta.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ta.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${ta.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${ta.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${ta.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Yve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTab"}),{className:i,disabled:n=!1,disableFocusRipple:o=!1,fullWidth:a,icon:l,iconPosition:u="top",indicator:h,label:p,onChange:g,onClick:m,onFocus:C,selected:v,selectionFollowsFocus:w,textColor:S="inherit",value:P,wrapped:T=!1}=r,F=Te(r,gj),E=I({},r,{disabled:n,disableFocusRipple:o,selected:v,icon:!!l,iconPosition:u,label:!!p,fullWidth:a,textColor:S,wrapped:T}),D=fj(E),R=l&&p&&b.isValidElement(l)?b.cloneElement(l,{className:Ae(D.iconWrapper,l.props.className)}):l,A=L=>{!v&&g&&g(L,P),m&&m(L)},G=L=>{w&&!v&&g&&g(L,P),C&&C(L)};return U.jsxs(mj,I({focusRipple:!o,className:Ae(D.root,i),ref:s,role:"tab","aria-selected":v,disabled:n,onClick:A,onFocus:G,ownerState:E,tabIndex:v?0:-1},F,{children:[u==="top"||u==="start"?U.jsxs(b.Fragment,{children:[R,p]}):U.jsxs(b.Fragment,{children:[p,R]}),h]}))});function Cj(e){return at("MuiToolbar",e)}ot("MuiToolbar",["root","gutters","regular","dense"]);const vj=["className","component","disableGutters","variant"],yj=e=>{const{classes:t,disableGutters:s,variant:r}=e;return ct({root:["root",!s&&"gutters",r]},Cj,t)},wj=ve("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,!s.disableGutters&&t.gutters,t[s.variant]]}})(({theme:e,ownerState:t})=>I({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Xve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiToolbar"}),{className:i,component:n="div",disableGutters:o=!1,variant:a="regular"}=r,l=Te(r,vj),u=I({},r,{component:n,disableGutters:o,variant:a}),h=yj(u);return U.jsx(wj,I({as:n,className:Ae(h.root,i),ref:s,ownerState:u},l))}),bj=fr(U.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Sj=fr(U.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function xj(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Rj(e,t,s,r={},i=()=>{}){const{ease:n=xj,duration:o=300}=r;let a=null;const l=t[e];let u=!1;const h=()=>{u=!0},p=g=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=g);const m=Math.min(1,(g-a)/o);if(t[e]=n(m)*(s-l)+l,m>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(p)};return l===s?(i(new Error("Element already at target position")),h):(requestAnimationFrame(p),h)}const Pj=["onChange"],Fj={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Ej(e){const{onChange:t}=e,s=Te(e,Pj),r=b.useRef(),i=b.useRef(null),n=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return li(()=>{const o=Sh(()=>{const l=r.current;n(),l!==r.current&&t(r.current)}),a=Un(i.current);return a.addEventListener("resize",o),()=>{o.clear(),a.removeEventListener("resize",o)}},[t]),b.useEffect(()=>{n(),t(r.current)},[t]),U.jsx("div",I({style:Fj},s,{ref:i}))}function Tj(e){return at("MuiTabScrollButton",e)}const Mj=ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Dj=["className","slots","slotProps","direction","orientation","disabled"],Aj=e=>{const{classes:t,orientation:s,disabled:r}=e;return ct({root:["root",s,r&&"disabled"]},Tj,t)},Ij=ve(Cn,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.root,s.orientation&&t[s.orientation]]}})(({ownerState:e})=>I({width:40,flexShrink:0,opacity:.8,[`&.${Mj.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),kj=b.forwardRef(function(t,s){var r,i;const n=dt({props:t,name:"MuiTabScrollButton"}),{className:o,slots:a={},slotProps:l={},direction:u}=n,h=Te(n,Dj),p=fb(),g=I({isRtl:p},n),m=Aj(g),C=(r=a.StartScrollButtonIcon)!=null?r:bj,v=(i=a.EndScrollButtonIcon)!=null?i:Sj,w=_i({elementType:C,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),S=_i({elementType:v,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return U.jsx(Ij,I({component:"div",className:Ae(m.root,o),ref:s,role:null,ownerState:g,tabIndex:null},h,{children:u==="left"?U.jsx(C,I({},w)):U.jsx(v,I({},S))}))});function Lj(e){return at("MuiTabs",e)}const Uv=ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Oj=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],AF=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,IF=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,rg=(e,t,s)=>{let r=!1,i=s(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const n=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||n)i=s(e,i);else{i.focus();return}}},Gj=e=>{const{vertical:t,fixed:s,hideScrollbar:r,scrollableX:i,scrollableY:n,centered:o,scrollButtonsHideMobile:a,classes:l}=e;return ct({root:["root",t&&"vertical"],scroller:["scroller",s&&"fixed",r&&"hideScrollbar",i&&"scrollableX",n&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",o&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},Lj,l)},Nj=ve("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[{[`& .${Uv.scrollButtons}`]:t.scrollButtons},{[`& .${Uv.scrollButtons}`]:s.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,s.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>I({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${Uv.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),Bj=ve("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.scroller,s.fixed&&t.fixed,s.hideScrollbar&&t.hideScrollbar,s.scrollableX&&t.scrollableX,s.scrollableY&&t.scrollableY]}})(({ownerState:e})=>I({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),Vj=ve("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:s}=e;return[t.flexContainer,s.vertical&&t.flexContainerVertical,s.centered&&t.centered]}})(({ownerState:e})=>I({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),Hj=ve("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>I({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),zj=ve(Ej)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),kF={},Qve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTabs"}),i=Xf(),n=fb(),{"aria-label":o,"aria-labelledby":a,action:l,centered:u=!1,children:h,className:p,component:g="div",allowScrollButtonsMobile:m=!1,indicatorColor:C="primary",onChange:v,orientation:w="horizontal",ScrollButtonComponent:S=kj,scrollButtons:P="auto",selectionFollowsFocus:T,slots:F={},slotProps:E={},TabIndicatorProps:D={},TabScrollButtonProps:R={},textColor:A="primary",value:G,variant:L="standard",visibleScrollbar:O=!1}=r,N=Te(r,Oj),H=L==="scrollable",$=w==="vertical",q=$?"scrollTop":"scrollLeft",Y=$?"top":"left",re=$?"bottom":"right",z=$?"clientHeight":"clientWidth",ie=$?"height":"width",ne=I({},r,{component:g,allowScrollButtonsMobile:m,indicatorColor:C,orientation:w,vertical:$,scrollButtons:P,textColor:A,variant:L,visibleScrollbar:O,fixed:!H,hideScrollbar:H&&!O,scrollableX:H&&!$,scrollableY:H&&$,centered:u&&!H,scrollButtonsHideMobile:!m}),V=Gj(ne),K=_i({elementType:F.StartScrollButtonIcon,externalSlotProps:E.startScrollButtonIcon,ownerState:ne}),fe=_i({elementType:F.EndScrollButtonIcon,externalSlotProps:E.endScrollButtonIcon,ownerState:ne}),[ue,me]=b.useState(!1),[ge,Be]=b.useState(kF),[Ie,Ee]=b.useState(!1),[et,Ze]=b.useState(!1),[Re,ke]=b.useState(!1),[Xe,He]=b.useState({overflow:"hidden",scrollbarWidth:0}),Ve=new Map,It=b.useRef(null),ut=b.useRef(null),Bt=()=>{const De=It.current;let je;if(De){const Mt=De.getBoundingClientRect();je={clientWidth:De.clientWidth,scrollLeft:De.scrollLeft,scrollTop:De.scrollTop,scrollLeftNormalized:P2(De,n?"rtl":"ltr"),scrollWidth:De.scrollWidth,top:Mt.top,bottom:Mt.bottom,left:Mt.left,right:Mt.right}}let Et;if(De&&G!==!1){const Mt=ut.current.children;if(Mt.length>0){const Dt=Mt[Ve.get(G)];Et=Dt?Dt.getBoundingClientRect():null}}return{tabsMeta:je,tabMeta:Et}},wt=kr(()=>{const{tabsMeta:De,tabMeta:je}=Bt();let Et=0,Mt;if($)Mt="top",je&&De&&(Et=je.top-De.top+De.scrollTop);else if(Mt=n?"right":"left",je&&De){const $t=n?De.scrollLeftNormalized+De.clientWidth-De.scrollWidth:De.scrollLeft;Et=(n?-1:1)*(je[Mt]-De[Mt]+$t)}const Dt={[Mt]:Et,[ie]:je?je[ie]:0};if(isNaN(ge[Mt])||isNaN(ge[ie]))Be(Dt);else{const $t=Math.abs(ge[Mt]-Dt[Mt]),Ut=Math.abs(ge[ie]-Dt[ie]);($t>=1||Ut>=1)&&Be(Dt)}}),ht=(De,{animation:je=!0}={})=>{je?Rj(q,It.current,De,{duration:i.transitions.duration.standard}):It.current[q]=De},Wt=De=>{let je=It.current[q];$?je+=De:(je+=De*(n?-1:1),je*=n&&KM()==="reverse"?-1:1),ht(je)},Ot=()=>{const De=It.current[z];let je=0;const Et=Array.from(ut.current.children);for(let Mt=0;MtDe){Mt===0&&(je=De);break}je+=Dt[z]}return je},mt=()=>{Wt(-1*Ot())},Qt=()=>{Wt(Ot())},us=b.useCallback(De=>{He({overflow:null,scrollbarWidth:De})},[]),ts=()=>{const De={};De.scrollbarSizeListener=H?U.jsx(zj,{onChange:us,className:Ae(V.scrollableX,V.hideScrollbar)}):null;const Et=H&&(P==="auto"&&(Ie||et)||P===!0);return De.scrollButtonStart=Et?U.jsx(S,I({slots:{StartScrollButtonIcon:F.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:K},orientation:w,direction:n?"right":"left",onClick:mt,disabled:!Ie},R,{className:Ae(V.scrollButtons,R.className)})):null,De.scrollButtonEnd=Et?U.jsx(S,I({slots:{EndScrollButtonIcon:F.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:fe},orientation:w,direction:n?"left":"right",onClick:Qt,disabled:!et},R,{className:Ae(V.scrollButtons,R.className)})):null,De},Ge=kr(De=>{const{tabsMeta:je,tabMeta:Et}=Bt();if(!(!Et||!je)){if(Et[Y]je[re]){const Mt=je[q]+(Et[re]-je[re]);ht(Mt,{animation:De})}}}),Se=kr(()=>{H&&P!==!1&&ke(!Re)});b.useEffect(()=>{const De=Sh(()=>{It.current&&wt()});let je;const Et=$t=>{$t.forEach(Ut=>{Ut.removedNodes.forEach(Ps=>{var Ls;(Ls=je)==null||Ls.unobserve(Ps)}),Ut.addedNodes.forEach(Ps=>{var Ls;(Ls=je)==null||Ls.observe(Ps)})}),De(),Se()},Mt=Un(It.current);Mt.addEventListener("resize",De);let Dt;return typeof ResizeObserver<"u"&&(je=new ResizeObserver(De),Array.from(ut.current.children).forEach($t=>{je.observe($t)})),typeof MutationObserver<"u"&&(Dt=new MutationObserver(Et),Dt.observe(ut.current,{childList:!0})),()=>{var $t,Ut;De.clear(),Mt.removeEventListener("resize",De),($t=Dt)==null||$t.disconnect(),(Ut=je)==null||Ut.disconnect()}},[wt,Se]),b.useEffect(()=>{const De=Array.from(ut.current.children),je=De.length;if(typeof IntersectionObserver<"u"&&je>0&&H&&P!==!1){const Et=De[0],Mt=De[je-1],Dt={root:It.current,threshold:.99},$t=Wr=>{Ee(!Wr[0].isIntersecting)},Ut=new IntersectionObserver($t,Dt);Ut.observe(Et);const Ps=Wr=>{Ze(!Wr[0].isIntersecting)},Ls=new IntersectionObserver(Ps,Dt);return Ls.observe(Mt),()=>{Ut.disconnect(),Ls.disconnect()}}},[H,P,Re,h==null?void 0:h.length]),b.useEffect(()=>{me(!0)},[]),b.useEffect(()=>{wt()}),b.useEffect(()=>{Ge(kF!==ge)},[Ge,ge]),b.useImperativeHandle(l,()=>({updateIndicator:wt,updateScrollButtons:Se}),[wt,Se]);const Vt=U.jsx(Hj,I({},D,{className:Ae(V.indicator,D.className),ownerState:ne,style:I({},ge,D.style)}));let ls=0;const Qs=b.Children.map(h,De=>{if(!b.isValidElement(De))return null;const je=De.props.value===void 0?ls:De.props.value;Ve.set(je,ls);const Et=je===G;return ls+=1,b.cloneElement(De,I({fullWidth:L==="fullWidth",indicator:Et&&!ue&&Vt,selected:Et,selectionFollowsFocus:T,onChange:v,textColor:A,value:je},ls===1&&G===!1&&!De.props.tabIndex?{tabIndex:0}:{}))}),Ue=De=>{const je=ut.current,Et=hr(je).activeElement;if(Et.getAttribute("role")!=="tab")return;let Dt=w==="horizontal"?"ArrowLeft":"ArrowUp",$t=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&n&&(Dt="ArrowRight",$t="ArrowLeft"),De.key){case Dt:De.preventDefault(),rg(je,Et,IF);break;case $t:De.preventDefault(),rg(je,Et,AF);break;case"Home":De.preventDefault(),rg(je,null,AF);break;case"End":De.preventDefault(),rg(je,null,IF);break}},Pt=ts();return U.jsxs(Nj,I({className:Ae(V.root,p),ownerState:ne,ref:s,as:g},N,{children:[Pt.scrollButtonStart,Pt.scrollbarSizeListener,U.jsxs(Bj,{className:V.scroller,ownerState:ne,style:{overflow:Xe.overflow,[$?`margin${n?"Left":"Right"}`:"marginBottom"]:O?void 0:-Xe.scrollbarWidth},ref:It,children:[U.jsx(Vj,{"aria-label":o,"aria-labelledby":a,"aria-orientation":w==="vertical"?"vertical":null,className:V.flexContainer,ownerState:ne,onKeyDown:Ue,ref:ut,role:"tablist",children:Qs}),ue&&Vt]}),Pt.scrollButtonEnd]}))});function Wj(e){return at("MuiTextField",e)}ot("MuiTextField",["root"]);const _j=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],$j={standard:Eb,filled:Fb,outlined:Mb},Uj=e=>{const{classes:t}=e;return ct({root:["root"]},Wj,t)},jj=ve(G4,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Jve=b.forwardRef(function(t,s){const r=dt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:n=!1,children:o,className:a,color:l="primary",defaultValue:u,disabled:h=!1,error:p=!1,FormHelperTextProps:g,fullWidth:m=!1,helperText:C,id:v,InputLabelProps:w,inputProps:S,InputProps:P,inputRef:T,label:F,maxRows:E,minRows:D,multiline:R=!1,name:A,onBlur:G,onChange:L,onFocus:O,placeholder:N,required:H=!1,rows:$,select:q=!1,SelectProps:Y,type:re,value:z,variant:ie="outlined"}=r,ne=Te(r,_j),V=I({},r,{autoFocus:n,color:l,disabled:h,error:p,fullWidth:m,multiline:R,required:H,select:q,variant:ie}),K=Uj(V),fe={};ie==="outlined"&&(w&&typeof w.shrink<"u"&&(fe.notched=w.shrink),fe.label=F),q&&((!Y||!Y.native)&&(fe.id=void 0),fe["aria-describedby"]=void 0);const ue=uu(v),me=C&&ue?`${ue}-helper-text`:void 0,ge=F&&ue?`${ue}-label`:void 0,Be=$j[ie],Ie=U.jsx(Be,I({"aria-describedby":me,autoComplete:i,autoFocus:n,defaultValue:u,fullWidth:m,multiline:R,name:A,rows:$,maxRows:E,minRows:D,type:re,value:z,id:ue,inputRef:T,onBlur:G,onChange:L,onFocus:O,placeholder:N,inputProps:S},fe,P));return U.jsxs(jj,I({className:Ae(K.root,a),disabled:h,error:p,fullWidth:m,ref:s,required:H,color:l,variant:ie,ownerState:V},ne,{children:[F!=null&&F!==""&&U.jsx(f5,I({htmlFor:ue,id:ge},w,{children:F})),q?U.jsx(kD,I({"aria-describedby":me,id:ue,labelId:ge,value:z,input:Ie},Y,{children:o})):Ie,C&&U.jsx(J4,I({id:me},g,{children:C}))]}))});/** * @remix-run/router v1.23.0 * * 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 */function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function jc(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qj(){return Math.random().toString(36).substr(2,8)}function OF(e,t){return{usr:e.state,key:e.key,idx:t}}function ih(e,t,s,r){return s===void 0&&(s=null),xs({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Ia(t):t,{state:s,key:t&&t.key||r||qj()})}function Tl(e){let{pathname:t="/",search:s="",hash:r=""}=e;return s&&s!=="?"&&(t+=s.charAt(0)==="?"?s:"?"+s),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Ia(e){let t={};if(e){let s=e.indexOf("#");s>=0&&(t.hash=e.substr(s),e=e.substr(0,s));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Yj(e,t,s,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:n=!1}=r,o=i.history,a=Ws.Pop,l=null,u=h();u==null&&(u=0,o.replaceState(xs({},o.state,{idx:u}),""));function h(){return(o.state||{idx:null}).idx}function p(){a=Ws.Pop;let w=h(),S=w==null?null:w-u;u=w,l&&l({action:a,location:v.location,delta:S})}function g(w,S){a=Ws.Push;let P=ih(v.location,w,S);u=h()+1;let T=OF(P,u),F=v.createHref(P);try{o.pushState(T,"",F)}catch(E){if(E instanceof DOMException&&E.name==="DataCloneError")throw E;i.location.assign(F)}n&&l&&l({action:a,location:v.location,delta:1})}function m(w,S){a=Ws.Replace;let P=ih(v.location,w,S);u=h();let T=OF(P,u),F=v.createHref(P);o.replaceState(T,"",F),n&&l&&l({action:a,location:v.location,delta:0})}function C(w){let S=i.location.origin!=="null"?i.location.origin:i.location.href,P=typeof w=="string"?w:Tl(w);return P=P.replace(/ $/,"%20"),Nt(S,"No window.location.(origin|href) available to create URL for href: "+P),new URL(P,S)}let v={get action(){return a},get location(){return e(i,o)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(LF,p),l=w,()=>{i.removeEventListener(LF,p),l=null}},createHref(w){return t(i,w)},createURL:C,encodeLocation(w){let S=C(w);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:m,go(w){return o.go(w)}};return v}var is;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(is||(is={}));const Xj=new Set(["lazy","caseSensitive","path","id","index","children"]);function Qj(e){return e.index===!0}function Zg(e,t,s,r){return s===void 0&&(s=[]),r===void 0&&(r={}),e.map((i,n)=>{let o=[...s,String(n)],a=typeof i.id=="string"?i.id:o.join("-");if(Nt(i.index!==!0||!i.children,"Cannot specify children on an index route"),Nt(!r[a],'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),Qj(i)){let l=xs({},i,t(i),{id:a});return r[a]=l,l}else{let l=xs({},i,t(i),{id:a,children:void 0});return r[a]=l,i.children&&(l.children=Zg(i.children,t,o,r)),l}})}function nl(e,t,s){return s===void 0&&(s="/"),Eg(e,t,s,!1)}function Eg(e,t,s,r){let i=typeof t=="string"?Ia(t):t,n=du(i.pathname||"/",s);if(n==null)return null;let o=LD(e);Zj(o);let a=null;for(let l=0;a==null&&l{let l={relativePath:a===void 0?n.path||"":a,caseSensitive:n.caseSensitive===!0,childrenIndex:o,route:n};l.relativePath.startsWith("/")&&(Nt(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=Co([r,l.relativePath]),h=s.concat(l);n.children&&n.children.length>0&&(Nt(n.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),LD(n.children,t,h,u)),!(n.path==null&&!n.index)&&t.push({path:u,score:o6(u,n.index),routesMeta:h})};return e.forEach((n,o)=>{var a;if(n.path===""||!((a=n.path)!=null&&a.includes("?")))i(n,o);else for(let l of OD(n.path))i(n,o,l)}),t}function OD(e){let t=e.split("/");if(t.length===0)return[];let[s,...r]=t,i=s.endsWith("?"),n=s.replace(/\?$/,"");if(r.length===0)return i?[n,""]:[n];let o=OD(r.join("/")),a=[];return a.push(...o.map(l=>l===""?n:[n,l].join("/"))),i&&a.push(...o),a.map(l=>e.startsWith("/")&&l===""?"/":l)}function Zj(e){e.sort((t,s)=>t.score!==s.score?s.score-t.score:a6(t.routesMeta.map(r=>r.childrenIndex),s.routesMeta.map(r=>r.childrenIndex)))}const e6=/^:[\w-]+$/,t6=3,s6=2,r6=1,i6=10,n6=-2,GF=e=>e==="*";function o6(e,t){let s=e.split("/"),r=s.length;return s.some(GF)&&(r+=n6),t&&(r+=s6),s.filter(i=>!GF(i)).reduce((i,n)=>i+(e6.test(n)?t6:n===""?r6:i6),r)}function a6(e,t){return e.length===t.length&&e.slice(0,-1).every((r,i)=>r===t[i])?e[e.length-1]-t[t.length-1]:0}function l6(e,t,s){s===void 0&&(s=!1);let{routesMeta:r}=e,i={},n="/",o=[];for(let a=0;a{let{paramName:g,isOptional:m}=h;if(g==="*"){let v=a[p]||"";o=n.slice(0,n.length-v.length).replace(/(.)\/+$/,"$1")}const C=a[p];return m&&!C?u[g]=void 0:u[g]=(C||"").replace(/%2F/g,"/"),u},{}),pathname:n,pathnameBase:o,pattern:e}}function c6(e,t,s){t===void 0&&(t=!1),s===void 0&&(s=!0),jc(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=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(o,a,l)=>(r.push({paramName:a,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):s?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function u6(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return jc(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function du(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let s=t.endsWith("/")?t.length-1:t.length,r=e.charAt(s);return r&&r!=="/"?null:e.slice(s)||"/"}function d6(e,t){t===void 0&&(t="/");let{pathname:s,search:r="",hash:i=""}=typeof e=="string"?Ia(e):e;return{pathname:s?s.startsWith("/")?s:h6(s,t):t,search:g6(r),hash:f6(i)}}function h6(e,t){let s=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(i=>{i===".."?s.length>1&&s.pop():i!=="."&&s.push(i)}),s.length>1?s.join("/"):"/"}function jv(e,t,s,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+s+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function GD(e){return e.filter((t,s)=>s===0||t.route.path&&t.route.path.length>0)}function Ab(e,t){let s=GD(e);return t?s.map((r,i)=>i===s.length-1?r.pathname:r.pathnameBase):s.map(r=>r.pathnameBase)}function Ib(e,t,s,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Ia(e):(i=xs({},e),Nt(!i.pathname||!i.pathname.includes("?"),jv("?","pathname","search",i)),Nt(!i.pathname||!i.pathname.includes("#"),jv("#","pathname","hash",i)),Nt(!i.search||!i.search.includes("#"),jv("#","search","hash",i)));let n=e===""||i.pathname==="",o=n?"/":i.pathname,a;if(o==null)a=s;else{let p=t.length-1;if(!r&&o.startsWith("..")){let g=o.split("/");for(;g[0]==="..";)g.shift(),p-=1;i.pathname=g.join("/")}a=p>=0?t[p]:"/"}let l=d6(i,a),u=o&&o!=="/"&&o.endsWith("/"),h=(n||o===".")&&s.endsWith("/");return!l.pathname.endsWith("/")&&(u||h)&&(l.pathname+="/"),l}const Co=e=>e.join("/").replace(/\/\/+/g,"/"),p6=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),g6=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,f6=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class ef{constructor(t,s,r,i){i===void 0&&(i=!1),this.status=t,this.statusText=s||"",this.internal=i,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function nh(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const ND=["post","put","patch","delete"],m6=new Set(ND),C6=["get",...ND],v6=new Set(C6),y6=new Set([301,302,303,307,308]),w6=new Set([307,308]),Kv={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},b6={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},dd={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},kb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,S6=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),BD="remix-router-transitions";function x6(e){const t=e.window?e.window:typeof window<"u"?window:void 0,s=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!s;Nt(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let _=e.detectErrorBoundary;i=te=>({hasErrorBoundary:_(te)})}else i=S6;let n={},o=Zg(e.routes,i,void 0,n),a,l=e.basename||"/",u=e.dataStrategy||E6,h=e.patchRoutesOnNavigation,p=xs({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),g=null,m=new Set,C=null,v=null,w=null,S=e.hydrationData!=null,P=nl(o,e.history.location,l),T=!1,F=null;if(P==null&&!h){let _=Jr(404,{pathname:e.history.location.pathname}),{matches:te,route:ce}=qF(o);P=te,F={[ce.id]:_}}P&&!e.hydrationData&&Qi(P,o,e.history.location.pathname).active&&(P=null);let E;if(P)if(P.some(_=>_.route.lazy))E=!1;else if(!P.some(_=>_.route.loader))E=!0;else if(p.v7_partialHydration){let _=e.hydrationData?e.hydrationData.loaderData:null,te=e.hydrationData?e.hydrationData.errors:null;if(te){let ce=P.findIndex(we=>te[we.route.id]!==void 0);E=P.slice(0,ce+1).every(we=>!sw(we.route,_,te))}else E=P.every(ce=>!sw(ce.route,_,te))}else E=e.hydrationData!=null;else if(E=!1,P=[],p.v7_partialHydration){let _=Qi(null,o,e.history.location.pathname);_.active&&_.matches&&(T=!0,P=_.matches)}let D,R={historyAction:e.history.action,location:e.history.location,matches:P,initialized:E,navigation:Kv,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||F,fetchers:new Map,blockers:new Map},A=Ws.Pop,G=!1,L,O=!1,N=new Map,H=null,$=!1,q=!1,Y=[],re=new Set,z=new Map,ie=0,ne=-1,V=new Map,K=new Set,fe=new Map,ue=new Map,me=new Set,ge=new Map,Be=new Map,Ie;function Ee(){if(g=e.history.listen(_=>{let{action:te,location:ce,delta:we}=_;if(Ie){Ie(),Ie=void 0;return}jc(Be.size===0||we!=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 Ne=$t({currentLocation:R.location,nextLocation:ce,historyAction:te});if(Ne&&we!=null){let rt=new Promise(gt=>{Ie=gt});e.history.go(we*-1),Dt(Ne,{state:"blocked",location:ce,proceed(){Dt(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:ce}),rt.then(()=>e.history.go(we))},reset(){let gt=new Map(R.blockers);gt.set(Ne,dd),Re({blockers:gt})}});return}return Ve(te,ce)}),s){z6(t,N);let _=()=>W6(t,N);t.addEventListener("pagehide",_),H=()=>t.removeEventListener("pagehide",_)}return R.initialized||Ve(Ws.Pop,R.location,{initialHydration:!0}),D}function et(){g&&g(),H&&H(),m.clear(),L&&L.abort(),R.fetchers.forEach((_,te)=>ls(te)),R.blockers.forEach((_,te)=>Mt(te))}function Ze(_){return m.add(_),()=>m.delete(_)}function Re(_,te){te===void 0&&(te={}),R=xs({},R,_);let ce=[],we=[];p.v7_fetcherPersist&&R.fetchers.forEach((Ne,rt)=>{Ne.state==="idle"&&(me.has(rt)?we.push(rt):ce.push(rt))}),me.forEach(Ne=>{!R.fetchers.has(Ne)&&!z.has(Ne)&&we.push(Ne)}),[...m].forEach(Ne=>Ne(R,{deletedFetchers:we,viewTransitionOpts:te.viewTransitionOpts,flushSync:te.flushSync===!0})),p.v7_fetcherPersist?(ce.forEach(Ne=>R.fetchers.delete(Ne)),we.forEach(Ne=>ls(Ne))):we.forEach(Ne=>me.delete(Ne))}function ke(_,te,ce){var we,Ne;let{flushSync:rt}=ce===void 0?{}:ce,gt=R.actionData!=null&&R.navigation.formMethod!=null&&cn(R.navigation.formMethod)&&R.navigation.state==="loading"&&((we=_.state)==null?void 0:we._isRedirect)!==!0,Ke;te.actionData?Object.keys(te.actionData).length>0?Ke=te.actionData:Ke=null:gt?Ke=R.actionData:Ke=null;let qe=te.loaderData?jF(R.loaderData,te.loaderData,te.matches||[],te.errors):R.loaderData,$e=R.blockers;$e.size>0&&($e=new Map($e),$e.forEach((Ce,_e)=>$e.set(_e,dd)));let se=G===!0||R.navigation.formMethod!=null&&cn(R.navigation.formMethod)&&((Ne=_.state)==null?void 0:Ne._isRedirect)!==!0;a&&(o=a,a=void 0),$||A===Ws.Pop||(A===Ws.Push?e.history.push(_,_.state):A===Ws.Replace&&e.history.replace(_,_.state));let Z;if(A===Ws.Pop){let Ce=N.get(R.location.pathname);Ce&&Ce.has(_.pathname)?Z={currentLocation:R.location,nextLocation:_}:N.has(_.pathname)&&(Z={currentLocation:_,nextLocation:R.location})}else if(O){let Ce=N.get(R.location.pathname);Ce?Ce.add(_.pathname):(Ce=new Set([_.pathname]),N.set(R.location.pathname,Ce)),Z={currentLocation:R.location,nextLocation:_}}Re(xs({},te,{actionData:Ke,loaderData:qe,historyAction:A,location:_,initialized:!0,navigation:Kv,revalidation:"idle",restoreScrollPosition:Rn(_,te.matches||R.matches),preventScrollReset:se,blockers:$e}),{viewTransitionOpts:Z,flushSync:rt===!0}),A=Ws.Pop,G=!1,O=!1,$=!1,q=!1,Y=[]}async function Xe(_,te){if(typeof _=="number"){e.history.go(_);return}let ce=tw(R.location,R.matches,l,p.v7_prependBasename,_,p.v7_relativeSplatPath,te==null?void 0:te.fromRouteId,te==null?void 0:te.relative),{path:we,submission:Ne,error:rt}=BF(p.v7_normalizeFormMethod,!1,ce,te),gt=R.location,Ke=ih(R.location,we,te&&te.state);Ke=xs({},Ke,e.history.encodeLocation(Ke));let qe=te&&te.replace!=null?te.replace:void 0,$e=Ws.Push;qe===!0?$e=Ws.Replace:qe===!1||Ne!=null&&cn(Ne.formMethod)&&Ne.formAction===R.location.pathname+R.location.search&&($e=Ws.Replace);let se=te&&"preventScrollReset"in te?te.preventScrollReset===!0:void 0,Z=(te&&te.flushSync)===!0,Ce=$t({currentLocation:gt,nextLocation:Ke,historyAction:$e});if(Ce){Dt(Ce,{state:"blocked",location:Ke,proceed(){Dt(Ce,{state:"proceeding",proceed:void 0,reset:void 0,location:Ke}),Xe(_,te)},reset(){let _e=new Map(R.blockers);_e.set(Ce,dd),Re({blockers:_e})}});return}return await Ve($e,Ke,{submission:Ne,pendingError:rt,preventScrollReset:se,replace:te&&te.replace,enableViewTransition:te&&te.viewTransition,flushSync:Z})}function He(){if(ts(),Re({revalidation:"loading"}),R.navigation.state!=="submitting"){if(R.navigation.state==="idle"){Ve(R.historyAction,R.location,{startUninterruptedRevalidation:!0});return}Ve(A||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:O===!0})}}async function Ve(_,te,ce){L&&L.abort(),L=null,A=_,$=(ce&&ce.startUninterruptedRevalidation)===!0,Zn(R.location,R.matches),G=(ce&&ce.preventScrollReset)===!0,O=(ce&&ce.enableViewTransition)===!0;let we=a||o,Ne=ce&&ce.overrideNavigation,rt=ce!=null&&ce.initialHydration&&R.matches&&R.matches.length>0&&!T?R.matches:nl(we,te,l),gt=(ce&&ce.flushSync)===!0;if(rt&&R.initialized&&!q&&k6(R.location,te)&&!(ce&&ce.submission&&cn(ce.submission.formMethod))){ke(te,{matches:rt},{flushSync:gt});return}let Ke=Qi(rt,we,te.pathname);if(Ke.active&&Ke.matches&&(rt=Ke.matches),!rt){let{error:Qe,notFoundMatches:pt,route:bt}=Ut(te.pathname);ke(te,{matches:pt,loaderData:{},errors:{[bt.id]:Qe}},{flushSync:gt});return}L=new AbortController;let qe=bc(e.history,te,L.signal,ce&&ce.submission),$e;if(ce&&ce.pendingError)$e=[ol(rt).route.id,{type:is.error,error:ce.pendingError}];else if(ce&&ce.submission&&cn(ce.submission.formMethod)){let Qe=await It(qe,te,ce.submission,rt,Ke.active,{replace:ce.replace,flushSync:gt});if(Qe.shortCircuited)return;if(Qe.pendingActionResult){let[pt,bt]=Qe.pendingActionResult;if(yi(bt)&&nh(bt.error)&&bt.error.status===404){L=null,ke(te,{matches:Qe.matches,loaderData:{},errors:{[pt]:bt.error}});return}}rt=Qe.matches||rt,$e=Qe.pendingActionResult,Ne=qv(te,ce.submission),gt=!1,Ke.active=!1,qe=bc(e.history,qe.url,qe.signal)}let{shortCircuited:se,matches:Z,loaderData:Ce,errors:_e}=await ut(qe,te,rt,Ke.active,Ne,ce&&ce.submission,ce&&ce.fetcherSubmission,ce&&ce.replace,ce&&ce.initialHydration===!0,gt,$e);se||(L=null,ke(te,xs({matches:Z||rt},KF($e),{loaderData:Ce,errors:_e})))}async function It(_,te,ce,we,Ne,rt){rt===void 0&&(rt={}),ts();let gt=V6(te,ce);if(Re({navigation:gt},{flushSync:rt.flushSync===!0}),Ne){let $e=await Ji(we,te.pathname,_.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let se=ol($e.partialMatches).route.id;return{matches:$e.partialMatches,pendingActionResult:[se,{type:is.error,error:$e.error}]}}else if($e.matches)we=$e.matches;else{let{notFoundMatches:se,error:Z,route:Ce}=Ut(te.pathname);return{matches:se,pendingActionResult:[Ce.id,{type:is.error,error:Z}]}}}let Ke,qe=Fd(we,te);if(!qe.route.action&&!qe.route.lazy)Ke={type:is.error,error:Jr(405,{method:_.method,pathname:te.pathname,routeId:qe.route.id})};else if(Ke=(await Qt("action",R,_,[qe],we,null))[qe.route.id],_.signal.aborted)return{shortCircuited:!0};if(dl(Ke)){let $e;return rt&&rt.replace!=null?$e=rt.replace:$e=_F(Ke.response.headers.get("Location"),new URL(_.url),l)===R.location.pathname+R.location.search,await mt(_,Ke,!0,{submission:ce,replace:$e}),{shortCircuited:!0}}if(ga(Ke))throw Jr(400,{type:"defer-action"});if(yi(Ke)){let $e=ol(we,qe.route.id);return(rt&&rt.replace)!==!0&&(A=Ws.Push),{matches:we,pendingActionResult:[$e.route.id,Ke]}}return{matches:we,pendingActionResult:[qe.route.id,Ke]}}async function ut(_,te,ce,we,Ne,rt,gt,Ke,qe,$e,se){let Z=Ne||qv(te,rt),Ce=rt||gt||XF(Z),_e=!$&&(!p.v7_partialHydration||!qe);if(we){if(_e){let cs=Bt(se);Re(xs({navigation:Z},cs!==void 0?{actionData:cs}:{}),{flushSync:$e})}let Ht=await Ji(ce,te.pathname,_.signal);if(Ht.type==="aborted")return{shortCircuited:!0};if(Ht.type==="error"){let cs=ol(Ht.partialMatches).route.id;return{matches:Ht.partialMatches,loaderData:{},errors:{[cs]:Ht.error}}}else if(Ht.matches)ce=Ht.matches;else{let{error:cs,notFoundMatches:or,route:Va}=Ut(te.pathname);return{matches:or,loaderData:{},errors:{[Va.id]:cs}}}}let Qe=a||o,[pt,bt]=HF(e.history,R,ce,Ce,te,p.v7_partialHydration&&qe===!0,p.v7_skipActionErrorRevalidation,q,Y,re,me,fe,K,Qe,l,se);if(Ps(Ht=>!(ce&&ce.some(cs=>cs.route.id===Ht))||pt&&pt.some(cs=>cs.route.id===Ht)),ne=++ie,pt.length===0&&bt.length===0){let Ht=De();return ke(te,xs({matches:ce,loaderData:{},errors:se&&yi(se[1])?{[se[0]]:se[1].error}:null},KF(se),Ht?{fetchers:new Map(R.fetchers)}:{}),{flushSync:$e}),{shortCircuited:!0}}if(_e){let Ht={};if(!we){Ht.navigation=Z;let cs=Bt(se);cs!==void 0&&(Ht.actionData=cs)}bt.length>0&&(Ht.fetchers=wt(bt)),Re(Ht,{flushSync:$e})}bt.forEach(Ht=>{Ue(Ht.key),Ht.controller&&z.set(Ht.key,Ht.controller)});let Hs=()=>bt.forEach(Ht=>Ue(Ht.key));L&&L.signal.addEventListener("abort",Hs);let{loaderResults:Pn,fetcherResults:en}=await us(R,ce,pt,bt,_);if(_.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Hs),bt.forEach(Ht=>z.delete(Ht.key));let jt=ig(Pn);if(jt)return await mt(_,jt.result,!0,{replace:Ke}),{shortCircuited:!0};if(jt=ig(en),jt)return K.add(jt.key),await mt(_,jt.result,!0,{replace:Ke}),{shortCircuited:!0};let{loaderData:xu,errors:eo}=UF(R,ce,Pn,se,bt,en,ge);ge.forEach((Ht,cs)=>{Ht.subscribe(or=>{(or||Ht.done)&&ge.delete(cs)})}),p.v7_partialHydration&&qe&&R.errors&&(eo=xs({},R.errors,eo));let Fn=De(),to=je(ne),Ul=Fn||to||bt.length>0;return xs({matches:ce,loaderData:xu,errors:eo},Ul?{fetchers:new Map(R.fetchers)}:{})}function Bt(_){if(_&&!yi(_[1]))return{[_[0]]:_[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function wt(_){return _.forEach(te=>{let ce=R.fetchers.get(te.key),we=hd(void 0,ce?ce.data:void 0);R.fetchers.set(te.key,we)}),new Map(R.fetchers)}function ht(_,te,ce,we){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");Ue(_);let Ne=(we&&we.flushSync)===!0,rt=a||o,gt=tw(R.location,R.matches,l,p.v7_prependBasename,ce,p.v7_relativeSplatPath,te,we==null?void 0:we.relative),Ke=nl(rt,gt,l),qe=Qi(Ke,rt,gt);if(qe.active&&qe.matches&&(Ke=qe.matches),!Ke){Se(_,te,Jr(404,{pathname:gt}),{flushSync:Ne});return}let{path:$e,submission:se,error:Z}=BF(p.v7_normalizeFormMethod,!0,gt,we);if(Z){Se(_,te,Z,{flushSync:Ne});return}let Ce=Fd(Ke,$e),_e=(we&&we.preventScrollReset)===!0;if(se&&cn(se.formMethod)){Wt(_,te,$e,Ce,Ke,qe.active,Ne,_e,se);return}fe.set(_,{routeId:te,path:$e}),Ot(_,te,$e,Ce,Ke,qe.active,Ne,_e,se)}async function Wt(_,te,ce,we,Ne,rt,gt,Ke,qe){ts(),fe.delete(_);function $e(Kt){if(!Kt.route.action&&!Kt.route.lazy){let Lo=Jr(405,{method:qe.formMethod,pathname:ce,routeId:te});return Se(_,te,Lo,{flushSync:gt}),!0}return!1}if(!rt&&$e(we))return;let se=R.fetchers.get(_);Ge(_,H6(qe,se),{flushSync:gt});let Z=new AbortController,Ce=bc(e.history,ce,Z.signal,qe);if(rt){let Kt=await Ji(Ne,new URL(Ce.url).pathname,Ce.signal,_);if(Kt.type==="aborted")return;if(Kt.type==="error"){Se(_,te,Kt.error,{flushSync:gt});return}else if(Kt.matches){if(Ne=Kt.matches,we=Fd(Ne,ce),$e(we))return}else{Se(_,te,Jr(404,{pathname:ce}),{flushSync:gt});return}}z.set(_,Z);let _e=ie,pt=(await Qt("action",R,Ce,[we],Ne,_))[we.route.id];if(Ce.signal.aborted){z.get(_)===Z&&z.delete(_);return}if(p.v7_fetcherPersist&&me.has(_)){if(dl(pt)||yi(pt)){Ge(_,na(void 0));return}}else{if(dl(pt))if(z.delete(_),ne>_e){Ge(_,na(void 0));return}else return K.add(_),Ge(_,hd(qe)),mt(Ce,pt,!1,{fetcherSubmission:qe,preventScrollReset:Ke});if(yi(pt)){Se(_,te,pt.error);return}}if(ga(pt))throw Jr(400,{type:"defer-action"});let bt=R.navigation.location||R.location,Hs=bc(e.history,bt,Z.signal),Pn=a||o,en=R.navigation.state!=="idle"?nl(Pn,R.navigation.location,l):R.matches;Nt(en,"Didn't find any matches after fetcher action");let jt=++ie;V.set(_,jt);let xu=hd(qe,pt.data);R.fetchers.set(_,xu);let[eo,Fn]=HF(e.history,R,en,qe,bt,!1,p.v7_skipActionErrorRevalidation,q,Y,re,me,fe,K,Pn,l,[we.route.id,pt]);Fn.filter(Kt=>Kt.key!==_).forEach(Kt=>{let Lo=Kt.key,Uh=R.fetchers.get(Lo),_m=hd(void 0,Uh?Uh.data:void 0);R.fetchers.set(Lo,_m),Ue(Lo),Kt.controller&&z.set(Lo,Kt.controller)}),Re({fetchers:new Map(R.fetchers)});let to=()=>Fn.forEach(Kt=>Ue(Kt.key));Z.signal.addEventListener("abort",to);let{loaderResults:Ul,fetcherResults:Ht}=await us(R,en,eo,Fn,Hs);if(Z.signal.aborted)return;Z.signal.removeEventListener("abort",to),V.delete(_),z.delete(_),Fn.forEach(Kt=>z.delete(Kt.key));let cs=ig(Ul);if(cs)return mt(Hs,cs.result,!1,{preventScrollReset:Ke});if(cs=ig(Ht),cs)return K.add(cs.key),mt(Hs,cs.result,!1,{preventScrollReset:Ke});let{loaderData:or,errors:Va}=UF(R,en,Ul,void 0,Fn,Ht,ge);if(R.fetchers.has(_)){let Kt=na(pt.data);R.fetchers.set(_,Kt)}je(jt),R.navigation.state==="loading"&&jt>ne?(Nt(A,"Expected pending action"),L&&L.abort(),ke(R.navigation.location,{matches:en,loaderData:or,errors:Va,fetchers:new Map(R.fetchers)})):(Re({errors:Va,loaderData:jF(R.loaderData,or,en,Va),fetchers:new Map(R.fetchers)}),q=!1)}async function Ot(_,te,ce,we,Ne,rt,gt,Ke,qe){let $e=R.fetchers.get(_);Ge(_,hd(qe,$e?$e.data:void 0),{flushSync:gt});let se=new AbortController,Z=bc(e.history,ce,se.signal);if(rt){let pt=await Ji(Ne,new URL(Z.url).pathname,Z.signal,_);if(pt.type==="aborted")return;if(pt.type==="error"){Se(_,te,pt.error,{flushSync:gt});return}else if(pt.matches)Ne=pt.matches,we=Fd(Ne,ce);else{Se(_,te,Jr(404,{pathname:ce}),{flushSync:gt});return}}z.set(_,se);let Ce=ie,Qe=(await Qt("loader",R,Z,[we],Ne,_))[we.route.id];if(ga(Qe)&&(Qe=await Lb(Qe,Z.signal,!0)||Qe),z.get(_)===se&&z.delete(_),!Z.signal.aborted){if(me.has(_)){Ge(_,na(void 0));return}if(dl(Qe))if(ne>Ce){Ge(_,na(void 0));return}else{K.add(_),await mt(Z,Qe,!1,{preventScrollReset:Ke});return}if(yi(Qe)){Se(_,te,Qe.error);return}Nt(!ga(Qe),"Unhandled fetcher deferred data"),Ge(_,na(Qe.data))}}async function mt(_,te,ce,we){let{submission:Ne,fetcherSubmission:rt,preventScrollReset:gt,replace:Ke}=we===void 0?{}:we;te.response.headers.has("X-Remix-Revalidate")&&(q=!0);let qe=te.response.headers.get("Location");Nt(qe,"Expected a Location header on the redirect Response"),qe=_F(qe,new URL(_.url),l);let $e=ih(R.location,qe,{_isRedirect:!0});if(s){let pt=!1;if(te.response.headers.has("X-Remix-Reload-Document"))pt=!0;else if(kb.test(qe)){const bt=e.history.createURL(qe);pt=bt.origin!==t.location.origin||du(bt.pathname,l)==null}if(pt){Ke?t.location.replace(qe):t.location.assign(qe);return}}L=null;let se=Ke===!0||te.response.headers.has("X-Remix-Replace")?Ws.Replace:Ws.Push,{formMethod:Z,formAction:Ce,formEncType:_e}=R.navigation;!Ne&&!rt&&Z&&Ce&&_e&&(Ne=XF(R.navigation));let Qe=Ne||rt;if(w6.has(te.response.status)&&Qe&&cn(Qe.formMethod))await Ve(se,$e,{submission:xs({},Qe,{formAction:qe}),preventScrollReset:gt||G,enableViewTransition:ce?O:void 0});else{let pt=qv($e,Ne);await Ve(se,$e,{overrideNavigation:pt,fetcherSubmission:rt,preventScrollReset:gt||G,enableViewTransition:ce?O:void 0})}}async function Qt(_,te,ce,we,Ne,rt){let gt,Ke={};try{gt=await T6(u,_,te,ce,we,Ne,rt,n,i)}catch(qe){return we.forEach($e=>{Ke[$e.route.id]={type:is.error,error:qe}}),Ke}for(let[qe,$e]of Object.entries(gt))if(L6($e)){let se=$e.result;Ke[qe]={type:is.redirect,response:A6(se,ce,qe,Ne,l,p.v7_relativeSplatPath)}}else Ke[qe]=await D6($e);return Ke}async function us(_,te,ce,we,Ne){let rt=_.matches,gt=Qt("loader",_,Ne,ce,te,null),Ke=Promise.all(we.map(async se=>{if(se.matches&&se.match&&se.controller){let Ce=(await Qt("loader",_,bc(e.history,se.path,se.controller.signal),[se.match],se.matches,se.key))[se.match.route.id];return{[se.key]:Ce}}else return Promise.resolve({[se.key]:{type:is.error,error:Jr(404,{pathname:se.path})}})})),qe=await gt,$e=(await Ke).reduce((se,Z)=>Object.assign(se,Z),{});return await Promise.all([N6(te,qe,Ne.signal,rt,_.loaderData),B6(te,$e,we)]),{loaderResults:qe,fetcherResults:$e}}function ts(){q=!0,Y.push(...Ps()),fe.forEach((_,te)=>{z.has(te)&&re.add(te),Ue(te)})}function Ge(_,te,ce){ce===void 0&&(ce={}),R.fetchers.set(_,te),Re({fetchers:new Map(R.fetchers)},{flushSync:(ce&&ce.flushSync)===!0})}function Se(_,te,ce,we){we===void 0&&(we={});let Ne=ol(R.matches,te);ls(_),Re({errors:{[Ne.route.id]:ce},fetchers:new Map(R.fetchers)},{flushSync:(we&&we.flushSync)===!0})}function Vt(_){return ue.set(_,(ue.get(_)||0)+1),me.has(_)&&me.delete(_),R.fetchers.get(_)||b6}function ls(_){let te=R.fetchers.get(_);z.has(_)&&!(te&&te.state==="loading"&&V.has(_))&&Ue(_),fe.delete(_),V.delete(_),K.delete(_),p.v7_fetcherPersist&&me.delete(_),re.delete(_),R.fetchers.delete(_)}function Qs(_){let te=(ue.get(_)||0)-1;te<=0?(ue.delete(_),me.add(_),p.v7_fetcherPersist||ls(_)):ue.set(_,te),Re({fetchers:new Map(R.fetchers)})}function Ue(_){let te=z.get(_);te&&(te.abort(),z.delete(_))}function Pt(_){for(let te of _){let ce=Vt(te),we=na(ce.data);R.fetchers.set(te,we)}}function De(){let _=[],te=!1;for(let ce of K){let we=R.fetchers.get(ce);Nt(we,"Expected fetcher: "+ce),we.state==="loading"&&(K.delete(ce),_.push(ce),te=!0)}return Pt(_),te}function je(_){let te=[];for(let[ce,we]of V)if(we<_){let Ne=R.fetchers.get(ce);Nt(Ne,"Expected fetcher: "+ce),Ne.state==="loading"&&(Ue(ce),V.delete(ce),te.push(ce))}return Pt(te),te.length>0}function Et(_,te){let ce=R.blockers.get(_)||dd;return Be.get(_)!==te&&Be.set(_,te),ce}function Mt(_){R.blockers.delete(_),Be.delete(_)}function Dt(_,te){let ce=R.blockers.get(_)||dd;Nt(ce.state==="unblocked"&&te.state==="blocked"||ce.state==="blocked"&&te.state==="blocked"||ce.state==="blocked"&&te.state==="proceeding"||ce.state==="blocked"&&te.state==="unblocked"||ce.state==="proceeding"&&te.state==="unblocked","Invalid blocker state transition: "+ce.state+" -> "+te.state);let we=new Map(R.blockers);we.set(_,te),Re({blockers:we})}function $t(_){let{currentLocation:te,nextLocation:ce,historyAction:we}=_;if(Be.size===0)return;Be.size>1&&jc(!1,"A router only supports one blocker at a time");let Ne=Array.from(Be.entries()),[rt,gt]=Ne[Ne.length-1],Ke=R.blockers.get(rt);if(!(Ke&&Ke.state==="proceeding")&>({currentLocation:te,nextLocation:ce,historyAction:we}))return rt}function Ut(_){let te=Jr(404,{pathname:_}),ce=a||o,{matches:we,route:Ne}=qF(ce);return Ps(),{notFoundMatches:we,route:Ne,error:te}}function Ps(_){let te=[];return ge.forEach((ce,we)=>{(!_||_(we))&&(ce.cancel(),te.push(we),ge.delete(we))}),te}function Ls(_,te,ce){if(C=_,w=te,v=ce||null,!S&&R.navigation===Kv){S=!0;let we=Rn(R.location,R.matches);we!=null&&Re({restoreScrollPosition:we})}return()=>{C=null,w=null,v=null}}function Wr(_,te){return v&&v(_,te.map(we=>Jj(we,R.loaderData)))||_.key}function Zn(_,te){if(C&&w){let ce=Wr(_,te);C[ce]=w()}}function Rn(_,te){if(C){let ce=Wr(_,te),we=C[ce];if(typeof we=="number")return we}return null}function Qi(_,te,ce){if(h)if(_){if(Object.keys(_[0].params).length>0)return{active:!0,matches:Eg(te,ce,l,!0)}}else return{active:!0,matches:Eg(te,ce,l,!0)||[]};return{active:!1,matches:null}}async function Ji(_,te,ce,we){if(!h)return{type:"success",matches:_};let Ne=_;for(;;){let rt=a==null,gt=a||o,Ke=n;try{await h({signal:ce,path:te,matches:Ne,fetcherKey:we,patch:(se,Z)=>{ce.aborted||WF(se,Z,gt,Ke,i)}})}catch(se){return{type:"error",error:se,partialMatches:Ne}}finally{rt&&!ce.aborted&&(o=[...o])}if(ce.aborted)return{type:"aborted"};let qe=nl(gt,te,l);if(qe)return{type:"success",matches:qe};let $e=Eg(gt,te,l,!0);if(!$e||Ne.length===$e.length&&Ne.every((se,Z)=>se.route.id===$e[Z].route.id))return{type:"success",matches:null};Ne=$e}}function Zi(_){n={},a=Zg(_,i,void 0,n)}function ws(_,te){let ce=a==null;WF(_,te,a||o,n,i),ce&&(o=[...o],Re({}))}return D={get basename(){return l},get future(){return p},get state(){return R},get routes(){return o},get window(){return t},initialize:Ee,subscribe:Ze,enableScrollRestoration:Ls,navigate:Xe,fetch:ht,revalidate:He,createHref:_=>e.history.createHref(_),encodeLocation:_=>e.history.encodeLocation(_),getFetcher:Vt,deleteFetcher:Qs,dispose:et,getBlocker:Et,deleteBlocker:Mt,patchRoutes:ws,_internalFetchControllers:z,_internalActiveDeferreds:ge,_internalSetRoutes:Zi},D}function R6(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function tw(e,t,s,r,i,n,o,a){let l,u;if(o){l=[];for(let p of t)if(l.push(p),p.route.id===o){u=p;break}}else l=t,u=t[t.length-1];let h=Ib(i||".",Ab(l,n),du(e.pathname,s)||e.pathname,a==="path");if(i==null&&(h.search=e.search,h.hash=e.hash),(i==null||i===""||i===".")&&u){let p=Ob(h.search);if(u.route.index&&!p)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&p){let g=new URLSearchParams(h.search),m=g.getAll("index");g.delete("index"),m.filter(v=>v).forEach(v=>g.append("index",v));let C=g.toString();h.search=C?"?"+C:""}}return r&&s!=="/"&&(h.pathname=h.pathname==="/"?s:Co([s,h.pathname])),Tl(h)}function BF(e,t,s,r){if(!r||!R6(r))return{path:s};if(r.formMethod&&!G6(r.formMethod))return{path:s,error:Jr(405,{method:r.formMethod})};let i=()=>({path:s,error:Jr(400,{type:"invalid-body"})}),n=r.formMethod||"get",o=e?n.toUpperCase():n.toLowerCase(),a=zD(s);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!cn(o))return i();let g=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((m,C)=>{let[v,w]=C;return""+m+v+"="+w+` `},""):String(r.body);return{path:s,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:void 0,text:g}}}else if(r.formEncType==="application/json"){if(!cn(o))return i();try{let g=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:s,submission:{formMethod:o,formAction:a,formEncType:r.formEncType,formData:void 0,json:g,text:void 0}}}catch{return i()}}}Nt(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=rw(r.formData),u=r.formData;else if(r.body instanceof FormData)l=rw(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=$F(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=$F(l)}catch{return i()}let h={formMethod:o,formAction:a,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(cn(h.formMethod))return{path:s,submission:h};let p=Ia(s);return t&&p.search&&Ob(p.search)&&l.append("index",""),p.search="?"+l,{path:Tl(p),submission:h}}function VF(e,t,s){s===void 0&&(s=!1);let r=e.findIndex(i=>i.route.id===t);return r>=0?e.slice(0,s?r+1:r):e}function HF(e,t,s,r,i,n,o,a,l,u,h,p,g,m,C,v){let w=v?yi(v[1])?v[1].error:v[1].data:void 0,S=e.createURL(t.location),P=e.createURL(i),T=s;n&&t.errors?T=VF(s,Object.keys(t.errors)[0],!0):v&&yi(v[1])&&(T=VF(s,v[0]));let F=v?v[1].statusCode:void 0,E=o&&F&&F>=400,D=T.filter((A,G)=>{let{route:L}=A;if(L.lazy)return!0;if(L.loader==null)return!1;if(n)return sw(L,t.loaderData,t.errors);if(P6(t.loaderData,t.matches[G],A)||l.some(H=>H===A.route.id))return!0;let O=t.matches[G],N=A;return zF(A,xs({currentUrl:S,currentParams:O.params,nextUrl:P,nextParams:N.params},r,{actionResult:w,actionStatus:F,defaultShouldRevalidate:E?!1:a||S.pathname+S.search===P.pathname+P.search||S.search!==P.search||VD(O,N)}))}),R=[];return p.forEach((A,G)=>{if(n||!s.some($=>$.route.id===A.routeId)||h.has(G))return;let L=nl(m,A.path,C);if(!L){R.push({key:G,routeId:A.routeId,path:A.path,matches:null,match:null,controller:null});return}let O=t.fetchers.get(G),N=Fd(L,A.path),H=!1;g.has(G)?H=!1:u.has(G)?(u.delete(G),H=!0):O&&O.state!=="idle"&&O.data===void 0?H=a:H=zF(N,xs({currentUrl:S,currentParams:t.matches[t.matches.length-1].params,nextUrl:P,nextParams:s[s.length-1].params},r,{actionResult:w,actionStatus:F,defaultShouldRevalidate:E?!1:a})),H&&R.push({key:G,routeId:A.routeId,path:A.path,matches:L,match:N,controller:new AbortController})}),[D,R]}function sw(e,t,s){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=s!=null&&s[e.id]!==void 0;return!r&&i?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!i}function P6(e,t,s){let r=!t||s.route.id!==t.route.id,i=e[s.route.id]===void 0;return r||i}function VD(e,t){let s=e.route.path;return e.pathname!==t.pathname||s!=null&&s.endsWith("*")&&e.params["*"]!==t.params["*"]}function zF(e,t){if(e.route.shouldRevalidate){let s=e.route.shouldRevalidate(t);if(typeof s=="boolean")return s}return t.defaultShouldRevalidate}function WF(e,t,s,r,i){var n;let o;if(e){let u=r[e];Nt(u,"No route found to patch children into: routeId = "+e),u.children||(u.children=[]),o=u.children}else o=s;let a=t.filter(u=>!o.some(h=>HD(u,h))),l=Zg(a,i,[e||"_","patch",String(((n=o)==null?void 0:n.length)||"0")],r);o.push(...l)}function HD(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((s,r)=>{var i;return(i=t.children)==null?void 0:i.some(n=>HD(s,n))}):!1}async function F6(e,t,s){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=s[e.id];Nt(i,"No route found in manifest");let n={};for(let o in r){let l=i[o]!==void 0&&o!=="hasErrorBoundary";jc(!l,'Route "'+i.id+'" has a static property "'+o+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+o+'" will be ignored.')),!l&&!Xj.has(o)&&(n[o]=r[o])}Object.assign(i,n),Object.assign(i,xs({},t(i),{lazy:void 0}))}async function E6(e){let{matches:t}=e,s=t.filter(i=>i.shouldLoad);return(await Promise.all(s.map(i=>i.resolve()))).reduce((i,n,o)=>Object.assign(i,{[s[o].route.id]:n}),{})}async function T6(e,t,s,r,i,n,o,a,l,u){let h=n.map(m=>m.route.lazy?F6(m.route,l,a):void 0),p=n.map((m,C)=>{let v=h[C],w=i.some(P=>P.route.id===m.route.id);return xs({},m,{shouldLoad:w,resolve:async P=>(P&&r.method==="GET"&&(m.route.lazy||m.route.loader)&&(w=!0),w?M6(t,r,m,v,P,u):Promise.resolve({type:is.data,result:void 0}))})}),g=await e({matches:p,request:r,params:n[0].params,fetcherKey:o,context:u});try{await Promise.all(h)}catch{}return g}async function M6(e,t,s,r,i,n){let o,a,l=u=>{let h,p=new Promise((C,v)=>h=v);a=()=>h(),t.signal.addEventListener("abort",a);let g=C=>typeof u!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+s.route.id+"]"))):u({request:t,params:s.params,context:n},...C!==void 0?[C]:[]),m=(async()=>{try{return{type:"data",result:await(i?i(v=>g(v)):g())}}catch(C){return{type:"error",result:C}}})();return Promise.race([m,p])};try{let u=s.route[e];if(r)if(u){let h,[p]=await Promise.all([l(u).catch(g=>{h=g}),r]);if(h!==void 0)throw h;o=p}else if(await r,u=s.route[e],u)o=await l(u);else if(e==="action"){let h=new URL(t.url),p=h.pathname+h.search;throw Jr(405,{method:t.method,pathname:p,routeId:s.route.id})}else return{type:is.data,result:void 0};else if(u)o=await l(u);else{let h=new URL(t.url),p=h.pathname+h.search;throw Jr(404,{pathname:p})}Nt(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+s.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(u){return{type:is.error,result:u}}finally{a&&t.signal.removeEventListener("abort",a)}return o}async function D6(e){let{result:t,type:s}=e;if(WD(t)){let p;try{let g=t.headers.get("Content-Type");g&&/\bapplication\/json\b/.test(g)?t.body==null?p=null:p=await t.json():p=await t.text()}catch(g){return{type:is.error,error:g}}return s===is.error?{type:is.error,error:new ef(t.status,t.statusText,p),statusCode:t.status,headers:t.headers}:{type:is.data,data:p,statusCode:t.status,headers:t.headers}}if(s===is.error){if(YF(t)){var r,i;if(t.data instanceof Error){var n,o;return{type:is.error,error:t.data,statusCode:(n=t.init)==null?void 0:n.status,headers:(o=t.init)!=null&&o.headers?new Headers(t.init.headers):void 0}}return{type:is.error,error:new ef(((r=t.init)==null?void 0:r.status)||500,void 0,t.data),statusCode:nh(t)?t.status:void 0,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:is.error,error:t,statusCode:nh(t)?t.status:void 0}}if(O6(t)){var a,l;return{type:is.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((l=t.init)==null?void 0:l.headers)&&new Headers(t.init.headers)}}if(YF(t)){var u,h;return{type:is.data,data:t.data,statusCode:(u=t.init)==null?void 0:u.status,headers:(h=t.init)!=null&&h.headers?new Headers(t.init.headers):void 0}}return{type:is.data,data:t}}function A6(e,t,s,r,i,n){let o=e.headers.get("Location");if(Nt(o,"Redirects returned/thrown from loaders/actions must have a Location header"),!kb.test(o)){let a=r.slice(0,r.findIndex(l=>l.route.id===s)+1);o=tw(new URL(t.url),a,i,!0,o,n),e.headers.set("Location",o)}return e}function _F(e,t,s){if(kb.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),n=du(i.pathname,s)!=null;if(i.origin===t.origin&&n)return i.pathname+i.search+i.hash}return e}function bc(e,t,s,r){let i=e.createURL(zD(t)).toString(),n={signal:s};if(r&&cn(r.formMethod)){let{formMethod:o,formEncType:a}=r;n.method=o.toUpperCase(),a==="application/json"?(n.headers=new Headers({"Content-Type":a}),n.body=JSON.stringify(r.json)):a==="text/plain"?n.body=r.text:a==="application/x-www-form-urlencoded"&&r.formData?n.body=rw(r.formData):n.body=r.formData}return new Request(i,n)}function rw(e){let t=new URLSearchParams;for(let[s,r]of e.entries())t.append(s,typeof r=="string"?r:r.name);return t}function $F(e){let t=new FormData;for(let[s,r]of e.entries())t.append(s,r);return t}function I6(e,t,s,r,i){let n={},o=null,a,l=!1,u={},h=s&&yi(s[1])?s[1].error:void 0;return e.forEach(p=>{if(!(p.route.id in t))return;let g=p.route.id,m=t[g];if(Nt(!dl(m),"Cannot handle redirect results in processLoaderData"),yi(m)){let C=m.error;h!==void 0&&(C=h,h=void 0),o=o||{};{let v=ol(e,g);o[v.route.id]==null&&(o[v.route.id]=C)}n[g]=void 0,l||(l=!0,a=nh(m.error)?m.error.status:500),m.headers&&(u[g]=m.headers)}else ga(m)?(r.set(g,m.deferredData),n[g]=m.deferredData.data,m.statusCode!=null&&m.statusCode!==200&&!l&&(a=m.statusCode),m.headers&&(u[g]=m.headers)):(n[g]=m.data,m.statusCode&&m.statusCode!==200&&!l&&(a=m.statusCode),m.headers&&(u[g]=m.headers))}),h!==void 0&&s&&(o={[s[0]]:h},n[s[0]]=void 0),{loaderData:n,errors:o,statusCode:a||200,loaderHeaders:u}}function UF(e,t,s,r,i,n,o){let{loaderData:a,errors:l}=I6(t,s,r,o);return i.forEach(u=>{let{key:h,match:p,controller:g}=u,m=n[h];if(Nt(m,"Did not find corresponding fetcher result"),!(g&&g.signal.aborted))if(yi(m)){let C=ol(e.matches,p==null?void 0:p.route.id);l&&l[C.route.id]||(l=xs({},l,{[C.route.id]:m.error})),e.fetchers.delete(h)}else if(dl(m))Nt(!1,"Unhandled fetcher revalidation redirect");else if(ga(m))Nt(!1,"Unhandled fetcher deferred data");else{let C=na(m.data);e.fetchers.set(h,C)}}),{loaderData:a,errors:l}}function jF(e,t,s,r){let i=xs({},t);for(let n of s){let o=n.route.id;if(t.hasOwnProperty(o)?t[o]!==void 0&&(i[o]=t[o]):e[o]!==void 0&&n.route.loader&&(i[o]=e[o]),r&&r.hasOwnProperty(o))break}return i}function KF(e){return e?yi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ol(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 qF(e){let t=e.length===1?e[0]:e.find(s=>s.index||!s.path||s.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function Jr(e,t){let{pathname:s,routeId:r,method:i,type:n,message:o}=t===void 0?{}:t,a="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(a="Bad Request",i&&s&&r?l="You made a "+i+' request to "'+s+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":n==="defer-action"?l="defer() is not supported in actions":n==="invalid-body"&&(l="Unable to encode submission body")):e===403?(a="Forbidden",l='Route "'+r+'" does not match URL "'+s+'"'):e===404?(a="Not Found",l='No route matches URL "'+s+'"'):e===405&&(a="Method Not Allowed",i&&s&&r?l="You made a "+i.toUpperCase()+' request to "'+s+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new ef(e||500,a,new Error(l),!0)}function ig(e){let t=Object.entries(e);for(let s=t.length-1;s>=0;s--){let[r,i]=t[s];if(dl(i))return{key:r,result:i}}}function zD(e){let t=typeof e=="string"?Ia(e):e;return Tl(xs({},t,{hash:""}))}function k6(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function L6(e){return WD(e.result)&&y6.has(e.result.status)}function ga(e){return e.type===is.deferred}function yi(e){return e.type===is.error}function dl(e){return(e&&e.type)===is.redirect}function YF(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function O6(e){let t=e;return t&&typeof t=="object"&&typeof t.data=="object"&&typeof t.subscribe=="function"&&typeof t.cancel=="function"&&typeof t.resolveData=="function"}function WD(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function G6(e){return v6.has(e.toLowerCase())}function cn(e){return m6.has(e.toLowerCase())}async function N6(e,t,s,r,i){let n=Object.entries(t);for(let o=0;o(g==null?void 0:g.route.id)===a);if(!u)continue;let h=r.find(g=>g.route.id===u.route.id),p=h!=null&&!VD(h,u)&&(i&&i[u.route.id])!==void 0;ga(l)&&p&&await Lb(l,s,!1).then(g=>{g&&(t[a]=g)})}}async function B6(e,t,s){for(let r=0;r(u==null?void 0:u.route.id)===n)&&ga(a)&&(Nt(o,"Expected an AbortController for revalidating fetcher deferred result"),await Lb(a,o.signal,!0).then(u=>{u&&(t[i]=u)}))}}async function Lb(e,t,s){if(s===void 0&&(s=!1),!await e.deferredData.resolveData(t)){if(s)try{return{type:is.data,data:e.deferredData.unwrappedData}}catch(i){return{type:is.error,error:i}}return{type:is.data,data:e.deferredData.data}}}function Ob(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function Fd(e,t){let s=typeof t=="string"?Ia(t).search:t.search;if(e[e.length-1].route.index&&Ob(s||""))return e[e.length-1];let r=GD(e);return r[r.length-1]}function XF(e){let{formMethod:t,formAction:s,formEncType:r,text:i,formData:n,json:o}=e;if(!(!t||!s||!r)){if(i!=null)return{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:void 0,text:i};if(n!=null)return{formMethod:t,formAction:s,formEncType:r,formData:n,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:s,formEncType:r,formData:void 0,json:o,text:void 0}}}function qv(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 V6(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 hd(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 H6(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 na(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 z6(e,t){try{let s=e.sessionStorage.getItem(BD);if(s){let r=JSON.parse(s);for(let[i,n]of Object.entries(r||{}))n&&Array.isArray(n)&&t.set(i,new Set(n||[]))}}catch{}}function W6(e,t){if(t.size>0){let s={};for(let[r,i]of t)s[r]=[...i];try{e.sessionStorage.setItem(BD,JSON.stringify(s))}catch(r){jc(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** * React Router v6.30.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 */function tf(){return tf=Object.assign?Object.assign.bind():function(e){for(var t=1;t{a.current=!0}),b.useCallback(function(u,h){if(h===void 0&&(h={}),!a.current)return;if(typeof u=="number"){r.go(u);return}let p=Ib(u,JSON.parse(o),n,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Co([t,p.pathname])),(h.replace?r.replace:r.push)(p,h.state,h)},[t,r,o,n,e])}const U6=b.createContext(null);function j6(e){let t=b.useContext(Ao).outlet;return t&&b.createElement(U6.Provider,{value:e},t)}function Zve(){let{matches:e}=b.useContext(Ao),t=e[e.length-1];return t?t.params:{}}function KD(e,t){let{relative:s}=t===void 0?{}:t,{future:r}=b.useContext(zl),{matches:i}=b.useContext(Ao),{pathname:n}=Eh(),o=JSON.stringify(Ab(i,r.v7_relativeSplatPath));return b.useMemo(()=>Ib(e,JSON.parse(o),n,s==="path"),[e,o,n,s])}function K6(e,t,s,r){Fh()||Nt(!1);let{navigator:i}=b.useContext(zl),{matches:n}=b.useContext(Ao),o=n[n.length-1],a=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let u=Eh(),h;h=u;let p=h.pathname||"/",g=p;if(l!=="/"){let v=l.replace(/^\//,"").split("/");g="/"+p.replace(/^\//,"").split("/").slice(v.length).join("/")}let m=nl(e,{pathname:g});return J6(m&&m.map(v=>Object.assign({},v,{params:Object.assign({},a,v.params),pathname:Co([l,i.encodeLocation?i.encodeLocation(v.pathname).pathname:v.pathname]),pathnameBase:v.pathnameBase==="/"?l:Co([l,i.encodeLocation?i.encodeLocation(v.pathnameBase).pathname:v.pathnameBase])})),n,s,r)}function q6(){let e=sK(),t=nh(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),s=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return b.createElement(b.Fragment,null,b.createElement("h2",null,"Unexpected Application Error!"),b.createElement("h3",{style:{fontStyle:"italic"}},t),s?b.createElement("pre",{style:i},s):null,null)}const Y6=b.createElement(q6,null);class X6 extends b.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,s){return s.location!==t.location||s.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:s.error,location:s.location,revalidation:t.revalidation||s.revalidation}}componentDidCatch(t,s){console.error("React Router caught the following error during render",t,s)}render(){return this.state.error!==void 0?b.createElement(Ao.Provider,{value:this.props.routeContext},b.createElement($D.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function Q6(e){let{routeContext:t,match:s,children:r}=e,i=b.useContext(rm);return i&&i.static&&i.staticContext&&(s.route.errorElement||s.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=s.route.id),b.createElement(Ao.Provider,{value:t},r)}function J6(e,t,s,r){var i;if(t===void 0&&(t=[]),s===void 0&&(s=null),r===void 0&&(r=null),e==null){var n;if(!s)return null;if(s.errors)e=s.matches;else if((n=r)!=null&&n.v7_partialHydration&&t.length===0&&!s.initialized&&s.matches.length>0)e=s.matches;else return null}let o=e,a=(i=s)==null?void 0:i.errors;if(a!=null){let h=o.findIndex(p=>p.route.id&&(a==null?void 0:a[p.route.id])!==void 0);h>=0||Nt(!1),o=o.slice(0,Math.min(o.length,h+1))}let l=!1,u=-1;if(s&&r&&r.v7_partialHydration)for(let h=0;h=0?o=o.slice(0,u+1):o=[o[0]];break}}}return o.reduceRight((h,p,g)=>{let m,C=!1,v=null,w=null;s&&(m=a&&p.route.id?a[p.route.id]:void 0,v=p.route.errorElement||Y6,l&&(u<0&&g===0?(iK("route-fallback"),C=!0,w=null):u===g&&(C=!0,w=p.route.hydrateFallbackElement||null)));let S=t.concat(o.slice(0,g+1)),P=()=>{let T;return m?T=v:C?T=w:p.route.Component?T=b.createElement(p.route.Component,null):p.route.element?T=p.route.element:T=h,b.createElement(Q6,{match:p,routeContext:{outlet:h,matches:S,isDataRoute:s!=null},children:T})};return s&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?b.createElement(X6,{location:s.location,revalidation:s.revalidation,component:v,error:m,children:P(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):P()},null)}var qD=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(qD||{}),YD=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(YD||{});function Z6(e){let t=b.useContext(rm);return t||Nt(!1),t}function eK(e){let t=b.useContext(_D);return t||Nt(!1),t}function tK(e){let t=b.useContext(Ao);return t||Nt(!1),t}function XD(e){let t=tK(),s=t.matches[t.matches.length-1];return s.route.id||Nt(!1),s.route.id}function sK(){var e;let t=b.useContext($D),s=eK(YD.UseRouteError),r=XD();return t!==void 0?t:(e=s.errors)==null?void 0:e[r]}function rK(){let{router:e}=Z6(qD.UseNavigateStable),t=XD(),s=b.useRef(!1);return UD(()=>{s.current=!0}),b.useCallback(function(i,n){n===void 0&&(n={}),s.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,tf({fromRouteId:t},n)))},[e,t])}const QF={};function iK(e,t,s){QF[e]||(QF[e]=!0)}function nK(e,t){e==null||e.v7_startTransition,(e==null?void 0:e.v7_relativeSplatPath)===void 0&&(!t||t.v7_relativeSplatPath),t&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}function eye(e){return j6(e.context)}function oK(e){let{basename:t="/",children:s=null,location:r,navigationType:i=Ws.Pop,navigator:n,static:o=!1,future:a}=e;Fh()&&Nt(!1);let l=t.replace(/^\/*/,"/"),u=b.useMemo(()=>({basename:l,navigator:n,static:o,future:tf({v7_relativeSplatPath:!1},a)}),[l,a,n,o]);typeof r=="string"&&(r=Ia(r));let{pathname:h="/",search:p="",hash:g="",state:m=null,key:C="default"}=r,v=b.useMemo(()=>{let w=du(h,l);return w==null?null:{location:{pathname:w,search:p,hash:g,state:m,key:C},navigationType:i}},[l,h,p,g,m,C,i]);return v==null?null:b.createElement(zl.Provider,{value:u},b.createElement(Gb.Provider,{children:s,value:v}))}new Promise(()=>{});function aK(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:b.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:b.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:b.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** * React Router DOM v6.30.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 */function oh(){return oh=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(s[i]=e[i]);return s}function cK(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function uK(e,t){return e.button===0&&(!t||t==="_self")&&!cK(e)}function iw(e){return e===void 0&&(e=""),new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,s)=>{let r=e[s];return t.concat(Array.isArray(r)?r.map(i=>[s,i]):[[s,r]])},[]))}function dK(e,t){let s=iw(e);return t&&t.forEach((r,i)=>{s.has(i)||t.getAll(i).forEach(n=>{s.append(i,n)})}),s}const hK=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],pK="6";try{window.__reactRouterVersion=pK}catch{}function tye(e,t){return x6({basename:void 0,future:oh({},void 0,{v7_prependBasename:!0}),history:Kj({window:void 0}),hydrationData:gK(),routes:e,mapRouteProperties:aK,dataStrategy:void 0,patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function gK(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=oh({},t,{errors:fK(t.errors)})),t}function fK(e){if(!e)return null;let t=Object.entries(e),s={};for(let[r,i]of t)if(i&&i.__type==="RouteErrorResponse")s[r]=new ef(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let n=window[i.__subType];if(typeof n=="function")try{let o=new n(i.message);o.stack="",s[r]=o}catch{}}if(s[r]==null){let n=new Error(i.message);n.stack="",s[r]=n}}else s[r]=i;return s}const mK=b.createContext({isTransitioning:!1}),CK=b.createContext(new Map),vK="startTransition",JF=_g[vK],yK="flushSync",ZF=qH[yK];function wK(e){JF?JF(e):e()}function pd(e){ZF?ZF(e):e()}class bK{constructor(){this.status="pending",this.promise=new Promise((t,s)=>{this.resolve=r=>{this.status==="pending"&&(this.status="resolved",t(r))},this.reject=r=>{this.status==="pending"&&(this.status="rejected",s(r))}})}}function sye(e){let{fallbackElement:t,router:s,future:r}=e,[i,n]=b.useState(s.state),[o,a]=b.useState(),[l,u]=b.useState({isTransitioning:!1}),[h,p]=b.useState(),[g,m]=b.useState(),[C,v]=b.useState(),w=b.useRef(new Map),{v7_startTransition:S}=r||{},P=b.useCallback(A=>{S?wK(A):A()},[S]),T=b.useCallback((A,G)=>{let{deletedFetchers:L,flushSync:O,viewTransitionOpts:N}=G;A.fetchers.forEach(($,q)=>{$.data!==void 0&&w.current.set(q,$.data)}),L.forEach($=>w.current.delete($));let H=s.window==null||s.window.document==null||typeof s.window.document.startViewTransition!="function";if(!N||H){O?pd(()=>n(A)):P(()=>n(A));return}if(O){pd(()=>{g&&(h&&h.resolve(),g.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:N.currentLocation,nextLocation:N.nextLocation})});let $=s.window.document.startViewTransition(()=>{pd(()=>n(A))});$.finished.finally(()=>{pd(()=>{p(void 0),m(void 0),a(void 0),u({isTransitioning:!1})})}),pd(()=>m($));return}g?(h&&h.resolve(),g.skipTransition(),v({state:A,currentLocation:N.currentLocation,nextLocation:N.nextLocation})):(a(A),u({isTransitioning:!0,flushSync:!1,currentLocation:N.currentLocation,nextLocation:N.nextLocation}))},[s.window,g,h,w,P]);b.useLayoutEffect(()=>s.subscribe(T),[s,T]),b.useEffect(()=>{l.isTransitioning&&!l.flushSync&&p(new bK)},[l]),b.useEffect(()=>{if(h&&o&&s.window){let A=o,G=h.promise,L=s.window.document.startViewTransition(async()=>{P(()=>n(A)),await G});L.finished.finally(()=>{p(void 0),m(void 0),a(void 0),u({isTransitioning:!1})}),m(L)}},[P,o,h,s.window]),b.useEffect(()=>{h&&o&&i.location.key===o.location.key&&h.resolve()},[h,g,i.location,o]),b.useEffect(()=>{!l.isTransitioning&&C&&(a(C.state),u({isTransitioning:!0,flushSync:!1,currentLocation:C.currentLocation,nextLocation:C.nextLocation}),v(void 0))},[l.isTransitioning,C]),b.useEffect(()=>{},[]);let F=b.useMemo(()=>({createHref:s.createHref,encodeLocation:s.encodeLocation,go:A=>s.navigate(A),push:(A,G,L)=>s.navigate(A,{state:G,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(A,G,L)=>s.navigate(A,{replace:!0,state:G,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[s]),E=s.basename||"/",D=b.useMemo(()=>({router:s,navigator:F,static:!1,basename:E}),[s,F,E]),R=b.useMemo(()=>({v7_relativeSplatPath:s.future.v7_relativeSplatPath}),[s.future.v7_relativeSplatPath]);return b.useEffect(()=>nK(r,s.future),[r,s.future]),b.createElement(b.Fragment,null,b.createElement(rm.Provider,{value:D},b.createElement(_D.Provider,{value:i},b.createElement(CK.Provider,{value:w.current},b.createElement(mK.Provider,{value:l},b.createElement(oK,{basename:E,location:i.location,navigationType:i.historyAction,navigator:F,future:R},i.initialized||s.future.v7_partialHydration?b.createElement(SK,{routes:s.routes,future:s.future,state:i}):t))))),null)}const SK=b.memo(xK);function xK(e){let{routes:t,future:s,state:r}=e;return K6(t,void 0,r,s)}const RK=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",PK=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rye=b.forwardRef(function(t,s){let{onClick:r,relative:i,reloadDocument:n,replace:o,state:a,target:l,to:u,preventScrollReset:h,viewTransition:p}=t,g=lK(t,hK),{basename:m}=b.useContext(zl),C,v=!1;if(typeof u=="string"&&PK.test(u)&&(C=u,RK))try{let T=new URL(window.location.href),F=u.startsWith("//")?new URL(T.protocol+u):new URL(u),E=du(F.pathname,m);F.origin===T.origin&&E!=null?u=E+F.search+F.hash:v=!0}catch{}let w=_6(u,{relative:i}),S=FK(u,{replace:o,state:a,target:l,preventScrollReset:h,relative:i,viewTransition:p});function P(T){r&&r(T),T.defaultPrevented||S(T)}return b.createElement("a",oh({},g,{href:C||w,onClick:v||n?r:P,ref:s,target:l}))});var eE;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(eE||(eE={}));var tE;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(tE||(tE={}));function FK(e,t){let{target:s,replace:r,state:i,preventScrollReset:n,relative:o,viewTransition:a}=t===void 0?{}:t,l=jD(),u=Eh(),h=KD(e,{relative:o});return b.useCallback(p=>{if(uK(p,s)){p.preventDefault();let g=r!==void 0?r:Tl(u)===Tl(h);l(e,{replace:g,state:i,preventScrollReset:n,relative:o,viewTransition:a})}},[u,l,h,r,i,s,e,n,o,a])}function iye(e){let t=b.useRef(iw(e)),s=b.useRef(!1),r=Eh(),i=b.useMemo(()=>dK(r.search,s.current?null:t.current),[r.search]),n=jD(),o=b.useCallback((a,l)=>{const u=iw(typeof a=="function"?a(i):a);s.current=!0,n("?"+u,l)},[n,i]);return[i,o]}var Yv={};const EK=Mo(sW);var sE;function TK(){return sE||(sE=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=EK}(Yv)),Yv}function QD(e,t){return function(){return e.apply(t,arguments)}}const{toString:MK}=Object.prototype,{getPrototypeOf:Nb}=Object,{iterator:im,toStringTag:JD}=Symbol,nm=(e=>t=>{const s=MK.call(t);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),wn=e=>(e=e.toLowerCase(),t=>nm(t)===e),om=e=>t=>typeof t===e,{isArray:hu}=Array,ah=om("undefined");function DK(e){return e!==null&&!ah(e)&&e.constructor!==null&&!ah(e.constructor)&&ti(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const ZD=wn("ArrayBuffer");function AK(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&ZD(e.buffer),t}const IK=om("string"),ti=om("function"),eA=om("number"),am=e=>e!==null&&typeof e=="object",kK=e=>e===!0||e===!1,Tg=e=>{if(nm(e)!=="object")return!1;const t=Nb(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(JD in e)&&!(im in e)},LK=wn("Date"),OK=wn("File"),GK=wn("Blob"),NK=wn("FileList"),BK=e=>am(e)&&ti(e.pipe),VK=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ti(e.append)&&((t=nm(e))==="formdata"||t==="object"&&ti(e.toString)&&e.toString()==="[object FormData]"))},HK=wn("URLSearchParams"),[zK,WK,_K,$K]=["ReadableStream","Request","Response","Headers"].map(wn),UK=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Th(e,t,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),hu(e))for(r=0,i=e.length;r0;)if(i=s[r],t===i.toLowerCase())return i;return null}const hl=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,sA=e=>!ah(e)&&e!==hl;function nw(){const{caseless:e}=sA(this)&&this||{},t={},s=(r,i)=>{const n=e&&tA(t,i)||i;Tg(t[n])&&Tg(r)?t[n]=nw(t[n],r):Tg(r)?t[n]=nw({},r):hu(r)?t[n]=r.slice():t[n]=r};for(let r=0,i=arguments.length;r(Th(t,(i,n)=>{s&&ti(i)?e[n]=QD(i,s):e[n]=i},{allOwnKeys:r}),e),KK=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qK=(e,t,s,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),s&&Object.assign(e.prototype,s)},YK=(e,t,s,r)=>{let i,n,o;const a={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),n=i.length;n-- >0;)o=i[n],(!r||r(o,e,t))&&!a[o]&&(t[o]=e[o],a[o]=!0);e=s!==!1&&Nb(e)}while(e&&(!s||s(e,t))&&e!==Object.prototype);return t},XK=(e,t,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=t.length;const r=e.indexOf(t,s);return r!==-1&&r===s},QK=e=>{if(!e)return null;if(hu(e))return e;let t=e.length;if(!eA(t))return null;const s=new Array(t);for(;t-- >0;)s[t]=e[t];return s},JK=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Nb(Uint8Array)),ZK=(e,t)=>{const r=(e&&e[im]).call(e);let i;for(;(i=r.next())&&!i.done;){const n=i.value;t.call(e,n[0],n[1])}},e8=(e,t)=>{let s;const r=[];for(;(s=e.exec(t))!==null;)r.push(s);return r},t8=wn("HTMLFormElement"),s8=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(s,r,i){return r.toUpperCase()+i}),rE=(({hasOwnProperty:e})=>(t,s)=>e.call(t,s))(Object.prototype),r8=wn("RegExp"),rA=(e,t)=>{const s=Object.getOwnPropertyDescriptors(e),r={};Th(s,(i,n)=>{let o;(o=t(i,n,e))!==!1&&(r[n]=o||i)}),Object.defineProperties(e,r)},i8=e=>{rA(e,(t,s)=>{if(ti(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const r=e[s];if(ti(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},n8=(e,t)=>{const s={},r=i=>{i.forEach(n=>{s[n]=!0})};return hu(e)?r(e):r(String(e).split(t)),s},o8=()=>{},a8=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function l8(e){return!!(e&&ti(e.append)&&e[JD]==="FormData"&&e[im])}const c8=e=>{const t=new Array(10),s=(r,i)=>{if(am(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const n=hu(r)?[]:{};return Th(r,(o,a)=>{const l=s(o,i+1);!ah(l)&&(n[a]=l)}),t[i]=void 0,n}}return r};return s(e,0)},u8=wn("AsyncFunction"),d8=e=>e&&(am(e)||ti(e))&&ti(e.then)&&ti(e.catch),iA=((e,t)=>e?setImmediate:t?((s,r)=>(hl.addEventListener("message",({source:i,data:n})=>{i===hl&&n===s&&r.length&&r.shift()()},!1),i=>{r.push(i),hl.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",ti(hl.postMessage)),h8=typeof queueMicrotask<"u"?queueMicrotask.bind(hl):typeof process<"u"&&process.nextTick||iA,p8=e=>e!=null&&ti(e[im]),de={isArray:hu,isArrayBuffer:ZD,isBuffer:DK,isFormData:VK,isArrayBufferView:AK,isString:IK,isNumber:eA,isBoolean:kK,isObject:am,isPlainObject:Tg,isReadableStream:zK,isRequest:WK,isResponse:_K,isHeaders:$K,isUndefined:ah,isDate:LK,isFile:OK,isBlob:GK,isRegExp:r8,isFunction:ti,isStream:BK,isURLSearchParams:HK,isTypedArray:JK,isFileList:NK,forEach:Th,merge:nw,extend:jK,trim:UK,stripBOM:KK,inherits:qK,toFlatObject:YK,kindOf:nm,kindOfTest:wn,endsWith:XK,toArray:QK,forEachEntry:ZK,matchAll:e8,isHTMLForm:t8,hasOwnProperty:rE,hasOwnProp:rE,reduceDescriptors:rA,freezeMethods:i8,toObjectSet:n8,toCamelCase:s8,noop:o8,toFiniteNumber:a8,findKey:tA,global:hl,isContextDefined:sA,isSpecCompliantForm:l8,toJSONObject:c8,isAsyncFn:u8,isThenable:d8,setImmediate:iA,asap:h8,isIterable:p8};function At(e,t,s,r,i){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),s&&(this.config=s),r&&(this.request=r),i&&(this.response=i,this.status=i.status?i.status:null)}de.inherits(At,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:de.toJSONObject(this.config),code:this.code,status:this.status}}});const nA=At.prototype,oA={};["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=>{oA[e]={value:e}});Object.defineProperties(At,oA);Object.defineProperty(nA,"isAxiosError",{value:!0});At.from=(e,t,s,r,i,n)=>{const o=Object.create(nA);return de.toFlatObject(e,o,function(l){return l!==Error.prototype},a=>a!=="isAxiosError"),At.call(o,e.message,t,s,r,i),o.cause=e,o.name=e.name,n&&Object.assign(o,n),o};const g8=null;function ow(e){return de.isPlainObject(e)||de.isArray(e)}function aA(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function iE(e,t,s){return e?e.concat(t).map(function(i,n){return i=aA(i),!s&&n?"["+i+"]":i}).join(s?".":""):t}function f8(e){return de.isArray(e)&&!e.some(ow)}const m8=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function lm(e,t,s){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,s=de.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(v,w){return!de.isUndefined(w[v])});const r=s.metaTokens,i=s.visitor||h,n=s.dots,o=s.indexes,l=(s.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(i))throw new TypeError("visitor must be a function");function u(C){if(C===null)return"";if(de.isDate(C))return C.toISOString();if(!l&&de.isBlob(C))throw new At("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(C)||de.isTypedArray(C)?l&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function h(C,v,w){let S=C;if(C&&!w&&typeof C=="object"){if(de.endsWith(v,"{}"))v=r?v:v.slice(0,-2),C=JSON.stringify(C);else if(de.isArray(C)&&f8(C)||(de.isFileList(C)||de.endsWith(v,"[]"))&&(S=de.toArray(C)))return v=aA(v),S.forEach(function(T,F){!(de.isUndefined(T)||T===null)&&t.append(o===!0?iE([v],F,n):o===null?v:v+"[]",u(T))}),!1}return ow(C)?!0:(t.append(iE(w,v,n),u(C)),!1)}const p=[],g=Object.assign(m8,{defaultVisitor:h,convertValue:u,isVisitable:ow});function m(C,v){if(!de.isUndefined(C)){if(p.indexOf(C)!==-1)throw Error("Circular reference detected in "+v.join("."));p.push(C),de.forEach(C,function(S,P){(!(de.isUndefined(S)||S===null)&&i.call(t,S,de.isString(P)?P.trim():P,v,g))===!0&&m(S,v?v.concat(P):[P])}),p.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return m(e),t}function nE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Bb(e,t){this._pairs=[],e&&lm(e,this,t)}const lA=Bb.prototype;lA.append=function(t,s){this._pairs.push([t,s])};lA.toString=function(t){const s=t?function(r){return t.call(this,r,nE)}:nE;return this._pairs.map(function(i){return s(i[0])+"="+s(i[1])},"").join("&")};function C8(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function cA(e,t,s){if(!t)return e;const r=s&&s.encode||C8;de.isFunction(s)&&(s={serialize:s});const i=s&&s.serialize;let n;if(i?n=i(t,s):n=de.isURLSearchParams(t)?t.toString():new Bb(t,s).toString(r),n){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class oE{constructor(){this.handlers=[]}use(t,s,r){return this.handlers.push({fulfilled:t,rejected:s,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){de.forEach(this.handlers,function(r){r!==null&&t(r)})}}const uA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},v8=typeof URLSearchParams<"u"?URLSearchParams:Bb,y8=typeof FormData<"u"?FormData:null,w8=typeof Blob<"u"?Blob:null,b8={isBrowser:!0,classes:{URLSearchParams:v8,FormData:y8,Blob:w8},protocols:["http","https","file","blob","url","data"]},Vb=typeof window<"u"&&typeof document<"u",aw=typeof navigator=="object"&&navigator||void 0,S8=Vb&&(!aw||["ReactNative","NativeScript","NS"].indexOf(aw.product)<0),x8=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",R8=Vb&&window.location.href||"http://localhost",P8=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vb,hasStandardBrowserEnv:S8,hasStandardBrowserWebWorkerEnv:x8,navigator:aw,origin:R8},Symbol.toStringTag,{value:"Module"})),Pr={...P8,...b8};function F8(e,t){return lm(e,new Pr.classes.URLSearchParams,Object.assign({visitor:function(s,r,i,n){return Pr.isNode&&de.isBuffer(s)?(this.append(r,s.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function E8(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function T8(e){const t={},s=Object.keys(e);let r;const i=s.length;let n;for(r=0;r=s.length;return o=!o&&de.isArray(i)?i.length:o,l?(de.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!a):((!i[o]||!de.isObject(i[o]))&&(i[o]=[]),t(s,r,i[o],n)&&de.isArray(i[o])&&(i[o]=T8(i[o])),!a)}if(de.isFormData(e)&&de.isFunction(e.entries)){const s={};return de.forEachEntry(e,(r,i)=>{t(E8(r),i,s,0)}),s}return null}function M8(e,t,s){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(s||JSON.stringify)(e)}const Mh={transitional:uA,adapter:["xhr","http","fetch"],transformRequest:[function(t,s){const r=s.getContentType()||"",i=r.indexOf("application/json")>-1,n=de.isObject(t);if(n&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return i?JSON.stringify(dA(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return s.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let a;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return F8(t,this.formSerializer).toString();if((a=de.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return lm(a?{"files[]":t}:t,l&&new l,this.formSerializer)}}return n||i?(s.setContentType("application/json",!1),M8(t)):t}],transformResponse:[function(t){const s=this.transitional||Mh.transitional,r=s&&s.forcedJSONParsing,i=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(r&&!this.responseType||i)){const o=!(s&&s.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(a){if(o)throw a.name==="SyntaxError"?At.from(a,At.ERR_BAD_RESPONSE,this,null,this.response):a}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Pr.classes.FormData,Blob:Pr.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Mh.headers[e]={}});const D8=de.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"]),A8=e=>{const t={};let s,r,i;return e&&e.split(` `).forEach(function(o){i=o.indexOf(":"),s=o.substring(0,i).trim().toLowerCase(),r=o.substring(i+1).trim(),!(!s||t[s]&&D8[s])&&(s==="set-cookie"?t[s]?t[s].push(r):t[s]=[r]:t[s]=t[s]?t[s]+", "+r:r)}),t},aE=Symbol("internals");function gd(e){return e&&String(e).trim().toLowerCase()}function Mg(e){return e===!1||e==null?e:de.isArray(e)?e.map(Mg):String(e)}function I8(e){const t=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=s.exec(e);)t[r[1]]=r[2];return t}const k8=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xv(e,t,s,r,i){if(de.isFunction(r))return r.call(this,t,s);if(i&&(t=s),!!de.isString(t)){if(de.isString(r))return t.indexOf(r)!==-1;if(de.isRegExp(r))return r.test(t)}}function L8(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,s,r)=>s.toUpperCase()+r)}function O8(e,t){const s=de.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+s,{value:function(i,n,o){return this[r].call(this,t,i,n,o)},configurable:!0})})}let si=class{constructor(t){t&&this.set(t)}set(t,s,r){const i=this;function n(a,l,u){const h=gd(l);if(!h)throw new Error("header name must be a non-empty string");const p=de.findKey(i,h);(!p||i[p]===void 0||u===!0||u===void 0&&i[p]!==!1)&&(i[p||l]=Mg(a))}const o=(a,l)=>de.forEach(a,(u,h)=>n(u,h,l));if(de.isPlainObject(t)||t instanceof this.constructor)o(t,s);else if(de.isString(t)&&(t=t.trim())&&!k8(t))o(A8(t),s);else if(de.isObject(t)&&de.isIterable(t)){let a={},l,u;for(const h of t){if(!de.isArray(h))throw TypeError("Object iterator must return a key-value pair");a[u=h[0]]=(l=a[u])?de.isArray(l)?[...l,h[1]]:[l,h[1]]:h[1]}o(a,s)}else t!=null&&n(s,t,r);return this}get(t,s){if(t=gd(t),t){const r=de.findKey(this,t);if(r){const i=this[r];if(!s)return i;if(s===!0)return I8(i);if(de.isFunction(s))return s.call(this,i,r);if(de.isRegExp(s))return s.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,s){if(t=gd(t),t){const r=de.findKey(this,t);return!!(r&&this[r]!==void 0&&(!s||Xv(this,this[r],r,s)))}return!1}delete(t,s){const r=this;let i=!1;function n(o){if(o=gd(o),o){const a=de.findKey(r,o);a&&(!s||Xv(r,r[a],a,s))&&(delete r[a],i=!0)}}return de.isArray(t)?t.forEach(n):n(t),i}clear(t){const s=Object.keys(this);let r=s.length,i=!1;for(;r--;){const n=s[r];(!t||Xv(this,this[n],n,t,!0))&&(delete this[n],i=!0)}return i}normalize(t){const s=this,r={};return de.forEach(this,(i,n)=>{const o=de.findKey(r,n);if(o){s[o]=Mg(i),delete s[n];return}const a=t?L8(n):String(n).trim();a!==n&&delete s[n],s[a]=Mg(i),r[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const s=Object.create(null);return de.forEach(this,(r,i)=>{r!=null&&r!==!1&&(s[i]=t&&de.isArray(r)?r.join(", "):r)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,s])=>t+": "+s).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,...s){const r=new this(t);return s.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[aE]=this[aE]={accessors:{}}).accessors,i=this.prototype;function n(o){const a=gd(o);r[a]||(O8(i,o),r[a]=!0)}return de.isArray(t)?t.forEach(n):n(t),this}};si.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(si.prototype,({value:e},t)=>{let s=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[s]=r}}});de.freezeMethods(si);function Qv(e,t){const s=this||Mh,r=t||s,i=si.from(r.headers);let n=r.data;return de.forEach(e,function(a){n=a.call(s,n,i.normalize(),t?t.status:void 0)}),i.normalize(),n}function hA(e){return!!(e&&e.__CANCEL__)}function pu(e,t,s){At.call(this,e??"canceled",At.ERR_CANCELED,t,s),this.name="CanceledError"}de.inherits(pu,At,{__CANCEL__:!0});function pA(e,t,s){const r=s.config.validateStatus;!s.status||!r||r(s.status)?e(s):t(new At("Request failed with status code "+s.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function G8(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function N8(e,t){e=e||10;const s=new Array(e),r=new Array(e);let i=0,n=0,o;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),h=r[n];o||(o=u),s[i]=l,r[i]=u;let p=n,g=0;for(;p!==i;)g+=s[p++],p=p%e;if(i=(i+1)%e,i===n&&(n=(n+1)%e),u-o{s=h,i=null,n&&(clearTimeout(n),n=null),e.apply(null,u)};return[(...u)=>{const h=Date.now(),p=h-s;p>=r?o(u,h):(i=u,n||(n=setTimeout(()=>{n=null,o(i)},r-p)))},()=>i&&o(i)]}const sf=(e,t,s=3)=>{let r=0;const i=N8(50,250);return B8(n=>{const o=n.loaded,a=n.lengthComputable?n.total:void 0,l=o-r,u=i(l),h=o<=a;r=o;const p={loaded:o,total:a,progress:a?o/a:void 0,bytes:l,rate:u||void 0,estimated:u&&a&&h?(a-o)/u:void 0,event:n,lengthComputable:a!=null,[t?"download":"upload"]:!0};e(p)},s)},lE=(e,t)=>{const s=e!=null;return[r=>t[0]({lengthComputable:s,total:e,loaded:r}),t[1]]},cE=e=>(...t)=>de.asap(()=>e(...t)),V8=Pr.hasStandardBrowserEnv?((e,t)=>s=>(s=new URL(s,Pr.origin),e.protocol===s.protocol&&e.host===s.host&&(t||e.port===s.port)))(new URL(Pr.origin),Pr.navigator&&/(msie|trident)/i.test(Pr.navigator.userAgent)):()=>!0,H8=Pr.hasStandardBrowserEnv?{write(e,t,s,r,i,n){const o=[e+"="+encodeURIComponent(t)];de.isNumber(s)&&o.push("expires="+new Date(s).toGMTString()),de.isString(r)&&o.push("path="+r),de.isString(i)&&o.push("domain="+i),n===!0&&o.push("secure"),document.cookie=o.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 z8(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function W8(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function gA(e,t,s){let r=!z8(t);return e&&(r||s==!1)?W8(e,t):t}const uE=e=>e instanceof si?{...e}:e;function Ml(e,t){t=t||{};const s={};function r(u,h,p,g){return de.isPlainObject(u)&&de.isPlainObject(h)?de.merge.call({caseless:g},u,h):de.isPlainObject(h)?de.merge({},h):de.isArray(h)?h.slice():h}function i(u,h,p,g){if(de.isUndefined(h)){if(!de.isUndefined(u))return r(void 0,u,p,g)}else return r(u,h,p,g)}function n(u,h){if(!de.isUndefined(h))return r(void 0,h)}function o(u,h){if(de.isUndefined(h)){if(!de.isUndefined(u))return r(void 0,u)}else return r(void 0,h)}function a(u,h,p){if(p in t)return r(u,h);if(p in e)return r(void 0,u)}const l={url:n,method:n,data:n,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:a,headers:(u,h,p)=>i(uE(u),uE(h),p,!0)};return de.forEach(Object.keys(Object.assign({},e,t)),function(h){const p=l[h]||i,g=p(e[h],t[h],h);de.isUndefined(g)&&p!==a||(s[h]=g)}),s}const fA=e=>{const t=Ml({},e);let{data:s,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:n,headers:o,auth:a}=t;t.headers=o=si.from(o),t.url=cA(gA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&o.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let l;if(de.isFormData(s)){if(Pr.hasStandardBrowserEnv||Pr.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...h]=l?l.split(";").map(p=>p.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...h].join("; "))}}if(Pr.hasStandardBrowserEnv&&(r&&de.isFunction(r)&&(r=r(t)),r||r!==!1&&V8(t.url))){const u=i&&n&&H8.read(n);u&&o.set(i,u)}return t},_8=typeof XMLHttpRequest<"u",$8=_8&&function(e){return new Promise(function(s,r){const i=fA(e);let n=i.data;const o=si.from(i.headers).normalize();let{responseType:a,onUploadProgress:l,onDownloadProgress:u}=i,h,p,g,m,C;function v(){m&&m(),C&&C(),i.cancelToken&&i.cancelToken.unsubscribe(h),i.signal&&i.signal.removeEventListener("abort",h)}let w=new XMLHttpRequest;w.open(i.method.toUpperCase(),i.url,!0),w.timeout=i.timeout;function S(){if(!w)return;const T=si.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),E={data:!a||a==="text"||a==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:T,config:e,request:w};pA(function(R){s(R),v()},function(R){r(R),v()},E),w=null}"onloadend"in w?w.onloadend=S:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(S)},w.onabort=function(){w&&(r(new At("Request aborted",At.ECONNABORTED,e,w)),w=null)},w.onerror=function(){r(new At("Network Error",At.ERR_NETWORK,e,w)),w=null},w.ontimeout=function(){let F=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const E=i.transitional||uA;i.timeoutErrorMessage&&(F=i.timeoutErrorMessage),r(new At(F,E.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,e,w)),w=null},n===void 0&&o.setContentType(null),"setRequestHeader"in w&&de.forEach(o.toJSON(),function(F,E){w.setRequestHeader(E,F)}),de.isUndefined(i.withCredentials)||(w.withCredentials=!!i.withCredentials),a&&a!=="json"&&(w.responseType=i.responseType),u&&([g,C]=sf(u,!0),w.addEventListener("progress",g)),l&&w.upload&&([p,m]=sf(l),w.upload.addEventListener("progress",p),w.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(h=T=>{w&&(r(!T||T.type?new pu(null,e,w):T),w.abort(),w=null)},i.cancelToken&&i.cancelToken.subscribe(h),i.signal&&(i.signal.aborted?h():i.signal.addEventListener("abort",h)));const P=G8(i.url);if(P&&Pr.protocols.indexOf(P)===-1){r(new At("Unsupported protocol "+P+":",At.ERR_BAD_REQUEST,e));return}w.send(n||null)})},U8=(e,t)=>{const{length:s}=e=e?e.filter(Boolean):[];if(t||s){let r=new AbortController,i;const n=function(u){if(!i){i=!0,a();const h=u instanceof Error?u:this.reason;r.abort(h instanceof At?h:new pu(h instanceof Error?h.message:h))}};let o=t&&setTimeout(()=>{o=null,n(new At(`timeout ${t} of ms exceeded`,At.ETIMEDOUT))},t);const a=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(n):u.removeEventListener("abort",n)}),e=null)};e.forEach(u=>u.addEventListener("abort",n));const{signal:l}=r;return l.unsubscribe=()=>de.asap(a),l}},j8=function*(e,t){let s=e.byteLength;if(s{const i=K8(e,t);let n=0,o,a=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:h}=await i.next();if(u){a(),l.close();return}let p=h.byteLength;if(s){let g=n+=p;s(g)}l.enqueue(new Uint8Array(h))}catch(u){throw a(u),u}},cancel(l){return a(l),i.return()}},{highWaterMark:2})},cm=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",mA=cm&&typeof ReadableStream=="function",Y8=cm&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),CA=(e,...t)=>{try{return!!e(...t)}catch{return!1}},X8=mA&&CA(()=>{let e=!1;const t=new Request(Pr.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),hE=64*1024,lw=mA&&CA(()=>de.isReadableStream(new Response("").body)),rf={stream:lw&&(e=>e.body)};cm&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!rf[t]&&(rf[t]=de.isFunction(e[t])?s=>s[t]():(s,r)=>{throw new At(`Response type '${t}' is not supported`,At.ERR_NOT_SUPPORT,r)})})})(new Response);const Q8=async e=>{if(e==null)return 0;if(de.isBlob(e))return e.size;if(de.isSpecCompliantForm(e))return(await new Request(Pr.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(de.isArrayBufferView(e)||de.isArrayBuffer(e))return e.byteLength;if(de.isURLSearchParams(e)&&(e=e+""),de.isString(e))return(await Y8(e)).byteLength},J8=async(e,t)=>{const s=de.toFiniteNumber(e.getContentLength());return s??Q8(t)},Z8=cm&&(async e=>{let{url:t,method:s,data:r,signal:i,cancelToken:n,timeout:o,onDownloadProgress:a,onUploadProgress:l,responseType:u,headers:h,withCredentials:p="same-origin",fetchOptions:g}=fA(e);u=u?(u+"").toLowerCase():"text";let m=U8([i,n&&n.toAbortSignal()],o),C;const v=m&&m.unsubscribe&&(()=>{m.unsubscribe()});let w;try{if(l&&X8&&s!=="get"&&s!=="head"&&(w=await J8(h,r))!==0){let E=new Request(t,{method:"POST",body:r,duplex:"half"}),D;if(de.isFormData(r)&&(D=E.headers.get("content-type"))&&h.setContentType(D),E.body){const[R,A]=lE(w,sf(cE(l)));r=dE(E.body,hE,R,A)}}de.isString(p)||(p=p?"include":"omit");const S="credentials"in Request.prototype;C=new Request(t,{...g,signal:m,method:s.toUpperCase(),headers:h.normalize().toJSON(),body:r,duplex:"half",credentials:S?p:void 0});let P=await fetch(C);const T=lw&&(u==="stream"||u==="response");if(lw&&(a||T&&v)){const E={};["status","statusText","headers"].forEach(G=>{E[G]=P[G]});const D=de.toFiniteNumber(P.headers.get("content-length")),[R,A]=a&&lE(D,sf(cE(a),!0))||[];P=new Response(dE(P.body,hE,R,()=>{A&&A(),v&&v()}),E)}u=u||"text";let F=await rf[de.findKey(rf,u)||"text"](P,e);return!T&&v&&v(),await new Promise((E,D)=>{pA(E,D,{data:F,headers:si.from(P.headers),status:P.status,statusText:P.statusText,config:e,request:C})})}catch(S){throw v&&v(),S&&S.name==="TypeError"&&/Load failed|fetch/i.test(S.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,e,C),{cause:S.cause||S}):At.from(S,S&&S.code,e,C)}}),cw={http:g8,xhr:$8,fetch:Z8};de.forEach(cw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const pE=e=>`- ${e}`,e7=e=>de.isFunction(e)||e===null||e===!1,vA={getAdapter:e=>{e=de.isArray(e)?e:[e];const{length:t}=e;let s,r;const i={};for(let n=0;n`adapter ${a} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?n.length>1?`since : `+n.map(pE).join(` `):" "+pE(n[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:cw};function Jv(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pu(null,e)}function gE(e){return Jv(e),e.headers=si.from(e.headers),e.data=Qv.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),vA.getAdapter(e.adapter||Mh.adapter)(e).then(function(r){return Jv(e),r.data=Qv.call(e,e.transformResponse,r),r.headers=si.from(r.headers),r},function(r){return hA(r)||(Jv(e),r&&r.response&&(r.response.data=Qv.call(e,e.transformResponse,r.response),r.response.headers=si.from(r.response.headers))),Promise.reject(r)})}const yA="1.9.0",um={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{um[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const fE={};um.transitional=function(t,s,r){function i(n,o){return"[Axios v"+yA+"] Transitional option '"+n+"'"+o+(r?". "+r:"")}return(n,o,a)=>{if(t===!1)throw new At(i(o," has been removed"+(s?" in "+s:"")),At.ERR_DEPRECATED);return s&&!fE[o]&&(fE[o]=!0,console.warn(i(o," has been deprecated since v"+s+" and will be removed in the near future"))),t?t(n,o,a):!0}};um.spelling=function(t){return(s,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function t7(e,t,s){if(typeof e!="object")throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const n=r[i],o=t[n];if(o){const a=e[n],l=a===void 0||o(a,n,e);if(l!==!0)throw new At("option "+n+" must be "+l,At.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new At("Unknown option "+n,At.ERR_BAD_OPTION)}}const Dg={assertOptions:t7,validators:um},An=Dg.validators;let vl=class{constructor(t){this.defaults=t||{},this.interceptors={request:new oE,response:new oE}}async request(t,s){try{return await this._request(t,s)}catch(r){if(r instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const n=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?n&&!String(r.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+n):r.stack=n}catch{}}throw r}}_request(t,s){typeof t=="string"?(s=s||{},s.url=t):s=t||{},s=Ml(this.defaults,s);const{transitional:r,paramsSerializer:i,headers:n}=s;r!==void 0&&Dg.assertOptions(r,{silentJSONParsing:An.transitional(An.boolean),forcedJSONParsing:An.transitional(An.boolean),clarifyTimeoutError:An.transitional(An.boolean)},!1),i!=null&&(de.isFunction(i)?s.paramsSerializer={serialize:i}:Dg.assertOptions(i,{encode:An.function,serialize:An.function},!0)),s.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?s.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:s.allowAbsoluteUrls=!0),Dg.assertOptions(s,{baseUrl:An.spelling("baseURL"),withXsrfToken:An.spelling("withXSRFToken")},!0),s.method=(s.method||this.defaults.method||"get").toLowerCase();let o=n&&de.merge(n.common,n[s.method]);n&&de.forEach(["delete","get","head","post","put","patch","common"],C=>{delete n[C]}),s.headers=si.concat(o,n);const a=[];let l=!0;this.interceptors.request.forEach(function(v){typeof v.runWhen=="function"&&v.runWhen(s)===!1||(l=l&&v.synchronous,a.unshift(v.fulfilled,v.rejected))});const u=[];this.interceptors.response.forEach(function(v){u.push(v.fulfilled,v.rejected)});let h,p=0,g;if(!l){const C=[gE.bind(this),void 0];for(C.unshift.apply(C,a),C.push.apply(C,u),g=C.length,h=Promise.resolve(s);p{if(!r._listeners)return;let n=r._listeners.length;for(;n-- >0;)r._listeners[n](i);r._listeners=null}),this.promise.then=i=>{let n;const o=new Promise(a=>{r.subscribe(a),n=a}).then(i);return o.cancel=function(){r.unsubscribe(n)},o},t(function(n,o,a){r.reason||(r.reason=new pu(n,o,a),s(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 s=this._listeners.indexOf(t);s!==-1&&this._listeners.splice(s,1)}toAbortSignal(){const t=new AbortController,s=r=>{t.abort(r)};return this.subscribe(s),t.signal.unsubscribe=()=>this.unsubscribe(s),t.signal}static source(){let t;return{token:new wA(function(i){t=i}),cancel:t}}};function r7(e){return function(s){return e.apply(null,s)}}function i7(e){return de.isObject(e)&&e.isAxiosError===!0}const uw={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(uw).forEach(([e,t])=>{uw[t]=e});function bA(e){const t=new vl(e),s=QD(vl.prototype.request,t);return de.extend(s,vl.prototype,t,{allOwnKeys:!0}),de.extend(s,t,null,{allOwnKeys:!0}),s.create=function(i){return bA(Ml(e,i))},s}const Us=bA(Mh);Us.Axios=vl;Us.CanceledError=pu;Us.CancelToken=s7;Us.isCancel=hA;Us.VERSION=yA;Us.toFormData=lm;Us.AxiosError=At;Us.Cancel=Us.CanceledError;Us.all=function(t){return Promise.all(t)};Us.spread=r7;Us.isAxiosError=i7;Us.mergeConfig=Ml;Us.AxiosHeaders=si;Us.formToJSON=e=>dA(de.isHTMLForm(e)?new FormData(e):e);Us.getAdapter=vA.getAdapter;Us.HttpStatusCode=uw;Us.default=Us;const{Axios:aye,AxiosError:lye,CanceledError:cye,isCancel:uye,CancelToken:dye,VERSION:hye,all:pye,Cancel:gye,isAxiosError:fye,spread:mye,toFormData:Cye,AxiosHeaders:vye,HttpStatusCode:yye,formToJSON:wye,getAdapter:bye,mergeConfig:Sye}=Us,xye=fr(U.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m0 4c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m0 14c-2.03 0-4.43-.82-6.14-2.88C7.55 15.8 9.68 15 12 15s4.45.8 6.14 2.12C16.43 19.18 14.03 20 12 20"}),"AccountCircle"),n7=e=>{const t=b.useRef(e);return b.useEffect(()=>{t.current=e}),t},o7=(e,t=100,s=!1)=>{const r=n7(e),i=b.useRef(),n=[t,s,r];function o(){i.current&&clearTimeout(i.current),i.current=void 0}b.useEffect(()=>o,n);function a(){i.current=void 0}return b.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&s)return i.current=setTimeout(a,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},n)},Rye=(e,t,s)=>{const r=b.useState(e);return[r[0],o7(r[1],t,s),r[1]]};var fd={},mE;function a7(){if(mE)return fd;mE=1;var e=Xw();Object.defineProperty(fd,"__esModule",{value:!0}),fd.default=void 0;var t=e(TK()),s=aM();return fd.default=(0,t.default)((0,s.jsx)("path",{d:"M5 20h14v-2H5zM19 9h-4V3H9v6H5l7 7z"}),"Download"),fd}var l7=a7();const Pye=nu(l7);var ka=class{constructor(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}setFrameworkOverrides(e){this.frameworkOverrides=e}getListeners(e,t,s){const r=t?this.allAsyncListeners:this.allSyncListeners;let i=r.get(e);return!i&&s&&(i=new Set,r.set(e,i)),i}noRegisteredListenersExist(){return this.allSyncListeners.size===0&&this.allAsyncListeners.size===0&&this.globalSyncListeners.size===0&&this.globalAsyncListeners.size===0}addEventListener(e,t,s=!1){this.getListeners(e,s,!0).add(t)}removeEventListener(e,t,s=!1){const r=this.getListeners(e,s,!1);r&&(r.delete(t),r.size===0&&(s?this.allAsyncListeners:this.allSyncListeners).delete(e))}addGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).add(e)}removeGlobalListener(e,t=!1){(t?this.globalAsyncListeners:this.globalSyncListeners).delete(e)}dispatchEvent(e){const t=e;this.dispatchToListeners(t,!0),this.dispatchToListeners(t,!1),this.firedEvents[t.type]=!0}dispatchEventOnce(e){this.firedEvents[e.type]||this.dispatchEvent(e)}dispatchToListeners(e,t){const s=e.type;if(t&&"event"in e){const a=e.event;a instanceof Event&&(e.eventPath=a.composedPath())}const r=(a,l)=>a.forEach(u=>{if(!l.has(u))return;const h=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>u(e)):()=>u(e);t?this.dispatchAsync(h):h()}),i=this.getListeners(s,t,!1)??new Set,n=new Set(i);n.size>0&&r(n,i),new Set(t?this.globalAsyncListeners:this.globalSyncListeners).forEach(a=>{const l=this.frameworkOverrides?()=>this.frameworkOverrides.wrapIncoming(()=>a(s,e)):()=>a(s,e);t?this.dispatchAsync(l):l()})}dispatchAsync(e){if(this.asyncFunctionsQueue.push(e),!this.scheduled){const t=()=>{window.setTimeout(this.flushAsyncQueue.bind(this),0)};this.frameworkOverrides?this.frameworkOverrides.wrapIncoming(t):t(),this.scheduled=!0}}flushAsyncQueue(){this.scheduled=!1;const e=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],e.forEach(t=>t())}};function c7(e,t){return t}function Hb(e){return(e==null?void 0:e.getLocaleTextFunc())??c7}function qi(e,t,s){s==null||typeof s=="string"&&s==""?zb(e,t):Yi(e,t,s)}function Yi(e,t,s){e.setAttribute(SA(t),s.toString())}function zb(e,t){e.removeAttribute(SA(t))}function SA(e){return`aria-${e}`}function hs(e,t){t?e.setAttribute("role",t):e.removeAttribute("role")}function u7(e){let t;return e==="asc"?t="ascending":e==="desc"?t="descending":e==="mixed"?t="other":t="none",t}function d7(e){return parseInt(e.getAttribute("aria-posinset"),10)}function h7(e){return e.getAttribute("aria-label")}function ps(e,t){qi(e,"label",t)}function Sa(e,t){qi(e,"labelledby",t)}function dm(e,t){qi(e,"describedby",t)}function xA(e,t){qi(e,"live",t)}function p7(e,t){qi(e,"atomic",t)}function g7(e,t){qi(e,"relevant",t)}function Dh(e,t){qi(e,"level",t)}function nf(e,t){qi(e,"disabled",t)}function Wb(e,t){qi(e,"hidden",t)}function RA(e,t){qi(e,"activedescendant",t)}function Br(e,t){Yi(e,"expanded",t)}function PA(e){zb(e,"expanded")}function hm(e,t){Yi(e,"setsize",t)}function pm(e,t){Yi(e,"posinset",t)}function f7(e,t){Yi(e,"multiselectable",t)}function FA(e,t){Yi(e,"rowcount",t)}function _b(e,t){Yi(e,"rowindex",t)}function EA(e,t){Yi(e,"colcount",t)}function $b(e,t){Yi(e,"colindex",t)}function TA(e,t){Yi(e,"colspan",t)}function MA(e,t){Yi(e,"sort",t)}function DA(e){zb(e,"sort")}function lh(e,t){qi(e,"selected",t)}function AA(e,t){Yi(e,"checked",t===void 0?"mixed":t)}function Ub(e,t){qi(e,"controls",t.id),Sa(t,e.id)}function jb(e,t){return t===void 0?e("ariaIndeterminate","indeterminate"):t===!0?e("ariaChecked","checked"):e("ariaUnchecked","unchecked")}var Zv,ey,ty,sy,ry,dw,hw,iy;function Wl(){return Zv===void 0&&(Zv=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Zv}function IA(){if(ey===void 0){const e=window;ey=!!e.chrome&&(!!e.chrome.webstore||!!e.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return ey}function kA(){return ty===void 0&&(ty=/(firefox)/i.test(navigator.userAgent)),ty}function LA(){return sy===void 0&&(sy=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),sy}function ya(){return ry===void 0&&(ry=/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1),ry}function pw(e){if(!e)return null;const t=e.tabIndex,s=e.getAttribute("tabIndex");return t===-1&&(s===null||s===""&&!kA())?null:t.toString()}function m7(){if(iy!==void 0)return iy;if(!document.body)return-1;let e=1e6;const t=kA()?6e6:1e9,s=document.createElement("div");for(document.body.appendChild(s);;){const r=e*2;if(s.style.height=r+"px",r>t||s.clientHeight!==r)break;e=r}return document.body.removeChild(s),iy=e,e}function C7(){return hw==null&&OA(),hw}function OA(){const e=document.body,t=document.createElement("div");t.style.width=t.style.height="100px",t.style.opacity="0",t.style.overflow="scroll",t.style.msOverflowStyle="scrollbar",t.style.position="absolute",e.appendChild(t);let s=t.offsetWidth-t.clientWidth;s===0&&t.clientWidth===0&&(s=null),t.parentNode&&t.parentNode.removeChild(t),s!=null&&(hw=s,dw=s===0)}function GA(){return dw==null&&OA(),dw}var ng;function of(e,t,s){const r=e.parentElement;let i=r&&r.firstChild;for(;i;)t&&i.classList.toggle(t,i===e),s&&i.classList.toggle(s,i!==e),i=i.nextSibling}var v7="[tabindex], input, select, button, textarea, [href]",NA="[disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function Kb(e){const t=Element.prototype.matches||Element.prototype.msMatchesSelector,r=t.call(e,"input, select, button, textarea"),i=t.call(e,NA),n=Tr(e);return r&&!i&&n}function Oe(e,t,s={}){const{skipAriaHidden:r}=s;e.classList.toggle("ag-hidden",!t),r||Wb(e,!t)}function BA(e,t,s={}){const{skipAriaHidden:r}=s;e.classList.toggle("ag-invisible",!t),r||Wb(e,!t)}function Gi(e,t){const s="disabled",r=t?i=>i.setAttribute(s,""):i=>i.removeAttribute(s);r(e),$A(e.querySelectorAll("input"),i=>r(i))}function yl(e,t,s){let r=0;for(;e;){if(e.classList.contains(t))return!0;if(e=e.parentElement,typeof s=="number"){if(++r>s)break}else if(e===s)break}return!1}function _l(e){const{height:t,width:s,borderTopWidth:r,borderRightWidth:i,borderBottomWidth:n,borderLeftWidth:o,paddingTop:a,paddingRight:l,paddingBottom:u,paddingLeft:h,marginTop:p,marginRight:g,marginBottom:m,marginLeft:C,boxSizing:v}=window.getComputedStyle(e);return{height:parseFloat(t||"0"),width:parseFloat(s||"0"),borderTopWidth:parseFloat(r||"0"),borderRightWidth:parseFloat(i||"0"),borderBottomWidth:parseFloat(n||"0"),borderLeftWidth:parseFloat(o||"0"),paddingTop:parseFloat(a||"0"),paddingRight:parseFloat(l||"0"),paddingBottom:parseFloat(u||"0"),paddingLeft:parseFloat(h||"0"),marginTop:parseFloat(p||"0"),marginRight:parseFloat(g||"0"),marginBottom:parseFloat(m||"0"),marginLeft:parseFloat(C||"0"),boxSizing:v}}function gm(e){const t=_l(e);return t.boxSizing==="border-box"?t.height-t.paddingTop-t.paddingBottom:t.height}function Kc(e){const t=_l(e);return t.boxSizing==="border-box"?t.width-t.paddingLeft-t.paddingRight:t.width}function fm(e){const{height:t,marginBottom:s,marginTop:r}=_l(e);return Math.floor(t+s+r)}function Dl(e){const{width:t,marginLeft:s,marginRight:r}=_l(e);return Math.floor(t+s+r)}function VA(e){const t=e.getBoundingClientRect(),{borderTopWidth:s,borderLeftWidth:r,borderRightWidth:i,borderBottomWidth:n}=_l(e);return{top:t.top+(s||0),left:t.left+(r||0),right:t.right+(i||0),bottom:t.bottom+(n||0)}}function af(){if(typeof ng=="boolean")return ng;const e=document.createElement("div");return e.style.direction="rtl",e.style.width="1px",e.style.height="1px",e.style.position="fixed",e.style.top="0px",e.style.overflow="hidden",e.dir="rtl",e.innerHTML=`
`,document.body.appendChild(e),e.scrollLeft=1,ng=Math.floor(e.scrollLeft)===0,document.body.removeChild(e),ng}function lf(e,t){let s=e.scrollLeft;return t&&(s=Math.abs(s),IA()&&!af()&&(s=e.scrollWidth-e.getBoundingClientRect().width-s)),s}function cf(e,t,s){s&&(af()?t*=-1:(Wl()||IA())&&(t=e.scrollWidth-e.getBoundingClientRect().width-t)),e.scrollLeft=t}function Lt(e){for(;e&&e.firstChild;)e.removeChild(e.firstChild)}function Rs(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function HA(e){return!!e.offsetParent}function Tr(e){const t=e;return t.checkVisibility?t.checkVisibility({checkVisibilityCSS:!0}):!(!HA(e)||window.getComputedStyle(e).visibility!=="visible")}function Lr(e){const t=document.createElement("div");return t.innerHTML=(e||"").trim(),t.firstChild}function zA(e,t,s){s&&s.nextSibling===t||(s?s.nextSibling?e.insertBefore(t,s.nextSibling):e.appendChild(t):e.firstChild&&e.firstChild!==t&&e.insertAdjacentElement("afterbegin",t))}function WA(e,t){for(let s=0;s`-${t.toLocaleLowerCase()}`)}function _A(e,t){if(t)for(const[s,r]of Object.entries(t)){if(!s||!s.length||r==null)continue;const i=w7(s),n=r.toString(),o=n.replace(/\s*!important/g,""),a=o.length!=n.length?"important":void 0;e.style.setProperty(i,o,a)}}function b7(e){return e.clientWidtht.push(s)),t}function R7(e,t){if(e)for(let s=0;s{const r=s.getGui();r!=null&&(typeof r=="object"?t.appendChild(r):t.innerHTML=r)})}function Fi(e,t,s){const i=eI(e).ResizeObserver,n=i?new i(s):null;return n==null||n.observe(t),()=>n==null?void 0:n.disconnect()}function Bs(e){return e==null||e===""?null:e}function he(e){return e!=null&&e!==""}function Tt(e){return!he(e)}function ri(e){return e!=null&&typeof e.toString=="function"?e.toString():null}function qc(e,t){const s=e?JSON.stringify(e):null,r=t?JSON.stringify(t):null;return s===r}function Ag(e,t,s=!1){const r=e==null,i=t==null;if(e&&e.toNumber&&(e=e.toNumber()),t&&t.toNumber&&(t=t.toNumber()),r&&i)return 0;if(r)return-1;if(i)return 1;function n(o,a){return o>a?1:oconsole.warn("AG Grid: "+e,...t),e+(t==null?void 0:t.join("")))}function Ic(e,...t){Yb(()=>console.error("AG Grid: "+e,...t),e+(t==null?void 0:t.join("")))}var ny=[],oy=!1;function vE(e){ny.push(e),!oy&&(oy=!0,window.setTimeout(()=>{const t=ny.slice();ny.length=0,oy=!1,t.forEach(s=>s())},0))}function Ys(e,t,s){let r;return function(...i){const n=this;window.clearTimeout(r),r=window.setTimeout(function(){e.isAlive()&&t.apply(n,i)},s)}}function yE(e,t){let s=0;return function(...r){const i=this,n=new Date().getTime();n-s{const l=new Date().getTime()-i>s;(e()||l)&&(t(),o=!0,n!=null&&(window.clearInterval(n),n=null))};a(),o||(n=window.setInterval(a,10))}var ze="33.0.4",wE=2e3,bE=100,qA="_version_",Ig=null,Yc=`${jA}/javascript-data-grid`;function P7(e){Ig=e}function F7(e){Yc=e}function YA(e,t,s){return(Ig==null?void 0:Ig.getConsoleMessage(e,t))??[D7(e,t,s)]}function Xb(e,t,s,r){e(`error #${t}`,...YA(t,s,r))}function E7(e){if(!e)return String(e);const t={};for(const s of Object.keys(e))typeof e[s]!="object"&&typeof e[s]!="function"&&(t[s]=e[s]);return JSON.stringify(t)}function T7(e){let t=e;return e instanceof Error?t=e.toString():typeof e=="object"&&(t=E7(e)),t}function df(e){return e===void 0?"undefined":e===null?"null":e}function gw(e,t){return`${e}?${t.toString()}`}function M7(e,t,s){const r=Array.from(t.entries()).sort((n,o)=>o[1].length-n[1].length);let i=gw(e,t);for(const[n,o]of r){if(n===qA)continue;const a=i.length-s;if(a<=0)break;const l="...",u=a+l.length,h=o.length-u>bE?o.slice(0,o.length-u)+l:o.slice(0,bE)+l;t.set(n,h),i=gw(e,t)}return i}function XA(e,t){const s=new URLSearchParams;s.append(qA,ze),t&&Object.entries(t).forEach(([n,o])=>{s.append(n,T7(o))});const r=`${Yc}/errors/${e}`,i=gw(r,s);return i.length<=wE?i:M7(r,s,wE)}var D7=(e,t,s)=>{const r=XA(e,t);return`${s?s+` `:""}Visit ${r}${s?"":` Alternatively register the ValidationModule to see the full message in the console.`}`};function Q(...e){Xb(_n,e[0],e[1])}function ft(...e){Xb(Ic,e[0],e[1])}function fw(e,t,s){Xb(Ic,e,t,s)}function QA(e,t){const s=t[0];return`error #${s} `+YA(s,t[1],e).join(" ")}function Wi(...e){return QA(void 0,e)}function JA(...e){return QA(` `,e)}function ZA(e,t){return e.get("rowModelType")===t}function es(e,t){return ZA(e,"clientSide")}function rr(e,t){return ZA(e,"serverSide")}function sr(e,t){return e.get("domLayout")===t}function Si(e){return Jc(e)!==void 0}function Qb(e){return typeof e.get("getRowHeight")=="function"}function A7(e,t){return t?!e.get("enableStrictPivotColumnOrder"):e.get("maintainColumnOrder")}function Fr(e,t,s=!1,r){const{gos:i,environment:n}=e;if(r==null&&(r=n.getDefaultRowHeight()),Qb(i)){if(s)return{height:r,estimated:!0};const l={node:t,data:t.data},u=i.getCallback("getRowHeight")(l);if(mw(u))return u===0&&Q(23),{height:Math.max(1,u),estimated:!1}}if(t.detail&&i.get("masterDetail"))return I7(i);const o=i.get("rowHeight");return{height:o&&mw(o)?o:r,estimated:!1}}function I7(e){if(e.get("detailRowAutoHeight"))return{height:1,estimated:!1};const t=e.get("detailRowHeight");return mw(t)?{height:t,estimated:!1}:{height:300,estimated:!1}}function ii(e){const{environment:t,gos:s}=e,r=s.get("rowHeight");if(!r||Tt(r))return t.getDefaultRowHeight();const i=t.refreshRowHeightVariable();return i!==-1?i:(Q(24),t.getDefaultRowHeight())}function mw(e){return!isNaN(e)&&typeof e=="number"&&isFinite(e)}function hf(e,t,s){const r=t[e.getDomDataKey()];return r?r[s]:void 0}function Al(e,t,s,r){const i=e.getDomDataKey();let n=t[i];Tt(n)&&(n={},t[i]=n),n[s]=r}function zt(e){const{gos:t,eGridDiv:s}=e;let r=null;const i=t.get("getDocument");return i&&he(i)?r=i():s&&(r=s.ownerDocument),r&&he(r)?r:document}function eI(e){return zt(e).defaultView||window}function Xc(e){return e.eGridDiv.getRootNode()}function Ft(e){return Xc(e).activeElement}function Cm(e){let t=null,s=null;try{t=zt(e).fullscreenElement}catch{}finally{t||(t=Xc(e));const r=t.querySelector("body");r?s=r:t instanceof ShadowRoot?s=t:t instanceof Document?s=t==null?void 0:t.documentElement:s=t}return s}function k7(e){const t=Cm(e);return(t==null?void 0:t.clientWidth)??(window.innerHeight||-1)}function L7(e){const t=Cm(e);return(t==null?void 0:t.clientHeight)??(window.innerHeight||-1)}function Cw(e,t,s){const i=e.getBoundingClientRect().height,n=k7(s)-2,o=L7(s)-2;if(!e.offsetParent)return;const l=VA(e.offsetParent),{clientY:u,clientX:h}=t;let p=u-l.top-i/2,g=h-l.left-10;const m=zt(s),C=m.defaultView||window,v=C.pageYOffset||m.documentElement.scrollTop,w=C.pageXOffset||m.documentElement.scrollLeft;n>0&&g+e.clientWidth>n+w&&(g=n+w-e.clientWidth),g<0&&(g=0),o>0&&p+e.clientHeight>o+v&&(p=o+v-e.clientHeight),p<0&&(p=0),e.style.left=`${g}px`,e.style.top=`${p}px`}function Ra(e){const t=zt(e),s=Ft(e);return s===null||s===t.body}function kc(e){return e.get("ensureDomOrder")?!1:e.get("animateRows")}function vm(e){return!(e.get("paginateChildRows")||e.get("groupHideOpenParents")||sr(e,"print"))}function hn(e){const t=e.get("autoGroupColumnDef");return!(t!=null&&t.comparator)&&!e.get("treeData")}function ch(e){const t=e.get("groupAggFiltering");if(typeof t=="function")return e.getCallback("groupAggFiltering");if(t===!0)return()=>!0}function ym(e){return e.get("grandTotalRow")}function Qc(e){const t=e.get("groupTotalRow");return typeof t=="function"?e.getCallback("groupTotalRow"):()=>t??void 0}function Jb(e){return e.exists("groupDisplayType")?e.get("groupDisplayType")==="multipleColumns":e.get("groupHideOpenParents")}function wm(e,t){return t?!1:e.get("groupDisplayType")==="groupRows"}function xo(e){const t=e.getCallback("getRowId");return t===void 0?t:s=>{let r=t(s);return typeof r!="string"&&(Q(25,{id:r}),r=String(r)),r}}function O7(e,t){const s=e.get("groupHideParentOfSingleChild");return!!(s===!0||s==="leafGroupsOnly"&&t.leafGroup||e.get("groupRemoveSingleChildren")||e.get("groupRemoveLowestSingleChildren")&&t.leafGroup)}function tI(e){const t=e.get("maxConcurrentDatasourceRequests");return t>0?t:void 0}function sI(e,t){const s=e.get("suppressGroupChangesColumnVisibility");if(s===!0||t&&s==="suppressHideOnGroup"||!t&&s==="suppressShowOnUngroup")return!1;const r=e.get("suppressRowGroupHidesColumns");if(t&&r===!0)return!1;const i=e.get("suppressMakeColumnVisibleAfterUnGroup");return!(!t&&i===!0)}function wl(e){return(e==null?void 0:e.checkboxes)??!0}function kg(e){return(e==null?void 0:e.mode)==="multiRow"&&(e.headerCheckbox??!0)}function pf(e){if(typeof e=="object")return e.checkboxLocation??"selectionColumn"}function ay(e){return(e==null?void 0:e.hideDisabledCheckboxes)??!1}function Zb(e){return typeof e.get("rowSelection")!="string"}function G7(e){return e.get("cellSelection")!==void 0}function og(e){const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"?(t==null?void 0:t.suppressMultiRanges)??!1:!1:e.get("suppressMultiRangeSelection")}function Or(e){const t=e.get("cellSelection");return t!==void 0?!!t:e.get("enableRangeSelection")}function ly(e){var r;const t=e.get("cellSelection");return t!==void 0?typeof t!="boolean"&&((r=t.handle)==null?void 0:r.mode)==="fill"?t.handle:void 0:{mode:"fill",setFillValue:e.get("fillOperation"),direction:e.get("fillHandleDirection"),suppressClearOnFillReduction:e.get("suppressClearOnFillReduction")}}function rI(e){const t=e.get("rowSelection")??"single";if(typeof t=="string"){const s=e.get("suppressRowClickSelection"),r=e.get("suppressRowDeselection");return s&&r?!1:s?"enableDeselection":r?"enableSelection":!0}return t.mode==="singleRow"||t.mode==="multiRow"?t.enableClickSelection??!1:!1}function N7(e){const t=rI(e);return t===!0||t==="enableSelection"}function SE(e){const t=rI(e);return t===!0||t==="enableDeselection"}function vw(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("isRowSelectable"):t==null?void 0:t.isRowSelectable}function Jc(e){const t=e.get("rowSelection");if(typeof t=="string")switch(t){case"multiple":return"multiRow";case"single":return"singleRow";default:return}switch(t==null?void 0:t.mode){case"multiRow":case"singleRow":return t.mode;default:return}}function Pa(e){return Jc(e)==="multiRow"}function B7(e){const t=e.get("rowSelection");return typeof t=="string"?e.get("rowMultiSelectWithClick"):(t==null?void 0:t.enableSelectionWithoutKeys)??!1}function gf(e){const t=e.get("rowSelection");if(typeof t=="string"){const s=e.get("groupSelectsChildren"),r=e.get("groupSelectsFiltered");return s&&r?"filteredDescendants":s?"descendants":"self"}return(t==null?void 0:t.mode)==="multiRow"?t.groupSelects:void 0}function iI(e,t=!0){const s=e.get("rowSelection");return typeof s!="object"?t?"all":void 0:s.mode==="multiRow"?s.selectAll:"all"}function Il(e){const t=gf(e);return t==="descendants"||t==="filteredDescendants"}function cy(e){return e.isModuleRegistered("SetFilter")&&!e.get("suppressSetFilterByDefault")}function tr(e){return e.get("columnMenu")==="legacy"}function nI(e){return!tr(e)}function oI(e){return!e||e.length<2?e:"on"+e[0].toUpperCase()+e.substring(1)}function V7(e,t,s){typeof e!="object"&&(e={});const r={...e};return s.forEach(i=>{const n=t[i];typeof n<"u"&&(r[i]=n)}),r}function H7(e,t){if(!e)return;const s={};let r=!1;if(Object.keys(e).forEach(o=>{s[o]=e[o],r=!0}),!r)return;const i={type:"gridOptionsChanged",options:s};t.dispatchEvent(i);const n={type:"componentStateChanged",...s};t.dispatchEvent(n)}var aI="__ag_Grid_Stop_Propagation",z7=["touchstart","touchend","touchmove","touchcancel","scroll"],W7=["wheel"],uy={};function Ds(e){e[aI]=!0}function Ri(e){return e[aI]===!0}var lI=(()=>{const e={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return s=>{if(typeof uy[s]=="boolean")return uy[s];const r=document.createElement(e[s]||"div");return s="on"+s,uy[s]=s in r}})();function cI(e,t,s){let r=t;for(;r;){const i=hf(e,r,s);if(i)return i;r=r.parentElement}return null}function yw(e,t){return!t||!e?!1:$7(t).indexOf(e)>=0}function _7(e){const t=[];let s=e.target;for(;s;)t.push(s),s=s.parentElement;return t}function $7(e){const t=e;return t.path?t.path:t.composedPath?t.composedPath():_7(t)}function U7(e,t,s,r){const i=uI(s);let n;i!=null&&(n={passive:i}),e&&e.addEventListener&&e.addEventListener(t,s,r,n)}var uI=e=>{const t=z7.includes(e),s=W7.includes(e);if(t)return!0;if(s)return!1},J=class{constructor(){this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.propertyListenerId=0,this.lastChangeSetIdLookup={},this.isAlive=()=>!this.destroyed}preWireBeans(e){this.beans=e,this.stubContext=e.context,this.eventSvc=e.eventSvc,this.gos=e.gos}destroy(){const{destroyFunctions:e}=this;for(let t=0;tnull;e instanceof HTMLElement?U7(this.beans.frameworkOverrides,e,t,s):e.addEventListener(t,s);const r=()=>(e.removeEventListener(t,s),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}setupGridOptionListener(e,t){const{gos:s}=this;s.addPropertyEventListener(e,t);const r=()=>(s.removePropertyEventListener(e,t),null);return this.destroyFunctions.push(r),()=>(r(),this.destroyFunctions=this.destroyFunctions.filter(i=>i!==r),null)}addManagedPropertyListener(e,t){return this.destroyed?()=>null:this.setupGridOptionListener(e,t)}addManagedPropertyListeners(e,t){if(this.destroyed)return;const s=e.join("-")+this.propertyListenerId++,r=i=>{if(i.changeSet){if(i.changeSet&&i.changeSet.id===this.lastChangeSetIdLookup[s])return;this.lastChangeSetIdLookup[s]=i.changeSet.id}const n={type:"gridPropertyChanged",changeSet:i.changeSet,source:i.source};t(n)};e.forEach(i=>this.setupGridOptionListener(i,r))}getLocaleTextFunc(){return Hb(this.beans.localeSvc)}addDestroyFunc(e){this.isAlive()?this.destroyFunctions.push(e):e()}createOptionalManagedBean(e,t){return e?this.createManagedBean(e,t):void 0}createManagedBean(e,t){const s=this.createBean(e,t);return this.addDestroyFunc(this.destroyBean.bind(this,e,t)),s}createBean(e,t,s){return(t||this.stubContext).createBean(e,s)}destroyBean(e,t){return(t||this.stubContext).destroyBean(e)}destroyBeans(e,t){return(t||this.stubContext).destroyBeans(e)}},dI=new Set(["__proto__","constructor","prototype"]);function j7(e,t){if(e!=null){if(Array.isArray(e)){for(let s=0;s{if(dI.has(i))return;let o=e[i];o!==n&&(r&&o==null&&n!=null&&typeof n=="object"&&n.constructor===Object&&(o={},e[i]=o),xE(n)&&xE(o)&&!Array.isArray(o)?Ns(o,n,s,r):(s||n!==void 0)&&(e[i]=n))})}function Bd(e,t,s){if(!t||!e)return;if(!s)return e[t];const r=t.split(".");let i=e;for(let n=0;n=0&&!r,this.tooltipFieldContainsDots=he(s)&&s.indexOf(".")>=0&&!r}initMinAndMaxWidths(){const e=this.colDef;this.minWidth=e.minWidth??this.beans.environment.getDefaultColumnMinWidth(),this.maxWidth=e.maxWidth??Number.MAX_SAFE_INTEGER}initTooltip(){var e;(e=this.beans.tooltipSvc)==null||e.initCol(this)}resetActualWidth(e){const t=this.calculateColInitialWidth(this.colDef);this.setActualWidth(t,e,!0)}calculateColInitialWidth(e){let t;const s=e.width,r=e.initialWidth;return s!=null?t=s:r!=null?t=r:t=200,Math.max(Math.min(t,this.maxWidth),this.minWidth)}isEmptyGroup(){return!1}isRowGroupDisplayed(e){var t;return((t=this.beans.showRowGroupCols)==null?void 0:t.isRowGroupDisplayed(this,e))??!1}isPrimary(){return this.primary}isFilterAllowed(){return!!this.colDef.filter}isFieldContainsDots(){return this.fieldContainsDots}isTooltipEnabled(){return this.tooltipEnabled}isTooltipFieldContainsDots(){return this.tooltipFieldContainsDots}getHighlighted(){return this.highlighted}addEventListener(e,t){var r,i,n;this.frameworkEventListenerService=(i=(r=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:i.call(r,this.frameworkEventListenerService,this.colEventSvc);const s=((n=this.frameworkEventListenerService)==null?void 0:n.wrap(t))??t;this.colEventSvc.addEventListener(e,s)}removeEventListener(e,t){var r;const s=((r=this.frameworkEventListenerService)==null?void 0:r.unwrap(t))??t;this.colEventSvc.removeEventListener(e,s)}createColumnFunctionCallbackParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,column:this,colDef:this.colDef})}isSuppressNavigable(e){var t;return((t=this.beans.cellNavigation)==null?void 0:t.isSuppressNavigable(this,e))??!1}isCellEditable(e){var t;return((t=this.beans.editSvc)==null?void 0:t.isCellEditable(this,e))??!1}isSuppressFillHandle(){return!!this.colDef.suppressFillHandle}isAutoHeight(){return!!this.colDef.autoHeight}isAutoHeaderHeight(){return!!this.colDef.autoHeaderHeight}isRowDrag(e){return this.isColumnFunc(e,this.colDef.rowDrag)}isDndSource(e){return this.isColumnFunc(e,this.colDef.dndSource)}isCellCheckboxSelection(e){var t;return((t=this.beans.selectionSvc)==null?void 0:t.isCellCheckboxSelection(this,e))??!1}isSuppressPaste(e){var t;return this.isColumnFunc(e,((t=this.colDef)==null?void 0:t.suppressPaste)??null)}isResizable(){return!!this.getColDefValue("resizable")}getColDefValue(e){return this.colDef[e]??K7[e]}isColumnFunc(e,t){if(typeof t=="boolean")return t;if(typeof t=="function"){const s=this.createColumnFunctionCallbackParams(e);return t(s)}return!1}createColumnEvent(e,t){return this.gos.addGridCommonParams({type:e,column:this,columns:[this],source:t})}isMoving(){return this.moving}getSort(){return this.sort}isSortable(){return!!this.getColDefValue("sortable")}isSortAscending(){return this.sort==="asc"}isSortDescending(){return this.sort==="desc"}isSortNone(){return Tt(this.sort)}isSorting(){return he(this.sort)}getSortIndex(){return this.sortIndex}isMenuVisible(){return this.menuVisible}getAggFunc(){return this.aggFunc}getLeft(){return this.left}getOldLeft(){return this.oldLeft}getRight(){return this.left+this.actualWidth}setLeft(e,t){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchColEvent("leftChanged",t))}isFilterActive(){return this.filterActive}isHovered(){var e;return Q(261),!!((e=this.beans.colHover)!=null&&e.isHovered(this))}setFirstRightPinned(e,t){this.firstRightPinned!==e&&(this.firstRightPinned=e,this.dispatchColEvent("firstRightPinnedChanged",t))}setLastLeftPinned(e,t){this.lastLeftPinned!==e&&(this.lastLeftPinned=e,this.dispatchColEvent("lastLeftPinnedChanged",t))}isFirstRightPinned(){return this.firstRightPinned}isLastLeftPinned(){return this.lastLeftPinned}isPinned(){return this.pinned==="left"||this.pinned==="right"}isPinnedLeft(){return this.pinned==="left"}isPinnedRight(){return this.pinned==="right"}getPinned(){return this.pinned}setVisible(e,t){const s=e===!0;this.visible!==s&&(this.visible=s,this.dispatchColEvent("visibleChanged",t)),this.dispatchStateUpdatedEvent("hide")}isVisible(){return this.visible}isSpanHeaderHeight(){return!this.getColDef().suppressSpanHeaderHeight}getColumnGroupPaddingInfo(){let e=this.getParent();if(!e||!e.isPadding())return{numberOfParents:0,isSpanningTotal:!1};const t=e.getPaddingLevel()+1;let s=!0;for(;e;){if(!e.isPadding()){s=!1;break}e=e.getParent()}return{numberOfParents:t,isSpanningTotal:s}}getColDef(){return this.colDef}getDefinition(){return this.colDef}getColumnGroupShow(){return this.colDef.columnGroupShow}getColId(){return this.colId}getId(){return this.colId}getUniqueId(){return this.colId}getActualWidth(){return this.actualWidth}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}createBaseColDefParams(e){return this.gos.addGridCommonParams({node:e,data:e.data,colDef:this.colDef,column:this})}getColSpan(e){if(Tt(this.colDef.colSpan))return 1;const t=this.createBaseColDefParams(e),s=this.colDef.colSpan(t);return Math.max(s,1)}getRowSpan(e){if(Tt(this.colDef.rowSpan))return 1;const t=this.createBaseColDefParams(e),s=this.colDef.rowSpan(t);return Math.max(s,1)}setActualWidth(e,t,s=!1){e=Math.max(e,this.minWidth),e=Math.min(e,this.maxWidth),this.actualWidth!==e&&(this.actualWidth=e,this.flex&&t!=="flex"&&t!=="gridInitializing"&&(this.flex=null),s||this.fireColumnWidthChangedEvent(t)),this.dispatchStateUpdatedEvent("width")}fireColumnWidthChangedEvent(e){this.dispatchColEvent("widthChanged",e)}isGreaterThanMax(e){return e>this.maxWidth}getMinWidth(){return this.minWidth}getMaxWidth(){return this.maxWidth}getFlex(){return this.flex}isRowGroupActive(){return this.rowGroupActive}isPivotActive(){return this.pivotActive}isAnyFunctionActive(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()}isAnyFunctionAllowed(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()}isValueActive(){return this.aggregationActive}isAllowPivot(){return this.colDef.enablePivot===!0}isAllowValue(){return this.colDef.enableValue===!0}isAllowRowGroup(){return this.colDef.enableRowGroup===!0}dispatchColEvent(e,t,s){const r=this.createColumnEvent(e,t);s&&Ns(r,s),this.colEventSvc.dispatchEvent(r)}dispatchStateUpdatedEvent(e){this.colEventSvc.dispatchEvent({type:"columnStateUpdated",key:e})}};function Cs(e){return e instanceof Vd}var Vd=class extends J{constructor(e,t,s,r){super(),this.colGroupDef=e,this.groupId=t,this.padding=s,this.level=r,this.isColumn=!1,this.expandable=!1,this.instanceId=hI(),this.expandableListenerRemoveCallback=null,this.expanded=!!(e!=null&&e.openByDefault)}destroy(){this.expandableListenerRemoveCallback&&this.reset(null,void 0),super.destroy()}reset(e,t){this.colGroupDef=e,this.level=t,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0}getInstanceId(){return this.instanceId}getOriginalParent(){return this.originalParent}getLevel(){return this.level}isVisible(){return this.children?this.children.some(e=>e.isVisible()):!1}isPadding(){return this.padding}setExpanded(e){this.expanded=e===void 0?!1:e,this.dispatchLocalEvent({type:"expandedChanged"})}isExpandable(){return this.expandable}isExpanded(){return this.expanded}getGroupId(){return this.groupId}getId(){return this.getGroupId()}setChildren(e){this.children=e}getChildren(){return this.children}getColGroupDef(){return this.colGroupDef}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}addLeafColumns(e){this.children&&this.children.forEach(t=>{Kn(t)?e.push(t):Cs(t)&&t.addLeafColumns(e)})}getColumnGroupShow(){const e=this.colGroupDef;if(e)return e.columnGroupShow}setupExpandable(){this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();const e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach(t=>t.addEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=()=>{this.getLeafColumns().forEach(t=>t.removeEventListener("visibleChanged",e)),this.expandableListenerRemoveCallback=null}}setExpandable(){if(this.isPadding())return;let e=!1,t=!1,s=!1;const r=this.findChildrenRemovingPadding();for(let n=0,o=r.length;n{s.forEach(r=>{Cs(r)&&r.isPadding()?t(r.children):e.push(r)})};return t(this.children),e}onColumnVisibilityChanged(){this.setExpandable()}},Y7={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}},X7=class{constructor(){this.existingKeys={}}addExistingKeys(e){for(let t=0;ts?s(r,t[i]):t[i]===r)}function Q7(e){return e.sort((t,s)=>t-s)}function ir(e,t){const s=e.indexOf(t);s>=0&&e.splice(s,1)}function RE(e,t,s){for(let r=0;r=0;r--)e.splice(s,0,t[r])}function pI(e,t){const s=[],r=[],i=[];return e.forEach(o=>{const a=o.getColDef().lockPosition;a==="right"?i.push(o):a==="left"||a===!0?s.push(o):r.push(o)}),t.get("enableRtl")?[...i,...r,...s]:[...s,...r,...i]}function gI(e,t){let s=!0;return vo(null,t,r=>{if(!Cs(r))return;const i=r,n=i.getColGroupDef();if(!(n&&n.marryChildren))return;const a=[];i.getLeafColumns().forEach(g=>{const m=e.indexOf(g);a.push(m)});const l=Math.max.apply(Math,a),u=Math.min.apply(Math,a),h=l-u,p=i.getLeafColumns().length-1;h>p&&(s=!1)}),s}function fI(e,t){if(!e||e.length==0)return;const s=t(e[0]);for(let r=1;rn.getPinned());e.dispatchEvent({type:"columnPinned",pinned:i??null,columns:t,column:r,source:s})}function J7(e,t,s){if(!t.length)return;const r=t.length===1?t[0]:null,i=fI(t,n=>n.isVisible());e.dispatchEvent({type:"columnVisible",visible:i,columns:t,column:r,source:s})}function CI(e,t,s,r){e.dispatchEvent({type:t,columns:s,column:s&&s.length==1?s[0]:null,source:r})}function Zc(e,t,s,r,i=null){t!=null&&t.length&&e.dispatchEvent({type:"columnResized",columns:t,column:t.length===1?t[0]:null,flexColumns:i,finished:s,source:r})}function ni(e,t,s){var F;const{colModel:r,rowGroupColsSvc:i,pivotColsSvc:n,autoColSvc:o,selectionColSvc:a,colAnimation:l,visibleCols:u,pivotResultCols:h,environment:p,valueColsSvc:g,eventSvc:m,gos:C}=e,v=r.getColDefCols()||[];if(!(v!=null&&v.length))return!1;if(t!=null&&t.state&&!t.state.forEach)return Q(32),!1;const w=(E,D,R,A,G)=>{if(!E)return;const L=r9(D,t.defaultState),O=L("flex").value1;if(TI(e,E,L("hide").value1,L("sort").value1,L("sortIndex").value1,L("pinned").value1,O,s),O==null){const N=L("width").value1;if(N!=null){const H=E.getColDef().minWidth??p.getDefaultColumnMinWidth();H!=null&&N>=H&&E.setActualWidth(N,s)}}G||!E.isPrimary()||(g==null||g.syncColumnWithState(E,s,L),i==null||i.syncColumnWithState(E,s,L,R),n==null||n.syncColumnWithState(E,s,L,A))},S=(E,D,R)=>{var ne,V;const A=yI(e,s),G=D.slice(),L={},O={},N=[],H=[],$=[];let q=0;const Y=(i==null?void 0:i.columns.slice())??[],re=(n==null?void 0:n.columns.slice())??[];E.forEach(K=>{const fe=K.colId;if(fe.startsWith(Fa)){N.push(K),$.push(K);return}if($n(fe)){H.push(K),$.push(K);return}const me=R(fe);me?(w(me,K,L,O,!1),ir(G,me)):($.push(K),q+=1)});const z=K=>w(K,null,L,O,!1);G.forEach(z),i==null||i.sortColumns(PE.bind(i,L,Y)),n==null||n.sortColumns(PE.bind(n,O,re)),r.refreshCols(!1);const ie=(K,fe,ue=[])=>{fe.forEach(me=>{const ge=K(me.colId);ir(ue,ge),w(ge,me,null,null,!0)}),ue.forEach(z)};return ie(K=>(o==null?void 0:o.getAutoCol(K))??null,N,(ne=o==null?void 0:o.getAutoCols())==null?void 0:ne.slice()),ie(K=>(a==null?void 0:a.getSelectionCol(K))??null,H,(V=a==null?void 0:a.getSelectionCols())==null?void 0:V.slice()),Z7(t,r,C),u.refresh(s),m.dispatchEvent({type:"columnEverythingChanged",source:s}),A(),{unmatchedAndAutoStates:$,unmatchedCount:q}};l==null||l.start();let{unmatchedAndAutoStates:P,unmatchedCount:T}=S(t.state||[],v,E=>r.getColDefCol(E));if(P.length>0||he(t.defaultState)){const E=((F=h==null?void 0:h.getPivotResultCols())==null?void 0:F.list)??[];T=S(P,E,D=>(h==null?void 0:h.getPivotResultCol(D))??null).unmatchedCount}return l==null||l.finish(),T===0}function vI(e,t){const{colModel:s,autoColSvc:r}=e,i=s.getColDefCols();if(!(i!=null&&i.length))return;const n=s.getColDefColTree(),o=eS(n),a=[];let l=1e3,u=1e3,h=[];const p=r==null?void 0:r.getAutoCols();p&&(h=h.concat(p)),o&&(h=h.concat(o)),h.forEach(g=>{const m=wI(g);Tt(m.rowGroupIndex)&&m.rowGroup&&(m.rowGroupIndex=l++),Tt(m.pivotIndex)&&m.pivot&&(m.pivotIndex=u++),a.push(m)}),ni(e,{state:a,applyOrder:!0},t)}function yI(e,t){const{rowGroupColsSvc:s,pivotColsSvc:r,valueColsSvc:i,colModel:n,sortSvc:o,eventSvc:a}=e,l={rowGroupColumns:(s==null?void 0:s.columns.slice())??[],pivotColumns:(r==null?void 0:r.columns.slice())??[],valueColumns:(i==null?void 0:i.columns.slice())??[]},u=uh(e),h={};return u.forEach(p=>{h[p.colId]=p}),()=>{const p=n.getAllCols(),g=(R,A,G,L)=>{const O=A.map(L),N=G.map(L);if(pr(O,N))return;const $=new Set(A);G.forEach(Y=>{$.delete(Y)||$.add(Y)});const q=[...$];a.dispatchEvent({type:R,columns:q,column:q.length===1?q[0]:null,source:t})},m=R=>{const A=[];return p.forEach(G=>{const L=h[G.getColId()];L&&R(L,G)&&A.push(G)}),A},C=R=>R.getColId();g("columnRowGroupChanged",l.rowGroupColumns,(s==null?void 0:s.columns)??[],C),g("columnPivotChanged",l.pivotColumns,(r==null?void 0:r.columns)??[],C);const w=m((R,A)=>{const G=R.aggFunc!=null,L=G!=A.isValueActive(),O=G&&R.aggFunc!=A.getAggFunc();return L||O});w.length>0&&CI(a,"columnValueChanged",w,t),Zc(a,m((R,A)=>R.width!=A.getActualWidth()),!0,t),mI(a,m((R,A)=>R.pinned!=A.getPinned()),t),J7(a,m((R,A)=>R.hide==A.isVisible()),t);const E=m((R,A)=>R.sort!=A.getSort()||R.sortIndex!=A.getSortIndex());E.length>0&&(o==null||o.dispatchSortChangedEvents(t,E));const D=uh(e);t9(u,D,t,n,a)}}function uh(e){const{colModel:t,rowGroupColsSvc:s,pivotColsSvc:r}=e,i=t.getColDefCols();if(Tt(i)||!t.isAlive())return[];const n=t.getAllCols(),o=s==null?void 0:s.columns,a=r==null?void 0:r.columns,l=p=>{const g=p.isRowGroupActive()&&o?o.indexOf(p):null,m=p.isPivotActive()&&a?a.indexOf(p):null,C=p.isValueActive()?p.getAggFunc():null,v=p.getSort()!=null?p.getSort():null,w=p.getSortIndex()!=null?p.getSortIndex():null;return{colId:p.getColId(),width:p.getActualWidth(),hide:!p.isVisible(),pinned:p.getPinned(),sort:v,sortIndex:w,aggFunc:C,rowGroup:p.isRowGroupActive(),rowGroupIndex:g,pivot:p.isPivotActive(),pivotIndex:m,flex:p.getFlex()??null}},u=n.map(p=>l(p)),h=new Map(t.getCols().map((p,g)=>[p.getColId(),g]));return u.sort((p,g)=>{const m=h.has(p.colId)?h.get(p.colId):-1,C=h.has(g.colId)?h.get(g.colId):-1;return m-C}),u}function wI(e){const t=(C,v)=>C??v??null,s=e.getColDef(),r=t(s.sort,s.initialSort),i=t(s.sortIndex,s.initialSortIndex),n=t(s.hide,s.initialHide),o=t(s.pinned,s.initialPinned),a=t(s.width,s.initialWidth),l=t(s.flex,s.initialFlex);let u=t(s.rowGroupIndex,s.initialRowGroupIndex),h=t(s.rowGroup,s.initialRowGroup);u==null&&(h==null||h==!1)&&(u=null,h=null);let p=t(s.pivotIndex,s.initialPivotIndex),g=t(s.pivot,s.initialPivot);p==null&&(g==null||g==!1)&&(p=null,g=null);const m=t(s.aggFunc,s.initialAggFunc);return{colId:e.getColId(),sort:r,sortIndex:i,hide:n,pinned:o,width:a,flex:l,rowGroup:h,rowGroupIndex:u,pivot:g,pivotIndex:p,aggFunc:m}}function Z7(e,t,s){if(!e.applyOrder||!e.state)return;const r=[];e.state.forEach(i=>{i.colId!=null&&r.push(i.colId)}),e9(t.cols,r,t,s)}function e9(e,t,s,r){if(e==null)return;let i=[];const n={};t.forEach(a=>{if(n[a])return;const l=e.map[a];l&&(i.push(l),n[a]=!0)});let o=0;if(e.list.forEach(a=>{const l=a.getColId();if(n[l]!=null)return;l.startsWith(Fa)?i.splice(o++,0,a):i.push(a)}),i=pI(i,r),!gI(i,s.getColTree())){Q(39);return}e.list=i}function t9(e,t,s,r,i){const n={};t.forEach(h=>n[h.colId]=h);const o={};e.forEach(h=>{n[h.colId]&&(o[h.colId]=!0)});const a=e.filter(h=>o[h.colId]),l=t.filter(h=>o[h.colId]),u=[];l.forEach((h,p)=>{const g=a&&a[p];if(g&&g.colId!==h.colId){const m=r.getCol(g.colId);m&&u.push(m)}}),u.length&&i.dispatchEvent({type:"columnMoved",columns:u,column:u.length===1?u[0]:null,finished:!0,source:s})}var PE=(e,t,s,r)=>{const i=e[s.getId()],n=e[r.getId()],o=i!=null,a=n!=null;if(o&&a)return i-n;if(o)return-1;if(a)return 1;const l=t.indexOf(s),u=t.indexOf(r),h=l>=0,p=u>=0;return h&&p?l-u:h?-1:1},bI="ag-Grid-SelectionColumn",s9=class extends J{constructor(){super(...arguments),this.beanName="selectionColSvc"}postConstruct(){this.addManagedPropertyListener("rowSelection",e=>{this.onSelectionOptionsChanged(e.currentValue,e.previousValue,bl(e.source))})}addSelectionCols(e){const t=this.selectionCols;t!=null&&(e.list=t.list.concat(e.list),e.tree=t.tree.concat(e.tree),PI(e))}createSelectionCols(e,t){var g,m;const s=()=>{var C;Ea(this.beans,(C=this.selectionCols)==null?void 0:C.tree),this.selectionCols=null},r=e.treeDepth,n=(((g=this.selectionCols)==null?void 0:g.treeDepth)??-1)==r,o=this.generateSelectionCols();if(RI(o,((m=this.selectionCols)==null?void 0:m.list)??[])&&n)return;s();const{colGroupSvc:l}=this.beans,u=(l==null?void 0:l.findDepth(e.tree))??0,h=(l==null?void 0:l.balanceTreeForAutoCols(o,u))??[];this.selectionCols={list:o,tree:h,treeDepth:u,map:{}},t(C=>{if(!C)return null;const v=C.filter(w=>!$n(w));return[...o,...v]})}isSelectionColumnEnabled(){var o,a;const{gos:e,beans:t}=this,s=e.get("rowSelection");if(typeof s!="object"||!Si(e))return!1;const r=(((a=(o=t.autoColSvc)==null?void 0:o.getAutoCols())==null?void 0:a.length)??0)>0;if(s.checkboxLocation==="autoGroupColumn"&&r)return!1;const i=!!wl(s),n=kg(s);return i||n}generateSelectionCols(){if(!this.isSelectionColumnEnabled())return[];const{gos:e,validation:t}=this.beans,s=e.get("selectionColumnDef"),i={width:50,resizable:!1,suppressHeaderMenuButton:!0,sortable:!1,suppressMovable:!0,lockPosition:e.get("enableRtl")?"right":"left",comparator(a,l,u,h){const p=u.isSelected(),g=h.isSelected();return p===g?0:p?1:-1},editable:!1,suppressFillHandle:!0,...s,colId:bI},n=i.colId;t==null||t.validateColDef(i,n,!0);const o=new bm(i,null,n,!1);return this.createBean(o),[o]}putSelectionColsFirstInList(e,t){if(!t)return null;const s=t.filter(r=>!$n(r));return[...e,...s]}getSelectionCol(e){var t;return((t=this.selectionCols)==null?void 0:t.list.find(s=>tS(s,e)))??null}getSelectionCols(){var e;return((e=this.selectionCols)==null?void 0:e.list)??null}onSelectionOptionsChanged(e,t,s){const r=t&&typeof t!="string"?wl(t):void 0,i=e&&typeof e!="string"?wl(e):void 0,n=r!==i,o=t&&typeof t!="string"?kg(t):void 0,a=e&&typeof e!="string"?kg(e):void 0,l=o!==a,u=pf(e),h=pf(t);(n||l||u!==h)&&this.beans.colModel.refreshAll(s)}destroy(){var e;Ea(this.beans,(e=this.selectionCols)==null?void 0:e.tree),super.destroy()}refreshVisibility(e){if(!this.isSelectionColumnEnabled())return;const t=this.beans,s=t.visibleCols.getAllTrees()??[];if(s.length!==0){if(!s.some(SI)){const r=uh(t).find(i=>$n(i.colId));r&&ni(t,{state:[{colId:r.colId,hide:!r.hide}]},e)}if(s.length===1){const r=s[0],i=xI(r);if(!i)return;ni(t,{state:[{colId:i.getColId(),hide:!0}]},e)}}}},SI=e=>{var t;return e.isColumn?$n(e):((t=e.getChildren())==null?void 0:t.some(SI))??!1};function xI(e){if(e.isColumn)return $n(e)?e:null;const t=e.getChildren()??[];for(const s of t){const r=xI(s);if(r)return r}return null}var Fa="ag-Grid-AutoColumn";function eS(e){const t=[],s=r=>{for(let i=0;it+s.getActualWidth(),0)}function Ea(e,t,s){const r={};if(!t)return;vo(null,t,n=>{r[n.getInstanceId()]=n}),s&&vo(null,s,n=>{r[n.getInstanceId()]=null});const i=Object.values(r).filter(n=>n!=null);e.context.destroyBeans(i)}function Sm(e){return e.getId().startsWith(Fa)}function $n(e){const t=typeof e=="string"?e:"getColId"in e?e.getColId():e.colId;return(t==null?void 0:t.startsWith(bI))??!1}function ff(e){let t=[];return e instanceof Array?t=e:typeof e=="string"&&(t=e.split(",")),t}function RI(e,t){return pr(e,t,(s,r)=>s.getColId()===r.getColId())}function PI(e){e.map={},e.list.forEach(t=>e.map[t.getId()]=t)}function bl(e){return e==="gridOptionsUpdated"?"gridOptionsChanged":e}function tS(e,t){const s=e===t,r=e.getColDef()===t,i=e.getColId()==t;return s||r||i}var r9=(e,t)=>(s,r)=>{const i={value1:void 0,value2:void 0};let n=!1;return e&&(e[s]!==void 0&&(i.value1=e[s],n=!0),he(r)&&e[r]!==void 0&&(i.value2=e[r],n=!0)),!n&&t&&(t[s]!==void 0&&(i.value1=t[s]),he(r)&&t[r]!==void 0&&(i.value2=t[r])),i};function FI(e,t=null,s,r,i){const n=new X7,{existingCols:o,existingGroups:a,existingColKeys:l}=i9(r);n.addExistingKeys(l);const u=EI(e,t,0,s,o,n,a,i),{colGroupSvc:h}=e,p=(h==null?void 0:h.findMaxDepth(u,0))??0,g=h?h.balanceColumnTree(u,0,p,n):u;return vo(null,g,(C,v)=>{Cs(C)&&C.setupExpandable(),C.originalParent=v}),{columnTree:g,treeDept:p}}function i9(e){const t=[],s=[],r=[];return e&&vo(null,e,i=>{if(Cs(i)){const n=i;s.push(n)}else{const n=i;r.push(n.getId()),t.push(n)}}),{existingCols:t,existingGroups:s,existingColKeys:r}}function EI(e,t,s,r,i,n,o,a){if(!t)return[];const{colGroupSvc:l}=e,u=new Array(t.length);for(let h=0;h0))if(s.width!=null)t.setActualWidth(s.width,r);else{const n=t.getActualWidth();t.setActualWidth(n,r)}}function o9(e,t){if(t)for(let s=0;s{const o=r[n.trim()];o?Ns(s,o,!1,!0):Q(36,{t:n})})}function c9(e){return e.children!==void 0}function vo(e,t,s){if(t)for(let r=0;rthis.refreshAll(bl(e.source))),this.addManagedPropertyListeners(["defaultColDef","defaultColGroupDef","columnTypes","suppressFieldDotNotation"],e=>this.recreateColumnDefs(bl(e.source))),this.addManagedPropertyListener("pivotMode",e=>this.setPivotMode(this.gos.get("pivotMode"),bl(e.source)))}createColsFromColDefs(e){var P,T,F;const{beans:t}=this,{valueCache:s,colAutosize:r,rowGroupColsSvc:i,pivotColsSvc:n,valueColsSvc:o,visibleCols:a,colViewport:l,eventSvc:u}=t,h=this.colDefs?yI(t,e):void 0;s==null||s.expire();const p=(P=this.colDefCols)==null?void 0:P.list,g=(T=this.colDefCols)==null?void 0:T.tree,m=FI(t,this.colDefs,!0,g,e);Ea(t,(F=this.colDefCols)==null?void 0:F.tree,m.columnTree);const C=m.columnTree,v=m.treeDept,w=eS(C),S={};w.forEach(E=>S[E.getId()]=E),this.colDefCols={tree:C,treeDepth:v,list:w,map:S},i==null||i.extractCols(e,p),n==null||n.extractCols(e,p),o==null||o.extractCols(e,p),this.ready=!0,this.refreshCols(!0),a.refresh(e),l.checkViewportColumns(),u.dispatchEvent({type:"columnEverythingChanged",source:e}),h&&(this.changeEventsDispatching=!0,h(),this.changeEventsDispatching=!1),u.dispatchEvent({type:"newColumnsLoaded",source:e}),e==="gridInitializing"&&(r==null||r.applyAutosizeStrategy())}refreshCols(e){var C;if(!this.colDefCols)return;const t=(C=this.cols)==null?void 0:C.tree;this.saveColOrder();const{autoColSvc:s,selectionColSvc:r,quickFilter:i,pivotResultCols:n,showRowGroupCols:o,rowAutoHeight:a,visibleCols:l,colViewport:u,eventSvc:h}=this.beans,p=this.selectCols(n,this.colDefCols);s==null||s.createAutoCols(p,v=>{this.lastOrder=v(this.lastOrder),this.lastPivotOrder=v(this.lastPivotOrder)}),s==null||s.addAutoCols(p),r==null||r.createSelectionCols(p,v=>{this.lastOrder=v(this.lastOrder)??null,this.lastPivotOrder=v(this.lastPivotOrder)??null}),r==null||r.addSelectionCols(p);const g=A7(this.gos,this.showingPivotResult);(!e||g)&&this.restoreColOrder(p),this.positionLockedCols(p),o==null||o.refresh(),i==null||i.refreshCols(),this.setColSpanActive(),a==null||a.setAutoHeightActive(p),l.clear(),u.clear(),!pr(t,this.cols.tree)&&h.dispatchEvent({type:"gridColumnsChanged"})}selectCols(e,t){const s=(e==null?void 0:e.getPivotResultCols())??null;this.showingPivotResult=s!=null;const{map:r,list:i,tree:n,treeDepth:o}=s??t;return this.cols={list:i.slice(),map:{...r},tree:n.slice(),treeDepth:o},s&&(s.list.some(l=>{var u;return((u=this.cols)==null?void 0:u.map[l.getColId()])!==void 0})||(this.lastPivotOrder=null)),this.cols}getColsToShow(){var r;if(!this.cols)return[];const e=this.isPivotMode()&&!this.showingPivotResult,t=(r=this.beans.valueColsSvc)==null?void 0:r.columns;return this.cols.list.filter(i=>{const n=Sm(i);if(e){const o=t==null?void 0:t.includes(i);return n||o}else return n||i.isVisible()})}refreshAll(e){this.ready&&(this.refreshCols(!1),this.beans.visibleCols.refresh(e))}setColsVisible(e,t=!1,s){ni(this.beans,{state:e.map(r=>({colId:typeof r=="string"?r:r.getColId(),hide:!t}))},s)}restoreColOrder(e){const t=this.showingPivotResult?this.lastPivotOrder:this.lastOrder;if(!t)return;const s=new Map(t.map((u,h)=>[u,h]));if(!e.list.some(u=>s.has(u)))return;const i=new Map(e.list.map(u=>[u,!0])),n=t.filter(u=>i.has(u)),o=new Map(n.map(u=>[u,!0])),a=e.list.filter(u=>!o.has(u)),l=n.slice();a.forEach(u=>{let h=u.getOriginalParent();if(!h){l.push(u);return}const p=[];for(;!p.length&&h;)h.getLeafColumns().forEach(v=>{const w=l.indexOf(v)>=0,S=p.indexOf(v)<0;w&&S&&p.push(v)}),h=h.getOriginalParent();if(!p.length){l.push(u);return}const g=p.map(C=>l.indexOf(C)),m=Math.max(...g);l.splice(m+1,0,u)}),e.list=l}positionLockedCols(e){e.list=pI(e.list,this.gos)}saveColOrder(){var e,t;this.showingPivotResult?this.lastPivotOrder=((e=this.cols)==null?void 0:e.list)??null:this.lastOrder=((t=this.cols)==null?void 0:t.list)??null}getColumnDefs(){var e,t;return this.colDefCols?(t=this.beans.colDefFactory)==null?void 0:t.getColumnDefs(this.colDefCols.list,this.showingPivotResult,this.lastOrder,((e=this.cols)==null?void 0:e.list)??[]):void 0}setColSpanActive(){var e;this.colSpanActive=!!((e=this.cols)!=null&&e.list.some(t=>t.getColDef().colSpan!=null))}isPivotMode(){return this.pivotMode}setPivotMode(e,t){if(e===this.pivotMode||(this.pivotMode=e,!this.ready))return;this.refreshCols(!1);const{visibleCols:s,eventSvc:r}=this.beans;s.refresh(t),r.dispatchEvent({type:"columnPivotModeChanged"})}isPivotActive(){var t;const e=(t=this.beans.pivotColsSvc)==null?void 0:t.columns;return this.pivotMode&&!!(e!=null&&e.length)}recreateColumnDefs(e){var t;this.cols&&((t=this.beans.autoColSvc)==null||t.updateAutoCols(e),this.createColsFromColDefs(e))}setColumnDefs(e,t){this.colDefs=e,this.createColsFromColDefs(t)}destroy(){var e;Ea(this.beans,(e=this.colDefCols)==null?void 0:e.tree),super.destroy()}getColTree(){var e;return((e=this.cols)==null?void 0:e.tree)??[]}getColDefColTree(){var e;return((e=this.colDefCols)==null?void 0:e.tree)??[]}getColDefCols(){var e;return((e=this.colDefCols)==null?void 0:e.list)??null}getCols(){var e;return((e=this.cols)==null?void 0:e.list)??[]}getAllCols(){var i,n,o,a;const{pivotResultCols:e,autoColSvc:t,selectionColSvc:s}=this.beans,r=(i=e==null?void 0:e.getPivotResultCols())==null?void 0:i.list;return[((n=this.colDefCols)==null?void 0:n.list)??[],((o=t==null?void 0:t.autoCols)==null?void 0:o.list)??[],((a=s==null?void 0:s.selectionCols)==null?void 0:a.list)??[],r??[]].flat()}getColsForKeys(e){return e?e.map(t=>this.getCol(t)).filter(t=>t!=null):[]}getColDefCol(e){var t;return(t=this.colDefCols)!=null&&t.list?this.getColFromCollection(e,this.colDefCols):null}getCol(e){return e==null?null:this.getColFromCollection(e,this.cols)}getColFromCollection(e,t){var i;if(t==null)return null;const{map:s,list:r}=t;if(typeof e=="string"&&s[e])return s[e];for(let n=0;nl.set(h,p)),t.length=0,he(e)&&e.forEach(h=>{const p=this.colModel.getColDefCol(h);p&&t.push(p)}),t.forEach((h,p)=>{const g=l.get(h);if(g===void 0){l.set(h,0);return}r&&g!==p||l.delete(h)}),(this.colModel.getColDefCols()||[]).forEach(h=>{const p=t.indexOf(h)>=0;n(h,p,o)}),i&&this.colModel.refreshCols(!1),this.visibleCols.refresh(o),this.dispatchColumnChangedEvent(this.eventSvc,s,[...l.keys()],o)}updateColList(e=[],t,s,r,i,n,o){if(!e||e.length===0)return;let a=!1;const l=new Set;if(e.forEach(h=>{if(!h)return;const p=this.colModel.getColDefCol(h);if(p){if(l.add(p),s){if(t.indexOf(p)>=0)return;t.push(p)}else{const g=t.indexOf(p);if(g<0)return;for(let m=g+1;m{const C=t.indexOf(m)<0,v=m.getColDef(),w=l(v),S=u(v),P=o(v),T=a(v);let F;w!==void 0?F=w:P!==void 0?P===null?F=!1:F=P>=0:C?S!==void 0?F=S:T!==void 0?F=T!=null&&T>=0:F=!1:F=s.indexOf(m)>=0,F&&((C?P!=null||T!=null:P!=null)?r.push(m):i.push(m))});const p=m=>{const C=o(m.getColDef()),v=a(m.getColDef());return C??v};r.sort((m,C)=>{const v=p(m),w=p(C);return v===w?0:v{i.indexOf(m)>=0&&g.push(m)}),i.forEach(m=>{g.indexOf(m)<0&&g.push(m)}),s.forEach(m=>{g.indexOf(m)<0&&n(m,!1,e)}),g.forEach(m=>{s.indexOf(m)<0&&n(m,!0,e)}),this.columns=g}restoreColumnOrder(e,t){const s=this.columns,r=this.colModel.getColDefCols();if(!s.length||!r)return e;const i=Object.keys(t),n=new Set(i),o=new Set(i),a=new Set(s.map(T=>{const F=T.getColId();return o.delete(F),F}).concat(i)),l=[],u={};let h=0;for(let T=0;T{const F=u[T];for(let E=m;E{const F=T.getColId();if(n.has(F))P(F),t[F][w]=p++;else{const E=T.getColDef();(E[w]===null||E[w]===void 0&&E[S]==null)&&(g||(E[C]||E[C]===void 0&&E[v]?P(F):(o.forEach(A=>{t[A][w]=p+u[A]}),p+=l.length,g=!0)),e[F]||(e[F]={colId:F}),e[F][w]=p++)}}),e}},DI=class{constructor(){this.existingIds={}}getInstanceIdForKey(e){const t=this.existingIds[e];let s;return typeof t!="number"?s=0:s=t+1,this.existingIds[e]=s,s}},gu=class extends J{};function Ah(e,t,s){return s&&e.addDestroyFunc(()=>t.destroyBean(s)),s??e}var Ih=class{constructor(e){this.cssClassStates={},this.getGui=e}addCssClass(e){this.addOrRemoveCssClass(e,!0)}removeCssClass(e){this.addOrRemoveCssClass(e,!1)}containsCssClass(e){const t=this.getGui();return t?t.classList.contains(e):!1}addOrRemoveCssClass(e,t){if(!e)return;if(e.indexOf(" ")>=0){const r=(e||"").split(" ");if(r.length>1){r.forEach(i=>this.addOrRemoveCssClass(i,t));return}}if(this.cssClassStates[e]!==t&&e.length){const r=this.getGui();r&&r.classList.toggle(e,t),this.cssClassStates[e]=t}}},d9=0,j=null,pe=class extends J{constructor(e,t){super(),this.suppressDataRefValidation=!1,this.displayed=!0,this.visible=!0,this.compId=d9++,this.cssClassManager=new Ih(()=>this.eGui),this.componentSelectors=new Map((t??[]).map(s=>[s.selector,s])),e&&this.setTemplate(e)}preConstruct(){var t,s,r;this.wireTemplate(this.getGui());const e="component-"+((s=(t=Object.getPrototypeOf(this))==null?void 0:t.constructor)==null?void 0:s.name);(r=this.css)==null||r.forEach(i=>this.beans.environment.addGlobalCSS(i,e))}wireTemplate(e,t){e&&this.gos&&(this.applyElementsToComponent(e),this.createChildComponentsFromTags(e,t))}getCompId(){return this.compId}getDataRefAttribute(e){return e.getAttribute?e.getAttribute("data-ref"):null}applyElementsToComponent(e,t,s,r=null){if(t===void 0&&(t=this.getDataRefAttribute(e)),t){const i=this[t];if(i===j)this[t]=r??e;else{const n=s&&s[t];if(!this.suppressDataRefValidation&&!n)throw new Error(`data-ref: ${t} on ${this.constructor.name} with ${i}`)}}}createChildComponentsFromTags(e,t){x7(e.childNodes).forEach(r=>{if(!(r instanceof HTMLElement))return;const i=this.createComponentFromElement(r,n=>{n.getGui()&&this.copyAttributesFromNode(r,n.getGui())},t);if(i){if(i.addItems&&r.children.length){this.createChildComponentsFromTags(r,t);const n=Array.prototype.slice.call(r.children);i.addItems(n)}this.swapComponentForNode(i,e,r)}else r.childNodes&&this.createChildComponentsFromTags(r,t)})}createComponentFromElement(e,t,s){const r=e.nodeName,i=this.getDataRefAttribute(e),n=r.indexOf("AG-")===0,o=n?this.componentSelectors.get(r):null;let a=null;if(o){const l=s&&i?s[i]:void 0;a=new o.component(l),a.setParentComponent(this),this.createBean(a,null,t)}else if(n)throw new Error(`selector: ${r}`);return this.applyElementsToComponent(e,i,s,a),a}copyAttributesFromNode(e,t){R7(e.attributes,(s,r)=>t.setAttribute(s,r))}swapComponentForNode(e,t,s){const r=e.getGui();t.replaceChild(r,s),t.insertBefore(document.createComment(s.nodeName),r),this.addDestroyFunc(this.destroyBean.bind(this,e))}activateTabIndex(e){const t=this.gos.get("tabIndex");e||(e=[]),e.length||e.push(this.getGui()),e.forEach(s=>s.setAttribute("tabindex",t.toString()))}setTemplate(e,t,s){const r=Lr(e);this.setTemplateFromElement(r,t,s)}setTemplateFromElement(e,t,s,r=!1){if(this.eGui=e,this.suppressDataRefValidation=r,t)for(let i=0;ithis.eGui.removeEventListener(e,t))}addCssClass(e){this.cssClassManager.addCssClass(e)}removeCssClass(e){this.cssClassManager.removeCssClass(e)}containsCssClass(e){return this.cssClassManager.containsCssClass(e)}addOrRemoveCssClass(e,t){this.cssClassManager.addOrRemoveCssClass(e,t)}registerCSS(e){this.css||(this.css=[]),this.css.push(e)}};function h9(e){return typeof e.then=="function"}var nt=class Ed{constructor(t){this.status=0,this.resolution=null,this.waiters=[],t(s=>this.onDone(s),s=>this.onReject(s))}static all(t){return t.length?new Ed(s=>{let r=t.length;const i=new Array(r);t.forEach((n,o)=>{n.then(a=>{i[o]=a,r--,r===0&&s(i)})})}):Ed.resolve()}static resolve(t=null){return new Ed(s=>s(t))}then(t){return new Ed(s=>{this.status===1?s(t(this.resolution)):this.waiters.push(r=>s(t(r)))})}onDone(t){this.status=1,this.resolution=t,this.waiters.forEach(s=>s(t))}onReject(t){}};function p9(e){return e?e.prototype&&"getGui"in e.prototype:!1}function AI(e,t,s,r){const{name:i}=s;let n,o,a,l,u,h;if(t){const p=t,g=p[i+"Selector"],m=g?g(r):null,C=v=>{typeof v=="string"?n=v:v!=null&&v!==!0&&(e.isFrameworkComponent(v)?a=v:o=v)};m?(C(m.component),l=m.params,u=m.popup,h=m.popupPosition):C(p[i])}return{compName:n,jsComp:o,fwComp:a,paramsFromSelector:l,popupFromSelector:u,popupPositionFromSelector:h}}var g9=class extends J{constructor(){super(...arguments),this.beanName="userCompFactory"}wireBeans(e){this.agCompUtils=e.agCompUtils,this.registry=e.registry,this.frameworkCompWrapper=e.frameworkCompWrapper,this.gridOptions=e.gridOptions}getCompDetailsFromGridOptions(e,t,s,r=!1){return this.getCompDetails(this.gridOptions,e,t,s,r)}getCompDetails(e,t,s,r,i=!1){var P;const{name:n,cellRenderer:o}=t;let{compName:a,jsComp:l,fwComp:u,paramsFromSelector:h,popupFromSelector:p,popupPositionFromSelector:g}=AI(this.beans.frameworkOverrides,e,t,r),m;const C=T=>{const F=this.registry.getUserComponent(n,T);F&&(l=F.componentFromFramework?void 0:F.component,u=F.componentFromFramework?F.component:void 0,m=F.params)};if(a!=null&&C(a),l==null&&u==null&&s!=null&&C(s),l&&o&&!p9(l)&&(l=(P=this.agCompUtils)==null?void 0:P.adaptFunction(t,l)),!l&&!u){const{validation:T}=this.beans;i&&(a!==s||!s)?a?T!=null&&T.isProvidedUserComp(a)||ft(50,{compName:a}):s?T||ft(260,{...this.gos.getModuleErrorParams(),propName:n,compName:s}):ft(216,{name:n}):s&&!T&&ft(146,{comp:s});return}const v=this.mergeParams(e,t,r,h,m),w=l==null,S=l??u;return{componentFromFramework:w,componentClass:S,params:v,type:t,popupFromSelector:p,popupPositionFromSelector:g,newAgStackInstance:()=>this.newAgStackInstance(S,w,v,t)}}newAgStackInstance(e,t,s,r){var a;const i=!t;let n;i?n=new e:n=this.frameworkCompWrapper.wrap(e,r.mandatoryMethods,r.optionalMethods,r),this.createBean(n);const o=(a=n.init)==null?void 0:a.call(n,s);return o==null?nt.resolve(n):o.then(()=>n)}mergeParams(e,t,s,r=null,i){const n=this.gos.getGridCommonParams();Ns(n,s),i&&Ns(n,i);const o=e,a=o&&o[t.name+"Params"];if(typeof a=="function"){const l=a(s);Ns(n,l)}else typeof a=="object"&&Ns(n,a);return Ns(n,r),n}},f9={name:"dateComponent",mandatoryMethods:["getDate","setDate"],optionalMethods:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel","setDisabled","refresh"]},m9={name:"dragAndDropImageComponent",mandatoryMethods:["setIcon","setLabel"]},C9={name:"headerComponent",optionalMethods:["refresh"]},v9={name:"innerHeaderComponent"},y9={name:"innerHeaderGroupComponent"},w9={name:"headerGroupComponent"},b9={name:"innerRenderer",cellRenderer:!0,optionalMethods:["afterGuiAttached"]},S9={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},x9={name:"cellRenderer",optionalMethods:["refresh","afterGuiAttached"]},R9={name:"loadingCellRenderer",cellRenderer:!0},P9={name:"cellEditor",mandatoryMethods:["getValue"],optionalMethods:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached","refresh"]},F9={name:"loadingOverlayComponent",optionalMethods:["refresh"]},E9={name:"noRowsOverlayComponent",optionalMethods:["refresh"]},T9={name:"tooltipComponent"},rS={name:"filter",mandatoryMethods:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethods:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged","refresh"]},M9={name:"floatingFilterComponent",mandatoryMethods:["onParentModelChanged"],optionalMethods:["afterGuiAttached","refresh"]},D9={name:"fullWidthCellRenderer",optionalMethods:["refresh","afterGuiAttached"],cellRenderer:!0},A9={name:"loadingCellRenderer",cellRenderer:!0},I9={name:"groupRowRenderer",optionalMethods:["afterGuiAttached"],cellRenderer:!0},k9={name:"detailCellRenderer",optionalMethods:["refresh"],cellRenderer:!0};function L9(e,t){return e.getCompDetailsFromGridOptions(m9,"agDragAndDropImage",t,!0)}function dy(e,t,s){return e.getCompDetails(t,b9,void 0,s)}function O9(e,t,s){return e.getCompDetails(t,C9,"agColumnHeader",s)}function G9(e,t,s){return e.getCompDetails(t,v9,void 0,s)}function N9(e,t){const s=t.columnGroup.getColGroupDef();return e.getCompDetails(s,w9,"agColumnGroupHeader",t)}function B9(e,t,s){return e.getCompDetails(t,y9,void 0,s)}function V9(e,t){return e.getCompDetailsFromGridOptions(D9,void 0,t,!0)}function H9(e,t){return e.getCompDetailsFromGridOptions(A9,"agLoadingCellRenderer",t,!0)}function z9(e,t){return e.getCompDetailsFromGridOptions(I9,"agGroupRowRenderer",t,!0)}function W9(e,t){return e.getCompDetailsFromGridOptions(k9,"agDetailCellRenderer",t,!0)}function Cf(e,t,s){return e.getCompDetails(t,S9,void 0,s)}function II(e,t,s){return e.getCompDetails(t,x9,void 0,s)}function _9(e,t,s){return e.getCompDetails(t,R9,"agSkeletonCellRenderer",s,!0)}function FE(e,t,s){return e.getCompDetails(t,P9,"agCellEditor",s,!0)}function kI(e,t,s,r){return e.getCompDetails(t,rS,r,s,!0)}function $9(e,t){return e.getCompDetailsFromGridOptions(f9,"agDateInput",t,!0)}function U9(e,t){return e.getCompDetailsFromGridOptions(F9,"agLoadingOverlay",t,!0)}function j9(e,t){return e.getCompDetailsFromGridOptions(E9,"agNoRowsOverlay",t,!0)}function K9(e,t){return e.getCompDetails(t.colDef,T9,"agTooltipComponent",t,!0)}function LI(e,t,s,r){return e.getCompDetails(t,M9,r,s)}function q9(e,t){return AI(e,t,rS)}function Y9(e,t,s){return e.mergeParams(t,rS,s)}function kl(e){const t=e;return t!=null&&t.getFrameworkComponentInstance!=null?t.getFrameworkComponentInstance():e}var OI=new Set,vf={},Sl={},Lg,GI=!1;function X9(e){const[t,s]=e.version.split(".")||[],[r,i]=Lg.split(".")||[];return t===r&&s===i}function Q9(e){Lg||(Lg=e.version);const t=s=>`You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. ${s} Please update all modules to the same version.`;if(e.version?X9(e)||Ic(t(`'${e.moduleName}' is version ${e.version} but the other modules are version ${Lg}.`)):Ic(t(`'${e.moduleName}' is incompatible.`)),e.validate){const s=e.validate();s.isValid||Ic(`${s.message}`)}}function dh(e,t){Q9(e);const s=e.rowModels??["all"];OI.add(e);let r;t!==void 0?(GI=!0,Sl[t]===void 0&&(Sl[t]={}),r=Sl[t]):r=vf,s.forEach(i=>{r[i]===void 0&&(r[i]={}),r[i][e.moduleName]=e}),e.dependsOn&&e.dependsOn.forEach(i=>dh(i,t))}function J9(e){delete Sl[e]}function NI(e,t,s){const r=i=>{var n,o,a;return!!((n=vf[i])!=null&&n[e])||!!((a=(o=Sl[t])==null?void 0:o[i])!=null&&a[e])};return r(s)||r("all")}function iS(){return GI}function Z9(e,t){const s=Sl[e]??{};return[...Object.values(vf.all??{}),...Object.values(s.all??{}),...Object.values(vf[t]??{}),...Object.values(s[t]??{})]}function eq(){return new Set(OI)}function BI(e,t){const s=Sl[e]??{};return[...Object.values(s.all??{}),...Object.values(s[t]??{})]}var Fye=class{static register(e){dh(e,void 0)}static registerModules(e){e.forEach(t=>dh(t,void 0))}},tq=class{constructor(e){this.beans={},this.createdBeans=[],this.destroyed=!1,!(!e||!e.beanClasses)&&(this.beanDestroyComparator=e.beanDestroyComparator,this.init(e))}init(e){var t;Object.entries(e.providedBeanInstances).forEach(([s,r])=>{this.beans[s]=r}),e.beanClasses.forEach(s=>{const r=new s;r.beanName?this.beans[r.beanName]=r:console.error(`Bean ${s.name} is missing beanName`),this.createdBeans.push(r)}),(t=e.derivedBeans)==null||t.forEach(s=>{const{beanName:r,bean:i}=s(this);this.beans[r]=i,this.createdBeans.push(i)}),e.beanInitComparator&&this.createdBeans.sort(e.beanInitComparator),this.initBeans(this.createdBeans)}getBeanInstances(){return Object.values(this.beans)}createBean(e,t){if(!e)throw Error("null bean");return this.initBeans([e],t),e}initBeans(e,t){e.forEach(s=>{var r,i;(r=s.preWireBeans)==null||r.call(s,this.beans),(i=s.wireBeans)==null||i.call(s,this.beans)}),e.forEach(s=>{var r;return(r=s.preConstruct)==null?void 0:r.call(s)}),t&&e.forEach(t),e.forEach(s=>{var r;return(r=s.postConstruct)==null?void 0:r.call(s)})}getBeans(){return this.beans}getBean(e){return this.beans[e]}destroy(){if(this.destroyed)return;this.destroyed=!0;const e=this.getBeanInstances();this.beanDestroyComparator&&e.sort(this.beanDestroyComparator),this.destroyBeans(e),this.beans={},this.createdBeans=[]}destroyBean(e){var t;(t=e==null?void 0:e.destroy)==null||t.call(e)}destroyBeans(e){if(e)for(let t=0;t=this.lastScrollTop,r&&e===0){const i=(s==null?void 0:s.getCurrentPage())??0;i!==this.lastPage&&(this.lastPage=i,this.scrollGoingDown=!0)}this.lastScrollTop=e}postConstruct(){this.active=!this.gos.get("suppressAnimationFrame")}verifyAnimationFrameOn(e){this.active===!1&&Q(92,{methodName:e})}createTask(e,t,s){this.verifyAnimationFrameOn(s);const r={task:e,index:t,createOrder:++this.taskCount};this.addTaskToList(this[s],r),this.schedule()}cancelTask(e){this.cancelledTasks.add(e)}addTaskToList(e,t){e.list.push(t),e.sorted=!1}sortTaskList(e){if(e.sorted)return;const t=this.scrollGoingDown?1:-1;e.list.sort((s,r)=>s.index!==r.index?t*(r.index-s.index):r.createOrder-s.createOrder),e.sorted=!0}addDestroyTask(e){this.verifyAnimationFrameOn("createTasksP3"),this.destroyTasks.push(e),this.schedule()}executeFrame(e){this.verifyAnimationFrameOn("executeFrame");const t=this.createTasksP1,s=t.list,r=this.createTasksP2,i=r.list,n=this.destroyTasks,o=new Date().getTime();let a=new Date().getTime()-o;const l=e<=0,u=this.beans.ctrlsSvc.getScrollFeature();for(;l||a0||(e.addEventListener("keydown",wf),e.addEventListener("mousedown",wf))}function lq(e){yf>0||(e.removeEventListener("keydown",wf),e.removeEventListener("mousedown",wf))}function wf(e){const t=ww,s=e.type==="keydown";s&&(e.ctrlKey||e.metaKey||e.altKey)||t!==s&&(ww=s)}function cq(e){const t=zt(e);return aq(t),yf++,()=>{yf--,lq(t)}}function xm(){return ww}function WI(e,t,s){t.addManagedElementListeners(s,{keydown:r=>{if(!r.defaultPrevented&&r.key===B.TAB){const i=r.shiftKey;gr(e,s,!1,i)||Ro(e,i)&&r.preventDefault()}}})}function gn(e,t,s=!1){const r=v7;let i=NA;t&&(i+=", "+t),s&&(i+=', [tabindex="-1"]');const n=Array.prototype.slice.apply(e.querySelectorAll(r)).filter(l=>Tr(l)),o=Array.prototype.slice.apply(e.querySelectorAll(i));return o.length?((l,u)=>l.filter(h=>u.indexOf(h)===-1))(n,o):n}function Xs(e,t=!1,s=!1){const r=gn(e,null,s),i=t?Je(r):r[0];return i?(i.focus({preventScroll:!0}),!0):!1}function gr(e,t,s,r){const i=gn(t,s?':not([tabindex="-1"])':null),n=Ft(e);let o;s?o=i.findIndex(l=>l.contains(n)):o=i.indexOf(n);const a=o+(r?-1:1);return a<0||a>=i.length?null:i[a]}function oS(e,t=5){let s=0;for(;e&&pw(e)===null&&++s<=t;)e=e.parentElement;return pw(e)===null?null:e}function _I(e,t){return e.ctrlsSvc.get("gridCtrl").focusInnerElement(t)}function Lc(e){var t;return e.gos.get("suppressHeaderFocus")||!!((t=e.overlays)!=null&&t.isExclusive())}function $I(e){var t;return e.gos.get("suppressCellFocus")||!!((t=e.overlays)!=null&&t.isExclusive())}function Ro(e,t,s=!1){const r=e.ctrlsSvc.get("gridCtrl");return!s&&r.focusNextInnerContainer(t)?!0:((s||!t&&!r.isDetailGrid())&&r.forceFocusOutOfContainer(t),!1)}var uq=/[&<>"']/g,dq={"&":"&","<":"<",">":">",'"':""","'":"'"};function Xt(e,t){if(e==null)return null;const s=e.toString().toString();return t?s:s.replace(uq,r=>dq[r])}function hq(e,t=!1){return e===B.DELETE?!0:!t&&e===B.BACKSPACE?LA():!1}var pq=class extends J{constructor(e,t,s,r){super(),this.cellCtrl=e,this.rowNode=s,this.rowCtrl=r,this.beans=t}setComp(e){this.eGui=e}onKeyDown(e){const t=e.key;switch(t){case B.ENTER:this.onEnterKeyDown(e);break;case B.F2:this.onF2KeyDown(e);break;case B.ESCAPE:this.onEscapeKeyDown(e);break;case B.TAB:this.onTabKeyDown(e);break;case B.BACKSPACE:case B.DELETE:this.onBackspaceOrDeleteKeyDown(t,e);break;case B.DOWN:case B.UP:case B.RIGHT:case B.LEFT:this.onNavigationKeyDown(e,t);break}}onNavigationKeyDown(e,t){var s;this.cellCtrl.editing||(e.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(e):(s=this.beans.navigation)==null||s.navigateToNextCell(e,t,this.cellCtrl.cellPosition,!0),e.preventDefault())}onShiftRangeSelect(e){const{rangeSvc:t,navigation:s}=this.beans;if(!t)return;const r=t.extendLatestRangeInDirection(e);r&&(s==null||s.ensureCellVisible(r))}onTabKeyDown(e){var t;(t=this.beans.navigation)==null||t.onTabKeyDown(this.cellCtrl,e)}onBackspaceOrDeleteKeyDown(e,t){var l;const{cellCtrl:s,beans:r,rowNode:i}=this,{gos:n,rangeSvc:o,eventSvc:a}=r;if(!s.editing){if(a.dispatchEvent({type:"keyShortcutChangedCellStart"}),hq(e,n.get("enableCellEditingOnBackspace"))){if(o&&Or(n))o.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"});else if(s.isCellEditable()){const{column:u}=s,h=this.beans.valueSvc.getDeleteValue(u,i);i.setDataValue(u,h,"cellClear")}}else(l=r.editSvc)==null||l.startRowOrCellEdit(s,e,t);a.dispatchEvent({type:"keyShortcutChangedCellEnd"})}}onEnterKeyDown(e){var r,i;const{cellCtrl:t,beans:s}=this;if(t.editing||this.rowCtrl.editing)t.stopEditingAndFocus(!1,e.shiftKey);else if(s.gos.get("enterNavigatesVertically")){const n=e.shiftKey?B.UP:B.DOWN;(r=s.navigation)==null||r.navigateToNextCell(null,n,t.cellPosition,!1)}else(i=s.editSvc)==null||i.startRowOrCellEdit(t,B.ENTER,e),t.editing&&e.preventDefault()}onF2KeyDown(e){var r;const{cellCtrl:t,beans:s}=this;t.editing||(r=s.editSvc)==null||r.startRowOrCellEdit(t,B.F2,e)}onEscapeKeyDown(e){var r;const{cellCtrl:t,beans:s}=this;t.editing&&((r=s.editSvc)==null||r.stopRowOrCellEdit(t,!0),t.focusCell(!0))}processCharacter(e){var i;if(e.target!==this.eGui||this.cellCtrl.editing)return;const r=e.key;r===B.SPACE?this.onSpaceKeyDown(e):(i=this.beans.editSvc)!=null&&i.startRowOrCellEdit(this.cellCtrl,r,e)&&e.preventDefault()}onSpaceKeyDown(e){var s;const{gos:t}=this.beans;!this.cellCtrl.editing&&Si(t)&&((s=this.beans.selectionSvc)==null||s.handleSelectionEvent(e,this.rowNode,"spaceKey")),e.preventDefault()}destroy(){super.destroy()}},gq=class extends J{constructor(e,t,s){super(),this.cellCtrl=e,this.column=s,this.beans=t}onMouseEvent(e,t){if(!Ri(t))switch(e){case"click":this.onCellClicked(t);break;case"mousedown":case"touchstart":this.onMouseDown(t);break;case"dblclick":this.onCellDoubleClicked(t);break;case"mouseout":this.onMouseOut(t);break;case"mouseover":this.onMouseOver(t);break}}onCellClicked(e){var u;if((u=this.beans.touchSvc)!=null&&u.handleCellDoubleClick(this,e))return;const{eventSvc:t,rangeSvc:s,gos:r,editSvc:i}=this.beans,n=e.ctrlKey||e.metaKey;s&&n&&s.getCellRangeCount(this.cellCtrl.cellPosition)>1&&s.intersectLastRange(!0);const o=this.cellCtrl.createEvent(e,"cellClicked");t.dispatchEvent(o);const a=this.column.getColDef();a.onCellClicked&&window.setTimeout(()=>{this.beans.frameworkOverrides.wrapOutgoing(()=>{a.onCellClicked(o)})},0),(r.get("singleClickEdit")||a.singleClickEdit)&&!r.get("suppressClickEdit")&&!(e.shiftKey&&(s==null?void 0:s.getCellRanges().length)!=0)&&(i==null||i.startRowOrCellEdit(this.cellCtrl))}onCellDoubleClicked(e){const{column:t,beans:s,cellCtrl:r}=this,{eventSvc:i,frameworkOverrides:n,gos:o,editSvc:a}=s,l=t.getColDef(),u=r.createEvent(e,"cellDoubleClicked");i.dispatchEvent(u),typeof l.onCellDoubleClicked=="function"&&window.setTimeout(()=>{n.wrapOutgoing(()=>{l.onCellDoubleClicked(u)})},0),!o.get("singleClickEdit")&&!o.get("suppressClickEdit")&&(a==null||a.startRowOrCellEdit(r,null,e))}onMouseDown(e){const{ctrlKey:t,metaKey:s,shiftKey:r}=e,i=e.target,{cellCtrl:n,beans:o}=this,{eventSvc:a,rangeSvc:l,focusSvc:u,gos:h}=o;if(this.isRightClickInExistingRange(e))return;const p=l&&!l.isEmpty(),g=this.containsWidget(i),{cellPosition:m}=n;if(!r||!p){const v=h.get("enableCellTextSelection")&&e.defaultPrevented,w=(Wl()||v)&&!n.editing&&!Kb(i)&&!g;n.focusCell(w)}if(r&&p&&!u.isCellFocused(m)){e.preventDefault();const C=u.getFocusedCell();if(C){const{column:v,rowIndex:w,rowPinned:S}=C,P=o.rowRenderer.getRowByPosition({rowIndex:w,rowPinned:S}),T=P==null?void 0:P.getCellCtrl(v);T!=null&&T.editing&&T.stopEditing(),u.setFocusedCell({column:v,rowIndex:w,rowPinned:S,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!g){if(l)if(r)l.extendLatestRangeToCell(m);else{const C=t||s;l.setRangeToCell(m,C)}a.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseDown"))}}isRightClickInExistingRange(e){const{rangeSvc:t}=this.beans;if(t){const s=t.isCellInAnyRange(this.cellCtrl.cellPosition),r=e.button===2||e.ctrlKey&&this.beans.gos.get("allowContextMenuWithControlKey");if(s&&r)return!0}return!1}containsWidget(e){return yl(e,"ag-selection-checkbox",3)||yl(e,"ag-drag-handle",3)}onMouseOut(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:s}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOut")),s==null||s.clearMouseOver()}onMouseOver(e){if(this.mouseStayingInsideCell(e))return;const{eventSvc:t,colHover:s}=this.beans;t.dispatchEvent(this.cellCtrl.createEvent(e,"cellMouseOver")),s==null||s.setMouseOver([this.column])}mouseStayingInsideCell(e){if(!e.target||!e.relatedTarget)return!1;const{eGui:t}=this.cellCtrl,s=t.contains(e.target),r=t.contains(e.relatedTarget);return s&&r}destroy(){super.destroy()}},fq=class extends J{constructor(e,t){super(),this.cellCtrl=e,this.beans=t,this.column=e.column,this.rowNode=e.rowNode}setupRowSpan(){this.rowSpan=this.column.getRowSpan(this.rowNode),this.addManagedListeners(this.beans.eventSvc,{newColumnsLoaded:()=>this.onNewColumnsLoaded()})}setComp(e){this.eGui=e,this.setupColSpan(),this.setupRowSpan(),this.onLeftChanged(),this.onWidthChanged(),this.applyRowSpan()}onNewColumnsLoaded(){const e=this.column.getRowSpan(this.rowNode);this.rowSpan!==e&&(this.rowSpan=e,this.applyRowSpan(!0))}onDisplayColumnsChanged(){const e=this.getColSpanningList();pr(this.colsSpanning,e)||(this.colsSpanning=e,this.onWidthChanged(),this.onLeftChanged())}setupColSpan(){this.column.getColDef().colSpan!=null&&(this.colsSpanning=this.getColSpanningList(),this.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onWidthChanged.bind(this)}))}onWidthChanged(){if(!this.eGui)return;const e=this.getCellWidth();this.eGui.style.width=`${e}px`}getCellWidth(){return this.colsSpanning?this.colsSpanning.reduce((e,t)=>e+t.getActualWidth(),0):this.column.getActualWidth()}getColSpanningList(){const{column:e,rowNode:t}=this,s=e.getColSpan(t),r=[];if(s===1)r.push(e);else{let i=e;const n=e.getPinned();for(let o=0;i&&othis.removeFeatures()),this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.onCellFocused(this.focusEventToRestore),this.applyStaticCssClasses(),this.setWrapText(),this.onFirstRightPinnedChanged(),this.onLastLeftPinnedChanged(),this.onColumnHover(),this.setupControlComps(),this.setupAutoHeight(s,n),this.refreshFirstAndLastStyles(),this.refreshAriaColIndex(),(o=this.positionFeature)==null||o.setComp(t),(a=this.customStyleFeature)==null||a.setComp(e),(l=this.tooltipFeature)==null||l.refreshTooltip(),(u=this.keyboardListener)==null||u.setComp(this.eGui),this.rangeFeature&&this.rangeFeature.setComp(e,t),i&&this.isCellEditable()?(h=this.beans.editSvc)==null||h.startEditing(this):this.showValue(),this.onCompAttachedFuncs.length&&(this.onCompAttachedFuncs.forEach(p=>p()),this.onCompAttachedFuncs=[])}setupAutoHeight(e,t){var s;this.isAutoHeight=this.column.isAutoHeight(),!(!this.isAutoHeight||!e)&&((s=this.beans.rowAutoHeight)==null||s.setupCellAutoHeight(this,e,t))}getCellAriaRole(){return this.column.getColDef().cellAriaRole??"gridcell"}isCellRenderer(){const e=this.column.getColDef();return e.cellRenderer!=null||e.cellRendererSelector!=null}getValueToDisplay(){return this.valueFormatted??this.value}showValue(e=!1){var u;const{beans:t,column:s,rowNode:r,rangeFeature:i}=this,{userCompFactory:n}=t,o=this.getValueToDisplay();let a;if(r.stub&&((u=r.groupData)==null?void 0:u[s.getId()])==null){const h=this.createCellRendererParams();a=_9(n,s.getColDef(),h)}else if(this.isCellRenderer()){const h=this.createCellRendererParams();a=Cf(n,s.getColDef(),h)}this.comp.setRenderDetails(a,o,e),i&&ji(t,()=>i==null?void 0:i.refreshHandle())}setupControlComps(){const e=this.column.getColDef();this.includeSelection=this.isIncludeControl(this.isCheckboxSelection(e)),this.includeRowDrag=this.isIncludeControl(e.rowDrag),this.includeDndSource=this.isIncludeControl(e.dndSource),this.comp.setIncludeSelection(this.includeSelection),this.comp.setIncludeDndSource(this.includeDndSource),this.comp.setIncludeRowDrag(this.includeRowDrag)}isForceWrapper(){return this.beans.gos.get("enableCellTextSelection")||this.column.isAutoHeight()}isIncludeControl(e){return this.rowNode.rowPinned!=null?!1:typeof e=="function"||e===!0}isCheckboxSelection(e){const{rowSelection:t}=this.beans.gridOptions;return e.checkboxSelection||$n(this.column)&&t&&typeof t!="string"&&wl(t)}refreshShouldDestroy(){const e=this.column.getColDef(),t=this.includeSelection!=this.isIncludeControl(this.isCheckboxSelection(e)),s=this.includeRowDrag!=this.isIncludeControl(e.rowDrag),r=this.includeDndSource!=this.isIncludeControl(e.dndSource),i=this.isAutoHeight!=this.column.isAutoHeight();return t||s||r||i}onPopupEditorClosed(){this.editing&&this.stopEditingAndFocus()}stopEditing(e=!1){var t;return((t=this.beans.editSvc)==null?void 0:t.stopEditing(this,e))??!1}createCellRendererParams(){const{value:e,valueFormatted:t,column:s,rowNode:r,comp:i,eGui:n,beans:{valueSvc:o,gos:a}}=this;return a.addGridCommonParams({value:e,valueFormatted:t,getValue:()=>o.getValueForDisplay(s,r),setValue:u=>o.setValue(r,s,u),formatValue:this.formatValue.bind(this),data:r.data,node:r,pinned:s.getPinned(),colDef:s.getColDef(),column:s,refreshCell:this.refreshCell.bind(this),eGridCell:n,eParentOfValue:i.getParentOfValue(),registerRowDragger:(u,h,p,g)=>this.registerRowDragger(u,h,g),setTooltip:(u,h)=>{var p;a.assertModuleRegistered("Tooltip",3),this.tooltipFeature&&this.disableTooltipFeature(),this.enableTooltipFeature(u,h),(p=this.tooltipFeature)==null||p.refreshTooltip()}})}onCellChanged(e){e.column===this.column&&this.refreshCell({})}refreshOrDestroyCell(e){var t;this.refreshShouldDestroy()?(t=this.rowCtrl)==null||t.recreateCell(this):this.refreshCell(e)}refreshCell(e){var u,h,p,g,m,C;if(this.suppressRefreshCell||this.editing)return;const t=this.column.getColDef(),s=e!=null&&!!e.newData,r=e!=null&&!!e.suppressFlash,i=t.field==null&&t.valueGetter==null&&t.showRowGroup==null,n=e&&e.forceRefresh||i||s,o=!!this.comp,a=this.updateAndFormatValue(o),l=n||a;if(o){if(l){this.showValue(s);const v=(u=this.beans.filterManager)==null?void 0:u.isSuppressFlashingCellsBecauseFiltering();!r&&!v&&t.enableCellChangeFlash&&((h=this.beans.cellFlashSvc)==null||h.flashCell(this)),(p=this.customStyleFeature)==null||p.applyUserStyles(),(g=this.customStyleFeature)==null||g.applyClassesFromColDef()}(m=this.tooltipFeature)==null||m.refreshTooltip(),(C=this.customStyleFeature)==null||C.applyCellClassRules()}}stopEditingAndFocus(e=!1,t=!1){var s;(s=this.beans.editSvc)==null||s.stopEditingAndFocus(this,e,t)}isCellEditable(){return this.column.isCellEditable(this.rowNode)}formatValue(e){return this.callValueFormatter(e)??e}callValueFormatter(e){return this.beans.valueSvc.formatValue(this.column,this.rowNode,e)}updateAndFormatValue(e){const t=this.value,s=this.valueFormatted;return this.value=this.beans.valueSvc.getValueForDisplay(this.column,this.rowNode),this.valueFormatted=this.callValueFormatter(this.value),e?!this.valuesAreEqual(t,this.value)||this.valueFormatted!=s:!0}valuesAreEqual(e,t){const s=this.column.getColDef();return s.equals?s.equals(e,t):e===t}addDomData(e){const t=this.eGui;Al(this.beans.gos,t,bf,this),e.addDestroyFunc(()=>Al(this.beans.gos,t,bf,null))}createEvent(e,t){const{rowNode:s,column:r,value:i}=this;return this.beans.gos.addGridCommonParams({type:t,node:s,data:s.data,value:i,column:r,colDef:r.getColDef(),rowPinned:s.rowPinned,event:e,rowIndex:s.rowIndex})}processCharacter(e){var t;(t=this.keyboardListener)==null||t.processCharacter(e)}onKeyDown(e){var t;(t=this.keyboardListener)==null||t.onKeyDown(e)}onMouseEvent(e,t){var s;(s=this.mouseListener)==null||s.onMouseEvent(e,t)}getColSpanningList(){return this.positionFeature.getColSpanningList()}onLeftChanged(){var e;this.comp&&((e=this.positionFeature)==null||e.onLeftChanged())}onDisplayedColumnsChanged(){this.eGui&&(this.refreshAriaColIndex(),this.refreshFirstAndLastStyles())}refreshFirstAndLastStyles(){const{comp:e,column:t,beans:s}=this;HI(e,t,s.visibleCols)}refreshAriaColIndex(){const e=this.beans.visibleCols.getAriaColIndex(this.column);$b(this.eGui,e)}onWidthChanged(){var e;return(e=this.positionFeature)==null?void 0:e.onWidthChanged()}getRowPosition(){const{rowIndex:e,rowPinned:t}=this.cellPosition;return{rowIndex:e,rowPinned:t}}updateRangeBordersIfRangeCount(){var e;this.comp&&((e=this.rangeFeature)==null||e.updateRangeBordersIfRangeCount())}onCellSelectionChanged(){var e;this.comp&&((e=this.rangeFeature)==null||e.onCellSelectionChanged())}isRangeSelectionEnabled(){return this.rangeFeature!=null}focusCell(e=!1){this.beans.focusSvc.setFocusedCell({rowIndex:this.cellPosition.rowIndex,column:this.column,rowPinned:this.rowNode.rowPinned,forceBrowserFocus:e})}onRowIndexChanged(){var e;this.createCellPosition(),this.onCellFocused(),(e=this.rangeFeature)==null||e.onCellSelectionChanged()}onSuppressCellFocusChanged(e){this.eGui&&zi(this.eGui,"tabindex",e?void 0:-1)}onFirstRightPinnedChanged(){if(!this.comp)return;const e=this.column.isFirstRightPinned();this.comp.addOrRemoveCssClass(wq,e)}onLastLeftPinnedChanged(){if(!this.comp)return;const e=this.column.isLastLeftPinned();this.comp.addOrRemoveCssClass(bq,e)}onCellFocused(e){var i;const{beans:t}=this;if($I(t))return;const s=t.focusSvc.isCellFocused(this.cellPosition);if(!this.comp){s&&(e!=null&&e.forceBrowserFocus)&&(this.focusEventToRestore=e);return}if(this.focusEventToRestore=void 0,this.comp.addOrRemoveCssClass(yq,s),s&&e&&e.forceBrowserFocus){let n=this.comp.getFocusableElement();if(this.editing){const o=gn(n,null,!0);o.length&&(n=o[0])}n.focus({preventScroll:!!e.preventScrollOnBrowserFocus})}const r=t.gos.get("editType")==="fullRow";!s&&!r&&this.editing&&((i=t.editSvc)==null||i.stopRowOrCellEdit(this)),s&&this.rowCtrl.announceDescription()}createCellPosition(){const{rowIndex:e,rowPinned:t}=this.rowNode;this.cellPosition={rowIndex:e,rowPinned:Bs(t),column:this.column}}setInlineEditingCss(){var e;(e=this.beans.editSvc)==null||e.setInlineEditingCss(this.rowCtrl)}applyStaticCssClasses(){const{comp:e}=this;e.addOrRemoveCssClass(mq,!0),e.addOrRemoveCssClass(Sq,!0);const t=this.column.isAutoHeight()==!0;e.addOrRemoveCssClass(Cq,t),e.addOrRemoveCssClass(vq,!t)}onColumnHover(){var e;(e=this.beans.colHover)==null||e.onCellColumnHover(this.column,this.comp)}onColDefChanged(){var e;this.comp&&(this.column.isTooltipEnabled()?(this.disableTooltipFeature(),this.enableTooltipFeature()):this.disableTooltipFeature(),this.setWrapText(),this.editing?(e=this.beans.editSvc)==null||e.handleColDefChanged(this):this.refreshOrDestroyCell({forceRefresh:!0,suppressFlash:!0}))}setWrapText(){const e=this.column.getColDef().wrapText==!0;this.comp.addOrRemoveCssClass(xq,e)}dispatchCellContextMenuEvent(e){const t=this.column.getColDef(),s=this.createEvent(e,"cellContextMenu"),{beans:r}=this;r.eventSvc.dispatchEvent(s),t.onCellContextMenu&&window.setTimeout(()=>{r.frameworkOverrides.wrapOutgoing(()=>{t.onCellContextMenu(s)})},0)}getCellRenderer(){var e;return((e=this.comp)==null?void 0:e.getCellRenderer())??null}destroy(){this.onCompAttachedFuncs=[],this.onEditorAttachedFuncs=[],super.destroy()}createSelectionCheckbox(){var t;const e=(t=this.beans.selectionSvc)==null?void 0:t.createCheckboxSelectionComponent();if(e)return this.beans.context.createBean(e),e.init({rowNode:this.rowNode,column:this.column}),e}createDndSource(){const e=this.beans.registry.createDynamicBean("dndSourceComp",!1,this.rowNode,this.column,this.eGui);return e&&this.beans.context.createBean(e),e}registerRowDragger(e,t,s){if(this.customRowDragComp){this.customRowDragComp.setDragElement(e,t);return}const r=this.createRowDragComp(e,t,s);r&&(this.customRowDragComp=r,this.addDestroyFunc(()=>{this.beans.context.destroyBean(r),this.customRowDragComp=null}))}createRowDragComp(e,t,s){var i;const r=(i=this.beans.rowDragSvc)==null?void 0:i.createRowDragCompForCell(this.rowNode,this.column,()=>this.value,e,t,s);if(r)return this.beans.context.createBean(r),r}cellEditorAttached(){this.onEditorAttachedFuncs.forEach(e=>e()),this.onEditorAttachedFuncs=[]}},UI="__ag_grid_instance";function jI(e,t){t[UI]=e.gridInstanceId}function Sf(e,t){return KI(e,t.target)}function KI(e,t){let s=t;for(;s;){const r=s[UI];if(he(r))return r===e.gridInstanceId;s=s.parentElement}return!1}function qI(e,t){var s;return((s=aS(e,t.target))==null?void 0:s.cellPosition)??null}function Hd(e,t){const s=sr(e.gos,"normal"),r=t;let i,n;if(r.clientX!=null||r.clientY!=null?(i=r.clientX,n=r.clientY):(i=r.x,n=r.y),s){const o=e.ctrlsSvc.getScrollFeature(),a=o.getVScrollPosition(),l=o.getHScrollPosition();i+=l.left,n+=a.top}return{x:i,y:n}}var vn=(e=>(e[e.ToolPanel=0]="ToolPanel",e[e.HeaderCell=1]="HeaderCell",e[e.RowDrag=2]="RowDrag",e[e.ChartPanel=3]="ChartPanel",e[e.AdvancedFilterBuilder=4]="AdvancedFilterBuilder",e))(vn||{}),Pq=class extends J{constructor(){super(...arguments),this.beanName="dragAndDrop",this.dragSourceAndParamsList=[],this.dropTargets=[]}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.dragSvc=e.dragSvc,this.environment=e.environment,this.userCompFactory=e.userCompFactory}addDragSource(e,t=!1){const s={eElement:e.eElement,dragStartPixels:e.dragStartPixels,onDragStart:this.onDragStart.bind(this,e),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),onDragCancel:this.onDragCancel.bind(this),includeTouch:t};this.dragSourceAndParamsList.push({params:s,dragSource:e}),this.dragSvc.addDragSource(s)}getDragAndDropImageComponent(){const{dragAndDropImageComp:e}=this;return!e||!e.comp?null:e.comp}removeDragSource(e){const{dragSourceAndParamsList:t,dragSvc:s}=this,r=t.find(i=>i.dragSource===e);r&&(s.removeDragSource(r.params),ir(t,r))}destroy(){const{dragSourceAndParamsList:e,dragSvc:t,dropTargets:s}=this;e.forEach(r=>t.removeDragSource(r.params)),e.length=0,s.length=0,this.clearDragAndDropProperties(),super.destroy()}nudge(){this.dragging&&this.onDragging(this.eventLastTime,!0)}onDragStart(e,t){var s;this.dragging=!0,this.dragSource=e,this.eventLastTime=t,this.dragItem=e.getDragItem(),(s=e.onDragStarted)==null||s.call(e),this.createDragAndDropImageComponent()}onDragStop(e){var s,r;(r=(s=this.dragSource)==null?void 0:s.onDragStopped)==null||r.call(s);const{lastDropTarget:t}=this;if(t!=null&&t.onDragStop){const i=this.createDropTargetEvent(t,e,null,null,!1);t.onDragStop(i)}this.clearDragAndDropProperties()}onDragCancel(){var s;const{dragSource:e,lastDropTarget:t}=this;(s=e==null?void 0:e.onDragCancelled)==null||s.call(e),t!=null&&t.onDragCancel&&t.onDragCancel(this.createDropTargetEvent(t,this.eventLastTime,null,null,!1)),this.clearDragAndDropProperties()}clearDragAndDropProperties(){this.eventLastTime=null,this.dragging=!1,this.lastDropTarget=void 0,this.dragItem=null,this.dragSource=null,this.removeDragAndDropImageComponent()}onDragging(e,t=!1){var h,p;const s=this.getHorizontalDirection(e),r=this.getVerticalDirection(e);this.eventLastTime=e,this.positionDragAndDropImageComp(e);const i=this.dropTargets.filter(g=>this.isMouseOnDropTarget(e,g)),n=this.findCurrentDropTarget(e,i),{lastDropTarget:o,dragSource:a,dragAndDropImageComp:l,dragItem:u}=this;if(n!==o){if(this.leaveLastTargetIfExists(e,s,r,t),o!==null&&n===null&&((h=a==null?void 0:a.onGridExit)==null||h.call(a,u)),o===null&&n!==null&&((p=a==null?void 0:a.onGridEnter)==null||p.call(a,u)),this.enterDragTargetIfExists(n,e,s,r,t),n&&l){const{comp:g,promise:m}=l;g?g.setIcon(n.getIconName?n.getIconName():null,!1):m.then(C=>{C&&C.setIcon(n.getIconName?n.getIconName():null,!1)})}this.lastDropTarget=n}else if(n&&n.onDragging){const g=this.createDropTargetEvent(n,e,s,r,t);n.onDragging(g)}}getAllContainersFromDropTarget(e){const t=e.getSecondaryContainers?e.getSecondaryContainers():null,s=[[e.getContainer()]];return t?s.concat(t):s}isMouseOnDropTarget(e,t){const s=this.getAllContainersFromDropTarget(t);let r=!1;const i=(a,l)=>{for(const u of l){const{width:h,height:p,left:g,right:m,top:C,bottom:v}=u.getBoundingClientRect();if(h===0||p===0)return!1;const w=a.clientX>=g&&a.clientX=C&&a.clientYl).indexOf(n)!==-1)return o;return null}enterDragTargetIfExists(e,t,s,r,i){if(e&&e.onDragEnter){const n=this.createDropTargetEvent(e,t,s,r,i);e.onDragEnter(n)}}leaveLastTargetIfExists(e,t,s,r){const{lastDropTarget:i}=this;if(!i)return;if(i.onDragLeave){const o=this.createDropTargetEvent(i,e,t,s,r);i.onDragLeave(o)}const n=this.getDragAndDropImageComponent();n&&n.setIcon(null,!1)}addDropTarget(e){this.dropTargets.push(e)}removeDropTarget(e){this.dropTargets=this.dropTargets.filter(t=>t.getContainer()!==e.getContainer())}hasExternalDropZones(){return this.dropTargets.some(e=>e.external)}findExternalZone(e){return this.dropTargets.filter(s=>s.external).find(s=>s.getContainer()===e.getContainer())||null}isDropZoneWithinThisGrid(e){const s=this.ctrlsSvc.getGridBodyCtrl().eGridBody,{dropZoneTarget:r}=e;return s.contains(r)}getHorizontalDirection(e){var r;const t=(r=this.eventLastTime)==null?void 0:r.clientX,s=e.clientX;return t===s?null:t>s?"left":"right"}getVerticalDirection(e){var r;const t=(r=this.eventLastTime)==null?void 0:r.clientY,s=e.clientY;return t===s?null:t>s?"up":"down"}createDropTargetEvent(e,t,s,r,i){const n=e.getContainer(),o=n.getBoundingClientRect(),{dragItem:a,dragSource:l,gos:u}=this,h=t.clientX-o.left,p=t.clientY-o.top;return u.addGridCommonParams({event:t,x:h,y:p,vDirection:r,hDirection:s,dragSource:l,fromNudge:i,dragItem:a,dropZoneTarget:n})}positionDragAndDropImageComp(e){const t=this.getDragAndDropImageComponent();t&&Cw(t.getGui(),e,this.beans)}removeDragAndDropImageComponent(){var t;const{dragAndDropImageComp:e}=this;if(e){const{comp:s}=e;if(s){const r=s.getGui();(t=this.dragAndDropImageParent)==null||t.removeChild(r),this.destroyBean(s)}}this.dragAndDropImageComp=null}createDragAndDropImageComponent(){const{dragSource:e}=this;if(!e)return;const t=L9(this.userCompFactory,{dragSource:e});if(!t)return;const s=t.newAgStackInstance();this.dragAndDropImageComp={promise:s},s.then(r=>{!r||!this.isAlive()||(this.processDragAndDropImageComponent(r),this.dragAndDropImageComp.comp=r)})}processDragAndDropImageComponent(e){const{dragSource:t,environment:s}=this;if(!t)return;const r=e.getGui();r.style.setProperty("position","absolute"),r.style.setProperty("z-index","9999"),jI(this.gos,r),s.applyThemeClasses(r),e.setIcon(null,!1);let{dragItemName:i}=t;typeof i=="function"&&(i=i()),e.setLabel(i||""),r.style.top="20px",r.style.left="20px";const n=Cm(this.beans);this.dragAndDropImageParent=n,n?n.appendChild(r):Q(54)}registerGridDropTarget(e,t){const s={getContainer:e,isInterestedIn:r=>r===1||r===0,getIconName:()=>"notAllowed"};this.addDropTarget(s),t.addDestroyFunc(()=>this.removeDropTarget(s))}},lS=class{constructor(e){this.tickingInterval=null,this.onScrollCallback=null,this.scrollContainer=e.scrollContainer,this.scrollHorizontally=e.scrollAxis.indexOf("x")!==-1,this.scrollVertically=e.scrollAxis.indexOf("y")!==-1,this.scrollByTick=e.scrollByTick!=null?e.scrollByTick:20,e.onScrollCallback&&(this.onScrollCallback=e.onScrollCallback),this.scrollVertically&&(this.getVerticalPosition=e.getVerticalPosition,this.setVerticalPosition=e.setVerticalPosition),this.scrollHorizontally&&(this.getHorizontalPosition=e.getHorizontalPosition,this.setHorizontalPosition=e.setHorizontalPosition),this.shouldSkipVerticalScroll=e.shouldSkipVerticalScroll||(()=>!1),this.shouldSkipHorizontalScroll=e.shouldSkipHorizontalScroll||(()=>!1)}check(e,t=!1){const s=t||this.shouldSkipVerticalScroll();if(s&&this.shouldSkipHorizontalScroll())return;const r=this.scrollContainer.getBoundingClientRect(),i=this.scrollByTick;this.tickLeft=e.clientXr.right-i,this.tickUp=e.clientYr.bottom-i&&!s,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}ensureTickingStarted(){this.tickingInterval===null&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)}doTick(){this.tickCount++;const e=this.tickCount>20?200:this.tickCount>10?80:40;if(this.scrollVertically){const t=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(t-e),this.tickDown&&this.setVerticalPosition(t+e)}if(this.scrollHorizontally){const t=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(t-e),this.tickRight&&this.setHorizontalPosition(t+e)}this.onScrollCallback&&this.onScrollCallback()}ensureCleared(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)}};function oa(e){const{rowIndex:t,rowPinned:s,column:r}=e;return`${t}.${s??"null"}.${r.getId()}`}function eu(e,t){const s=e.column===t.column,r=e.rowPinned===t.rowPinned,i=e.rowIndex===t.rowIndex;return s&&r&&i}function xr(e,t){switch(e.rowPinned){case"top":if(t.rowPinned!=="top")return!0;break;case"bottom":if(t.rowPinned!=="bottom")return!1;break;default:if(he(t.rowPinned))return t.rowPinned!=="top";break}return e.rowIndex{const i=r.gridBodyCtrl;this.autoScrollService=new lS({scrollContainer:i.eBodyViewport,scrollAxis:"y",getVerticalPosition:()=>i.scrollFeature.getVScrollPosition().top,setVerticalPosition:n=>i.scrollFeature.setVerticalScrollPosition(n),onScrollCallback:()=>{this.onDragging(this.lastDraggingEvent)}})})}getContainer(){return this.eContainer}isInterestedIn(e){return e===2}getIconName(){return this.gos.get("rowDragManaged")&&this.shouldPreventRowMove()?"notAllowed":"move"}shouldPreventRowMove(){const{rowGroupColsSvc:e,filterManager:t,sortSvc:s}=this.beans;return!!(((e==null?void 0:e.columns)??[]).length||(t==null?void 0:t.isAnyFilterPresent())||(s==null?void 0:s.isSortActive()))}getRowNodes(e){var r;if(!this.isFromThisGrid(e))return e.dragItem.rowNodes||[];const t=e.dragItem.rowNode;if(this.gos.get("rowDragMultiRow")){const i=[...((r=this.beans.selectionSvc)==null?void 0:r.getSelectedNodes())??[]].sort((n,o)=>n.rowIndex==null||o.rowIndex==null?0:this.getRowIndexNumber(n)-this.getRowIndexNumber(o));if(i.indexOf(t)!==-1)return i}return[t]}onDragEnter(e){e.dragItem.rowNodes=this.getRowNodes(e),this.dispatchGridEvent("rowDragEnter",e),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!0)}),this.onEnterOrDragging(e)}onDragging(e){this.onEnterOrDragging(e)}isFromThisGrid(e){const{dragSourceDomDataKey:t}=e.dragSource;return t===this.gos.getDomDataKey()}onEnterOrDragging(e){this.dispatchGridEvent("rowDragMove",e),this.lastDraggingEvent=e;const t=Hd(this.beans,e).y;this.gos.get("rowDragManaged")&&this.doManagedDrag(e,t),this.autoScrollService.check(e.event)}doManagedDrag(e,t){const{dragAndDrop:s,gos:r}=this.beans,i=this.isFromThisGrid(e),n=r.get("rowDragManaged"),o=e.dragItem.rowNodes;n&&this.shouldPreventRowMove()||(r.get("suppressMoveWhenRowDragging")||!i?s.isDropZoneWithinThisGrid(e)&&this.clientSideRowModel.highlightRowAtPixel(o[0],t):this.moveRows(o,t))}getRowIndexNumber(e){const t=e.getRowIndexString();return parseInt(Je(t.split("-")),10)}moveRowAndClearHighlight(e){const t=this.clientSideRowModel,s=t.getLastHighlightedRowNode(),r=s&&s.highlighted==="Below",i=Hd(this.beans,e).y,n=e.dragItem.rowNodes;let o=r?1:0;if(this.isFromThisGrid(e))n.forEach(a=>{a.rowTop!t.getRowNode((a==null?void 0:a({data:u.data,level:0,rowPinned:u.rowPinned}))??u.data.id)).map(u=>u.data),addIndex:l})}this.clearRowHighlight()}clearRowHighlight(){this.clientSideRowModel.highlightRowAtPixel(null)}moveRows(e,t,s=0){const r=this.beans.focusSvc,i=r.getFocusedCell(),n=i&&Bn(this.beans,i);this.clientSideRowModel.ensureRowsAtPixel(e,t,s)&&(n?n.focusCell():r.clearFocusedCell())}addRowDropZone(e){if(!e.getContainer()){Q(55);return}const t=this.beans.dragAndDrop;if(t.findExternalZone(e)){Q(56);return}let s={getContainer:e.getContainer};e.fromGrid?s=e:(e.onDragEnter&&(s.onDragEnter=i=>{e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",i))}),e.onDragLeave&&(s.onDragLeave=i=>{e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",i))}),e.onDragging&&(s.onDragging=i=>{e.onDragging(this.draggingToRowDragEvent("rowDragMove",i))}),e.onDragStop&&(s.onDragStop=i=>{e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",i))}),e.onDragCancel&&(s.onDragCancel=i=>{e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",i))}));const r={isInterestedIn:i=>i===2,getIconName:()=>"move",external:!0,...s};t.addDropTarget(r),this.addDestroyFunc(()=>t.removeDropTarget(r))}getRowDropZone(e){const t=this.getContainer.bind(this),s=this.onDragEnter.bind(this),r=this.onDragLeave.bind(this),i=this.onDragging.bind(this),n=this.onDragStop.bind(this),o=this.onDragCancel.bind(this);let a;return e?a={getContainer:t,onDragEnter:e.onDragEnter?l=>{s(l),e.onDragEnter(this.draggingToRowDragEvent("rowDragEnter",l))}:s,onDragLeave:e.onDragLeave?l=>{r(l),e.onDragLeave(this.draggingToRowDragEvent("rowDragLeave",l))}:r,onDragging:e.onDragging?l=>{i(l),e.onDragging(this.draggingToRowDragEvent("rowDragMove",l))}:i,onDragStop:e.onDragStop?l=>{n(l),e.onDragStop(this.draggingToRowDragEvent("rowDragEnd",l))}:n,onDragCancel:e.onDragCancel?l=>{o(l),e.onDragCancel(this.draggingToRowDragEvent("rowDragCancel",l))}:o,fromGrid:!0}:a={getContainer:t,onDragEnter:s,onDragLeave:r,onDragging:i,onDragStop:n,onDragCancel:o,fromGrid:!0},a}draggingToRowDragEvent(e,t){const s=this.beans,{pageBounds:r,rowModel:i,gos:n}=s,o=Hd(s,t).y,a=o>r.getCurrentPageHeight();let l=-1,u;return a||(l=i.getRowIndexAtPixel(o),u=i.getRow(l)),n.addGridCommonParams({type:e,event:t.event,node:t.dragItem.rowNode,nodes:t.dragItem.rowNodes,overIndex:l,overNode:u,y:o,vDirection:t.vDirection})}dispatchGridEvent(e,t){const s=this.draggingToRowDragEvent(e,t);this.eventSvc.dispatchEvent(s)}onDragLeave(e){this.dispatchGridEvent("rowDragLeave",e),this.stopDragging(e),this.gos.get("rowDragManaged")&&this.clearRowHighlight()}onDragStop(e){this.dispatchGridEvent("rowDragEnd",e),this.stopDragging(e);const{dragAndDrop:t,gos:s}=this.beans;s.get("rowDragManaged")&&(s.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)&&this.moveRowAndClearHighlight(e)}onDragCancel(e){this.dispatchGridEvent("rowDragCancel",e),this.stopDragging(e);const{dragAndDrop:t,gos:s}=this.beans;s.get("rowDragManaged")&&(s.get("suppressMoveWhenRowDragging")||!this.isFromThisGrid(e))&&t.isDropZoneWithinThisGrid(e)&&this.clearRowHighlight()}stopDragging(e){this.autoScrollService.ensureCleared(),this.getRowNodes(e).forEach(t=>{this.setRowNodeDragging(t,!1)})}setRowNodeDragging(e,t){e.dragging!==t&&(e.dragging=t,e.dispatchRowEvent("draggingChanged"))}};function YI(e,t,s){if(s===0)return!1;const r=Math.abs(e.clientX-t.clientX),i=Math.abs(e.clientY-t.clientY);return Math.max(r,i)<=s}var Mq=class extends J{constructor(){super(...arguments),this.beanName="dragSvc",this.dragEndFunctions=[],this.dragSources=[]}destroy(){const{dragSources:e}=this;e.forEach(this.removeListener.bind(this)),e.length=0,super.destroy()}removeListener(e){const t=e.dragSource.eElement,s=e.mouseDownListener;if(t.removeEventListener("mousedown",s),e.touchEnabled){const r=e.touchStartListener;t.removeEventListener("touchstart",r,{passive:!0})}}removeDragSource(e){const{dragSources:t}=this,s=t.find(r=>r.dragSource===e);s&&(this.removeListener(s),ir(t,s))}addDragSource(e){const t=this.onMouseDown.bind(this,e),{eElement:s,includeTouch:r,stopPropagationForTouch:i}=e;s.addEventListener("mousedown",t);let n=null;const o=this.gos.get("suppressTouch");r&&!o&&(n=a=>{Kb(a.target)||(i&&a.stopPropagation(),this.onTouchStart(e,a))},s.addEventListener("touchstart",n,{passive:!1})),this.dragSources.push({dragSource:e,mouseDownListener:t,touchStartListener:n,touchEnabled:!!r})}onTouchStart(e,t){this.currentDragParams=e,this.dragging=!1;const s=t.touches[0];this.touchLastTime=s,this.touchStart=s;const r=l=>this.onTouchMove(l,e.eElement),i=l=>this.onTouchUp(l,e.eElement),n=l=>{l.cancelable&&l.preventDefault()},o=t.target,a=[{target:Xc(this.beans),type:"touchmove",listener:n,options:{passive:!1}},{target:o,type:"touchmove",listener:r,options:{passive:!0}},{target:o,type:"touchend",listener:i,options:{passive:!0}},{target:o,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(a),e.dragStartPixels===0&&this.onCommonMove(s,this.touchStart,e.eElement)}onMouseDown(e,t){const s=t;if(e.skipMouseEvent&&e.skipMouseEvent(t)||s._alreadyProcessedByDragService||(s._alreadyProcessedByDragService=!0,t.button!==0))return;this.shouldPreventMouseEvent(t)&&t.preventDefault(),this.currentDragParams=e,this.dragging=!1,this.mouseStartEvent=t,this.startTarget=t.target;const r=u=>this.onMouseMove(u,e.eElement),i=u=>this.onMouseUp(u,e.eElement),n=u=>u.preventDefault(),o=u=>{u.key===B.ESCAPE&&this.cancelDrag(e.eElement)},a=Xc(this.beans),l=[{target:a,type:"mousemove",listener:r},{target:a,type:"mouseup",listener:i},{target:a,type:"contextmenu",listener:n},{target:a,type:"keydown",listener:o}];this.addTemporaryEvents(l),e.dragStartPixels===0&&this.onMouseMove(t,e.eElement)}addTemporaryEvents(e){e.forEach(t=>{const{target:s,type:r,listener:i,options:n}=t;s.addEventListener(r,i,n)}),this.dragEndFunctions.push(()=>{e.forEach(t=>{const{target:s,type:r,listener:i,options:n}=t;s.removeEventListener(r,i,n)})})}isEventNearStartEvent(e,t){const{dragStartPixels:s}=this.currentDragParams,r=he(s)?s:4;return YI(e,t,r)}getFirstActiveTouch(e){for(let t=0;t{const o=n.target,a=o==null?void 0:o.tagName.toLocaleLowerCase();return!!(a!=null&&a.match("^a$|textarea|input|select|button"))};return s&&r&&e.cancelable&&Sf(t,e)&&!i(e)}onTouchUp(e,t){let s=this.getFirstActiveTouch(e.changedTouches);s||(s=this.touchLastTime),this.onUpCommon(s,t)}onMouseUp(e,t){this.onUpCommon(e,t)}onUpCommon(e,t){this.dragging&&(this.dragging=!1,this.currentDragParams.onDragStop(e),this.eventSvc.dispatchEvent({type:"dragStopped",target:t})),this.resetDragProperties()}cancelDrag(e){var t,s;this.eventSvc.dispatchEvent({type:"dragCancelled",target:e}),(s=(t=this.currentDragParams)==null?void 0:t.onDragCancel)==null||s.call(t),this.resetDragProperties()}resetDragProperties(){this.mouseStartEvent=null,this.startTarget=null,this.touchStart=null,this.touchLastTime=null,this.currentDragParams=null;const{dragEndFunctions:e}=this;e.forEach(t=>t()),e.length=0}};function XI(e,t){return e+"_"+t}function Ms(e){return e instanceof QI}var QI=class extends J{constructor(e,t,s,r){super(),this.providedColumnGroup=e,this.groupId=t,this.partId=s,this.pinned=r,this.isColumn=!1,this.displayedChildren=[],this.autoHeaderHeight=null,this.parent=null}reset(){this.parent=null,this.children=null,this.displayedChildren=null}getParent(){return this.parent}getUniqueId(){return XI(this.groupId,this.partId)}isEmptyGroup(){return this.displayedChildren.length===0}isMoving(){const e=this.getProvidedColumnGroup().getLeafColumns();return!e||e.length===0?!1:e.every(t=>t.isMoving())}checkLeft(){if(this.displayedChildren.forEach(e=>{Ms(e)&&e.checkLeft()}),this.displayedChildren.length>0)if(this.gos.get("enableRtl")){const t=Je(this.displayedChildren).getLeft();this.setLeft(t)}else{const e=this.displayedChildren[0].getLeft();this.setLeft(e)}else this.setLeft(null)}getLeft(){return this.left}getOldLeft(){return this.oldLeft}setLeft(e){this.oldLeft=this.left,this.left!==e&&(this.left=e,this.dispatchLocalEvent({type:"leftChanged"}))}getPinned(){return this.pinned}getGroupId(){return this.groupId}getPartId(){return this.partId}getActualWidth(){var t;let e=0;return(t=this.displayedChildren)==null||t.forEach(s=>{e+=s.getActualWidth()}),e}isResizable(){if(!this.displayedChildren)return!1;let e=!1;return this.displayedChildren.forEach(t=>{t.isResizable()&&(e=!0)}),e}getMinWidth(){let e=0;return this.displayedChildren.forEach(t=>{e+=t.getMinWidth()}),e}addChild(e){this.children||(this.children=[]),this.children.push(e)}getDisplayedChildren(){return this.displayedChildren}getLeafColumns(){const e=[];return this.addLeafColumns(e),e}getDisplayedLeafColumns(){const e=[];return this.addDisplayedLeafColumns(e),e}getDefinition(){return this.providedColumnGroup.getColGroupDef()}getColGroupDef(){return this.providedColumnGroup.getColGroupDef()}isPadding(){return this.providedColumnGroup.isPadding()}isExpandable(){return this.providedColumnGroup.isExpandable()}isExpanded(){return this.providedColumnGroup.isExpanded()}setExpanded(e){this.providedColumnGroup.setExpanded(e)}isAutoHeaderHeight(){var e;return!!((e=this.getColGroupDef())!=null&&e.autoHeaderHeight)}getAutoHeaderHeight(){return this.autoHeaderHeight}setAutoHeaderHeight(e){const t=e!==this.autoHeaderHeight;return this.autoHeaderHeight=e,t}addDisplayedLeafColumns(e){this.displayedChildren.forEach(t=>{Kn(t)?e.push(t):Ms(t)&&t.addDisplayedLeafColumns(e)})}addLeafColumns(e){this.children.forEach(t=>{Kn(t)?e.push(t):Ms(t)&&t.addLeafColumns(e)})}getChildren(){return this.children}getColumnGroupShow(){return this.providedColumnGroup.getColumnGroupShow()}getProvidedColumnGroup(){return this.providedColumnGroup}getPaddingLevel(){const e=this.getParent();return!this.isPadding()||!e||!e.isPadding()?0:1+e.getPaddingLevel()}calculateDisplayedColumns(){this.displayedChildren=[];let e=this;for(;e!=null&&e.isPadding();)e=e.getParent();if(!(e?e.getProvidedColumnGroup().isExpandable():!1)){this.displayedChildren=this.children,this.dispatchLocalEvent({type:"displayedChildrenChanged"});return}this.children.forEach(s=>{if(Ms(s)&&(!s.displayedChildren||!s.displayedChildren.length))return;switch(s.getColumnGroupShow()){case"open":e.getProvidedColumnGroup().isExpanded()&&this.displayedChildren.push(s);break;case"closed":e.getProvidedColumnGroup().isExpanded()||this.displayedChildren.push(s);break;default:this.displayedChildren.push(s);break}}),this.dispatchLocalEvent({type:"displayedChildrenChanged"})}},hh="row-group-",JI="t-",ZI="b-",Dq=0,ci=class{constructor(e){this.master=!1,this.detail=void 0,this.rowIndex=null,this.key=null,this.sourceRowIndex=-1,this.childrenMapped={},this.treeNode=null,this.treeNodeFlags=0,this.displayed=!1,this.rowTop=null,this.oldRowTop=null,this.selectable=!0,this.__objectId=Dq++,this.alreadyRendered=!1,this.highlighted=null,this.hovered=!1,this.__selected=!1,this.beans=e}setData(e){this.setDataCommon(e,!1)}updateData(e){this.setDataCommon(e,!0)}setDataCommon(e,t){var i,n,o;const s=this.data;this.data=e,(i=this.beans.valueCache)==null||i.onDataChanged(),this.updateDataOnDetailNode(),(n=this.beans.selectionSvc)==null||n.updateRowSelectable(this),this.resetQuickFilterAggregateText();const r=this.createDataChangedEvent(e,s,t);(o=this.__localEventService)==null||o.dispatchEvent(r)}updateDataOnDetailNode(){this.detailNode&&(this.detailNode.data=this.data)}createDataChangedEvent(e,t,s){return{type:"dataChanged",node:this,oldData:t,newData:e,update:s}}getRowIndexString(){return this.rowIndex==null?(ft(13),null):this.rowPinned==="top"?JI+this.rowIndex:this.rowPinned==="bottom"?ZI+this.rowIndex:this.rowIndex.toString()}setDataAndId(e,t){var o,a;const{selectionSvc:s}=this.beans,r=(o=s==null?void 0:s.createDaemonNode)==null?void 0:o.call(s,this),i=this.data;this.data=e,this.updateDataOnDetailNode(),this.setId(t),s&&(s.updateRowSelectable(this),s.syncInRowNode(this,r));const n=this.createDataChangedEvent(e,i,!1);(a=this.__localEventService)==null||a.dispatchEvent(n)}setId(e){var s;const t=xo(this.beans.gos);if(t)if(this.data){const r=((s=this.parent)==null?void 0:s.getRoute())??[];this.id=t({data:this.data,parentKeys:r.length>0?r:void 0,level:this.level,rowPinned:this.rowPinned}),this.id.startsWith(hh)&&ft(14,{groupPrefix:hh})}else this.id=void 0;else this.id=e}setRowTop(e){this.oldRowTop=this.rowTop,this.rowTop!==e&&(this.rowTop=e,this.dispatchRowEvent("topChanged"),this.setDisplayed(e!==null))}clearRowTopAndRowIndex(){this.oldRowTop=null,this.setRowTop(null),this.setRowIndex(null)}setHovered(e){this.hovered=e}isHovered(){return this.hovered}setRowHeight(e,t=!1){this.rowHeight=e,this.rowHeightEstimated=t,this.dispatchRowEvent("heightChanged")}setExpanded(e,t,s){var r;(r=this.beans.expansionSvc)==null||r.setExpanded(this,e,t,s)}setDataValue(e,t,s){const{colModel:r,valueSvc:i,gos:n,selectionSvc:o}=this.beans,a=typeof e!="string"?e:r.getCol(e)??r.getColDefCol(e);if(!a)return!1;const l=i.getValueForDisplay(a,this);if(n.get("readOnlyEdit")){const{beans:{eventSvc:h},data:p,rowIndex:g,rowPinned:m}=this;return h.dispatchEvent({type:"cellEditRequest",event:null,rowIndex:g,rowPinned:m,column:a,colDef:a.colDef,data:p,node:this,oldValue:l,newValue:t,value:t,source:s}),!1}const u=i.setValue(this,a,t,s);return this.dispatchCellChangedEvent(a,t,l),o==null||o.updateRowSelectable(this),u}updateHasChildren(){let e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;const{rowChildrenSvc:t}=this.beans;t&&(e=t.getHasChildrenValue(this)),e!==this.__hasChildren&&(this.__hasChildren=!!e,this.dispatchRowEvent("hasChildrenChanged"))}hasChildren(){return this.__hasChildren==null&&this.updateHasChildren(),this.__hasChildren}dispatchCellChangedEvent(e,t,s){var i;const r={type:"cellChanged",node:this,column:e,newValue:t,oldValue:s};(i=this.__localEventService)==null||i.dispatchEvent(r)}resetQuickFilterAggregateText(){this.quickFilterAggregateText=null}isExpandable(){var e;return((e=this.beans.expansionSvc)==null?void 0:e.isExpandable(this))??!1}isSelected(){return this.footer?this.sibling.isSelected():this.__selected}depthFirstSearch(e){var t;(t=this.childrenAfterGroup)==null||t.forEach(s=>s.depthFirstSearch(e)),e(this)}dispatchRowEvent(e){var t;(t=this.__localEventService)==null||t.dispatchEvent({type:e,node:this})}setSelected(e,t=!1,s="api"){var r;(r=this.beans.selectionSvc)==null||r.setNodesSelected({nodes:[this],newValue:e,clearSelection:t,source:s})}isRowPinned(){return!!this.rowPinned}addEventListener(e,t){var r,i,n,o;(r=this.beans.validation)==null||r.checkRowEvents(e),this.__localEventService||(this.__localEventService=new ka),this.frameworkEventListenerService=(n=(i=this.beans.frameworkOverrides).createLocalEventListenerWrapper)==null?void 0:n.call(i,this.frameworkEventListenerService,this.__localEventService);const s=((o=this.frameworkEventListenerService)==null?void 0:o.wrap(t))??t;this.__localEventService.addEventListener(e,s)}removeEventListener(e,t){var r;if(!this.__localEventService)return;const s=((r=this.frameworkEventListenerService)==null?void 0:r.unwrap(t))??t;this.__localEventService.removeEventListener(e,s),this.__localEventService.noRegisteredListenersExist()&&(this.__localEventService=null)}isFullWidthCell(){if(Q(61),this.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this}):!1}getRoute(){if(this.level===-1)return[];if(this.key==null)return;const e=[];let t=this;for(;t&&t.key!=null;)e.push(t.key),t=t.parent;return e.reverse()}setFirstChild(e){this.firstChild!==e&&(this.firstChild=e,this.dispatchRowEvent("firstChildChanged"))}setDisplayed(e){this.displayed!==e&&(this.displayed=e,this.dispatchRowEvent("displayedChanged"))}setRowIndex(e){this.rowIndex!==e&&(this.rowIndex=e,this.dispatchRowEvent("rowIndexChanged"))}setAllChildrenCount(e){this.allChildrenCount!==e&&(this.allChildrenCount=e,this.dispatchRowEvent("allChildrenCountChanged"))}setUiLevel(e){this.uiLevel!==e&&(this.uiLevel=e,this.dispatchRowEvent("uiLevelChanged"))}};function ek(e,t,s){return t.addGridCommonParams({type:s,node:e,data:e.data,rowIndex:e.rowIndex,rowPinned:e.rowPinned})}var Rm=class extends pe{constructor(e,t){super('
'),this.column=e,this.source=t,this.filterWrapper=null}postConstruct(){this.createFilter(!0),this.addManagedEventListeners({filterDestroyed:this.onFilterDestroyed.bind(this)})}hasFilter(){return!!this.filterWrapper}getFilter(){var e;return((e=this.filterWrapper)==null?void 0:e.filterPromise)??null}afterInit(){var e,t;return((t=(e=this.filterWrapper)==null?void 0:e.filterPromise)==null?void 0:t.then(()=>{}))??nt.resolve()}afterGuiAttached(e){var t,s;(s=(t=this.filterWrapper)==null?void 0:t.filterPromise)==null||s.then(r=>{var i;(i=r==null?void 0:r.afterGuiAttached)==null||i.call(r,e)})}afterGuiDetached(){var e,t;(t=(e=this.filterWrapper)==null?void 0:e.filterPromise)==null||t.then(s=>{var r;(r=s==null?void 0:s.afterGuiDetached)==null||r.call(s)})}createFilter(e){var r,i;const{column:t,source:s}=this;this.filterWrapper=((r=this.beans.filterManager)==null?void 0:r.getOrCreateFilterWrapper(t))??null,(i=this.filterWrapper)!=null&&i.filterPromise&&this.filterWrapper.filterPromise.then(n=>{const o=n.getGui();he(o)||Q(69,{guiFromFilter:o}),this.appendChild(o),e&&this.eventSvc.dispatchEvent({type:"filterOpened",column:t,source:s,eGui:this.getGui()})})}onFilterDestroyed(e){(e.source==="api"||e.source==="paramsUpdated")&&e.column.getId()===this.column.getId()&&this.beans.colModel.getColDefCol(this.column)&&(Lt(this.getGui()),this.createFilter())}destroy(){this.filterWrapper=null,super.destroy()}},tk="ag-resizer-wrapper",sa=(e,t)=>`
`,Aq=`
${sa("eTopLeft","topLeft")} ${sa("eTop","top")} ${sa("eTopRight","topRight")} ${sa("eRight","right")} ${sa("eBottomRight","bottomRight")} ${sa("eBottom","bottom")} ${sa("eBottomLeft","bottomLeft")} ${sa("eLeft","left")}
`,Pm=class extends J{constructor(e,t){super(),this.element=e,this.dragStartPosition={x:0,y:0},this.position={x:0,y:0},this.lastSize={width:-1,height:-1},this.positioned=!1,this.resizersAdded=!1,this.resizeListeners=[],this.boundaryEl=null,this.isResizing=!1,this.isMoving=!1,this.resizable={},this.movable=!1,this.currentResizer=null,this.config=Object.assign({},{popup:!1},t)}wireBeans(e){this.popupSvc=e.popupSvc,this.dragSvc=e.dragSvc}center(){const{clientHeight:e,clientWidth:t}=this.offsetParent,s=t/2-this.getWidth()/2,r=e/2-this.getHeight()/2;this.offsetElement(s,r)}initialisePosition(){if(this.positioned)return;const{centered:e,forcePopupParentAsOffsetParent:t,minWidth:s,width:r,minHeight:i,height:n,x:o,y:a}=this.config;this.offsetParent||this.setOffsetParent();let l=0,u=0;const h=Tr(this.element);if(h){const p=this.findBoundaryElement(),g=window.getComputedStyle(p);if(g.minWidth!=null){const m=p.offsetWidth-this.element.offsetWidth;u=parseInt(g.minWidth,10)-m}if(g.minHeight!=null){const m=p.offsetHeight-this.element.offsetHeight;l=parseInt(g.minHeight,10)-m}}if(this.minHeight=i||l,this.minWidth=s||u,r&&this.setWidth(r),n&&this.setHeight(n),(!r||!n)&&this.refreshSize(),e)this.center();else if(o||a)this.offsetElement(o,a);else if(h&&t){let p=this.boundaryEl,g=!0;if(p||(p=this.findBoundaryElement(),g=!1),p){const m=parseFloat(p.style.top),C=parseFloat(p.style.left);g?this.offsetElement(isNaN(C)?0:C,isNaN(m)?0:m):this.setPosition(C,m)}}this.positioned=!!this.offsetParent}isPositioned(){return this.positioned}getPosition(){return this.position}setMovable(e,t){var r,i;if(!this.config.popup||e===this.movable)return;this.movable=e;const s=this.moveElementDragListener||{eElement:t,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};e?((r=this.dragSvc)==null||r.addDragSource(s),this.moveElementDragListener=s):((i=this.dragSvc)==null||i.removeDragSource(s),this.moveElementDragListener=void 0)}setResizable(e){if(this.clearResizeListeners(),e?this.addResizers():this.removeResizers(),typeof e=="boolean"){if(e===!1)return;e={topLeft:e,top:e,topRight:e,right:e,bottomRight:e,bottom:e,bottomLeft:e,left:e}}Object.keys(e).forEach(t=>{var o;const r=!!e[t],i=this.getResizerElement(t),n={dragStartPixels:0,eElement:i,onDragStart:a=>this.onResizeStart(a,t),onDragging:this.onResize.bind(this),onDragStop:a=>this.onResizeEnd(a,t)};(r||!this.isAlive()&&!r)&&(r?((o=this.dragSvc)==null||o.addDragSource(n),this.resizeListeners.push(n),i.style.pointerEvents="all"):i.style.pointerEvents="none",this.resizable[t]=r)})}removeSizeFromEl(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")}restoreLastSize(){this.element.style.flex="0 0 auto";const{height:e,width:t}=this.lastSize;t!==-1&&(this.element.style.width=`${t}px`),e!==-1&&(this.element.style.height=`${e}px`)}getHeight(){return this.element.offsetHeight}setHeight(e){const{popup:t}=this.config,s=this.element;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)Nd(s,e),e=fm(s),r=!0;else if(e=Math.max(this.minHeight,e),this.positioned){const i=this.getAvailableHeight();i&&e>i&&(e=i)}this.getHeight()!==e&&(r?(s.style.maxHeight="unset",s.style.minHeight="unset"):t?Nd(s,e):(s.style.height=`${e}px`,s.style.flex="0 0 auto",this.lastSize.height=typeof e=="number"?e:parseFloat(e)))}getAvailableHeight(){const{popup:e,forcePopupParentAsOffsetParent:t}=this.config;this.positioned||this.initialisePosition();const{clientHeight:s}=this.offsetParent;if(!s)return null;const r=this.element.getBoundingClientRect(),i=this.offsetParent.getBoundingClientRect(),n=e?this.position.y:r.top,o=e?0:i.top;let a=0;if(t){const u=this.element.parentElement;if(u){const{bottom:h}=u.getBoundingClientRect();a=h-r.bottom}}return s+o-n-a}getWidth(){return this.element.offsetWidth}setWidth(e){const t=this.element,{popup:s}=this.config;let r=!1;if(typeof e=="string"&&e.indexOf("%")!==-1)pn(t,e),e=Dl(t),r=!0;else if(this.positioned){e=Math.max(this.minWidth,e);const{clientWidth:i}=this.offsetParent,n=s?this.position.x:this.element.getBoundingClientRect().left;i&&e+n>i&&(e=i-n)}this.getWidth()!==e&&(r?(t.style.maxWidth="unset",t.style.minWidth="unset"):this.config.popup?pn(t,e):(t.style.width=`${e}px`,t.style.flex=" unset",this.lastSize.width=typeof e=="number"?e:parseFloat(e)))}offsetElement(e=0,t=0){var i;const{forcePopupParentAsOffsetParent:s}=this.config,r=s?this.boundaryEl:this.element;r&&((i=this.popupSvc)==null||i.positionPopup({ePopup:r,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:()=>({x:e,y:t})}),this.setPosition(parseFloat(r.style.left),parseFloat(r.style.top)))}constrainSizeToAvailableHeight(e){var s;if(!this.config.forcePopupParentAsOffsetParent)return;const t=()=>{const r=this.getAvailableHeight();this.element.style.setProperty("max-height",`${r}px`)};e&&this.popupSvc?this.resizeObserverSubscriber=Fi(this.beans,(s=this.popupSvc)==null?void 0:s.getPopupParent(),t):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0))}setPosition(e,t){this.position.x=e,this.position.y=t}updateDragStartPosition(e,t){this.dragStartPosition={x:e,y:t}}calculateMouseMovement(e){const{e:t,isLeft:s,isTop:r,anywhereWithin:i,topBuffer:n}=e,o=t.clientX-this.dragStartPosition.x,a=t.clientY-this.dragStartPosition.y,l=this.shouldSkipX(t,!!s,!!i,o)?0:o,u=this.shouldSkipY(t,!!r,n,a)?0:a;return{movementX:l,movementY:u}}shouldSkipX(e,t,s,r){const i=this.element.getBoundingClientRect(),n=this.offsetParent.getBoundingClientRect(),o=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:i.left;let l=a<=0&&n.left>=e.clientX||n.right<=e.clientX&&n.right<=o.right;return l?!0:(t?l=r<0&&e.clientX>a+n.left||r>0&&e.clientXo.right||r>0&&e.clientXo.right||r>0&&e.clientX=e.clientY||n.bottom<=e.clientY&&n.bottom<=o.bottom;return l?!0:(t?l=r<0&&e.clientY>a+n.top+s||r>0&&e.clientYo.bottom||r>0&&e.clientY!s.classList.contains("ag-hidden")):null}getMinSizeOfSiblings(){const e=this.getSiblings()||[];let t=0,s=0;for(let r=0;re)}onResize(e){if(!this.isResizing||!this.currentResizer)return;const{popup:t,forcePopupParentAsOffsetParent:s}=this.config,{isTop:r,isRight:i,isBottom:n,isLeft:o}=this.currentResizer,a=i||o,l=n||r,{movementX:u,movementY:h}=this.calculateMouseMovement({e,isLeft:o,isTop:r}),p=this.position.x,g=this.position.y;let m=0,C=0;if(a&&u){const v=o?-1:1,w=this.getWidth(),S=w+u*v;let P=!1;o&&(m=w-S,(p+m<=0||S<=this.minWidth)&&(P=!0,m=0)),P||this.setWidth(S)}if(l&&h){const v=r?-1:1,w=this.getHeight(),S=w+h*v;let P=!1;r?(C=w-S,(g+C<=0||S<=this.minHeight)&&(P=!0,C=0)):!this.config.popup&&!this.config.forcePopupParentAsOffsetParent&&wthis.element.parentElement.offsetHeight&&(P=!0),P||this.setHeight(S)}this.updateDragStartPosition(e.clientX,e.clientY),((t||s)&&m||C)&&this.offsetElement(p+m,g+C)}onResizeEnd(e,t){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null,this.element.classList.remove("ag-resizing"),this.resizerMap[t].element.classList.remove("ag-active"),this.dispatchLocalEvent({type:"resize"})}refreshSize(){const e=this.element;this.config.popup&&(this.config.width||this.setWidth(e.offsetWidth),this.config.height||this.setHeight(e.offsetHeight))}onMoveStart(e){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(e.clientX,e.clientY)}onMove(e){if(!this.isMoving)return;const{x:t,y:s}=this.position;let r;this.config.calculateTopBuffer&&(r=this.config.calculateTopBuffer());const{movementX:i,movementY:n}=this.calculateMouseMovement({e,isTop:!0,anywhereWithin:!0,topBuffer:r});this.offsetElement(t+i,s+n),this.updateDragStartPosition(e.clientX,e.clientY)}onMoveEnd(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")}setOffsetParent(){this.config.forcePopupParentAsOffsetParent&&this.popupSvc?this.offsetParent=this.popupSvc.getPopupParent():this.offsetParent=this.element.offsetParent}findBoundaryElement(){let e=this.element;for(;e;){if(window.getComputedStyle(e).position!=="static")return e;e=e.parentElement}return this.element}clearResizeListeners(){var e;for(;this.resizeListeners.length;){const t=this.resizeListeners.pop();(e=this.dragSvc)==null||e.removeDragSource(t)}}destroy(){var e;super.destroy(),this.moveElementDragListener&&((e=this.dragSvc)==null||e.removeDragSource(this.moveElementDragListener)),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()}},sk="ag-focus-managed",La=class extends J{constructor(e,t={}){super(),this.eFocusable=e,this.callbacks=t,this.callbacks={shouldStopEventPropagation:()=>!1,onTabKeyDown:s=>{if(s.defaultPrevented)return;const r=gr(this.beans,this.eFocusable,!1,s.shiftKey);r&&(r.focus(),s.preventDefault())},...t}}postConstruct(){const{eFocusable:e,callbacks:{onFocusIn:t,onFocusOut:s}}=this;e.classList.add(sk),this.addKeyDownListeners(e),t&&this.addManagedElementListeners(e,{focusin:t}),s&&this.addManagedElementListeners(e,{focusout:s})}addKeyDownListeners(e){this.addManagedElementListeners(e,{keydown:t=>{if(t.defaultPrevented||Ri(t))return;const{callbacks:s}=this;if(s.shouldStopEventPropagation(t)){Ds(t);return}t.key===B.TAB?s.onTabKeyDown(t):s.handleKeyDown&&s.handleKeyDown(t)}})}},rk={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose one",equals:"Equals",notEqual:"Does not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"Between",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equal to",greaterThanOrEqual:"Greater than or equal to",contains:"Contains",notContains:"Does not contain",startsWith:"Begins with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",before:"Before",after:"After",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"};function cS(e,t){const{debounceMs:s}=e;return xf(e)?(s!=null&&Q(71),0):s??t}function xf(e){var t;return(((t=e.buttons)==null?void 0:t.indexOf("apply"))??-1)>=0}var Fm=class extends pe{constructor(e){super(),this.filterNameKey=e,this.applyActive=!1,this.hidePopup=null,this.debouncePending=!1,this.appliedModel=null,this.eFilterBody=j,this.buttonListeners=[],this.defaultDebounceMs=0}postConstruct(){this.resetTemplate(),this.createManagedBean(new La(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new Pm(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)}handleKeyDown(e){}getFilterTitle(){return this.translate(this.filterNameKey)}isFilterActive(){return!!this.appliedModel}resetTemplate(e){let t=this.getGui();t&&t.removeEventListener("submit",this.onFormSubmit);const s=`
${this.createBodyTemplate()}
`;this.setTemplate(s,this.getAgComponents(),e),t=this.getGui(),t==null||t.addEventListener("submit",this.onFormSubmit)}isReadOnly(){return!!this.params.readOnly}init(e){this.setParams(e),this.resetUiToDefaults(!0).then(()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}setParams(e){this.params=e,this.applyActive=xf(e),this.resetButtonsPanel(e)}updateParams(e){this.params=e,this.applyActive=xf(e),this.resetUiToActiveModel(this.getModel(),()=>{this.updateUiVisibility(),this.setupOnBtApplyDebounce()})}resetButtonsPanel(e,t){const{buttons:s,readOnly:r}=t??{},{buttons:i,readOnly:n}=e;if(r===n&&qc(s,i))return;const o=i&&i.length>0&&!this.isReadOnly();if(this.eButtonsPanel?(Lt(this.eButtonsPanel),this.buttonListeners.forEach(u=>u()),this.buttonListeners=[]):o&&(this.eButtonsPanel=document.createElement("div"),this.eButtonsPanel.classList.add("ag-filter-apply-panel")),!o){this.eButtonsPanel&&Rs(this.eButtonsPanel);return}const a=document.createDocumentFragment(),l=u=>{let h;const p=u?this.translate(`${u}Filter`):void 0;switch(u){case"apply":h=C=>this.onBtApply(!1,!1,C);break;case"clear":h=()=>this.onBtClear();break;case"reset":h=()=>this.onBtReset();break;case"cancel":h=C=>{this.onBtCancel(C)};break;default:Q(75);return}const m=Lr(``);this.buttonListeners.push(...this.addManagedElementListeners(m,{click:h})),a.append(m)};i.forEach(u=>l(u)),this.eButtonsPanel.append(a),this.getGui().appendChild(this.eButtonsPanel)}setupOnBtApplyDebounce(){const e=cS(this.params,this.defaultDebounceMs),t=Ys(this,this.checkApplyDebounce.bind(this),e);this.onBtApplyDebounce=()=>{this.debouncePending=!0,t()}}checkApplyDebounce(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())}getModel(){return this.appliedModel??null}setModel(e){return(e!=null?this.setModelIntoUi(e):this.resetUiToDefaults()).then(()=>{this.updateUiVisibility(),this.applyModel("api")})}onBtCancel(e){this.resetUiToActiveModel(this.getModel(),()=>{this.handleCancelEnd(e)})}handleCancelEnd(e){this.params.closeOnApply&&this.close(e)}resetUiToActiveModel(e,t){const s=()=>{this.onUiChanged(!1,"prevent"),t==null||t()};e!=null?this.setModelIntoUi(e).then(s):this.resetUiToDefaults().then(s)}onBtClear(){this.resetUiToDefaults().then(()=>this.onUiChanged())}onBtReset(){this.onBtClear(),this.onBtApply()}applyModel(e="api"){const t=this.getModelFromUi();if(!this.isModelValid(t))return!1;const s=this.appliedModel;return this.appliedModel=t,!this.areModelsEqual(s,t)}isModelValid(e){return!0}onFormSubmit(e){e.preventDefault()}onBtApply(e=!1,t=!1,s){s&&s.preventDefault(),this.applyModel(t?"rowDataUpdated":"ui")&&this.params.filterChangedCallback({afterFloatingFilter:e,afterDataChange:t,source:"columnFilter"});const{closeOnApply:r}=this.params;r&&this.applyActive&&!e&&!t&&this.close(s)}onNewRowsLoaded(){}close(e){if(!this.hidePopup)return;const t=e,s=t&&t.key;let r;(s==="Enter"||s==="Space")&&(r={keyboardEvent:t}),this.hidePopup(r),this.hidePopup=null}onUiChanged(e=!1,t){if(this.updateUiVisibility(),this.params.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){const s=this.isModelValid(this.getModelFromUi()),r=this.queryForHtmlElement('[data-ref="applyFilterButton"]');r&&Gi(r,!s)}e&&!t||t==="immediately"?this.onBtApply(e):(!this.applyActive&&!t||t==="debounce")&&this.onBtApplyDebounce()}afterGuiAttached(e){e&&(this.hidePopup=e.hidePopup),this.refreshFilterResizer(e==null?void 0:e.container)}refreshFilterResizer(e){const{positionableFeature:t,gos:s}=this;if(!t||e==="toolPanel")return;e==="floatingFilter"||e==="columnFilter"?(t.restoreLastSize(),t.setResizable(s.get("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(t.removeSizeFromEl(),t.setResizable(!1)),t.constrainSizeToAvailableHeight(!0)}afterGuiDetached(){var e;this.checkApplyDebounce(),(e=this.positionableFeature)==null||e.constrainSizeToAvailableHeight(!1)}refresh(e){const t=this.params;return this.params=e,this.resetButtonsPanel(e,t),!0}destroy(){const e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),this.appliedModel=null,super.destroy()}translate(e){return this.getLocaleTextFunc()(e,rk[e])}getCellValue(e){return this.params.getValue(e)}getPositionableElement(){return this.eFilterBody}};function ik(e,t,s){if(t==null)return null;let r=null;const{compName:i,jsComp:n,fwComp:o}=q9(e,t);return i?r={agSetColumnFilter:"agSetColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"}[i]:n==null&&o==null&&t.filter===!0&&(r=s()),r}var dn={AUTO_HEIGHT:"ag-layout-auto-height",NORMAL:"ag-layout-normal",PRINT:"ag-layout-print"},uS=class extends J{constructor(e){super(),this.view=e}postConstruct(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()}updateLayoutClasses(){const e=this.gos.get("domLayout"),t={autoHeight:e==="autoHeight",normal:e==="normal",print:e==="print"},s=t.autoHeight?dn.AUTO_HEIGHT:t.print?dn.PRINT:dn.NORMAL;this.view.updateLayoutClasses(s,t)}},ra="Viewport",EE="fakeVScrollComp",TE=["fakeHScrollComp","centerHeader","topCenter","bottomCenter","stickyTopCenter","stickyBottomCenter"],Iq=class extends J{constructor(e){super(),this.lastScrollSource=[null,null],this.scrollLeft=-1,this.nextScrollTop=-1,this.scrollTop=-1,this.lastOffsetHeight=-1,this.lastScrollTop=-1,this.scrollTimer=0,this.needsRefreshedScrollPosition=!0,this.eBodyViewport=e,this.resetLastHScrollDebounced=Ys(this,()=>this.lastScrollSource[1]=null,500),this.resetLastVScrollDebounced=Ys(this,()=>this.lastScrollSource[0]=null,500)}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.animationFrameSvc=e.animationFrameSvc,this.visibleCols=e.visibleCols}destroy(){super.destroy(),window.clearTimeout(this.scrollTimer)}postConstruct(){this.enableRtl=this.gos.get("enableRtl");const e=this.requireUpdatedScrollPosition.bind(this);this.addManagedEventListeners({displayedColumnsWidthChanged:this.onDisplayedColumnsWidthChanged.bind(this),gridSizeChanged:e}),this.addManagedElementListeners(this.eBodyViewport,{scroll:e}),this.ctrlsSvc.whenReady(this,t=>{this.centerRowsCtrl=t.center,this.onDisplayedColumnsWidthChanged(),this.addScrollListener()})}requireUpdatedScrollPosition(){this.needsRefreshedScrollPosition=!0}addScrollListener(){this.addHorizontalScrollListeners(),this.addVerticalScrollListeners()}addHorizontalScrollListeners(){this.addManagedElementListeners(this.centerRowsCtrl.eViewport,{scroll:this.onHScroll.bind(this,ra)});for(const e of TE){const t=this.ctrlsSvc.get(e);this.registerScrollPartner(t,this.onHScroll.bind(this,e))}}addVerticalScrollListeners(){const e=this.ctrlsSvc.get("fakeVScrollComp"),t=this.gos.get("debounceVerticalScrollbar"),s=t?Ys(this,this.onVScroll.bind(this,ra),100):this.onVScroll.bind(this,ra),r=t?Ys(this,this.onVScroll.bind(this,EE),100):this.onVScroll.bind(this,EE);this.addManagedElementListeners(this.eBodyViewport,{scroll:s}),this.registerScrollPartner(e,r)}registerScrollPartner(e,t){e.onScrollCallback(t)}onDisplayedColumnsWidthChanged(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()}horizontallyScrollHeaderCenterAndFloatingCenter(e){this.centerRowsCtrl!=null&&(e===void 0&&(e=this.centerRowsCtrl.getCenterViewportScrollLeft()),this.setScrollLeftForAllContainersExceptCurrent(Math.abs(e)))}setScrollLeftForAllContainersExceptCurrent(e){for(const t of[...TE,ra]){if(this.lastScrollSource[1]===t)continue;const s=this.getViewportForSource(t);cf(s,e,this.enableRtl)}}getViewportForSource(e){return e===ra?this.centerRowsCtrl.eViewport:this.ctrlsSvc.get(e).eViewport}isControllingScroll(e,t){return this.lastScrollSource[t]==null?(t===0?this.lastScrollSource[0]=e:this.lastScrollSource[1]=e,!0):this.lastScrollSource[t]===e}onHScroll(e){if(!this.isControllingScroll(e,1))return;const t=this.centerRowsCtrl.eViewport,{scrollLeft:s}=t;if(this.shouldBlockScrollUpdate(1,s,!0))return;const r=lf(this.getViewportForSource(e),this.enableRtl);this.doHorizontalScroll(r),this.resetLastHScrollDebounced()}onVScroll(e){if(!this.isControllingScroll(e,0))return;let t;if(e===ra?t=this.eBodyViewport.scrollTop:t=this.ctrlsSvc.get("fakeVScrollComp").getScrollPosition(),this.shouldBlockScrollUpdate(0,t,!0))return;const{animationFrameSvc:s}=this;s==null||s.setScrollTop(t),this.nextScrollTop=t,e===ra?this.ctrlsSvc.get("fakeVScrollComp").setScrollPosition(t):this.eBodyViewport.scrollTop=t,!s||this.gos.get("suppressAnimationFrame")?this.scrollGridIfNeeded():s.schedule(),this.resetLastVScrollDebounced()}doHorizontalScroll(e){const t=this.ctrlsSvc.get("fakeHScrollComp").getScrollPosition();this.scrollLeft===e&&e===t||(this.scrollLeft=e,this.fireScrollEvent(1),this.horizontallyScrollHeaderCenterAndFloatingCenter(e),this.centerRowsCtrl.onHorizontalViewportChanged(!0))}fireScrollEvent(e){const t={type:"bodyScroll",direction:e===1?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventSvc.dispatchEvent(t),window.clearTimeout(this.scrollTimer),this.scrollTimer=window.setTimeout(()=>{this.scrollTimer=0,this.eventSvc.dispatchEvent({...t,type:"bodyScrollEnd"})},100)}shouldBlockScrollUpdate(e,t,s=!1){return s&&!ya()?!1:e===0?this.shouldBlockVerticalScroll(t):this.shouldBlockHorizontalScroll(t)}shouldBlockVerticalScroll(e){const t=gm(this.eBodyViewport),{scrollHeight:s}=this.eBodyViewport;return e<0||e+t>s}shouldBlockHorizontalScroll(e){const t=this.centerRowsCtrl.getCenterWidth(),{scrollWidth:s}=this.centerRowsCtrl.eViewport;if(this.enableRtl&&af()){if(e>0)return!0}else if(e<0)return!0;return Math.abs(e)+t>s}redrawRowsAfterScroll(){this.fireScrollEvent(0)}checkScrollLeft(){this.scrollLeft!==this.centerRowsCtrl.getCenterViewportScrollLeft()&&this.onHScroll(ra)}scrollGridIfNeeded(){const e=this.scrollTop!=this.nextScrollTop;return e&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),e}setHorizontalScrollPosition(e,t=!1){const r=this.centerRowsCtrl.eViewport.scrollWidth-this.centerRowsCtrl.getCenterWidth();!t&&this.shouldBlockScrollUpdate(1,e)&&(this.enableRtl&&af()?e=e>0?0:r:e=Math.min(Math.max(e,0),r)),cf(this.centerRowsCtrl.eViewport,Math.abs(e),this.enableRtl),this.doHorizontalScroll(e)}setVerticalScrollPosition(e){this.eBodyViewport.scrollTop=e}getVScrollPosition(){if(!this.needsRefreshedScrollPosition){const{lastOffsetHeight:s,lastScrollTop:r}=this;return{top:r,bottom:r+s}}this.needsRefreshedScrollPosition=!1;const{scrollTop:e,offsetHeight:t}=this.eBodyViewport;return this.lastScrollTop=e,this.lastOffsetHeight=t,{top:e,bottom:e+t}}getApproximateVScollPosition(){return this.lastScrollTop>=0&&this.lastOffsetHeight>=0?{top:this.scrollTop,bottom:this.scrollTop+this.lastOffsetHeight}:this.getVScrollPosition()}getHScrollPosition(){return this.centerRowsCtrl.getHScrollPosition()}isHorizontalScrollShowing(){return this.centerRowsCtrl.isHorizontalScrollShowing()}scrollHorizontally(e){const t=this.centerRowsCtrl.eViewport.scrollLeft;return this.setHorizontalScrollPosition(t+e),this.centerRowsCtrl.eViewport.scrollLeft-t}scrollToTop(){this.eBodyViewport.scrollTop=0}ensureNodeVisible(e,t=null){const{rowModel:s}=this.beans,r=s.getRowCount();let i=-1;for(let n=0;n=0&&this.ensureIndexVisible(i,t)}ensureIndexVisible(e,t){if(sr(this.gos,"print"))return;const{rowModel:s}=this.beans,r=s.getRowCount();if(typeof e!="number"||e<0||e>=r){Q(88,{index:e});return}const n=this.gos.get("pagination")&&!this.gos.get("suppressPaginationPanel"),{frameworkOverrides:o,pagination:a,pageBounds:l,rowContainerHeight:u,rowRenderer:h}=this.beans;o.wrapIncoming(()=>{var w;n||a==null||a.goToPageWithIndex(e);const p=this.ctrlsSvc.getGridBodyCtrl(),g=p.stickyTopHeight,m=p.stickyBottomHeight,C=s.getRow(e);let v;do{const S=C.rowTop,P=C.rowHeight,T=l.getPixelOffset(),F=C.rowTop-T,E=F+C.rowHeight,D=this.getVScrollPosition(),R=u.divStretchOffset,A=D.top+R,G=D.bottom+R,L=G-A,O=u.getScrollPositionForPixel(F),N=u.getScrollPositionForPixel(E-L),H=Math.min((O+N)/2,F),$=A+g>F,q=G-m{var o;n!==null&&this.centerRowsCtrl.setCenterViewportScrollLeft(n),this.centerRowsCtrl.onHorizontalViewportChanged(),(o=this.animationFrameSvc)==null||o.flushAllFrames()})}getPositionedHorizontalScroll(e,t){const{columnBeforeStart:s,columnAfterEnd:r}=this.isColumnOutsideViewport(e),i=this.centerRowsCtrl.getCenterWidth()i:sr;return{columnBeforeStart:o,columnAfterEnd:a}}getColumnBounds(e){const t=this.enableRtl,s=this.visibleCols.bodyWidth,r=e.getActualWidth(),i=e.getLeft(),n=t?-1:1,o=t?s-i:i,a=o+r*n,l=o+r/2*n;return{colLeft:o,colMiddle:l,colRight:a}}getViewportBounds(){const e=this.centerRowsCtrl.getCenterWidth(),t=this.centerRowsCtrl.getCenterViewportScrollLeft(),s=t,r=e+t;return{start:s,end:r,width:e}}},dS=class extends J{constructor(e,t=!1){super(),this.callback=e,this.addSpacer=t}postConstruct(){const e=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",e),this.addManagedEventListeners({columnContainerWidthChanged:e,displayedColumnsChanged:e,leftPinnedWidthChanged:e}),this.addSpacer&&this.addManagedEventListeners({rightPinnedWidthChanged:e,scrollVisibilityChanged:e,scrollbarWidthChanged:e}),this.setWidth()}setWidth(){const e=sr(this.gos,"print"),{visibleCols:t,scrollVisibleSvc:s}=this.beans,r=t.bodyWidth,i=t.getColsLeftWidth(),n=t.getDisplayedColumnsRightWidth();let o;e?o=r+i+n:(o=r,this.addSpacer&&(this.gos.get("enableRtl")?i:n)===0&&s.verticalScrollShowing&&(o+=s.getScrollbarWidth())),this.callback(o)}},kq=class extends J{constructor(e){super(),this.centerContainerCtrl=e}wireBeans(e){this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){this.beans.ctrlsSvc.whenReady(this,e=>{this.gridBodyCtrl=e.gridBodyCtrl,this.listenForResize()}),this.addManagedEventListeners({scrollbarWidthChanged:this.onScrollbarWidthChanged.bind(this)}),this.addManagedPropertyListeners(["alwaysShowHorizontalScroll","alwaysShowVerticalScroll"],()=>{this.checkViewportAndScrolls()})}listenForResize(){const{beans:e,centerContainerCtrl:t,gridBodyCtrl:s}=this,r=()=>{ji(e,()=>{this.onCenterViewportResized()})};t.registerViewportResizeListener(r),s.registerBodyViewportResizeListener(r)}onScrollbarWidthChanged(){this.checkViewportAndScrolls()}onCenterViewportResized(){if(this.scrollVisibleSvc.updateScrollGap(),this.centerContainerCtrl.isViewportInTheDOMTree()){const{pinnedCols:e,colFlex:t}=this.beans;e==null||e.keepPinnedColumnsNarrowerThanViewport(),this.checkViewportAndScrolls();const s=this.centerContainerCtrl.getCenterWidth();s!==this.centerWidth&&(this.centerWidth=s,t==null||t.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0}checkViewportAndScrolls(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.scrollFeature.checkScrollLeft()}getBodyHeight(){return this.bodyHeight}checkBodyHeight(){const e=this.gridBodyCtrl.eBodyViewport,t=gm(e);this.bodyHeight!==t&&(this.bodyHeight=t,this.eventSvc.dispatchEvent({type:"bodyHeightChanged"}))}updateScrollVisibleService(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)}updateScrollVisibleServiceImpl(){const e={horizontalScrollShowing:this.centerContainerCtrl.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleSvc.setScrollsVisible(e)}onHorizontalViewportChanged(){const e=this.centerContainerCtrl.getCenterWidth(),t=this.centerContainerCtrl.getViewportScrollLeft();this.beans.colViewport.setScrollPosition(e,t)}};function hS(e,t,s,r,i,n){if(s==null&&t==null)return;const o={},a={},l=(u,h)=>{u.split(" ").forEach(p=>{p.trim()!=""&&h(p)})};if(s){const u=Object.keys(s);for(let h=0;h{m?o[C]=!0:a[C]=!0})}}t&&n&&Object.keys(t).forEach(u=>l(u,h=>{o[h]||(a[h]=!0)})),n&&Object.keys(a).forEach(n),Object.keys(o).forEach(i)}function ME(e){if(e.group)return e.level;const t=e.parent;return t?t.level+1:0}var Lq=class extends J{constructor(){super(...arguments),this.beanName="rowStyleSvc"}processClassesFromGridOptions(e,t){const s=this.gos,r=o=>{typeof o=="string"?e.push(o):Array.isArray(o)&&o.forEach(a=>e.push(a))},i=s.get("rowClass");i&&r(i);const n=s.getCallback("getRowClass");if(n){const o={data:t.data,node:t,rowIndex:t.rowIndex},a=n(o);r(a)}}preProcessRowClassRules(e,t){this.processRowClassRules(t,s=>{e.push(s)},()=>{})}processRowClassRules(e,t,s){const{gos:r,expressionSvc:i}=this.beans,n=r.addGridCommonParams({data:e.data,node:e,rowIndex:e.rowIndex});hS(i,void 0,r.get("rowClassRules"),n,t,s)}processStylesFromGridOptions(e){const t=this.gos,s=t.get("rowStyle"),r=t.getCallback("getRowStyle");let i;if(r){const n={data:e.data,node:e,rowIndex:e.rowIndex};i=r(n)}if(i||s)return Object.assign({},s,i)}},Oq=0,ph="renderedRow",bw=class extends J{constructor(e,t,s,r,i){var n;super(),this.rowNode=e,this.useAnimationFrameForCreate=r,this.printLayout=i,this.allRowGuis=[],this.active=!0,this.centerCellCtrls={list:[],map:{}},this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}},this.slideInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.fadeInAnimation={left:!1,center:!1,right:!1,fullWidth:!1},this.rowDragComps=[],this.lastMouseDownOnDragger=!1,this.emptyStyle={},this.updateColumnListsPending=!1,this.rowId=null,this.businessKey=null,this.beans=t,this.gos=t.gos,this.paginationPage=((n=t.pagination)==null?void 0:n.getCurrentPage())??0,this.suppressRowTransform=this.gos.get("suppressRowTransform"),this.instanceId=e.id+"-"+Oq++,this.rowId=Xt(e.id),this.initRowBusinessKey(),this.rowFocused=t.focusSvc.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned),this.rowLevel=ME(this.rowNode),this.setRowType(),this.setAnimateFlags(s),this.rowStyles=this.processStylesFromGridOptions(),this.addListeners()}initRowBusinessKey(){this.businessKeyForNodeFunc=this.gos.get("getBusinessKeyForNode"),this.updateRowBusinessKey()}updateRowBusinessKey(){if(typeof this.businessKeyForNodeFunc!="function")return;const e=this.businessKeyForNodeFunc(this.rowNode);this.businessKey=Xt(e)}updateGui(e,t){e==="left"?this.leftGui=t:e==="right"?this.rightGui=t:e==="fullWidth"?this.fullWidthGui=t:this.centerGui=t}setComp(e,t,s,r){r=Ah(this,this.beans.context,r);const i={rowComp:e,element:t,containerType:s,compBean:r};this.allRowGuis.push(i),this.updateGui(s,i),this.initialiseRowComp(i),this.rowType!=="FullWidthLoading"&&!this.rowNode.rowPinned&&this.beans.rowRenderer.dispatchFirstDataRenderedEvent()}unsetComp(e){this.allRowGuis=this.allRowGuis.filter(t=>t.containerType!==e),this.updateGui(e,void 0)}isCacheable(){return this.rowType==="FullWidthDetail"&&this.gos.get("keepDetailRows")}setCached(e){const t=e?"none":"";this.allRowGuis.forEach(s=>s.element.style.display=t)}initialiseRowComp(e){var i;const t=this.gos;this.onSuppressCellFocusChanged(this.beans.gos.get("suppressCellFocus")),this.listenOnDomOrder(e),(i=this.beans.rowAutoHeight)==null||i.checkAutoHeights(this.rowNode),this.onRowHeightChanged(e),this.updateRowIndexes(e),this.setFocusedClasses(e),this.setStylesFromGridOptions(!1,e),Si(t)&&this.rowNode.selectable&&this.onRowSelected(e),this.updateColumnLists(!this.useAnimationFrameForCreate);const s=e.rowComp;this.getInitialRowClasses(e.containerType).forEach(n=>s.addOrRemoveCssClass(n,!0)),this.executeSlideAndFadeAnimations(e),this.rowNode.group&&Br(e.element,this.rowNode.expanded==!0),this.setRowCompRowId(s),this.setRowCompRowBusinessKey(s),Al(t,e.element,ph,this),e.compBean.addDestroyFunc(()=>Al(t,e.element,ph,null)),this.useAnimationFrameForCreate?this.beans.animationFrameSvc.createTask(this.addHoverFunctionality.bind(this,e),this.rowNode.rowIndex,"createTasksP2"):this.addHoverFunctionality(e),this.isFullWidth()&&this.setupFullWidth(e),t.get("rowDragEntireRow")&&this.addRowDraggerToRow(e),this.useAnimationFrameForCreate&&this.beans.animationFrameSvc.addDestroyTask(()=>{this.isAlive()&&e.rowComp.addOrRemoveCssClass("ag-after-created",!0)}),this.executeProcessRowPostCreateFunc()}setRowCompRowBusinessKey(e){this.businessKey!=null&&e.setRowBusinessKey(this.businessKey)}setRowCompRowId(e){const t=Xt(this.rowNode.id);this.rowId=t,t!=null&&e.setRowId(t)}executeSlideAndFadeAnimations(e){const{containerType:t}=e;this.slideInAnimation[t]&&(vE(()=>{this.onTopChanged()}),this.slideInAnimation[t]=!1),this.fadeInAnimation[t]&&(vE(()=>{e.rowComp.addOrRemoveCssClass("ag-opacity-zero",!1)}),this.fadeInAnimation[t]=!1)}addRowDraggerToRow(e){var r;const t=(r=this.beans.rowDragSvc)==null?void 0:r.createRowDragCompForRow(this.rowNode,e.element);if(!t)return;const s=this.createBean(t,this.beans.context);this.rowDragComps.push(s),e.compBean.addDestroyFunc(()=>{this.rowDragComps=this.rowDragComps.filter(i=>i!==s),this.destroyBean(s,this.beans.context)})}setupFullWidth(e){const t=this.getPinnedForContainer(e.containerType),s=this.createFullWidthCompDetails(e.element,t);e.rowComp.showFullWidth(s)}getFullWidthCellRenderers(){var e,t;return this.gos.get("embedFullWidthRows")?this.allRowGuis.map(s=>{var r;return(r=s==null?void 0:s.rowComp)==null?void 0:r.getFullWidthCellRenderer()}):[(t=(e=this.fullWidthGui)==null?void 0:e.rowComp)==null?void 0:t.getFullWidthCellRenderer()]}executeProcessRowPostCreateFunc(){const e=this.gos.getCallback("processRowPostCreate");if(!e||!this.areAllContainersReady())return;const t={eRow:this.centerGui.element,ePinnedLeftRow:this.leftGui?this.leftGui.element:void 0,ePinnedRightRow:this.rightGui?this.rightGui.element:void 0,node:this.rowNode,rowIndex:this.rowNode.rowIndex,addRenderedRowListener:this.addEventListener.bind(this)};e(t)}areAllContainersReady(){const{leftGui:e,centerGui:t,rightGui:s,beans:{visibleCols:r}}=this,i=!!e||!r.isPinningLeft(),n=!!t,o=!!s||!r.isPinningRight();return i&&n&&o}isNodeFullWidthCell(){if(this.rowNode.detail)return!0;const e=this.beans.gos.getCallback("isFullWidthRow");return e?e({rowNode:this.rowNode}):!1}setRowType(){const e=this.rowNode.stub&&!this.gos.get("suppressServerSideFullWidthLoadingRow")&&!this.gos.get("groupHideOpenParents"),t=this.isNodeFullWidthCell(),s=this.gos.get("masterDetail")&&this.rowNode.detail,r=this.beans.colModel.isPivotMode(),n=!!this.rowNode.group&&!this.rowNode.footer&&wm(this.gos,r);e?this.rowType="FullWidthLoading":s?this.rowType="FullWidthDetail":t?this.rowType="FullWidth":n?this.rowType="FullWidthGroup":this.rowType="Normal"}updateColumnLists(e=!1,t=!1){if(this.isFullWidth())return;const{animationFrameSvc:s}=this.beans;if(!s||e||this.gos.get("suppressAnimationFrame")||this.printLayout){this.updateColumnListsImpl(t);return}this.updateColumnListsPending||(s.createTask(()=>{this.active&&this.updateColumnListsImpl(!0)},this.rowNode.rowIndex,"createTasksP1"),this.updateColumnListsPending=!0)}createCellCtrls(e,t,s=null){const r={list:[],map:{}},i=(n,o)=>{r.list.push(o),r.map[n]=o};return t.forEach(n=>{const o=n.getInstanceId();let a=e.map[o];a||(a=new Og(n,this.rowNode,this.beans,this)),i(o,a)}),e.list.forEach(n=>{const o=n.column.getInstanceId();if(r.map[o]!=null)return;if(!this.isCellEligibleToBeRemoved(n,s)){i(o,n);return}n.destroy()}),r}updateColumnListsImpl(e){this.updateColumnListsPending=!1,this.createAllCellCtrls(),this.setCellCtrls(e)}setCellCtrls(e){this.allRowGuis.forEach(t=>{const s=this.getCellCtrlsForContainer(t.containerType);t.rowComp.setCellCtrls(s,e)})}getCellCtrlsForContainer(e){switch(e){case"left":return this.leftCellCtrls.list;case"right":return this.rightCellCtrls.list;case"fullWidth":return[];case"center":return this.centerCellCtrls.list}}createAllCellCtrls(){const e=this.beans.colViewport,t=this.beans.visibleCols;if(this.printLayout)this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,t.allCols),this.leftCellCtrls={list:[],map:{}},this.rightCellCtrls={list:[],map:{}};else{const s=e.getColsWithinViewport(this.rowNode);this.centerCellCtrls=this.createCellCtrls(this.centerCellCtrls,s);const r=t.getLeftColsForRow(this.rowNode);this.leftCellCtrls=this.createCellCtrls(this.leftCellCtrls,r,"left");const i=t.getRightColsForRow(this.rowNode);this.rightCellCtrls=this.createCellCtrls(this.rightCellCtrls,i,"right")}}isCellEligibleToBeRemoved(e,t){const{column:i}=e;if(i.getPinned()!=t)return!0;const{editing:n,cellPosition:o}=e,{focusSvc:a,visibleCols:l}=this.beans,u=a.isCellFocused(o);return n||u?!(l.allCols.indexOf(i)>=0):!0}getDomOrder(){return this.gos.get("ensureDomOrder")||sr(this.gos,"print")}listenOnDomOrder(e){const t=()=>{e.rowComp.setDomOrder(this.getDomOrder())};e.compBean.addManagedPropertyListeners(["domLayout","ensureDomOrder"],t)}setAnimateFlags(e){if(this.rowNode.sticky||!e)return;const t=he(this.rowNode.oldRowTop),{visibleCols:s}=this.beans,r=s.isPinningLeft(),i=s.isPinningRight();if(t){const{slideInAnimation:n}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){n.fullWidth=!0;return}n.center=!0,n.left=r,n.right=i}else{const{fadeInAnimation:n}=this;if(this.isFullWidth()&&!this.gos.get("embedFullWidthRows")){n.fullWidth=!0;return}n.center=!0,n.left=r,n.right=i}}isFullWidth(){return this.rowType!=="Normal"}refreshFullWidth(){const e=(o,a)=>o?o.rowComp.refreshFullWidth(()=>this.createFullWidthCompDetails(o.element,a).params):!0,t=e(this.fullWidthGui,null),s=e(this.centerGui,null),r=e(this.leftGui,"left"),i=e(this.rightGui,"right");return t&&s&&r&&i}addListeners(){var e;this.addManagedListeners(this.rowNode,{heightChanged:()=>this.onRowHeightChanged(),rowSelected:()=>this.onRowSelected(),rowIndexChanged:this.onRowIndexChanged.bind(this),topChanged:this.onTopChanged.bind(this),...((e=this.beans.expansionSvc)==null?void 0:e.getRowExpandedListeners(this))??{}}),this.rowNode.detail&&this.addManagedListeners(this.rowNode.parent,{dataChanged:this.onRowNodeDataChanged.bind(this)}),this.addManagedListeners(this.rowNode,{dataChanged:this.onRowNodeDataChanged.bind(this),cellChanged:this.postProcessCss.bind(this),rowHighlightChanged:this.onRowNodeHighlightChanged.bind(this),draggingChanged:this.postProcessRowDragging.bind(this),uiLevelChanged:this.onUiLevelChanged.bind(this)}),this.addManagedListeners(this.beans.eventSvc,{paginationPixelOffsetChanged:this.onPaginationPixelOffsetChanged.bind(this),heightScaleChanged:this.onTopChanged.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:this.onVirtualColumnsChanged.bind(this),cellFocused:this.onCellFocusChanged.bind(this),cellFocusCleared:this.onCellFocusChanged.bind(this),paginationChanged:this.onPaginationChanged.bind(this),modelUpdated:this.refreshFirstAndLastRowStyles.bind(this),columnMoved:()=>this.updateColumnLists()}),this.addDestroyFunc(()=>{this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context),this.tooltipFeature=this.destroyBean(this.tooltipFeature,this.beans.context)}),this.addManagedPropertyListeners(["rowStyle","getRowStyle","rowClass","getRowClass","rowClassRules"],this.postProcessCss.bind(this)),this.addManagedPropertyListener("rowDragEntireRow",()=>{if(this.gos.get("rowDragEntireRow")){this.allRowGuis.forEach(s=>{this.addRowDraggerToRow(s)});return}this.rowDragComps=this.destroyBeans(this.rowDragComps,this.beans.context)}),this.addListenersForCellComps()}addListenersForCellComps(){this.addManagedListeners(this.rowNode,{rowIndexChanged:()=>{this.getAllCellCtrls().forEach(e=>e.onRowIndexChanged())},cellChanged:e=>{this.getAllCellCtrls().forEach(t=>t.onCellChanged(e))}})}onRowNodeDataChanged(e){if(this.isFullWidth()!==!!this.isNodeFullWidthCell()){this.beans.rowRenderer.redrawRow(this.rowNode);return}if(this.isFullWidth()){this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode);return}this.getAllCellCtrls().forEach(s=>s.refreshCell({suppressFlash:!e.update,newData:!e.update})),this.allRowGuis.forEach(s=>{this.setRowCompRowId(s.rowComp),this.updateRowBusinessKey(),this.setRowCompRowBusinessKey(s.rowComp)}),this.onRowSelected(),this.postProcessCss()}postProcessCss(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()}onRowNodeHighlightChanged(){const e=this.rowNode.highlighted;this.allRowGuis.forEach(t=>{const s=e==="Above",r=e==="Below";t.rowComp.addOrRemoveCssClass("ag-row-highlight-above",s),t.rowComp.addOrRemoveCssClass("ag-row-highlight-below",r)})}postProcessRowDragging(){const e=this.rowNode.dragging;this.allRowGuis.forEach(t=>t.rowComp.addOrRemoveCssClass("ag-row-dragging",e))}onDisplayedColumnsChanged(){var e;this.updateColumnLists(!0),(e=this.beans.rowAutoHeight)==null||e.checkAutoHeights(this.rowNode)}onVirtualColumnsChanged(){this.updateColumnLists(!1,!0)}getRowPosition(){return{rowPinned:Bs(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}}findFullWidthRowGui(e){return this.allRowGuis.find(t=>t.element.contains(e))}onKeyboardNavigate(e){const t=this.findFullWidthRowGui(e.target);if(!((t?t.element:null)===e.target))return;const i=this.rowNode,{focusSvc:n,navigation:o}=this.beans,a=n.getFocusedCell(),l={rowIndex:i.rowIndex,rowPinned:i.rowPinned,column:(a==null?void 0:a.column)??this.getColumnForFullWidth(t)};o==null||o.navigateToNextCell(e,e.key,l,!0),e.preventDefault()}onTabKeyDown(e){var a;if(e.defaultPrevented||Ri(e))return;const t=this.allRowGuis.find(l=>l.element.contains(e.target)),s=t?t.element:null,r=s===e.target,i=Ft(this.beans);let n=!1;s&&i&&(n=s.contains(i)&&i.classList.contains("ag-cell"));let o=null;!r&&!n&&(o=gr(this.beans,s,!1,e.shiftKey)),(this.isFullWidth()&&r||!o)&&((a=this.beans.navigation)==null||a.onTabKeyDown(this,e))}getFullWidthElement(){return this.fullWidthGui?this.fullWidthGui.element:null}getRowYPosition(){var t;const e=(t=this.allRowGuis.find(s=>Tr(s.element)))==null?void 0:t.element;return e?e.getBoundingClientRect().top:0}onSuppressCellFocusChanged(e){const t=this.isFullWidth()&&e?void 0:-1;this.allRowGuis.forEach(s=>{zi(s.element,"tabindex",t)})}onFullWidthRowFocused(e){var i;const t=this.rowNode,s=e?this.isFullWidth()&&e.rowIndex===t.rowIndex&&e.rowPinned==t.rowPinned:!1,r=this.fullWidthGui?this.fullWidthGui.element:(i=this.centerGui)==null?void 0:i.element;r&&(r.classList.toggle("ag-full-width-focus",s),s&&(e!=null&&e.forceBrowserFocus)&&r.focus({preventScroll:!0}))}recreateCell(e){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,e),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,e),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,e),e.destroy(),this.updateColumnLists()}removeCellCtrl(e,t){const s={list:[],map:{}};return e.list.forEach(r=>{r!==t&&(s.list.push(r),s.map[r.column.getInstanceId()]=r)}),s}onMouseEvent(e,t){switch(e){case"dblclick":this.onRowDblClick(t);break;case"click":this.onRowClick(t);break;case"touchstart":case"mousedown":this.onRowMouseDown(t);break}}createRowEvent(e,t){const{rowNode:s}=this;return this.gos.addGridCommonParams({type:e,node:s,data:s.data,rowIndex:s.rowIndex,rowPinned:s.rowPinned,event:t})}createRowEventWithSource(e,t){const s=this.createRowEvent(e,t);return s.source=this,s}onRowDblClick(e){Ri(e)||this.beans.eventSvc.dispatchEvent(this.createRowEventWithSource("rowDoubleClicked",e))}getColumnForFullWidth(e){const{visibleCols:t}=this.beans;switch(e==null?void 0:e.containerType){case"center":return t.centerCols[0];case"left":return t.leftCols[0];case"right":return t.rightCols[0];default:return t.allCols[0]}}onRowMouseDown(e){if(this.lastMouseDownOnDragger=yl(e.target,"ag-row-drag",3),!this.isFullWidth())return;const t=this.rowNode,{rangeSvc:s,focusSvc:r}=this.beans;s==null||s.removeAllCellRanges();const i=this.findFullWidthRowGui(e.target),n=i==null?void 0:i.element,o=e.target;let a=!0;n&&n.contains(o)&&Kb(o)&&(a=!1),r.setFocusedCell({rowIndex:t.rowIndex,column:this.getColumnForFullWidth(i),rowPinned:t.rowPinned,forceBrowserFocus:a})}onRowClick(e){if(Ri(e)||this.lastMouseDownOnDragger)return;const{eventSvc:s,selectionSvc:r}=this.beans;s.dispatchEvent(this.createRowEventWithSource("rowClicked",e)),r==null||r.handleSelectionEvent(e,this.rowNode,"rowClicked")}setupDetailRowAutoHeight(e){var t;this.rowType==="FullWidthDetail"&&((t=this.beans.masterDetailSvc)==null||t.setupDetailRowAutoHeight(this,e))}createFullWidthCompDetails(e,t){const{gos:s,rowNode:r}=this,i=s.addGridCommonParams({fullWidth:!0,data:r.data,node:r,value:r.key,valueFormatted:r.key,eGridCell:e,eParentOfValue:e,pinned:t,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:(o,a,l,u)=>this.addFullWidthRowDragging(o,a,l,u),setTooltip:(o,a)=>{s.assertModuleRegistered("Tooltip",3),this.refreshRowTooltip(o,a)}}),n=this.beans.userCompFactory;switch(this.rowType){case"FullWidthDetail":return W9(n,i);case"FullWidthGroup":return z9(n,i);case"FullWidthLoading":return H9(n,i);default:return V9(n,i)}}refreshRowTooltip(e,t){var s;this.fullWidthGui&&(this.tooltipFeature=(s=this.beans.tooltipSvc)==null?void 0:s.refreshRowTooltip(this.tooltipFeature,this,e,t))}addFullWidthRowDragging(e,t,s="",r){const{rowDragSvc:i,context:n}=this.beans;if(!i||!this.isFullWidth())return;const o=i.createRowDragComp(()=>s,this.rowNode,void 0,e,t,r);this.createBean(o,n),this.addDestroyFunc(()=>{this.destroyBean(o,n)})}onUiLevelChanged(){const e=ME(this.rowNode);if(this.rowLevel!=e){const t="ag-row-level-"+e,s="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach(r=>{r.rowComp.addOrRemoveCssClass(t,!0),r.rowComp.addOrRemoveCssClass(s,!1)})}this.rowLevel=e}isFirstRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getFirstRow()}isLastRowOnPage(){return this.rowNode.rowIndex===this.beans.pageBounds.getLastRow()}refreshFirstAndLastRowStyles(){const e=this.isFirstRowOnPage(),t=this.isLastRowOnPage();this.firstRowOnPage!==e&&(this.firstRowOnPage=e,this.allRowGuis.forEach(s=>s.rowComp.addOrRemoveCssClass("ag-row-first",e))),this.lastRowOnPage!==t&&(this.lastRowOnPage=t,this.allRowGuis.forEach(s=>s.rowComp.addOrRemoveCssClass("ag-row-last",t)))}getAllCellCtrls(){return this.leftCellCtrls.list.length===0&&this.rightCellCtrls.list.length===0?this.centerCellCtrls.list:[...this.centerCellCtrls.list,...this.leftCellCtrls.list,...this.rightCellCtrls.list]}postProcessClassesFromGridOptions(){var t;const e=[];(t=this.beans.rowStyleSvc)==null||t.processClassesFromGridOptions(e,this.rowNode),e.length&&e.forEach(s=>{this.allRowGuis.forEach(r=>r.rowComp.addOrRemoveCssClass(s,!0))})}postProcessRowClassRules(){var e;(e=this.beans.rowStyleSvc)==null||e.processRowClassRules(this.rowNode,t=>{this.allRowGuis.forEach(s=>s.rowComp.addOrRemoveCssClass(t,!0))},t=>{this.allRowGuis.forEach(s=>s.rowComp.addOrRemoveCssClass(t,!1))})}setStylesFromGridOptions(e,t){e&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(t,s=>s.rowComp.setUserStyles(this.rowStyles))}getPinnedForContainer(e){return e==="left"||e==="right"?e:null}getInitialRowClasses(e){var a;const t=this.getPinnedForContainer(e),s=this.isFullWidth(),{rowNode:r,beans:i}=this,n=[];n.push("ag-row"),n.push(this.rowFocused?"ag-row-focus":"ag-row-no-focus"),this.fadeInAnimation[e]&&n.push("ag-opacity-zero"),n.push(r.rowIndex%2===0?"ag-row-even":"ag-row-odd"),r.isRowPinned()&&n.push("ag-row-pinned"),r.isSelected()&&n.push("ag-row-selected"),r.footer&&n.push("ag-row-footer"),n.push("ag-row-level-"+this.rowLevel),r.stub&&n.push("ag-row-loading"),s&&n.push("ag-full-width-row"),(a=i.expansionSvc)==null||a.addExpandedCss(n,r),r.dragging&&n.push("ag-row-dragging");const{rowStyleSvc:o}=i;return o&&(o.processClassesFromGridOptions(n,r),o.preProcessRowClassRules(n,r)),n.push(this.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),this.isFirstRowOnPage()&&n.push("ag-row-first"),this.isLastRowOnPage()&&n.push("ag-row-last"),s&&(t==="left"&&n.push("ag-cell-last-left-pinned"),t==="right"&&n.push("ag-cell-first-right-pinned")),n}processStylesFromGridOptions(){var e;return((e=this.beans.rowStyleSvc)==null?void 0:e.processStylesFromGridOptions(this.rowNode))??this.emptyStyle}onRowSelected(e){var t;(t=this.beans.selectionSvc)==null||t.onRowCtrlSelected(this,s=>{(s===this.centerGui||s===this.fullWidthGui)&&this.announceDescription()},e)}announceDescription(){var e;(e=this.beans.selectionSvc)==null||e.announceAriaRowSelection(this.rowNode)}addHoverFunctionality(e){if(!this.active)return;const{element:t,compBean:s}=e,{rowNode:r,beans:i,gos:n}=this;s.addManagedListeners(t,{mouseenter:()=>r.dispatchRowEvent("mouseEnter"),mouseleave:()=>r.dispatchRowEvent("mouseLeave")}),s.addManagedListeners(r,{mouseEnter:()=>{var o;!((o=i.dragSvc)!=null&&o.dragging)&&!n.get("suppressRowHoverHighlight")&&(t.classList.add("ag-row-hover"),r.setHovered(!0))},mouseLeave:()=>{t.classList.remove("ag-row-hover"),r.setHovered(!1)}})}roundRowTopToBounds(e){const t=this.beans.ctrlsSvc.getScrollFeature().getApproximateVScollPosition(),s=this.applyPaginationOffset(t.top,!0)-100,r=this.applyPaginationOffset(t.bottom,!0)+100;return Math.min(Math.max(s,e),r)}forEachGui(e,t){e?t(e):this.allRowGuis.forEach(t)}onRowHeightChanged(e){if(this.rowNode.rowHeight==null)return;const t=this.rowNode.rowHeight,s=this.beans.environment.getDefaultRowHeight(),i=Qb(this.gos)?Fr(this.beans,this.rowNode).height:void 0,n=i?`${Math.min(s,i)-2}px`:void 0;this.forEachGui(e,o=>{o.element.style.height=`${t}px`,n&&o.element.style.setProperty("--ag-line-height",n)})}destroyFirstPass(e=!1){this.active=!1;const{rowNode:t}=this;if(!e&&kc(this.gos)&&!t.sticky)if(t.rowTop!=null){const i=this.roundRowTopToBounds(t.rowTop);this.setRowTop(i)}else this.allRowGuis.forEach(i=>i.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0));t.setHovered(!1);const s=this.createRowEvent("virtualRowRemoved");this.dispatchLocalEvent(s),this.beans.eventSvc.dispatchEvent(s),super.destroy()}destroySecondPass(){var t;this.allRowGuis.length=0,(t=this.beans.editSvc)==null||t.stopRowEditing(this);const e=s=>(s.list.forEach(r=>r.destroy()),{list:[],map:{}});this.centerCellCtrls=e(this.centerCellCtrls),this.leftCellCtrls=e(this.leftCellCtrls),this.rightCellCtrls=e(this.rightCellCtrls)}setFocusedClasses(e){this.forEachGui(e,t=>{t.rowComp.addOrRemoveCssClass("ag-row-focus",this.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!this.rowFocused)})}onCellFocusChanged(){const{focusSvc:e,editSvc:t}=this.beans,s=e.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);s!==this.rowFocused&&(this.rowFocused=s,this.setFocusedClasses()),!s&&this.editing&&(t==null||t.stopRowEditing(this,!1))}onPaginationChanged(){var t;const e=((t=this.beans.pagination)==null?void 0:t.getCurrentPage())??0;this.paginationPage!==e&&(this.paginationPage=e,this.onTopChanged()),this.refreshFirstAndLastRowStyles()}onTopChanged(){this.setRowTop(this.rowNode.rowTop)}onPaginationPixelOffsetChanged(){this.onTopChanged()}applyPaginationOffset(e,t=!1){if(this.rowNode.isRowPinned()||this.rowNode.sticky)return e;const s=this.beans.pageBounds.getPixelOffset();return e+s*(t?1:-1)}setRowTop(e){if(!this.printLayout&&he(e)){const t=this.applyPaginationOffset(e),i=`${this.rowNode.isRowPinned()||this.rowNode.sticky?t:this.beans.rowContainerHeight.getRealPixelPosition(t)}px`;this.setRowTopStyle(i)}}getInitialRowTop(e){return this.suppressRowTransform?this.getInitialRowTopShared(e):void 0}getInitialTransform(e){return this.suppressRowTransform?void 0:`translateY(${this.getInitialRowTopShared(e)})`}getInitialRowTopShared(e){if(this.printLayout)return"";const t=this.rowNode;let s;if(t.sticky)s=t.stickyRowTop;else{const r=this.slideInAnimation[e]?this.roundRowTopToBounds(t.oldRowTop):t.rowTop,i=this.applyPaginationOffset(r);s=t.isRowPinned()?i:this.beans.rowContainerHeight.getRealPixelPosition(i)}return s+"px"}setRowTopStyle(e){this.allRowGuis.forEach(t=>this.suppressRowTransform?t.rowComp.setTop(e):t.rowComp.setTransform(`translateY(${e})`))}getCellCtrl(e,t=!1){let s=null;return this.getAllCellCtrls().forEach(r=>{r.column==e&&(s=r)}),s!=null||t||this.getAllCellCtrls().forEach(r=>{r.getColSpanningList().indexOf(e)>=0&&(s=r)}),s}onRowIndexChanged(){this.rowNode.rowIndex!=null&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())}updateRowIndexes(e){var n,o;const t=this.rowNode.getRowIndexString();if(t===null)return;const s=(((n=this.beans.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:n.getRowCount())??0)+(((o=this.beans.filterManager)==null?void 0:o.getHeaderRowCount())??0),r=this.rowNode.rowIndex%2===0,i=s+this.rowNode.rowIndex+1;this.forEachGui(e,a=>{a.rowComp.setRowIndex(t),a.rowComp.addOrRemoveCssClass("ag-row-even",r),a.rowComp.addOrRemoveCssClass("ag-row-odd",!r),_b(a.element,i)})}};function pS(e){var s;return e.altKey||e.ctrlKey||e.metaKey?!1:((s=e.key)==null?void 0:s.length)===1}function Sw(e,t,s,r,i){const n=r?r.getColDef().suppressKeyboardEvent:void 0;if(!n)return!1;const o=e.addGridCommonParams({event:t,editing:i,column:r,node:s,data:s.data,colDef:r.getColDef()});return!!(n&&n(o))}var Gq=65,Nq=67,Bq=86,Vq=68,Hq=90,zq=89;function Wq(e){const{keyCode:t}=e;let s;switch(t){case Gq:s=B.A;break;case Nq:s=B.C;break;case Bq:s=B.V;break;case Vq:s=B.D;break;case Hq:s=B.Z;break;case zq:s=B.Y;break;default:s=e.code}return s}var _q=class extends J{constructor(e){super(),this.element=e}postConstruct(){var e;this.addKeyboardListeners(),this.addMouseListeners(),(e=this.beans.touchSvc)==null||e.mockRowContextMenu(this)}addKeyboardListeners(){const e="keydown",t=this.processKeyboardEvent.bind(this,e);this.addManagedElementListeners(this.element,{[e]:t})}addMouseListeners(){["dblclick","contextmenu","mouseover","mouseout","click",lI("touchstart")?"touchstart":"mousedown"].forEach(s=>{const r=this.processMouseEvent.bind(this,s);this.addManagedElementListeners(this.element,{[s]:r})})}processMouseEvent(e,t){var i;if(!Sf(this.gos,t)||Ri(t))return;const{cellCtrl:s,rowCtrl:r}=this.getControlsForEventTarget(t.target);e==="contextmenu"?(s!=null&&s.column&&s.dispatchCellContextMenuEvent(t),(i=this.beans.contextMenuSvc)==null||i.handleContextMenuMouseEvent(t,void 0,r,s)):(s&&s.onMouseEvent(e,t),r&&r.onMouseEvent(e,t))}getControlsForEventTarget(e){const{gos:t}=this;return{cellCtrl:aS(t,e),rowCtrl:cI(t,e,ph)}}processKeyboardEvent(e,t){const{cellCtrl:s,rowCtrl:r}=this.getControlsForEventTarget(t.target);t.defaultPrevented||(s?this.processCellKeyboardEvent(s,e,t):r&&r.isFullWidth()&&this.processFullWidthRowKeyboardEvent(r,e,t))}processCellKeyboardEvent(e,t,s){var a;const{rowNode:r,column:i,editing:n}=e;!Sw(this.gos,s,r,i,n)&&t==="keydown"&&(!n&&((a=this.beans.navigation)!=null&&a.handlePageScrollingKey(s))||e.onKeyDown(s),this.doGridOperations(s,e.editing),pS(s)&&e.processCharacter(s)),t==="keydown"&&this.eventSvc.dispatchEvent(e.createEvent(s,"cellKeyDown"))}processFullWidthRowKeyboardEvent(e,t,s){const{rowNode:r}=e,{focusSvc:i,navigation:n}=this.beans,o=i.getFocusedCell(),a=o&&o.column;if(!Sw(this.gos,s,r,a,!1)){const u=s.key;if(t==="keydown")switch(u){case B.PAGE_HOME:case B.PAGE_END:case B.PAGE_UP:case B.PAGE_DOWN:n==null||n.handlePageScrollingKey(s,!0);break;case B.UP:case B.DOWN:e.onKeyboardNavigate(s);break;case B.TAB:e.onTabKeyDown(s);break}}t==="keydown"&&this.eventSvc.dispatchEvent(e.createRowEvent("cellKeyDown",s))}doGridOperations(e,t){if(!e.ctrlKey&&!e.metaKey||t||!Sf(this.gos,e))return;const s=Wq(e),{clipboardSvc:r,undoRedo:i}=this.beans;if(s===B.A)return this.onCtrlAndA(e);if(s===B.C)return this.onCtrlAndC(r,e);if(s===B.D)return this.onCtrlAndD(r,e);if(s===B.V)return this.onCtrlAndV(r,e);if(s===B.X)return this.onCtrlAndX(r,e);if(s===B.Y)return this.onCtrlAndY(i);if(s===B.Z)return this.onCtrlAndZ(i,e)}onCtrlAndA(e){const{beans:{pinnedRowModel:t,rowModel:s,visibleCols:r,rangeSvc:i,selectionSvc:n},gos:o}=this;if(i&&Or(o)&&s.isRowsToRender()){const[a,l]=[(t==null?void 0:t.isEmpty("top"))??!0,(t==null?void 0:t.isEmpty("bottom"))??!0],u=a?null:"top";let h,p;l?(h=null,p=s.getRowCount()-1):(h="bottom",p=(t==null?void 0:t.getPinnedBottomRowCount())??-1);const g=r.allCols;if(!(g!=null&&g.length))return;i.setCellRange({rowStartIndex:0,rowStartPinned:u,rowEndIndex:p,rowEndPinned:h,columnStart:g[0],columnEnd:Je(g)})}else n&&(n==null||n.selectAllRowNodes({source:"keyboardSelectAll",selectAll:iI(o)}));e.preventDefault()}onCtrlAndC(e,t){if(!e||this.gos.get("enableCellTextSelection"))return;const{cellCtrl:s,rowCtrl:r}=this.getControlsForEventTarget(t.target);s!=null&&s.editing||r!=null&&r.editing||(t.preventDefault(),e.copyToClipboard())}onCtrlAndX(e,t){if(!e||this.gos.get("enableCellTextSelection")||this.gos.get("suppressCutToClipboard"))return;const{cellCtrl:s,rowCtrl:r}=this.getControlsForEventTarget(t.target);s!=null&&s.editing||r!=null&&r.editing||(t.preventDefault(),e.cutToClipboard(void 0,"ui"))}onCtrlAndV(e,t){const{cellCtrl:s,rowCtrl:r}=this.getControlsForEventTarget(t.target);s!=null&&s.editing||r!=null&&r.editing||e&&!this.gos.get("suppressClipboardPaste")&&e.pasteFromClipboard()}onCtrlAndD(e,t){e&&!this.gos.get("suppressClipboardPaste")&&e.copyRangeDown(),t.preventDefault()}onCtrlAndZ(e,t){!this.gos.get("undoRedoCellEditing")||!e||(t.preventDefault(),t.shiftKey?e.redo("ui"):e.undo("ui"))}onCtrlAndY(e){e==null||e.redo("ui")}},nk=class extends J{constructor(e,t){super(),this.eContainer=e,this.eViewport=t}postConstruct(){this.addManagedEventListeners({rowContainerHeightChanged:this.onHeightChanged.bind(this,this.beans.rowContainerHeight)})}onHeightChanged(e){const t=e.uiContainerHeight,s=t!=null?`${t}px`:"";this.eContainer.style.height=s,this.eViewport&&(this.eViewport.style.height=s)}},ag=e=>e.topRowCtrls,lg=e=>e.getStickyTopRowCtrls(),cg=e=>e.getStickyBottomRowCtrls(),ug=e=>e.bottomRowCtrls,dg=e=>e.allRowCtrls,$q={center:{type:"center",container:"ag-center-cols-container",viewport:"ag-center-cols-viewport",getRowCtrls:dg},left:{type:"left",container:"ag-pinned-left-cols-container",pinnedType:"left",getRowCtrls:dg},right:{type:"right",container:"ag-pinned-right-cols-container",pinnedType:"right",getRowCtrls:dg},fullWidth:{type:"fullWidth",container:"ag-full-width-container",fullWidth:!0,getRowCtrls:dg},topCenter:{type:"center",container:"ag-floating-top-container",viewport:"ag-floating-top-viewport",getRowCtrls:ag},topLeft:{type:"left",container:"ag-pinned-left-floating-top",pinnedType:"left",getRowCtrls:ag},topRight:{type:"right",container:"ag-pinned-right-floating-top",pinnedType:"right",getRowCtrls:ag},topFullWidth:{type:"fullWidth",container:"ag-floating-top-full-width-container",fullWidth:!0,getRowCtrls:ag},stickyTopCenter:{type:"center",container:"ag-sticky-top-container",viewport:"ag-sticky-top-viewport",getRowCtrls:lg},stickyTopLeft:{type:"left",container:"ag-pinned-left-sticky-top",pinnedType:"left",getRowCtrls:lg},stickyTopRight:{type:"right",container:"ag-pinned-right-sticky-top",pinnedType:"right",getRowCtrls:lg},stickyTopFullWidth:{type:"fullWidth",container:"ag-sticky-top-full-width-container",fullWidth:!0,getRowCtrls:lg},stickyBottomCenter:{type:"center",container:"ag-sticky-bottom-container",viewport:"ag-sticky-bottom-viewport",getRowCtrls:cg},stickyBottomLeft:{type:"left",container:"ag-pinned-left-sticky-bottom",pinnedType:"left",getRowCtrls:cg},stickyBottomRight:{type:"right",container:"ag-pinned-right-sticky-bottom",pinnedType:"right",getRowCtrls:cg},stickyBottomFullWidth:{type:"fullWidth",container:"ag-sticky-bottom-full-width-container",fullWidth:!0,getRowCtrls:cg},bottomCenter:{type:"center",container:"ag-floating-bottom-container",viewport:"ag-floating-bottom-viewport",getRowCtrls:ug},bottomLeft:{type:"left",container:"ag-pinned-left-floating-bottom",pinnedType:"left",getRowCtrls:ug},bottomRight:{type:"right",container:"ag-pinned-right-floating-bottom",pinnedType:"right",getRowCtrls:ug},bottomFullWidth:{type:"fullWidth",container:"ag-floating-bottom-full-width-container",fullWidth:!0,getRowCtrls:ug}};function pl(e){return $q[e]}var Uq=["topCenter","topLeft","topRight"],jq=["bottomCenter","bottomLeft","bottomRight"],Kq=["center","left","right"],qq=["center","left","right","fullWidth"],Yq=["stickyTopCenter","stickyBottomCenter","center","topCenter","bottomCenter"],Xq=["left","bottomLeft","topLeft","stickyTopLeft","stickyBottomLeft"],Qq=["right","bottomRight","topRight","stickyTopRight","stickyBottomRight"],ok=["stickyTopCenter","stickyTopLeft","stickyTopRight"],ak=["stickyBottomCenter","stickyBottomLeft","stickyBottomRight"],Jq=[...ok,"stickyTopFullWidth",...ak,"stickyBottomFullWidth"],Zq=[...Uq,...jq,...Kq,...ok,...ak],lk=class extends J{constructor(e){super(),this.name=e,this.visible=!0,this.EMPTY_CTRLS=[],this.options=pl(e)}postConstruct(){this.enableRtl=this.gos.get("enableRtl"),this.forContainers(["center"],()=>{this.viewportSizeFeature=this.createManagedBean(new kq(this)),this.addManagedEventListeners({stickyTopOffsetChanged:this.onStickyTopOffsetChanged.bind(this)})})}onStickyTopOffsetChanged(e){this.comp.setOffsetTop(`${e.offset}px`)}registerWithCtrlsService(){this.options.fullWidth||this.beans.ctrlsSvc.register(this.name,this)}forContainers(e,t){e.indexOf(this.name)>=0&&t()}setComp(e,t,s){this.comp=e,this.eContainer=t,this.eViewport=s,this.createManagedBean(new _q(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder();const{pinnedCols:r,rangeSvc:i}=this.beans,n=()=>this.onPinnedWidthChanged();this.forContainers(Xq,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(r==null?void 0:r.createPinnedWidthFeature(this.eContainer,!0)),this.addManagedEventListeners({leftPinnedWidthChanged:n})}),this.forContainers(Qq,()=>{this.pinnedWidthFeature=this.createOptionalManagedBean(r==null?void 0:r.createPinnedWidthFeature(this.eContainer,!1)),this.addManagedEventListeners({rightPinnedWidthChanged:n})}),this.forContainers(qq,()=>this.createManagedBean(new nk(this.eContainer,this.name==="center"?s:void 0))),i&&this.forContainers(Zq,()=>this.createManagedBean(i.createDragListenerFeature(this.eContainer))),this.forContainers(Yq,()=>this.createManagedBean(new dS(o=>this.comp.setContainerWidth(`${o}px`)))),this.visible=this.isContainerVisible(),this.addListeners(),this.registerWithCtrlsService()}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}addListeners(){this.addManagedEventListeners({displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),displayedColumnsWidthChanged:this.onDisplayedColumnsChanged.bind(this),displayedRowsChanged:e=>this.onDisplayedRowsChanged(e.afterScroll)}),this.onDisplayedColumnsChanged(),this.onDisplayedRowsChanged()}listenOnDomOrder(){if(Jq.indexOf(this.name)>=0){this.comp.setDomOrder(!0);return}const t=()=>{const s=this.gos.get("ensureDomOrder"),r=sr(this.gos,"print");this.comp.setDomOrder(s||r)};this.addManagedPropertyListener("domLayout",t),t()}onDisplayedColumnsChanged(){this.forContainers(["center"],()=>this.onHorizontalViewportChanged())}addPreventScrollWhileDragging(){const{dragSvc:e}=this.beans;if(!e)return;const t=s=>{e.dragging&&s.cancelable&&s.preventDefault()};this.eContainer.addEventListener("touchmove",t,{passive:!1}),this.addDestroyFunc(()=>this.eContainer.removeEventListener("touchmove",t))}onHorizontalViewportChanged(e=!1){const t=this.getCenterWidth(),s=this.getCenterViewportScrollLeft();this.beans.colViewport.setScrollPosition(t,s,e)}hasHorizontalScrollGap(){return this.eContainer.clientWidth-this.eViewport.clientWidth<0}hasVerticalScrollGap(){return this.eContainer.clientHeight-this.eViewport.clientHeight<0}getCenterWidth(){return Kc(this.eViewport)}getCenterViewportScrollLeft(){return lf(this.eViewport,this.enableRtl)}registerViewportResizeListener(e){const t=Fi(this.beans,this.eViewport,e);this.addDestroyFunc(()=>t())}isViewportInTheDOMTree(){return HA(this.eViewport)}getViewportScrollLeft(){return lf(this.eViewport,this.enableRtl)}isHorizontalScrollShowing(){return this.gos.get("alwaysShowHorizontalScroll")||b7(this.eViewport)}setHorizontalScroll(e){this.comp.setHorizontalScroll(e)}getHScrollPosition(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}}setCenterViewportScrollLeft(e){cf(this.eViewport,e,this.enableRtl)}isContainerVisible(){return!(this.options.pinnedType!=null)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0}onPinnedWidthChanged(){const e=this.isContainerVisible();this.visible!=e&&(this.visible=e,this.onDisplayedRowsChanged())}onDisplayedRowsChanged(e=!1){const t=this.options.getRowCtrls(this.beans.rowRenderer);if(!this.visible||t.length===0){this.comp.setRowCtrls({rowCtrls:this.EMPTY_CTRLS});return}const s=sr(this.gos,"print"),i=this.gos.get("embedFullWidthRows")||s,n=t.filter(o=>{const a=o.isFullWidth();return this.options.fullWidth?!i&&a:i||!a});this.comp.setRowCtrls({rowCtrls:n,useFlushSync:e})}},ck="ag-force-vertical-scroll",eY="ag-selectable",tY="ag-column-moving",uk=class extends J{constructor(){super(...arguments),this.stickyTopHeight=0,this.stickyBottomHeight=0}wireBeans(e){this.ctrlsSvc=e.ctrlsSvc,this.colModel=e.colModel,this.scrollVisibleSvc=e.scrollVisibleSvc,this.pinnedRowModel=e.pinnedRowModel,this.filterManager=e.filterManager,this.rowGroupColsSvc=e.rowGroupColsSvc}setComp(e,t,s,r,i,n,o){var a,l;this.comp=e,this.eGridBody=t,this.eBodyViewport=s,this.eTop=r,this.eBottom=i,this.eStickyTop=n,this.eStickyBottom=o,this.eCenterColsViewport=s.querySelector(`.${pl("center").viewport}`),this.eFullWidthContainer=s.querySelector(`.${pl("fullWidth").container}`),this.eStickyTopFullWidthContainer=n.querySelector(`.${pl("stickyTopFullWidth").container}`),this.eStickyBottomFullWidthContainer=o.querySelector(`.${pl("stickyBottomFullWidth").container}`),this.setCellTextSelection(this.gos.get("enableCellTextSelection")),this.addManagedPropertyListener("enableCellTextSelection",u=>this.setCellTextSelection(u.currentValue)),this.createManagedBean(new uS(this.comp)),this.scrollFeature=this.createManagedBean(new Iq(this.eBodyViewport)),(a=this.beans.rowDragSvc)==null||a.setupRowDrag(this.eBodyViewport,this),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([r,s,i,n,o]),this.setGridRootRole(),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.updateScrollingClasses(),(l=this.filterManager)==null||l.setupAdvFilterHeaderComp(r),this.ctrlsSvc.register("gridBodyCtrl",this)}addEventListeners(){const e=this.setFloatingHeights.bind(this),t=this.setGridRootRole.bind(this);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this),scrollGapChanged:this.updateScrollingClasses.bind(this),pinnedRowDataChanged:e,pinnedHeightChanged:e,headerHeightChanged:this.setStickyTopOffsetTop.bind(this),columnRowGroupChanged:t,columnPivotChanged:t}),this.addManagedPropertyListener("treeData",t)}onGridColumnsChanged(){const e=this.beans.colModel.getCols();this.comp.setColumnCount(e.length)}onScrollVisibilityChanged(){const{scrollVisibleSvc:e}=this,t=e.verticalScrollShowing;this.setVerticalScrollPaddingVisible(t),this.setStickyWidth(t),this.setStickyBottomOffsetBottom();const s=t&&e.getScrollbarWidth()||0,r=GA()?16:0,i=`calc(100% + ${s+r}px)`;ji(this.beans,()=>this.comp.setBodyViewportWidth(i)),this.updateScrollingClasses()}setGridRootRole(){const{rowGroupColsSvc:e,colModel:t}=this;let s=this.gos.get("treeData");if(!s){const r=t.isPivotMode();s=(e?e.columns.length:0)>=(r?2:1)}this.comp.setGridRootRole(s?"treegrid":"grid")}addFocusListeners(e){e.forEach(t=>{this.addManagedElementListeners(t,{focusin:s=>{const{target:r}=s,i=yl(r,"ag-root",t);t.classList.toggle("ag-has-focus",!i)},focusout:s=>{const{target:r,relatedTarget:i}=s,n=t.contains(i),o=yl(i,"ag-root",t);yl(r,"ag-root",t)||(!n||o)&&t.classList.remove("ag-has-focus")}})})}setColumnMovingCss(e){this.comp.setColumnMovingCss(tY,e)}setCellTextSelection(e=!1){this.comp.setCellSelectableCss(eY,e)}updateScrollingClasses(){const{eGridBody:{classList:e},scrollVisibleSvc:t}=this;e.toggle("ag-body-vertical-content-no-gap",!t.verticalScrollGap),e.toggle("ag-body-horizontal-content-no-gap",!t.horizontalScrollGap)}disableBrowserDragging(){this.addManagedElementListeners(this.eGridBody,{dragstart:e=>{if(e.target instanceof HTMLImageElement)return e.preventDefault(),!1}})}addStopEditingWhenGridLosesFocus(){var e;(e=this.beans.editSvc)==null||e.addStopEditingWhenGridLosesFocus([this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop,this.eStickyBottom])}updateRowCount(){var i,n;const e=(((i=this.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:i.getRowCount())??0)+(((n=this.filterManager)==null?void 0:n.getHeaderRowCount())??0),{rowModel:t}=this.beans,s=t.isLastRowIndexKnown()?t.getRowCount():-1,r=s===-1?-1:e+s;this.comp.setRowCount(r)}registerBodyViewportResizeListener(e){this.comp.registerBodyViewportResizeListener(e)}setVerticalScrollPaddingVisible(e){const t=e?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(t)}isVerticalScrollShowing(){const e=this.gos.get("alwaysShowVerticalScroll"),t=e?ck:null,s=sr(this.gos,"normal");return this.comp.setAlwaysVerticalScrollClass(t,e),e||s&&S7(this.eBodyViewport)}setupRowAnimationCssClass(){const{rowContainerHeight:e,environment:t}=this.beans;let s=t.sizesMeasured;const r=()=>{const i=s&&kc(this.gos)&&!e.stretching,n=i?"ag-row-animation":"ag-row-no-animation";this.comp.setRowAnimationCssOnBodyViewport(n,i)};r(),this.addManagedEventListeners({heightScaleChanged:r}),this.addManagedPropertyListener("animateRows",r),this.addManagedEventListeners({gridStylesChanged:()=>{!s&&t.sizesMeasured&&(s=!0,r())}})}addBodyViewportListener(){const{popupSvc:e,touchSvc:t}=this.beans,s=this.onBodyViewportContextMenu.bind(this);this.addManagedElementListeners(this.eBodyViewport,{contextmenu:s}),t==null||t.mockBodyContextMenu(this,s),this.addManagedElementListeners(this.eBodyViewport,{wheel:this.onBodyViewportWheel.bind(this,e)}),this.addManagedElementListeners(this.eStickyTop,{wheel:this.onStickyWheel.bind(this)}),this.addManagedElementListeners(this.eStickyBottom,{wheel:this.onStickyWheel.bind(this)}),this.addFullWidthContainerWheelListener()}addFullWidthContainerWheelListener(){this.addManagedElementListeners(this.eFullWidthContainer,{wheel:e=>this.onFullWidthContainerWheel(e)})}onFullWidthContainerWheel(e){const{deltaX:t,deltaY:s,shiftKey:r}=e;(r||Math.abs(t)>Math.abs(s))&&Sf(this.gos,e)&&this.scrollGridBodyToMatchEvent(e)}onStickyWheel(e){const{deltaX:t,deltaY:s,shiftKey:r}=e,i=r||Math.abs(t)>Math.abs(s),n=e.target;i?(this.eStickyTopFullWidthContainer.contains(n)||this.eStickyBottomFullWidthContainer.contains(n))&&this.scrollGridBodyToMatchEvent(e):(e.preventDefault(),this.scrollVertically(s))}scrollGridBodyToMatchEvent(e){const{deltaX:t,deltaY:s}=e;e.preventDefault(),this.eCenterColsViewport.scrollBy({left:t||s})}onBodyViewportContextMenu(e,t,s){var i;if(!e&&!s)return;this.gos.get("preventDefaultOnContextMenu")&&(e||s).preventDefault();const{target:r}=e||t;(r===this.eBodyViewport||r===this.ctrlsSvc.get("center").eViewport)&&((i=this.beans.contextMenuSvc)==null||i.showContextMenu({mouseEvent:e,touchEvent:s,value:null,anchorToElement:this.eGridBody}))}onBodyViewportWheel(e,t){this.gos.get("suppressScrollWhenPopupsAreOpen")&&e!=null&&e.hasAnchoredPopup()&&t.preventDefault()}scrollVertically(e){const t=this.eBodyViewport.scrollTop;return this.scrollFeature.setVerticalScrollPosition(t+e),this.eBodyViewport.scrollTop-t}setFloatingHeights(){const{pinnedRowModel:e}=this,t=(e==null?void 0:e.getPinnedTopTotalHeight())??0,s=(e==null?void 0:e.getPinnedBottomTotalHeight())??0;this.comp.setTopHeight(t),this.comp.setBottomHeight(s),this.comp.setTopDisplay(t?"inherit":"none"),this.comp.setBottomDisplay(s?"inherit":"none"),this.setStickyTopOffsetTop(),this.setStickyBottomOffsetBottom()}setStickyTopHeight(e=0){this.comp.setStickyTopHeight(`${e}px`),this.stickyTopHeight=e}setStickyBottomHeight(e=0){this.comp.setStickyBottomHeight(`${e}px`),this.stickyBottomHeight=e}setStickyWidth(e){if(!e)this.comp.setStickyTopWidth("100%"),this.comp.setStickyBottomWidth("100%");else{const t=this.scrollVisibleSvc.getScrollbarWidth();this.comp.setStickyTopWidth(`calc(100% - ${t}px)`),this.comp.setStickyBottomWidth(`calc(100% - ${t}px)`)}}setStickyTopOffsetTop(){var i,n;const t=this.ctrlsSvc.get("gridHeaderCtrl").headerHeight+(((i=this.filterManager)==null?void 0:i.getHeaderHeight())??0),s=((n=this.pinnedRowModel)==null?void 0:n.getPinnedTopTotalHeight())??0;let r=0;t>0&&(r+=t),s>0&&(r+=s),r>0&&(r+=1),this.comp.setStickyTopTop(`${r}px`)}setStickyBottomOffsetBottom(){const{pinnedRowModel:e,scrollVisibleSvc:t,comp:s}=this,r=(e==null?void 0:e.getPinnedBottomTotalHeight())??0,n=t.horizontalScrollShowing&&t.getScrollbarWidth()||0,o=r+n;s.setStickyBottomBottom(`${o}px`)}},dk=class extends pe{constructor(e,t){super(),this.direction=t,this.eViewport=j,this.eContainer=j,this.hideTimeout=0,this.setTemplate(e)}postConstruct(){this.addManagedEventListeners({scrollVisibilityChanged:this.onScrollVisibilityChanged.bind(this)}),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",LA()||ya())}destroy(){super.destroy(),window.clearTimeout(this.hideTimeout)}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.invisibleScrollbar=GA(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))}addActiveListenerToggles(){const e=this.getGui(),t=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!0),s=()=>this.addOrRemoveCssClass("ag-scrollbar-active",!1);this.addManagedListeners(e,{mouseenter:t,mousedown:t,touchstart:t,mouseleave:s,touchend:s})}onScrollVisibilityChanged(){this.invisibleScrollbar===void 0&&this.initialiseInvisibleScrollbar(),ji(this.beans,()=>this.setScrollVisible())}hideAndShowInvisibleScrollAsNeeded(){this.addManagedEventListeners({bodyScroll:e=>{e.direction===this.direction&&(this.hideTimeout&&(window.clearTimeout(this.hideTimeout),this.hideTimeout=0),this.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))},bodyScrollEnd:()=>{this.hideTimeout=window.setTimeout(()=>{this.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),this.hideTimeout=0},400)}})}attemptSettingScrollPosition(e){const t=this.eViewport;KA(()=>Tr(t),()=>this.setScrollPosition(e),100)}onScrollCallback(e){this.addManagedElementListeners(this.eViewport,{scroll:e})}},hk=class extends dk{constructor(){super(``,"horizontal"),this.eLeftSpacer=j,this.eRightSpacer=j,this.setScrollVisibleDebounce=0}wireBeans(e){this.visibleCols=e.visibleCols,this.scrollVisibleSvc=e.scrollVisibleSvc}postConstruct(){super.postConstruct();const e=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedEventListeners({displayedColumnsChanged:e,displayedColumnsWidthChanged:e,pinnedRowDataChanged:this.refreshCompBottom.bind(this)}),this.addManagedPropertyListener("domLayout",e),this.beans.ctrlsSvc.register("fakeHScrollComp",this),this.createManagedBean(new dS(t=>this.eContainer.style.width=`${t}px`)),this.addManagedPropertyListeners(["suppressHorizontalScroll"],this.onScrollVisibilityChanged.bind(this))}destroy(){window.clearTimeout(this.setScrollVisibleDebounce),super.destroy()}initialiseInvisibleScrollbar(){this.invisibleScrollbar===void 0&&(this.enableRtl=this.gos.get("enableRtl"),super.initialiseInvisibleScrollbar(),this.invisibleScrollbar&&this.refreshCompBottom())}refreshCompBottom(){var t;if(!this.invisibleScrollbar)return;const e=((t=this.beans.pinnedRowModel)==null?void 0:t.getPinnedBottomTotalHeight())??0;this.getGui().style.bottom=`${e}px`}onScrollVisibilityChanged(){super.onScrollVisibilityChanged(),this.setFakeHScrollSpacerWidths()}setFakeHScrollSpacerWidths(){const e=this.scrollVisibleSvc.verticalScrollShowing;let t=this.visibleCols.getDisplayedColumnsRightWidth();const s=!this.enableRtl&&e,r=this.scrollVisibleSvc.getScrollbarWidth();s&&(t+=r),pn(this.eRightSpacer,t),this.eRightSpacer.classList.toggle("ag-scroller-corner",t<=r);let i=this.visibleCols.getColsLeftWidth();this.enableRtl&&e&&(i+=r),pn(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=r)}setScrollVisible(){const e=this.scrollVisibleSvc.horizontalScrollShowing,t=this.invisibleScrollbar,s=this.gos.get("suppressHorizontalScroll"),r=e&&this.scrollVisibleSvc.getScrollbarWidth()||0,n=s?0:r===0&&t?16:r,o=()=>{this.setScrollVisibleDebounce=0,this.addOrRemoveCssClass("ag-scrollbar-invisible",t),Nd(this.getGui(),n),Nd(this.eViewport,n),Nd(this.eContainer,n),this.setDisplayed(e,{skipAriaHidden:!0})};window.clearTimeout(this.setScrollVisibleDebounce),e?this.setScrollVisibleDebounce=window.setTimeout(o,100):o()}getScrollPosition(){return lf(this.eViewport,this.enableRtl)}setScrollPosition(e){Tr(this.eViewport)||this.attemptSettingScrollPosition(e),cf(this.eViewport,e,this.enableRtl)}},sY={selector:"AG-FAKE-HORIZONTAL-SCROLL",component:hk},pk=class extends dk{constructor(){super(``,"vertical")}postConstruct(){super.postConstruct(),this.createManagedBean(new nk(this.eContainer));const{ctrlsSvc:e}=this.beans;e.register("fakeVScrollComp",this),this.addManagedEventListeners({rowContainerHeightChanged:this.onRowContainerHeightChanged.bind(this,e)})}setScrollVisible(){const{scrollVisibleSvc:e}=this.beans,t=e.verticalScrollShowing,s=this.invisibleScrollbar,r=t&&e.getScrollbarWidth()||0,i=r===0&&s?16:r;this.addOrRemoveCssClass("ag-scrollbar-invisible",s),pn(this.getGui(),i),pn(this.eViewport,i),pn(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})}onRowContainerHeightChanged(e){const s=e.getGridBodyCtrl().eBodyViewport,r=this.getScrollPosition(),i=s.scrollTop;r!=i&&this.setScrollPosition(i,!0)}getScrollPosition(){return this.eViewport.scrollTop}setScrollPosition(e,t){!t&&!Tr(this.eViewport)&&this.attemptSettingScrollPosition(e),this.eViewport.scrollTop=e}},rY={selector:"AG-FAKE-VERTICAL-SCROLL",component:pk};function gk(e){return e.cols?e.cols.treeDepth+1:-1}function fo(e){var t;return((t=e.ctrlsSvc.getHeaderRowContainerCtrl())==null?void 0:t.getRowCount())??0}function gS(e){const t=[],s=e.ctrlsSvc.getHeaderRowContainerCtrls();for(const r of s){if(!r)continue;const i=r.getGroupRowCount()||0;for(let n=0;na)&&(t[n]=l)}}}return t}function iY(e,t){const s=e.colModel.isPivotMode()?oY(e):fk(e);let r=0;const i=t.getHeaderCtrls();for(const n of i){const{column:o}=n;if(o.isAutoHeaderHeight()){const a=o.getAutoHeaderHeight();a!=null&&a>r&&(r=a)}}return Math.max(s,r)}function fS(e){const t=e.colModel.isPivotMode()?nY(e):kh(e),r=e.visibleCols.allCols.filter(i=>i.isAutoHeaderHeight()).map(i=>i.getAutoHeaderHeight()||0);return Math.max(t,...r)}function kh(e){return e.gos.get("headerHeight")??e.environment.getDefaultHeaderHeight()}function mS(e){return e.gos.get("floatingFiltersHeight")??kh(e)}function fk(e){return e.gos.get("groupHeaderHeight")??kh(e)}function nY(e){return e.gos.get("pivotHeaderHeight")??kh(e)}function oY(e){return e.gos.get("pivotGroupHeaderHeight")??fk(e)}var mk=class extends J{setComp(e,t,s){this.comp=e,this.eGui=t;const{beans:r}=this,{headerNavigation:i,touchSvc:n,ctrlsSvc:o}=r;i&&this.createManagedBean(new La(s,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedEventListeners({columnPivotModeChanged:this.onPivotModeChanged.bind(this,r),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this,r)}),this.onPivotModeChanged(r),this.setupHeaderHeight();const a=this.onHeaderContextMenu.bind(this);this.addManagedElementListeners(this.eGui,{contextmenu:a}),n==null||n.mockHeaderContextMenu(this,a),o.register("gridHeaderCtrl",this)}setupHeaderHeight(){const e=this.setHeaderHeight.bind(this);e(),this.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],e),this.addManagedEventListeners({displayedColumnsChanged:e,columnHeaderHeightChanged:e,columnGroupHeaderHeightChanged:()=>ji(this.beans,()=>e()),gridStylesChanged:e,advancedFilterEnabledChanged:e})}setHeaderHeight(){var n;const{beans:e}=this;let t=0;const s=gS(e).reduce((o,a)=>o+a,0),r=fS(e);if((n=e.filterManager)!=null&&n.hasFloatingFilters()&&(t+=mS(e)),t+=s,t+=r,this.headerHeight===t)return;this.headerHeight=t;const i=`${t+1}px`;this.comp.setHeightAndMinHeight(i),this.eventSvc.dispatchEvent({type:"headerHeightChanged"})}onPivotModeChanged(e){const t=e.colModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)}onDisplayedColumnsChanged(e){const s=e.visibleCols.allCols.some(r=>r.isSpanHeaderHeight());this.comp.addOrRemoveCssClass("ag-header-allow-overflow",s)}onTabKeyDown(e){const t=this.gos.get("enableRtl"),s=e.shiftKey,r=s!==t?"LEFT":"RIGHT",{beans:i}=this,{headerNavigation:n,focusSvc:o}=i;(n.navigateHorizontally(r,!0,e)||!s&&o.focusOverlay(!1)||Ro(i,s,!0))&&e.preventDefault()}handleKeyDown(e){let t=null;const{headerNavigation:s}=this.beans;switch(e.key){case B.LEFT:t="LEFT";case B.RIGHT:{he(t)||(t="RIGHT"),s.navigateHorizontally(t,!1,e)&&e.preventDefault();break}case B.UP:t="UP";case B.DOWN:{he(t)||(t="DOWN"),s.navigateVertically(t,null,e)&&e.preventDefault();break}default:return}}onFocusOut(e){const{relatedTarget:t}=e,{eGui:s,beans:r}=this;!t&&s.contains(Ft(r))||s.contains(t)||(r.focusSvc.focusedHeader=null)}onHeaderContextMenu(e,t,s){var o;const{menuSvc:r,ctrlsSvc:i}=this.beans;if(!e&&!s||!(r!=null&&r.isHeaderContextMenuEnabled()))return;const{target:n}=e??t;(n===this.eGui||n===((o=i.getHeaderRowContainerCtrl())==null?void 0:o.eViewport))&&r.showHeaderContextMenu(void 0,e,s)}},CS=class extends pe{constructor(e,t){super(e),this.ctrl=t}getCtrl(){return this.ctrl}},aY=class extends CS{constructor(t){super(`
`,t),this.eResize=j,this.eHeaderCompWrapper=j,this.headerCompVersion=0}postConstruct(){const t=this.getGui();((n,o)=>{o!=null&&o!=""?t.setAttribute(n,o):t.removeAttribute(n)})("col-id",this.ctrl.column.getColId());const r={setWidth:n=>t.style.width=n,addOrRemoveCssClass:(n,o)=>this.addOrRemoveCssClass(n,o),setAriaSort:n=>n?MA(t,n):DA(t),setUserCompDetails:n=>this.setUserCompDetails(n),getUserCompInstance:()=>this.headerComp};this.ctrl.setComp(r,this.getGui(),this.eResize,this.eHeaderCompWrapper,void 0);const i=this.ctrl.getSelectAllGui();i&&this.eResize.insertAdjacentElement("afterend",i)}destroy(){this.destroyHeaderComp(),super.destroy()}destroyHeaderComp(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)}setUserCompDetails(t){this.headerCompVersion++;const s=this.headerCompVersion;t.newAgStackInstance().then(r=>this.afterCompCreated(s,r))}afterCompCreated(t,s){if(t!=this.headerCompVersion||!this.isAlive()){this.destroyBean(s);return}this.destroyHeaderComp(),this.headerComp=s,this.headerCompGui=s.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())}},lY=class extends CS{constructor(t){super(`
`,t),this.eResize=j,this.eHeaderCompWrapper=j}postConstruct(){const t=this.getGui(),s=(i,n)=>n!=null?t.setAttribute(i,n):t.removeAttribute(i);t.setAttribute("col-id",this.ctrl.column.getUniqueId());const r={addOrRemoveCssClass:(i,n)=>this.addOrRemoveCssClass(i,n),setHeaderWrapperHidden:i=>{i?this.eHeaderCompWrapper.style.setProperty("display","none"):this.eHeaderCompWrapper.style.removeProperty("display")},setHeaderWrapperMaxHeight:i=>{i!=null?this.eHeaderCompWrapper.style.setProperty("max-height",`${i}px`):this.eHeaderCompWrapper.style.removeProperty("max-height"),this.eHeaderCompWrapper.classList.toggle("ag-header-cell-comp-wrapper-limited-height",i!=null)},setResizableDisplayed:i=>Oe(this.eResize,i),setWidth:i=>t.style.width=i,setAriaExpanded:i=>s("aria-expanded",i),setUserCompDetails:i=>this.setUserCompDetails(i),getUserCompInstance:()=>this.headerGroupComp};this.ctrl.setComp(r,t,this.eResize,this.eHeaderCompWrapper,void 0)}setUserCompDetails(t){t.newAgStackInstance().then(s=>this.afterHeaderCompCreated(s))}afterHeaderCompCreated(t){const s=()=>this.destroyBean(t);if(!this.isAlive()){s();return}const r=this.getGui(),i=t.getGui();this.eHeaderCompWrapper.appendChild(i),this.addDestroyFunc(s),this.headerGroupComp=t,this.ctrl.setDragSource(r)}addOrRemoveHeaderWrapperStyle(t,s){const{eHeaderCompWrapper:r}=this;s?r.style.setProperty(t,s):r.style.removeProperty(t)}},cY=class extends CS{constructor(t){super(`
`,t),this.eFloatingFilterBody=j,this.eButtonWrapper=j,this.eButtonShowMainFilter=j}postConstruct(){const t=this.getGui(),s={addOrRemoveCssClass:(r,i)=>this.addOrRemoveCssClass(r,i),addOrRemoveBodyCssClass:(r,i)=>this.eFloatingFilterBody.classList.toggle(r,i),setButtonWrapperDisplayed:r=>Oe(this.eButtonWrapper,r),setCompDetails:r=>this.setCompDetails(r),getFloatingFilterComp:()=>this.compPromise,setWidth:r=>t.style.width=r,setMenuIcon:r=>this.eButtonShowMainFilter.appendChild(r)};this.ctrl.setComp(s,t,this.eButtonShowMainFilter,this.eFloatingFilterBody,void 0)}setCompDetails(t){if(!t){this.destroyFloatingFilterComp(),this.compPromise=null;return}this.compPromise=t.newAgStackInstance(),this.compPromise.then(s=>this.afterCompCreated(s))}destroy(){this.destroyFloatingFilterComp(),super.destroy()}destroyFloatingFilterComp(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))}afterCompCreated(t){if(t){if(!this.isAlive()){this.destroyBean(t);return}this.destroyFloatingFilterComp(),this.floatingFilterComp=t,this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()}}},uY=class extends pe{constructor(t){super(),this.headerComps={},this.ctrl=t,this.setTemplate(`
`)}postConstruct(){_b(this.getGui(),this.ctrl.getAriaRowIndex());const t={setHeight:s=>this.getGui().style.height=s,setTop:s=>this.getGui().style.top=s,setHeaderCtrls:(s,r)=>this.setHeaderCtrls(s,r),setWidth:s=>this.getGui().style.width=s};this.ctrl.setComp(t,void 0)}destroy(){this.setHeaderCtrls([],!1),super.destroy()}setHeaderCtrls(t,s){if(!this.isAlive())return;const r=this.headerComps;if(this.headerComps={},t.forEach(i=>{const n=i.instanceId;let o=r[n];delete r[n],o==null&&(o=this.createHeaderComp(i),this.getGui().appendChild(o.getGui())),this.headerComps[n]=o}),Object.values(r).forEach(i=>{this.getGui().removeChild(i.getGui()),this.destroyBean(i)}),s){const i=Object.values(this.headerComps);i.sort((o,a)=>{const l=o.getCtrl().column.getLeft(),u=a.getCtrl().column.getLeft();return l-u});const n=i.map(o=>o.getGui());WA(this.getGui(),n)}}createHeaderComp(t){let s;switch(this.ctrl.type){case"group":s=new lY(t);break;case"filter":s=new cY(t);break;default:s=new aY(t);break}return this.createBean(s),s.setParentComponent(this),s}},vS=class extends J{constructor(e,t,s,r){super(),this.columnOrGroup=e,this.eCell=t,this.colsSpanning=r,this.columnOrGroup=e,this.ariaEl=t.querySelector("[role=columnheader]")||t,this.beans=s}setColsSpanning(e){this.colsSpanning=e,this.onLeftChanged()}getColumnOrGroup(){const{beans:e,colsSpanning:t}=this;return e.gos.get("enableRtl")&&t?Je(t):this.columnOrGroup}postConstruct(){const e=this.onLeftChanged.bind(this);this.addManagedListeners(this.columnOrGroup,{leftChanged:e}),this.setLeftFirstTime(),this.addManagedEventListeners({displayedColumnsWidthChanged:e}),this.addManagedPropertyListener("domLayout",e)}setLeftFirstTime(){const{gos:e,colAnimation:t}=this.beans,s=e.get("suppressColumnMoveAnimation"),r=he(this.columnOrGroup.getOldLeft());(t==null?void 0:t.isActive())&&r&&!s?this.animateInLeft():this.onLeftChanged()}animateInLeft(){const e=this.getColumnOrGroup(),t=this.modifyLeftForPrintLayout(e,e.getOldLeft()),s=this.modifyLeftForPrintLayout(e,e.getLeft());this.setLeft(t),this.actualLeft=s,this.beans.colAnimation.executeNextVMTurn(()=>{this.actualLeft===s&&this.setLeft(s)})}onLeftChanged(){const e=this.getColumnOrGroup(),t=e.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(e,t),this.setLeft(this.actualLeft)}modifyLeftForPrintLayout(e,t){const{gos:s,visibleCols:r}=this.beans;if(!sr(s,"print")||e.getPinned()==="left")return t;const n=r.getColsLeftWidth();if(e.getPinned()==="right"){const o=r.bodyWidth;return n+o+t}return n+t}setLeft(e){if(he(e)&&(this.eCell.style.left=`${e}px`),Ms(this.columnOrGroup)){const t=this.columnOrGroup.getLeafColumns();if(!t.length)return;t.length>1&&TA(this.ariaEl,t.length)}}},dY=0,Ck="headerCtrl",yS=class extends J{constructor(e,t){super(),this.column=e,this.rowCtrl=t,this.resizeToggleTimeout=0,this.resizeMultiplier=1,this.resizeFeature=null,this.lastFocusEvent=null,this.dragSource=null,this.instanceId=e.getUniqueId()+"-"+dY++}postConstruct(){const e=this.refreshTabIndex.bind(this);this.addManagedPropertyListeners(["suppressHeaderFocus"],e),this.addManagedEventListeners({overlayExclusiveChanged:e})}shouldStopEventPropagation(e){const{headerRowIndex:t,column:s}=this.beans.focusSvc.focusedHeader,r=s.getDefinition(),i=r&&r.suppressHeaderKeyboardEvent;if(!he(i))return!1;const n=this.gos.addGridCommonParams({colDef:r,column:s,headerRowIndex:t,event:e});return!!i(n)}getWrapperHasFocus(){return Ft(this.beans)===this.eGui}setGui(e,t){this.eGui=e,this.addDomData(t),t.addManagedListeners(this.beans.eventSvc,{displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this)}),t.addManagedElementListeners(this.eGui,{focus:this.onGuiFocus.bind(this)}),this.onDisplayedColumnsChanged(),this.refreshTabIndex()}onGuiFocus(){this.eventSvc.dispatchEvent({type:"headerFocused",column:this.column})}setupAutoHeight(e){const{wrapperElement:t,checkMeasuringCallback:s,compBean:r}=e,{beans:i}=this,n=p=>{if(!this.isAlive()||!r.isAlive())return;const{paddingTop:g,paddingBottom:m,borderBottomWidth:C,borderTopWidth:v}=_l(this.eGui),w=g+m+C+v,P=t.offsetHeight+w;if(p<5){const T=zt(i),F=!T||!T.contains(t),E=P==0;if(F||E){ji(i,()=>n(p+1));return}}this.setColHeaderHeight(this.column,P)};let o=!1,a;const l=()=>{const p=this.column.isAutoHeaderHeight();p&&!o&&u(),!p&&o&&h()},u=()=>{o=!0,n(0),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),a=Fi(this.beans,t,()=>n(0))},h=()=>{o=!1,a&&a(),this.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),a=void 0};l(),r.addDestroyFunc(()=>h()),r.addManagedListeners(this.column,{widthChanged:()=>o&&n(0)}),r.addManagedEventListeners({sortChanged:()=>{o&&window.setTimeout(()=>n(0))}}),s&&s(l)}onDisplayedColumnsChanged(){const{comp:e,column:t,beans:s,eGui:r}=this;!e||!t||!r||(HI(e,t,s.visibleCols),$b(r,s.visibleCols.getAriaColIndex(t)))}addResizeAndMoveKeyboardListeners(e){e.addManagedListeners(this.eGui,{keydown:this.onGuiKeyDown.bind(this),keyup:this.onGuiKeyUp.bind(this)})}refreshTabIndex(){const e=Lc(this.beans);this.eGui&&zi(this.eGui,"tabindex",e?null:"-1")}onGuiKeyDown(e){var n;const t=Ft(this.beans),s=e.key===B.LEFT||e.key===B.RIGHT;if(this.isResizing&&(e.preventDefault(),e.stopImmediatePropagation()),t!==this.eGui||!e.shiftKey&&!e.altKey||((this.isResizing||s)&&(e.preventDefault(),e.stopImmediatePropagation()),!s))return;const i=e.key===B.LEFT!==this.gos.get("enableRtl")?"left":"right";if(e.altKey){this.isResizing=!0,this.resizeMultiplier+=1;const o=this.getViewportAdjustedResizeDiff(e);this.resizeHeader(o,e.shiftKey),(n=this.resizeFeature)==null||n.toggleColumnResizing(!0)}else this.moveHeader(i)}moveHeader(e){var t;(t=this.beans.colMoves)==null||t.moveHeader(e,this.eGui,this.column,this.rowCtrl.pinned,this)}getViewportAdjustedResizeDiff(e){const t=this.getResizeDiff(e),{pinnedCols:s}=this.beans;return s?s.getHeaderResizeDiff(t,this.column):t}getResizeDiff(e){const{gos:t,column:s}=this;let r=e.key===B.LEFT!==t.get("enableRtl");const i=s.getPinned(),n=t.get("enableRtl");return i&&n!==(i==="right")&&(r=!r),(r?-1:1)*this.resizeMultiplier}onGuiKeyUp(){this.isResizing&&(this.resizeToggleTimeout&&(window.clearTimeout(this.resizeToggleTimeout),this.resizeToggleTimeout=0),this.isResizing=!1,this.resizeMultiplier=1,this.resizeToggleTimeout=window.setTimeout(()=>{var e;(e=this.resizeFeature)==null||e.toggleColumnResizing(!1)},150))}handleKeyDown(e){const t=this.getWrapperHasFocus();switch(e.key){case B.PAGE_DOWN:case B.PAGE_UP:case B.PAGE_HOME:case B.PAGE_END:t&&e.preventDefault()}}addDomData(e){const t=Ck,{eGui:s,gos:r}=this;Al(r,s,t,this),e.addDestroyFunc(()=>Al(r,s,t,null))}focus(e){const{eGui:t}=this;return t?(this.lastFocusEvent=e||null,t.focus(),!0):!1}focusThis(){this.beans.focusSvc.focusedHeader={headerRowIndex:this.rowCtrl.rowIndex,column:this.column}}removeDragSource(){var e;this.dragSource&&((e=this.beans.dragAndDrop)==null||e.removeDragSource(this.dragSource),this.dragSource=null)}handleContextMenuMouseEvent(e,t,s){const r=e??t,{menuSvc:i,gos:n}=this.beans;n.get("preventDefaultOnContextMenu")&&r.preventDefault(),i!=null&&i.isHeaderContextMenuEnabled(s)&&i.showHeaderContextMenu(s,e,t),this.dispatchColumnMouseEvent("columnHeaderContextMenu",s)}dispatchColumnMouseEvent(e,t){this.eventSvc.dispatchEvent({type:e,column:t})}setColHeaderHeight(e,t){if(!e.setAutoHeaderHeight(t))return;const{eventSvc:s}=this;e.isColumn?s.dispatchEvent({type:"columnHeaderHeightChanged",column:e,columns:[e],source:"autosizeColumnHeaderHeight"}):s.dispatchEvent({type:"columnGroupHeaderHeightChanged",columnGroup:e,source:"autosizeColumnGroupHeaderHeight"})}clearComponent(){this.removeDragSource(),this.resizeFeature=null,this.comp=null,this.eGui=null}destroy(){super.destroy(),this.column=null,this.lastFocusEvent=null,this.rowCtrl=null}},hY=class extends yS{constructor(){super(...arguments),this.refreshFunctions={},this.userHeaderClasses=new Set,this.ariaDescriptionProperties=new Map}setComp(e,t,s,r,i){this.comp=e;const{colResize:n,context:o,colHover:a}=this.beans,l=Ah(this,o,i);this.setGui(t,l),this.updateState(),this.setupWidth(l),this.setupMovingCss(l),this.setupMenuClass(l),this.setupSortableClass(l),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight({wrapperElement:r,checkMeasuringCallback:h=>this.setRefreshFunction("measuring",h),compBean:l}),this.addColumnHoverListener(l),this.setupFilterClass(l),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(l),this.setupSelectAll(l),this.setupUserComp(),this.refreshAria(),n?this.resizeFeature=l.createManagedBean(n.createResizeFeature(this.rowCtrl.pinned,this.column,s,e,this)):Oe(s,!1),a==null||a.createHoverFeature(l,[this.column],t),l.createManagedBean(new vS(this.column,t,this.beans)),l.createManagedBean(new La(t,{shouldStopEventPropagation:h=>this.shouldStopEventPropagation(h),onTabKeyDown:()=>null,handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addResizeAndMoveKeyboardListeners(l),l.addManagedPropertyListeners(["suppressMovableColumns","suppressMenuHide","suppressAggFuncInHeader"],()=>this.refresh()),l.addManagedListeners(this.column,{colDefChanged:()=>this.refresh()}),l.addManagedListeners(this.column,{headerHighlightChanged:this.onHeaderHighlightChanged.bind(this)});const u=()=>this.checkDisplayName();l.addManagedEventListeners({columnValueChanged:u,columnRowGroupChanged:u,columnPivotChanged:u,headerHeightChanged:this.onHeaderHeightChanged.bind(this)}),l.addDestroyFunc(()=>{this.refreshFunctions={},this.selectAllFeature=null,this.dragSourceElement=void 0,this.userCompDetails=null,this.userHeaderClasses.clear(),this.ariaDescriptionProperties.clear(),this.clearComponent()})}resizeHeader(e,t){var s;(s=this.beans.colResize)==null||s.resizeHeader(this.column,e,t)}setupUserComp(){const e=this.lookupUserCompDetails();e&&this.setCompDetails(e)}setCompDetails(e){this.userCompDetails=e,this.comp.setUserCompDetails(e)}lookupUserCompDetails(){const e=this.createParams(),t=this.column.getColDef();return O9(this.beans.userCompFactory,t,e)}createParams(){const{menuSvc:e,sortSvc:t,colFilter:s,gos:r}=this.beans;return r.addGridCommonParams({column:this.column,displayName:this.displayName,enableSorting:this.column.isSortable(),enableMenu:this.menuEnabled,enableFilterButton:this.openFilterEnabled&&!!(e!=null&&e.isHeaderFilterButtonEnabled(this.column)),enableFilterIcon:!!s&&(!this.openFilterEnabled||tr(this.gos)),showColumnMenu:n=>{e==null||e.showColumnMenu({column:this.column,buttonElement:n,positionBy:"button"})},showColumnMenuAfterMouseClick:n=>{e==null||e.showColumnMenu({column:this.column,mouseEvent:n,positionBy:"mouse"})},showFilter:n=>{e==null||e.showFilterMenu({column:this.column,buttonElement:n,containerType:"columnFilter",positionBy:"button"})},progressSort:n=>{t==null||t.progressSort(this.column,!!n,"uiColumnSorted")},setSort:(n,o)=>{t==null||t.setSortForColumn(this.column,n,!!o,"uiColumnSorted")},eGridHeader:this.eGui,setTooltip:(n,o)=>{r.assertModuleRegistered("Tooltip",3),this.setupTooltip(n,o)}})}setupSelectAll(e){const{selectionSvc:t}=this.beans;t&&(this.selectAllFeature=e.createManagedBean(t.createSelectAllFeature(this.column)),this.selectAllFeature.setComp(this))}getSelectAllGui(){var e;return(e=this.selectAllFeature)==null?void 0:e.getCheckboxGui()}handleKeyDown(e){var t;super.handleKeyDown(e),e.key===B.SPACE&&((t=this.selectAllFeature)==null||t.onSpaceKeyDown(e)),e.key===B.ENTER&&this.onEnterKeyDown(e),e.key===B.DOWN&&e.altKey&&this.showMenuOnKeyPress(e,!1)}onEnterKeyDown(e){var t;e.ctrlKey||e.metaKey?this.showMenuOnKeyPress(e,!0):this.sortable&&((t=this.beans.sortSvc)==null||t.progressSort(this.column,e.shiftKey,"uiColumnSorted"))}showMenuOnKeyPress(e,t){const s=this.comp.getUserCompInstance();DE(s)&&s.onMenuKeyboardShortcut(t)&&e.preventDefault()}onFocusIn(e){this.eGui.contains(e.relatedTarget)||(this.focusThis(),this.announceAriaDescription()),xm()&&this.setActiveHeader(!0)}onFocusOut(e){this.eGui.contains(e.relatedTarget)||this.setActiveHeader(!1)}setupTooltip(e,t){var s;this.tooltipFeature=(s=this.beans.tooltipSvc)==null?void 0:s.setupHeaderTooltip(this.tooltipFeature,this,e,t)}setupClassesFromColDef(){const e=()=>{const t=this.column.getColDef(),s=nS(t,this.gos,this.column,null),r=this.userHeaderClasses;this.userHeaderClasses=new Set(s),s.forEach(i=>{r.has(i)?r.delete(i):this.comp.addOrRemoveCssClass(i,!0)}),r.forEach(i=>this.comp.addOrRemoveCssClass(i,!1))};this.setRefreshFunction("headerClasses",e),e()}setDragSource(e){var t;this.dragSourceElement=e,this.removeDragSource(),!(!e||!this.draggable)&&(this.dragSource=((t=this.beans.colMoves)==null?void 0:t.setDragSourceForHeader(e,this.column,this.displayName))??null)}updateState(){const{menuSvc:e}=this.beans;this.menuEnabled=!!(e!=null&&e.isColumnMenuInHeaderEnabled(this.column)),this.openFilterEnabled=!!(e!=null&&e.isFilterMenuInHeaderEnabled(this.column)),this.sortable=this.column.isSortable(),this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()}setRefreshFunction(e,t){this.refreshFunctions[e]=t}refresh(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),Object.values(this.refreshFunctions).forEach(e=>e())}refreshHeaderComp(){const e=this.lookupUserCompDetails();if(!e)return;(this.comp.getUserCompInstance()!=null&&this.userCompDetails.componentClass==e.componentClass?this.attemptHeaderCompRefresh(e.params):!1)?this.setDragSource(this.dragSourceElement):this.setCompDetails(e)}attemptHeaderCompRefresh(e){const t=this.comp.getUserCompInstance();return!t||!t.refresh?!1:t.refresh(e)}calculateDisplayName(){return this.beans.colNames.getDisplayNameForColumn(this.column,"header",!0)}checkDisplayName(){this.displayName!==this.calculateDisplayName()&&this.refresh()}workOutDraggable(){const e=this.column.getColDef();return!!(!this.gos.get("suppressMovableColumns")&&!e.suppressMovable&&!e.lockPosition)||!!e.enableRowGroup||!!e.enablePivot}setupWidth(e){const t=()=>{const s=this.column.getActualWidth();this.comp.setWidth(`${s}px`)};e.addManagedListeners(this.column,{widthChanged:t}),t()}setupMovingCss(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-moving",this.column.isMoving())};e.addManagedListeners(this.column,{movingChanged:t}),t()}setupMenuClass(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-column-menu-visible",this.column.isMenuVisible())};e.addManagedListeners(this.column,{menuVisibleChanged:t}),t()}setupSortableClass(e){const t=()=>{this.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!this.sortable)};t(),this.setRefreshFunction("updateSortable",t),e.addManagedEventListeners({sortChanged:this.refreshAriaSort.bind(this)})}setupFilterClass(e){const t=()=>{const s=this.column.isFilterActive();this.comp.addOrRemoveCssClass("ag-header-cell-filtered",s),this.refreshAria()};e.addManagedListeners(this.column,{filterActiveChanged:t}),t()}setupWrapTextClass(){const e=()=>{const t=!!this.column.getColDef().wrapHeaderText;this.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",t)};e(),this.setRefreshFunction("wrapText",e)}onHeaderHighlightChanged(){const e=this.column.getHighlighted(),t=e===0,s=e===1;this.comp.addOrRemoveCssClass("ag-header-highlight-before",t),this.comp.addOrRemoveCssClass("ag-header-highlight-after",s)}onDisplayedColumnsChanged(){super.onDisplayedColumnsChanged(),this.isAlive()&&this.onHeaderHeightChanged()}onHeaderHeightChanged(){this.refreshSpanHeaderHeight()}refreshSpanHeaderHeight(){const{eGui:e,column:t,comp:s,beans:r}=this,i=gS(this.beans),n=i.reduce((h,p)=>h+=p,0)===0;if(s.addOrRemoveCssClass("ag-header-parent-hidden",n),!t.isSpanHeaderHeight()){e.style.removeProperty("top"),e.style.removeProperty("height"),s.addOrRemoveCssClass("ag-header-span-height",!1),s.addOrRemoveCssClass("ag-header-span-total",!1);return}const{numberOfParents:o,isSpanningTotal:a}=this.column.getColumnGroupPaddingInfo();s.addOrRemoveCssClass("ag-header-span-height",o>0);const l=fS(r);if(o===0){s.addOrRemoveCssClass("ag-header-span-total",!1),e.style.setProperty("top","0px"),e.style.setProperty("height",`${l}px`);return}s.addOrRemoveCssClass("ag-header-span-total",a);let u=0;for(let h=0;hs==="filter"?-1:r.charCodeAt(0)-s.charCodeAt(0)).map(s=>this.ariaDescriptionProperties.get(s)).join(". ");(t=this.beans.ariaAnnounce)==null||t.announceValue(e,"columnHeader")}refreshAria(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaFilterButton(),this.refreshAriaFiltered()}addColumnHoverListener(e){var t;(t=this.beans.colHover)==null||t.addHeaderColumnHoverListener(e,this.comp,this.column)}addActiveHeaderMouseListeners(e){const t=i=>this.handleMouseOverChange(i.type==="mouseenter"),s=()=>this.dispatchColumnMouseEvent("columnHeaderClicked",this.column),r=i=>this.handleContextMenuMouseEvent(i,void 0,this.column);e.addManagedListeners(this.eGui,{mouseenter:t,mouseleave:t,click:s,contextmenu:r})}handleMouseOverChange(e){this.setActiveHeader(e),this.eventSvc.dispatchEvent({type:e?"columnHeaderMouseOver":"columnHeaderMouseLeave",column:this.column})}setActiveHeader(e){this.comp.addOrRemoveCssClass("ag-header-active",e)}getAnchorElementForMenu(e){const t=this.comp.getUserCompInstance();return DE(t)?t.getAnchorElementForMenu(e):this.eGui}destroy(){this.tooltipFeature=this.destroyBean(this.tooltipFeature),super.destroy()}};function DE(e){return typeof e.getAnchorElementForMenu=="function"&&typeof e.onMenuKeyboardShortcut=="function"}var pY=0,hy=class extends J{constructor(e,t,s){super(),this.rowIndex=e,this.pinned=t,this.type=s,this.instanceId=pY++;const r=s=="group"?"ag-header-row-column-group":s=="filter"?"ag-header-row-column-filter":"ag-header-row-column";this.headerRowClass=`ag-header-row ${r}`}postConstruct(){this.isPrintLayout=sr(this.gos,"print"),this.isEnsureDomOrder=this.gos.get("ensureDomOrder")}areCellsRendered(){return this.comp?this.getHeaderCellCtrls().every(e=>e.eGui!=null):!1}setComp(e,t,s=!0){this.comp=e,t=Ah(this,this.beans.context,t),s&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners(t)}getAriaRowIndex(){return this.rowIndex+1}addEventListeners(e){const t=this.onRowHeightChanged.bind(this);e.addManagedEventListeners({columnResized:this.setWidth.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),virtualColumnsChanged:s=>this.onVirtualColumnsChanged(s.afterScroll),columnGroupHeaderHeightChanged:t,columnHeaderHeightChanged:t,gridStylesChanged:t,advancedFilterEnabledChanged:t}),e.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),e.addManagedPropertyListener("ensureDomOrder",s=>this.isEnsureDomOrder=s.currentValue),e.addManagedPropertyListeners(["headerHeight","pivotHeaderHeight","groupHeaderHeight","pivotGroupHeaderHeight","floatingFiltersHeight"],t)}getHeaderCellCtrl(e){if(this.headerCellCtrls){for(const t of this.headerCellCtrls.values())if(t.column===e)return t}}onDisplayedColumnsChanged(){this.isPrintLayout=sr(this.gos,"print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()}setWidth(){const e=this.getWidthForRow();this.comp.setWidth(`${e}px`)}getWidthForRow(){const{visibleCols:e}=this.beans;return this.isPrintLayout?this.pinned!=null?0:e.getContainerWidth("right")+e.getContainerWidth("left")+e.getContainerWidth(null):e.getContainerWidth(this.pinned)}onRowHeightChanged(){const{topOffset:e,rowHeight:t}=this.getTopAndHeight();this.comp.setTop(e+"px"),this.comp.setHeight(t+"px")}getTopAndHeight(){const{filterManager:e}=this.beans,t=[],s=gS(this.beans),r=fS(this.beans);t.push(...s),t.push(r),e!=null&&e.hasFloatingFilters()&&t.push(mS(this.beans));let i=0;for(let o=0;o{const{focusSvc:i,visibleCols:n}=this.beans;return i.isHeaderWrapperFocused(r)?n.isVisible(r.column):!1};if(e)for(const[r,i]of e)s(i)?this.headerCellCtrls.set(r,i):this.destroyBean(i);return this.getHeaderCellCtrls()}getHeaderCellCtrls(){var e;return Array.from(((e=this.headerCellCtrls)==null?void 0:e.values())??[])}recycleAndCreateHeaderCtrls(e,t){if(!this.headerCellCtrls||e.isEmptyGroup())return;const s=e.getUniqueId();let r;if(t&&(r=t.get(s),t.delete(s)),r&&r.column!=e&&(this.destroyBean(r),r=void 0),r==null)switch(this.type){case"filter":{r=this.createBean(this.beans.registry.createDynamicBean("headerFilterCellCtrl",!0,e,this));break}case"group":r=this.createBean(this.beans.registry.createDynamicBean("headerGroupCellCtrl",!0,e,this));break;default:r=this.createBean(new hY(e,this));break}this.headerCellCtrls.set(s,r)}getColumnsInViewport(){return this.isPrintLayout?this.getColumnsInViewportPrintLayout():this.getColumnsInViewportNormalLayout()}getColumnsInViewportPrintLayout(){if(this.pinned!=null)return[];let e=[];const t=this.getActualDepth(),{colViewport:s}=this.beans;return["left",null,"right"].forEach(r=>{const i=s.getHeadersToRender(r,t);e=e.concat(i)}),e}getActualDepth(){return this.type=="filter"?this.rowIndex-1:this.rowIndex}getColumnsInViewportNormalLayout(){return this.beans.colViewport.getHeadersToRender(this.pinned,this.getActualDepth())}findHeaderCellCtrl(e){if(!this.headerCellCtrls)return;const t=this.getHeaderCellCtrls();let s;return typeof e=="function"?s=t.find(e):s=t.find(r=>r.column==e),s}focusHeader(e,t){const s=this.findHeaderCellCtrl(e);return s?s.focus(t):!1}destroy(){var e;(e=this.headerCellCtrls)==null||e.forEach(t=>{this.destroyBean(t)}),this.headerCellCtrls=void 0,super.destroy()}},vk=class extends J{constructor(e){super(),this.pinned=e,this.hidden=!1,this.includeFloatingFilter=!1,this.groupsRowCtrls=[]}setComp(e,t){this.comp=e,this.eViewport=t;const{pinnedCols:s,ctrlsSvc:r,colModel:i,colMoves:n,filterManager:o}=this.beans;this.setupCenterWidth(),s==null||s.setupHeaderPinnedWidth(this),this.setupDragAndDrop(n,this.eViewport);const a=this.onDisplayedColumnsChanged.bind(this,o);this.addManagedEventListeners({gridColumnsChanged:this.onGridColumnsChanged.bind(this),displayedColumnsChanged:a,advancedFilterEnabledChanged:a});const l=`${typeof this.pinned=="string"?this.pinned:"center"}Header`;r.register(l,this),i.ready&&this.refresh()}getAllCtrls(){const e=[...this.groupsRowCtrls];return this.columnsRowCtrl&&e.push(this.columnsRowCtrl),this.filtersRowCtrl&&e.push(this.filtersRowCtrl),e}refresh(e=!1){const{focusSvc:t,colModel:s,filterManager:r}=this.beans;let i=0;const n=t.getFocusHeaderToUseAfterRefresh(),o=()=>{const h=gk(s)-1;this.groupsRowCtrls=this.destroyBeans(this.groupsRowCtrls);for(let p=0;p{const h=i++,p=!this.hidden&&(this.columnsRowCtrl==null||!e||this.columnsRowCtrl.rowIndex!==h);(p||this.hidden)&&(this.columnsRowCtrl=this.destroyBean(this.columnsRowCtrl)),p&&(this.columnsRowCtrl=this.createBean(new hy(h,this.pinned,"column")))},l=()=>{this.includeFloatingFilter=!!(r!=null&&r.hasFloatingFilters())&&!this.hidden;const h=()=>{this.filtersRowCtrl=this.destroyBean(this.filtersRowCtrl)};if(!this.includeFloatingFilter){h();return}const p=i++;if(this.filtersRowCtrl){const g=this.filtersRowCtrl.rowIndex!==p;(!e||g)&&h()}this.filtersRowCtrl||(this.filtersRowCtrl=this.createBean(new hy(p,this.pinned,"filter")))};o(),a(),l();const u=this.getAllCtrls();this.comp.setCtrls(u),this.restoreFocusOnHeader(t,n)}getHeaderCtrlForColumn(e){var t;if(Kn(e))return(t=this.columnsRowCtrl)==null?void 0:t.getHeaderCellCtrl(e);if(this.groupsRowCtrls.length!==0)for(let s=0;sthis.comp.setCenterWidth(`${e}px`),!0))}},gY=class extends J{constructor(){super(...arguments),this.beanName="menuSvc"}postConstruct(){const{enterpriseMenuFactory:e,filterMenuFactory:t}=this.beans;this.activeMenuFactory=e??t}showColumnMenu(e){this.showColumnMenuCommon(this.activeMenuFactory,e,"columnMenu")}showFilterMenu(e){const{enterpriseMenuFactory:t,filterMenuFactory:s}=this.beans,r=t&&tr(this.gos)?t:s;this.showColumnMenuCommon(r,e,e.containerType,!0)}showHeaderContextMenu(e,t,s){var r;(r=this.activeMenuFactory)==null||r.showMenuAfterContextMenuEvent(e,t,s)}hidePopupMenu(){var e,t;(e=this.beans.contextMenuSvc)==null||e.hideActiveMenu(),(t=this.activeMenuFactory)==null||t.hideActiveMenu()}isColumnMenuInHeaderEnabled(e){var s;const{suppressHeaderMenuButton:t}=e.getColDef();return!t&&!!((s=this.activeMenuFactory)!=null&&s.isMenuEnabled(e))&&(tr(this.gos)||!!this.beans.enterpriseMenuFactory)}isFilterMenuInHeaderEnabled(e){var t;return!e.getColDef().suppressHeaderFilterButton&&!!((t=this.beans.filterManager)!=null&&t.isFilterAllowed(e))}isHeaderContextMenuEnabled(e){const t=e&&Kn(e)?e.getColDef():e==null?void 0:e.getColGroupDef();return!(t!=null&&t.suppressHeaderContextMenu)&&this.gos.get("columnMenu")==="new"}isHeaderMenuButtonAlwaysShowEnabled(){return this.isSuppressMenuHide()}isHeaderMenuButtonEnabled(){const e=!this.isSuppressMenuHide();return!(ya()&&e)}isHeaderFilterButtonEnabled(e){return this.isFilterMenuInHeaderEnabled(e)&&!tr(this.gos)&&!this.isFloatingFilterButtonDisplayed(e)}isFilterMenuItemEnabled(e){var t;return!!((t=this.beans.filterManager)!=null&&t.isFilterAllowed(e))&&!tr(this.gos)&&!this.isFilterMenuInHeaderEnabled(e)&&!this.isFloatingFilterButtonDisplayed(e)}isFloatingFilterButtonEnabled(e){return!e.getColDef().suppressFloatingFilterButton}isFloatingFilterButtonDisplayed(e){return!!e.getColDef().floatingFilter&&this.isFloatingFilterButtonEnabled(e)}isSuppressMenuHide(){const e=this.gos,t=e.get("suppressMenuHide");return tr(e)?e.exists("suppressMenuHide")?t:!1:t}showColumnMenuCommon(e,t,s,r){const{positionBy:i}=t,n=t.column;if(i==="button"){const{buttonElement:o}=t;e==null||e.showMenuAfterButtonClick(n,o,s,r)}else if(i==="mouse"){const{mouseEvent:o}=t;e==null||e.showMenuAfterMouseEvent(n,o,s,r)}else if(n){const o=this.beans,a=o.ctrlsSvc;a.getScrollFeature().ensureColumnVisible(n,"auto"),ji(o,()=>{var u;const l=(u=a.getHeaderRowContainerCtrl(n.getPinned()))==null?void 0:u.getHeaderCtrlForColumn(n);l&&(e==null||e.showMenuAfterButtonClick(n,l.getAnchorElementForMenu(r),s,!0))})}}};function Rf(e,t,s){e.menuVisible!==t&&(e.menuVisible=t,e.dispatchColEvent("menuVisibleChanged",s))}var yk=class extends pe{constructor(){super()}},fY=class extends yk{init(){var t;const e=Bs((t=this.gos.get("overlayLoadingTemplate"))==null?void 0:t.trim());if(this.setTemplate(e??''),!e){const s=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=s("loadingOoo","Loading...")})}}},mY=class extends yk{init(){var t;const e=Bs((t=this.gos.get("overlayNoRowsTemplate"))==null?void 0:t.trim());if(this.setTemplate(e??''),!e){const s=this.getLocaleTextFunc();setTimeout(()=>{this.getGui().textContent=s("noRowsToShow","No Rows To Show")})}}};function wa(e,t,s){const r=We(e,t,s);if(r){const{className:n}=r;if(typeof n=="string"&&n.indexOf("ag-icon")>-1||typeof n=="object"&&n["ag-icon"])return r}const i=document.createElement("span");return i.appendChild(r),i}function We(e,t,s){var n;let r=null;e==="smallDown"?Q(262):e==="smallLeft"?Q(263):e==="smallRight"&&Q(264);const i=s&&s.getColDef().icons;if(i&&(r=i[e]),t.gos&&!r){const o=t.gos.get("icons");o&&(r=o[e])}if(r){let o;if(typeof r=="function")o=r();else if(typeof r=="string")o=r;else{Q(38,{iconName:e});return}if(typeof o=="string")return Lr(o);if(mm(o))return o;Q(133,{iconName:e});return}else{const o=document.createElement("span"),a=t.registry.getIcon(e);a||(n=t.validation)==null||n.validateIcon(e);const l=a??e;return o.setAttribute("class",`ag-icon ag-icon-${l}`),o.setAttribute("unselectable","on"),hs(o,"presentation"),o}}var CY=".ag-dnd-ghost{align-items:center;background-color:var(--ag-drag-and-drop-image-background-color);border:var(--ag-drag-and-drop-image-border);border-radius:var(--ag-border-radius);box-shadow:var(--ag-drag-and-drop-image-shadow);color:var(--ag-text-color);cursor:move;display:flex;font-weight:500;gap:var(--ag-cell-widget-spacing);height:var(--ag-header-height);overflow:hidden;padding-left:var(--ag-cell-horizontal-padding);padding-right:var(--ag-cell-horizontal-padding);text-overflow:ellipsis;transform:translateY(calc(var(--ag-spacing)*2));white-space:nowrap}",vY=class extends pe{constructor(){super(),this.dragSource=null,this.eIcon=j,this.eLabel=j,this.registerCSS(CY)}postConstruct(){const e=t=>wa(t,this.beans,null);this.dropIconMap={pinned:e("columnMovePin"),hide:e("columnMoveHide"),move:e("columnMoveMove"),left:e("columnMoveLeft"),right:e("columnMoveRight"),group:e("columnMoveGroup"),aggregate:e("columnMoveValue"),pivot:e("columnMovePivot"),notAllowed:e("dropNotAllowed")}}init(e){this.dragSource=e.dragSource,this.setTemplate(`
`)}destroy(){this.dragSource=null,super.destroy()}setIcon(e,t){const{eIcon:s,dragSource:r,dropIconMap:i,gos:n}=this;Lt(s);let o=null;e||(e=r!=null&&r.getDefaultIconName?r.getDefaultIconName():"notAllowed"),o=i[e],s.classList.toggle("ag-shake-left-to-right",t),!(o===i.hide&&n.get("suppressDragLeaveHidesColumns"))&&o&&s.appendChild(o)}setLabel(e){this.eLabel.textContent=Xt(e)}},yY=".ag-label{white-space:nowrap}:where(.ag-ltr) .ag-label{margin-right:var(--ag-spacing)}:where(.ag-rtl) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-label-align-right) .ag-label{order:1}:where(.ag-ltr) :where(.ag-label-align-right) .ag-label{margin-left:var(--ag-spacing)}:where(.ag-rtl) :where(.ag-label-align-right) .ag-label{margin-right:var(--ag-spacing)}.ag-label-align-right>*{flex:none}.ag-label-align-top{align-items:flex-start;flex-direction:column;>*{align-self:stretch}}.ag-label-ellipsis{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:where(.ag-label-align-top) .ag-label{margin-bottom:calc(var(--ag-spacing)*.5)}",wS=class extends pe{constructor(e,t,s){super(t,s),this.labelSeparator="",this.labelAlignment="left",this.disabled=!1,this.label="",this.config=e||{},this.registerCSS(yY)}postConstruct(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");const{labelSeparator:e,label:t,labelWidth:s,labelAlignment:r,disabled:i}=this.config;i!=null&&this.setDisabled(i),e!=null&&this.setLabelSeparator(e),t!=null&&this.setLabel(t),s!=null&&this.setLabelWidth(s),this.setLabelAlignment(r||this.labelAlignment),this.refreshLabel()}refreshLabel(){const{label:e,eLabel:t}=this;Lt(t),typeof e=="string"?t.innerText=e+this.labelSeparator:e&&t.appendChild(e),e===""?(Oe(t,!1),hs(t,"presentation")):(Oe(t,!0),hs(t,null))}setLabelSeparator(e){return this.labelSeparator===e?this:(this.labelSeparator=e,this.label!=null&&this.refreshLabel(),this)}getLabelId(){const e=this.eLabel;return e.id=e.id||`ag-${this.getCompId()}-label`,e.id}getLabel(){return this.label}setLabel(e){return this.label===e?this:(this.label=e,this.refreshLabel(),this)}setLabelAlignment(e){const s=this.getGui().classList;return s.toggle("ag-label-align-left",e==="left"),s.toggle("ag-label-align-right",e==="right"),s.toggle("ag-label-align-top",e==="top"),this}setLabelEllipsis(e){return this.eLabel.classList.toggle("ag-label-ellipsis",e),this}setLabelWidth(e){return this.label==null?this:(uf(this.eLabel,e),this)}setDisabled(e){e=!!e;const t=this.getGui();return Gi(t,e),t.classList.toggle("ag-disabled",e),this.disabled=e,this}isDisabled(){return!!this.disabled}},wk=class extends wS{constructor(e,t,s,r){super(e,t,s),this.className=r}postConstruct(){super.postConstruct();const{width:e,value:t,onValueChange:s}=this.config;e!=null&&this.setWidth(e),t!=null&&this.setValue(t),s!=null&&this.onValueChange(s),this.className&&this.addCssClass(this.className),this.refreshAriaLabelledBy()}setLabel(e){return super.setLabel(e),this.refreshAriaLabelledBy(),this}refreshAriaLabelledBy(){const e=this.getAriaElement(),t=this.getLabelId(),s=this.getLabel();s==null||s==""||h7(e)!==null?Sa(e,""):Sa(e,t??"")}setAriaLabel(e){return ps(this.getAriaElement(),e),this.refreshAriaLabelledBy(),this}onValueChange(e){return this.addManagedListeners(this,{fieldValueChanged:()=>e(this.getValue())}),this}getWidth(){return this.getGui().clientWidth}setWidth(e){return pn(this.getGui(),e),this}getPreviousValue(){return this.previousValue}getValue(){return this.value}setValue(e,t){return this.value===e?this:(this.previousValue=this.value,this.value=e,t||this.dispatchLocalEvent({type:"fieldValueChanged"}),this)}},fa=class extends wk{constructor(e,t,s="text",r="input"){super(e,(e==null?void 0:e.template)??`
`,[],t),this.inputType=s,this.displayFieldTag=r,this.eLabel=j,this.eWrapper=j,this.eInput=j}postConstruct(){super.postConstruct(),this.setInputType();const{eLabel:e,eWrapper:t,eInput:s,className:r}=this;e.classList.add(`${r}-label`),t.classList.add(`${r}-input-wrapper`),s.classList.add(`${r}-input`),this.addCssClass("ag-input-field"),s.id=s.id||`ag-${this.getCompId()}-input`;const{inputName:i,inputWidth:n}=this.config;i!=null&&this.setInputName(i),n!=null&&this.setInputWidth(n),this.addInputListeners(),this.activateTabIndex([s])}addInputListeners(){this.addManagedElementListeners(this.eInput,{input:e=>this.setValue(e.target.value)})}setInputType(){this.displayFieldTag==="input"&&this.eInput.setAttribute("type",this.inputType)}getInputElement(){return this.eInput}setInputWidth(e){return uf(this.eWrapper,e),this}setInputName(e){return this.getInputElement().setAttribute("name",e),this}getFocusableElement(){return this.eInput}setMaxLength(e){const t=this.eInput;return t.maxLength=e,this}setInputPlaceholder(e){return zi(this.eInput,"placeholder",e),this}setInputAriaLabel(e){return ps(this.eInput,e),this.refreshAriaLabelledBy(),this}setDisabled(e){return Gi(this.eInput,e),super.setDisabled(e)}setAutoComplete(e){if(e===!0)zi(this.eInput,"autocomplete",null);else{const t=typeof e=="string"?e:"off";zi(this.eInput,"autocomplete",t)}return this}},$l=class extends fa{constructor(e,t="ag-checkbox",s="checkbox"){super(e,t,s),this.labelAlignment="right",this.selected=!1,this.readOnly=!1,this.passive=!1}postConstruct(){super.postConstruct();const{readOnly:e,passive:t}=this.config;typeof e=="boolean"&&this.setReadOnly(e),typeof t=="boolean"&&this.setPassive(t)}addInputListeners(){this.addManagedElementListeners(this.eInput,{click:this.onCheckboxClick.bind(this)}),this.addManagedElementListeners(this.eLabel,{click:this.toggle.bind(this)})}getNextValue(){return this.selected===void 0?!0:!this.selected}setPassive(e){this.passive=e}isReadOnly(){return this.readOnly}setReadOnly(e){this.eWrapper.classList.toggle("ag-disabled",e),this.eInput.disabled=e,this.readOnly=e}setDisabled(e){return this.eWrapper.classList.toggle("ag-disabled",e),super.setDisabled(e)}toggle(){if(this.eInput.disabled)return;const e=this.isSelected(),t=this.getNextValue();this.passive?this.dispatchChange(t,e):this.setValue(t)}getValue(){return this.isSelected()}setValue(e,t){return this.refreshSelectedClass(e),this.setSelected(e,t),this}setName(e){const t=this.getInputElement();return t.name=e,this}isSelected(){return this.selected}setSelected(e,t){if(this.isSelected()===e)return;this.previousValue=this.isSelected(),e=this.selected=typeof e=="boolean"?e:void 0;const s=this.eInput;s.checked=e,s.indeterminate=e===void 0,t||this.dispatchChange(this.selected,this.previousValue)}dispatchChange(e,t,s){this.dispatchLocalEvent({type:"fieldValueChanged",selected:e,previousValue:t,event:s});const r=this.getInputElement();this.eventSvc.dispatchEvent({type:"checkboxChanged",id:r.id,name:r.name,selected:e,previousValue:t})}onCheckboxClick(e){if(this.passive||this.eInput.disabled)return;const t=this.isSelected(),s=this.selected=e.target.checked;this.refreshSelectedClass(s),this.dispatchChange(s,t,e)}refreshSelectedClass(e){const t=this.eWrapper.classList;t.toggle("ag-checked",e===!0),t.toggle("ag-indeterminate",e==null)}},bn={selector:"AG-CHECKBOX",component:$l},wY=".ag-checkbox-cell{height:100%}",bY=class extends pe{constructor(){super(` `,[bn]),this.eCheckbox=j,this.registerCSS(wY)}init(e){this.refresh(e);const{eCheckbox:t,beans:s}=this,r=t.getInputElement();r.setAttribute("tabindex","-1"),xA(r,"polite"),this.addManagedListeners(r,{click:i=>{if(Ds(i),t.isDisabled())return;const n=t.getValue();this.onCheckboxChanged(n)},dblclick:i=>{Ds(i)}}),this.addManagedElementListeners(e.eGridCell,{keydown:i=>{if(i.key===B.SPACE&&!t.isDisabled()){e.eGridCell===Ft(s)&&t.toggle();const n=t.getValue();this.onCheckboxChanged(n),i.preventDefault()}}})}refresh(e){return this.params=e,this.updateCheckbox(e),!0}updateCheckbox(e){let t,s=!0;const{value:r,column:i,node:n}=e;if(n.group&&i)if(typeof r=="boolean")t=r;else{const p=i.getColId();p.startsWith(Fa)?t=r==null||r===""?void 0:r==="true":n.aggData&&n.aggData[p]!==void 0?t=r??void 0:s=!1}else t=r??void 0;const{eCheckbox:o}=this;if(!s){o.setDisplayed(!1);return}o.setValue(t);const a=e.disabled??!(i!=null&&i.isCellEditable(n));o.setDisabled(a);const l=this.getLocaleTextFunc(),u=jb(l,t),h=a?u:`${l("ariaToggleCellValue","Press SPACE to toggle cell value")} (${u})`;o.setInputAriaLabel(h)}onCheckboxChanged(e){const{eventSvc:t,params:s}=this,{column:r,node:i,value:n}=s,o={column:r,colDef:r.getColDef(),data:i.data,node:i,rowIndex:i.rowIndex,rowPinned:i.rowPinned,value:n};t.dispatchEvent({type:"cellEditingStarted",...o});const a=i.setDataValue(r,e,"edit");t.dispatchEvent({type:"cellEditingStopped",...o,oldValue:n,newValue:e,valueChanged:a}),a||this.updateCheckbox(s)}},SY="ROOT_NODE_ID",bk=class extends J{constructor(){super(...arguments),this.nextId=0,this.allNodesMap={},this.rootNode=null}get treeData(){return!1}getRowNode(e){return this.allNodesMap[e]}extractRowData(){var e,t;return(t=(e=this.rootNode)==null?void 0:e.allLeafChildren)==null?void 0:t.map(s=>s.data)}activate(e){this.rootNode=e,e.group=!0,e.level=-1,e.id=SY,e.allLeafChildren=[],e.childrenAfterGroup=[],e.childrenAfterSort=[],e.childrenAfterAggFilter=[],e.childrenAfterFilter=[],this.updateRootSiblingArrays(e)}deactivate(){this.rootNode&&(this.allNodesMap={},this.rootNode=null)}destroy(){super.destroy(),this.allNodesMap={},this.rootNode=null}setNewRowData(e){const t=this.rootNode;t&&(this.dispatchRowDataUpdateStartedEvent(e),t.childrenAfterFilter=null,t.childrenAfterGroup=null,t.childrenAfterAggFilter=null,t.childrenAfterSort=null,t.childrenMapped=null,t.updateHasChildren(),this.allNodesMap={},this.nextId=0,this.loadNewRowData(e),this.updateRootSiblingArrays(t))}updateRootSiblingArrays(e){const t=e.sibling;t&&(t.childrenAfterFilter=e.childrenAfterFilter,t.childrenAfterGroup=e.childrenAfterGroup,t.childrenAfterAggFilter=e.childrenAfterAggFilter,t.childrenAfterSort=e.childrenAfterSort,t.childrenMapped=e.childrenMapped,t.allLeafChildren=e.allLeafChildren)}loadNewRowData(e){this.rootNode.allLeafChildren=(e==null?void 0:e.map((t,s)=>this.createRowNode(t,s)))??[]}setImmutableRowData(e,t){const s=this.createTransactionForRowData(t),r=this.updateRowData(s,e.changedRowNodes);let i=!1;this.gos.get("suppressMaintainUnsortedOrder")||(i=this.updateRowOrderFromRowData(t));const{rowNodeTransaction:n,rowsInserted:o}=r,{add:a,remove:l,update:u}=n;(o||i||a.length||l.length||u.length)&&(e.step="group",e.rowDataUpdated=!0,e.rowNodeTransactions=[n],e.rowNodesOrderChanged=o||i)}updateRowData(e,t){this.dispatchRowDataUpdateStartedEvent(e.add);const s={changedRowNodes:t,rowNodeTransaction:{remove:[],update:[],add:[]},rowsInserted:!1},r=[],i=xo(this.gos);return this.executeRemove(i,e,s,r),this.executeUpdate(i,e,s,r),this.executeAdd(e,s),this.deselectNodes(r),s}createTransactionForRowData(e){const t=xo(this.gos),s={...this.allNodesMap},r=[],i=[],n=[];he(e)&&e.forEach(o=>{const a=t({data:o,level:0}),l=s[a];l?(l.data!==o&&i.push(o),s[a]=void 0):n.push(o)});for(const o of Object.values(s))o&&r.push(o.data);return{remove:r,update:i,add:n}}updateRowOrderFromRowData(e){var o;const t=(o=this.rootNode)==null?void 0:o.allLeafChildren,s=(t==null?void 0:t.length)??0,r=new Map;let i=-1,n=-1;for(let a=0;a0&&this.gos.get("treeData")&&this.gos.get("getDataPath")))for(let p=0;p{const g=this.lookupRowNode(e,p);g&&(g.isSelected()&&i.push(g),g.clearRowTopAndRowIndex(),o[g.id]=!0,delete this.allNodesMap[g.id],r.remove.push(g),s.remove(g))});const a=this.rootNode;a.allLeafChildren=((u=a.allLeafChildren)==null?void 0:u.filter(p=>!o[p.id]))??null,(h=a.allLeafChildren)==null||h.forEach((p,g)=>{p.sourceRowIndex=g});const l=a.sibling;l&&(l.allLeafChildren=a.allLeafChildren)}executeUpdate(e,t,{changedRowNodes:s,rowNodeTransaction:r},i){const{update:n}=t;n!=null&&n.length&&n.forEach(o=>{const a=this.lookupRowNode(e,o);a&&(a.updateData(o),!a.selectable&&a.isSelected()&&i.push(a),r.update.push(a),s.update(a))})}dispatchRowDataUpdateStartedEvent(e){this.eventSvc.dispatchEvent({type:"rowDataUpdateStarted",firstRowData:e!=null&&e.length?e[0]:null})}deselectNodes(e){var i;const t="rowDataChanged",s=this.beans.selectionSvc,r=e.length>0;r&&(s==null||s.setNodesSelected({newValue:!1,nodes:e,suppressFinishActions:!0,source:t})),(i=s==null?void 0:s.updateGroupsFromChildrenSelections)==null||i.call(s,t),r&&this.eventSvc.dispatchEvent({type:"selectionChanged",source:t})}sanitizeAddIndex(e){var s;const t=((s=this.rootNode.allLeafChildren)==null?void 0:s.length)??0;return e<0||e>=t||Number.isNaN(e)?t:Math.ceil(e)}createRowNode(e,t){const s=new ci(this.beans);return s.parent=this.rootNode,s.level=0,s.group=!1,s.expanded=!1,s.sourceRowIndex=t,s.setDataAndId(e,String(this.nextId)),this.allNodesMap[s.id]&&Q(2,{nodeId:s.id}),this.allNodesMap[s.id]=s,this.nextId++,s}lookupRowNode(e,t){var r,i;let s;if(e){const n=e({data:t,level:0});if(s=this.allNodesMap[n],!s)return ft(4,{id:n}),null}else if(s=(i=(r=this.rootNode)==null?void 0:r.allLeafChildren)==null?void 0:i.find(n=>n.data===t),!s)return ft(5,{data:t}),null;return s||null}},Gn=(e=>(e.Applied="Applied",e.StoreNotFound="StoreNotFound",e.StoreLoading="StoreLoading",e.StoreWaitingToLoad="StoreWaitingToLoad",e.StoreLoadingFailed="StoreLoadingFailed",e.StoreWrongType="StoreWrongType",e.Cancelled="Cancelled",e.StoreNotStarted="StoreNotStarted",e))(Gn||{}),xY=class extends pe{constructor(){super(` `,[bn]),this.eCheckbox=j}postConstruct(){this.eCheckbox.setPassive(!0)}getCheckboxId(){return this.eCheckbox.getInputElement().id}onDataChanged(){this.onSelectionChanged()}onSelectableChanged(){this.showOrHideSelect()}onSelectionChanged(){const e=this.getLocaleTextFunc(),{rowNode:t,eCheckbox:s}=this,r=t.isSelected(),i=jb(e,r),[n,o]=t.selectable?["ariaRowToggleSelection","Press Space to toggle row selection"]:["ariaRowSelectionDisabled","Row Selection is disabled for this row"],a=e(n,o);s.setValue(r,!0),s.setInputAriaLabel(`${a} (${i})`)}init(e){if(this.rowNode=e.rowNode,this.column=e.column,this.overrides=e.overrides,this.onSelectionChanged(),this.addManagedListeners(this.eCheckbox.getInputElement(),{dblclick:Ds,click:r=>{var i;Ds(r),(i=this.beans.selectionSvc)==null||i.handleSelectionEvent(r,this.rowNode,"checkboxSelected")}}),this.addManagedListeners(this.rowNode,{rowSelected:this.onSelectionChanged.bind(this),dataChanged:this.onDataChanged.bind(this),selectableChanged:this.onSelectableChanged.bind(this)}),this.addManagedPropertyListener("rowSelection",({currentValue:r,previousValue:i})=>{const n=typeof r=="object"?ay(r):void 0,o=typeof i=="object"?ay(i):void 0;n!==o&&this.onSelectableChanged()}),vw(this.gos)||typeof this.getIsVisible()=="function"){const r=this.showOrHideSelect.bind(this);this.addManagedEventListeners({displayedColumnsChanged:r}),this.addManagedListeners(this.rowNode,{dataChanged:r,cellChanged:r}),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")}showOrHideSelect(){const{column:e,rowNode:t,overrides:s,gos:r}=this;let i=t.selectable;const n=this.getIsVisible();if(i)if(typeof n=="function"){const l=s==null?void 0:s.callbackParams;if(!e)i=n({...l,node:t,data:t.data});else{const u=e.createColumnFunctionCallbackParams(t);i=n({...l,...u})}}else i=n??!1;const o=r.get("rowSelection");if(o&&typeof o!="string"?!ay(o):e==null?void 0:e.getColDef().showDisabledCheckboxes){this.eCheckbox.setDisabled(!i),this.setVisible(!0),this.setDisplayed(!0);return}if(s!=null&&s.removeHidden){this.setDisplayed(i);return}this.setVisible(i)}getIsVisible(){var s,r;const e=this.overrides;if(e)return e.isVisible;const t=this.gos.get("rowSelection");return t&&typeof t!="string"?wl(t):(r=(s=this.column)==null?void 0:s.getColDef())==null?void 0:r.checkboxSelection}},RY=class{constructor(e){this.rootId=null,this.endId=null,this.cachedRange=[],this.rowModel=e}reset(){this.rootId=null,this.endId=null,this.cachedRange.length=0}setRoot(e){this.rootId=e.id,this.endId=null,this.cachedRange.length=0}setEndRange(e){this.endId=e.id,this.cachedRange.length=0}getRange(){if(this.cachedRange.length===0){const e=this.getRoot(),t=this.getEnd();if(e==null||t==null)return this.cachedRange;this.cachedRange=this.rowModel.getNodesInRangeForSelection(e,t)??[]}return this.cachedRange}isInRange(e){return this.rootId===null?!1:this.getRange().some(t=>t.id===e.id)}getRoot(){return this.rootId?this.rowModel.getRowNode(this.rootId)??null:null}getEnd(){return this.endId?this.rowModel.getRowNode(this.endId)??null:null}truncate(e){const t=this.getRange();if(t.length===0)return{keep:[],discard:[]};const s=t[0].id===this.rootId,r=t.findIndex(i=>i.id===e.id);if(r>-1){const i=t.slice(0,r),n=t.slice(r+1);return this.setEndRange(e),s?{keep:i,discard:n}:{keep:n,discard:i}}else return{keep:t,discard:[]}}extend(e,t=!1){const s=this.getRoot();if(s==null){const i=this.getRange().slice();return t&&e.depthFirstSearch(n=>!n.group&&i.push(n)),i.push(e),this.setRoot(e),{keep:i,discard:[]}}const r=this.rowModel.getNodesInRangeForSelection(s,e);if(!r)return this.setRoot(e),{keep:[e],discard:[]};if(r.find(i=>i.id===this.endId))return this.setEndRange(e),{keep:this.getRange(),discard:[]};{const i=this.getRange().slice();return this.setEndRange(e),{keep:this.getRange(),discard:i}}}},PY=class extends J{constructor(e){super(),this.column=e,this.cbSelectAllVisible=!1,this.processingEventFromCheckbox=!1}onSpaceKeyDown(e){const t=this.cbSelectAll;t.isDisplayed()&&!t.getGui().contains(Ft(this.beans))&&(e.preventDefault(),t.setValue(!t.getValue()))}getCheckboxGui(){return this.cbSelectAll.getGui()}setComp(e){this.headerCellCtrl=e;const t=this.createManagedBean(new $l);this.cbSelectAll=t,t.addCssClass("ag-header-select-all"),hs(t.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedEventListeners({newColumnsLoaded:this.showOrHideSelectAll.bind(this),displayedColumnsChanged:this.onDisplayedColumnsChanged.bind(this),selectionChanged:this.onSelectionChanged.bind(this),paginationChanged:this.onSelectionChanged.bind(this),modelUpdated:this.onModelChanged.bind(this)}),this.addManagedListeners(t,{fieldValueChanged:this.onCbSelectAll.bind(this)}),t.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()}onDisplayedColumnsChanged(){this.isAlive()&&this.showOrHideSelectAll()}showOrHideSelectAll(){const e=this.isCheckboxSelection();this.cbSelectAllVisible=e,this.cbSelectAll.setDisplayed(e),e&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()}onModelChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}onSelectionChanged(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()}updateStateOfCheckbox(){if(this.processingEventFromCheckbox)return;this.processingEventFromCheckbox=!0;const e=this.getSelectAllMode(),t=this.beans.selectionSvc,s=this.cbSelectAll,r=t.getSelectAllState(e);s.setValue(r);const i=t.hasNodesToSelect(e);s.setDisabled(!i),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}refreshSelectAllLabel(){const e=this.getLocaleTextFunc(),{headerCellCtrl:t,cbSelectAll:s,cbSelectAllVisible:r}=this,n=s.getValue()?e("ariaChecked","checked"):e("ariaUnchecked","unchecked"),o=e("ariaRowSelectAll","Press Space to toggle all rows selection");t.setAriaDescriptionProperty("selectAll",r?`${o} (${n})`:null),s.setInputAriaLabel(e("ariaHeaderSelection","Column with Header Selection")),t.announceAriaDescription()}checkSelectionType(e){return Pa(this.gos)?!0:(Q(128,{feature:e}),!1)}checkRightRowModelType(e){const{gos:t,rowModel:s}=this.beans;return es(t)||rr(t)?!0:(Q(129,{feature:e,rowModel:s.getType()}),!1)}onCbSelectAll(){if(this.processingEventFromCheckbox||!this.cbSelectAllVisible)return;const e=this.cbSelectAll.getValue(),t=this.getSelectAllMode();let s="uiSelectAll";t==="currentPage"?s="uiSelectAllCurrentPage":t==="filtered"&&(s="uiSelectAllFiltered");const r={source:s,selectAll:t},i=this.beans.selectionSvc;e?i.selectAllRowNodes(r):i.deselectAllRowNodes(r)}isCheckboxSelection(){var u;const{column:e,gos:t,beans:s}=this,r=t.get("rowSelection"),i=e.getColDef(),{headerCheckboxSelection:n}=i;let o=!1;const a=typeof r=="object";if(a){const h=$n(e),p=Sm(e);(pf(r)==="autoGroupColumn"&&p||h&&((u=s.selectionColSvc)!=null&&u.isSelectionColumnEnabled()))&&(o=kg(r))}else typeof n=="function"?o=n(t.addGridCommonParams({column:e,colDef:i})):o=!!n;const l=a?"headerCheckbox":"headerCheckboxSelection";return o&&this.checkRightRowModelType(l)&&this.checkSelectionType(l)}getSelectAllMode(){const e=iI(this.gos,!1);if(e)return e;const{headerCheckboxSelectionCurrentPageOnly:t,headerCheckboxSelectionFilteredOnly:s}=this.column.getColDef();return t?"currentPage":s?"filtered":"all"}},Sk=class extends J{postConstruct(){const{gos:e,beans:t}=this;this.selectionCtx=new RY(t.rowModel),this.addManagedPropertyListeners(["isRowSelectable","rowSelection"],()=>{const s=vw(e);s!==this.isRowSelectable&&(this.isRowSelectable=s,this.updateSelectable())}),this.isRowSelectable=vw(e)}destroy(){super.destroy(),this.selectionCtx.reset()}createCheckboxSelectionComponent(){return new xY}createSelectAllFeature(e){return new PY(e)}isMultiSelect(){return Pa(this.gos)}onRowCtrlSelected(e,t,s){const r=!!e.rowNode.isSelected();e.forEachGui(s,i=>{i.rowComp.addOrRemoveCssClass("ag-row-selected",r);const n=i.element;lh(n,r),n.contains(Ft(this.beans))&&t(i)})}announceAriaRowSelection(e){var i;if(this.isRowSelectionBlocked(e))return;const t=e.isSelected();if(t&&!SE(this.gos))return;const r=this.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect",`Press SPACE to ${t?"deselect":"select"} this row`);(i=this.beans.ariaAnnounce)==null||i.announceValue(r,"rowSelection")}dispatchSelectionChanged(e){this.eventSvc.dispatchEvent({type:"selectionChanged",source:e})}isRowSelectionBlocked(e){return!e.selectable||!!e.rowPinned||!Si(this.gos)}updateRowSelectable(e,t){var r;const s=((r=this.isRowSelectable)==null?void 0:r.call(this,e))??!0;return this.setRowSelectable(e,s,t),s}setRowSelectable(e,t,s){if(e.selectable!==t){if(e.selectable=t,e.dispatchRowEvent("selectableChanged"),s)return;if(Il(this.gos)){const i=this.calculateSelectedFromChildren(e);this.setNodesSelected({nodes:[e],newValue:i??!1,source:"selectableChanged"});return}e.isSelected()&&!e.selectable&&this.setNodesSelected({nodes:[e],newValue:!1,source:"selectableChanged"})}}calculateSelectedFromChildren(e){var r;let t=!1,s=!1;if(!((r=e.childrenAfterGroup)!=null&&r.length))return e.selectable?e.__selected:null;for(let i=0;i{pS(s)&&s.key&&!e.test(s.key)&&s.preventDefault()};this.addManagedListeners(this.eInput,{keydown:t,paste:s=>{var i;const r=(i=s.clipboardData)==null?void 0:i.getData("text");r&&r.split("").some(n=>!e.test(n))&&s.preventDefault()}})}},Xi={selector:"AG-INPUT-TEXT-FIELD",component:Sn},MY=class extends fa{constructor(e){super(e,"ag-text-area",null,"textarea")}setValue(e,t){const s=super.setValue(e,t);return this.eInput.value=e,s}setCols(e){return this.eInput.cols=e,this}setRows(e){return this.eInput.rows=e,this}},DY={selector:"AG-INPUT-TEXT-AREA",component:MY},Em=class extends Sn{constructor(e){super(e,"ag-number-field","number")}postConstruct(){super.postConstruct();const e=this.eInput;this.addManagedListeners(e,{blur:()=>{const n=parseFloat(e.value),o=isNaN(n)?"":this.normalizeValue(n.toString());this.value!==o&&this.setValue(o)},wheel:this.onWheel.bind(this)}),e.step="any";const{precision:t,min:s,max:r,step:i}=this.config;typeof t=="number"&&this.setPrecision(t),typeof s=="number"&&this.setMin(s),typeof r=="number"&&this.setMax(r),typeof i=="number"&&this.setStep(i)}onWheel(e){Ft(this.beans)===this.eInput&&e.preventDefault()}normalizeValue(e){if(e==="")return"";this.precision!=null&&(e=this.adjustPrecision(e));const t=parseFloat(e),{min:s,max:r}=this;return s!=null&&tr&&(e=r.toString()),e}adjustPrecision(e,t){const s=this.precision;if(s==null)return e;if(t){const i=parseFloat(e).toFixed(s);return parseFloat(i).toString()}const r=String(e).split(".");if(r.length>1){if(r[1].length<=s)return e;if(s>0)return`${r[0]}.${r[1].slice(0,s)}`}return r[0]}setMin(e){return this.min===e?this:(this.min=e,zi(this.eInput,"min",e),this)}setMax(e){return this.max===e?this:(this.max=e,zi(this.eInput,"max",e),this)}setPrecision(e){return this.precision=e,this}setStep(e){return this.step===e?this:(this.step=e,zi(this.eInput,"step",e),this)}setValue(e,t){return this.setValueOrInputValue(s=>super.setValue(s,t),()=>this,e)}setStartValue(e){return this.setValueOrInputValue(t=>super.setValue(t,!0),t=>{this.eInput.value=t},e)}setValueOrInputValue(e,t,s){if(he(s)){let r=this.isScientificNotation(s);if(r&&this.eInput.validity.valid)return e(s);if(!r){s=this.adjustPrecision(s);const i=this.normalizeValue(s);r=s!=i}if(r)return t(s)}return e(s)}getValue(){const e=this.eInput;if(!e.validity.valid)return;const t=e.value;return this.isScientificNotation(t)?this.adjustPrecision(t,!0):super.getValue()}isScientificNotation(e){return typeof e=="string"&&e.includes("e")}},Tm={selector:"AG-INPUT-NUMBER-FIELD",component:Em};function zd(e,t){return e.toString().padStart(t,"0")}function oi(e,t=!0,s="-"){if(!e)return null;let r=[e.getFullYear(),e.getMonth()+1,e.getDate()].map(i=>zd(i,2)).join(s);return t&&(r+=" "+[e.getHours(),e.getMinutes(),e.getSeconds()].map(i=>zd(i,2)).join(":")),r}var py=e=>{if(e>3&&e<21)return"th";switch(e%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function Wd(e,t="YYYY-MM-DD"){const s=zd(e.getFullYear(),4),r=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],n={YYYY:()=>s.slice(s.length-4,s.length),YY:()=>s.slice(s.length-2,s.length),Y:()=>`${e.getFullYear()}`,MMMM:()=>r[e.getMonth()],MMM:()=>r[e.getMonth()].slice(0,3),MM:()=>zd(e.getMonth()+1,2),Mo:()=>`${e.getMonth()+1}${py(e.getMonth()+1)}`,M:()=>`${e.getMonth()+1}`,Do:()=>`${e.getDate()}${py(e.getDate())}`,DD:()=>zd(e.getDate(),2),D:()=>`${e.getDate()}`,dddd:()=>i[e.getDay()],ddd:()=>i[e.getDay()].slice(0,3),dd:()=>i[e.getDay()].slice(0,2),do:()=>`${e.getDay()}${py(e.getDay())}`,d:()=>`${e.getDay()}`},o=new RegExp(Object.keys(n).join("|"),"g");return t.replace(o,a=>a in n?n[a]():a)}function Er(e){if(!e)return null;const[t,s]=e.split(" ");if(!t)return null;const r=t.split("-").map(p=>parseInt(p,10));if(r.filter(p=>!isNaN(p)).length!==3)return null;const[i,n,o]=r,a=new Date(i,n-1,o);if(a.getFullYear()!==i||a.getMonth()!==n-1||a.getDate()!==o)return null;if(!s||s==="00:00:00")return a;const[l,u,h]=s.split(":").map(p=>parseInt(p,10));return l>=0&&l<24&&a.setHours(l),u>=0&&u<60&&a.setMinutes(u),h>=0&&h<60&&a.setSeconds(h),a}var xk=class extends Sn{constructor(e){super(e,"ag-date-field","date")}postConstruct(){super.postConstruct();const e=Wl();this.addManagedListeners(this.eInput,{wheel:this.onWheel.bind(this),mousedown:()=>{this.isDisabled()||e||this.eInput.focus()}}),this.eInput.step="any"}onWheel(e){Ft(this.beans)===this.eInput&&e.preventDefault()}setMin(e){const t=e instanceof Date?oi(e??null,!1)??void 0:e;return this.min===t?this:(this.min=t,zi(this.eInput,"min",t),this)}setMax(e){const t=e instanceof Date?oi(e??null,!1)??void 0:e;return this.max===t?this:(this.max=t,zi(this.eInput,"max",t),this)}setStep(e){return this.step===e?this:(this.step=e,zi(this.eInput,"step",e),this)}getDate(){if(this.eInput.validity.valid)return Er(this.getValue())??void 0}setDate(e,t){this.setValue(oi(e??null,!1),t)}},Rk={selector:"AG-INPUT-DATE-FIELD",component:xk},AY=1e3,IY=1e3,AE=100,IE,hg=!1,kY=class extends J{constructor(e,t){super(),this.tooltipCtrl=e,this.getTooltipValue=t,this.interactionEnabled=!1,this.isInteractingWithTooltip=!1,this.state=0,this.tooltipInstanceCount=0,this.tooltipMouseTrack=!1}wireBeans(e){this.popupSvc=e.popupSvc,this.userCompFactory=e.userCompFactory}postConstruct(){this.gos.get("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipMouseTrack=this.gos.get("tooltipMouseTrack");const e=this.tooltipCtrl.getGui();this.tooltipTrigger===0&&this.addManagedListeners(e,{mouseenter:this.onMouseEnter.bind(this),mouseleave:this.onMouseLeave.bind(this)}),this.tooltipTrigger===1&&this.addManagedListeners(e,{focusin:this.onFocusIn.bind(this),focusout:this.onFocusOut.bind(this)}),this.addManagedListeners(e,{mousemove:this.onMouseMove.bind(this)}),this.interactionEnabled||this.addManagedListeners(e,{mousedown:this.onMouseDown.bind(this),keydown:this.onKeyDown.bind(this)})}getGridOptionsTooltipDelay(e){const t=this.gos.get(e);return Math.max(200,t)}getTooltipDelay(e){var t,s,r,i;return e==="show"?((s=(t=this.tooltipCtrl).getTooltipShowDelayOverride)==null?void 0:s.call(t))??this.getGridOptionsTooltipDelay("tooltipShowDelay"):((i=(r=this.tooltipCtrl).getTooltipHideDelayOverride)==null?void 0:i.call(r))??this.getGridOptionsTooltipDelay("tooltipHideDelay")}destroy(){this.setToDoNothing(),super.destroy()}getTooltipTrigger(){const e=this.gos.get("tooltipTrigger");return!e||e==="hover"?0:1}onMouseEnter(e){this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),!ya()&&(hg?this.showTooltipTimeoutId=window.setTimeout(()=>{this.prepareToShowTooltip(e)},AE):this.prepareToShowTooltip(e))}onMouseMove(e){this.lastMouseEvent&&(this.lastMouseEvent=e),this.tooltipMouseTrack&&this.state===2&&this.tooltipComp&&this.positionTooltip()}onMouseDown(){this.setToDoNothing()}onMouseLeave(){this.interactionEnabled?this.lockService():this.setToDoNothing()}onFocusIn(){this.prepareToShowTooltip()}onFocusOut(e){var i;const t=e.relatedTarget,s=this.tooltipCtrl.getGui(),r=(i=this.tooltipComp)==null?void 0:i.getGui();this.isInteractingWithTooltip||s.contains(t)||this.interactionEnabled&&(r!=null&&r.contains(t))||this.setToDoNothing()}onKeyDown(){this.isInteractingWithTooltip&&(this.isInteractingWithTooltip=!1),this.setToDoNothing()}prepareToShowTooltip(e){if(this.state!=0||hg)return;let t=0;e&&(t=this.isLastTooltipHiddenRecently()?200:this.getTooltipDelay("show")),this.lastMouseEvent=e||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),t),this.state=1}isLastTooltipHiddenRecently(){return new Date().getTime()-IEthis.hideTooltip(!0),...((g=t.getAdditionalParams)==null?void 0:g.call(t))??{}};this.state=2,this.tooltipInstanceCount++;const i=this.newTooltipComponentCallback.bind(this,this.tooltipInstanceCount),n=K9(this.userCompFactory,r);n==null||n.newAgStackInstance().then(i)}hideTooltip(e){!e&&this.isInteractingWithTooltip||(this.tooltipComp&&(this.destroyTooltipComp(),IE=new Date().getTime()),this.eventSvc.dispatchEvent({type:"tooltipHide",parentGui:this.tooltipCtrl.getGui()}),e&&(this.isInteractingWithTooltip=!1),this.setToDoNothing(!0))}newTooltipComponentCallback(e,t){var o;if(this.state!==2||this.tooltipInstanceCount!==e){this.destroyBean(t);return}const r=t.getGui();this.tooltipComp=t,r.classList.contains("ag-tooltip")||r.classList.add("ag-tooltip-custom"),this.tooltipTrigger===0&&r.classList.add("ag-tooltip-animate"),this.interactionEnabled&&r.classList.add("ag-tooltip-interactive");const i=this.getLocaleTextFunc(),n=(o=this.popupSvc)==null?void 0:o.addPopup({eChild:r,ariaLabel:i("ariaLabelTooltip","Tooltip")});if(n&&(this.tooltipPopupDestroyFunc=n.hideFunc),this.positionTooltip(),this.tooltipTrigger===1){const a=()=>this.setToDoNothing();[this.onBodyScrollEventCallback,this.onColumnMovedEventCallback]=this.addManagedEventListeners({bodyScroll:a,columnMoved:a})}this.interactionEnabled&&([this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener]=this.addManagedElementListeners(r,{mouseenter:this.onTooltipMouseEnter.bind(this),mouseleave:this.onTooltipMouseLeave.bind(this)}),[this.onDocumentKeyDownCallback]=this.addManagedElementListeners(zt(this.beans),{keydown:a=>{r.contains(a==null?void 0:a.target)||this.onKeyDown()}}),this.tooltipTrigger===1&&([this.tooltipFocusInListener,this.tooltipFocusOutListener]=this.addManagedElementListeners(r,{focusin:this.onTooltipFocusIn.bind(this),focusout:this.onTooltipFocusOut.bind(this)}))),this.eventSvc.dispatchEvent({type:"tooltipShow",tooltipGui:r,parentGui:this.tooltipCtrl.getGui()}),this.startHideTimeout()}onTooltipMouseEnter(){this.isInteractingWithTooltip=!0,this.unlockService()}onTooltipMouseLeave(){this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,this.lockService())}onTooltipFocusIn(){this.isInteractingWithTooltip=!0}isTooltipFocused(){var s;const e=(s=this.tooltipComp)==null?void 0:s.getGui(),t=Ft(this.beans);return!!e&&e.contains(t)}onTooltipFocusOut(e){const t=this.tooltipCtrl.getGui();this.isTooltipFocused()||(this.isInteractingWithTooltip=!1,t.contains(e.relatedTarget)?this.startHideTimeout():this.hideTooltip())}positionTooltip(){var t,s;const e={type:"tooltip",ePopup:this.tooltipComp.getGui(),nudgeY:18,skipObserver:this.tooltipMouseTrack};this.lastMouseEvent?(t=this.popupSvc)==null||t.positionPopupUnderMouseEvent({...e,mouseEvent:this.lastMouseEvent}):(s=this.popupSvc)==null||s.positionPopupByComponent({...e,eventSource:this.tooltipCtrl.getGui(),position:"under",keepWithinBounds:!0,nudgeY:5})}destroyTooltipComp(){this.tooltipComp.getGui().classList.add("ag-tooltip-hiding");const e=this.tooltipPopupDestroyFunc,t=this.tooltipComp,s=this.tooltipTrigger===0?IY:0;window.setTimeout(()=>{e(),this.destroyBean(t)},s),this.clearTooltipListeners(),this.tooltipPopupDestroyFunc=void 0,this.tooltipComp=void 0}clearTooltipListeners(){[this.tooltipMouseEnterListener,this.tooltipMouseLeaveListener,this.tooltipFocusInListener,this.tooltipFocusOutListener].forEach(e=>{e&&e()}),this.tooltipMouseEnterListener=this.tooltipMouseLeaveListener=this.tooltipFocusInListener=this.tooltipFocusOutListener=null}lockService(){hg=!0,this.interactiveTooltipTimeoutId=window.setTimeout(()=>{this.unlockService(),this.setToDoNothing()},AE)}unlockService(){hg=!1,this.clearInteractiveTimeout()}startHideTimeout(){this.clearHideTimeout(),this.hideTooltipTimeoutId=window.setTimeout(this.hideTooltip.bind(this),this.getTooltipDelay("hide"))}clearShowTimeout(){this.showTooltipTimeoutId&&(window.clearTimeout(this.showTooltipTimeoutId),this.showTooltipTimeoutId=void 0)}clearHideTimeout(){this.hideTooltipTimeoutId&&(window.clearTimeout(this.hideTooltipTimeoutId),this.hideTooltipTimeoutId=void 0)}clearInteractiveTimeout(){this.interactiveTooltipTimeoutId&&(window.clearTimeout(this.interactiveTooltipTimeoutId),this.interactiveTooltipTimeoutId=void 0)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout(),this.clearInteractiveTimeout()}};function _d(e){return e.get("tooltipShowMode")==="whenTruncated"}function Mm(e,t){return _d(e)?xl(t):void 0}function xl(e){return()=>{const t=e();return t?t.scrollWidth>t.clientWidth:!0}}var LY=class extends J{constructor(e,t){super(),this.ctrl=e,t&&(this.beans=t)}postConstruct(){this.refreshTooltip()}setBrowserTooltip(e){const t="title",s=this.ctrl.getGui();s&&(e!=null&&e!=""?s.setAttribute(t,e):s.removeAttribute(t))}updateTooltipText(){const{getTooltipValue:e}=this.ctrl;e&&(this.tooltip=e())}createTooltipFeatureIfNeeded(){this.tooltipManager==null&&(this.tooltipManager=this.createBean(new kY(this.ctrl,()=>this.tooltip),this.beans.context))}setTooltipAndRefresh(e){this.tooltip=e,this.refreshTooltip()}refreshTooltip(){this.browserTooltips=this.beans.gos.get("enableBrowserTooltips"),this.updateTooltipText(),this.browserTooltips?(this.setBrowserTooltip(this.tooltip),this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context)):(this.setBrowserTooltip(null),this.createTooltipFeatureIfNeeded())}destroy(){this.tooltipManager=this.destroyBean(this.tooltipManager,this.beans.context),super.destroy()}},OY=class extends pe{constructor(e="default",t=!1){super(`
`),this.cssIdentifier=e,this.unFocusable=t,this.activeClass="ag-active-item",this.options=[],this.itemEls=[]}postConstruct(){const e=this.getGui();this.addManagedElementListeners(e,{mouseleave:()=>this.clearHighlighted()}),!this.unFocusable&&this.addManagedElementListeners(e,{keydown:this.handleKeyDown.bind(this)})}handleKeyDown(e){const t=e.key;switch(t){case B.ENTER:if(!this.highlightedEl)this.setValue(this.getValue());else{const s=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(s)}break;case B.DOWN:case B.UP:e.preventDefault(),this.navigate(t);break;case B.PAGE_DOWN:case B.PAGE_UP:case B.PAGE_HOME:case B.PAGE_END:e.preventDefault(),this.navigateToPage(t);break}}navigate(e){const t=e===B.DOWN;let s;const{itemEls:r,highlightedEl:i}=this;if(!i)s=r[t?0:r.length-1];else{let o=r.indexOf(i)+(t?1:-1);o=Math.min(Math.max(o,0),r.length-1),s=r[o]}this.highlightItem(s)}navigateToPage(e){const{itemEls:t,highlightedEl:s}=this;if(!s||t.length===0)return;const r=t.indexOf(s),i=this.options.length-1,n=t[0].clientHeight,o=Math.floor(this.getGui().clientHeight/n);let a=-1;e===B.PAGE_HOME?a=0:e===B.PAGE_END?a=i:e===B.PAGE_DOWN?a=Math.min(r+o,i):e===B.PAGE_UP&&(a=Math.max(r-o,0)),a!==-1&&this.highlightItem(t[a])}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){const{value:t,text:s}=e,r=s||t;return this.options.push({value:t,text:r}),this.renderOption(t,r),this.updateIndices(),this}clearOptions(){this.options=[],this.reset(!0),this.itemEls.forEach(e=>{Rs(e)}),this.itemEls=[]}updateIndices(){const e=this.getGui().querySelectorAll(".ag-list-item");e.forEach((t,s)=>{pm(t,s+1),hm(t,e.length)})}renderOption(e,t){const s=zt(this.beans),r=s.createElement("div");hs(r,"option"),r.classList.add("ag-list-item",`ag-${this.cssIdentifier}-list-item`);const i=s.createElement("span");r.appendChild(i),i.textContent=t,this.unFocusable||(r.tabIndex=-1),this.itemEls.push(r),this.addManagedListeners(r,{mouseover:()=>this.highlightItem(r),mousedown:n=>{n.preventDefault(),n.stopPropagation(),this.setValue(e)}}),this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{getTooltipValue:()=>t,getGui:()=>r,getLocation:()=>"UNKNOWN",shouldDisplayTooltip:()=>i.scrollWidth>i.clientWidth})),this.getGui().appendChild(r)}setValue(e,t){if(this.value===e)return this.fireItemSelected(),this;if(e==null)return this.reset(t),this;const s=this.options.findIndex(r=>r.value===e);if(s!==-1){const r=this.options[s];this.value=r.value,this.displayValue=r.text,this.highlightItem(this.itemEls[s]),t||this.fireChangeEvent()}return this}setValueByIndex(e){return this.setValue(this.options[e].value)}getValue(){return this.value}getDisplayValue(){return this.displayValue}refreshHighlighted(){this.clearHighlighted();const e=this.options.findIndex(t=>t.value===this.value);e!==-1&&this.highlightItem(this.itemEls[e])}reset(e){this.value=null,this.displayValue=null,this.clearHighlighted(),e||this.fireChangeEvent()}highlightItem(e){if(!Tr(e))return;this.clearHighlighted(),this.highlightedEl=e,e.classList.add(this.activeClass),lh(e,!0);const t=this.getGui(),{scrollTop:s,clientHeight:r}=t,{offsetTop:i,offsetHeight:n}=e;(i+n>s+r||i
`,(e==null?void 0:e.agComponents)||[],e==null?void 0:e.className),this.isPickerDisplayed=!1,this.skipClick=!1,this.pickerGap=4,this.hideCurrentPicker=null,this.eLabel=j,this.eWrapper=j,this.eDisplayField=j,this.eIcon=j,this.registerCSS(GY),this.ariaRole=e==null?void 0:e.ariaRole,this.onPickerFocusIn=this.onPickerFocusIn.bind(this),this.onPickerFocusOut=this.onPickerFocusOut.bind(this),!e)return;const{pickerGap:t,maxPickerHeight:s,variableWidth:r,minPickerWidth:i,maxPickerWidth:n}=e;t!=null&&(this.pickerGap=t),this.variableWidth=!!r,s!=null&&this.setPickerMaxHeight(s),i!=null&&this.setPickerMinWidth(i),n!=null&&this.setPickerMaxWidth(n)}postConstruct(){super.postConstruct(),this.setupAria();const e=`ag-${this.getCompId()}-display`;this.eDisplayField.setAttribute("id",e);const t=this.getAriaElement();this.addManagedElementListeners(t,{keydown:this.onKeyDown.bind(this)}),this.addManagedElementListeners(this.eLabel,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)}),this.addManagedElementListeners(this.eWrapper,{mousedown:this.onLabelOrWrapperMouseDown.bind(this)});const{pickerIcon:s,inputWidth:r}=this.config;if(s){const i=We(s,this.beans);i&&this.eIcon.appendChild(i)}r!=null&&this.setInputWidth(r)}setupAria(){const e=this.getAriaElement();e.setAttribute("tabindex",this.gos.get("tabIndex").toString()),Br(e,!1),this.ariaRole&&hs(e,this.ariaRole)}onLabelOrWrapperMouseDown(e){if(e){const t=this.getFocusableElement();if(t!==this.eWrapper&&(e==null?void 0:e.target)===t)return;e.preventDefault(),this.getFocusableElement().focus()}if(this.skipClick){this.skipClick=!1;return}this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())}onKeyDown(e){switch(e.key){case B.UP:case B.DOWN:case B.ENTER:case B.SPACE:e.preventDefault(),this.onLabelOrWrapperMouseDown();break;case B.ESCAPE:this.isPickerDisplayed&&(e.preventDefault(),e.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker());break}}showPicker(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());const e=this.pickerComponent.getGui();e.addEventListener("focusin",this.onPickerFocusIn),e.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)}renderAndPositionPicker(){const e=this.pickerComponent.getGui();this.gos.get("suppressScrollWhenPopupsAreOpen")||([this.destroyMouseWheelFunc]=this.addManagedEventListeners({bodyScroll:()=>{this.hidePicker()}}));const t=this.getLocaleTextFunc(),{config:{pickerAriaLabelKey:s,pickerAriaLabelValue:r,modalPicker:i=!0},maxPickerHeight:n,minPickerWidth:o,maxPickerWidth:a,variableWidth:l,beans:u,eWrapper:h}=this,p={modal:i,eChild:e,closeOnEsc:!0,closedCallback:()=>{const v=Ra(u);this.beforeHidePicker(),v&&this.isAlive()&&this.getFocusableElement().focus()},ariaLabel:t(s,r),anchorToElement:h};e.style.position="absolute";const g=u.popupSvc,m=g.addPopup(p);l?(o&&(e.style.minWidth=o),e.style.width=qb(Dl(h)),a&&(e.style.maxWidth=a)):uf(e,a??Dl(h));const C=n??`${gm(g.getPopupParent())}px`;return e.style.setProperty("max-height",C),this.alignPickerToComponent(),m.hideFunc}alignPickerToComponent(){if(!this.pickerComponent)return;const{pickerGap:e,config:{pickerType:t},beans:{popupSvc:s,gos:r},eWrapper:i,pickerComponent:n}=this,o=r.get("enableRtl")?"right":"left";s.positionPopupByComponent({type:t,eventSource:i,ePopup:n.getGui(),position:"under",alignSide:o,keepWithinBounds:!0,nudgeY:e})}beforeHidePicker(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);const e=this.pickerComponent.getGui();e.removeEventListener("focusin",this.onPickerFocusIn),e.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null}toggleExpandedStyles(e){if(!this.isAlive())return;const t=this.getAriaElement();Br(t,e);const s=this.eWrapper.classList;s.toggle("ag-picker-expanded",e),s.toggle("ag-picker-collapsed",!e)}onPickerFocusIn(){this.togglePickerHasFocus(!0)}onPickerFocusOut(e){var t;(t=this.pickerComponent)!=null&&t.getGui().contains(e.relatedTarget)||this.togglePickerHasFocus(!1)}togglePickerHasFocus(e){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",e)}hidePicker(){var e;(e=this.hideCurrentPicker)==null||e.call(this)}setInputWidth(e){return uf(this.eWrapper,e),this}getFocusableElement(){return this.eWrapper}setPickerGap(e){return this.pickerGap=e,this}setPickerMinWidth(e){return typeof e=="number"&&(e=`${e}px`),this.minPickerWidth=e??void 0,this}setPickerMaxWidth(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerWidth=e??void 0,this}setPickerMaxHeight(e){return typeof e=="number"&&(e=`${e}px`),this.maxPickerHeight=e??void 0,this}destroy(){this.hidePicker(),super.destroy()}},NY=".ag-select{align-items:center;display:flex;&.ag-disabled{opacity:.5}}:where(.ag-select){.ag-picker-field-wrapper{cursor:default}&.ag-disabled .ag-picker-field-wrapper:focus{box-shadow:none}&:not(.ag-cell-editor,.ag-label-align-top){min-height:var(--ag-list-item-height)}.ag-picker-field-display{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ag-picker-field-icon{align-items:center;display:flex}}:where(.ag-ltr) :where(.ag-select){.ag-picker-field-wrapper{padding-left:calc(var(--ag-cell-horizontal-padding)/2);padding-right:var(--ag-spacing)}}:where(.ag-rtl) :where(.ag-select){.ag-picker-field-wrapper{padding-left:var(--ag-spacing);padding-right:calc(var(--ag-cell-horizontal-padding)/2)}}",Nr=class extends bS{constructor(e){super({pickerAriaLabelKey:"ariaLabelSelectField",pickerAriaLabelValue:"Select Field",pickerType:"ag-list",className:"ag-select",pickerIcon:"selectOpen",ariaRole:"combobox",...e}),this.registerCSS(NY)}postConstruct(){this.tooltipFeature=this.createOptionalManagedBean(this.beans.registry.createDynamicBean("tooltipFeature",!1,{shouldDisplayTooltip:xl(()=>this.eDisplayField),getGui:()=>this.getGui()})),super.postConstruct(),this.createListComponent(),this.eWrapper.tabIndex=this.gos.get("tabIndex");const{options:e,value:t,placeholder:s}=this.config;e!=null&&this.addOptions(e),t!=null&&this.setValue(t,!0),s&&t==null&&(this.eDisplayField.textContent=s),this.addManagedElementListeners(this.eWrapper,{focusout:this.onWrapperFocusOut.bind(this)})}onWrapperFocusOut(e){this.eWrapper.contains(e.relatedTarget)||this.hidePicker()}createListComponent(){const e=this.createBean(new OY("select",!0));this.listComponent=e,e.setParentComponent(this);const t=e.getAriaElement(),s=`ag-select-list-${e.getCompId()}`;t.setAttribute("id",s),Ub(this.getAriaElement(),t),e.addManagedListeners(e,{selectedItem:()=>{this.hidePicker(),this.dispatchLocalEvent({type:"selectedItem"})}}),e.addManagedListeners(e,{fieldValueChanged:()=>{this.listComponent&&(this.setValue(this.listComponent.getValue(),!1,!0),this.hidePicker())}})}createPickerComponent(){return this.listComponent}onKeyDown(e){var s;const{key:t}=e;switch(t===B.TAB&&this.hidePicker(),t){case B.ENTER:case B.UP:case B.DOWN:case B.PAGE_UP:case B.PAGE_DOWN:case B.PAGE_HOME:case B.PAGE_END:e.preventDefault(),this.isPickerDisplayed?(s=this.listComponent)==null||s.handleKeyDown(e):super.onKeyDown(e);break;case B.ESCAPE:super.onKeyDown(e);break;case B.SPACE:this.isPickerDisplayed?e.preventDefault():super.onKeyDown(e);break}}showPicker(){const e=this.listComponent;e&&(super.showPicker(),e.refreshHighlighted())}addOptions(e){return e.forEach(t=>this.addOption(t)),this}addOption(e){return this.listComponent.addOption(e),this}clearOptions(){var e;return(e=this.listComponent)==null||e.clearOptions(),this}setValue(e,t,s){const{listComponent:r,config:{placeholder:i},eDisplayField:n,tooltipFeature:o}=this;if(this.value===e||!r)return this;if(s||r.setValue(e,!0),r.getValue()===this.getValue())return this;let l=r.getDisplayValue();return l==null&&i&&(l=i),n.textContent=l,o==null||o.setTooltipAndRefresh(l??null),super.setValue(e,t)}destroy(){this.listComponent=this.destroyBean(this.listComponent),super.destroy()}},Lh={selector:"AG-SELECT",component:Nr},Rl={TAB_GUARD:"ag-tab-guard",TAB_GUARD_TOP:"ag-tab-guard-top",TAB_GUARD_BOTTOM:"ag-tab-guard-bottom"},Pk=class extends J{constructor(e){super(),this.skipTabGuardFocus=!1,this.forcingFocusOut=!1,this.allowFocus=!1;const{comp:t,eTopGuard:s,eBottomGuard:r,focusTrapActive:i,forceFocusOutWhenTabGuardsAreEmpty:n,isFocusableContainer:o,focusInnerElement:a,onFocusIn:l,onFocusOut:u,shouldStopEventPropagation:h,onTabKeyDown:p,handleKeyDown:g,eFocusableElement:m}=e;this.comp=t,this.eTopGuard=s,this.eBottomGuard=r,this.providedFocusInnerElement=a,this.eFocusableElement=m,this.focusTrapActive=!!i,this.forceFocusOutWhenTabGuardsAreEmpty=!!n,this.isFocusableContainer=!!o,this.providedFocusIn=l,this.providedFocusOut=u,this.providedShouldStopEventPropagation=h,this.providedOnTabKeyDown=p,this.providedHandleKeyDown=g}postConstruct(){this.createManagedBean(new La(this.eFocusableElement,{shouldStopEventPropagation:()=>this.shouldStopEventPropagation(),onTabKeyDown:e=>this.onTabKeyDown(e),handleKeyDown:e=>this.handleKeyDown(e),onFocusIn:e=>this.onFocusIn(e),onFocusOut:e=>this.onFocusOut(e)})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach(e=>this.addManagedElementListeners(e,{focus:this.onFocus.bind(this)}))}handleKeyDown(e){this.providedHandleKeyDown&&this.providedHandleKeyDown(e)}tabGuardsAreActive(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")}shouldStopEventPropagation(){return this.providedShouldStopEventPropagation?this.providedShouldStopEventPropagation():!1}activateTabGuards(){if(this.forcingFocusOut)return;const e=this.gos.get("tabIndex");this.comp.setTabIndex(e.toString())}deactivateTabGuards(){this.comp.setTabIndex()}onFocus(e){if(this.isFocusableContainer&&!this.eFocusableElement.contains(e.relatedTarget)&&!this.allowFocus){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.skipTabGuardFocus){this.skipTabGuardFocus=!1;return}if(this.forceFocusOutWhenTabGuardsAreEmpty&&gn(this.eFocusableElement,".ag-tab-guard").length===0){this.findNextElementOutsideAndFocus(e.target===this.eBottomGuard);return}if(this.isFocusableContainer&&this.eFocusableElement.contains(e.relatedTarget))return;const t=e.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(t):this.focusInnerElement(t)}findNextElementOutsideAndFocus(e){var l;const t=zt(this.beans),s=gn(t.body,null,!0),r=s.indexOf(e?this.eTopGuard:this.eBottomGuard);if(r===-1)return;let i,n;e?(i=0,n=r):(i=r+1,n=s.length);const o=s.slice(i,n),a=this.gos.get("tabIndex");o.sort((u,h)=>{const p=parseInt(u.getAttribute("tabindex")||"0"),g=parseInt(h.getAttribute("tabindex")||"0");return g===a?1:p===a?-1:p===0?1:g===0?-1:p-g}),(l=o[e?o.length-1:0])==null||l.focus()}onFocusIn(e){this.focusTrapActive||this.forcingFocusOut||(this.providedFocusIn&&this.providedFocusIn(e),this.isFocusableContainer||this.deactivateTabGuards())}onFocusOut(e){this.focusTrapActive||(this.providedFocusOut&&this.providedFocusOut(e),this.eFocusableElement.contains(e.relatedTarget)||this.activateTabGuards())}onTabKeyDown(e){if(this.providedOnTabKeyDown){this.providedOnTabKeyDown(e);return}if(this.focusTrapActive||e.defaultPrevented)return;const t=this.tabGuardsAreActive();t&&this.deactivateTabGuards();const s=this.getNextFocusableElement(e.shiftKey);t&&setTimeout(()=>this.activateTabGuards(),0),s&&(s.focus(),e.preventDefault())}focusInnerElement(e=!1){const t=gn(this.eFocusableElement);this.tabGuardsAreActive()&&(t.splice(0,1),t.splice(t.length-1,1)),t.length&&t[e?t.length-1:0].focus({preventScroll:!0})}getNextFocusableElement(e){return gr(this.beans,this.eFocusableElement,!1,e)}forceFocusOutOfContainer(e=!1){if(this.forcingFocusOut)return;const t=e?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,this.forcingFocusOut=!0,t.focus(),window.setTimeout(()=>{this.forcingFocusOut=!1,this.activateTabGuards()})}isTabGuard(e,t){return e===this.eTopGuard&&!t||e===this.eBottomGuard&&(t??!0)}setAllowFocus(e){this.allowFocus=e}},Fk=class extends J{constructor(e){super(),this.comp=e}initialiseTabGuard(e){this.eTopGuard=this.createTabGuard("top"),this.eBottomGuard=this.createTabGuard("bottom"),this.eFocusableElement=this.comp.getFocusableElement();const{eTopGuard:t,eBottomGuard:s,eFocusableElement:r}=this,i=[t,s],n={setTabIndex:v=>{i.forEach(w=>v!=null?w.setAttribute("tabindex",v):w.removeAttribute("tabindex"))}};this.addTabGuards(t,s);const{focusTrapActive:o=!1,onFocusIn:a,onFocusOut:l,focusInnerElement:u,handleKeyDown:h,onTabKeyDown:p,shouldStopEventPropagation:g,forceFocusOutWhenTabGuardsAreEmpty:m,isFocusableContainer:C}=e;this.tabGuardCtrl=this.createManagedBean(new Pk({comp:n,focusTrapActive:o,eTopGuard:t,eBottomGuard:s,eFocusableElement:r,onFocusIn:a,onFocusOut:l,focusInnerElement:u,handleKeyDown:h,onTabKeyDown:p,shouldStopEventPropagation:g,forceFocusOutWhenTabGuardsAreEmpty:m,isFocusableContainer:C}))}getTabGuardCtrl(){return this.tabGuardCtrl}createTabGuard(e){const t=zt(this.beans).createElement("div"),s=e==="top"?Rl.TAB_GUARD_TOP:Rl.TAB_GUARD_BOTTOM;return t.classList.add(Rl.TAB_GUARD,s),hs(t,"presentation"),t}addTabGuards(e,t){const s=this.eFocusableElement;s.insertAdjacentElement("afterbegin",e),s.insertAdjacentElement("beforeend",t)}removeAllChildrenExceptTabGuards(){const e=[this.eTopGuard,this.eBottomGuard];Lt(this.comp.getFocusableElement()),this.addTabGuards(...e)}forceFocusOutOfContainer(e=!1){this.tabGuardCtrl.forceFocusOutOfContainer(e)}appendChild(e,t,s){mm(t)||(t=t.getGui());const{eBottomGuard:r}=this;r?r.insertAdjacentElement("beforebegin",t):e(t,s)}},Xn=class extends pe{initialiseTabGuard(t){this.tabGuardFeature=this.createManagedBean(new Fk(this)),this.tabGuardFeature.initialiseTabGuard(t)}forceFocusOutOfContainer(t=!1){this.tabGuardFeature.forceFocusOutOfContainer(t)}appendChild(t,s){this.tabGuardFeature.appendChild(super.appendChild.bind(this),t,s)}},Oa=class extends pe{isPopup(){return!0}setParentComponent(e){e.addCssClass("ag-has-popup"),super.setParentComponent(e)}destroy(){const e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),super.destroy()}},pa=class{constructor(e,t=!1){this.DOUBLE_TAP_MILLIS=500,this.destroyFuncs=[],this.touching=!1,this.localEventService=new ka,this.preventMouseClick=t;const s=this.onTouchStart.bind(this),r=this.onTouchMove.bind(this),i=this.onTouchEnd.bind(this);e.addEventListener("touchstart",s,{passive:!0}),e.addEventListener("touchmove",r,{passive:!0}),e.addEventListener("touchend",i,{passive:!1}),this.destroyFuncs.push(()=>{e.removeEventListener("touchstart",s,{passive:!0}),e.removeEventListener("touchmove",r,{passive:!0}),e.removeEventListener("touchend",i,{passive:!1})})}getActiveTouch(e){for(let t=0;t{const s=this.touchStart===t;if(this.touching&&s&&!this.moved){this.moved=!0;const r={type:"longTap",touchStart:this.touchStart,touchEvent:e};this.localEventService.dispatchEvent(r)}},500)}onTouchMove(e){if(!this.touching)return;const t=this.getActiveTouch(e.touches);if(!t)return;!YI(t,this.touchStart,4)&&(this.moved=!0)}onTouchEnd(e){if(this.touching){if(!this.moved){const t={type:"tap",touchStart:this.touchStart};this.localEventService.dispatchEvent(t),this.checkForDoubleTap()}this.preventMouseClick&&e.cancelable&&e.preventDefault(),this.touching=!1}}checkForDoubleTap(){const e=new Date().getTime();if(this.lastTapTime&&this.lastTapTime>0)if(e-this.lastTapTime>this.DOUBLE_TAP_MILLIS){const s={type:"doubleTap",touchStart:this.touchStart};this.localEventService.dispatchEvent(s),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e}destroy(){this.destroyFuncs.forEach(e=>e())}},Ni=(e=>(e[e.VALUE=0]="VALUE",e[e.DIMENSION=1]="DIMENSION",e))(Ni||{}),Ek=class{constructor(e="javascript"){this.frameworkName=e,this.renderingEngine="vanilla",this.wrapIncoming=t=>t(),this.wrapOutgoing=t=>t(),this.baseDocLink=`${jA}/${this.frameworkName}-data-grid`,F7(this.baseDocLink)}setInterval(e,t){return new nt(s=>{s(window.setInterval(e,t))})}addEventListener(e,t,s,r){let i={};if(typeof r=="object"?i=r:typeof r=="boolean"&&(i={capture:r}),i.passive==null){const n=uI(t);n!=null&&(i.passive=n)}e.addEventListener(t,s,i)}frameworkComponent(e){return null}isFrameworkComponent(e){return!1}getDocLink(e){return`${this.baseDocLink}${e?`/${e}`:""}`}};function BY(e){return{beanName:"gridApi",bean:e.getBean("apiFunctionSvc").api}}var VY=["licenseManager","environment","eventSvc","gos","paginationAutoPageSizeSvc","apiFunctionSvc","gridApi","registry","agCompUtils","userCompFactory","rowContainerHeight","horizontalResizeSvc","localeSvc","pinnedRowModel","dragSvc","colGroupSvc","visibleCols","popupSvc","selectionSvc","colFilter","quickFilter","filterManager","colModel","headerNavigation","pageBounds","pagination","pageBoundsListener","stickyRowSvc","rowRenderer","expressionSvc","alignedGridsSvc","navigation","valueCache","valueSvc","autoWidthCalc","filterMenuFactory","dragAndDrop","focusSvc","cellNavigation","cellStyles","scrollVisibleSvc","sortSvc","colHover","colAnimation","autoColSvc","selectionColSvc","changeDetectionSvc","animationFrameSvc","undoRedo","colDefFactory","rowStyleSvc","rowNodeBlockLoader","rowNodeSorter","ctrlsSvc","pinnedCols","dataTypeSvc","syncSvc","overlays","stateSvc","expansionSvc","apiEventSvc","ariaAnnounce","menuSvc","colMoves","colAutosize","colFlex","colResize","pivotColsSvc","valueColsSvc","rowGroupColsSvc","funcColsSvc","colNames","colViewport","pivotResultCols","showRowGroupCols","validation"],kE=Object.fromEntries(VY.map((e,t)=>[e,t]));function HY(e,t){const s=(e.beanName?kE[e.beanName]:void 0)??Number.MAX_SAFE_INTEGER,r=(t.beanName?kE[t.beanName]:void 0)??Number.MAX_SAFE_INTEGER;return s-r}function zY(e,t){return(e==null?void 0:e.beanName)==="gridDestroySvc"?-1:0}var WY='
',_Y='
',$Y=``,gy=class extends pe{constructor(t){super(),this.eCenterContainer=j,this.headerRowComps={},this.rowCompsList=[],this.pinned=t}postConstruct(){this.selectAndSetTemplate();const t={setDisplayed:r=>this.setDisplayed(r),setCtrls:r=>this.setCtrls(r),setCenterWidth:r=>this.eCenterContainer.style.width=r,setViewportScrollLeft:r=>this.getGui().scrollLeft=r,setPinnedContainerWidth:r=>{const i=this.getGui();i.style.width=r,i.style.maxWidth=r,i.style.minWidth=r}};this.createManagedBean(new vk(this.pinned)).setComp(t,this.getGui())}selectAndSetTemplate(){const t=this.pinned=="left",s=this.pinned=="right",r=t?WY:s?_Y:$Y;this.setTemplate(r),this.eRowContainer=this.eCenterContainer!==j?this.eCenterContainer:this.getGui()}destroy(){this.setCtrls([]),super.destroy()}destroyRowComp(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())}setCtrls(t){const s=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[];let r;const i=n=>{const o=n.getGui();o.parentElement!=this.eRowContainer&&this.eRowContainer.appendChild(o),r&&zA(this.eRowContainer,o,r),r=o};t.forEach(n=>{const o=n.instanceId,a=s[o];delete s[o];const l=a||this.createBean(new uY(n));this.headerRowComps[o]=l,this.rowCompsList.push(l),i(l)}),Object.values(s).forEach(n=>this.destroyRowComp(n))}},UY=class extends pe{constructor(){super('