@nebula.js/sn-pivot-table 3.9.0 → 3.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v3.9.
|
|
2
|
+
* @nebula.js/sn-pivot-table v3.9.1
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -98,7 +98,7 @@ function Tl(e,t){let n;return n=t?Il(e).withConfig({displayName:t.label,shouldFo
|
|
|
98
98
|
animation-iteration-count: infinite;
|
|
99
99
|
animation-delay: 200ms;
|
|
100
100
|
}
|
|
101
|
-
`),_p.rippleVisible,zp,550,(({theme:e})=>e.transitions.easing.easeInOut),_p.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_p.child,_p.childLeaving,jp,550,(({theme:e})=>e.transitions.easing.easeInOut),_p.childPulsate,$p,(({theme:e})=>e.transitions.easing.easeInOut));var Hp=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Bo(n,Op),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=x.useRef(0),f=x.useRef(null),h=x.useRef(null);x.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,dc.jsx(Bp,{classes:{ripple:qd(o.ripple,_p.ripple),rippleVisible:qd(o.rippleVisible,_p.rippleVisible),ripplePulsate:qd(o.ripplePulsate,_p.ripplePulsate),child:qd(o.child,_p.child),childLeaving:qd(o.childLeaving,_p.childLeaving),childPulsate:qd(o.childPulsate,_p.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),dc.jsx(Gp,Go({className:qd(_p.root,o.root,i),ref:h},a,{children:dc.jsx(xp,{component:null,exit:!0,children:l})}))}));function Wp(e){return id("MuiButtonBase",e)}var Vp=ad("MuiButtonBase",["root","disabled","focusVisible"]);const Yp=["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"],Up=Od("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"},[`&.${Vp.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kp=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=Bo(n,Yp),O=x.useRef(null),T=x.useRef(null),k=Hc(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=ed(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Bc((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Bc((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Bc((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Bc((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Hc(t,z,O),ue=Go({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=qs({root:["root",t&&"disabled",n&&"focusVisible"]},Wp,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return dc.jsxs(Up,Go({as:ae,className:qd(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?dc.jsx(Hp,Go({ref:k,center:o},M)):null]}))}));var Xp=Kp;function Jp(e){return id("MuiTypography",e)}ad("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Zp=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Qp=Od("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${kc(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Go({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),ef={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nf=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiTypography"}),r=(e=>tf[e]||e)(n.color),o=mc(Go({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=ef}=o,f=Bo(o,Zp),h=Go({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||ef[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return qs({root:["root",i,"inherit"!==e.align&&`align${kc(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Jp,a)})(h);return dc.jsx(Qp,Go({as:m,ref:t,ownerState:h,className:qd(g.root,a)},f))}));var rf=nf;const of=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function af(e){const t=[],n=[];return Array.from(e.querySelectorAll(of)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function lf(){return!0}function sf(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=af,isEnabled:a=lf,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=xs(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return dc.jsxs(x.Fragment,{children:[dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const uf=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=xs(x.isValidElement(n)?n.ref:null,t);if(vs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vs((()=>{if(i&&!o)return bs(t,i),()=>{bs(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return dc.jsx(x.Fragment,{children:n})}return dc.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));function cf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function df(e){return parseInt(gs(e).getComputedStyle(e).paddingRight,10)||0}function pf(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&cf(e,o)}))}function ff(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function hf(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ms(e);return t.body===e?gs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ts(ms(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${df(r)+e}px`;const t=ms(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${df(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ms(r).body;else{const t=r.parentElement,n=gs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const mf=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&cf(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);pf(t,e.mount,e.modalRef,r,!0);const o=ff(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ff(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=hf(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ff(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&cf(e.modalRef,t),pf(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&cf(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function gf(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=mf,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=xs(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=ys((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ms(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=ys((e=>{f.current=e,e&&(c&&w()?E():h.current&&cf(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ip(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Jr({},n,t);return Jr({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Jr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:fs((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:fs((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const bf=["onChange","maxRows","minRows","style","value"];function vf(e){return parseInt(e,10)||0}const yf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function xf(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Sf=x.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=oo(e,bf),{current:s}=x.useRef(null!=a),u=x.useRef(null),c=xs(t,u),d=x.useRef(null),p=x.useRef(0),[f,h]=x.useState({outerHeightStyle:0}),m=x.useCallback((()=>{const t=u.current,n=gs(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=vf(n.paddingBottom)+vf(n.paddingTop),s=vf(n.borderBottomWidth)+vf(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=x.useCallback((()=>{const e=m();xf(e)||h((t=>g(t,e)))}),[m]);vs((()=>{const e=()=>{p.current=0,(()=>{const e=m();xf(e)||F.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=hs(e),n=u.current,r=gs(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),vs((()=>{b()})),x.useEffect((()=>{p.current=0}),[a]);return dc.jsxs(x.Fragment,{children:[dc.jsx("textarea",Jr({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Jr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),dc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Jr({},yf,i,{paddingTop:0,paddingBottom:0})})]})}));function Ef({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Cf=x.createContext(void 0);function wf(){return x.useContext(Cf)}function Rf(e){return dc.jsx(pc,Go({},e,{defaultTheme:Ad,themeId:$o}))}function Lf(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Af(e,t=!1){return e&&(Lf(e.value)&&""!==e.value||t&&Lf(e.defaultValue)&&""!==e.defaultValue)}function If(e){return id("MuiInputBase",e)}var Mf=ad("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Df=["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"],Pf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${kc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_f=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Of=Od("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pf})((({theme:e,ownerState:t})=>Go({},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",[`&.${Mf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Go({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Tf=Od("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_f})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Go({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Go({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] + .${Mf.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Mf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),kf=dc.jsx(Rf,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qf=x.forwardRef((function(e,t){var n;const r=Md({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:O,slotProps:T={},slots:k={},startAdornment:q,type:N="text",value:F}=r,z=Bo(r,Df),j=null!=b.value?b.value:F,{current:$}=x.useRef(null!=j),G=x.useRef(),B=x.useCallback((e=>{}),[]),H=Hc(G,v,b.ref,B),[W,V]=x.useState(!1),Y=wf(),U=Ef({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,x.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=x.useCallback((e=>{Af(e)?K&&K():X&&X()}),[K,X]);Fc((()=>{$&&J({value:j})}),[j,J,$]);x.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Go(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Sf);x.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Go({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return qs({root:["root",`color${kc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${kc(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},If,t)})(ee),ne=k.root||s.Root||Of,re=T.root||u.root||{},oe=k.input||s.Input||Tf;return Q=Go({},Q,null!=(n=T.input)?n:u.input),dc.jsxs(x.Fragment,{children:[!p&&kf,dc.jsxs(ne,Go({},re,!Ap(ne)&&{ownerState:Go({},ee,re.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:qd(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[q,dc.jsx(Cf.Provider,{value:null,children:dc.jsx(oe,Go({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!Ap(oe)&&{as:Z,ownerState:Go({},ee,Q.ownerState)},{ref:H,className:qd(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(jo(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(Go({},U,{startAdornment:q})):null]}))]})}));var Nf=qf;function Ff(e){return id("MuiInput",e)}var zf=Go({},Mf,ad("MuiInput",["root","underline","input"]));function jf(e){return id("MuiOutlinedInput",e)}var $f=Go({},Mf,ad("MuiOutlinedInput",["root","notchedOutline","input"]));function Gf(e){return id("MuiFilledInput",e)}var Bf=Go({},Mf,ad("MuiFilledInput",["root","underline","input"])),Hf=function(e,t){function n(n,r){return dc.jsx($d,Go({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=$d.muiName,x.memo(x.forwardRef(n))}(dc.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Wf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Vf={entering:{opacity:1},entered:{opacity:1}},Yf=x.forwardRef((function(e,t){const n=Id(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=hp}=e,v=Bo(e,Wf),y=x.useRef(null),S=Hc(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Sp(e);const r=Ep({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=Ep({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return dc.jsx(b,Go({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Go({style:Go({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Vf[e],m,a.props.style),ref:S},t))}))}));var Uf=Yf;function Kf(e){return id("MuiBackdrop",e)}ad("MuiBackdrop",["root","invisible"]);const Xf=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Jf=Od("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Go({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"}))),Zf=x.forwardRef((function(e,t){var n,r,o;const i=Md({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Uf,transitionDuration:g}=i,b=Bo(i,Xf),v=Go({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return qs({root:["root",n&&"invisible"]},Kf,t)})(v),x=null!=(n=f.root)?n:c.root;return dc.jsx(m,Go({in:p,timeout:g},b,{children:dc.jsx(Jf,Go({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:qd(y.root,l,null==x?void 0:x.className),ownerState:Go({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Qf=Zf;var eh=ad("MuiBox",["root"]);const th=Ld(),nh=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Tl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ku);return x.forwardRef((function(e,a){const l=tc(n),s=mc(e),{className:u,component:c="div"}=s,d=oo(s,gc);return dc.jsx(i,Jr({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:$o,defaultTheme:th,defaultClassName:eh.root,generateClassName:rd.generate});var rh=nh;function oh(e){return id("MuiButton",e)}var ih=ad("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var ah=x.createContext({});var lh=x.createContext(void 0);const sh=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uh=e=>Go({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ch=Od(Xp,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${kc(n.color)}`],t[`size${kc(n.size)}`],t[`${n.variant}Size${kc(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Go({},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":Go({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pc(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:Pc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Go({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ih.focusVisible}`]:Go({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ih.disabled}`]:Go({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Pc(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ih.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ih.disabled}`]:{boxShadow:"none"}})),dh=Od("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${kc(n.size)}`]]}})((({ownerState:e})=>Go({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},uh(e)))),ph=Od("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${kc(n.size)}`]]}})((({ownerState:e})=>Go({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},uh(e)))),fh=x.forwardRef((function(e,t){const n=x.useContext(ah),r=x.useContext(lh),o=Md({props:td(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Bo(o,sh),S=Go({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Go({},a,qs({root:["root",i,`${i}${kc(t)}`,`size${kc(o)}`,`${i}Size${kc(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${kc(o)}`],endIcon:["endIcon",`iconSize${kc(o)}`]},oh,a))})(S),C=g&&dc.jsx(dh,{className:E.startIcon,ownerState:S,children:g}),w=p&&dc.jsx(ph,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return dc.jsxs(ch,Go({ownerState:S,className:qd(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:qd(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));var hh=fh;function mh(e){return id("MuiModal",e)}ad("MuiModal",["root","hidden","backdrop"]);const gh=["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"],bh=Od("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Go({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),vh=Od(Qf,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yh=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Md({name:"MuiModal",props:e}),{BackdropComponent:u=vh,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=Bo(s,gh),_=Go({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=gf(Go({},_,{rootRef:t})),j=Go({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return qs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},mh,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:bh,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=Pp({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:qd(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=Pp({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Go({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:qd(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?dc.jsx(uf,{ref:q,container:h,disablePortal:E,children:dc.jsxs(B,Go({},Y,{children:[!R&&u?dc.jsx(H,Go({},U)):null,dc.jsx(sf,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var xh=yh;function Sh(e){return id("MuiDivider",e)}var Eh=ad("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ch=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wh=Od("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Go({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Pc(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Go({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Go({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Go({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Go({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Rh=Od("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Go({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Lh=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Bo(n,Ch),h=Go({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return qs({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Sh,r)})(h);return dc.jsx(wh,Go({as:a,className:qd(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?dc.jsx(Rh,{className:m.wrapper,ownerState:h,children:o}):null}))}));Lh.muiSkipListHighlight=!0;var Ah=Lh;const Ih=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mh=Od(Of,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pf(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Go({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Bf.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Bf.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${Bf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bf.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})`:o}`,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(.${Bf.disabled}, .${Bf.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bf.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Go({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Dh=Od(Tf,{name:"MuiFilledInput",slot:"Input",overridesResolver:_f})((({theme:e,ownerState:t})=>Go({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Ph=x.forwardRef((function(e,t){var n,r,o,i;const a=Md({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Bo(a,Ih),g=Go({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Go({},t,qs({root:["root",!n&&"underline"],input:["input"]},Gf,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Tc(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Mh,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Dh;return dc.jsx(Nf,Go({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Ph.muiName="Input";var _h=Ph;const Oh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Th(e){return`scale(${e}, ${e**2})`}const kh={entering:{opacity:1,transform:Th(1)},entered:{opacity:1,transform:"none"}},qh="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Nh=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=hp}=e,g=Bo(e,Oh),b=x.useRef(),v=x.useRef(),y=Id(),S=x.useRef(null),E=Hc(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Sp(e);const{duration:n,delay:r,easing:o}=Ep({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:qh?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=Ep({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:qh?o:.666*o,delay:qh?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Th(.75),c&&c(e)})),M=C(d);return x.useEffect((()=>()=>{clearTimeout(b.current)}),[]),dc.jsx(m,Go({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Go({style:Go({opacity:0,transform:Th(.75),visibility:"exited"!==e||a?void 0:"hidden"},kh[e],f,o.props.style),ref:E},t))}))}));Nh.muiSupportAuto=!0;var Fh=Nh;const zh=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],jh=Od(Of,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pf(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Go({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"},[`&.${zf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zf.disabled}, .${zf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${zf.disabled}:before`]:{borderBottomStyle:"dotted"}})})),$h=Od(Tf,{name:"MuiInput",slot:"Input",overridesResolver:_f})({}),Gh=x.forwardRef((function(e,t){var n,r,o,i;const a=Md({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Bo(a,zh),b=(e=>{const{classes:t,disableUnderline:n}=e;return Go({},t,qs({root:["root",!n&&"underline"],input:["input"]},Ff,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Tc(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:jh,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:$h;return dc.jsx(Nf,Go({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));Gh.muiName="Input";var Bh=Gh;function Hh(e){return id("MuiLink",e)}var Wh=ad("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Vh={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Yh=({theme:e,ownerState:t})=>{const n=(e=>Vh[e]||e)(t.color),r=ou(e,`palette.${n}`,!1)||t.color,o=ou(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Pc(r,.4)};const Uh=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Kh=Od(rf,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${kc(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Go({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Go({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Yh({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{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"},[`&.${Wh.focusVisible}`]:{outline:"auto"}}))),Xh=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Bo(n,Uh),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ed(),[b,v]=x.useState(!1),y=Hc(t,g),S=Go({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return qs({root:["root",`underline${kc(o)}`,"button"===n&&"button",r&&"focusVisible"]},Hh,t)})(S);return dc.jsx(Kh,Go({color:o,className:qd(E.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Vh).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Jh=Xh;var Zh=x.createContext({});function Qh(e){return id("MuiList",e)}ad("MuiList",["root","padding","dense","subheader"]);const em=["children","className","component","dense","disablePadding","subheader"],tm=Od("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Go({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var nm=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Bo(n,em),c=x.useMemo((()=>({dense:a})),[a]),d=Go({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return qs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Qh,t)})(d);return dc.jsx(Zh.Provider,{value:c,children:dc.jsxs(tm,Go({as:i,className:qd(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function rm(e){return id("MuiListItemIcon",e)}var om=ad("MuiListItemIcon",["root","alignItemsFlexStart"]);const im=["className"],am=Od("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Go({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var lm=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Bo(n,im),i=Go({},n,{alignItems:x.useContext(Zh).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return qs({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rm,n)})(i);return dc.jsx(am,Go({className:qd(a.root,r),ownerState:i,ref:t},o))}));var sm=ad("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const um=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pm(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function fm(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&pm(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var hm=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Bo(e,um),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Fc((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(qc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Hc(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return dc.jsx(nm,Go({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=qc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fm(t,r,s,l,cm);else if("ArrowUp"===n)e.preventDefault(),fm(t,r,s,l,dm);else if("Home"===n)e.preventDefault(),fm(t,null,s,l,cm);else if("End"===n)e.preventDefault(),fm(t,null,s,l,dm);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&pm(r,o);o.previousKeyMatched&&(s||fm(t,r,!1,l,cm,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function mm(e){return id("MuiPopover",e)}ad("MuiPopover",["root","paper"]);const gm=["onEntering"],bm=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vm=["slotProps"];function ym(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function xm(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Sm(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Em(e){return"function"==typeof e?e():e}const Cm=Od(xh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wm=Od(Lp,{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});var Rm=x.forwardRef((function(e,t){var n,r,o;const i=Md({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Fh,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=Bo(i.TransitionProps,gm),A=Bo(i,bm),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=Hc(M,I.ref),P=Go({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"]},mm,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=Em(l),t=(e&&1===e.nodeType?e:qc(M.current).body).getBoundingClientRect();return{top:t.top+ym(t,s.vertical),left:t.left+xm(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:ym(e,S.vertical),horizontal:xm(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Sm(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Nc(Em(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Sm(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=Nc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?qc(Em(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Cm,G=null!=(o=null==v?void 0:v.paper)?o:wm,B=Pp({elementType:G,externalSlotProps:Go({},I,{style:q?I.style:Go({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:qd(_.paper,null==I?void 0:I.className)}),H=Pp({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:qd(_.root,p)}),{slotProps:W}=H,V=Bo(H,vm);return dc.jsx($,Go({},V,!Ap($)&&{slotProps:W,disableScrollLock:R},{children:dc.jsx(E,Go({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:dc.jsx(G,Go({},B,{children:d}))}))}))}));function Lm(e){return id("MuiMenu",e)}ad("MuiMenu",["root","paper","list"]);const Am=["onEntering"],Im=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Mm={vertical:"top",horizontal:"right"},Dm={vertical:"top",horizontal:"left"},Pm=Od(Rm,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_m=Od(wm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Om=Od(hm,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Tm=x.forwardRef((function(e,t){var n,r;const o=Md({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Bo(o.TransitionProps,Am),S=Bo(o,Im),E=Id(),C="rtl"===E.direction,w=Go({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"],list:["list"]},Lm,t)})(w),L=i&&!s&&d,A=x.useRef(null);let I=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:_m,D=null!=(r=v.paper)?r:p,P=Pp({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=Pp({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return dc.jsx(Pm,Go({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Mm:Dm,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:Go({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},y),ownerState:w},S,{classes:f,children:dc.jsx(Om,Go({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:qd(R.list,u.className),children:a}))}))}));function km(e){return id("MuiMenuItem",e)}var qm=ad("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Nm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Fm=Od(Xp,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Go({},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"}},[`&.${qm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pc(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pc(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})`:Pc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Eh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Eh.inset}`]:{marginLeft:52},[`& .${sm.root}`]:{marginTop:0,marginBottom:0},[`& .${sm.inset}`]:{paddingLeft:36},[`& .${om.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Go({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${om.root} svg`]:{fontSize:"1.25rem"}}))));var zm=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Bo(n,Nm),f=x.useContext(Zh),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);Fc((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Go({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Go({},a,qs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},km,a))})(n),v=Hc(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),dc.jsx(Zh.Provider,{value:h,children:dc.jsx(Fm,Go({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:qd(b.focusVisible,s),className:qd(b.root,d)},p,{ownerState:g,classes:b}))})}));function jm(e){return id("MuiNativeSelect",e)}var $m=ad("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Gm=["className","disabled","error","IconComponent","inputRef","variant"],Bm=({ownerState:e,theme:t})=>Go({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Go({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${$m.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Hm=Od("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dd,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$m.multiple}`]:t.multiple}]}})(Bm),Wm=({ownerState:e,theme:t})=>Go({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$m.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Vm=Od("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${kc(n.variant)}`],n.open&&t.iconOpen]}})(Wm),Ym=x.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Bo(e,Gm),u=Go({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return qs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${kc(n)}`,i&&"iconOpen",r&&"disabled"]},jm,t)})(u);return dc.jsxs(x.Fragment,{children:[dc.jsx(Hm,Go({ownerState:u,className:qd(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:dc.jsx(Vm,{as:i,ownerState:u,className:c.icon})]})}));var Um,Km=Ym;const Xm=["children","classes","className","label","notched"],Jm=Od("fieldset",{shouldForwardProp:Dd})({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%"}),Zm=Od("legend",{shouldForwardProp:Dd})((({ownerState:e,theme:t})=>Go({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&&Go({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})}))));const Qm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],eg=Od(Of,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pf})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Go({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$f.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$f.focused} .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$f.error} .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$f.disabled} .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Go({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),tg=Od((function(e){const{className:t,label:n,notched:r}=e,o=Bo(e,Xm),i=null!=n&&""!==n,a=Go({},e,{notched:r,withLabel:i});return dc.jsx(Jm,Go({"aria-hidden":!0,className:t,ownerState:a},o,{children:dc.jsx(Zm,{ownerState:a,children:i?dc.jsx("span",{children:n}):Um||(Um=dc.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"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}})),ng=Od(Tf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_f})((({theme:e,ownerState:t})=>Go({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),rg=x.forwardRef((function(e,t){var n,r,o,i,a;const l=Md({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Bo(l,Qm),b=(e=>{const{classes:t}=e;return Go({},t,qs({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jf,t))})(l),v=wf(),y=Ef({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Go({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),E=null!=(n=null!=(r=h.root)?r:s.Root)?n:eg,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:ng;return dc.jsx(Nf,Go({slots:{root:E,input:C},renderSuffix:e=>dc.jsx(tg,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=dc.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Go({},b,{notchedOutline:null})}))}));rg.muiName="Input";var og=rg;function ig(e){return id("MuiSelect",e)}var ag,lg=ad("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const sg=["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"],ug=Od("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${lg.select}`]:t.select},{[`&.${lg.select}`]:t[n.variant]},{[`&.${lg.error}`]:t.error},{[`&.${lg.multiple}`]:t.multiple}]}})(Bm,{[`&.${lg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cg=Od("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${kc(n.variant)}`],n.open&&t.iconOpen]}})(Wm),dg=Od("input",{shouldForwardProp:e=>Pd(e)&&"classes"!==e,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 pg(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function fg(e){return null==e||"string"==typeof e&&!e.trim()}const hg=x.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,O=Bo(e,sg),[T,k]=Gc({controlled:P,default:c,name:"Select"}),[q,N]=Gc({controlled:L,default:u,name:"Select"}),F=x.useRef(null),z=x.useRef(null),[j,$]=x.useState(null),{current:G}=x.useRef(null!=L),[B,H]=x.useState(),W=Hc(t,m),V=x.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;x.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:T})),[T]),x.useEffect((()=>{u&&q&&j&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[j,a]),x.useEffect((()=>{i&&z.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=qc(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(H(a?null:Y.clientWidth),N(e))},K=x.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(k(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),E(o,e)}v||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Af({value:T})||p)&&(I?Z=I(T):te=!0);const ne=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(jo(2));t=T.some((t=>pg(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=pg(T,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&G&&j&&(oe=Y.clientWidth),re=void 0!==D?D:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=Go({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return qs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${kc(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},ig,t)})(ae),se=Go({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=$c();return dc.jsxs(x.Fragment,{children:[dc.jsx(ug,Go({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),S(e))},onFocus:w},M,{ownerState:ae,className:qd(M.className,le.select,s),id:ie,children:fg(Z)?ag||(ag=dc.jsx("span",{className:"notranslate",children:""})):Z})),dc.jsx(dg,Go({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),dc.jsx(cg,{as:h,className:le.icon,ownerState:ae}),dc.jsx(Tm,Go({id:`menu-${y||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Go({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Go({},b.slotProps,{paper:Go({},se,{style:Go({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var mg=hg;const gg=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bg=["root"],vg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Dd(e)&&"variant"!==e,slot:"Root"},yg=Od(Bh,vg)(""),xg=Od(og,vg)(""),Sg=Od(_h,vg)(""),Eg=x.forwardRef((function(e,t){const n=Md({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Hf,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Bo(n,gg),L=b?Km:mg,A=Ef({props:n,muiFormControl:wf(),states:["variant","error"]}),I=A.variant||w,M=Go({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=Bo(D,bg),_=d||{standard:dc.jsx(yg,{ownerState:M}),outlined:dc.jsx(xg,{label:f,ownerState:M}),filled:dc.jsx(Sg,{ownerState:M})}[I],O=Hc(t,_.ref);return dc.jsx(x.Fragment,{children:x.cloneElement(_,Go({inputComponent:L,inputProps:Go({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:Go({id:c},C)},p,{classes:p?Tc(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:qd(_.props.className,a,D.root)},!d&&{variant:I},R))})}));Eg.muiName="Select";var Cg=Eg,wg=(e={})=>S.createElement(Lo,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:so.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Rg={MuiAccordion:{styleOverrides:{root:{backgroundColor:so.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:so.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(Co,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${so.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${so.MISC_FOCUS_BORDER}`,borderRadius:ho,backgroundColor:so.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${so.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:so.WHITE,color:so.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:ho},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:so.GREYSCALE_0_15,backgroundColor:so.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${so.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:so.GREEN_PALE},"&:active":{backgroundColor:so.GREEN_DARK},"&.Mui-focusVisible":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:so.BLUE_PALE},"&:active":{backgroundColor:so.BLUE_DARK},"&.Mui-focusVisible":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ho,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:so.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:so.GREYSCALE_0_15,backgroundColor:so.GREYSCALE_100_60,"&:active":{backgroundColor:so.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${so.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:so.PURPLE,"&.Mui-focusVisible":{borderColor:so.PURPLE,boxShadow:`0 0 0 3px ${Pc(so.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:so.GREEN,"&.Mui-focusVisible":{borderColor:so.GREEN,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:so.BLUE,"&.Mui-focusVisible":{borderColor:so.BLUE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:so.ORANGE,"&.Mui-focusVisible":{borderColor:so.ORANGE,boxShadow:`0 0 0 3px ${Pc(so.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:so.RED,"&.Mui-focusVisible":{borderColor:so.RED,boxShadow:`0 0 0 3px ${Pc(so.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:so.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:so.PURPLE_PALE},"&:active":{backgroundColor:so.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:so.PURPLE_PALE,boxShadow:`0 0 0 3px ${Pc(so.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:so.GREEN_PALE},"&:active":{backgroundColor:so.GREEN_DARK},"&.Mui-focusVisible":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:so.BLUE_PALE},"&:active":{backgroundColor:so.BLUE_DARK},"&.Mui-focusVisible":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:so.ORANGE_PALE},"&:active":{backgroundColor:so.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:so.ORANGE_PALE,boxShadow:`0 0 0 3px ${Pc(so.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:so.RED_PALE},"&:active":{backgroundColor:so.RED_DARK},"&.Mui-focusVisible":{borderColor:so.RED_PALE,boxShadow:`0 0 0 3px ${Pc(so.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:so.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:so.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ho,boxShadow:`inset 0 0 0 2px ${so.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(Ro,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:uo,borderRadius:ho,color:so.TEXT_PRIMARY,backgroundColor:so.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${so.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:so.GREYSCALE_0_05,color:so.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:so.GREEN,borderColor:so.GREEN},"&.MuiChip-outlinedInfo":{color:so.BLUE,borderColor:so.BLUE},"&.MuiChip-outlinedWarning":{color:so.ORANGE,borderColor:so.ORANGE},"&.MuiChip-outlinedError":{color:so.RED,borderColor:so.RED}},outlined:{border:`solid 1px ${so.GREYSCALE_0_15}`,backgroundColor:so.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ho,boxShadow:"none",backgroundColor:so.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:so.GREEN,borderColor:so.GREEN},outlinedSecondary:{color:so.BLUE,borderColor:so.BLUE},label:{fontFamily:yo.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(Ro,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(Co,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:ho},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ho,fontSize:co,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:so.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${so.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:so.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:so.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:so.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:ho,border:`solid 1px ${so.GREYSCALE_0_15}`,color:so.GREYSCALE_0_60,marginRight:0,width:fo,height:fo},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${so.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ho,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:so.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:co}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:uo,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:so.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:so.GREYSCALE_25,fontSize:uo,fontFamily:yo.FONT_FAMILY,fontWeight:bo,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:so.TEXT_PRIMARY},"&.Mui-error":{color:so.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:so.TEXT_SECONDARY,content:"'(optional)'",fontWeight:go,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:so.TEXT_SECONDARY,content:"'(required)'",fontWeight:go,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:co,lineHeight:"16px",backgroundColor:so.WHITE,borderRadius:ho,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.GREYSCALE_0_05}`,borderColor:so.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${so.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${so.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.RED}`,boxShadow:`0px 0px 0px 1px ${so.RED}, inset 0 2px 0 0 ${so.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.GREYSCALE_0_10}`,borderColor:so.GREYSCALE_0_10,backgroundColor:so.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:so.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:so.GREYSCALE_0_15,borderRadius:ho,boxShadow:`inset 0 2px 0 0 ${so.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(Co,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:so.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:so.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:so.GREYSCALE_0_03},"&:active":{backgroundColor:so.GREYSCALE_0_10},"&:focus":{backgroundColor:so.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${so.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${so.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:so.GREYSCALE_0_30,"&:hover":{backgroundColor:so.GREYSCALE_0_0,borderColor:so.GREYSCALE_0_15},"& ~svg":{color:so.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${so.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ho}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:so.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:co,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:uo,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:uo,fontWeight:bo,color:so.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:bo}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${so.GREYSCALE_0_15}, 0px 0px 0px 1px ${so.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(Mo,null),checkedIcon:S.createElement(Do,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:so.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:so.GREYSCALE_0_20}},"&.Mui-disabled":{fill:so.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(wg,null),checkedIcon:S.createElement(Ao,null),indeterminateIcon:S.createElement(Io,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ho,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:so.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:so.GREYSCALE_0_55,color:so.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:so.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:so.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:so.GREYSCALE_0_55,"&:hover":{color:so.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:so.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:so.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:co,color:so.TEXT_PRIMARY,lineHeight:"16px",fontWeight:bo},secondary:{fontSize:uo,color:so.GREYSCALE_45,fontWeight:go,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:co,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:so.GREYSCALE_0_03},"&:active":{backgroundColor:so.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:co,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:so.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:uo,borderBottom:`solid 1px ${so.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:co,color:so.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:so.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:so.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:so.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:so.RED}}},"&.Mui-focusVisible":{backgroundColor:so.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:so.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:so.GREEN,height:"24px","&.Mui-disabled":{color:so.GREYSCALE_0_15}},rail:{backgroundColor:so.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${so.GREYSCALE_0_05}`,borderRadius:ho,boxShadow:`inset 0px 0px 0px 1px ${so.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${so.GREYSCALE_0_05}`,borderRadius:ho},thumb:{height:"16px",width:"16px",borderRadius:ho,backgroundColor:so.WHITE,boxShadow:`0px 1px 2px 0px ${so.GREYSCALE_0_15}, 0px 0px 0px 1px ${so.GREYSCALE_0_05}`,"&:hover":{borderRadius:ho,boxShadow:`0 2px 4px 0 ${so.GREYSCALE_0_30}, 0 0 0 1px ${so.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${so.GREYSCALE_0_15}, 0 0 0 1px ${so.GREYSCALE_0_06}, 0 0 0 2px ${so.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${so.GREYSCALE_0_15}, 0 0 0 1px ${so.GREYSCALE_0_06}, 0 0 0 2px ${so.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:so.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:so.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:so.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:so.GREYSCALE_0_15},markLabel:{color:so.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:so.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:so.WHITE,color:so.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:so.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:so.GREYSCALE_0_15,borderRadius:ho},thumb:{height:"16px",width:"16px",borderRadius:ho,backgroundColor:so.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:co,fontWeight:bo,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${so.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${so.MISC_FOCUS_BORDER}`,backgroundColor:so.GREYSCALE_0_03,borderRadius:ho},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:so.GREYSCALE_25,"&.Mui-selected":{color:so.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:co,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${so.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${so.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${so.GREYSCALE_85}`,borderRight:`1px solid ${so.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:bo,backgroundColor:so.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:so.GREYSCALE_98,borderBottom:`1px solid ${so.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${so.GREYSCALE_85}`,borderTop:`1px solid ${so.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:so.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:so.GREYSCALE_0_05,"&:hover":{backgroundColor:so.GREYSCALE_0_03}},"&&:hover":{backgroundColor:so.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(Po,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${so.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:co,borderRadius:ho,padding:"7px 16px",border:`1px solid ${so.GREYSCALE_0_15}`,backgroundColor:so.GREYSCALE_100_60,color:so.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:so.GREYSCALE_0_10,border:`1px solid ${so.GREYSCALE_0_30}`},"&:hover":{backgroundColor:so.GREYSCALE_0_03,border:`1px solid ${so.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:so.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${so.MISC_FOCUS_BORDER}`,border:`1px solid ${so.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:so.GREYSCALE_25,backgroundColor:so.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:so.GREYSCALE_0_10,border:`1px solid ${so.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:uo,height:24,width:24,padding:7},sizeLarge:{fontSize:po,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:co,borderRadius:ho}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:so.GREYSCALE_20},tooltip:{backgroundColor:so.GREYSCALE_20,fontSize:uo,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Lg={mode:"light",primary:{light:so.GREEN_PALE,main:so.GREEN,dark:so.GREEN_DARK,contrastText:so.WHITE},secondary:{light:so.BLUE_PALE,main:so.BLUE,dark:so.BLUE_DARK,contrastText:so.WHITE},error:{light:so.RED_PALE,main:so.RED,dark:so.RED_DARK,contrastText:so.WHITE},warning:{light:so.ORANGE_PALE,main:so.ORANGE,dark:so.ORANGE_DARK,contrastText:so.WHITE},success:{light:so.GREEN_PALE,main:so.GREEN,dark:so.GREEN_DARK,contrastText:so.WHITE},info:{light:so.BLUE_PALE,main:so.BLUE,dark:so.BLUE_DARK,contrastText:so.WHITE},text:{primary:so.TEXT_PRIMARY,secondary:so.TEXT_SECONDARY,disabled:so.GREYSCALE_0_30},action:{hover:so.GREYSCALE_0_03,hoverOpacity:.05,selected:so.GREYSCALE_0_05,focus:so.MISC_FOCUS_BORDER},amethyst:{main:so.PURPLE,light:so.PURPLE_PALE,dark:so.PURPLE_DARK,contrastText:so.WHITE},background:{paper:so.WHITE,default:so.GREYSCALE_95},divider:so.GREYSCALE_0_15},Ag=e=>({components:Rg,palette:Lg,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:co,fontWeightLight:mo,fontWeightRegular:go,fontWeightMedium:bo,fontWeightBold:vo,htmlFontSize:co,fontFamily:yo.FONT_FAMILY,button:{fontWeight:bo,fontSize:co,textTransform:"none"},body1:{fontSize:po,lineHeight:"24px"},body2:{fontSize:co,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:fo,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:po,fontWeight:bo,lineHeight:"16px"},h6:{fontSize:co,fontWeight:bo,lineHeight:"16px"},caption:{color:so.TEXT_SECONDARY},subtitle1:{fontSize:co,color:so.TEXT_SECONDARY},subtitle2:{fontSize:uo,color:so.TEXT_SECONDARY}},shape:{borderRadius:ho}}),Ig={...lo,MISC_FOCUS_BORDER:so.MISC_FOCUS_BORDER},Mg=Ag().palette,Dg={TEXT:Mg.text.primary,DISABLED:Mg.text.disabled,HOVER:Mg.action.hover,WHITE:Ig.GREYSCALE_100,BORDER_LIGHT:Ig.GREYSCALE_90,BORDER_MEDIUM:Ig.GREYSCALE_85,BORDER_HEAVY:Ig.GREYSCALE_50,DARK_MODE_TEXT:Ig.GREYSCALE_95,DARK_MODE_BORDER:Ig.GREYSCALE_95,DARK_MODE_DISABLED:Ig.GREYSCALE_70,DARK_MODE_BACKGROUND:Ig.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Ig.GREYSCALE_95};function Pg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _g(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Og(){}var Tg=.7,kg=1/Tg,qg="\\s*([+-]?\\d+)\\s*",Ng="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zg=/^#([0-9a-f]{3,8})$/,jg=new RegExp(`^rgb\\(${qg},${qg},${qg}\\)$`),$g=new RegExp(`^rgb\\(${Fg},${Fg},${Fg}\\)$`),Gg=new RegExp(`^rgba\\(${qg},${qg},${qg},${Ng}\\)$`),Bg=new RegExp(`^rgba\\(${Fg},${Fg},${Fg},${Ng}\\)$`),Hg=new RegExp(`^hsl\\(${Ng},${Fg},${Fg}\\)$`),Wg=new RegExp(`^hsla\\(${Ng},${Fg},${Fg},${Ng}\\)$`),Vg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Yg(){return this.rgb().formatHex()}function Ug(){return this.rgb().formatRgb()}function Kg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=zg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Xg(t):3===n?new eb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Jg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Jg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=jg.exec(e))?new eb(t[1],t[2],t[3],1):(t=$g.exec(e))?new eb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Gg.exec(e))?Jg(t[1],t[2],t[3],t[4]):(t=Bg.exec(e))?Jg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Hg.exec(e))?ab(t[1],t[2]/100,t[3]/100,1):(t=Wg.exec(e))?ab(t[1],t[2]/100,t[3]/100,t[4]):Vg.hasOwnProperty(e)?Xg(Vg[e]):"transparent"===e?new eb(NaN,NaN,NaN,0):null}function Xg(e){return new eb(e>>16&255,e>>8&255,255&e,1)}function Jg(e,t,n,r){return r<=0&&(e=t=n=NaN),new eb(e,t,n,r)}function Zg(e){return e instanceof Og||(e=Kg(e)),e?new eb((e=e.rgb()).r,e.g,e.b,e.opacity):new eb}function Qg(e,t,n,r){return 1===arguments.length?Zg(e):new eb(e,t,n,null==r?1:r)}function eb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tb(){return`#${ib(this.r)}${ib(this.g)}${ib(this.b)}`}function nb(){const e=rb(this.opacity);return`${1===e?"rgb(":"rgba("}${ob(this.r)}, ${ob(this.g)}, ${ob(this.b)}${1===e?")":`, ${e})`}`}function rb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ob(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ib(e){return((e=ob(e))<16?"0":"")+e.toString(16)}function ab(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sb(e,t,n,r)}function lb(e){if(e instanceof sb)return new sb(e.h,e.s,e.l,e.opacity);if(e instanceof Og||(e=Kg(e)),!e)return new sb;if(e instanceof sb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new sb(a,l,s,e.opacity)}function sb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ub(e){return(e=(e||0)%360)<0?e+360:e}function cb(e){return Math.max(0,Math.min(1,e||0))}function db(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Pg(Og,Kg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yg,formatHex:Yg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lb(this).formatHsl()},formatRgb:Ug,toString:Ug}),Pg(eb,Qg,_g(Og,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new eb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Tg:Math.pow(Tg,e),new eb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new eb(ob(this.r),ob(this.g),ob(this.b),rb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tb,formatHex:tb,formatHex8:function(){return`#${ib(this.r)}${ib(this.g)}${ib(this.b)}${ib(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nb,toString:nb})),Pg(sb,(function(e,t,n,r){return 1===arguments.length?lb(e):new sb(e,t,n,null==r?1:r)}),_g(Og,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new sb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Tg:Math.pow(Tg,e),new sb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new eb(db(e>=240?e-240:e+120,o,r),db(e,o,r),db(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sb(ub(this.h),cb(this.s),cb(this.l),rb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rb(this.opacity);return`${1===e?"hsl(":"hsla("}${ub(this.h)}, ${100*cb(this.s)}%, ${100*cb(this.l)}%${1===e?")":`, ${e})`}`}}));const pb=Math.PI/180,fb=180/Math.PI,hb=.96422,mb=1,gb=.82521,bb=4/29,vb=6/29,yb=3*vb*vb,xb=vb*vb*vb;function Sb(e){if(e instanceof Eb)return new Eb(e.l,e.a,e.b,e.opacity);if(e instanceof Ib)return Mb(e);e instanceof eb||(e=Zg(e));var t,n,r=Lb(e.r),o=Lb(e.g),i=Lb(e.b),a=Cb((.2225045*r+.7168786*o+.0606169*i)/mb);return r===o&&o===i?t=n=a:(t=Cb((.4360747*r+.3850649*o+.1430804*i)/hb),n=Cb((.0139322*r+.0971045*o+.7141733*i)/gb)),new Eb(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Eb(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Cb(e){return e>xb?Math.pow(e,1/3):e/yb+bb}function wb(e){return e>vb?e*e*e:yb*(e-bb)}function Rb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Lb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ab(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ib)return new Ib(e.h,e.c,e.l,e.opacity);if(e instanceof Eb||(e=Sb(e)),0===e.a&&0===e.b)return new Ib(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fb;return new Ib(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ib(e,t,n,null==r?1:r)}function Ib(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Mb(e){if(isNaN(e.h))return new Eb(e.l,0,0,e.opacity);var t=e.h*pb;return new Eb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pg(Eb,(function(e,t,n,r){return 1===arguments.length?Sb(e):new Eb(e,t,n,null==r?1:r)}),_g(Og,{brighter(e){return new Eb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Eb(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new eb(Rb(3.1338561*(t=hb*wb(t))-1.6168667*(e=mb*wb(e))-.4906146*(n=gb*wb(n))),Rb(-.9787684*t+1.9161415*e+.033454*n),Rb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Pg(Ib,Ab,_g(Og,{brighter(e){return new Ib(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ib(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Mb(this).rgb()}}));const Db=(e,t)=>{const n=Ab(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Pb=e=>{if(e){const t=Qg(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},_b=e=>!!e&&0===Qg(e).opacity,Ob=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Tb=e=>{const t=Ob.exec(e);if(t){const[,e,n,r,o]=t;return Qg(+n,+r,+o,+e/255)}return Qg(e)},kb=e=>{const t=Tb(e);return Number.isNaN(t.r)?null:t.toString()},qb=e=>{e.stopPropagation(),e.preventDefault()},Nb="#grid",Fb=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},zb=(e,t,n,r,o)=>{const i=Fb(".qv-object .qv-inner-object",n),a=Fb(".qv-panel-sheet",n),l=Fb(Nb,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return kb(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Tb(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=_b(p),h=Pb(f?s:p),m=((e,t,n)=>e&&!_b(e)?e:_b(t)?n&&!_b(n)?n:Dg.WHITE:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},jb=(e,i,a,l)=>{const s=r(),u=((e,r={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=t([]);return n((()=>{let t;return e&&(t=new MutationObserver((e=>{i(e)})),t.observe(e,r)),()=>{var e;null===(e=t)||void 0===e||e.disconnect()}}),[e,r]),o})(null==i?void 0:i.closest(Nb),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return o((()=>({...s,background:zb(e,s,i,a,l)})),[s.name(),i,a,l,e,u])};function $b(e,t){const n=o((()=>({isLoading:!0})),t),[r,a]=i((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,a]}const Gb=3,Bb="N";function Hb(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function Wb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Gb}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=A((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=lr(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=lr((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=Hb(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Bb).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Vb,Yb=N;Vb=Yb.createRoot,Yb.hydrateRoot;function Ub(e,t){const[n,r]=I(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var Kb={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Xb=({translator:e})=>(A((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Kb).forEach((t=>{e.add(Kb[t])}))}}(e)),[e]),e),Jb=document.createElement("textarea");function Zb(e){Jb.value=e,document.body.appendChild(Jb),Jb.select(),Jb.setSelectionRange(0,Jb.value.length),document.execCommand("copy"),document.body.removeChild(Jb)}Jb.style.position="absolute",Jb.style.left="-9999px",Jb.setAttribute("readonly","");function Qb(){null==a||a(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${kt}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>Zb(n))):Zb(n))})(r)}})}))}var ev="$$material";const tv=["values","unit","step"],nv=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Jr({},e,{[t.key]:t.val})),{})};function rv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=oo(e,tv),i=nv(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Jr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ov={borderRadius:4};function iv(e,t){return t?zl(e,t,{clone:!1}):e}const av={xs:0,sm:600,md:900,lg:1200,xl:1536},lv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${av[e]}px)`};function sv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||lv;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||lv;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||av).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function uv(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function cv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:uv(e,n)||r,t&&(o=t(o,r,e)),o}function dv(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=uv(e.theme,r)||{};return sv(e,i,(e=>{let r=cv(a,o,e);return e===r&&"string"==typeof e&&(r=cv(a,o,`${t}${"default"===e?"":ds(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const pv={m:"margin",p:"padding"},fv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!hv[e])return[e];e=hv[e]}const[t,n]=e.split(""),r=pv[t],o=fv[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),gv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function vv(e,t,n,r){var o;const i=null!=(o=uv(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function yv(e){return vv(e,"spacing",8)}function xv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Sv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=xv(t,n),e)),{})}(mv(n),r);return sv(e,e[n],o)}function Ev(e,t){const n=yv(e.theme);return Object.keys(e).map((r=>Sv(e,t,r,n))).reduce(iv,{})}function Cv(e){return Ev(e,gv)}function wv(e){return Ev(e,bv)}function Rv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?iv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Lv(e){return"number"!=typeof e?e:`${e}px solid`}function Av(e,t){return dv({prop:e,themeKey:"borders",transform:t})}Cv.propTypes={},Cv.filterProps=gv,wv.propTypes={},wv.filterProps=bv;const Iv=Av("border",Lv),Mv=Av("borderTop",Lv),Dv=Av("borderRight",Lv),Pv=Av("borderBottom",Lv),_v=Av("borderLeft",Lv),Ov=Av("borderColor"),Tv=Av("borderTopColor"),kv=Av("borderRightColor"),qv=Av("borderBottomColor"),Nv=Av("borderLeftColor"),Fv=Av("outline",Lv),zv=Av("outlineColor"),jv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:xv(t,e)});return sv(e,e.borderRadius,n)}return null};jv.propTypes={},jv.filterProps=["borderRadius"],Rv(Iv,Mv,Dv,Pv,_v,Ov,Tv,kv,qv,Nv,jv,Fv,zv);const $v=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vv(e.theme,"spacing",8),n=e=>({gap:xv(t,e)});return sv(e,e.gap,n)}return null};$v.propTypes={},$v.filterProps=["gap"];const Gv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vv(e.theme,"spacing",8),n=e=>({columnGap:xv(t,e)});return sv(e,e.columnGap,n)}return null};Gv.propTypes={},Gv.filterProps=["columnGap"];const Bv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vv(e.theme,"spacing",8),n=e=>({rowGap:xv(t,e)});return sv(e,e.rowGap,n)}return null};Bv.propTypes={},Bv.filterProps=["rowGap"];function Hv(e,t){return"grey"===t?t:e}Rv($v,Gv,Bv,dv({prop:"gridColumn"}),dv({prop:"gridRow"}),dv({prop:"gridAutoFlow"}),dv({prop:"gridAutoColumns"}),dv({prop:"gridAutoRows"}),dv({prop:"gridTemplateColumns"}),dv({prop:"gridTemplateRows"}),dv({prop:"gridTemplateAreas"}),dv({prop:"gridArea"}));function Wv(e){return e<=1&&0!==e?100*e+"%":e}Rv(dv({prop:"color",themeKey:"palette",transform:Hv}),dv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hv}),dv({prop:"backgroundColor",themeKey:"palette",transform:Hv}));const Vv=dv({prop:"width",transform:Wv}),Yv=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||av[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Wv(t)}};return sv(e,e.maxWidth,t)}return null};Yv.filterProps=["maxWidth"];const Uv=dv({prop:"minWidth",transform:Wv}),Kv=dv({prop:"height",transform:Wv}),Xv=dv({prop:"maxHeight",transform:Wv}),Jv=dv({prop:"minHeight",transform:Wv});dv({prop:"size",cssProperty:"width",transform:Wv}),dv({prop:"size",cssProperty:"height",transform:Wv});Rv(Vv,Yv,Uv,Kv,Xv,Jv,dv({prop:"boxSizing"}));var Zv={border:{themeKey:"borders",transform:Lv},borderTop:{themeKey:"borders",transform:Lv},borderRight:{themeKey:"borders",transform:Lv},borderBottom:{themeKey:"borders",transform:Lv},borderLeft:{themeKey:"borders",transform:Lv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jv},color:{themeKey:"palette",transform:Hv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hv},backgroundColor:{themeKey:"palette",transform:Hv},p:{style:wv},pt:{style:wv},pr:{style:wv},pb:{style:wv},pl:{style:wv},px:{style:wv},py:{style:wv},padding:{style:wv},paddingTop:{style:wv},paddingRight:{style:wv},paddingBottom:{style:wv},paddingLeft:{style:wv},paddingX:{style:wv},paddingY:{style:wv},paddingInline:{style:wv},paddingInlineStart:{style:wv},paddingInlineEnd:{style:wv},paddingBlock:{style:wv},paddingBlockStart:{style:wv},paddingBlockEnd:{style:wv},m:{style:Cv},mt:{style:Cv},mr:{style:Cv},mb:{style:Cv},ml:{style:Cv},mx:{style:Cv},my:{style:Cv},margin:{style:Cv},marginTop:{style:Cv},marginRight:{style:Cv},marginBottom:{style:Cv},marginLeft:{style:Cv},marginX:{style:Cv},marginY:{style:Cv},marginInline:{style:Cv},marginInlineStart:{style:Cv},marginInlineEnd:{style:Cv},marginBlock:{style:Cv},marginBlockStart:{style:Cv},marginBlockEnd:{style:Cv},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:$v},rowGap:{style:Bv},columnGap:{style:Gv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wv},maxWidth:{style:Yv},minWidth:{transform:Wv},height:{transform:Wv},maxHeight:{transform:Wv},minHeight:{transform:Wv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qv(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=uv(n,l)||{};if(u)return u(o);return sv(o,t,(t=>{let n=cv(c,s,t);return t===n&&"string"==typeof t&&(n=cv(c,s,`${e}${"default"===t?"":ds(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Zv;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=iv(s,e(n,o,i,a));else{const e=sv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=iv(s,e):s[n]=t({sx:o,theme:i})}else s=iv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const ey=Qv();ey.filterProps=["sx"];var ty=ey;function ny(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const ry=["breakpoints","palette","spacing","shape"];function oy(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=oo(e,ry),l=rv(n),s=function(e=8){if(e.mui)return e;const t=yv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=zl({breakpoints:l,direction:"ltr",components:{},palette:Jr({mode:"light"},r),spacing:s,shape:Jr({},ov,i)},a);return u.applyStyles=ny,u=t.reduce(((e,t)=>zl(e,t)),u),u.unstable_sxConfig=Jr({},Zv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ty({sx:e,theme:this})},u}var iy=Object.freeze({__proto__:null,default:oy,private_createBreakpoints:rv,unstable_applyStyles:ny});function ay(e=null){const t=x.useContext(xl);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ly=oy();function sy(e=ly){return ay(e)}const uy=["sx"],cy=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Zv;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function dy(e){const{sx:t}=e,n=oo(e,uy),{systemProps:r,otherProps:o}=cy(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Nl(n)?Jr({},r,n):r}:Jr({},r,t),Jr({},o,{sx:i})}var py=Object.freeze({__proto__:null,default:ty,extendSxProp:dy,unstable_createStyleFunctionSx:Qv,unstable_defaultSxConfig:Zv});const fy=["className","component"];function hy(e){if(e.type)return e;if("#"===e.charAt(0))return hy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Ho(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Ho(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function my(e,t){return e=hy(e),t=function(e,t=0,n=1){return Gs(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var gy=x.createContext(null);function by(){return x.useContext(gy)}var vy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function yy(e){const{children:t,theme:n}=e,r=by(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Jr({},e,t)}(r,n);return null!=e&&(e[vy]=null!==r),e}),[n,r]);return dc.jsx(gy.Provider,{value:o,children:t})}const xy=["value"],Sy=x.createContext();function Ey(e){let{value:t}=e,n=oo(e,xy);return dc.jsx(Sy.Provider,Jr({value:null==t||t},n))}const Cy=x.createContext(void 0);function wy({value:e,children:t}){return dc.jsx(Cy.Provider,{value:e,children:t})}function Ry({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?ks(o.defaultProps,r):o.styleOverrides||o.variants?r:ks(o,r)}({props:e,name:t,theme:{components:x.useContext(Cy)}})}const Ly={};function Ay(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Jr({},t,{[e]:i}):i;return r?()=>a:a}return Jr({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Iy(e){const{children:t,theme:n,themeId:r}=e,o=ay(Ly),i=by()||Ly,a=Ay(r,o,n),l=Ay(r,i,n,!0),s="rtl"===a.direction;return dc.jsx(yy,{theme:l,children:dc.jsx(xl.Provider,{value:a,children:dc.jsx(Ey,{value:s,children:dc.jsx(wy,{value:null==a?void 0:a.components,children:t})})})})}var My={},Dy={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Dy);var Py=Dy.exports,_y=j(Wo),Oy=j(Bs),Ty=Py;Object.defineProperty(My,"__esModule",{value:!0});var ky=My.alpha=Uy;My.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=By(e),a=By(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Wy({type:"rgb",values:l})},My.colorChannel=void 0;var qy=My.darken=Ky;My.decomposeColor=By,My.emphasize=Jy;var Ny=My.getContrastRatio=function(e,t){const n=Yy(e),r=Yy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};My.getLuminance=Yy,My.hexToRgb=Gy,My.hslToRgb=Vy;var Fy=My.lighten=Xy;My.private_safeAlpha=function(e,t,n){try{return Uy(e,t)}catch(t){return e}},My.private_safeColorChannel=void 0,My.private_safeDarken=function(e,t,n){try{return Ky(e,t)}catch(t){return e}},My.private_safeEmphasize=function(e,t,n){try{return Jy(e,t)}catch(t){return e}},My.private_safeLighten=function(e,t,n){try{return Xy(e,t)}catch(t){return e}},My.recomposeColor=Wy,My.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=By(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var zy=Ty(_y),jy=Ty(Oy);function $y(e,t=0,n=1){return(0,jy.default)(e,t,n)}function Gy(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function By(e){if(e.type)return e;if("#"===e.charAt(0))return By(Gy(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,zy.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,zy.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Hy=e=>{const t=By(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};My.colorChannel=Hy;function Wy(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Vy(e){e=By(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Wy({type:l,values:s})}function Yy(e){let t="hsl"===(e=By(e)).type||"hsla"===e.type?By(Vy(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Uy(e,t){return e=By(e),t=$y(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Wy(e)}function Ky(e,t){if(e=By(e),t=$y(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Wy(e)}function Xy(e,t){if(e=By(e),t=$y(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Wy(e)}function Jy(e,t=.15){return Yy(e)>.5?Ky(e,t):Xy(e,t)}My.private_safeColorChannel=(e,t)=>{try{return Hy(e)}catch(t){return e}};var Zy={black:"#000",white:"#fff"};var Qy={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"};var ex={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var tx={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var nx={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var rx={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var ox={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var ix={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const ax=["mode","contrastThreshold","tonalOffset"],lx={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:Zy.white,default:Zy.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}},sx={text:{primary:Zy.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:Zy.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 ux(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Fy(e.main,o):"dark"===t&&(e.dark=qy(e.main,i)))}function cx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=oo(e,ax),i=e.primary||function(e="light"){return"dark"===e?{main:rx[200],light:rx[50],dark:rx[400]}:{main:rx[700],light:rx[400],dark:rx[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ex[200],light:ex[50],dark:ex[400]}:{main:ex[500],light:ex[300],dark:ex[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:tx[500],light:tx[300],dark:tx[700]}:{main:tx[700],light:tx[400],dark:tx[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ox[400],light:ox[300],dark:ox[700]}:{main:ox[700],light:ox[500],dark:ox[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ix[400],light:ix[300],dark:ix[700]}:{main:ix[800],light:ix[500],dark:ix[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:nx[400],light:nx[300],dark:nx[700]}:{main:"#ed6c02",light:nx[500],dark:nx[900]}}(t);function d(e){return Ny(e,sx.text.primary)>=n?sx.text.primary:lx.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Jr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ho(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ho(12,t?` (${t})`:"",JSON.stringify(e.main)));return ux(e,"light",o,r),ux(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:sx,light:lx};return zl(Jr({common:Jr({},Zy),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Qy,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const dx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const px={textTransform:"uppercase"},fx='"Roboto", "Helvetica", "Arial", sans-serif';function hx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=fx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=oo(n,dx),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return Jr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===fx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,px),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,px),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zl(Jr({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function mx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var gx=["none",mx(0,2,1,-1,0,1,1,0,0,1,3,0),mx(0,3,1,-2,0,2,2,0,0,1,5,0),mx(0,3,3,-2,0,3,4,0,0,1,8,0),mx(0,2,4,-1,0,4,5,0,0,1,10,0),mx(0,3,5,-1,0,5,8,0,0,1,14,0),mx(0,3,5,-1,0,6,10,0,0,1,18,0),mx(0,4,5,-2,0,7,10,1,0,2,16,1),mx(0,5,5,-3,0,8,10,1,0,3,14,2),mx(0,5,6,-3,0,9,12,1,0,3,16,2),mx(0,6,6,-3,0,10,14,1,0,4,18,3),mx(0,6,7,-4,0,11,15,1,0,4,20,3),mx(0,7,8,-4,0,12,17,2,0,5,22,4),mx(0,7,8,-4,0,13,19,2,0,5,24,4),mx(0,7,9,-4,0,14,21,2,0,5,26,4),mx(0,8,9,-5,0,15,22,2,0,6,28,5),mx(0,8,10,-5,0,16,24,2,0,6,30,5),mx(0,8,11,-5,0,17,26,2,0,6,32,5),mx(0,9,11,-5,0,18,28,2,0,7,34,6),mx(0,9,12,-6,0,19,29,2,0,7,36,6),mx(0,10,13,-6,0,20,31,3,0,8,38,7),mx(0,10,13,-6,0,21,33,3,0,8,40,7),mx(0,10,14,-6,0,22,35,3,0,8,42,7),mx(0,11,14,-7,0,23,36,3,0,9,44,8),mx(0,11,15,-7,0,24,38,3,0,9,46,8)];const bx=["duration","easing","delay"],vx={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)"},yx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xx(e){return`${Math.round(e)}ms`}function Sx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ex(e){const t=Jr({},vx,e.easing),n=Jr({},yx,e.duration);return Jr({getAutoHeightDuration:Sx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return oo(r,bx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:xx(o)} ${i} ${"string"==typeof a?a:xx(a)}`)).join(",")}},e,{easing:t,duration:n})}var Cx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const wx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Rx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=oo(e,wx);if(e.vars)throw new Error(Ho(18));const l=cx(r),s=oy(e);let u=zl(s,{mixins:(c=s.breakpoints,d=n,Jr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:gx.slice(),typography:hx(l,i),transitions:Ex(o),zIndex:Jr({},Cx)});var c,d;return u=zl(u,a),u=t.reduce(((e,t)=>zl(e,t)),u),u.unstable_sxConfig=Jr({},Zv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ty({sx:e,theme:this})},u}var Lx=Rx();function Ax(){const e=sy(Lx);return e[ev]||e}var Ix,Mx={},Dx={exports:{}};var Px,_x={exports:{}};var Ox=j(ql),Tx=j($l),kx=j(ps),qx=j(cs),Nx=j(iy),Fx=j(py),zx=Py;Object.defineProperty(Mx,"__esModule",{value:!0});var jx=Mx.default=function(e={}){const{themeId:t,defaultTheme:n=Zx,rootShouldForwardProp:r=Jx,slotShouldForwardProp:o=Jx}=e,i=e=>(0,Vx.default)((0,$x.default)({},e,{theme:eS((0,$x.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Bx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tS(Qx(s))}=a,p=(0,Gx.default)(a,Kx),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Jx;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Bx.default)(e,(0,$x.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Hx.isPlainObject)(e)?r=>nS(e,(0,$x.default)({},r,{theme:eS({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=eS((0,$x.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=nS(n,(0,$x.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=eS((0,$x.default)({},e,{defaultTheme:n,themeId:t}));return nS({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,$x.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Mx.shouldForwardProp=Jx,Mx.systemDefaultTheme=void 0;var $x=zx((Ix||(Ix=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Dx)),Dx.exports)),Gx=zx((Px||(Px=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(_x)),_x.exports)),Bx=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Xx(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ox),Hx=Tx;zx(kx),zx(qx);var Wx=zx(Nx),Vx=zx(Fx);const Yx=["ownerState"],Ux=["variants"],Kx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xx(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Xx=function(e){return e?n:t})(e)}function Jx(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zx=Mx.systemDefaultTheme=(0,Wx.default)(),Qx=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function eS({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function tS(e){return e?(t,n)=>n[e]:null}function nS(e,t){let{ownerState:n}=t,r=(0,Gx.default)(t,Yx);const o="function"==typeof e?e((0,$x.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>nS(e,(0,$x.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Gx.default)(o,Ux);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,$x.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,$x.default)({ownerState:n},r,n)):e.style))})),t}return o}var rS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var oS=jx({themeId:ev,defaultTheme:Lx,rootShouldForwardProp:rS});const iS=["theme"];function aS(e){let{theme:t}=e,n=oo(e,iS);const r=t[ev];return dc.jsx(Iy,Jr({},n,{themeId:r?ev:void 0,theme:r||t}))}var lS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const sS=Od(rh,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Ft}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Ft}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),uS=Od(rh)({position:"absolute",height:"100%",width:"3px"}),cS=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},h=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};Ub((()=>p&&h()),[e]);const m=e=>{const t=Math.max(e,zt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:jt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;m(t)},v=e=>{qb(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;m(t)},x=e=>{qb(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},E=!r&&l?e=>{if(e.key===qt.LEFT||e.key===qt.RIGHT){qb(e);const t=5,n=e.key===qt.LEFT?-t:t;m(c.current.columnWidth+n)}else e.key===qt.SPACE||e.key===qt.ENTER?(qb(e),l(e),g()):e.key===qt.ESC&&(qb(e),l(e),m(c.current.initWidth))}:void 0;return S.createElement(sS,{className:Nt,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),h(e.clientX)},onDoubleClick:()=>a({type:jt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),h(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>h(),"data-testid":Nt},S.createElement(uS,{className:Ft}))};function dS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),fS=D(pS);function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hS.apply(null,arguments)}const mS=Od(rh,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),gS=Od(fS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),bS=Od(Tm)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),vS=Od(Ah)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),yS=Od(zm)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),xS=Od(zm,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),SS=Od("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),ES=Od("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),CS=Od(rf)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),wS=Od(lm)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function RS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),AS=D(LS);let IS={};const MS=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=I(!1),p=M(null),f=P((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(xS,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),IS={}),null!=a&&a.length&&(d(!0),IS[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(SS,null),S.createElement(ES,null,S.createElement(wS,null,S.createElement(o,null)),S.createElement(CS,{variant:"body2"},r)),null!=a&&a.length?S.createElement(AS,null):null),(null==a?void 0:a.length)&&S.createElement(_S,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=IS,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},DS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&S.createElement(yS,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>S.createElement(MS,hS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),PS={appear:200,enter:200,exit:100},_S=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?S.createElement(bS,hS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:PS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[DS({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?S.createElement(vS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,OS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},TS=(e,t)=>e.some((e=>t[e]>0));function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),NS=D(qS);function FS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),jS=D(zS);function $S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$S(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),BS=D(GS);function HS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),VS=D(WS);function YS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const US=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),KS=D(US);function XS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),ZS=D(JS);function QS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),tE=D(eE);function nE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),oE=D(rE);function iE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),lE=D(aE);function sE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),cE=D(uE);let dE=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const pE=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[dE.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:NS,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:VS,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[dE.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:KS,enabled:!0}]}]),n[dE.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:cE,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:ZS,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:lE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:tE,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:oE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:jS,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[dE.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:BS,enabled:!0}]}]),d},fE=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=Xb({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:E}=(({headerData:e,app:t})=>{const[n,r]=I(null),[o,i]=I(OS);return _((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:P((()=>i(OS)),[]),updateSelectionActionsEnabledStatus:P((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:TS(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:TS(["qSelected"],n.qStateCounts),canSelectPossible:TS(["qOption"],n.qStateCounts),canSelectAlternative:TS(["qAlternative"],n.qStateCounts),canSelectExcluded:TS(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),C=P((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);_((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{E(e)})).catch((e=>console.error(e))))}),[e,x,E,null==d?void 0:d.model]);const w=P((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(mS,{rightAligned:"right"===m,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&S.createElement(gS,{height:Ot,className:Tt,"data-testid":Tt,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},S.createElement(fS,null)),S.createElement(_S,{open:e,anchorEl:n.current,onClose:w,menuGroups:pE({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:C,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},hE=e=>e.isDark?{background:e.color,borderColor:Dg.DARK_MODE_BORDER,color:Dg.DARK_MODE_TEXT,disabledColor:Dg.DARK_MODE_DISABLED,iconColor:Dg.DARK_MODE_TEXT}:{background:e.color,borderColor:Dg.BORDER_MEDIUM,color:Dg.TEXT,disabledColor:Dg.DISABLED},mE=Od(rh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),gE=Od(Cg,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),bE=Od(hh,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),vE=Od(rf)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),yE=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=A((()=>hE(r.background)),[r]);if(!n.active)return null;const a=o?S.createElement(mE,{footerStyle:i},e):null;return t?N.createPortal(e,t):a},xE=O({}),SE=()=>E(xE),EE=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=A((()=>hE(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=Xb({translator:d}),x=A((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,b,g,v]);return S.createElement(xE.Provider,{value:x},e)};let CE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),wE=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function RE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),AE=D(LE);function IE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ME=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),DE=D(ME);function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _E=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){PE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),OE=D(_E),TE={FirstPage:DE,PreviousPage:AE,NextPage:AS,LastPage:OE,FirstPageRTL:OE,PreviousPageRTL:AS,NextPageRTL:AE,LastPageRTL:DE},kE=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=SE(),u=TE[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},qE=()=>{const{pageInfo:e,width:t}=SE(),n=0===e.page,{IconComponent:r,styledProps:o}=kE({type:CE.FirstPage,disabledCondition:n,pageNumber:0});return t<=wE.FirstPage?null:S.createElement(bE,o,S.createElement(r,{height:Ot}))},NE=(e,t,n=!1)=>{n&&e.key===qt.TAB&&!e.shiftKey&&(qb(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},FE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=SE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=kE({type:CE.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>NE(e,t,r):null;return o<=wE.LastPage?null:S.createElement(bE,hS({},l,{onKeyDown:s}),S.createElement(a,{height:Ot}))},zE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=SE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=kE({type:CE.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>wE.FirstPage&&o>wE.LastPage)&&t.enabled?e=>NE(e,t,r):null;return S.createElement(bE,hS({},l,{onKeyDown:s}),S.createElement(a,{height:Ot}))},jE=()=>{const{pageInfo:e}=SE(),t=0===e.page,{IconComponent:n,styledProps:r}=kE({type:CE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(bE,r,S.createElement(n,{height:Ot}))},$E=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=SE(),{page:o,rowsPerPage:i}=n;if(t<=wE.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return S.createElement(vE,{variant:"caption"},a)},GE=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=SE(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return S.createElement(S.Fragment,null,S.createElement(vE,{variant:"caption",id:d},u,":"),S.createElement(gE,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},BE=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=SE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>wE.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(GE,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},HE=1e3,WE="…",VE=({totalPages:e,page:t})=>{const n=Math.min(e,HE),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-HE):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:WE,disabled:!0},WE)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:WE,disabled:!0},WE)),S.createElement(S.Fragment,null,a)},YE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=SE(),{page:o}=e;if(t<=wE.SelectPage)return null;const i=S.createElement(VE,{totalPages:n,page:o});return S.createElement(GE,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var UE=T((e=>S.createElement(EE,e,S.createElement(BE,null),S.createElement(YE,null),S.createElement($E,null),S.createElement(qE,null),S.createElement(jE,null),S.createElement(zE,null),S.createElement(FE,null))));const KE=e=>S.createElement(yE,e,S.createElement(UE,e)),XE=O({}),JE=()=>E(XE),ZE=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=A((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return dc.jsx(XE.Provider,{value:u,children:e})},QE=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=JE(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:Lr;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:dc.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:dc.jsx("span",{style:{...qr,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},eC=O({}),tC=()=>E(eC),nC=({children:e,styleService:t})=>dc.jsx(eC.Provider,{value:t,children:e}),rC=21,oC=20,iC=oC,aC=16+Dr+1,lC=.75,sC=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===xt.Image},uC="/qHyperCubeDef",cC=-1,dC="PSEUDO-DIM",pC=e=>void 0===e?Ar:e,fC=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,hC=e=>fC(e,zt.PixelsDefault),mC=(e,t)=>fC(e,zt.PercentageDefault)*t/100,gC=(e,t,n)=>{switch(null==t?void 0:t.type){case jt.Pixels:return hC(t.pixels);case jt.Percentage:return mC(t.percentage,e);case jt.FitToContent:case jt.Auto:default:return n}},bC=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===dC)return e+0;const h=n(p),m=!u&&f&&d<s-1?rC:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+aC+m+h+g)}),0),vC=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*aC;return Math.max(e,o+t(r.qFallbackTitle))}),0),yC=(e,t,n,r)=>{const o=100*e/t,i=r*lC*(o/100),a=n*(o/100);return Math.min(a,i)},xC=(e,t,n,r)=>r*(n/100)*(100*e/t/100),SC=(e,t)=>e.some((e=>e>=t*lC)),EC=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*lC,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,bC({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),h=Math.min(c,vC(e.visibleMeasureInfo,i));let m=0;const g=d.findIndex((e=>e.id===dC)),b=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===jt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+aC+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,h);u=[Math.max(b,e-p),p]}else{const t=Math.min(c,vC(e.visibleMeasureInfo,l,!0));m=Math.min(c,bC({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,m);u=[Math.max(b,n-p),p]}else u=[Math.max(b,f-p),p];const v=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=jt.Pixels,y.pixels=o);return[jt.Pixels,jt.Percentage].includes(y.type)||SC(u,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=SC(e,n);s===jt.Auto&&d&&(o>i?o-=i:i-=o),s===jt.Pixels&&u&&(o=yC(e[0],l,u,n),i=yC(e[1],l,u,n)),s===jt.Percentage&&c&&(o=xC(e[0],l,c,n),i=xC(e[1],l,c,n));const p=i-r;p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(u,y,r,p):{leftGridWidth:v,leftGridColumnWidths:u,leftGridFullWidth:v}};function CC({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*lC,i=tC(),{measureText:a}=Wb(i.header),{estimateWidth:l,measureText:s}=Wb({...i.dimensionValues,fontWeight:pC(i.dimensionValues.fontWeight)}),{measureText:u}=Wb({...i.dimensionValues,...i.measureLabels}),c=P(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:h,isIndentModeEnabled:m}=e,g=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+aC,a=Math.max(i,e);return Math.max(n,m?a:gC(t,o,a))}),0),b=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===dC)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?iC:0;return aC+a(t)+oC+r})(r);return Math.max(o,t)}),0);let v=0,y=n.data.at(-1);m&&n.size.x>1&&y&&y[0]&&(y=y[0]);const x=y.map(((r,a)=>{let s=aC;if((!m||m&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=m?Math.min(o,i):i;else{let o;r.columnWidthLocation===Mt.Pivot?o=m?void 0:p:r.columnWidthLocation===Mt.Dimension&&({columnWidth:o}=r);let i=0;r.isLeftDimension?i=r.id===dC?g():Math.max(b(a),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(sC(a))return zt.PixelsDefault;const s=!h&&o&&n<d-1?rC:0;return aC+l(r)+s})(r,a)):r.isLeftDimension||(i=b(a),r.columnWidthLocation===Mt.Measures&&(i=g(i))),m&&1===n.size.x&&(o=e.indentModeColumnWidth),s=gC(t,o,i)}return v+=s,s}));return m&&n.size.x>1?EC({layoutService:e,headersData:n,columnWidths:x,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,v),leftGridColumnWidths:x,leftGridFullWidth:v}}),[t,n,e,o,a,u,l,s,r]),[d,p]=I(c);Ub((()=>{p(c())}),[c]);const f=P(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function wC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=tC(),{estimateWidth:c,measureText:d}=Wb(u.measureValues),{estimateWidth:p}=Wb({...u.dimensionValues,fontWeight:pC(u.dimensionValues.fontWeight)}),f=t-o-Dr,h=n.at(-1),m=h===cC,g=a.length-i>n.length?rC:0,b=A((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(zt.PixelsMax,Math.max(zt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case jt.Pixels:i(t,hC(o));break;case jt.Percentage:i(t,mC(a,f));break;case jt.FitToContent:i(t,((e,t,n)=>n?zt.PixelsDefault:aC+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,sC(e)));break;case jt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(zt.AutoMinPivot,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),v=A((()=>{if(m){return s.reduce(((e,t,n)=>e+b[n]),0)/s.length}return b[0]}),[m,b,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=P((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:v-y),[m,b,e,v,y]),S=l.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let RC;const LC=new Uint8Array(16);function AC(){if(!RC&&(RC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!RC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RC(LC)}const IC=[];for(let e=0;e<256;++e)IC.push((e+256).toString(16).slice(1));var MC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DC(e,t,n){if(MC.randomUUID&&!t&&!e)return MC.randomUUID();const r=(e=e||{}).random||(e.rng||AC)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return IC[e[t+0]]+IC[e[t+1]]+IC[e[t+2]]+IC[e[t+3]]+"-"+IC[e[t+4]]+IC[e[t+5]]+"-"+IC[e[t+6]]+IC[e[t+7]]+"-"+IC[e[t+8]]+IC[e[t+9]]+"-"+IC[e[t+10]]+IC[e[t+11]]+IC[e[t+12]]+IC[e[t+13]]+IC[e[t+14]]+IC[e[t+15]]}(r)}const PC=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:DC()},_C=e=>e===cC?dC:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:PC()})(e),OC=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===cC?n.columnWidthLocation=Mt.Measures:n.isLeftDimension?n.columnWidthLocation=Mt.Dimension:t.at(-1)===cC?n.columnWidthLocation=Mt.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Mt.Pivot))},TC=(e,t,n)=>{var r;const o=_C(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===cC?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Mt.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Mt.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},kC=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===cC?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=TC(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=TC(e,t,o)})),l},qC=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(cC)?kC({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(kC({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)OC({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else OC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function NC(e){return NC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NC(e)}function FC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function jC(e,t,n){return t&&zC(e.prototype,t),n&&zC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BC(e,t)}function GC(e){return GC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GC(e)}function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BC(e,t)}function HC(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function WC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GC(e);if(t){var o=GC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HC(this,n)}}function VC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var UC={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:KC(e),value:KC(t),useEqualSign:n}}(n,o,i))}})),t}};function KC(e){try{return decodeURIComponent(e)}catch(t){return e}}function XC(e){if(!(this instanceof XC))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return UC.fromSearchString(t.search)}}})}function JC(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}XC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},XC.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=JC((t=e[r]).key),t.value?n+="=".concat(JC(t.value)):n+=t.useEqualSign?"=":"";return n};var ZC,QC=function(){function e(t){FC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return jC(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),ew=function(){function e(){FC(this,e)}return jC(e,[{key:"decode",value:function(e){for(var t,n="",r=new QC(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),tw=function(e){return e>=0&&e<=1114111},nw=function(e){return e.match(/[\s]/)},rw=function(e){$C(n,e);var t=WC(n);function n(){return FC(this,n),t.apply(this,arguments)}return jC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!nw(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return tw(a)?String.fromCharCode(a):"�"}}]),n}(ew),ow=function(){function e(t,n){FC(this,e),this._key=t,this._value=n}return jC(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),iw=function(){function e(){FC(this,e)}return jC(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return ow.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return ow.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||ow.newInstanceIfNeeded(e,t,this._value)}}]),e}(),aw=function(){function e(){FC(this,e),this.clear()}return jC(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new iw);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),lw=function(){var e,t,n,r=[],o=[],i=new aw;for(e in r["""]="34",r["&"]="38",r["<"]="60",r[">"]="62",r[" "]="160",r["¡"]="161",r["¢"]="162",r["£"]="163",r["¤"]="164",r["¥"]="165",r["¦"]="166",r["§"]="167",r["¨"]="168",r["©"]="169",r["ª"]="170",r["«"]="171",r["¬"]="172",r["­"]="173",r["®"]="174",r["¯"]="175",r["°"]="176",r["±"]="177",r["²"]="178",r["³"]="179",r["´"]="180",r["µ"]="181",r["¶"]="182",r["·"]="183",r["¸"]="184",r["¹"]="185",r["º"]="186",r["»"]="187",r["¼"]="188",r["½"]="189",r["¾"]="190",r["¿"]="191",r["À"]="192",r["Á"]="193",r["Â"]="194",r["Ã"]="195",r["Ä"]="196",r["Å"]="197",r["Æ"]="198",r["Ç"]="199",r["È"]="200",r["É"]="201",r["Ê"]="202",r["Ë"]="203",r["Ì"]="204",r["Í"]="205",r["Î"]="206",r["Ï"]="207",r["Ð"]="208",r["Ñ"]="209",r["Ò"]="210",r["Ó"]="211",r["Ô"]="212",r["Õ"]="213",r["Ö"]="214",r["×"]="215",r["Ø"]="216",r["Ù"]="217",r["Ú"]="218",r["Û"]="219",r["Ü"]="220",r["Ý"]="221",r["Þ"]="222",r["ß"]="223",r["à"]="224",r["á"]="225",r["â"]="226",r["ã"]="227",r["ä"]="228",r["å"]="229",r["æ"]="230",r["ç"]="231",r["è"]="232",r["é"]="233",r["ê"]="234",r["ë"]="235",r["ì"]="236",r["í"]="237",r["î"]="238",r["ï"]="239",r["ð"]="240",r["ñ"]="241",r["ò"]="242",r["ó"]="243",r["ô"]="244",r["õ"]="245",r["ö"]="246",r["÷"]="247",r["ø"]="248",r["ù"]="249",r["ú"]="250",r["û"]="251",r["ü"]="252",r["ý"]="253",r["þ"]="254",r["ÿ"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["¬in"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),sw=function(e){$C(n,e);var t=WC(n);function n(){return FC(this,n),t.apply(this,arguments)}return jC(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,lw.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=lw.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&tw(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&tw(r)?String.fromCharCode(r):null}}]),n}(ew),uw=function(e){$C(n,e);var t=WC(n);function n(){return FC(this,n),t.apply(this,arguments)}return jC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),tw(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(ew),cw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(ZC=document.createElement("div"));var dw=Array.prototype.indexOf,pw=[",",".","_"," "],fw={default:[",",".","-","_"," "]},hw={width:["%"],height:["%"]},mw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},gw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":mw.image,"background-color":mw.color,"border-color":mw.color,"border-image":mw.image,color:mw.color,icon:mw.image,"list-style-image":mw.image,"outline-color":mw.color},bw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function vw(e,t,n){var r;if(t){if(dw)return dw.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function yw(e){if(null==e)return"";var t,n=document.createTextNode(e);return ZC.appendChild(n),t=ZC.innerHTML,ZC.removeChild(n),t}function xw(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=Ew(e).toLowerCase(),t=Ew(t),vw(e,bw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<bw.attr_val;i++)if(t.toLowerCase().match(bw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=hw[e])||(r=fw.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&vw(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function Sw(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=Ew(e).toLowerCase(),t=Ew(t),vw(e,bw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<bw.css_val.length;r++)if(t.toLowerCase().indexOf(bw.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=gw[e])||(o=mw.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&vw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Ew(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new sw,new uw,new rw];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var Cw=[],ww=0;ww<255;ww++)Cw[ww]=ww>=48&&ww<=57||ww>=65&&ww<=90||ww>=97&&ww<=122?null:ww.toString(16);var Rw=function(e){return yw(e.unsafe)},Lw=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=Sw(t,n[t],!0),i+=Sw(t,n[t],!0),o[t]=r[t]);return e.map?o:i},Aw=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=xw(i,t[i],!0),o+=xw(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function Iw(e,t){throw new Error(t)}var Mw={canonicalize:Ew,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===NC(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Rw(e):"css"===e.context?(null!=e.map&&"object"!==NC(e.map)&&Iw(this,"Invalid parameter type"),Lw(e)):"attr"===e.context?(null!=e.map&&"object"!==NC(e.map)&&Iw(this,"Invalid parameter type"),Aw(e)):void Iw(this,"Invalid parameter type")},encodeForAttr:xw,encodeForAttr2:function(e){return xw("nonsens",e,!0)},encodeForCSS:Sw,encodeForHref:function(e){Ew(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new XC(e),n=XC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+XC.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=pw),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),vw(o,t)>=0||null==Cw[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:yw,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=Ew(t).toLowerCase():Iw(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=VC(null!==(t=cw.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const Dw=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},Pw=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},_w=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&Mw.isSafeDataURL(t)?{type:xt.Image,url:t,text:e,imageSize:n,resolvedImagePosition:Pw(r)}:{type:xt.Text,url:void 0,text:e},Ow=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===St.Attribute||null==n?void 0:n.urlLabel},Tw=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:xt.Link,url:Mw.encodeForHref(t),text:e}}catch(t){return{type:xt.Text,url:void 0,text:e}}},kw=(e,t,n,r)=>{var o,i;const a=Et(t);return a!==xt.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===xt.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===St.Attribute){var o;const r=Ow(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return Tw({text:i,url:r})}if(r===St.Dimension){var i;const r=Ow(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Tw({text:r,url:e.qText})}return{type:xt.Text,url:void 0,text:e.qText}})(e,t,n):{type:xt.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=Dw(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return _w({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return _w({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=Dw(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return _w({text:i,url:t,imageSize:r,imagePosition:o})}return{type:xt.Text,url:void 0,text:e.qText}})(e,t,n)},qw=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?kb(s):null,c=l?kb(l):null,d=((e,t)=>e||!t?null:Pb(t)?Dg.WHITE:Dg.TEXT)(c,u);return{color:null!=d?d:c,background:u}},Nw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Nw(e,t)),e),Fw=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:Ir-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,Nw(l,e))},zw=(e,t)=>{if(e!==cC)return t?{type:xt.Text}:e.representation},jw=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=(!c||!u)&&e.qType===Wt.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;m=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else m=e.qText;const g={id:PC(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Fw(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Wt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Wt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===Wt.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:qw(s,e),selectionCellType:u?Ht.NX_CELL_LEFT:Ht.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:kw({...e,qText:m},zw(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},$w=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(cC);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===Wt.NX_DIM_CELL_NORMAL||p.qType===Wt.NX_DIM_CELL_NULL||p.qType===Wt.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===Wt.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const A=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?jw({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:r}):e[f][y];if(e[f][y]=A,p.qSubNodes.length){const e=s?0:f+1;t(c||A,A,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},Gw=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Bw=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Hw=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=$w(e.grid,l,s,n,r,o,i,a);Gw(u,n.rowsOnCurrentPage);const c=Bw(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},Ww=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Wt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:PC(),ref:t,isNull:u}}))})),o},Vw=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?Ww({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},Yw=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=n.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:jw({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...r.isIndentModeEnabled&&{isIndentModeEnabled:r.isIndentModeEnabled},env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Uw=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=Yw(e.grid,s,u,n,r,o,i,a,l);Gw(c,n.size.x);const d=Bw(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},Kw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),Xw=(e,t,n,r,o)=>{const{env:i}=JE(),[a,l]=I(null),s=((e,t,n)=>A((()=>({left:e.map(Kw),top:t.map(Kw),measures:n.map(Kw)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=A((()=>qC(t,o,r)),[t,o,r]),c=P((()=>e.slice(1).reduce(((e,t)=>Vw({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return Ww({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=P((()=>e.slice(1).reduce(((e,r)=>Uw({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=Yw([],s,l,t,n,r,o,i,a);Gw(u,t.size.x);const c=Bw(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=P((()=>e.slice(1).reduce(((e,o)=>Hw({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=$w([],l,a,n,t,r,o,i);Gw(s,n.rowsOnCurrentPage);const u=Bw(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,h]=I((()=>c())),[m,g]=I((()=>d())),[b,v]=I((()=>p()));Ub((()=>{h(c())}),[c]),Ub((()=>{g(d())}),[d]),Ub((()=>{v(p())}),[p]),Ub((()=>{a&&a.forEach((e=>{h((t=>Vw({prevData:t,dataPage:e,pageInfo:n}))),g((r=>Uw({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),v((o=>Hw({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=P((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:b,attrExprInfoIndexes:s,nextPageHandler:y}},Jw=Math.sqrt(1e4),Zw=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/zt.PixelsMin)}),Qw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Jw),r=Math.ceil(e.qHeight/Jw);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Jw,qTop:e.qTop+n*Jw,qWidth:Math.min(Jw,e.qWidth-o*Jw),qHeight:Math.min(Jw,e.qHeight-n*Jw)});return t};function eR({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=M(e);return t.current=e,t})(n.page),i=e,a=P((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,uC,e,t,!1))}),[i]),l=P((async(e,t)=>{await(null==i?void 0:i.collapseTop(uC,e,t,!1))}),[i]),s=P((async(e,t)=>{await(null==i?void 0:i.expandLeft(uC,e,t,!1))}),[i]),u=P((async(e,t)=>{await(null==i?void 0:i.expandTop(uC,e,t,!1))}),[i]),c=P((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(uC,e.reduce(((e,t)=>[...e,...Qw(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=P(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Mt.Dimension:c=[{qPath:`${uC}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Mt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${uC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${uC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Mt.Pivot:c=[{qPath:`${uC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=P((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${uC}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return A((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const tR=(e,t)=>e>t?_t.Forward:e<t?_t.Backward:_t.None,nR=(e,t,n)=>(r,o)=>{if(r===Wt.NX_DIM_CELL_PSEUDO)return cC;const i=t[n+o];return e[i]},rR=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},oR=({width:e,height:t,children:n,isLeftGrid:r})=>dc.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+Dr},children:n}),iR=e=>`scrollable-container--${e}`,aR=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=JE();return dc.jsx("div",{ref:t,"data-key":iR(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var lR=S.forwardRef(aR);const sR=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>dc.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function uR(){return uR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uR.apply(this,arguments)}function cR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dR(e,t){return dR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dR(e,t)}function pR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dR(e,t)}var fR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function hR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||fR(r)&&fR(o)))return!1;var r,o;return!0}function mR(e,t){var n;void 0===t&&(t=hR);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function gR(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var bR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vR(e){cancelAnimationFrame(e.id)}function yR(e,t){var n=bR();var r={id:requestAnimationFrame((function o(){bR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var xR=-1;function SR(e){if(void 0===e&&(e=!1),-1===xR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),xR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xR}var ER=null;function CR(e){if(void 0===e&&(e=!1),null===ER||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ER="positive-descending":(t.scrollLeft=1,ER=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ER}return ER}var wR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function RR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,cR(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:cR(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mR((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=mR((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=mR((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(CR()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}pR(t,e),t.getDerivedStateFromProps=function(e,t){return LR(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=SR();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(CR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?wR:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],I=[];if(r>0&&g)for(var M=L;M<=A;M++)for(var D=E;D<=w;D++)I.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:uR({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:I,ref:s,style:{height:P,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var LR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},AR=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},IR=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},MR=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},DR=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?PR(e,t,n,i,0,r):_R(e,t,n,Math.max(0,i),r)},PR=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=MR(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},_R=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&MR(e,t,r,n).offset<o;)r+=a,a*=2;return PR(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},OR=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=MR(e,t,n,i),u="column"===e?IR(t,i):AR(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},TR=RR({getColumnOffset:function(e,t,n){return MR("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return DR("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=MR("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=MR("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:AR,getEstimatedTotalWidth:IR,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return OR("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return OR("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return MR("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return DR("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=MR("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=MR("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),kR=function(e,t){return e};function qR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,cR(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:cR(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=mR((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=mR((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(CR()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pR(t,e),t.getDerivedStateFromProps=function(e,t){return NR(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?SR():0:s.scrollHeight>s.clientHeight?SR():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(CR()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vR(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?kR:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],R=E[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(C(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:uR({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(l||s||"div",{children:L,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},FR=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},zR=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=FR(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},jR=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&FR(e,n,t).offset<r;)n+=i,i*=2;return zR(e,t,Math.min(n,o-1),Math.floor(n/2),r)},$R=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},GR=qR({getItemOffset:function(e,t,n){return FR(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:$R,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=FR(e,t,o),p=$R(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?zR(e,t,o,0,n):jR(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=FR(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=FR(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function BR(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var HR=["style"],WR=["style"];function VR(e,t){var n=e.style,r=gR(e,HR),o=t.style,i=gR(t,WR);return!BR(n,o)&&!BR(r,i)}const YR=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),UR=10,KR=(e,t)=>e.current===_t.Backward?t:0,XR=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},JR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,ZR=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(XR(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&JR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},QR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===_t.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return ZR({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},eL=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=KR(n,UR),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+UR,l-u),pageTop:o,qHeight:a}})(r,o,n),u=ZR({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...QR({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},tL=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},nL=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,rL=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(tL(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&nL(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},oL=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=KR(n,UR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+UR,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=rL({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===_t.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=rL({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},iL=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==_t.None&&(p=oL({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==_t.None&&(f=eL({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===_t.None&&a.current===_t.None&&(p=rL({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},aL=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(iL,100),lL=rt(iL,75),sL=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=tC();return dc.jsx("div",{style:{...e,...kr,...zr(n,r,l,o),...$r({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},uL=({children:e,verticalAlign:t,width:n,right:r})=>dc.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),cL=e=>{const{type:t,imageSize:n}=e;return t!==xt.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},dL=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function pL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),hL=D(fL);function mL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),bL=D(gL),vL=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Nt)};function yL(e,t){const n=e.isActive(),[r,o]=I(new Map),[i,a]=I(null);_((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=P((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Ht.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=P((t=>async n=>{if(vL(n))return;if(e.isActive()||await e.begin([uC]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===Ht.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[uC,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=P((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return A((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const xL=O({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),SL=()=>E(xL),EL=({children:e,selections:t,updatePageInfo:n})=>{const r=yL(t,n);return dc.jsx(xL.Provider,{value:r,children:e})};var CL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(CL||(CL={}));const wL={brighter:.5,darker:.3,opacity:.03},RL=(e,{cell:t,styleService:n})=>{if(e===CL.Background||e===CL.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},LL=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=RL(CL.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?RL(CL.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Db(i=o,wL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},AL=({cell:e,styleService:t,isCellSelected:n})=>n?"white":RL(CL.Color,{cell:e,styleService:t}),IL=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=RL(CL.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?Ar:o},ML=({cell:e,styleService:t})=>RL(CL.FontStyle,{cell:e,styleService:t}),DL=({cell:e,styleService:t})=>RL(CL.TextDecoration,{cell:e,styleService:t}),PL=e=>e?"pointer":"default",_L=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},OL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===xt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},TL=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=tC(),{interactions:i}=JE(),{isActive:a}=SL();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=AL({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?bL:hL;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,dc.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...OL(e,o)},onClick:l?void 0:_L({cell:e,expandOrCollapse:d})})},kL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},qL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},NL=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},FL=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},zL=e=>{if("alwaysFit"===e)return"contain"},jL=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=JE(),t=M(null),{promise:n,resolve:r}=A((()=>dL()),[]);return _((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:P((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return dc.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...NL({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:dc.jsx("img",{src:s,alt:u,style:{width:qL(c),height:kL(c),objectFit:zL(c),objectPosition:FL(c,d),...f},onLoad:l,ref:a})})},$L=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},GL={display:"flex",flexDirection:"row",alignItems:"center"},BL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},HL=(e,t,n,r)=>t?{...BL,...e.nullValues}:n?{...GL,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...GL,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},WL=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...qr,...!n&&Nr(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Ar:s,fontStyle:u,textDecoration:c}},VL=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==xt.Image?$L(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},YL=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=WL(n,o,i,a,e.isNull);return r.type!==xt.Image||e.isNull?dc.jsx("span",{style:{padding:4,...s},children:l}):dc.jsx(jL,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},UL=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},KL="flex-start",XL=(e,t)=>{return e.isNull?KL:t.type===xt.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:KL;var n},JL=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=tC(),{env:a}=JE(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=r,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return dc.jsx(sL,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?UL(g,t):UL(m,e),E=u.visibleMeasureInfo[S],C=kw(v.ref,u.isIndentModeEnabled?{type:xt.Text}:E.representation,b[S],a),w=!v.isNull&&f(e,t),R=v.isNull?u.getNullValueText():C.text,L=!v.isNull||!Number.isNaN(+R),A=qw(b[S],v.ref),I={...HL(i,v.isNull,w,A.background),...zr(y,x,i.grid.border,c),...$r({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...kr,padding:"0px 4px",display:"flex",justifyContent:VL(v,E,C,L,a.flags)};return dc.jsx("div",{className:kt,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:dc.jsx(uL,{width:cL(C),verticalAlign:XL(v,C),children:dc.jsx(YL,{cell:v,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:A.color})})})};var ZL=S.memo(JL,VR);const QL=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},eA=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},tA={...Tr,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},nA=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=tC(),x={...tA,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>P((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return YR(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>P((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return YR(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>P(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=JE();return P((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const h=e.gridWidth+i+(s.current===_t.None?0:UR),m=e.gridHeight+a+(l.current===_t.None?0:UR);let g=aL;m*h>1500&&(g=lL),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Ub((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),k((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:dc.jsx(TR,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:eA,children:ZL})};var rA=T(nA);function oA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),S.createElement("use",{fillRule:"evenodd"})),aA=D(iA),lA=e=>{const[t,n]=I(!1);return Ub((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},sA=({interactions:e,dataModel:t})=>{const[n,r]=I(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=lA([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!vL(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function uA(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Pr.Transparent?Dg.WHITE:l,u=null===(o=Kg(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Kg(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const cA=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=JE(),{isActive:u}=SL(),c=tC(),[,d]=I({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=uA(c,e);return dc.jsx(cS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*lC,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function dA(e){return Ry(e)}const pA=e=>e.scrollTop;function fA(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function hA(e){return js("MuiPaper",e)}$s("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 mA=["className","component","elevation","square","variant"],gA=oS("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Jr({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},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Jr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ky("#fff",lS(t.elevation))}, ${ky("#fff",lS(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var bA=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=oo(n,mA),u=Jr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return qs({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},hA,o)})(u);return dc.jsx(gA,Jr({as:o,ownerState:u,className:Vs(c.root,r),ref:t},s))}));var vA=$s("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const yA=["center","classes","className"];let xA,SA,EA,CA,wA=e=>e;const RA=Dl(xA||(xA=wA`
|
|
101
|
+
`),_p.rippleVisible,zp,550,(({theme:e})=>e.transitions.easing.easeInOut),_p.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),_p.child,_p.childLeaving,jp,550,(({theme:e})=>e.transitions.easing.easeInOut),_p.childPulsate,$p,(({theme:e})=>e.transitions.easing.easeInOut));var Hp=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Bo(n,Op),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=x.useRef(0),f=x.useRef(null),h=x.useRef(null);x.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,dc.jsx(Bp,{classes:{ripple:qd(o.ripple,_p.ripple),rippleVisible:qd(o.rippleVisible,_p.rippleVisible),ripplePulsate:qd(o.ripplePulsate,_p.ripplePulsate),child:qd(o.child,_p.child),childLeaving:qd(o.childLeaving,_p.childLeaving),childPulsate:qd(o.childPulsate,_p.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),dc.jsx(Gp,Go({className:qd(_p.root,o.root,i),ref:h},a,{children:dc.jsx(xp,{component:null,exit:!0,children:l})}))}));function Wp(e){return id("MuiButtonBase",e)}var Vp=ad("MuiButtonBase",["root","disabled","focusVisible"]);const Yp=["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"],Up=Od("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"},[`&.${Vp.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Kp=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=Bo(n,Yp),O=x.useRef(null),T=x.useRef(null),k=Hc(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=ed(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return Bc((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=Bc((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=Bc((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=Bc((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=Hc(t,z,O),ue=Go({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=qs({root:["root",t&&"disabled",n&&"focusVisible"]},Wp,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return dc.jsxs(Up,Go({as:ae,className:qd(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?dc.jsx(Hp,Go({ref:k,center:o},M)):null]}))}));var Xp=Kp;function Jp(e){return id("MuiTypography",e)}ad("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Zp=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Qp=Od("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${kc(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Go({margin:0},"inherit"===t.variant&&{font:"inherit"},"inherit"!==t.variant&&e.typography[t.variant],"inherit"!==t.align&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16}))),ef={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},tf={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},nf=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiTypography"}),r=(e=>tf[e]||e)(n.color),o=mc(Go({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=ef}=o,f=Bo(o,Zp),h=Go({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),m=l||(c?"p":p[d]||ef[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return qs({root:["root",i,"inherit"!==e.align&&`align${kc(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Jp,a)})(h);return dc.jsx(Qp,Go({as:m,ref:t,ownerState:h,className:qd(g.root,a)},f))}));var rf=nf;const of=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function af(e){const t=[],n=[];return Array.from(e.querySelectorAll(of)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function lf(){return!0}function sf(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=af,isEnabled:a=lf,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=xs(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return dc.jsxs(x.Fragment,{children:[dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const uf=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=xs(x.isValidElement(n)?n.ref:null,t);if(vs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vs((()=>{if(i&&!o)return bs(t,i),()=>{bs(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return dc.jsx(x.Fragment,{children:n})}return dc.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));function cf(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function df(e){return parseInt(gs(e).getComputedStyle(e).paddingRight,10)||0}function pf(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&cf(e,o)}))}function ff(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function hf(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ms(e);return t.body===e?gs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ts(ms(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${df(r)+e}px`;const t=ms(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${df(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ms(r).body;else{const t=r.parentElement,n=gs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const mf=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&cf(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);pf(t,e.mount,e.modalRef,r,!0);const o=ff(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ff(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=hf(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ff(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&cf(e.modalRef,t),pf(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&cf(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function gf(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=mf,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=xs(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=ys((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ms(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=ys((e=>{f.current=e,e&&(c&&w()?E():h.current&&cf(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ip(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Jr({},n,t);return Jr({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Jr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:fs((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:fs((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}const bf=["onChange","maxRows","minRows","style","value"];function vf(e){return parseInt(e,10)||0}const yf={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function xf(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const Sf=x.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=oo(e,bf),{current:s}=x.useRef(null!=a),u=x.useRef(null),c=xs(t,u),d=x.useRef(null),p=x.useRef(0),[f,h]=x.useState({outerHeightStyle:0}),m=x.useCallback((()=>{const t=u.current,n=gs(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=vf(n.paddingBottom)+vf(n.paddingTop),s=vf(n.borderBottomWidth)+vf(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=x.useCallback((()=>{const e=m();xf(e)||h((t=>g(t,e)))}),[m]);vs((()=>{const e=()=>{p.current=0,(()=>{const e=m();xf(e)||F.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=hs(e),n=u.current,r=gs(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[m]),vs((()=>{b()})),x.useEffect((()=>{p.current=0}),[a]);return dc.jsxs(x.Fragment,{children:[dc.jsx("textarea",Jr({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:Jr({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),dc.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:Jr({},yf,i,{paddingTop:0,paddingBottom:0})})]})}));function Ef({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var Cf=x.createContext(void 0);function wf(){return x.useContext(Cf)}function Rf(e){return dc.jsx(pc,Go({},e,{defaultTheme:Ad,themeId:$o}))}function Lf(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Af(e,t=!1){return e&&(Lf(e.value)&&""!==e.value||t&&Lf(e.defaultValue)&&""!==e.defaultValue)}function If(e){return id("MuiInputBase",e)}var Mf=ad("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Df=["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"],Pf=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${kc(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},_f=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},Of=Od("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Pf})((({theme:e,ownerState:t})=>Go({},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",[`&.${Mf.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Go({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Tf=Od("input",{name:"MuiInputBase",slot:"Input",overridesResolver:_f})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Go({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Go({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] + .${Mf.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${Mf.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===t.size&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===t.type&&{MozAppearance:"textfield"})})),kf=dc.jsx(Rf,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),qf=x.forwardRef((function(e,t){var n;const r=Md({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:E=!1,name:C,onBlur:w,onChange:R,onClick:L,onFocus:A,onKeyDown:I,onKeyUp:M,placeholder:D,readOnly:P,renderSuffix:_,rows:O,slotProps:T={},slots:k={},startAdornment:q,type:N="text",value:F}=r,z=Bo(r,Df),j=null!=b.value?b.value:F,{current:$}=x.useRef(null!=j),G=x.useRef(),B=x.useCallback((e=>{}),[]),H=Hc(G,v,b.ref,B),[W,V]=x.useState(!1),Y=wf(),U=Ef({props:r,muiFormControl:Y,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=Y?Y.focused:W,x.useEffect((()=>{!Y&&d&&W&&(V(!1),w&&w())}),[Y,d,W,w]);const K=Y&&Y.onFilled,X=Y&&Y.onEmpty,J=x.useCallback((e=>{Af(e)?K&&K():X&&X()}),[K,X]);Fc((()=>{$&&J({value:j})}),[j,J,$]);x.useEffect((()=>{J(G.current)}),[]);let Z=g,Q=b;E&&"input"===Z&&(Q=Go(O?{type:void 0,minRows:O,maxRows:O}:{type:void 0,maxRows:y,minRows:S},Q),Z=Sf);x.useEffect((()=>{Y&&Y.setAdornedStart(Boolean(q))}),[Y,q]);const ee=Go({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:Y,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:E,size:U.size,startAdornment:q,type:N}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:h}=e;return qs({root:["root",`color${kc(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${kc(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},If,t)})(ee),ne=k.root||s.Root||Of,re=T.root||u.root||{},oe=k.input||s.Input||Tf;return Q=Go({},Q,null!=(n=T.input)?n:u.input),dc.jsxs(x.Fragment,{children:[!p&&kf,dc.jsxs(ne,Go({},re,!Ap(ne)&&{ownerState:Go({},ee,re.ownerState)},{ref:t,onClick:e=>{G.current&&e.currentTarget===e.target&&G.current.focus(),L&&L(e)}},z,{className:qd(te.root,re.className,l,P&&"MuiInputBase-readOnly"),children:[q,dc.jsx(Cf.Provider,{value:null,children:dc.jsx(oe,Go({ownerState:ee,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?G.current:{value:"x"})},name:C,placeholder:D,readOnly:P,required:U.required,rows:O,value:j,onKeyDown:I,onKeyUp:M,type:N},Q,!Ap(oe)&&{as:Z,ownerState:Go({},ee,Q.ownerState)},{ref:H,className:qd(te.input,Q.className,P&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),Y&&Y.onBlur?Y.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||G.current;if(null==t)throw new Error(jo(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(A&&A(e),b.onFocus&&b.onFocus(e),Y&&Y.onFocus?Y.onFocus(e):V(!0))}}))}),f,_?_(Go({},U,{startAdornment:q})):null]}))]})}));var Nf=qf;function Ff(e){return id("MuiInput",e)}var zf=Go({},Mf,ad("MuiInput",["root","underline","input"]));function jf(e){return id("MuiOutlinedInput",e)}var $f=Go({},Mf,ad("MuiOutlinedInput",["root","notchedOutline","input"]));function Gf(e){return id("MuiFilledInput",e)}var Bf=Go({},Mf,ad("MuiFilledInput",["root","underline","input"])),Hf=function(e,t){function n(n,r){return dc.jsx($d,Go({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=$d.muiName,x.memo(x.forwardRef(n))}(dc.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const Wf=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Vf={entering:{opacity:1},entered:{opacity:1}},Yf=x.forwardRef((function(e,t){const n=Id(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=hp}=e,v=Bo(e,Wf),y=x.useRef(null),S=Hc(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{Sp(e);const r=Ep({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=Ep({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return dc.jsx(b,Go({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Go({style:Go({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Vf[e],m,a.props.style),ref:S},t))}))}));var Uf=Yf;function Kf(e){return id("MuiBackdrop",e)}ad("MuiBackdrop",["root","invisible"]);const Xf=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Jf=Od("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Go({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"}))),Zf=x.forwardRef((function(e,t){var n,r,o;const i=Md({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Uf,transitionDuration:g}=i,b=Bo(i,Xf),v=Go({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return qs({root:["root",n&&"invisible"]},Kf,t)})(v),x=null!=(n=f.root)?n:c.root;return dc.jsx(m,Go({in:p,timeout:g},b,{children:dc.jsx(Jf,Go({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:qd(y.root,l,null==x?void 0:x.className),ownerState:Go({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Qf=Zf;var eh=ad("MuiBox",["root"]);const th=Ld(),nh=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Tl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Ku);return x.forwardRef((function(e,a){const l=tc(n),s=mc(e),{className:u,component:c="div"}=s,d=oo(s,gc);return dc.jsx(i,Jr({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:$o,defaultTheme:th,defaultClassName:eh.root,generateClassName:rd.generate});var rh=nh;function oh(e){return id("MuiButton",e)}var ih=ad("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var ah=x.createContext({});var lh=x.createContext(void 0);const sh=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],uh=e=>Go({},"small"===e.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===e.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===e.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),ch=Od(Xp,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${kc(n.color)}`],t[`size${kc(n.size)}`],t[`${n.variant}Size${kc(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return Go({},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":Go({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Pc(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===t.variant&&"inherit"!==t.color&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Pc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===t.variant&&"inherit"!==t.color&&{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})`:Pc(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:i,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},"contained"===t.variant&&"inherit"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Go({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ih.focusVisible}`]:Go({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ih.disabled}`]:Go({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"contained"===t.variant&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},"text"===t.variant&&{padding:"6px 8px"},"text"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main},"outlined"===t.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Pc(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ih.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ih.disabled}`]:{boxShadow:"none"}})),dh=Od("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${kc(n.size)}`]]}})((({ownerState:e})=>Go({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},uh(e)))),ph=Od("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${kc(n.size)}`]]}})((({ownerState:e})=>Go({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},uh(e)))),fh=x.forwardRef((function(e,t){const n=x.useContext(ah),r=x.useContext(lh),o=Md({props:td(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Bo(o,sh),S=Go({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),E=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return Go({},a,qs({root:["root",i,`${i}${kc(t)}`,`size${kc(o)}`,`${i}Size${kc(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${kc(o)}`],endIcon:["endIcon",`iconSize${kc(o)}`]},oh,a))})(S),C=g&&dc.jsx(dh,{className:E.startIcon,ownerState:S,children:g}),w=p&&dc.jsx(ph,{className:E.endIcon,ownerState:S,children:p}),R=r||"";return dc.jsxs(ch,Go({ownerState:S,className:qd(n.className,E.root,s,R),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:qd(E.focusVisible,f),ref:t,type:b},y,{classes:E,children:[C,i,w]}))}));var hh=fh;function mh(e){return id("MuiModal",e)}ad("MuiModal",["root","hidden","backdrop"]);const gh=["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"],bh=Od("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Go({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),vh=Od(Qf,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yh=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Md({name:"MuiModal",props:e}),{BackdropComponent:u=vh,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=Bo(s,gh),_=Go({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=gf(Go({},_,{rootRef:t})),j=Go({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return qs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},mh,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:bh,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=Pp({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:qd(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=Pp({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Go({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:qd(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?dc.jsx(uf,{ref:q,container:h,disablePortal:E,children:dc.jsxs(B,Go({},Y,{children:[!R&&u?dc.jsx(H,Go({},U)):null,dc.jsx(sf,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var xh=yh;function Sh(e){return id("MuiDivider",e)}var Eh=ad("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const Ch=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],wh=Od("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>Go({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Pc(e.palette.divider,.08)},"inset"===t.variant&&{marginLeft:72},"middle"===t.variant&&"horizontal"===t.orientation&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},"middle"===t.variant&&"vertical"===t.orientation&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},"vertical"===t.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"})),(({ownerState:e})=>Go({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>Go({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>Go({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>Go({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),Rh=Od("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Go({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},"vertical"===t.orientation&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}))),Lh=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Bo(n,Ch),h=Go({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return qs({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},Sh,r)})(h);return dc.jsx(wh,Go({as:a,className:qd(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?dc.jsx(Rh,{className:m.wrapper,ownerState:h,children:o}):null}))}));Lh.muiSkipListHighlight=!0;var Ah=Lh;const Ih=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Mh=Od(Of,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pf(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Go({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Bf.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Bf.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(n=(e.vars||e).palette[t.color||"primary"])?void 0:n.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"},[`&.${Bf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Bf.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})`:o}`,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(.${Bf.disabled}, .${Bf.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Bf.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Go({padding:"25px 12px 8px"},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9}))})),Dh=Od(Tf,{name:"MuiFilledInput",slot:"Input",overridesResolver:_f})((({theme:e,ownerState:t})=>Go({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&"small"===t.size&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}))),Ph=x.forwardRef((function(e,t){var n,r,o,i;const a=Md({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Bo(a,Ih),g=Go({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:n}=e;return Go({},t,qs({root:["root",!n&&"underline"],input:["input"]},Gf,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?Tc(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:Mh,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:Dh;return dc.jsx(Nf,Go({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:b}))}));Ph.muiName="Input";var _h=Ph;const Oh=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Th(e){return`scale(${e}, ${e**2})`}const kh={entering:{opacity:1,transform:Th(1)},entered:{opacity:1,transform:"none"}},qh="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Nh=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=hp}=e,g=Bo(e,Oh),b=x.useRef(),v=x.useRef(),y=Id(),S=x.useRef(null),E=Hc(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{Sp(e);const{duration:n,delay:r,easing:o}=Ep({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:qh?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=Ep({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:qh?o:.666*o,delay:qh?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Th(.75),c&&c(e)})),M=C(d);return x.useEffect((()=>()=>{clearTimeout(b.current)}),[]),dc.jsx(m,Go({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&(b.current=setTimeout(e,v.current||0)),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Go({style:Go({opacity:0,transform:Th(.75),visibility:"exited"!==e||a?void 0:"hidden"},kh[e],f,o.props.style),ref:E},t))}))}));Nh.muiSupportAuto=!0;var Fh=Nh;const zh=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],jh=Od(Of,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Pf(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{let n="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Go({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"},[`&.${zf.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zf.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${zf.disabled}, .${zf.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${zf.disabled}:before`]:{borderBottomStyle:"dotted"}})})),$h=Od(Tf,{name:"MuiInput",slot:"Input",overridesResolver:_f})({}),Gh=x.forwardRef((function(e,t){var n,r,o,i;const a=Md({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Bo(a,zh),b=(e=>{const{classes:t,disableUnderline:n}=e;return Go({},t,qs({root:["root",!n&&"underline"],input:["input"]},Ff,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?Tc(null!=f?f:u,v):v,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:jh,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:$h;return dc.jsx(Nf,Go({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))}));Gh.muiName="Input";var Bh=Gh;function Hh(e){return id("MuiLink",e)}var Wh=ad("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const Vh={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Yh=({theme:e,ownerState:t})=>{const n=(e=>Vh[e]||e)(t.color),r=ou(e,`palette.${n}`,!1)||t.color,o=ou(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Pc(r,.4)};const Uh=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Kh=Od(rf,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${kc(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>Go({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&Go({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Yh({theme:e,ownerState:t})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===t.component&&{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"},[`&.${Wh.focusVisible}`]:{outline:"auto"}}))),Xh=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=Bo(n,Uh),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=ed(),[b,v]=x.useState(!1),y=Hc(t,g),S=Go({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),E=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return qs({root:["root",`underline${kc(o)}`,"button"===n&&"button",r&&"focusVisible"]},Hh,t)})(S);return dc.jsx(Kh,Go({color:o,className:qd(E.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:S,variant:c,sx:[...Object.keys(Vh).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var Jh=Xh;var Zh=x.createContext({});function Qh(e){return id("MuiList",e)}ad("MuiList",["root","padding","dense","subheader"]);const em=["children","className","component","dense","disablePadding","subheader"],tm=Od("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Go({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var nm=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Bo(n,em),c=x.useMemo((()=>({dense:a})),[a]),d=Go({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return qs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},Qh,t)})(d);return dc.jsx(Zh.Provider,{value:c,children:dc.jsxs(tm,Go({as:i,className:qd(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function rm(e){return id("MuiListItemIcon",e)}var om=ad("MuiListItemIcon",["root","alignItemsFlexStart"]);const im=["className"],am=Od("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>Go({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var lm=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Bo(n,im),i=Go({},n,{alignItems:x.useContext(Zh).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return qs({root:["root","flex-start"===t&&"alignItemsFlexStart"]},rm,n)})(i);return dc.jsx(am,Go({className:qd(a.root,r),ownerState:i,ref:t},o))}));var sm=ad("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const um=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function cm(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function dm(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function pm(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function fm(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&pm(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var hm=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=Bo(e,um),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Fc((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(qc(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=Hc(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return dc.jsx(nm,Go({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=qc(t).activeElement;if("ArrowDown"===n)e.preventDefault(),fm(t,r,s,l,cm);else if("ArrowUp"===n)e.preventDefault(),fm(t,r,s,l,dm);else if("Home"===n)e.preventDefault(),fm(t,null,s,l,cm);else if("End"===n)e.preventDefault(),fm(t,null,s,l,dm);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&pm(r,o);o.previousKeyMatched&&(s||fm(t,r,!1,l,cm,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function mm(e){return id("MuiPopover",e)}ad("MuiPopover",["root","paper"]);const gm=["onEntering"],bm=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],vm=["slotProps"];function ym(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function xm(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Sm(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function Em(e){return"function"==typeof e?e():e}const Cm=Od(xh,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wm=Od(Lp,{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});var Rm=x.forwardRef((function(e,t){var n,r,o;const i=Md({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=Fh,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=Bo(i.TransitionProps,gm),A=Bo(i,bm),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=Hc(M,I.ref),P=Go({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"]},mm,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=Em(l),t=(e&&1===e.nodeType?e:qc(M.current).body).getBoundingClientRect();return{top:t.top+ym(t,s.vertical),left:t.left+xm(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:ym(e,S.vertical),horizontal:xm(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:Sm(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=Nc(Em(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Sm(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{F()})),t=Nc(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?qc(Em(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:Cm,G=null!=(o=null==v?void 0:v.paper)?o:wm,B=Pp({elementType:G,externalSlotProps:Go({},I,{style:q?I.style:Go({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:qd(_.paper,null==I?void 0:I.className)}),H=Pp({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:qd(_.root,p)}),{slotProps:W}=H,V=Bo(H,vm);return dc.jsx($,Go({},V,!Ap($)&&{slotProps:W,disableScrollLock:R},{children:dc.jsx(E,Go({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:dc.jsx(G,Go({},B,{children:d}))}))}))}));function Lm(e){return id("MuiMenu",e)}ad("MuiMenu",["root","paper","list"]);const Am=["onEntering"],Im=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Mm={vertical:"top",horizontal:"right"},Dm={vertical:"top",horizontal:"left"},Pm=Od(Rm,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_m=Od(wm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Om=Od(hm,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Tm=x.forwardRef((function(e,t){var n,r;const o=Md({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Bo(o.TransitionProps,Am),S=Bo(o,Im),E=Id(),C="rtl"===E.direction,w=Go({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),R=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"],list:["list"]},Lm,t)})(w),L=i&&!s&&d,A=x.useRef(null);let I=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))}));const M=null!=(n=b.paper)?n:_m,D=null!=(r=v.paper)?r:p,P=Pp({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[R.root,l]}),_=Pp({elementType:M,externalSlotProps:D,ownerState:w,className:R.paper});return dc.jsx(Pm,Go({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:C?"right":"left"},transformOrigin:C?Mm:Dm,slots:{paper:M,root:b.root},slotProps:{root:P,paper:_},open:d,ref:t,transitionDuration:h,TransitionProps:Go({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,E),m&&m(e,t)}},y),ownerState:w},S,{classes:f,children:dc.jsx(Om,Go({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||s),autoFocusItem:L,variant:g},u,{className:qd(R.list,u.className),children:a}))}))}));function km(e){return id("MuiMenuItem",e)}var qm=ad("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Nm=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Fm=Od(Xp,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Go({},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"}},[`&.${qm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Pc(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Pc(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Pc(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})`:Pc(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Eh.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Eh.inset}`]:{marginLeft:52},[`& .${sm.root}`]:{marginTop:0,marginBottom:0},[`& .${sm.inset}`]:{paddingLeft:36},[`& .${om.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Go({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${om.root} svg`]:{fontSize:"1.25rem"}}))));var zm=x.forwardRef((function(e,t){const n=Md({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=Bo(n,Nm),f=x.useContext(Zh),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);Fc((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Go({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Go({},a,qs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},km,a))})(n),v=Hc(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),dc.jsx(Zh.Provider,{value:h,children:dc.jsx(Fm,Go({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:qd(b.focusVisible,s),className:qd(b.root,d)},p,{ownerState:g,classes:b}))})}));function jm(e){return id("MuiNativeSelect",e)}var $m=ad("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const Gm=["className","disabled","error","IconComponent","inputRef","variant"],Bm=({ownerState:e,theme:t})=>Go({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Go({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:"light"===t.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${$m.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===e.variant&&{"&&&":{paddingRight:32}},"outlined"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),Hm=Od("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Dd,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$m.multiple}`]:t.multiple}]}})(Bm),Wm=({ownerState:e,theme:t})=>Go({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$m.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),Vm=Od("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${kc(n.variant)}`],n.open&&t.iconOpen]}})(Wm),Ym=x.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=Bo(e,Gm),u=Go({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return qs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${kc(n)}`,i&&"iconOpen",r&&"disabled"]},jm,t)})(u);return dc.jsxs(x.Fragment,{children:[dc.jsx(Hm,Go({ownerState:u,className:qd(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:dc.jsx(Vm,{as:i,ownerState:u,className:c.icon})]})}));var Um,Km=Ym;const Xm=["children","classes","className","label","notched"],Jm=Od("fieldset",{shouldForwardProp:Dd})({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%"}),Zm=Od("legend",{shouldForwardProp:Dd})((({ownerState:e,theme:t})=>Go({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&&Go({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})}))));const Qm=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],eg=Od(Of,{shouldForwardProp:e=>Dd(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Pf})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Go({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$f.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${$f.focused} .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${$f.error} .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$f.disabled} .${$f.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Go({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),tg=Od((function(e){const{className:t,label:n,notched:r}=e,o=Bo(e,Xm),i=null!=n&&""!==n,a=Go({},e,{notched:r,withLabel:i});return dc.jsx(Jm,Go({"aria-hidden":!0,className:t,ownerState:a},o,{children:dc.jsx(Zm,{ownerState:a,children:i?dc.jsx("span",{children:n}):Um||(Um=dc.jsx("span",{className:"notranslate",children:""}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})((({theme:e})=>{const t="light"===e.palette.mode?"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}})),ng=Od(Tf,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:_f})((({theme:e,ownerState:t})=>Go({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===e.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===e.palette.mode?null:"#fff",caretColor:"light"===e.palette.mode?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"}}},"small"===t.size&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0}))),rg=x.forwardRef((function(e,t){var n,r,o,i,a;const l=Md({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Bo(l,Qm),b=(e=>{const{classes:t}=e;return Go({},t,qs({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},jf,t))})(l),v=wf(),y=Ef({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=Go({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),E=null!=(n=null!=(r=h.root)?r:s.Root)?n:eg,C=null!=(o=null!=(i=h.input)?i:s.Input)?o:ng;return dc.jsx(Nf,Go({slots:{root:E,input:C},renderSuffix:e=>dc.jsx(tg,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=dc.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:m},g,{classes:Go({},b,{notchedOutline:null})}))}));rg.muiName="Input";var og=rg;function ig(e){return id("MuiSelect",e)}var ag,lg=ad("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const sg=["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"],ug=Od("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${lg.select}`]:t.select},{[`&.${lg.select}`]:t[n.variant]},{[`&.${lg.error}`]:t.error},{[`&.${lg.multiple}`]:t.multiple}]}})(Bm,{[`&.${lg.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),cg=Od("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${kc(n.variant)}`],n.open&&t.iconOpen]}})(Wm),dg=Od("input",{shouldForwardProp:e=>Pd(e)&&"classes"!==e,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 pg(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function fg(e){return null==e||"string"==typeof e&&!e.trim()}const hg=x.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:E,onClose:C,onFocus:w,onOpen:R,open:L,readOnly:A,renderValue:I,SelectDisplayProps:M={},tabIndex:D,value:P,variant:_="standard"}=e,O=Bo(e,sg),[T,k]=Gc({controlled:P,default:c,name:"Select"}),[q,N]=Gc({controlled:L,default:u,name:"Select"}),F=x.useRef(null),z=x.useRef(null),[j,$]=x.useState(null),{current:G}=x.useRef(null!=L),[B,H]=x.useState(),W=Hc(t,m),V=x.useCallback((e=>{z.current=e,e&&$(e)}),[]),Y=null==j?void 0:j.parentNode;x.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:F.current,value:T})),[T]),x.useEffect((()=>{u&&q&&j&&!G&&(H(a?null:Y.clientWidth),z.current.focus())}),[j,a]),x.useEffect((()=>{i&&z.current.focus()}),[i]),x.useEffect((()=>{if(!g)return;const e=qc(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?R&&R(t):C&&C(t),G||(H(a?null:Y.clientWidth),N(e))},K=x.Children.toArray(l),X=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.indexOf(e.props.value);-1===t?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;if(e.props.onClick&&e.props.onClick(t),T!==n&&(k(n),E)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),E(o,e)}v||U(!1,t)}},J=null!==j&&q;let Z,Q;delete O["aria-invalid"];const ee=[];let te=!1;(Af({value:T})||p)&&(I?Z=I(T):te=!0);const ne=K.map((e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(jo(2));t=T.some((t=>pg(t,e.props.value))),t&&te&&ee.push(e.props.children)}else t=pg(T,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})}));te&&(Z=v?0===ee.length?null:ee.reduce(((e,t,n)=>(e.push(t),n<ee.length-1&&e.push(", "),e)),[]):Q);let re,oe=B;!a&&G&&j&&(oe=Y.clientWidth),re=void 0!==D?D:d?null:0;const ie=M.id||(y?`mui-component-select-${y}`:void 0),ae=Go({},e,{variant:_,value:T,open:J,error:f}),le=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return qs({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${kc(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},ig,t)})(ae),se=Go({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),ue=$c();return dc.jsxs(x.Fragment,{children:[dc.jsx(ug,Go({ref:V,tabIndex:re,role:"combobox","aria-controls":ue,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!A){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||A?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),U(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),S(e))},onFocus:w},M,{ownerState:ae,className:qd(M.className,le.select,s),id:ie,children:fg(Z)?ag||(ag=dc.jsx("span",{className:"notranslate",children:""})):Z})),dc.jsx(dg,Go({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:F,"aria-hidden":!0,onChange:e=>{const t=K.find((t=>t.props.value===e.target.value));void 0!==t&&(k(t.props.value),E&&E(e,t))},tabIndex:-1,disabled:d,className:le.nativeInput,autoFocus:i,ownerState:ae},O)),dc.jsx(cg,{as:h,className:le.icon,ownerState:ae}),dc.jsx(Tm,Go({id:`menu-${y||""}`,anchorEl:Y,open:J,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:Go({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ue},b.MenuListProps),slotProps:Go({},b.slotProps,{paper:Go({},se,{style:Go({minWidth:oe},null!=se?se.style:null)})}),children:ne}))]})}));var mg=hg;const gg=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],bg=["root"],vg={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Dd(e)&&"variant"!==e,slot:"Root"},yg=Od(Bh,vg)(""),xg=Od(og,vg)(""),Sg=Od(_h,vg)(""),Eg=x.forwardRef((function(e,t){const n=Md({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=Hf,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:C,variant:w="outlined"}=n,R=Bo(n,gg),L=b?Km:mg,A=Ef({props:n,muiFormControl:wf(),states:["variant","error"]}),I=A.variant||w,M=Go({},n,{variant:I,classes:i}),D=(e=>{const{classes:t}=e;return t})(M),P=Bo(D,bg),_=d||{standard:dc.jsx(yg,{ownerState:M}),outlined:dc.jsx(xg,{label:f,ownerState:M}),filled:dc.jsx(Sg,{ownerState:M})}[I],O=Hc(t,_.ref);return dc.jsx(x.Fragment,{children:x.cloneElement(_,Go({inputComponent:L,inputProps:Go({children:o,error:A.error,IconComponent:u,variant:I,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:E,SelectDisplayProps:Go({id:c},C)},p,{classes:p?Tc(P,p.classes):P},d?d.props.inputProps:{})},g&&b&&"outlined"===I?{notched:!0}:{},{ref:O,className:qd(_.props.className,a,D.root)},!d&&{variant:I},R))})}));Eg.muiName="Select";var Cg=Eg,wg=(e={})=>S.createElement(Lo,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:so.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Rg={MuiAccordion:{styleOverrides:{root:{backgroundColor:so.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:so.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(Co,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${so.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${so.MISC_FOCUS_BORDER}`,borderRadius:ho,backgroundColor:so.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${so.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:so.WHITE,color:so.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:ho},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:so.GREYSCALE_0_15,backgroundColor:so.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${so.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:so.GREEN_PALE},"&:active":{backgroundColor:so.GREEN_DARK},"&.Mui-focusVisible":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:so.BLUE_PALE},"&:active":{backgroundColor:so.BLUE_DARK},"&.Mui-focusVisible":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:ho,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:so.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:so.GREYSCALE_0_15,backgroundColor:so.GREYSCALE_100_60,"&:active":{backgroundColor:so.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${so.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:so.PURPLE,"&.Mui-focusVisible":{borderColor:so.PURPLE,boxShadow:`0 0 0 3px ${Pc(so.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:so.GREEN,"&.Mui-focusVisible":{borderColor:so.GREEN,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:so.BLUE,"&.Mui-focusVisible":{borderColor:so.BLUE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:so.ORANGE,"&.Mui-focusVisible":{borderColor:so.ORANGE,boxShadow:`0 0 0 3px ${Pc(so.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:so.RED,"&.Mui-focusVisible":{borderColor:so.RED,boxShadow:`0 0 0 3px ${Pc(so.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:so.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:so.PURPLE_PALE},"&:active":{backgroundColor:so.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:so.PURPLE_PALE,boxShadow:`0 0 0 3px ${Pc(so.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:so.GREEN_PALE},"&:active":{backgroundColor:so.GREEN_DARK},"&.Mui-focusVisible":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:so.BLUE_PALE},"&:active":{backgroundColor:so.BLUE_DARK},"&.Mui-focusVisible":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:so.ORANGE_PALE},"&:active":{backgroundColor:so.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:so.ORANGE_PALE,boxShadow:`0 0 0 3px ${Pc(so.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:so.RED_PALE},"&:active":{backgroundColor:so.RED_DARK},"&.Mui-focusVisible":{borderColor:so.RED_PALE,boxShadow:`0 0 0 3px ${Pc(so.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:so.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:so.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:ho,boxShadow:`inset 0 0 0 2px ${so.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(Ro,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:uo,borderRadius:ho,color:so.TEXT_PRIMARY,backgroundColor:so.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${so.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:so.GREYSCALE_0_05,color:so.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:so.GREEN,borderColor:so.GREEN},"&.MuiChip-outlinedInfo":{color:so.BLUE,borderColor:so.BLUE},"&.MuiChip-outlinedWarning":{color:so.ORANGE,borderColor:so.ORANGE},"&.MuiChip-outlinedError":{color:so.RED,borderColor:so.RED}},outlined:{border:`solid 1px ${so.GREYSCALE_0_15}`,backgroundColor:so.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:ho,boxShadow:"none",backgroundColor:so.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:so.GREEN,borderColor:so.GREEN},outlinedSecondary:{color:so.BLUE,borderColor:so.BLUE},label:{fontFamily:yo.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(Ro,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(Co,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:ho},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:ho,fontSize:co,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:so.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${so.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:so.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:so.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:so.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:ho,border:`solid 1px ${so.GREYSCALE_0_15}`,color:so.GREYSCALE_0_60,marginRight:0,width:fo,height:fo},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${so.GREYSCALE_0_15}`},clearIndicator:{borderRadius:ho,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:so.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:co}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:uo,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:so.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:so.GREYSCALE_25,fontSize:uo,fontFamily:yo.FONT_FAMILY,fontWeight:bo,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:so.TEXT_PRIMARY},"&.Mui-error":{color:so.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:so.TEXT_SECONDARY,content:"'(optional)'",fontWeight:go,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:so.TEXT_SECONDARY,content:"'(required)'",fontWeight:go,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:co,lineHeight:"16px",backgroundColor:so.WHITE,borderRadius:ho,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.GREYSCALE_0_05}`,borderColor:so.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${so.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${so.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.RED}`,boxShadow:`0px 0px 0px 1px ${so.RED}, inset 0 2px 0 0 ${so.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${so.GREYSCALE_0_10}`,borderColor:so.GREYSCALE_0_10,backgroundColor:so.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:so.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:so.GREYSCALE_0_15,borderRadius:ho,boxShadow:`inset 0 2px 0 0 ${so.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(Co,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:so.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:so.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:so.GREYSCALE_0_03},"&:active":{backgroundColor:so.GREYSCALE_0_10},"&:focus":{backgroundColor:so.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${so.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${so.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:so.GREYSCALE_0_30,"&:hover":{backgroundColor:so.GREYSCALE_0_0,borderColor:so.GREYSCALE_0_15},"& ~svg":{color:so.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${so.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:ho}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:so.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:so.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:co,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:uo,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:uo,fontWeight:bo,color:so.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:bo}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${so.GREYSCALE_0_15}, 0px 0px 0px 1px ${so.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(Mo,null),checkedIcon:S.createElement(Do,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:so.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${so.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:so.GREYSCALE_0_20}},"&.Mui-disabled":{fill:so.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(wg,null),checkedIcon:S.createElement(Ao,null),indeterminateIcon:S.createElement(Io,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:ho,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:so.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:so.GREYSCALE_0_55,color:so.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:so.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:so.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:so.GREYSCALE_0_55,"&:hover":{color:so.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:so.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:so.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:co,color:so.TEXT_PRIMARY,lineHeight:"16px",fontWeight:bo},secondary:{fontSize:uo,color:so.GREYSCALE_45,fontWeight:go,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:co,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:so.GREYSCALE_0_03},"&:active":{backgroundColor:so.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:co,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:so.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:uo,borderBottom:`solid 1px ${so.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:co,color:so.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:so.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:so.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:so.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:so.RED}}},"&.Mui-focusVisible":{backgroundColor:so.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:so.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:so.GREEN,height:"24px","&.Mui-disabled":{color:so.GREYSCALE_0_15}},rail:{backgroundColor:so.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${so.GREYSCALE_0_05}`,borderRadius:ho,boxShadow:`inset 0px 0px 0px 1px ${so.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${so.GREYSCALE_0_05}`,borderRadius:ho},thumb:{height:"16px",width:"16px",borderRadius:ho,backgroundColor:so.WHITE,boxShadow:`0px 1px 2px 0px ${so.GREYSCALE_0_15}, 0px 0px 0px 1px ${so.GREYSCALE_0_05}`,"&:hover":{borderRadius:ho,boxShadow:`0 2px 4px 0 ${so.GREYSCALE_0_30}, 0 0 0 1px ${so.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${so.GREYSCALE_0_15}, 0 0 0 1px ${so.GREYSCALE_0_06}, 0 0 0 2px ${so.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${so.GREYSCALE_0_15}, 0 0 0 1px ${so.GREYSCALE_0_06}, 0 0 0 2px ${so.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:so.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:so.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:so.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:so.GREYSCALE_0_15},markLabel:{color:so.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:so.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:so.WHITE,color:so.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:so.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:so.GREEN_PALE,boxShadow:`0 0 0 3px ${Pc(so.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:so.BLUE_PALE,boxShadow:`0 0 0 3px ${Pc(so.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:so.GREYSCALE_0_15,borderRadius:ho},thumb:{height:"16px",width:"16px",borderRadius:ho,backgroundColor:so.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:co,fontWeight:bo,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${so.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${so.MISC_FOCUS_BORDER}`,backgroundColor:so.GREYSCALE_0_03,borderRadius:ho},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:so.GREYSCALE_25,"&.Mui-selected":{color:so.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:co,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${so.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${so.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${so.GREYSCALE_85}`,borderRight:`1px solid ${so.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:bo,backgroundColor:so.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:so.GREYSCALE_98,borderBottom:`1px solid ${so.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${so.GREYSCALE_85}`,borderTop:`1px solid ${so.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:so.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:so.GREYSCALE_0_05,"&:hover":{backgroundColor:so.GREYSCALE_0_03}},"&&:hover":{backgroundColor:so.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(Po,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${so.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:co,borderRadius:ho,padding:"7px 16px",border:`1px solid ${so.GREYSCALE_0_15}`,backgroundColor:so.GREYSCALE_100_60,color:so.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:so.GREYSCALE_0_10,border:`1px solid ${so.GREYSCALE_0_30}`},"&:hover":{backgroundColor:so.GREYSCALE_0_03,border:`1px solid ${so.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:so.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${so.MISC_FOCUS_BORDER}`,border:`1px solid ${so.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:so.GREYSCALE_25,backgroundColor:so.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:so.GREYSCALE_0_10,border:`1px solid ${so.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:uo,height:24,width:24,padding:7},sizeLarge:{fontSize:po,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:co,borderRadius:ho}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:so.GREYSCALE_20},tooltip:{backgroundColor:so.GREYSCALE_20,fontSize:uo,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const Lg={mode:"light",primary:{light:so.GREEN_PALE,main:so.GREEN,dark:so.GREEN_DARK,contrastText:so.WHITE},secondary:{light:so.BLUE_PALE,main:so.BLUE,dark:so.BLUE_DARK,contrastText:so.WHITE},error:{light:so.RED_PALE,main:so.RED,dark:so.RED_DARK,contrastText:so.WHITE},warning:{light:so.ORANGE_PALE,main:so.ORANGE,dark:so.ORANGE_DARK,contrastText:so.WHITE},success:{light:so.GREEN_PALE,main:so.GREEN,dark:so.GREEN_DARK,contrastText:so.WHITE},info:{light:so.BLUE_PALE,main:so.BLUE,dark:so.BLUE_DARK,contrastText:so.WHITE},text:{primary:so.TEXT_PRIMARY,secondary:so.TEXT_SECONDARY,disabled:so.GREYSCALE_0_30},action:{hover:so.GREYSCALE_0_03,hoverOpacity:.05,selected:so.GREYSCALE_0_05,focus:so.MISC_FOCUS_BORDER},amethyst:{main:so.PURPLE,light:so.PURPLE_PALE,dark:so.PURPLE_DARK,contrastText:so.WHITE},background:{paper:so.WHITE,default:so.GREYSCALE_95},divider:so.GREYSCALE_0_15},Ag=e=>({components:Rg,palette:Lg,breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:co,fontWeightLight:mo,fontWeightRegular:go,fontWeightMedium:bo,fontWeightBold:vo,htmlFontSize:co,fontFamily:yo.FONT_FAMILY,button:{fontWeight:bo,fontSize:co,textTransform:"none"},body1:{fontSize:po,lineHeight:"24px"},body2:{fontSize:co,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:fo,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:po,fontWeight:bo,lineHeight:"16px"},h6:{fontSize:co,fontWeight:bo,lineHeight:"16px"},caption:{color:so.TEXT_SECONDARY},subtitle1:{fontSize:co,color:so.TEXT_SECONDARY},subtitle2:{fontSize:uo,color:so.TEXT_SECONDARY}},shape:{borderRadius:ho}}),Ig={...lo,MISC_FOCUS_BORDER:so.MISC_FOCUS_BORDER},Mg=Ag().palette,Dg={TEXT:Mg.text.primary,DISABLED:Mg.text.disabled,HOVER:Mg.action.hover,WHITE:Ig.GREYSCALE_100,BORDER_LIGHT:Ig.GREYSCALE_90,BORDER_MEDIUM:Ig.GREYSCALE_85,BORDER_HEAVY:Ig.GREYSCALE_50,DARK_MODE_TEXT:Ig.GREYSCALE_95,DARK_MODE_BORDER:Ig.GREYSCALE_95,DARK_MODE_DISABLED:Ig.GREYSCALE_70,DARK_MODE_BACKGROUND:Ig.GREYSCALE_20,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Ig.GREYSCALE_95};function Pg(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _g(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Og(){}var Tg=.7,kg=1/Tg,qg="\\s*([+-]?\\d+)\\s*",Ng="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Fg="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zg=/^#([0-9a-f]{3,8})$/,jg=new RegExp(`^rgb\\(${qg},${qg},${qg}\\)$`),$g=new RegExp(`^rgb\\(${Fg},${Fg},${Fg}\\)$`),Gg=new RegExp(`^rgba\\(${qg},${qg},${qg},${Ng}\\)$`),Bg=new RegExp(`^rgba\\(${Fg},${Fg},${Fg},${Ng}\\)$`),Hg=new RegExp(`^hsl\\(${Ng},${Fg},${Fg}\\)$`),Wg=new RegExp(`^hsla\\(${Ng},${Fg},${Fg},${Ng}\\)$`),Vg={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function Yg(){return this.rgb().formatHex()}function Ug(){return this.rgb().formatRgb()}function Kg(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=zg.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Xg(t):3===n?new eb(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Jg(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Jg(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=jg.exec(e))?new eb(t[1],t[2],t[3],1):(t=$g.exec(e))?new eb(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Gg.exec(e))?Jg(t[1],t[2],t[3],t[4]):(t=Bg.exec(e))?Jg(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Hg.exec(e))?ab(t[1],t[2]/100,t[3]/100,1):(t=Wg.exec(e))?ab(t[1],t[2]/100,t[3]/100,t[4]):Vg.hasOwnProperty(e)?Xg(Vg[e]):"transparent"===e?new eb(NaN,NaN,NaN,0):null}function Xg(e){return new eb(e>>16&255,e>>8&255,255&e,1)}function Jg(e,t,n,r){return r<=0&&(e=t=n=NaN),new eb(e,t,n,r)}function Zg(e){return e instanceof Og||(e=Kg(e)),e?new eb((e=e.rgb()).r,e.g,e.b,e.opacity):new eb}function Qg(e,t,n,r){return 1===arguments.length?Zg(e):new eb(e,t,n,null==r?1:r)}function eb(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function tb(){return`#${ib(this.r)}${ib(this.g)}${ib(this.b)}`}function nb(){const e=rb(this.opacity);return`${1===e?"rgb(":"rgba("}${ob(this.r)}, ${ob(this.g)}, ${ob(this.b)}${1===e?")":`, ${e})`}`}function rb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ob(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ib(e){return((e=ob(e))<16?"0":"")+e.toString(16)}function ab(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new sb(e,t,n,r)}function lb(e){if(e instanceof sb)return new sb(e.h,e.s,e.l,e.opacity);if(e instanceof Og||(e=Kg(e)),!e)return new sb;if(e instanceof sb)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new sb(a,l,s,e.opacity)}function sb(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function ub(e){return(e=(e||0)%360)<0?e+360:e}function cb(e){return Math.max(0,Math.min(1,e||0))}function db(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Pg(Og,Kg,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Yg,formatHex:Yg,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return lb(this).formatHsl()},formatRgb:Ug,toString:Ug}),Pg(eb,Qg,_g(Og,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new eb(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?Tg:Math.pow(Tg,e),new eb(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new eb(ob(this.r),ob(this.g),ob(this.b),rb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tb,formatHex:tb,formatHex8:function(){return`#${ib(this.r)}${ib(this.g)}${ib(this.b)}${ib(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:nb,toString:nb})),Pg(sb,(function(e,t,n,r){return 1===arguments.length?lb(e):new sb(e,t,n,null==r?1:r)}),_g(Og,{brighter(e){return e=null==e?kg:Math.pow(kg,e),new sb(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?Tg:Math.pow(Tg,e),new sb(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new eb(db(e>=240?e-240:e+120,o,r),db(e,o,r),db(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new sb(ub(this.h),cb(this.s),cb(this.l),rb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=rb(this.opacity);return`${1===e?"hsl(":"hsla("}${ub(this.h)}, ${100*cb(this.s)}%, ${100*cb(this.l)}%${1===e?")":`, ${e})`}`}}));const pb=Math.PI/180,fb=180/Math.PI,hb=.96422,mb=1,gb=.82521,bb=4/29,vb=6/29,yb=3*vb*vb,xb=vb*vb*vb;function Sb(e){if(e instanceof Eb)return new Eb(e.l,e.a,e.b,e.opacity);if(e instanceof Ib)return Mb(e);e instanceof eb||(e=Zg(e));var t,n,r=Lb(e.r),o=Lb(e.g),i=Lb(e.b),a=Cb((.2225045*r+.7168786*o+.0606169*i)/mb);return r===o&&o===i?t=n=a:(t=Cb((.4360747*r+.3850649*o+.1430804*i)/hb),n=Cb((.0139322*r+.0971045*o+.7141733*i)/gb)),new Eb(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Eb(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Cb(e){return e>xb?Math.pow(e,1/3):e/yb+bb}function wb(e){return e>vb?e*e*e:yb*(e-bb)}function Rb(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Lb(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Ab(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Ib)return new Ib(e.h,e.c,e.l,e.opacity);if(e instanceof Eb||(e=Sb(e)),0===e.a&&0===e.b)return new Ib(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*fb;return new Ib(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Ib(e,t,n,null==r?1:r)}function Ib(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Mb(e){if(isNaN(e.h))return new Eb(e.l,0,0,e.opacity);var t=e.h*pb;return new Eb(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Pg(Eb,(function(e,t,n,r){return 1===arguments.length?Sb(e):new Eb(e,t,n,null==r?1:r)}),_g(Og,{brighter(e){return new Eb(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Eb(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new eb(Rb(3.1338561*(t=hb*wb(t))-1.6168667*(e=mb*wb(e))-.4906146*(n=gb*wb(n))),Rb(-.9787684*t+1.9161415*e+.033454*n),Rb(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Pg(Ib,Ab,_g(Og,{brighter(e){return new Ib(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Ib(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Mb(this).rgb()}}));const Db=(e,t)=>{const n=Ab(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},Pb=e=>{if(e){const t=Qg(e);return.299*t.r+.587*t.g+.114*t.b<125}return!1},_b=e=>!!e&&0===Qg(e).opacity,Ob=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,Tb=e=>{const t=Ob.exec(e);if(t){const[,e,n,r,o]=t;return Qg(+n,+r,+o,+e/255)}return Qg(e)},kb=e=>{const t=Tb(e);return Number.isNaN(t.r)?null:t.toString()},qb=e=>{e.stopPropagation(),e.preventDefault()},Nb="#grid",Fb=(e,t)=>{const n=null==t?void 0:t.closest(e);return n&&window.getComputedStyle(n).backgroundColor},zb=(e,t,n,r,o)=>{const i=Fb(".qv-object .qv-inner-object",n),a=Fb(".qv-panel-sheet",n),l=Fb(Nb,n),s=null!=l?l:a,u=(e=>{var t,n,r,o,i,a;const l=null===(t=e.components)||void 0===t?void 0:t.find((e=>"general"===e.key)),s=null==l||null===(n=l.bgColor)||void 0===n?void 0:n.colorExpression,u=null==l||null===(r=l.bgColor)||void 0===r||null===(r=r.color)||void 0===r?void 0:r.color;if((null==l||null===(o=l.bgColor)||void 0===o?void 0:o.useColorExpression)&&s)return kb(s);if("none"===u)return"transparent";if(void 0===u)return;const c=Tb(u);return c.opacity=null!==(i=null==l||null===(a=l.bgColor)||void 0===a||null===(a=a.color)||void 0===a?void 0:a.alpha)&&void 0!==i?i:c.opacity,c.toString()})(e),c=null==r?void 0:r(t),d=null==o?void 0:o(t),p=c||i||d,f=_b(p),h=Pb(f?s:p),m=((e,t,n)=>e&&!_b(e)?e:_b(t)?n&&!_b(n)?n:Dg.WHITE:t)(u,p,s);return{color:p,headerColor:m,isDark:h}},jb=(e,i,a,l)=>{const s=r(),u=((e,r={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[o,i]=t([]);return n((()=>{let t;return e&&(t=new MutationObserver((e=>{i(e)})),t.observe(e,r)),()=>{var e;null===(e=t)||void 0===e||e.disconnect()}}),[e,r]),o})(null==i?void 0:i.closest(Nb),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter((({oldValue:e})=>null==e?void 0:e.includes("background"))).map((({oldValue:e})=>e)).join(",");return o((()=>({...s,background:zb(e,s,i,a,l)})),[s.name(),i,a,l,e,u])};function $b(e,t){const n=o((()=>({isLoading:!0})),t),[r,a]=i((async()=>{try{return await e()}finally{n.isLoading=!1}}),t);return[r,n.isLoading,a]}const Gb=3,Bb="N";function Hb(e,t,n){let r=0,o=e.length;if(e.length<=1)return null;if(n(e)<=t)return null;for(;r<=o;){const i=Math.floor((r+o)/2),a=e.slice(0,i),l=e.slice(0,i-1),s=n(a),u=n(l);if(s>t&&u<=t)return e.slice(i-1)||null;if(s===t)return e.slice(i)||null;s<t?r=i+1:o=i}return null}function Wb({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:n="normal",fontWeight:r="normal"},o){const{maxNbrLinesOfText:i=Gb}=null!=o?o:{},{estimateWidth:a,measureText:l,estimateLineCount:s}=A((()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${n} ${r} ${e} ${t}`;const a=lr(o.measureText.bind(o)),l=e=>+a(e).width.toFixed(2),s=lr((({text:e,maxWidth:t,isNumeric:n=!1})=>{if(n)return 1;let r=0,o=e;do{r+=1,o=Hb(o,t,l)}while(null!==o&&r<i);return r}),(({text:e,maxWidth:t,isNumeric:n})=>`${e}-${t}-${n?"true":"false"}`));return{measureText:e=>a(e).width,estimateWidth:e=>a(Bb).width*e,estimateLineCount:s}}),[n,r,e,t,i]);return{estimateWidth:a,measureText:l,estimateLineCount:s}}var Vb,Yb=N;Vb=Yb.createRoot,Yb.hydrateRoot;function Ub(e,t){const[n,r]=I(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}var Kb={NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Xb=({translator:e})=>(A((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Kb).forEach((t=>{e.add(Kb[t])}))}}(e)),[e]),e),Jb=document.createElement("textarea");function Zb(e){Jb.value=e,document.body.appendChild(Jb),Jb.select(),Jb.setSelectionRange(0,Jb.value.length),document.execCommand("copy"),document.body.removeChild(Jb)}Jb.style.position="absolute",Jb.style.left="-9999px",Jb.setAttribute("readonly","");function Qb(){null==a||a(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(`.${kt}`);null!=r&&r.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{(e=>{var t;const n=e.title;n&&(null!==(t=navigator.clipboard)&&void 0!==t&&t.writeText?navigator.clipboard.writeText(n).catch((()=>Zb(n))):Zb(n))})(r)}})}))}var ev="$$material";const tv=["values","unit","step"],nv=e=>{const t=Object.keys(e).map((t=>({key:t,val:e[t]})))||[];return t.sort(((e,t)=>e.val-t.val)),t.reduce(((e,t)=>Jr({},e,{[t.key]:t.val})),{})};function rv(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=oo(e,tv),i=nv(t),a=Object.keys(i);function l(e){return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n})`}function s(e){return`@media (max-width:${("number"==typeof t[e]?t[e]:e)-r/100}${n})`}function u(e,o){const i=a.indexOf(o);return`@media (min-width:${"number"==typeof t[e]?t[e]:e}${n}) and (max-width:${(-1!==i&&"number"==typeof t[a[i]]?t[a[i]]:o)-r/100}${n})`}return Jr({keys:a,values:i,up:l,down:s,between:u,only:function(e){return a.indexOf(e)+1<a.length?u(e,a[a.indexOf(e)+1]):l(e)},not:function(e){const t=a.indexOf(e);return 0===t?l(a[1]):t===a.length-1?s(a[t]):u(e,a[a.indexOf(e)+1]).replace("@media","@media not all and")},unit:n},o)}var ov={borderRadius:4};function iv(e,t){return t?zl(e,t,{clone:!1}):e}const av={xs:0,sm:600,md:900,lg:1200,xl:1536},lv={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${av[e]}px)`};function sv(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const e=r.breakpoints||lv;return t.reduce(((r,o,i)=>(r[e.up(e.keys[i])]=n(t[i]),r)),{})}if("object"==typeof t){const e=r.breakpoints||lv;return Object.keys(t).reduce(((r,o)=>{if(-1!==Object.keys(e.values||av).indexOf(o)){r[e.up(o)]=n(t[o],o)}else{const e=o;r[e]=t[e]}return r}),{})}return n(t)}function uv(e,t,n=!0){if(!t||"string"!=typeof t)return null;if(e&&e.vars&&n){const n=`vars.${t}`.split(".").reduce(((e,t)=>e&&e[t]?e[t]:null),e);if(null!=n)return n}return t.split(".").reduce(((e,t)=>e&&null!=e[t]?e[t]:null),e)}function cv(e,t,n,r=n){let o;return o="function"==typeof e?e(n):Array.isArray(e)?e[n]||r:uv(e,n)||r,t&&(o=t(o,r,e)),o}function dv(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=e=>{if(null==e[t])return null;const i=e[t],a=uv(e.theme,r)||{};return sv(e,i,(e=>{let r=cv(a,o,e);return e===r&&"string"==typeof e&&(r=cv(a,o,`${t}${"default"===e?"":ds(e)}`,e)),!1===n?r:{[n]:r}}))};return i.propTypes={},i.filterProps=[t],i}const pv={m:"margin",p:"padding"},fv={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},hv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mv=function(e){const t={};return n=>(void 0===t[n]&&(t[n]=e(n)),t[n])}((e=>{if(e.length>2){if(!hv[e])return[e];e=hv[e]}const[t,n]=e.split(""),r=pv[t],o=fv[n]||"";return Array.isArray(o)?o.map((e=>r+e)):[r+o]})),gv=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],bv=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];function vv(e,t,n,r){var o;const i=null!=(o=uv(e,t,!1))?o:n;return"number"==typeof i?e=>"string"==typeof e?e:i*e:Array.isArray(i)?e=>"string"==typeof e?e:i[e]:"function"==typeof i?i:()=>{}}function yv(e){return vv(e,"spacing",8)}function xv(e,t){if("string"==typeof t||null==t)return t;const n=e(Math.abs(t));return t>=0?n:"number"==typeof n?-n:`-${n}`}function Sv(e,t,n,r){if(-1===t.indexOf(n))return null;const o=function(e,t){return n=>e.reduce(((e,r)=>(e[r]=xv(t,n),e)),{})}(mv(n),r);return sv(e,e[n],o)}function Ev(e,t){const n=yv(e.theme);return Object.keys(e).map((r=>Sv(e,t,r,n))).reduce(iv,{})}function Cv(e){return Ev(e,gv)}function wv(e){return Ev(e,bv)}function Rv(...e){const t=e.reduce(((e,t)=>(t.filterProps.forEach((n=>{e[n]=t})),e)),{}),n=e=>Object.keys(e).reduce(((n,r)=>t[r]?iv(n,t[r](e)):n),{});return n.propTypes={},n.filterProps=e.reduce(((e,t)=>e.concat(t.filterProps)),[]),n}function Lv(e){return"number"!=typeof e?e:`${e}px solid`}function Av(e,t){return dv({prop:e,themeKey:"borders",transform:t})}Cv.propTypes={},Cv.filterProps=gv,wv.propTypes={},wv.filterProps=bv;const Iv=Av("border",Lv),Mv=Av("borderTop",Lv),Dv=Av("borderRight",Lv),Pv=Av("borderBottom",Lv),_v=Av("borderLeft",Lv),Ov=Av("borderColor"),Tv=Av("borderTopColor"),kv=Av("borderRightColor"),qv=Av("borderBottomColor"),Nv=Av("borderLeftColor"),Fv=Av("outline",Lv),zv=Av("outlineColor"),jv=e=>{if(void 0!==e.borderRadius&&null!==e.borderRadius){const t=vv(e.theme,"shape.borderRadius",4),n=e=>({borderRadius:xv(t,e)});return sv(e,e.borderRadius,n)}return null};jv.propTypes={},jv.filterProps=["borderRadius"],Rv(Iv,Mv,Dv,Pv,_v,Ov,Tv,kv,qv,Nv,jv,Fv,zv);const $v=e=>{if(void 0!==e.gap&&null!==e.gap){const t=vv(e.theme,"spacing",8),n=e=>({gap:xv(t,e)});return sv(e,e.gap,n)}return null};$v.propTypes={},$v.filterProps=["gap"];const Gv=e=>{if(void 0!==e.columnGap&&null!==e.columnGap){const t=vv(e.theme,"spacing",8),n=e=>({columnGap:xv(t,e)});return sv(e,e.columnGap,n)}return null};Gv.propTypes={},Gv.filterProps=["columnGap"];const Bv=e=>{if(void 0!==e.rowGap&&null!==e.rowGap){const t=vv(e.theme,"spacing",8),n=e=>({rowGap:xv(t,e)});return sv(e,e.rowGap,n)}return null};Bv.propTypes={},Bv.filterProps=["rowGap"];function Hv(e,t){return"grey"===t?t:e}Rv($v,Gv,Bv,dv({prop:"gridColumn"}),dv({prop:"gridRow"}),dv({prop:"gridAutoFlow"}),dv({prop:"gridAutoColumns"}),dv({prop:"gridAutoRows"}),dv({prop:"gridTemplateColumns"}),dv({prop:"gridTemplateRows"}),dv({prop:"gridTemplateAreas"}),dv({prop:"gridArea"}));function Wv(e){return e<=1&&0!==e?100*e+"%":e}Rv(dv({prop:"color",themeKey:"palette",transform:Hv}),dv({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hv}),dv({prop:"backgroundColor",themeKey:"palette",transform:Hv}));const Vv=dv({prop:"width",transform:Wv}),Yv=e=>{if(void 0!==e.maxWidth&&null!==e.maxWidth){const t=t=>{var n,r;const o=(null==(n=e.theme)||null==(n=n.breakpoints)||null==(n=n.values)?void 0:n[t])||av[t];return o?"px"!==(null==(r=e.theme)||null==(r=r.breakpoints)?void 0:r.unit)?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Wv(t)}};return sv(e,e.maxWidth,t)}return null};Yv.filterProps=["maxWidth"];const Uv=dv({prop:"minWidth",transform:Wv}),Kv=dv({prop:"height",transform:Wv}),Xv=dv({prop:"maxHeight",transform:Wv}),Jv=dv({prop:"minHeight",transform:Wv});dv({prop:"size",cssProperty:"width",transform:Wv}),dv({prop:"size",cssProperty:"height",transform:Wv});Rv(Vv,Yv,Uv,Kv,Xv,Jv,dv({prop:"boxSizing"}));var Zv={border:{themeKey:"borders",transform:Lv},borderTop:{themeKey:"borders",transform:Lv},borderRight:{themeKey:"borders",transform:Lv},borderBottom:{themeKey:"borders",transform:Lv},borderLeft:{themeKey:"borders",transform:Lv},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lv},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:jv},color:{themeKey:"palette",transform:Hv},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hv},backgroundColor:{themeKey:"palette",transform:Hv},p:{style:wv},pt:{style:wv},pr:{style:wv},pb:{style:wv},pl:{style:wv},px:{style:wv},py:{style:wv},padding:{style:wv},paddingTop:{style:wv},paddingRight:{style:wv},paddingBottom:{style:wv},paddingLeft:{style:wv},paddingX:{style:wv},paddingY:{style:wv},paddingInline:{style:wv},paddingInlineStart:{style:wv},paddingInlineEnd:{style:wv},paddingBlock:{style:wv},paddingBlockStart:{style:wv},paddingBlockEnd:{style:wv},m:{style:Cv},mt:{style:Cv},mr:{style:Cv},mb:{style:Cv},ml:{style:Cv},mx:{style:Cv},my:{style:Cv},margin:{style:Cv},marginTop:{style:Cv},marginRight:{style:Cv},marginBottom:{style:Cv},marginLeft:{style:Cv},marginX:{style:Cv},marginY:{style:Cv},marginInline:{style:Cv},marginInlineStart:{style:Cv},marginInlineEnd:{style:Cv},marginBlock:{style:Cv},marginBlockStart:{style:Cv},marginBlockEnd:{style:Cv},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:$v},rowGap:{style:Bv},columnGap:{style:Gv},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Wv},maxWidth:{style:Yv},minWidth:{transform:Wv},height:{transform:Wv},maxHeight:{transform:Wv},minHeight:{transform:Wv},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qv(){function e(e,t,n,r){const o={[e]:t,theme:n},i=r[e];if(!i)return{[e]:t};const{cssProperty:a=e,themeKey:l,transform:s,style:u}=i;if(null==t)return null;if("typography"===l&&"inherit"===t)return{[e]:t};const c=uv(n,l)||{};if(u)return u(o);return sv(o,t,(t=>{let n=cv(c,s,t);return t===n&&"string"==typeof t&&(n=cv(c,s,`${e}${"default"===t?"":ds(t)}`,t)),!1===a?n:{[a]:n}}))}return function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=null!=(r=i.unstable_sxConfig)?r:Zv;function l(n){let r=n;if("function"==typeof n)r=n(i);else if("object"!=typeof n)return n;if(!r)return null;const o=function(e={}){var t;return(null==(t=e.keys)?void 0:t.reduce(((t,n)=>(t[e.up(n)]={},t)),{}))||{}}(i.breakpoints),l=Object.keys(o);let s=o;return Object.keys(r).forEach((n=>{const o=(l=r[n],u=i,"function"==typeof l?l(u):l);var l,u;if(null!=o)if("object"==typeof o)if(a[n])s=iv(s,e(n,o,i,a));else{const e=sv({theme:i},o,(e=>({[n]:e})));!function(...e){const t=e.reduce(((e,t)=>e.concat(Object.keys(t))),[]),n=new Set(t);return e.every((e=>n.size===Object.keys(e).length))}(e,o)?s=iv(s,e):s[n]=t({sx:o,theme:i})}else s=iv(s,e(n,o,i,a))})),function(e,t){return e.reduce(((e,t)=>{const n=e[t];return(!n||0===Object.keys(n).length)&&delete e[t],e}),t)}(l,s)}return Array.isArray(o)?o.map(l):l(o)}}const ey=Qv();ey.filterProps=["sx"];var ty=ey;function ny(e,t){const n=this;if(n.vars&&"function"==typeof n.getColorSchemeSelector){const r=n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)");return{[r]:t}}return n.palette.mode===e?t:{}}const ry=["breakpoints","palette","spacing","shape"];function oy(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=oo(e,ry),l=rv(n),s=function(e=8){if(e.mui)return e;const t=yv({spacing:e}),n=(...e)=>(0===e.length?[1]:e).map((e=>{const n=t(e);return"number"==typeof n?`${n}px`:n})).join(" ");return n.mui=!0,n}(o);let u=zl({breakpoints:l,direction:"ltr",components:{},palette:Jr({mode:"light"},r),spacing:s,shape:Jr({},ov,i)},a);return u.applyStyles=ny,u=t.reduce(((e,t)=>zl(e,t)),u),u.unstable_sxConfig=Jr({},Zv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ty({sx:e,theme:this})},u}var iy=Object.freeze({__proto__:null,default:oy,private_createBreakpoints:rv,unstable_applyStyles:ny});function ay(e=null){const t=x.useContext(xl);return t&&(n=t,0!==Object.keys(n).length)?t:e;var n}const ly=oy();function sy(e=ly){return ay(e)}const uy=["sx"],cy=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=null!=(t=null==e||null==(n=e.theme)?void 0:n.unstable_sxConfig)?t:Zv;return Object.keys(e).forEach((t=>{o[t]?r.systemProps[t]=e[t]:r.otherProps[t]=e[t]})),r};function dy(e){const{sx:t}=e,n=oo(e,uy),{systemProps:r,otherProps:o}=cy(n);let i;return i=Array.isArray(t)?[r,...t]:"function"==typeof t?(...e)=>{const n=t(...e);return Nl(n)?Jr({},r,n):r}:Jr({},r,t),Jr({},o,{sx:i})}var py=Object.freeze({__proto__:null,default:ty,extendSxProp:dy,unstable_createStyleFunctionSx:Qv,unstable_defaultSxConfig:Zv});const fy=["className","component"];function hy(e){if(e.type)return e;if("#"===e.charAt(0))return hy(function(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Ho(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error(Ho(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}function my(e,t){return e=hy(e),t=function(e,t=0,n=1){return Gs(e,t,n)}(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,function(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}(e)}var gy=x.createContext(null);function by(){return x.useContext(gy)}var vy="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function yy(e){const{children:t,theme:n}=e,r=by(),o=x.useMemo((()=>{const e=null===r?n:function(e,t){if("function"==typeof t)return t(e);return Jr({},e,t)}(r,n);return null!=e&&(e[vy]=null!==r),e}),[n,r]);return dc.jsx(gy.Provider,{value:o,children:t})}const xy=["value"],Sy=x.createContext();function Ey(e){let{value:t}=e,n=oo(e,xy);return dc.jsx(Sy.Provider,Jr({value:null==t||t},n))}const Cy=x.createContext(void 0);function wy({value:e,children:t}){return dc.jsx(Cy.Provider,{value:e,children:t})}function Ry({props:e,name:t}){return function(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?ks(o.defaultProps,r):o.styleOverrides||o.variants?r:ks(o,r)}({props:e,name:t,theme:{components:x.useContext(Cy)}})}const Ly={};function Ay(e,t,n,r=!1){return x.useMemo((()=>{const o=e&&t[e]||t;if("function"==typeof n){const i=n(o),a=e?Jr({},t,{[e]:i}):i;return r?()=>a:a}return Jr({},t,e?{[e]:n}:n)}),[e,t,n,r])}function Iy(e){const{children:t,theme:n,themeId:r}=e,o=ay(Ly),i=by()||Ly,a=Ay(r,o,n),l=Ay(r,i,n,!0),s="rtl"===a.direction;return dc.jsx(yy,{theme:l,children:dc.jsx(xl.Provider,{value:a,children:dc.jsx(Ey,{value:s,children:dc.jsx(wy,{value:null==a?void 0:a.components,children:t})})})})}var My={},Dy={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(Dy);var Py=Dy.exports,_y=j(Wo),Oy=j(Bs),Ty=Py;Object.defineProperty(My,"__esModule",{value:!0});var ky=My.alpha=Uy;My.blend=function(e,t,n,r=1){const o=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),i=By(e),a=By(t),l=[o(i.values[0],a.values[0]),o(i.values[1],a.values[1]),o(i.values[2],a.values[2])];return Wy({type:"rgb",values:l})},My.colorChannel=void 0;var qy=My.darken=Ky;My.decomposeColor=By,My.emphasize=Jy;var Ny=My.getContrastRatio=function(e,t){const n=Yy(e),r=Yy(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)};My.getLuminance=Yy,My.hexToRgb=Gy,My.hslToRgb=Vy;var Fy=My.lighten=Xy;My.private_safeAlpha=function(e,t,n){try{return Uy(e,t)}catch(t){return e}},My.private_safeColorChannel=void 0,My.private_safeDarken=function(e,t,n){try{return Ky(e,t)}catch(t){return e}},My.private_safeEmphasize=function(e,t,n){try{return Jy(e,t)}catch(t){return e}},My.private_safeLighten=function(e,t,n){try{return Xy(e,t)}catch(t){return e}},My.recomposeColor=Wy,My.rgbToHex=function(e){if(0===e.indexOf("#"))return e;const{values:t}=By(e);return`#${t.map(((e,t)=>function(e){const t=e.toString(16);return 1===t.length?`0${t}`:t}(3===t?Math.round(255*e):e))).join("")}`};var zy=Ty(_y),jy=Ty(Oy);function $y(e,t=0,n=1){return(0,jy.default)(e,t,n)}function Gy(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&1===n[0].length&&(n=n.map((e=>e+e))),n?`rgb${4===n.length?"a":""}(${n.map(((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3)).join(", ")})`:""}function By(e){if(e.type)return e;if("#"===e.charAt(0))return By(Gy(e));const t=e.indexOf("("),n=e.substring(0,t);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error((0,zy.default)(9,e));let r,o=e.substring(t+1,e.length-1);if("color"===n){if(o=o.split(" "),r=o.shift(),4===o.length&&"/"===o[3].charAt(0)&&(o[3]=o[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(r))throw new Error((0,zy.default)(10,r))}else o=o.split(",");return o=o.map((e=>parseFloat(e))),{type:n,values:o,colorSpace:r}}const Hy=e=>{const t=By(e);return t.values.slice(0,3).map(((e,n)=>-1!==t.type.indexOf("hsl")&&0!==n?`${e}%`:e)).join(" ")};My.colorChannel=Hy;function Wy(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return-1!==t.indexOf("rgb")?r=r.map(((e,t)=>t<3?parseInt(e,10):e)):-1!==t.indexOf("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=-1!==t.indexOf("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Vy(e){e=By(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),a=(e,t=(e+n/30)%12)=>o-i*Math.max(Math.min(t-3,9-t,1),-1);let l="rgb";const s=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===e.type&&(l+="a",s.push(t[3])),Wy({type:l,values:s})}function Yy(e){let t="hsl"===(e=By(e)).type||"hsla"===e.type?By(Vy(e)).values:e.values;return t=t.map((t=>("color"!==e.type&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function Uy(e,t){return e=By(e),t=$y(t),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),"color"===e.type?e.values[3]=`/${t}`:e.values[3]=t,Wy(e)}function Ky(e,t){if(e=By(e),t=$y(t),-1!==e.type.indexOf("hsl"))e.values[2]*=1-t;else if(-1!==e.type.indexOf("rgb")||-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Wy(e)}function Xy(e,t){if(e=By(e),t=$y(t),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*t;else if(-1!==e.type.indexOf("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(-1!==e.type.indexOf("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Wy(e)}function Jy(e,t=.15){return Yy(e)>.5?Ky(e,t):Xy(e,t)}My.private_safeColorChannel=(e,t)=>{try{return Hy(e)}catch(t){return e}};var Zy={black:"#000",white:"#fff"};var Qy={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"};var ex={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"};var tx={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};var nx={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};var rx={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};var ox={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"};var ix={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};const ax=["mode","contrastThreshold","tonalOffset"],lx={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:Zy.white,default:Zy.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}},sx={text:{primary:Zy.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:Zy.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 ux(e,t,n,r){const o=r.light||r,i=r.dark||1.5*r;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:"light"===t?e.light=Fy(e.main,o):"dark"===t&&(e.dark=qy(e.main,i)))}function cx(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=oo(e,ax),i=e.primary||function(e="light"){return"dark"===e?{main:rx[200],light:rx[50],dark:rx[400]}:{main:rx[700],light:rx[400],dark:rx[800]}}(t),a=e.secondary||function(e="light"){return"dark"===e?{main:ex[200],light:ex[50],dark:ex[400]}:{main:ex[500],light:ex[300],dark:ex[700]}}(t),l=e.error||function(e="light"){return"dark"===e?{main:tx[500],light:tx[300],dark:tx[700]}:{main:tx[700],light:tx[400],dark:tx[800]}}(t),s=e.info||function(e="light"){return"dark"===e?{main:ox[400],light:ox[300],dark:ox[700]}:{main:ox[700],light:ox[500],dark:ox[900]}}(t),u=e.success||function(e="light"){return"dark"===e?{main:ix[400],light:ix[300],dark:ix[700]}:{main:ix[800],light:ix[500],dark:ix[900]}}(t),c=e.warning||function(e="light"){return"dark"===e?{main:nx[400],light:nx[300],dark:nx[700]}:{main:"#ed6c02",light:nx[500],dark:nx[900]}}(t);function d(e){return Ny(e,sx.text.primary)>=n?sx.text.primary:lx.text.primary}const p=({color:e,name:t,mainShade:n=500,lightShade:o=300,darkShade:i=700})=>{if(!(e=Jr({},e)).main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty("main"))throw new Error(Ho(11,t?` (${t})`:"",n));if("string"!=typeof e.main)throw new Error(Ho(12,t?` (${t})`:"",JSON.stringify(e.main)));return ux(e,"light",o,r),ux(e,"dark",i,r),e.contrastText||(e.contrastText=d(e.main)),e},f={dark:sx,light:lx};return zl(Jr({common:Jr({},Zy),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:l,name:"error"}),warning:p({color:c,name:"warning"}),info:p({color:s,name:"info"}),success:p({color:u,name:"success"}),grey:Qy,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const dx=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];const px={textTransform:"uppercase"},fx='"Roboto", "Helvetica", "Arial", sans-serif';function hx(e,t){const n="function"==typeof t?t(e):t,{fontFamily:r=fx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:s=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,p=oo(n,dx),f=o/14,h=d||(e=>e/u*f+"rem"),m=(e,t,n,o,i)=>{return Jr({fontFamily:r,fontWeight:e,fontSize:h(t),lineHeight:n},r===fx?{letterSpacing:(a=o/t,Math.round(1e5*a)/1e5)+"em"}:{},i,c);var a},g={h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(l,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(l,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(l,14,1.75,.4,px),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,px),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return zl(Jr({htmlFontSize:u,pxToRem:h,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:s},g),p,{clone:!1})}function mx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,0.2)`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,0.14)`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,0.12)`].join(",")}var gx=["none",mx(0,2,1,-1,0,1,1,0,0,1,3,0),mx(0,3,1,-2,0,2,2,0,0,1,5,0),mx(0,3,3,-2,0,3,4,0,0,1,8,0),mx(0,2,4,-1,0,4,5,0,0,1,10,0),mx(0,3,5,-1,0,5,8,0,0,1,14,0),mx(0,3,5,-1,0,6,10,0,0,1,18,0),mx(0,4,5,-2,0,7,10,1,0,2,16,1),mx(0,5,5,-3,0,8,10,1,0,3,14,2),mx(0,5,6,-3,0,9,12,1,0,3,16,2),mx(0,6,6,-3,0,10,14,1,0,4,18,3),mx(0,6,7,-4,0,11,15,1,0,4,20,3),mx(0,7,8,-4,0,12,17,2,0,5,22,4),mx(0,7,8,-4,0,13,19,2,0,5,24,4),mx(0,7,9,-4,0,14,21,2,0,5,26,4),mx(0,8,9,-5,0,15,22,2,0,6,28,5),mx(0,8,10,-5,0,16,24,2,0,6,30,5),mx(0,8,11,-5,0,17,26,2,0,6,32,5),mx(0,9,11,-5,0,18,28,2,0,7,34,6),mx(0,9,12,-6,0,19,29,2,0,7,36,6),mx(0,10,13,-6,0,20,31,3,0,8,38,7),mx(0,10,13,-6,0,21,33,3,0,8,40,7),mx(0,10,14,-6,0,22,35,3,0,8,42,7),mx(0,11,14,-7,0,23,36,3,0,9,44,8),mx(0,11,15,-7,0,24,38,3,0,9,46,8)];const bx=["duration","easing","delay"],vx={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)"},yx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function xx(e){return`${Math.round(e)}ms`}function Sx(e){if(!e)return 0;const t=e/36;return Math.round(10*(4+15*t**.25+t/5))}function Ex(e){const t=Jr({},vx,e.easing),n=Jr({},yx,e.duration);return Jr({getAutoHeightDuration:Sx,create:(e=["all"],r={})=>{const{duration:o=n.standard,easing:i=t.easeInOut,delay:a=0}=r;return oo(r,bx),(Array.isArray(e)?e:[e]).map((e=>`${e} ${"string"==typeof o?o:xx(o)} ${i} ${"string"==typeof a?a:xx(a)}`)).join(",")}},e,{easing:t,duration:n})}var Cx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const wx=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Rx(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=oo(e,wx);if(e.vars)throw new Error(Ho(18));const l=cx(r),s=oy(e);let u=zl(s,{mixins:(c=s.breakpoints,d=n,Jr({toolbar:{minHeight:56,[c.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[c.up("sm")]:{minHeight:64}}},d)),palette:l,shadows:gx.slice(),typography:hx(l,i),transitions:Ex(o),zIndex:Jr({},Cx)});var c,d;return u=zl(u,a),u=t.reduce(((e,t)=>zl(e,t)),u),u.unstable_sxConfig=Jr({},Zv,null==a?void 0:a.unstable_sxConfig),u.unstable_sx=function(e){return ty({sx:e,theme:this})},u}var Lx=Rx();function Ax(){const e=sy(Lx);return e[ev]||e}var Ix,Mx={},Dx={exports:{}};var Px,_x={exports:{}};var Ox=j(ql),Tx=j($l),kx=j(ps),qx=j(cs),Nx=j(iy),Fx=j(py),zx=Py;Object.defineProperty(Mx,"__esModule",{value:!0});var jx=Mx.default=function(e={}){const{themeId:t,defaultTheme:n=Zx,rootShouldForwardProp:r=Jx,slotShouldForwardProp:o=Jx}=e,i=e=>(0,Vx.default)((0,$x.default)({},e,{theme:eS((0,$x.default)({},e,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(e,a={})=>{(0,Bx.internal_processStyles)(e,(e=>e.filter((e=>!(null!=e&&e.__mui_systemSx)))));const{name:l,slot:s,skipVariantsResolver:u,skipSx:c,overridesResolver:d=tS(Qx(s))}=a,p=(0,Gx.default)(a,Kx),f=void 0!==u?u:s&&"Root"!==s&&"root"!==s||!1,h=c||!1;let m=Jx;"Root"===s||"root"===s?m=r:s?m=o:function(e){return"string"==typeof e&&e.charCodeAt(0)>96}(e)&&(m=void 0);const g=(0,Bx.default)(e,(0,$x.default)({shouldForwardProp:m,label:undefined},p)),b=e=>"function"==typeof e&&e.__emotion_real!==e||(0,Hx.isPlainObject)(e)?r=>nS(e,(0,$x.default)({},r,{theme:eS({theme:r.theme,defaultTheme:n,themeId:t})})):e,v=(r,...o)=>{let a=b(r);const s=o?o.map(b):[];l&&d&&s.push((e=>{const r=eS((0,$x.default)({},e,{defaultTheme:n,themeId:t}));if(!r.components||!r.components[l]||!r.components[l].styleOverrides)return null;const o=r.components[l].styleOverrides,i={};return Object.entries(o).forEach((([t,n])=>{i[t]=nS(n,(0,$x.default)({},e,{theme:r}))})),d(e,i)})),l&&!f&&s.push((e=>{var r;const o=eS((0,$x.default)({},e,{defaultTheme:n,themeId:t}));return nS({variants:null==o||null==(r=o.components)||null==(r=r[l])?void 0:r.variants},(0,$x.default)({},e,{theme:o}))})),h||s.push(i);const u=s.length-o.length;if(Array.isArray(r)&&u>0){const e=new Array(u).fill("");a=[...r,...e],a.raw=[...r.raw,...e]}const c=g(a,...s);return e.muiName&&(c.muiName=e.muiName),c};return g.withConfig&&(v.withConfig=g.withConfig),v}};Mx.shouldForwardProp=Jx,Mx.systemDefaultTheme=void 0;var $x=zx((Ix||(Ix=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(null,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Dx)),Dx.exports)),Gx=zx((Px||(Px=1,function(e){e.exports=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n},e.exports.__esModule=!0,e.exports.default=e.exports}(_x)),_x.exports)),Bx=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var n=Xx(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(r,i,a):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}(Ox),Hx=Tx;zx(kx),zx(qx);var Wx=zx(Nx),Vx=zx(Fx);const Yx=["ownerState"],Ux=["variants"],Kx=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Xx(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(Xx=function(e){return e?n:t})(e)}function Jx(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}const Zx=Mx.systemDefaultTheme=(0,Wx.default)(),Qx=e=>e?e.charAt(0).toLowerCase()+e.slice(1):e;function eS({defaultTheme:e,theme:t,themeId:n}){return r=t,0===Object.keys(r).length?e:t[n]||t;var r}function tS(e){return e?(t,n)=>n[e]:null}function nS(e,t){let{ownerState:n}=t,r=(0,Gx.default)(t,Yx);const o="function"==typeof e?e((0,$x.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap((e=>nS(e,(0,$x.default)({ownerState:n},r))));if(o&&"object"==typeof o&&Array.isArray(o.variants)){const{variants:e=[]}=o;let t=(0,Gx.default)(o,Ux);return e.forEach((e=>{let o=!0;"function"==typeof e.props?o=e.props((0,$x.default)({ownerState:n},r,n)):Object.keys(e.props).forEach((t=>{(null==n?void 0:n[t])!==e.props[t]&&r[t]!==e.props[t]&&(o=!1)})),o&&(Array.isArray(t)||(t=[t]),t.push("function"==typeof e.style?e.style((0,$x.default)({ownerState:n},r,n)):e.style))})),t}return o}var rS=e=>function(e){return"ownerState"!==e&&"theme"!==e&&"sx"!==e&&"as"!==e}(e)&&"classes"!==e;var oS=jx({themeId:ev,defaultTheme:Lx,rootShouldForwardProp:rS});const iS=["theme"];function aS(e){let{theme:t}=e,n=oo(e,iS);const r=t[ev];return dc.jsx(Iy,Jr({},n,{themeId:r?ev:void 0,theme:r||t}))}var lS=e=>{let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,(t/100).toFixed(2)};const sS=Od(rh,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${Ft}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${Ft}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),uS=Od(rh)({position:"absolute",height:"100%",width:"3px"}),cS=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:l,setIsAdjustingWidth:s,isLeftColumn:u})=>{const c=M({initWidth:e,columnWidth:e,initX:0}),d=n?0:1,p=r&&!u,f={left:p?c.current.columnWidth-d:"100%"},h=t=>{c.current={initWidth:e,columnWidth:e,initX:null!=t?t:c.current.initX}};Ub((()=>p&&h()),[e]);const m=e=>{const t=Math.max(e,zt.PixelsMin);c.current.columnWidth=t,i(t)},g=()=>{if(c.current.columnWidth!==c.current.initWidth){const e={type:jt.Pixels,pixels:c.current.columnWidth};a(e)}else null==s||s(!1)},b=e=>{const t=c.current.initWidth+e.clientX-c.current.initX;m(t)},v=e=>{qb(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=c.current.initWidth+e.touches[0].clientX-c.current.initX;m(t)},x=e=>{qb(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},E=!r&&l?e=>{if(e.key===qt.LEFT||e.key===qt.RIGHT){qb(e);const t=5,n=e.key===qt.LEFT?-t:t;m(c.current.columnWidth+n)}else e.key===qt.SPACE||e.key===qt.ENTER?(qb(e),l(e),g()):e.key===qt.ESC&&(qb(e),l(e),m(c.current.initWidth))}:void 0;return S.createElement(sS,{className:Nt,isLastColumn:n,hoverColor:o,style:f,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==s||s(!0),h(e.clientX)},onDoubleClick:()=>a({type:jt.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==s||s(!0),h(e.touches[0].clientX))},onKeyDown:E,onBlur:l,onFocus:()=>h(),"data-testid":Nt},S.createElement(uS,{className:Ft}))};function dS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),fS=D(pS);function hS(){return hS=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hS.apply(null,arguments)}const mS=Od(rh,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),gS=Od(fS,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),bS=Od(Tm)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),vS=Od(Ah)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),yS=Od(zm)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),xS=Od(zm,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})((({theme:e,isSubMenu:t,isActive:n})=>({width:`calc(220px - ${e.spacing(1)} - ${t?10:0}px)`,maxHeight:32,borderRadius:`${e.spacing(.5)} !important`,margin:`${e.spacing(.25,.5)} !important`,padding:`${e.spacing(1,1.5)} !important`,display:"flex !important",justifyContent:"space-between !important","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"},position:"relative !important",overflow:"hidden ",boxSizing:"border-box !important",background:""+(n?"rgba(0, 0, 0, 0.05)":"transparent")}))),SS=Od("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),ES=Od("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),CS=Od(rf)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),wS=Od(lm)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function RS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),AS=D(LS);let IS={};const MS=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=I(!1),p=M(null),f=P((e=>{e.stopPropagation(),d(!1)}),[d]);return S.createElement(S.Fragment,null,S.createElement(xS,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),IS={}),null!=a&&a.length&&(d(!0),IS[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&S.createElement(SS,null),S.createElement(ES,null,S.createElement(wS,null,S.createElement(o,null)),S.createElement(CS,{variant:"body2"},r)),null!=a&&a.length?S.createElement(AS,null):null),(null==a?void 0:a.length)&&S.createElement(_S,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=IS,h.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(m).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var h,m},DS=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&S.createElement(yS,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>S.createElement(MS,hS({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),PS={appear:200,enter:200,exit:100},_S=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,isSubMenu:a,handleHeadCellMenuKeyDown:l})=>r.length?S.createElement(bS,hS({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,transitionDuration:PS,MenuListProps:{id:"nebula-table-utils-head-menu-list-id"}},i?{anchorOrigin:i}:{},o?{transformOrigin:o}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[DS({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?S.createElement(vS,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:r,isSubMenu:a,handleHeadCellMenuKeyDown:l})):null,OS={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},TS=(e,t)=>e.some((e=>t[e]>0));function kS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){kS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.5 1.793 6.207 4.5l-.707.707-1.5-1.5V14H3V3.707l-1.5 1.5L.793 4.5zM8 4h5v1H8zm0 3h6v1H8zm0 3h7v1H8z"})),NS=D(qS);function FS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const zS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),jS=D(zS);function $S(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const GS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$S(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3.914 8h8.207L10.5 6.379l.707-.708L14.036 8.5l-2.829 2.828-.707-.707L12.12 9H3.914l1.621 1.621-.707.707L2 8.5l2.828-2.828.707.707zM15 1a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm0 13V2h-2v3h-1V2H4v3H3V2H1v12h2v-2h1v2h8v-2h1v2z"})),BS=D(GS);function HS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const WS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){HS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 2h1v10.293l1.5-1.5.707.707L3.5 14.207.793 11.5l.707-.707 1.5 1.5zm12 2H8v1h7zM8 7h6v1H8zm5 3H8v1h5z"})),VS=D(WS);function YS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const US=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){YS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M9.057 11.164a6 6 0 1 1 2.112-2.116 1 1 0 0 1 .052.044l4.176 4.08a1 1 0 0 1 .009 1.422l-.707.707a1 1 0 0 1-1.406.008l-4.185-4.087a1 1 0 0 1-.05-.058ZM10.5 6a4.5 4.5 0 1 0-9 0 4.5 4.5 0 0 0 9 0"})),KS=D(US);function XS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const JS=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){XS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 4v1H1v10h10v-2h1v2a1 1 0 0 1-.883.993L11 16H1a1 1 0 0 1-.993-.883L0 15V5a1 1 0 0 1 .883-.993L1 4zm12-4a1 1 0 0 1 .993.883L16 1v10a1 1 0 0 1-.883.993L15 12H5a1 1 0 0 1-.993-.883L4 11V1a1 1 0 0 1 .883-.993L5 0zm0 1H5v10h10zm-2.36 2.653.72.694L9.143 8.72 6.64 6.125l.72-.694L9.143 7.28z"})),ZS=D(JS);function QS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const eE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){QS(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8l8-8zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),tE=D(eE);function nE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 3h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),oE=D(rE);function iE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const aE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M6 15.5a.5.5 0 0 1 .5-.5h3a.5.5 0 1 1 0 1h-3a.5.5 0 0 1-.5-.5m-5-2v1a.5.5 0 0 0 .5.5h1a.5.5 0 1 1 0 1H1a1 1 0 0 1-1-1v-1.5a.5.5 0 1 1 1 0m14 0a.5.5 0 1 1 1 0V15a1 1 0 0 1-1 1h-1.5a.5.5 0 1 1 0-1h1a.5.5 0 0 0 .5-.5zm-14-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m15 0v3a.5.5 0 1 1-1 0v-3a.5.5 0 1 1 1 0m-16-4V1a1 1 0 0 1 1-1h1.5a.5.5 0 0 1 0 1h-1a.5.5 0 0 0-.5.5v1a.5.5 0 0 1-1 0m6-2a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 6 .5m9 2v-1a.5.5 0 0 0-.5-.5h-1a.5.5 0 1 1 0-1H15a1 1 0 0 1 1 1v1.5a.5.5 0 1 1-1 0M4 4v8h8V4zm0-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1"})),lE=D(aE);function sE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M1 1.5a.5.5 0 0 1 .5-.5H3V0H1.5A1.5 1.5 0 0 0 0 1.5V3h1zM14.5 1a.5.5 0 0 1 .5.5V3h1V1.5A1.5 1.5 0 0 0 14.5 0H13v1zM1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm14 0a.5.5 0 0 1-.5.5H13v1h1.5a1.5 1.5 0 0 0 1.5-1.5V13h-1zM6 0h4v1H6zM0 6h1v4H0zm15 0h1v4h-1zm-9 9h4v1H6z"})),cE=D(uE);let dE=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const pE=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:l,selectionActionsEnabledStatus:s,anchorRef:u,setFocusOnColumnAdjuster:c})=>{const d=[];if(n[dE.SORTING]){const{isActivelySorted:n,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:l}=(({isActivelySorted:e,sortDirection:t,isPivot:n,isSortedByFirstMeasure:r})=>{let o=!n&&!e||"D"===t,i=!n&&!e||"A"===t;return r&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);d.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"A")),r(!1)},icon:NS,enabled:a,isActive:!!n&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(null==o?void 0:o(e,"D")),r(!1)},icon:VS,enabled:l,isActive:!!n&&"D"===i,autoFocus:!a&&l}]}])}if(e.isDim&&null!=i&&i.select){const e=[];n[dE.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),a()},icon:KS,enabled:!0}]}]),n[dE.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:cE,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAll())},icon:ZS,enabled:s.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectPossible())},icon:lE,enabled:s.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectAlternative())},icon:tE,enabled:s.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.selectExcluded())},icon:oE,enabled:s.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==l?void 0:l.clear())},icon:jS,enabled:s.canClearSelections}]}]]}]}]),e.length>0&&d.push(...e)}return n[dE.ADJUST_HEADER_SIZE]&&d.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==c||c(u)},icon:BS,enabled:!0}]}]),d},fE=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const h=Xb({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:E}=(({headerData:e,app:t})=>{const[n,r]=I(null),[o,i]=I(OS);return _((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:P((()=>i(OS)),[]),updateSelectionActionsEnabledStatus:P((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:TS(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:TS(["qSelected"],n.qStateCounts),canSelectPossible:TS(["qOption"],n.qStateCounts),canSelectAlternative:TS(["qAlternative"],n.qStateCounts),canSelectExcluded:TS(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),C=P((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},sortCriteria:c.sortCriteria})}}),[c,b,g]);_((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{E(e)})).catch((e=>console.error(e))))}),[e,x,E,null==d?void 0:d.model]);const w=P((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?S.createElement(mS,{rightAligned:"right"===m,shouldShowMenuIcon:s,className:"nebula-table-utils-head-menu-wrapper"},s&&S.createElement(gS,{height:Ot,className:Tt,"data-testid":Tt,isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},S.createElement(fS,null)),S.createElement(_S,{open:e,anchorEl:n.current,onClose:w,menuGroups:pE({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:C,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),handleHeadCellMenuKeyDown:a})):null},hE=e=>e.isDark?{background:e.color,borderColor:Dg.DARK_MODE_BORDER,color:Dg.DARK_MODE_TEXT,disabledColor:Dg.DARK_MODE_DISABLED,iconColor:Dg.DARK_MODE_TEXT}:{background:e.color,borderColor:Dg.BORDER_MEDIUM,color:Dg.TEXT,disabledColor:Dg.DISABLED},mE=Od(rh,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({height:40,display:"flex",justifyContent:"flex-end",alignItems:"center",padding:t.spacing(0,1,0,1),color:e.color,background:e.background,borderTop:`1px solid ${e.borderColor}`}))),gE=Od(Cg,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),bE=Od(hh,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})((({disabledCondition:e,footerStyle:t,theme:n})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:n.spacing(1)}))),vE=Od(rf)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),yE=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=A((()=>hE(r.background)),[r]);if(!n.active)return null;const a=o?S.createElement(mE,{footerStyle:i},e):null;return t?N.createPortal(e,t):a},xE=O({}),SE=()=>E(xE),EE=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:h,layout:m})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=A((()=>hE(p.background)),[p]),v=o?o.getBoundingClientRect().width:h.width,y=Xb({translator:d}),x=A((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:h,layout:m,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,b,g,v]);return S.createElement(xE.Provider,{value:x},e)};let CE=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),wE=function(e){return e[e.DisplayedRowsLabel=250]="DisplayedRowsLabel",e[e.FirstPage=350]="FirstPage",e[e.LastPage=350]="LastPage",e[e.RowsPerPage=550]="RowsPerPage",e[e.SelectPage=700]="SelectPage",e}({});function RE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const LE=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){RE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),AE=D(LE);function IE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ME=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){IE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),DE=D(ME);function PE(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _E=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){PE(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),OE=D(_E),TE={FirstPage:DE,PreviousPage:AE,NextPage:AS,LastPage:OE,FirstPageRTL:OE,PreviousPageRTL:AS,NextPageRTL:AE,LastPageRTL:DE},kE=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=SE(),u=TE[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},qE=()=>{const{pageInfo:e,width:t}=SE(),n=0===e.page,{IconComponent:r,styledProps:o}=kE({type:CE.FirstPage,disabledCondition:n,pageNumber:0});return t<=wE.FirstPage?null:S.createElement(bE,o,S.createElement(r,{height:Ot}))},NE=(e,t,n=!1)=>{n&&e.key===qt.TAB&&!e.shiftKey&&(qb(e),((e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)})(e.target,t,!1))},FE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=SE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=kE({type:CE.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>NE(e,t,r):null;return o<=wE.LastPage?null:S.createElement(bE,hS({},l,{onKeyDown:s}),S.createElement(a,{height:Ot}))},zE=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=SE(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=kE({type:CE.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>wE.FirstPage&&o>wE.LastPage)&&t.enabled?e=>NE(e,t,r):null;return S.createElement(bE,hS({},l,{onKeyDown:s}),S.createElement(a,{height:Ot}))},jE=()=>{const{pageInfo:e}=SE(),t=0===e.page,{IconComponent:n,styledProps:r}=kE({type:CE.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return S.createElement(bE,r,S.createElement(n,{height:Ot}))},$E=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=SE(),{page:o,rowsPerPage:i}=n;if(t<=wE.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return S.createElement(vE,{variant:"caption"},a)},GE=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=SE(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return S.createElement(S.Fragment,null,S.createElement(vE,{variant:"caption",id:d},u,":"),S.createElement(gE,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},BE=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=SE();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>wE.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=S.createElement(S.Fragment,null,t.rowsPerPageOptions.map((e=>S.createElement("option",{key:e,value:e},e))));return S.createElement(GE,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},HE=1e3,WE="…",VE=({totalPages:e,page:t})=>{const n=Math.min(e,HE),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-HE):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return S.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(S.createElement("option",{key:"startMoreOptions",value:WE,disabled:!0},WE)),o<e-1&&a.push(S.createElement("option",{key:"endMoreOptions",value:WE,disabled:!0},WE)),S.createElement(S.Fragment,null,a)},YE=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=SE(),{page:o}=e;if(t<=wE.SelectPage)return null;const i=S.createElement(VE,{totalPages:n,page:o});return S.createElement(GE,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})};var UE=T((e=>S.createElement(EE,e,S.createElement(BE,null),S.createElement(YE,null),S.createElement($E,null),S.createElement(qE,null),S.createElement(jE,null),S.createElement(zE,null),S.createElement(FE,null))));const KE=e=>S.createElement(yE,e,S.createElement(UE,e)),XE=O({}),JE=()=>E(XE),ZE=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})=>{const u=A((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,env:l,downloadService:s})),[n,r,t,o,i,a,l,s]);return dc.jsx(XE.Provider,{value:u,children:e})},QE=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=JE(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:Lr;return t.hasData?t.hasLimitedData?{text:e.get("SNPivotTable.LimitedData"),fontSize:"13px",fontFamily:o,alignItems:"center",height:"22px"}:{}:{text:e.get("SNPivotTable.NoData"),fontSize:"16px",fontFamily:o,justifyContent:"center",alignItems:"center",height:"100%"}})(e);return void 0===t?null:dc.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:dc.jsx("span",{style:{...qr,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},eC=O({}),tC=()=>E(eC),nC=({children:e,styleService:t})=>dc.jsx(eC.Provider,{value:t,children:e}),rC=21,oC=20,iC=oC,aC=16+Dr+1,lC=.75,sC=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===xt.Image},uC="/qHyperCubeDef",cC=-1,dC="PSEUDO-DIM",pC=e=>void 0===e?Ar:e,fC=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,hC=e=>fC(e,zt.PixelsDefault),mC=(e,t)=>fC(e,zt.PercentageDefault)*t/100,gC=(e,t,n)=>{switch(null==t?void 0:t.type){case jt.Pixels:return hC(t.pixels);case jt.Percentage:return mC(t.percentage,e);case jt.FitToContent:case jt.Auto:default:return n}},bC=({headers:e,layoutService:t,estimateWidthForDimensionValue:n,shouldConsiderCombinatedLength:r,measureTextForHeader:o,longestMeasureValuePossible:i})=>e.reduce(((e,a,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s}},isFullyExpanded:u}=t,{id:c,colIdx:d,qApprMaxGlyphCount:p,isLeftDimension:f}=a;if(!f)return e+0;if(c===dC)return e+0;const h=n(p),m=!u&&f&&d<s-1?rC:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+aC+m+h+g)}),0),vC=(e,t,n)=>e.reduce(((e,r)=>{const o=(n?0:1)*aC;return Math.max(e,o+t(r.qFallbackTitle))}),0),yC=(e,t,n,r)=>{const o=100*e/t,i=r*lC*(o/100),a=n*(o/100);return Math.min(a,i)},xC=(e,t,n,r)=>r*(n/100)*(100*e/t/100),SC=(e,t)=>e.some((e=>e>=t*lC)),EC=({layoutService:e,headersData:t,columnWidths:n,tableWidth:r,widthOverride:o,measureTextForHeader:i,estimateWidthForDimensionValue:a,measureTextWidthForMeasuresCombinedWithDimensions:l,translator:s})=>{let u=[];const c=r*lC,d=t.data[t.data.length-1][0],p=Math.min(c,n.at(-1)),f=Math.min(c,bC({headers:d,layoutService:e,estimateWidthForDimensionValue:a})),h=Math.min(c,vC(e.visibleMeasureInfo,i));let m=0;const g=d.findIndex((e=>e.id===dC)),b=(({layoutService:e,measureTextForHeader:t,translator:n,headersData:r})=>{const{type:o}=e.indentModeColumnWidth;return o===jt.Auto&&r.size.y<=1?t(n.get("SNPivotTable.IndentMode.Rows"))+8+aC+16:24})({layoutService:e,measureTextForHeader:i,translator:s,headersData:t});if(e.hasPseudoDimOnLeft)if(0===g){const e=Math.max(p,f,h);u=[Math.max(b,e-p),p]}else{const t=Math.min(c,vC(e.visibleMeasureInfo,l,!0));m=Math.min(c,bC({headers:d.slice(0,g),layoutService:e,estimateWidthForDimensionValue:a,shouldConsiderCombinatedLength:!0,measureTextForHeader:i,longestMeasureValuePossible:t}));const n=Math.max(p,f,m);u=[Math.max(b,n-p),p]}else u=[Math.max(b,f-p),p];const v=Math.min(c,u.reduce(((e,t)=>e+t),0)),{indentModeColumnWidth:y}=e;o&&o<=c&&(y.type=jt.Pixels,y.pixels=o);return[jt.Pixels,jt.Percentage].includes(y.type)||SC(u,r)?((e,t,n,r)=>{let o=e[0],i=e[1],a=[];const l=e.reduce(((e,t)=>e+t),0),{type:s,pixels:u,percentage:c}=t,d=SC(e,n);s===jt.Auto&&d&&(o>i?o-=i:i-=o),s===jt.Pixels&&u&&(o=yC(e[0],l,u,n),i=yC(e[1],l,u,n)),s===jt.Percentage&&c&&(o=xC(e[0],l,c,n),i=xC(e[1],l,c,n));let p=0;i<=r&&(p=o-5,p>0&&(o-=p,i+=p)),p=i-r,p>0&&(o+=p,i-=p),a=[o,i];const f=a.reduce(((e,t)=>e+t),0);return{leftGridColumnWidths:a,leftGridWidth:f,leftGridFullWidth:f}})(u,y,r,p):{leftGridWidth:v,leftGridColumnWidths:u,leftGridFullWidth:v}};function CC({layoutService:e,tableWidth:t,headersData:n,translator:r}){const o=t*lC,i=tC(),{measureText:a}=Wb(i.header),{estimateWidth:l,measureText:s}=Wb({...i.dimensionValues,fontWeight:pC(i.dimensionValues.fontWeight)}),{measureText:u}=Wb({...i.dimensionValues,...i.measureLabels}),c=P(((i,c)=>{const{layout:{qHyperCube:{qNoOfLeftDims:d,topHeadersColumnWidth:p}},visibleMeasureInfo:f,isFullyExpanded:h,isIndentModeEnabled:m,hasPseudoDimOnLeft:g}=e,b=(e=0)=>f.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=u(r)+aC,a=Math.max(i,e);return Math.max(n,m?a:gC(t,o,a))}),0),v=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===dC)return t;const o=(e=>{const{label:t,isLocked:n}=e,r=n?iC:0;return aC+a(t)+oC+r})(r);return Math.max(o,t)}),0);let y=0,x=n.data.at(-1);m&&n.size.x>1&&x&&x[0]&&(x=x[0]);const S=x.map(((r,a)=>{let s=aC;if((!m||m&&1===n.size.x)&&i&&void 0!==c&&c===r.colIdx)s=m?Math.min(o,i):i;else{let o;r.columnWidthLocation===Mt.Pivot?o=m?void 0:p:r.columnWidthLocation===Mt.Dimension&&({columnWidth:o}=r);let i=0;if(r.isLeftDimension)if(r.id===dC)i=b();else{const t=v(a),o=((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:i}=t,a=e.getDimensionInfo(i);if(sC(a))return zt.PixelsDefault;const s=!h&&o&&n<d-1?rC:0;return aC+l(r)+s})(r,a);i=Math.max(t,o),m&&!g&&a+1===d&&r.columnWidthLocation===Mt.Dimension&&n.size.x>1&&(i=t)}else r.isLeftDimension||(i=v(a),r.columnWidthLocation===Mt.Measures&&(i=b(i)));m&&1===n.size.x&&(o=e.indentModeColumnWidth),s=m&&!g&&n.size.x>1?i:gC(t,o,i)}return y+=s,s}));return m&&n.size.x>1?EC({layoutService:e,headersData:n,columnWidths:S,tableWidth:t,widthOverride:i,measureTextForHeader:a,estimateWidthForDimensionValue:l,measureTextWidthForMeasuresCombinedWithDimensions:s,translator:r}):{leftGridWidth:Math.min(o,y),leftGridColumnWidths:S,leftGridFullWidth:y}}),[t,n,e,o,a,u,l,s,r]),[d,p]=I(c);Ub((()=>{p(c())}),[c]);const f=P(((e,t)=>{p(c(e,t))}),[c]);return{...d,overrideLeftGridWidth:f}}function wC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=tC(),{estimateWidth:c,measureText:d}=Wb(u.measureValues),{estimateWidth:p}=Wb({...u.dimensionValues,fontWeight:pC(u.dimensionValues.fontWeight)}),f=t-o-Dr,h=n.at(-1),m=h===cC,g=a.length-i>n.length?rC:0,b=A((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(zt.PixelsMax,Math.max(zt.PixelsMin,r)),o-=n[e]*t};if(e.forEach(((e,t)=>{if(null!=e&&e.columnWidth){const{columnWidth:{type:n,pixels:o,percentage:a},qApprMaxGlyphCount:l,qFallbackTitle:u}=e;switch(n){case jt.Pixels:i(t,hC(o));break;case jt.Percentage:i(t,mC(a,f));break;case jt.FitToContent:i(t,((e,t,n)=>n?zt.PixelsDefault:aC+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,sC(e)));break;case jt.Auto:default:r.push(t)}}else r.push(t)})),r.length){const e=r.length*t,i=o/e;r.forEach((e=>{n[e]=Math.max(zt.AutoMinPivot,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),v=A((()=>{if(m){return s.reduce(((e,t,n)=>e+b[n]),0)/s.length}return b[0]}),[m,b,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=P((t=>m&&void 0!==t?b[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:v-y),[m,b,e,v,y]),S=l.x*v;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let RC;const LC=new Uint8Array(16);function AC(){if(!RC&&(RC="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!RC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return RC(LC)}const IC=[];for(let e=0;e<256;++e)IC.push((e+256).toString(16).slice(1));var MC={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function DC(e,t,n){if(MC.randomUUID&&!t&&!e)return MC.randomUUID();const r=(e=e||{}).random||(e.rng||AC)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return IC[e[t+0]]+IC[e[t+1]]+IC[e[t+2]]+IC[e[t+3]]+"-"+IC[e[t+4]]+IC[e[t+5]]+"-"+IC[e[t+6]]+IC[e[t+7]]+"-"+IC[e[t+8]]+IC[e[t+9]]+"-"+IC[e[t+10]]+IC[e[t+11]]+IC[e[t+12]]+IC[e[t+13]]+IC[e[t+14]]+IC[e[t+15]]}(r)}const PC=()=>{var e,t,n;return null!==(e=null===(t=crypto)||void 0===t||null===(n=t.randomUUID)||void 0===n?void 0:n.call(t))&&void 0!==e?e:DC()},_C=e=>e===cC?dC:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:PC()})(e),OC=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{n&&(n.canBeResized=!0,n.colIdx=n.colIdx||r,n.dimensionInfoIndex===cC?n.columnWidthLocation=Mt.Measures:n.isLeftDimension?n.columnWidthLocation=Mt.Dimension:t.at(-1)===cC?n.columnWidthLocation=Mt.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Mt.Pivot))},TC=(e,t,n)=>{var r;const o=_C(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===cC?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Mt.Measures,isPivot:!0}:{id:o,colIdx:0,label:t.qFallbackTitle,qReverseSort:t.qReverseSort,sortDirection:t.qSortIndicator&&"N"!==t.qSortIndicator?t.qSortIndicator:"A",qLibraryId:t.qLibraryId,fieldId:t.qGroupFieldDefs[t.qGroupPos],isLocked:null!==(r=t.qLocked)&&void 0!==r&&r,columnWidth:t.columnWidth,qApprMaxGlyphCount:t.qApprMaxGlyphCount,isDim:!0,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Mt.Dimension,isPivot:!0,isSortedByFirstMeasure:e.isSortedByFirstMeasure}},kC=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===cC?o.slice(0,-1):o);const i=r.length+(t.length?1:0),a=Math.max(1,t.length),l=((e,t)=>Array(e).fill(null).map((()=>Array.from({length:t},(()=>null)))))(i,a);return t.forEach(((t,n,r)=>{const o=n===r.length-1;l[i-1][n]=TC(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=TC(e,t,o)})),l},qC=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(cC)?kC({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(kC({layoutService:e,lastRow:t,lastCol:n})),e.isIndentModeEnabled&&r[r.length-1].length>1&&(r[r.length-1]=[r.at(-1),...new Array(r[0]?r[0].length-1:0).fill(null)]),r.length&&(null===(o=r.at(-1))||void 0===o||o.forEach(((t,r)=>{if(Array.isArray(t)){const r=t;for(let t=0;t<r.length;t++)OC({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else OC({layoutService:e,visibleLeftDimensionInfos:n,cell:t,colIdx:r})}))),r})(e,t,n);return{data:i,size:{x:null!==(r=null===(o=i[0])||void 0===o?void 0:o.length)&&void 0!==r?r:0,y:i.length}}};function NC(e){return NC="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},NC(e)}function FC(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function jC(e,t,n){return t&&zC(e.prototype,t),n&&zC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function $C(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&BC(e,t)}function GC(e){return GC=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},GC(e)}function BC(e,t){return BC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},BC(e,t)}function HC(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function WC(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=GC(e);if(t){var o=GC(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return HC(this,n)}}function VC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return YC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return YC(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function YC(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var UC={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:KC(e),value:KC(t),useEqualSign:n}}(n,o,i))}})),t}};function KC(e){try{return decodeURIComponent(e)}catch(t){return e}}function XC(e){if(!(this instanceof XC))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},n=e.indexOf("#");-1!==n&&(t.hash=e.substr(n),e=e.substr(0,n));n=e.indexOf("?"),-1!==n&&(t.search=e.substr(n),e=e.substr(0,n));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:function(){return UC.fromSearchString(t.search)}}})}function JC(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}XC.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},XC.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=JC((t=e[r]).key),t.value?n+="=".concat(JC(t.value)):n+=t.useEqualSign?"=":"";return n};var ZC,QC=function(){function e(t){FC(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return jC(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(e){return e?!(!this._pushback||this._pushback!==e)||!!this._hasNext()&&this._input.charAt(this._index)===e:this._pushback?this._pushback:this._hasNext()?this._input.charAt(this._index):null}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),ew=function(){function e(){FC(this,e)}return jC(e,[{key:"decode",value:function(e){for(var t,n="",r=new QC(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),tw=function(e){return e>=0&&e<=1114111},nw=function(e){return e.match(/[\s]/)},rw=function(e){$C(n,e);var t=WC(n);function n(){return FC(this,n),t.apply(this,arguments)}return jC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!nw(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return tw(a)?String.fromCharCode(a):"�"}}]),n}(ew),ow=function(){function e(t,n){FC(this,e),this._key=t,this._value=n}return jC(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var t,n,r=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],n=r.length):(n=arguments[1],t=arguments[2]),t&&r?(r.length>n&&(r=r.substr(0,n)),new e(r,t)):null}}]),e}(),iw=function(){function e(){FC(this,e)}return jC(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return ow.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return ow.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||ow.newInstanceIfNeeded(e,t,this._value)}}]),e}(),aw=function(){function e(){FC(this,e),this.clear()}return jC(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new iw);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),lw=function(){var e,t,n,r=[],o=[],i=new aw;for(e in r["""]="34",r["&"]="38",r["<"]="60",r[">"]="62",r[" "]="160",r["¡"]="161",r["¢"]="162",r["£"]="163",r["¤"]="164",r["¥"]="165",r["¦"]="166",r["§"]="167",r["¨"]="168",r["©"]="169",r["ª"]="170",r["«"]="171",r["¬"]="172",r["­"]="173",r["®"]="174",r["¯"]="175",r["°"]="176",r["±"]="177",r["²"]="178",r["³"]="179",r["´"]="180",r["µ"]="181",r["¶"]="182",r["·"]="183",r["¸"]="184",r["¹"]="185",r["º"]="186",r["»"]="187",r["¼"]="188",r["½"]="189",r["¾"]="190",r["¿"]="191",r["À"]="192",r["Á"]="193",r["Â"]="194",r["Ã"]="195",r["Ä"]="196",r["Å"]="197",r["Æ"]="198",r["Ç"]="199",r["È"]="200",r["É"]="201",r["Ê"]="202",r["Ë"]="203",r["Ì"]="204",r["Í"]="205",r["Î"]="206",r["Ï"]="207",r["Ð"]="208",r["Ñ"]="209",r["Ò"]="210",r["Ó"]="211",r["Ô"]="212",r["Õ"]="213",r["Ö"]="214",r["×"]="215",r["Ø"]="216",r["Ù"]="217",r["Ú"]="218",r["Û"]="219",r["Ü"]="220",r["Ý"]="221",r["Þ"]="222",r["ß"]="223",r["à"]="224",r["á"]="225",r["â"]="226",r["ã"]="227",r["ä"]="228",r["å"]="229",r["æ"]="230",r["ç"]="231",r["è"]="232",r["é"]="233",r["ê"]="234",r["ë"]="235",r["ì"]="236",r["í"]="237",r["î"]="238",r["ï"]="239",r["ð"]="240",r["ñ"]="241",r["ò"]="242",r["ó"]="243",r["ô"]="244",r["õ"]="245",r["ö"]="246",r["÷"]="247",r["ø"]="248",r["ù"]="249",r["ú"]="250",r["û"]="251",r["ü"]="252",r["ý"]="253",r["þ"]="254",r["ÿ"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["¬in"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),sw=function(e){$C(n,e);var t=WC(n);function n(){return FC(this,n),t.apply(this,arguments)}return jC(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,lw.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=lw.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&tw(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&tw(r)?String.fromCharCode(r):null}}]),n}(ew),uw=function(e){$C(n,e);var t=WC(n);function n(){return FC(this,n),t.apply(this,arguments)}return jC(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),tw(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(ew),cw=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(ZC=document.createElement("div"));var dw=Array.prototype.indexOf,pw=[",",".","_"," "],fw={default:[",",".","-","_"," "]},hw={width:["%"],height:["%"]},mw={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},gw={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":mw.image,"background-color":mw.color,"border-color":mw.color,"border-image":mw.image,color:mw.color,icon:mw.image,"list-style-image":mw.image,"outline-color":mw.color},bw={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function vw(e,t,n){var r;if(t){if(dw)return dw.call(t,e,n);for(r=t.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in t&&t[n]===e)return n}return-1}function yw(e){if(null==e)return"";var t,n=document.createTextNode(e);return ZC.appendChild(n),t=ZC.innerHTML,ZC.removeChild(n),t}function xw(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=Ew(e).toLowerCase(),t=Ew(t),vw(e,bw.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<bw.attr_val;i++)if(t.toLowerCase().match(bw.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=hw[e])||(r=fw.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&vw(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function Sw(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=Ew(e).toLowerCase(),t=Ew(t),vw(e,bw.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<bw.css_val.length;r++)if(t.toLowerCase().indexOf(bw.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=gw[e])||(o=mw.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&vw(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function Ew(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new sw,new uw,new rw];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var Cw=[],ww=0;ww<255;ww++)Cw[ww]=ww>=48&&ww<=57||ww>=65&&ww<=90||ww>=97&&ww<=122?null:ww.toString(16);var Rw=function(e){return yw(e.unsafe)},Lw=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=Sw(t,n[t],!0),i+=Sw(t,n[t],!0),o[t]=r[t]);return e.map?o:i},Aw=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=xw(i,t[i],!0),o+=xw(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function Iw(e,t){throw new Error(t)}var Mw={canonicalize:Ew,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===NC(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))continue;void 0!==n&&(r[t]=n)}}(e,arguments[0]):(e.context=arguments[0],2===arguments.length?"html"===e.context?e.unsafe=arguments[1]:"attr"!==e.context&&"css"!==e.context||(e.map=arguments[1]):(e.name=arguments[2],e.unsafe=arguments[1])),"html"===e.context?Rw(e):"css"===e.context?(null!=e.map&&"object"!==NC(e.map)&&Iw(this,"Invalid parameter type"),Lw(e)):"attr"===e.context?(null!=e.map&&"object"!==NC(e.map)&&Iw(this,"Invalid parameter type"),Aw(e)):void Iw(this,"Invalid parameter type")},encodeForAttr:xw,encodeForAttr2:function(e){return xw("nonsens",e,!0)},encodeForCSS:Sw,encodeForHref:function(e){Ew(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new XC(e),n=XC.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+XC.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=pw),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),vw(o,t)>=0||null==Cw[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:yw,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=Ew(t).toLowerCase():Iw(this,"Illegal Attribute Name Specified"),n+='="'),n+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),n+=t?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=VC(null!==(t=cw.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const Dw=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},Pw=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}},_w=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&Mw.isSafeDataURL(t)?{type:xt.Image,url:t,text:e,imageSize:n,resolvedImagePosition:Pw(r)}:{type:xt.Text,url:void 0,text:e},Ow=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===St.Attribute||null==n?void 0:n.urlLabel},Tw=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:xt.Link,url:Mw.encodeForHref(t),text:e}}catch(t){return{type:xt.Text,url:void 0,text:e}}},kw=(e,t,n,r)=>{var o,i;const a=Et(t);return a!==xt.Image||!r.flags.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")||null!==(o=r.anything.sense)&&void 0!==o&&null!==(i=o.isUnsupportedFeature)&&void 0!==i&&i.call(o,"tableImages")?a===xt.Link&&r.flags.isEnabled("CLIENT_IM_5715_LINKS")?((e,t,n)=>{const{urlPosition:r}=null!=t?t:{};if(r===St.Attribute){var o;const r=Ow(null!==(o=n.url)&&void 0!==o?o:-1,e,t),i=e.qText||r||"";return Tw({text:i,url:r})}if(r===St.Dimension){var i;const r=Ow(null!==(i=n.urlLabel)&&void 0!==i?i:-1,e,t)||e.qText;return Tw({text:r,url:e.qText})}return{type:xt.Text,url:void 0,text:e.qText}})(e,t,n):{type:xt.Text,url:void 0,text:e.qText}:((e,t,n)=>{const{imageSize:r,imagePosition:o,imageSetting:i,imageLabel:a}=null!=t?t:{};if("url"===i){var l,s;const t=e.qText,i=null===(l=Dw(null!==(s=n.imageUrl)&&void 0!==s?s:-1,e))||void 0===l?void 0:l.qText;return _w({text:t,url:i,imageSize:r,imagePosition:o})}if("label"===i){var u,c,d;const t=e.qText;if(-1===n.imageLabel)return _w({text:a||t||"",url:t,imageSize:r,imagePosition:o});const i=null!==(u=null===(c=Dw(null!==(d=n.imageLabel)&&void 0!==d?d:-1,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return _w({text:i,url:t,imageSize:r,imagePosition:o})}return{type:xt.Text,url:void 0,text:e.qText}})(e,t,n)},qw=(e,t)=>{var n,r,o,i;const a=t.qAttrExps,l=null==a||null===(n=a.qValues)||void 0===n||null===(n=n[null!==(r=null==e?void 0:e.cellForegroundColor)&&void 0!==r?r:-1])||void 0===n?void 0:n.qText,s=null==a||null===(o=a.qValues)||void 0===o||null===(o=o[null!==(i=null==e?void 0:e.cellBackgroundColor)&&void 0!==i?i:-1])||void 0===o?void 0:o.qText,u=s?kb(s):null,c=l?kb(l):null,d=((e,t)=>e||!t?null:Pb(t)?Dg.WHITE:Dg.TEXT)(c,u);return{color:null!=d?d:c,background:u}},Nw=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:Nw(e,t)),e),Fw=(e,t,n,r,o,i)=>{const a=o?i.rowsPerPage-n:Ir-r;let l=e.qUp+e.qDown;if(o&&0===n){const n=(t+e.qUp)%i.rowsPerPage;l=e.qDown+n}return Math.min(a,Nw(l,e))},zw=(e,t)=>{if(e!==cC)return t?{type:xt.Text}:e.representation},jw=({node:e,parent:t,root:n,x:r,y:o,pageY:i,layoutService:a,dimensionInfo:l,attrExprInfoIndex:s,isLeftColumn:u=!0,isIndentModeEnabled:c=!1,indentLevel:d,env:p,pageInfo:f})=>{const h=(!c||!u)&&e.qType===Wt.NX_DIM_CELL_PSEUDO;let m="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;m=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else m=e.qText;const g={id:PC(),ref:e,x:r,y:o,pageX:r,pageY:i,mainAxisPageCoord:u?i:r,isLeftColumn:u,parent:t,root:n,children:[],isLeafNode:0===e.qSubNodes.length,leafCount:Fw(e,o,i,r,u,f),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===Wt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===Wt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===Wt.NX_DIM_CELL_NULL,isPseudoDimension:h,expressionColor:qw(s,e),selectionCellType:u?Ht.NX_CELL_LEFT:Ht.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:h?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:kw({...e,qText:m},zw(l,c),s,p),...void 0!==d&&{indentLevel:d}};return t&&(t.children[g.mainAxisPageCoord-t.mainAxisPageCoord]=g),g},$w=(e,t,n,r,o,i,a,l)=>{const{isIndentModeEnabled:s}=o;if(!t.length)return e;let u=0;return function t(c,d,p,f=0,h=-1){e[f]||(e[f]={}),s&&h++;const m=o.leftDimensionInfoIndexes.indexOf(cC);p.forEach(((p,g)=>{var b;u+=0===g?0:1;const v=n.qTop-r.page*r.rowsPerPage,y=Math.max(0,v+u-p.qUp),x=n.qTop+u-p.qUp;if(s&&o.hasPseudoDimOnLeft&&h<=m){const e={label:p.qText,suffix:"",delimeter:"-"};if(p.qType===Wt.NX_DIM_CELL_NORMAL||p.qType===Wt.NX_DIM_CELL_NULL||p.qType===Wt.NX_DIM_CELL_TOTAL)h<m&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),p={...p,indentLabel:e};else if(p.qType===Wt.NX_DIM_CELL_PSEUDO){var S,E,C,w,R;e.label=null!==(S=null===(E=d||c)||void 0===E||null===(E=E.ref)||void 0===E||null===(E=E.indentLabel)||void 0===E?void 0:E.label)&&void 0!==S?S:"",e.suffix=p.qText;const t=p.qSubNodes;p={...null===(C=d||c)||void 0===C?void 0:C.ref,...p.qText?{qText:p.qText}:{},qSubNodes:t,indentLabel:e},h=null!==(w=null===(R=d||c)||void 0===R?void 0:R.indentLevel)&&void 0!==w?w:0}}let L=f;s&&(L=m>=1&&h>=m?h+1:h,0===h&&0===m&&0===p.qSubNodes.length&&(L=0));const A=s&&void 0===(null===(b=e[f][y])||void 0===b?void 0:b.ref.qText)||!e[f][y]?jw({node:p,parent:d,root:c,x:L,y:x,pageY:y,layoutService:o,dimensionInfo:i[L],attrExprInfoIndex:a[L],isLeftColumn:!0,...s&&{isIndentModeEnabled:s,indentLevel:h},env:l,pageInfo:r}):e[f][y];if(e[f][y]=A,p.qSubNodes.length){const e=s?0:f+1;t(c||A,A,p.qSubNodes,e,h)}}))}(null,null,t,0,-1),e},Gw=(e,t)=>{e.slice(0,-1).forEach((e=>{Object.values(e).forEach(((e,n,r)=>{const o=r[n+1];e.distanceToNextCell=o?o.mainAxisPageCoord-(e.mainAxisPageCoord+e.leafCount):t-(e.mainAxisPageCoord+e.leafCount)}))}))},Bw=(e,t)=>{const n=e[0],r=n?Object.values(n):[],o=null!=t&&t.isIndentModeEnabled&&null!=t&&t.hasPseudoDimOnLeft?t.visibleMeasureInfo.length-1:0,i=null==n?void 0:n[o],a=r.at(-1);return null!=i&&i.isTotal?i.isLeafNode?i.mainAxisPageCoord:i.mainAxisPageCoord+i.leafCount-1:null!=a&&a.isTotal?a.mainAxisPageCoord-1:-1},Hw=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i,env:a})=>{const{qLeft:l,qArea:s}=t;if(!l.length)return e;const u=$w(e.grid,l,s,n,r,o,i,a);Gw(u,n.rowsOnCurrentPage);const c=Bw(u,r);return{...e,grid:u,columnCount:u.length,totalDividerIndex:c}},Ww=({qArea:e,prevData:t,pivotValuePoints:n,pageInfo:r})=>{const o=[...t];return n.forEach(((t,n)=>{t.forEach(((t,i)=>{var a;const l=e.qTop-r.page*r.rowsPerPage+n,s=e.qLeft+i;Array.isArray(o[l])||(o[l]=[]);const u=t.qType===Wt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:PC(),ref:t,isNull:u}}))})),o},Vw=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?Ww({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},Yw=(e,t,n,r,o,i,a,l,s)=>{if(!t.length)return e;let u=0;!function t(a,c,d,p=0){e[p]||(e[p]={}),d.forEach(((d,f)=>{var h;u+=0===f?0:1;const m=n.qLeft+u-d.qUp,g=null!==(h=e[p][m])&&void 0!==h?h:jw({node:d,parent:c,root:a,x:m,y:p,pageY:p,layoutService:r,dimensionInfo:o[p],attrExprInfoIndex:i[p],isLeftColumn:!1,...r.isIndentModeEnabled&&{isIndentModeEnabled:r.isIndentModeEnabled},env:l,pageInfo:s});e[p][m]=g,d.qSubNodes.length&&t(a||g,g,d.qSubNodes,p+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},Uw=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i,env:a,pageInfo:l})=>{const{qTop:s,qArea:u}=t;if(!s.length)return e;const c=Yw(e.grid,s,u,n,r,o,i,a,l);Gw(c,n.size.x);const d=Bw(c);return{...e,grid:c,rowCount:c.length,totalDividerIndex:d}},Kw=e=>-1===e?{}:e.qAttrExprInfo.reduce(((e,{id:t},n)=>(e[t]=n,e)),{}),Xw=(e,t,n,r,o)=>{const{env:i}=JE(),[a,l]=I(null),s=((e,t,n)=>A((()=>({left:e.map(Kw),top:t.map(Kw),measures:n.map(Kw)})),[n,e,t]))(r,o,t.visibleMeasureInfo),u=A((()=>qC(t,o,r)),[t,o,r]),c=P((()=>e.slice(1).reduce(((e,t)=>Vw({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return Ww({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),d=P((()=>e.slice(1).reduce(((e,r)=>Uw({prevData:e,nextDataPage:r,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n})),((e,t,n,r,o,i,a)=>{const{qArea:l,qTop:s}=e,u=Yw([],s,l,t,n,r,o,i,a);Gw(u,t.size.x);const c=Bw(u);return{grid:u,rowCount:u.length,layoutSize:t.size,totalDividerIndex:c}})(e[0],t,o,s.top,u.size.y,i,n))),[e,t,o,s.top,u.size.y,i,n]),p=P((()=>e.slice(1).reduce(((e,o)=>Hw({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})),((e,t,n,r,o,i)=>{const{qArea:a,qLeft:l}=e,s=$w([],l,a,n,t,r,o,i);Gw(s,n.rowsOnCurrentPage);const u=Bw(s,t);return{grid:s,columnCount:s.length,layoutSize:t.size,totalDividerIndex:u}})(e[0],t,n,r,s.left,i))),[e,t,n,r,s,i]),[f,h]=I((()=>c())),[m,g]=I((()=>d())),[b,v]=I((()=>p()));Ub((()=>{h(c())}),[c]),Ub((()=>{g(d())}),[d]),Ub((()=>{v(p())}),[p]),Ub((()=>{a&&a.forEach((e=>{h((t=>Vw({prevData:t,dataPage:e,pageInfo:n}))),g((r=>Uw({prevData:r,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:s.top,headerRows:u.size.y,env:i,pageInfo:n}))),v((o=>Hw({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:s.left,env:i})))}))}),[a]);const y=P((e=>{l(e)}),[]);return{headersData:u,measureData:f,topDimensionData:m,leftDimensionData:b,attrExprInfoIndexes:s,nextPageHandler:y}},Jw=Math.sqrt(1e4),Zw=e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/zt.PixelsMin)}),Qw=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/Jw),r=Math.ceil(e.qHeight/Jw);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*Jw,qTop:e.qTop+n*Jw,qWidth:Math.min(Jw,e.qWidth-o*Jw),qHeight:Math.min(Jw,e.qHeight-n*Jw)});return t};function eR({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=M(e);return t.current=e,t})(n.page),i=e,a=P((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,uC,e,t,!1))}),[i]),l=P((async(e,t)=>{await(null==i?void 0:i.collapseTop(uC,e,t,!1))}),[i]),s=P((async(e,t)=>{await(null==i?void 0:i.expandLeft(uC,e,t,!1))}),[i]),u=P((async(e,t)=>{await(null==i?void 0:i.expandTop(uC,e,t,!1))}),[i]),c=P((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(uC,e.reduce(((e,t)=>[...e,...Qw(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=P(((t,{dimensionInfoIndex:n,isLeftColumn:o,x:i=0,columnWidthLocation:a})=>{const{qMeasureInfo:l,qDimensionInfo:s,topHeadersColumnWidth:u}=r.layout.qHyperCube;let c=[];switch(a){case Mt.Dimension:c=[{qPath:`${uC}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Mt.Measures:if(o)c=l.map(((e,t)=>({qPath:`${uC}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${uC}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Mt.Pivot:c=[{qPath:`${uC}/topHeadersColumnWidth`,oldValue:u}]}const d=c.map((e=>{const{qPath:n,oldValue:r}=e;return{qPath:n,qOp:r?"Replace":"Add",qValue:JSON.stringify({...r,...t})}}));null==e||e.applyPatches(d,!0)}),[e,r]),p=P((async e=>{var t;await(null==i?void 0:i.applyPatches([{qPath:`${uC}/indentModeColumnWidth`,qOp:null!==(t=r.layout.qHyperCube)&&void 0!==t&&t.indentModeColumnWidth?"Replace":"Add",qValue:JSON.stringify({...r.indentModeColumnWidth,...e})}],!0))}),[i,r]);return A((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,applyIndentModeColumnWidth:p,fetchPages:c})),[a,l,s,u,d,p,c])}const tR=(e,t)=>e>t?_t.Forward:e<t?_t.Backward:_t.None,nR=(e,t,n)=>(r,o)=>{if(r===Wt.NX_DIM_CELL_PSEUDO)return cC;const i=t[n+o];return e[i]},rR=e=>{const t=[],n=(e,r=0)=>{e.slice(0,1).forEach((e=>{t[r]=e.qType,e.qSubNodes.length&&n(e.qSubNodes,r+1)}))};return n(e),t},oR=({width:e,height:t,children:n,isLeftGrid:r})=>dc.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+Dr},children:n}),iR=e=>`scrollable-container--${e}`,aR=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=JE();return dc.jsx("div",{ref:t,"data-key":iR(u),style:{width:n,height:r,overscrollBehaviorX:"contain",overflowX:c.active&&s?"auto":"hidden",overflowY:c.active&&l?"auto":"hidden",...a},onScroll:i,children:o})};var lR=S.forwardRef(aR);const sR=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>dc.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function uR(){return uR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uR.apply(this,arguments)}function cR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function dR(e,t){return dR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},dR(e,t)}function pR(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,dR(e,t)}var fR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function hR(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||fR(r)&&fR(o)))return!1;var r,o;return!0}function mR(e,t){var n;void 0===t&&(t=hR);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function gR(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var bR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function vR(e){cancelAnimationFrame(e.id)}function yR(e,t){var n=bR();var r={id:requestAnimationFrame((function o(){bR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var xR=-1;function SR(e){if(void 0===e&&(e=!1),-1===xR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),xR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return xR}var ER=null;function CR(e){if(void 0===e&&(e=!1),null===ER||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ER="positive-descending":(t.scrollLeft=1,ER=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ER}return ER}var wR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function RR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,cR(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:cR(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mR((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=mR((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=mR((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(CR()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:u,scrollTop:c,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}pR(t,e),t.getDerivedStateFromProps=function(e,t){return LR(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=SR();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(CR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vR(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?wR:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],R=this._getVerticalRangeToRender(),L=R[0],A=R[1],I=[];if(r>0&&g)for(var M=L;M<=A;M++)for(var D=E;D<=w;D++)I.push(C(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:M}),rowIndex:M,style:this._getItemStyle(M,D)}));var P=a(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:uR({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},C(u||c||"div",{children:I,ref:s,style:{height:P,pointerEvents:x?"none":void 0,width:_}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],h=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),h=f(this.props,d,u,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var LR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},AR=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},IR=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},MR=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},DR=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?PR(e,t,n,i,0,r):_R(e,t,n,Math.max(0,i),r)},PR=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=MR(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},_R=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&MR(e,t,r,n).offset<o;)r+=a,a*=2;return PR(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},OR=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=MR(e,t,n,i),u="column"===e?IR(t,i):AR(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},TR=RR({getColumnOffset:function(e,t,n){return MR("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return DR("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=MR("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=MR("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:AR,getEstimatedTotalWidth:IR,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return OR("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return OR("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return MR("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return DR("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=MR("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=MR("row",e,u,r).size;return u},initInstanceProps:function(e,t){var n=e,r={columnMetadataMap:{},estimatedColumnWidth:n.estimatedColumnWidth||50,estimatedRowHeight:n.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:n})},t.resetAfterRowIndex=function(e,n){void 0===n&&(n=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:n})},t.resetAfterIndices=function(e){var n=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),kR=function(e,t){return e};function qR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,cR(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:cR(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=mR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=mR((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;c[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=mR((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(CR()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&vR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=yR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pR(t,e),t.getDerivedStateFromProps=function(e,t){return NR(e,t),c(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?SR():0:s.scrollHeight>s.clientHeight?SR():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(CR()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&vR(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?kR:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],R=E[1],L=[];if(u>0)for(var A=w;A<=R;A++)L.push(C(t,{data:c,key:p(A,c),index:A,isScrolling:b?y:void 0,style:this._getItemStyle(A)}));var I=r(this.props,this._instanceProps);return C(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:uR({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},C(l||s||"div",{children:L,ref:a,style:{height:x?"100%":I,pointerEvents:y?"none":void 0,width:x?I:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(q),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var NR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},FR=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},zR=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=FR(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},jR=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&FR(e,n,t).offset<r;)n+=i,i*=2;return zR(e,t,Math.min(n,o-1),Math.floor(n/2),r)},$R=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},GR=qR({getItemOffset:function(e,t,n){return FR(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:$R,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=FR(e,t,o),p=$R(e,o),f=Math.max(0,Math.min(p-c,d.offset)),h=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=h-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return r>=h&&r<=f?r:r<h?h:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?zR(e,t,o,0,n):jR(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=FR(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=FR(e,f,r).size;return f},initInstanceProps:function(e,t){var n={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,r){void 0===r&&(r=!0),n.lastMeasuredIndex=Math.min(n.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),r&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function BR(e,t){for(var n in e)if(!(n in t))return!0;for(var r in t)if(e[r]!==t[r])return!0;return!1}var HR=["style"],WR=["style"];function VR(e,t){var n=e.style,r=gR(e,HR),o=t.style,i=gR(t,WR);return!BR(n,o)&&!BR(r,i)}const YR=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),UR=10,KR=(e,t)=>e.current===_t.Backward?t:0,XR=(e,t,n,r)=>{for(let o=n;o<n+r;o++){const n=e[o];if(void 0===n||void 0===n[t])return!0}return!1},JR=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,ZR=({pageInfo:e,measureData:t,pageTop:n,qHeight:r,startLeft:o,endLeft:i})=>{const a=[],l=e.page*e.rowsPerPage;for(let e=o;e<i;e++)if(XR(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&JR(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},QR=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===_t.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return ZR({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},eL=({pageInfo:e,measureData:t,scrollDirection:n,layoutService:r,viewService:o})=>{const{startLeft:i,endLeft:a,pageTop:l,qHeight:s}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=e.size.x,s=KR(n,UR),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+UR,l-u),pageTop:o,qHeight:a}})(r,o,n),u=ZR({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...QR({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},tL=(e,t,n,r)=>{const o=e[n];if(void 0===o)return!0;for(let e=t;e<t+r;e++){if(void 0===o[e])return!0}return!1},nL=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,rL=({startTop:e,endTop:t,qLeft:n,qWidth:r,measureData:o,pageInfo:i})=>{const a=[],l=i.page*i.rowsPerPage;for(let i=e;i<t;i++)if(tL(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&nL(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},oL=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r})=>{const{startTop:o,endTop:i,qLeft:a,qWidth:l}=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=t,l=KR(n,UR),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+UR,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=rL({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===_t.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=rL({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},iL=async(e,t,n,r,o,i,a,l)=>{const{gridColumnStartIndex:s,gridRowStartIndex:u,gridWidth:c,gridHeight:d}=o;let p=[],f=[];i.current!==_t.None&&(p=oL({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==_t.None&&(f=eL({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===_t.None&&a.current===_t.None&&(p=rL({measureData:n,pageInfo:r,qLeft:s,qWidth:c,startTop:u,endTop:u+d}));const h=e.fetchPages([...p,...f]);l.isDownloadedAsPDForImage&&l.waitForPromise(h)},aL=function(e){var t,n,r,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,i=0;return function(){t=this;for(var a=arguments.length,l=new Array(a),s=0;s<a;s++)l[s]=arguments[s];n=l;var u=Date.now()-i,c=function(){i=Date.now(),r=0,e.apply(t,n)};r||(u>=o?c():r=setTimeout(c,o-u))}}(iL,100),lL=rt(iL,75),sL=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=tC();return dc.jsx("div",{style:{...e,...kr,...zr(n,r,l,o),...$r({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},uL=({children:e,verticalAlign:t,width:n,right:r})=>dc.jsx("div",{"data-key":"sticky-cell-container",style:{display:"flex",overflow:"hidden",flexDirection:"row",alignItems:t,width:n,maxWidth:"100%",maxHeight:"100%",position:"sticky",left:4,top:0,bottom:0,right:r,alignSelf:t},children:e}),cL=e=>{const{type:t,imageSize:n}=e;return t!==xt.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"},dL=()=>{let e;return{promise:new Promise((t=>{e=t})),resolve:e}};function pL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const fL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){pL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8z"})),hL=D(fL);function mL(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const gL=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mL(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M8 15c-3.848 0-7-3.152-7-7s3.152-7 7-7 7 3.152 7 7-3.152 7-7 7m0 1c4.4 0 8-3.6 8-8s-3.6-8-8-8-8 3.6-8 8 3.6 8 8 8m4-7.5H4v-1h8zM8.5 4v8h-1V4z"})),bL=D(gL),vL=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(Nt)};function yL(e,t){const n=e.isActive(),[r,o]=I(new Map),[i,a]=I(null);_((()=>{const n=()=>{a(null),o(new Map)},r=()=>{n(),t({page:0})};return e.on("deactivated",n),e.on("canceled",n),e.on("confirmed",r),e.on("cleared",n),()=>{e.removeListener("deactivated",n),e.removeListener("canceled",n),e.removeListener("confirmed",r),e.removeListener("cleared",n)}}),[e,t]);const l=P((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Ht.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=P((t=>async n=>{if(vL(n))return;if(e.isActive()||await e.begin([uC]),l(t))return;const{nextSelectedPivotCells:s,nextSelectedField:u}=((e,t,n)=>{const r=new Map(t);return r.has(e.ref.qElemNo)?(r.delete(e.ref.qElemNo),{nextSelectedPivotCells:r,nextSelectedField:0===r.size?null:n}):(r.set(e.ref.qElemNo,e),{nextSelectedPivotCells:r,nextSelectedField:{selectionCellType:e.selectionCellType,coord:e.selectionCellType===Ht.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[uC,Array.from(s,(([,e])=>({qType:e.selectionCellType,qRow:e.y,qCol:e.x})))]}),o(s),a(u)}catch(e){console.error(e)}}),[e,l,r,i]),u=P((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return A((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const xL=O({select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1}),SL=()=>E(xL),EL=({children:e,selections:t,updatePageInfo:n})=>{const r=yL(t,n);return dc.jsx(xL.Provider,{value:r,children:e})};var CL;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(CL||(CL={}));const wL={brighter:.5,darker:.3,opacity:.03},RL=(e,{cell:t,styleService:n})=>{if(e===CL.Background||e===CL.Color){const n=t.expressionColor[e];if(n)return n}return t.isNull?n.nullValues[e]:t.isPseudoDimension?n.measureLabels[e]:t.isTotal?n.totalValues[e]:n.dimensionValues[e]},LL=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=RL(CL.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?RL(CL.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${Db(i=o,wL)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},AL=({cell:e,styleService:t,isCellSelected:n})=>n?"white":RL(CL.Color,{cell:e,styleService:t}),IL=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=RL(CL.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?Ar:o},ML=({cell:e,styleService:t})=>RL(CL.FontStyle,{cell:e,styleService:t}),DL=({cell:e,styleService:t})=>RL(CL.TextDecoration,{cell:e,styleService:t}),PL=e=>e?"pointer":"default",_L=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},OL=(e,t)=>{if(!e.isLeftColumn||e.representation.type===xt.Image)return{padding:4};return{padding:4,marginTop:t.dimensionValueTextHeight/2-6.5-4}},TL=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=tC(),{interactions:i}=JE(),{isActive:a}=SL();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=AL({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=e.ref.qCanExpand?bL:hL;let d;return d=e.ref.qCanExpand?n?null==t?void 0:t.expandLeft:null==t?void 0:t.expandTop:n?null==t?void 0:t.collapseLeft:null==t?void 0:t.collapseTop,dc.jsx(c,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",...OL(e,o)},onClick:l?void 0:_L({cell:e,expandOrCollapse:d})})},kL=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},qL=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},NL=({representation:e,styleService:t,canExpandOrCollapse:n,leafCount:r,isLeftColumn:o})=>{const i=`calc(100% - ${n?21:0}px)`,a=o?t.contentCellHeight:t.headerCellHeight,l=o&&void 0!==r?a*Math.max(r,1):a;switch(e.imageSize){case"originalSize":return{maxWidth:i,maxHeight:l};case"fitWidth":return{width:i,maxHeight:l};case"fitHeight":return{height:l,maxWidth:i};case"fill":return{height:l,width:i};default:return{width:i,height:a}}},FL=(e,t)=>{if("alwaysFit"===e)switch(null==t?void 0:t.vertical){case"flex-start":return"center top";case"flex-end":return"center bottom";default:return"center center"}},zL=e=>{if("alwaysFit"===e)return"contain"},jL=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{imageRef:a,onLoad:l}=(()=>{const{downloadService:e}=JE(),t=M(null),{promise:n,resolve:r}=A((()=>dL()),[]);return _((()=>{var o;return e.isDownloadedAsPDForImage&&(e.waitForPromise(n),null!==(o=t.current)&&void 0!==o&&o.complete&&r()),()=>r()}),[t,e,n,r]),{onLoad:P((()=>{r()}),[r]),imageRef:t}})(),{url:s,text:u,imageSize:c,resolvedImagePosition:d}=e,{overflow:p,...f}=n;return dc.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==d?void 0:d.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...NL({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:dc.jsx("img",{src:s,alt:u,style:{width:qL(c),height:kL(c),objectFit:zL(c),objectPosition:FL(c,d),...f},onLoad:l,ref:a})})},$L=(e,t,n)=>{if(!n.isEnabled("CLIENT_IM_5863_PVT_TEXT_ALIGN")||null!=e&&e.auto)return t;switch(null==e?void 0:e.align){case"center":return"center";case"left":return"flex-start";case"right":return"flex-end";default:return t}},GL={display:"flex",flexDirection:"row",alignItems:"center"},BL={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},HL=(e,t,n,r)=>t?{...BL,...e.nullValues}:n?{...GL,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...GL,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},WL=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...qr,...!n&&Nr(e.grid.lineClamp),...t&&{color:t},fontFamily:i,fontSize:a};if(o){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.nullValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}if(r){const{fontWeight:t,fontStyle:n,textDecoration:r}=e.totalValues;return{...l,fontWeight:t,fontStyle:n,textDecoration:r}}const{fontWeight:s,fontStyle:u,textDecoration:c}=e.measureValues;return{...l,fontWeight:void 0===s?Ar:s,fontStyle:u,textDecoration:c}},VL=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==xt.Image?$L(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},YL=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const l=e.isNull?t.getNullValueText():r.text,s=WL(n,o,i,a,e.isNull);return r.type!==xt.Image||e.isNull?dc.jsx("span",{style:{padding:4,...s},children:l}):dc.jsx(jL,{representation:r,styleService:n,textStyle:s,isLeftColumn:!0})},UL=(e,t)=>{var n,r;return null!==(n=null==e||null===(r=e[t])||void 0===r?void 0:r.visibleMeasureInfoIndex)&&void 0!==n?n:0},KL="flex-start",XL=(e,t)=>{return e.isNull?KL:t.type===xt.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:KL;var n},JL=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=tC(),{env:a}=JE(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:b}=r,v=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!v)return dc.jsx(sL,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?UL(g,t):UL(m,e),E=u.visibleMeasureInfo[S],C=kw(v.ref,u.isIndentModeEnabled?{type:xt.Text}:E.representation,b[S],a),w=!v.isNull&&f(e,t),R=v.isNull?u.getNullValueText():C.text,L=!v.isNull||!Number.isNaN(+R),A=qw(b[S],v.ref),I={...HL(i,v.isNull,w,A.background),...zr(y,x,i.grid.border,c),...$r({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...kr,padding:"0px 4px",display:"flex",justifyContent:VL(v,E,C,L,a.flags)};return dc.jsx("div",{className:kt,title:R,style:{...I,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:dc.jsx(uL,{width:cL(C),verticalAlign:XL(v,C),children:dc.jsx(YL,{cell:v,layoutService:u,styleService:i,representation:C,isNumeric:L,isTotalValueCell:w,color:A.color})})})};var ZL=S.memo(JL,VR);const QL=(e,t)=>{var n,r;return null!==(n=null===(r=t.list[e])||void 0===r?void 0:r.id)&&void 0!==n?n:e.toString()},eA=({columnIndex:e,rowIndex:t,data:n})=>{var r,o;return null!==(r=null===(o=n.grid[t])||void 0===o||null===(o=o[e])||void 0===o?void 0:o.id)&&void 0!==r?r:`${t}-${e}`},tA={...Tr,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},nA=({dataModel:e,dataGridRef:t,height:n,rowHightCallback:r,width:o,viewService:i,layoutService:a,measureData:l,leftDimensionData:s,topDimensionData:u,visibleTopDimensionInfo:c,visibleLeftDimensionInfo:d,attrExprInfoIndexes:p,showLastBorder:f,getRightGridColumnWidth:h,pageInfo:m,verticalScrollDirection:g,horizontalScrollDirection:b})=>{const{grid:{divider:v},contentCellHeight:y}=tC(),x={...tA,borderColor:v,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>P((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return YR(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>P((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return YR(o,e.totalDividerIndex)}),[e,t]))(u,c.length),C=((e,t,n,r,o)=>P(((i,a)=>{var l,s;return!!(null!==(l=t.grid.at(r-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal||null!==(s=e.grid.at(o?0:n-1))&&void 0!==s&&null!==(s=s[a])&&void 0!==s&&s.isTotal)}),[t,e,n,r,o]))(s,u,d.length,c.length,a.isIndentModeEnabled),w=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>{const{downloadService:u}=JE();return P((async({overscanColumnStartIndex:c,overscanColumnStopIndex:d,overscanRowStartIndex:p,overscanRowStopIndex:f})=>{e.gridColumnStartIndex=c,e.gridRowStartIndex=p,e.gridWidth=d-c+1,e.gridHeight=f-p+1;const h=e.gridWidth+i+(s.current===_t.None?0:UR),m=e.gridHeight+a+(l.current===_t.None?0:UR);let g=aL;m*h>1500&&(g=lL),g(t,r,n,o,e,l,s,u)}),[e,r,t,n,l,s,o,i,a,u])})({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:b});return Ub((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),k((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:dc.jsx(TR,{ref:t,style:x,columnCount:a.size.x,columnWidth:h,height:n,rowCount:m.rowsOnCurrentPage,rowHeight:r,width:o,itemData:{layoutService:a,grid:l,dataModel:e,showLastBorder:f,isTotalValue:C,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:w,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:eA,children:ZL})};var rA=T(nA);function oA(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iA=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oA(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M13 7H8zV4.982C13 2.23 10.761 0 8 0S3 2.23 3 4.982V7h.75H3h1.5V5.332C4.5 3.216 5.549 1.5 8 1.5s3.5 1.716 3.5 3.832V7h.75H3a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h10a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H3z"}),S.createElement("use",{fillRule:"evenodd"})),aA=D(iA),lA=e=>{const[t,n]=I(!1);return Ub((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},sA=({interactions:e,dataModel:t})=>{const[n,r]=I(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=lA([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!vL(t)&&!o&&r(!0),setIsAdjustingWidth:i}};function uA(e,t){var n,r,o,i;const a=null!==(n=null===(r=t.expressionColor)||void 0===r?void 0:r.background)&&void 0!==n?n:e.dimensionValues.background,l=t.isLeftColumn?e.header.background:a,s=l===Pr.Transparent?Dg.WHITE:l,u=null===(o=Kg(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=Kg(s))||void 0===i?void 0:i.rgb();if(c&&u&&u.opacity<1){const e=1-u.opacity;return`rgb(${u.opacity*u.r+e*c.r}, ${u.opacity*u.g+e*c.g}, ${u.opacity*u.b+e*c.g})`}return e.grid.border}const cA=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i,shouldApplyIndentModeColumnWidth:a,tableWidth:l})=>{const{interactions:s}=JE(),{isActive:u}=SL(),c=tC(),[,d]=I({});if(!(e.canBeResized&&!!s.active&&!u))return null;const p=uA(c,e);return dc.jsx(cS,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:p,updateWidthCallback:t=>{d({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>{var r;a?null==n||n.applyIndentModeColumnWidth({...t,pixels:Math.min((null!=l?l:0)*lC,null!==(r=t.pixels)&&void 0!==r?r:0)}):null==n||n.applyColumnWidth(t,e)},setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})};function dA(e){return Ry(e)}const pA=e=>e.scrollTop;function fA(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function hA(e){return js("MuiPaper",e)}$s("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 mA=["className","component","elevation","square","variant"],gA=oS("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return Jr({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},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&Jr({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${ky("#fff",lS(t.elevation))}, ${ky("#fff",lS(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var bA=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=oo(n,mA),u=Jr({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return qs({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},hA,o)})(u);return dc.jsx(gA,Jr({as:o,ownerState:u,className:Vs(c.root,r),ref:t},s))}));var vA=$s("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const yA=["center","classes","className"];let xA,SA,EA,CA,wA=e=>e;const RA=Dl(xA||(xA=wA`
|
|
102
102
|
0% {
|
|
103
103
|
transform: scale(0);
|
|
104
104
|
opacity: 0.1;
|
|
@@ -171,4 +171,4 @@ function Tl(e,t){let n;return n=t?Il(e).withConfig({displayName:t.label,shouldFo
|
|
|
171
171
|
animation-iteration-count: infinite;
|
|
172
172
|
animation-delay: 200ms;
|
|
173
173
|
}
|
|
174
|
-
`),vA.rippleVisible,RA,550,(({theme:e})=>e.transitions.easing.easeInOut),vA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),vA.child,vA.childLeaving,LA,550,(({theme:e})=>e.transitions.easing.easeInOut),vA.childPulsate,AA,(({theme:e})=>e.transitions.easing.easeInOut));var DA=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=oo(n,yA),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=ws(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,dc.jsx(MA,{classes:{ripple:Vs(o.ripple,vA.ripple),rippleVisible:Vs(o.rippleVisible,vA.rippleVisible),ripplePulsate:Vs(o.ripplePulsate,vA.ripplePulsate),child:Vs(o.child,vA.child),childLeaving:Vs(o.childLeaving,vA.childLeaving),childPulsate:Vs(o.childPulsate,vA.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),dc.jsx(IA,Jr({className:Vs(vA.root,o.root,i),ref:h},a,{children:dc.jsx(xp,{component:null,exit:!0,children:l})}))}));function PA(e){return js("MuiButtonBase",e)}var _A=$s("MuiButtonBase",["root","disabled","focusVisible"]);const OA=["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"],TA=oS("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"},[`&.${_A.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kA=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=oo(n,OA),O=x.useRef(null),T=x.useRef(null),k=xs(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Os(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return ys((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=ys((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=ys((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=ys((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=xs(t,z,O),ue=Jr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=qs({root:["root",t&&"disabled",n&&"focusVisible"]},PA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return dc.jsxs(TA,Jr({as:ae,className:Vs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?dc.jsx(DA,Jr({ref:k,center:o},M)):null]}))}));var qA=kA;var NA=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=xs(x.isValidElement(n)?n.ref:null,t);if(vs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vs((()=>{if(i&&!o)return bs(t,i),()=>{bs(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return dc.jsx(x.Fragment,{children:n})}return dc.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));const FA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zA={entering:{opacity:1},entered:{opacity:1}},jA=x.forwardRef((function(e,t){const n=Ax(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=hp}=e,v=oo(e,FA),y=x.useRef(null),S=xs(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{pA(e);const r=fA({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=fA({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return dc.jsx(b,Jr({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Jr({style:Jr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},zA[e],m,a.props.style),ref:S},t))}))}));var $A=jA;function GA(e){return js("MuiBackdrop",e)}$s("MuiBackdrop",["root","invisible"]);const BA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HA=oS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Jr({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"}))),WA=x.forwardRef((function(e,t){var n,r,o;const i=dA({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=$A,transitionDuration:g}=i,b=oo(i,BA),v=Jr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return qs({root:["root",n&&"invisible"]},GA,t)})(v),x=null!=(n=f.root)?n:c.root;return dc.jsx(m,Jr({in:p,timeout:g},b,{children:dc.jsx(HA,Jr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Vs(y.root,l,null==x?void 0:x.className),ownerState:Jr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var VA=WA;var YA=$s("MuiBox",["root"]);const UA=Rx(),KA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Tl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ty);return x.forwardRef((function(e,a){const l=sy(n),s=dy(e),{className:u,component:c="div"}=s,d=oo(s,fy);return dc.jsx(i,Jr({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:ev,defaultTheme:UA,defaultClassName:YA.root,generateClassName:Fs.generate});var XA=KA;function JA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZA(e){return parseInt(gs(e).getComputedStyle(e).paddingRight,10)||0}function QA(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&JA(e,o)}))}function eI(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function tI(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ms(e);return t.body===e?gs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ts(ms(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZA(r)+e}px`;const t=ms(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ZA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ms(r).body;else{const t=r.parentElement,n=gs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const nI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rI(e){const t=[],n=[];return Array.from(e.querySelectorAll(nI)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function oI(){return!0}function iI(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=rI,isEnabled:a=oI,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=xs(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return dc.jsxs(x.Fragment,{children:[dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const aI=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&JA(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);QA(t,e.mount,e.modalRef,r,!0);const o=eI(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=eI(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=tI(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=eI(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&JA(e.modalRef,t),QA(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&JA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function lI(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=aI,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=xs(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=ys((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ms(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=ys((e=>{f.current=e,e&&(c&&w()?E():h.current&&JA(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ys(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Jr({},n,t);return Jr({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Jr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:fs((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:fs((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function sI(e){return js("MuiModal",e)}$s("MuiModal",["root","hidden","backdrop"]);const uI=["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"],cI=oS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Jr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),dI=oS(VA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pI=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=dA({name:"MuiModal",props:e}),{BackdropComponent:u=dI,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=oo(s,uI),_=Jr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=lI(Jr({},_,{rootRef:t})),j=Jr({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return qs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},sI,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:cI,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=Xs({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Vs(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=Xs({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Jr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vs(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?dc.jsx(NA,{ref:q,container:h,disablePortal:E,children:dc.jsxs(B,Jr({},Y,{children:[!R&&u?dc.jsx(H,Jr({},U)):null,dc.jsx(iI,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var fI=pI;var hI=$s("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const mI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gI(e){return`scale(${e}, ${e**2})`}const bI={entering:{opacity:1,transform:gI(1)},entered:{opacity:1,transform:"none"}},vI="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),yI=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=hp}=e,g=oo(e,mI),b=ws(),v=x.useRef(),y=Ax(),S=x.useRef(null),E=xs(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{pA(e);const{duration:n,delay:r,easing:o}=fA({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:vI?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=fA({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:vI?o:.666*o,delay:vI?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=gI(.75),c&&c(e)})),M=C(d);return dc.jsx(m,Jr({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Jr({style:Jr({opacity:0,transform:gI(.75),visibility:"exited"!==e||a?void 0:"hidden"},bI[e],f,o.props.style),ref:E},t))}))}));yI.muiSupportAuto=!0;var xI=yI;var SI=x.createContext({});function EI(e){return js("MuiList",e)}$s("MuiList",["root","padding","dense","subheader"]);const CI=["children","className","component","dense","disablePadding","subheader"],wI=oS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Jr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var RI=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=oo(n,CI),c=x.useMemo((()=>({dense:a})),[a]),d=Jr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return qs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},EI,t)})(d);return dc.jsx(SI.Provider,{value:c,children:dc.jsxs(wI,Jr({as:i,className:Vs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var LI=$s("MuiListItemIcon",["root","alignItemsFlexStart"]);var AI=$s("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const II=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function MI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function DI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function PI(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function _I(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&PI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var OI=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=oo(e,II),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vs((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ts(ms(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=xs(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return dc.jsx(RI,Jr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ms(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_I(t,r,s,l,MI);else if("ArrowUp"===n)e.preventDefault(),_I(t,r,s,l,DI);else if("Home"===n)e.preventDefault(),_I(t,null,s,l,MI);else if("End"===n)e.preventDefault(),_I(t,null,s,l,DI);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&PI(r,o);o.previousKeyMatched&&(s||_I(t,r,!1,l,MI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function TI(e){return js("MuiPopover",e)}$s("MuiPopover",["root","paper"]);const kI=["onEntering"],qI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],NI=["slotProps"];function FI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function zI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function jI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function $I(e){return"function"==typeof e?e():e}const GI=oS(fI,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BI=oS(bA,{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});var HI=x.forwardRef((function(e,t){var n,r,o;const i=dA({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=xI,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=oo(i.TransitionProps,kI),A=oo(i,qI),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=xs(M,I.ref),P=Jr({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"]},TI,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=$I(l),t=(e&&1===e.nodeType?e:ms(M.current).body).getBoundingClientRect();return{top:t.top+FI(t,s.vertical),left:t.left+zI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:FI(e,S.vertical),horizontal:zI(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:jI(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=gs($I(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:jI(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=hs((()=>{F()})),t=gs(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?ms($I(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:GI,G=null!=(o=null==v?void 0:v.paper)?o:BI,B=Xs({elementType:G,externalSlotProps:Jr({},I,{style:q?I.style:Jr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Vs(_.paper,null==I?void 0:I.className)}),H=Xs({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Vs(_.root,p)}),{slotProps:W}=H,V=oo(H,NI);return dc.jsx($,Jr({},V,!Hs($)&&{slotProps:W,disableScrollLock:R},{children:dc.jsx(E,Jr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:dc.jsx(G,Jr({},B,{children:d}))}))}))}));function WI(e){return js("MuiMenu",e)}$s("MuiMenu",["root","paper","list"]);const VI=["onEntering"],YI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],UI={vertical:"top",horizontal:"right"},KI={vertical:"top",horizontal:"left"},XI=oS(HI,{shouldForwardProp:e=>rS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JI=oS(BI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZI=oS(OI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var QI=x.forwardRef((function(e,t){var n,r;const o=dA({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=oo(o.TransitionProps,VI),S=oo(o,YI),E=(()=>{const e=x.useContext(Sy);return null!=e&&e})(),C=Jr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"],list:["list"]},WI,t)})(C),R=i&&!s&&d,L=x.useRef(null);let A=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(n=b.paper)?n:JI,M=null!=(r=v.paper)?r:p,D=Xs({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=Xs({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return dc.jsx(XI,Jr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?UI:KI,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:Jr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:dc.jsx(ZI,Jr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Vs(w.list,u.className),children:a}))}))}));function eM(e){return js("MuiMenuItem",e)}var tM=$s("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const nM=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rM=oS(qA,{shouldForwardProp:e=>rS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Jr({},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"}},[`&.${tM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ky(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ky(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ky(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})`:ky(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hI.inset}`]:{marginLeft:52},[`& .${AI.root}`]:{marginTop:0,marginBottom:0},[`& .${AI.inset}`]:{paddingLeft:36},[`& .${LI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Jr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${LI.root} svg`]:{fontSize:"1.25rem"}}))));var oM=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=oo(n,nM),f=x.useContext(SI),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);vs((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Jr({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Jr({},a,qs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},eM,a))})(n),v=xs(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),dc.jsx(SI.Provider,{value:h,children:dc.jsx(rM,Jr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Vs(b.focusVisible,s),className:Vs(b.root,d)},p,{ownerState:g,classes:b}))})}));const iM=oS(XA,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),aM=oS("div")({position:"absolute",left:0,bottom:0}),lM=oS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Or,justifyContent:null!=e?e:Or.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),sM=oS("div")((()=>({...Or}))),uM=oS("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),cM=oS(QI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),dM=oS(oM,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:`${e.spacing(.5)}`,margin:`${e.spacing(.25,.5)}`,padding:`${e.spacing(1,1.5)}`,display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:""+(t?"rgba(0, 0, 0, 0.05)":"transparent"),"&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),pM=oS("span")({textOverflow:"ellipsis",overflow:"hidden"}),fM=oS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:oC,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),hM={[dE.SORTING]:!0,[dE.SELECTIONS]:!0,[dE.SEARCHING]:!0},mM=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var h;const m=M(null),g=tC(),{app:b,model:v,interactions:y,embed:x,env:{flags:S}}=JE(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:A,background:I,hoverBackground:D,activeBackground:P}=g.header,_=M(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=s,{open:k,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=sA({interactions:y,dataModel:e}),z={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},j={embed:x,listboxRef:m,sortCriteria:d.searchSortFromDimension&&t.isDim?d.getSortCriteriaForDimension(t.dimensionInfoIndex):void 0},$={model:v,app:b},{labelTextAlign:G}=null!==(h=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==h?h:{},B=$L(G,"flex-start",S);return dc.jsxs(iM,{className:kt,title:t.label,interactions:y,background:k?P:I,hoverBackground:D,shouldShowMenuIcon:T,isDimension:t.isDim,style:{...n,...kr,...jr(t,i,r,o,g.grid.border),color:A},"data-testid":"title-cell",onClick:N,children:[dc.jsxs(lM,{children:[O&&dc.jsx(sM,{children:dc.jsx(aA,{height:12})}),dc.jsx(uM,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:dc.jsx("span",{style:qr,children:t.label})})]}),t.isDim&&dc.jsxs(dc.Fragment,{children:[dc.jsx(fE,{headerData:t,translator:a,anchorRef:_,open:k,setOpen:q,interactions:y,menuAvailabilityFlags:hM,sortRelatedArgs:z,searchRelatedArgs:j,selectionRelatedArgs:$,shouldShowMenuIcon:T}),dc.jsx(aM,{ref:m}),dc.jsx(aM,{ref:_})]}),dc.jsx(cA,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},gM=({rowSpan:e,columnSpan:t})=>{const n=tC();return e>0&&t>0?dc.jsx("div",{style:{...Tr,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function bM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),yM=D(vM);function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),S.createElement("use",{fillRule:"evenodd"})),EM=D(SM),CM=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=tC(),{interactions:i}=JE(),{isActive:a}=SL(),{setIsAdjustingWidth:l}=lA([e]);if(!(!!i.active&&!a))return null;const s=uA(o,{isLeftColumn:!0});return dc.jsx(cS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*lC))},confirmWidthCallback:o=>{var i;if(o.type===jt.FitToContent)return void e.applyIndentModeColumnWidth({type:jt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*lC);r(a),e.applyIndentModeColumnWidth({type:jt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function wM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),LM=D(RM),AM=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=M(null),i=M(null),{app:a,model:l,interactions:s,embed:u}=JE(),{open:c,setOpen:d,handleOpenMenu:p}=sA({interactions:s,dataModel:n});return dc.jsxs(dM,{component:"div",onClick:p,isActive:c,children:[dc.jsx(pM,{children:e.label}),dc.jsxs(fM,{className:"indent-mode-dropdown-more",visible:c,children:[dc.jsx(LM,{}),e.isDim&&dc.jsxs(dc.Fragment,{children:[dc.jsx(fE,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:hM,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),dc.jsx(aM,{ref:i}),dc.jsx(aM,{ref:o})]})]})]})},IM=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===dC,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===dC;return!(r&&a&&l)&&((null==t?void 0:t.id)!==dC&&e<n.length-1)},MM=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=tC(),{interactions:u}=JE(),[c,d]=I(!1),p=M(null),{headerCellHeight:f}=s,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=lA([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return dc.jsxs(iM,{isDimension:!0,background:c?b:m,interactions:u,hoverBackground:g,style:{...R,...kr,color:h},onClick:e=>u.active&&!vL(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[dc.jsxs(lM,{justifyContent:"flex-start",children:[dc.jsx(uM,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:dc.jsx("span",{style:qr,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?dc.jsx(EM,{}):dc.jsx(yM,{}),dc.jsx(aM,{ref:p})]}),dc.jsx(cM,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==dC&&dc.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:dc.jsx(AM,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),IM({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&dc.jsx(vS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),dc.jsx(CM,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},DM={display:"grid",width:"fit-content"},PM=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>dc.jsxs("div",{style:{...DM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&dc.jsx(gM,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(dc.jsx(MM,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const h=s(f,u.isLocked,u.label),m=d.isIndentModeEnabled&&1===i.size.x;n.push(dc.jsx(mM,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:h,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:m,tableWidth:t},u.id))}return n}),[]),f}))]});var _M=T(PM);const OM=(e,t,n,r,o)=>{k((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},TM=(e,t)=>{Ub((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},kM=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===xt.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return $L(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return $L(u,i,r)},qM=()=>{},NM=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=tC(),{interactions:f,env:{flags:h}}=JE(),{select:m,isLocked:g}=SL(),{layoutService:b,showLastBorder:v}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?m(r):void 0;return dc.jsx("div",{className:kt,title:f.passive?t:void 0,style:{...n,...zr(a,l,p.grid.border,v),...$r({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...kr,padding:"0px 4px",cursor:PL(x),background:LL({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:b.size.x-r.x,justifyContent:kM(r,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:qM,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},FM=e=>e.stopPropagation(),zM=({href:e,text:t,interactions:n,color:r})=>S.createElement(Jh,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:FM,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),jM=({children:e,textStyle:t})=>dc.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),$M=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=SL(),{interactions:i}=JE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...qr,...Nr(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:AL({cell:e,styleService:t,isCellSelected:n}),fontWeight:IL({cell:e,styleService:t}),fontStyle:ML({cell:e,styleService:t}),textDecoration:DL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==xt.Image||e.isTotal?(e.representation.type!==xt.Link||o||e.isTotal||(a=dc.jsx(zM,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),dc.jsx(jM,{textStyle:l,children:a})):dc.jsx(jL,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},GM=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==xt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},BM=({index:e,style:t,data:n})=>{const r=tC(),{isSelected:o}=SL(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=lA([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=YR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return dc.jsx(sL,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return dc.jsxs(NM,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,children:[dc.jsxs(uL,{verticalAlign:GM(h),width:cL(h.representation),right:h.isLeftColumn?void 0:4,children:[dc.jsx(TL,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),dc.jsx($M,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),dc.jsx(cA,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?Mt.Measures:Mt.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var HM=S.memo(BM,VR);const WM=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},VM=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},YM=(e,t)=>n=>{e.current&&(e.current[t]=n)},UM={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Tr},KM={overflow:"hidden",willChange:"auto",flexShrink:0},XM=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=tC();TM(t,a),OM(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return dc.jsx("div",{style:{...UM,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=_C(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=VM(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,v,d,h,c.qcy);return dc.jsx(GR,{ref:YM(t,p),style:{...KM,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:QL,estimatedItemSize:b,children:HM},m)}))})};var JM=T(XM);const ZM={overflow:"hidden",willChange:"auto"},QM={...Tr,borderWidth:"0px 0px 0px 1px"},eD=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=tC(),p={...QM,borderColor:c,height:o};TM(t,a),OM(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?dc.jsx("div",{style:{width:r,height:o,...QM}}):dc.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=VM(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),b=g?_C(g):`empty ${c}`;return dc.jsx(GR,{ref:YM(t,c),style:ZM,height:n(),width:r,itemCount:p,itemSize:WM({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:QL,estimatedItemSize:h,children:HM},b)}))})};var tD=T(eD);const nD=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=tC(),u=((e,t,n)=>A((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return A((()=>{var e,n,a,l;const s=rR(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=rR(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(nR(i,o,0)),visibleTopDimensionInfo:u.map(nR(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=P((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:h,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:b,nextPageHandler:v}=Xw(o,r,i,c,d),y=eR({model:e,nextPageHandler:v,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:D,verticalScrollbarWidth:O,horizontalScrollbarHeight:T,horizontalScrollbarHeightSetter:q,verticalScrollDirection:N,horizontalScrollDirection:F}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=JE(),f=M(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=M(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=M(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=M(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=M(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=M(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=M(0),x=M(0),S=M(_t.None),E=M(_t.None),[C,w]=I(0),[R,L]=I(0),A=e=>{E.current=tR(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=tR(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};k((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),k((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=b.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),k((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const D=P((e=>{if(e)return void L(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return k((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}D()}),[D,e,t,r.width,r.height,d,p]),k((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Pt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Pt.DATA_GRID}`&&(A(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(A(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:D,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:z,headerGridHeight:j,topGridHeight:$,leftGridHeight:G,dataGridHeight:B,allRowsVisible:H}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=tC(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-Dr,l),dataGridHeight:Math.min(r.height-c-Dr,l),allRowsVisible:c+Dr+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:m,tableRect:u,horizontalScrollbarHeight:T}),{leftGridWidth:W,leftGridColumnWidths:V,rightGridWidth:Y,totalWidth:U,showLastRightBorder:K,getRightGridColumnWidth:X,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Z}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=tC(),{measureText:s}=Wb(l.header),u=CC({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=wC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+Dr,p=d<t,f=P(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+aC;return r&&d+iC<=a&&(c=!0,d+=iC),d+oC<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return _((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:O,horizontalScrollbarHeightSetter:q,translator:a}),{rootWrapper:Q,leftWrapper:ee,rightWrapper:te}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Dr,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+Dr-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:z,headerGridHeight:j,leftGridHeight:G,topGridHeight:$,dataGridHeight:B,allRowsVisible:H,totalWidth:U,leftGridWidth:W,rightGridWidth:Y,verticalScrollbarWidth:O,horizontalScrollbarHeight:T}),ne=P((()=>l),[l]),re=P((()=>s),[s]);return(()=>{const{downloadService:e}=JE();_((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),dc.jsx(lR,{ref:E,...Q.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Pt.CONTAINER_GRID,children:dc.jsx(oR,{...Q.fullSize,children:dc.jsxs(sR,{...Q.sticky,style:{display:"grid",gridTemplateColumns:W?`${ee.containers.scrollable.width}px ${te.containers.scrollable.width}px`:`${te.containers.scrollable.width}px`},children:[Boolean(W)&&dc.jsx(lR,{ref:C,...ee.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Pt.LEFT_GRID,children:dc.jsx(oR,{isLeftGrid:!0,...ee.containers.fullSize,children:dc.jsxs(sR,{isLeftGrid:!0,...ee.containers.sticky,children:[dc.jsx(_M,{dataModel:y,tableWidth:u.width,leftGridWidth:W,columnWidths:V,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:ee.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:Z,layoutService:r}),dc.jsx(JM,{dataModel:y,leftGridRef:L,...ee.leftGrid,columnWidths:V,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:H},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),dc.jsx(lR,{ref:w,...te.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Pt.DATA_GRID,children:dc.jsx(oR,{...te.containers.fullSize,children:dc.jsxs(sR,{...te.containers.sticky,children:[dc.jsx(tD,{dataModel:y,topGridRef:D,rowHightCallback:ne,...te.topGrid,layoutService:r,topDimensionData:m,showLastBorder:{right:K,bottom:!1},getRightGridColumnWidth:X,headersData:f}),dc.jsx(rA,{dataModel:y,dataGridRef:R,rowHightCallback:re,...te.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:g,topDimensionData:m,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:K,bottom:H},getRightGridColumnWidth:X,pageInfo:i,verticalScrollDirection:N,horizontalScrollDirection:F})]})})})]})})})},rD=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=JE(),{layout:u,hasData:c}=t;return dc.jsxs(dc.Fragment,{children:[c&&dc.jsx(nD,{...e}),dc.jsx(QE,{translator:n,layoutService:t}),dc.jsx(KE,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},oD={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},iD=12,aD=14,lD=16,sD=24,uD=3,cD=300,dD=400,pD=600,fD=700,hD={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};ro(oD.GREYSCALE_0,.05),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5);var mD;function gD(){return gD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gD.apply(null,arguments)}ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5);var bD,vD=function(e){return x.createElement("svg",gD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),mD||(mD=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function yD(){return yD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yD.apply(null,arguments)}var xD=function(e){return x.createElement("svg",yD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),bD||(bD=x.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function SD({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var ED=(e={})=>S.createElement(SD,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),CD=(e={})=>S.createElement(SD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),wD=(e={})=>S.createElement(SD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),RD=(e={})=>S.createElement(SD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),LD=({className:e})=>S.createElement(SD,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),S.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),AD=(e={})=>S.createElement(SD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:oD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const ID={MuiAccordion:{styleOverrides:{root:{backgroundColor:oD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:oD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(vD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${oD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`,borderRadius:uD,backgroundColor:oD.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${oD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:oD.WHITE,color:oD.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:uD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:oD.GREYSCALE_0_15,backgroundColor:oD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${oD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:oD.GREEN_PALE},"&:active":{backgroundColor:oD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:oD.BLUE_PALE},"&:active":{backgroundColor:oD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:uD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:oD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:oD.GREYSCALE_0_15,backgroundColor:oD.GREYSCALE_100_60,"&:active":{backgroundColor:oD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${oD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:oD.PURPLE,"&.Mui-focusVisible":{borderColor:oD.PURPLE,boxShadow:`0 0 0 3px ${my(oD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:oD.GREEN,"&.Mui-focusVisible":{borderColor:oD.GREEN,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:oD.BLUE,"&.Mui-focusVisible":{borderColor:oD.BLUE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:oD.ORANGE,"&.Mui-focusVisible":{borderColor:oD.ORANGE,boxShadow:`0 0 0 3px ${my(oD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:oD.RED,"&.Mui-focusVisible":{borderColor:oD.RED,boxShadow:`0 0 0 3px ${my(oD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:oD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:oD.PURPLE_PALE},"&:active":{backgroundColor:oD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:oD.PURPLE_PALE,boxShadow:`0 0 0 3px ${my(oD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:oD.GREEN_PALE},"&:active":{backgroundColor:oD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:oD.BLUE_PALE},"&:active":{backgroundColor:oD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:oD.ORANGE_PALE},"&:active":{backgroundColor:oD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:oD.ORANGE_PALE,boxShadow:`0 0 0 3px ${my(oD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:oD.RED_PALE},"&:active":{backgroundColor:oD.RED_DARK},"&.Mui-focusVisible":{borderColor:oD.RED_PALE,boxShadow:`0 0 0 3px ${my(oD.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:oD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:oD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:uD,boxShadow:`inset 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(xD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:iD,borderRadius:uD,color:oD.TEXT_PRIMARY,backgroundColor:oD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:oD.GREYSCALE_0_05,color:oD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:oD.GREEN,borderColor:oD.GREEN},"&.MuiChip-outlinedInfo":{color:oD.BLUE,borderColor:oD.BLUE},"&.MuiChip-outlinedWarning":{color:oD.ORANGE,borderColor:oD.ORANGE},"&.MuiChip-outlinedError":{color:oD.RED,borderColor:oD.RED}},outlined:{border:`solid 1px ${oD.GREYSCALE_0_15}`,backgroundColor:oD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:uD,boxShadow:"none",backgroundColor:oD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:oD.GREEN,borderColor:oD.GREEN},outlinedSecondary:{color:oD.BLUE,borderColor:oD.BLUE},label:{fontFamily:hD.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(xD,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(vD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:uD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:uD,fontSize:aD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:oD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${oD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:oD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:oD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:uD,border:`solid 1px ${oD.GREYSCALE_0_15}`,color:oD.GREYSCALE_0_60,marginRight:0,width:sD,height:sD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${oD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:uD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:oD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:aD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:iD,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:oD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:oD.GREYSCALE_25,fontSize:iD,fontFamily:hD.FONT_FAMILY,fontWeight:pD,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:oD.TEXT_PRIMARY},"&.Mui-error":{color:oD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:oD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:dD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:oD.TEXT_SECONDARY,content:"'(required)'",fontWeight:dD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:aD,lineHeight:"16px",backgroundColor:oD.WHITE,borderRadius:uD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.GREYSCALE_0_05}`,borderColor:oD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${oD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${oD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.RED}`,boxShadow:`0px 0px 0px 1px ${oD.RED}, inset 0 2px 0 0 ${oD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.GREYSCALE_0_10}`,borderColor:oD.GREYSCALE_0_10,backgroundColor:oD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:oD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:oD.GREYSCALE_0_15,borderRadius:uD,boxShadow:`inset 0 2px 0 0 ${oD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(vD,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:oD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:oD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:oD.GREYSCALE_0_03},"&:active":{backgroundColor:oD.GREYSCALE_0_10},"&:focus":{backgroundColor:oD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${oD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:oD.GREYSCALE_0_30,"&:hover":{backgroundColor:oD.GREYSCALE_0_0,borderColor:oD.GREYSCALE_0_15},"& ~svg":{color:oD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${oD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:uD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:oD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:aD,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:iD,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:iD,fontWeight:pD,color:oD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:pD}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${oD.GREYSCALE_0_15}, 0px 0px 0px 1px ${oD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(wD,null),checkedIcon:S.createElement(RD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:oD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:oD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:oD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(AD,null),checkedIcon:S.createElement(ED,null),indeterminateIcon:S.createElement(CD,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:uD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:oD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:oD.GREYSCALE_0_55,color:oD.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:oD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:oD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:oD.GREYSCALE_0_55,"&:hover":{color:oD.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:oD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:oD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:aD,color:oD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:pD},secondary:{fontSize:iD,color:oD.GREYSCALE_45,fontWeight:dD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:aD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:oD.GREYSCALE_0_03},"&:active":{backgroundColor:oD.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:aD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:oD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:iD,borderBottom:`solid 1px ${oD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:aD,color:oD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:oD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:oD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:oD.RED}}},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:oD.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:oD.GREEN,height:"24px","&.Mui-disabled":{color:oD.GREYSCALE_0_15}},rail:{backgroundColor:oD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${oD.GREYSCALE_0_05}`,borderRadius:uD,boxShadow:`inset 0px 0px 0px 1px ${oD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${oD.GREYSCALE_0_05}`,borderRadius:uD},thumb:{height:"16px",width:"16px",borderRadius:uD,backgroundColor:oD.WHITE,boxShadow:`0px 1px 2px 0px ${oD.GREYSCALE_0_15}, 0px 0px 0px 1px ${oD.GREYSCALE_0_05}`,"&:hover":{borderRadius:uD,boxShadow:`0 2px 4px 0 ${oD.GREYSCALE_0_30}, 0 0 0 1px ${oD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${oD.GREYSCALE_0_15}, 0 0 0 1px ${oD.GREYSCALE_0_06}, 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${oD.GREYSCALE_0_15}, 0 0 0 1px ${oD.GREYSCALE_0_06}, 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:oD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:oD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:oD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:oD.GREYSCALE_0_15},markLabel:{color:oD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:oD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:oD.WHITE,color:oD.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:oD.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:oD.GREYSCALE_0_15,borderRadius:uD},thumb:{height:"16px",width:"16px",borderRadius:uD,backgroundColor:oD.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:aD,fontWeight:pD,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${oD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`,backgroundColor:oD.GREYSCALE_0_03,borderRadius:uD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:oD.GREYSCALE_25,"&.Mui-selected":{color:oD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:aD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:uD,"&:hover":{backgroundColor:`${oD.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${oD.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${oD.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:uD,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:oD.GREYSCALE_0_05},"&:hover":{backgroundColor:`${oD.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${oD.GREYSCALE_85}`,borderRight:`1px solid ${oD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:pD,backgroundColor:oD.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:oD.GREYSCALE_98,borderBottom:`1px solid ${oD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${oD.GREYSCALE_85}`,borderTop:`1px solid ${oD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:oD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:oD.GREYSCALE_0_05,"&:hover":{backgroundColor:oD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:oD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(LD,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${oD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:aD,borderRadius:uD,padding:"7px 16px",border:`1px solid ${oD.GREYSCALE_0_15}`,backgroundColor:oD.GREYSCALE_100_60,color:oD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:oD.GREYSCALE_0_10,border:`1px solid ${oD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:oD.GREYSCALE_0_03,border:`1px solid ${oD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:oD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${oD.MISC_FOCUS_BORDER}`,border:`1px solid ${oD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:oD.GREYSCALE_25,backgroundColor:oD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:oD.GREYSCALE_0_10,border:`1px solid ${oD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:iD,height:24,width:24,padding:7},sizeLarge:{fontSize:lD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:aD,borderRadius:uD}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:oD.GREYSCALE_20},tooltip:{backgroundColor:oD.GREYSCALE_20,fontSize:iD,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var MD=e=>ID;const DD={mode:"light",primary:{ultraLight:oD.GREEN_ULTRA_LIGHT,light:oD.GREEN_PALE,main:oD.GREEN,dark:oD.GREEN_DARK,extraDark:oD.GREEN_EXTRA_DARK,contrastText:oD.WHITE},secondary:{ultraLight:oD.BLUE_ULTRA_LIGHT,light:oD.BLUE_PALE,main:oD.BLUE,dark:oD.BLUE_DARK,extraDark:oD.BLUE_EXTRA_DARK,contrastText:oD.WHITE},error:{ultraLight:oD.RED_ULTRA_LIGHT,light:oD.RED_PALE,main:oD.RED,dark:oD.RED_DARK,extraDark:oD.RED_EXTRA_DARK,contrastText:oD.WHITE},warning:{ultraLight:oD.ORANGE_ULTRA_LIGHT,light:oD.ORANGE_PALE,main:oD.ORANGE,dark:oD.ORANGE_DARK,extraDark:oD.ORANGE_EXTRA_DARK,contrastText:oD.WHITE},success:{ultraLight:oD.GREEN_ULTRA_LIGHT,light:oD.GREEN_PALE,main:oD.GREEN,dark:oD.GREEN_DARK,extraDark:oD.GREEN_EXTRA_DARK,contrastText:oD.WHITE},info:{ultraLight:oD.BLUE_ULTRA_LIGHT,light:oD.BLUE_PALE,main:oD.BLUE,dark:oD.BLUE_DARK,extraDark:oD.BLUE_EXTRA_DARK,contrastText:oD.WHITE},text:{primary:oD.TEXT_PRIMARY,secondary:oD.TEXT_SECONDARY,disabled:oD.GREYSCALE_0_30},action:{hover:oD.GREYSCALE_0_03,hoverOpacity:.03,selected:oD.GREYSCALE_0_05,selectedOpacity:.05,focus:oD.MISC_FOCUS_BORDER},amethyst:{ultraLight:oD.WHITE,main:oD.PURPLE,light:oD.PURPLE_PALE,dark:oD.PURPLE_DARK,extraDark:oD.GREYSCALE_0_0,contrastText:oD.WHITE},background:{paper:oD.WHITE,default:oD.GREYSCALE_95},divider:oD.GREYSCALE_0_15},PD=e=>DD,_D=(e="light")=>({components:MD(),palette:PD(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:aD,fontWeightLight:cD,fontWeightRegular:dD,fontWeightMedium:pD,fontWeightBold:fD,htmlFontSize:aD,fontFamily:hD.FONT_FAMILY,button:{fontWeight:pD,fontSize:aD,textTransform:"none"},body1:{fontSize:lD,lineHeight:"24px"},body2:{fontSize:aD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:sD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:lD,fontWeight:pD,lineHeight:"16px"},h6:{fontSize:aD,fontWeight:pD,lineHeight:"16px"},caption:{color:oD.TEXT_SECONDARY},subtitle1:{fontSize:aD,color:oD.TEXT_SECONDARY},subtitle2:{fontSize:iD,color:oD.TEXT_SECONDARY}},shape:{borderRadius:uD}});const OD=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=_D();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),Rx({...n,direction:e})}("ltr");e.render(dc.jsx(S.StrictMode,{children:dc.jsx(aS,{theme:p,children:dc.jsx(ZE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:dc.jsx(EL,{selections:n,updatePageInfo:t.updatePageInfo,children:dc.jsx(nC,{styleService:r,children:dc.jsx(rD,{...t})})})})})}))};var TD,kD,qD,ND;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(TD||(TD={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(kD||(kD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(qD||(qD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(ND||(ND={}));const FD=e=>e?`${parseInt(e,10)}px`:void 0,zD=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Pr.Transparent:n}},jD=(e,t)=>+(parseInt(e,10)*Mr*t+8).toFixed(2),$D=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Ar:"normal",GD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",BD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function HD(e,t){return o((()=>e),t)}const WD={},VD=e=>{const t=o((()=>({current:WD})),[]);return t.current=t.current===WD?e:t.current,t},YD=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,UD=(e,t,n)=>{var r,i;const a=null!==(r=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==r&&r,l=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,s=void 0!==(null==n?void 0:n.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==n?void 0:n.qHyperCubeDef.qSortbyYValue),u=o((()=>{var e;return null==n||null===(e=n.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[n]);return o((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:h,qMeasureInfo:m,qDimensionInfo:g}=c,b=!!p,v=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,Ir),y:Math.min(e.qHyperCube.qSize.qcy,v)},x=h.slice(0,f),S=e=>x.some((t=>t===e)),E=S(cC),C=new Map(h.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:cC,e]}))),w=m.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const n=e%w.length;return t?n:m.findIndex((e=>e===w[n]))},getDimensionInfo:e=>e===cC?cC:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:b,hasLimitedData:!b&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:jt.Auto,pixels:zt.PixelsDefault,percentage:zt.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:e,flags:t,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[e,a,l,s,t,u])},KD=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=VD(e);return t.current=e,t})(Zw(o));return $b((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(Ir,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(uC,Qw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},XD=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),JD=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:XD({rowsPerPage:n,totalRowCount:e,page:t})}),ZD=15,QD=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return s((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(null!=r&&r.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l}=t,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-ZD,0),u=Math.max(l+o-ZD,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Zw(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(t,o,n),u=Qw(s),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(uC,[c,...u]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height}return e})),u((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var eP={SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const tP=()=>{const e=c(),t=e.language();return o((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(eP).forEach((t=>{e.add(eP[t])}))}}(e)),[e]),{translator:e,language:t}},nP=e=>{const{flags:r}=e,a=d(),s=(e=>{const t=o((()=>Vb(e)),[e]);return n((()=>()=>t.unmount()),[t]),t})(a),u=p(),c=f(),x=h(),S=m(),E=g(),C=b(),w=(e=>{const{viewState:t}=l(),n=VD(new Set),r=void 0!==t&&e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:a,resolve:s}=o((()=>dL()),[]),u=HD((e=>{n.current.add(e)}),[n]),c=HD(rt((async()=>{await Promise.all(n.current),s()}),1e3),[s,n]);return i((async()=>{r&&await a}),[a,r]),o((()=>({viewState:t,isDownloadedAsPDForImage:r,notifyIsDoneRendering:c,waitForPromise:u})),[c,r,t,u])})(e),[R,L]=((e,t)=>$b((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(c,u),A=UD(u,r,R),I=v(),M=jb(u,a),{translator:D,language:P}=tP(),{pageInfo:_,updatePageInfo:O}=((e,r)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=e,a=r.isDownloadedAsPDForImage||e.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[s,u]=t((()=>{const t=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,r);return{page:t,shouldShowPagination:i.qcy>o.y&&!a,...JD(i.qcy,t,l)}}));return n((()=>{u((t=>({...t,...JD(e.layout.qHyperCube.qSize.qcy,t.page,l),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y&&!a})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,u,a,l]),n((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=XD({...s,page:e});u({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:XD({...s,...e})})}})(A,w),T=((e,t,n)=>o((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(_,u,w),k=QD({rect:y(),layoutService:A,viewService:T,model:c,pageInfo:_}),[q,N]=KD({model:c,layoutService:A,viewService:T,pageInfo:_,rect:k}),F=o((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,T,k,q,N,F,z,j,$,G,B,H,W,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[TD.LineClamp])&&void 0!==i?i:oe(kD.Grid,qD.Grid,ND.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[TD.ColumnLineClamp])&&void 0!==l?l:oe(kD.Grid,qD.Grid,ND.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=zD(e,null==J?void 0:J[TD.Background]))&&void 0!==u?u:oe(kD.Dimension,qD.LabelName,ND.BackgroundColor))&&void 0!==s?s:Pr.Transparent,se={header:{fontSize:null!==(c=null!==(d=FD(null==J?void 0:J[TD.FontSize]))&&void 0!==d?d:oe(kD.Dimension,qD.LabelName,ND.FontSize))&&void 0!==c?c:Rr,fontFamily:null!==(p=null!==(f=null==J?void 0:J[TD.FontFamily])&&void 0!==f?f:oe(kD.Dimension,qD.LabelName,ND.FontFamily))&&void 0!==p?p:Lr,fontWeight:$D(null==J?void 0:J[TD.FontStyle],Ar),fontStyle:GD(null==J?void 0:J[TD.FontStyle]),textDecoration:BD(null==J?void 0:J[TD.FontStyle]),color:null!==(h=null!==(m=zD(e,null==J?void 0:J[TD.FontColor]))&&void 0!==m?m:oe(kD.Dimension,qD.LabelName,ND.Color))&&void 0!==h?h:Dg.TEXT,background:le,hoverBackground:Db(le,$t),activeBackground:Db(le,Gt)},dimensionValues:{fontSize:null!==(g=null!==(b=FD(null==Z?void 0:Z[TD.FontSize]))&&void 0!==b?b:oe(kD.Dimension,qD.LabelValue,ND.FontSize))&&void 0!==g?g:Rr,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[TD.FontFamily])&&void 0!==y?y:oe(kD.Dimension,qD.LabelValue,ND.FontFamily))&&void 0!==v?v:Lr,fontWeight:$D(null==Z?void 0:Z[TD.FontStyle],void 0),fontStyle:GD(null==Z?void 0:Z[TD.FontStyle]),textDecoration:BD(null==Z?void 0:Z[TD.FontStyle]),color:null!==(x=null!==(S=zD(e,null==Z?void 0:Z[TD.FontColor]))&&void 0!==S?S:oe(kD.Dimension,qD.LabelValue,ND.Color))&&void 0!==x?x:Dg.TEXT,background:null!==(E=null!==(C=zD(e,null==Z?void 0:Z[TD.Background]))&&void 0!==C?C:oe(kD.Dimension,qD.LabelValue,ND.BackgroundColor))&&void 0!==E?E:Pr.Transparent},measureValues:{fontSize:null!==(w=null!==(R=FD(null==Q?void 0:Q[TD.FontSize]))&&void 0!==R?R:oe(kD.Measure,qD.LabelValue,ND.FontSize))&&void 0!==w?w:Rr,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[TD.FontFamily])&&void 0!==A?A:oe(kD.Measure,qD.LabelValue,ND.FontFamily))&&void 0!==L?L:Lr,fontWeight:$D(null==Q?void 0:Q[TD.FontStyle],"normal"),fontStyle:GD(null==Q?void 0:Q[TD.FontStyle]),textDecoration:BD(null==Q?void 0:Q[TD.FontStyle]),color:null!==(I=null!==(M=zD(e,null==Q?void 0:Q[TD.FontColor]))&&void 0!==M?M:oe(kD.Measure,qD.LabelValue,ND.Color))&&void 0!==I?I:Pr.FontSecondary,background:null!==(D=null!==(P=zD(e,null==Q?void 0:Q[TD.Background]))&&void 0!==P?P:oe(kD.Measure,qD.LabelValue,ND.BackgroundColor))&&void 0!==D?D:Pr.Transparent},measureLabels:{fontWeight:$D(null==ee?void 0:ee[TD.FontStyle],"normal"),fontStyle:GD(null==ee?void 0:ee[TD.FontStyle]),textDecoration:BD(null==ee?void 0:ee[TD.FontStyle]),color:null!==(_=null!==(O=zD(e,null==ee?void 0:ee[TD.FontColor]))&&void 0!==O?O:oe(kD.Measure,qD.LabelName,ND.Color))&&void 0!==_?_:Pr.FontSecondary,background:null!==(T=null!==(k=zD(e,null==ee?void 0:ee[TD.Background]))&&void 0!==k?k:oe(kD.Measure,qD.LabelName,ND.BackgroundColor))&&void 0!==T?T:Pr.Transparent},totalValues:{fontWeight:$D(null==te?void 0:te[TD.FontStyle],Ar),fontStyle:GD(null==te?void 0:te[TD.FontStyle]),textDecoration:BD(null==te?void 0:te[TD.FontStyle]),color:null!==(q=null!==(N=zD(e,null==te?void 0:te[TD.FontColor]))&&void 0!==N?N:oe(kD.Total,qD.LabelValue,ND.Color))&&void 0!==q?q:Dg.TEXT,background:null!==(F=null!==(z=zD(e,null==te?void 0:te[TD.Background]))&&void 0!==z?z:oe(kD.Total,qD.LabelValue,ND.BackgroundColor))&&void 0!==F?F:Pr.Transparent},nullValues:{fontWeight:$D(null==ne?void 0:ne[TD.FontStyle],"normal"),fontStyle:GD(null==ne?void 0:ne[TD.FontStyle]),textDecoration:BD(null==ne?void 0:ne[TD.FontStyle]),color:null!==(j=null!==($=zD(e,null==ne?void 0:ne[TD.FontColor]))&&void 0!==$?$:oe(kD.Null,qD.LabelValue,ND.Color))&&void 0!==j?j:Dg.TEXT,background:null!==(G=null!==(B=zD(e,null==ne?void 0:ne[TD.Background]))&&void 0!==B?B:oe(kD.Null,qD.LabelValue,ND.BackgroundColor))&&void 0!==G?G:Pr.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=zD(e,null==re?void 0:re[TD.Border]))&&void 0!==W?W:oe(kD.Grid,qD.Grid,ND.BorderColor))&&void 0!==H?H:Pr.DividerLight,divider:null!==(V=null!==(Y=zD(e,null==re?void 0:re[TD.Divider]))&&void 0!==Y?Y:oe(kD.Grid,qD.Divider,ND.BorderColor))&&void 0!==V?V:Pr.DividerDark,background:null!==(U=null!==(K=zD(e,null==re?void 0:re[TD.Background]))&&void 0!==K?K:oe(kD.Grid,qD.Grid,ND.BackgroundColor))&&void 0!==U?U:Pr.Transparent}};return se.headerCellHeight=Math.max(jD(se.header.fontSize,ae),jD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(jD(se.measureValues.fontSize,ie),jD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=jD(se.dimensionValues.fontSize,1),se})(M,A,r)),[M,A,r]),z=(e=>o((()=>[...new Set([YD(e.header),YD(e.dimensionValues),YD({...e.dimensionValues,...e.measureLabels}),YD({...e.dimensionValues,...e.nullValues}),YD({...e.dimensionValues,...e.totalValues}),YD(e.measureValues),YD({...e.measureValues,...e.nullValues}),YD({...e.measureValues,...e.totalValues})])]),[e]))(F),j=(e=>{const[t,n]=i((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(z);r.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&Qb(),n((()=>{!N&&c&&(null==k?void 0:k.width)&&(null==k?void 0:k.height)&&I&&T&&A&&F&&!!q&&!L&&j&&OD(s,{model:c,app:x,rect:k,selections:I,viewService:T,layoutService:A,downloadService:w,qPivotDataPages:q,styleService:F,translator:D,pageInfo:_,updatePageInfo:O,interactions:C,embed:S,keyboard:E,theme:M,env:e})}),[c,x,k,null==k?void 0:k.width,null==k?void 0:k.height,C,I,T,A,w,N,q,F,s,j,D,P,_,O,R,L,S,E,M,e])},rP={version:"3.9.0",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},oP=e=>({...rP,qHyperCubeDef:{...rP.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}})}}}));
|
|
174
|
+
`),vA.rippleVisible,RA,550,(({theme:e})=>e.transitions.easing.easeInOut),vA.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),vA.child,vA.childLeaving,LA,550,(({theme:e})=>e.transitions.easing.easeInOut),vA.childPulsate,AA,(({theme:e})=>e.transitions.easing.easeInOut));var DA=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=oo(n,yA),[l,s]=x.useState([]),u=x.useRef(0),c=x.useRef(null);x.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=x.useRef(!1),p=ws(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,dc.jsx(MA,{classes:{ripple:Vs(o.ripple,vA.ripple),rippleVisible:Vs(o.rippleVisible,vA.rippleVisible),ripplePulsate:Vs(o.ripplePulsate,vA.ripplePulsate),child:Vs(o.child,vA.child),childLeaving:Vs(o.childLeaving,vA.childLeaving),childPulsate:Vs(o.childPulsate,vA.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=x.useCallback(((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.start(80,(()=>{f.current&&(f.current(),f.current=null)}))):m({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,m,p]),b=x.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=x.useCallback(((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,(()=>{v(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return x.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),dc.jsx(IA,Jr({className:Vs(vA.root,o.root,i),ref:h},a,{children:dc.jsx(xp,{component:null,exit:!0,children:l})}))}));function PA(e){return js("MuiButtonBase",e)}var _A=$s("MuiButtonBase",["root","disabled","focusVisible"]);const OA=["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"],TA=oS("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"},[`&.${_A.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kA=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:E,onMouseLeave:C,onMouseUp:w,onTouchEnd:R,onTouchMove:L,onTouchStart:A,tabIndex:I=0,TouchRippleProps:M,touchRippleRef:D,type:P}=n,_=oo(n,OA),O=x.useRef(null),T=x.useRef(null),k=xs(T,D),{isFocusVisibleRef:q,onFocus:N,onBlur:F,ref:z}=Os(),[j,$]=x.useState(!1);s&&j&&$(!1),x.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),O.current.focus()}})),[]);const[G,B]=x.useState(!1);x.useEffect((()=>{B(!0)}),[]);const H=G&&!u&&!s;function W(e,t,n=c){return ys((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}x.useEffect((()=>{j&&d&&!u&&G&&T.current.pulsate()}),[u,d,j,G]);const V=W("start",E),Y=W("stop",m),U=W("stop",g),K=W("stop",w),X=W("stop",(e=>{j&&e.preventDefault(),C&&C(e)})),J=W("start",A),Z=W("stop",R),Q=W("stop",L),ee=W("stop",(e=>{F(e),!1===q.current&&$(!1),f&&f(e)}),!1),te=ys((e=>{O.current||(O.current=e.currentTarget),N(e),!0===q.current&&($(!0),v&&v(e)),b&&b(e)})),ne=()=>{const e=O.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=x.useRef(!1),oe=ys((e=>{d&&!re.current&&j&&T.current&&" "===e.key&&(re.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=ys((e=>{d&&" "===e.key&&T.current&&j&&!e.defaultPrevented&&(re.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),S&&S(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(_.href||_.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===P?"button":P,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=xs(t,z,O),ue=Jr({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:I,focusVisible:j}),ce=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=qs({root:["root",t&&"disabled",n&&"focusVisible"]},PA,o);return n&&r&&(i.root+=` ${r}`),i})(ue);return dc.jsxs(TA,Jr({as:ae,className:Vs(ce.root,a),ownerState:ue,onBlur:ee,onClick:h,onContextMenu:Y,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:K,onDragLeave:U,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:se,tabIndex:s?-1:I,type:P},le,_,{children:[i,H?dc.jsx(DA,Jr({ref:k,center:o},M)):null]}))}));var qA=kA;var NA=x.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=x.useState(null),l=xs(x.isValidElement(n)?n.ref:null,t);if(vs((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),vs((()=>{if(i&&!o)return bs(t,i),()=>{bs(t,null)}}),[t,i,o]),o){if(x.isValidElement(n)){const e={ref:l};return x.cloneElement(n,e)}return dc.jsx(x.Fragment,{children:n})}return dc.jsx(x.Fragment,{children:i?F.createPortal(n,i):i})}));const FA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],zA={entering:{opacity:1},entered:{opacity:1}},jA=x.forwardRef((function(e,t){const n=Ax(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:b=hp}=e,v=oo(e,FA),y=x.useRef(null),S=xs(y,a.ref,t),E=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=E(d),w=E(((e,t)=>{pA(e);const r=fA({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),R=E(c),L=E(h),A=E((e=>{const t=fA({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),I=E(f);return dc.jsx(b,Jr({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:R,onEntering:C,onExit:A,onExited:I,onExiting:L,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,Jr({style:Jr({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},zA[e],m,a.props.style),ref:S},t))}))}));var $A=jA;function GA(e){return js("MuiBackdrop",e)}$s("MuiBackdrop",["root","invisible"]);const BA=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],HA=oS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Jr({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"}))),WA=x.forwardRef((function(e,t){var n,r,o;const i=dA({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=$A,transitionDuration:g}=i,b=oo(i,BA),v=Jr({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return qs({root:["root",n&&"invisible"]},GA,t)})(v),x=null!=(n=f.root)?n:c.root;return dc.jsx(m,Jr({in:p,timeout:g},b,{children:dc.jsx(HA,Jr({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:Vs(y.root,l,null==x?void 0:x.className),ownerState:Jr({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var VA=WA;var YA=$s("MuiBox",["root"]);const UA=Rx(),KA=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Tl("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ty);return x.forwardRef((function(e,a){const l=sy(n),s=dy(e),{className:u,component:c="div"}=s,d=oo(s,fy);return dc.jsx(i,Jr({as:c,ref:a,className:Vs(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:ev,defaultTheme:UA,defaultClassName:YA.root,generateClassName:Fs.generate});var XA=KA;function JA(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function ZA(e){return parseInt(gs(e).getComputedStyle(e).paddingRight,10)||0}function QA(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.indexOf(e),n=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&JA(e,o)}))}function eI(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function tI(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=ms(e);return t.body===e?gs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Ts(ms(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${ZA(r)+e}px`;const t=ms(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${ZA(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=ms(r).body;else{const t=r.parentElement,n=gs(r);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===n.getComputedStyle(t).overflowY?t:r}n.push({value:e.style.overflow,property:"overflow",el:e},{value:e.style.overflowX,property:"overflow-x",el:e},{value:e.style.overflowY,property:"overflow-y",el:e}),e.style.overflow="hidden"}return()=>{n.forEach((({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)}))}}const nI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function rI(e){const t=[],n=[];return Array.from(e.querySelectorAll(nI)).forEach(((e,r)=>{const o=function(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?"true"===e.contentEditable||("AUDIO"===e.nodeName||"VIDEO"===e.nodeName||"DETAILS"===e.nodeName)&&null===e.getAttribute("tabindex")?0:e.tabIndex:t}(e);-1!==o&&function(e){return!(e.disabled||"INPUT"===e.tagName&&"hidden"===e.type||function(e){if("INPUT"!==e.tagName||"radio"!==e.type)return!1;if(!e.name)return!1;const t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}(e))}(e)&&(0===o?t.push(e):n.push({documentOrder:r,tabIndex:o,node:e}))})),n.sort(((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex)).map((e=>e.node)).concat(t)}function oI(){return!0}function iI(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=rI,isEnabled:a=oI,open:l}=e,s=x.useRef(!1),u=x.useRef(null),c=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=xs(t.ref,h),g=x.useRef(null);x.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current);return h.current.contains(e.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),x.useEffect((()=>{if(!l||!h.current)return;const e=ms(h.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(h.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.key)),t=n[0],r=n[n.length-1];"string"!=typeof t&&"string"!=typeof r&&(e?r.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return dc.jsxs(x.Fragment,{children:[dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),dc.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const aI=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let n=this.modals.indexOf(e);if(-1!==n)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&JA(e.modalRef,!1);const r=function(e){const t=[];return[].forEach.call(e.children,(e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)})),t}(t);QA(t,e.mount,e.modalRef,r,!0);const o=eI(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=eI(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=tI(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=eI(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&JA(e.modalRef,t),QA(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&JA(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function lI(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=aI,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=xs(h,d),[g,b]=x.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),E=()=>{o.mount(S(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},C=ys((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||ms(f.current).body;o.add(S(),e),h.current&&E()})),w=x.useCallback((()=>o.isTopModal(S())),[o]),R=ys((e=>{f.current=e,e&&(c&&w()?E():h.current&&JA(h.current,y))})),L=x.useCallback((()=>{o.remove(S(),y)}),[y,o]);x.useEffect((()=>()=>{L()}),[L]),x.useEffect((()=>{c?C():v&&i||L()}),[c,L,v,i,C]);const A=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},I=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Ys(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=Jr({},n,t);return Jr({role:"presentation"},r,{onKeyDown:A(r),ref:m})},getBackdropProps:(e={})=>Jr({"aria-hidden":!0},e,{onClick:I(e),open:c}),getTransitionProps:()=>({onEnter:fs((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:fs((()=>{b(!0),l&&l(),i&&L()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:R,isTopModal:w,exited:g,hasTransition:v}}function sI(e){return js("MuiModal",e)}$s("MuiModal",["root","hidden","backdrop"]);const uI=["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"],cI=oS("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>Jr({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),dI=oS(VA,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pI=x.forwardRef((function(e,t){var n,r,o,i,a,l;const s=dA({name:"MuiModal",props:e}),{BackdropComponent:u=dI,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:E=!1,disableRestoreFocus:C=!1,disableScrollLock:w=!1,hideBackdrop:R=!1,keepMounted:L=!1,onBackdropClick:A,open:I,slotProps:M,slots:D}=s,P=oo(s,uI),_=Jr({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:E,disableRestoreFocus:C,disableScrollLock:w,hideBackdrop:R,keepMounted:L}),{getRootProps:O,getBackdropProps:T,getTransitionProps:k,portalRef:q,isTopModal:N,exited:F,hasTransition:z}=lI(Jr({},_,{rootRef:t})),j=Jr({},_,{exited:F}),$=(e=>{const{open:t,exited:n,classes:r}=e;return qs({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},sI,r)})(j),G={};if(void 0===f.props.tabIndex&&(G.tabIndex="-1"),z){const{onEnter:e,onExited:t}=k();G.onEnter=e,G.onExited=t}const B=null!=(n=null!=(r=null==D?void 0:D.root)?r:g.Root)?n:cI,H=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==M?void 0:M.root)?a:b.root,V=null!=(l=null==M?void 0:M.backdrop)?l:b.backdrop,Y=Xs({elementType:B,externalSlotProps:W,externalForwardedProps:P,getSlotProps:O,additionalProps:{ref:t,as:m},ownerState:j,className:Vs(d,null==W?void 0:W.className,null==$?void 0:$.root,!j.open&&j.exited&&(null==$?void 0:$.hidden))}),U=Xs({elementType:H,externalSlotProps:V,additionalProps:c,getSlotProps:e=>T(Jr({},e,{onClick:t=>{A&&A(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Vs(null==V?void 0:V.className,null==c?void 0:c.className,null==$?void 0:$.backdrop),ownerState:j});return L||I||z&&!F?dc.jsx(NA,{ref:q,container:h,disablePortal:E,children:dc.jsxs(B,Jr({},Y,{children:[!R&&u?dc.jsx(H,Jr({},U)):null,dc.jsx(iI,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:N,open:I,children:x.cloneElement(f,G)})]}))}):null}));var fI=pI;var hI=$s("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const mI=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gI(e){return`scale(${e}, ${e**2})`}const bI={entering:{opacity:1,transform:gI(1)},entered:{opacity:1,transform:"none"}},vI="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),yI=x.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=hp}=e,g=oo(e,mI),b=ws(),v=x.useRef(),y=Ax(),S=x.useRef(null),E=xs(S,o.ref,t),C=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},w=C(u),R=C(((e,t)=>{pA(e);const{duration:n,delay:r,easing:o}=fA({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:vI?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),L=C(s),A=C(p),I=C((e=>{const{duration:t,delay:n,easing:r}=fA({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:vI?o:.666*o,delay:vI?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=gI(.75),c&&c(e)})),M=C(d);return dc.jsx(m,Jr({appear:r,in:a,nodeRef:S,onEnter:R,onEntered:L,onEntering:w,onExit:I,onExited:M,onExiting:A,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),n&&n(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,Jr({style:Jr({opacity:0,transform:gI(.75),visibility:"exited"!==e||a?void 0:"hidden"},bI[e],f,o.props.style),ref:E},t))}))}));yI.muiSupportAuto=!0;var xI=yI;var SI=x.createContext({});function EI(e){return js("MuiList",e)}$s("MuiList",["root","padding","dense","subheader"]);const CI=["children","className","component","dense","disablePadding","subheader"],wI=oS("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>Jr({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var RI=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=oo(n,CI),c=x.useMemo((()=>({dense:a})),[a]),d=Jr({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return qs({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},EI,t)})(d);return dc.jsx(SI.Provider,{value:c,children:dc.jsxs(wI,Jr({as:i,className:Vs(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var LI=$s("MuiListItemIcon",["root","alignItemsFlexStart"]);var AI=$s("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const II=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function MI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function DI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function PI(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function _I(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&PI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var OI=x.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=oo(e,II),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vs((()=>{r&&p.current.focus()}),[r]),x.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Ts(ms(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=xs(p,t);let m=-1;x.Children.forEach(i,((e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))}));const g=x.Children.map(i,((e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),x.cloneElement(e,t)}return e}));return dc.jsx(RI,Jr({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=ms(t).activeElement;if("ArrowDown"===n)e.preventDefault(),_I(t,r,s,l,MI);else if("ArrowUp"===n)e.preventDefault(),_I(t,r,s,l,DI);else if("Home"===n)e.preventDefault(),_I(t,null,s,l,MI);else if("End"===n)e.preventDefault(),_I(t,null,s,l,DI);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&PI(r,o);o.previousKeyMatched&&(s||_I(t,r,!1,l,MI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function TI(e){return js("MuiPopover",e)}$s("MuiPopover",["root","paper"]);const kI=["onEntering"],qI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],NI=["slotProps"];function FI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function zI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function jI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function $I(e){return"function"==typeof e?e():e}const GI=oS(fI,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BI=oS(bA,{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});var HI=x.forwardRef((function(e,t){var n,r,o;const i=dA({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:E=xI,transitionDuration:C="auto",TransitionProps:{onEntering:w}={},disableScrollLock:R=!1}=i,L=oo(i.TransitionProps,kI),A=oo(i,qI),I=null!=(n=null==y?void 0:y.paper)?n:b,M=x.useRef(),D=xs(M,I.ref),P=Jr({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:I,transformOrigin:S,TransitionComponent:E,transitionDuration:C,TransitionProps:L}),_=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"]},TI,t)})(P),O=x.useCallback((()=>{if("anchorPosition"===c)return u;const e=$I(l),t=(e&&1===e.nodeType?e:ms(M.current).body).getBoundingClientRect();return{top:t.top+FI(t,s.vertical),left:t.left+zI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=x.useCallback((e=>({vertical:FI(e,S.vertical),horizontal:zI(e,S.horizontal)})),[S.horizontal,S.vertical]),k=x.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:jI(n)};const r=O();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=gs($I(l)),d=u.innerHeight-m,p=u.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,n.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:jI(n)}}),[l,c,O,T,m]),[q,N]=x.useState(g),F=x.useCallback((()=>{const e=M.current;if(!e)return;const t=k(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[k]);x.useEffect((()=>(R&&window.addEventListener("scroll",F),()=>window.removeEventListener("scroll",F))),[l,R,F]);x.useEffect((()=>{g&&F()})),x.useImperativeHandle(a,(()=>g?{updatePosition:()=>{F()}}:null),[g,F]),x.useEffect((()=>{if(!g)return;const e=hs((()=>{F()})),t=gs(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,F]);let z=C;"auto"!==C||E.muiSupportAuto||(z=void 0);const j=f||(l?ms($I(l)).body:void 0),$=null!=(r=null==v?void 0:v.root)?r:GI,G=null!=(o=null==v?void 0:v.paper)?o:BI,B=Xs({elementType:G,externalSlotProps:Jr({},I,{style:q?I.style:Jr({},I.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:P,className:Vs(_.paper,null==I?void 0:I.className)}),H=Xs({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:A,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:j,open:g},ownerState:P,className:Vs(_.root,p)}),{slotProps:W}=H,V=oo(H,NI);return dc.jsx($,Jr({},V,!Hs($)&&{slotProps:W,disableScrollLock:R},{children:dc.jsx(E,Jr({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),F()},onExited:()=>{N(!1)},timeout:z},L,{children:dc.jsx(G,Jr({},B,{children:d}))}))}))}));function WI(e){return js("MuiMenu",e)}$s("MuiMenu",["root","paper","list"]);const VI=["onEntering"],YI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],UI={vertical:"top",horizontal:"right"},KI={vertical:"top",horizontal:"left"},XI=oS(HI,{shouldForwardProp:e=>rS(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JI=oS(BI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),ZI=oS(OI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var QI=x.forwardRef((function(e,t){var n,r;const o=dA({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=oo(o.TransitionProps,VI),S=oo(o,YI),E=(()=>{const e=x.useContext(Sy);return null!=e&&e})(),C=Jr({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return qs({root:["root"],paper:["paper"],list:["list"]},WI,t)})(C),R=i&&!s&&d,L=x.useRef(null);let A=-1;x.Children.map(a,((e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const I=null!=(n=b.paper)?n:JI,M=null!=(r=v.paper)?r:p,D=Xs({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[w.root,l]}),P=Xs({elementType:I,externalSlotProps:M,ownerState:C,className:w.paper});return dc.jsx(XI,Jr({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?UI:KI,slots:{paper:I,root:b.root},slotProps:{root:D,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:Jr({onEntering:(e,t)=>{L.current&&L.current.adjustStyleForScrollbar(e,{direction:E?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:dc.jsx(ZI,Jr({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:L,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:Vs(w.list,u.className),children:a}))}))}));function eM(e){return js("MuiMenuItem",e)}var tM=$s("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const nM=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],rM=oS(qA,{shouldForwardProp:e=>rS(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>Jr({},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"}},[`&.${tM.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:ky(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${tM.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ky(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${tM.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ky(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})`:ky(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${tM.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${tM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${hI.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${hI.inset}`]:{marginLeft:52},[`& .${AI.root}`]:{marginTop:0,marginBottom:0},[`& .${AI.inset}`]:{paddingLeft:36},[`& .${LI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Jr({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${LI.root} svg`]:{fontSize:"1.25rem"}}))));var oM=x.forwardRef((function(e,t){const n=dA({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=oo(n,nM),f=x.useContext(SI),h=x.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=x.useRef(null);vs((()=>{r&&m.current&&m.current.focus()}),[r]);const g=Jr({},n,{dense:h.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return Jr({},a,qs({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},eM,a))})(n),v=xs(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),dc.jsx(SI.Provider,{value:h,children:dc.jsx(rM,Jr({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:Vs(b.focusVisible,s),className:Vs(b.root,d)},p,{ownerState:g,classes:b}))})}));const iM=oS(XA,{shouldForwardProp:e=>!["interactions","hoverBackground","background","shouldShowMenuIcon","isDimension"].includes(e)})((({interactions:e,background:t,hoverBackground:n,shouldShowMenuIcon:r,isDimension:o})=>({pointerEvents:o?"all":"none",position:"relative",display:"grid",gridTemplateColumns:r?"1fr 12px":"1fr",gap:8,alignItems:"center",cursor:e.active?"pointer":"default",background:t,"&&:hover":{background:e.active&&o?n:t}}))),aM=oS("div")({position:"absolute",left:0,bottom:0}),lM=oS("div",{shouldForwardProp:e=>"justifyContent"!==e})((({justifyContent:e})=>({...Or,justifyContent:null!=e?e:Or.justifyContent,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}))),sM=oS("div")((()=>({...Or}))),uM=oS("div",{shouldForwardProp:e=>!["fontSize","fontFamily","fontWeight","fontStyle","textDecoration","justifyContent"].includes(e)})((({fontSize:e,fontFamily:t,fontWeight:n,fontStyle:r,textDecoration:o,justifyContent:i})=>({display:"flex",justifyContent:i,alignSelf:"center",flexGrow:1,maxWidth:"100%",fontWeight:n,fontSize:e,fontFamily:t,fontStyle:r,textDecoration:o}))),cM=oS(QI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),dM=oS(oM,{shouldForwardProp:e=>!["isActive"].includes(e)})((({theme:e,isActive:t})=>({width:220,maxHeight:32,borderRadius:`${e.spacing(.5)}`,margin:`${e.spacing(.25,.5)}`,padding:`${e.spacing(1,1.5)}`,display:"flex",justifyContent:"space-between",position:"relative",overflow:"hidden ",boxSizing:"border-box",background:""+(t?"rgba(0, 0, 0, 0.05)":"transparent"),"&:hover":{".indent-mode-dropdown-more":{opacity:1}}}))),pM=oS("span")({textOverflow:"ellipsis",overflow:"hidden"}),fM=oS("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:oC,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),hM={[dE.SORTING]:!0,[dE.SELECTIONS]:!0,[dE.SEARCHING]:!0},mM=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,iconsVisibilityStatus:s,columnWidth:u,overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:p,tableWidth:f})=>{var h;const m=M(null),g=tC(),{app:b,model:v,interactions:y,embed:x,env:{flags:S}}=JE(),{fontSize:E,fontFamily:C,fontStyle:w,fontWeight:R,textDecoration:L,color:A,background:I,hoverBackground:D,activeBackground:P}=g.header,_=M(null),{shouldShowLockIcon:O,shouldShowMenuIcon:T}=s,{open:k,setOpen:q,handleOpenMenu:N,setIsAdjustingWidth:F}=sA({interactions:y,dataModel:e}),z={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)}},j={embed:x,listboxRef:m,sortCriteria:d.searchSortFromDimension&&t.isDim?d.getSortCriteriaForDimension(t.dimensionInfoIndex):void 0},$={model:v,app:b},{labelTextAlign:G}=null!==(h=d.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==h?h:{},B=$L(G,"flex-start",S);return dc.jsxs(iM,{className:kt,title:t.label,interactions:y,background:k?P:I,hoverBackground:D,shouldShowMenuIcon:T,isDimension:t.isDim,style:{...n,...kr,...jr(t,i,r,o,g.grid.border),color:A},"data-testid":"title-cell",onClick:N,children:[dc.jsxs(lM,{children:[O&&dc.jsx(sM,{children:dc.jsx(aA,{height:12})}),dc.jsx(uM,{fontFamily:C,fontSize:E,fontStyle:w,fontWeight:R,textDecoration:L,justifyContent:B,children:dc.jsx("span",{style:qr,children:t.label})})]}),t.isDim&&dc.jsxs(dc.Fragment,{children:[dc.jsx(fE,{headerData:t,translator:a,anchorRef:_,open:k,setOpen:q,interactions:y,menuAvailabilityFlags:hM,sortRelatedArgs:z,searchRelatedArgs:j,selectionRelatedArgs:$,shouldShowMenuIcon:T}),dc.jsx(aM,{ref:m}),dc.jsx(aM,{ref:_})]}),dc.jsx(cA,{cellInfo:{...t,isLeftColumn:!0},columnWidth:u,dataModel:e,isLastColumn:o,overrideLeftGridWidth:c,setIsAdjustingWidth:F,shouldApplyIndentModeColumnWidth:p,tableWidth:f})]})},gM=({rowSpan:e,columnSpan:t})=>{const n=tC();return e>0&&t>0?dc.jsx("div",{style:{...Tr,gridRowStart:1,gridRowEnd:`span ${e}`,gridColumnStart:1,gridColumnEnd:`span ${t}`,borderWidth:"0px 1px 0px 0px",borderColor:n.grid.border,background:n.grid.background},"data-testid":"empty-header-cell"}):null};function bM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const vM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){bM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),yM=D(vM);function xM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const SM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){xM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),S.createElement("use",{fillRule:"evenodd"})),EM=D(SM),CM=({dataModel:e,tableWidth:t,leftGridWidth:n,overrideLeftGridWidth:r})=>{const o=tC(),{interactions:i}=JE(),{isActive:a}=SL(),{setIsAdjustingWidth:l}=lA([e]);if(!(!!i.active&&!a))return null;const s=uA(o,{isLeftColumn:!0});return dc.jsx(cS,{isPivot:!0,isLastColumn:!0,isLeftColumn:!0,keyValue:"adjuster-indent-row",hoverColor:s,columnWidth:n,updateWidthCallback:e=>{r(Math.min(e,t*lC))},confirmWidthCallback:o=>{var i;if(o.type===jt.FitToContent)return void e.applyIndentModeColumnWidth({type:jt.Auto});const a=Math.min(null!==(i=o.pixels)&&void 0!==i?i:n,t*lC);r(a),e.applyIndentModeColumnWidth({type:jt.Pixels,pixels:a})},setIsAdjustingWidth:l})};function wM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const RM=(e,t)=>S.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){wM(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),S.createElement("path",{d:"M3 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0m6 0a1 1 0 1 1-2 0 1 1 0 0 1 2 0m5 1a1 1 0 1 0 0-2 1 1 0 0 0 0 2"})),LM=D(RM),AM=({cell:e,translator:t,dataModel:n,changeSortOrder:r})=>{const o=M(null),i=M(null),{app:a,model:l,interactions:s,embed:u}=JE(),{open:c,setOpen:d,handleOpenMenu:p}=sA({interactions:s,dataModel:n});return dc.jsxs(dM,{component:"div",onClick:p,isActive:c,children:[dc.jsx(pM,{children:e.label}),dc.jsxs(fM,{className:"indent-mode-dropdown-more",visible:c,children:[dc.jsx(LM,{}),e.isDim&&dc.jsxs(dc.Fragment,{children:[dc.jsx(fE,{headerData:e,translator:t,anchorRef:o,open:c,setOpen:d,interactions:s,menuAvailabilityFlags:hM,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)}},searchRelatedArgs:{embed:u,listboxRef:i},selectionRelatedArgs:{model:l,app:a},shouldShowMenuIcon:!1}),dc.jsx(aM,{ref:i}),dc.jsx(aM,{ref:o})]})]})]})},IM=({idx:e,menu:t,menuItems:n,isOnlyOneRow:r})=>{var o,i;const a=(null===(o=n.at(-1))||void 0===o?void 0:o.id)===dC,l=e+1<n.length&&(null===(i=n[e+1])||void 0===i?void 0:i.id)===dC;return!(r&&a&&l)&&((null==t?void 0:t.id)!==dC&&e<n.length-1)},MM=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,overrideLeftGridWidth:i,leftGridWidth:a,tableWidth:l})=>{const s=tC(),{interactions:u}=JE(),[c,d]=I(!1),p=M(null),{headerCellHeight:f}=s,{color:h,background:m,hoverBackground:g,activeBackground:b,fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E}=s.header,{isAdjustingWidth:C}=lA([n]),w=e=>e.stopPropagation(),R={height:f,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return dc.jsxs(iM,{isDimension:!0,background:c?b:m,interactions:u,hoverBackground:g,style:{...R,...kr,color:h},onClick:e=>u.active&&!vL(e)&&!C&&d(!c),"data-testid":"indentModeHeaderCellWrapper",children:[dc.jsxs(lM,{justifyContent:"flex-start",children:[dc.jsx(uM,{fontFamily:v,fontSize:y,fontStyle:x,fontWeight:S,textDecoration:E,justifyContent:"flex-start",children:dc.jsx("span",{style:qr,children:r.get("SNPivotTable.IndentMode.Rows")})}),c?dc.jsx(EM,{}):dc.jsx(yM,{}),dc.jsx(aM,{ref:p})]}),dc.jsx(cM,{open:c,anchorEl:p.current,children:t.map(((i,a)=>[i&&(null==i?void 0:i.id)!==dC&&dc.jsx("li",{role:"presentation",onClick:w,onKeyDown:w,children:dc.jsx(AM,{cell:i,translator:r,dataModel:n,changeSortOrder:o})}),IM({idx:a,menu:i,menuItems:t,isOnlyOneRow:1===e.size.y})&&dc.jsx(vS,{"data-testid":"group-divider",variant:"middle"},"divider")]))}),dc.jsx(CM,{dataModel:n,tableWidth:l,leftGridWidth:a,overrideLeftGridWidth:i})]})},DM={display:"grid",width:"fit-content"},PM=({dataModel:e,tableWidth:t,leftGridWidth:n,columnWidths:r,rowHight:o,headersData:i,translator:a,changeSortOrder:l,getHeaderCellsIconsVisibilityStatus:s,height:u,overrideLeftGridWidth:c,layoutService:d})=>dc.jsxs("div",{style:{...DM,gridTemplateColumns:r.map((e=>`${e}px`)).join(" "),gridTemplateRows:i.data.map((()=>`${o}px`)).join(" "),height:u},children:[i.size.y>1&&dc.jsx(gM,{columnSpan:i.size.x-1,rowSpan:i.size.y-1}),i.data.map(((u,p)=>{let f=[];if(d.isIndentModeEnabled&&i.size.x>1&&p+1===i.size.y){const r=i.data.at(-1);return f.push(dc.jsx(MM,{headersData:i,menuItems:r[0],dataModel:e,translator:a,changeSortOrder:l,overrideLeftGridWidth:c,leftGridWidth:n,tableWidth:t},r[0][0].id)),f}return f=u.reduce(((n,u,f)=>{if(u){const h=s(f,u.isLocked,u.label),m=d.isIndentModeEnabled&&1===i.size.x;n.push(dc.jsx(mM,{dataModel:e,style:{width:r[f],height:o,gridColumn:d.isIndentModeEnabled&&i.size.x>1?2:f+1,gridRow:p+1,zIndex:i.size.x-f},isLastRow:p===i.size.y-1,isFirstColumn:0===f,isLastColumn:f===i.size.x-1,translator:a,changeSortOrder:l,cell:u,iconsVisibilityStatus:h,columnWidth:r[f],overrideLeftGridWidth:c,layoutService:d,shouldApplyIndentModeColumnWidth:m,tableWidth:t},u.id))}return n}),[]),f}))]});var _M=T(PM);const OM=(e,t,n,r,o)=>{k((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!0)))}),[e,t,n,r,o])},TM=(e,t)=>{Ub((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},kM=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===xt.Image)return null!==(a=null===(l=e.representation.resolvedImagePosition)||void 0===l?void 0:l.horizontal)&&void 0!==a?a:i;if(e.isPseudoDimension&&void 0!==e.visibleMeasureInfoIndex){var s;const{labelTextAlign:n}=null!==(s=t.visibleMeasureInfo[e.visibleMeasureInfoIndex])&&void 0!==s?s:{};return $L(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return $L(u,i,r)},qM=()=>{},NM=({children:e,text:t,reactWindowStyle:n,cell:r,data:o,showTotalCellDivider:i,isLastRow:a,isLastColumn:l,isLeftColumn:s,isCellSelected:u,isAdjustingWidth:c})=>{var d;const p=tC(),{interactions:f,env:{flags:h}}=JE(),{select:m,isLocked:g}=SL(),{layoutService:b,showLastBorder:v}=o,y=g(r)||r.isLockedByDimension,x=!(y||!f.active||!f.select||r.isEmpty||r.isNull||r.isPseudoDimension||r.isTotal||c),S=x?m(r):void 0;return dc.jsx("div",{className:kt,title:f.passive?t:void 0,style:{...n,...zr(a,l,p.grid.border,v),...$r({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...kr,padding:"0px 4px",cursor:PL(x),background:LL({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:b.size.x-r.x,justifyContent:kM(r,b,s,h),display:"flex",...b.isIndentModeEnabled&&s&&{paddingLeft:Math.max(4,24*(null!==(d=r.indentLevel)&&void 0!==d?d:0))}},"aria-hidden":"true",onClick:S,onKeyUp:qM,role:"button",tabIndex:-1,"data-testid":"dimension-cell","data-x":r.x,"data-page-x":r.pageX,"data-y":r.y,"data-page-y":r.pageY,"data-cell-type":r.ref.qType,children:e})},FM=e=>e.stopPropagation(),zM=({href:e,text:t,interactions:n,color:r})=>S.createElement(Jh,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:FM,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),jM=({children:e,textStyle:t})=>dc.jsx("span",{style:{...t,border:"4px solid transparent",boxSizing:"border-box"},children:e}),$M=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=SL(),{interactions:i}=JE();let a=e.representation.text;if(e.isEmpty)return null;const l=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...qr,...Nr(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:AL({cell:e,styleService:t,isCellSelected:n}),fontWeight:IL({cell:e,styleService:t}),fontStyle:ML({cell:e,styleService:t}),textDecoration:DL({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type!==xt.Image||e.isTotal?(e.representation.type!==xt.Link||o||e.isTotal||(a=dc.jsx(zM,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),dc.jsx(jM,{textStyle:l,children:a})):dc.jsx(jL,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:l,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand})},GM=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==xt.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},BM=({index:e,style:t,data:n})=>{const r=tC(),{isSelected:o}=SL(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=lA([n]),{dataModel:l,isLeftColumn:s=!1,showLastBorder:u,itemCount:c,isLast:d,totalDividerIndex:p,layoutService:f}=n,h=((e,t)=>{const{isLast:n,list:r,listValues:o}=t;return n?r[e]:o[e]})(e,n),m=s?e===c-1:d,g=s?d:e===c-1,b=YR(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return dc.jsx(sL,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:b})}const v=o(h);return dc.jsxs(NM,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:v,showTotalCellDivider:b,cell:h,data:n,isAdjustingWidth:i,children:[dc.jsxs(uL,{verticalAlign:GM(h),width:cL(h.representation),right:h.isLeftColumn?void 0:4,children:[dc.jsx(TL,{isLeftColumn:s,isCellSelected:v,cell:h,dataModel:l}),dc.jsx($M,{isLeftColumn:s,isCellSelected:v,cell:h,styleService:r})]}),dc.jsx(cA,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?Mt.Measures:Mt.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var HM=S.memo(BM,VR);const WM=({list:e,listValues:t,isLastRow:n,getRightGridColumnWidth:r})=>o=>{var i;const a=n?e[o]:t[o];return 0===o&&(null==a?void 0:a.x)>0?(a.leafCount+a.x+a.distanceToNextCell)*r():n||void 0===a?r(null!==(i=null==a?void 0:a.x)&&void 0!==i?i:o):(a.leafCount+a.distanceToNextCell)*r()},VM=(e,t,n,r)=>{const o=Object.values(e);let i,a=o.length;return r&&(a=n,i=t/a),{itemCount:a,estimatedItemSize:i,listValues:o}},YM=(e,t)=>n=>{e.current&&(e.current[t]=n)},UM={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Tr},KM={overflow:"hidden",willChange:"auto",flexShrink:0},XM=({dataModel:e,leftGridRef:t,width:n,columnWidths:r,height:o,layoutService:i,leftDimensionData:a,showLastBorder:l,visibleLeftDimensionInfo:s,pageInfo:u})=>{const{qSize:c}=i.layout.qHyperCube,{contentCellHeight:d,grid:{divider:p}}=tC();TM(t,a),OM(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return dc.jsx("div",{style:{...UM,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=_C(s[p]),{itemCount:g,estimatedItemSize:b,listValues:v}=VM(n,f,u.rowsOnCurrentPage,h),y=i.isIndentModeEnabled?()=>d:((e,t,n,r,o)=>i=>{const a=r?e[i]:t[i];if(0===i&&(null==a?void 0:a.pageY)>0)return(a.leafCount+a.pageY+a.distanceToNextCell)*n;if((null==a?void 0:a.leafCount)>0){const e=a.y===o-a.leafCount;return(a.leafCount-(e?a.ref.qUp:0)+a.distanceToNextCell)*n}return n})(n,v,d,h,c.qcy);return dc.jsx(GR,{ref:YM(t,p),style:{...KM,flexGrow:h?1:0},height:o,width:r[p],itemCount:g,itemSize:y,layout:"vertical",itemData:{layoutService:i,dataModel:e,list:n,isLeftColumn:!0,isLast:h,itemCount:g,showLastBorder:l,listValues:v,totalDividerIndex:a.totalDividerIndex},itemKey:QL,estimatedItemSize:b,children:HM},m)}))})};var JM=T(XM);const ZM={overflow:"hidden",willChange:"auto"},QM={...Tr,borderWidth:"0px 0px 0px 1px"},eD=({dataModel:e,topGridRef:t,rowHightCallback:n,width:r,height:o,layoutService:i,topDimensionData:a,showLastBorder:l,getRightGridColumnWidth:s,headersData:u})=>{const{grid:{divider:c},headerCellHeight:d}=tC(),p={...QM,borderColor:c,height:o};TM(t,a),OM(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?dc.jsx("div",{style:{width:r,height:o,...QM}}):dc.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=VM(o,f,i.size.x,d),g=(({layoutService:e,headersData:t,topRowIndex:n})=>{var r;const o=t.data[n],i=t.size.x-1,a=e.isIndentModeEnabled&&t.size.x>1&&n+1===t.size.y?null===(r=o[0][i])||void 0===r?void 0:r.dimensionInfoIndex:null==o?void 0:o[i].dimensionInfoIndex;return void 0!==a?e.getDimensionInfo(a):void 0})({layoutService:i,headersData:u,topRowIndex:c}),b=g?_C(g):`empty ${c}`;return dc.jsx(GR,{ref:YM(t,c),style:ZM,height:n(),width:r,itemCount:p,itemSize:WM({list:o,listValues:m,isLastRow:d,getRightGridColumnWidth:s}),layout:"horizontal",itemData:{layoutService:i,dataModel:e,list:o,isLast:d,itemCount:p,showLastBorder:l,listValues:m,totalDividerIndex:a.totalDividerIndex},itemKey:QL,estimatedItemSize:h,children:HM},b)}))})};var tD=T(eD);const nD=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=tC(),u=((e,t,n)=>A((()=>{let{height:r}=e;return t.hasLimitedData&&(r-=22),n&&(r-=41),{...e,height:r}}),[e,t,n]))(t,r,i.shouldShowPagination),{visibleLeftDimensionInfo:c,visibleTopDimensionInfo:d}=((e,t)=>{const{qHyperCube:n}=e.layout,{qNoOfLeftDims:r,qEffectiveInterColumnSortOrder:o,qDimensionInfo:i}=n;return A((()=>{var e,n,a,l;const s=rR(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=rR(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(nR(i,o,0)),visibleTopDimensionInfo:u.map(nR(i,o,r))}}),[i,o,r,t])})(r,o),p=(e=>{const t=P((async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o,sortDirection:i}=t,a=[];if(n===i)return!1;a.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(a,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}),[e]);return t})(e),{headersData:f,measureData:h,topDimensionData:m,leftDimensionData:g,attrExprInfoIndexes:b,nextPageHandler:v}=Xw(o,r,i,c,d),y=eR({model:e,nextPageHandler:v,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:x,onVerticalScrollHandler:S,verticalScrollableContainerRef:E,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:w,dataGridRef:R,leftGridRef:L,topGridRef:D,verticalScrollbarWidth:O,horizontalScrollbarHeight:T,horizontalScrollbarHeightSetter:q,verticalScrollDirection:N,horizontalScrollDirection:F}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,downloadService:p}=JE(),f=M(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=M(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=M(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=M(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),b=M(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),v=M(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=M(0),x=M(0),S=M(_t.None),E=M(_t.None),[C,w]=I(0),[R,L]=I(0),A=e=>{E.current=tR(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=tR(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};k((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),k((()=>{if(e.triggerdByExpandOrCollapse){var t,n,r,o,i,a;const e=null!==(t=null===(n=m.current)||void 0===n?void 0:n.scrollLeft)&&void 0!==t?t:0,l=null!==(r=null===(o=f.current)||void 0===o?void 0:o.scrollTop)&&void 0!==r?r:0;null===(i=b.current)||void 0===i||i.forEach((e=>null==e?void 0:e.scrollTo(l))),null===(a=g.current)||void 0===a||a.forEach((t=>null==t?void 0:t.scrollTo(e)))}}),[e]),k((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const D=P((e=>{if(e)return void L(0);let t=0;if(h.current){const e=h.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}if(m.current){const e=m.current;t=Math.max(t,e.offsetHeight-e.clientHeight)}L(t)}),[L]);return k((()=>{if(f.current){const e=f.current,t=e.offsetWidth-e.clientWidth;w(t)}D()}),[D,e,t,r.width,r.height,d,p]),k((()=>{(p.isDownloadedAsPDForImage||e.isSnapshot)&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft)}),[t,f,m,h,p,e]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Pt.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Pt.DATA_GRID}`&&(A(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=v.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(A(e),null===(n=b.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=v.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:v,leftGridRef:b,topGridRef:g,verticalScrollbarWidth:C,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:D,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:z,headerGridHeight:j,topGridHeight:$,leftGridHeight:G,dataGridHeight:B,allRowsVisible:H}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=tC(),l=e.rowsOnCurrentPage*a,s=i*t.size.y,u=l+s,c=i*Math.max(t.size.y,n.rowCount,1);return{containerHeight:u,headerGridHeight:s,topGridHeight:c,leftGridHeight:Math.min(r.height-s-Dr,l),dataGridHeight:Math.min(r.height-c-Dr,l),allRowsVisible:c+Dr+l+o<=r.height}}({pageInfo:i,headersData:f,topDimensionData:m,tableRect:u,horizontalScrollbarHeight:T}),{leftGridWidth:W,leftGridColumnWidths:V,rightGridWidth:Y,totalWidth:U,showLastRightBorder:K,getRightGridColumnWidth:X,getHeaderCellsIconsVisibilityStatus:J,overrideLeftGridWidth:Z}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i,translator:a}){const l=tC(),{measureText:s}=Wb(l.header),u=CC({layoutService:e,tableWidth:t,headersData:n,translator:a}),c=wC({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:u.leftGridWidth}),d=u.leftGridWidth+c.rightGridFullWidth+Dr,p=d<t,f=P(((t,r,o="")=>{let i=t;e.isIndentModeEnabled&&(i=1,1===n.size.x&&(i=0));const a=u.leftGridColumnWidths[i];let l=!1,c=!1,d=s(o)+aC;return r&&d+iC<=a&&(c=!0,d+=iC),d+oC<=a&&(l=!0),{shouldShowMenuIcon:l,shouldShowLockIcon:c}}),[u.leftGridColumnWidths,s,e.isIndentModeEnabled,n.size.x]);return _((()=>{const e=u.leftGridWidth===u.leftGridFullWidth,t=c.rightGridWidth===c.rightGridFullWidth;i(e&&t)}),[i,u.leftGridWidth,u.leftGridFullWidth,c.rightGridWidth,c.rightGridFullWidth]),{...u,...c,totalWidth:d,showLastRightBorder:p,getHeaderCellsIconsVisibilityStatus:f}}({layoutService:r,tableWidth:u.width,headersData:f,visibleTopDimensionInfo:d,verticalScrollbarWidth:O,horizontalScrollbarHeightSetter:q,translator:a}),{rootWrapper:Q,leftWrapper:ee,rightWrapper:te}=(({tableRect:e,containerHeight:t,headerGridHeight:n,leftGridHeight:r,topGridHeight:o,dataGridHeight:i,allRowsVisible:a,totalWidth:l,leftGridWidth:s,rightGridWidth:u,verticalScrollbarWidth:c,horizontalScrollbarHeight:d})=>{const p=o+i+Dr,f=a?0:Math.max(0,e.height-p),h=c*(a?0:1),m=d*(a?0:1),g=a?p+d:e.height,b=e.height-m,v=l-s-h,y=e.width-s-h;return{rootWrapper:{scrollable:e,fullSize:{width:l-h,height:t+m},sticky:{width:e.width-h,height:e.height}},leftWrapper:{containers:{scrollable:{width:s,height:g},fullSize:{width:s,height:t},sticky:{width:s,height:b}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+Dr-h,height:g},fullSize:{width:v,height:t},sticky:{width:v<y?v:y,height:b}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:z,headerGridHeight:j,leftGridHeight:G,topGridHeight:$,dataGridHeight:B,allRowsVisible:H,totalWidth:U,leftGridWidth:W,rightGridWidth:Y,verticalScrollbarWidth:O,horizontalScrollbarHeight:T}),ne=P((()=>l),[l]),re=P((()=>s),[s]);return(()=>{const{downloadService:e}=JE();_((()=>{e.isDownloadedAsPDForImage&&e.notifyIsDoneRendering()}))})(),dc.jsx(lR,{ref:E,...Q.scrollable,onScroll:S,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Pt.CONTAINER_GRID,children:dc.jsx(oR,{...Q.fullSize,children:dc.jsxs(sR,{...Q.sticky,style:{display:"grid",gridTemplateColumns:W?`${ee.containers.scrollable.width}px ${te.containers.scrollable.width}px`:`${te.containers.scrollable.width}px`},children:[Boolean(W)&&dc.jsx(lR,{ref:C,...ee.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Pt.LEFT_GRID,children:dc.jsx(oR,{isLeftGrid:!0,...ee.containers.fullSize,children:dc.jsxs(sR,{isLeftGrid:!0,...ee.containers.sticky,children:[dc.jsx(_M,{dataModel:y,tableWidth:u.width,leftGridWidth:W,columnWidths:V,getHeaderCellsIconsVisibilityStatus:J,rowHight:l,height:ee.headerGrid.height,headersData:f,translator:a,changeSortOrder:p,overrideLeftGridWidth:Z,layoutService:r}),dc.jsx(JM,{dataModel:y,leftGridRef:L,...ee.leftGrid,columnWidths:V,layoutService:r,leftDimensionData:g,showLastBorder:{right:!1,bottom:H},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),dc.jsx(lR,{ref:w,...te.containers.scrollable,onScroll:x,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Pt.DATA_GRID,children:dc.jsx(oR,{...te.containers.fullSize,children:dc.jsxs(sR,{...te.containers.sticky,children:[dc.jsx(tD,{dataModel:y,topGridRef:D,rowHightCallback:ne,...te.topGrid,layoutService:r,topDimensionData:m,showLastBorder:{right:K,bottom:!1},getRightGridColumnWidth:X,headersData:f}),dc.jsx(rA,{dataModel:y,dataGridRef:R,rowHightCallback:re,...te.dataGrid,viewService:n,layoutService:r,measureData:h,leftDimensionData:g,topDimensionData:m,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:K,bottom:H},getRightGridColumnWidth:X,pageInfo:i,verticalScrollDirection:N,horizontalScrollDirection:F})]})})})]})})})},rD=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=JE(),{layout:u,hasData:c}=t;return dc.jsxs(dc.Fragment,{children:[c&&dc.jsx(nD,{...e}),dc.jsx(QE,{translator:n,layoutService:t}),dc.jsx(KE,{paginationNeeded:r.shouldShowPagination,handleChangePage:e=>o({page:e}),pageInfo:r,totalRowCount:r.totalRowCount,totalColumnCount:0,totalPages:r.totalPages,keyboard:a,translator:n,theme:l,interactions:s,rect:i,layout:u})]})},oD={WHITE:"#FFFFFF",GREY:"#999999",GREY_PALE:"#B2B2B2",GREEN_ULTRA_LIGHT:"#F2F9F5",GREEN:"#00873D",GREEN_PALE:"#15AA51",GREEN_DARK:"#0D6932",GREEN_EXTRA_DARK:"#094923",BLUE_ULTRA_LIGHT:"#EDF7FC",BLUE:"#005DB9",BLUE_PALE:"#048DEC",BLUE_DARK:"#003A8F",BLUE_EXTRA_DARK:"#002D6D",RED_ULTRA_LIGHT:"#FEF2F6",RED:"#D7004B",RED_PALE:"#F15A81",RED_DARK:"#8B0041",RED_EXTRA_DARK:"#5C002B",ORANGE_ULTRA_LIGHT:"#FFF7EB",ORANGE:"#EF6D00",ORANGE_PALE:"#FF9800",ORANGE_DARK:"#BF3900",ORANGE_EXTRA_DARK:"#611100",PURPLE:"#655dc6",PURPLE_PALE:"#8D8BCE",PURPLE_DARK:"#413885",GREYSCALE_0:"#000000",GREYSCALE_5:"#0E0E0E",GREYSCALE_10:"#1A1A1A",GREYSCALE_15:"#262626",GREYSCALE_20:"#333333",GREYSCALE_25:"#404040",GREYSCALE_30:"#4D4D4D",GREYSCALE_35:"#595959",GREYSCALE_40:"#666666",GREYSCALE_45:"#737373",GREYSCALE_50:"#808080",GREYSCALE_55:"#8C8C8C",GREYSCALE_60:"#999999",GREYSCALE_65:"#A6A6A6",GREYSCALE_70:"#B3B3B3",GREYSCALE_75:"#BFBFBF",GREYSCALE_80:"#CCCCCC",GREYSCALE_85:"#D9D9D9",GREYSCALE_90:"#E6E6E6",GREYSCALE_95:"#F2F2F2",GREYSCALE_98:"#FAFAFA",GREYSCALE_100:"#FFFFFF",GREYSCALE_0_0:"rgba(0, 0, 0, 0)",GREYSCALE_0_03:"rgba(0, 0, 0, 0.03)",GREYSCALE_0_05:"rgba(0, 0, 0, 0.05)",GREYSCALE_0_06:"rgba(0, 0, 0, 0.06)",GREYSCALE_0_10:"rgba(0, 0, 0, 0.1)",GREYSCALE_0_15:"rgba(0, 0, 0, 0.15)",GREYSCALE_0_20:"rgba(0, 0, 0, 0.2)",GREYSCALE_0_25:"rgba(0, 0, 0, 0.25)",GREYSCALE_0_30:"rgba(0, 0, 0, 0.3)",GREYSCALE_0_42:"rgba(0, 0, 0, 0.42)",GREYSCALE_0_55:"rgba(0, 0, 0, 0.55)",GREYSCALE_0_60:"rgba(0, 0, 0, 0.6)",GREYSCALE_0_65:"rgba(0, 0, 0, 0.65)",GREYSCALE_100_05:"rgba(255, 255, 255, 0.05)",GREYSCALE_100_15:"rgba(255, 255, 255, 0.15)",GREYSCALE_100_25:"rgba(255, 255, 255, 0.25)",GREYSCALE_100_50:"rgba(255, 255, 255, 0.5)",GREYSCALE_100_60:"rgba(255, 255, 255, 0.6)",MISC_FOCUS_BORDER:"#0275D9",TEXT_PRIMARY:"#404040",TEXT_SECONDARY:"rgba(0, 0, 0, 0.55)"},iD=12,aD=14,lD=16,sD=24,uD=3,cD=300,dD=400,pD=600,fD=700,hD={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};ro(oD.GREYSCALE_0,.05),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5);var mD;function gD(){return gD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gD.apply(null,arguments)}ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5),ro(oD.GREEN_PALE,.5),ro(oD.BLUE_PALE,.5);var bD,vD=function(e){return x.createElement("svg",gD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),mD||(mD=x.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function yD(){return yD=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yD.apply(null,arguments)}var xD=function(e){return x.createElement("svg",yD({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),bD||(bD=x.createElement("path",{d:"m9.345 8 3.982 3.982a.951.951 0 0 1-1.345 1.345L8 9.345l-3.982 3.982a.951.951 0 0 1-1.345-1.345L6.655 8 2.673 4.018a.951.951 0 0 1 1.345-1.345L8 6.655l3.982-3.982a.951.951 0 1 1 1.345 1.345z"})))};function SD({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return S.createElement("i",{style:{fontSize:r,margin:o,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:n},t)}var ED=(e={})=>S.createElement(SD,{...e},S.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},S.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),S.createElement("path",{fill:"#FFFFFF",fillRule:"evenodd",d:"m12.627 6.617-4.206 4.205-1.037-1.035a1.25 1.25 0 1 0-1.768 1.767l1.92 1.919a1.25 1.25 0 0 0 1.769 0l5.09-5.089a1.25 1.25 0 1 0-1.768-1.768Z",clipRule:"evenodd"}))),CD=(e={})=>S.createElement(SD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),S.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),wD=(e={})=>S.createElement(SD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},S.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),RD=(e={})=>S.createElement(SD,{fontSize:"medium",...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},S.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),S.createElement("path",{d:"M11 8C11 9.65685 9.65685 11 8 11C6.34315 11 5 9.65685 5 8C5 6.34315 6.34315 5 8 5C9.65685 5 11 6.34315 11 8Z",stroke:"none",fill:"white"}))),LD=({className:e})=>S.createElement(SD,{fontSize:"small",className:e},S.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},S.createElement("g",{transform:"translate(4.324187, 1.300372)"},S.createElement("path",{d:"M4.06624695,13.2115849 L7.28588573,9.1870364 C7.3893886,9.05765782 7.36841219,8.8688701 7.23903361,8.76536724 C7.18583969,8.72281211 7.11974654,8.69962788 7.05162509,8.69962788 L0.3,8.69962788 C0.134314575,8.69962788 -1.25807407e-14,8.83394246 -1.26010313e-14,8.99962788 C-1.26093738e-14,9.06774933 0.0231842256,9.13384248 0.0657393572,9.1870364 L3.28537814,13.2115849 C3.45788292,13.4272158 3.7725291,13.4621765 3.98816007,13.2896718 C4.01699242,13.2666059 4.04318107,13.2404172 4.06624695,13.2115849 Z",opacity:"0.300390625"}),S.createElement("path",{d:"M4.06624695,0.187670888 L7.28588573,4.21221937 C7.3893886,4.34159795 7.36841219,4.53038566 7.23903361,4.63388852 C7.18583969,4.67644366 7.11974654,4.69962788 7.05162509,4.69962788 L0.3,4.69962788 C0.134314575,4.69962788 2.1918781e-12,4.56531331 2.19185781e-12,4.39962788 C2.19184946e-12,4.33150643 0.0231842256,4.26541328 0.0657393572,4.21221937 L3.28537814,0.187670888 C3.45788292,-0.0279600799 3.7725291,-0.0629207673 3.98816007,0.109584007 C4.01699242,0.132649888 4.04318107,0.158838536 4.06624695,0.187670888 Z"})))))),AD=(e={})=>S.createElement(SD,{...e},S.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},S.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},S.createElement("rect",{stroke:oD.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const ID={MuiAccordion:{styleOverrides:{root:{backgroundColor:oD.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:oD.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:S.createElement(vD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:16,height:16})},styleOverrides:{root:{padding:"0px 12px 0px 16px",minHeight:"auto",boxShadow:`inset 0px -1px 0px 0px ${oD.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`,borderRadius:uD,backgroundColor:oD.GREYSCALE_0_03},"&.Mui-expanded":{minHeight:"auto"}},content:{overflow:"hidden",textOverflow:"ellipsis","&.Mui-expanded":{margin:"12px 0px"}}}},MuiAppBar:{defaultProps:{elevation:0},styleOverrides:{root:{flex:"0 0 48px",boxShadow:`inset 0 -1px 0 0 ${oD.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:oD.WHITE,color:oD.TEXT_PRIMARY}}},MuiBadge:{styleOverrides:{badge:{height:"16px",minWidth:"16px",fontSize:"12px",padding:"0px 5px"},anchorOriginTopRightRectangular:{top:"-3px",right:"-3px"}}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusVisibleClassName:"sprout-focus-visible"}},MuiButtonGroup:{defaultProps:{disableRipple:!0},styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:14,borderRadius:uD},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:oD.GREYSCALE_0_15,backgroundColor:oD.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${oD.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:oD.GREEN_PALE},"&:active":{backgroundColor:oD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:oD.BLUE_PALE},"&:active":{backgroundColor:oD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}}},variants:[{props:{size:"small"},style:{height:"24px"}},{props:{size:"large"},style:{height:"40px"}}]},MuiButton:{defaultProps:{color:"inherit",disableRipple:!0,focusVisibleClassName:"sprout-focus-visible"},styleOverrides:{root:{height:"32px",lineHeight:"16px",minWidth:"24px",fontSize:14,borderRadius:uD,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:oD.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:oD.GREYSCALE_0_15,backgroundColor:oD.GREYSCALE_100_60,"&:active":{backgroundColor:oD.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${oD.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:oD.PURPLE,"&.Mui-focusVisible":{borderColor:oD.PURPLE,boxShadow:`0 0 0 3px ${my(oD.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:oD.GREEN,"&.Mui-focusVisible":{borderColor:oD.GREEN,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:oD.BLUE,"&.Mui-focusVisible":{borderColor:oD.BLUE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:oD.ORANGE,"&.Mui-focusVisible":{borderColor:oD.ORANGE,boxShadow:`0 0 0 3px ${my(oD.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:oD.RED,"&.Mui-focusVisible":{borderColor:oD.RED,boxShadow:`0 0 0 3px ${my(oD.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:oD.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:oD.PURPLE_PALE},"&:active":{backgroundColor:oD.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:oD.PURPLE_PALE,boxShadow:`0 0 0 3px ${my(oD.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:oD.GREEN_PALE},"&:active":{backgroundColor:oD.GREEN_DARK},"&.Mui-focusVisible":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:oD.BLUE_PALE},"&:active":{backgroundColor:oD.BLUE_DARK},"&.Mui-focusVisible":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:oD.ORANGE_PALE},"&:active":{backgroundColor:oD.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:oD.ORANGE_PALE,boxShadow:`0 0 0 3px ${my(oD.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:oD.RED_PALE},"&:active":{backgroundColor:oD.RED_DARK},"&.Mui-focusVisible":{borderColor:oD.RED_PALE,boxShadow:`0 0 0 3px ${my(oD.RED_PALE,.5)}`}},sizeSmall:{fontSize:12,height:"24px","& > svg:only-child, & > i:only-child":{marginLeft:"-7px",marginRight:"-7px"}},sizeLarge:{fontSize:16,height:"40px",lineHeight:"20px","& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},textSizeSmall:{padding:"4px 11px"},textSizeLarge:{padding:"10px 19px"},outlinedSizeSmall:{padding:"3px 11px"},outlinedSizeLarge:{padding:"9px 19px"},containedSizeSmall:{padding:"4px 11px"},containedSizeLarge:{padding:"10px 19px"}},variants:[]},MuiCardActionArea:{styleOverrides:{root:{height:"100%","&.MuiCardActionArea-focusHighlight":{opacity:0},"&:hover":{boxShadow:"none",backgroundColor:oD.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:oD.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:uD,boxShadow:`inset 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:S.createElement(xD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:iD,borderRadius:uD,color:oD.TEXT_PRIMARY,backgroundColor:oD.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:oD.GREYSCALE_0_05,color:oD.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:oD.GREEN,borderColor:oD.GREEN},"&.MuiChip-outlinedInfo":{color:oD.BLUE,borderColor:oD.BLUE},"&.MuiChip-outlinedWarning":{color:oD.ORANGE,borderColor:oD.ORANGE},"&.MuiChip-outlinedError":{color:oD.RED,borderColor:oD.RED}},outlined:{border:`solid 1px ${oD.GREYSCALE_0_15}`,backgroundColor:oD.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:uD,boxShadow:"none",backgroundColor:oD.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:oD.GREEN,borderColor:oD.GREEN},outlinedSecondary:{color:oD.BLUE,borderColor:oD.BLUE},label:{fontFamily:hD.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:S.createElement(xD,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:S.createElement(vD,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),forcePopupIcon:!0},styleOverrides:{root:{"& .MuiAutocomplete-endAdornment > button":{border:"none",backgroundColor:"unset"}},input:{"&.MuiAutocomplete-input":{padding:"6px 4px"}},inputRoot:{padding:"0px 2px",boxSizing:"border-box",borderRadius:uD},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:uD,fontSize:aD,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:oD.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${oD.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:oD.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:oD.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_05}}},popupIndicator:{borderRadius:uD,border:`solid 1px ${oD.GREYSCALE_0_15}`,color:oD.GREYSCALE_0_60,marginRight:0,width:sD,height:sD},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${oD.GREYSCALE_0_15}`},clearIndicator:{borderRadius:uD,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:oD.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:aD}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:iD,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:oD.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:oD.GREYSCALE_25,fontSize:iD,fontFamily:hD.FONT_FAMILY,fontWeight:pD,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:oD.TEXT_PRIMARY},"&.Mui-error":{color:oD.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:oD.TEXT_SECONDARY,content:"'(optional)'",fontWeight:dD,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:oD.TEXT_SECONDARY,content:"'(required)'",fontWeight:dD,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:aD,lineHeight:"16px",backgroundColor:oD.WHITE,borderRadius:uD,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.GREYSCALE_0_05}`,borderColor:oD.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${oD.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${oD.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.RED}`,boxShadow:`0px 0px 0px 1px ${oD.RED}, inset 0 2px 0 0 ${oD.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${oD.GREYSCALE_0_10}`,borderColor:oD.GREYSCALE_0_10,backgroundColor:oD.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:oD.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:oD.GREYSCALE_0_15,borderRadius:uD,boxShadow:`inset 0 2px 0 0 ${oD.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>S.createElement(vD,{...e,"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),MenuProps:{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}}},styleOverrides:{select:{padding:"7px 12px",borderRadius:"3px !important",minHeight:"1em","& em":{color:oD.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:oD.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:oD.GREYSCALE_0_03},"&:active":{backgroundColor:oD.GREYSCALE_0_10},"&:focus":{backgroundColor:oD.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${oD.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:oD.GREYSCALE_0_30,"&:hover":{backgroundColor:oD.GREYSCALE_0_0,borderColor:oD.GREYSCALE_0_15},"& ~svg":{color:oD.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${oD.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:uD}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:oD.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:oD.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:aD,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:iD,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:iD,fontWeight:pD,color:oD.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:pD}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${oD.GREYSCALE_0_15}, 0px 0px 0px 1px ${oD.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:S.createElement(wD,null),checkedIcon:S.createElement(RD,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:oD.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:oD.GREYSCALE_0_20}},"&.Mui-disabled":{fill:oD.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:S.createElement(AD,null),checkedIcon:S.createElement(ED,null),indeterminateIcon:S.createElement(CD,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:uD,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:oD.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:oD.GREYSCALE_0_55,color:oD.GREYSCALE_0_03}}},"&.sprout-focus-visible i":{boxShadow:"0px 0px 0px 2px #0275D9",g:{rect:{stroke:"none"}}}}}},"&.Mui-disabled":{"& i":{pointerEvents:"auto",cursor:"not-allowed !important",color:oD.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:oD.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:oD.GREYSCALE_0_55,"&:hover":{color:oD.GREYSCALE_25}}}}}},MuiCircularProgress:{defaultProps:{thickness:3,disableShrink:!0}},MuiDialog:{defaultProps:{fullWidth:!0}},MuiDialogActions:{styleOverrides:{root:{padding:"16px"}}},MuiDialogTitle:{styleOverrides:{root:{display:"flex",alignItems:"center",justifyContent:"space-between",boxSizing:"content-box",minHeight:"31px",padding:"16px 16px 16px 24px",fontSize:"16px",lineHeight:"24px"}}},MuiDialogContentText:{defaultProps:{variant:"body2"},styleOverrides:{root:{marginBottom:0}}},MuiDialogContent:{styleOverrides:{root:{padding:"16px 24px !important"}}},MuiDivider:{styleOverrides:{middle:{margin:"4px 8px"}}},MuiLink:{defaultProps:{underline:"none",color:oD.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:oD.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:aD,color:oD.TEXT_PRIMARY,lineHeight:"16px",fontWeight:pD},secondary:{fontSize:iD,color:oD.GREYSCALE_45,fontWeight:dD,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:aD,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:oD.GREYSCALE_0_03},"&:active":{backgroundColor:oD.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:aD,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:oD.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:iD,borderBottom:`solid 1px ${oD.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:aD,color:oD.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:oD.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:oD.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:oD.RED}}},"&.Mui-focusVisible":{backgroundColor:oD.GREYSCALE_0_03}},divider:{marginTop:"8px",marginBottom:"8px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiMenu:{styleOverrides:{list:{paddingTop:"4px",paddingBottom:"4px"},paper:{marginTop:"4px !important",marginBottom:"4px",background:oD.WHITE,boxShadow:"0 0 0 1px rgba(0,0,0,0.05), 0 4px 10px 0 rgba(0,0,0,0.15) !important",borderRadius:"2px !important"}}},MuiSlider:{styleOverrides:{root:{color:oD.GREEN,height:"24px","&.Mui-disabled":{color:oD.GREYSCALE_0_15}},rail:{backgroundColor:oD.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${oD.GREYSCALE_0_05}`,borderRadius:uD,boxShadow:`inset 0px 0px 0px 1px ${oD.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${oD.GREYSCALE_0_05}`,borderRadius:uD},thumb:{height:"16px",width:"16px",borderRadius:uD,backgroundColor:oD.WHITE,boxShadow:`0px 1px 2px 0px ${oD.GREYSCALE_0_15}, 0px 0px 0px 1px ${oD.GREYSCALE_0_05}`,"&:hover":{borderRadius:uD,boxShadow:`0 2px 4px 0 ${oD.GREYSCALE_0_30}, 0 0 0 1px ${oD.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${oD.GREYSCALE_0_15}, 0 0 0 1px ${oD.GREYSCALE_0_06}, 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${oD.GREYSCALE_0_15}, 0 0 0 1px ${oD.GREYSCALE_0_06}, 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:oD.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:oD.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:oD.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:oD.GREYSCALE_0_15},markLabel:{color:oD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:oD.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:oD.WHITE,color:oD.GREYSCALE_25}}},MuiSwitch:{defaultProps:{color:"primary",size:"small"},styleOverrides:{root:{padding:"10px",width:"60px",height:"40px","& .MuiSwitch-switchBase":{"&:hover":{backgroundColor:"unset"},"&.Mui-checked":{"&:hover":{backgroundColor:"unset"}}}},switchBase:{padding:"12px","&.Mui-disabled":{"&.MuiSwitch-thumb":{backgroundColor:oD.GREYSCALE_100_50}},"&.Mui-checked + .MuiSwitch-track":{opacity:1},"&.Mui-disabled + .MuiSwitch-track":{opacity:.12},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"}},colorPrimary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:oD.GREEN_PALE,boxShadow:`0 0 0 3px ${my(oD.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:oD.BLUE_PALE,boxShadow:`0 0 0 3px ${my(oD.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:oD.GREYSCALE_0_15,borderRadius:uD},thumb:{height:"16px",width:"16px",borderRadius:uD,backgroundColor:oD.GREYSCALE_100},sizeSmall:{height:"32px",width:"52px",padding:"8px 10px","& .MuiSwitch-thumb":{height:"12px",width:"12px"},"& .MuiSwitch-switchBase":{padding:"10px 12px"}}}},MuiTextField:{defaultProps:{margin:"dense",variant:"outlined"},styleOverrides:{root:{marginBottom:0}}},MuiTab:{styleOverrides:{root:{fontSize:aD,fontWeight:pD,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${oD.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${oD.MISC_FOCUS_BORDER}`,backgroundColor:oD.GREYSCALE_0_03,borderRadius:uD},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:oD.GREYSCALE_25,"&.Mui-selected":{color:oD.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:aD,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:uD,"&:hover":{backgroundColor:`${oD.GREYSCALE_0_03}`},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${oD.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${oD.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:uD,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:oD.GREYSCALE_0_05},"&:hover":{backgroundColor:`${oD.GREYSCALE_0_03}`,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${oD.GREYSCALE_85}`,borderRight:`1px solid ${oD.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:pD,backgroundColor:oD.GREYSCALE_98},paddingCheckbox:{width:"40px",padding:"0px"},paddingNone:{padding:"0px"},sizeSmall:{padding:"0px 8px",height:"29px","&.MuiTableCell-head":{height:"31px"},"&.MuiTableCell-paddingCheckbox":{width:"40px",padding:"0px"}},stickyHeader:{backgroundColor:oD.GREYSCALE_98,borderBottom:`1px solid ${oD.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${oD.GREYSCALE_85}`,borderTop:`1px solid ${oD.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:oD.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:oD.GREYSCALE_0_05,"&:hover":{backgroundColor:oD.GREYSCALE_0_03}},"&&:hover":{backgroundColor:oD.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>S.createElement(LD,{className:e})},styleOverrides:{root:{display:"flex",justifyContent:"space-between","&:hover":{"& icon":{opacity:.5}},"&.Mui-active":{"&& icon":{opacity:1}}},icon:{opacity:0},iconDirectionDesc:{transform:"rotate(180deg)"},iconDirectionAsc:{transform:"rotate(0deg)"}}},MuiTable:{styleOverrides:{root:{borderLeft:`1px solid ${oD.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:aD,borderRadius:uD,padding:"7px 16px",border:`1px solid ${oD.GREYSCALE_0_15}`,backgroundColor:oD.GREYSCALE_100_60,color:oD.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:oD.GREYSCALE_0_10,border:`1px solid ${oD.GREYSCALE_0_30}`},"&:hover":{backgroundColor:oD.GREYSCALE_0_03,border:`1px solid ${oD.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:oD.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${oD.MISC_FOCUS_BORDER}`,border:`1px solid ${oD.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:oD.GREYSCALE_25,backgroundColor:oD.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:oD.GREYSCALE_0_10,border:`1px solid ${oD.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:iD,height:24,width:24,padding:7},sizeLarge:{fontSize:lD,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:aD,borderRadius:uD}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:oD.GREYSCALE_20},tooltip:{backgroundColor:oD.GREYSCALE_20,fontSize:iD,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var MD=e=>ID;const DD={mode:"light",primary:{ultraLight:oD.GREEN_ULTRA_LIGHT,light:oD.GREEN_PALE,main:oD.GREEN,dark:oD.GREEN_DARK,extraDark:oD.GREEN_EXTRA_DARK,contrastText:oD.WHITE},secondary:{ultraLight:oD.BLUE_ULTRA_LIGHT,light:oD.BLUE_PALE,main:oD.BLUE,dark:oD.BLUE_DARK,extraDark:oD.BLUE_EXTRA_DARK,contrastText:oD.WHITE},error:{ultraLight:oD.RED_ULTRA_LIGHT,light:oD.RED_PALE,main:oD.RED,dark:oD.RED_DARK,extraDark:oD.RED_EXTRA_DARK,contrastText:oD.WHITE},warning:{ultraLight:oD.ORANGE_ULTRA_LIGHT,light:oD.ORANGE_PALE,main:oD.ORANGE,dark:oD.ORANGE_DARK,extraDark:oD.ORANGE_EXTRA_DARK,contrastText:oD.WHITE},success:{ultraLight:oD.GREEN_ULTRA_LIGHT,light:oD.GREEN_PALE,main:oD.GREEN,dark:oD.GREEN_DARK,extraDark:oD.GREEN_EXTRA_DARK,contrastText:oD.WHITE},info:{ultraLight:oD.BLUE_ULTRA_LIGHT,light:oD.BLUE_PALE,main:oD.BLUE,dark:oD.BLUE_DARK,extraDark:oD.BLUE_EXTRA_DARK,contrastText:oD.WHITE},text:{primary:oD.TEXT_PRIMARY,secondary:oD.TEXT_SECONDARY,disabled:oD.GREYSCALE_0_30},action:{hover:oD.GREYSCALE_0_03,hoverOpacity:.03,selected:oD.GREYSCALE_0_05,selectedOpacity:.05,focus:oD.MISC_FOCUS_BORDER},amethyst:{ultraLight:oD.WHITE,main:oD.PURPLE,light:oD.PURPLE_PALE,dark:oD.PURPLE_DARK,extraDark:oD.GREYSCALE_0_0,contrastText:oD.WHITE},background:{paper:oD.WHITE,default:oD.GREYSCALE_95},divider:oD.GREYSCALE_0_15},PD=e=>DD,_D=(e="light")=>({components:MD(),palette:PD(),breakpoints:{keys:["xs","sm","md","lg","xl"],values:{xs:0,sm:600,md:960,lg:1280,xl:1920}},spacing:8,shadows:["none","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 1px 2px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 2px 4px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 4px 10px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)","0px 6px 20px 0px rgba(0,0,0,0.15)"],transitions:{easing:{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)"},duration:{standard:300,short:250,enteringScreen:225,shorter:200,leavingScreen:195,shortest:150,complex:375}},typography:{fontSize:aD,fontWeightLight:cD,fontWeightRegular:dD,fontWeightMedium:pD,fontWeightBold:fD,htmlFontSize:aD,fontFamily:hD.FONT_FAMILY,button:{fontWeight:pD,fontSize:aD,textTransform:"none"},body1:{fontSize:lD,lineHeight:"24px"},body2:{fontSize:aD,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:sD,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:lD,fontWeight:pD,lineHeight:"16px"},h6:{fontSize:aD,fontWeight:pD,lineHeight:"16px"},caption:{color:oD.TEXT_SECONDARY},subtitle1:{fontSize:aD,color:oD.TEXT_SECONDARY},subtitle2:{fontSize:iD,color:oD.TEXT_SECONDARY}},shape:{borderRadius:uD}});const OD=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d}=t,p=function(e){var t;const n=_D();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),Rx({...n,direction:e})}("ltr");e.render(dc.jsx(S.StrictMode,{children:dc.jsx(aS,{theme:p,children:dc.jsx(ZE,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,env:c,downloadService:d,children:dc.jsx(EL,{selections:n,updatePageInfo:t.updatePageInfo,children:dc.jsx(nC,{styleService:r,children:dc.jsx(rD,{...t})})})})})}))};var TD,kD,qD,ND;!function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.FontColor="fontColor",e.FontStyle="fontStyle",e.Background="background",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.Border="border",e.Divider="divider"}(TD||(TD={})),function(e){e.Dimension="object.pivotTableV2.dimension",e.Measure="object.pivotTableV2.measure",e.Total="object.pivotTableV2.total",e.Null="object.pivotTableV2.null",e.Grid="object.pivotTableV2"}(kD||(kD={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(qD||(qD={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(ND||(ND={}));const FD=e=>e?`${parseInt(e,10)}px`:void 0,zD=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?Pr.Transparent:n}},jD=(e,t)=>+(parseInt(e,10)*Mr*t+8).toFixed(2),$D=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?Ar:"normal",GD=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",BD=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none";function HD(e,t){return o((()=>e),t)}const WD={},VD=e=>{const t=o((()=>({current:WD})),[]);return t.current=t.current===WD?e:t.current,t},YD=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,UD=(e,t,n)=>{var r,i;const a=null!==(r=null==n?void 0:n.qHyperCubeDef.qShowTotalsAbove)&&void 0!==r&&r,l=null!==(i=null==n?void 0:n.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i,s=void 0!==(null==n?void 0:n.qHyperCubeDef.qSortbyYValue)&&1===Math.abs(null==n?void 0:n.qHyperCubeDef.qSortbyYValue),u=o((()=>{var e;return null==n||null===(e=n.qHyperCubeDef.qDimensions)||void 0===e?void 0:e.map((e=>e.qDef.qSortCriterias))}),[n]);return o((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r,isSortedByFirstMeasure:o,qSortCriterias:i})=>{var a,l,s,u;const{qHyperCube:c,nullValueRepresentation:d,snapshotData:p}=e,{qNoOfLeftDims:f,qEffectiveInterColumnSortOrder:h,qMeasureInfo:m,qDimensionInfo:g}=c,b=!!p,v=null!==(a=null==p||null===(l=p.content)||void 0===l?void 0:l.rowsPerPage)&&void 0!==a?a:15e3,y={x:Math.min(e.qHyperCube.qSize.qcx,Ir),y:Math.min(e.qHyperCube.qSize.qcy,v)},x=h.slice(0,f),S=e=>x.some((t=>t===e)),E=S(cC),C=new Map(h.map((e=>{var t;return[null!==(t=g[e])&&void 0!==t?t:cC,e]}))),w=m.filter((e=>{var t;return 7005!==(null===(t=e.qError)||void 0===t?void 0:t.qErrorCode)}));return{layout:e,getNullValueText:()=>{var e;return null!==(e=null==d?void 0:d.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(E)return 0;const n=e%w.length;return t?n:m.findIndex((e=>e===w[n]))},getDimensionInfo:e=>e===cC?cC:g[e],getDimensionInfoIndex:e=>{var t;return null!==(t=C.get(e))&&void 0!==t?t:-1},getSortCriteriaForDimension:e=>null==i?void 0:i[e],size:y,isSnapshot:b,hasLimitedData:!b&&y.x<e.qHyperCube.qSize.qcx,hasData:y.x>0&&y.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:E,leftDimensionInfoIndexes:x,isLeftDimension:S,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:w,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled("CLIENT_IM_5975_INDENT_MODE"),indentModeColumnWidth:null!==(s=e.qHyperCube.indentModeColumnWidth)&&void 0!==s?s:{type:jt.Auto,pixels:zt.PixelsDefault,percentage:zt.PercentageDefault},isSortedByFirstMeasure:o,searchSortFromDimension:"inherit"===(null===(u=e.search)||void 0===u?void 0:u.sorting)}})({layout:e,flags:t,qShowTotalsAbove:a,qAlwaysFullyExpanded:l,isSortedByFirstMeasure:s,qSortCriterias:u})),[e,a,l,s,t,u])},KD=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=(e=>{const t=VD(e);return t.current=e,t})(Zw(o));return $b((async()=>{var t;const{qHyperCube:o}=i,{maxNumberOfVisibleRows:u,maxNumberOfVisibleColumns:c}=s.current;var d,p;if(a)return null!==(d=null===(p=i.snapshotData)||void 0===p||null===(p=p.content)||void 0===p?void 0:p.qPivotDataPages)&&void 0!==d?d:[];if(void 0!==e&&"getHyperCubePivotData"in e&&(((e,t,n,r)=>!!e&&(t.gridColumnStartIndex+t.gridWidth>=r||t.gridRowStartIndex+t.gridHeight>=n))(l,n,u,c)||((e,t,n,r)=>{var o,i;const{qHyperCube:{qPivotDataPages:a,qSize:l}}=e,{qTop:s,qWidth:u,qHeight:c}=null!==(o=null===(i=a[0])||void 0===i?void 0:i.qArea)&&void 0!==o?o:{qTop:0,qWidth:0,qHeight:0};return s<t.page*t.rowsPerPage||u<Math.min(r,l.qcx)||c<Math.min(n,l.qcy)})(i,r,u,c))){const t=((e,t,n,r,o,i)=>{const a=r.page*r.rowsPerPage,l=Math.min(a+r.rowsPerPage,n.qcy),s=Math.min(Ir,n.qcx);if(n.qcy<a)return null;let u=0,c=a;if(e){u=t.gridColumnStartIndex,c=a+t.gridRowStartIndex;const e=c+t.gridHeight,n=t.gridColumnStartIndex+t.gridWidth;e>l&&(c=Math.max(0,l-o)),n>s&&(u=Math.max(0,s-i))}return{qLeft:u,qTop:c,qWidth:Math.min(s-u,i),qHeight:Math.min(l-c,o)}})(l,n,i.qHyperCube.qSize,r,u,c);return t?e.getHyperCubePivotData(uC,Qw(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},XD=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),JD=(e,t,n=15e3)=>({rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:XD({rowsPerPage:n,totalRowCount:e,page:t})}),ZD=15,QD=({layoutService:e,viewService:t,rect:n,model:r,pageInfo:o})=>{var i;return s((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(null!=r&&r.getHyperCubePivotData){const{scrollTop:i,scrollLeft:a,leftGridScrollLeft:l}=t,s=((e,t,n)=>{const{gridColumnStartIndex:r,gridRowStartIndex:o,gridWidth:i,gridHeight:a}=e,l=t.page*t.rowsPerPage,s=Math.max(r-ZD,0),u=Math.max(l+o-ZD,l,0);if((e=>0===e.gridWidth&&0===e.gridHeight)(e)){const{maxNumberOfVisibleColumns:e,maxNumberOfVisibleRows:t}=Zw(n);return{qLeft:s,qTop:u,qWidth:e+30,qHeight:t+30}}return{qLeft:s,qTop:u,qWidth:i+30,qHeight:a+30}})(t,o,n),u=Qw(s),c={qLeft:0,qTop:o.page*o.rowsPerPage,qWidth:1,qHeight:1};e.snapshotData.content={qPivotDataPages:await r.getHyperCubePivotData(uC,[c,...u]),scrollTop:i,scrollLeft:a,leftGridScrollLeft:l,page:o.page,rowsPerPage:o.rowsPerPage},e.snapshotData.object.size.w=n.width,e.snapshotData.object.size.h=n.height}return e})),u((()=>({getViewState:()=>((e,t)=>({scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,renderPage:t.page}))(t,o)})),[t]),null!==(i=e.layout.snapshotData)&&void 0!==i&&i.content?{left:n.left,top:n.top,width:e.layout.snapshotData.object.size.w,height:e.layout.snapshotData.object.size.h}:n};var eP={SNPivotTable_IndentMode_Rows:{id:"SNPivotTable.IndentMode.Rows",locale:{"de-DE":"Zeilen","en-US":"Rows","es-ES":"Filas","fr-FR":"Lignes","it-IT":"Righe","ja-JP":"行","ko-KR":"행","nl-NL":"Rijen","pl-PL":"Wiersze","pt-BR":"Linhas","ru-RU":"Строки","sv-SE":"Rader","tr-TR":"Satırlar","zh-CN":"行","zh-TW":"列"}},SNPivotTable_LimitedData:{id:"SNPivotTable.LimitedData",locale:{"de-DE":"* Derzeit wird eine begrenzte Anzahl Spalten angezeigt","en-US":"* Currently showing a limited number of columns","es-ES":"* Actualmente mostrando un número limitado de columnas","fr-FR":"*Affichage actuel d'un nombre limité de colonnes","it-IT":"* Attualmente visualizzato un numero limitato di colonne","ja-JP":"* 現在、限られた列の数を表示","ko-KR":"* 현재 제한된 수의 열만 표시","nl-NL":"* Op dit moment wordt slechts een beperkt aantal kolommen getoond","pl-PL":"* Obecnie wyświetlana jest ograniczona liczba kolumn","pt-BR":"* Atualmente mostrando um número limitado de colunas","ru-RU":"* В настоящее время отображается ограниченное количество столбцов","sv-SE":"* Visar för närvarande ett begränsat antal kolumner","tr-TR":"*Şu anda sınırlı sayıda sütun gösteriliyor","zh-CN":"* 当前显示的列数有限","zh-TW":"* 目前顯示有限欄數"}},SNPivotTable_NoData:{id:"SNPivotTable.NoData",locale:{"de-DE":"Das Diagramm wird nicht angezeigt, weil es keine Werte enthält.","en-US":"The chart is not displayed because it contains no values.","es-ES":"El gráfico no se muestra porque no contiene valores.","fr-FR":"Le graphique n'est pas affiché, car il ne contient aucune valeur.","it-IT":"Il grafico non è visualizzato poiché non contiene alcun valore.","ja-JP":"チャートには値が含まれていないため、チャートは表示されません。","ko-KR":"차트에 값이 없으므로 차트가 표시되지 않습니다.","nl-NL":"Het diagram wordt niet weergegeven omdat deze geen waarden bevat.","pl-PL":"Wykres nie jest wyświetlany, ponieważ nie zawiera wartości.","pt-BR":"O gráfico não foi exibido porque não contém valores.","ru-RU":"Диаграмма не отображается, так как не содержит значений.","sv-SE":"Diagrammet visas inte eftersom det inte innehåller några värden.","tr-TR":"Değer içermemesi nedeniyle grafik görüntülenmiyor.","zh-CN":"图表未显示,因为它不包含任何值。","zh-TW":"系統不會顯示圖表,因為這沒有包含任何值。"}}};const tP=()=>{const e=c(),t=e.language();return o((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(eP).forEach((t=>{e.add(eP[t])}))}}(e)),[e]),{translator:e,language:t}},nP=e=>{const{flags:r}=e,a=d(),s=(e=>{const t=o((()=>Vb(e)),[e]);return n((()=>()=>t.unmount()),[t]),t})(a),u=p(),c=f(),x=h(),S=m(),E=g(),C=b(),w=(e=>{const{viewState:t}=l(),n=VD(new Set),r=void 0!==t&&e.flags.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD"),{promise:a,resolve:s}=o((()=>dL()),[]),u=HD((e=>{n.current.add(e)}),[n]),c=HD(rt((async()=>{await Promise.all(n.current),s()}),1e3),[s,n]);return i((async()=>{r&&await a}),[a,r]),o((()=>({viewState:t,isDownloadedAsPDForImage:r,notifyIsDoneRendering:c,waitForPromise:u})),[c,r,t,u])})(e),[R,L]=((e,t)=>$b((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(c,u),A=UD(u,r,R),I=v(),M=jb(u,a),{translator:D,language:P}=tP(),{pageInfo:_,updatePageInfo:O}=((e,r)=>{const{size:o,layout:{qHyperCube:{qSize:i}}}=e,a=r.isDownloadedAsPDForImage||e.isSnapshot,l=(e=>{var t;return null===(t=e.layout.snapshotData)||void 0===t||null===(t=t.content)||void 0===t?void 0:t.rowsPerPage})(e),[s,u]=t((()=>{const t=((e,t)=>{var n,r,o,i;return t.isDownloadedAsPDForImage?null!==(n=null===(r=t.viewState)||void 0===r?void 0:r.renderPage)&&void 0!==n?n:0:e.isSnapshot&&null!==(o=null===(i=e.layout.snapshotData)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.page)&&void 0!==o?o:0})(e,r);return{page:t,shouldShowPagination:i.qcy>o.y&&!a,...JD(i.qcy,t,l)}}));return n((()=>{u((t=>({...t,...JD(e.layout.qHyperCube.qSize.qcy,t.page,l),shouldShowPagination:e.layout.qHyperCube.qSize.qcy>e.size.y&&!a})))}),[e.layout.qHyperCube.qSize.qcy,e.size.y,u,a,l]),n((()=>{const{page:e,totalPages:t}=s;if(e+1>t){const e=t-1,n=XD({...s,page:e});u({...s,page:e,rowsOnCurrentPage:n})}}),[s]),{pageInfo:s,updatePageInfo:e=>u({...s,...e,rowsOnCurrentPage:XD({...s,...e})})}})(A,w),T=((e,t,n)=>o((()=>((e,t)=>{var n,r,o,i,a,l;if(e.isDownloadedAsPDForImage){var s,u,c;const{viewState:t}=e;return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(s=null==t?void 0:t.scrollTop)&&void 0!==s?s:0,scrollLeft:null!==(u=null==t?void 0:t.scrollLeft)&&void 0!==u?u:0,leftGridScrollLeft:null!==(c=null==t?void 0:t.leftGridScrollLeft)&&void 0!==c?c:0}}return{gridColumnStartIndex:0,gridRowStartIndex:0,gridWidth:0,gridHeight:0,scrollTop:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.scrollTop)&&void 0!==n?n:0,scrollLeft:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.scrollLeft)&&void 0!==o?o:0,leftGridScrollLeft:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.leftGridScrollLeft)&&void 0!==a?a:0}})(n,t.snapshotData)),[n,e.page,t.snapshotData]))(_,u,w),k=QD({rect:y(),layoutService:A,viewService:T,model:c,pageInfo:_}),[q,N]=KD({model:c,layoutService:A,viewService:T,pageInfo:_,rect:k}),F=o((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,b,v,y,x,S,E,C,w,R,L,A,I,M,D,P,_,O,T,k,q,N,F,z,j,$,G,B,H,W,V,Y,U,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),J=null==X?void 0:X.header,Z=null==X?void 0:X.dimensionValues,Q=null==X?void 0:X.measureValues,ee=null==X?void 0:X.measureLabels,te=null==X?void 0:X.totalValues,ne=null==X?void 0:X.nullValues,re=null==X?void 0:X.grid,oe=(t,n,r)=>e.getStyle(t,n,r),ie=+(null!==(o=null!==(i=null==re?void 0:re[TD.LineClamp])&&void 0!==i?i:oe(kD.Grid,qD.Grid,ND.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled("CLIENT_IM_5715_LINKS_AND_IMAGES")?+(null!==(a=null!==(l=null==re?void 0:re[TD.ColumnLineClamp])&&void 0!==l?l:oe(kD.Grid,qD.Grid,ND.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=zD(e,null==J?void 0:J[TD.Background]))&&void 0!==u?u:oe(kD.Dimension,qD.LabelName,ND.BackgroundColor))&&void 0!==s?s:Pr.Transparent,se={header:{fontSize:null!==(c=null!==(d=FD(null==J?void 0:J[TD.FontSize]))&&void 0!==d?d:oe(kD.Dimension,qD.LabelName,ND.FontSize))&&void 0!==c?c:Rr,fontFamily:null!==(p=null!==(f=null==J?void 0:J[TD.FontFamily])&&void 0!==f?f:oe(kD.Dimension,qD.LabelName,ND.FontFamily))&&void 0!==p?p:Lr,fontWeight:$D(null==J?void 0:J[TD.FontStyle],Ar),fontStyle:GD(null==J?void 0:J[TD.FontStyle]),textDecoration:BD(null==J?void 0:J[TD.FontStyle]),color:null!==(h=null!==(m=zD(e,null==J?void 0:J[TD.FontColor]))&&void 0!==m?m:oe(kD.Dimension,qD.LabelName,ND.Color))&&void 0!==h?h:Dg.TEXT,background:le,hoverBackground:Db(le,$t),activeBackground:Db(le,Gt)},dimensionValues:{fontSize:null!==(g=null!==(b=FD(null==Z?void 0:Z[TD.FontSize]))&&void 0!==b?b:oe(kD.Dimension,qD.LabelValue,ND.FontSize))&&void 0!==g?g:Rr,fontFamily:null!==(v=null!==(y=null==Z?void 0:Z[TD.FontFamily])&&void 0!==y?y:oe(kD.Dimension,qD.LabelValue,ND.FontFamily))&&void 0!==v?v:Lr,fontWeight:$D(null==Z?void 0:Z[TD.FontStyle],void 0),fontStyle:GD(null==Z?void 0:Z[TD.FontStyle]),textDecoration:BD(null==Z?void 0:Z[TD.FontStyle]),color:null!==(x=null!==(S=zD(e,null==Z?void 0:Z[TD.FontColor]))&&void 0!==S?S:oe(kD.Dimension,qD.LabelValue,ND.Color))&&void 0!==x?x:Dg.TEXT,background:null!==(E=null!==(C=zD(e,null==Z?void 0:Z[TD.Background]))&&void 0!==C?C:oe(kD.Dimension,qD.LabelValue,ND.BackgroundColor))&&void 0!==E?E:Pr.Transparent},measureValues:{fontSize:null!==(w=null!==(R=FD(null==Q?void 0:Q[TD.FontSize]))&&void 0!==R?R:oe(kD.Measure,qD.LabelValue,ND.FontSize))&&void 0!==w?w:Rr,fontFamily:null!==(L=null!==(A=null==Q?void 0:Q[TD.FontFamily])&&void 0!==A?A:oe(kD.Measure,qD.LabelValue,ND.FontFamily))&&void 0!==L?L:Lr,fontWeight:$D(null==Q?void 0:Q[TD.FontStyle],"normal"),fontStyle:GD(null==Q?void 0:Q[TD.FontStyle]),textDecoration:BD(null==Q?void 0:Q[TD.FontStyle]),color:null!==(I=null!==(M=zD(e,null==Q?void 0:Q[TD.FontColor]))&&void 0!==M?M:oe(kD.Measure,qD.LabelValue,ND.Color))&&void 0!==I?I:Pr.FontSecondary,background:null!==(D=null!==(P=zD(e,null==Q?void 0:Q[TD.Background]))&&void 0!==P?P:oe(kD.Measure,qD.LabelValue,ND.BackgroundColor))&&void 0!==D?D:Pr.Transparent},measureLabels:{fontWeight:$D(null==ee?void 0:ee[TD.FontStyle],"normal"),fontStyle:GD(null==ee?void 0:ee[TD.FontStyle]),textDecoration:BD(null==ee?void 0:ee[TD.FontStyle]),color:null!==(_=null!==(O=zD(e,null==ee?void 0:ee[TD.FontColor]))&&void 0!==O?O:oe(kD.Measure,qD.LabelName,ND.Color))&&void 0!==_?_:Pr.FontSecondary,background:null!==(T=null!==(k=zD(e,null==ee?void 0:ee[TD.Background]))&&void 0!==k?k:oe(kD.Measure,qD.LabelName,ND.BackgroundColor))&&void 0!==T?T:Pr.Transparent},totalValues:{fontWeight:$D(null==te?void 0:te[TD.FontStyle],Ar),fontStyle:GD(null==te?void 0:te[TD.FontStyle]),textDecoration:BD(null==te?void 0:te[TD.FontStyle]),color:null!==(q=null!==(N=zD(e,null==te?void 0:te[TD.FontColor]))&&void 0!==N?N:oe(kD.Total,qD.LabelValue,ND.Color))&&void 0!==q?q:Dg.TEXT,background:null!==(F=null!==(z=zD(e,null==te?void 0:te[TD.Background]))&&void 0!==z?z:oe(kD.Total,qD.LabelValue,ND.BackgroundColor))&&void 0!==F?F:Pr.Transparent},nullValues:{fontWeight:$D(null==ne?void 0:ne[TD.FontStyle],"normal"),fontStyle:GD(null==ne?void 0:ne[TD.FontStyle]),textDecoration:BD(null==ne?void 0:ne[TD.FontStyle]),color:null!==(j=null!==($=zD(e,null==ne?void 0:ne[TD.FontColor]))&&void 0!==$?$:oe(kD.Null,qD.LabelValue,ND.Color))&&void 0!==j?j:Dg.TEXT,background:null!==(G=null!==(B=zD(e,null==ne?void 0:ne[TD.Background]))&&void 0!==B?B:oe(kD.Null,qD.LabelValue,ND.BackgroundColor))&&void 0!==G?G:Pr.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(H=null!==(W=zD(e,null==re?void 0:re[TD.Border]))&&void 0!==W?W:oe(kD.Grid,qD.Grid,ND.BorderColor))&&void 0!==H?H:Pr.DividerLight,divider:null!==(V=null!==(Y=zD(e,null==re?void 0:re[TD.Divider]))&&void 0!==Y?Y:oe(kD.Grid,qD.Divider,ND.BorderColor))&&void 0!==V?V:Pr.DividerDark,background:null!==(U=null!==(K=zD(e,null==re?void 0:re[TD.Background]))&&void 0!==K?K:oe(kD.Grid,qD.Grid,ND.BackgroundColor))&&void 0!==U?U:Pr.Transparent}};return se.headerCellHeight=Math.max(jD(se.header.fontSize,ae),jD(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(jD(se.measureValues.fontSize,ie),jD(se.dimensionValues.fontSize,ie),24),se.dimensionValueTextHeight=jD(se.dimensionValues.fontSize,1),se})(M,A,r)),[M,A,r]),z=(e=>o((()=>[...new Set([YD(e.header),YD(e.dimensionValues),YD({...e.dimensionValues,...e.measureLabels}),YD({...e.dimensionValues,...e.nullValues}),YD({...e.dimensionValues,...e.totalValues}),YD(e.measureValues),YD({...e.measureValues,...e.nullValues}),YD({...e.measureValues,...e.totalValues})])]),[e]))(F),j=(e=>{const[t,n]=i((()=>Promise.all(e.map((e=>document.fonts.load(e))))),[e]);return n?(console.warn("Failed to load font:",n),!0):!!t})(z);r.isEnabled("CLIENT_IM6278_PIVOT_COPYCELL")&&Qb(),n((()=>{!N&&c&&(null==k?void 0:k.width)&&(null==k?void 0:k.height)&&I&&T&&A&&F&&!!q&&!L&&j&&OD(s,{model:c,app:x,rect:k,selections:I,viewService:T,layoutService:A,downloadService:w,qPivotDataPages:q,styleService:F,translator:D,pageInfo:_,updatePageInfo:O,interactions:C,embed:S,keyboard:E,theme:M,env:e})}),[c,x,k,null==k?void 0:k.width,null==k?void 0:k.height,C,I,T,A,w,N,q,F,s,j,D,P,_,O,R,L,S,E,M,e])},rP={version:"3.9.1",qHyperCubeDef:{qAlwaysFullyExpanded:!1,qDimensions:[],qMeasures:[],qMode:"P",qSuppressMissing:!0,qSuppressZero:!1,qShowTotalsAbove:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:50,qHeight:50}],qIndentMode:!1},showTitles:!0,title:"",subtitle:"",footnote:"",nullValueRepresentation:{text:"-"},components:[]},oP=e=>({...rP,qHyperCubeDef:{...rP.qHyperCubeDef,qIndentMode:e.flags.isEnabled("CLIENT_IM_5975_INDENT_MODE")}})}}}));
|