@nebula.js/sn-pivot-table 3.4.0 → 3.4.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.
- package/api-specifications/properties.json +1 -1
- package/core/esm/index.js +4 -4
- package/core/package.json +1 -1
- package/dist/sn-pivot-table.js +4 -4
- package/dist/sn-pivot-table.systemjs.js +9 -9
- package/package.json +2 -2
- package/sn-pivot-table-ext/dist/sn-pivot-table.js +4 -4
- package/sn-pivot-table-ext/sn-pivot-table.qext +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-pivot-table v3.4.
|
|
3
|
-
* Copyright (c)
|
|
2
|
+
* @nebula.js/sn-pivot-table v3.4.1
|
|
3
|
+
* Copyright (c) 2025 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
@@ -116,7 +116,7 @@ function EC(e,t){let n;return n=t?ay(e).withConfig({displayName:t.label,shouldFo
|
|
|
116
116
|
animation-iteration-count: infinite;
|
|
117
117
|
animation-delay: 200ms;
|
|
118
118
|
}
|
|
119
|
-
`),AL.rippleVisible,NL,550,(({theme:e})=>e.transitions.easing.easeInOut),AL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),AL.child,AL.childLeaving,qL,550,(({theme:e})=>e.transitions.easing.easeInOut),AL.childPulsate,FL,(({theme:e})=>e.transitions.easing.easeInOut)),$L=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=yC(n,IL),[l,s]=Go.useState([]),u=Go.useRef(0),c=Go.useRef(null);Go.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Go.useRef(!1),p=Go.useRef(0),f=Go.useRef(null),h=Go.useRef(null);Go.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=Go.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,yg.jsx(jL,{classes:{ripple:jx(o.ripple,AL.ripple),rippleVisible:jx(o.rippleVisible,AL.rippleVisible),ripplePulsate:jx(o.ripplePulsate,AL.ripplePulsate),child:jx(o.child,AL.child),childLeaving:jx(o.childLeaving,AL.childLeaving),childPulsate:jx(o.childPulsate,AL.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Go.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]),v=Go.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Go.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((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Go.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),yg.jsx(zL,bC({className:jx(AL.root,o.root,i),ref:h},a,{children:yg.jsx(vL,{component:null,exit:!0,children:l})}))}));var HL=$L;function BL(e){return Sk("MuiButtonBase",e)}var GL=Ek("MuiButtonBase",["root","disabled","focusVisible"]);const WL=["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"],VL=Kk("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"},[`&.${GL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),UL=Go.forwardRef((function(e,t){const n=Wk({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:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:_,touchRippleRef:A,type:I}=n,P=yC(n,WL),M=Go.useRef(null),D=Go.useRef(null),O=ak(D,A),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=gk(),[z,j]=Go.useState(!1);s&&z&&j(!1),Go.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,H]=Go.useState(!1);Go.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function G(e,t,n=c){return ik((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Go.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=ik((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Go.useRef(!1),re=ik((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=ik((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=ak(t,F,M),se=bC({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},BL,o);return n&&r&&(i.root+=` ${r}`),i})(se);return yg.jsxs(VL,bC({as:ie,className:jx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:I},ae,P,{children:[i,B?yg.jsx(HL,bC({ref:O,center:o},_)):null]}))}));var YL=UL;function KL(e){return Sk("MuiTypography",e)}Ek("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const XL=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],QL=Kk("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${QR(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>bC({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}))),JL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ZL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},e_=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiTypography"}),r=(e=>ZL[e]||e)(n.color),o=PR(bC({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=JL}=o,f=yC(o,XL),h=bC({},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]||JL[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return BS({root:["root",i,"inherit"!==e.align&&`align${QR(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},KL,a)})(h);return yg.jsx(QL,bC({as:m,ref:t,ownerState:h,className:jx(g.root,a)},f))}));var t_=e_;const n_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function r_(e){const t=[],n=[];return Array.from(e.querySelectorAll(n_)).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 o_(){return!0}function i_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=r_,isEnabled:a=o_,open:l}=e,s=Go.useRef(!1),u=Go.useRef(null),c=Go.useRef(null),d=Go.useRef(null),p=Go.useRef(null),f=Go.useRef(!1),h=Go.useRef(null),m=_S(t.ref,h),g=Go.useRef(null);Go.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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 v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return yg.jsxs(Go.Fragment,{children:[yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Go.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)}}),yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const a_=Go.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Go.useState(null),l=_S(Go.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 kS(t,i),()=>{kS(t,null)}}),[t,i,o]),o){if(Go.isValidElement(n)){const e={ref:l};return Go.cloneElement(n,e)}return yg.jsx(Go.Fragment,{children:n})}return yg.jsx(Go.Fragment,{children:i?og.createPortal(n,i):i})}));function l_(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s_(e){return parseInt(RS(e).getComputedStyle(e).paddingRight,10)||0}function u_(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&&l_(e,o)}))}function c_(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function d_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=CS(e);return t.body===e?RS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=HS(CS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s_(r)+e}px`;const t=CS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${s_(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=CS(r).body;else{const t=r.parentElement,n=RS(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 p_=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&&l_(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);u_(t,e.mount,e.modalRef,r,!0);const o=c_(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=c_(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=d_(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=c_(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&&l_(e.modalRef,t),u_(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&&l_(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function f_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=p_,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Go.useRef({}),f=Go.useRef(null),h=Go.useRef(null),m=_S(h,d),[g,v]=Go.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=LS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||CS(f.current).body;o.add(x(),e),h.current&&S()})),w=Go.useCallback((()=>o.isTopModal(x())),[o]),C=LS((e=>{f.current=e,e&&(c&&w()?S():h.current&&l_(h.current,y))})),R=Go.useCallback((()=>{o.remove(x(),y)}),[y,o]);Go.useEffect((()=>()=>{R()}),[R]),Go.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=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")))},L=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=RL(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wg({},n,t);return wg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>wg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ES((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ES((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const h_=["onChange","maxRows","minRows","style","value"];function m_(e){return parseInt(e,10)||0}const g_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v_(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const b_=Go.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Cg(e,h_),{current:s}=Go.useRef(null!=a),u=Go.useRef(null),c=_S(t,u),d=Go.useRef(null),p=Go.useRef(0),[f,h]=Go.useState({outerHeightStyle:0}),m=Go.useCallback((()=>{const t=u.current,n=RS(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=m_(n.paddingBottom)+m_(n.paddingTop),s=m_(n.borderBottomWidth)+m_(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},v=Go.useCallback((()=>{const e=m();v_(e)||h((t=>g(t,e)))}),[m]);vS((()=>{const e=()=>{p.current=0,(()=>{const e=m();v_(e)||og.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=wS(e),n=u.current,r=RS(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((()=>{v()})),Go.useEffect((()=>{p.current=0}),[a]);return yg.jsxs(Go.Fragment,{children:[yg.jsx("textarea",wg({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:wg({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),yg.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:wg({},g_,i,{paddingTop:0,paddingBottom:0})})]})}));function y_({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 x_=Go.createContext(void 0);function S_(){return Go.useContext(x_)}function E_(e){return yg.jsx(_R,bC({},e,{defaultTheme:Bk,themeId:vC}))}function w_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function C_(e,t=!1){return e&&(w_(e.value)&&""!==e.value||t&&w_(e.defaultValue)&&""!==e.defaultValue)}function R_(e){return Sk("MuiInputBase",e)}var k_=Ek("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const L_=["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"],__=(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${QR(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},A_=(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]},I_=Kk("div",{name:"MuiInputBase",slot:"Root",overridesResolver:__})((({theme:e,ownerState:t})=>bC({},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",[`&.${k_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&bC({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),P_=Kk("input",{name:"MuiInputBase",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=bC({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 bC({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] + .${k_.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},[`&.${k_.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"})})),M_=yg.jsx(E_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),D_=Go.forwardRef((function(e,t){var n;const r=Wk({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:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:L,onKeyUp:_,placeholder:A,readOnly:I,renderSuffix:P,rows:M,slotProps:D={},slots:O={},startAdornment:T,type:N="text",value:q}=r,F=yC(r,L_),z=null!=v.value?v.value:q,{current:j}=Go.useRef(null!=z),$=Go.useRef(),H=Go.useCallback((e=>{}),[]),B=ak($,b,v.ref,H),[G,W]=Go.useState(!1),V=S_(),U=y_({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:G,Go.useEffect((()=>{!V&&d&&G&&(W(!1),w&&w())}),[V,d,G,w]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Go.useCallback((e=>{C_(e)?Y&&Y():K&&K()}),[Y,K]);ek((()=>{j&&X({value:z})}),[z,X,j]);Go.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=bC(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:x},J),Q=b_);Go.useEffect((()=>{V&&V.setAdornedStart(Boolean(T))}),[V,T]);const Z=bC({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:T,type:N}),ee=(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 BS({root:["root",`color${QR(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${QR(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"]},R_,t)})(Z),te=O.root||s.Root||I_,ne=D.root||u.root||{},re=O.input||s.Input||P_;return J=bC({},J,null!=(n=D.input)?n:u.input),yg.jsxs(Go.Fragment,{children:[!p&&M_,yg.jsxs(te,bC({},ne,!CL(te)&&{ownerState:bC({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:jx(ee.root,ne.className,l,I&&"MuiInputBase-readOnly"),children:[T,yg.jsx(x_.Provider,{value:null,children:yg.jsx(re,bC({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:A,readOnly:I,required:U.required,rows:M,value:z,onKeyDown:L,onKeyUp:_,type:N},J,!CL(re)&&{as:Q,ownerState:bC({},Z,J.ownerState)},{ref:B,className:jx(ee.input,J.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(gC(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):W(!0))}}))}),f,P?P(bC({},U,{startAdornment:T})):null]}))]})}));var O_=D_;function T_(e){return Sk("MuiInput",e)}var N_=bC({},k_,Ek("MuiInput",["root","underline","input"]));function q_(e){return Sk("MuiOutlinedInput",e)}var F_=bC({},k_,Ek("MuiOutlinedInput",["root","notchedOutline","input"]));function z_(e){return Sk("MuiFilledInput",e)}var j_=bC({},k_,Ek("MuiFilledInput",["root","underline","input"])),$_=function(e,t){function n(n,r){return yg.jsx(tL,bC({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=tL.muiName,Go.memo(Go.forwardRef(n))}(yg.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const H_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],B_={entering:{opacity:1},entered:{opacity:1}},G_=Go.forwardRef((function(e,t){const n=Gk(),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:v=dL}=e,b=yC(e,H_),y=Go.useRef(null),x=ak(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{bL(e);const r=yL({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)})),C=S(c),R=S(h),k=S((e=>{const t=yL({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)})),L=S(f);return yg.jsx(v,bC({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Go.cloneElement(a,bC({style:bC({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},B_[e],m,a.props.style),ref:x},t))}))}));var W_=G_;function V_(e){return Sk("MuiBackdrop",e)}Ek("MuiBackdrop",["root","invisible"]);const U_=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Y_=Kk("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>bC({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"}))),K_=Go.forwardRef((function(e,t){var n,r,o;const i=Wk({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=W_,transitionDuration:g}=i,v=yC(i,U_),b=bC({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},V_,t)})(b),x=null!=(n=f.root)?n:c.root;return yg.jsx(m,bC({in:p,timeout:g},v,{children:yg.jsx(Y_,bC({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:jx(y.root,l,null==x?void 0:x.className),ownerState:bC({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var X_=K_;var Q_=Ek("MuiBox",["root"]);const J_=Hk(),Z_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=EC("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(SR);return Go.forwardRef((function(e,a){const l=LR(n),s=PR(e),{className:u,component:c="div"}=s,d=Cg(s,MR);return yg.jsx(i,wg({as:c,ref:a,className:jx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:vC,defaultTheme:J_,defaultClassName:Q_.root,generateClassName:yk.generate});var eA=Z_;function tA(e){return Sk("MuiButton",e)}var nA=Ek("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 rA=Go.createContext({});var oA=Go.createContext(void 0);const iA=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],aA=e=>bC({},"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}}),lA=Kk(YL,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${QR(n.color)}`],t[`size${QR(n.size)}`],t[`${n.variant}Size${QR(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 bC({},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":bC({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:UR(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})`:UR(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})`:UR(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":bC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nA.focusVisible}`]:bC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nA.disabled}`]:bC({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 ${UR(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"},[`&.${nA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nA.disabled}`]:{boxShadow:"none"}})),sA=Kk("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${QR(n.size)}`]]}})((({ownerState:e})=>bC({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},aA(e)))),uA=Kk("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${QR(n.size)}`]]}})((({ownerState:e})=>bC({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},aA(e)))),cA=Go.forwardRef((function(e,t){const n=Go.useContext(rA),r=Go.useContext(oA),o=Wk({props:vk(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:v,variant:b="text"}=o,y=yC(o,iA),x=bC({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return bC({},a,BS({root:["root",i,`${i}${QR(t)}`,`size${QR(o)}`,`${i}Size${QR(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${QR(o)}`],endIcon:["endIcon",`iconSize${QR(o)}`]},tA,a))})(x),E=g&&yg.jsx(sA,{className:S.startIcon,ownerState:x,children:g}),w=p&&yg.jsx(uA,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return yg.jsxs(lA,bC({ownerState:x,className:jx(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:jx(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,w]}))}));var dA=cA;function pA(e){return Sk("MuiModal",e)}Ek("MuiModal",["root","hidden","backdrop"]);const fA=["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"],hA=Kk("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})=>bC({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),mA=Kk(X_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),gA=Go.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Wk({name:"MuiModal",props:e}),{BackdropComponent:u=mA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:_,slots:A}=s,I=yC(s,fA),P=bC({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=f_(bC({},P,{rootRef:t})),z=bC({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pA,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:hA,B=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==_?void 0:_.root)?a:v.root,W=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,V=_L({elementType:H,externalSlotProps:G,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:jx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=_L({elementType:B,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(bC({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?yg.jsx(a_,{ref:T,container:h,disablePortal:S,children:yg.jsxs(H,bC({},V,{children:[!C&&u?yg.jsx(B,bC({},U)):null,yg.jsx(i_,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Go.cloneElement(f,$)})]}))}):null}));var vA=gA;function bA(e){return Sk("MuiDivider",e)}var yA=Ek("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xA=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],SA=Kk("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})=>bC({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)`:UR(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})=>bC({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>bC({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>bC({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>bC({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),EA=Kk("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>bC({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)`}))),wA=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,xA),h=bC({},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 BS({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"]},bA,r)})(h);return yg.jsx(SA,bC({as:a,className:jx(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?yg.jsx(EA,{className:m.wrapper,ownerState:h,children:o}):null}))}));wA.muiSkipListHighlight=!0;var CA=wA;const RA=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],kA=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...__(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 bC({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}},[`&.${j_.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${j_.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"},[`&.${j_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${j_.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(.${j_.disabled}, .${j_.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${j_.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&bC({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}))})),LA=Kk(P_,{name:"MuiFilledInput",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>bC({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}))),_A=Go.forwardRef((function(e,t){var n,r,o,i;const a=Wk({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=yC(a,RA),g=bC({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return bC({},t,BS({root:["root",!n&&"underline"],input:["input"]},z_,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?XR(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:kA,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:LA;return yg.jsx(O_,bC({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));_A.muiName="Input";var AA=_A;const IA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function PA(e){return`scale(${e}, ${e**2})`}const MA={entering:{opacity:1,transform:PA(1)},entered:{opacity:1,transform:"none"}},DA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),OA=Go.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=dL}=e,g=yC(e,IA),v=Go.useRef(),b=Go.useRef(),y=Gk(),x=Go.useRef(null),S=ak(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{bL(e);const{duration:n,delay:r,easing:o}=yL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:DA?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=yL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:DA?o:.666*o,delay:DA?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=PA(.75),c&&c(e)})),_=E(d);return Go.useEffect((()=>()=>{clearTimeout(v.current)}),[]),yg.jsx(m,bC({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:_,onExiting:k,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Go.cloneElement(o,bC({style:bC({opacity:0,transform:PA(.75),visibility:"exited"!==e||a?void 0:"hidden"},MA[e],f,o.props.style),ref:S},t))}))}));OA.muiSupportAuto=!0;var TA=OA;const NA=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qA=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...__(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})`),bC({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"},[`&.${N_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${N_.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(.${N_.disabled}, .${N_.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${N_.disabled}:before`]:{borderBottomStyle:"dotted"}})})),FA=Kk(P_,{name:"MuiInput",slot:"Input",overridesResolver:A_})({}),zA=Go.forwardRef((function(e,t){var n,r,o,i;const a=Wk({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=yC(a,NA),v=(e=>{const{classes:t,disableUnderline:n}=e;return bC({},t,BS({root:["root",!n&&"underline"],input:["input"]},T_,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?XR(null!=f?f:u,b):b,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:qA,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:FA;return yg.jsx(O_,bC({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));zA.muiName="Input";var jA=zA;function $A(e){return Sk("MuiLink",e)}var HA=Ek("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const BA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var GA=({theme:e,ownerState:t})=>{const n=(e=>BA[e]||e)(t.color),r=IC(e,`palette.${n}`,!1)||t.color,o=IC(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:UR(r,.4)};const WA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],VA=Kk(t_,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${QR(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>bC({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&bC({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:GA({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"},[`&.${HA.focusVisible}`]:{outline:"auto"}}))),UA=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,WA),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=gk(),[v,b]=Go.useState(!1),y=ak(t,g),x=bC({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return BS({root:["root",`underline${QR(o)}`,"button"===n&&"button",r&&"focusVisible"]},$A,t)})(x);return yg.jsx(VA,bC({color:o,className:jx(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(BA).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var YA=UA;var KA=Go.createContext({});function XA(e){return Sk("MuiList",e)}Ek("MuiList",["root","padding","dense","subheader"]);const QA=["children","className","component","dense","disablePadding","subheader"],JA=Kk("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})=>bC({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var ZA=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=yC(n,QA),c=Go.useMemo((()=>({dense:a})),[a]),d=bC({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},XA,t)})(d);return yg.jsx(KA.Provider,{value:c,children:yg.jsxs(JA,bC({as:i,className:jx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function eI(e){return Sk("MuiListItemIcon",e)}var tI=Ek("MuiListItemIcon",["root","alignItemsFlexStart"]);const nI=["className"],rI=Kk("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})=>bC({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var oI=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=yC(n,nI),i=bC({},n,{alignItems:Go.useContext(KA).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return BS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},eI,n)})(i);return yg.jsx(rI,bC({className:jx(a.root,r),ownerState:i,ref:t},o))}));var iI=Ek("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const aI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uI(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 cI(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")&&uI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var dI=Go.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=yC(e,aI),p=Go.useRef(null),f=Go.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ek((()=>{r&&p.current.focus()}),[r]),Go.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)}(JR(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=ak(p,t);let m=-1;Go.Children.forEach(i,((e,t)=>{Go.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=Go.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),Go.cloneElement(e,t)}return e}));return yg.jsx(ZA,bC({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=JR(t).activeElement;if("ArrowDown"===n)e.preventDefault(),cI(t,r,s,l,lI);else if("ArrowUp"===n)e.preventDefault(),cI(t,r,s,l,sI);else if("Home"===n)e.preventDefault(),cI(t,null,s,l,lI);else if("End"===n)e.preventDefault(),cI(t,null,s,l,sI);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&&uI(r,o);o.previousKeyMatched&&(s||cI(t,r,!1,l,lI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function pI(e){return Sk("MuiPopover",e)}Ek("MuiPopover",["root","paper"]);const fI=["onEntering"],hI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mI=["slotProps"];function gI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yI(e){return"function"==typeof e?e():e}const xI=Kk(vA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SI=Kk(wL,{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 EI=Go.forwardRef((function(e,t){var n,r,o;const i=Wk({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:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=TA,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=yC(i.TransitionProps,fI),k=yC(i,hI),L=null!=(n=null==y?void 0:y.paper)?n:v,_=Go.useRef(),A=ak(_,L.ref),I=bC({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},pI,t)})(I),M=Go.useCallback((()=>{if("anchorPosition"===c)return u;const e=yI(l),t=(e&&1===e.nodeType?e:JR(_.current).body).getBoundingClientRect();return{top:t.top+gI(t,s.vertical),left:t.left+vI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Go.useCallback((e=>({vertical:gI(e,x.vertical),horizontal:vI(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Go.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:bI(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ZR(yI(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:bI(n)}}),[l,c,M,D,m]),[T,N]=Go.useState(g),q=Go.useCallback((()=>{const e=_.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Go.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Go.useEffect((()=>{g&&q()})),Go.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Go.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}((()=>{q()})),t=ZR(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?JR(yI(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:xI,$=null!=(o=null==b?void 0:b.paper)?o:SI,H=_L({elementType:$,externalSlotProps:bC({},L,{style:T?L.style:bC({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:I,className:jx(P.paper,null==L?void 0:L.className)}),B=_L({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:jx(P.root,p)}),{slotProps:G}=B,W=yC(B,mI);return yg.jsx(j,bC({},W,!CL(j)&&{slotProps:G,disableScrollLock:C},{children:yg.jsx(S,bC({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:yg.jsx($,bC({},H,{children:d}))}))}))}));function wI(e){return Sk("MuiMenu",e)}Ek("MuiMenu",["root","paper","list"]);const CI=["onEntering"],RI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kI={vertical:"top",horizontal:"right"},LI={vertical:"top",horizontal:"left"},_I=Kk(EI,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AI=Kk(SI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),II=Kk(dI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var PI=Go.forwardRef((function(e,t){var n,r;const o=Wk({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:v={},slotProps:b={}}=o,y=yC(o.TransitionProps,CI),x=yC(o,RI),S=Gk(),E="rtl"===S.direction,w=bC({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},wI,t)})(w),R=i&&!s&&d,k=Go.useRef(null);let L=-1;Go.Children.map(a,((e,t)=>{Go.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const _=null!=(n=v.paper)?n:AI,A=null!=(r=b.paper)?r:p,I=_L({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[C.root,l]}),P=_L({elementType:_,externalSlotProps:A,ownerState:w,className:C.paper});return yg.jsx(_I,bC({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?kI:LI,slots:{paper:_,root:v.root},slotProps:{root:I,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:bC({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:yg.jsx(II,bC({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===L||s),autoFocusItem:R,variant:g},u,{className:jx(C.list,u.className),children:a}))}))}));function MI(e){return Sk("MuiMenuItem",e)}var DI=Ek("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const OI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],TI=Kk(YL,{shouldForwardProp:e=>Vk(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})=>bC({},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"}},[`&.${DI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:UR(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${DI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:UR(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${DI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:UR(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})`:UR(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${DI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${DI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yA.inset}`]:{marginLeft:52},[`& .${iI.root}`]:{marginTop:0,marginBottom:0},[`& .${iI.inset}`]:{paddingLeft:36},[`& .${tI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&bC({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tI.root} svg`]:{fontSize:"1.25rem"}}))));var NI=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,OI),f=Go.useContext(KA),h=Go.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Go.useRef(null);ek((()=>{r&&m.current&&m.current.focus()}),[r]);const g=bC({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return bC({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},MI,a))})(n),b=ak(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),yg.jsx(KA.Provider,{value:h,children:yg.jsx(TI,bC({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:jx(v.focusVisible,s),className:jx(v.root,d)},p,{ownerState:g,classes:v}))})}));function qI(e){return Sk("MuiNativeSelect",e)}var FI=Ek("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const zI=["className","disabled","error","IconComponent","inputRef","variant"],jI=({ownerState:e,theme:t})=>bC({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":bC({},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"},[`&.${FI.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}}),$I=Kk("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vk,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${FI.multiple}`]:t.multiple}]}})(jI),HI=({ownerState:e,theme:t})=>bC({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${FI.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),BI=Kk("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${QR(n.variant)}`],n.open&&t.iconOpen]}})(HI),GI=Go.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=yC(e,zI),u=bC({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${QR(n)}`,i&&"iconOpen",r&&"disabled"]},qI,t)})(u);return yg.jsxs(Go.Fragment,{children:[yg.jsx($I,bC({ownerState:u,className:jx(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:yg.jsx(BI,{as:i,ownerState:u,className:c.icon})]})}));var WI,VI=GI;const UI=["children","classes","className","label","notched"],YI=Kk("fieldset",{shouldForwardProp:Vk})({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%"}),KI=Kk("legend",{shouldForwardProp:Vk})((({ownerState:e,theme:t})=>bC({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&&bC({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 XI=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],QI=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:__})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return bC({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&&bC({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),JI=Kk((function(e){const{className:t,label:n,notched:r}=e,o=yC(e,UI),i=null!=n&&""!==n,a=bC({},e,{notched:r,withLabel:i});return yg.jsx(YI,bC({"aria-hidden":!0,className:t,ownerState:a},o,{children:yg.jsx(KI,{ownerState:a,children:i?yg.jsx("span",{children:n}):WI||(WI=yg.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}})),ZI=Kk(P_,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>bC({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}))),eP=Go.forwardRef((function(e,t){var n,r,o,i,a;const l=Wk({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=yC(l,XI),v=(e=>{const{classes:t}=e;return bC({},t,BS({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},q_,t))})(l),b=S_(),y=y_({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=bC({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:QI,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:ZI;return yg.jsx(O_,bC({slots:{root:S,input:E},renderSuffix:e=>yg.jsx(JI,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=yg.jsxs(Go.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:bC({},v,{notchedOutline:null})}))}));eP.muiName="Input";var tP=eP;function nP(e){return Sk("MuiSelect",e)}var rP,oP=Ek("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const iP=["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"],aP=Kk("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${oP.select}`]:t.select},{[`&.${oP.select}`]:t[n.variant]},{[`&.${oP.error}`]:t.error},{[`&.${oP.multiple}`]:t.multiple}]}})(jI,{[`&.${oP.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),lP=Kk("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${QR(n.variant)}`],n.open&&t.iconOpen]}})(HI),sP=Kk("input",{shouldForwardProp:e=>Uk(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 uP(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function cP(e){return null==e||"string"==typeof e&&!e.trim()}const dP=Go.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:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:L,SelectDisplayProps:_={},tabIndex:A,value:I,variant:P="standard"}=e,M=yC(e,iP),[D,O]=ok({controlled:I,default:c,name:"Select"}),[T,N]=ok({controlled:R,default:u,name:"Select"}),q=Go.useRef(null),F=Go.useRef(null),[z,j]=Go.useState(null),{current:$}=Go.useRef(null!=R),[H,B]=Go.useState(),G=ak(t,m),W=Go.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Go.useImperativeHandle(G,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Go.useEffect((()=>{u&&T&&z&&!$&&(B(a?null:V.clientWidth),F.current.focus())}),[z,a]),Go.useEffect((()=>{i&&F.current.focus()}),[i]),Go.useEffect((()=>{if(!g)return;const e=JR(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?C&&C(t):E&&E(t),$||(B(a?null:V.clientWidth),N(e))},Y=Go.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.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),D!==n&&(O(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&T;let Q,J;delete M["aria-invalid"];const Z=[];let ee=!1;(C_({value:D})||p)&&(L?Q=L(D):ee=!0);const te=Y.map((e=>{if(!Go.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(gC(2));t=D.some((t=>uP(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=uP(D,e.props.value),t&&ee&&(J=e.props.children);return Go.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=H;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==A?A:d?null:0;const oe=_.id||(y?`mui-component-select-${y}`:void 0),ie=bC({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${QR(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},nP,t)})(ie),le=bC({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=rk();return yg.jsxs(Go.Fragment,{children:[yg.jsx(aP,bC({ref:W,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:w},_,{ownerState:ie,className:jx(_.className,ae.select,s),id:oe,children:cP(Q)?rP||(rP=yg.jsx("span",{className:"notranslate",children:""})):Q})),yg.jsx(sP,bC({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},M)),yg.jsx(lP,{as:h,className:ae.icon,ownerState:ie}),yg.jsx(PI,bC({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:bC({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:bC({},v.slotProps,{paper:bC({},le,{style:bC({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var pP=dP;const fP=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],hP=["root"],mP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vk(e)&&"variant"!==e,slot:"Root"},gP=Kk(jA,mP)(""),vP=Kk(tP,mP)(""),bP=Kk(AA,mP)(""),yP=Go.forwardRef((function(e,t){const n=Wk({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=$_,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=yC(n,fP),R=v?VI:pP,k=y_({props:n,muiFormControl:S_(),states:["variant","error"]}),L=k.variant||w,_=bC({},n,{variant:L,classes:i}),A=(e=>{const{classes:t}=e;return t})(_),I=yC(A,hP),P=d||{standard:yg.jsx(gP,{ownerState:_}),outlined:yg.jsx(vP,{label:f,ownerState:_}),filled:yg.jsx(bP,{ownerState:_})}[L],M=ak(t,P.ref);return yg.jsx(Go.Fragment,{children:Go.cloneElement(P,bC({inputComponent:R,inputProps:bC({children:o,error:k.error,IconComponent:u,variant:L,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:bC({id:c},E)},p,{classes:p?XR(I,p.classes):I},d?d.props.inputProps:{})},g&&v&&"outlined"===L?{notched:!0}:{},{ref:M,className:jx(P.props.className,a,A.root)},!d&&{variant:L},C))})}));yP.muiName="Select";var xP=yP,SP=(e={})=>Wo.createElement(nC,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{stroke:zw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const EP={MuiAccordion:{styleOverrides:{root:{backgroundColor:zw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:zw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wo.createElement(Zw,{"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 ${zw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,borderRadius:Gw,backgroundColor:zw.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 ${zw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:zw.WHITE,color:zw.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:Gw},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:zw.GREYSCALE_0_15,backgroundColor:zw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:zw.GREEN_PALE},"&:active":{backgroundColor:zw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:zw.BLUE_PALE},"&:active":{backgroundColor:zw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.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:Gw,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:zw.GREYSCALE_0_15,backgroundColor:zw.GREYSCALE_100_60,"&:active":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:zw.PURPLE,"&.Mui-focusVisible":{borderColor:zw.PURPLE,boxShadow:`0 0 0 3px ${UR(zw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:zw.GREEN,"&.Mui-focusVisible":{borderColor:zw.GREEN,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:zw.BLUE,"&.Mui-focusVisible":{borderColor:zw.BLUE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:zw.ORANGE,"&.Mui-focusVisible":{borderColor:zw.ORANGE,boxShadow:`0 0 0 3px ${UR(zw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:zw.RED,"&.Mui-focusVisible":{borderColor:zw.RED,boxShadow:`0 0 0 3px ${UR(zw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:zw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:zw.PURPLE_PALE},"&:active":{backgroundColor:zw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:zw.PURPLE_PALE,boxShadow:`0 0 0 3px ${UR(zw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:zw.GREEN_PALE},"&:active":{backgroundColor:zw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:zw.BLUE_PALE},"&:active":{backgroundColor:zw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:zw.ORANGE_PALE},"&:active":{backgroundColor:zw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:zw.ORANGE_PALE,boxShadow:`0 0 0 3px ${UR(zw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:zw.RED_PALE},"&:active":{backgroundColor:zw.RED_DARK},"&.Mui-focusVisible":{borderColor:zw.RED_PALE,boxShadow:`0 0 0 3px ${UR(zw.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:zw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:zw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Gw,boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wo.createElement(tC,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:jw,borderRadius:Gw,color:zw.TEXT_PRIMARY,backgroundColor:zw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:zw.GREYSCALE_0_05,color:zw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:zw.GREEN,borderColor:zw.GREEN},"&.MuiChip-outlinedInfo":{color:zw.BLUE,borderColor:zw.BLUE},"&.MuiChip-outlinedWarning":{color:zw.ORANGE,borderColor:zw.ORANGE},"&.MuiChip-outlinedError":{color:zw.RED,borderColor:zw.RED}},outlined:{border:`solid 1px ${zw.GREYSCALE_0_15}`,backgroundColor:zw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Gw,boxShadow:"none",backgroundColor:zw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:zw.GREEN,borderColor:zw.GREEN},outlinedSecondary:{color:zw.BLUE,borderColor:zw.BLUE},label:{fontFamily:Kw.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wo.createElement(tC,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wo.createElement(Zw,{"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:Gw},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Gw,fontSize:$w,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:zw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${zw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:zw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:zw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:zw.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Gw,border:`solid 1px ${zw.GREYSCALE_0_15}`,color:zw.GREYSCALE_0_60,marginRight:0,width:Bw,height:Bw},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${zw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Gw,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:zw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:$w}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:jw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:zw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:zw.GREYSCALE_25,fontSize:jw,fontFamily:Kw.FONT_FAMILY,fontWeight:Uw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:zw.TEXT_PRIMARY},"&.Mui-error":{color:zw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:zw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Vw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:zw.TEXT_SECONDARY,content:"'(required)'",fontWeight:Vw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:$w,lineHeight:"16px",backgroundColor:zw.WHITE,borderRadius:Gw,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.GREYSCALE_0_05}`,borderColor:zw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.RED}`,boxShadow:`0px 0px 0px 1px ${zw.RED}, inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.GREYSCALE_0_10}`,borderColor:zw.GREYSCALE_0_10,backgroundColor:zw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:zw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:zw.GREYSCALE_0_15,borderRadius:Gw,boxShadow:`inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wo.createElement(Zw,{...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:zw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:zw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&:active":{backgroundColor:zw.GREYSCALE_0_10},"&:focus":{backgroundColor:zw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${zw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:zw.GREYSCALE_0_30,"&:hover":{backgroundColor:zw.GREYSCALE_0_0,borderColor:zw.GREYSCALE_0_15},"& ~svg":{color:zw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${zw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Gw}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:zw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:$w,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:jw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:jw,fontWeight:Uw,color:zw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Uw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${zw.GREYSCALE_0_15}, 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wo.createElement(iC,null),checkedIcon:Wo.createElement(aC,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:zw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:zw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:zw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wo.createElement(SP,null),checkedIcon:Wo.createElement(rC,null),indeterminateIcon:Wo.createElement(oC,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Gw,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:zw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:zw.GREYSCALE_0_55,color:zw.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:zw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:zw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:zw.GREYSCALE_0_55,"&:hover":{color:zw.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:zw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:zw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:$w,color:zw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Uw},secondary:{fontSize:jw,color:zw.GREYSCALE_45,fontWeight:Vw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:$w,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&:active":{backgroundColor:zw.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:$w,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:zw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:jw,borderBottom:`solid 1px ${zw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:$w,color:zw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:zw.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:zw.RED}}},"&.Mui-focusVisible":{backgroundColor:zw.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:zw.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:zw.GREEN,height:"24px","&.Mui-disabled":{color:zw.GREYSCALE_0_15}},rail:{backgroundColor:zw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${zw.GREYSCALE_0_05}`,borderRadius:Gw,boxShadow:`inset 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${zw.GREYSCALE_0_05}`,borderRadius:Gw},thumb:{height:"16px",width:"16px",borderRadius:Gw,backgroundColor:zw.WHITE,boxShadow:`0px 1px 2px 0px ${zw.GREYSCALE_0_15}, 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`,"&:hover":{borderRadius:Gw,boxShadow:`0 2px 4px 0 ${zw.GREYSCALE_0_30}, 0 0 0 1px ${zw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${zw.GREYSCALE_0_15}, 0 0 0 1px ${zw.GREYSCALE_0_06}, 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${zw.GREYSCALE_0_15}, 0 0 0 1px ${zw.GREYSCALE_0_06}, 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:zw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:zw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:zw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:zw.GREYSCALE_0_15},markLabel:{color:zw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:zw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:zw.WHITE,color:zw.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:zw.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:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:zw.GREYSCALE_0_15,borderRadius:Gw},thumb:{height:"16px",width:"16px",borderRadius:Gw,backgroundColor:zw.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:$w,fontWeight:Uw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${zw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,backgroundColor:zw.GREYSCALE_0_03,borderRadius:Gw},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:zw.GREYSCALE_25,"&.Mui-selected":{color:zw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:$w,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${zw.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${zw.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${zw.GREYSCALE_85}`,borderRight:`1px solid ${zw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Uw,backgroundColor:zw.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:zw.GREYSCALE_98,borderBottom:`1px solid ${zw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${zw.GREYSCALE_85}`,borderTop:`1px solid ${zw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:zw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:zw.GREYSCALE_0_05,"&:hover":{backgroundColor:zw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:zw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wo.createElement(lC,{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 ${zw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:$w,borderRadius:Gw,padding:"7px 16px",border:`1px solid ${zw.GREYSCALE_0_15}`,backgroundColor:zw.GREYSCALE_100_60,color:zw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:zw.GREYSCALE_0_10,border:`1px solid ${zw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:zw.GREYSCALE_0_03,border:`1px solid ${zw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:zw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`,border:`1px solid ${zw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:zw.GREYSCALE_25,backgroundColor:zw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:zw.GREYSCALE_0_10,border:`1px solid ${zw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:jw,height:24,width:24,padding:7},sizeLarge:{fontSize:Hw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:$w,borderRadius:Gw}}},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:zw.GREYSCALE_20},tooltip:{backgroundColor:zw.GREYSCALE_20,fontSize:jw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const wP={mode:"light",primary:{light:zw.GREEN_PALE,main:zw.GREEN,dark:zw.GREEN_DARK,contrastText:zw.WHITE},secondary:{light:zw.BLUE_PALE,main:zw.BLUE,dark:zw.BLUE_DARK,contrastText:zw.WHITE},error:{light:zw.RED_PALE,main:zw.RED,dark:zw.RED_DARK,contrastText:zw.WHITE},warning:{light:zw.ORANGE_PALE,main:zw.ORANGE,dark:zw.ORANGE_DARK,contrastText:zw.WHITE},success:{light:zw.GREEN_PALE,main:zw.GREEN,dark:zw.GREEN_DARK,contrastText:zw.WHITE},info:{light:zw.BLUE_PALE,main:zw.BLUE,dark:zw.BLUE_DARK,contrastText:zw.WHITE},text:{primary:zw.TEXT_PRIMARY,secondary:zw.TEXT_SECONDARY,disabled:zw.GREYSCALE_0_30},action:{hover:zw.GREYSCALE_0_03,hoverOpacity:.05,selected:zw.GREYSCALE_0_05,focus:zw.MISC_FOCUS_BORDER},amethyst:{main:zw.PURPLE,light:zw.PURPLE_PALE,dark:zw.PURPLE_DARK,contrastText:zw.WHITE},background:{paper:zw.WHITE,default:zw.GREYSCALE_95},divider:zw.GREYSCALE_0_15},CP=e=>({components:EP,palette:wP,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:$w,fontWeightLight:Ww,fontWeightRegular:Vw,fontWeightMedium:Uw,fontWeightBold:Yw,htmlFontSize:$w,fontFamily:Kw.FONT_FAMILY,button:{fontWeight:Uw,fontSize:$w,textTransform:"none"},body1:{fontSize:Hw,lineHeight:"24px"},body2:{fontSize:$w,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Bw,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Hw,fontWeight:Uw,lineHeight:"16px"},h6:{fontSize:$w,fontWeight:Uw,lineHeight:"16px"},caption:{color:zw.TEXT_SECONDARY},subtitle1:{fontSize:$w,color:zw.TEXT_SECONDARY},subtitle2:{fontSize:jw,color:zw.TEXT_SECONDARY}},shape:{borderRadius:Gw}}),RP={...Fw,MISC_FOCUS_BORDER:zw.MISC_FOCUS_BORDER},kP=CP().palette,LP={TEXT:kP.text.primary,DISABLED:kP.text.disabled,HOVER:kP.action.hover,WHITE:RP.GREYSCALE_100,BORDER_LIGHT:RP.GREYSCALE_90,BORDER_MEDIUM:RP.GREYSCALE_85,BORDER_HEAVY:RP.GREYSCALE_50,DARK_MODE_TEXT:RP.GREYSCALE_95,DARK_MODE_BORDER:RP.GREYSCALE_95,DARK_MODE_DISABLED:RP.GREYSCALE_70,DARK_MODE_BACKGROUND:RP.GREYSCALE_20},_P=(e,t)=>{const n=Gn(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()},AP=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,IP=e=>{const t=(e=>{const t=AP.exec(e);if(t){const[,e,n,r,o]=t;return gn(+n,+r,+o,+e/255)}return gn(e)})(e);return Number.isNaN(t.r)?null:t.toString()},PP=e=>{e.stopPropagation(),e.preventDefault()},MP=Kk(eA,{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)":{[`& .${$e}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${$e}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),DP=Kk(eA)({position:"absolute",height:"100%",width:"3px"}),OP=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=Go.useMemo((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?He.PixelsMin:He.PixelsMinTable,f=n?0:1,h={left:r&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Be.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},v=e=>{const t=e.clientX-d.initX;m(t)},b=e=>{PP(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=e.touches[0].clientX-d.initX;m(t)},x=e=>{PP(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&s?e=>{if(e.key===ze.LEFT||e.key===ze.RIGHT){PP(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===ze.LEFT?t-n:t+n;m(r)}else e.key===ze.SPACE||e.key===ze.ENTER?(PP(e),s(e),g()):e.key===ze.ESC&&(PP(e),s(e),m(d.initWidth))}:void 0;return Wo.createElement(MP,{className:je,isLastColumn:n,hoverColor:i,style:h,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Be.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:S,onBlur:s,"data-testid":je},Wo.createElement(DP,{className:$e}))};function TP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NP=(e,t)=>Wo.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){TP(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),Wo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),qP=Go.forwardRef(NP);function FP(){return FP=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},FP.apply(this,arguments)}const zP=Kk(eA,{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"}))),jP=Kk(qP,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),$P=Kk(PI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),HP=Kk(CA)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),BP=Kk(NI)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),GP=Kk(NI,{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")}))),WP=Kk("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"}))),VP=Kk("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),UP=Kk(t_)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),YP=Kk(oI)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function KP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XP=(e,t)=>Wo.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){KP(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),Wo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),QP=Go.forwardRef(XP);let JP={};const ZP=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Go.useState(!1),p=Go.useRef(null),f=Go.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Wo.createElement(Wo.Fragment,null,Wo.createElement(GP,{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),JP={}),null!=a&&a.length&&(d(!0),JP[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Wo.createElement(WP,null),Wo.createElement(VP,null,Wo.createElement(YP,null,Wo.createElement(o,null)),Wo.createElement(UP,{variant:"body2"},r)),null!=a&&a.length?Wo.createElement(QP,null):null),(null==a?void 0:a.length)&&Wo.createElement(tM,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=JP,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},eM=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Wo.createElement(BP,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Wo.createElement(ZP,FP({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),tM=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?Wo.createElement($P,FP({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[eM({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Wo.createElement(HP,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,nM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},rM=(e,t)=>e.some((e=>t[e]>0));function oM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iM=(e,t)=>Wo.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){oM(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),Wo.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"})),aM=Go.forwardRef(iM);function lM(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)=>Wo.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){lM(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),Wo.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"})),uM=Go.forwardRef(sM);function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dM=(e,t)=>Wo.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){cM(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),Wo.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"})),pM=Go.forwardRef(dM);function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hM=(e,t)=>Wo.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){fM(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),Wo.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"})),mM=Go.forwardRef(hM);function gM(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)=>Wo.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){gM(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),Wo.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"})),bM=Go.forwardRef(vM);function yM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xM=(e,t)=>Wo.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){yM(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),Wo.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"})),SM=Go.forwardRef(xM);function EM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wM=(e,t)=>Wo.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){EM(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),Wo.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"})),CM=Go.forwardRef(wM);function RM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kM=(e,t)=>Wo.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){RM(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),Wo.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"})),LM=Go.forwardRef(kM);function _M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AM=(e,t)=>Wo.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){_M(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),Wo.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"})),IM=Go.forwardRef(AM);function PM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MM=(e,t)=>Wo.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){PM(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),Wo.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"})),DM=Go.forwardRef(MM);let OM=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const TM=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[OM.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:aM,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:mM,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[OM.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:bM,enabled:!0}]}]),n[OM.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:DM,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:SM,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:IM,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:CM,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:LM,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:uM,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[OM.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:pM,enabled:!0}]}]),p},NM=({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=ug({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Go.useState(null),[o,i]=Go.useState(nM);return Go.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Go.useCallback((()=>i(nM)),[]),updateSelectionActionsEnabledStatus:Go.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:rM(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:rM(["qSelected"],n.qStateCounts),canSelectPossible:rM(["qOption"],n.qStateCounts),canSelectAlternative:rM(["qAlternative"],n.qStateCounts),canSelectExcluded:rM(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Go.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;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"}})}}),[c,v,g]);Go.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=Go.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Wo.createElement(zP,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&Wo.createElement(jP,{height:qe,className:Fe,"data-testid":Fe,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Wo.createElement(qP,null)),Wo.createElement(tM,{open:e,anchorEl:n.current,onClose:w,menuGroups:TM({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},qM=e=>e.isDark?{background:e.color,borderColor:LP.DARK_MODE_BORDER,color:LP.DARK_MODE_TEXT,disabledColor:LP.DARK_MODE_DISABLED,iconColor:LP.DARK_MODE_TEXT}:{background:e.color,borderColor:LP.BORDER_MEDIUM,color:LP.TEXT,disabledColor:LP.DISABLED},FM=Kk(eA,{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}`}))),zM=Kk(xP,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),jM=Kk(dA,{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)}))),$M=Kk(t_)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),HM=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Go.useMemo((()=>qM(r.background)),[r]);if(!n.active)return null;const a=o?Wo.createElement(FM,{footerStyle:i},e):null;return t?ig.createPortal(e,t):a},BM={},GM=Go.createContext(BM),WM=()=>Go.useContext(GM),VM=({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,v=Go.useMemo((()=>qM(p.background)),[p]),b=o?o.getBoundingClientRect().width:h.width,y=ug({translator:d}),x=Go.useMemo((()=>({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:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,v,g,b]);return Wo.createElement(GM.Provider,{value:x},e)};let UM=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),YM=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 KM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XM=(e,t)=>Wo.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){KM(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),Wo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),QM=Go.forwardRef(XM);function JM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZM=(e,t)=>Wo.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){JM(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),Wo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),eD=Go.forwardRef(ZM);function tD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nD=(e,t)=>Wo.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){tD(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),Wo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),rD=Go.forwardRef(nD),oD={FirstPage:eD,PreviousPage:QM,NextPage:QP,LastPage:rD,FirstPageRTL:rD,PreviousPageRTL:QP,NextPageRTL:QM,LastPageRTL:eD},iD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=WM(),u=oD[`${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}},aD=()=>{const{pageInfo:e,width:t}=WM(),n=0===e.page,{IconComponent:r,styledProps:o}=iD({type:UM.FirstPage,disabledCondition:n,pageNumber:0});return t<=YM.FirstPage?null:Wo.createElement(jM,o,Wo.createElement(r,{height:qe}))},lD=(e,t,n=!1)=>{n&&e.key===ze.TAB&&!e.shiftKey&&(PP(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))},sD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=WM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=iD({type:UM.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>lD(e,t,r):null;return o<=YM.LastPage?null:Wo.createElement(jM,FP({},l,{onKeyDown:s}),Wo.createElement(a,{height:qe}))},uD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=WM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=iD({type:UM.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>YM.FirstPage&&o>YM.LastPage)&&t.enabled?e=>lD(e,t,r):null;return Wo.createElement(jM,FP({},l,{onKeyDown:s}),Wo.createElement(a,{height:qe}))},cD=()=>{const{pageInfo:e}=WM(),t=0===e.page,{IconComponent:n,styledProps:r}=iD({type:UM.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Wo.createElement(jM,r,Wo.createElement(n,{height:qe}))},dD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=WM(),{page:o,rowsPerPage:i}=n;if(t<=YM.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Wo.createElement($M,{variant:"caption"},a)},pD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=WM(),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 Wo.createElement(Wo.Fragment,null,Wo.createElement($M,{variant:"caption",id:d},u,":"),Wo.createElement(zM,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},fD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=WM();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>YM.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Wo.createElement(Wo.Fragment,null,t.rowsPerPageOptions.map((e=>Wo.createElement("option",{key:e,value:e},e))));return Wo.createElement(pD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},hD=1e3,mD="…",gD=({totalPages:e,page:t})=>{const n=Math.min(e,hD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-hD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Wo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Wo.createElement("option",{key:"startMoreOptions",value:mD,disabled:!0},mD)),o<e-1&&a.push(Wo.createElement("option",{key:"endMoreOptions",value:mD,disabled:!0},mD)),Wo.createElement(Wo.Fragment,null,a)},vD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=WM(),{page:o}=e;if(t<=YM.SelectPage)return null;const i=Wo.createElement(gD,{totalPages:n,page:o});return Wo.createElement(pD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},bD=e=>Wo.createElement(VM,e,Wo.createElement(fD,null),Wo.createElement(vD,null),Wo.createElement(dD,null),Wo.createElement(aD,null),Wo.createElement(cD,null),Wo.createElement(uD,null),Wo.createElement(sD,null));var yD=Go.memo(bD);const xD=e=>Wo.createElement(HM,e,Wo.createElement(yD,e)),SD={},ED=Go.createContext(SD),wD=()=>Go.useContext(ED),CD=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})=>{const s=Go.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})),[n,r,t,o,i,a,l]);return yg.jsx(ED.Provider,{value:s,children:e})},RD=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=wD(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:ft;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:yg.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:yg.jsx("span",{style:{...Ct,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},kD={},LD=Go.createContext(kD),_D=()=>Go.useContext(LD),AD=({children:e,styleService:t})=>yg.jsx(LD.Provider,{value:t,children:e}),ID=21,PD=20,MD=PD,DD=16+bt+1,OD=.75;let TD=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),ND=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const qD=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===TD.Image},FD="/qHyperCubeDef",zD=-1,jD="PSEUDO-DIM",$D=e=>void 0===e?ht:e,HD=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,BD=e=>HD(e,He.PixelsDefault),GD=(e,t)=>HD(e,He.PercentageDefault)*t/100,WD=(e,t,n)=>{switch(null==t?void 0:t.type){case Be.Pixels:return BD(t.pixels);case Be.Percentage:return GD(t.percentage,e);case Be.FitToContent:case Be.Auto:default:return n}},VD=({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===jD)return e+0;const h=n(p),m=!u&&f&&d<s-1?ID:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+DD+m+h+g)}),0),UD=({layoutService:e,headersData:t,columnWidths:n,measureTextForHeader:r,estimateWidthForDimensionValue:o})=>{let i=[];const a=t.data[t.data.length-1][0],l=n.at(-1),s=VD({headers:a,layoutService:e,estimateWidthForDimensionValue:o}),u=((e,t)=>e.reduce(((e,n)=>Math.max(e,DD+t(n.qFallbackTitle))),0))(e.visibleMeasureInfo,r);let c=0;const d=a.findIndex((e=>e.id===jD));if(e.hasPseudoDimOnLeft)if(0===d){const e=Math.max(l,s,u);i=[Math.max(24,e-l),l]}else{c=VD({headers:a.slice(0,d),layoutService:e,estimateWidthForDimensionValue:o,shouldConsiderCombinatedLength:!0,measureTextForHeader:r,longestMeasureValuePossible:u});const t=Math.max(l,s,c);i=[Math.max(24,t-l),l]}else i=[Math.max(24,s-l),l];const p=i.reduce(((e,t)=>e+t),0);return{leftGridWidth:p,leftGridColumnWidths:i,leftGridFullWidth:p}};function YD({layoutService:e,tableWidth:t,headersData:n}){const r=_D(),{measureText:o}=Xo(r.header),{estimateWidth:i}=Xo({...r.dimensionValues,fontWeight:$D(r.dimensionValues.fontWeight)}),{measureText:a}=Xo({...r.dimensionValues,...r.measureLabels}),l=Go.useCallback(((r,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d,isIndentModeEnabled:p}=e,f=(e=0)=>c.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=a(r)+DD,l=Math.max(i,e);return Math.max(n,p?l:WD(t,o,l))}),0),h=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===jD)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?MD:0;return DD+o(t)+PD+r})(r);return Math.max(i,t)}),0);let m=0,g=n.data.at(-1);p&&n.size.x>1&&g&&g[0]&&(g=g[0]);const v=g.map(((n,o)=>{let a=DD;if(r&&void 0!==l&&l===n.colIdx)a=r;else{let r;n.columnWidthLocation===Qe.Pivot?r=u:n.columnWidthLocation===Qe.Dimension&&({columnWidth:r}=n);let l=0;n.isLeftDimension?l=n.id===jD?f():Math.max(h(o),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(qD(l))return He.PixelsDefault;const u=!d&&o&&n<s-1?ID:0;return DD+i(r)+u})(n,o)):n.isLeftDimension||(l=h(o),n.columnWidthLocation===Qe.Measures&&(l=f(l))),a=p?l:WD(t,r,l)}return m+=a,a}));return p&&n.size.x>1?UD({layoutService:e,headersData:n,columnWidths:v,measureTextForHeader:o,estimateWidthForDimensionValue:i}):{leftGridWidth:Math.min(t*OD,m),leftGridColumnWidths:v,leftGridFullWidth:m}}),[i,n,e,o,a,t]),[s,u]=Go.useState(l);lg((()=>{u(l())}),[l]);const c=Go.useCallback(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function KD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=_D(),{estimateWidth:c,measureText:d}=Xo(u.measureValues),{estimateWidth:p}=Xo({...u.dimensionValues,fontWeight:$D(u.dimensionValues.fontWeight)}),f=t-o-bt,h=n.at(-1),m=h===zD,g=a.length-i>n.length?ID:0,v=Go.useMemo((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(He.PixelsMax,Math.max(He.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 Be.Pixels:i(t,BD(o));break;case Be.Percentage:i(t,GD(a,f));break;case Be.FitToContent:i(t,((e,t,n)=>n?He.PixelsDefault:DD+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,qD(e)));break;case Be.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(He.AutoMin,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),b=Go.useMemo((()=>{if(m){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[m,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Go.useCallback((t=>m&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[m,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let XD;const QD=new Uint8Array(16);function JD(){if(!XD&&(XD="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!XD))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return XD(QD)}const ZD=[];for(let e=0;e<256;++e)ZD.push((e+256).toString(16).slice(1));var eO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tO(e,t,n){if(eO.randomUUID&&!t&&!e)return eO.randomUUID();const r=(e=e||{}).random||(e.rng||JD)();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 ZD[e[t+0]]+ZD[e[t+1]]+ZD[e[t+2]]+ZD[e[t+3]]+"-"+ZD[e[t+4]]+ZD[e[t+5]]+"-"+ZD[e[t+6]]+ZD[e[t+7]]+"-"+ZD[e[t+8]]+ZD[e[t+9]]+"-"+ZD[e[t+10]]+ZD[e[t+11]]+ZD[e[t+12]]+ZD[e[t+13]]+ZD[e[t+14]]+ZD[e[t+15]]}(r)}const nO=()=>{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:tO()},rO=e=>e===zD?jD:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:nO()})(e),oO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{var o,i;n&&(n.canBeResized=!0,n.isActivelySorted=r===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),n.colIdx=n.colIdx||r,n.dimensionInfoIndex===zD?n.columnWidthLocation=Qe.Measures:n.isLeftDimension?n.columnWidthLocation=Qe.Dimension:t.at(-1)===zD?n.columnWidthLocation=Qe.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Qe.Pivot))},iO=(e,t,n)=>{var r;const o=rO(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===zD?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Qe.Measures}:{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],isActivelySorted:!1,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:Qe.Dimension}},aO=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===zD?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]=iO(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=iO(e,t,o)})),l},lO=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(zD)?aO({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(aO({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++)oO({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else oO({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 sO(e){return sO="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},sO(e)}function uO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(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 dO(e,t,n){return t&&cO(e.prototype,t),n&&cO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pO(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&&hO(e,t)}function fO(e){return fO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fO(e)}function hO(e,t){return hO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hO(e,t)}function mO(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 gO(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=fO(e);if(t){var o=fO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mO(this,n)}}function vO(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 bO(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 bO(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 bO(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 yO={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:xO(e),value:xO(t),useEqualSign:n}}(n,o,i))}})),t}};function xO(e){try{return decodeURIComponent(e)}catch(t){return e}}function SO(e){if(!(this instanceof SO))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 yO.fromSearchString(t.search)}}})}function EO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}SO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},SO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=EO((t=e[r]).key),t.value?n+="=".concat(EO(t.value)):n+=t.useEqualSign?"=":"";return n};var wO,CO=function(){function e(t){uO(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return dO(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}(),RO=function(){function e(){uO(this,e)}return dO(e,[{key:"decode",value:function(e){for(var t,n="",r=new CO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),kO=function(e){return e>=0&&e<=1114111},LO=function(e){return e.match(/[\s]/)},_O=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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())&&!LO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return kO(a)?String.fromCharCode(a):"�"}}]),n}(RO),AO=function(){function e(t,n){uO(this,e),this._key=t,this._value=n}return dO(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}(),IO=function(){function e(){uO(this,e)}return dO(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 AO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return AO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||AO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),PO=function(){function e(){uO(this,e),this.clear()}return dO(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 IO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),MO=function(){var e,t,n,r=[],o=[],i=new PO;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}(),DO=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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,MO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=MO.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)&&kO(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)&&kO(r)?String.fromCharCode(r):null}}]),n}(RO),OO=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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),kO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(RO),TO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(wO=document.createElement("div"));var NO=Array.prototype.indexOf,qO=[",",".","_"," "],FO={default:[",",".","-","_"," "]},zO={width:["%"],height:["%"]},jO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},$O={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":jO.image,"background-color":jO.color,"border-color":jO.color,"border-image":jO.image,color:jO.color,icon:jO.image,"list-style-image":jO.image,"outline-color":jO.color},HO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function BO(e,t,n){var r;if(t){if(NO)return NO.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 GO(e){if(null==e)return"";var t,n=document.createTextNode(e);return wO.appendChild(n),t=wO.innerHTML,wO.removeChild(n),t}function WO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=UO(e).toLowerCase(),t=UO(t),BO(e,HO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<HO.attr_val;i++)if(t.toLowerCase().match(HO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=zO[e])||(r=FO.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]/)&&BO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function VO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=UO(e).toLowerCase(),t=UO(t),BO(e,HO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<HO.css_val.length;r++)if(t.toLowerCase().indexOf(HO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=$O[e])||(o=jO.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]/)&&BO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function UO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new DO,new OO,new _O];!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 YO=[],KO=0;KO<255;KO++)YO[KO]=KO>=48&&KO<=57||KO>=65&&KO<=90||KO>=97&&KO<=122?null:KO.toString(16);var XO=function(e){return GO(e.unsafe)},QO=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]=VO(t,n[t],!0),i+=VO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},JO=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]=WO(i,t[i],!0),o+=WO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function ZO(e,t){throw new Error(t)}var eT={canonicalize:UO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===sO(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?XO(e):"css"===e.context?(null!=e.map&&"object"!==sO(e.map)&&ZO(this,"Invalid parameter type"),QO(e)):"attr"===e.context?(null!=e.map&&"object"!==sO(e.map)&&ZO(this,"Invalid parameter type"),JO(e)):void ZO(this,"Invalid parameter type")},encodeForAttr:WO,encodeForAttr2:function(e){return WO("nonsens",e,!0)},encodeForCSS:VO,encodeForHref:function(e){UO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new SO(e),n=SO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+SO.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=qO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),BO(o,t)>=0||null==YO[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:GO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=UO(t).toLowerCase():ZO(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=vO(null!==(t=TO.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 tT=(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]},nT=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"}}},rT=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&eT.isSafeDataURL(t)?{type:TD.Image,url:t,text:e,imageSize:n,resolvedImagePosition:nT(r)}:{type:TD.Text,url:void 0,text:e},oT=(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)===ND.Attribute||null==n?void 0:n.urlLabel},iT=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:TD.Link,url:eT.encodeForHref(t),text:e}}catch(t){return{type:TD.Text,url:void 0,text:e}}},aT=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return TD.Link;case"image":return TD.Image;default:return TD.Text}})(t)){case TD.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=tT(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return rT({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return rT({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=tT(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return rT({text:n,url:t,imageSize:o,imagePosition:i})}return{type:TD.Text,url:void 0,text:e.qText}})(e,t,o,i);case TD.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===ND.Attribute){const r=oT(n,e,t),o=e.qText||r||"";return iT({text:o,url:r})}if(o===ND.Dimension){const n=oT(r,e,t)||e.qText;return iT({text:n,url:e.qText})}return{type:TD.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:TD.Text,url:void 0,text:e.qText}}},lT=(e,t)=>{var n,r;const o=t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellForegroundColor])||void 0===n?void 0:n.qText,a=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellBackgroundColor])||void 0===r?void 0:r.qText,l=a?IP(a):null,s=i?IP(i):null,u=((e,t)=>e||!t?null:Un(t)?LP.WHITE:LP.TEXT)(s,l);return{color:null!=u?u:s,background:l}},sT=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:sT(e,t)),e),uT=(e,t,n,r,o,i)=>{if(o)return sT(0,e);const a=i?mt-n:gt-r;let l=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%mt;l=e.qDown+n}return Math.min(a,sT(l,e))},cT=({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})=>{const p=!c&&e.qType===tt.NX_DIM_CELL_PSEUDO;let f="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;f=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else f=e.qText;const h={id:nO(),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:uT(e,o,i,r,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===tt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===tt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===tt.NX_DIM_CELL_NULL,isPseudoDimension:p,expressionColor:lT(s,e),selectionCellType:u?Xe.NX_CELL_LEFT:Xe.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:p?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:aT({...e,qText:f},l===zD?void 0:l.representation,s.link,s.linkLabel,s.imageUrl,s.imageLabel),...void 0!==d&&{indentLevel:d}};return t&&(t.children[h.mainAxisPageCoord-t.mainAxisPageCoord]=h),h},dT=(e,t,n,r,o,i,a)=>{const{isIndentModeEnabled:l}=o;if(!t.length)return e;let s=0;return function t(u,c,d,p=0,f=-1){e[p]||(e[p]={}),l&&f++;const h=o.leftDimensionInfoIndexes.indexOf(zD);d.forEach(((d,m)=>{var g;s+=0===m?0:1;const v=n.qTop-r.page*r.rowsPerPage,b=Math.max(0,v+s-d.qUp),y=n.qTop+s-d.qUp;if(l&&o.hasPseudoDimOnLeft&&f<=h){const e={label:d.qText,suffix:"",delimeter:"-"};if(d.qType===tt.NX_DIM_CELL_NORMAL||d.qType===tt.NX_DIM_CELL_NULL||d.qType===tt.NX_DIM_CELL_TOTAL)f<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),d={...d,indentLabel:e};else if(d.qType===tt.NX_DIM_CELL_PSEUDO){var x,S,E,w,C;e.label=null!==(x=null===(S=c||u)||void 0===S||null===(S=S.ref)||void 0===S||null===(S=S.indentLabel)||void 0===S?void 0:S.label)&&void 0!==x?x:"",e.suffix=d.qText;const t=d.qSubNodes;d={...null===(E=c||u)||void 0===E?void 0:E.ref,...d.qText?{qText:d.qText}:{},qSubNodes:t,indentLabel:e},f=null!==(w=null===(C=c||u)||void 0===C?void 0:C.indentLevel)&&void 0!==w?w:0}}let R=p;l&&(R=f===h?f+1:f,0===f&&0===h&&0===d.qSubNodes.length&&(R=0));const k=l&&void 0===(null===(g=e[p][b])||void 0===g?void 0:g.ref.qText)||!e[p][b]?cT({node:d,parent:c,root:u,x:R,y:y,pageY:b,layoutService:o,dimensionInfo:i[R],attrExprInfoIndex:a[R],isLeftColumn:!0,...l&&{isIndentModeEnabled:l,indentLevel:f}}):e[p][b];if(e[p][b]=k,d.qSubNodes.length){const e=l?0:p+1;t(u||k,k,d.qSubNodes,e,f)}}))}(null,null,t,0,-1),e},pT=(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)}))}))},fT=(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},hT=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=dT(e.grid,a,l,n,r,o,i);pT(s,n.rowsOnCurrentPage);const u=fT(s,r);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},mT=({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===tt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:nO(),ref:t,isNull:u}}))})),o},gT=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?mT({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},vT=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=n.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:cT({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:r,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},bT=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=vT(e.grid,a,l,n,r,o,i);pT(s,n.size.x);const u=fT(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},yT=e=>{if(e===zD)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,imageLabel:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo,n=t.findIndex((({id:e})=>e===Je.CellForegroundColor.toString())),r=t.findIndex((({id:e})=>e===Je.CellBackgroundColor.toString())),o=t.findIndex((({id:e})=>e===Je.ImageUrl.toString())),i=t.findIndex((({id:e})=>e===Je.ImageLabel.toString())),a=t.findIndex((({id:e})=>e===Je.Link.toString())),l=t.findIndex((({id:e})=>e===Je.LinkLabel.toString()));return{cellForegroundColor:n,cellBackgroundColor:r,imageUrl:o,link:a,linkLabel:l,imageLabel:i}},xT=(e,t,n,r,o)=>{const[i,a]=Go.useState(null),l=((e,t,n)=>Go.useMemo((()=>({left:e.map(yT),top:t.map(yT),measures:n.map(yT)})),[n,e,t]))(r,o,t.visibleMeasureInfo),s=Go.useMemo((()=>lO(t,o,r)),[t,o,r]),u=Go.useCallback((()=>e.slice(1).reduce(((e,t)=>gT({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return mT({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),c=Go.useCallback((()=>e.slice(1).reduce(((e,n)=>bT({prevData:e,nextDataPage:n,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,n,r,o)=>{const{qArea:i,qTop:a}=e,l=vT([],a,i,t,n,r,o);pT(l,t.size.x);const s=fT(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=Go.useCallback((()=>e.slice(1).reduce(((e,o)=>hT({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})),((e,t,n,r,o)=>{const{qArea:i,qLeft:a}=e,l=dT([],a,i,n,t,r,o);pT(l,n.rowsOnCurrentPage);const s=fT(l,t);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,n,r,l.left))),[e,t,n,r,l]),[p,f]=Go.useState((()=>u())),[h,m]=Go.useState((()=>c())),[g,v]=Go.useState((()=>d()));lg((()=>{f(u())}),[u]),lg((()=>{m(c())}),[c]),lg((()=>{v(d())}),[d]),lg((()=>{i&&i.forEach((e=>{f((t=>gT({prevData:t,dataPage:e,pageInfo:n}))),m((n=>bT({prevData:n,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),v((o=>hT({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})))}))}),[i]);const b=Go.useCallback((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:b}},ST=Math.sqrt(1e4),ET=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/ST),r=Math.ceil(e.qHeight/ST);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*ST,qTop:e.qTop+n*ST,qWidth:Math.min(ST,e.qWidth-o*ST),qHeight:Math.min(ST,e.qHeight-n*ST)});return t};function wT({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Go.useRef(e);return t.current=e,t})(n.page),i=e,a=Go.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,FD,e,t,!1))}),[i]),l=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(FD,e,t,!1))}),[i]),s=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(FD,e,t,!1))}),[i]),u=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(FD,e,t,!1))}),[i]),c=Go.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(FD,e.reduce(((e,t)=>[...e,...ET(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Go.useCallback(((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 Qe.Dimension:c=[{qPath:`${FD}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Qe.Measures:if(o)c=l.map(((e,t)=>({qPath:`${FD}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${FD}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Qe.Pivot:c=[{qPath:`${FD}/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]);return Go.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const CT=(e,t)=>e>t?et.Forward:e<t?et.Backward:et.None,RT=(e,t,n)=>(r,o)=>{if(r===tt.NX_DIM_CELL_PSEUDO)return zD;const i=t[n+o];return e[i]},kT=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},LT=({width:e,height:t,children:n,isLeftGrid:r})=>yg.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+bt},children:n}),_T=e=>`scrollable-container--${e}`,AT=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=wD();return yg.jsx("div",{ref:t,"data-key":_T(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 IT=Wo.forwardRef(AT);const PT=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>yg.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function MT(){return MT=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},MT.apply(this,arguments)}function DT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OT(e,t){return OT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OT(e,t)}function TT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,OT(e,t)}var NT=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function qT(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||NT(r)&&NT(o)))return!1;var r,o;return!0}function FT(e,t){var n;void 0===t&&(t=qT);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 zT(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 jT="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $T(e){cancelAnimationFrame(e.id)}function HT(e,t){var n=jT();var r={id:requestAnimationFrame((function o(){jT()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var BT=-1;function GT(e){if(void 0===e&&(e=!1),-1===BT||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),BT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return BT}var WT=null;function VT(e){if(void 0===e&&(e=!1),null===WT||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?WT="positive-descending":(t.scrollLeft=1,WT=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),WT}return WT}var UT=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function YT(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,DT(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:DT(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=FT((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=FT((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=FT((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(VT()){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&&$T(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}TT(t,e),t.getDerivedStateFromProps=function(e,t){return KT(e,t),g(e),null};var v=t.prototype;return v.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)},v.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,v=GT();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 b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v: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})},v.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()},v.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(VT()){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()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$T(this._resetIsScrollingTimeoutId)},v.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?UT:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],L=[];if(r>0&&g)for(var _=R;_<=k;_++)for(var A=E;A<=w;A++)L.push(Go.createElement(t,{columnIndex:A,data:d,isScrolling:b?x:void 0,key:f({columnIndex:A,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,A)}));var I=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return Go.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:MT({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Go.createElement(u||c||"div",{children:L,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:P}}))},v._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,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._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]},v._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}(Go.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KT=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},XT=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},QT=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},JT=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]},ZT=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?eN(e,t,n,i,0,r):tN(e,t,n,Math.max(0,i),r)},eN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=JT(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},tN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&JT(e,t,r,n).offset<o;)r+=a,a*=2;return eN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},nN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=JT(e,t,n,i),u="column"===e?QT(t,i):XT(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}},rN=YT({getColumnOffset:function(e,t,n){return JT("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return ZT("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=JT("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=JT("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:XT,getEstimatedTotalWidth:QT,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return nN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return nN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return JT("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return ZT("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=JT("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=JT("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}}),oN=function(e,t){return e};function iN(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,DT(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:DT(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=FT((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=FT((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=FT((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(VT()){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&&$T(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}TT(t,e),t.getDerivedStateFromProps=function(e,t){return aN(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?GT():0:s.scrollHeight>s.clientHeight?GT():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(VT()){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&&$T(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?oN:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(Go.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:v?y:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return Go.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:MT({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Go.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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}(Go.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var aN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},lN=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]},sN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=lN(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},uN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&lN(e,n,t).offset<r;)n+=i,i*=2;return sN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},cN=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},dN=iN({getItemOffset:function(e,t,n){return lN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:cN,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=lN(e,t,o),p=cN(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?sN(e,t,o,0,n):uN(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=lN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=lN(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 pN(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 fN=["style"],hN=["style"];function mN(e,t){var n=e.style,r=zT(e,fN),o=t.style,i=zT(t,hN);return!pN(n,o)&&!pN(r,i)}const gN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),vN=10,bN=(e,t)=>e.current===et.Backward?t:0,yN=(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},xN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,SN=({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(yN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&xN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},EN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===et.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return SN({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},wN=({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=bN(n,vN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+vN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=SN({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...EN({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},CN=(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},RN=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,kN=({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(CN(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&RN(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},LN=({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=bN(n,vN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+vN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=kN({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===et.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=kN({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},_N=async(e,t,n,r,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==et.None&&(d=LN({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==et.None&&(p=wN({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===et.None&&a.current===et.None&&(d=kN({measureData:n,pageInfo:r,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},AN=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))}}(_N,100),IN=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(_N,75),PN=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=_D();return yg.jsx("div",{style:{...e,...wt,...Lt(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},MN=({children:e,verticalAlign:t,width:n,right:r})=>yg.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}),DN=e=>{const{type:t,imageSize:n}=e;return t!==TD.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"};function ON(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TN=(e,t)=>Wo.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){ON(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),Wo.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"})),NN=Go.forwardRef(TN);function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FN=(e,t)=>Wo.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){qN(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),Wo.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"})),zN=Go.forwardRef(FN),jN=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(je)};function $N(e,t){const n=e.isActive(),[r,o]=Go.useState(new Map),[i,a]=Go.useState(null);Go.useEffect((()=>{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=Go.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Xe.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Go.useCallback((t=>async n=>{if(jN(n))return;if(e.isActive()||await e.begin([FD]),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===Xe.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[FD,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=Go.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Go.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const HN={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},BN=Go.createContext(HN),GN=()=>Go.useContext(BN),WN=({children:e,selections:t,updatePageInfo:n})=>{const r=$N(t,n);return yg.jsx(BN.Provider,{value:r,children:e})};var VN;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(VN||(VN={}));const UN={brighter:.5,darker:.3,opacity:.03},YN=(e,{cell:t,styleService:n})=>{if(e===VN.Background||e===VN.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]},KN=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return"#0aaf54";const o=YN(VN.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?YN(VN.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${_P(i=o,UN)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},XN=({cell:e,styleService:t,isCellSelected:n})=>n?"white":YN(VN.Color,{cell:e,styleService:t}),QN=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=YN(VN.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?ht:o},JN=({cell:e,styleService:t})=>YN(VN.FontStyle,{cell:e,styleService:t}),ZN=({cell:e,styleService:t})=>YN(VN.TextDecoration,{cell:e,styleService:t}),eq=e=>e?"pointer":"default",tq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},nq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=_D(),{interactions:i}=wD(),{isActive:a}=GN();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=XN({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?zN:NN;let p;return p=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,yg.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:n?c-6.5-4:void 0},onClick:l?void 0:tq({cell:e,expandOrCollapse:p})})},rq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},oq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},iq=({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}}},aq=(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"}},lq=e=>{if("alwaysFit"===e)return"contain"},sq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{url:a,text:l,imageSize:s,resolvedImagePosition:u}=e,{overflow:c,...d}=n;return yg.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...iq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:yg.jsx("img",{src:a,alt:l,style:{width:oq(s),height:rq(s),objectFit:lq(s),objectPosition:aq(s,u),...d}})})},uq=(e,t,n)=>{if(!n.isEnabled(Ge)||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}},cq={display:"flex",flexDirection:"row",alignItems:"center"},dq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},pq=(e,t,n,r)=>t?{...dq,...e.nullValues}:n?{...cq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...cq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},fq=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Ct,...!n&&Rt(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?ht:s,fontStyle:u,textDecoration:c}},hq=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==TD.Image?uq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},mq=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const{flags:l}=wD(),s=e.isNull?t.getNullValueText():r.text,u=fq(n,o,i,a,e.isNull);return r.type===TD.Image&&!e.isNull&&l.isEnabled(Ve)?yg.jsx(sq,{representation:r,styleService:n,textStyle:u,isLeftColumn:!0}):yg.jsx("span",{style:{padding:4,...u},children:s})},gq=(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},vq="flex-start",bq=(e,t)=>{return e.isNull?vq:t.type===TD.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:vq;var n},yq=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=_D(),{flags:a}=wD(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return yg.jsx(PN,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?gq(g,t):gq(m,e),E=u.visibleMeasureInfo[S],w=aT(b.ref,E.representation,-1,-1,v[S].imageUrl,v[S].imageLabel),C=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():w.text,k=!b.isNull||!Number.isNaN(+R),L=lT(v[S],b.ref),_={...pq(i,b.isNull,C,L.background),...Lt(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...wt,padding:"0px 4px",display:"flex",justifyContent:hq(b,E,w,k,a)};return yg.jsx("div",{title:R,style:{..._,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:yg.jsx(MN,{width:DN(w),verticalAlign:bq(b,w),children:yg.jsx(mq,{cell:b,layoutService:u,styleService:i,representation:w,isNumeric:k,isTotalValueCell:C,color:L.color})})})};var xq=Wo.memo(yq,mN);const Sq=(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()},Eq=({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}`},wq={...Et,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Cq=({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:v})=>{const{grid:{divider:b},contentCellHeight:y}=_D(),x={...wq,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Go.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return gN(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Go.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return gN(o,e.totalDividerIndex)}),[e,t]))(u,c.length),w=((e,t,n,r)=>Go.useCallback(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(r-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(n-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,n,r]))(s,u,d.length,c.length),C=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>Go.useCallback((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===et.None?0:vN),h=e.gridHeight+a+(l.current===et.None?0:vN);let m=AN;h*f>1500&&(m=IN),await m(t,r,n,o,e,l,s)}),[e,r,t,n,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return lg((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Go.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:yg.jsx(rN,{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:w,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:C,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:Eq,children:xq})};var Rq=Go.memo(Cq);function kq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lq=(e,t)=>Wo.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){kq(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),Wo.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"}),Wo.createElement("use",{fillRule:"evenodd"})),_q=Go.forwardRef(Lq),Aq=e=>{const[t,n]=Go.useState(!1);return lg((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},Iq=({interactions:e,dataModel:t})=>{const[n,r]=Go.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Aq([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!jN(t)&&!o&&r(!0),setIsAdjustingWidth:i}};const Pq=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=wD(),{isActive:l}=GN(),s=_D(),[,u]=Go.useState({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(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===yt.Transparent?LP.WHITE:l,u=null===(o=pn(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=pn(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}(s,e);return yg.jsx(OP,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==n?void 0:n.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},Mq=e=>e.scrollTop;function Dq(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 Oq(e){return Bx("MuiPaper",e)}Gx("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 Tq=["className","component","elevation","square","variant"],Nq=Iw("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 wg({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&&wg({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${aE("#fff",Dw(t.elevation))}, ${aE("#fff",Dw(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var qq=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Cg(n,Tq),u=wg({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return BS({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Oq,o)})(u);return yg.jsx(Nq,wg({as:o,ownerState:u,className:jx(c.root,r),ref:t},s))}));function Fq(e){return"string"==typeof e}function zq(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function jq(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const $q=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Hq(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Cg(e,$q),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=jx(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=wg({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=wg({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=zq(wg({},o,r)),l=jq(r),s=jq(o),u=t(a),c=jx(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=wg({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=wg({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(wg({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Fq(e)?t:wg({},t,{ownerState:wg({},t.ownerState,n)})}(n,wg({},s,{ref:_S(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Bq=Gx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Gq=["center","classes","className"];let Wq,Vq,Uq,Yq,Kq=e=>e;const Xq=uy(Wq||(Wq=Kq`
|
|
119
|
+
`),AL.rippleVisible,NL,550,(({theme:e})=>e.transitions.easing.easeInOut),AL.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),AL.child,AL.childLeaving,qL,550,(({theme:e})=>e.transitions.easing.easeInOut),AL.childPulsate,FL,(({theme:e})=>e.transitions.easing.easeInOut)),$L=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=yC(n,IL),[l,s]=Go.useState([]),u=Go.useRef(0),c=Go.useRef(null);Go.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Go.useRef(!1),p=Go.useRef(0),f=Go.useRef(null),h=Go.useRef(null);Go.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const m=Go.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,yg.jsx(jL,{classes:{ripple:jx(o.ripple,AL.ripple),rippleVisible:jx(o.rippleVisible,AL.rippleVisible),ripplePulsate:jx(o.ripplePulsate,AL.ripplePulsate),child:jx(o.child,AL.child),childLeaving:jx(o.childLeaving,AL.childLeaving),childPulsate:jx(o.childPulsate,AL.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Go.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]),v=Go.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Go.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((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Go.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),yg.jsx(zL,bC({className:jx(AL.root,o.root,i),ref:h},a,{children:yg.jsx(vL,{component:null,exit:!0,children:l})}))}));var HL=$L;function BL(e){return Sk("MuiButtonBase",e)}var GL=Ek("MuiButtonBase",["root","disabled","focusVisible"]);const WL=["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"],VL=Kk("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"},[`&.${GL.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),UL=Go.forwardRef((function(e,t){const n=Wk({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:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:_,touchRippleRef:A,type:I}=n,P=yC(n,WL),M=Go.useRef(null),D=Go.useRef(null),O=ak(D,A),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=gk(),[z,j]=Go.useState(!1);s&&z&&j(!1),Go.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,H]=Go.useState(!1);Go.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function G(e,t,n=c){return ik((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Go.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=ik((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Go.useRef(!1),re=ik((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=ik((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=ak(t,F,M),se=bC({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},BL,o);return n&&r&&(i.root+=` ${r}`),i})(se);return yg.jsxs(VL,bC({as:ie,className:jx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:I},ae,P,{children:[i,B?yg.jsx(HL,bC({ref:O,center:o},_)):null]}))}));var YL=UL;function KL(e){return Sk("MuiTypography",e)}Ek("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const XL=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],QL=Kk("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${QR(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>bC({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}))),JL={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},ZL={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},e_=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiTypography"}),r=(e=>ZL[e]||e)(n.color),o=PR(bC({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=JL}=o,f=yC(o,XL),h=bC({},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]||JL[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return BS({root:["root",i,"inherit"!==e.align&&`align${QR(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},KL,a)})(h);return yg.jsx(QL,bC({as:m,ref:t,ownerState:h,className:jx(g.root,a)},f))}));var t_=e_;const n_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function r_(e){const t=[],n=[];return Array.from(e.querySelectorAll(n_)).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 o_(){return!0}function i_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=r_,isEnabled:a=o_,open:l}=e,s=Go.useRef(!1),u=Go.useRef(null),c=Go.useRef(null),d=Go.useRef(null),p=Go.useRef(null),f=Go.useRef(!1),h=Go.useRef(null),m=_S(t.ref,h),g=Go.useRef(null);Go.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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 v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return yg.jsxs(Go.Fragment,{children:[yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Go.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)}}),yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const a_=Go.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Go.useState(null),l=_S(Go.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 kS(t,i),()=>{kS(t,null)}}),[t,i,o]),o){if(Go.isValidElement(n)){const e={ref:l};return Go.cloneElement(n,e)}return yg.jsx(Go.Fragment,{children:n})}return yg.jsx(Go.Fragment,{children:i?og.createPortal(n,i):i})}));function l_(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function s_(e){return parseInt(RS(e).getComputedStyle(e).paddingRight,10)||0}function u_(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&&l_(e,o)}))}function c_(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function d_(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=CS(e);return t.body===e?RS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=HS(CS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${s_(r)+e}px`;const t=CS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${s_(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=CS(r).body;else{const t=r.parentElement,n=RS(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 p_=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&&l_(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);u_(t,e.mount,e.modalRef,r,!0);const o=c_(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=c_(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=d_(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=c_(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&&l_(e.modalRef,t),u_(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&&l_(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function f_(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=p_,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Go.useRef({}),f=Go.useRef(null),h=Go.useRef(null),m=_S(h,d),[g,v]=Go.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=LS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||CS(f.current).body;o.add(x(),e),h.current&&S()})),w=Go.useCallback((()=>o.isTopModal(x())),[o]),C=LS((e=>{f.current=e,e&&(c&&w()?S():h.current&&l_(h.current,y))})),R=Go.useCallback((()=>{o.remove(x(),y)}),[y,o]);Go.useEffect((()=>()=>{R()}),[R]),Go.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=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")))},L=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=RL(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wg({},n,t);return wg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>wg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ES((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ES((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const h_=["onChange","maxRows","minRows","style","value"];function m_(e){return parseInt(e,10)||0}const g_={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function v_(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const b_=Go.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=Cg(e,h_),{current:s}=Go.useRef(null!=a),u=Go.useRef(null),c=_S(t,u),d=Go.useRef(null),p=Go.useRef(0),[f,h]=Go.useState({outerHeightStyle:0}),m=Go.useCallback((()=>{const t=u.current,n=RS(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=m_(n.paddingBottom)+m_(n.paddingTop),s=m_(n.borderBottomWidth)+m_(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},v=Go.useCallback((()=>{const e=m();v_(e)||h((t=>g(t,e)))}),[m]);vS((()=>{const e=()=>{p.current=0,(()=>{const e=m();v_(e)||og.flushSync((()=>{h((t=>g(t,e)))}))})()};const t=wS(e),n=u.current,r=RS(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((()=>{v()})),Go.useEffect((()=>{p.current=0}),[a]);return yg.jsxs(Go.Fragment,{children:[yg.jsx("textarea",wg({value:a,onChange:e=>{p.current=0,s||v(),n&&n(e)},ref:c,rows:o,style:wg({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),yg.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:wg({},g_,i,{paddingTop:0,paddingBottom:0})})]})}));function y_({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 x_=Go.createContext(void 0);function S_(){return Go.useContext(x_)}function E_(e){return yg.jsx(_R,bC({},e,{defaultTheme:Bk,themeId:vC}))}function w_(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function C_(e,t=!1){return e&&(w_(e.value)&&""!==e.value||t&&w_(e.defaultValue)&&""!==e.defaultValue)}function R_(e){return Sk("MuiInputBase",e)}var k_=Ek("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const L_=["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"],__=(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${QR(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},A_=(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]},I_=Kk("div",{name:"MuiInputBase",slot:"Root",overridesResolver:__})((({theme:e,ownerState:t})=>bC({},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",[`&.${k_.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&bC({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),P_=Kk("input",{name:"MuiInputBase",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=bC({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 bC({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] + .${k_.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},[`&.${k_.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"})})),M_=yg.jsx(E_,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),D_=Go.forwardRef((function(e,t){var n;const r=Wk({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:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:L,onKeyUp:_,placeholder:A,readOnly:I,renderSuffix:P,rows:M,slotProps:D={},slots:O={},startAdornment:T,type:N="text",value:q}=r,F=yC(r,L_),z=null!=v.value?v.value:q,{current:j}=Go.useRef(null!=z),$=Go.useRef(),H=Go.useCallback((e=>{}),[]),B=ak($,b,v.ref,H),[G,W]=Go.useState(!1),V=S_(),U=y_({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});U.focused=V?V.focused:G,Go.useEffect((()=>{!V&&d&&G&&(W(!1),w&&w())}),[V,d,G,w]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Go.useCallback((e=>{C_(e)?Y&&Y():K&&K()}),[Y,K]);ek((()=>{j&&X({value:z})}),[z,X,j]);Go.useEffect((()=>{X($.current)}),[]);let Q=g,J=v;S&&"input"===Q&&(J=bC(M?{type:void 0,minRows:M,maxRows:M}:{type:void 0,maxRows:y,minRows:x},J),Q=b_);Go.useEffect((()=>{V&&V.setAdornedStart(Boolean(T))}),[V,T]);const Z=bC({},r,{color:U.color||"primary",disabled:U.disabled,endAdornment:f,error:U.error,focused:U.focused,formControl:V,fullWidth:h,hiddenLabel:U.hiddenLabel,multiline:S,size:U.size,startAdornment:T,type:N}),ee=(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 BS({root:["root",`color${QR(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${QR(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"]},R_,t)})(Z),te=O.root||s.Root||I_,ne=D.root||u.root||{},re=O.input||s.Input||P_;return J=bC({},J,null!=(n=D.input)?n:u.input),yg.jsxs(Go.Fragment,{children:[!p&&M_,yg.jsxs(te,bC({},ne,!CL(te)&&{ownerState:bC({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},F,{className:jx(ee.root,ne.className,l,I&&"MuiInputBase-readOnly"),children:[T,yg.jsx(x_.Provider,{value:null,children:yg.jsx(re,bC({ownerState:Z,"aria-invalid":U.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:U.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:A,readOnly:I,required:U.required,rows:M,value:z,onKeyDown:L,onKeyUp:_,type:N},J,!CL(re)&&{as:Q,ownerState:bC({},Z,J.ownerState)},{ref:B,className:jx(ee.input,J.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),v.onBlur&&v.onBlur(e),V&&V.onBlur?V.onBlur(e):W(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(gC(1));X({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{U.disabled?e.stopPropagation():(k&&k(e),v.onFocus&&v.onFocus(e),V&&V.onFocus?V.onFocus(e):W(!0))}}))}),f,P?P(bC({},U,{startAdornment:T})):null]}))]})}));var O_=D_;function T_(e){return Sk("MuiInput",e)}var N_=bC({},k_,Ek("MuiInput",["root","underline","input"]));function q_(e){return Sk("MuiOutlinedInput",e)}var F_=bC({},k_,Ek("MuiOutlinedInput",["root","notchedOutline","input"]));function z_(e){return Sk("MuiFilledInput",e)}var j_=bC({},k_,Ek("MuiFilledInput",["root","underline","input"])),$_=function(e,t){function n(n,r){return yg.jsx(tL,bC({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=tL.muiName,Go.memo(Go.forwardRef(n))}(yg.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const H_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],B_={entering:{opacity:1},entered:{opacity:1}},G_=Go.forwardRef((function(e,t){const n=Gk(),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:v=dL}=e,b=yC(e,H_),y=Go.useRef(null),x=ak(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{bL(e);const r=yL({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)})),C=S(c),R=S(h),k=S((e=>{const t=yL({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)})),L=S(f);return yg.jsx(v,bC({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Go.cloneElement(a,bC({style:bC({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},B_[e],m,a.props.style),ref:x},t))}))}));var W_=G_;function V_(e){return Sk("MuiBackdrop",e)}Ek("MuiBackdrop",["root","invisible"]);const U_=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Y_=Kk("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>bC({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"}))),K_=Go.forwardRef((function(e,t){var n,r,o;const i=Wk({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=W_,transitionDuration:g}=i,v=yC(i,U_),b=bC({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},V_,t)})(b),x=null!=(n=f.root)?n:c.root;return yg.jsx(m,bC({in:p,timeout:g},v,{children:yg.jsx(Y_,bC({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:jx(y.root,l,null==x?void 0:x.className),ownerState:bC({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var X_=K_;var Q_=Ek("MuiBox",["root"]);const J_=Hk(),Z_=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=EC("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(SR);return Go.forwardRef((function(e,a){const l=LR(n),s=PR(e),{className:u,component:c="div"}=s,d=Cg(s,MR);return yg.jsx(i,wg({as:c,ref:a,className:jx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:vC,defaultTheme:J_,defaultClassName:Q_.root,generateClassName:yk.generate});var eA=Z_;function tA(e){return Sk("MuiButton",e)}var nA=Ek("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 rA=Go.createContext({});var oA=Go.createContext(void 0);const iA=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],aA=e=>bC({},"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}}),lA=Kk(YL,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${QR(n.color)}`],t[`size${QR(n.size)}`],t[`${n.variant}Size${QR(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 bC({},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":bC({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:UR(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})`:UR(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})`:UR(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":bC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${nA.focusVisible}`]:bC({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${nA.disabled}`]:bC({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 ${UR(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"},[`&.${nA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nA.disabled}`]:{boxShadow:"none"}})),sA=Kk("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${QR(n.size)}`]]}})((({ownerState:e})=>bC({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},aA(e)))),uA=Kk("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${QR(n.size)}`]]}})((({ownerState:e})=>bC({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},aA(e)))),cA=Go.forwardRef((function(e,t){const n=Go.useContext(rA),r=Go.useContext(oA),o=Wk({props:vk(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:v,variant:b="text"}=o,y=yC(o,iA),x=bC({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:h,size:m,type:v,variant:b}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return bC({},a,BS({root:["root",i,`${i}${QR(t)}`,`size${QR(o)}`,`${i}Size${QR(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${QR(o)}`],endIcon:["endIcon",`iconSize${QR(o)}`]},tA,a))})(x),E=g&&yg.jsx(sA,{className:S.startIcon,ownerState:x,children:g}),w=p&&yg.jsx(uA,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return yg.jsxs(lA,bC({ownerState:x,className:jx(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:jx(S.focusVisible,f),ref:t,type:v},y,{classes:S,children:[E,i,w]}))}));var dA=cA;function pA(e){return Sk("MuiModal",e)}Ek("MuiModal",["root","hidden","backdrop"]);const fA=["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"],hA=Kk("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})=>bC({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),mA=Kk(X_,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),gA=Go.forwardRef((function(e,t){var n,r,o,i,a,l;const s=Wk({name:"MuiModal",props:e}),{BackdropComponent:u=mA,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:_,slots:A}=s,I=yC(s,fA),P=bC({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=f_(bC({},P,{rootRef:t})),z=bC({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},pA,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:hA,B=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==_?void 0:_.root)?a:v.root,W=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,V=_L({elementType:H,externalSlotProps:G,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:jx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=_L({elementType:B,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(bC({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?yg.jsx(a_,{ref:T,container:h,disablePortal:S,children:yg.jsxs(H,bC({},V,{children:[!C&&u?yg.jsx(B,bC({},U)):null,yg.jsx(i_,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Go.cloneElement(f,$)})]}))}):null}));var vA=gA;function bA(e){return Sk("MuiDivider",e)}var yA=Ek("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const xA=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],SA=Kk("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})=>bC({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)`:UR(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})=>bC({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>bC({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>bC({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>bC({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),EA=Kk("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>bC({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)`}))),wA=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,xA),h=bC({},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 BS({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"]},bA,r)})(h);return yg.jsx(SA,bC({as:a,className:jx(m.root,i),role:c,ref:t,ownerState:h},f,{children:o?yg.jsx(EA,{className:m.wrapper,ownerState:h,children:o}):null}))}));wA.muiSkipListHighlight=!0;var CA=wA;const RA=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],kA=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...__(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 bC({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}},[`&.${j_.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${j_.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"},[`&.${j_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${j_.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(.${j_.disabled}, .${j_.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${j_.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&bC({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}))})),LA=Kk(P_,{name:"MuiFilledInput",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>bC({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}))),_A=Go.forwardRef((function(e,t){var n,r,o,i;const a=Wk({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=yC(a,RA),g=bC({},a,{fullWidth:u,inputComponent:c,multiline:d,type:h}),v=(e=>{const{classes:t,disableUnderline:n}=e;return bC({},t,BS({root:["root",!n&&"underline"],input:["input"]},z_,t))})(a),b={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?XR(b,null!=p?p:s):b,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:kA,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:LA;return yg.jsx(O_,bC({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:h},m,{classes:v}))}));_A.muiName="Input";var AA=_A;const IA=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function PA(e){return`scale(${e}, ${e**2})`}const MA={entering:{opacity:1,transform:PA(1)},entered:{opacity:1,transform:"none"}},DA="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),OA=Go.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=dL}=e,g=yC(e,IA),v=Go.useRef(),b=Go.useRef(),y=Gk(),x=Go.useRef(null),S=ak(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{bL(e);const{duration:n,delay:r,easing:o}=yL({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:DA?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=yL({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:DA?o:.666*o,delay:DA?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=PA(.75),c&&c(e)})),_=E(d);return Go.useEffect((()=>()=>{clearTimeout(v.current)}),[]),yg.jsx(m,bC({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:_,onExiting:k,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Go.cloneElement(o,bC({style:bC({opacity:0,transform:PA(.75),visibility:"exited"!==e||a?void 0:"hidden"},MA[e],f,o.props.style),ref:S},t))}))}));OA.muiSupportAuto=!0;var TA=OA;const NA=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],qA=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...__(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})`),bC({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"},[`&.${N_.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${N_.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(.${N_.disabled}, .${N_.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${N_.disabled}:before`]:{borderBottomStyle:"dotted"}})})),FA=Kk(P_,{name:"MuiInput",slot:"Input",overridesResolver:A_})({}),zA=Go.forwardRef((function(e,t){var n,r,o,i;const a=Wk({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=yC(a,NA),v=(e=>{const{classes:t,disableUnderline:n}=e;return bC({},t,BS({root:["root",!n&&"underline"],input:["input"]},T_,t))})(a),b={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?XR(null!=f?f:u,b):b,x=null!=(n=null!=(r=h.root)?r:s.Root)?n:qA,S=null!=(o=null!=(i=h.input)?i:s.Input)?o:FA;return yg.jsx(O_,bC({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:v}))}));zA.muiName="Input";var jA=zA;function $A(e){return Sk("MuiLink",e)}var HA=Ek("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const BA={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var GA=({theme:e,ownerState:t})=>{const n=(e=>BA[e]||e)(t.color),r=IC(e,`palette.${n}`,!1)||t.color,o=IC(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:UR(r,.4)};const WA=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],VA=Kk(t_,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${QR(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>bC({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&bC({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:GA({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"},[`&.${HA.focusVisible}`]:{outline:"auto"}}))),UA=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,WA),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=gk(),[v,b]=Go.useState(!1),y=ak(t,g),x=bC({},n,{color:o,component:i,focusVisible:v,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return BS({root:["root",`underline${QR(o)}`,"button"===n&&"button",r&&"focusVisible"]},$A,t)})(x);return yg.jsx(VA,bC({color:o,className:jx(S.root,r),classes:s,component:i,onBlur:e=>{h(e),!1===f.current&&b(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&b(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(BA).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var YA=UA;var KA=Go.createContext({});function XA(e){return Sk("MuiList",e)}Ek("MuiList",["root","padding","dense","subheader"]);const QA=["children","className","component","dense","disablePadding","subheader"],JA=Kk("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})=>bC({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var ZA=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=yC(n,QA),c=Go.useMemo((()=>({dense:a})),[a]),d=bC({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},XA,t)})(d);return yg.jsx(KA.Provider,{value:c,children:yg.jsxs(JA,bC({as:i,className:jx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function eI(e){return Sk("MuiListItemIcon",e)}var tI=Ek("MuiListItemIcon",["root","alignItemsFlexStart"]);const nI=["className"],rI=Kk("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})=>bC({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var oI=Go.forwardRef((function(e,t){const n=Wk({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=yC(n,nI),i=bC({},n,{alignItems:Go.useContext(KA).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return BS({root:["root","flex-start"===t&&"alignItemsFlexStart"]},eI,n)})(i);return yg.jsx(rI,bC({className:jx(a.root,r),ownerState:i,ref:t},o))}));var iI=Ek("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const aI=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lI(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sI(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uI(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 cI(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")&&uI(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var dI=Go.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=yC(e,aI),p=Go.useRef(null),f=Go.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ek((()=>{r&&p.current.focus()}),[r]),Go.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)}(JR(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=ak(p,t);let m=-1;Go.Children.forEach(i,((e,t)=>{Go.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=Go.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),Go.cloneElement(e,t)}return e}));return yg.jsx(ZA,bC({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=JR(t).activeElement;if("ArrowDown"===n)e.preventDefault(),cI(t,r,s,l,lI);else if("ArrowUp"===n)e.preventDefault(),cI(t,r,s,l,sI);else if("Home"===n)e.preventDefault(),cI(t,null,s,l,lI);else if("End"===n)e.preventDefault(),cI(t,null,s,l,sI);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&&uI(r,o);o.previousKeyMatched&&(s||cI(t,r,!1,l,lI,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function pI(e){return Sk("MuiPopover",e)}Ek("MuiPopover",["root","paper"]);const fI=["onEntering"],hI=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],mI=["slotProps"];function gI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vI(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bI(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function yI(e){return"function"==typeof e?e():e}const xI=Kk(vA,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),SI=Kk(wL,{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 EI=Go.forwardRef((function(e,t){var n,r,o;const i=Wk({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:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=TA,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=yC(i.TransitionProps,fI),k=yC(i,hI),L=null!=(n=null==y?void 0:y.paper)?n:v,_=Go.useRef(),A=ak(_,L.ref),I=bC({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},pI,t)})(I),M=Go.useCallback((()=>{if("anchorPosition"===c)return u;const e=yI(l),t=(e&&1===e.nodeType?e:JR(_.current).body).getBoundingClientRect();return{top:t.top+gI(t,s.vertical),left:t.left+vI(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Go.useCallback((e=>({vertical:gI(e,x.vertical),horizontal:vI(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Go.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:bI(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=ZR(yI(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:bI(n)}}),[l,c,M,D,m]),[T,N]=Go.useState(g),q=Go.useCallback((()=>{const e=_.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Go.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Go.useEffect((()=>{g&&q()})),Go.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Go.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}((()=>{q()})),t=ZR(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?JR(yI(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:xI,$=null!=(o=null==b?void 0:b.paper)?o:SI,H=_L({elementType:$,externalSlotProps:bC({},L,{style:T?L.style:bC({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:I,className:jx(P.paper,null==L?void 0:L.className)}),B=_L({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:jx(P.root,p)}),{slotProps:G}=B,W=yC(B,mI);return yg.jsx(j,bC({},W,!CL(j)&&{slotProps:G,disableScrollLock:C},{children:yg.jsx(S,bC({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:yg.jsx($,bC({},H,{children:d}))}))}))}));function wI(e){return Sk("MuiMenu",e)}Ek("MuiMenu",["root","paper","list"]);const CI=["onEntering"],RI=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],kI={vertical:"top",horizontal:"right"},LI={vertical:"top",horizontal:"left"},_I=Kk(EI,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),AI=Kk(SI,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),II=Kk(dI,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var PI=Go.forwardRef((function(e,t){var n,r;const o=Wk({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:v={},slotProps:b={}}=o,y=yC(o.TransitionProps,CI),x=yC(o,RI),S=Gk(),E="rtl"===S.direction,w=bC({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},wI,t)})(w),R=i&&!s&&d,k=Go.useRef(null);let L=-1;Go.Children.map(a,((e,t)=>{Go.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===L)&&(L=t))}));const _=null!=(n=v.paper)?n:AI,A=null!=(r=b.paper)?r:p,I=_L({elementType:v.root,externalSlotProps:b.root,ownerState:w,className:[C.root,l]}),P=_L({elementType:_,externalSlotProps:A,ownerState:w,className:C.paper});return yg.jsx(_I,bC({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?kI:LI,slots:{paper:_,root:v.root},slotProps:{root:I,paper:P},open:d,ref:t,transitionDuration:h,TransitionProps:bC({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),m&&m(e,t)}},y),ownerState:w},x,{classes:f,children:yg.jsx(II,bC({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===L||s),autoFocusItem:R,variant:g},u,{className:jx(C.list,u.className),children:a}))}))}));function MI(e){return Sk("MuiMenuItem",e)}var DI=Ek("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const OI=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],TI=Kk(YL,{shouldForwardProp:e=>Vk(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})=>bC({},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"}},[`&.${DI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:UR(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${DI.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:UR(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${DI.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:UR(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})`:UR(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${DI.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${DI.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yA.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yA.inset}`]:{marginLeft:52},[`& .${iI.root}`]:{marginTop:0,marginBottom:0},[`& .${iI.inset}`]:{paddingLeft:36},[`& .${tI.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&bC({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tI.root} svg`]:{fontSize:"1.25rem"}}))));var NI=Go.forwardRef((function(e,t){const n=Wk({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=yC(n,OI),f=Go.useContext(KA),h=Go.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Go.useRef(null);ek((()=>{r&&m.current&&m.current.focus()}),[r]);const g=bC({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return bC({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},MI,a))})(n),b=ak(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),yg.jsx(KA.Provider,{value:h,children:yg.jsx(TI,bC({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:jx(v.focusVisible,s),className:jx(v.root,d)},p,{ownerState:g,classes:v}))})}));function qI(e){return Sk("MuiNativeSelect",e)}var FI=Ek("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const zI=["className","disabled","error","IconComponent","inputRef","variant"],jI=({ownerState:e,theme:t})=>bC({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":bC({},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"},[`&.${FI.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}}),$I=Kk("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Vk,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${FI.multiple}`]:t.multiple}]}})(jI),HI=({ownerState:e,theme:t})=>bC({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${FI.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),BI=Kk("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${QR(n.variant)}`],n.open&&t.iconOpen]}})(HI),GI=Go.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=yC(e,zI),u=bC({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${QR(n)}`,i&&"iconOpen",r&&"disabled"]},qI,t)})(u);return yg.jsxs(Go.Fragment,{children:[yg.jsx($I,bC({ownerState:u,className:jx(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:yg.jsx(BI,{as:i,ownerState:u,className:c.icon})]})}));var WI,VI=GI;const UI=["children","classes","className","label","notched"],YI=Kk("fieldset",{shouldForwardProp:Vk})({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%"}),KI=Kk("legend",{shouldForwardProp:Vk})((({ownerState:e,theme:t})=>bC({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&&bC({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 XI=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],QI=Kk(I_,{shouldForwardProp:e=>Vk(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:__})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return bC({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&&bC({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),JI=Kk((function(e){const{className:t,label:n,notched:r}=e,o=yC(e,UI),i=null!=n&&""!==n,a=bC({},e,{notched:r,withLabel:i});return yg.jsx(YI,bC({"aria-hidden":!0,className:t,ownerState:a},o,{children:yg.jsx(KI,{ownerState:a,children:i?yg.jsx("span",{children:n}):WI||(WI=yg.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}})),ZI=Kk(P_,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:A_})((({theme:e,ownerState:t})=>bC({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}))),eP=Go.forwardRef((function(e,t){var n,r,o,i,a;const l=Wk({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=yC(l,XI),v=(e=>{const{classes:t}=e;return bC({},t,BS({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},q_,t))})(l),b=S_(),y=y_({props:l,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=bC({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:QI,E=null!=(o=null!=(i=h.input)?i:s.Input)?o:ZI;return yg.jsx(O_,bC({slots:{root:S,input:E},renderSuffix:e=>yg.jsx(JI,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=yg.jsxs(Go.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:bC({},v,{notchedOutline:null})}))}));eP.muiName="Input";var tP=eP;function nP(e){return Sk("MuiSelect",e)}var rP,oP=Ek("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const iP=["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"],aP=Kk("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${oP.select}`]:t.select},{[`&.${oP.select}`]:t[n.variant]},{[`&.${oP.error}`]:t.error},{[`&.${oP.multiple}`]:t.multiple}]}})(jI,{[`&.${oP.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),lP=Kk("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${QR(n.variant)}`],n.open&&t.iconOpen]}})(HI),sP=Kk("input",{shouldForwardProp:e=>Uk(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 uP(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function cP(e){return null==e||"string"==typeof e&&!e.trim()}const dP=Go.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:v={},multiple:b,name:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:L,SelectDisplayProps:_={},tabIndex:A,value:I,variant:P="standard"}=e,M=yC(e,iP),[D,O]=ok({controlled:I,default:c,name:"Select"}),[T,N]=ok({controlled:R,default:u,name:"Select"}),q=Go.useRef(null),F=Go.useRef(null),[z,j]=Go.useState(null),{current:$}=Go.useRef(null!=R),[H,B]=Go.useState(),G=ak(t,m),W=Go.useCallback((e=>{F.current=e,e&&j(e)}),[]),V=null==z?void 0:z.parentNode;Go.useImperativeHandle(G,(()=>({focus:()=>{F.current.focus()},node:q.current,value:D})),[D]),Go.useEffect((()=>{u&&T&&z&&!$&&(B(a?null:V.clientWidth),F.current.focus())}),[z,a]),Go.useEffect((()=>{i&&F.current.focus()}),[i]),Go.useEffect((()=>{if(!g)return;const e=JR(F.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&F.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const U=(e,t)=>{e?C&&C(t):E&&E(t),$||(B(a?null:V.clientWidth),N(e))},Y=Go.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(b){n=Array.isArray(D)?D.slice():[];const t=D.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),D!==n&&(O(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}b||U(!1,t)}},X=null!==z&&T;let Q,J;delete M["aria-invalid"];const Z=[];let ee=!1;(C_({value:D})||p)&&(L?Q=L(D):ee=!0);const te=Y.map((e=>{if(!Go.isValidElement(e))return null;let t;if(b){if(!Array.isArray(D))throw new Error(gC(2));t=D.some((t=>uP(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=uP(D,e.props.value),t&&ee&&(J=e.props.children);return Go.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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})}));ee&&(Q=b?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):J);let ne,re=H;!a&&$&&z&&(re=V.clientWidth),ne=void 0!==A?A:d?null:0;const oe=_.id||(y?`mui-component-select-${y}`:void 0),ie=bC({},e,{variant:P,value:D,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return BS({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${QR(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},nP,t)})(ie),le=bC({},v.PaperProps,null==(n=v.slotProps)?void 0:n.paper),se=rk();return yg.jsxs(Go.Fragment,{children:[yg.jsx(aP,bC({ref:W,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),U(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),F.current.focus(),U(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:D,name:y}}),x(e))},onFocus:w},_,{ownerState:ie,className:jx(_.className,ae.select,s),id:oe,children:cP(Q)?rP||(rP=yg.jsx("span",{className:"notranslate",children:""})):Q})),yg.jsx(sP,bC({"aria-invalid":f,value:Array.isArray(D)?D.join(","):D,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(O(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},M)),yg.jsx(lP,{as:h,className:ae.icon,ownerState:ie}),yg.jsx(PI,bC({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{U(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},v,{MenuListProps:bC({"aria-labelledby":g,role:"listbox","aria-multiselectable":b?"true":void 0,disableListWrap:!0,id:se},v.MenuListProps),slotProps:bC({},v.slotProps,{paper:bC({},le,{style:bC({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var pP=dP;const fP=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],hP=["root"],mP={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Vk(e)&&"variant"!==e,slot:"Root"},gP=Kk(jA,mP)(""),vP=Kk(tP,mP)(""),bP=Kk(AA,mP)(""),yP=Go.forwardRef((function(e,t){const n=Wk({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=$_,id:c,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:v=!1,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=yC(n,fP),R=v?VI:pP,k=y_({props:n,muiFormControl:S_(),states:["variant","error"]}),L=k.variant||w,_=bC({},n,{variant:L,classes:i}),A=(e=>{const{classes:t}=e;return t})(_),I=yC(A,hP),P=d||{standard:yg.jsx(gP,{ownerState:_}),outlined:yg.jsx(vP,{label:f,ownerState:_}),filled:yg.jsx(bP,{ownerState:_})}[L],M=ak(t,P.ref);return yg.jsx(Go.Fragment,{children:Go.cloneElement(P,bC({inputComponent:R,inputProps:bC({children:o,error:k.error,IconComponent:u,variant:L,type:void 0,multiple:g},v?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:h,MenuProps:m,onClose:b,onOpen:y,open:x,renderValue:S,SelectDisplayProps:bC({id:c},E)},p,{classes:p?XR(I,p.classes):I},d?d.props.inputProps:{})},g&&v&&"outlined"===L?{notched:!0}:{},{ref:M,className:jx(P.props.className,a,A.root)},!d&&{variant:L},C))})}));yP.muiName="Select";var xP=yP,SP=(e={})=>Wo.createElement(nC,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{stroke:zw.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const EP={MuiAccordion:{styleOverrides:{root:{backgroundColor:zw.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:zw.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wo.createElement(Zw,{"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 ${zw.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,borderRadius:Gw,backgroundColor:zw.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 ${zw.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:zw.WHITE,color:zw.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:Gw},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:zw.GREYSCALE_0_15,backgroundColor:zw.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:zw.GREEN_PALE},"&:active":{backgroundColor:zw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:zw.BLUE_PALE},"&:active":{backgroundColor:zw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.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:Gw,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:zw.GREYSCALE_0_15,backgroundColor:zw.GREYSCALE_100_60,"&:active":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:zw.PURPLE,"&.Mui-focusVisible":{borderColor:zw.PURPLE,boxShadow:`0 0 0 3px ${UR(zw.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:zw.GREEN,"&.Mui-focusVisible":{borderColor:zw.GREEN,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:zw.BLUE,"&.Mui-focusVisible":{borderColor:zw.BLUE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:zw.ORANGE,"&.Mui-focusVisible":{borderColor:zw.ORANGE,boxShadow:`0 0 0 3px ${UR(zw.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:zw.RED,"&.Mui-focusVisible":{borderColor:zw.RED,boxShadow:`0 0 0 3px ${UR(zw.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:zw.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:zw.PURPLE_PALE},"&:active":{backgroundColor:zw.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:zw.PURPLE_PALE,boxShadow:`0 0 0 3px ${UR(zw.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:zw.GREEN_PALE},"&:active":{backgroundColor:zw.GREEN_DARK},"&.Mui-focusVisible":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:zw.BLUE_PALE},"&:active":{backgroundColor:zw.BLUE_DARK},"&.Mui-focusVisible":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:zw.ORANGE_PALE},"&:active":{backgroundColor:zw.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:zw.ORANGE_PALE,boxShadow:`0 0 0 3px ${UR(zw.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:zw.RED_PALE},"&:active":{backgroundColor:zw.RED_DARK},"&.Mui-focusVisible":{borderColor:zw.RED_PALE,boxShadow:`0 0 0 3px ${UR(zw.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:zw.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:zw.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Gw,boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wo.createElement(tC,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:jw,borderRadius:Gw,color:zw.TEXT_PRIMARY,backgroundColor:zw.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:zw.GREYSCALE_0_05,color:zw.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:zw.GREEN,borderColor:zw.GREEN},"&.MuiChip-outlinedInfo":{color:zw.BLUE,borderColor:zw.BLUE},"&.MuiChip-outlinedWarning":{color:zw.ORANGE,borderColor:zw.ORANGE},"&.MuiChip-outlinedError":{color:zw.RED,borderColor:zw.RED}},outlined:{border:`solid 1px ${zw.GREYSCALE_0_15}`,backgroundColor:zw.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Gw,boxShadow:"none",backgroundColor:zw.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:zw.GREEN,borderColor:zw.GREEN},outlinedSecondary:{color:zw.BLUE,borderColor:zw.BLUE},label:{fontFamily:Kw.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wo.createElement(tC,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wo.createElement(Zw,{"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:Gw},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Gw,fontSize:$w,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:zw.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${zw.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:zw.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:zw.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:zw.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:Gw,border:`solid 1px ${zw.GREYSCALE_0_15}`,color:zw.GREYSCALE_0_60,marginRight:0,width:Bw,height:Bw},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${zw.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Gw,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:zw.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:$w}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:jw,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:zw.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:zw.GREYSCALE_25,fontSize:jw,fontFamily:Kw.FONT_FAMILY,fontWeight:Uw,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:zw.TEXT_PRIMARY},"&.Mui-error":{color:zw.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:zw.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Vw,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:zw.TEXT_SECONDARY,content:"'(required)'",fontWeight:Vw,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:$w,lineHeight:"16px",backgroundColor:zw.WHITE,borderRadius:Gw,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.GREYSCALE_0_05}`,borderColor:zw.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.RED}`,boxShadow:`0px 0px 0px 1px ${zw.RED}, inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${zw.GREYSCALE_0_10}`,borderColor:zw.GREYSCALE_0_10,backgroundColor:zw.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:zw.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:zw.GREYSCALE_0_15,borderRadius:Gw,boxShadow:`inset 0 2px 0 0 ${zw.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wo.createElement(Zw,{...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:zw.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:zw.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&:active":{backgroundColor:zw.GREYSCALE_0_10},"&:focus":{backgroundColor:zw.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${zw.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:zw.GREYSCALE_0_30,"&:hover":{backgroundColor:zw.GREYSCALE_0_0,borderColor:zw.GREYSCALE_0_15},"& ~svg":{color:zw.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${zw.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Gw}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:zw.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:zw.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:$w,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:jw,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:jw,fontWeight:Uw,color:zw.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Uw}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${zw.GREYSCALE_0_15}, 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wo.createElement(iC,null),checkedIcon:Wo.createElement(aC,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:zw.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:zw.GREYSCALE_0_20}},"&.Mui-disabled":{fill:zw.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wo.createElement(SP,null),checkedIcon:Wo.createElement(rC,null),indeterminateIcon:Wo.createElement(oC,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Gw,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:zw.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:zw.GREYSCALE_0_55,color:zw.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:zw.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:zw.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:zw.GREYSCALE_0_55,"&:hover":{color:zw.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:zw.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:zw.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:$w,color:zw.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Uw},secondary:{fontSize:jw,color:zw.GREYSCALE_45,fontWeight:Vw,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:$w,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&:active":{backgroundColor:zw.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:$w,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:zw.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:jw,borderBottom:`solid 1px ${zw.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:$w,color:zw.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:zw.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:zw.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:zw.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:zw.RED}}},"&.Mui-focusVisible":{backgroundColor:zw.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:zw.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:zw.GREEN,height:"24px","&.Mui-disabled":{color:zw.GREYSCALE_0_15}},rail:{backgroundColor:zw.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${zw.GREYSCALE_0_05}`,borderRadius:Gw,boxShadow:`inset 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${zw.GREYSCALE_0_05}`,borderRadius:Gw},thumb:{height:"16px",width:"16px",borderRadius:Gw,backgroundColor:zw.WHITE,boxShadow:`0px 1px 2px 0px ${zw.GREYSCALE_0_15}, 0px 0px 0px 1px ${zw.GREYSCALE_0_05}`,"&:hover":{borderRadius:Gw,boxShadow:`0 2px 4px 0 ${zw.GREYSCALE_0_30}, 0 0 0 1px ${zw.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${zw.GREYSCALE_0_15}, 0 0 0 1px ${zw.GREYSCALE_0_06}, 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${zw.GREYSCALE_0_15}, 0 0 0 1px ${zw.GREYSCALE_0_06}, 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:zw.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:zw.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:zw.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:zw.GREYSCALE_0_15},markLabel:{color:zw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:zw.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:zw.WHITE,color:zw.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:zw.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:zw.GREEN_PALE,boxShadow:`0 0 0 3px ${UR(zw.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:zw.BLUE_PALE,boxShadow:`0 0 0 3px ${UR(zw.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:zw.GREYSCALE_0_15,borderRadius:Gw},thumb:{height:"16px",width:"16px",borderRadius:Gw,backgroundColor:zw.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:$w,fontWeight:Uw,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${zw.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${zw.MISC_FOCUS_BORDER}`,backgroundColor:zw.GREYSCALE_0_03,borderRadius:Gw},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:zw.GREYSCALE_25,"&.Mui-selected":{color:zw.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:$w,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${zw.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${zw.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${zw.GREYSCALE_85}`,borderRight:`1px solid ${zw.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Uw,backgroundColor:zw.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:zw.GREYSCALE_98,borderBottom:`1px solid ${zw.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${zw.GREYSCALE_85}`,borderTop:`1px solid ${zw.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:zw.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:zw.GREYSCALE_0_05,"&:hover":{backgroundColor:zw.GREYSCALE_0_03}},"&&:hover":{backgroundColor:zw.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wo.createElement(lC,{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 ${zw.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:$w,borderRadius:Gw,padding:"7px 16px",border:`1px solid ${zw.GREYSCALE_0_15}`,backgroundColor:zw.GREYSCALE_100_60,color:zw.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:zw.GREYSCALE_0_10,border:`1px solid ${zw.GREYSCALE_0_30}`},"&:hover":{backgroundColor:zw.GREYSCALE_0_03,border:`1px solid ${zw.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:zw.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${zw.MISC_FOCUS_BORDER}`,border:`1px solid ${zw.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:zw.GREYSCALE_25,backgroundColor:zw.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:zw.GREYSCALE_0_10,border:`1px solid ${zw.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:jw,height:24,width:24,padding:7},sizeLarge:{fontSize:Hw,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:$w,borderRadius:Gw}}},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:zw.GREYSCALE_20},tooltip:{backgroundColor:zw.GREYSCALE_20,fontSize:jw,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};const wP={mode:"light",primary:{light:zw.GREEN_PALE,main:zw.GREEN,dark:zw.GREEN_DARK,contrastText:zw.WHITE},secondary:{light:zw.BLUE_PALE,main:zw.BLUE,dark:zw.BLUE_DARK,contrastText:zw.WHITE},error:{light:zw.RED_PALE,main:zw.RED,dark:zw.RED_DARK,contrastText:zw.WHITE},warning:{light:zw.ORANGE_PALE,main:zw.ORANGE,dark:zw.ORANGE_DARK,contrastText:zw.WHITE},success:{light:zw.GREEN_PALE,main:zw.GREEN,dark:zw.GREEN_DARK,contrastText:zw.WHITE},info:{light:zw.BLUE_PALE,main:zw.BLUE,dark:zw.BLUE_DARK,contrastText:zw.WHITE},text:{primary:zw.TEXT_PRIMARY,secondary:zw.TEXT_SECONDARY,disabled:zw.GREYSCALE_0_30},action:{hover:zw.GREYSCALE_0_03,hoverOpacity:.05,selected:zw.GREYSCALE_0_05,focus:zw.MISC_FOCUS_BORDER},amethyst:{main:zw.PURPLE,light:zw.PURPLE_PALE,dark:zw.PURPLE_DARK,contrastText:zw.WHITE},background:{paper:zw.WHITE,default:zw.GREYSCALE_95},divider:zw.GREYSCALE_0_15},CP=e=>({components:EP,palette:wP,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:$w,fontWeightLight:Ww,fontWeightRegular:Vw,fontWeightMedium:Uw,fontWeightBold:Yw,htmlFontSize:$w,fontFamily:Kw.FONT_FAMILY,button:{fontWeight:Uw,fontSize:$w,textTransform:"none"},body1:{fontSize:Hw,lineHeight:"24px"},body2:{fontSize:$w,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Bw,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Hw,fontWeight:Uw,lineHeight:"16px"},h6:{fontSize:$w,fontWeight:Uw,lineHeight:"16px"},caption:{color:zw.TEXT_SECONDARY},subtitle1:{fontSize:$w,color:zw.TEXT_SECONDARY},subtitle2:{fontSize:jw,color:zw.TEXT_SECONDARY}},shape:{borderRadius:Gw}}),RP={...Fw,MISC_FOCUS_BORDER:zw.MISC_FOCUS_BORDER},kP=CP().palette,LP={TEXT:kP.text.primary,DISABLED:kP.text.disabled,HOVER:kP.action.hover,WHITE:RP.GREYSCALE_100,BORDER_LIGHT:RP.GREYSCALE_90,BORDER_MEDIUM:RP.GREYSCALE_85,BORDER_HEAVY:RP.GREYSCALE_50,DARK_MODE_TEXT:RP.GREYSCALE_95,DARK_MODE_BORDER:RP.GREYSCALE_95,DARK_MODE_DISABLED:RP.GREYSCALE_70,DARK_MODE_BACKGROUND:RP.GREYSCALE_20,SELECTED:kP.primary.main},_P=(e,t)=>{const n=Gn(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()},AP=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,IP=e=>{const t=(e=>{const t=AP.exec(e);if(t){const[,e,n,r,o]=t;return gn(+n,+r,+o,+e/255)}return gn(e)})(e);return Number.isNaN(t.r)?null:t.toString()},PP=e=>{e.stopPropagation(),e.preventDefault()},MP=Kk(eA,{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)":{[`& .${$e}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${$e}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),DP=Kk(eA)({position:"absolute",height:"100%",width:"3px"}),OP=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=Go.useMemo((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?He.PixelsMin:He.PixelsMinTable,f=n?0:1,h={left:r&&!c?d.columnWidth-f:"100%"},m=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:Be.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},v=e=>{const t=e.clientX-d.initX;m(t)},b=e=>{PP(e),document.removeEventListener("mousemove",v),document.removeEventListener("mouseup",b),g()},y=e=>{const t=e.touches[0].clientX-d.initX;m(t)},x=e=>{PP(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&s?e=>{if(e.key===ze.LEFT||e.key===ze.RIGHT){PP(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===ze.LEFT?t-n:t+n;m(r)}else e.key===ze.SPACE||e.key===ze.ENTER?(PP(e),s(e),g()):e.key===ze.ESC&&(PP(e),s(e),m(d.initWidth))}:void 0;return Wo.createElement(MP,{className:je,isLastColumn:n,hoverColor:i,style:h,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",v),document.addEventListener("mouseup",b),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:Be.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:S,onBlur:s,"data-testid":je},Wo.createElement(DP,{className:$e}))};function TP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const NP=(e,t)=>Wo.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){TP(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),Wo.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),qP=Go.forwardRef(NP);function FP(){return FP=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},FP.apply(this,arguments)}const zP=Kk(eA,{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"}))),jP=Kk(qP,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),$P=Kk(PI)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),HP=Kk(CA)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),BP=Kk(NI)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),GP=Kk(NI,{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")}))),WP=Kk("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"}))),VP=Kk("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),UP=Kk(t_)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),YP=Kk(oI)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function KP(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XP=(e,t)=>Wo.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){KP(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),Wo.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),QP=Go.forwardRef(XP);let JP={};const ZP=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Go.useState(!1),p=Go.useRef(null),f=Go.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Wo.createElement(Wo.Fragment,null,Wo.createElement(GP,{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),JP={}),null!=a&&a.length&&(d(!0),JP[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Wo.createElement(WP,null),Wo.createElement(VP,null,Wo.createElement(YP,null,Wo.createElement(o,null)),Wo.createElement(UP,{variant:"body2"},r)),null!=a&&a.length?Wo.createElement(QP,null):null),(null==a?void 0:a.length)&&Wo.createElement(tM,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(h=a,m=JP,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},eM=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Wo.createElement(BP,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Wo.createElement(ZP,FP({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),tM=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?Wo.createElement($P,FP({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[eM({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Wo.createElement(HP,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,nM={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},rM=(e,t)=>e.some((e=>t[e]>0));function oM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const iM=(e,t)=>Wo.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){oM(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),Wo.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"})),aM=Go.forwardRef(iM);function lM(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)=>Wo.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){lM(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),Wo.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"})),uM=Go.forwardRef(sM);function cM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dM=(e,t)=>Wo.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){cM(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),Wo.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"})),pM=Go.forwardRef(dM);function fM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hM=(e,t)=>Wo.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){fM(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),Wo.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"})),mM=Go.forwardRef(hM);function gM(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)=>Wo.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){gM(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),Wo.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"})),bM=Go.forwardRef(vM);function yM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xM=(e,t)=>Wo.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){yM(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),Wo.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"})),SM=Go.forwardRef(xM);function EM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wM=(e,t)=>Wo.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){EM(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),Wo.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"})),CM=Go.forwardRef(wM);function RM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kM=(e,t)=>Wo.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){RM(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),Wo.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"})),LM=Go.forwardRef(kM);function _M(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const AM=(e,t)=>Wo.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){_M(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),Wo.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"})),IM=Go.forwardRef(AM);function PM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const MM=(e,t)=>Wo.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){PM(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),Wo.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"})),DM=Go.forwardRef(MM);let OM=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const TM=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[OM.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:aM,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:mM,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[OM.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:bM,enabled:!0}]}]),n[OM.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:DM,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:SM,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:IM,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:CM,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:LM,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:uM,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[OM.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:pM,enabled:!0}]}]),p},NM=({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=ug({translator:o}),{headTextAlign:m,qLibraryId:g,fieldId:v}=r,{fieldInstance:b,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Go.useState(null),[o,i]=Go.useState(nM);return Go.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Go.useCallback((()=>i(nM)),[]),updateSelectionActionsEnabledStatus:Go.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:rM(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:rM(["qSelected"],n.qStateCounts),canSelectPossible:rM(["qOption"],n.qStateCounts),canSelectAlternative:rM(["qAlternative"],n.qStateCounts),canSelectExcluded:rM(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Go.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:v;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"}})}}),[c,v,g]);Go.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=Go.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Wo.createElement(zP,{rightAligned:"right"===m,shouldShowMenuIcon:s},s&&Wo.createElement(jP,{height:qe,className:Fe,"data-testid":Fe,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Wo.createElement(qP,null)),Wo.createElement(tM,{open:e,anchorEl:n.current,onClose:w,menuGroups:TM({headerData:r,translator:h,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:b,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},qM=e=>e.isDark?{background:e.color,borderColor:LP.DARK_MODE_BORDER,color:LP.DARK_MODE_TEXT,disabledColor:LP.DARK_MODE_DISABLED,iconColor:LP.DARK_MODE_TEXT}:{background:e.color,borderColor:LP.BORDER_MEDIUM,color:LP.TEXT,disabledColor:LP.DISABLED},FM=Kk(eA,{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}`}))),zM=Kk(xP,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),jM=Kk(dA,{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)}))),$M=Kk(t_)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),HM=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Go.useMemo((()=>qM(r.background)),[r]);if(!n.active)return null;const a=o?Wo.createElement(FM,{footerStyle:i},e):null;return t?ig.createPortal(e,t):a},BM={},GM=Go.createContext(BM),WM=()=>Go.useContext(GM),VM=({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,v=Go.useMemo((()=>qM(p.background)),[p]),b=o?o.getBoundingClientRect().width:h.width,y=ug({translator:d}),x=Go.useMemo((()=>({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:v,tabIndex:g,width:b})),[t,n,r,o,i,a,l,s,u,c,y,p,f,h,m,v,g,b]);return Wo.createElement(GM.Provider,{value:x},e)};let UM=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),YM=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 KM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const XM=(e,t)=>Wo.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){KM(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),Wo.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),QM=Go.forwardRef(XM);function JM(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ZM=(e,t)=>Wo.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){JM(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),Wo.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),eD=Go.forwardRef(ZM);function tD(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nD=(e,t)=>Wo.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){tD(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),Wo.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),rD=Go.forwardRef(nD),oD={FirstPage:eD,PreviousPage:QM,NextPage:QP,LastPage:rD,FirstPageRTL:rD,PreviousPageRTL:QP,NextPageRTL:QM,LastPageRTL:eD},iD=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=WM(),u=oD[`${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}},aD=()=>{const{pageInfo:e,width:t}=WM(),n=0===e.page,{IconComponent:r,styledProps:o}=iD({type:UM.FirstPage,disabledCondition:n,pageNumber:0});return t<=YM.FirstPage?null:Wo.createElement(jM,o,Wo.createElement(r,{height:qe}))},lD=(e,t,n=!1)=>{n&&e.key===ze.TAB&&!e.shiftKey&&(PP(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))},sD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=WM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=iD({type:UM.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>lD(e,t,r):null;return o<=YM.LastPage?null:Wo.createElement(jM,FP({},l,{onKeyDown:s}),Wo.createElement(a,{height:qe}))},uD=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=WM(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=iD({type:UM.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>YM.FirstPage&&o>YM.LastPage)&&t.enabled?e=>lD(e,t,r):null;return Wo.createElement(jM,FP({},l,{onKeyDown:s}),Wo.createElement(a,{height:qe}))},cD=()=>{const{pageInfo:e}=WM(),t=0===e.page,{IconComponent:n,styledProps:r}=iD({type:UM.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Wo.createElement(jM,r,Wo.createElement(n,{height:qe}))},dD=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=WM(),{page:o,rowsPerPage:i}=n;if(t<=YM.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Wo.createElement($M,{variant:"caption"},a)},pD=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=WM(),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 Wo.createElement(Wo.Fragment,null,Wo.createElement($M,{variant:"caption",id:d},u,":"),Wo.createElement(zM,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},fD=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=WM();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>YM.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Wo.createElement(Wo.Fragment,null,t.rowsPerPageOptions.map((e=>Wo.createElement("option",{key:e,value:e},e))));return Wo.createElement(pD,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},hD=1e3,mD="…",gD=({totalPages:e,page:t})=>{const n=Math.min(e,hD),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-hD):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Wo.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Wo.createElement("option",{key:"startMoreOptions",value:mD,disabled:!0},mD)),o<e-1&&a.push(Wo.createElement("option",{key:"endMoreOptions",value:mD,disabled:!0},mD)),Wo.createElement(Wo.Fragment,null,a)},vD=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=WM(),{page:o}=e;if(t<=YM.SelectPage)return null;const i=Wo.createElement(gD,{totalPages:n,page:o});return Wo.createElement(pD,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},bD=e=>Wo.createElement(VM,e,Wo.createElement(fD,null),Wo.createElement(vD,null),Wo.createElement(dD,null),Wo.createElement(aD,null),Wo.createElement(cD,null),Wo.createElement(uD,null),Wo.createElement(sD,null));var yD=Go.memo(bD);const xD=e=>Wo.createElement(HM,e,Wo.createElement(yD,e)),SD={},ED=Go.createContext(SD),wD=()=>Go.useContext(ED),CD=({children:e,model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})=>{const s=Go.useMemo((()=>({model:t,app:n,interactions:r,embed:o,theme:i,keyboard:a,flags:l})),[n,r,t,o,i,a,l]);return yg.jsx(ED.Provider,{value:s,children:e})},RD=e=>{const{text:t,fontFamily:n,fontSize:r,justifyContent:o,alignItems:i,height:a}=(({translator:e,layoutService:t})=>{var n;const{theme:r}=wD(),o=null!==(n=r.getStyle("","","fontFamily"))&&void 0!==n?n:ft;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:yg.jsx("div",{style:{display:"flex",justifyContent:o,alignItems:i,width:"100%",height:a},children:yg.jsx("span",{style:{...Ct,fontFamily:n,fontSize:r,fontStyle:"italic",color:"#7b7a78"},children:t})})},kD={},LD=Go.createContext(kD),_D=()=>Go.useContext(LD),AD=({children:e,styleService:t})=>yg.jsx(LD.Provider,{value:t,children:e}),ID=21,PD=20,MD=PD,DD=16+bt+1,OD=.75;let TD=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),ND=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const qD=e=>{var t;return-1!==e&&(null==e||null===(t=e.representation)||void 0===t?void 0:t.type)===TD.Image},FD="/qHyperCubeDef",zD=-1,jD="PSEUDO-DIM",$D=e=>void 0===e?ht:e,HD=(e,t)=>e&&"number"==typeof e&&!Number.isNaN(e)?e:t,BD=e=>HD(e,He.PixelsDefault),GD=(e,t)=>HD(e,He.PercentageDefault)*t/100,WD=(e,t,n)=>{switch(null==t?void 0:t.type){case Be.Pixels:return BD(t.pixels);case Be.Percentage:return GD(t.percentage,e);case Be.FitToContent:case Be.Auto:default:return n}},VD=({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===jD)return e+0;const h=n(p),m=!u&&f&&d<s-1?ID:0;let g=0;if(r&&o&&i){g=o("-")+i}return Math.max(e,24*l+DD+m+h+g)}),0),UD=({layoutService:e,headersData:t,columnWidths:n,measureTextForHeader:r,estimateWidthForDimensionValue:o})=>{let i=[];const a=t.data[t.data.length-1][0],l=n.at(-1),s=VD({headers:a,layoutService:e,estimateWidthForDimensionValue:o}),u=((e,t)=>e.reduce(((e,n)=>Math.max(e,DD+t(n.qFallbackTitle))),0))(e.visibleMeasureInfo,r);let c=0;const d=a.findIndex((e=>e.id===jD));if(e.hasPseudoDimOnLeft)if(0===d){const e=Math.max(l,s,u);i=[Math.max(24,e-l),l]}else{c=VD({headers:a.slice(0,d),layoutService:e,estimateWidthForDimensionValue:o,shouldConsiderCombinatedLength:!0,measureTextForHeader:r,longestMeasureValuePossible:u});const t=Math.max(l,s,c);i=[Math.max(24,t-l),l]}else i=[Math.max(24,s-l),l];const p=i.reduce(((e,t)=>e+t),0);return{leftGridWidth:p,leftGridColumnWidths:i,leftGridFullWidth:p}};function YD({layoutService:e,tableWidth:t,headersData:n}){const r=_D(),{measureText:o}=Xo(r.header),{estimateWidth:i}=Xo({...r.dimensionValues,fontWeight:$D(r.dimensionValues.fontWeight)}),{measureText:a}=Xo({...r.dimensionValues,...r.measureLabels}),l=Go.useCallback(((r,l)=>{const{layout:{qHyperCube:{qNoOfLeftDims:s,topHeadersColumnWidth:u}},visibleMeasureInfo:c,isFullyExpanded:d,isIndentModeEnabled:p}=e,f=(e=0)=>c.reduce(((n,{qFallbackTitle:r,columnWidth:o})=>{const i=a(r)+DD,l=Math.max(i,e);return Math.max(n,p?l:WD(t,o,l))}),0),h=e=>n.data.reduce(((t,n)=>{const r=n[e];if(!r)return t;if(r.id===jD)return t;const i=(e=>{const{label:t,isLocked:n}=e,r=n?MD:0;return DD+o(t)+PD+r})(r);return Math.max(i,t)}),0);let m=0,g=n.data.at(-1);p&&n.size.x>1&&g&&g[0]&&(g=g[0]);const v=g.map(((n,o)=>{let a=DD;if(r&&void 0!==l&&l===n.colIdx)a=r;else{let r;n.columnWidthLocation===Qe.Pivot?r=u:n.columnWidthLocation===Qe.Dimension&&({columnWidth:r}=n);let l=0;n.isLeftDimension?l=n.id===jD?f():Math.max(h(o),((t,n)=>{const{qApprMaxGlyphCount:r,isLeftDimension:o,dimensionInfoIndex:a}=t,l=e.getDimensionInfo(a);if(qD(l))return He.PixelsDefault;const u=!d&&o&&n<s-1?ID:0;return DD+i(r)+u})(n,o)):n.isLeftDimension||(l=h(o),n.columnWidthLocation===Qe.Measures&&(l=f(l))),a=p?l:WD(t,r,l)}return m+=a,a}));return p&&n.size.x>1?UD({layoutService:e,headersData:n,columnWidths:v,measureTextForHeader:o,estimateWidthForDimensionValue:i}):{leftGridWidth:Math.min(t*OD,m),leftGridColumnWidths:v,leftGridFullWidth:m}}),[i,n,e,o,a,t]),[s,u]=Go.useState(l);lg((()=>{u(l())}),[l]);const c=Go.useCallback(((e,t)=>{u(l(e,t))}),[l]);return{...s,overrideLeftGridWidth:c}}function KD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:n,verticalScrollbarWidth:r,leftGridWidth:o}){const{layout:{qHyperCube:{qNoOfLeftDims:i,qEffectiveInterColumnSortOrder:a}},size:l,visibleMeasureInfo:s}=e,u=_D(),{estimateWidth:c,measureText:d}=Xo(u.measureValues),{estimateWidth:p}=Xo({...u.dimensionValues,fontWeight:$D(u.dimensionValues.fontWeight)}),f=t-o-bt,h=n.at(-1),m=h===zD,g=a.length-i>n.length?ID:0,v=Go.useMemo((()=>{const e=m?s:[h],t=l.x/e.length,n=[],r=[];let o=f;const i=(e,r)=>{n[e]=Math.min(He.PixelsMax,Math.max(He.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 Be.Pixels:i(t,BD(o));break;case Be.Percentage:i(t,GD(a,f));break;case Be.FitToContent:i(t,((e,t,n)=>n?He.PixelsDefault:DD+(m?Math.max(c(e),d(t)):Math.max(Math.max(...s.map((e=>c(e.qApprMaxGlyphCount)))),p(e)+g)))(l,u,qD(e)));break;case Be.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(He.AutoMin,i)}))}return n}),[m,s,h,l.x,f,c,d,p,g]),b=Go.useMemo((()=>{if(m){return s.reduce(((e,t,n)=>e+v[n]),0)/s.length}return v[0]}),[m,v,s]),y=parseFloat((r/e.size.x).toFixed(12)),x=Go.useCallback((t=>m&&void 0!==t?v[e.getMeasureInfoIndexFromCellIndex(t,!0)]-y:b-y),[m,v,e,b,y]),S=l.x*b;return{rightGridFullWidth:S,rightGridWidth:Math.min(S,f),getRightGridColumnWidth:x}}let XD;const QD=new Uint8Array(16);function JD(){if(!XD&&(XD="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!XD))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return XD(QD)}const ZD=[];for(let e=0;e<256;++e)ZD.push((e+256).toString(16).slice(1));var eO={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tO(e,t,n){if(eO.randomUUID&&!t&&!e)return eO.randomUUID();const r=(e=e||{}).random||(e.rng||JD)();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 ZD[e[t+0]]+ZD[e[t+1]]+ZD[e[t+2]]+ZD[e[t+3]]+"-"+ZD[e[t+4]]+ZD[e[t+5]]+"-"+ZD[e[t+6]]+ZD[e[t+7]]+"-"+ZD[e[t+8]]+ZD[e[t+9]]+"-"+ZD[e[t+10]]+ZD[e[t+11]]+ZD[e[t+12]]+ZD[e[t+13]]+ZD[e[t+14]]+ZD[e[t+15]]}(r)}const nO=()=>{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:tO()},rO=e=>e===zD?jD:(({qLibraryId:e,cId:t})=>{var n;return null!==(n=null!=e?e:t)&&void 0!==n?n:nO()})(e),oO=({layoutService:e,visibleLeftDimensionInfos:t,cell:n,colIdx:r})=>{var o,i;n&&(n.canBeResized=!0,n.isActivelySorted=r===(null!==(o=null===(i=e.layout.qHyperCube.activelySortedColumn)||void 0===i?void 0:i.colIdx)&&void 0!==o?o:0),n.colIdx=n.colIdx||r,n.dimensionInfoIndex===zD?n.columnWidthLocation=Qe.Measures:n.isLeftDimension?n.columnWidthLocation=Qe.Dimension:t.at(-1)===zD?n.columnWidthLocation=Qe.Measures:e.hasPseudoDimOnLeft&&(n.columnWidthLocation=Qe.Pivot))},iO=(e,t,n)=>{var r;const o=rO(t),i=e.getDimensionInfoIndex(t),a=e.isLeftDimension(i);return t===zD?{id:o,colIdx:-1,label:"",sortDirection:"A",fieldId:"",isActivelySorted:!1,isLocked:!1,isDim:!1,headTextAlign:"left",dimensionInfoIndex:i,canBeResized:!1,isLeftDimension:a,isLastDimension:n,columnWidthLocation:Qe.Measures}:{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],isActivelySorted:!1,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:Qe.Dimension}},aO=({layoutService:e,lastRow:t,lastCol:n})=>{let r=n;var o;t.length>0&&(r=(o=n).at(-1)===zD?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]=iO(e,t,o)})),r.forEach(((t,n,r)=>{const o=n===r.length-1;l[n][a-1]=iO(e,t,o)})),l},lO=(e,t,n)=>{var r,o;const i=((e,t,n)=>{let r;var o;return r=0===t.length||t.includes(zD)?aO({layoutService:e,lastRow:n,lastCol:t}):(e=>e[0].map(((t,n)=>e.map((e=>e[n])))))(aO({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++)oO({layoutService:e,visibleLeftDimensionInfos:n,cell:r[t],colIdx:t})}else oO({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 sO(e){return sO="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},sO(e)}function uO(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function cO(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 dO(e,t,n){return t&&cO(e.prototype,t),n&&cO(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function pO(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&&hO(e,t)}function fO(e){return fO=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fO(e)}function hO(e,t){return hO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},hO(e,t)}function mO(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 gO(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=fO(e);if(t){var o=fO(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return mO(this,n)}}function vO(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 bO(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 bO(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 bO(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 yO={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:xO(e),value:xO(t),useEqualSign:n}}(n,o,i))}})),t}};function xO(e){try{return decodeURIComponent(e)}catch(t){return e}}function SO(e){if(!(this instanceof SO))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 yO.fromSearchString(t.search)}}})}function EO(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}SO.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},SO.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=EO((t=e[r]).key),t.value?n+="=".concat(EO(t.value)):n+=t.useEqualSign?"=":"";return n};var wO,CO=function(){function e(t){uO(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return dO(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}(),RO=function(){function e(){uO(this,e)}return dO(e,[{key:"decode",value:function(e){for(var t,n="",r=new CO(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),kO=function(e){return e>=0&&e<=1114111},LO=function(e){return e.match(/[\s]/)},_O=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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())&&!LO(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return kO(a)?String.fromCharCode(a):"�"}}]),n}(RO),AO=function(){function e(t,n){uO(this,e),this._key=t,this._value=n}return dO(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}(),IO=function(){function e(){uO(this,e)}return dO(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 AO.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return AO.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||AO.newInstanceIfNeeded(e,t,this._value)}}]),e}(),PO=function(){function e(){uO(this,e),this.clear()}return dO(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 IO);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),MO=function(){var e,t,n,r=[],o=[],i=new PO;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}(),DO=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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,MO.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=MO.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)&&kO(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)&&kO(r)?String.fromCharCode(r):null}}]),n}(RO),OO=function(e){pO(n,e);var t=gO(n);function n(){return uO(this,n),t.apply(this,arguments)}return dO(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),kO(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(RO),TO=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(wO=document.createElement("div"));var NO=Array.prototype.indexOf,qO=[",",".","_"," "],FO={default:[",",".","-","_"," "]},zO={width:["%"],height:["%"]},jO={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},$O={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":jO.image,"background-color":jO.color,"border-color":jO.color,"border-image":jO.image,color:jO.color,icon:jO.image,"list-style-image":jO.image,"outline-color":jO.color},HO={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function BO(e,t,n){var r;if(t){if(NO)return NO.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 GO(e){if(null==e)return"";var t,n=document.createTextNode(e);return wO.appendChild(n),t=wO.innerHTML,wO.removeChild(n),t}function WO(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=UO(e).toLowerCase(),t=UO(t),BO(e,HO.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<HO.attr_val;i++)if(t.toLowerCase().match(HO.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=zO[e])||(r=FO.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]/)&&BO(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function VO(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=UO(e).toLowerCase(),t=UO(t),BO(e,HO.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<HO.css_val.length;r++)if(t.toLowerCase().indexOf(HO.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=$O[e])||(o=jO.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]/)&&BO(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function UO(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new DO,new OO,new _O];!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 YO=[],KO=0;KO<255;KO++)YO[KO]=KO>=48&&KO<=57||KO>=65&&KO<=90||KO>=97&&KO<=122?null:KO.toString(16);var XO=function(e){return GO(e.unsafe)},QO=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]=VO(t,n[t],!0),i+=VO(t,n[t],!0),o[t]=r[t]);return e.map?o:i},JO=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]=WO(i,t[i],!0),o+=WO(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function ZO(e,t){throw new Error(t)}var eT={canonicalize:UO,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===sO(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?XO(e):"css"===e.context?(null!=e.map&&"object"!==sO(e.map)&&ZO(this,"Invalid parameter type"),QO(e)):"attr"===e.context?(null!=e.map&&"object"!==sO(e.map)&&ZO(this,"Invalid parameter type"),JO(e)):void ZO(this,"Invalid parameter type")},encodeForAttr:WO,encodeForAttr2:function(e){return WO("nonsens",e,!0)},encodeForCSS:VO,encodeForHref:function(e){UO(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new SO(e),n=SO.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+SO.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=qO),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),BO(o,t)>=0||null==YO[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:GO,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=UO(t).toLowerCase():ZO(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=vO(null!==(t=TO.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 tT=(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]},nT=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"}}},rT=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&eT.isSafeDataURL(t)?{type:TD.Image,url:t,text:e,imageSize:n,resolvedImagePosition:nT(r)}:{type:TD.Text,url:void 0,text:e},oT=(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)===ND.Attribute||null==n?void 0:n.urlLabel},iT=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:TD.Link,url:eT.encodeForHref(t),text:e}}catch(t){return{type:TD.Text,url:void 0,text:e}}},aT=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return TD.Link;case"image":return TD.Image;default:return TD.Text}})(t)){case TD.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=tT(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return rT({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return rT({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=tT(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return rT({text:n,url:t,imageSize:o,imagePosition:i})}return{type:TD.Text,url:void 0,text:e.qText}})(e,t,o,i);case TD.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===ND.Attribute){const r=oT(n,e,t),o=e.qText||r||"";return iT({text:o,url:r})}if(o===ND.Dimension){const n=oT(r,e,t)||e.qText;return iT({text:n,url:e.qText})}return{type:TD.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:TD.Text,url:void 0,text:e.qText}}},lT=(e,t)=>{var n,r;const o=t.qAttrExps,i=null==o||null===(n=o.qValues)||void 0===n||null===(n=n[null==e?void 0:e.cellForegroundColor])||void 0===n?void 0:n.qText,a=null==o||null===(r=o.qValues)||void 0===r||null===(r=r[null==e?void 0:e.cellBackgroundColor])||void 0===r?void 0:r.qText,l=a?IP(a):null,s=i?IP(i):null,u=((e,t)=>e||!t?null:Un(t)?LP.WHITE:LP.TEXT)(s,l);return{color:null!=u?u:s,background:l}},sT=(e,t)=>t.qSubNodes.reduce(((e,t)=>0===t.qSubNodes.length?e+1:sT(e,t)),e),uT=(e,t,n,r,o,i)=>{if(o)return sT(0,e);const a=i?mt-n:gt-r;let l=e.qUp+e.qDown;if(i&&0===n){const n=(t+e.qUp)%mt;l=e.qDown+n}return Math.min(a,sT(l,e))},cT=({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})=>{const p=!c&&e.qType===tt.NX_DIM_CELL_PSEUDO;let f="";if(u&&e.indentLabel){const{label:t,delimeter:n,suffix:r}=e.indentLabel;f=`${t} ${!r||!t&&r?"":n} ${r}`.trim()}else f=e.qText;const h={id:nO(),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:uT(e,o,i,r,a.isSnapshot,u),distanceToNextCell:0,isLockedByDimension:!("object"!=typeof l||!l.qLocked),isTotal:e.qType===tt.NX_DIM_CELL_TOTAL||!(null==t||!t.isTotal),isEmpty:e.qType===tt.NX_DIM_CELL_EMPTY||-4===e.qElemNo,isNull:e.qType===tt.NX_DIM_CELL_NULL,isPseudoDimension:p,expressionColor:lT(s,e),selectionCellType:u?Xe.NX_CELL_LEFT:Xe.NX_CELL_TOP,dimensionInfoIndex:a.getDimensionInfoIndex(l),canBeResized:0===e.qSubNodes.length&&!u,visibleMeasureInfoIndex:p?e.qElemNo:null==t?void 0:t.visibleMeasureInfoIndex,representation:aT({...e,qText:f},l===zD?void 0:l.representation,s.link,s.linkLabel,s.imageUrl,s.imageLabel),...void 0!==d&&{indentLevel:d}};return t&&(t.children[h.mainAxisPageCoord-t.mainAxisPageCoord]=h),h},dT=(e,t,n,r,o,i,a)=>{const{isIndentModeEnabled:l}=o;if(!t.length)return e;let s=0;return function t(u,c,d,p=0,f=-1){e[p]||(e[p]={}),l&&f++;const h=o.leftDimensionInfoIndexes.indexOf(zD);d.forEach(((d,m)=>{var g;s+=0===m?0:1;const v=n.qTop-r.page*r.rowsPerPage,b=Math.max(0,v+s-d.qUp),y=n.qTop+s-d.qUp;if(l&&o.hasPseudoDimOnLeft&&f<=h){const e={label:d.qText,suffix:"",delimeter:"-"};if(d.qType===tt.NX_DIM_CELL_NORMAL||d.qType===tt.NX_DIM_CELL_NULL||d.qType===tt.NX_DIM_CELL_TOTAL)f<h&&(e.suffix=`${o.visibleMeasureInfo[0].qFallbackTitle}`),d={...d,indentLabel:e};else if(d.qType===tt.NX_DIM_CELL_PSEUDO){var x,S,E,w,C;e.label=null!==(x=null===(S=c||u)||void 0===S||null===(S=S.ref)||void 0===S||null===(S=S.indentLabel)||void 0===S?void 0:S.label)&&void 0!==x?x:"",e.suffix=d.qText;const t=d.qSubNodes;d={...null===(E=c||u)||void 0===E?void 0:E.ref,...d.qText?{qText:d.qText}:{},qSubNodes:t,indentLabel:e},f=null!==(w=null===(C=c||u)||void 0===C?void 0:C.indentLevel)&&void 0!==w?w:0}}let R=p;l&&(R=f===h?f+1:f,0===f&&0===h&&0===d.qSubNodes.length&&(R=0));const k=l&&void 0===(null===(g=e[p][b])||void 0===g?void 0:g.ref.qText)||!e[p][b]?cT({node:d,parent:c,root:u,x:R,y:y,pageY:b,layoutService:o,dimensionInfo:i[R],attrExprInfoIndex:a[R],isLeftColumn:!0,...l&&{isIndentModeEnabled:l,indentLevel:f}}):e[p][b];if(e[p][b]=k,d.qSubNodes.length){const e=l?0:p+1;t(u||k,k,d.qSubNodes,e,f)}}))}(null,null,t,0,-1),e},pT=(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)}))}))},fT=(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},hT=({prevData:e,nextDataPage:t,pageInfo:n,layoutService:r,visibleLeftDimensionInfo:o,attrExprInfoIndexes:i})=>{const{qLeft:a,qArea:l}=t;if(!a.length)return e;const s=dT(e.grid,a,l,n,r,o,i);pT(s,n.rowsOnCurrentPage);const u=fT(s,r);return{...e,grid:s,columnCount:s.length,totalDividerIndex:u}},mT=({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===tt.NX_DIM_CELL_NULL;o[l][s]=null!==(a=o[l][s])&&void 0!==a?a:{id:nO(),ref:t,isNull:u}}))})),o},gT=({prevData:e,dataPage:t,pageInfo:n})=>{const{qData:r,qArea:o}=t;return r.length?mT({qArea:o,prevData:e,pivotValuePoints:r,pageInfo:n}):e},vT=(e,t,n,r,o,i,a)=>{if(!t.length)return e;let l=0;!function t(a,s,u,c=0){e[c]||(e[c]={}),u.forEach(((u,d)=>{var p;l+=0===d?0:1;const f=n.qLeft+l-u.qUp,h=null!==(p=e[c][f])&&void 0!==p?p:cT({node:u,parent:s,root:a,x:f,y:c,pageY:c,layoutService:r,dimensionInfo:o[c],attrExprInfoIndex:i[c],isLeftColumn:!1});e[c][f]=h,u.qSubNodes.length&&t(a||h,h,u.qSubNodes,c+1)}))}(null,null,t);for(let t=0;t<a-e.length;t++)e.push({});return e},bT=({prevData:e,nextDataPage:t,layoutService:n,visibleTopDimensionInfo:r,attrExprInfoIndexes:o,headerRows:i})=>{const{qTop:a,qArea:l}=t;if(!a.length)return e;const s=vT(e.grid,a,l,n,r,o,i);pT(s,n.size.x);const u=fT(s);return{...e,grid:s,rowCount:s.length,totalDividerIndex:u}},yT=e=>{if(e===zD)return{cellForegroundColor:-1,cellBackgroundColor:-1,imageUrl:-1,imageLabel:-1,link:-1,linkLabel:-1};const t=e.qAttrExprInfo,n=t.findIndex((({id:e})=>e===Je.CellForegroundColor.toString())),r=t.findIndex((({id:e})=>e===Je.CellBackgroundColor.toString())),o=t.findIndex((({id:e})=>e===Je.ImageUrl.toString())),i=t.findIndex((({id:e})=>e===Je.ImageLabel.toString())),a=t.findIndex((({id:e})=>e===Je.Link.toString())),l=t.findIndex((({id:e})=>e===Je.LinkLabel.toString()));return{cellForegroundColor:n,cellBackgroundColor:r,imageUrl:o,link:a,linkLabel:l,imageLabel:i}},xT=(e,t,n,r,o)=>{const[i,a]=Go.useState(null),l=((e,t,n)=>Go.useMemo((()=>({left:e.map(yT),top:t.map(yT),measures:n.map(yT)})),[n,e,t]))(r,o,t.visibleMeasureInfo),s=Go.useMemo((()=>lO(t,o,r)),[t,o,r]),u=Go.useCallback((()=>e.slice(1).reduce(((e,t)=>gT({prevData:e,dataPage:t,pageInfo:n})),((e,t)=>{const{qData:n,qArea:r}=e;return mT({qArea:r,prevData:[],pivotValuePoints:n,pageInfo:t})})(e[0],n))),[e,n]),c=Go.useCallback((()=>e.slice(1).reduce(((e,n)=>bT({prevData:e,nextDataPage:n,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y})),((e,t,n,r,o)=>{const{qArea:i,qTop:a}=e,l=vT([],a,i,t,n,r,o);pT(l,t.size.x);const s=fT(l);return{grid:l,rowCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,o,l.top,s.size.y))),[e,t,o,l.top,s.size.y]),d=Go.useCallback((()=>e.slice(1).reduce(((e,o)=>hT({prevData:e,nextDataPage:o,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})),((e,t,n,r,o)=>{const{qArea:i,qLeft:a}=e,l=dT([],a,i,n,t,r,o);pT(l,n.rowsOnCurrentPage);const s=fT(l,t);return{grid:l,columnCount:l.length,layoutSize:t.size,totalDividerIndex:s}})(e[0],t,n,r,l.left))),[e,t,n,r,l]),[p,f]=Go.useState((()=>u())),[h,m]=Go.useState((()=>c())),[g,v]=Go.useState((()=>d()));lg((()=>{f(u())}),[u]),lg((()=>{m(c())}),[c]),lg((()=>{v(d())}),[d]),lg((()=>{i&&i.forEach((e=>{f((t=>gT({prevData:t,dataPage:e,pageInfo:n}))),m((n=>bT({prevData:n,nextDataPage:e,layoutService:t,visibleTopDimensionInfo:o,attrExprInfoIndexes:l.top,headerRows:s.size.y}))),v((o=>hT({prevData:o,nextDataPage:e,pageInfo:n,layoutService:t,visibleLeftDimensionInfo:r,attrExprInfoIndexes:l.left})))}))}),[i]);const b=Go.useCallback((e=>{a(e)}),[]);return{headersData:s,measureData:p,topDimensionData:h,leftDimensionData:g,attrExprInfoIndexes:l,nextPageHandler:b}},ST=Math.sqrt(1e4),ET=e=>{if(null===e)return[];if(e.qWidth*e.qHeight<1e4)return[e];const t=[],n=Math.ceil(e.qWidth/ST),r=Math.ceil(e.qHeight/ST);for(let o=0;o<n;o++)for(let n=0;n<r;n++)t.push({qLeft:e.qLeft+o*ST,qTop:e.qTop+n*ST,qWidth:Math.min(ST,e.qWidth-o*ST),qHeight:Math.min(ST,e.qHeight-n*ST)});return t};function wT({model:e,nextPageHandler:t,pageInfo:n,layoutService:r}){const o=(e=>{const t=Go.useRef(e);return t.current=e,t})(n.page),i=e,a=Go.useCallback((async(e,t)=>{var n;await(null==i||null===(n=i.collapseLeft)||void 0===n?void 0:n.call(i,FD,e,t,!1))}),[i]),l=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.collapseTop(FD,e,t,!1))}),[i]),s=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.expandLeft(FD,e,t,!1))}),[i]),u=Go.useCallback((async(e,t)=>{await(null==i?void 0:i.expandTop(FD,e,t,!1))}),[i]),c=Go.useCallback((async e=>{if(null!=i&&i.getHyperCubePivotData&&0!==e.length)try{const r=await i.getHyperCubePivotData(FD,e.reduce(((e,t)=>[...e,...ET(t)]),[]));o.current===n.page&&t(r)}catch(e){console.error(e)}}),[i,t,n,o]),d=Go.useCallback(((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 Qe.Dimension:c=[{qPath:`${FD}/qDimensions/${n}/qDef/columnWidth`,oldValue:s[n].columnWidth}];break;case Qe.Measures:if(o)c=l.map(((e,t)=>({qPath:`${FD}/qMeasures/${t}/qDef/columnWidth`,oldValue:e.columnWidth})));else{const e=r.getMeasureInfoIndexFromCellIndex(i);c=[{qPath:`${FD}/qMeasures/${e}/qDef/columnWidth`,oldValue:l[e].columnWidth}]}break;case Qe.Pivot:c=[{qPath:`${FD}/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]);return Go.useMemo((()=>({collapseLeft:a,collapseTop:l,expandLeft:s,expandTop:u,applyColumnWidth:d,fetchPages:c})),[a,l,s,u,d,c])}const CT=(e,t)=>e>t?et.Forward:e<t?et.Backward:et.None,RT=(e,t,n)=>(r,o)=>{if(r===tt.NX_DIM_CELL_PSEUDO)return zD;const i=t[n+o];return e[i]},kT=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},LT=({width:e,height:t,children:n,isLeftGrid:r})=>yg.jsx("div",{"data-testid":"full-size-container",style:{display:"block",width:r?"fit-content":e,height:t+bt},children:n}),_T=e=>`scrollable-container--${e}`,AT=(e,t)=>{const{width:n,height:r,children:o,onScroll:i,style:a,showVerticalScrollbar:l,showHorizontalScrollbar:s,origin:u}=e,{interactions:c}=wD();return yg.jsx("div",{ref:t,"data-key":_T(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 IT=Wo.forwardRef(AT);const PT=({width:e,height:t,children:n,style:r,isLeftGrid:o})=>yg.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:0,left:0,width:o?"fit-content":e,height:t,...r},children:n});function MT(){return MT=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},MT.apply(this,arguments)}function DT(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OT(e,t){return OT=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},OT(e,t)}function TT(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,OT(e,t)}var NT=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function qT(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||NT(r)&&NT(o)))return!1;var r,o;return!0}function FT(e,t){var n;void 0===t&&(t=qT);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 zT(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 jT="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function $T(e){cancelAnimationFrame(e.id)}function HT(e,t){var n=jT();var r={id:requestAnimationFrame((function o(){jT()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var BT=-1;function GT(e){if(void 0===e&&(e=!1),-1===BT||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),BT=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return BT}var WT=null;function VT(e){if(void 0===e&&(e=!1),null===WT||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?WT="positive-descending":(t.scrollLeft=1,WT=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),WT}return WT}var UT=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function YT(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,DT(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:DT(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=FT((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=FT((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=FT((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(VT()){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&&$T(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}TT(t,e),t.getDerivedStateFromProps=function(e,t){return KT(e,t),g(e),null};var v=t.prototype;return v.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)},v.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,v=GT();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 b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v: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})},v.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()},v.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(VT()){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()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&$T(this._resetIsScrollingTimeoutId)},v.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?UT:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],L=[];if(r>0&&g)for(var _=R;_<=k;_++)for(var A=E;A<=w;A++)L.push(Go.createElement(t,{columnIndex:A,data:d,isScrolling:b?x:void 0,key:f({columnIndex:A,data:d,rowIndex:_}),rowIndex:_,style:this._getItemStyle(_,A)}));var I=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return Go.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:MT({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},Go.createElement(u||c||"div",{children:L,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:P}}))},v._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,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._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]},v._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}(Go.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var KT=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},XT=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},QT=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},JT=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]},ZT=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?eN(e,t,n,i,0,r):tN(e,t,n,Math.max(0,i),r)},eN=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=JT(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},tN=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&JT(e,t,r,n).offset<o;)r+=a,a*=2;return eN(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},nN=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=JT(e,t,n,i),u="column"===e?QT(t,i):XT(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}},rN=YT({getColumnOffset:function(e,t,n){return JT("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return ZT("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=JT("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=JT("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:XT,getEstimatedTotalWidth:QT,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return nN("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return nN("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return JT("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return ZT("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=JT("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=JT("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}}),oN=function(e,t){return e};function iN(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,DT(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:DT(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=FT((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=FT((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=FT((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(VT()){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&&$T(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HT(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}TT(t,e),t.getDerivedStateFromProps=function(e,t){return aN(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?GT():0:s.scrollHeight>s.clientHeight?GT():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(VT()){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&&$T(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?oN:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(Go.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:v?y:void 0,style:this._getItemStyle(k)}));var L=r(this.props,this._instanceProps);return Go.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:MT({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Go.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"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}(Go.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var aN=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},lN=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]},sN=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=lN(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},uN=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&lN(e,n,t).offset<r;)n+=i,i*=2;return sN(e,t,Math.min(n,o-1),Math.floor(n/2),r)},cN=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},dN=iN({getItemOffset:function(e,t,n){return lN(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:cN,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=lN(e,t,o),p=cN(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?sN(e,t,o,0,n):uN(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=lN(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=lN(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 pN(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 fN=["style"],hN=["style"];function mN(e,t){var n=e.style,r=zT(e,fN),o=t.style,i=zT(t,hN);return!pN(n,o)&&!pN(r,i)}const gN=(e,t,n=!1)=>void 0!==e&&(e.isLeafNode||n&&e.isLeftColumn?e.mainAxisPageCoord===t:e.mainAxisPageCoord+e.leafCount-1===t),vN=10,bN=(e,t)=>e.current===et.Backward?t:0,yN=(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},xN=(e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight,SN=({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(yN(t,e,n,r)){const t=a[a.length-1],o={qLeft:e,qTop:n+l,qWidth:1,qHeight:r};void 0!==t&&xN(t,o)?t.qWidth+=o.qWidth:a.push(o)}return a},EN=({pageInfo:e,measureData:t,scrollDirection:n,viewService:r,minBufferStartLeft:o,minBufferEndLeft:i,columnEndIndex:a})=>{const{gridRowStartIndex:l,gridHeight:s}=r,u=n.current===et.Backward?Math.max(0,o-25):i,c=Math.min(u+25,a);return SN({pageInfo:e,measureData:t,startLeft:u,endLeft:c,pageTop:l,qHeight:s})},wN=({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=bN(n,vN),u=Math.max(r-s,0);return{startLeft:u,endLeft:u+Math.min(i+vN,l-u),pageTop:o,qHeight:a}})(r,o,n),u=SN({pageInfo:e,measureData:t,startLeft:i,endLeft:a,pageTop:l,qHeight:s});return u.length>0?[...u,...EN({pageInfo:e,measureData:t,scrollDirection:n,viewService:o,minBufferStartLeft:i,minBufferEndLeft:a,columnEndIndex:r.size.x})]:u},CN=(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},RN=(e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth,kN=({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(CN(o,n,i,r)){const e=a.at(-1),t={qLeft:n,qTop:i+l,qWidth:r,qHeight:1};void 0!==e&&RN(e,t)?e.qHeight+=t.qHeight:a.push(t)}return a},LN=({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=bN(n,vN),s=Math.max(o-l,0);return{startTop:s,endTop:s+Math.min(a+vN,e.rowsOnCurrentPage-s),qLeft:r,qWidth:i}})(e,r,n),s=kN({startTop:o,endTop:i,qLeft:a,qWidth:l,measureData:t,pageInfo:e});if(s.length>0){const r=n.current===et.Backward?Math.max(0,o-25):i,u=Math.min(r+25,e.rowsOnCurrentPage),c=kN({startTop:r,endTop:u,qLeft:a,qWidth:l,measureData:t,pageInfo:e});return[...s,...c]}return s},_N=async(e,t,n,r,o,i,a)=>{const{gridColumnStartIndex:l,gridRowStartIndex:s,gridWidth:u,gridHeight:c}=o;let d=[],p=[];i.current!==et.None&&(d=LN({pageInfo:r,measureData:n,scrollDirection:i,viewService:o})),a.current!==et.None&&(p=wN({pageInfo:r,measureData:n,scrollDirection:a,layoutService:t,viewService:o})),i.current===et.None&&a.current===et.None&&(d=kN({measureData:n,pageInfo:r,qLeft:l,qWidth:u,startTop:s,endTop:s+c})),await e.fetchPages([...d,...p])},AN=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))}}(_N,100),IN=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50;return function(){for(var r=this,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(t),t=setTimeout((function(){return e.apply(r,i)}),n)}}(_N,75),PN=({style:e,index:t,isLastRow:n,isLastColumn:r,showLastBorder:o,isLeftColumn:i,showTotalCellDivider:a})=>{const{grid:{border:l,divider:s}}=_D();return yg.jsx("div",{style:{...e,...wt,...Lt(n,r,l,o),...At({bottomDivider:a&&i,rightDivider:a&&!i,borderColor:s})},"data-testid":"empty-cell","data-index":t})},MN=({children:e,verticalAlign:t,width:n,right:r})=>yg.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}),DN=e=>{const{type:t,imageSize:n}=e;return t!==TD.Image||"fill"!==n&&"fitWidth"!==n?"fit-content":"100%"};function ON(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const TN=(e,t)=>Wo.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){ON(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),Wo.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"})),NN=Go.forwardRef(TN);function qN(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const FN=(e,t)=>Wo.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){qN(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),Wo.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"})),zN=Go.forwardRef(FN),jN=e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(je)};function $N(e,t){const n=e.isActive(),[r,o]=Go.useState(new Map),[i,a]=Go.useState(null);Go.useEffect((()=>{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=Go.useCallback((e=>0!==r.size&&null!==i&&(e.selectionCellType!==i.selectionCellType||(e.selectionCellType===Xe.NX_CELL_LEFT?i.coord!==e.x:i.coord!==e.y))),[r,i]),s=Go.useCallback((t=>async n=>{if(jN(n))return;if(e.isActive()||await e.begin([FD]),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===Xe.NX_CELL_LEFT?e.x:e.y}})})(t,r,i);try{await e.select({method:"selectPivotCells",params:[FD,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=Go.useCallback((e=>n&&!l(e)&&r.has(e.ref.qElemNo)),[r,l,n]);return Go.useMemo((()=>({select:s,isSelected:u,isActive:n,isLocked:l})),[s,u,n,l])}const HN={select:()=>()=>Promise.resolve(),isSelected:()=>!1,isActive:!1,isLocked:()=>!1},BN=Go.createContext(HN),GN=()=>Go.useContext(BN),WN=({children:e,selections:t,updatePageInfo:n})=>{const r=$N(t,n);return yg.jsx(BN.Provider,{value:r,children:e})};var VN;!function(e){e.Background="background",e.Color="color",e.FontWeight="fontWeight",e.FontStyle="fontStyle",e.TextDecoration="textDecoration"}(VN||(VN={}));const UN={brighter:.5,darker:.3,opacity:.03},YN=(e,{cell:t,styleService:n})=>{if(e===VN.Background||e===VN.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]},KN=({styleService:e,isCellSelected:t,cell:n,isCellLocked:r})=>{if(t)return LP.SELECTED;const o=YN(VN.Background,{cell:n,styleService:e});return!r||!o||n.isPseudoDimension||n.isEmpty||n.isNull||n.isTotal?YN(VN.Background,{cell:n,styleService:e}):`repeating-linear-gradient(\n -45deg,\n ${_P(i=o,UN)} 0px 2px,\n ${i} 0px 4px\n ) border-box`;var i},XN=({cell:e,styleService:t,isCellSelected:n})=>n?LP.WHITE:YN(VN.Color,{cell:e,styleService:t}),QN=({cell:e,styleService:t})=>{const{qCanCollapse:n,qCanExpand:r}=e.ref,o=YN(VN.FontWeight,{cell:e,styleService:t});return void 0===o&&(r||n)?ht:o},JN=({cell:e,styleService:t})=>YN(VN.FontStyle,{cell:e,styleService:t}),ZN=({cell:e,styleService:t})=>YN(VN.TextDecoration,{cell:e,styleService:t}),eq=e=>e?"pointer":"default",tq=({expandOrCollapse:e,cell:t})=>n=>{null==e||e(t.y,t.x),n.stopPropagation()},nq=({cell:e,dataModel:t,isLeftColumn:n,isCellSelected:r})=>{const o=_D(),{interactions:i}=wD(),{isActive:a}=GN();if(!e.ref.qCanExpand&&!e.ref.qCanCollapse)return null;const l=!i.active||a||!t,s=XN({cell:e,styleService:o,isCellSelected:r}),u=a?.4:1,c=o.contentRowHeight/2,d=e.ref.qCanExpand?zN:NN;let p;return p=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,yg.jsx(d,{opacity:u,color:s,"data-testid":e.ref.qCanExpand?"expand-icon":"collapse-icon",height:13,style:{flexShrink:0,cursor:l?"default":"pointer",padding:4,marginTop:n?c-6.5-4:void 0},onClick:l?void 0:tq({cell:e,expandOrCollapse:p})})},rq=e=>{switch(e){case"fitHeight":case"fill":case"alwaysFit":return"100%";case"originalSize":return"fit-content";default:return"auto"}},oq=e=>{switch(e){case"fitHeight":return"auto";case"originalSize":return"fit-content";default:return"100%"}},iq=({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}}},aq=(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"}},lq=e=>{if("alwaysFit"===e)return"contain"},sq=({representation:e,styleService:t,textStyle:n,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})=>{const{url:a,text:l,imageSize:s,resolvedImagePosition:u}=e,{overflow:c,...d}=n;return yg.jsx("div",{"data-key":"image-container",style:{display:"flex",flexDirection:"column",justifyContent:null==u?void 0:u.vertical,overflow:"hidden",boxSizing:"border-box",border:"4px solid transparent",...iq({representation:e,styleService:t,canExpandOrCollapse:r,leafCount:o,isLeftColumn:i})},children:yg.jsx("img",{src:a,alt:l,style:{width:oq(s),height:rq(s),objectFit:lq(s),objectPosition:aq(s,u),...d}})})},uq=(e,t,n)=>{if(!n.isEnabled(Ge)||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}},cq={display:"flex",flexDirection:"row",alignItems:"center"},dq={alignItems:"center",display:"flex",flexDirection:"row",backgroundClip:"padding-box"},pq=(e,t,n,r)=>t?{...dq,...e.nullValues}:n?{...cq,color:e.totalValues.color,background:null!=r?r:e.totalValues.background}:{...cq,color:e.measureValues.color,background:null!=r?r:e.measureValues.background},fq=(e,t,n,r,o)=>{const{fontFamily:i,fontSize:a}=e.measureValues,l={...Ct,...!n&&Rt(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?ht:s,fontStyle:u,textDecoration:c}},hq=(e,t,n,r,o)=>{const{textAlign:i}=t,a=r?"flex-end":"center";var l,s;return e.isNull||n.type!==TD.Image?uq(i,a,o):null!==(l=null===(s=n.resolvedImagePosition)||void 0===s?void 0:s.horizontal)&&void 0!==l?l:"center"},mq=({cell:e,layoutService:t,styleService:n,representation:r,color:o,isNumeric:i,isTotalValueCell:a})=>{const{flags:l}=wD(),s=e.isNull?t.getNullValueText():r.text,u=fq(n,o,i,a,e.isNull);return r.type===TD.Image&&!e.isNull&&l.isEnabled(Ve)?yg.jsx(sq,{representation:r,styleService:n,textStyle:u,isLeftColumn:!0}):yg.jsx("span",{style:{padding:4,...u},children:s})},gq=(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},vq="flex-start",bq=(e,t)=>{return e.isNull?vq:t.type===TD.Image&&"fill"!==t.imageSize?null===(n=t.resolvedImagePosition)||void 0===n?void 0:n.vertical:vq;var n},yq=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const i=_D(),{flags:a}=wD(),{background:l}=i.measureValues,{grid:s,layoutService:u,showLastBorder:c,shouldShowTotalCellBottomDivider:d,shouldShowTotalCellRightDivider:p,isTotalValue:f,pageInfo:h,lastRow:m,lastColumn:g,attrExprInfoIndexes:v}=r,b=null===(o=s[t])||void 0===o?void 0:o[e],y=t===h.rowsOnCurrentPage-1,x=e===u.size.x-1;if(!b)return yg.jsx(PN,{style:{...n,background:l},isLastRow:y,isLastColumn:x,showLastBorder:c,index:t,isLeftColumn:!1,showTotalCellDivider:!1});const S=u.hasPseudoDimOnLeft?gq(g,t):gq(m,e),E=u.visibleMeasureInfo[S],w=aT(b.ref,E.representation,-1,-1,v[S].imageUrl,v[S].imageLabel),C=!b.isNull&&f(e,t),R=b.isNull?u.getNullValueText():w.text,k=!b.isNull||!Number.isNaN(+R),L=lT(v[S],b.ref),_={...pq(i,b.isNull,C,L.background),...Lt(y,x,i.grid.border,c),...At({bottomDivider:d(t),rightDivider:p(e),borderColor:i.grid.divider}),...wt,padding:"0px 4px",display:"flex",justifyContent:hq(b,E,w,k,a)};return yg.jsx("div",{title:R,style:{..._,...n},"data-testid":"measure-value","data-row-index":t,"data-col-index":e,children:yg.jsx(MN,{width:DN(w),verticalAlign:bq(b,w),children:yg.jsx(mq,{cell:b,layoutService:u,styleService:i,representation:w,isNumeric:k,isTotalValueCell:C,color:L.color})})})};var xq=Wo.memo(yq,mN);const Sq=(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()},Eq=({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}`},wq={...Et,overflow:"hidden",boxSizing:"content-box",borderWidth:"1px 0px 0px 1px"},Cq=({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:v})=>{const{grid:{divider:b},contentCellHeight:y}=_D(),x={...wq,borderColor:b,willChange:"auto",userSelect:"none",WebkitUserSelect:"none"},S=((e,t,n=!1)=>Go.useCallback((r=>{var o;const i=n?0:t-1,a=null===(o=e.grid.at(i))||void 0===o?void 0:o[r];return gN(a,e.totalDividerIndex,n)}),[e,n,t]))(s,d.length,a.isIndentModeEnabled),E=((e,t)=>Go.useCallback((n=>{var r;const o=null===(r=e.grid.at(t-1))||void 0===r?void 0:r[n];return gN(o,e.totalDividerIndex)}),[e,t]))(u,c.length),w=((e,t,n,r)=>Go.useCallback(((o,i)=>{var a,l;return!!(null!==(a=t.grid.at(r-1))&&void 0!==a&&null!==(a=a[o])&&void 0!==a&&a.isTotal||null!==(l=e.grid.at(n-1))&&void 0!==l&&null!==(l=l[i])&&void 0!==l&&l.isTotal)}),[t,e,n,r]))(s,u,d.length,c.length),C=(({viewService:e,dataModel:t,measureData:n,layoutService:r,pageInfo:o,leftColumnCount:i,topRowCount:a,verticalScrollDirection:l,horizontalScrollDirection:s})=>Go.useCallback((async({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p})=>{e.gridColumnStartIndex=u,e.gridRowStartIndex=d,e.gridWidth=c-u+1,e.gridHeight=p-d+1;const f=e.gridWidth+i+(s.current===et.None?0:vN),h=e.gridHeight+a+(l.current===et.None?0:vN);let m=AN;h*f>1500&&(m=IN),await m(t,r,n,o,e,l,s)}),[e,r,t,n,l,s,o,i,a]))({viewService:i,layoutService:a,dataModel:e,measureData:l,pageInfo:m,leftColumnCount:s.columnCount,topRowCount:u.rowCount,verticalScrollDirection:g,horizontalScrollDirection:v});return lg((()=>{t.current&&t.current.resetAfterColumnIndex(0,!1)}),[t,e,l]),Go.useLayoutEffect((()=>{t.current&&t.current.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!0})}),[o,n,t,y]),0===a.size.x?null:yg.jsx(rN,{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:w,shouldShowTotalCellBottomDivider:S,shouldShowTotalCellRightDivider:E,pageInfo:m,lastRow:u.grid.at(c.length-1),lastColumn:s.grid.at(d.length-1),attrExprInfoIndexes:p},onItemsRendered:C,estimatedRowHeight:r(),estimatedColumnWidth:h(),itemKey:Eq,children:xq})};var Rq=Go.memo(Cq);function kq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Lq=(e,t)=>Wo.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){kq(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),Wo.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"}),Wo.createElement("use",{fillRule:"evenodd"})),_q=Go.forwardRef(Lq),Aq=e=>{const[t,n]=Go.useState(!1);return lg((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}},Iq=({interactions:e,dataModel:t})=>{const[n,r]=Go.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=Aq([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e.active&&!jN(t)&&!o&&r(!0),setIsAdjustingWidth:i}};const Pq=({cellInfo:e,columnWidth:t,dataModel:n,isLastColumn:r,overrideLeftGridWidth:o,setIsAdjustingWidth:i})=>{const{interactions:a}=wD(),{isActive:l}=GN(),s=_D(),[,u]=Go.useState({});if(!(e.canBeResized&&!!a.active&&!l))return null;const c=function(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===yt.Transparent?LP.WHITE:l,u=null===(o=pn(e.grid.border))||void 0===o?void 0:o.rgb(),c=null===(i=pn(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}(s,e);return yg.jsx(OP,{isPivot:!0,columnWidth:t,isLastColumn:r,keyValue:`adjuster-${e.dimensionInfoIndex}`,hoverColor:c,updateWidthCallback:t=>{u({}),o&&void 0!==e.colIdx&&o(t,e.colIdx)},confirmWidthCallback:t=>null==n?void 0:n.applyColumnWidth(t,e),setIsAdjustingWidth:i,isLeftColumn:e.isLeftColumn})},Mq=e=>e.scrollTop;function Dq(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 Oq(e){return Bx("MuiPaper",e)}Gx("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 Tq=["className","component","elevation","square","variant"],Nq=Iw("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 wg({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&&wg({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${aE("#fff",Dw(t.elevation))}, ${aE("#fff",Dw(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))}));var qq=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Cg(n,Tq),u=wg({},n,{component:o,elevation:i,square:a,variant:l}),c=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return BS({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Oq,o)})(u);return yg.jsx(Nq,wg({as:o,ownerState:u,className:jx(c.root,r),ref:t},s))}));function Fq(e){return"string"==typeof e}function zq(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter((n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n))).forEach((t=>{n[t]=e[t]})),n}function jq(e){if(void 0===e)return{};const t={};return Object.keys(e).filter((t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t]))).forEach((n=>{t[n]=e[n]})),t}const $q=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function Hq(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=Cg(e,$q),l=i?{}:function(e,t,n){return"function"==typeof e?e(t,n):e}(r,o),{props:s,internalRef:u}=function(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=jx(null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),t=wg({},null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),a=wg({},n,o,r);return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=zq(wg({},o,r)),l=jq(r),s=jq(o),u=t(a),c=jx(null==u?void 0:u.className,null==n?void 0:n.className,i,null==o?void 0:o.className,null==r?void 0:r.className),d=wg({},null==u?void 0:u.style,null==n?void 0:n.style,null==o?void 0:o.style,null==r?void 0:r.style),p=wg({},u,n,s,l);return c.length>0&&(p.className=c),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:u.ref}}(wg({},a,{externalSlotProps:l})),c=function(e,t,n){return void 0===e||Fq(e)?t:wg({},t,{ownerState:wg({},t.ownerState,n)})}(n,wg({},s,{ref:_S(u,null==l?void 0:l.ref,null==(t=e.additionalProps)?void 0:t.ref)}),o);return c}var Bq=Gx("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);const Gq=["center","classes","className"];let Wq,Vq,Uq,Yq,Kq=e=>e;const Xq=uy(Wq||(Wq=Kq`
|
|
120
120
|
0% {
|
|
121
121
|
transform: scale(0);
|
|
122
122
|
opacity: 0.1;
|
|
@@ -189,4 +189,4 @@ function EC(e,t){let n;return n=t?ay(e).withConfig({displayName:t.label,shouldFo
|
|
|
189
189
|
animation-iteration-count: infinite;
|
|
190
190
|
animation-delay: 200ms;
|
|
191
191
|
}
|
|
192
|
-
`),Bq.rippleVisible,Xq,550,(({theme:e})=>e.transitions.easing.easeInOut),Bq.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bq.child,Bq.childLeaving,Qq,550,(({theme:e})=>e.transitions.easing.easeInOut),Bq.childPulsate,Jq,(({theme:e})=>e.transitions.easing.easeInOut)),tF=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Cg(n,Gq),[l,s]=Go.useState([]),u=Go.useRef(0),c=Go.useRef(null);Go.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Go.useRef(!1),p=MS(),f=Go.useRef(null),h=Go.useRef(null),m=Go.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,yg.jsx(eF,{classes:{ripple:jx(o.ripple,Bq.ripple),rippleVisible:jx(o.rippleVisible,Bq.rippleVisible),ripplePulsate:jx(o.ripplePulsate,Bq.ripplePulsate),child:jx(o.child,Bq.child),childLeaving:jx(o.childLeaving,Bq.childLeaving),childPulsate:jx(o.childPulsate,Bq.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Go.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]),v=Go.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Go.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,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Go.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),yg.jsx(Zq,wg({className:jx(Bq.root,o.root,i),ref:h},a,{children:yg.jsx(vL,{component:null,exit:!0,children:l})}))}));var nF=tF;function rF(e){return Bx("MuiButtonBase",e)}var oF=Gx("MuiButtonBase",["root","disabled","focusVisible"]);const iF=["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"],aF=Iw("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"},[`&.${oF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lF=Go.forwardRef((function(e,t){const n=ZE({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:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:_,touchRippleRef:A,type:I}=n,P=Cg(n,iF),M=Go.useRef(null),D=Go.useRef(null),O=_S(D,A),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=$S(),[z,j]=Go.useState(!1);s&&z&&j(!1),Go.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,H]=Go.useState(!1);Go.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function G(e,t,n=c){return LS((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Go.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=LS((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Go.useRef(!1),re=LS((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=LS((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=_S(t,F,M),se=wg({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},rF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return yg.jsxs(aF,wg({as:ie,className:jx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:I},ae,P,{children:[i,B?yg.jsx(nF,wg({ref:O,center:o},_)):null]}))}));var sF=lF;const uF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cF(e){const t=[],n=[];return Array.from(e.querySelectorAll(uF)).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 dF(){return!0}function pF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cF,isEnabled:a=dF,open:l}=e,s=Go.useRef(!1),u=Go.useRef(null),c=Go.useRef(null),d=Go.useRef(null),p=Go.useRef(null),f=Go.useRef(!1),h=Go.useRef(null),m=_S(t.ref,h),g=Go.useRef(null);Go.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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 v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return yg.jsxs(Go.Fragment,{children:[yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Go.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)}}),yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const fF=Go.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Go.useState(null),l=_S(Go.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 kS(t,i),()=>{kS(t,null)}}),[t,i,o]),o){if(Go.isValidElement(n)){const e={ref:l};return Go.cloneElement(n,e)}return yg.jsx(Go.Fragment,{children:n})}return yg.jsx(Go.Fragment,{children:i?og.createPortal(n,i):i})}));function hF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mF(e){return parseInt(RS(e).getComputedStyle(e).paddingRight,10)||0}function gF(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&&hF(e,o)}))}function vF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=CS(e);return t.body===e?RS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=HS(CS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${mF(r)+e}px`;const t=CS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${mF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=CS(r).body;else{const t=r.parentElement,n=RS(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 yF=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&&hF(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);gF(t,e.mount,e.modalRef,r,!0);const o=vF(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=vF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bF(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vF(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&&hF(e.modalRef,t),gF(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&&hF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function xF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=yF,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Go.useRef({}),f=Go.useRef(null),h=Go.useRef(null),m=_S(h,d),[g,v]=Go.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=LS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||CS(f.current).body;o.add(x(),e),h.current&&S()})),w=Go.useCallback((()=>o.isTopModal(x())),[o]),C=LS((e=>{f.current=e,e&&(c&&w()?S():h.current&&hF(h.current,y))})),R=Go.useCallback((()=>{o.remove(x(),y)}),[y,o]);Go.useEffect((()=>()=>{R()}),[R]),Go.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=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")))},L=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=zq(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wg({},n,t);return wg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>wg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ES((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ES((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const SF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],EF={entering:{opacity:1},entered:{opacity:1}},wF=Go.forwardRef((function(e,t){const n=JE(),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:v=dL}=e,b=Cg(e,SF),y=Go.useRef(null),x=_S(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{Mq(e);const r=Dq({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)})),C=S(c),R=S(h),k=S((e=>{const t=Dq({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)})),L=S(f);return yg.jsx(v,wg({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Go.cloneElement(a,wg({style:wg({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},EF[e],m,a.props.style),ref:x},t))}))}));var CF=wF;function RF(e){return Bx("MuiBackdrop",e)}Gx("MuiBackdrop",["root","invisible"]);const kF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],LF=Iw("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wg({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"}))),_F=Go.forwardRef((function(e,t){var n,r,o;const i=ZE({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=CF,transitionDuration:g}=i,v=Cg(i,kF),b=wg({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},RF,t)})(b),x=null!=(n=f.root)?n:c.root;return yg.jsx(m,wg({in:p,timeout:g},v,{children:yg.jsx(LF,wg({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:jx(y.root,l,null==x?void 0:x.className),ownerState:wg({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var AF=_F;var IF=Gx("MuiBox",["root"]);const PF=XE(),MF=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=vy("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Rx);return Go.forwardRef((function(e,a){const l=Mx(n),s=Tx(e),{className:u,component:c="div"}=s,d=Cg(s,$x);return yg.jsx(i,wg({as:c,ref:a,className:jx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Eg,defaultTheme:PF,defaultClassName:IF.root,generateClassName:Fx.generate});var DF=MF;function OF(e){return Bx("MuiModal",e)}Gx("MuiModal",["root","hidden","backdrop"]);const TF=["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"],NF=Iw("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})=>wg({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),qF=Iw(AF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),FF=Go.forwardRef((function(e,t){var n,r,o,i,a,l;const s=ZE({name:"MuiModal",props:e}),{BackdropComponent:u=qF,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:_,slots:A}=s,I=Cg(s,TF),P=wg({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=xF(wg({},P,{rootRef:t})),z=wg({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OF,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:NF,B=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==_?void 0:_.root)?a:v.root,W=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,V=Hq({elementType:H,externalSlotProps:G,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:jx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Hq({elementType:B,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(wg({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?yg.jsx(fF,{ref:T,container:h,disablePortal:S,children:yg.jsxs(H,wg({},V,{children:[!C&&u?yg.jsx(B,wg({},U)):null,yg.jsx(pF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Go.cloneElement(f,$)})]}))}):null}));var zF=FF;var jF=Gx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const $F=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HF(e){return`scale(${e}, ${e**2})`}const BF={entering:{opacity:1,transform:HF(1)},entered:{opacity:1,transform:"none"}},GF="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),WF=Go.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=dL}=e,g=Cg(e,$F),v=MS(),b=Go.useRef(),y=JE(),x=Go.useRef(null),S=_S(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{Mq(e);const{duration:n,delay:r,easing:o}=Dq({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:GF?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=Dq({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:GF?o:.666*o,delay:GF?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=HF(.75),c&&c(e)})),_=E(d);return yg.jsx(m,wg({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:_,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Go.cloneElement(o,wg({style:wg({opacity:0,transform:HF(.75),visibility:"exited"!==e||a?void 0:"hidden"},BF[e],f,o.props.style),ref:S},t))}))}));WF.muiSupportAuto=!0;var VF=WF;var UF=Go.createContext({});function YF(e){return Bx("MuiList",e)}Gx("MuiList",["root","padding","dense","subheader"]);const KF=["children","className","component","dense","disablePadding","subheader"],XF=Iw("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})=>wg({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var QF=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Cg(n,KF),c=Go.useMemo((()=>({dense:a})),[a]),d=wg({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},YF,t)})(d);return yg.jsx(UF.Provider,{value:c,children:yg.jsxs(XF,wg({as:i,className:jx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var JF=Gx("MuiListItemIcon",["root","alignItemsFlexStart"]);var ZF=Gx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ez=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function tz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function rz(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 oz(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")&&rz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var iz=Go.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=Cg(e,ez),p=Go.useRef(null),f=Go.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vS((()=>{r&&p.current.focus()}),[r]),Go.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${HS(CS(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=_S(p,t);let m=-1;Go.Children.forEach(i,((e,t)=>{Go.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=Go.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),Go.cloneElement(e,t)}return e}));return yg.jsx(QF,wg({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=CS(t).activeElement;if("ArrowDown"===n)e.preventDefault(),oz(t,r,s,l,tz);else if("ArrowUp"===n)e.preventDefault(),oz(t,r,s,l,nz);else if("Home"===n)e.preventDefault(),oz(t,null,s,l,tz);else if("End"===n)e.preventDefault(),oz(t,null,s,l,nz);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&&rz(r,o);o.previousKeyMatched&&(s||oz(t,r,!1,l,tz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function az(e){return Bx("MuiPopover",e)}Gx("MuiPopover",["root","paper"]);const lz=["onEntering"],sz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],uz=["slotProps"];function cz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function dz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function fz(e){return"function"==typeof e?e():e}const hz=Iw(zF,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mz=Iw(qq,{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 gz=Go.forwardRef((function(e,t){var n,r,o;const i=ZE({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:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=VF,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=Cg(i.TransitionProps,lz),k=Cg(i,sz),L=null!=(n=null==y?void 0:y.paper)?n:v,_=Go.useRef(),A=_S(_,L.ref),I=wg({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},az,t)})(I),M=Go.useCallback((()=>{if("anchorPosition"===c)return u;const e=fz(l),t=(e&&1===e.nodeType?e:CS(_.current).body).getBoundingClientRect();return{top:t.top+cz(t,s.vertical),left:t.left+dz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Go.useCallback((e=>({vertical:cz(e,x.vertical),horizontal:dz(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Go.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:pz(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=RS(fz(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:pz(n)}}),[l,c,M,D,m]),[T,N]=Go.useState(g),q=Go.useCallback((()=>{const e=_.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Go.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Go.useEffect((()=>{g&&q()})),Go.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Go.useEffect((()=>{if(!g)return;const e=wS((()=>{q()})),t=RS(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?CS(fz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:hz,$=null!=(o=null==b?void 0:b.paper)?o:mz,H=Hq({elementType:$,externalSlotProps:wg({},L,{style:T?L.style:wg({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:I,className:jx(P.paper,null==L?void 0:L.className)}),B=Hq({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:jx(P.root,p)}),{slotProps:G}=B,W=Cg(B,uz);return yg.jsx(j,wg({},W,!Fq(j)&&{slotProps:G,disableScrollLock:C},{children:yg.jsx(S,wg({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:yg.jsx($,wg({},H,{children:d}))}))}))}));function vz(e){return Bx("MuiMenu",e)}Gx("MuiMenu",["root","paper","list"]);const bz=["onEntering"],yz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xz={vertical:"top",horizontal:"right"},Sz={vertical:"top",horizontal:"left"},Ez=Iw(gz,{shouldForwardProp:e=>Aw(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wz=Iw(mz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Cz=Iw(iz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Rz=Go.forwardRef((function(e,t){var n,r;const o=ZE({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:v={},slotProps:b={}}=o,y=Cg(o.TransitionProps,bz),x=Cg(o,yz),S=(()=>{const e=Go.useContext(KS);return null!=e&&e})(),E=wg({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},vz,t)})(E),C=i&&!s&&d,R=Go.useRef(null);let k=-1;Go.Children.map(a,((e,t)=>{Go.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:wz,_=null!=(r=b.paper)?r:p,A=Hq({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[w.root,l]}),I=Hq({elementType:L,externalSlotProps:_,ownerState:E,className:w.paper});return yg.jsx(Ez,wg({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?xz:Sz,slots:{paper:L,root:v.root},slotProps:{root:A,paper:I},open:d,ref:t,transitionDuration:h,TransitionProps:wg({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:E},x,{classes:f,children:yg.jsx(Cz,wg({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:C,variant:g},u,{className:jx(w.list,u.className),children:a}))}))}));function kz(e){return Bx("MuiMenuItem",e)}var Lz=Gx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const _z=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Az=Iw(sF,{shouldForwardProp:e=>Aw(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})=>wg({},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"}},[`&.${Lz.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:aE(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lz.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:aE(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lz.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:aE(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})`:aE(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Lz.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lz.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jF.inset}`]:{marginLeft:52},[`& .${ZF.root}`]:{marginTop:0,marginBottom:0},[`& .${ZF.inset}`]:{paddingLeft:36},[`& .${JF.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wg({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${JF.root} svg`]:{fontSize:"1.25rem"}}))));var Iz=Go.forwardRef((function(e,t){const n=ZE({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=Cg(n,_z),f=Go.useContext(UF),h=Go.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Go.useRef(null);vS((()=>{r&&m.current&&m.current.focus()}),[r]);const g=wg({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return wg({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kz,a))})(n),b=_S(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),yg.jsx(UF.Provider,{value:h,children:yg.jsx(Az,wg({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:jx(v.focusVisible,s),className:jx(v.root,d)},p,{ownerState:g,classes:v}))})}));const Pz=Iw(DF,{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}}))),Mz=Iw("div")({position:"absolute",left:0,bottom:0}),Dz=Iw("div")({...St,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),Oz=Iw("div")((()=>({...St}))),Tz=Iw("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}))),Nz=Iw(Rz)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),qz=Iw(Iz,{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}}}))),Fz=Iw("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:PD,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),zz={[OM.SORTING]:!0,[OM.SELECTIONS]:!0,[OM.SEARCHING]:!0},jz=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=Go.useRef(null),m=_D(),{app:g,model:v,interactions:b,embed:y,flags:x}=wD(),{fontSize:S,fontFamily:E,fontStyle:w,fontWeight:C,textDecoration:R,color:k,background:L,hoverBackground:_,activeBackground:A}=m.header,I=Go.useRef(null),{shouldShowLockIcon:P,shouldShowMenuIcon:M}=u,{open:D,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:N}=Iq({interactions:b,dataModel:e}),q={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)},changeActivelySortedHeader:s},F={embed:y,listboxRef:h},z={model:v,app:g},{labelTextAlign:j}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},$=uq(j,"flex-start",x);return yg.jsxs(Pz,{title:t.label,interactions:b,background:D?A:L,hoverBackground:_,shouldShowMenuIcon:M,isDimension:t.isDim,style:{...n,...wt,..._t(t,i,r,o,m.grid.border),color:k},"data-testid":"title-cell",onClick:T,children:[yg.jsxs(Dz,{children:[P&&yg.jsx(Oz,{children:yg.jsx(_q,{height:12})}),yg.jsx(Tz,{fontFamily:E,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:R,justifyContent:$,children:yg.jsx("span",{style:Ct,children:t.label})})]}),t.isDim&&yg.jsxs(yg.Fragment,{children:[yg.jsx(NM,{headerData:t,translator:a,anchorRef:I,open:D,setOpen:O,interactions:b,menuAvailabilityFlags:zz,sortRelatedArgs:q,searchRelatedArgs:F,selectionRelatedArgs:z,shouldShowMenuIcon:M}),yg.jsx(Mz,{ref:h}),yg.jsx(Mz,{ref:I})]}),yg.jsx(Pq,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:N})]})},$z=({rowSpan:e,columnSpan:t})=>{const n=_D();return e>0&&t>0?yg.jsx("div",{style:{...Et,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 Hz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bz=(e,t)=>Wo.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){Hz(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),Wo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Gz=Go.forwardRef(Bz);function Wz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vz=(e,t)=>Wo.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){Wz(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),Wo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wo.createElement("use",{fillRule:"evenodd"})),Uz=Go.forwardRef(Vz);function Yz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kz=(e,t)=>Wo.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){Yz(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),Wo.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"})),Xz=Go.forwardRef(Kz),Qz=({cell:e,translator:t,dataModel:n,changeSortOrder:r,changeActivelySortedHeader:o})=>{const i=Go.useRef(null),a=Go.useRef(null),{app:l,model:s,interactions:u,embed:c}=wD(),{open:d,setOpen:p,handleOpenMenu:f}=Iq({interactions:u,dataModel:n});return yg.jsxs(qz,{component:"div",onClick:f,isActive:d,children:[yg.jsx("span",{children:e.label}),yg.jsxs(Fz,{className:"indent-mode-dropdown-more",visible:d,children:[yg.jsx(Xz,{}),e.isDim&&yg.jsxs(yg.Fragment,{children:[yg.jsx(NM,{headerData:e,translator:t,anchorRef:i,open:d,setOpen:p,interactions:u,menuAvailabilityFlags:zz,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)},changeActivelySortedHeader:o},searchRelatedArgs:{embed:c,listboxRef:a},selectionRelatedArgs:{model:s,app:l},shouldShowMenuIcon:!1}),yg.jsx(Mz,{ref:a}),yg.jsx(Mz,{ref:i})]})]})]})},Jz=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,changeActivelySortedHeader:i})=>{const a=_D(),{interactions:l}=wD(),[s,u]=Go.useState(!1),c=Go.useRef(null),{headerCellHeight:d}=a,{color:p,background:f,hoverBackground:h,activeBackground:m,fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x}=a.header,S=e=>e.stopPropagation(),E={height:d,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return yg.jsxs(Pz,{isDimension:!0,background:s?m:f,interactions:l,hoverBackground:h,style:{...E,...wt,color:p},onClick:()=>l.active&&u(!s),children:[yg.jsxs(Dz,{children:[yg.jsx(Tz,{fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x,justifyContent:"flex-start",children:yg.jsx("span",{style:Ct,children:r.get("SNPivotTable.IndentMode.Rows")})}),s?yg.jsx(Uz,{}):yg.jsx(Gz,{}),yg.jsx(Mz,{ref:c})]}),yg.jsx(Nz,{open:s,anchorEl:c.current,children:t.map(((e,a)=>[e&&(null==e?void 0:e.id)!==jD&&yg.jsx("li",{role:"presentation",onClick:S,onKeyDown:S,children:yg.jsx(Qz,{cell:e,translator:r,dataModel:n,changeSortOrder:o,changeActivelySortedHeader:i})}),a<t.length-1&&yg.jsx(HP,{"data-testid":"group-divider",variant:"middle"},"divider")]))})]})},Zz={display:"grid",width:"fit-content"},ej=({dataModel:e,columnWidths:t,rowHight:n,headersData:r,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>yg.jsxs("div",{style:{...Zz,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:r.data.map((()=>`${n}px`)).join(" "),height:s},children:[r.size.y>1&&yg.jsx($z,{columnSpan:r.size.x-1,rowSpan:r.size.y-1}),r.data.map(((s,d)=>{let p=[];if(c.isIndentModeEnabled&&r.size.x>1&&d+1===r.size.y){const t=r.data.at(-1);return p.push(yg.jsx(Jz,{headersData:r,menuItems:t[0],dataModel:e,translator:o,changeSortOrder:i,changeActivelySortedHeader:a},t[0][0].id)),p}return p=s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(yg.jsx(jz,{dataModel:e,style:{width:t[f],height:n,gridColumn:c.isIndentModeEnabled&&r.size.x>1?2:f+1,gridRow:d+1,zIndex:r.size.x-f},isLastRow:d===r.size.y-1,isFirstColumn:0===f,isLastColumn:f===r.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[]),p}))]});var tj=Go.memo(ej);const nj=(e,t,n,r,o)=>{Go.useLayoutEffect((()=>{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])},rj=(e,t)=>{lg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},oj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===TD.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 uq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return uq(u,i,r)},ij=()=>{},aj=({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=_D(),{interactions:f,flags:h}=wD(),{select:m,isLocked:g}=GN(),{layoutService:v,showLastBorder:b}=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 yg.jsx("div",{title:f.passive?t:void 0,style:{...n,...Lt(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...wt,padding:"0px 4px",cursor:eq(x),background:KN({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:oj(r,v,s,h),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:ij,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})},lj=e=>e.stopPropagation(),sj=({href:e,text:t,interactions:n,color:r})=>Wo.createElement(YA,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:lj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),uj=e=>e.contentRowHeight/2-e.contentTextHeight/2,cj=({children:e,styleService:t,isLeftColumn:n,textStyle:r})=>yg.jsx("span",{style:{...r,marginTop:n?uj(t):void 0,padding:"0px 4px"},children:e}),dj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=GN(),{interactions:i,flags:a}=wD();let l=e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...Ct,...Rt(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:XN({cell:e,styleService:t,isCellSelected:n}),fontWeight:QN({cell:e,styleService:t}),fontStyle:JN({cell:e,styleService:t}),textDecoration:ZN({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type===TD.Image&&!e.isTotal&&a.isEnabled(Ve)?yg.jsx(sq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:s,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand}):(e.representation.type!==TD.Link||o||e.isTotal||!a.isEnabled(Ue)||(l=yg.jsx(sj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),yg.jsx(cj,{isLeftColumn:r,textStyle:s,styleService:t,children:l}))},pj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==TD.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},fj=({index:e,style:t,data:n})=>{const r=_D(),{isSelected:o}=GN(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Aq([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,v=gN(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return yg.jsx(PN,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(h);return yg.jsxs(aj,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:h,data:n,isAdjustingWidth:i,children:[yg.jsxs(MN,{verticalAlign:pj(h),width:DN(h.representation),right:h.isLeftColumn?void 0:4,children:[yg.jsx(nq,{isLeftColumn:s,isCellSelected:b,cell:h,dataModel:l}),yg.jsx(dj,{isLeftColumn:s,isCellSelected:b,cell:h,styleService:r})]}),yg.jsx(Pq,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?Qe.Measures:Qe.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var hj=Wo.memo(fj,mN);const mj=({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()},gj=(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}},vj=(e,t)=>n=>{e.current&&(e.current[t]=n)},bj={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Et},yj={overflow:"hidden",willChange:"auto",flexShrink:0},xj=({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}}=_D();rj(t,a),nj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return yg.jsx("div",{style:{...bj,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=rO(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=gj(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,b,d,h,c.qcy);return yg.jsx(dN,{ref:vj(t,p),style:{...yj,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:b,totalDividerIndex:a.totalDividerIndex},itemKey:Sq,estimatedItemSize:v,children:hj},m)}))})};var Sj=Go.memo(xj);const Ej={overflow:"hidden",willChange:"auto"},wj={...Et,borderWidth:"0px 0px 0px 1px"},Cj=({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}=_D(),p={...wj,borderColor:c,height:o};rj(t,a),nj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?yg.jsx("div",{style:{width:r,height:o,...wj}}):yg.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=gj(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}),v=g?rO(g):`empty ${c}`;return yg.jsx(dN,{ref:vj(t,c),style:Ej,height:n(),width:r,itemCount:p,itemSize:mj({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:Sq,estimatedItemSize:h,children:hj},v)}))})};var Rj=Go.memo(Cj);const kj=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=_D(),u=((e,t,n)=>Go.useMemo((()=>{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 Go.useMemo((()=>{var e,n,a,l;const s=kT(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=kT(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(RT(i,o,0)),visibleTopDimensionInfo:u.map(RT(i,o,r))}}),[i,o,r,t])})(r,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const n=Go.useMemo((()=>({changeSortOrder:async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o}=t,i=[];("D"===n&&!r||"A"===n&&r)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async n=>{if(!e)throw new Error("No Model provided!");const{colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a}=n,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return n})(e,r.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:v,attrExprInfoIndexes:b,nextPageHandler:y}=xT(o,r,i,c,d),x=wT({model:e,nextPageHandler:y,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:S,onVerticalScrollHandler:E,verticalScrollableContainerRef:w,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:R,dataGridRef:k,leftGridRef:L,topGridRef:_,verticalScrollbarWidth:A,horizontalScrollbarHeight:I,horizontalScrollbarHeightSetter:P,verticalScrollDirection:M,horizontalScrollDirection:D}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,flags:p}=wD(),f=Go.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=Go.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=Go.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Go.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Go.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Go.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Go.useRef(0),x=Go.useRef(0),S=Go.useRef(et.None),E=Go.useRef(et.None),[w,C]=Go.useState(0),[R,k]=Go.useState(0),L=d.name(),_=e=>{E.current=CT(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=CT(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Go.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Go.useLayoutEffect((()=>{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=v.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]),Go.useLayoutEffect((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const A=Go.useCallback((e=>{if(e)return void k(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)}k(t)}),[k]);return Go.useLayoutEffect((()=>{if(f.current){const e=f.current,n=e.offsetWidth-e.clientWidth;C(n),p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")&&n>0&&(t.verticalScrollbarWidth=n)}A()}),[A,e,t,r.width,r.height,L,p]),Go.useLayoutEffect((()=>{(p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")||p.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"))&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft,C(-1*((null==t?void 0:t.verticalScrollbarWidth)||0)))}),[p,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,null==t?void 0:t.verticalScrollbarWidth,f,m,h]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ze.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ze.DATA_GRID}`&&(_(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(_(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:w,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:A,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:O,headerGridHeight:T,topGridHeight:N,leftGridHeight:q,dataGridHeight:F,allRowsVisible:z}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=_D(),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-bt,l),dataGridHeight:Math.min(r.height-c-bt,l),allRowsVisible:c+bt+l+o<=r.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:I}),{leftGridWidth:j,leftGridColumnWidths:$,rightGridWidth:H,totalWidth:B,showLastRightBorder:G,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:V,overrideLeftGridWidth:U}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=_D(),{measureText:l}=Xo(a.header),s=YD({layoutService:e,tableWidth:t,headersData:n}),u=KD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+bt,d=c<t,p=Go.useCallback(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+DD;return t&&a+MD<=r&&(i=!0,a+=MD),a+PD<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return Go.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:A,horizontalScrollbarHeightSetter:P}),{rootWrapper:Y,leftWrapper:K,rightWrapper:X}=(({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+bt,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,v=e.height-m,b=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:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+bt-h,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:O,headerGridHeight:T,leftGridHeight:q,topGridHeight:N,dataGridHeight:F,allRowsVisible:z,totalWidth:B,leftGridWidth:j,rightGridWidth:H,verticalScrollbarWidth:A,horizontalScrollbarHeight:I}),Q=Go.useCallback((()=>l),[l]),J=Go.useCallback((()=>s),[s]);return yg.jsx(IT,{ref:w,...Y.scrollable,onScroll:E,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ze.CONTAINER_GRID,children:yg.jsx(LT,{...Y.fullSize,children:yg.jsxs(PT,{...Y.sticky,style:{display:"grid",gridTemplateColumns:j?`${K.containers.scrollable.width}px ${X.containers.scrollable.width}px`:`${X.containers.scrollable.width}px`},children:[Boolean(j)&&yg.jsx(IT,{ref:C,...K.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.LEFT_GRID,children:yg.jsx(LT,{isLeftGrid:!0,...K.containers.fullSize,children:yg.jsxs(PT,{isLeftGrid:!0,...K.containers.sticky,children:[yg.jsx(tj,{dataModel:x,columnWidths:$,getHeaderCellsIconsVisibilityStatus:V,rowHight:l,height:K.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:U,layoutService:r}),yg.jsx(Sj,{dataModel:x,leftGridRef:L,...K.leftGrid,columnWidths:$,layoutService:r,leftDimensionData:v,showLastBorder:{right:!1,bottom:z},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),yg.jsx(IT,{ref:R,...X.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.DATA_GRID,children:yg.jsx(LT,{...X.containers.fullSize,children:yg.jsxs(PT,{...X.containers.sticky,children:[yg.jsx(Rj,{dataModel:x,topGridRef:_,rowHightCallback:Q,...X.topGrid,layoutService:r,topDimensionData:g,showLastBorder:{right:G,bottom:!1},getRightGridColumnWidth:W,headersData:h}),yg.jsx(Rq,{dataModel:x,dataGridRef:k,rowHightCallback:J,...X.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:v,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:G,bottom:z},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:M,horizontalScrollDirection:D})]})})})]})})})},Lj=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=wD(),{layout:u,hasData:c}=t;return yg.jsxs(yg.Fragment,{children:[c&&yg.jsx(kj,{...e}),yg.jsx(RD,{translator:n,layoutService:t}),yg.jsx(xD,{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})]})},_j={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)"},Aj=12,Ij=14,Pj=16,Mj=24,Dj=3,Oj=300,Tj=400,Nj=600,qj=700,Fj={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tw(_j.GREYSCALE_0,.05),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5);var zj;function jj(){return jj=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},jj.apply(this,arguments)}Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5);var $j,Hj=function(e){return Go.createElement("svg",jj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zj||(zj=Go.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bj(){return Bj=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},Bj.apply(this,arguments)}var Gj=function(e){return Go.createElement("svg",Bj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$j||($j=Go.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 Wj({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wo.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 Vj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wo.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"}))),Uj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yj=(e={})=>Wo.createElement(Wj,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Kj=(e={})=>Wo.createElement(Wj,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wo.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"}))),Xj=({className:e})=>Wo.createElement(Wj,{fontSize:"small",className:e},Wo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wo.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wo.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"}),Wo.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"})))))),Qj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{stroke:_j.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Jj={MuiAccordion:{styleOverrides:{root:{backgroundColor:_j.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:_j.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wo.createElement(Hj,{"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 ${_j.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,borderRadius:Dj,backgroundColor:_j.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 ${_j.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:_j.WHITE,color:_j.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:Dj},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:_j.GREYSCALE_0_15,backgroundColor:_j.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:_j.GREEN_PALE},"&:active":{backgroundColor:_j.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:_j.BLUE_PALE},"&:active":{backgroundColor:_j.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.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:Dj,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:_j.GREYSCALE_0_15,backgroundColor:_j.GREYSCALE_100_60,"&:active":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:_j.PURPLE,"&.Mui-focusVisible":{borderColor:_j.PURPLE,boxShadow:`0 0 0 3px ${SS(_j.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:_j.GREEN,"&.Mui-focusVisible":{borderColor:_j.GREEN,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:_j.BLUE,"&.Mui-focusVisible":{borderColor:_j.BLUE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:_j.ORANGE,"&.Mui-focusVisible":{borderColor:_j.ORANGE,boxShadow:`0 0 0 3px ${SS(_j.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:_j.RED,"&.Mui-focusVisible":{borderColor:_j.RED,boxShadow:`0 0 0 3px ${SS(_j.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:_j.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:_j.PURPLE_PALE},"&:active":{backgroundColor:_j.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:_j.PURPLE_PALE,boxShadow:`0 0 0 3px ${SS(_j.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:_j.GREEN_PALE},"&:active":{backgroundColor:_j.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:_j.BLUE_PALE},"&:active":{backgroundColor:_j.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:_j.ORANGE_PALE},"&:active":{backgroundColor:_j.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:_j.ORANGE_PALE,boxShadow:`0 0 0 3px ${SS(_j.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:_j.RED_PALE},"&:active":{backgroundColor:_j.RED_DARK},"&.Mui-focusVisible":{borderColor:_j.RED_PALE,boxShadow:`0 0 0 3px ${SS(_j.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:_j.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:_j.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Dj,boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wo.createElement(Gj,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Aj,borderRadius:Dj,color:_j.TEXT_PRIMARY,backgroundColor:_j.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:_j.GREYSCALE_0_05,color:_j.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:_j.GREEN,borderColor:_j.GREEN},"&.MuiChip-outlinedInfo":{color:_j.BLUE,borderColor:_j.BLUE},"&.MuiChip-outlinedWarning":{color:_j.ORANGE,borderColor:_j.ORANGE},"&.MuiChip-outlinedError":{color:_j.RED,borderColor:_j.RED}},outlined:{border:`solid 1px ${_j.GREYSCALE_0_15}`,backgroundColor:_j.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Dj,boxShadow:"none",backgroundColor:_j.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:_j.GREEN,borderColor:_j.GREEN},outlinedSecondary:{color:_j.BLUE,borderColor:_j.BLUE},label:{fontFamily:Fj.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wo.createElement(Gj,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wo.createElement(Hj,{"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:Dj},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Dj,fontSize:Ij,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:_j.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${_j.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:_j.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:_j.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:_j.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Dj,border:`solid 1px ${_j.GREYSCALE_0_15}`,color:_j.GREYSCALE_0_60,marginRight:0,width:Mj,height:Mj},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${_j.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Dj,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:_j.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ij}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Aj,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:_j.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:_j.GREYSCALE_25,fontSize:Aj,fontFamily:Fj.FONT_FAMILY,fontWeight:Nj,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:_j.TEXT_PRIMARY},"&.Mui-error":{color:_j.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:_j.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tj,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:_j.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tj,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ij,lineHeight:"16px",backgroundColor:_j.WHITE,borderRadius:Dj,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.GREYSCALE_0_05}`,borderColor:_j.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.RED}`,boxShadow:`0px 0px 0px 1px ${_j.RED}, inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.GREYSCALE_0_10}`,borderColor:_j.GREYSCALE_0_10,backgroundColor:_j.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:_j.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:_j.GREYSCALE_0_15,borderRadius:Dj,boxShadow:`inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wo.createElement(Hj,{...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:_j.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:_j.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&:active":{backgroundColor:_j.GREYSCALE_0_10},"&:focus":{backgroundColor:_j.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${_j.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:_j.GREYSCALE_0_30,"&:hover":{backgroundColor:_j.GREYSCALE_0_0,borderColor:_j.GREYSCALE_0_15},"& ~svg":{color:_j.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${_j.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Dj}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:_j.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ij,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Aj,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Aj,fontWeight:Nj,color:_j.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Nj}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${_j.GREYSCALE_0_15}, 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wo.createElement(Yj,null),checkedIcon:Wo.createElement(Kj,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:_j.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:_j.GREYSCALE_0_20}},"&.Mui-disabled":{fill:_j.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wo.createElement(Qj,null),checkedIcon:Wo.createElement(Vj,null),indeterminateIcon:Wo.createElement(Uj,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Dj,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:_j.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:_j.GREYSCALE_0_55,color:_j.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:_j.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:_j.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:_j.GREYSCALE_0_55,"&:hover":{color:_j.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:_j.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:_j.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ij,color:_j.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Nj},secondary:{fontSize:Aj,color:_j.GREYSCALE_45,fontWeight:Tj,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ij,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&:active":{backgroundColor:_j.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ij,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:_j.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Aj,borderBottom:`solid 1px ${_j.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ij,color:_j.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:_j.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:_j.RED}}},"&.Mui-focusVisible":{backgroundColor:_j.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:_j.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:_j.GREEN,height:"24px","&.Mui-disabled":{color:_j.GREYSCALE_0_15}},rail:{backgroundColor:_j.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${_j.GREYSCALE_0_05}`,borderRadius:Dj,boxShadow:`inset 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${_j.GREYSCALE_0_05}`,borderRadius:Dj},thumb:{height:"16px",width:"16px",borderRadius:Dj,backgroundColor:_j.WHITE,boxShadow:`0px 1px 2px 0px ${_j.GREYSCALE_0_15}, 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`,"&:hover":{borderRadius:Dj,boxShadow:`0 2px 4px 0 ${_j.GREYSCALE_0_30}, 0 0 0 1px ${_j.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${_j.GREYSCALE_0_15}, 0 0 0 1px ${_j.GREYSCALE_0_06}, 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${_j.GREYSCALE_0_15}, 0 0 0 1px ${_j.GREYSCALE_0_06}, 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:_j.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:_j.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:_j.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:_j.GREYSCALE_0_15},markLabel:{color:_j.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:_j.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:_j.WHITE,color:_j.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:_j.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:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:_j.GREYSCALE_0_15,borderRadius:Dj},thumb:{height:"16px",width:"16px",borderRadius:Dj,backgroundColor:_j.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:Ij,fontWeight:Nj,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${_j.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,backgroundColor:_j.GREYSCALE_0_03,borderRadius:Dj},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:_j.GREYSCALE_25,"&.Mui-selected":{color:_j.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ij,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${_j.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${_j.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${_j.GREYSCALE_85}`,borderRight:`1px solid ${_j.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Nj,backgroundColor:_j.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:_j.GREYSCALE_98,borderBottom:`1px solid ${_j.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${_j.GREYSCALE_85}`,borderTop:`1px solid ${_j.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:_j.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_j.GREYSCALE_0_05,"&:hover":{backgroundColor:_j.GREYSCALE_0_03}},"&&:hover":{backgroundColor:_j.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wo.createElement(Xj,{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 ${_j.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ij,borderRadius:Dj,padding:"7px 16px",border:`1px solid ${_j.GREYSCALE_0_15}`,backgroundColor:_j.GREYSCALE_100_60,color:_j.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:_j.GREYSCALE_0_10,border:`1px solid ${_j.GREYSCALE_0_30}`},"&:hover":{backgroundColor:_j.GREYSCALE_0_03,border:`1px solid ${_j.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:_j.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`,border:`1px solid ${_j.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:_j.GREYSCALE_25,backgroundColor:_j.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:_j.GREYSCALE_0_10,border:`1px solid ${_j.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Aj,height:24,width:24,padding:7},sizeLarge:{fontSize:Pj,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ij,borderRadius:Dj}}},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:_j.GREYSCALE_20},tooltip:{backgroundColor:_j.GREYSCALE_20,fontSize:Aj,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Zj=e=>Jj;const e$={mode:"light",primary:{ultraLight:_j.GREEN_ULTRA_LIGHT,light:_j.GREEN_PALE,main:_j.GREEN,dark:_j.GREEN_DARK,extraDark:_j.GREEN_EXTRA_DARK,contrastText:_j.WHITE},secondary:{ultraLight:_j.BLUE_ULTRA_LIGHT,light:_j.BLUE_PALE,main:_j.BLUE,dark:_j.BLUE_DARK,extraDark:_j.BLUE_EXTRA_DARK,contrastText:_j.WHITE},error:{ultraLight:_j.RED_ULTRA_LIGHT,light:_j.RED_PALE,main:_j.RED,dark:_j.RED_DARK,extraDark:_j.RED_EXTRA_DARK,contrastText:_j.WHITE},warning:{ultraLight:_j.ORANGE_ULTRA_LIGHT,light:_j.ORANGE_PALE,main:_j.ORANGE,dark:_j.ORANGE_DARK,extraDark:_j.ORANGE_EXTRA_DARK,contrastText:_j.WHITE},success:{ultraLight:_j.GREEN_ULTRA_LIGHT,light:_j.GREEN_PALE,main:_j.GREEN,dark:_j.GREEN_DARK,extraDark:_j.GREEN_EXTRA_DARK,contrastText:_j.WHITE},info:{ultraLight:_j.BLUE_ULTRA_LIGHT,light:_j.BLUE_PALE,main:_j.BLUE,dark:_j.BLUE_DARK,extraDark:_j.BLUE_EXTRA_DARK,contrastText:_j.WHITE},text:{primary:_j.TEXT_PRIMARY,secondary:_j.TEXT_SECONDARY,disabled:_j.GREYSCALE_0_30},action:{hover:_j.GREYSCALE_0_03,hoverOpacity:.05,selected:_j.GREYSCALE_0_05,focus:_j.MISC_FOCUS_BORDER},amethyst:{ultraLight:_j.WHITE,main:_j.PURPLE,light:_j.PURPLE_PALE,dark:_j.PURPLE_DARK,extraDark:_j.GREYSCALE_0_0,contrastText:_j.WHITE},background:{paper:_j.WHITE,default:_j.GREYSCALE_95},divider:_j.GREYSCALE_0_15},t$=e=>e$,n$=(e="light")=>({components:Zj(),palette:t$(),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:Ij,fontWeightLight:Oj,fontWeightRegular:Tj,fontWeightMedium:Nj,fontWeightBold:qj,htmlFontSize:Ij,fontFamily:Fj.FONT_FAMILY,button:{fontWeight:Nj,fontSize:Ij,textTransform:"none"},body1:{fontSize:Pj,lineHeight:"24px"},body2:{fontSize:Ij,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Mj,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Pj,fontWeight:Nj,lineHeight:"16px"},h6:{fontSize:Ij,fontWeight:Nj,lineHeight:"16px"},caption:{color:_j.TEXT_SECONDARY},subtitle1:{fontSize:Ij,color:_j.TEXT_SECONDARY},subtitle2:{fontSize:Aj,color:_j.TEXT_SECONDARY}},shape:{borderRadius:Dj}});const r$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const n=n$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),XE({...n,direction:e})}("ltr");e.render(yg.jsx(Wo.StrictMode,{children:yg.jsx(Mw,{theme:d,children:yg.jsx(CD,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:yg.jsx(WN,{selections:n,updatePageInfo:t.updatePageInfo,children:yg.jsx(AD,{styleService:r,children:yg.jsx(Lj,{...t})})})})})}))},o$={darker:.15,brighter:.3,opacity:.03},i$={darker:.3,brighter:.5,opacity:.05};var a$,l$,s$,u$;!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"}(a$||(a$={})),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"}(l$||(l$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(s$||(s$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(u$||(u$={}));const c$=e=>e?`${parseInt(e,10)}px`:void 0,d$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?yt.Transparent:n}},p$=(e,t)=>+(parseInt(e,10)*vt*t+8).toFixed(2),f$=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ht:"normal",h$=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",m$=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",g$=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,v$=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r})=>{const{qHyperCube:o,nullValueRepresentation:i,snapshotData:a}=e,{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s,qMeasureInfo:u,qDimensionInfo:c}=o,d=!!a,p={x:Math.min(e.qHyperCube.qSize.qcx,gt),y:Math.min(e.qHyperCube.qSize.qcy,mt)},f=s.slice(0,l),h=e=>f.some((t=>t===e)),m=h(zD),g=new Map(s.map((e=>{var t;return[null!==(t=c[e])&&void 0!==t?t:zD,e]}))),v=u.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==i?void 0:i.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(m)return 0;const n=e%v.length;return t?n:u.findIndex((e=>e===v[n]))},getDimensionInfo:e=>e===zD?zD:c[e],getDimensionInfoIndex:e=>{var t;return null!==(t=g.get(e))&&void 0!==t?t:-1},size:p,isSnapshot:d,hasLimitedData:!d&&p.x<e.qHyperCube.qSize.qcx,hasData:p.x>0&&p.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:m,leftDimensionInfoIndexes:f,isLeftDimension:h,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled(Ye)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[t,a,l,n])},b$={},y$=t=>{const n=(t=>{const n=e.useMemo((()=>({current:b$})),[]);return n.current=n.current===b$?t:n.current,n})(t);return n.current=t,n},x$=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=y$((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/He.PixelsMin)}))(o));return Kn((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(gt,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(FD,ET(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},S$=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),E$=(e,t)=>{const n=mt;return{rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:S$({rowsPerPage:n,totalRowCount:e,page:t})}},w$=e=>({gridColumnStartIndex:e.gridColumnStartIndex,gridRowStartIndex:e.gridRowStartIndex,gridWidth:e.gridWidth,gridHeight:e.gridHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,verticalScrollbarWidth:e.verticalScrollbarWidth});var C$={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 R$=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(C$).forEach((t=>{e.add(C$[t])}))}}(t)),[t]),{translator:t,language:n}},k$=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>rg(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),[d,p]=((e,t)=>Kn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),f=v$(i,n,d),h=e.useSelections(),m=((t,n,r)=>{const o=e.useTheme();return e.useMemo((()=>({...o,background:Yn(o,t,n,r)})),[o.name(),t,n,r])})(r),g=m.name(),{translator:v,language:b}=R$(),{pageInfo:y,updatePageInfo:x}=(t=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=t,[o,i]=e.useState({page:0,shouldShowPagination:r.qcy>n.y,...E$(r.qcy,0)});return e.useEffect((()=>{i((e=>({...e,...E$(t.layout.qHyperCube.qSize.qcy,e.page),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,i]),e.useEffect((()=>{const{page:e,totalPages:t}=o;if(e+1>t){const e=t-1,n=S$({...o,page:e});i({...o,page:e,rowsOnCurrentPage:n})}}),[o]),{pageInfo:o,updatePageInfo:e=>i({...o,...e,rowsOnCurrentPage:S$({...o,...e})})}})(f),S=((t,n)=>{const{viewState:r}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R;return{gridColumnStartIndex:null!==(n=null!==(r=null==t||null===(o=t.content)||void 0===o?void 0:o.gridColumnStartIndex)&&void 0!==r?r:null==e?void 0:e.gridColumnStartIndex)&&void 0!==n?n:0,gridRowStartIndex:null!==(i=null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.gridRowStartIndex)&&void 0!==a?a:null==e?void 0:e.gridRowStartIndex)&&void 0!==i?i:0,gridWidth:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.gridWidth)&&void 0!==u?u:null==e?void 0:e.gridWidth)&&void 0!==s?s:0,gridHeight:null!==(d=null!==(p=null==t||null===(f=t.content)||void 0===f?void 0:f.gridHeight)&&void 0!==p?p:null==e?void 0:e.gridHeight)&&void 0!==d?d:0,scrollTop:null!==(h=null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.scrollTop)&&void 0!==m?m:null==e?void 0:e.scrollTop)&&void 0!==h?h:0,scrollLeft:null!==(v=null!==(b=null==t||null===(y=t.content)||void 0===y?void 0:y.scrollLeft)&&void 0!==b?b:null==e?void 0:e.scrollLeft)&&void 0!==v?v:0,leftGridScrollLeft:null!==(x=null!==(S=null==t||null===(E=t.content)||void 0===E?void 0:E.leftGridScrollLeft)&&void 0!==S?S:null==e?void 0:e.leftGridScrollLeft)&&void 0!==x?x:0,verticalScrollbarWidth:null!==(w=null!==(C=null==t||null===(R=t.content)||void 0===R?void 0:R.verticalScrollbarWidth)&&void 0!==C?C:null==e?void 0:e.verticalScrollbarWidth)&&void 0!==w?w:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData])})(y,i),E=(({layoutService:t,viewService:n,rect:r,model:o})=>{var i;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d}=w$(n);e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(FD,[{qLeft:n.gridColumnStartIndex,qTop:n.gridRowStartIndex,qWidth:n.gridWidth,qHeight:n.gridHeight}]),gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>w$(n)})),[n]),null!==(i=t.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r})({rect:e.useRect(),layoutService:f,viewService:S,model:a}),[w,C]=x$({model:a,layoutService:f,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R,k,L,_,A,I,P,M,D,O,T,N,q,F,z,j,$,H,B,G,W,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=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[a$.LineClamp])&&void 0!==i?i:oe(l$.Grid,s$.Grid,u$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled(Ve)?+(null!==(a=null!==(l=null==re?void 0:re[a$.ColumnLineClamp])&&void 0!==l?l:oe(l$.Grid,s$.Grid,u$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=d$(e,null==Q?void 0:Q[a$.Background]))&&void 0!==u?u:oe(l$.Dimension,s$.LabelName,u$.BackgroundColor))&&void 0!==s?s:yt.Transparent,se={header:{fontSize:null!==(c=null!==(d=c$(null==Q?void 0:Q[a$.FontSize]))&&void 0!==d?d:oe(l$.Dimension,s$.LabelName,u$.FontSize))&&void 0!==c?c:pt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[a$.FontFamily])&&void 0!==f?f:oe(l$.Dimension,s$.LabelName,u$.FontFamily))&&void 0!==p?p:ft,fontWeight:f$(null==Q?void 0:Q[a$.FontStyle],ht),fontStyle:h$(null==Q?void 0:Q[a$.FontStyle]),textDecoration:m$(null==Q?void 0:Q[a$.FontStyle]),color:null!==(h=null!==(m=d$(e,null==Q?void 0:Q[a$.FontColor]))&&void 0!==m?m:oe(l$.Dimension,s$.LabelName,u$.Color))&&void 0!==h?h:LP.TEXT,background:le,hoverBackground:_P(le,o$),activeBackground:_P(le,i$)},dimensionValues:{fontSize:null!==(g=null!==(v=c$(null==J?void 0:J[a$.FontSize]))&&void 0!==v?v:oe(l$.Dimension,s$.LabelValue,u$.FontSize))&&void 0!==g?g:pt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[a$.FontFamily])&&void 0!==y?y:oe(l$.Dimension,s$.LabelValue,u$.FontFamily))&&void 0!==b?b:ft,fontWeight:f$(null==J?void 0:J[a$.FontStyle],void 0),fontStyle:h$(null==J?void 0:J[a$.FontStyle]),textDecoration:m$(null==J?void 0:J[a$.FontStyle]),color:null!==(x=null!==(S=d$(e,null==J?void 0:J[a$.FontColor]))&&void 0!==S?S:oe(l$.Dimension,s$.LabelValue,u$.Color))&&void 0!==x?x:LP.TEXT,background:null!==(E=null!==(w=d$(e,null==J?void 0:J[a$.Background]))&&void 0!==w?w:oe(l$.Dimension,s$.LabelValue,u$.BackgroundColor))&&void 0!==E?E:yt.Transparent},measureValues:{fontSize:null!==(C=null!==(R=c$(null==Z?void 0:Z[a$.FontSize]))&&void 0!==R?R:oe(l$.Measure,s$.LabelValue,u$.FontSize))&&void 0!==C?C:pt,fontFamily:null!==(k=null!==(L=null==Z?void 0:Z[a$.FontFamily])&&void 0!==L?L:oe(l$.Measure,s$.LabelValue,u$.FontFamily))&&void 0!==k?k:ft,fontWeight:f$(null==Z?void 0:Z[a$.FontStyle],"normal"),fontStyle:h$(null==Z?void 0:Z[a$.FontStyle]),textDecoration:m$(null==Z?void 0:Z[a$.FontStyle]),color:null!==(_=null!==(A=d$(e,null==Z?void 0:Z[a$.FontColor]))&&void 0!==A?A:oe(l$.Measure,s$.LabelValue,u$.Color))&&void 0!==_?_:yt.FontSecondary,background:null!==(I=null!==(P=d$(e,null==Z?void 0:Z[a$.Background]))&&void 0!==P?P:oe(l$.Measure,s$.LabelValue,u$.BackgroundColor))&&void 0!==I?I:yt.Transparent},measureLabels:{fontWeight:f$(null==ee?void 0:ee[a$.FontStyle],"normal"),fontStyle:h$(null==ee?void 0:ee[a$.FontStyle]),textDecoration:m$(null==ee?void 0:ee[a$.FontStyle]),color:null!==(M=null!==(D=d$(e,null==ee?void 0:ee[a$.FontColor]))&&void 0!==D?D:oe(l$.Measure,s$.LabelName,u$.Color))&&void 0!==M?M:yt.FontSecondary,background:null!==(O=null!==(T=d$(e,null==ee?void 0:ee[a$.Background]))&&void 0!==T?T:oe(l$.Measure,s$.LabelName,u$.BackgroundColor))&&void 0!==O?O:yt.Transparent},totalValues:{fontWeight:f$(null==te?void 0:te[a$.FontStyle],ht),fontStyle:h$(null==te?void 0:te[a$.FontStyle]),textDecoration:m$(null==te?void 0:te[a$.FontStyle]),color:null!==(N=null!==(q=d$(e,null==te?void 0:te[a$.FontColor]))&&void 0!==q?q:oe(l$.Total,s$.LabelValue,u$.Color))&&void 0!==N?N:LP.TEXT,background:null!==(F=null!==(z=d$(e,null==te?void 0:te[a$.Background]))&&void 0!==z?z:oe(l$.Total,s$.LabelValue,u$.BackgroundColor))&&void 0!==F?F:yt.Transparent},nullValues:{fontWeight:f$(null==ne?void 0:ne[a$.FontStyle],"normal"),fontStyle:h$(null==ne?void 0:ne[a$.FontStyle]),textDecoration:m$(null==ne?void 0:ne[a$.FontStyle]),color:null!==(j=null!==($=d$(e,null==ne?void 0:ne[a$.FontColor]))&&void 0!==$?$:oe(l$.Null,s$.LabelValue,u$.Color))&&void 0!==j?j:LP.TEXT,background:null!==(H=null!==(B=d$(e,null==ne?void 0:ne[a$.Background]))&&void 0!==B?B:oe(l$.Null,s$.LabelValue,u$.BackgroundColor))&&void 0!==H?H:yt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(G=null!==(W=d$(e,null==re?void 0:re[a$.Border]))&&void 0!==W?W:oe(l$.Grid,s$.Grid,u$.BorderColor))&&void 0!==G?G:yt.DividerLight,divider:null!==(V=null!==(U=d$(e,null==re?void 0:re[a$.Divider]))&&void 0!==U?U:oe(l$.Grid,s$.Divider,u$.BorderColor))&&void 0!==V?V:yt.DividerDark,background:null!==(Y=null!==(K=d$(e,null==re?void 0:re[a$.Background]))&&void 0!==K?K:oe(l$.Grid,s$.Grid,u$.BackgroundColor))&&void 0!==Y?Y:yt.Transparent}};return se.headerCellHeight=Math.max(p$(se.header.fontSize,ae),p$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(p$(se.measureValues.fontSize,ie),p$(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(p$(se.measureValues.fontSize,1),p$(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(m,f,n)),[m.name(),f,n]),k=(t=>e.useMemo((()=>[...new Set([g$(t.header),g$(t.dimensionValues),g$({...t.dimensionValues,...t.measureLabels}),g$({...t.dimensionValues,...t.nullValues}),g$({...t.dimensionValues,...t.totalValues}),g$(t.measureValues),g$({...t.measureValues,...t.nullValues}),g$({...t.measureValues,...t.totalValues})])]),[t]))(R),L=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(k);e.useEffect((()=>{!C&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&f&&R&&!!w&&!p&&L&&r$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:f,qPivotDataPages:w,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:m,flags:n})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,f,C,w,R,o,L,v,b,y,x,d,p,s,u,m,g,n])},L$={version:"3.4.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:[]};return function(e){return{qae:{properties:{initial:L$},data:_e(e)},ext:Vt(e),component(){k$(e)}}}}));
|
|
192
|
+
`),Bq.rippleVisible,Xq,550,(({theme:e})=>e.transitions.easing.easeInOut),Bq.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Bq.child,Bq.childLeaving,Qq,550,(({theme:e})=>e.transitions.easing.easeInOut),Bq.childPulsate,Jq,(({theme:e})=>e.transitions.easing.easeInOut)),tF=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Cg(n,Gq),[l,s]=Go.useState([]),u=Go.useRef(0),c=Go.useRef(null);Go.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Go.useRef(!1),p=MS(),f=Go.useRef(null),h=Go.useRef(null),m=Go.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,yg.jsx(eF,{classes:{ripple:jx(o.ripple,Bq.ripple),rippleVisible:jx(o.rippleVisible,Bq.rippleVisible),ripplePulsate:jx(o.ripplePulsate,Bq.ripplePulsate),child:jx(o.child,Bq.child),childLeaving:jx(o.childLeaving,Bq.childLeaving),childPulsate:jx(o.childPulsate,Bq.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Go.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]),v=Go.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Go.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,(()=>{b(e,t)}));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[p]);return Go.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),yg.jsx(Zq,wg({className:jx(Bq.root,o.root,i),ref:h},a,{children:yg.jsx(vL,{component:null,exit:!0,children:l})}))}));var nF=tF;function rF(e){return Bx("MuiButtonBase",e)}var oF=Gx("MuiButtonBase",["root","disabled","focusVisible"]);const iF=["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"],aF=Iw("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"},[`&.${oF.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),lF=Go.forwardRef((function(e,t){const n=ZE({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:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:L=0,TouchRippleProps:_,touchRippleRef:A,type:I}=n,P=Cg(n,iF),M=Go.useRef(null),D=Go.useRef(null),O=_S(D,A),{isFocusVisibleRef:T,onFocus:N,onBlur:q,ref:F}=$S(),[z,j]=Go.useState(!1);s&&z&&j(!1),Go.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),M.current.focus()}})),[]);const[$,H]=Go.useState(!1);Go.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function G(e,t,n=c){return LS((r=>{t&&t(r);return!n&&D.current&&D.current[e](r),!0}))}Go.useEffect((()=>{z&&d&&!u&&$&&D.current.pulsate()}),[u,d,z,$]);const W=G("start",S),V=G("stop",m),U=G("stop",g),Y=G("stop",w),K=G("stop",(e=>{z&&e.preventDefault(),E&&E(e)})),X=G("start",k),Q=G("stop",C),J=G("stop",R),Z=G("stop",(e=>{q(e),!1===T.current&&j(!1),f&&f(e)}),!1),ee=LS((e=>{M.current||(M.current=e.currentTarget),N(e),!0===T.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=M.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Go.useRef(!1),re=LS((e=>{d&&!ne.current&&z&&D.current&&" "===e.key&&(ne.current=!0,D.current.stop(e,(()=>{D.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),oe=LS((e=>{d&&" "===e.key&&D.current&&z&&!e.defaultPrevented&&(ne.current=!1,D.current.stop(e,(()=>{D.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ie=l;"button"===ie&&(P.href||P.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(P.href||P.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=_S(t,F,M),se=wg({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:L,focusVisible:z}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=BS({root:["root",t&&"disabled",n&&"focusVisible"]},rF,o);return n&&r&&(i.root+=` ${r}`),i})(se);return yg.jsxs(aF,wg({as:ie,className:jx(ue.root,a),ownerState:se,onBlur:Z,onClick:h,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:W,onMouseLeave:K,onMouseUp:Y,onDragLeave:U,onTouchEnd:Q,onTouchMove:J,onTouchStart:X,ref:le,tabIndex:s?-1:L,type:I},ae,P,{children:[i,B?yg.jsx(nF,wg({ref:O,center:o},_)):null]}))}));var sF=lF;const uF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function cF(e){const t=[],n=[];return Array.from(e.querySelectorAll(uF)).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 dF(){return!0}function pF(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=cF,isEnabled:a=dF,open:l}=e,s=Go.useRef(!1),u=Go.useRef(null),c=Go.useRef(null),d=Go.useRef(null),p=Go.useRef(null),f=Go.useRef(!1),h=Go.useRef(null),m=_S(t.ref,h),g=Go.useRef(null);Go.useEffect((()=>{l&&h.current&&(f.current=!n)}),[n,l]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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]),Go.useEffect((()=>{if(!l||!h.current)return;const e=CS(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 v=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return yg.jsxs(Go.Fragment,{children:[yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:u,"data-testid":"sentinelStart"}),Go.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)}}),yg.jsx("div",{tabIndex:l?0:-1,onFocus:v,ref:c,"data-testid":"sentinelEnd"})]})}const fF=Go.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Go.useState(null),l=_S(Go.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 kS(t,i),()=>{kS(t,null)}}),[t,i,o]),o){if(Go.isValidElement(n)){const e={ref:l};return Go.cloneElement(n,e)}return yg.jsx(Go.Fragment,{children:n})}return yg.jsx(Go.Fragment,{children:i?og.createPortal(n,i):i})}));function hF(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function mF(e){return parseInt(RS(e).getComputedStyle(e).paddingRight,10)||0}function gF(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&&hF(e,o)}))}function vF(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function bF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=CS(e);return t.body===e?RS(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=HS(CS(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${mF(r)+e}px`;const t=CS(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${mF(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=CS(r).body;else{const t=r.parentElement,n=RS(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 yF=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&&hF(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);gF(t,e.mount,e.modalRef,r,!0);const o=vF(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=vF(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=bF(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=vF(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&&hF(e.modalRef,t),gF(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&&hF(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function xF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=yF,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Go.useRef({}),f=Go.useRef(null),h=Go.useRef(null),m=_S(h,d),[g,v]=Go.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),h.current&&(h.current.scrollTop=0)},E=LS((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||CS(f.current).body;o.add(x(),e),h.current&&S()})),w=Go.useCallback((()=>o.isTopModal(x())),[o]),C=LS((e=>{f.current=e,e&&(c&&w()?S():h.current&&hF(h.current,y))})),R=Go.useCallback((()=>{o.remove(x(),y)}),[y,o]);Go.useEffect((()=>()=>{R()}),[R]),Go.useEffect((()=>{c?E():b&&i||R()}),[c,R,b,i,E]);const k=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")))},L=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=zq(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=wg({},n,t);return wg({role:"presentation"},r,{onKeyDown:k(r),ref:m})},getBackdropProps:(e={})=>wg({"aria-hidden":!0},e,{onClick:L(e),open:c}),getTransitionProps:()=>({onEnter:ES((()=>{v(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:ES((()=>{v(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:m,portalRef:C,isTopModal:w,exited:g,hasTransition:b}}const SF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],EF={entering:{opacity:1},entered:{opacity:1}},wF=Go.forwardRef((function(e,t){const n=JE(),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:v=dL}=e,b=Cg(e,SF),y=Go.useRef(null),x=_S(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{Mq(e);const r=Dq({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)})),C=S(c),R=S(h),k=S((e=>{const t=Dq({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)})),L=S(f);return yg.jsx(v,wg({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:L,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Go.cloneElement(a,wg({style:wg({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},EF[e],m,a.props.style),ref:x},t))}))}));var CF=wF;function RF(e){return Bx("MuiBackdrop",e)}Gx("MuiBackdrop",["root","invisible"]);const kF=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],LF=Iw("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wg({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"}))),_F=Go.forwardRef((function(e,t){var n,r,o;const i=ZE({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=CF,transitionDuration:g}=i,v=Cg(i,kF),b=wg({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return BS({root:["root",n&&"invisible"]},RF,t)})(b),x=null!=(n=f.root)?n:c.root;return yg.jsx(m,wg({in:p,timeout:g},v,{children:yg.jsx(LF,wg({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:u.Root)?r:s,className:jx(y.root,l,null==x?void 0:x.className),ownerState:wg({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var AF=_F;var IF=Gx("MuiBox",["root"]);const PF=XE(),MF=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=vy("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Rx);return Go.forwardRef((function(e,a){const l=Mx(n),s=Tx(e),{className:u,component:c="div"}=s,d=Cg(s,$x);return yg.jsx(i,wg({as:c,ref:a,className:jx(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:Eg,defaultTheme:PF,defaultClassName:IF.root,generateClassName:Fx.generate});var DF=MF;function OF(e){return Bx("MuiModal",e)}Gx("MuiModal",["root","hidden","backdrop"]);const TF=["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"],NF=Iw("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})=>wg({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),qF=Iw(AF,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),FF=Go.forwardRef((function(e,t){var n,r,o,i,a,l;const s=ZE({name:"MuiModal",props:e}),{BackdropComponent:u=qF,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:v={},disableAutoFocus:b=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:L,slotProps:_,slots:A}=s,I=Cg(s,TF),P=wg({},s,{closeAfterTransition:p,disableAutoFocus:b,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:M,getBackdropProps:D,getTransitionProps:O,portalRef:T,isTopModal:N,exited:q,hasTransition:F}=xF(wg({},P,{rootRef:t})),z=wg({},P,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return BS({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},OF,r)})(z),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),F){const{onEnter:e,onExited:t}=O();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==A?void 0:A.root)?r:g.Root)?n:NF,B=null!=(o=null!=(i=null==A?void 0:A.backdrop)?i:g.Backdrop)?o:u,G=null!=(a=null==_?void 0:_.root)?a:v.root,W=null!=(l=null==_?void 0:_.backdrop)?l:v.backdrop,V=Hq({elementType:H,externalSlotProps:G,externalForwardedProps:I,getSlotProps:M,additionalProps:{ref:t,as:m},ownerState:z,className:jx(d,null==G?void 0:G.className,null==j?void 0:j.root,!z.open&&z.exited&&(null==j?void 0:j.hidden))}),U=Hq({elementType:B,externalSlotProps:W,additionalProps:c,getSlotProps:e=>D(wg({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:jx(null==W?void 0:W.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:z});return R||L||F&&!q?yg.jsx(fF,{ref:T,container:h,disablePortal:S,children:yg.jsxs(H,wg({},V,{children:[!C&&u?yg.jsx(B,wg({},U)):null,yg.jsx(pF,{disableEnforceFocus:y,disableAutoFocus:b,disableRestoreFocus:E,isEnabled:N,open:L,children:Go.cloneElement(f,$)})]}))}):null}));var zF=FF;var jF=Gx("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const $F=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function HF(e){return`scale(${e}, ${e**2})`}const BF={entering:{opacity:1,transform:HF(1)},entered:{opacity:1,transform:"none"}},GF="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),WF=Go.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=dL}=e,g=Cg(e,$F),v=MS(),b=Go.useRef(),y=JE(),x=Go.useRef(null),S=_S(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{Mq(e);const{duration:n,delay:r,easing:o}=Dq({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:GF?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),L=E((e=>{const{duration:t,delay:n,easing:r}=Dq({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:GF?o:.666*o,delay:GF?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=HF(.75),c&&c(e)})),_=E(d);return yg.jsx(m,wg({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:L,onExited:_,onExiting:k,addEndListener:e=>{"auto"===h&&v.start(b.current||0,e),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>Go.cloneElement(o,wg({style:wg({opacity:0,transform:HF(.75),visibility:"exited"!==e||a?void 0:"hidden"},BF[e],f,o.props.style),ref:S},t))}))}));WF.muiSupportAuto=!0;var VF=WF;var UF=Go.createContext({});function YF(e){return Bx("MuiList",e)}Gx("MuiList",["root","padding","dense","subheader"]);const KF=["children","className","component","dense","disablePadding","subheader"],XF=Iw("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})=>wg({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var QF=Go.forwardRef((function(e,t){const n=ZE({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=Cg(n,KF),c=Go.useMemo((()=>({dense:a})),[a]),d=wg({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return BS({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},YF,t)})(d);return yg.jsx(UF.Provider,{value:c,children:yg.jsxs(XF,wg({as:i,className:jx(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));var JF=Gx("MuiListItemIcon",["root","alignItemsFlexStart"]);var ZF=Gx("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ez=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function tz(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function nz(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function rz(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 oz(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")&&rz(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var iz=Go.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=Cg(e,ez),p=Go.useRef(null),f=Go.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});vS((()=>{r&&p.current.focus()}),[r]),Go.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${HS(CS(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=_S(p,t);let m=-1;Go.Children.forEach(i,((e,t)=>{Go.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=Go.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),Go.cloneElement(e,t)}return e}));return yg.jsx(QF,wg({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=CS(t).activeElement;if("ArrowDown"===n)e.preventDefault(),oz(t,r,s,l,tz);else if("ArrowUp"===n)e.preventDefault(),oz(t,r,s,l,nz);else if("Home"===n)e.preventDefault(),oz(t,null,s,l,tz);else if("End"===n)e.preventDefault(),oz(t,null,s,l,nz);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&&rz(r,o);o.previousKeyMatched&&(s||oz(t,r,!1,l,tz,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function az(e){return Bx("MuiPopover",e)}Gx("MuiPopover",["root","paper"]);const lz=["onEntering"],sz=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],uz=["slotProps"];function cz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function dz(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function pz(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function fz(e){return"function"==typeof e?e():e}const hz=Iw(zF,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),mz=Iw(qq,{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 gz=Go.forwardRef((function(e,t){var n,r,o;const i=ZE({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:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=VF,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=Cg(i.TransitionProps,lz),k=Cg(i,sz),L=null!=(n=null==y?void 0:y.paper)?n:v,_=Go.useRef(),A=_S(_,L.ref),I=wg({},i,{anchorOrigin:s,anchorReference:c,elevation:h,marginThreshold:m,externalPaperSlotProps:L,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),P=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"]},az,t)})(I),M=Go.useCallback((()=>{if("anchorPosition"===c)return u;const e=fz(l),t=(e&&1===e.nodeType?e:CS(_.current).body).getBoundingClientRect();return{top:t.top+cz(t,s.vertical),left:t.left+dz(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),D=Go.useCallback((e=>({vertical:cz(e,x.vertical),horizontal:dz(e,x.horizontal)})),[x.horizontal,x.vertical]),O=Go.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=D(t);if("none"===c)return{top:null,left:null,transformOrigin:pz(n)};const r=M();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=RS(fz(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:pz(n)}}),[l,c,M,D,m]),[T,N]=Go.useState(g),q=Go.useCallback((()=>{const e=_.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,N(!0)}),[O]);Go.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Go.useEffect((()=>{g&&q()})),Go.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Go.useEffect((()=>{if(!g)return;const e=wS((()=>{q()})),t=RS(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let F=E;"auto"!==E||S.muiSupportAuto||(F=void 0);const z=f||(l?CS(fz(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:hz,$=null!=(o=null==b?void 0:b.paper)?o:mz,H=Hq({elementType:$,externalSlotProps:wg({},L,{style:T?L.style:wg({},L.style,{opacity:0})}),additionalProps:{elevation:h,ref:A},ownerState:I,className:jx(P.paper,null==L?void 0:L.className)}),B=Hq({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:z,open:g},ownerState:I,className:jx(P.root,p)}),{slotProps:G}=B,W=Cg(B,uz);return yg.jsx(j,wg({},W,!Fq(j)&&{slotProps:G,disableScrollLock:C},{children:yg.jsx(S,wg({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:F},R,{children:yg.jsx($,wg({},H,{children:d}))}))}))}));function vz(e){return Bx("MuiMenu",e)}Gx("MuiMenu",["root","paper","list"]);const bz=["onEntering"],yz=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],xz={vertical:"top",horizontal:"right"},Sz={vertical:"top",horizontal:"left"},Ez=Iw(gz,{shouldForwardProp:e=>Aw(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wz=Iw(mz,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Cz=Iw(iz,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var Rz=Go.forwardRef((function(e,t){var n,r;const o=ZE({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:v={},slotProps:b={}}=o,y=Cg(o.TransitionProps,bz),x=Cg(o,yz),S=(()=>{const e=Go.useContext(KS);return null!=e&&e})(),E=wg({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),w=(e=>{const{classes:t}=e;return BS({root:["root"],paper:["paper"],list:["list"]},vz,t)})(E),C=i&&!s&&d,R=Go.useRef(null);let k=-1;Go.Children.map(a,((e,t)=>{Go.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===k)&&(k=t))}));const L=null!=(n=v.paper)?n:wz,_=null!=(r=b.paper)?r:p,A=Hq({elementType:v.root,externalSlotProps:b.root,ownerState:E,className:[w.root,l]}),I=Hq({elementType:L,externalSlotProps:_,ownerState:E,className:w.paper});return yg.jsx(Ez,wg({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:S?"right":"left"},transformOrigin:S?xz:Sz,slots:{paper:L,root:v.root},slotProps:{root:A,paper:I},open:d,ref:t,transitionDuration:h,TransitionProps:wg({onEntering:(e,t)=>{R.current&&R.current.adjustStyleForScrollbar(e,{direction:S?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:E},x,{classes:f,children:yg.jsx(Cz,wg({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:R,autoFocus:i&&(-1===k||s),autoFocusItem:C,variant:g},u,{className:jx(w.list,u.className),children:a}))}))}));function kz(e){return Bx("MuiMenuItem",e)}var Lz=Gx("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const _z=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Az=Iw(sF,{shouldForwardProp:e=>Aw(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})=>wg({},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"}},[`&.${Lz.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:aE(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lz.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:aE(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lz.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:aE(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})`:aE(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Lz.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lz.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${jF.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${jF.inset}`]:{marginLeft:52},[`& .${ZF.root}`]:{marginTop:0,marginBottom:0},[`& .${ZF.inset}`]:{paddingLeft:36},[`& .${JF.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wg({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${JF.root} svg`]:{fontSize:"1.25rem"}}))));var Iz=Go.forwardRef((function(e,t){const n=ZE({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=Cg(n,_z),f=Go.useContext(UF),h=Go.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=Go.useRef(null);vS((()=>{r&&m.current&&m.current.focus()}),[r]);const g=wg({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return wg({},a,BS({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},kz,a))})(n),b=_S(m,t);let y;return n.disabled||(y=void 0!==c?c:-1),yg.jsx(UF.Provider,{value:h,children:yg.jsx(Az,wg({ref:b,role:u,tabIndex:y,component:o,focusVisibleClassName:jx(v.focusVisible,s),className:jx(v.root,d)},p,{ownerState:g,classes:v}))})}));const Pz=Iw(DF,{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}}))),Mz=Iw("div")({position:"absolute",left:0,bottom:0}),Dz=Iw("div")({...St,flexDirection:"row",overflow:"hidden",position:"relative",gap:8}),Oz=Iw("div")((()=>({...St}))),Tz=Iw("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}))),Nz=Iw(Rz)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),qz=Iw(Iz,{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}}}))),Fz=Iw("div",{shouldForwardProp:e=>"visible"!==e})((({visible:e})=>({opacity:e?1:0,width:PD,display:"flex",justifyContent:"center",alignItems:"center",position:"relative"}))),zz={[OM.SORTING]:!0,[OM.SELECTIONS]:!0,[OM.SEARCHING]:!0},jz=({dataModel:e,cell:t,style:n,isFirstColumn:r,isLastColumn:o,isLastRow:i,translator:a,changeSortOrder:l,changeActivelySortedHeader:s,iconsVisibilityStatus:u,columnWidth:c,overrideLeftGridWidth:d,layoutService:p})=>{var f;const h=Go.useRef(null),m=_D(),{app:g,model:v,interactions:b,embed:y,flags:x}=wD(),{fontSize:S,fontFamily:E,fontStyle:w,fontWeight:C,textDecoration:R,color:k,background:L,hoverBackground:_,activeBackground:A}=m.header,I=Go.useRef(null),{shouldShowLockIcon:P,shouldShowMenuIcon:M}=u,{open:D,setOpen:O,handleOpenMenu:T,setIsAdjustingWidth:N}=Iq({interactions:b,dataModel:e}),q={sortFromMenu:async(e,n)=>{e.stopPropagation(),await l(t,n)},changeActivelySortedHeader:s},F={embed:y,listboxRef:h},z={model:v,app:g},{labelTextAlign:j}=null!==(f=p.getDimensionInfo(t.dimensionInfoIndex))&&void 0!==f?f:{},$=uq(j,"flex-start",x);return yg.jsxs(Pz,{title:t.label,interactions:b,background:D?A:L,hoverBackground:_,shouldShowMenuIcon:M,isDimension:t.isDim,style:{...n,...wt,..._t(t,i,r,o,m.grid.border),color:k},"data-testid":"title-cell",onClick:T,children:[yg.jsxs(Dz,{children:[P&&yg.jsx(Oz,{children:yg.jsx(_q,{height:12})}),yg.jsx(Tz,{fontFamily:E,fontSize:S,fontStyle:w,fontWeight:C,textDecoration:R,justifyContent:$,children:yg.jsx("span",{style:Ct,children:t.label})})]}),t.isDim&&yg.jsxs(yg.Fragment,{children:[yg.jsx(NM,{headerData:t,translator:a,anchorRef:I,open:D,setOpen:O,interactions:b,menuAvailabilityFlags:zz,sortRelatedArgs:q,searchRelatedArgs:F,selectionRelatedArgs:z,shouldShowMenuIcon:M}),yg.jsx(Mz,{ref:h}),yg.jsx(Mz,{ref:I})]}),yg.jsx(Pq,{cellInfo:{...t,isLeftColumn:!0},columnWidth:c,dataModel:e,isLastColumn:o,overrideLeftGridWidth:d,setIsAdjustingWidth:N})]})},$z=({rowSpan:e,columnSpan:t})=>{const n=_D();return e>0&&t>0?yg.jsx("div",{style:{...Et,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 Hz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Bz=(e,t)=>Wo.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){Hz(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),Wo.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})),Gz=Go.forwardRef(Bz);function Wz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Vz=(e,t)=>Wo.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){Wz(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),Wo.createElement("path",{d:"m8 7-4.5 4.5L2 10l6-6 6 6-1.5 1.5z"}),Wo.createElement("use",{fillRule:"evenodd"})),Uz=Go.forwardRef(Vz);function Yz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Kz=(e,t)=>Wo.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){Yz(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),Wo.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"})),Xz=Go.forwardRef(Kz),Qz=({cell:e,translator:t,dataModel:n,changeSortOrder:r,changeActivelySortedHeader:o})=>{const i=Go.useRef(null),a=Go.useRef(null),{app:l,model:s,interactions:u,embed:c}=wD(),{open:d,setOpen:p,handleOpenMenu:f}=Iq({interactions:u,dataModel:n});return yg.jsxs(qz,{component:"div",onClick:f,isActive:d,children:[yg.jsx("span",{children:e.label}),yg.jsxs(Fz,{className:"indent-mode-dropdown-more",visible:d,children:[yg.jsx(Xz,{}),e.isDim&&yg.jsxs(yg.Fragment,{children:[yg.jsx(NM,{headerData:e,translator:t,anchorRef:i,open:d,setOpen:p,interactions:u,menuAvailabilityFlags:zz,sortRelatedArgs:{sortFromMenu:async(t,n)=>{t.stopPropagation(),await r(e,n)},changeActivelySortedHeader:o},searchRelatedArgs:{embed:c,listboxRef:a},selectionRelatedArgs:{model:s,app:l},shouldShowMenuIcon:!1}),yg.jsx(Mz,{ref:a}),yg.jsx(Mz,{ref:i})]})]})]})},Jz=({headersData:e,menuItems:t,dataModel:n,translator:r,changeSortOrder:o,changeActivelySortedHeader:i})=>{const a=_D(),{interactions:l}=wD(),[s,u]=Go.useState(!1),c=Go.useRef(null),{headerCellHeight:d}=a,{color:p,background:f,hoverBackground:h,activeBackground:m,fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x}=a.header,S=e=>e.stopPropagation(),E={height:d,gridColumn:`1 / span ${e.size.x}`,gridRow:e.size.y,zIndex:e.size.x-0};return yg.jsxs(Pz,{isDimension:!0,background:s?m:f,interactions:l,hoverBackground:h,style:{...E,...wt,color:p},onClick:()=>l.active&&u(!s),children:[yg.jsxs(Dz,{children:[yg.jsx(Tz,{fontFamily:g,fontSize:v,fontStyle:b,fontWeight:y,textDecoration:x,justifyContent:"flex-start",children:yg.jsx("span",{style:Ct,children:r.get("SNPivotTable.IndentMode.Rows")})}),s?yg.jsx(Uz,{}):yg.jsx(Gz,{}),yg.jsx(Mz,{ref:c})]}),yg.jsx(Nz,{open:s,anchorEl:c.current,children:t.map(((e,a)=>[e&&(null==e?void 0:e.id)!==jD&&yg.jsx("li",{role:"presentation",onClick:S,onKeyDown:S,children:yg.jsx(Qz,{cell:e,translator:r,dataModel:n,changeSortOrder:o,changeActivelySortedHeader:i})}),a<t.length-1&&yg.jsx(HP,{"data-testid":"group-divider",variant:"middle"},"divider")]))})]})},Zz={display:"grid",width:"fit-content"},ej=({dataModel:e,columnWidths:t,rowHight:n,headersData:r,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,getHeaderCellsIconsVisibilityStatus:l,height:s,overrideLeftGridWidth:u,layoutService:c})=>yg.jsxs("div",{style:{...Zz,gridTemplateColumns:t.map((e=>`${e}px`)).join(" "),gridTemplateRows:r.data.map((()=>`${n}px`)).join(" "),height:s},children:[r.size.y>1&&yg.jsx($z,{columnSpan:r.size.x-1,rowSpan:r.size.y-1}),r.data.map(((s,d)=>{let p=[];if(c.isIndentModeEnabled&&r.size.x>1&&d+1===r.size.y){const t=r.data.at(-1);return p.push(yg.jsx(Jz,{headersData:r,menuItems:t[0],dataModel:e,translator:o,changeSortOrder:i,changeActivelySortedHeader:a},t[0][0].id)),p}return p=s.reduce(((s,p,f)=>{if(p){const h=l(f,p.isLocked,p.label);s.push(yg.jsx(jz,{dataModel:e,style:{width:t[f],height:n,gridColumn:c.isIndentModeEnabled&&r.size.x>1?2:f+1,gridRow:d+1,zIndex:r.size.x-f},isLastRow:d===r.size.y-1,isFirstColumn:0===f,isLastColumn:f===r.size.x-1,translator:o,changeSortOrder:i,changeActivelySortedHeader:a,cell:p,iconsVisibilityStatus:h,columnWidth:t[f],overrideLeftGridWidth:u,layoutService:c},p.id))}return s}),[]),p}))]});var tj=Go.memo(ej);const nj=(e,t,n,r,o)=>{Go.useLayoutEffect((()=>{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])},rj=(e,t)=>{lg((()=>{var t;null===(t=e.current)||void 0===t||t.forEach((e=>null==e?void 0:e.resetAfterIndex(0,!1)))}),[e,t])},oj=(e,t,n,r)=>{var o;const i=n?"flex-start":"center";var a,l;if(e.representation.type===TD.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 uq(n,i,r)}const{textAlign:u}=null!==(o=t.getDimensionInfo(e.dimensionInfoIndex))&&void 0!==o?o:{};return uq(u,i,r)},ij=()=>{},aj=({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=_D(),{interactions:f,flags:h}=wD(),{select:m,isLocked:g}=GN(),{layoutService:v,showLastBorder:b}=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 yg.jsx("div",{title:f.passive?t:void 0,style:{...n,...Lt(a,l,p.grid.border,b),...At({bottomDivider:i&&s,rightDivider:i&&!s,borderColor:p.grid.divider}),...wt,padding:"0px 4px",cursor:eq(x),background:KN({styleService:p,isCellSelected:u,cell:r,isCellLocked:y}),zIndex:s?void 0:v.size.x-r.x,justifyContent:oj(r,v,s,h),display:"flex",...v.isIndentModeEnabled&&s&&{paddingLeft:24*(null!==(d=r.indentLevel)&&void 0!==d?d:0)}},"aria-hidden":"true",onClick:S,onKeyUp:ij,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})},lj=e=>e.stopPropagation(),sj=({href:e,text:t,interactions:n,color:r})=>Wo.createElement(YA,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:lj,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),uj=e=>e.contentRowHeight/2-e.contentTextHeight/2,cj=({children:e,styleService:t,isLeftColumn:n,textStyle:r})=>yg.jsx("span",{style:{...r,marginTop:n?uj(t):void 0,padding:"0px 4px"},children:e}),dj=({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>{const{isActive:o}=GN(),{interactions:i,flags:a}=wD();let l=e.representation.text;if(e.isEmpty)return null;const s=(({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r})=>({...Ct,...Rt(r?Math.max(t.grid.lineClamp,e.leafCount*t.grid.lineClamp):t.grid.columnLineClamp),color:XN({cell:e,styleService:t,isCellSelected:n}),fontWeight:QN({cell:e,styleService:t}),fontStyle:JN({cell:e,styleService:t}),textDecoration:ZN({cell:e,styleService:t}),fontFamily:t.dimensionValues.fontFamily,fontSize:t.dimensionValues.fontSize}))({cell:e,styleService:t,isCellSelected:n,isLeftColumn:r});return e.representation.type===TD.Image&&!e.isTotal&&a.isEnabled(Ve)?yg.jsx(sq,{representation:e.representation,isLeftColumn:r,styleService:t,textStyle:s,leafCount:e.leafCount,canExpandOrCollapse:e.ref.qCanCollapse||e.ref.qCanExpand}):(e.representation.type!==TD.Link||o||e.isTotal||!a.isEnabled(Ue)||(l=yg.jsx(sj,{text:e.representation.text,href:e.representation.url,interactions:i,color:e.expressionColor.color})),yg.jsx(cj,{isLeftColumn:r,textStyle:s,styleService:t,children:l}))},pj=e=>{const t=e.isLeftColumn?"flex-start":"center";var n;return e.representation.type!==TD.Image||(e=>"fill"===e.representation.imageSize)(e)?t:null===(n=e.representation.resolvedImagePosition)||void 0===n?void 0:n.vertical},fj=({index:e,style:t,data:n})=>{const r=_D(),{isSelected:o}=GN(),{isAdjustingWidth:i,setIsAdjustingWidth:a}=Aq([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,v=gN(h,p,f.isIndentModeEnabled);if(void 0===h){const{background:n}=r.dimensionValues;return yg.jsx(PN,{style:{...t,background:n},index:e,isLastRow:m,isLastColumn:g,showLastBorder:u,isLeftColumn:s,showTotalCellDivider:v})}const b=o(h);return yg.jsxs(aj,{text:h.representation.text,reactWindowStyle:t,isLeftColumn:s,isLastRow:m,isLastColumn:g,isCellSelected:b,showTotalCellDivider:v,cell:h,data:n,isAdjustingWidth:i,children:[yg.jsxs(MN,{verticalAlign:pj(h),width:DN(h.representation),right:h.isLeftColumn?void 0:4,children:[yg.jsx(nq,{isLeftColumn:s,isCellSelected:b,cell:h,dataModel:l}),yg.jsx(dj,{isLeftColumn:s,isCellSelected:b,cell:h,styleService:r})]}),yg.jsx(Pq,{cellInfo:{...h,columnWidthLocation:h.isPseudoDimension?Qe.Measures:Qe.Dimension},columnWidth:t.width,dataModel:l,isLastColumn:g,setIsAdjustingWidth:a})]})};var hj=Wo.memo(fj,mN);const mj=({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()},gj=(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}},vj=(e,t)=>n=>{e.current&&(e.current[t]=n)},bj={display:"flex",height:"fit-content",borderWidth:"1px 0px 0px 0px",...Et},yj={overflow:"hidden",willChange:"auto",flexShrink:0},xj=({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}}=_D();rj(t,a),nj(t,n,o,d,i);const f=u.rowsOnCurrentPage*d;return yg.jsx("div",{style:{...bj,borderColor:p},children:a.grid.map(((n,p)=>{const h=p===a.columnCount-1,m=rO(s[p]),{itemCount:g,estimatedItemSize:v,listValues:b}=gj(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,b,d,h,c.qcy);return yg.jsx(dN,{ref:vj(t,p),style:{...yj,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:b,totalDividerIndex:a.totalDividerIndex},itemKey:Sq,estimatedItemSize:v,children:hj},m)}))})};var Sj=Go.memo(xj);const Ej={overflow:"hidden",willChange:"auto"},wj={...Et,borderWidth:"0px 0px 0px 1px"},Cj=({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}=_D(),p={...wj,borderColor:c,height:o};rj(t,a),nj(t,r,o,d,i);const f=i.size.x*s();return 0===a.rowCount?yg.jsx("div",{style:{width:r,height:o,...wj}}):yg.jsx("div",{style:p,children:a.grid.map(((o,c)=>{const d=c===a.rowCount-1,{itemCount:p,estimatedItemSize:h,listValues:m}=gj(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}),v=g?rO(g):`empty ${c}`;return yg.jsx(dN,{ref:vj(t,c),style:Ej,height:n(),width:r,itemCount:p,itemSize:mj({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:Sq,estimatedItemSize:h,children:hj},v)}))})};var Rj=Go.memo(Cj);const kj=({model:e,rect:t,viewService:n,layoutService:r,qPivotDataPages:o,pageInfo:i,translator:a})=>{const{headerCellHeight:l,contentCellHeight:s}=_D(),u=((e,t,n)=>Go.useMemo((()=>{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 Go.useMemo((()=>{var e,n,a,l;const s=kT(null!==(e=null===(n=t[0])||void 0===n?void 0:n.qLeft)&&void 0!==e?e:[]),u=kT(null!==(a=null===(l=t[0])||void 0===l?void 0:l.qTop)&&void 0!==a?a:[]);return{visibleLeftDimensionInfo:s.map(RT(i,o,0)),visibleTopDimensionInfo:u.map(RT(i,o,r))}}),[i,o,r,t])})(r,o),{changeSortOrder:p,changeActivelySortedHeader:f}=((e,t)=>{const n=Go.useMemo((()=>({changeSortOrder:async(t,n)=>{if(!e)throw new Error("No Model provided!");const{qReverseSort:r,dimensionInfoIndex:o}=t,i=[];("D"===n&&!r||"A"===n&&r)&&i.push({qPath:`/qHyperCubeDef/qDimensions/${o}/qDef/qReverseSort`,qOp:"Replace",qValue:(!r).toString()});try{return await e.applyPatches(i,!0),!0}catch(e){return console.error("Error while applying patch: ",e),!1}},changeActivelySortedHeader:async n=>{if(!e)throw new Error("No Model provided!");const{colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a}=n,l=[{qPath:"/qHyperCubeDef/activelySortedColumn",qOp:t.activelySortedColumn?"Replace":"Add",qValue:JSON.stringify({colIdx:r,qLibraryId:o,fieldId:i,sortDirection:a})}];try{return await(null==e?void 0:e.applyPatches(l,!0)),!0}catch(e){return console.error("Error while applying patch: ",e),!1}}})),[e,t.activelySortedColumn]);return n})(e,r.layout.qHyperCube),{headersData:h,measureData:m,topDimensionData:g,leftDimensionData:v,attrExprInfoIndexes:b,nextPageHandler:y}=xT(o,r,i,c,d),x=wT({model:e,nextPageHandler:y,pageInfo:i,layoutService:r}),{onHorizontalScrollHandler:S,onVerticalScrollHandler:E,verticalScrollableContainerRef:w,leftGridHorizontalScrollableContainerRef:C,dataGridHorizontalScrollableContainerRef:R,dataGridRef:k,leftGridRef:L,topGridRef:_,verticalScrollbarWidth:A,horizontalScrollbarHeight:I,horizontalScrollbarHeightSetter:P,verticalScrollDirection:M,horizontalScrollDirection:D}=(({layoutService:e,viewService:t,pageInfo:n,tableRect:r,mockedRefs:o})=>{var i,a,l,s,u,c;const{theme:d,flags:p}=wD(),f=Go.useRef(null!==(i=null==o?void 0:o.verticalScrollableContainerRef)&&void 0!==i?i:null),h=Go.useRef(null!==(a=null==o?void 0:o.leftGridHorizontalScrollableContainerRef)&&void 0!==a?a:null),m=Go.useRef(null!==(l=null==o?void 0:o.dataGridHorizontalScrollableContainerRef)&&void 0!==l?l:null),g=Go.useRef(null!==(s=null==o?void 0:o.topGridRef)&&void 0!==s?s:[]),v=Go.useRef(null!==(u=null==o?void 0:o.leftGridRef)&&void 0!==u?u:[]),b=Go.useRef(null!==(c=null==o?void 0:o.dataGridRef)&&void 0!==c?c:null),y=Go.useRef(0),x=Go.useRef(0),S=Go.useRef(et.None),E=Go.useRef(et.None),[w,C]=Go.useState(0),[R,k]=Go.useState(0),L=d.name(),_=e=>{E.current=CT(e.currentTarget.scrollLeft,y.current),y.current=e.currentTarget.scrollLeft,S.current=CT(e.currentTarget.scrollTop,x.current),x.current=e.currentTarget.scrollTop};Go.useLayoutEffect((()=>{e.triggerdByExpandOrCollapse||(h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0))}),[e]),Go.useLayoutEffect((()=>{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=v.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]),Go.useLayoutEffect((()=>{h.current&&(h.current.scrollLeft=0),m.current&&(m.current.scrollLeft=0),f.current&&(f.current.scrollTop=0)}),[n.page]);const A=Go.useCallback((e=>{if(e)return void k(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)}k(t)}),[k]);return Go.useLayoutEffect((()=>{if(f.current){const e=f.current,n=e.offsetWidth-e.clientWidth;C(n),p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")&&n>0&&(t.verticalScrollbarWidth=n)}A()}),[A,e,t,r.width,r.height,L,p]),Go.useLayoutEffect((()=>{(p.isEnabled("CLIENT_IM4976_PIVOT_DOWNLOAD")||p.isEnabled("CLIENT_IM5878_PIVOT_SNAPSHOT"))&&f.current&&m.current&&h.current&&(f.current.scrollTop=t.scrollTop,m.current.scrollLeft=t.scrollLeft,h.current.scrollLeft=t.leftGridScrollLeft,C(-1*((null==t?void 0:t.verticalScrollbarWidth)||0)))}),[p,t.scrollTop,t.scrollLeft,t.leftGridScrollLeft,null==t?void 0:t.verticalScrollbarWidth,f,m,h]),{onHorizontalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(e.target.dataset.key===`scrollable-container--${Ze.LEFT_GRID}`&&(t.leftGridScrollLeft=e.currentTarget.scrollLeft),e.target.dataset.key===`scrollable-container--${Ze.DATA_GRID}`&&(_(e),null===(n=g.current)||void 0===n||n.forEach((t=>null==t?void 0:t.scrollTo(e.currentTarget.scrollLeft))),null===(r=b.current)||void 0===r||r.scrollTo({scrollLeft:e.currentTarget.scrollLeft}),t.scrollLeft=e.currentTarget.scrollLeft))},onVerticalScrollHandler:e=>{var n,r;e.target instanceof HTMLDivElement&&(_(e),null===(n=v.current)||void 0===n||n.filter(Boolean).forEach((t=>t.scrollTo(e.currentTarget.scrollTop))),null===(r=b.current)||void 0===r||r.scrollTo({scrollTop:e.currentTarget.scrollTop}),t.scrollTop=e.currentTarget.scrollTop)},verticalScrollableContainerRef:f,leftGridHorizontalScrollableContainerRef:h,dataGridHorizontalScrollableContainerRef:m,dataGridRef:b,leftGridRef:v,topGridRef:g,verticalScrollbarWidth:w,horizontalScrollbarHeight:R,horizontalScrollbarHeightSetter:A,verticalScrollDirection:S,horizontalScrollDirection:E}})({layoutService:r,viewService:n,pageInfo:i,tableRect:u}),{containerHeight:O,headerGridHeight:T,topGridHeight:N,leftGridHeight:q,dataGridHeight:F,allRowsVisible:z}=function({pageInfo:e,headersData:t,topDimensionData:n,tableRect:r,horizontalScrollbarHeight:o}){const{headerCellHeight:i,contentCellHeight:a}=_D(),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-bt,l),dataGridHeight:Math.min(r.height-c-bt,l),allRowsVisible:c+bt+l+o<=r.height}}({pageInfo:i,headersData:h,topDimensionData:g,tableRect:u,horizontalScrollbarHeight:I}),{leftGridWidth:j,leftGridColumnWidths:$,rightGridWidth:H,totalWidth:B,showLastRightBorder:G,getRightGridColumnWidth:W,getHeaderCellsIconsVisibilityStatus:V,overrideLeftGridWidth:U}=function({layoutService:e,tableWidth:t,headersData:n,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,horizontalScrollbarHeightSetter:i}){const a=_D(),{measureText:l}=Xo(a.header),s=YD({layoutService:e,tableWidth:t,headersData:n}),u=KD({layoutService:e,tableWidth:t,visibleTopDimensionInfo:r,verticalScrollbarWidth:o,leftGridWidth:s.leftGridWidth}),c=s.leftGridWidth+u.rightGridFullWidth+bt,d=c<t,p=Go.useCallback(((e,t,n="")=>{const r=s.leftGridColumnWidths[e];let o=!1,i=!1,a=l(n)+DD;return t&&a+MD<=r&&(i=!0,a+=MD),a+PD<=r&&(o=!0),{shouldShowMenuIcon:o,shouldShowLockIcon:i}}),[s.leftGridColumnWidths,l]);return Go.useEffect((()=>{const e=s.leftGridWidth===s.leftGridFullWidth,t=u.rightGridWidth===u.rightGridFullWidth;i(e&&t)}),[i,s.leftGridWidth,s.leftGridFullWidth,u.rightGridWidth,u.rightGridFullWidth]),{...s,...u,totalWidth:c,showLastRightBorder:d,getHeaderCellsIconsVisibilityStatus:p}}({layoutService:r,tableWidth:u.width,headersData:h,visibleTopDimensionInfo:d,verticalScrollbarWidth:A,horizontalScrollbarHeightSetter:P}),{rootWrapper:Y,leftWrapper:K,rightWrapper:X}=(({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+bt,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,v=e.height-m,b=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:v}},headerGrid:{width:-1,height:n},leftGrid:{width:s,height:r-m+f}},rightWrapper:{containers:{scrollable:{width:u+bt-h,height:g},fullSize:{width:b,height:t},sticky:{width:b<y?b:y,height:v}},topGrid:{width:u-h,height:o},dataGrid:{width:u-h,height:i-m+f}}}})({tableRect:u,containerHeight:O,headerGridHeight:T,leftGridHeight:q,topGridHeight:N,dataGridHeight:F,allRowsVisible:z,totalWidth:B,leftGridWidth:j,rightGridWidth:H,verticalScrollbarWidth:A,horizontalScrollbarHeight:I}),Q=Go.useCallback((()=>l),[l]),J=Go.useCallback((()=>s),[s]);return yg.jsx(IT,{ref:w,...Y.scrollable,onScroll:E,showVerticalScrollbar:!0,showHorizontalScrollbar:!1,origin:Ze.CONTAINER_GRID,children:yg.jsx(LT,{...Y.fullSize,children:yg.jsxs(PT,{...Y.sticky,style:{display:"grid",gridTemplateColumns:j?`${K.containers.scrollable.width}px ${X.containers.scrollable.width}px`:`${X.containers.scrollable.width}px`},children:[Boolean(j)&&yg.jsx(IT,{ref:C,...K.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.LEFT_GRID,children:yg.jsx(LT,{isLeftGrid:!0,...K.containers.fullSize,children:yg.jsxs(PT,{isLeftGrid:!0,...K.containers.sticky,children:[yg.jsx(tj,{dataModel:x,columnWidths:$,getHeaderCellsIconsVisibilityStatus:V,rowHight:l,height:K.headerGrid.height,headersData:h,translator:a,changeSortOrder:p,changeActivelySortedHeader:f,overrideLeftGridWidth:U,layoutService:r}),yg.jsx(Sj,{dataModel:x,leftGridRef:L,...K.leftGrid,columnWidths:$,layoutService:r,leftDimensionData:v,showLastBorder:{right:!1,bottom:z},visibleLeftDimensionInfo:c,pageInfo:i})]})})}),yg.jsx(IT,{ref:R,...X.containers.scrollable,onScroll:S,showVerticalScrollbar:!1,showHorizontalScrollbar:!0,origin:Ze.DATA_GRID,children:yg.jsx(LT,{...X.containers.fullSize,children:yg.jsxs(PT,{...X.containers.sticky,children:[yg.jsx(Rj,{dataModel:x,topGridRef:_,rowHightCallback:Q,...X.topGrid,layoutService:r,topDimensionData:g,showLastBorder:{right:G,bottom:!1},getRightGridColumnWidth:W,headersData:h}),yg.jsx(Rq,{dataModel:x,dataGridRef:k,rowHightCallback:J,...X.dataGrid,viewService:n,layoutService:r,measureData:m,leftDimensionData:v,topDimensionData:g,visibleTopDimensionInfo:d,visibleLeftDimensionInfo:c,attrExprInfoIndexes:b.measures,showLastBorder:{right:G,bottom:z},getRightGridColumnWidth:W,pageInfo:i,verticalScrollDirection:M,horizontalScrollDirection:D})]})})})]})})})},Lj=e=>{const{layoutService:t,translator:n,pageInfo:r,updatePageInfo:o,rect:i}=e,{keyboard:a,theme:l,interactions:s}=wD(),{layout:u,hasData:c}=t;return yg.jsxs(yg.Fragment,{children:[c&&yg.jsx(kj,{...e}),yg.jsx(RD,{translator:n,layoutService:t}),yg.jsx(xD,{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})]})},_j={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)"},Aj=12,Ij=14,Pj=16,Mj=24,Dj=3,Oj=300,Tj=400,Nj=600,qj=700,Fj={FONT_FAMILY:"'Source Sans Pro', 'HelveticaNeue', 'Helvetica Neue', Helvetica, Arial, sans-serif"};Tw(_j.GREYSCALE_0,.05),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5);var zj;function jj(){return jj=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},jj.apply(this,arguments)}Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5),Tw(_j.GREEN_PALE,.5),Tw(_j.BLUE_PALE,.5);var $j,Hj=function(e){return Go.createElement("svg",jj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),zj||(zj=Go.createElement("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5z"})))};function Bj(){return Bj=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},Bj.apply(this,arguments)}var Gj=function(e){return Go.createElement("svg",Bj({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"currentColor"},e),$j||($j=Go.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 Wj({fontSize:e="medium",children:t=null,className:n=""}={}){const r="small"===e?"16px":"20px",o="small"===e?"-2px 0":void 0;return Wo.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 Vj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20"},Wo.createElement("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),Wo.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"}))),Uj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),Wo.createElement("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})))),Yj=(e={})=>Wo.createElement(Wj,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212"},Wo.createElement("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})))),Kj=(e={})=>Wo.createElement(Wj,{fontSize:"medium",...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),Wo.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"}))),Xj=({className:e})=>Wo.createElement(Wj,{fontSize:"small",className:e},Wo.createElement("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero"},Wo.createElement("g",{transform:"translate(4.324187, 1.300372)"},Wo.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"}),Wo.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"})))))),Qj=(e={})=>Wo.createElement(Wj,{...e},Wo.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Wo.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Wo.createElement("rect",{stroke:_j.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const Jj={MuiAccordion:{styleOverrides:{root:{backgroundColor:_j.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:_j.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Wo.createElement(Hj,{"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 ${_j.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,borderRadius:Dj,backgroundColor:_j.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 ${_j.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:_j.WHITE,color:_j.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:Dj},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:_j.GREYSCALE_0_15,backgroundColor:_j.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:_j.GREEN_PALE},"&:active":{backgroundColor:_j.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:_j.BLUE_PALE},"&:active":{backgroundColor:_j.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.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:Dj,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:_j.GREYSCALE_0_15,backgroundColor:_j.GREYSCALE_100_60,"&:active":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:_j.PURPLE,"&.Mui-focusVisible":{borderColor:_j.PURPLE,boxShadow:`0 0 0 3px ${SS(_j.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:_j.GREEN,"&.Mui-focusVisible":{borderColor:_j.GREEN,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:_j.BLUE,"&.Mui-focusVisible":{borderColor:_j.BLUE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:_j.ORANGE,"&.Mui-focusVisible":{borderColor:_j.ORANGE,boxShadow:`0 0 0 3px ${SS(_j.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:_j.RED,"&.Mui-focusVisible":{borderColor:_j.RED,boxShadow:`0 0 0 3px ${SS(_j.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:_j.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:_j.PURPLE_PALE},"&:active":{backgroundColor:_j.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:_j.PURPLE_PALE,boxShadow:`0 0 0 3px ${SS(_j.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:_j.GREEN_PALE},"&:active":{backgroundColor:_j.GREEN_DARK},"&.Mui-focusVisible":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:_j.BLUE_PALE},"&:active":{backgroundColor:_j.BLUE_DARK},"&.Mui-focusVisible":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:_j.ORANGE_PALE},"&:active":{backgroundColor:_j.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:_j.ORANGE_PALE,boxShadow:`0 0 0 3px ${SS(_j.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:_j.RED_PALE},"&:active":{backgroundColor:_j.RED_DARK},"&.Mui-focusVisible":{borderColor:_j.RED_PALE,boxShadow:`0 0 0 3px ${SS(_j.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:_j.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:_j.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Dj,boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Wo.createElement(Gj,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:Aj,borderRadius:Dj,color:_j.TEXT_PRIMARY,backgroundColor:_j.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:_j.GREYSCALE_0_05,color:_j.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:_j.GREEN,borderColor:_j.GREEN},"&.MuiChip-outlinedInfo":{color:_j.BLUE,borderColor:_j.BLUE},"&.MuiChip-outlinedWarning":{color:_j.ORANGE,borderColor:_j.ORANGE},"&.MuiChip-outlinedError":{color:_j.RED,borderColor:_j.RED}},outlined:{border:`solid 1px ${_j.GREYSCALE_0_15}`,backgroundColor:_j.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Dj,boxShadow:"none",backgroundColor:_j.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:_j.GREEN,borderColor:_j.GREEN},outlinedSecondary:{color:_j.BLUE,borderColor:_j.BLUE},label:{fontFamily:Fj.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Wo.createElement(Gj,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Wo.createElement(Hj,{"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:Dj},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Dj,fontSize:Ij,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:_j.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${_j.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:_j.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:_j.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:_j.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Dj,border:`solid 1px ${_j.GREYSCALE_0_15}`,color:_j.GREYSCALE_0_60,marginRight:0,width:Mj,height:Mj},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${_j.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Dj,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:_j.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ij}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:Aj,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:_j.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:_j.GREYSCALE_25,fontSize:Aj,fontFamily:Fj.FONT_FAMILY,fontWeight:Nj,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:_j.TEXT_PRIMARY},"&.Mui-error":{color:_j.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:_j.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Tj,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:_j.TEXT_SECONDARY,content:"'(required)'",fontWeight:Tj,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ij,lineHeight:"16px",backgroundColor:_j.WHITE,borderRadius:Dj,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.GREYSCALE_0_05}`,borderColor:_j.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.RED}`,boxShadow:`0px 0px 0px 1px ${_j.RED}, inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${_j.GREYSCALE_0_10}`,borderColor:_j.GREYSCALE_0_10,backgroundColor:_j.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:_j.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:_j.GREYSCALE_0_15,borderRadius:Dj,boxShadow:`inset 0 2px 0 0 ${_j.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Wo.createElement(Hj,{...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:_j.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:_j.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&:active":{backgroundColor:_j.GREYSCALE_0_10},"&:focus":{backgroundColor:_j.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${_j.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:_j.GREYSCALE_0_30,"&:hover":{backgroundColor:_j.GREYSCALE_0_0,borderColor:_j.GREYSCALE_0_15},"& ~svg":{color:_j.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${_j.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Dj}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:_j.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:_j.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ij,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:Aj,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:Aj,fontWeight:Nj,color:_j.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Nj}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${_j.GREYSCALE_0_15}, 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Wo.createElement(Yj,null),checkedIcon:Wo.createElement(Kj,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:_j.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:_j.GREYSCALE_0_20}},"&.Mui-disabled":{fill:_j.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Wo.createElement(Qj,null),checkedIcon:Wo.createElement(Vj,null),indeterminateIcon:Wo.createElement(Uj,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Dj,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:_j.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:_j.GREYSCALE_0_55,color:_j.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:_j.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:_j.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:_j.GREYSCALE_0_55,"&:hover":{color:_j.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:_j.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:_j.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ij,color:_j.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Nj},secondary:{fontSize:Aj,color:_j.GREYSCALE_45,fontWeight:Tj,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ij,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&:active":{backgroundColor:_j.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ij,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:_j.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:Aj,borderBottom:`solid 1px ${_j.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ij,color:_j.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:_j.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:_j.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:_j.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:_j.RED}}},"&.Mui-focusVisible":{backgroundColor:_j.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:_j.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:_j.GREEN,height:"24px","&.Mui-disabled":{color:_j.GREYSCALE_0_15}},rail:{backgroundColor:_j.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${_j.GREYSCALE_0_05}`,borderRadius:Dj,boxShadow:`inset 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${_j.GREYSCALE_0_05}`,borderRadius:Dj},thumb:{height:"16px",width:"16px",borderRadius:Dj,backgroundColor:_j.WHITE,boxShadow:`0px 1px 2px 0px ${_j.GREYSCALE_0_15}, 0px 0px 0px 1px ${_j.GREYSCALE_0_05}`,"&:hover":{borderRadius:Dj,boxShadow:`0 2px 4px 0 ${_j.GREYSCALE_0_30}, 0 0 0 1px ${_j.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${_j.GREYSCALE_0_15}, 0 0 0 1px ${_j.GREYSCALE_0_06}, 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${_j.GREYSCALE_0_15}, 0 0 0 1px ${_j.GREYSCALE_0_06}, 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:_j.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:_j.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:_j.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:_j.GREYSCALE_0_15},markLabel:{color:_j.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:_j.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:_j.WHITE,color:_j.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:_j.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:_j.GREEN_PALE,boxShadow:`0 0 0 3px ${SS(_j.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:_j.BLUE_PALE,boxShadow:`0 0 0 3px ${SS(_j.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:_j.GREYSCALE_0_15,borderRadius:Dj},thumb:{height:"16px",width:"16px",borderRadius:Dj,backgroundColor:_j.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:Ij,fontWeight:Nj,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${_j.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${_j.MISC_FOCUS_BORDER}`,backgroundColor:_j.GREYSCALE_0_03,borderRadius:Dj},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:_j.GREYSCALE_25,"&.Mui-selected":{color:_j.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ij,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${_j.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${_j.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${_j.GREYSCALE_85}`,borderRight:`1px solid ${_j.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Nj,backgroundColor:_j.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:_j.GREYSCALE_98,borderBottom:`1px solid ${_j.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${_j.GREYSCALE_85}`,borderTop:`1px solid ${_j.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:_j.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:_j.GREYSCALE_0_05,"&:hover":{backgroundColor:_j.GREYSCALE_0_03}},"&&:hover":{backgroundColor:_j.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Wo.createElement(Xj,{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 ${_j.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ij,borderRadius:Dj,padding:"7px 16px",border:`1px solid ${_j.GREYSCALE_0_15}`,backgroundColor:_j.GREYSCALE_100_60,color:_j.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:_j.GREYSCALE_0_10,border:`1px solid ${_j.GREYSCALE_0_30}`},"&:hover":{backgroundColor:_j.GREYSCALE_0_03,border:`1px solid ${_j.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:_j.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${_j.MISC_FOCUS_BORDER}`,border:`1px solid ${_j.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:_j.GREYSCALE_25,backgroundColor:_j.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:_j.GREYSCALE_0_10,border:`1px solid ${_j.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:Aj,height:24,width:24,padding:7},sizeLarge:{fontSize:Pj,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ij,borderRadius:Dj}}},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:_j.GREYSCALE_20},tooltip:{backgroundColor:_j.GREYSCALE_20,fontSize:Aj,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var Zj=e=>Jj;const e$={mode:"light",primary:{ultraLight:_j.GREEN_ULTRA_LIGHT,light:_j.GREEN_PALE,main:_j.GREEN,dark:_j.GREEN_DARK,extraDark:_j.GREEN_EXTRA_DARK,contrastText:_j.WHITE},secondary:{ultraLight:_j.BLUE_ULTRA_LIGHT,light:_j.BLUE_PALE,main:_j.BLUE,dark:_j.BLUE_DARK,extraDark:_j.BLUE_EXTRA_DARK,contrastText:_j.WHITE},error:{ultraLight:_j.RED_ULTRA_LIGHT,light:_j.RED_PALE,main:_j.RED,dark:_j.RED_DARK,extraDark:_j.RED_EXTRA_DARK,contrastText:_j.WHITE},warning:{ultraLight:_j.ORANGE_ULTRA_LIGHT,light:_j.ORANGE_PALE,main:_j.ORANGE,dark:_j.ORANGE_DARK,extraDark:_j.ORANGE_EXTRA_DARK,contrastText:_j.WHITE},success:{ultraLight:_j.GREEN_ULTRA_LIGHT,light:_j.GREEN_PALE,main:_j.GREEN,dark:_j.GREEN_DARK,extraDark:_j.GREEN_EXTRA_DARK,contrastText:_j.WHITE},info:{ultraLight:_j.BLUE_ULTRA_LIGHT,light:_j.BLUE_PALE,main:_j.BLUE,dark:_j.BLUE_DARK,extraDark:_j.BLUE_EXTRA_DARK,contrastText:_j.WHITE},text:{primary:_j.TEXT_PRIMARY,secondary:_j.TEXT_SECONDARY,disabled:_j.GREYSCALE_0_30},action:{hover:_j.GREYSCALE_0_03,hoverOpacity:.05,selected:_j.GREYSCALE_0_05,focus:_j.MISC_FOCUS_BORDER},amethyst:{ultraLight:_j.WHITE,main:_j.PURPLE,light:_j.PURPLE_PALE,dark:_j.PURPLE_DARK,extraDark:_j.GREYSCALE_0_0,contrastText:_j.WHITE},background:{paper:_j.WHITE,default:_j.GREYSCALE_95},divider:_j.GREYSCALE_0_15},t$=e=>e$,n$=(e="light")=>({components:Zj(),palette:t$(),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:Ij,fontWeightLight:Oj,fontWeightRegular:Tj,fontWeightMedium:Nj,fontWeightBold:qj,htmlFontSize:Ij,fontFamily:Fj.FONT_FAMILY,button:{fontWeight:Nj,fontSize:Ij,textTransform:"none"},body1:{fontSize:Pj,lineHeight:"24px"},body2:{fontSize:Ij,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Mj,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Pj,fontWeight:Nj,lineHeight:"16px"},h6:{fontSize:Ij,fontWeight:Nj,lineHeight:"16px"},caption:{color:_j.TEXT_SECONDARY},subtitle1:{fontSize:Ij,color:_j.TEXT_SECONDARY},subtitle2:{fontSize:Aj,color:_j.TEXT_SECONDARY}},shape:{borderRadius:Dj}});const r$=(e,t)=>{const{selections:n,styleService:r,app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c}=t,d=function(e){var t;const n=n$();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),XE({...n,direction:e})}("ltr");e.render(yg.jsx(Wo.StrictMode,{children:yg.jsx(Mw,{theme:d,children:yg.jsx(CD,{app:o,model:i,interactions:a,embed:l,keyboard:s,theme:u,flags:c,children:yg.jsx(WN,{selections:n,updatePageInfo:t.updatePageInfo,children:yg.jsx(AD,{styleService:r,children:yg.jsx(Lj,{...t})})})})})}))},o$={darker:.15,brighter:.3,opacity:.03},i$={darker:.3,brighter:.5,opacity:.05};var a$,l$,s$,u$;!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"}(a$||(a$={})),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"}(l$||(l$={})),function(e){e.Grid="grid",e.Divider="grid.divider",e.LabelName="label.name",e.LabelValue="label.value"}(s$||(s$={})),function(e){e.FontSize="fontSize",e.FontFamily="fontFamily",e.Color="color",e.BackgroundColor="backgroundColor",e.LineClamp="lineClamp",e.ColumnLineClamp="columnLineClamp",e.BorderColor="borderColor"}(u$||(u$={}));const c$=e=>e?`${parseInt(e,10)}px`:void 0,d$=(e,t)=>{if(t){const n=e.getColorPickerColor(t);return"none"===n?yt.Transparent:n}},p$=(e,t)=>+(parseInt(e,10)*vt*t+8).toFixed(2),f$=(e,t)=>void 0===e?t:e.some((e=>"bold"===e))?ht:"normal",h$=e=>null!=e&&e.some((e=>"italic"===e))?"italic":"normal",m$=e=>null!=e&&e.some((e=>"underline"===e))?"underline":"none",g$=({fontStyle:e,fontWeight:t,fontSize:n,fontFamily:r})=>t?`${e} ${t} ${n} ${r}`:`${e} ${n} ${r}`,v$=(t,n,r)=>{var o,i;const a=null!==(o=null==r?void 0:r.qHyperCubeDef.qShowTotalsAbove)&&void 0!==o&&o,l=null!==(i=null==r?void 0:r.qHyperCubeDef.qAlwaysFullyExpanded)&&void 0!==i&&i;return e.useMemo((()=>(({layout:e,flags:t,qShowTotalsAbove:n,qAlwaysFullyExpanded:r})=>{const{qHyperCube:o,nullValueRepresentation:i,snapshotData:a}=e,{qNoOfLeftDims:l,qEffectiveInterColumnSortOrder:s,qMeasureInfo:u,qDimensionInfo:c}=o,d=!!a,p={x:Math.min(e.qHyperCube.qSize.qcx,gt),y:Math.min(e.qHyperCube.qSize.qcy,mt)},f=s.slice(0,l),h=e=>f.some((t=>t===e)),m=h(zD),g=new Map(s.map((e=>{var t;return[null!==(t=c[e])&&void 0!==t?t:zD,e]}))),v=u.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==i?void 0:i.text)&&void 0!==e?e:"-"},getMeasureInfoIndexFromCellIndex:(e,t=!1)=>{if(m)return 0;const n=e%v.length;return t?n:u.findIndex((e=>e===v[n]))},getDimensionInfo:e=>e===zD?zD:c[e],getDimensionInfoIndex:e=>{var t;return null!==(t=g.get(e))&&void 0!==t?t:-1},size:p,isSnapshot:d,hasLimitedData:!d&&p.x<e.qHyperCube.qSize.qcx,hasData:p.x>0&&p.y>0,hasLeftDimensions:0!==e.qHyperCube.qNoOfLeftDims,showTotalsAbove:n,hasPseudoDimOnLeft:m,leftDimensionInfoIndexes:f,isLeftDimension:h,isFullyExpanded:r,triggerdByExpandOrCollapse:!!e.qHyperCube.qLastExpandedPos,visibleMeasureInfo:v,isIndentModeEnabled:Boolean(e.qHyperCube.qIndentMode)&&t.isEnabled(Ye)}})({layout:t,flags:n,qShowTotalsAbove:a,qAlwaysFullyExpanded:l})),[t,a,l,n])},b$={},y$=t=>{const n=(t=>{const n=e.useMemo((()=>({current:b$})),[]);return n.current=n.current===b$?t:n.current,n})(t);return n.current=t,n},x$=({model:e,layoutService:t,viewService:n,pageInfo:r,rect:o})=>{const{layout:i,isSnapshot:a,triggerdByExpandOrCollapse:l}=t,s=y$((e=>({maxNumberOfVisibleRows:Math.ceil(e.height/24),maxNumberOfVisibleColumns:Math.ceil(e.width/He.PixelsMin)}))(o));return Kn((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(gt,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(FD,ET(t)):[]}return null!==(t=o.qPivotDataPages)&&void 0!==t?t:[]}),[i,a,e,n,r.page,r.rowsPerPage,s,l])},S$=({rowsPerPage:e,totalRowCount:t,page:n})=>Math.min(e,t-n*e),E$=(e,t)=>{const n=mt;return{rowsPerPage:n,totalPages:Math.max(1,Math.ceil(e/n)),totalRowCount:e,rowsOnCurrentPage:S$({rowsPerPage:n,totalRowCount:e,page:t})}},w$=e=>({gridColumnStartIndex:e.gridColumnStartIndex,gridRowStartIndex:e.gridRowStartIndex,gridWidth:e.gridWidth,gridHeight:e.gridHeight,scrollTop:e.scrollTop,scrollLeft:e.scrollLeft,leftGridScrollLeft:e.leftGridScrollLeft,verticalScrollbarWidth:e.verticalScrollbarWidth});var C$={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 R$=()=>{const t=e.useTranslator(),n=t.language();return e.useMemo((()=>function(e){if(e.get&&e.add){const t="SNPivotTable_LimitedData";if(e.get(t)!==t)return;Object.keys(C$).forEach((t=>{e.add(C$[t])}))}}(t)),[t]),{translator:t,language:n}},k$=t=>{const{flags:n}=t,r=e.useElement(),o=(t=>{const n=e.useMemo((()=>rg(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useModel(),l=e.useApp(),s=e.useEmbed(),u=e.useKeyboard(),c=e.useInteractionState(),[d,p]=((e,t)=>Kn((async()=>{if(void 0!==e&&!t.snapshotData&&"getEffectiveProperties"in e)return e.getEffectiveProperties()}),[e,t]))(a,i),f=v$(i,n,d),h=e.useSelections(),m=((t,n,r)=>{const o=e.useTheme();return e.useMemo((()=>({...o,background:Yn(o,t,n,r)})),[o.name(),t,n,r])})(r),g=m.name(),{translator:v,language:b}=R$(),{pageInfo:y,updatePageInfo:x}=(t=>{const{size:n,layout:{qHyperCube:{qSize:r}}}=t,[o,i]=e.useState({page:0,shouldShowPagination:r.qcy>n.y,...E$(r.qcy,0)});return e.useEffect((()=>{i((e=>({...e,...E$(t.layout.qHyperCube.qSize.qcy,e.page),shouldShowPagination:t.layout.qHyperCube.qSize.qcy>t.size.y})))}),[t.layout.qHyperCube.qSize.qcy,t.size.y,i]),e.useEffect((()=>{const{page:e,totalPages:t}=o;if(e+1>t){const e=t-1,n=S$({...o,page:e});i({...o,page:e,rowsOnCurrentPage:n})}}),[o]),{pageInfo:o,updatePageInfo:e=>i({...o,...e,rowsOnCurrentPage:S$({...o,...e})})}})(f),S=((t,n)=>{const{viewState:r}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R;return{gridColumnStartIndex:null!==(n=null!==(r=null==t||null===(o=t.content)||void 0===o?void 0:o.gridColumnStartIndex)&&void 0!==r?r:null==e?void 0:e.gridColumnStartIndex)&&void 0!==n?n:0,gridRowStartIndex:null!==(i=null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.gridRowStartIndex)&&void 0!==a?a:null==e?void 0:e.gridRowStartIndex)&&void 0!==i?i:0,gridWidth:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.gridWidth)&&void 0!==u?u:null==e?void 0:e.gridWidth)&&void 0!==s?s:0,gridHeight:null!==(d=null!==(p=null==t||null===(f=t.content)||void 0===f?void 0:f.gridHeight)&&void 0!==p?p:null==e?void 0:e.gridHeight)&&void 0!==d?d:0,scrollTop:null!==(h=null!==(m=null==t||null===(g=t.content)||void 0===g?void 0:g.scrollTop)&&void 0!==m?m:null==e?void 0:e.scrollTop)&&void 0!==h?h:0,scrollLeft:null!==(v=null!==(b=null==t||null===(y=t.content)||void 0===y?void 0:y.scrollLeft)&&void 0!==b?b:null==e?void 0:e.scrollLeft)&&void 0!==v?v:0,leftGridScrollLeft:null!==(x=null!==(S=null==t||null===(E=t.content)||void 0===E?void 0:E.leftGridScrollLeft)&&void 0!==S?S:null==e?void 0:e.leftGridScrollLeft)&&void 0!==x?x:0,verticalScrollbarWidth:null!==(w=null!==(C=null==t||null===(R=t.content)||void 0===R?void 0:R.verticalScrollbarWidth)&&void 0!==C?C:null==e?void 0:e.verticalScrollbarWidth)&&void 0!==w?w:0}})(r,n.snapshotData)),[r,t.page,n.snapshotData])})(y,i),E=(({layoutService:t,viewService:n,rect:r,model:o})=>{var i;return e.onTakeSnapshot((async e=>{if(!e.snapshotData||!o||e.snapshotData.content)return e;if(null!=o&&o.getHyperCubePivotData){const{gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d}=w$(n);e.snapshotData.content={qPivotDataPages:await o.getHyperCubePivotData(FD,[{qLeft:n.gridColumnStartIndex,qTop:n.gridRowStartIndex,qWidth:n.gridWidth,qHeight:n.gridHeight}]),gridColumnStartIndex:t,gridRowStartIndex:i,gridWidth:a,gridHeight:l,scrollTop:s,scrollLeft:u,leftGridScrollLeft:c,verticalScrollbarWidth:d},e.snapshotData.object.size.w=r.width,e.snapshotData.object.size.h=r.height}return e})),e.useImperativeHandle((()=>({getViewState:()=>w$(n)})),[n]),null!==(i=t.layout.snapshotData)&&void 0!==i&&i.content?{left:r.left,top:r.top,width:t.layout.snapshotData.object.size.w,height:t.layout.snapshotData.object.size.h}:r})({rect:e.useRect(),layoutService:f,viewService:S,model:a}),[w,C]=x$({model:a,layoutService:f,viewService:S,pageInfo:y,rect:E}),R=e.useMemo((()=>((e,t,n)=>{var r,o,i,a,l,s,u,c,d,p,f,h,m,g,v,b,y,x,S,E,w,C,R,k,L,_,A,I,P,M,D,O,T,N,q,F,z,j,$,H,B,G,W,V,U,Y,K;const X=null===(r=t.layout.components)||void 0===r?void 0:r.find((e=>"theme"===e.key)),Q=null==X?void 0:X.header,J=null==X?void 0:X.dimensionValues,Z=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[a$.LineClamp])&&void 0!==i?i:oe(l$.Grid,s$.Grid,u$.LineClamp))&&void 0!==o?o:1),ae=n.isEnabled(Ve)?+(null!==(a=null!==(l=null==re?void 0:re[a$.ColumnLineClamp])&&void 0!==l?l:oe(l$.Grid,s$.Grid,u$.ColumnLineClamp))&&void 0!==a?a:1):1,le=null!==(s=null!==(u=d$(e,null==Q?void 0:Q[a$.Background]))&&void 0!==u?u:oe(l$.Dimension,s$.LabelName,u$.BackgroundColor))&&void 0!==s?s:yt.Transparent,se={header:{fontSize:null!==(c=null!==(d=c$(null==Q?void 0:Q[a$.FontSize]))&&void 0!==d?d:oe(l$.Dimension,s$.LabelName,u$.FontSize))&&void 0!==c?c:pt,fontFamily:null!==(p=null!==(f=null==Q?void 0:Q[a$.FontFamily])&&void 0!==f?f:oe(l$.Dimension,s$.LabelName,u$.FontFamily))&&void 0!==p?p:ft,fontWeight:f$(null==Q?void 0:Q[a$.FontStyle],ht),fontStyle:h$(null==Q?void 0:Q[a$.FontStyle]),textDecoration:m$(null==Q?void 0:Q[a$.FontStyle]),color:null!==(h=null!==(m=d$(e,null==Q?void 0:Q[a$.FontColor]))&&void 0!==m?m:oe(l$.Dimension,s$.LabelName,u$.Color))&&void 0!==h?h:LP.TEXT,background:le,hoverBackground:_P(le,o$),activeBackground:_P(le,i$)},dimensionValues:{fontSize:null!==(g=null!==(v=c$(null==J?void 0:J[a$.FontSize]))&&void 0!==v?v:oe(l$.Dimension,s$.LabelValue,u$.FontSize))&&void 0!==g?g:pt,fontFamily:null!==(b=null!==(y=null==J?void 0:J[a$.FontFamily])&&void 0!==y?y:oe(l$.Dimension,s$.LabelValue,u$.FontFamily))&&void 0!==b?b:ft,fontWeight:f$(null==J?void 0:J[a$.FontStyle],void 0),fontStyle:h$(null==J?void 0:J[a$.FontStyle]),textDecoration:m$(null==J?void 0:J[a$.FontStyle]),color:null!==(x=null!==(S=d$(e,null==J?void 0:J[a$.FontColor]))&&void 0!==S?S:oe(l$.Dimension,s$.LabelValue,u$.Color))&&void 0!==x?x:LP.TEXT,background:null!==(E=null!==(w=d$(e,null==J?void 0:J[a$.Background]))&&void 0!==w?w:oe(l$.Dimension,s$.LabelValue,u$.BackgroundColor))&&void 0!==E?E:yt.Transparent},measureValues:{fontSize:null!==(C=null!==(R=c$(null==Z?void 0:Z[a$.FontSize]))&&void 0!==R?R:oe(l$.Measure,s$.LabelValue,u$.FontSize))&&void 0!==C?C:pt,fontFamily:null!==(k=null!==(L=null==Z?void 0:Z[a$.FontFamily])&&void 0!==L?L:oe(l$.Measure,s$.LabelValue,u$.FontFamily))&&void 0!==k?k:ft,fontWeight:f$(null==Z?void 0:Z[a$.FontStyle],"normal"),fontStyle:h$(null==Z?void 0:Z[a$.FontStyle]),textDecoration:m$(null==Z?void 0:Z[a$.FontStyle]),color:null!==(_=null!==(A=d$(e,null==Z?void 0:Z[a$.FontColor]))&&void 0!==A?A:oe(l$.Measure,s$.LabelValue,u$.Color))&&void 0!==_?_:yt.FontSecondary,background:null!==(I=null!==(P=d$(e,null==Z?void 0:Z[a$.Background]))&&void 0!==P?P:oe(l$.Measure,s$.LabelValue,u$.BackgroundColor))&&void 0!==I?I:yt.Transparent},measureLabels:{fontWeight:f$(null==ee?void 0:ee[a$.FontStyle],"normal"),fontStyle:h$(null==ee?void 0:ee[a$.FontStyle]),textDecoration:m$(null==ee?void 0:ee[a$.FontStyle]),color:null!==(M=null!==(D=d$(e,null==ee?void 0:ee[a$.FontColor]))&&void 0!==D?D:oe(l$.Measure,s$.LabelName,u$.Color))&&void 0!==M?M:yt.FontSecondary,background:null!==(O=null!==(T=d$(e,null==ee?void 0:ee[a$.Background]))&&void 0!==T?T:oe(l$.Measure,s$.LabelName,u$.BackgroundColor))&&void 0!==O?O:yt.Transparent},totalValues:{fontWeight:f$(null==te?void 0:te[a$.FontStyle],ht),fontStyle:h$(null==te?void 0:te[a$.FontStyle]),textDecoration:m$(null==te?void 0:te[a$.FontStyle]),color:null!==(N=null!==(q=d$(e,null==te?void 0:te[a$.FontColor]))&&void 0!==q?q:oe(l$.Total,s$.LabelValue,u$.Color))&&void 0!==N?N:LP.TEXT,background:null!==(F=null!==(z=d$(e,null==te?void 0:te[a$.Background]))&&void 0!==z?z:oe(l$.Total,s$.LabelValue,u$.BackgroundColor))&&void 0!==F?F:yt.Transparent},nullValues:{fontWeight:f$(null==ne?void 0:ne[a$.FontStyle],"normal"),fontStyle:h$(null==ne?void 0:ne[a$.FontStyle]),textDecoration:m$(null==ne?void 0:ne[a$.FontStyle]),color:null!==(j=null!==($=d$(e,null==ne?void 0:ne[a$.FontColor]))&&void 0!==$?$:oe(l$.Null,s$.LabelValue,u$.Color))&&void 0!==j?j:LP.TEXT,background:null!==(H=null!==(B=d$(e,null==ne?void 0:ne[a$.Background]))&&void 0!==B?B:oe(l$.Null,s$.LabelValue,u$.BackgroundColor))&&void 0!==H?H:yt.NullValueBackground},grid:{columnLineClamp:ae,lineClamp:ie,border:null!==(G=null!==(W=d$(e,null==re?void 0:re[a$.Border]))&&void 0!==W?W:oe(l$.Grid,s$.Grid,u$.BorderColor))&&void 0!==G?G:yt.DividerLight,divider:null!==(V=null!==(U=d$(e,null==re?void 0:re[a$.Divider]))&&void 0!==U?U:oe(l$.Grid,s$.Divider,u$.BorderColor))&&void 0!==V?V:yt.DividerDark,background:null!==(Y=null!==(K=d$(e,null==re?void 0:re[a$.Background]))&&void 0!==K?K:oe(l$.Grid,s$.Grid,u$.BackgroundColor))&&void 0!==Y?Y:yt.Transparent}};return se.headerCellHeight=Math.max(p$(se.header.fontSize,ae),p$(se.dimensionValues.fontSize,ae),32),se.contentCellHeight=Math.max(p$(se.measureValues.fontSize,ie),p$(se.dimensionValues.fontSize,ie),24),se.contentRowHeight=Math.max(p$(se.measureValues.fontSize,1),p$(se.dimensionValues.fontSize,1)),se.contentTextHeight=se.contentRowHeight-8,se})(m,f,n)),[m.name(),f,n]),k=(t=>e.useMemo((()=>[...new Set([g$(t.header),g$(t.dimensionValues),g$({...t.dimensionValues,...t.measureLabels}),g$({...t.dimensionValues,...t.nullValues}),g$({...t.dimensionValues,...t.totalValues}),g$(t.measureValues),g$({...t.measureValues,...t.nullValues}),g$({...t.measureValues,...t.totalValues})])]),[t]))(R),L=(t=>{const[n,r]=e.usePromise((()=>Promise.all(t.map((e=>document.fonts.load(e))))),[t]);return r?(console.warn("Failed to load font:",r),!0):!!n})(k);e.useEffect((()=>{!C&&a&&(null==E?void 0:E.width)&&(null==E?void 0:E.height)&&h&&S&&f&&R&&!!w&&!p&&L&&r$(o,{model:a,app:l,rect:E,selections:h,viewService:S,layoutService:f,qPivotDataPages:w,styleService:R,translator:v,pageInfo:y,updatePageInfo:x,interactions:c,embed:s,keyboard:u,theme:m,flags:n})}),[a,l,E,null==E?void 0:E.width,null==E?void 0:E.height,c,h,S,f,C,w,R,o,L,v,b,y,x,d,p,s,u,m,g,n])},L$={version:"3.4.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:[]};return function(e){return{qae:{properties:{initial:L$},data:_e(e)},ext:Vt(e),component(){k$(e)}}}}));
|