iobroker.nspanel-lovelace-ui
Version:
NsPanel Lovelace UI is a Firmware for the nextion screen inside of NSPanel in the Design of Lovelace UI Design.
2 lines (1 loc) • 37.5 kB
JavaScript
import{p as wr,f as wt,R as Or,d as ct,e as q,i as Ye,h as Pr,r as Sr,b as Rr,_ as Tr,a as gt,c as Rt,n as Ze,m as Re,s as Cr}from"./AdminComponentEasyAccessSet__loadShare__react__loadShare__.js-VQUi_FZ-.js";function Ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}import{u as Dr}from"./useTheme-7761-x-Y.js";import{b as Te,j as ut,g as $r,a as Nr,d as jr,u as Mr,s as _r}from"./createSvgIcon-CHdwYyrx.js";import{R as Nt,a as kr}from"./AdminComponentEasyAccessSet__loadShare__react_mf_2_dom__loadShare__.js-CYi6jjIv.js";function Ce(t){return t&&t.ownerDocument||document}function Ae(t,e){typeof t=="function"?t(e):t&&(t.current=e)}const Ot=typeof window<"u"?wr:wt;let De=0;function Ir(t){const[e,r]=ct(t),n=t||e;return wt(()=>{e==null&&(De+=1,r(`mui-${De}`))},[e]),n}const Lr={...Or},$e=Lr.useId;function _o(t){if($e!==void 0){const e=$e();return t??e}return Ir(t)}function ko({controlled:t,default:e,name:r,state:n="value"}){const{current:o}=q(t!==void 0),[i,s]=ct(e),a=o?t:i,c=Ye(f=>{o||s(f)},[]);return[a,c]}function Io(t){const e=q(t);return Ot(()=>{e.current=t}),q((...r)=>(0,e.current)(...r)).current}function ft(...t){const e=q(void 0),r=Ye(n=>{const o=t.map(i=>{if(i==null)return null;if(typeof i=="function"){const s=i,a=s(n);return typeof a=="function"?a:()=>{s(null)}}return i.current=n,()=>{i.current=null}});return()=>{o.forEach(i=>i==null?void 0:i())}},t);return Pr(()=>t.every(n=>n==null)?null:n=>{e.current&&(e.current(),e.current=void 0),n!=null&&(e.current=r(n))},t)}const Ne={};function Br(t,e){const r=q(Ne);return r.current===Ne&&(r.current=t(e)),r}const Wr=[];function Hr(t){wt(t,Wr)}class oe{static create(){return new oe}currentId=null;start(e,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function Fr(){const t=Br(oe.create).current;return Hr(t.disposeEffect),t}function Lo(t){try{return t.matches(":focus-visible")}catch{}return!1}function Ur(t){return typeof t=="string"}function Ke(t,e,r){return t===void 0||Ur(t)?e:{...e,ownerState:{...e.ownerState,...r}}}function Vr(t,e=[]){if(t===void 0)return{};const r={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&typeof t[n]=="function"&&!e.includes(n)).forEach(n=>{r[n]=t[n]}),r}function je(t){if(t===void 0)return{};const e={};return Object.keys(t).filter(r=>!(r.match(/^on[A-Z]/)&&typeof t[r]=="function")).forEach(r=>{e[r]=t[r]}),e}function Je(t){const{getSlotProps:e,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:i}=t;if(!e){const d=Te(r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),m={...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},l={...r,...o,...n};return d.length>0&&(l.className=d),Object.keys(m).length>0&&(l.style=m),{props:l,internalRef:void 0}}const s=Vr({...o,...n}),a=je(n),c=je(o),f=e(s),u=Te(f==null?void 0:f.className,r==null?void 0:r.className,i,o==null?void 0:o.className,n==null?void 0:n.className),v={...f==null?void 0:f.style,...r==null?void 0:r.style,...o==null?void 0:o.style,...n==null?void 0:n.style},h={...f,...r,...c,...a};return u.length>0&&(h.className=u),Object.keys(v).length>0&&(h.style=v),{props:h,internalRef:f.ref}}function Qe(t,e,r){return typeof t=="function"?t(e,r):t}function Xr(t){var v;const{elementType:e,externalSlotProps:r,ownerState:n,skipResolvingSlotProps:o=!1,...i}=t,s=o?{}:Qe(r,n),{props:a,internalRef:c}=Je({...i,externalSlotProps:s}),f=ft(c,s==null?void 0:s.ref,(v=t.additionalProps)==null?void 0:v.ref);return Ke(e,{...a,ref:f},n)}function tr(t){var e;return parseInt(Sr,10)>=19?((e=t==null?void 0:t.props)==null?void 0:e.ref)||null:(t==null?void 0:t.ref)||null}function Jt(t,e){return Jt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Jt(t,e)}function qr(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,Jt(t,e)}function zr(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}var er={exports:{}},S={};var j=typeof Symbol=="function"&&Symbol.for,ie=j?Symbol.for("react.element"):60103,ae=j?Symbol.for("react.portal"):60106,kt=j?Symbol.for("react.fragment"):60107,It=j?Symbol.for("react.strict_mode"):60108,Lt=j?Symbol.for("react.profiler"):60114,Bt=j?Symbol.for("react.provider"):60109,Wt=j?Symbol.for("react.context"):60110,se=j?Symbol.for("react.async_mode"):60111,Ht=j?Symbol.for("react.concurrent_mode"):60111,Ft=j?Symbol.for("react.forward_ref"):60112,Ut=j?Symbol.for("react.suspense"):60113,Gr=j?Symbol.for("react.suspense_list"):60120,Vt=j?Symbol.for("react.memo"):60115,Xt=j?Symbol.for("react.lazy"):60116,Yr=j?Symbol.for("react.block"):60121,Zr=j?Symbol.for("react.fundamental"):60117,Kr=j?Symbol.for("react.responder"):60118,Jr=j?Symbol.for("react.scope"):60119;function W(t){if(typeof t=="object"&&t!==null){var e=t.$$typeof;switch(e){case ie:switch(t=t.type,t){case se:case Ht:case kt:case Lt:case It:case Ut:return t;default:switch(t=t&&t.$$typeof,t){case Wt:case Ft:case Xt:case Vt:case Bt:return t;default:return e}}case ae:return e}}}function rr(t){return W(t)===Ht}S.AsyncMode=se;S.ConcurrentMode=Ht;S.ContextConsumer=Wt;S.ContextProvider=Bt;S.Element=ie;S.ForwardRef=Ft;S.Fragment=kt;S.Lazy=Xt;S.Memo=Vt;S.Portal=ae;S.Profiler=Lt;S.StrictMode=It;S.Suspense=Ut;S.isAsyncMode=function(t){return rr(t)||W(t)===se};S.isConcurrentMode=rr;S.isContextConsumer=function(t){return W(t)===Wt};S.isContextProvider=function(t){return W(t)===Bt};S.isElement=function(t){return typeof t=="object"&&t!==null&&t.$$typeof===ie};S.isForwardRef=function(t){return W(t)===Ft};S.isFragment=function(t){return W(t)===kt};S.isLazy=function(t){return W(t)===Xt};S.isMemo=function(t){return W(t)===Vt};S.isPortal=function(t){return W(t)===ae};S.isProfiler=function(t){return W(t)===Lt};S.isStrictMode=function(t){return W(t)===It};S.isSuspense=function(t){return W(t)===Ut};S.isValidElementType=function(t){return typeof t=="string"||typeof t=="function"||t===kt||t===Ht||t===Lt||t===It||t===Ut||t===Gr||typeof t=="object"&&t!==null&&(t.$$typeof===Xt||t.$$typeof===Vt||t.$$typeof===Bt||t.$$typeof===Wt||t.$$typeof===Ft||t.$$typeof===Zr||t.$$typeof===Kr||t.$$typeof===Jr||t.$$typeof===Yr)};S.typeOf=W;er.exports=S;var Qr=er.exports,ce=Qr,tn={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},en={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},rn={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},nr={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},ue={};ue[ce.ForwardRef]=rn;ue[ce.Memo]=nr;function Me(t){return ce.isMemo(t)?nr:ue[t.$$typeof]||tn}var nn=Object.defineProperty,on=Object.getOwnPropertyNames,_e=Object.getOwnPropertySymbols,an=Object.getOwnPropertyDescriptor,sn=Object.getPrototypeOf,ke=Object.prototype;function or(t,e,r){if(typeof e!="string"){if(ke){var n=sn(e);n&&n!==ke&&or(t,n,r)}var o=on(e);_e&&(o=o.concat(_e(e)));for(var i=Me(t),s=Me(e),a=0;a<o.length;++a){var c=o[a];if(!en[c]&&!(r&&r[c])&&!(s&&s[c])&&!(i&&i[c])){var f=an(e,c);try{nn(t,c,f)}catch{}}}}return t}var cn=or;const Bo=Ar(cn),ir=Tr();function Wo({value:t,...e}){return ut.jsx(ir.Provider,{value:t??!0,...e})}const un=()=>Rr(ir)??!1,Ie={disabled:!1},ar=gt.createContext(null);var fn=function(e){return e.scrollTop},bt="unmounted",et="exited",rt="entering",st="entered",Qt="exiting",Z=(function(t){qr(e,t);function e(n,o){var i;i=t.call(this,n,o)||this;var s=o,a=s&&!s.isMounting?n.enter:n.appear,c;return i.appearStatus=null,n.in?a?(c=et,i.appearStatus=rt):c=st:n.unmountOnExit||n.mountOnEnter?c=bt:c=et,i.state={status:c},i.nextCallback=null,i}e.getDerivedStateFromProps=function(o,i){var s=o.in;return s&&i.status===bt?{status:et}:null};var r=e.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var i=null;if(o!==this.props){var s=this.state.status;this.props.in?s!==rt&&s!==st&&(i=rt):(s===rt||s===st)&&(i=Qt)}this.updateStatus(!1,i)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,i,s,a;return i=s=a=o,o!=null&&typeof o!="number"&&(i=o.exit,s=o.enter,a=o.appear!==void 0?o.appear:s),{exit:i,enter:s,appear:a}},r.updateStatus=function(o,i){if(o===void 0&&(o=!1),i!==null)if(this.cancelNextCallback(),i===rt){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:Nt.findDOMNode(this);s&&fn(s)}this.performEnter(o)}else this.performExit();else this.props.unmountOnExit&&this.state.status===et&&this.setState({status:bt})},r.performEnter=function(o){var i=this,s=this.props.enter,a=this.context?this.context.isMounting:o,c=this.props.nodeRef?[a]:[Nt.findDOMNode(this),a],f=c[0],u=c[1],v=this.getTimeouts(),h=a?v.appear:v.enter;if(!o&&!s||Ie.disabled){this.safeSetState({status:st},function(){i.props.onEntered(f)});return}this.props.onEnter(f,u),this.safeSetState({status:rt},function(){i.props.onEntering(f,u),i.onTransitionEnd(h,function(){i.safeSetState({status:st},function(){i.props.onEntered(f,u)})})})},r.performExit=function(){var o=this,i=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:Nt.findDOMNode(this);if(!i||Ie.disabled){this.safeSetState({status:et},function(){o.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:Qt},function(){o.props.onExiting(a),o.onTransitionEnd(s.exit,function(){o.safeSetState({status:et},function(){o.props.onExited(a)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,i){i=this.setNextCallback(i),this.setState(o,i)},r.setNextCallback=function(o){var i=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,i.nextCallback=null,o(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},r.onTransitionEnd=function(o,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:Nt.findDOMNode(this),a=o==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],f=c[0],u=c[1];this.props.addEndListener(f,u)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===bt)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var a=zr(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return gt.createElement(ar.Provider,{value:null},typeof s=="function"?s(o,a):gt.cloneElement(gt.Children.only(s),a))},e})(gt.Component);Z.contextType=ar;Z.propTypes={};function at(){}Z.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:at,onEntering:at,onEntered:at,onExit:at,onExiting:at,onExited:at};Z.UNMOUNTED=bt;Z.EXITED=et;Z.ENTERING=rt;Z.ENTERED=st;Z.EXITING=Qt;const ln=t=>t.scrollTop;function Le(t,e){const{timeout:r,easing:n,style:o={}}=t;return{duration:o.transitionDuration??(typeof r=="number"?r:r[e.mode]||0),easing:o.transitionTimingFunction??(typeof n=="object"?n[e.mode]:n),delay:o.transitionDelay}}function te(t){return`scale(${t}, ${t**2})`}const pn={entering:{opacity:1,transform:te(1)},entered:{opacity:1,transform:"none"}},Kt=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Be=Rt(function(e,r){const{addEndListener:n,appear:o=!0,children:i,easing:s,in:a,onEnter:c,onEntered:f,onEntering:u,onExit:v,onExited:h,onExiting:d,style:m,timeout:l="auto",TransitionComponent:y=Z,...E}=e,O=Fr(),g=q(),p=Dr(),b=q(null),x=ft(b,tr(i),r),w=P=>T=>{if(P){const A=b.current;T===void 0?P(A):P(A,T)}},D=w(u),C=w((P,T)=>{ln(P);const{duration:A,delay:L,easing:M}=Le({style:m,timeout:l,easing:s},{mode:"enter"});let X;l==="auto"?(X=p.transitions.getAutoHeightDuration(P.clientHeight),g.current=X):X=A,P.style.transition=[p.transitions.create("opacity",{duration:X,delay:L}),p.transitions.create("transform",{duration:Kt?X:X*.666,delay:L,easing:M})].join(","),c&&c(P,T)}),R=w(f),$=w(d),_=w(P=>{const{duration:T,delay:A,easing:L}=Le({style:m,timeout:l,easing:s},{mode:"exit"});let M;l==="auto"?(M=p.transitions.getAutoHeightDuration(P.clientHeight),g.current=M):M=T,P.style.transition=[p.transitions.create("opacity",{duration:M,delay:A}),p.transitions.create("transform",{duration:Kt?M:M*.666,delay:Kt?A:A||M*.333,easing:L})].join(","),P.style.opacity=0,P.style.transform=te(.75),v&&v(P)}),N=w(h),V=P=>{l==="auto"&&O.start(g.current||0,P),n&&n(b.current,P)};return ut.jsx(y,{appear:o,in:a,nodeRef:b,onEnter:C,onEntered:R,onEntering:D,onExit:_,onExited:N,onExiting:$,addEndListener:V,timeout:l==="auto"?null:l,...E,children:(P,{ownerState:T,...A})=>Ze(i,{style:{opacity:0,transform:te(.75),visibility:P==="exited"&&!a?"hidden":void 0,...pn[P],...m,...i.props.style},ref:x,...A})})});Be&&(Be.muiSupportAuto=!0);var k="top",F="bottom",U="right",I="left",fe="auto",Tt=[k,F,U,I],lt="start",Pt="end",dn="clippingParents",sr="viewport",yt="popper",vn="reference",We=Tt.reduce(function(t,e){return t.concat([e+"-"+lt,e+"-"+Pt])},[]),cr=[].concat(Tt,[fe]).reduce(function(t,e){return t.concat([e,e+"-"+lt,e+"-"+Pt])},[]),mn="beforeRead",hn="read",yn="afterRead",gn="beforeMain",bn="main",xn="afterMain",En="beforeWrite",wn="write",On="afterWrite",Pn=[mn,hn,yn,gn,bn,xn,En,wn,On];function G(t){return t?(t.nodeName||"").toLowerCase():null}function B(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ot(t){var e=B(t).Element;return t instanceof e||t instanceof Element}function H(t){var e=B(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function le(t){if(typeof ShadowRoot>"u")return!1;var e=B(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function Sn(t){var e=t.state;Object.keys(e.elements).forEach(function(r){var n=e.styles[r]||{},o=e.attributes[r]||{},i=e.elements[r];!H(i)||!G(i)||(Object.assign(i.style,n),Object.keys(o).forEach(function(s){var a=o[s];a===!1?i.removeAttribute(s):i.setAttribute(s,a===!0?"":a)}))})}function Rn(t){var e=t.state,r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,r.popper),e.styles=r,e.elements.arrow&&Object.assign(e.elements.arrow.style,r.arrow),function(){Object.keys(e.elements).forEach(function(n){var o=e.elements[n],i=e.attributes[n]||{},s=Object.keys(e.styles.hasOwnProperty(n)?e.styles[n]:r[n]),a=s.reduce(function(c,f){return c[f]="",c},{});!H(o)||!G(o)||(Object.assign(o.style,a),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const Tn={name:"applyStyles",enabled:!0,phase:"write",fn:Sn,effect:Rn,requires:["computeStyles"]};function z(t){return t.split("-")[0]}var nt=Math.max,_t=Math.min,pt=Math.round;function ee(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function ur(){return!/^((?!chrome|android).)*safari/i.test(ee())}function dt(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!1);var n=t.getBoundingClientRect(),o=1,i=1;e&&H(t)&&(o=t.offsetWidth>0&&pt(n.width)/t.offsetWidth||1,i=t.offsetHeight>0&&pt(n.height)/t.offsetHeight||1);var s=ot(t)?B(t):window,a=s.visualViewport,c=!ur()&&r,f=(n.left+(c&&a?a.offsetLeft:0))/o,u=(n.top+(c&&a?a.offsetTop:0))/i,v=n.width/o,h=n.height/i;return{width:v,height:h,top:u,right:f+v,bottom:u+h,left:f,x:f,y:u}}function pe(t){var e=dt(t),r=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-r)<=1&&(r=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function fr(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(r&&le(r)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Y(t){return B(t).getComputedStyle(t)}function Cn(t){return["table","td","th"].indexOf(G(t))>=0}function J(t){return((ot(t)?t.ownerDocument:t.document)||window.document).documentElement}function qt(t){return G(t)==="html"?t:t.assignedSlot||t.parentNode||(le(t)?t.host:null)||J(t)}function He(t){return!H(t)||Y(t).position==="fixed"?null:t.offsetParent}function An(t){var e=/firefox/i.test(ee()),r=/Trident/i.test(ee());if(r&&H(t)){var n=Y(t);if(n.position==="fixed")return null}var o=qt(t);for(le(o)&&(o=o.host);H(o)&&["html","body"].indexOf(G(o))<0;){var i=Y(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function Ct(t){for(var e=B(t),r=He(t);r&&Cn(r)&&Y(r).position==="static";)r=He(r);return r&&(G(r)==="html"||G(r)==="body"&&Y(r).position==="static")?e:r||An(t)||e}function de(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function xt(t,e,r){return nt(t,_t(e,r))}function Dn(t,e,r){var n=xt(t,e,r);return n>r?r:n}function lr(){return{top:0,right:0,bottom:0,left:0}}function pr(t){return Object.assign({},lr(),t)}function dr(t,e){return e.reduce(function(r,n){return r[n]=t,r},{})}var $n=function(e,r){return e=typeof e=="function"?e(Object.assign({},r.rects,{placement:r.placement})):e,pr(typeof e!="number"?e:dr(e,Tt))};function Nn(t){var e,r=t.state,n=t.name,o=t.options,i=r.elements.arrow,s=r.modifiersData.popperOffsets,a=z(r.placement),c=de(a),f=[I,U].indexOf(a)>=0,u=f?"height":"width";if(!(!i||!s)){var v=$n(o.padding,r),h=pe(i),d=c==="y"?k:I,m=c==="y"?F:U,l=r.rects.reference[u]+r.rects.reference[c]-s[c]-r.rects.popper[u],y=s[c]-r.rects.reference[c],E=Ct(i),O=E?c==="y"?E.clientHeight||0:E.clientWidth||0:0,g=l/2-y/2,p=v[d],b=O-h[u]-v[m],x=O/2-h[u]/2+g,w=xt(p,x,b),D=c;r.modifiersData[n]=(e={},e[D]=w,e.centerOffset=w-x,e)}}function jn(t){var e=t.state,r=t.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||fr(e.elements.popper,o)&&(e.elements.arrow=o))}const Mn={name:"arrow",enabled:!0,phase:"main",fn:Nn,effect:jn,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function vt(t){return t.split("-")[1]}var _n={top:"auto",right:"auto",bottom:"auto",left:"auto"};function kn(t,e){var r=t.x,n=t.y,o=e.devicePixelRatio||1;return{x:pt(r*o)/o||0,y:pt(n*o)/o||0}}function Fe(t){var e,r=t.popper,n=t.popperRect,o=t.placement,i=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,f=t.adaptive,u=t.roundOffsets,v=t.isFixed,h=s.x,d=h===void 0?0:h,m=s.y,l=m===void 0?0:m,y=typeof u=="function"?u({x:d,y:l}):{x:d,y:l};d=y.x,l=y.y;var E=s.hasOwnProperty("x"),O=s.hasOwnProperty("y"),g=I,p=k,b=window;if(f){var x=Ct(r),w="clientHeight",D="clientWidth";if(x===B(r)&&(x=J(r),Y(x).position!=="static"&&a==="absolute"&&(w="scrollHeight",D="scrollWidth")),x=x,o===k||(o===I||o===U)&&i===Pt){p=F;var C=v&&x===b&&b.visualViewport?b.visualViewport.height:x[w];l-=C-n.height,l*=c?1:-1}if(o===I||(o===k||o===F)&&i===Pt){g=U;var R=v&&x===b&&b.visualViewport?b.visualViewport.width:x[D];d-=R-n.width,d*=c?1:-1}}var $=Object.assign({position:a},f&&_n),_=u===!0?kn({x:d,y:l},B(r)):{x:d,y:l};if(d=_.x,l=_.y,c){var N;return Object.assign({},$,(N={},N[p]=O?"0":"",N[g]=E?"0":"",N.transform=(b.devicePixelRatio||1)<=1?"translate("+d+"px, "+l+"px)":"translate3d("+d+"px, "+l+"px, 0)",N))}return Object.assign({},$,(e={},e[p]=O?l+"px":"",e[g]=E?d+"px":"",e.transform="",e))}function In(t){var e=t.state,r=t.options,n=r.gpuAcceleration,o=n===void 0?!0:n,i=r.adaptive,s=i===void 0?!0:i,a=r.roundOffsets,c=a===void 0?!0:a,f={placement:z(e.placement),variation:vt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Fe(Object.assign({},f,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Fe(Object.assign({},f,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const Ln={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:In,data:{}};var jt={passive:!0};function Bn(t){var e=t.state,r=t.instance,n=t.options,o=n.scroll,i=o===void 0?!0:o,s=n.resize,a=s===void 0?!0:s,c=B(e.elements.popper),f=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&f.forEach(function(u){u.addEventListener("scroll",r.update,jt)}),a&&c.addEventListener("resize",r.update,jt),function(){i&&f.forEach(function(u){u.removeEventListener("scroll",r.update,jt)}),a&&c.removeEventListener("resize",r.update,jt)}}const Wn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Bn,data:{}};var Hn={left:"right",right:"left",bottom:"top",top:"bottom"};function Mt(t){return t.replace(/left|right|bottom|top/g,function(e){return Hn[e]})}var Fn={start:"end",end:"start"};function Ue(t){return t.replace(/start|end/g,function(e){return Fn[e]})}function ve(t){var e=B(t),r=e.pageXOffset,n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function me(t){return dt(J(t)).left+ve(t).scrollLeft}function Un(t,e){var r=B(t),n=J(t),o=r.visualViewport,i=n.clientWidth,s=n.clientHeight,a=0,c=0;if(o){i=o.width,s=o.height;var f=ur();(f||!f&&e==="fixed")&&(a=o.offsetLeft,c=o.offsetTop)}return{width:i,height:s,x:a+me(t),y:c}}function Vn(t){var e,r=J(t),n=ve(t),o=(e=t.ownerDocument)==null?void 0:e.body,i=nt(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=nt(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-n.scrollLeft+me(t),c=-n.scrollTop;return Y(o||r).direction==="rtl"&&(a+=nt(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:c}}function he(t){var e=Y(t),r=e.overflow,n=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function vr(t){return["html","body","#document"].indexOf(G(t))>=0?t.ownerDocument.body:H(t)&&he(t)?t:vr(qt(t))}function Et(t,e){var r;e===void 0&&(e=[]);var n=vr(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),i=B(n),s=o?[i].concat(i.visualViewport||[],he(n)?n:[]):n,a=e.concat(s);return o?a:a.concat(Et(qt(s)))}function re(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Xn(t,e){var r=dt(t,!1,e==="fixed");return r.top=r.top+t.clientTop,r.left=r.left+t.clientLeft,r.bottom=r.top+t.clientHeight,r.right=r.left+t.clientWidth,r.width=t.clientWidth,r.height=t.clientHeight,r.x=r.left,r.y=r.top,r}function Ve(t,e,r){return e===sr?re(Un(t,r)):ot(e)?Xn(e,r):re(Vn(J(t)))}function qn(t){var e=Et(qt(t)),r=["absolute","fixed"].indexOf(Y(t).position)>=0,n=r&&H(t)?Ct(t):t;return ot(n)?e.filter(function(o){return ot(o)&&fr(o,n)&&G(o)!=="body"}):[]}function zn(t,e,r,n){var o=e==="clippingParents"?qn(t):[].concat(e),i=[].concat(o,[r]),s=i[0],a=i.reduce(function(c,f){var u=Ve(t,f,n);return c.top=nt(u.top,c.top),c.right=_t(u.right,c.right),c.bottom=_t(u.bottom,c.bottom),c.left=nt(u.left,c.left),c},Ve(t,s,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function mr(t){var e=t.reference,r=t.element,n=t.placement,o=n?z(n):null,i=n?vt(n):null,s=e.x+e.width/2-r.width/2,a=e.y+e.height/2-r.height/2,c;switch(o){case k:c={x:s,y:e.y-r.height};break;case F:c={x:s,y:e.y+e.height};break;case U:c={x:e.x+e.width,y:a};break;case I:c={x:e.x-r.width,y:a};break;default:c={x:e.x,y:e.y}}var f=o?de(o):null;if(f!=null){var u=f==="y"?"height":"width";switch(i){case lt:c[f]=c[f]-(e[u]/2-r[u]/2);break;case Pt:c[f]=c[f]+(e[u]/2-r[u]/2);break}}return c}function St(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=n===void 0?t.placement:n,i=r.strategy,s=i===void 0?t.strategy:i,a=r.boundary,c=a===void 0?dn:a,f=r.rootBoundary,u=f===void 0?sr:f,v=r.elementContext,h=v===void 0?yt:v,d=r.altBoundary,m=d===void 0?!1:d,l=r.padding,y=l===void 0?0:l,E=pr(typeof y!="number"?y:dr(y,Tt)),O=h===yt?vn:yt,g=t.rects.popper,p=t.elements[m?O:h],b=zn(ot(p)?p:p.contextElement||J(t.elements.popper),c,u,s),x=dt(t.elements.reference),w=mr({reference:x,element:g,placement:o}),D=re(Object.assign({},g,w)),C=h===yt?D:x,R={top:b.top-C.top+E.top,bottom:C.bottom-b.bottom+E.bottom,left:b.left-C.left+E.left,right:C.right-b.right+E.right},$=t.modifiersData.offset;if(h===yt&&$){var _=$[o];Object.keys(R).forEach(function(N){var V=[U,F].indexOf(N)>=0?1:-1,P=[k,F].indexOf(N)>=0?"y":"x";R[N]+=_[P]*V})}return R}function Gn(t,e){e===void 0&&(e={});var r=e,n=r.placement,o=r.boundary,i=r.rootBoundary,s=r.padding,a=r.flipVariations,c=r.allowedAutoPlacements,f=c===void 0?cr:c,u=vt(n),v=u?a?We:We.filter(function(m){return vt(m)===u}):Tt,h=v.filter(function(m){return f.indexOf(m)>=0});h.length===0&&(h=v);var d=h.reduce(function(m,l){return m[l]=St(t,{placement:l,boundary:o,rootBoundary:i,padding:s})[z(l)],m},{});return Object.keys(d).sort(function(m,l){return d[m]-d[l]})}function Yn(t){if(z(t)===fe)return[];var e=Mt(t);return[Ue(t),e,Ue(e)]}function Zn(t){var e=t.state,r=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!0:s,c=r.fallbackPlacements,f=r.padding,u=r.boundary,v=r.rootBoundary,h=r.altBoundary,d=r.flipVariations,m=d===void 0?!0:d,l=r.allowedAutoPlacements,y=e.options.placement,E=z(y),O=E===y,g=c||(O||!m?[Mt(y)]:Yn(y)),p=[y].concat(g).reduce(function(it,K){return it.concat(z(K)===fe?Gn(e,{placement:K,boundary:u,rootBoundary:v,padding:f,flipVariations:m,allowedAutoPlacements:l}):K)},[]),b=e.rects.reference,x=e.rects.popper,w=new Map,D=!0,C=p[0],R=0;R<p.length;R++){var $=p[R],_=z($),N=vt($)===lt,V=[k,F].indexOf(_)>=0,P=V?"width":"height",T=St(e,{placement:$,boundary:u,rootBoundary:v,altBoundary:h,padding:f}),A=V?N?U:I:N?F:k;b[P]>x[P]&&(A=Mt(A));var L=Mt(A),M=[];if(i&&M.push(T[_]<=0),a&&M.push(T[A]<=0,T[L]<=0),M.every(function(it){return it})){C=$,D=!1;break}w.set($,M)}if(D)for(var X=m?3:1,zt=function(K){var ht=p.find(function(Dt){var Q=w.get(Dt);if(Q)return Q.slice(0,K).every(function(Gt){return Gt})});if(ht)return C=ht,"break"},mt=X;mt>0;mt--){var At=zt(mt);if(At==="break")break}e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}}const Kn={name:"flip",enabled:!0,phase:"main",fn:Zn,requiresIfExists:["offset"],data:{_skip:!1}};function Xe(t,e,r){return r===void 0&&(r={x:0,y:0}),{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function qe(t){return[k,U,F,I].some(function(e){return t[e]>=0})}function Jn(t){var e=t.state,r=t.name,n=e.rects.reference,o=e.rects.popper,i=e.modifiersData.preventOverflow,s=St(e,{elementContext:"reference"}),a=St(e,{altBoundary:!0}),c=Xe(s,n),f=Xe(a,o,i),u=qe(c),v=qe(f);e.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:u,hasPopperEscaped:v},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":v})}const Qn={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Jn};function to(t,e,r){var n=z(t),o=[I,k].indexOf(n)>=0?-1:1,i=typeof r=="function"?r(Object.assign({},e,{placement:t})):r,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[I,U].indexOf(n)>=0?{x:a,y:s}:{x:s,y:a}}function eo(t){var e=t.state,r=t.options,n=t.name,o=r.offset,i=o===void 0?[0,0]:o,s=cr.reduce(function(u,v){return u[v]=to(v,e.rects,i),u},{}),a=s[e.placement],c=a.x,f=a.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=f),e.modifiersData[n]=s}const ro={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:eo};function no(t){var e=t.state,r=t.name;e.modifiersData[r]=mr({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const oo={name:"popperOffsets",enabled:!0,phase:"read",fn:no,data:{}};function io(t){return t==="x"?"y":"x"}function ao(t){var e=t.state,r=t.options,n=t.name,o=r.mainAxis,i=o===void 0?!0:o,s=r.altAxis,a=s===void 0?!1:s,c=r.boundary,f=r.rootBoundary,u=r.altBoundary,v=r.padding,h=r.tether,d=h===void 0?!0:h,m=r.tetherOffset,l=m===void 0?0:m,y=St(e,{boundary:c,rootBoundary:f,padding:v,altBoundary:u}),E=z(e.placement),O=vt(e.placement),g=!O,p=de(E),b=io(p),x=e.modifiersData.popperOffsets,w=e.rects.reference,D=e.rects.popper,C=typeof l=="function"?l(Object.assign({},e.rects,{placement:e.placement})):l,R=typeof C=="number"?{mainAxis:C,altAxis:C}:Object.assign({mainAxis:0,altAxis:0},C),$=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,_={x:0,y:0};if(x){if(i){var N,V=p==="y"?k:I,P=p==="y"?F:U,T=p==="y"?"height":"width",A=x[p],L=A+y[V],M=A-y[P],X=d?-D[T]/2:0,zt=O===lt?w[T]:D[T],mt=O===lt?-D[T]:-w[T],At=e.elements.arrow,it=d&&At?pe(At):{width:0,height:0},K=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:lr(),ht=K[V],Dt=K[P],Q=xt(0,w[T],it[T]),Gt=g?w[T]/2-X-Q-ht-R.mainAxis:zt-Q-ht-R.mainAxis,hr=g?-w[T]/2+X+Q+Dt+R.mainAxis:mt+Q+Dt+R.mainAxis,Yt=e.elements.arrow&&Ct(e.elements.arrow),yr=Yt?p==="y"?Yt.clientTop||0:Yt.clientLeft||0:0,ye=(N=$==null?void 0:$[p])!=null?N:0,gr=A+Gt-ye-yr,br=A+hr-ye,ge=xt(d?_t(L,gr):L,A,d?nt(M,br):M);x[p]=ge,_[p]=ge-A}if(a){var be,xr=p==="x"?k:I,Er=p==="x"?F:U,tt=x[b],$t=b==="y"?"height":"width",xe=tt+y[xr],Ee=tt-y[Er],Zt=[k,I].indexOf(E)!==-1,we=(be=$==null?void 0:$[b])!=null?be:0,Oe=Zt?xe:tt-w[$t]-D[$t]-we+R.altAxis,Pe=Zt?tt+w[$t]+D[$t]-we-R.altAxis:Ee,Se=d&&Zt?Dn(Oe,tt,Pe):xt(d?Oe:xe,tt,d?Pe:Ee);x[b]=Se,_[b]=Se-tt}e.modifiersData[n]=_}}const so={name:"preventOverflow",enabled:!0,phase:"main",fn:ao,requiresIfExists:["offset"]};function co(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function uo(t){return t===B(t)||!H(t)?ve(t):co(t)}function fo(t){var e=t.getBoundingClientRect(),r=pt(e.width)/t.offsetWidth||1,n=pt(e.height)/t.offsetHeight||1;return r!==1||n!==1}function lo(t,e,r){r===void 0&&(r=!1);var n=H(e),o=H(e)&&fo(e),i=J(e),s=dt(t,o,r),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&((G(e)!=="body"||he(i))&&(a=uo(e)),H(e)?(c=dt(e,!0),c.x+=e.clientLeft,c.y+=e.clientTop):i&&(c.x=me(i))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function po(t){var e=new Map,r=new Set,n=[];t.forEach(function(i){e.set(i.name,i)});function o(i){r.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(a){if(!r.has(a)){var c=e.get(a);c&&o(c)}}),n.push(i)}return t.forEach(function(i){r.has(i.name)||o(i)}),n}function vo(t){var e=po(t);return Pn.reduce(function(r,n){return r.concat(e.filter(function(o){return o.phase===n}))},[])}function mo(t){var e;return function(){return e||(e=new Promise(function(r){Promise.resolve().then(function(){e=void 0,r(t())})})),e}}function ho(t){var e=t.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(e).map(function(r){return e[r]})}var ze={placement:"bottom",modifiers:[],strategy:"absolute"};function Ge(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++)e[r]=arguments[r];return!e.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function yo(t){t===void 0&&(t={});var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,o=e.defaultOptions,i=o===void 0?ze:o;return function(a,c,f){f===void 0&&(f=i);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},ze,i),modifiersData:{},elements:{reference:a,popper:c},attributes:{},styles:{}},v=[],h=!1,d={state:u,setOptions:function(E){var O=typeof E=="function"?E(u.options):E;l(),u.options=Object.assign({},i,u.options,O),u.scrollParents={reference:ot(a)?Et(a):a.contextElement?Et(a.contextElement):[],popper:Et(c)};var g=vo(ho([].concat(n,u.options.modifiers)));return u.orderedModifiers=g.filter(function(p){return p.enabled}),m(),d.update()},forceUpdate:function(){if(!h){var E=u.elements,O=E.reference,g=E.popper;if(Ge(O,g)){u.rects={reference:lo(O,Ct(g),u.options.strategy==="fixed"),popper:pe(g)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(R){return u.modifiersData[R.name]=Object.assign({},R.data)});for(var p=0;p<u.orderedModifiers.length;p++){if(u.reset===!0){u.reset=!1,p=-1;continue}var b=u.orderedModifiers[p],x=b.fn,w=b.options,D=w===void 0?{}:w,C=b.name;typeof x=="function"&&(u=x({state:u,options:D,name:C,instance:d})||u)}}}},update:mo(function(){return new Promise(function(y){d.forceUpdate(),y(u)})}),destroy:function(){l(),h=!0}};if(!Ge(a,c))return d;d.setOptions(f).then(function(y){!h&&f.onFirstUpdate&&f.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var E=y.name,O=y.options,g=O===void 0?{}:O,p=y.effect;if(typeof p=="function"){var b=p({state:u,name:E,instance:d,options:g}),x=function(){};v.push(b||x)}})}function l(){v.forEach(function(y){return y()}),v=[]}return d}}var go=[Wn,oo,Ln,Tn,ro,Kn,so,Mn,Qn],bo=yo({defaultModifiers:go});function xo(t){return typeof t=="function"?t():t}const Eo=Rt(function(e,r){const{children:n,container:o,disablePortal:i=!1}=e,[s,a]=ct(null),c=ft(Re(n)?tr(n):null,r);return Ot(()=>{i||a(xo(o)||document.body)},[o,i]),Ot(()=>{if(s&&!i)return Ae(r,s),()=>{Ae(r,null)}},[r,s,i]),i?Re(n)?Ze(n,{ref:c}):n:s&&kr(n,s)});function wo(t){return $r("MuiPopper",t)}Nr("MuiPopper",["root"]);function Oo(t,e){if(e==="ltr")return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}function ne(t){return typeof t=="function"?t():t}function Po(t){return t.nodeType!==void 0}const So=t=>{const{classes:e}=t;return jr({root:["root"]},wo,e)},Ro={},To=Rt(function(e,r){const{anchorEl:n,children:o,direction:i,disablePortal:s,modifiers:a,open:c,placement:f,popperOptions:u,popperRef:v,slotProps:h={},slots:d={},TransitionProps:m,ownerState:l,...y}=e,E=q(null),O=ft(E,r),g=q(null),p=ft(g,v),b=q(p);Ot(()=>{b.current=p},[p]),Cr(v,()=>g.current,[]);const x=Oo(f,i),[w,D]=ct(x),[C,R]=ct(ne(n));wt(()=>{g.current&&g.current.forceUpdate()}),wt(()=>{n&&R(ne(n))},[n]),Ot(()=>{if(!C||!c)return;const P=L=>{D(L.placement)};let T=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:L})=>{P(L)}}];a!=null&&(T=T.concat(a)),u&&u.modifiers!=null&&(T=T.concat(u.modifiers));const A=bo(C,E.current,{placement:x,...u,modifiers:T});return b.current(A),()=>{A.destroy(),b.current(null)}},[C,s,a,c,u,x]);const $={placement:w};m!==null&&($.TransitionProps=m);const _=So(e),N=d.root??"div",V=Xr({elementType:N,externalSlotProps:h.root,externalForwardedProps:y,additionalProps:{role:"tooltip",ref:O},ownerState:e,className:_.root});return ut.jsx(N,{...V,children:typeof o=="function"?o($):o})}),Co=Rt(function(e,r){const{anchorEl:n,children:o,container:i,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:f,open:u,placement:v="bottom",popperOptions:h=Ro,popperRef:d,style:m,transition:l=!1,slotProps:y={},slots:E={},...O}=e,[g,p]=ct(!0),b=()=>{p(!1)},x=()=>{p(!0)};if(!c&&!u&&(!l||g))return null;let w;if(i)w=i;else if(n){const R=ne(n);w=R&&Po(R)?Ce(R).body:Ce(null).body}const D=!u&&c&&(!l||g)?"none":void 0,C=l?{in:u,onEnter:b,onExited:x}:void 0;return ut.jsx(Eo,{disablePortal:a,container:w,children:ut.jsx(To,{anchorEl:n,direction:s,disablePortal:a,modifiers:f,ref:r,open:l?!g:u,placement:v,popperOptions:h,popperRef:d,slotProps:y,slots:E,...O,style:{position:"fixed",top:0,left:0,display:D,...m},TransitionProps:C,children:o})})}),Ao=_r(Co,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({}),Ho=Rt(function(e,r){const n=un(),o=Mr({props:e,name:"MuiPopper"}),{anchorEl:i,component:s,components:a,componentsProps:c,container:f,disablePortal:u,keepMounted:v,modifiers:h,open:d,placement:m,popperOptions:l,popperRef:y,transition:E,slots:O,slotProps:g,...p}=o,b=(O==null?void 0:O.root)??(a==null?void 0:a.Root),x={anchorEl:i,container:f,disablePortal:u,keepMounted:v,modifiers:h,open:d,placement:m,popperOptions:l,popperRef:y,transition:E,...p};return ut.jsx(Ao,{as:s,direction:n?"rtl":"ltr",slots:{root:b},slotProps:g??c,...x,ref:r})});function Fo(t,e){const{className:r,elementType:n,ownerState:o,externalForwardedProps:i,internalForwardedProps:s,shouldForwardComponentProp:a=!1,...c}=e,{component:f,slots:u={[t]:void 0},slotProps:v={[t]:void 0},...h}=i,d=u[t]||n,m=Qe(v[t],o),{props:{component:l,...y},internalRef:E}=Je({className:r,...c,externalForwardedProps:t==="root"?h:void 0,externalSlotProps:m}),O=ft(E,m==null?void 0:m.ref,e.ref),g=t==="root"?l||f:l,p=Ke(d,{...t==="root"&&!f&&!u[t]&&s,...t!=="root"&&!u[t]&&s,...y,...g&&!a&&{as:g},...g&&a&&{component:g},ref:O},o);return[d,p]}export{Be as G,Ho as P,Wo as R,Z as T,qr as _,zr as a,ko as b,Io as c,Ot as d,_o as e,fn as f,ft as g,Bo as h,Fo as i,un as j,Fr as k,Le as l,tr as m,ln as n,Ce as o,Lo as p,Vr as q,Qe as r,Ae as s,Eo as t,Xr as u,wo as v,oe as w,ar as x,Br as y};