@nebula.js/sn-table 6.46.0 → 6.47.0
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/core/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v6.
|
|
2
|
+
* @nebula.js/sn-table v6.47.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -87,7 +87,7 @@ function ra(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
|
|
|
87
87
|
animation-iteration-count: infinite;
|
|
88
88
|
animation-delay: 200ms;
|
|
89
89
|
}
|
|
90
|
-
`),bu.rippleVisible,Eu,550,({theme:e})=>e.transitions.easing.easeInOut,bu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,bu.child,bu.childLeaving,Ru,550,({theme:e})=>e.transitions.easing.easeInOut,bu.childPulsate,Au,({theme:e})=>e.transitions.easing.easeInOut),Pu=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,vu),[s,l]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const d=x.useRef(!1),p=ul(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,nr.jsx(ku,{classes:{ripple:Is(o.ripple,bu.ripple),rippleVisible:Is(o.rippleVisible,bu.rippleVisible),ripplePulsate:Is(o.ripplePulsate,bu.ripplePulsate),child:Is(o.child,bu.child),childLeaving:Is(o.childLeaving,bu.childLeaving),childPulsate:Is(o.childPulsate,bu.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||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 s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},[n,m,p]),b=x.useCallback(()=>{g({},{pulsate:!0})},[g]),v=x.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),nr.jsx(Iu,$r({className:Is(bu.root,o.root,i),ref:h},a,{children:nr.jsx(uu,{component:null,exit:!0,children:s})}))});function Du(e){return Ds("MuiButtonBase",e)}const Mu=Ms("MuiButtonBase",["root","disabled","focusVisible"]),Tu=["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"],qu=_c("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"},[`&.${Mu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ou=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:D,type:M}=r,T=Hr(r,Tu),q=x.useRef(null),O=x.useRef(null),L=al(O,D),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=yl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),q.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const V=H&&!c&&!l;function W(e,t,r=u){return il(n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0})}x.useEffect(()=>{F&&d&&!c&&H&&O.current.pulsate()},[c,d,F,H]);const U=W("start",w),G=W("stop",m),K=W("stop",g),Y=W("stop",E),X=W("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=il(e=>{q.current||(q.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),re=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=il(e=>{d&&!ne.current&&F&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,()=>{O.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=il(e=>{d&&" "===e.key&&O.current&&F&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=al(t,z,q),ce=$r({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:k,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Sl({root:["root",t&&"disabled",r&&"focusVisible"]},Du,o);return r&&n&&(i.root+=` ${n}`),i})(ce);return nr.jsxs(qu,$r({as:ae,className:Is(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:M},se,T,{children:[i,V?nr.jsx(Pu,$r({ref:L,center:o},P)):null]}))});function Lu(e){return Ds("MuiIconButton",e)}const Nu=Ms("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ju=["edge","children","className","color","disabled","disableFocusRipple","size"],_u=_c(Ou,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${va(r.color)}`],r.edge&&t[`edge${va(r.edge)}`],t[`size${va(r.size)}`]]}})(({theme:e,ownerState:t})=>$r({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return $r({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&$r({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":$r({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Nu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),zu=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=Hr(r,ju),d=$r({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return Sl({root:["root",r&&"disabled","default"!==n&&`color${va(n)}`,o&&`edge${va(o)}`,`size${va(i)}`]},Lu,t)})(d);return nr.jsx(_u,$r({className:Is(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))});function Fu(e){return Ds("MuiTypography",e)}Ms("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $u=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Hu=_c("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${va(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$r({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})),Bu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Vu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wu=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTypography"}),n=(e=>Vu[e]||e)(r.color),o=ws($r({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Bu}=o,f=Hr(o,$u),h=$r({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Bu[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Sl({root:["root",i,"inherit"!==e.align&&`align${va(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Fu,a)})(h);return nr.jsx(Hu,$r({as:m,ref:t,ownerState:h,className:Is(g.root,a)},f))});const Uu=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=al(x.isValidElement(r)?Il(r):null,t);if(Ws(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Ws(()=>{if(i&&!o)return el(t,i),()=>{el(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return nr.jsx(x.Fragment,{children:r})}return nr.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Gu=["onChange","maxRows","minRows","style","value"];function Ku(e){return parseInt(e,10)||0}const Yu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Xu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ju=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,Gu),{current:l}=x.useRef(null!=a),c=x.useRef(null),u=al(t,c),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=Qs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Ku(i.paddingBottom)+Ku(i.paddingTop),l=Ku(i.borderBottomWidth)+Ku(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}},[n,o,e.placeholder]),h=il(()=>{const e=c.current,t=f();if(!e||!t||Xu(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Xu(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);Ws(()=>{const e=Js(m),t=null==c?void 0:c.current;if(!t)return;const r=Qs(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Ws(()=>{m()});return nr.jsxs(x.Fragment,{children:[nr.jsx("textarea",$r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:u,rows:o,style:i},s)),nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$r({},Yu,i,{paddingTop:0,paddingBottom:0})})]})});function Zu({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Qu=x.createContext(void 0);function ed(){return x.useContext(Qu)}function td(e){return nr.jsx(xs,$r({},e,{defaultTheme:yc,themeId:Fr}))}function rd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function nd(e,t=!1){return e&&(rd(e.value)&&""!==e.value||t&&rd(e.defaultValue)&&""!==e.defaultValue)}function od(e){return Ds("MuiInputBase",e)}const id=Ms("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ad=["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"],sd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${va(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ld=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},cd=_c("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sd})(({theme:e,ownerState:t})=>$r({},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",[`&.${id.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$r({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ud=_c("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ld})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$r({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return $r({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${id.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},[`&.${id.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"})}),dd=nr.jsx(td,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),pd=x.forwardRef(function(e,t){var r;const n=Hc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:I,onKeyDown:k,onKeyUp:P,placeholder:D,readOnly:M,renderSuffix:T,rows:q,slotProps:O={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=Hr(n,ad),F=null!=b.value?b.value:_,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),V=al(H,v,b.ref,B),[W,U]=x.useState(!1),G=ed(),K=Zu({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,x.useEffect(()=>{!G&&d&&W&&(U(!1),E&&E())},[G,d,W,E]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{nd(e)?Y&&Y():X&&X()},[Y,X]);Ws(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;w&&"input"===Z&&(Q=$r(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:y,minRows:S},Q),Z=Ju);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=$r({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Sl({root:["root",`color${va(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${va(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},od,t)})(ee),re=L.root||l.Root||cd,ne=O.root||c.root||{},oe=L.input||l.Input||ud;return Q=$r({},Q,null!=(r=O.input)?r:c.input),nr.jsxs(x.Fragment,{children:[!p&&dd,nr.jsxs(re,$r({},ne,!wl(re)&&{ownerState:$r({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:Is(te.root,ne.className,s,M&&"MuiInputBase-readOnly"),children:[N,nr.jsx(Qu.Provider,{value:null,children:nr.jsx(oe,$r({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:D,readOnly:M,required:K.required,rows:q,value:F,onKeyDown:k,onKeyUp:P,type:j},Q,!wl(oe)&&{as:Z,ownerState:$r({},ee,Q.ownerState)},{ref:V,className:Is(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(_r(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T($r({},K,{startAdornment:N})):null]}))]})});function fd(e){return Ds("MuiInput",e)}const hd=$r({},id,Ms("MuiInput",["root","underline","input"]));function md(e){return Ds("MuiOutlinedInput",e)}const gd=$r({},id,Ms("MuiOutlinedInput",["root","notchedOutline","input"]));function bd(e){return Ds("MuiFilledInput",e)}const vd=$r({},id,Ms("MuiFilledInput",["root","underline","input"]));var yd=Gc(nr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const xd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Sd={entering:{opacity:1},entered:{opacity:1}},wd=x.forwardRef(function(e,t){const r=xc(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=nu}=e,v=Hr(e,xd),y=x.useRef(null),S=al(y,Il(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{du(e);const n=pu({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)}),R=w(u),A=w(h),I=w(e=>{const t=pu({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),k=w(f);return nr.jsx(b,$r({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,$r({style:$r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Sd[e],m,a.props.style),ref:S},t))}))});function Cd(e){return Ds("MuiBackdrop",e)}Ms("MuiBackdrop",["root","invisible"]);const Ed=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Rd=_c("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$r({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"})),Ad=x.forwardRef(function(e,t){var r,n,o;const i=Hc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=wd,transitionDuration:g}=i,b=Hr(i,Ed),v=$r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Sl({root:["root",r&&"invisible"]},Cd,t)})(v),x=null!=(r=f.root)?r:u.root;return nr.jsx(m,$r({in:p,timeout:g},b,{children:nr.jsx(Rd,$r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:c.Root)?n:l,className:Is(y.root,s,null==x?void 0:x.className),ownerState:$r({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),Id=Ms("MuiBox",["root"]),kd=vc(),Pd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ra("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ds);return x.forwardRef(function(e,a){const s=vs(r),l=ws(e),{className:c,component:u="div"}=l,d=Hr(l,ks);return nr.jsx(i,$r({as:u,ref:a,className:Is(c,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Fr,defaultTheme:kd,defaultClassName:Id.root,generateClassName:Rs.generate});function Dd(e){return Ds("MuiButton",e)}const Md=Ms("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Td=x.createContext({}),qd=x.createContext(void 0),Od=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ld=e=>$r({},"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}}),Nd=_c(Ou,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${va(r.color)}`],t[`size${va(r.size)}`],t[`${r.variant}Size${va(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;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 $r({},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":$r({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha(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})`:Zl.alpha(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})`:Zl.alpha(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":$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Md.focusVisible}`]:$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Md.disabled}`]:$r({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 ${Zl.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,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"},[`&.${Md.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Md.disabled}`]:{boxShadow:"none"}}),jd=_c("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${va(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ld(e))),_d=_c("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${va(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ld(e))),zd=x.forwardRef(function(e,t){const r=x.useContext(Td),n=x.useContext(qd),o=Hc({props:Vs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Hr(o,Od),S=$r({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $r({},a,Sl({root:["root",i,`${i}${va(t)}`,`size${va(o)}`,`${i}Size${va(o)}`,`color${va(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${va(o)}`],endIcon:["icon","endIcon",`iconSize${va(o)}`]},Dd,a))})(S),C=g&&nr.jsx(jd,{className:w.startIcon,ownerState:S,children:g}),E=p&&nr.jsx(_d,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return nr.jsxs(Nd,$r({ownerState:S,className:Is(r.className,w.root,l,R),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Is(w.focusVisible,f),ref:t,type:b},y,{classes:w,children:[C,i,E]}))});function Fd(e){return Ds("PrivateSwitchBase",e)}Ms("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $d=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Hd=_c(Ou,{name:"MuiSwitchBase"})(({ownerState:e})=>$r({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Bd=_c("input",{name:"MuiSwitchBase",shouldForwardProp:jc})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vd=x.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=Hr(e,$d),[E,R]=ol({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=ed();let I=s;A&&void 0===I&&(I=A.disabled);const k="checkbox"===S||"radio"===S,P=$r({},e,{checked:E,disabled:I,disableFocusRipple:l,edge:c}),D=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return Sl({root:["root",r&&"checked",n&&"disabled",o&&`edge${va(o)}`],input:["input"]},Fd,t)})(P);return nr.jsxs(Hd,$r({component:"span",className:Is(D.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:P,ref:t},C,{children:[nr.jsx(Bd,$r({autoFocus:r,checked:n,defaultChecked:a,className:D.input,disabled:I,id:k?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:P,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:u]}))});var Wd=Gc(nr.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Ud=Gc(nr.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Gd=Gc(nr.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Kd(e){return Ds("MuiCheckbox",e)}const Yd=Ms("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Xd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Jd=_c(Vd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${va(r.size)}`],"default"!==r.color&&t[`color${va(r.color)}`]]}})(({theme:e,ownerState:t})=>$r({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Yd.checked}, &.${Yd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Yd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Zd=nr.jsx(Ud,{}),Qd=nr.jsx(Wd,{}),ep=nr.jsx(Gd,{}),tp=x.forwardRef(function(e,t){var r,n;const o=Hc({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Zd,color:a="primary",icon:s=Qd,indeterminate:l=!1,indeterminateIcon:c=ep,inputProps:u,size:d="medium",className:p}=o,f=Hr(o,Xd),h=l?c:s,m=l?c:i,g=$r({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return $r({},t,Sl({root:["root",r&&"indeterminate",`color${va(n)}`,`size${va(o)}`]},Kd,t))})(g);return nr.jsx(Jd,$r({type:"checkbox",inputProps:$r({"data-indeterminate":l},u),icon:x.cloneElement(h,{fontSize:null!=(r=h.props.fontSize)?r:d}),checkedIcon:x.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:d}),ownerState:g,ref:t,className:Is(b.root,p)},f,{classes:b}))});function rp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function np(e){return parseInt(Qs(e).getComputedStyle(e).paddingRight,10)||0}function op(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&rp(e,o)})}function ip(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function ap(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Zs(e);return t.body===e?Qs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=xl(Zs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${np(n)+e}px`;const t=Zs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${np(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Zs(n).body;else{const t=n.parentElement,r=Qs(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const sp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lp(e){const t=[],r=[];return Array.from(e.querySelectorAll(sp)).forEach((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function cp(){return!0}function up(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=lp,isEnabled:a=cp,open:s}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=al(Il(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Zs(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&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Zs(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return nr.jsxs(x.Fragment,{children:[nr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),nr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const dp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&rp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);op(t,e.mount,e.modalRef,n,!0);const o=ip(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=ip(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=ap(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=ip(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&rp(e.modalRef,t),op(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&rp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function pp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=dp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=al(h,d),[g,b]=x.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=il(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zs(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=il(e=>{f.current=e,e&&(u&&E()?w():h.current&&rp(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{u?C():v&&i||A()},[u,A,v,i,C]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},k=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Cl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$r({},r,t);return $r({role:"presentation"},n,{onKeyDown:I(n),ref:m})},getBackdropProps:(e={})=>$r({"aria-hidden":!0},e,{onClick:k(e),open:u}),getTransitionProps:()=>({onEnter:Xs(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Xs(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function fp(e){return Ds("MuiModal",e)}Ms("MuiModal",["root","hidden","backdrop"]);const hp=["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"],mp=_c("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$r({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gp=_c(Ad,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),bp=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Hc({name:"MuiModal",props:e}),{BackdropComponent:c=gp,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:k,slotProps:P,slots:D}=l,M=Hr(l,hp),T=$r({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:q,getBackdropProps:O,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=pp($r({},T,{rootRef:t})),F=$r({},T,{exited:_}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Sl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},fp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:mp,V=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(s=null==P?void 0:P.backdrop)?s:b.backdrop,G=Al({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:q,additionalProps:{ref:t,as:m},ownerState:F,className:Is(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=Al({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>O($r({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Is(null==U?void 0:U.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!_?nr.jsx(Uu,{ref:N,container:h,disablePortal:w,children:nr.jsxs(B,$r({},G,{children:[!R&&c?nr.jsx(V,$r({},K)):null,nr.jsx(up,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:k,children:x.cloneElement(f,H)})]}))}):null});function vp(e){return Ds("MuiDivider",e)}const yp=Ms("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Sp=_c("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$r({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)`:Zl.alpha(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})=>$r({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>$r({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wp=_c("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$r({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)`})),Cp=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Hr(r,xp),h=$r({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Sl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},vp,n)})(h);return nr.jsx(Sp,$r({as:a,className:Is(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?nr.jsx(wp,{className:m.wrapper,ownerState:h,children:o}):null}))});Cp.muiSkipListHighlight=!0;const Ep=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Rp=_c(cd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...sd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $r({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}},[`&.${vd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${vd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${vd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vd.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(.${vd.disabled}, .${vd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$r({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}))}),Ap=_c(ud,{name:"MuiFilledInput",slot:"Input",overridesResolver:ld})(({theme:e,ownerState:t})=>$r({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})),Ip=x.forwardRef(function(e,t){var r,n,o,i;const a=Hc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Hr(a,Ep),g=$r({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,Sl({root:["root",!r&&"underline"],input:["input"]},bd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?la(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Rp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Ap;return nr.jsx(pd,$r({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:b}))});Ip.muiName="Input";const kp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Pp(e){return`scale(${e}, ${e**2})`}const Dp={entering:{opacity:1,transform:Pp(1)},entered:{opacity:1,transform:"none"}},Mp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tp=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=nu}=e,g=Hr(e,kp),b=ul(),v=x.useRef(),y=xc(),S=x.useRef(null),w=al(S,Il(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),R=C((e,t)=>{du(e);const{duration:r,delay:n,easing:o}=pu({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Mp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),I=C(p),k=C(e=>{const{duration:t,delay:r,easing:n}=pu({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Mp?o:.666*o,delay:Mp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Pp(.75),u&&u(e)}),P=C(d);return nr.jsx(m,$r({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:k,onExited:P,onExiting:I,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,$r({style:$r({opacity:0,transform:Pp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Dp[e],f,o.props.style),ref:w},t))}))});Tp.muiSupportAuto=!0;const qp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Op=_c(cd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...sd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$r({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"},[`&.${hd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hd.disabled}, .${hd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${hd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Lp=_c(ud,{name:"MuiInput",slot:"Input",overridesResolver:ld})({}),Np=x.forwardRef(function(e,t){var r,n,o,i;const a=Hc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Hr(a,qp),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,Sl({root:["root",!r&&"underline"],input:["input"]},fd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:c)?la(null!=f?f:c,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Op,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Lp;return nr.jsx(pd,$r({slots:{root:x,input:S},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function jp(e){return Ds("MuiInputAdornment",e)}Np.muiName="Input";const _p=Ms("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var zp;const Fp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$p=_c("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${va(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>$r({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${_p.positionStart}&:not(.${_p.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Hp=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=r,u=Hr(r,Fp),d=ed()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=$r({},r,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return Sl({root:["root",r&&"disablePointerEvents",o&&`position${va(o)}`,a,n&&"hiddenLabel",i&&`size${va(i)}`]},jp,t)})(f);return nr.jsx(Qu.Provider,{value:null,children:nr.jsx($p,$r({as:i,ownerState:f,className:Is(h.root,o),ref:t},u,{children:"string"!=typeof n||s?nr.jsxs(x.Fragment,{children:["start"===l?zp||(zp=nr.jsx("span",{className:"notranslate",children:""})):null,n]}):nr.jsx(Wu,{color:"text.secondary",children:n})}))})});function Bp(e){return Ds("MuiLink",e)}const Vp=Ms("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Up=({theme:e,ownerState:t})=>{const r=(e=>Wp[e]||e)(t.color),n=xa(e,`palette.${r}`,!1)||t.color,o=xa(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Zl.alpha(n,.4)},Gp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Kp=_c(Wu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${va(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>$r({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$r({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Up({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"},[`&.${Vp.focusVisible}`]:{outline:"auto"}})),Yp=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=r,p=Hr(r,Gp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=yl(),[b,v]=x.useState(!1),y=al(t,g),S=$r({},r,{color:o,component:i,focusVisible:b,underline:c,variant:u}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Sl({root:["root",`underline${va(o)}`,"button"===r&&"button",n&&"focusVisible"]},Bp,t)})(S);return nr.jsx(Kp,$r({color:o,className:Is(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:S,variant:u,sx:[...Object.keys(Wp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Xp=x.createContext({});function Jp(e){return Ds("MuiList",e)}Ms("MuiList",["root","padding","dense","subheader"]);const Zp=["children","className","component","dense","disablePadding","subheader"],Qp=_c("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$r({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ef=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=Hr(r,Zp),u=x.useMemo(()=>({dense:a}),[a]),d=$r({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Sl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Jp,t)})(d);return nr.jsx(Xp.Provider,{value:u,children:nr.jsxs(Qp,$r({as:i,className:Is(p.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})});function tf(e){return Ds("MuiListItem",e)}const rf=Ms("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),nf=Ms("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function of(e){return Ds("MuiListItemSecondaryAction",e)}Ms("MuiListItemSecondaryAction",["root","disableGutters"]);const af=["className"],sf=_c("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$r({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),lf=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=Hr(r,af),i=$r({},r,{disableGutters:x.useContext(Xp).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return Sl({root:["root",t&&"disableGutters"]},of,r)})(i);return nr.jsx(sf,$r({className:Is(a.root,n),ownerState:i,ref:t},o))});lf.muiName="ListItemSecondaryAction";const cf=["className"],uf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],df=_c("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>$r({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$r({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${nf.root}`]:{paddingRight:48}},{[`&.${rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),pf=_c("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ff=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:S=!1,slotProps:w={},slots:C={}}=r,E=Hr(r.ContainerProps,cf),R=Hr(r,uf),A=x.useContext(Xp),I=x.useMemo(()=>({dense:f||A.dense||!1,alignItems:n,disableGutters:m}),[n,A.dense,f,m]),k=x.useRef(null);Ws(()=>{o&&k.current&&k.current.focus()},[o]);const P=x.Children.toArray(a),D=P.length&&(M=P[P.length-1],T=["ListItemSecondaryAction"],x.isValidElement(M)&&-1!==T.indexOf(null!=(q=M.type.muiName)?q:null==(O=M.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var M,T,q,O;const L=$r({},r,{alignItems:n,autoFocus:o,button:i,dense:I.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:D,selected:S}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Sl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},tf,n)})(L),j=al(k,t),_=C.root||c.Root||df,z=w.root||u.root||{},F=$r({className:Is(N.root,z.className,s),disabled:h},R);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=Is(rf.focusVisible,v),$=Ou),D?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),nr.jsx(Xp.Provider,{value:I,children:nr.jsxs(pf,$r({as:d,className:Is(N.container,p),ref:j,ownerState:L},E,{children:[nr.jsx(_,$r({},z,!wl(_)&&{as:$,ownerState:$r({},L,z.ownerState)},F,{children:P})),P.pop()]}))})):nr.jsx(Xp.Provider,{value:I,children:nr.jsxs(_,$r({},z,{as:$,ref:j},!wl(_)&&{ownerState:$r({},L,z.ownerState)},F,{children:[P,y&&nr.jsx(lf,{children:y})]}))})});function hf(e){return Ds("MuiListItemIcon",e)}const mf=Ms("MuiListItemIcon",["root","alignItemsFlexStart"]),gf=["className"],bf=_c("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$r({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),vf=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,gf),i=$r({},r,{alignItems:x.useContext(Xp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Sl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},hf,r)})(i);return nr.jsx(bf,$r({className:Is(a.root,n),ownerState:i,ref:t},o))}),yf=Ms("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Sf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function wf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Cf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Ef(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Cf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Rf=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Hr(e,xf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ws(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${xl(Zs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=al(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return nr.jsx(ef,$r({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Zs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ef(t,n,l,s,Sf);else if("ArrowUp"===r)e.preventDefault(),Ef(t,n,l,s,wf);else if("Home"===r)e.preventDefault(),Ef(t,null,l,s,Sf);else if("End"===r)e.preventDefault(),Ef(t,null,l,s,wf);else if(1===r.length){const o=f.current,i=r.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 l=n&&!o.repeating&&Cf(n,o);o.previousKeyMatched&&(l||Ef(t,n,!1,s,Sf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:g}))});function Af(e){return Ds("MuiPopover",e)}Ms("MuiPopover",["root","paper"]);const If=["onEntering"],kf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pf=["slotProps"];function Df(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Mf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Tf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function qf(e){return"function"==typeof e?e():e}const Of=_c(bp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lf=_c(gu,{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}),Nf=x.forwardRef(function(e,t){var r,n,o;const i=Hc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Tp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Hr(i.TransitionProps,If),I=Hr(i,kf),k=null!=(r=null==y?void 0:y.paper)?r:b,P=x.useRef(),D=al(P,k.ref),M=$r({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},Af,t)})(M),q=x.useCallback(()=>{if("anchorPosition"===u)return c;const e=qf(s),t=(e&&1===e.nodeType?e:Zs(P.current).body).getBoundingClientRect();return{top:t.top+Df(t,l.vertical),left:t.left+Mf(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,u]),O=x.useCallback(e=>({vertical:Df(e,S.vertical),horizontal:Mf(e,S.horizontal)}),[S.horizontal,S.vertical]),L=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===u)return{top:null,left:null,transformOrigin:Tf(r)};const n=q();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=Qs(qf(s)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Tf(r)}},[s,u,q,O,m]),[N,j]=x.useState(g),_=x.useCallback(()=>{const e=P.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[L]);x.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);x.useEffect(()=>{g&&_()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),x.useEffect(()=>{if(!g)return;const e=Js(()=>{_()}),t=Qs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Zs(qf(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Of,H=null!=(o=null==v?void 0:v.paper)?o:Lf,B=Al({elementType:H,externalSlotProps:$r({},k,{style:N?k.style:$r({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:M,className:Is(T.paper,null==k?void 0:k.className)}),V=Al({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:M,className:Is(T.root,p)}),{slotProps:W}=V,U=Hr(V,Pf);return nr.jsx($,$r({},U,!wl($)&&{slotProps:W,disableScrollLock:R},{children:nr.jsx(w,$r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:nr.jsx(H,$r({},B,{children:d}))}))}))});function jf(e){return Ds("MuiMenu",e)}Ms("MuiMenu",["root","paper","list"]);const _f=["onEntering"],zf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ff={vertical:"top",horizontal:"right"},$f={vertical:"top",horizontal:"left"},Hf=_c(Nf,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bf=_c(Lf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Vf=_c(Rf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Wf=x.forwardRef(function(e,t){var r,n;const o=Hc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Hr(o.TransitionProps,_f),S=Hr(o,zf),w=(()=>{const e=x.useContext(ql);return null!=e&&e})(),C=$r({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},jf,t)})(C),R=i&&!l&&d,A=x.useRef(null);let I=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))});const k=null!=(r=b.paper)?r:Bf,P=null!=(n=v.paper)?n:p,D=Al({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),M=Al({elementType:k,externalSlotProps:P,ownerState:C,className:E.paper});return nr.jsx(Hf,$r({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Ff:$f,slots:{paper:k,root:b.root},slotProps:{root:D,paper:M},open:d,ref:t,transitionDuration:h,TransitionProps:$r({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:nr.jsx(Vf,$r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||l),autoFocusItem:R,variant:g},c,{className:Is(E.list,c.className),children:a}))}))});function Uf(e){return Ds("MuiMenuItem",e)}const Gf=Ms("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Kf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yf=_c(Ou,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>$r({},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"}},[`&.${Gf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yp.inset}`]:{marginLeft:52},[`& .${yf.root}`]:{marginTop:0,marginBottom:0},[`& .${yf.inset}`]:{paddingLeft:36},[`& .${mf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mf.root} svg`]:{fontSize:"1.25rem"}}))),Xf=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=r,p=Hr(r,Kf),f=x.useContext(Xp),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);Ws(()=>{n&&m.current&&m.current.focus()},[n]);const g=$r({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $r({},a,Sl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Uf,a))})(r),v=al(m,t);let y;return r.disabled||(y=void 0!==u?u:-1),nr.jsx(Xp.Provider,{value:h,children:nr.jsx(Yf,$r({ref:v,role:c,tabIndex:y,component:o,focusVisibleClassName:Is(b.focusVisible,l),className:Is(b.root,d)},p,{ownerState:g,classes:b}))})});function Jf(e){return Ds("MuiNativeSelect",e)}const Zf=Ms("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Qf=["className","disabled","error","IconComponent","inputRef","variant"],eh=({ownerState:e,theme:t})=>$r({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$r({},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"},[`&.${Zf.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}}),th=_c("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:jc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Zf.multiple}`]:t.multiple}]}})(eh),rh=({ownerState:e,theme:t})=>$r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Zf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),nh=_c("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${va(r.variant)}`],r.open&&t.iconOpen]}})(rh),oh=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Qf),c=$r({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Sl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${va(r)}`,i&&"iconOpen",n&&"disabled"]},Jf,t)})(c);return nr.jsxs(x.Fragment,{children:[nr.jsx(th,$r({ownerState:c,className:Is(u.select,r),disabled:n,ref:a||t},l)),e.multiple?null:nr.jsx(nh,{as:i,ownerState:c,className:u.icon})]})});var ih;const ah=["children","classes","className","label","notched"],sh=_c("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:jc})({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%"}),lh=_c("legend",{name:"MuiNotchedOutlined",shouldForwardProp:jc})(({ownerState:e,theme:t})=>$r({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&&$r({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 ch=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],uh=_c(cd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:sd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $r({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${gd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${gd.focused} .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gd.error} .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gd.disabled} .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$r({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),dh=_c(function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,ah),i=null!=r&&""!==r,a=$r({},e,{notched:n,withLabel:i});return nr.jsx(sh,$r({"aria-hidden":!0,className:t,ownerState:a},o,{children:nr.jsx(lh,{ownerState:a,children:i?nr.jsx("span",{children:r}):ih||(ih=nr.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}}),ph=_c(ud,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ld})(({theme:e,ownerState:t})=>$r({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})),fh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=Hc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Hr(s,ch),b=(e=>{const{classes:t}=e;return $r({},t,Sl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},md,t))})(s),v=ed(),y=Zu({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$r({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:uh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:ph;return nr.jsx(pd,$r({slots:{root:w,input:C},renderSuffix:e=>nr.jsx(dh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=nr.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:$r({},b,{notchedOutline:null})}))});function hh(e){return Ds("MuiSelect",e)}fh.muiName="Input";const mh=Ms("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var gh;const bh=["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"],vh=_c("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${mh.select}`]:t.select},{[`&.${mh.select}`]:t[r.variant]},{[`&.${mh.error}`]:t.error},{[`&.${mh.multiple}`]:t.multiple}]}})(eh,{[`&.${mh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yh=_c("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${va(r.variant)}`],r.open&&t.iconOpen]}})(rh),xh=_c("input",{shouldForwardProp:e=>Nc(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 Sh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wh(e){return null==e||"string"==typeof e&&!e.trim()}const Ch=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:I,renderValue:k,SelectDisplayProps:P={},tabIndex:D,value:M,variant:T="standard"}=e,q=Hr(e,bh),[O,L]=ol({controlled:M,default:u,name:"Select"}),[N,j]=ol({controlled:A,default:c,name:"Select"}),_=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,V]=x.useState(),W=al(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:O}),[O]),x.useEffect(()=>{c&&N&&F&&!H&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=Zs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?R&&R(t):C&&C(t),H||(V(a?null:G.clientWidth),j(e))},Y=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(L(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}v||K(!1,t)}},J=null!==F&&N;let Z,Q;delete q["aria-invalid"];const ee=[];let te=!1;(nd({value:O})||p)&&(k?Z=k(O):te=!0);const re=Y.map(e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(O))throw new Error(_r(2));t=O.some(t=>Sh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Sh(O,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==D?D:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=$r({},e,{variant:T,value:O,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Sl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${va(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},hh,t)})(ae),le=$r({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ce=nl();return nr.jsxs(x.Fragment,{children:[nr.jsx(vh,$r({ref:U,tabIndex:ne,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:y}}),S(e))},onFocus:E},P,{ownerState:ae,className:Is(P.className,se.select,l),id:ie,children:wh(Z)?gh||(gh=nr.jsx("span",{className:"notranslate",children:""})):Z})),nr.jsx(xh,$r({"aria-invalid":f,value:Array.isArray(O)?O.join(","):O,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},q)),nr.jsx(yh,{as:h,className:se.icon,ownerState:ae}),nr.jsx(Wf,$r({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:$r({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:$r({},b.slotProps,{paper:$r({},le,{style:$r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Eh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Rh=["root"],Ah={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>jc(e)&&"variant"!==e,slot:"Root"},Ih=_c(Np,Ah)(""),kh=_c(fh,Ah)(""),Ph=_c(Ip,Ah)(""),Dh=x.forwardRef(function(e,t){const r=Hc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=yd,id:u,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,Eh),A=b?oh:Ch,I=Zu({props:r,muiFormControl:ed(),states:["variant","error"]}),k=I.variant||E,P=$r({},r,{variant:k,classes:i}),D=(e=>{const{classes:t}=e;return t})(P),M=Hr(D,Rh),T=d||{standard:nr.jsx(Ih,{ownerState:P}),outlined:nr.jsx(kh,{label:f,ownerState:P}),filled:nr.jsx(Ph,{ownerState:P})}[k],q=al(t,Il(T));return nr.jsx(x.Fragment,{children:x.cloneElement(T,$r({inputComponent:A,inputProps:$r({children:o,error:I.error,IconComponent:c,variant:k,type:void 0,multiple:g},b?{id:u}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:$r({id:u},C)},p,{classes:p?la(M,p.classes):M},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:q,className:Is(T.props.className,a,D.root)},!d&&{variant:k},R))})});Dh.muiName="Select";const Mh=x.createContext();function Th(e){return Ds("MuiTable",e)}Ms("MuiTable",["root","stickyHeader"]);const qh=["className","component","padding","size","stickyHeader"],Oh=_c("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$r({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Lh="table",Nh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTable"}),{className:n,component:o=Lh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,qh),c=$r({},r,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:r}=e;return Sl({root:["root",r&&"stickyHeader"]},Th,t)})(c),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return nr.jsx(Mh.Provider,{value:d,children:nr.jsx(Oh,$r({as:o,role:o===Lh?null:"table",ref:t,className:Is(u.root,n),ownerState:c},l))})}),jh=x.createContext();function _h(e){return Ds("MuiTableBody",e)}Ms("MuiTableBody",["root"]);const zh=["className","component"],Fh=_c("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$h={variant:"body"},Hh="tbody",Bh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableBody"}),{className:n,component:o=Hh}=r,i=Hr(r,zh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},_h,t)})(a);return nr.jsx(jh.Provider,{value:$h,children:nr.jsx(Fh,$r({className:Is(s.root,n),as:o,ref:t,role:o===Hh?null:"rowgroup",ownerState:a},i))})});function Vh(e){return Ds("MuiTableCell",e)}const Wh=Ms("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Uh=["align","className","component","padding","scope","size","sortDirection","variant"],Gh=_c("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${va(r.size)}`],"normal"!==r.padding&&t[`padding${va(r.padding)}`],"inherit"!==r.align&&t[`align${va(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Zl.lighten(Zl.alpha(e.palette.divider,1),.88):Zl.darken(Zl.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Wh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Kh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=r,d=Hr(r,Uh),p=x.useContext(Mh),f=x.useContext(jh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=u||f&&f.variant,v=$r({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Sl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${va(n)}`,"normal"!==o&&`padding${va(o)}`,`size${va(i)}`]},Vh,t)})(v);let S=null;return c&&(S="asc"===c?"ascending":"descending"),nr.jsx(Gh,$r({as:m,ref:t,className:Is(y.root,o),"aria-sort":S,scope:g,ownerState:v},d))});function Yh(e){return Ds("MuiTableContainer",e)}Ms("MuiTableContainer",["root"]);const Xh=["className","component"],Jh=_c("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Zh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Xh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},Yh,t)})(a);return nr.jsx(Jh,$r({ref:t,as:o,className:Is(s.root,n),ownerState:a},i))});function Qh(e){return Ds("MuiTableHead",e)}Ms("MuiTableHead",["root"]);const em=["className","component"],tm=_c("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),rm={variant:"head"},nm="thead",om=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableHead"}),{className:n,component:o=nm}=r,i=Hr(r,em),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},Qh,t)})(a);return nr.jsx(jh.Provider,{value:rm,children:nr.jsx(tm,$r({as:o,className:Is(s.root,n),ref:t,role:o===nm?null:"rowgroup",ownerState:a},i))})});function im(e){return Ds("MuiTableRow",e)}const am=Ms("MuiTableRow",["root","selected","hover","head","footer"]),sm=["className","component","hover","selected"],lm=_c("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${am.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${am.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),cm="tr",um=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableRow"}),{className:n,component:o=cm,hover:i=!1,selected:a=!1}=r,s=Hr(r,sm),l=x.useContext(jh),c=$r({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Sl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},im,t)})(c);return nr.jsx(lm,$r({as:o,ref:t,className:Is(u.root,n),role:o===cm?null:"row",ownerState:c},s))});function dm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function pm({fontSize:e="medium",children:t=null,className:r=""}={}){return nr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function fm(e={}){return nr.jsx(pm,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.jsx("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"})]})})}function hm(e={}){return nr.jsx(pm,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.jsx("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"})]})})}function mm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.jsx("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.345L9.345 8Z"})})}function gm(e={}){return nr.jsx(pm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function bm(e={}){return nr.jsx(pm,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function vm({className:e}){return nr.jsx(pm,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.jsx("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"}),nr.jsx("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"})]})})})})})}function ym(e={}){return nr.jsx(pm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:Ft.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var xm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Ft.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ft.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(dm,{"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 ${Ft.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`,borderRadius:Wt,backgroundColor:Ft.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 ${Ft.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ft.WHITE,color:Ft.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:Wt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ft.GREYSCALE_0_15,backgroundColor:Ft.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ft.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ft.GREEN_PALE},"&:active":{backgroundColor:Ft.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ft.BLUE_PALE},"&:active":{backgroundColor:Ft.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.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:Wt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ft.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ft.GREYSCALE_0_42,backgroundColor:Ft.GREYSCALE_100_60,"&:active":{backgroundColor:Ft.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ft.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ft.PURPLE,"&.Mui-focusVisible":{borderColor:Ft.PURPLE,boxShadow:`0 0 0 3px ${Ys(Ft.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ft.GREEN,"&.Mui-focusVisible":{borderColor:Ft.GREEN,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ft.BLUE,"&.Mui-focusVisible":{borderColor:Ft.BLUE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ft.ORANGE,"&.Mui-focusVisible":{borderColor:Ft.ORANGE,boxShadow:`0 0 0 3px ${Ys(Ft.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ft.RED,"&.Mui-focusVisible":{borderColor:Ft.RED,boxShadow:`0 0 0 3px ${Ys(Ft.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ft.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ft.PURPLE_PALE},"&:active":{backgroundColor:Ft.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ft.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ft.GREEN_PALE},"&:active":{backgroundColor:Ft.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ft.BLUE_PALE},"&:active":{backgroundColor:Ft.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ft.ORANGE_PALE},"&:active":{backgroundColor:Ft.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ft.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ft.RED_PALE},"&:active":{backgroundColor:Ft.RED_DARK},"&.Mui-focusVisible":{borderColor:Ft.RED_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.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:Ft.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ft.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Wt,boxShadow:`inset 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(mm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:$t,borderRadius:Wt,color:Ft.TEXT_PRIMARY,backgroundColor:Ft.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ft.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ft.GREYSCALE_0_05,color:Ft.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ft.GREEN,borderColor:Ft.GREEN},"&.MuiChip-outlinedInfo":{color:Ft.BLUE,borderColor:Ft.BLUE},"&.MuiChip-outlinedWarning":{color:Ft.ORANGE,borderColor:Ft.ORANGE},"&.MuiChip-outlinedError":{color:Ft.RED,borderColor:Ft.RED}},outlined:{border:`solid 1px ${Ft.GREYSCALE_0_15}`,backgroundColor:Ft.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Wt,boxShadow:"none",backgroundColor:Ft.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ft.GREEN,borderColor:Ft.GREEN},outlinedSecondary:{color:Ft.BLUE,borderColor:Ft.BLUE},label:{fontFamily:Xt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(mm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(dm,{"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:Wt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Wt,fontSize:Ht,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ft.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ft.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ft.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ft.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ft.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Wt,border:`solid 1px ${Ft.GREYSCALE_0_15}`,color:Ft.GREYSCALE_0_60,marginRight:0,width:Vt,height:Vt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ft.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Wt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ft.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ht}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:$t,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ft.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ft.GREYSCALE_25,fontSize:$t,fontFamily:Xt.FONT_FAMILY,fontWeight:Kt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ft.TEXT_PRIMARY},"&.Mui-error":{color:Ft.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ft.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Gt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ft.TEXT_SECONDARY,content:"'(required)'",fontWeight:Gt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ht,lineHeight:"16px",backgroundColor:Ft.WHITE,borderRadius:Wt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.GREYSCALE_0_05}`,borderColor:Ft.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ft.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ft.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.RED}`,boxShadow:`0px 0px 0px 1px ${Ft.RED}, inset 0 2px 0 0 ${Ft.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.GREYSCALE_0_10}`,borderColor:Ft.GREYSCALE_0_10,backgroundColor:Ft.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ft.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ft.GREYSCALE_0_15,borderRadius:Wt,boxShadow:`inset 0 2px 0 0 ${Ft.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(dm,{...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:Ft.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ft.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03},"&:active":{backgroundColor:Ft.GREYSCALE_0_10},"&:focus":{backgroundColor:Ft.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ft.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ft.GREYSCALE_0_30,"&:hover":{backgroundColor:Ft.GREYSCALE_0_0,borderColor:Ft.GREYSCALE_0_15},"& ~svg":{color:Ft.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ft.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Wt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ft.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ht,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:$t,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:$t,fontWeight:Kt,color:Ft.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Kt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ft.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ft.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(bm,{}),checkedIcon:nr.jsx(hm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ft.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ft.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ft.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(ym,{}),checkedIcon:nr.jsx(fm,{}),indeterminateIcon:nr.jsx(gm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Wt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ft.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ft.GREYSCALE_0_55,color:Ft.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:Ft.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ft.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ft.GREYSCALE_0_55,"&:hover":{color:Ft.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:Ft.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ft.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ht,color:Ft.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Kt},secondary:{fontSize:$t,color:Ft.GREYSCALE_45,fontWeight:Gt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ht,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ht,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ft.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:$t,borderBottom:`solid 1px ${Ft.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ht,color:Ft.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ft.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ft.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Ft.RED}}},"&.Mui-focusVisible":{backgroundColor:Ft.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:Ft.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:Ft.GREEN,height:"24px","&.Mui-disabled":{color:Ft.GREYSCALE_0_15}},rail:{backgroundColor:Ft.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ft.GREYSCALE_0_05}`,borderRadius:Wt,boxShadow:`inset 0px 0px 0px 1px ${Ft.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ft.GREYSCALE_0_05}`,borderRadius:Wt},thumb:{height:"16px",width:"16px",borderRadius:Wt,backgroundColor:Ft.WHITE,boxShadow:`0px 1px 2px 0px ${Ft.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ft.GREYSCALE_0_05}`,"&:hover":{borderRadius:Wt,boxShadow:`0 2px 4px 0 ${Ft.GREYSCALE_0_30}, 0 0 0 1px ${Ft.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ft.GREYSCALE_0_15}, 0 0 0 1px ${Ft.GREYSCALE_0_06}, 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ft.GREYSCALE_0_15}, 0 0 0 1px ${Ft.GREYSCALE_0_06}, 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ft.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ft.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ft.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ft.GREYSCALE_0_15},markLabel:{color:Ft.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ft.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ft.WHITE,color:Ft.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:Ft.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:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ft.GREYSCALE_0_15,borderRadius:Wt},thumb:{height:"16px",width:"16px",borderRadius:Wt,backgroundColor:Ft.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:Ht,fontWeight:Kt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ft.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`,backgroundColor:Ft.GREYSCALE_0_03,borderRadius:Wt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ft.GREYSCALE_25,"&.Mui-selected":{color:Ft.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ht,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Wt,"&:hover":{backgroundColor:Ft.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ft.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ft.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Wt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ft.GREYSCALE_0_05},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ft.GREYSCALE_85}`,borderRight:`1px solid ${Ft.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Kt,backgroundColor:Ft.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:Ft.GREYSCALE_98,borderBottom:`1px solid ${Ft.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ft.GREYSCALE_85}`,borderTop:`1px solid ${Ft.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ft.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ft.GREYSCALE_0_05,"&:hover":{backgroundColor:Ft.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ft.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(vm,{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 ${Ft.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ht,borderRadius:Wt,padding:"7px 16px",border:`1px solid ${Ft.GREYSCALE_0_15}`,backgroundColor:Ft.GREYSCALE_100_60,color:Ft.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ft.GREYSCALE_0_10,border:`1px solid ${Ft.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03,border:`1px solid ${Ft.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ft.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ft.MISC_FOCUS_BORDER}`,border:`1px solid ${Ft.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ft.GREYSCALE_25,backgroundColor:Ft.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ft.GREYSCALE_0_10,border:`1px solid ${Ft.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:$t,height:24,width:24,padding:7},sizeLarge:{fontSize:Bt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ht,borderRadius:Wt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Ft.GREYSCALE_20},tooltip:{backgroundColor:Ft.GREYSCALE_20,fontSize:$t,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Sm=e=>({mode:"light",primary:{ultraLight:Ft.GREEN_ULTRA_LIGHT,light:Ft.GREEN_PALE,main:Ft.GREEN,dark:Ft.GREEN_DARK,extraDark:Ft.GREEN_EXTRA_DARK,contrastText:Ft.WHITE},secondary:{ultraLight:Ft.BLUE_ULTRA_LIGHT,light:Ft.BLUE_PALE,main:Ft.BLUE,dark:Ft.BLUE_DARK,extraDark:Ft.BLUE_EXTRA_DARK,contrastText:Ft.WHITE},error:{ultraLight:Ft.RED_ULTRA_LIGHT,light:Ft.RED_PALE,main:Ft.RED,dark:Ft.RED_DARK,extraDark:Ft.RED_EXTRA_DARK,contrastText:Ft.WHITE},warning:{ultraLight:Ft.ORANGE_ULTRA_LIGHT,light:Ft.ORANGE_PALE,main:Ft.ORANGE,dark:Ft.ORANGE_DARK,extraDark:Ft.ORANGE_EXTRA_DARK,contrastText:Ft.WHITE},success:{ultraLight:Ft.GREEN_ULTRA_LIGHT,light:Ft.GREEN_PALE,main:Ft.GREEN,dark:Ft.GREEN_DARK,extraDark:Ft.GREEN_EXTRA_DARK,contrastText:Ft.WHITE},info:{ultraLight:Ft.BLUE_ULTRA_LIGHT,light:Ft.BLUE_PALE,main:Ft.BLUE,dark:Ft.BLUE_DARK,extraDark:Ft.BLUE_EXTRA_DARK,contrastText:Ft.WHITE},text:{primary:Ft.TEXT_PRIMARY,secondary:Ft.TEXT_SECONDARY,disabled:Ft.GREYSCALE_0_30},action:{hover:Ft.GREYSCALE_0_03,hoverOpacity:.03,selected:Ft.GREYSCALE_0_05,selectedOpacity:.05,focus:Ft.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ft.WHITE,main:Ft.PURPLE,light:Ft.PURPLE_PALE,dark:Ft.PURPLE_DARK,extraDark:Ft.GREYSCALE_0_0,contrastText:Ft.WHITE},background:{paper:Ft.WHITE,default:Ft.GREYSCALE_95},divider:Ft.GREYSCALE_0_15}),wm=(e="light")=>vc({components:xm(),palette:Sm(),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:Ht,fontWeightLight:Ut,fontWeightRegular:Gt,fontWeightMedium:Kt,fontWeightBold:Yt,htmlFontSize:Ht,fontFamily:Xt.FONT_FAMILY,button:{fontWeight:Kt,fontSize:Ht,textTransform:"none"},body1:{fontSize:Bt,lineHeight:"24px"},body2:{fontSize:Ht,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Vt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Bt,fontWeight:Kt,lineHeight:"16px"},h6:{fontSize:Ht,fontWeight:Kt,lineHeight:"16px"},caption:{color:Ft.TEXT_SECONDARY},subtitle1:{fontSize:Ht,color:Ft.TEXT_SECONDARY},subtitle2:{fontSize:$t,color:Ft.TEXT_SECONDARY}},shape:{borderRadius:Wt}}),Cm={...zt},Em=wm().palette,Rm={TEXT:Em.text.primary,DISABLED:Em.text.disabled,HOVER:Em.action.hover,WHITE:Cm.GREYSCALE_100,BORDER_LIGHT:Cm.GREYSCALE_90,BORDER_MEDIUM:Cm.GREYSCALE_85,BORDER_HEAVY:Cm.GREYSCALE_50,DARK_MODE_TEXT:Cm.GREYSCALE_95,DARK_MODE_BORDER:Cm.GREYSCALE_95,DARK_MODE_DISABLED:Cm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Cm.GREYSCALE_95,SELECTED:Em.primary.main,LINK:Em.info.main,ERROR:Em.error.main},Am=(e,t=Rm.TEXT,r=Rm.WHITE)=>{const n=ie(e??""),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},Im=e=>{const t=e.getStyle("","","dataColors.selected")||Rm.SELECTED,r=function(e,t){const r=ie(se),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?se:"#000000"}(t,Rm.TEXT);return{background:t,color:r}},km=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Pm=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Dm=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Mm=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},Tm=e=>{e.stopPropagation(),e.preventDefault()},qm=e=>!!e&&0===ie(e).a,Om="#grid",Lm=(e,t,r,n=Rm.WHITE)=>e&&!qm(e)?e:qm(t)?r&&!qm(r)?r:n:t,Nm=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},jm=(e,t,r,n,o)=>{const i=Nm(".qv-object .qv-inner-object",r),a=Nm(".qv-panel-sheet",r),s=Nm(Om,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return Dm(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),c=n?.(t),u=o?.(t),d=l||c||i||u,p=qm(d),f=!qm(h=p?s:d)&&Am(h,Rm.TEXT,Rm.DARK_MODE_TEXT)===ee(Rm.DARK_MODE_TEXT);var h;return{color:d,headerColor:Lm(l,d,s),isDark:f}},_m=(t,r,a,s)=>{const l=i(),c=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(Om),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:jm(t,l,r,a,s)}),[l.name(),r,a,s,t,c])};const zm=3,Fm=/\n/g;function $m(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),c=r(s);if(l>t&&c<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const Hm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=zm,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=It(e=>{if(void 0===e)return 0;if(a){const t=e.split(Fm).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(Fm," ");return s(t).width}),c=e=>+l(e).toFixed(2),u=It(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(Fm):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=$m(r,t,c)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:u}}};function Bm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=zm,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:c}=A(()=>Hm({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:c}}var Vm,Wm={};var Um=function(){if(Vm)return Wm;Vm=1;var e=B;return Wm.createRoot=e.createRoot,Wm.hydrateRoot=e.hydrateRoot,Wm}();const Gm="Source Sans Pro, sans-serif",Km=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=Se(),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),o=t.getStyle("object","label.value","fontFamily"),i=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...i,r,n,o,Gm].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function Ym(e,t){const[r,n]=I(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var Xm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Jm=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Xm).forEach(t=>{e.add(Xm[t])})}}(e)},[e]),e),Zm="12px",Qm="nebula-table-utils-head-menu-button",eg="nebula-table-utils-head-menu-wrapper",tg="nebula-table-utils-head-menu",rg="nebula-table-utils-head-menu-list-id",ng="sn-copy-cell";let og=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const ig="nebula-table-utils-column-adjuster";let ag=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),sg=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const lg={darker:.15,brighter:.3,opacity:.03},cg={darker:.3,brighter:.5,opacity:.05};let ug=function(e){return e.Cyclic="C",e}({});const dg=document.createElement("textarea");function pg(e){dg.value=e,document.body.appendChild(dg),dg.select(),dg.setSelectionRange(0,dg.value.length),document.execCommand("copy"),document.body.removeChild(dg)}dg.style.position="absolute",dg.style.left="-9999px",dg.setAttribute("readonly","");const fg=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{pg(t)}):pg(t))};function hg(e){return"init"in e}function mg(e){return"function"==typeof e.write}function gg(e){return"v"in e||"e"in e}function bg(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function vg(e){return"function"==typeof(null==e?void 0:e.then)}function yg(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function xg(e,t,r){const n=r.get(e),o=null==n?void 0:n.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const Sg=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function wg(e){return e.i||(e.i=Sg()),e.r||(e.r=Sg()),e.c||(e.c=Sg()),e.m||(e.m=Sg()),e.u||(e.u=Sg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const Cg=(e,t,r,...n)=>r.read(...n),Eg=(e,t,r,...n)=>r.write(...n),Rg=(e,t,r)=>r.INTERNAL_onInit(t),Ag=(e,t,r,n)=>{var o;return null==(o=r.onMount)?void 0:o.call(r,n)},Ig=(e,t,r)=>{var n;const o=e[0];let i=o.get(r);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(r,i),null==(n=a.i)||n.call(a,r),function(e){return!!e.INTERNAL_onInit}(r)&&s(e,t,r)}return i},kg=(e,t)=>{var r;const n=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const c=[],u=e=>{try{e()}catch(e){c.push(e)}};do{s.f&&u(s.f);const c=new Set;for(const e of o){const t=null==(r=n.get(e))?void 0:r.l;if(t)for(const e of t)c.add(e)}o.clear();for(const e of a)c.add(e);a.clear();for(const e of i)c.add(e);i.clear();for(const e of c)u(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(c.length)throw new AggregateError(c)},Pg=(e,t)=>{const r=e[1],n=e[2],o=e[3],i=e[11],a=e[14],s=e[17];if(!o.size)return;const l=[],c=[],u=new WeakSet,d=new WeakSet,p=[],f=[];for(const r of o)p.push(r),f.push(i(e,t,r));for(;p.length;){const o=p.length-1,a=p[o],s=f[o];if(d.has(a))p.pop(),f.pop();else if(u.has(a)){if(n.get(a)===s.n)l.push(a),c.push(s);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(a))throw new Error("[Bug] invalidated atom exists");d.add(a),p.pop(),f.pop()}else{u.add(a);for(const n of xg(a,s,r))u.has(n)||(p.push(n),f.push(i(e,t,n)))}}for(let r=l.length-1;r>=0;--r){const i=l[r],u=c[r];let d=!1;for(const e of u.d.keys())if(e!==i&&o.has(e)){d=!0;break}d&&(n.set(i,u.n),a(e,t,i),s(e,t,i)),n.delete(i)}},Dg=new WeakSet,Mg=(e,t,r)=>{var n,o;const i=e[1],a=e[2],s=e[3],l=e[6],c=e[7],u=e[11],d=e[12],p=e[13],f=e[14],h=e[16],m=e[17],g=e[20],b=e[26],v=e[28],y=u(e,t,r),x=v[0];if(gg(y)){if(i.has(r)&&a.get(r)!==y.n||y.m===x)return y.m=x,y;let n=!1;for(const[r,o]of y.d)if(f(e,t,r).n!==o){n=!0;break}if(!n)return y.m=x,y}let S=!0;const w=new Set(y.d.keys()),C=()=>{for(const e of w)y.d.delete(e)},E=()=>{if(i.has(r)){const n=!s.size;m(e,t,r),n&&(p(e,t),d(e,t))}},R=n=>{var o;if(n===r){const r=u(e,t,n);if(!gg(r)){if(!hg(n))throw new Error("no atom init");g(e,t,n,n.init)}return bg(r)}const a=f(e,t,n);try{return bg(a)}finally{w.delete(n),y.d.set(n,a.n),vg(y.v)&&yg(r,y.v,a),i.has(r)&&(null==(o=i.get(n))||o.t.add(r)),S||E()}};let A,I;const k={get signal(){return A||(A=new AbortController),A.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||mg(r)||console.warn("setSelf function cannot be used with read-only atom"),!I&&mg(r)&&(I=(...n)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return h(e,t,r,n)}finally{p(e,t),d(e,t)}}),I}},P=y.n,D=a.get(r)===P;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.delete(t);const o=c(e,t,r,R,k);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,r,o),vg(o)){b(e,t,o,()=>null==A?void 0:A.abort());const r=()=>{C(),E()};o.then(r,r)}else C();return null==(n=l.r)||n.call(l,r),y.m=x,y}catch(e){if(function(e){if(!(e instanceof Error))return!1;const t=e.name,r=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(r.includes("call stack")||r.includes("too much recursion")||r.includes("stack overflow"))}(e))throw e;return delete y.v,y.e=e,++y.n,y.m=x,y}finally{S=!1,y.n!==P&&D&&(a.set(r,y.n),s.add(r),null==(o=l.c)||o.call(l,r))}},Tg=(e,t,r)=>{const n=e[1],o=e[2],i=e[11],a=[r];for(;a.length;){const r=a.pop(),s=i(e,t,r);for(const l of xg(r,s,n)){const r=i(e,t,l);o.get(l)!==r.n&&(o.set(l,r.n),a.push(l))}}},qg=(e,t,r,n)=>{const o=e[3],i=e[6],a=e[8],s=e[11],l=e[12],c=e[13],u=e[14],d=e[15],p=e[16],f=e[17],h=e[20],m=e[28];let g=!0;const b=r=>bg(u(e,t,r)),v=(n,...a)=>{var u;const b=s(e,t,n);try{if(n===r){if(!hg(n))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.add(t);const r=b.n,s=a[0];return h(e,t,n,s),f(e,t,n),void(r!==b.n&&(++m[0],o.add(n),d(e,t,n),null==(u=i.c)||u.call(i,n)))}return p(e,t,n,a)}finally{g||(c(e,t),l(e,t))}};try{return a(e,t,r,b,v,...n)}finally{g=!1}},Og=(e,t,r)=>{var n;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],c=e[18],u=e[19],d=s(e,t,r),p=o.get(r);if(p&&d.d.size>0){for(const[o,u]of d.d)if(!p.d.has(o)){const d=s(e,t,o);c(e,t,o).t.add(r),p.d.add(o),u!==d.n&&(i.add(o),l(e,t,o),null==(n=a.c)||n.call(a,o))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const o=u(e,t,n);null==o||o.t.delete(r)}}},Lg=(e,t,r)=>{var n;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],c=e[12],u=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,r);let m=o.get(r);if(!m){d(e,t,r);for(const n of h.d.keys()){f(e,t,n).t.add(r)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(r,m),mg(r)&&function(e){return!!e.onMount}(r)){const n=()=>{let n=!0;const o=(...o)=>{try{return p(e,t,r,o)}finally{n||(u(e,t),c(e,t))}};try{const i=s(e,t,r,o);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};i.add(n)}null==(n=a.m)||n.call(a,r)}return m},Ng=(e,t,r)=>{var n,o;const i=e[1],a=e[5],s=e[6],l=e[11],c=e[19],u=l(e,t,r);let d=i.get(r);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=i.get(e))?void 0:n.d.has(r)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(r);for(const n of u.d.keys()){const o=c(e,t,n);null==o||o.t.delete(r)}null==(o=s.u)||o.call(s,r)},jg=(e,t,r,n)=>{const o=e[11],i=e[27],a=o(e,t,r),s="v"in a,l=a.v;if(vg(n))for(const i of a.d.keys())yg(r,n,o(e,t,i));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,vg(l)&&i(e,t,l))},_g=(e,t,r)=>bg((0,e[14])(e,t,r)),zg=(e,t,r,...n)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,r,n)}finally{o.size!==l&&(a(e,t),i(e,t))}},Fg=(e,t,r,n)=>{const o=e[12],i=e[18],a=e[19],s=i(e,t,r).l;return s.add(n),o(e,t),()=>{s.delete(n),a(e,t,r),o(e,t)}},$g=(e,t,r,n)=>{const o=e[25];let i=o.get(r);if(!i){i=new Set,o.set(r,i);const e=()=>o.delete(r);r.then(e,e)}i.add(n)},Hg=(e,t,r)=>{const n=e[25].get(r);null==n||n.forEach(e=>e())},Bg=new WeakMap;function Vg(e){const t=Bg.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");const r=t[24];return r?r(t,e):t}function Wg(...e){const t={get:e=>n(r,t,e),set:(e,...n)=>o(r,t,e,...n),sub:(e,n)=>i(r,t,e,n)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},Cg,Eg,Rg,Ag,Ig,kg,Pg,Mg,Tg,qg,Og,Lg,Ng,jg,_g,zg,Fg,void 0,new WeakMap,$g,Hg,[0]].map((t,r)=>e[r]||t);Bg.set(t,Object.freeze(r));const n=r[21],o=r[22],i=r[23];return t}let Ug,Gg=0;function Kg(e,t){const r="atom"+ ++Gg,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=Yg,n.write=Xg),t&&(n.write=t),n}function Yg(e){return e(this)}function Xg(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function Jg(){return Wg()}const Zg=P(void 0);function Qg(e){const t=O(Zg);return(null==e?void 0:e.store)||t||(Ug||(Ug=Jg(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Ug),globalThis.__JOTAI_DEFAULT_STORE__!==Ug&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Ug)}function eb({children:e,store:t}){const r=k(null);return t?w(Zg.Provider,{value:t},e):(null===r.current&&(r.current=Jg()),w(Zg.Provider,{value:r.current},e))}const tb=e=>"function"==typeof(null==e?void 0:e.then),rb=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},nb=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(rb(e),e)}),ob=new WeakMap,ib=(e,t,r)=>{const n=Vg(e),o=n[26];let i=ob.get(t);return i||(i=new Promise((a,s)=>{let l=t;const c=e=>t=>{l===e&&a(t)},u=e=>t=>{l===e&&s(t)},d=()=>{try{const t=r();tb(t)?(ob.set(t,i),l=t,t.then(c(t),u(t)),o(n,e,t,d)):a(t)}catch(e){s(e)}};t.then(c(t),u(t)),o(n,e,t,d)}),ob.set(t,i)),i};function ab(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=Qg(t),[[i,a,s],l]=D(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let c=i;if(a===o&&s===e||(l(),c=o.get(e)),M(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);tb(t)&&rb(ib(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),T(c),tb(c)){const t=ib(o,c,()=>o.get(e));return n&&rb(t),nb(t)}return c}function sb(e,t){const r=Qg(t);return q((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function lb(e,t){return[ab(e,t),sb(e,t)]}const cb=Kg(void 0),ub=Kg({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),db=Kg({}),pb=e=>"string"==typeof e,fb=e=>"number"==typeof e,hb=e=>"boolean"==typeof e,mb=e=>e instanceof Set,gb=e=>e instanceof Map,bb=e=>{if(e instanceof Error)return e.message;if(null===e)return"null";if(void 0===e)return"undefined";if(pb(e))return e;if(mb(e))try{return JSON.stringify([...e])}catch{return"Failed to serialize Set"}if(gb(e))try{return JSON.stringify(Object.fromEntries(e))}catch{return"Failed to serialize Map"}try{return JSON.stringify(e)}catch{return"Failed to serialize value"}},vb=e=>{if(null!=e){if(pb(e))return e;if(e instanceof Error)return bb(e);if(fb(e)||hb(e))return String(e);if(Array.isArray(e)||mb(e)||gb(e))return bb(e);if((e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)){const t={};return Object.entries(e).forEach(([e,r])=>{pb(r)||fb(r)||hb(r)?t[e]=r:t[e]=bb(r)}),t}return bb(e)}},yb=(e,t={})=>{const{tag:r}=t,n=({msg:t,payload:n})=>{const o=((e,t)=>{const r=[];return pb(t)&&t.length>0?r.push(t):Array.isArray(t)&&r.push(...t.filter(e=>"string"==typeof e&&e.length>0)),r.length>0?`${r.map(e=>`[${e}]`).join("")} ${e}`:e})(t,r);return e.anything?.logInfo?.(o,vb(n)),o};return{warn:({msg:e,payload:t})=>{n({msg:e,payload:t})},error:({msg:e,payload:t})=>{n({msg:e,payload:t})}}},xb=e=>yb(e,{tag:"sn-table"}),Sb=Kg({}),wb=Kg(e=>{const t=e(Sb);return e=>t.flags.isEnabled(e)}),Cb=Kg(e=>{const t=e(Sb);return xb(t)}),Eb=Kg(!1),Rb=Kg({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),Ab=Kg(e=>e(Rb).qHyperCube.qSize.qcy),Ib=Kg(e=>!!e(Rb).snapshotData),kb=Kg(e=>e(Rb).qHyperCube.qDimensionInfo.length),Pb=Kg(e=>e(Rb).qHyperCube.qMeasureInfo.length),Db=Kg(e=>e(Rb).qStateName),Mb=Kg(e=>e(Rb).snapshotData),Tb=Kg(e=>!1!==e(Rb).usePagination),qb=Kg(e=>!1!==e(Rb).accessibleHeader),Ob=Kg(),Lb=Kg(!1),Nb=Kg(e=>e(Ob),(e,t,r)=>{t(Ob,r),t(Lb,r.isModal())}),jb=Kg(),_b=Kg(e=>{const t=e(jb),r=e(Ib);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(jb,r)}),zb=Kg(e=>!!e(_b).active),Fb=Kg(e=>!!e(_b).passive),$b=Kg(e=>!!e(_b).select),Hb=Kg(e=>!!e(_b).scroll),Bb=Kg(e=>{const t=e(zb),r=e(Lb);return t&&!r}),Vb=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),Wb=Kg(),Ub=Kg(e=>e(Wb)?.direction),Gb=Kg(e=>e(Wb)?.footerContainer),Kb=Kg(e=>e(Wb)?.viewState),Yb=Kg(e=>e(Wb)?.freeResize),Xb=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(Tb);return void 0!==r?.usePagination?r.usePagination:n||Vb(t,r)}),Jb=Kg({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),Zb=Kg(e=>e(Jb),(e,t,r)=>{const n=e(Xb),o=e(wb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(n||o)&&t(Jb,r)}),Qb=Kg(),ev=Kg(e=>{const t=e(Qb);if(t&&"getEffectiveProperties"in t)return t}),tv={width:0,height:0,top:0,left:0},rv=Kg(tv),nv=Kg(tv),ov=Kg(e=>e(rv),(e,t,r)=>{const n=e(Rb),o=e(Yb),i=e(rv),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(nv,r),t(rv,a?{...r,...n.snapshotData?.content?.size}:r))}),iv=Kg({}),av=new WeakMap,sv=Kg(e=>{const t=e(iv),r=av.get(t);if(r)return r;const n=Um.createRoot(t);return av.set(t,n),n}),lv=Kg({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),cv=Kg({get:e=>e,add:()=>{},language:()=>"en"});var uv,dv={exports:{}};var pv=(uv||(uv=1,self,dv.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=v(u(n[0],o),h(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var d=u(n[0],o),p=u(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=c(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=h(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:u,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="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},E(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function P(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||D(t,o)||(P(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){P(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=M(e,t.from);I(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const q=A,O=function(e,r,n){if(!e)return Promise.resolve();var o=q.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var L="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===L)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===L)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,u,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var c=s;void 0===c&&(c=w.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,c),h=w.getAboveComp(n,c,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,c);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(u,1),y=w.getDimComp(u,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,u),p="".concat(u," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(c,1),h=w.getDimComp(c,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),c=""===s&&""===l?"":s||l,u=le(o,i),d=ce(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const ke=Ie;function Pe(e){return Pe="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},Pe(e)}var De={accumulation:z,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:Y};const Me={modifiers:De,apply:qe,applyModifiers:Oe,cleanUpMeasure:Le,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return De[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return De[e]&&De[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var c=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Pe(n))return Oe({model:r,properties:n});var u=r?r.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:u,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:u,masterItem:s,isFirstTime:c})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ke({model:r}).then(function(t){return Ye({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Oe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Pe(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return Le(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Oe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:c}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return Le(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;ke.isValid(r)||ke.initBase(r,!0);var l=r.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(s++,"object"!==Pe(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,r);var l=r.qLibraryId||u&&u.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:De[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Le(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&!De[e.type]})}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Pe(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Pe(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ke(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ye(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function u(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(u(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(u(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return qe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="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},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:u};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},q=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(c):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},L=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(c):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return k(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:n,hypercubePath:c}),b=i.getValue(n,c||"").qHyperCubeDef,v=i.getValue(g,c||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,I=void 0===A?q():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),j({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),P(g,t,n),m.qProperty=g;var k=i.getValue(u||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=u(e,n,r),i=u(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const Y={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=Y.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var c=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),u=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(c){var f=Y.create(Y.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=Y.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ce=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ue=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",c),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",c),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",u),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ce(d,p),b=ue({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),u}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var c=Ce(r,n,l);i.setValue(t,c,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),c=i.getValue(t,l);void 0!==c&&(i.setValue(o,a,c),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",ke="measures",Pe="qDef.conditionalColoring";const De={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:ke,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:ke,quarantineName:Ie})}};var Me="qHyperCubeDef.qMeasures",Te="measures",qe="qHyperCubeDef.qDimensions",Oe="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:Me,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),n.default})()),dv.exports),fv=Jt(pv);const hv="qHyperCubeDef.qMeasures",mv="measures",gv="qHyperCubeDef.qDimensions",bv="dimensions",vv="qDef.representation",yv="tableRepresentation",xv="qDef.conditionalColoring",Sv="conditionalColoring",wv="qMiniChartDef",Cv="miniChartDef",Ev=({propertyTree:e,hyperCubePath:t})=>{const r=fv.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return At(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),fv.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),fv.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),fv.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{fv.quarantineArrayProp({properties:e,arrayPath:gv,itemPath:vv,arrayName:bv,quarantineName:yv}),fv.quarantineArrayProp({properties:e,arrayPath:hv,itemPath:vv,arrayName:mv,quarantineName:yv}),fv.quarantineArrayProp({properties:e,arrayPath:hv,itemPath:xv,arrayName:mv,quarantineName:Sv}),fv.quarantineArrayProp({properties:e,arrayPath:hv,itemPath:wv,arrayName:mv,quarantineName:Cv})})(r.properties),r};const Rv=/^q[A-Z]/,Av=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],Iv=e=>"object"==typeof e&&null!==e,kv=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!Rv.test(e)&&!Av.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>Iv(e)?kv(e,`${o}.${t}`):e):Iv(n)&&(e[r]=kv(n,o))}),e),Pv=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:sg.Pixels,pixels:e}:{type:sg.FitToContent}:i.qDef.columnWidth=e}return i},Dv=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i,env:a})=>{const s=xb(a);if(i){try{e=structuredClone(e)}catch(e){s.error({msg:"Failed to copy source properties",payload:e})}kv(e.properties)}const l=fv.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(fv.conditionalShow.unquarantine(l.qProperty),i)At(l,"qProperty.totals.show",!1),At(l,"qProperty.usePagination",!0),At(l,"qProperty.accessibleHeader",!0);else{fv.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{fv.unquarantineArrayProp({properties:e,arrayPath:gv,itemPath:vv,arrayName:bv,quarantineName:yv}),fv.unquarantineArrayProp({properties:e,arrayPath:hv,itemPath:vv,arrayName:mv,quarantineName:yv}),fv.unquarantineArrayProp({properties:e,arrayPath:hv,itemPath:xv,arrayName:mv,quarantineName:Sv}),fv.unquarantineArrayProp({properties:e,arrayPath:hv,itemPath:wv,arrayName:mv,quarantineName:Cv})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=l.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>Pv(e,t,n)),measures:a.filter(e=>e>=o).map(e=>Pv(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(At(l,"qProperty.qHyperCubeDef.qDimensions",o),At(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};var Mv,Tv,qv={},Ov={exports:{}},Lv={exports:{}};function Nv(){return Mv||(Mv=1,function(e){function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Lv)),Lv.exports}var jv={};function _v(e,t){return function(){return null}}function zv(e){return e&&"object"===$l(e)&&e.constructor===Object}function Fv(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?$r({},e):e;return zv(e)&&zv(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(zv(t[o])&&o in e?n[o]=Fv(e[o],t[o],r):n[o]=t[o])}),n}var $v=(Qi.element,function(){return null});$v.isRequired=(Qi.element.isRequired,function(){return null});var Hv=function(){return null};var Bv,Vv,Wv={exports:{}},Uv={};var Gv=(Vv||(Vv=1,Wv.exports=function(){if(Bv)return Uv;Bv=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),f=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function v(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case r:case o:case n:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return f}}case t:return f}}}var y=i,x=e,S=s,w=r,C=d,E=u,R=t,A=o,I=n,k=l;return Uv.ContextConsumer=a,Uv.ContextProvider=y,Uv.Element=x,Uv.ForwardRef=S,Uv.Fragment=w,Uv.Lazy=C,Uv.Memo=E,Uv.Portal=R,Uv.Profiler=A,Uv.StrictMode=I,Uv.Suspense=k,Uv.isAsyncMode=function(){return!1},Uv.isConcurrentMode=function(){return!1},Uv.isContextConsumer=function(e){return v(e)===a},Uv.isContextProvider=function(e){return v(e)===i},Uv.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Uv.isForwardRef=function(e){return v(e)===s},Uv.isFragment=function(e){return v(e)===r},Uv.isLazy=function(e){return v(e)===d},Uv.isMemo=function(e){return v(e)===u},Uv.isPortal=function(e){return v(e)===t},Uv.isProfiler=function(e){return v(e)===o},Uv.isStrictMode=function(e){return v(e)===n},Uv.isSuspense=function(e){return v(e)===l},Uv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===m||e===n||e===l||e===c||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},Uv.typeOf=v,Uv}()),Wv.exports),Kv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Yv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Kv);return t&&t[1]||""}(e)||t}function Xv(e,t,r){var n=Yv(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Jv,Zv="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Qv=Qi.oneOfType([Qi.func,Qi.object]),ey=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:_v,deepmerge:Fv,elementAcceptingRef:$v,elementTypeAcceptingRef:Hv,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Yv(e,"Component");if("object"===$l(e))switch(e.$$typeof){case Gv.ForwardRef:return Xv(e,e.render,"ForwardRef");case Gv.Memo:return Xv(e,e.type,"memo");default:return}}},ponyfillGlobal:Zv,refType:Qv}),ty=Zt(ey);function ry(){if(Jv)return jv;Jv=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.hexToRgb=r,jv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},jv.hslToRgb=n,jv.decomposeColor=o,jv.recomposeColor=i,jv.getContrastRatio=function(e,t){var r=a(e),n=a(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},jv.getLuminance=a,jv.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):c(e,t)},jv.fade=function(e,t){return s(e,t)},jv.alpha=s,jv.darken=l,jv.lighten=c;var e=ty;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function r(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function n(e){var t=(e=o(e)).values,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),i({type:c,values:u})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(r(t));var n=t.indexOf("("),i=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(n+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(n(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,r){return e=o(e),r=t(r),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=r,i(e)}function l(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]*=1-r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-r;return i(e)}function c(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*r;return i(e)}return jv}var ny,oy,iy,ay={},sy={exports:{}},ly={exports:{}},cy={exports:{}};function uy(){return ny||(ny=1,function(e){var t=Nv().default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(cy)),cy.exports}function dy(){return oy||(oy=1,function(e){var t=Nv().default,r=uy();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(ly)),ly.exports}function py(){return iy||(iy=1,function(e){var t=dy();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(sy)),sy.exports}var fy,hy={exports:{}};function my(){return fy||(fy=1,function(e){var t=Ic();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(hy)),hy.exports}var gy,by={};function vy(){if(gy)return by;gy=1;var e=Gl();Object.defineProperty(by,"__esModule",{value:!0}),by.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,c=void 0===l?5:l,u=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-c/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},u)},by.keys=void 0;var t=e(Ec()),r=e(my()),n=["xs","sm","md","lg","xl"];return by.keys=n,by}var yy,xy={};function Sy(){if(yy)return xy;yy=1;var e=Gl();Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(py()),r=e(Ec());return xy}var wy,Cy={},Ey={};function Ry(){if(wy)return Ey;wy=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var e={black:"#000",white:"#fff"};return Ey.default=e,Ey}var Ay,Iy={};function ky(){if(Ay)return Iy;Ay=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Iy.default=e,Iy}var Py,Dy={};function My(){if(Py)return Dy;Py=1,Object.defineProperty(Dy,"__esModule",{value:!0}),Dy.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Dy.default=e,Dy}var Ty,qy={};function Oy(){if(Ty)return qy;Ty=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return qy.default=e,qy}var Ly,Ny={};function jy(){if(Ly)return Ny;Ly=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return Ny.default=e,Ny}var _y,zy={};function Fy(){if(_y)return zy;_y=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return zy.default=e,zy}var $y,Hy={};function By(){if($y)return Hy;$y=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return Hy.default=e,Hy}var Vy,Wy,Uy={};function Gy(){if(Vy)return Uy;Vy=1,Object.defineProperty(Uy,"__esModule",{value:!0}),Uy.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return Uy.default=e,Uy}function Ky(){if(Wy)return Cy;Wy=1;var e=Gl();Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,E=e.info,R=void 0===E?{light:u.default[300],main:u.default[500],dark:u.default[700]}:E,A=e.success,I=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,P=void 0===k?"light":k,D=e.contrastThreshold,M=void 0===D?3:D,T=e.tonalOffset,q=void 0===T?.2:T,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=M?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,q),m(e,"dark",i,q),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:P,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(I),grey:i.default,contrastThreshold:M,getContrastText:L,augmentColor:N,tonalOffset:q},j[P]),O);return _},Cy.dark=Cy.light=void 0;var t=e(Ec()),r=e(my()),n=ty,o=e(Ry()),i=e(ky()),a=e(My()),s=e(Oy()),l=e(jy()),c=e(Fy()),u=e(By()),d=e(Gy()),p=ry(),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Cy.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Cy.dark=h,Cy}var Yy,Xy={};function Jy(){if(Yy)return Xy;Yy=1;var e=Gl();Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.default=function(e,l){var c="function"==typeof l?l(e):l,u=c.fontFamily,d=void 0===u?s:u,p=c.fontSize,f=void 0===p?14:p,h=c.fontWeightLight,m=void 0===h?300:h,g=c.fontWeightRegular,b=void 0===g?400:g,v=c.fontWeightMedium,y=void 0===v?500:v,x=c.fontWeightBold,S=void 0===x?700:x,w=c.htmlFontSize,C=void 0===w?16:w,E=c.allVariants,R=c.pxToRem,A=(0,r.default)(c,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),I=f/14,k=R||function(e){return"".concat(e/C*I,"rem")},P=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},D={h1:P(m,96,1.167,-1.5),h2:P(m,60,1.2,-.5),h3:P(b,48,1.167,0),h4:P(b,34,1.235,.25),h5:P(b,24,1.334,0),h6:P(y,20,1.6,.15),subtitle1:P(b,16,1.75,.15),subtitle2:P(y,14,1.57,.1),body1:P(b,16,1.5,.15),body2:P(b,14,1.43,.15),button:P(y,14,1.75,.4,a),caption:P(b,12,1.66,.4),overline:P(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},D),A,{clone:!1})};var t=e(Ec()),r=e(my()),n=ty;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Xy}var Zy,Qy={};function ex(){if(Zy)return Qy;Zy=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Qy.default=t,Qy}var tx,rx={};function nx(){if(tx)return rx;tx=1,Object.defineProperty(rx,"__esModule",{value:!0}),rx.default=void 0;var e={borderRadius:4};return rx.default=e,rx}var ox={};function ix(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ax(e,t){if(e){if("string"==typeof e)return ix(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ix(e,t):void 0}}function sx(e){return function(e){if(Array.isArray(e))return ix(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ax(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lx(e,t){return t?Fv(e,t,{clone:!1}):e}var cx={xs:0,sm:600,md:960,lg:1280,xl:1920},ux={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(cx[e],"px)")}};function dx(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||ux;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===$l(t)){var o=e.theme.breakpoints||ux;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function px(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function fx(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=px(e.theme,o)||{};return dx(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=px(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Hl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function hx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?lx(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function mx(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var gx=fx({prop:"border",themeKey:"borders",transform:mx}),bx=fx({prop:"borderTop",themeKey:"borders",transform:mx}),vx=fx({prop:"borderRight",themeKey:"borders",transform:mx}),yx=fx({prop:"borderBottom",themeKey:"borders",transform:mx}),xx=fx({prop:"borderLeft",themeKey:"borders",transform:mx}),Sx=fx({prop:"borderColor",themeKey:"palette"}),wx=fx({prop:"borderRadius",themeKey:"shape"}),Cx=hx(gx,bx,vx,yx,xx,Sx,wx);function Ex(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Rx(e){var t=function(t){var r=e(t);return t.css?$r({},lx(r,e($r({theme:t.theme},t.css))),Ex(t.css,[e.filterProps])):t.sx?$r({},lx(r,e($r({theme:t.theme},t.sx))),Ex(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(sx(e.filterProps)),t}var Ax=hx(fx({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),fx({prop:"display"}),fx({prop:"overflow"}),fx({prop:"textOverflow"}),fx({prop:"visibility"}),fx({prop:"whiteSpace"})),Ix=fx({prop:"flexBasis"}),kx=fx({prop:"flexDirection"}),Px=fx({prop:"flexWrap"}),Dx=fx({prop:"justifyContent"}),Mx=fx({prop:"alignItems"}),Tx=fx({prop:"alignContent"}),qx=fx({prop:"order"}),Ox=fx({prop:"flex"}),Lx=fx({prop:"flexGrow"}),Nx=fx({prop:"flexShrink"}),jx=fx({prop:"alignSelf"}),_x=fx({prop:"justifyItems"}),zx=fx({prop:"justifySelf"}),Fx=hx(Ix,kx,Px,Dx,Mx,Tx,qx,Ox,Lx,Nx,jx,_x,zx),$x=fx({prop:"gridGap"}),Hx=fx({prop:"gridColumnGap"}),Bx=fx({prop:"gridRowGap"}),Vx=fx({prop:"gridColumn"}),Wx=fx({prop:"gridRow"}),Ux=fx({prop:"gridAutoFlow"}),Gx=fx({prop:"gridAutoColumns"}),Kx=fx({prop:"gridAutoRows"}),Yx=fx({prop:"gridTemplateColumns"}),Xx=fx({prop:"gridTemplateRows"}),Jx=fx({prop:"gridTemplateAreas"}),Zx=fx({prop:"gridArea"}),Qx=hx($x,Hx,Bx,Vx,Wx,Ux,Gx,Kx,Yx,Xx,Jx,Zx),eS=fx({prop:"color",themeKey:"palette"}),tS=fx({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),rS=hx(eS,tS),nS=fx({prop:"position"}),oS=fx({prop:"zIndex",themeKey:"zIndex"}),iS=fx({prop:"top"}),aS=fx({prop:"right"}),sS=fx({prop:"bottom"}),lS=fx({prop:"left"}),cS=hx(nS,oS,iS,aS,sS,lS),uS=fx({prop:"boxShadow",themeKey:"shadows"});function dS(e){return e<=1?"".concat(100*e,"%"):e}var pS=fx({prop:"width",transform:dS}),fS=fx({prop:"maxWidth",transform:dS}),hS=fx({prop:"minWidth",transform:dS}),mS=fx({prop:"height",transform:dS}),gS=fx({prop:"maxHeight",transform:dS}),bS=fx({prop:"minHeight",transform:dS}),vS=fx({prop:"size",cssProperty:"width",transform:dS}),yS=fx({prop:"size",cssProperty:"height",transform:dS}),xS=fx({prop:"boxSizing"}),SS=hx(pS,fS,hS,mS,gS,bS,xS);function wS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||ax(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.")}()}var CS={m:"margin",p:"padding"},ES={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AS=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!RS[e])return[e];e=RS[e]}var t=wS(e.split(""),2),r=t[0],n=t[1],o=CS[r],i=ES[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),IS=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function kS(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function PS(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function DS(e){var t=kS(e.theme);return Object.keys(e).map(function(r){if(-1===IS.indexOf(r))return null;var n=PS(AS(r),t),o=e[r];return dx(e,o,n)}).reduce(lx,{})}DS.propTypes={},DS.filterProps=IS;var MS,TS=fx({prop:"fontFamily",themeKey:"typography"}),qS=fx({prop:"fontSize",themeKey:"typography"}),OS=fx({prop:"fontStyle",themeKey:"typography"}),LS=fx({prop:"fontWeight",themeKey:"typography"}),NS=fx({prop:"letterSpacing"}),jS=fx({prop:"lineHeight"}),_S=fx({prop:"textAlign"}),zS=hx(TS,qS,OS,LS,NS,jS,_S),FS=Object.freeze({__proto__:null,alignContent:Tx,alignItems:Mx,alignSelf:jx,bgcolor:tS,border:gx,borderBottom:yx,borderColor:Sx,borderLeft:xx,borderRadius:wx,borderRight:vx,borderTop:bx,borders:Cx,bottom:sS,boxSizing:xS,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||ux,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e($r({theme:t.theme},t[o]))),r},null);return lx(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(sx(e.filterProps)),t},color:eS,compose:hx,createUnarySpacing:kS,css:function(e){return Rx(e)},display:Ax,flex:Ox,flexBasis:Ix,flexDirection:kx,flexGrow:Lx,flexShrink:Nx,flexWrap:Px,flexbox:Fx,fontFamily:TS,fontSize:qS,fontStyle:OS,fontWeight:LS,grid:Qx,gridArea:Zx,gridAutoColumns:Gx,gridAutoFlow:Ux,gridAutoRows:Kx,gridColumn:Vx,gridColumnGap:Hx,gridGap:$x,gridRow:Wx,gridRowGap:Bx,gridTemplateAreas:Jx,gridTemplateColumns:Yx,gridTemplateRows:Xx,height:mS,justifyContent:Dx,justifyItems:_x,justifySelf:zx,left:lS,letterSpacing:NS,lineHeight:jS,maxHeight:gS,maxWidth:fS,minHeight:bS,minWidth:hS,order:qx,palette:rS,position:nS,positions:cS,right:aS,shadows:uS,sizeHeight:yS,sizeWidth:vS,sizing:SS,spacing:DS,style:fx,styleFunctionSx:Rx,textAlign:_S,top:iS,typography:zS,width:pS,zIndex:oS}),$S=Zt(FS);function HS(){if(MS)return ox;MS=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=$S;return ox}var BS,VS={};function WS(){if(BS)return VS;BS=1;var e=Gl();Object.defineProperty(VS,"__esModule",{value:!0}),VS.default=VS.duration=VS.easing=void 0;var t=e(my()),r={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)"};VS.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}VS.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,c=void 0===l?r.easeInOut:l,u=i.delay,d=void 0===u?0:u;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(c," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return VS.default=i,VS}var US,GS,KS={};function YS(){if(US)return KS;US=1,Object.defineProperty(KS,"__esModule",{value:!0}),KS.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return KS.default=e,KS}function XS(){if(GS)return ay;GS=1;var e=Gl();Object.defineProperty(ay,"__esModule",{value:!0}),ay.createMuiTheme=function(){return p.apply(void 0,arguments)},ay.default=void 0,e(py());var t=e(my()),r=ty,n=e(vy()),o=e(Sy()),i=e(Ky()),a=e(Jy()),s=e(ex()),l=e(nx()),c=e(HS()),u=e(WS()),d=e(YS());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,c.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:u.default,zIndex:d.default},S),A=arguments.length,I=new Array(A>1?A-1:0),k=1;k<A;k++)I[k-1]=arguments[k];return R=I.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return ay.default=f,ay}var JS,ZS={};function QS(){if(JS)return ZS;JS=1;var e=Gl();Object.defineProperty(ZS,"__esModule",{value:!0}),ZS.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=ty,r=e(XS());return ZS}var ew={},tw="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",rw=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function nw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==rw.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[tw]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function ow(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var iw="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},aw="object"===("undefined"==typeof window?"undefined":iw(window))&&"object"===("undefined"==typeof document?"undefined":iw(document))&&9===document.nodeType;function sw(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var lw={}.constructor;function cw(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(cw);if(e.constructor!==lw)return e;var t={};for(var r in e)t[r]=cw(e[r]);return t}function uw(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=cw(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var dw=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},pw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=dw(e[r]," ");else t=dw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function fw(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function hw(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function mw(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=fw(r),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=hw(p+":"+c+pw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=hw(h+":"+c+pw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=hw(g+":"+c+pw(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),hw(""+e+c+"{"+n,--i)+hw("}",i)):n}var gw=/([[\].#*$><+~=|^:(),"'`\s])/g,bw="undefined"!=typeof CSS&&CSS.escape,vw=function(e){return bw?bw(e):e.replace(gw,"\\$1")},yw=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),xw=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(iu(iu(o)),s),o.selectorText="."+vw(o.id)),o}Yc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=pw(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return mw(this.selectorText,this.style,r)},sw(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(yw),Sw={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new xw(e,t,r)}},ww={indent:1,children:!0},Cw=/@([\w-]+)/,Ew=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Cw);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Kw($r({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=ww);var t=fw(e).linebreak;if(null==e.indent&&(e.indent=ww.indent),null==e.children&&(e.children=ww.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Rw=/@container|@media|@supports\s+/,Aw={onCreateRule:function(e,t,r){return Rw.test(e)?new Ew(e,t,r):null}},Iw={indent:1,children:!0},kw=/@keyframes\s+([\w-]+)/,Pw=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(kw);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:vw(a(this,i)),this.rules=new Kw($r({},r,{parent:this})),t)this.rules.add(s,t[s],$r({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Iw);var t=fw(e).linebreak;if(null==e.indent&&(e.indent=Iw.indent),null==e.children&&(e.children=Iw.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Dw=/@keyframes\s+/,Mw=/\$([\w-]+)/g,Tw=function(e,t){return"string"==typeof e?e.replace(Mw,function(e,r){return r in t?t[r]:e}):e},qw=function(e,t,r){var n=e[t],o=Tw(n,r);o!==n&&(e[t]=o)},Ow={onCreateRule:function(e,t,r){return"string"==typeof e&&Dw.test(e)?new Pw(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&qw(e,"animation-name",r.keyframes),"animation"in e&&qw(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Tw(e,n.keyframes);default:return e}}},Lw=function(e){function t(){return e.apply(this,arguments)||this}return Yc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return mw(this.key,this.style,r)},t}(yw),Nw={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Lw(e,t,r):null}},jw=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=fw(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=mw(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return mw(this.at,this.style,e)},e}(),_w=/@font-face/,zw={onCreateRule:function(e,t,r){return _w.test(e)?new jw(e,t,r):null}},Fw=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return mw(this.key,this.style,e)},e}(),$w={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Fw(e,t,r):null}},Hw=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Bw={"@charset":!0,"@import":!0,"@namespace":!0},Vw={onCreateRule:function(e,t,r){return e in Bw?new Hw(e,t,r):null}},Ww=[Sw,Aw,Ow,Nw,zw,$w,Vw],Uw={process:!0},Gw={force:!0,process:!0},Kw=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,c=n.scoped,u=$r({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+vw(this.classes[d]));var p=uw(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=$r({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof xw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Pw&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof xw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Pw&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Uw);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Gw)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Gw)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=fw(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Yw=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=$r({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Kw(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),Xw=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Jw=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Hr(t,["attached"]),o=fw(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},sw(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Zw=new Jw,Qw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),eC="2f1acc6c3a606b082e5eef5e54414ffb";null==Qw[eC]&&(Qw[eC]=0);var tC=Qw[eC]++,rC=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+tC+o+t:i+r.key+"-"+tC+(o?"-"+o:"")+"-"+t}},nC=function(e){var t;return function(){return t||(t=e()),t}},oC=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},iC=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=pw(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},aC=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},sC=function(e,t){return e.selectorText=t,e.selectorText===t},lC=nC(function(){return document.querySelector("head")});function cC(e){var t=Zw.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=lC(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var uC=nC(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),dC=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},pC=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},fC=function(){function e(e){this.getPropertyValue=oC,this.setProperty=iC,this.removeProperty=aC,this.setSelector=sC,this.hasInsertedRules=!1,this.cssRules=[],e&&Zw.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=uC();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=cC(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else lC().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=pC(r,t);if(!1===(o=dC(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=pC(r,t),l=dC(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Yw&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),hC=0,mC=function(){function e(e){this.id=hC++,this.version="10.10.0",this.plugins=new Xw,this.options={id:{minify:!1},createGenerateId:rC,Renderer:aw?fC:null,plugins:[]},this.generateId=rC({minify:!1});for(var t=0;t<Ww.length;t++)this.plugins.use(Ww[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=$r({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===Zw.index?0:Zw.index+1);var n=new Yw(e,$r({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),Zw.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=$r({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=uw(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),gC=function(e){return new mC(e)},bC="object"==typeof CSS&&null!=CSS&&"number"in CSS;function vC(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=vC(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
90
|
+
`),bu.rippleVisible,Eu,550,({theme:e})=>e.transitions.easing.easeInOut,bu.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,bu.child,bu.childLeaving,Ru,550,({theme:e})=>e.transitions.easing.easeInOut,bu.childPulsate,Au,({theme:e})=>e.transitions.easing.easeInOut),Pu=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTouchRipple"}),{center:n=!1,classes:o={},className:i}=r,a=Hr(r,vu),[s,l]=x.useState([]),c=x.useRef(0),u=x.useRef(null);x.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const d=x.useRef(!1),p=ul(),f=x.useRef(null),h=x.useRef(null),m=x.useCallback(e=>{const{pulsate:t,rippleX:r,rippleY:n,rippleSize:i,cb:a}=e;l(e=>[...e,nr.jsx(ku,{classes:{ripple:Is(o.ripple,bu.ripple),rippleVisible:Is(o.rippleVisible,bu.rippleVisible),ripplePulsate:Is(o.ripplePulsate,bu.ripplePulsate),child:Is(o.child,bu.child),childLeaving:Is(o.childLeaving,bu.childLeaving),childPulsate:Is(o.childPulsate,bu.childPulsate)},timeout:550,pulsate:t,rippleX:r,rippleY:n,rippleSize:i},c.current)]),c.current+=1,u.current=a},[o]),g=x.useCallback((e={},t={},r=()=>{})=>{const{pulsate:o=!1,center:i=n||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 s=a?null:h.current,l=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(l.width/2),u=Math.round(l.height/2);else{const{clientX:t,clientY:r}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-l.left),u=Math.round(r-l.top)}if(i)g=Math.sqrt((2*l.width**2+l.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((s?s.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},p.start(80,()=>{f.current&&(f.current(),f.current=null)})):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:r})},[n,m,p]),b=x.useCallback(()=>{g({},{pulsate:!0})},[g]),v=x.useCallback((e,t)=>{if(p.clear(),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void p.start(0,()=>{v(e,t)});f.current=null,l(e=>e.length>0?e.slice(1):e),u.current=t},[p]);return x.useImperativeHandle(t,()=>({pulsate:b,start:g,stop:v}),[b,g,v]),nr.jsx(Iu,$r({className:Is(bu.root,o.root,i),ref:h},a,{children:nr.jsx(uu,{component:null,exit:!0,children:s})}))});function Du(e){return Ds("MuiButtonBase",e)}const Mu=Ms("MuiButtonBase",["root","disabled","focusVisible"]),Tu=["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"],qu=_c("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"},[`&.${Mu.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Ou=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiButtonBase"}),{action:n,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:l=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:S,onMouseDown:w,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:A,onTouchStart:I,tabIndex:k=0,TouchRippleProps:P,touchRippleRef:D,type:M}=r,T=Hr(r,Tu),q=x.useRef(null),O=x.useRef(null),L=al(O,D),{isFocusVisibleRef:N,onFocus:j,onBlur:_,ref:z}=yl(),[F,$]=x.useState(!1);l&&F&&$(!1),x.useImperativeHandle(n,()=>({focusVisible:()=>{$(!0),q.current.focus()}}),[]);const[H,B]=x.useState(!1);x.useEffect(()=>{B(!0)},[]);const V=H&&!c&&!l;function W(e,t,r=u){return il(n=>{t&&t(n);return!r&&O.current&&O.current[e](n),!0})}x.useEffect(()=>{F&&d&&!c&&H&&O.current.pulsate()},[c,d,F,H]);const U=W("start",w),G=W("stop",m),K=W("stop",g),Y=W("stop",E),X=W("stop",e=>{F&&e.preventDefault(),C&&C(e)}),J=W("start",I),Z=W("stop",R),Q=W("stop",A),ee=W("stop",e=>{_(e),!1===N.current&&$(!1),f&&f(e)},!1),te=il(e=>{q.current||(q.current=e.currentTarget),j(e),!0===N.current&&($(!0),v&&v(e)),b&&b(e)}),re=()=>{const e=q.current;return s&&"button"!==s&&!("A"===e.tagName&&e.href)},ne=x.useRef(!1),oe=il(e=>{d&&!ne.current&&F&&O.current&&" "===e.key&&(ne.current=!0,O.current.stop(e,()=>{O.current.start(e)})),e.target===e.currentTarget&&re()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&re()&&"Enter"===e.key&&!l&&(e.preventDefault(),h&&h(e))}),ie=il(e=>{d&&" "===e.key&&O.current&&F&&!e.defaultPrevented&&(ne.current=!1,O.current.stop(e,()=>{O.current.pulsate(e)})),S&&S(e),h&&e.target===e.currentTarget&&re()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ae=s;"button"===ae&&(T.href||T.to)&&(ae=p);const se={};"button"===ae?(se.type=void 0===M?"button":M,se.disabled=l):(T.href||T.to||(se.role="button"),l&&(se["aria-disabled"]=l));const le=al(t,z,q),ce=$r({},r,{centerRipple:o,component:s,disabled:l,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:k,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,i=Sl({root:["root",t&&"disabled",r&&"focusVisible"]},Du,o);return r&&n&&(i.root+=` ${n}`),i})(ce);return nr.jsxs(qu,$r({as:ae,className:Is(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:U,onMouseLeave:X,onMouseUp:Y,onDragLeave:K,onTouchEnd:Z,onTouchMove:Q,onTouchStart:J,ref:le,tabIndex:l?-1:k,type:M},se,T,{children:[i,V?nr.jsx(Pu,$r({ref:L,center:o},P)):null]}))});function Lu(e){return Ds("MuiIconButton",e)}const Nu=Ms("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),ju=["edge","children","className","color","disabled","disableFocusRipple","size"],_u=_c(Ou,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"default"!==r.color&&t[`color${va(r.color)}`],r.edge&&t[`edge${va(r.edge)}`],t[`size${va(r.size)}`]]}})(({theme:e,ownerState:t})=>$r({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12}),({theme:e,ownerState:t})=>{var r;const n=null==(r=(e.vars||e).palette)?void 0:r[t.color];return $r({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&$r({color:null==n?void 0:n.main},!t.disableRipple&&{"&:hover":$r({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha(n.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),"small"===t.size&&{padding:5,fontSize:e.typography.pxToRem(18)},"large"===t.size&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${Nu.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),zu=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiIconButton"}),{edge:n=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:l=!1,size:c="medium"}=r,u=Hr(r,ju),d=$r({},r,{edge:n,color:a,disabled:s,disableFocusRipple:l,size:c}),p=(e=>{const{classes:t,disabled:r,color:n,edge:o,size:i}=e;return Sl({root:["root",r&&"disabled","default"!==n&&`color${va(n)}`,o&&`edge${va(o)}`,`size${va(i)}`]},Lu,t)})(d);return nr.jsx(_u,$r({className:Is(p.root,i),centerRipple:!0,focusRipple:!l,disabled:s,ref:t},u,{ownerState:d,children:o}))});function Fu(e){return Ds("MuiTypography",e)}Ms("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const $u=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],Hu=_c("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],"inherit"!==r.align&&t[`align${va(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$r({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})),Bu={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Vu={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Wu=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTypography"}),n=(e=>Vu[e]||e)(r.color),o=ws($r({},r,{color:n})),{align:i="inherit",className:a,component:s,gutterBottom:l=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Bu}=o,f=Hr(o,$u),h=$r({},o,{align:i,color:n,className:a,component:s,gutterBottom:l,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=s||(u?"p":p[d]||Bu[d])||"span",g=(e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:i,classes:a}=e;return Sl({root:["root",i,"inherit"!==e.align&&`align${va(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]},Fu,a)})(h);return nr.jsx(Hu,$r({as:m,ref:t,ownerState:h,className:Is(g.root,a)},f))});const Uu=x.forwardRef(function(e,t){const{children:r,container:n,disablePortal:o=!1}=e,[i,a]=x.useState(null),s=al(x.isValidElement(r)?Il(r):null,t);if(Ws(()=>{o||a(function(e){return"function"==typeof e?e():e}(n)||document.body)},[n,o]),Ws(()=>{if(i&&!o)return el(t,i),()=>{el(t,null)}},[t,i,o]),o){if(x.isValidElement(r)){const e={ref:s};return x.cloneElement(r,e)}return nr.jsx(x.Fragment,{children:r})}return nr.jsx(x.Fragment,{children:i?H.createPortal(r,i):i})}),Gu=["onChange","maxRows","minRows","style","value"];function Ku(e){return parseInt(e,10)||0}const Yu={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Xu(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ju=x.forwardRef(function(e,t){const{onChange:r,maxRows:n,minRows:o=1,style:i,value:a}=e,s=Hr(e,Gu),{current:l}=x.useRef(null!=a),c=x.useRef(null),u=al(t,c),d=x.useRef(null),p=x.useRef(null),f=x.useCallback(()=>{const t=c.current,r=p.current;if(!t||!r)return;const i=Qs(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};r.style.width=i.width,r.value=t.value||e.placeholder||"x","\n"===r.value.slice(-1)&&(r.value+=" ");const a=i.boxSizing,s=Ku(i.paddingBottom)+Ku(i.paddingTop),l=Ku(i.borderBottomWidth)+Ku(i.borderTopWidth),u=r.scrollHeight;r.value="x";const d=r.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),n&&(f=Math.min(Number(n)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?s+l:0),overflowing:Math.abs(f-u)<=1}},[n,o,e.placeholder]),h=il(()=>{const e=c.current,t=f();if(!e||!t||Xu(t))return!1;const r=t.outerHeightStyle;return null!=d.current&&d.current!==r}),m=x.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Xu(t))return;const r=t.outerHeightStyle;d.current!==r&&(d.current=r,e.style.height=`${r}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=x.useRef(-1);Ws(()=>{const e=Js(m),t=null==c?void 0:c.current;if(!t)return;const r=Qs(t);let n;return r.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(()=>{h()&&(n.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{n.observe(t)}))}),n.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),r.removeEventListener("resize",e),n&&n.disconnect()}},[f,m,h]),Ws(()=>{m()});return nr.jsxs(x.Fragment,{children:[nr.jsx("textarea",$r({value:a,onChange:e=>{l||m(),r&&r(e)},ref:u,rows:o,style:i},s)),nr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:$r({},Yu,i,{paddingTop:0,paddingBottom:0})})]})});function Zu({props:e,states:t,muiFormControl:r}){return t.reduce((t,n)=>(t[n]=e[n],r&&void 0===e[n]&&(t[n]=r[n]),t),{})}const Qu=x.createContext(void 0);function ed(){return x.useContext(Qu)}function td(e){return nr.jsx(xs,$r({},e,{defaultTheme:yc,themeId:Fr}))}function rd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function nd(e,t=!1){return e&&(rd(e.value)&&""!==e.value||t&&rd(e.defaultValue)&&""!==e.defaultValue)}function od(e){return Ds("MuiInputBase",e)}const id=Ms("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ad=["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"],sd=(e,t)=>{const{ownerState:r}=e;return[t.root,r.formControl&&t.formControl,r.startAdornment&&t.adornedStart,r.endAdornment&&t.adornedEnd,r.error&&t.error,"small"===r.size&&t.sizeSmall,r.multiline&&t.multiline,r.color&&t[`color${va(r.color)}`],r.fullWidth&&t.fullWidth,r.hiddenLabel&&t.hiddenLabel]},ld=(e,t)=>{const{ownerState:r}=e;return[t.input,"small"===r.size&&t.inputSizeSmall,r.multiline&&t.inputMultiline,"search"===r.type&&t.inputTypeSearch,r.startAdornment&&t.inputAdornedStart,r.endAdornment&&t.inputAdornedEnd,r.hiddenLabel&&t.inputHiddenLabel]},cd=_c("div",{name:"MuiInputBase",slot:"Root",overridesResolver:sd})(({theme:e,ownerState:t})=>$r({},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",[`&.${id.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$r({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),ud=_c("input",{name:"MuiInputBase",slot:"Input",overridesResolver:ld})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode,n=$r({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:r?.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:r?.42:.5};return $r({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":n,"&::-moz-placeholder":n,"&:-ms-input-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${id.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},[`&.${id.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"})}),dd=nr.jsx(td,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),pd=x.forwardRef(function(e,t){var r;const n=Hc({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:l={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:S,multiline:w=!1,name:C,onBlur:E,onChange:R,onClick:A,onFocus:I,onKeyDown:k,onKeyUp:P,placeholder:D,readOnly:M,renderSuffix:T,rows:q,slotProps:O={},slots:L={},startAdornment:N,type:j="text",value:_}=n,z=Hr(n,ad),F=null!=b.value?b.value:_,{current:$}=x.useRef(null!=F),H=x.useRef(),B=x.useCallback(e=>{},[]),V=al(H,v,b.ref,B),[W,U]=x.useState(!1),G=ed(),K=Zu({props:n,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:W,x.useEffect(()=>{!G&&d&&W&&(U(!1),E&&E())},[G,d,W,E]);const Y=G&&G.onFilled,X=G&&G.onEmpty,J=x.useCallback(e=>{nd(e)?Y&&Y():X&&X()},[Y,X]);Ws(()=>{$&&J({value:F})},[F,J,$]);x.useEffect(()=>{J(H.current)},[]);let Z=g,Q=b;w&&"input"===Z&&(Q=$r(q?{type:void 0,minRows:q,maxRows:q}:{type:void 0,maxRows:y,minRows:S},Q),Z=Ju);x.useEffect(()=>{G&&G.setAdornedStart(Boolean(N))},[G,N]);const ee=$r({},n,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:N,type:j}),te=(e=>{const{classes:t,color:r,disabled:n,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:l,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Sl({root:["root",`color${va(r)}`,n&&"disabled",o&&"error",l&&"fullWidth",a&&"focused",s&&"formControl",p&&"medium"!==p&&`size${va(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",n&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},od,t)})(ee),re=L.root||l.Root||cd,ne=O.root||c.root||{},oe=L.input||l.Input||ud;return Q=$r({},Q,null!=(r=O.input)?r:c.input),nr.jsxs(x.Fragment,{children:[!p&&dd,nr.jsxs(re,$r({},ne,!wl(re)&&{ownerState:$r({},ee,ne.ownerState)},{ref:t,onClick:e=>{H.current&&e.currentTarget===e.target&&H.current.focus(),A&&A(e)}},z,{className:Is(te.root,ne.className,s,M&&"MuiInputBase-readOnly"),children:[N,nr.jsx(Qu.Provider,{value:null,children:nr.jsx(oe,$r({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{J("mui-auto-fill-cancel"===e.animationName?H.current:{value:"x"})},name:C,placeholder:D,readOnly:M,required:K.required,rows:q,value:F,onKeyDown:k,onKeyUp:P,type:j},Q,!wl(oe)&&{as:Z,ownerState:$r({},ee,Q.ownerState)},{ref:V,className:Is(te.input,Q.className,M&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),b.onBlur&&b.onBlur(e),G&&G.onBlur?G.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||H.current;if(null==t)throw new Error(_r(1));J({value:t.value})}b.onChange&&b.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(I&&I(e),b.onFocus&&b.onFocus(e),G&&G.onFocus?G.onFocus(e):U(!0))}}))}),f,T?T($r({},K,{startAdornment:N})):null]}))]})});function fd(e){return Ds("MuiInput",e)}const hd=$r({},id,Ms("MuiInput",["root","underline","input"]));function md(e){return Ds("MuiOutlinedInput",e)}const gd=$r({},id,Ms("MuiOutlinedInput",["root","notchedOutline","input"]));function bd(e){return Ds("MuiFilledInput",e)}const vd=$r({},id,Ms("MuiFilledInput",["root","underline","input"]));var yd=Gc(nr.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const xd=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Sd={entering:{opacity:1},entered:{opacity:1}},wd=x.forwardRef(function(e,t){const r=xc(),n={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:l,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=n,TransitionComponent:b=nu}=e,v=Hr(e,xd),y=x.useRef(null),S=al(y,Il(a),t),w=e=>t=>{if(e){const r=y.current;void 0===t?e(r):e(r,t)}},C=w(d),E=w((e,t)=>{du(e);const n=pu({style:m,timeout:g,easing:s},{mode:"enter"});e.style.webkitTransition=r.transitions.create("opacity",n),e.style.transition=r.transitions.create("opacity",n),c&&c(e,t)}),R=w(u),A=w(h),I=w(e=>{const t=pu({style:m,timeout:g,easing:s},{mode:"exit"});e.style.webkitTransition=r.transitions.create("opacity",t),e.style.transition=r.transitions.create("opacity",t),p&&p(e)}),k=w(f);return nr.jsx(b,$r({appear:i,in:l,nodeRef:y,onEnter:E,onEntered:R,onEntering:C,onExit:I,onExited:k,onExiting:A,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>x.cloneElement(a,$r({style:$r({opacity:0,visibility:"exited"!==e||l?void 0:"hidden"},Sd[e],m,a.props.style),ref:S},t))}))});function Cd(e){return Ds("MuiBackdrop",e)}Ms("MuiBackdrop",["root","invisible"]);const Ed=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Rd=_c("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>$r({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"})),Ad=x.forwardRef(function(e,t){var r,n,o;const i=Hc({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=wd,transitionDuration:g}=i,b=Hr(i,Ed),v=$r({},i,{component:l,invisible:d}),y=(e=>{const{classes:t,invisible:r}=e;return Sl({root:["root",r&&"invisible"]},Cd,t)})(v),x=null!=(r=f.root)?r:u.root;return nr.jsx(m,$r({in:p,timeout:g},b,{children:nr.jsx(Rd,$r({"aria-hidden":!0},x,{as:null!=(n=null!=(o=h.root)?o:c.Root)?n:l,className:Is(y.root,s,null==x?void 0:x.className),ownerState:$r({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}),Id=Ms("MuiBox",["root"]),kd=vc(),Pd=function(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,i=ra("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(ds);return x.forwardRef(function(e,a){const s=vs(r),l=ws(e),{className:c,component:u="div"}=l,d=Hr(l,ks);return nr.jsx(i,$r({as:u,ref:a,className:Is(c,o?o(n):n),theme:t&&s[t]||s},d))})}({themeId:Fr,defaultTheme:kd,defaultClassName:Id.root,generateClassName:Rs.generate});function Dd(e){return Ds("MuiButton",e)}const Md=Ms("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Td=x.createContext({}),qd=x.createContext(void 0),Od=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ld=e=>$r({},"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}}),Nd=_c(Ou,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${va(r.color)}`],t[`size${va(r.size)}`],t[`${r.variant}Size${va(r.size)}`],"inherit"===r.color&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;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 $r({},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":$r({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha(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})`:Zl.alpha(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})`:Zl.alpha(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":$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Md.focusVisible}`]:$r({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Md.disabled}`]:$r({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 ${Zl.alpha(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(r=(n=e.palette).getContrastText)?void 0:r.call(n,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"},[`&.${Md.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Md.disabled}`]:{boxShadow:"none"}}),jd=_c("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${va(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ld(e))),_d=_c("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${va(r.size)}`]]}})(({ownerState:e})=>$r({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ld(e))),zd=x.forwardRef(function(e,t){const r=x.useContext(Td),n=x.useContext(qd),o=Hc({props:Vs(r,e),name:"MuiButton"}),{children:i,color:a="primary",component:s="button",className:l,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:b,variant:v="text"}=o,y=Hr(o,Od),S=$r({},o,{color:a,component:s,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,size:m,type:b,variant:v}),w=(e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:i,classes:a}=e;return $r({},a,Sl({root:["root",i,`${i}${va(t)}`,`size${va(o)}`,`${i}Size${va(o)}`,`color${va(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${va(o)}`],endIcon:["icon","endIcon",`iconSize${va(o)}`]},Dd,a))})(S),C=g&&nr.jsx(jd,{className:w.startIcon,ownerState:S,children:g}),E=p&&nr.jsx(_d,{className:w.endIcon,ownerState:S,children:p}),R=n||"";return nr.jsxs(Nd,$r({ownerState:S,className:Is(r.className,w.root,l,R),component:s,disabled:c,focusRipple:!d,focusVisibleClassName:Is(w.focusVisible,f),ref:t,type:b},y,{classes:w,children:[C,i,E]}))});function Fd(e){return Ds("PrivateSwitchBase",e)}Ms("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const $d=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Hd=_c(Ou,{name:"MuiSwitchBase"})(({ownerState:e})=>$r({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12})),Bd=_c("input",{name:"MuiSwitchBase",shouldForwardProp:jc})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Vd=x.forwardRef(function(e,t){const{autoFocus:r,checked:n,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:l=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:b,readOnly:v,required:y=!1,tabIndex:x,type:S,value:w}=e,C=Hr(e,$d),[E,R]=ol({controlled:n,default:Boolean(a),name:"SwitchBase",state:"checked"}),A=ed();let I=s;A&&void 0===I&&(I=A.disabled);const k="checkbox"===S||"radio"===S,P=$r({},e,{checked:E,disabled:I,disableFocusRipple:l,edge:c}),D=(e=>{const{classes:t,checked:r,disabled:n,edge:o}=e;return Sl({root:["root",r&&"checked",n&&"disabled",o&&`edge${va(o)}`],input:["input"]},Fd,t)})(P);return nr.jsxs(Hd,$r({component:"span",className:Is(D.root,i),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:e=>{b&&b(e),A&&A.onFocus&&A.onFocus(e)},onBlur:e=>{m&&m(e),A&&A.onBlur&&A.onBlur(e)},ownerState:P,ref:t},C,{children:[nr.jsx(Bd,$r({autoFocus:r,checked:n,defaultChecked:a,className:D.input,disabled:I,id:k?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;R(t),g&&g(e,t)},readOnly:v,ref:f,required:y,ownerState:P,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),E?o:u]}))});var Wd=Gc(nr.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Ud=Gc(nr.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Gd=Gc(nr.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Kd(e){return Ds("MuiCheckbox",e)}const Yd=Ms("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Xd=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Jd=_c(Vd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.indeterminate&&t.indeterminate,t[`size${va(r.size)}`],"default"!==r.color&&t[`color${va(r.color)}`]]}})(({theme:e,ownerState:t})=>$r({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${"default"===t.color?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Zl.alpha("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Yd.checked}, &.${Yd.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Yd.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Zd=nr.jsx(Ud,{}),Qd=nr.jsx(Wd,{}),ep=nr.jsx(Gd,{}),tp=x.forwardRef(function(e,t){var r,n;const o=Hc({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Zd,color:a="primary",icon:s=Qd,indeterminate:l=!1,indeterminateIcon:c=ep,inputProps:u,size:d="medium",className:p}=o,f=Hr(o,Xd),h=l?c:s,m=l?c:i,g=$r({},o,{color:a,indeterminate:l,size:d}),b=(e=>{const{classes:t,indeterminate:r,color:n,size:o}=e;return $r({},t,Sl({root:["root",r&&"indeterminate",`color${va(n)}`,`size${va(o)}`]},Kd,t))})(g);return nr.jsx(Jd,$r({type:"checkbox",inputProps:$r({"data-indeterminate":l},u),icon:x.cloneElement(h,{fontSize:null!=(r=h.props.fontSize)?r:d}),checkedIcon:x.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:d}),ownerState:g,ref:t,className:Is(b.root,p)},f,{classes:b}))});function rp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function np(e){return parseInt(Qs(e).getComputedStyle(e).paddingRight,10)||0}function op(e,t,r,n,o){const i=[t,r,...n];[].forEach.call(e.children,e=>{const t=-1===i.indexOf(e),r=!function(e){const t=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName),r="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||r}(e);t&&r&&rp(e,o)})}function ip(e,t){let r=-1;return e.some((e,n)=>!!t(e)&&(r=n,!0)),r}function ap(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(function(e){const t=Zs(e);return t.body===e?Qs(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(n)){const e=xl(Zs(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${np(n)+e}px`;const t=Zs(n).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{r.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${np(t)+e}px`})}let e;if(n.parentNode instanceof DocumentFragment)e=Zs(n).body;else{const t=n.parentElement,r=Qs(n);e="HTML"===(null==t?void 0:t.nodeName)&&"scroll"===r.getComputedStyle(t).overflowY?t:n}r.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()=>{r.forEach(({value:e,el:t,property:r})=>{e?t.style.setProperty(r,e):t.style.removeProperty(r)})}}const sp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function lp(e){const t=[],r=[];return Array.from(e.querySelectorAll(sp)).forEach((e,n)=>{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 r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}(e))}(e)&&(0===o?t.push(e):r.push({documentOrder:n,tabIndex:o,node:e}))}),r.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function cp(){return!0}function up(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:i=lp,isEnabled:a=cp,open:s}=e,l=x.useRef(!1),c=x.useRef(null),u=x.useRef(null),d=x.useRef(null),p=x.useRef(null),f=x.useRef(!1),h=x.useRef(null),m=al(Il(t),h),g=x.useRef(null);x.useEffect(()=>{s&&h.current&&(f.current=!r)},[r,s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Zs(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&&(l.current=!0,d.current.focus()),d.current=null)}},[s]),x.useEffect(()=>{if(!s||!h.current)return;const e=Zs(h.current),t=t=>{g.current=t,!n&&a()&&"Tab"===t.key&&e.activeElement===h.current&&t.shiftKey&&(l.current=!0,u.current&&u.current.focus())},r=()=>{const t=h.current;if(null===t)return;if(!e.hasFocus()||!a()||l.current)return void(l.current=!1);if(t.contains(e.activeElement))return;if(n&&e.activeElement!==c.current&&e.activeElement!==u.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let r=[];if(e.activeElement!==c.current&&e.activeElement!==u.current||(r=i(h.current)),r.length>0){var o,s;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(s=g.current)?void 0:s.key)),t=r[0],n=r[r.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",r),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&r()},50);return()=>{clearInterval(o),e.removeEventListener("focusin",r),e.removeEventListener("keydown",t,!0)}},[r,n,o,a,s,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return nr.jsxs(x.Fragment,{children:[nr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),x.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const r=t.props.onFocus;r&&r(e)}}),nr.jsx("div",{tabIndex:s?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const dp=new class{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(e,t){let r=this.modals.indexOf(e);if(-1!==r)return r;r=this.modals.length,this.modals.push(e),e.modalRef&&rp(e.modalRef,!1);const n=function(e){const t=[];return[].forEach.call(e.children,e=>{"true"===e.getAttribute("aria-hidden")&&t.push(e)}),t}(t);op(t,e.mount,e.modalRef,n,!0);const o=ip(this.containers,e=>e.container===t);return-1!==o?(this.containers[o].modals.push(e),r):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:n}),r)}mount(e,t){const r=ip(this.containers,t=>-1!==t.modals.indexOf(e)),n=this.containers[r];n.restore||(n.restore=ap(n,t))}remove(e,t=!0){const r=this.modals.indexOf(e);if(-1===r)return r;const n=ip(this.containers,t=>-1!==t.modals.indexOf(e)),o=this.containers[n];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(r,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&rp(e.modalRef,t),op(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(n,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&rp(e.modalRef,!1)}return r}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function pp(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=dp,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:l,onClose:c,open:u,rootRef:d}=e,p=x.useRef({}),f=x.useRef(null),h=x.useRef(null),m=al(h,d),[g,b]=x.useState(!u),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const S=()=>(p.current.modalRef=h.current,p.current.mount=f.current,p.current),w=()=>{o.mount(S(),{disableScrollLock:n}),h.current&&(h.current.scrollTop=0)},C=il(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zs(f.current).body;o.add(S(),e),h.current&&w()}),E=x.useCallback(()=>o.isTopModal(S()),[o]),R=il(e=>{f.current=e,e&&(u&&E()?w():h.current&&rp(h.current,y))}),A=x.useCallback(()=>{o.remove(S(),y)},[y,o]);x.useEffect(()=>()=>{A()},[A]),x.useEffect(()=>{u?C():v&&i||A()},[u,A,v,i,C]);const I=e=>t=>{var n;null==(n=e.onKeyDown)||n.call(e,t),"Escape"===t.key&&229!==t.which&&E()&&(r||(t.stopPropagation(),c&&c(t,"escapeKeyDown")))},k=e=>t=>{var r;null==(r=e.onClick)||r.call(e,t),t.target===t.currentTarget&&c&&c(t,"backdropClick")};return{getRootProps:(t={})=>{const r=Cl(e);delete r.onTransitionEnter,delete r.onTransitionExited;const n=$r({},r,t);return $r({role:"presentation"},n,{onKeyDown:I(n),ref:m})},getBackdropProps:(e={})=>$r({"aria-hidden":!0},e,{onClick:k(e),open:u}),getTransitionProps:()=>({onEnter:Xs(()=>{b(!1),a&&a()},null==l?void 0:l.props.onEnter),onExited:Xs(()=>{b(!0),s&&s(),i&&A()},null==l?void 0:l.props.onExited)}),rootRef:m,portalRef:R,isTopModal:E,exited:g,hasTransition:v}}function fp(e){return Ds("MuiModal",e)}Ms("MuiModal",["root","hidden","backdrop"]);const hp=["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"],mp=_c("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$r({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),gp=_c(Ad,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),bp=x.forwardRef(function(e,t){var r,n,o,i,a,s;const l=Hc({name:"MuiModal",props:e}),{BackdropComponent:c=gp,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:h,component:m,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:R=!1,keepMounted:A=!1,onBackdropClick:I,open:k,slotProps:P,slots:D}=l,M=Hr(l,hp),T=$r({},l,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:R,keepMounted:A}),{getRootProps:q,getBackdropProps:O,getTransitionProps:L,portalRef:N,isTopModal:j,exited:_,hasTransition:z}=pp($r({},T,{rootRef:t})),F=$r({},T,{exited:_}),$=(e=>{const{open:t,exited:r,classes:n}=e;return Sl({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},fp,n)})(F),H={};if(void 0===f.props.tabIndex&&(H.tabIndex="-1"),z){const{onEnter:e,onExited:t}=L();H.onEnter=e,H.onExited=t}const B=null!=(r=null!=(n=null==D?void 0:D.root)?n:g.Root)?r:mp,V=null!=(o=null!=(i=null==D?void 0:D.backdrop)?i:g.Backdrop)?o:c,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(s=null==P?void 0:P.backdrop)?s:b.backdrop,G=Al({elementType:B,externalSlotProps:W,externalForwardedProps:M,getSlotProps:q,additionalProps:{ref:t,as:m},ownerState:F,className:Is(d,null==W?void 0:W.className,null==$?void 0:$.root,!F.open&&F.exited&&(null==$?void 0:$.hidden))}),K=Al({elementType:V,externalSlotProps:U,additionalProps:u,getSlotProps:e=>O($r({},e,{onClick:t=>{I&&I(t),null!=e&&e.onClick&&e.onClick(t)}})),className:Is(null==U?void 0:U.className,null==u?void 0:u.className,null==$?void 0:$.backdrop),ownerState:F});return A||k||z&&!_?nr.jsx(Uu,{ref:N,container:h,disablePortal:w,children:nr.jsxs(B,$r({},G,{children:[!R&&c?nr.jsx(V,$r({},K)):null,nr.jsx(up,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:C,isEnabled:j,open:k,children:x.cloneElement(f,H)})]}))}):null});function vp(e){return Ds("MuiDivider",e)}const yp=Ms("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xp=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Sp=_c("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,"vertical"===r.orientation&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&"vertical"===r.orientation&&t.withChildrenVertical,"right"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignRight,"left"===r.textAlign&&"vertical"!==r.orientation&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>$r({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)`:Zl.alpha(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})=>$r({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>$r({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>$r({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),wp=_c("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,"vertical"===r.orientation&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$r({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)`})),Cp=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiDivider"}),{absolute:n=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:s=!1,light:l=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=r,f=Hr(r,xp),h=$r({},r,{absolute:n,component:a,flexItem:s,light:l,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:i,orientation:a,textAlign:s,variant:l}=e;return Sl({root:["root",t&&"absolute",l,i&&"light","vertical"===a&&"vertical",o&&"flexItem",r&&"withChildren",r&&"vertical"===a&&"withChildrenVertical","right"===s&&"vertical"!==a&&"textAlignRight","left"===s&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},vp,n)})(h);return nr.jsx(Sp,$r({as:a,className:Is(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?nr.jsx(wp,{className:m.wrapper,ownerState:h,children:o}):null}))});Cp.muiSkipListHighlight=!0;const Ep=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Rp=_c(cd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...sd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var r;const n="light"===e.palette.mode,o=n?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=n?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=n?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=n?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return $r({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}},[`&.${vd.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${vd.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${null==(r=(e.vars||e).palette[t.color||"primary"])?void 0:r.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"},[`&.${vd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${vd.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(.${vd.disabled}, .${vd.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${vd.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$r({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}))}),Ap=_c(ud,{name:"MuiFilledInput",slot:"Input",overridesResolver:ld})(({theme:e,ownerState:t})=>$r({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})),Ip=x.forwardRef(function(e,t){var r,n,o,i;const a=Hc({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:l,fullWidth:c=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:h="text"}=a,m=Hr(a,Ep),g=$r({},a,{fullWidth:c,inputComponent:u,multiline:d,type:h}),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,Sl({root:["root",!r&&"underline"],input:["input"]},bd,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:l)?la(v,null!=p?p:l):v,x=null!=(r=null!=(n=f.root)?n:s.Root)?r:Rp,S=null!=(o=null!=(i=f.input)?i:s.Input)?o:Ap;return nr.jsx(pd,$r({slots:{root:x,input:S},componentsProps:y,fullWidth:c,inputComponent:u,multiline:d,ref:t,type:h},m,{classes:b}))});Ip.muiName="Input";const kp=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function Pp(e){return`scale(${e}, ${e**2})`}const Dp={entering:{opacity:1,transform:Pp(1)},entered:{opacity:1,transform:"none"}},Mp="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Tp=x.forwardRef(function(e,t){const{addEndListener:r,appear:n=!0,children:o,easing:i,in:a,onEnter:s,onEntered:l,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=nu}=e,g=Hr(e,kp),b=ul(),v=x.useRef(),y=xc(),S=x.useRef(null),w=al(S,Il(o),t),C=e=>t=>{if(e){const r=S.current;void 0===t?e(r):e(r,t)}},E=C(c),R=C((e,t)=>{du(e);const{duration:r,delay:n,easing:o}=pu({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=r,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:n}),y.transitions.create("transform",{duration:Mp?a:.666*a,delay:n,easing:o})].join(","),s&&s(e,t)}),A=C(l),I=C(p),k=C(e=>{const{duration:t,delay:r,easing:n}=pu({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:r}),y.transitions.create("transform",{duration:Mp?o:.666*o,delay:Mp?r:r||.333*o,easing:n})].join(","),e.style.opacity=0,e.style.transform=Pp(.75),u&&u(e)}),P=C(d);return nr.jsx(m,$r({appear:n,in:a,nodeRef:S,onEnter:R,onEntered:A,onEntering:E,onExit:k,onExited:P,onExiting:I,addEndListener:e=>{"auto"===h&&b.start(v.current||0,e),r&&r(S.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>x.cloneElement(o,$r({style:$r({opacity:0,transform:Pp(.75),visibility:"exited"!==e||a?void 0:"hidden"},Dp[e],f,o.props.style),ref:w},t))}))});Tp.muiSupportAuto=!0;const qp=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],Op=_c(cd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[...sd(e,t),!r.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$r({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"},[`&.${hd.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${hd.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${r}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${hd.disabled}, .${hd.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${hd.disabled}:before`]:{borderBottomStyle:"dotted"}})}),Lp=_c(ud,{name:"MuiInput",slot:"Input",overridesResolver:ld})({}),Np=x.forwardRef(function(e,t){var r,n,o,i;const a=Hc({props:e,name:"MuiInput"}),{disableUnderline:s,components:l={},componentsProps:c,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:h={},type:m="text"}=a,g=Hr(a,qp),b=(e=>{const{classes:t,disableUnderline:r}=e;return $r({},t,Sl({root:["root",!r&&"underline"],input:["input"]},fd,t))})(a),v={root:{ownerState:{disableUnderline:s}}},y=(null!=f?f:c)?la(null!=f?f:c,v):v,x=null!=(r=null!=(n=h.root)?n:l.Root)?r:Op,S=null!=(o=null!=(i=h.input)?i:l.Input)?o:Lp;return nr.jsx(pd,$r({slots:{root:x,input:S},slotProps:y,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:m},g,{classes:b}))});function jp(e){return Ds("MuiInputAdornment",e)}Np.muiName="Input";const _p=Ms("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var zp;const Fp=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$p=_c("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`position${va(r.position)}`],!0===r.disablePointerEvents&&t.disablePointerEvents,t[r.variant]]}})(({theme:e,ownerState:t})=>$r({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${_p.positionStart}&:not(.${_p.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"})),Hp=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiInputAdornment"}),{children:n,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:s=!1,position:l,variant:c}=r,u=Hr(r,Fp),d=ed()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=$r({},r,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:l,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:r,hiddenLabel:n,position:o,size:i,variant:a}=e;return Sl({root:["root",r&&"disablePointerEvents",o&&`position${va(o)}`,a,n&&"hiddenLabel",i&&`size${va(i)}`]},jp,t)})(f);return nr.jsx(Qu.Provider,{value:null,children:nr.jsx($p,$r({as:i,ownerState:f,className:Is(h.root,o),ref:t},u,{children:"string"!=typeof n||s?nr.jsxs(x.Fragment,{children:["start"===l?zp||(zp=nr.jsx("span",{className:"notranslate",children:""})):null,n]}):nr.jsx(Wu,{color:"text.secondary",children:n})}))})});function Bp(e){return Ds("MuiLink",e)}const Vp=Ms("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),Wp={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Up=({theme:e,ownerState:t})=>{const r=(e=>Wp[e]||e)(t.color),n=xa(e,`palette.${r}`,!1)||t.color,o=xa(e,`palette.${r}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:Zl.alpha(n,.4)},Gp=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Kp=_c(Wu,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[`underline${va(r.underline)}`],"button"===r.component&&t.button]}})(({theme:e,ownerState:t})=>$r({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&$r({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:Up({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"},[`&.${Vp.focusVisible}`]:{outline:"auto"}})),Yp=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiLink"}),{className:n,color:o="primary",component:i="a",onBlur:a,onFocus:s,TypographyClasses:l,underline:c="always",variant:u="inherit",sx:d}=r,p=Hr(r,Gp),{isFocusVisibleRef:f,onBlur:h,onFocus:m,ref:g}=yl(),[b,v]=x.useState(!1),y=al(t,g),S=$r({},r,{color:o,component:i,focusVisible:b,underline:c,variant:u}),w=(e=>{const{classes:t,component:r,focusVisible:n,underline:o}=e;return Sl({root:["root",`underline${va(o)}`,"button"===r&&"button",n&&"focusVisible"]},Bp,t)})(S);return nr.jsx(Kp,$r({color:o,className:Is(w.root,n),classes:l,component:i,onBlur:e=>{h(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{m(e),!0===f.current&&v(!0),s&&s(e)},ref:y,ownerState:S,variant:u,sx:[...Object.keys(Wp).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}),Xp=x.createContext({});function Jp(e){return Ds("MuiList",e)}Ms("MuiList",["root","padding","dense","subheader"]);const Zp=["children","className","component","dense","disablePadding","subheader"],Qp=_c("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>$r({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),ef=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiList"}),{children:n,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:l}=r,c=Hr(r,Zp),u=x.useMemo(()=>({dense:a}),[a]),d=$r({},r,{component:i,dense:a,disablePadding:s}),p=(e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return Sl({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},Jp,t)})(d);return nr.jsx(Xp.Provider,{value:u,children:nr.jsxs(Qp,$r({as:i,className:Is(p.root,o),ref:t,ownerState:d},c,{children:[l,n]}))})});function tf(e){return Ds("MuiListItem",e)}const rf=Ms("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),nf=Ms("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function of(e){return Ds("MuiListItemSecondaryAction",e)}Ms("MuiListItemSecondaryAction",["root","disableGutters"]);const af=["className"],sf=_c("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$r({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),lf=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiListItemSecondaryAction"}),{className:n}=r,o=Hr(r,af),i=$r({},r,{disableGutters:x.useContext(Xp).disableGutters}),a=(e=>{const{disableGutters:t,classes:r}=e;return Sl({root:["root",t&&"disableGutters"]},of,r)})(i);return nr.jsx(sf,$r({className:Is(a.root,n),ownerState:i,ref:t},o))});lf.muiName="ListItemSecondaryAction";const cf=["className"],uf=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],df=_c("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,"flex-start"===r.alignItems&&t.alignItemsFlexStart,r.divider&&t.divider,!r.disableGutters&&t.gutters,!r.disablePadding&&t.padding,r.button&&t.button,r.hasSecondaryAction&&t.secondaryAction]}})(({theme:e,ownerState:t})=>$r({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$r({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${nf.root}`]:{paddingRight:48}},{[`&.${rf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"flex-start"===t.alignItems&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),pf=_c("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),ff=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiListItem"}),{alignItems:n="center",autoFocus:o=!1,button:i=!1,children:a,className:s,component:l,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:b=!1,focusVisibleClassName:v,secondaryAction:y,selected:S=!1,slotProps:w={},slots:C={}}=r,E=Hr(r.ContainerProps,cf),R=Hr(r,uf),A=x.useContext(Xp),I=x.useMemo(()=>({dense:f||A.dense||!1,alignItems:n,disableGutters:m}),[n,A.dense,f,m]),k=x.useRef(null);Ws(()=>{o&&k.current&&k.current.focus()},[o]);const P=x.Children.toArray(a),D=P.length&&(M=P[P.length-1],T=["ListItemSecondaryAction"],x.isValidElement(M)&&-1!==T.indexOf(null!=(q=M.type.muiName)?q:null==(O=M.type)||null==(O=O._payload)||null==(O=O.value)?void 0:O.muiName));var M,T,q,O;const L=$r({},r,{alignItems:n,autoFocus:o,button:i,dense:I.dense,disabled:h,disableGutters:m,disablePadding:g,divider:b,hasSecondaryAction:D,selected:S}),N=(e=>{const{alignItems:t,button:r,classes:n,dense:o,disabled:i,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:c,selected:u}=e;return Sl({root:["root",o&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",i&&"disabled",r&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},tf,n)})(L),j=al(k,t),_=C.root||c.Root||df,z=w.root||u.root||{},F=$r({className:Is(N.root,z.className,s),disabled:h},R);let $=l||"li";return i&&(F.component=l||"div",F.focusVisibleClassName=Is(rf.focusVisible,v),$=Ou),D?($=F.component||l?$:"div","li"===d&&("li"===$?$="div":"li"===F.component&&(F.component="div")),nr.jsx(Xp.Provider,{value:I,children:nr.jsxs(pf,$r({as:d,className:Is(N.container,p),ref:j,ownerState:L},E,{children:[nr.jsx(_,$r({},z,!wl(_)&&{as:$,ownerState:$r({},L,z.ownerState)},F,{children:P})),P.pop()]}))})):nr.jsx(Xp.Provider,{value:I,children:nr.jsxs(_,$r({},z,{as:$,ref:j},!wl(_)&&{ownerState:$r({},L,z.ownerState)},F,{children:[P,y&&nr.jsx(lf,{children:y})]}))})});function hf(e){return Ds("MuiListItemIcon",e)}const mf=Ms("MuiListItemIcon",["root","alignItemsFlexStart"]),gf=["className"],bf=_c("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,"flex-start"===r.alignItems&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$r({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})),vf=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiListItemIcon"}),{className:n}=r,o=Hr(r,gf),i=$r({},r,{alignItems:x.useContext(Xp).alignItems}),a=(e=>{const{alignItems:t,classes:r}=e;return Sl({root:["root","flex-start"===t&&"alignItemsFlexStart"]},hf,r)})(i);return nr.jsx(bf,$r({className:Is(a.root,n),ownerState:i,ref:t},o))}),yf=Ms("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xf=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function Sf(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function wf(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Cf(e,t){if(void 0===t)return!0;let r=e.innerText;return void 0===r&&(r=e.textContent),r=r.trim().toLowerCase(),0!==r.length&&(t.repeating?r[0]===t.keys[0]:0===r.indexOf(t.keys.join("")))}function Ef(e,t,r,n,o,i){let a=!1,s=o(e,t,!!t&&r);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const t=!n&&(s.disabled||"true"===s.getAttribute("aria-disabled"));if(s.hasAttribute("tabindex")&&Cf(s,i)&&!t)return s.focus(),!0;s=o(e,s,r)}return!1}const Rf=x.forwardRef(function(e,t){const{actions:r,autoFocus:n=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:l=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Hr(e,xf),p=x.useRef(null),f=x.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ws(()=>{n&&p.current.focus()},[n]),x.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const r=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&r){const r=`${xl(Zs(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=r,p.current.style.width=`calc(100% + ${r})`}return p.current}}),[]);const h=al(p,t);let m=-1;x.Children.forEach(i,(e,t)=>{x.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=x.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),x.cloneElement(e,t)}return e});return nr.jsx(ef,$r({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,r=e.key,n=Zs(t).activeElement;if("ArrowDown"===r)e.preventDefault(),Ef(t,n,l,s,Sf);else if("ArrowUp"===r)e.preventDefault(),Ef(t,n,l,s,wf);else if("Home"===r)e.preventDefault(),Ef(t,null,l,s,Sf);else if("End"===r)e.preventDefault(),Ef(t,null,l,s,wf);else if(1===r.length){const o=f.current,i=r.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 l=n&&!o.repeating&&Cf(n,o);o.previousKeyMatched&&(l||Ef(t,n,!1,s,Sf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:n?0:-1},d,{children:g}))});function Af(e){return Ds("MuiPopover",e)}Ms("MuiPopover",["root","paper"]);const If=["onEntering"],kf=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Pf=["slotProps"];function Df(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.height/2:"bottom"===t&&(r=e.height),r}function Mf(e,t){let r=0;return"number"==typeof t?r=t:"center"===t?r=e.width/2:"right"===t&&(r=e.width),r}function Tf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function qf(e){return"function"==typeof e?e():e}const Of=_c(bp,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lf=_c(gu,{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}),Nf=x.forwardRef(function(e,t){var r,n,o;const i=Hc({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:S={vertical:"top",horizontal:"left"},TransitionComponent:w=Tp,transitionDuration:C="auto",TransitionProps:{onEntering:E}={},disableScrollLock:R=!1}=i,A=Hr(i.TransitionProps,If),I=Hr(i,kf),k=null!=(r=null==y?void 0:y.paper)?r:b,P=x.useRef(),D=al(P,k.ref),M=$r({},i,{anchorOrigin:l,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:k,transformOrigin:S,TransitionComponent:w,transitionDuration:C,TransitionProps:A}),T=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"]},Af,t)})(M),q=x.useCallback(()=>{if("anchorPosition"===u)return c;const e=qf(s),t=(e&&1===e.nodeType?e:Zs(P.current).body).getBoundingClientRect();return{top:t.top+Df(t,l.vertical),left:t.left+Mf(t,l.horizontal)}},[s,l.horizontal,l.vertical,c,u]),O=x.useCallback(e=>({vertical:Df(e,S.vertical),horizontal:Mf(e,S.horizontal)}),[S.horizontal,S.vertical]),L=x.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},r=O(t);if("none"===u)return{top:null,left:null,transformOrigin:Tf(r)};const n=q();let o=n.top-r.vertical,i=n.left-r.horizontal;const a=o+t.height,l=i+t.width,c=Qs(qf(s)),d=c.innerHeight-m,p=c.innerWidth-m;if(null!==m&&o<m){const e=o-m;o-=e,r.vertical+=e}else if(null!==m&&a>d){const e=a-d;o-=e,r.vertical+=e}if(null!==m&&i<m){const e=i-m;i-=e,r.horizontal+=e}else if(l>p){const e=l-p;i-=e,r.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:Tf(r)}},[s,u,q,O,m]),[N,j]=x.useState(g),_=x.useCallback(()=>{const e=P.current;if(!e)return;const t=L(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,j(!0)},[L]);x.useEffect(()=>(R&&window.addEventListener("scroll",_),()=>window.removeEventListener("scroll",_)),[s,R,_]);x.useEffect(()=>{g&&_()}),x.useImperativeHandle(a,()=>g?{updatePosition:()=>{_()}}:null,[g,_]),x.useEffect(()=>{if(!g)return;const e=Js(()=>{_()}),t=Qs(s);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[s,g,_]);let z=C;"auto"!==C||w.muiSupportAuto||(z=void 0);const F=f||(s?Zs(qf(s)).body:void 0),$=null!=(n=null==v?void 0:v.root)?n:Of,H=null!=(o=null==v?void 0:v.paper)?o:Lf,B=Al({elementType:H,externalSlotProps:$r({},k,{style:N?k.style:$r({},k.style,{opacity:0})}),additionalProps:{elevation:h,ref:D},ownerState:M,className:Is(T.paper,null==k?void 0:k.className)}),V=Al({elementType:$,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:I,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:M,className:Is(T.root,p)}),{slotProps:W}=V,U=Hr(V,Pf);return nr.jsx($,$r({},U,!wl($)&&{slotProps:W,disableScrollLock:R},{children:nr.jsx(w,$r({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),_()},onExited:()=>{j(!1)},timeout:z},A,{children:nr.jsx(H,$r({},B,{children:d}))}))}))});function jf(e){return Ds("MuiMenu",e)}Ms("MuiMenu",["root","paper","list"]);const _f=["onEntering"],zf=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Ff={vertical:"top",horizontal:"right"},$f={vertical:"top",horizontal:"left"},Hf=_c(Nf,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Bf=_c(Lf,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Vf=_c(Rf,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Wf=x.forwardRef(function(e,t){var r,n;const o=Hc({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:l=!1,MenuListProps:c={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:h="auto",TransitionProps:{onEntering:m}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=Hr(o.TransitionProps,_f),S=Hr(o,zf),w=(()=>{const e=x.useContext(ql);return null!=e&&e})(),C=$r({},o,{autoFocus:i,disableAutoFocusItem:l,MenuListProps:c,onEntering:m,PaperProps:p,transitionDuration:h,TransitionProps:y,variant:g}),E=(e=>{const{classes:t}=e;return Sl({root:["root"],paper:["paper"],list:["list"]},jf,t)})(C),R=i&&!l&&d,A=x.useRef(null);let I=-1;x.Children.map(a,(e,t)=>{x.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===I)&&(I=t))});const k=null!=(r=b.paper)?r:Bf,P=null!=(n=v.paper)?n:p,D=Al({elementType:b.root,externalSlotProps:v.root,ownerState:C,className:[E.root,s]}),M=Al({elementType:k,externalSlotProps:P,ownerState:C,className:E.paper});return nr.jsx(Hf,$r({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:w?"right":"left"},transformOrigin:w?Ff:$f,slots:{paper:k,root:b.root},slotProps:{root:D,paper:M},open:d,ref:t,transitionDuration:h,TransitionProps:$r({onEntering:(e,t)=>{A.current&&A.current.adjustStyleForScrollbar(e,{direction:w?"rtl":"ltr"}),m&&m(e,t)}},y),ownerState:C},S,{classes:f,children:nr.jsx(Vf,$r({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),u&&u(e,"tabKeyDown"))},actions:A,autoFocus:i&&(-1===I||l),autoFocusItem:R,variant:g},c,{className:Is(E.list,c.className),children:a}))}))});function Uf(e){return Ds("MuiMenuItem",e)}const Gf=Ms("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Kf=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Yf=_c(Ou,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]}})(({theme:e,ownerState:t})=>$r({},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"}},[`&.${Gf.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Gf.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Gf.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Gf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Gf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${yp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${yp.inset}`]:{marginLeft:52},[`& .${yf.root}`]:{marginTop:0,marginBottom:0},[`& .${yf.inset}`]:{paddingLeft:36},[`& .${mf.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$r({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${mf.root} svg`]:{fontSize:"1.25rem"}}))),Xf=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiMenuItem"}),{autoFocus:n=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:l,role:c="menuitem",tabIndex:u,className:d}=r,p=Hr(r,Kf),f=x.useContext(Xp),h=x.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),m=x.useRef(null);Ws(()=>{n&&m.current&&m.current.focus()},[n]);const g=$r({},r,{dense:h.dense,divider:a,disableGutters:s}),b=(e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:i,classes:a}=e;return $r({},a,Sl({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",i&&"selected"]},Uf,a))})(r),v=al(m,t);let y;return r.disabled||(y=void 0!==u?u:-1),nr.jsx(Xp.Provider,{value:h,children:nr.jsx(Yf,$r({ref:v,role:c,tabIndex:y,component:o,focusVisibleClassName:Is(b.focusVisible,l),className:Is(b.root,d)},p,{ownerState:g,classes:b}))})});function Jf(e){return Ds("MuiNativeSelect",e)}const Zf=Ms("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Qf=["className","disabled","error","IconComponent","inputRef","variant"],eh=({ownerState:e,theme:t})=>$r({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$r({},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"},[`&.${Zf.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}}),th=_c("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:jc,overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.select,t[r.variant],r.error&&t.error,{[`&.${Zf.multiple}`]:t.multiple}]}})(eh),rh=({ownerState:e,theme:t})=>$r({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${Zf.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),nh=_c("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${va(r.variant)}`],r.open&&t.iconOpen]}})(rh),oh=x.forwardRef(function(e,t){const{className:r,disabled:n,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,l=Hr(e,Qf),c=$r({},e,{disabled:n,variant:s,error:o}),u=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Sl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${va(r)}`,i&&"iconOpen",n&&"disabled"]},Jf,t)})(c);return nr.jsxs(x.Fragment,{children:[nr.jsx(th,$r({ownerState:c,className:Is(u.select,r),disabled:n,ref:a||t},l)),e.multiple?null:nr.jsx(nh,{as:i,ownerState:c,className:u.icon})]})});var ih;const ah=["children","classes","className","label","notched"],sh=_c("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:jc})({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%"}),lh=_c("legend",{name:"MuiNotchedOutlined",shouldForwardProp:jc})(({ownerState:e,theme:t})=>$r({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&&$r({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 ch=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],uh=_c(cd,{shouldForwardProp:e=>jc(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:sd})(({theme:e,ownerState:t})=>{const r="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return $r({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${gd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:r}},[`&.${gd.focused} .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${gd.error} .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${gd.disabled} .${gd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$r({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))}),dh=_c(function(e){const{className:t,label:r,notched:n}=e,o=Hr(e,ah),i=null!=r&&""!==r,a=$r({},e,{notched:n,withLabel:i});return nr.jsx(sh,$r({"aria-hidden":!0,className:t,ownerState:a},o,{children:nr.jsx(lh,{ownerState:a,children:i?nr.jsx("span",{children:r}):ih||(ih=nr.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}}),ph=_c(ud,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:ld})(({theme:e,ownerState:t})=>$r({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})),fh=x.forwardRef(function(e,t){var r,n,o,i,a;const s=Hc({props:e,name:"MuiOutlinedInput"}),{components:l={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=s,g=Hr(s,ch),b=(e=>{const{classes:t}=e;return $r({},t,Sl({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},md,t))})(s),v=ed(),y=Zu({props:s,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),S=$r({},s,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),w=null!=(r=null!=(n=h.root)?n:l.Root)?r:uh,C=null!=(o=null!=(i=h.input)?i:l.Input)?o:ph;return nr.jsx(pd,$r({slots:{root:w,input:C},renderSuffix:e=>nr.jsx(dh,{ownerState:S,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=nr.jsxs(x.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:p,ref:t,type:m},g,{classes:$r({},b,{notchedOutline:null})}))});function hh(e){return Ds("MuiSelect",e)}fh.muiName="Input";const mh=Ms("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var gh;const bh=["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"],vh=_c("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[{[`&.${mh.select}`]:t.select},{[`&.${mh.select}`]:t[r.variant]},{[`&.${mh.error}`]:t.error},{[`&.${mh.multiple}`]:t.multiple}]}})(eh,{[`&.${mh.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),yh=_c("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.icon,r.variant&&t[`icon${va(r.variant)}`],r.open&&t.iconOpen]}})(rh),xh=_c("input",{shouldForwardProp:e=>Nc(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 Sh(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function wh(e){return null==e||"string"==typeof e&&!e.trim()}const Ch=x.forwardRef(function(e,t){var r;const{"aria-describedby":n,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:l,defaultOpen:c,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:h,inputRef:m,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:S,onChange:w,onClose:C,onFocus:E,onOpen:R,open:A,readOnly:I,renderValue:k,SelectDisplayProps:P={},tabIndex:D,value:M,variant:T="standard"}=e,q=Hr(e,bh),[O,L]=ol({controlled:M,default:u,name:"Select"}),[N,j]=ol({controlled:A,default:c,name:"Select"}),_=x.useRef(null),z=x.useRef(null),[F,$]=x.useState(null),{current:H}=x.useRef(null!=A),[B,V]=x.useState(),W=al(t,m),U=x.useCallback(e=>{z.current=e,e&&$(e)},[]),G=null==F?void 0:F.parentNode;x.useImperativeHandle(W,()=>({focus:()=>{z.current.focus()},node:_.current,value:O}),[O]),x.useEffect(()=>{c&&N&&F&&!H&&(V(a?null:G.clientWidth),z.current.focus())},[F,a]),x.useEffect(()=>{i&&z.current.focus()},[i]),x.useEffect(()=>{if(!g)return;const e=Zs(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}},[g]);const K=(e,t)=>{e?R&&R(t):C&&C(t),H||(V(a?null:G.clientWidth),j(e))},Y=x.Children.toArray(s),X=e=>t=>{let r;if(t.currentTarget.hasAttribute("tabindex")){if(v){r=Array.isArray(O)?O.slice():[];const t=O.indexOf(e.props.value);-1===t?r.push(e.props.value):r.splice(t,1)}else r=e.props.value;if(e.props.onClick&&e.props.onClick(t),O!==r&&(L(r),w)){const n=t.nativeEvent||t,o=new n.constructor(n.type,n);Object.defineProperty(o,"target",{writable:!0,value:{value:r,name:y}}),w(o,e)}v||K(!1,t)}},J=null!==F&&N;let Z,Q;delete q["aria-invalid"];const ee=[];let te=!1;(nd({value:O})||p)&&(k?Z=k(O):te=!0);const re=Y.map(e=>{if(!x.isValidElement(e))return null;let t;if(v){if(!Array.isArray(O))throw new Error(_r(2));t=O.some(t=>Sh(t,e.props.value)),t&&te&&ee.push(e.props.children)}else t=Sh(O,e.props.value),t&&te&&(Q=e.props.children);return x.cloneElement(e,{"aria-selected":t?"true":"false",onClick:X(e),onKeyUp:t=>{" "===t.key&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},role:"option",selected:t,value:void 0,"data-value":e.props.value})});te&&(Z=v?0===ee.length?null:ee.reduce((e,t,r)=>(e.push(t),r<ee.length-1&&e.push(", "),e),[]):Q);let ne,oe=B;!a&&H&&F&&(oe=G.clientWidth),ne=void 0!==D?D:d?null:0;const ie=P.id||(y?`mui-component-select-${y}`:void 0),ae=$r({},e,{variant:T,value:O,open:J,error:f}),se=(e=>{const{classes:t,variant:r,disabled:n,multiple:o,open:i,error:a}=e;return Sl({select:["select",r,n&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${va(r)}`,i&&"iconOpen",n&&"disabled"],nativeInput:["nativeInput"]},hh,t)})(ae),le=$r({},b.PaperProps,null==(r=b.slotProps)?void 0:r.paper),ce=nl();return nr.jsxs(x.Fragment,{children:[nr.jsx(vh,$r({ref:U,tabIndex:ne,role:"combobox","aria-controls":ce,"aria-disabled":d?"true":void 0,"aria-expanded":J?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,ie].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:e=>{if(!I){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),K(!0,e))}},onMouseDown:d||I?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),K(!0,e))},onBlur:e=>{!J&&S&&(Object.defineProperty(e,"target",{writable:!0,value:{value:O,name:y}}),S(e))},onFocus:E},P,{ownerState:ae,className:Is(P.className,se.select,l),id:ie,children:wh(Z)?gh||(gh=nr.jsx("span",{className:"notranslate",children:""})):Z})),nr.jsx(xh,$r({"aria-invalid":f,value:Array.isArray(O)?O.join(","):O,name:y,ref:_,"aria-hidden":!0,onChange:e=>{const t=Y.find(t=>t.props.value===e.target.value);void 0!==t&&(L(t.props.value),w&&w(e,t))},tabIndex:-1,disabled:d,className:se.nativeInput,autoFocus:i,ownerState:ae},q)),nr.jsx(yh,{as:h,className:se.icon,ownerState:ae}),nr.jsx(Wf,$r({id:`menu-${y||""}`,anchorEl:G,open:J,onClose:e=>{K(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:$r({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:ce},b.MenuListProps),slotProps:$r({},b.slotProps,{paper:$r({},le,{style:$r({minWidth:oe},null!=le?le.style:null)})}),children:re}))]})}),Eh=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],Rh=["root"],Ah={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>jc(e)&&"variant"!==e,slot:"Root"},Ih=_c(Np,Ah)(""),kh=_c(fh,Ah)(""),Ph=_c(Ip,Ah)(""),Dh=x.forwardRef(function(e,t){const r=Hc({name:"MuiSelect",props:e}),{autoWidth:n=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:l=!1,IconComponent:c=yd,id:u,input:d,inputProps:p,label:f,labelId:h,MenuProps:m,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:C,variant:E="outlined"}=r,R=Hr(r,Eh),A=b?oh:Ch,I=Zu({props:r,muiFormControl:ed(),states:["variant","error"]}),k=I.variant||E,P=$r({},r,{variant:k,classes:i}),D=(e=>{const{classes:t}=e;return t})(P),M=Hr(D,Rh),T=d||{standard:nr.jsx(Ih,{ownerState:P}),outlined:nr.jsx(kh,{label:f,ownerState:P}),filled:nr.jsx(Ph,{ownerState:P})}[k],q=al(t,Il(T));return nr.jsx(x.Fragment,{children:x.cloneElement(T,$r({inputComponent:A,inputProps:$r({children:o,error:I.error,IconComponent:c,variant:k,type:void 0,multiple:g},b?{id:u}:{autoWidth:n,defaultOpen:s,displayEmpty:l,labelId:h,MenuProps:m,onClose:v,onOpen:y,open:S,renderValue:w,SelectDisplayProps:$r({id:u},C)},p,{classes:p?la(M,p.classes):M},d?d.props.inputProps:{})},(g&&b||l)&&"outlined"===k?{notched:!0}:{},{ref:q,className:Is(T.props.className,a,D.root)},!d&&{variant:k},R))})});Dh.muiName="Select";const Mh=x.createContext();function Th(e){return Ds("MuiTable",e)}Ms("MuiTable",["root","stickyHeader"]);const qh=["className","component","padding","size","stickyHeader"],Oh=_c("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":$r({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),Lh="table",Nh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTable"}),{className:n,component:o=Lh,padding:i="normal",size:a="medium",stickyHeader:s=!1}=r,l=Hr(r,qh),c=$r({},r,{component:o,padding:i,size:a,stickyHeader:s}),u=(e=>{const{classes:t,stickyHeader:r}=e;return Sl({root:["root",r&&"stickyHeader"]},Th,t)})(c),d=x.useMemo(()=>({padding:i,size:a,stickyHeader:s}),[i,a,s]);return nr.jsx(Mh.Provider,{value:d,children:nr.jsx(Oh,$r({as:o,role:o===Lh?null:"table",ref:t,className:Is(u.root,n),ownerState:c},l))})}),jh=x.createContext();function _h(e){return Ds("MuiTableBody",e)}Ms("MuiTableBody",["root"]);const zh=["className","component"],Fh=_c("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),$h={variant:"body"},Hh="tbody",Bh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableBody"}),{className:n,component:o=Hh}=r,i=Hr(r,zh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},_h,t)})(a);return nr.jsx(jh.Provider,{value:$h,children:nr.jsx(Fh,$r({className:Is(s.root,n),as:o,ref:t,role:o===Hh?null:"rowgroup",ownerState:a},i))})});function Vh(e){return Ds("MuiTableCell",e)}const Wh=Ms("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),Uh=["align","className","component","padding","scope","size","sortDirection","variant"],Gh=_c("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${va(r.size)}`],"normal"!==r.padding&&t[`padding${va(r.padding)}`],"inherit"!==r.align&&t[`align${va(r.align)}`],r.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>$r({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid\n ${"light"===e.palette.mode?Zl.lighten(Zl.alpha(e.palette.divider,1),.88):Zl.darken(Zl.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:(e.vars||e).palette.text.primary},"footer"===t.variant&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${Wh.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Kh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableCell"}),{align:n="inherit",className:o,component:i,padding:a,scope:s,size:l,sortDirection:c,variant:u}=r,d=Hr(r,Uh),p=x.useContext(Mh),f=x.useContext(jh),h=f&&"head"===f.variant;let m;m=i||(h?"th":"td");let g=s;"td"===m?g=void 0:!g&&h&&(g="col");const b=u||f&&f.variant,v=$r({},r,{align:n,component:m,padding:a||(p&&p.padding?p.padding:"normal"),size:l||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===b&&p&&p.stickyHeader,variant:b}),y=(e=>{const{classes:t,variant:r,align:n,padding:o,size:i,stickyHeader:a}=e;return Sl({root:["root",r,a&&"stickyHeader","inherit"!==n&&`align${va(n)}`,"normal"!==o&&`padding${va(o)}`,`size${va(i)}`]},Vh,t)})(v);let S=null;return c&&(S="asc"===c?"ascending":"descending"),nr.jsx(Gh,$r({as:m,ref:t,className:Is(y.root,o),"aria-sort":S,scope:g,ownerState:v},d))});function Yh(e){return Ds("MuiTableContainer",e)}Ms("MuiTableContainer",["root"]);const Xh=["className","component"],Jh=_c("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Zh=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableContainer"}),{className:n,component:o="div"}=r,i=Hr(r,Xh),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},Yh,t)})(a);return nr.jsx(Jh,$r({ref:t,as:o,className:Is(s.root,n),ownerState:a},i))});function Qh(e){return Ds("MuiTableHead",e)}Ms("MuiTableHead",["root"]);const em=["className","component"],tm=_c("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),rm={variant:"head"},nm="thead",om=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableHead"}),{className:n,component:o=nm}=r,i=Hr(r,em),a=$r({},r,{component:o}),s=(e=>{const{classes:t}=e;return Sl({root:["root"]},Qh,t)})(a);return nr.jsx(jh.Provider,{value:rm,children:nr.jsx(tm,$r({as:o,className:Is(s.root,n),ref:t,role:o===nm?null:"rowgroup",ownerState:a},i))})});function im(e){return Ds("MuiTableRow",e)}const am=Ms("MuiTableRow",["root","selected","hover","head","footer"]),sm=["className","component","hover","selected"],lm=_c("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.head&&t.head,r.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${am.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${am.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Zl.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),cm="tr",um=x.forwardRef(function(e,t){const r=Hc({props:e,name:"MuiTableRow"}),{className:n,component:o=cm,hover:i=!1,selected:a=!1}=r,s=Hr(r,sm),l=x.useContext(jh),c=$r({},r,{component:o,hover:i,selected:a,head:l&&"head"===l.variant,footer:l&&"footer"===l.variant}),u=(e=>{const{classes:t,selected:r,hover:n,head:o,footer:i}=e;return Sl({root:["root",r&&"selected",n&&"hover",o&&"head",i&&"footer"]},im,t)})(c);return nr.jsx(lm,$r({as:o,ref:t,className:Is(u.root,n),role:o===cm?null:"row",ownerState:c},s))});function dm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.jsx("path",{d:"m8 9 4.5-4.5L14 6l-4.5 4.5L8 12 2 6l1.5-1.5L8 9Z"})})}function pm({fontSize:e="medium",children:t=null,className:r=""}={}){return nr.jsx("i",{style:{fontSize:"small"===e?"16px":"20px",margin:"small"===e?"-2px 0":void 0,display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},className:r,children:t})}function fm(e={}){return nr.jsx(pm,{...e,children:nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",fill:"none",viewBox:"0 0 20 20",children:[nr.jsx("rect",{width:"20",height:"20",fill:"currentColor",rx:"3"}),nr.jsx("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"})]})})}function hm(e={}){return nr.jsx(pm,{fontSize:"medium",...e,children:nr.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[nr.jsx("rect",{stroke:"none",width:"16",height:"16",rx:"8",fill:"currentColor"}),nr.jsx("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"})]})})}function mm(e){return nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",...e,children:nr.jsx("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.345L9.345 8Z"})})}function gm(e={}){return nr.jsx(pm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsxs("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:[nr.jsx("rect",{fill:"currentColor",x:"0",y:"0",width:"16",height:"16",rx:"3"}),nr.jsx("rect",{fill:"#FFFFFF",x:"4",y:"7",width:"8",height:"2",rx:"1"})]})})})}function bm(e={}){return nr.jsx(pm,{fontSize:"medium",...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{strokeWidth:"1",fillRule:"evenodd",fillOpacity:"0.603119339",strokeOpacity:"0.146654212",children:nr.jsx("rect",{stroke:"currentStroke",fill:"currentFill",x:"0.5",y:"0.5",width:"15",height:"15",rx:"7.5"})})})})}function vm({className:e}){return nr.jsx(pm,{fontSize:"small",className:e,children:nr.jsx("svg",{width:"8px",height:"14px",viewBox:"0 0 8 14",version:"1.1","aria-labelledby":"SortIcon",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("g",{transform:"translate(-4.000000, -1.000000)",fill:"#404040",fillRule:"nonzero",children:nr.jsxs("g",{transform:"translate(4.324187, 1.300372)",children:[nr.jsx("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"}),nr.jsx("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"})]})})})})})}function ym(e={}){return nr.jsx(pm,{...e,children:nr.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg",children:nr.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:nr.jsx("rect",{stroke:Ft.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"})})})})}var xm=e=>({MuiAccordion:{styleOverrides:{root:{backgroundColor:Ft.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:Ft.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:nr.jsx(dm,{"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 ${Ft.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`,borderRadius:Wt,backgroundColor:Ft.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 ${Ft.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:Ft.WHITE,color:Ft.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:Wt},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:Ft.GREYSCALE_0_15,backgroundColor:Ft.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ft.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:Ft.GREEN_PALE},"&:active":{backgroundColor:Ft.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:Ft.BLUE_PALE},"&:active":{backgroundColor:Ft.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.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:Wt,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:Ft.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:Ft.GREYSCALE_0_42,backgroundColor:Ft.GREYSCALE_100_60,"&:active":{backgroundColor:Ft.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${Ft.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:Ft.PURPLE,"&.Mui-focusVisible":{borderColor:Ft.PURPLE,boxShadow:`0 0 0 3px ${Ys(Ft.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:Ft.GREEN,"&.Mui-focusVisible":{borderColor:Ft.GREEN,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:Ft.BLUE,"&.Mui-focusVisible":{borderColor:Ft.BLUE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:Ft.ORANGE,"&.Mui-focusVisible":{borderColor:Ft.ORANGE,boxShadow:`0 0 0 3px ${Ys(Ft.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:Ft.RED,"&.Mui-focusVisible":{borderColor:Ft.RED,boxShadow:`0 0 0 3px ${Ys(Ft.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:Ft.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:Ft.PURPLE_PALE},"&:active":{backgroundColor:Ft.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:Ft.PURPLE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:Ft.GREEN_PALE},"&:active":{backgroundColor:Ft.GREEN_DARK},"&.Mui-focusVisible":{borderColor:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:Ft.BLUE_PALE},"&:active":{backgroundColor:Ft.BLUE_DARK},"&.Mui-focusVisible":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:Ft.ORANGE_PALE},"&:active":{backgroundColor:Ft.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:Ft.ORANGE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:Ft.RED_PALE},"&:active":{backgroundColor:Ft.RED_DARK},"&.Mui-focusVisible":{borderColor:Ft.RED_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.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:Ft.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:Ft.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:Wt,boxShadow:`inset 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:nr.jsx(mm,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:$t,borderRadius:Wt,color:Ft.TEXT_PRIMARY,backgroundColor:Ft.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{backgroundColor:Ft.GREYSCALE_0_03},"&.Mui-disabled":{backgroundColor:Ft.GREYSCALE_0_05,color:Ft.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:Ft.GREEN,borderColor:Ft.GREEN},"&.MuiChip-outlinedInfo":{color:Ft.BLUE,borderColor:Ft.BLUE},"&.MuiChip-outlinedWarning":{color:Ft.ORANGE,borderColor:Ft.ORANGE},"&.MuiChip-outlinedError":{color:Ft.RED,borderColor:Ft.RED}},outlined:{border:`solid 1px ${Ft.GREYSCALE_0_15}`,backgroundColor:Ft.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:Wt,boxShadow:"none",backgroundColor:Ft.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:Ft.GREEN,borderColor:Ft.GREEN},outlinedSecondary:{color:Ft.BLUE,borderColor:Ft.BLUE},label:{fontFamily:Xt.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:nr.jsx(mm,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:nr.jsx(dm,{"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:Wt},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:Wt,fontSize:Ht,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:Ft.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${Ft.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:Ft.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:Ft.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:Ft.GREYSCALE_0_05}}},popupIndicator:{borderRadius:Wt,border:`solid 1px ${Ft.GREYSCALE_0_15}`,color:Ft.GREYSCALE_0_60,marginRight:0,width:Vt,height:Vt},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${Ft.GREYSCALE_0_15}`},clearIndicator:{borderRadius:Wt,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:Ft.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:Ht}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:$t,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:Ft.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:Ft.GREYSCALE_25,fontSize:$t,fontFamily:Xt.FONT_FAMILY,fontWeight:Kt,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:Ft.TEXT_PRIMARY},"&.Mui-error":{color:Ft.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:Ft.TEXT_SECONDARY,content:"'(optional)'",fontWeight:Gt,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:Ft.TEXT_SECONDARY,content:"'(required)'",fontWeight:Gt,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:Ht,lineHeight:"16px",backgroundColor:Ft.WHITE,borderRadius:Wt,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.GREYSCALE_0_05}`,borderColor:Ft.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${Ft.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${Ft.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.RED}`,boxShadow:`0px 0px 0px 1px ${Ft.RED}, inset 0 2px 0 0 ${Ft.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${Ft.GREYSCALE_0_10}`,borderColor:Ft.GREYSCALE_0_10,backgroundColor:Ft.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:Ft.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:Ft.GREYSCALE_0_15,borderRadius:Wt,boxShadow:`inset 0 2px 0 0 ${Ft.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>nr.jsx(dm,{...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:Ft.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:Ft.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03},"&:active":{backgroundColor:Ft.GREYSCALE_0_10},"&:focus":{backgroundColor:Ft.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${Ft.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:Ft.GREYSCALE_0_30,"&:hover":{backgroundColor:Ft.GREYSCALE_0_0,borderColor:Ft.GREYSCALE_0_15},"& ~svg":{color:Ft.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${Ft.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:Wt}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:Ft.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:Ft.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{height:"20px",fontSize:Ht,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:$t,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:$t,fontWeight:Kt,color:Ft.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:Kt}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${Ft.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ft.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:nr.jsx(bm,{}),checkedIcon:nr.jsx(hm,{})},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:Ft.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:Ft.GREYSCALE_0_20}},"&.Mui-disabled":{fill:Ft.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:nr.jsx(ym,{}),checkedIcon:nr.jsx(fm,{}),indeterminateIcon:nr.jsx(gm,{})},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:Wt,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:Ft.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:Ft.GREYSCALE_0_55,color:Ft.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:Ft.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:Ft.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:Ft.GREYSCALE_0_55,"&:hover":{color:Ft.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:Ft.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:Ft.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:Ht,color:Ft.TEXT_PRIMARY,lineHeight:"16px",fontWeight:Kt},secondary:{fontSize:$t,color:Ft.GREYSCALE_45,fontWeight:Gt,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:Ht,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"}}},MuiListItemButton:{styleOverrides:{root:{fontSize:Ht,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:Ft.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:$t,borderBottom:`solid 1px ${Ft.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:Ht,color:Ft.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:Ft.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:Ft.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:'url(\'data:image/svg+xml,<?xml version="1.0" encoding="UTF-8"?>%0A<svg width="8px" height="7px" viewBox="0 0 8 7" version="1.1"%0A xmlns="http://www.w3.org/2000/svg"%0A xmlns:xlink="http://www.w3.org/1999/xlink" aria-labelledby="Tick">%0A <g stroke="none" stroke-width="1" fill-rule="evenodd">%0A <g transform="translate(0.000000, -1.000000)">%0A <path d="M7.51662484,1.29325 C7.12545778,0.90225 6.49218732,0.90225 6.10202068,1.29325 L2.73658335,4.65725 L1.90722914,3.82925 C1.5170625,3.43825 0.883792042,3.43825 0.492624979,3.82925 C0.102458344,4.21925 0.102458344,4.85225 0.492624979,5.24325 L2.02928127,6.77825 C2.4194479,7.16925 3.05271836,7.16925 3.44388542,6.77825 L7.51662484,2.70725 C7.9077919,2.31725 7.9077919,1.68425 7.51662484,1.29325"></path>%0A </g>%0A </g>%0A</svg>%0A\')',fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:Ft.RED}}},"&.Mui-focusVisible":{backgroundColor:Ft.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:Ft.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:Ft.GREEN,height:"24px","&.Mui-disabled":{color:Ft.GREYSCALE_0_15}},rail:{backgroundColor:Ft.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${Ft.GREYSCALE_0_05}`,borderRadius:Wt,boxShadow:`inset 0px 0px 0px 1px ${Ft.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${Ft.GREYSCALE_0_05}`,borderRadius:Wt},thumb:{height:"16px",width:"16px",borderRadius:Wt,backgroundColor:Ft.WHITE,boxShadow:`0px 1px 2px 0px ${Ft.GREYSCALE_0_15}, 0px 0px 0px 1px ${Ft.GREYSCALE_0_05}`,"&:hover":{borderRadius:Wt,boxShadow:`0 2px 4px 0 ${Ft.GREYSCALE_0_30}, 0 0 0 1px ${Ft.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${Ft.GREYSCALE_0_15}, 0 0 0 1px ${Ft.GREYSCALE_0_06}, 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${Ft.GREYSCALE_0_15}, 0 0 0 1px ${Ft.GREYSCALE_0_06}, 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:Ft.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:Ft.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:Ft.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:Ft.GREYSCALE_0_15},markLabel:{color:Ft.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:Ft.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:Ft.WHITE,color:Ft.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:Ft.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:Ft.GREEN_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:Ft.BLUE_PALE,boxShadow:`0 0 0 3px ${Ys(Ft.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:Ft.GREYSCALE_0_15,borderRadius:Wt},thumb:{height:"16px",width:"16px",borderRadius:Wt,backgroundColor:Ft.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:Ht,fontWeight:Kt,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${Ft.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${Ft.MISC_FOCUS_BORDER}`,backgroundColor:Ft.GREYSCALE_0_03,borderRadius:Wt},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:Ft.GREYSCALE_25,"&.Mui-selected":{color:Ft.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:Ht,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{"&:not(.MuiTabs-flexContainerVertical)":{height:"100%",marginLeft:2,marginRight:2}},indicator:{height:2},scrollButtons:{borderRadius:Wt,"&:hover":{backgroundColor:Ft.GREYSCALE_0_03},"&.Mui-disabled":{opacity:"unset","& .MuiSvgIcon-root":{opacity:.3}}},vertical:{padding:"8px",boxSizing:"border-box","& .MuiTabs-indicator":{left:0,right:"unset",transition:"none",clipPath:"inset(12px 0 12px 0)",marginLeft:"1px"},"& .MuiTabs-scrollButtons":{flexDirection:"column",position:"relative","&:first-child":{marginBottom:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ft.GREYSCALE_0_15}`,position:"absolute",bottom:0,left:0}},"&:last-child":{marginTop:"4px","&::before":{content:'""',display:"block",width:"100%",height:"1px",borderBottom:`1px solid ${Ft.GREYSCALE_0_15}`,position:"absolute",top:0,left:0}}},"& .MuiTab-root":{fontWeight:"normal",borderRadius:Wt,marginBlock:"4px","&:first-child":{marginTop:"0px"},"&:last-child":{marginBottom:"0px"},"&.Mui-selected":{backgroundColor:Ft.GREYSCALE_0_05},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03,borderBottomColor:"transparent"}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${Ft.GREYSCALE_85}`,borderRight:`1px solid ${Ft.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:Kt,backgroundColor:Ft.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:Ft.GREYSCALE_98,borderBottom:`1px solid ${Ft.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${Ft.GREYSCALE_85}`,borderTop:`1px solid ${Ft.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:Ft.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:Ft.GREYSCALE_0_05,"&:hover":{backgroundColor:Ft.GREYSCALE_0_03}},"&&:hover":{backgroundColor:Ft.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>nr.jsx(vm,{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 ${Ft.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:Ht,borderRadius:Wt,padding:"7px 16px",border:`1px solid ${Ft.GREYSCALE_0_15}`,backgroundColor:Ft.GREYSCALE_100_60,color:Ft.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:Ft.GREYSCALE_0_10,border:`1px solid ${Ft.GREYSCALE_0_30}`},"&:hover":{backgroundColor:Ft.GREYSCALE_0_03,border:`1px solid ${Ft.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:Ft.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${Ft.MISC_FOCUS_BORDER}`,border:`1px solid ${Ft.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:Ft.GREYSCALE_25,backgroundColor:Ft.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:Ft.GREYSCALE_0_10,border:`1px solid ${Ft.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:$t,height:24,width:24,padding:7},sizeLarge:{fontSize:Bt,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:Ht,borderRadius:Wt}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0,enterNextDelay:300,enterDelay:400},styleOverrides:{arrow:{color:Ft.GREYSCALE_20},tooltip:{backgroundColor:Ft.GREYSCALE_20,fontSize:$t,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}});const Sm=e=>({mode:"light",primary:{ultraLight:Ft.GREEN_ULTRA_LIGHT,light:Ft.GREEN_PALE,main:Ft.GREEN,dark:Ft.GREEN_DARK,extraDark:Ft.GREEN_EXTRA_DARK,contrastText:Ft.WHITE},secondary:{ultraLight:Ft.BLUE_ULTRA_LIGHT,light:Ft.BLUE_PALE,main:Ft.BLUE,dark:Ft.BLUE_DARK,extraDark:Ft.BLUE_EXTRA_DARK,contrastText:Ft.WHITE},error:{ultraLight:Ft.RED_ULTRA_LIGHT,light:Ft.RED_PALE,main:Ft.RED,dark:Ft.RED_DARK,extraDark:Ft.RED_EXTRA_DARK,contrastText:Ft.WHITE},warning:{ultraLight:Ft.ORANGE_ULTRA_LIGHT,light:Ft.ORANGE_PALE,main:Ft.ORANGE,dark:Ft.ORANGE_DARK,extraDark:Ft.ORANGE_EXTRA_DARK,contrastText:Ft.WHITE},success:{ultraLight:Ft.GREEN_ULTRA_LIGHT,light:Ft.GREEN_PALE,main:Ft.GREEN,dark:Ft.GREEN_DARK,extraDark:Ft.GREEN_EXTRA_DARK,contrastText:Ft.WHITE},info:{ultraLight:Ft.BLUE_ULTRA_LIGHT,light:Ft.BLUE_PALE,main:Ft.BLUE,dark:Ft.BLUE_DARK,extraDark:Ft.BLUE_EXTRA_DARK,contrastText:Ft.WHITE},text:{primary:Ft.TEXT_PRIMARY,secondary:Ft.TEXT_SECONDARY,disabled:Ft.GREYSCALE_0_30},action:{hover:Ft.GREYSCALE_0_03,hoverOpacity:.03,selected:Ft.GREYSCALE_0_05,selectedOpacity:.05,focus:Ft.MISC_FOCUS_BORDER},amethyst:{ultraLight:Ft.WHITE,main:Ft.PURPLE,light:Ft.PURPLE_PALE,dark:Ft.PURPLE_DARK,extraDark:Ft.GREYSCALE_0_0,contrastText:Ft.WHITE},background:{paper:Ft.WHITE,default:Ft.GREYSCALE_95},divider:Ft.GREYSCALE_0_15}),wm=(e="light")=>vc({components:xm(),palette:Sm(),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:Ht,fontWeightLight:Ut,fontWeightRegular:Gt,fontWeightMedium:Kt,fontWeightBold:Yt,htmlFontSize:Ht,fontFamily:Xt.FONT_FAMILY,button:{fontWeight:Kt,fontSize:Ht,textTransform:"none"},body1:{fontSize:Bt,lineHeight:"24px"},body2:{fontSize:Ht,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:Vt,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:Bt,fontWeight:Kt,lineHeight:"16px"},h6:{fontSize:Ht,fontWeight:Kt,lineHeight:"16px"},caption:{color:Ft.TEXT_SECONDARY},subtitle1:{fontSize:Ht,color:Ft.TEXT_SECONDARY},subtitle2:{fontSize:$t,color:Ft.TEXT_SECONDARY}},shape:{borderRadius:Wt}}),Cm={...zt},Em=wm().palette,Rm={TEXT:Em.text.primary,DISABLED:Em.text.disabled,HOVER:Em.action.hover,WHITE:Cm.GREYSCALE_100,BORDER_LIGHT:Cm.GREYSCALE_90,BORDER_MEDIUM:Cm.GREYSCALE_85,BORDER_HEAVY:Cm.GREYSCALE_50,DARK_MODE_TEXT:Cm.GREYSCALE_95,DARK_MODE_BORDER:Cm.GREYSCALE_95,DARK_MODE_DISABLED:Cm.GREYSCALE_70,TRANSPARENT:"transparent",NULL_VALUE_BACKGROUND:Cm.GREYSCALE_95,SELECTED:Em.primary.main,LINK:Em.info.main,ERROR:Em.error.main},Am=(e,t=Rm.TEXT,r=Rm.WHITE)=>{const n=ie(e??""),o=ie(t),i=ie(r);return n.isInvalid()?t:function(e,t,r){const n=ae(e,t),o=ae(e,r);if(void 0!==n&&void 0!==o)return n>o?t:r}(n,i,o).getRGB()},Im=e=>{const t=e.getStyle("","","dataColors.selected")||Rm.SELECTED,r=function(e,t){const r=ie(se),n=ie(e),o=ie(t);if(n.isInvalid()||o.isInvalid()||n.getAlpha()<1||o.getAlpha()<1)return t;const i=ae(r,n),a=ae(o,n),s=i>a||i>4.5;return!s&&a>3?o.getHex():s?se:"#000000"}(t,Rm.TEXT);return{background:t,color:r}},km=(e,t)=>{const r=ie(e);return 0===r.a?(r.setAlpha(t.opacity),r.getString()):r.isDark()?r.getBrightenedColor(t.brighter).getString():r.getDarkenedColor(t.darker).getString()},Pm=(e,t,r)=>{const n=t?e.getColorPickerColor(t):"none";return"none"===n?r:n},Dm=e=>{const t=ie(e);return t.isInvalid()?null:1===t.a?t.getRGB():t.getRGBA()},Mm=(e,t,r)=>{const n=e.closest(".qv-object-wrapper")?.querySelector(".sel-toolbar-confirm")?.parentElement??document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm")?.parentElement;n?n.focus():t.focusSelection?.(r)},Tm=e=>{e.stopPropagation(),e.preventDefault()},qm=e=>!!e&&0===ie(e).a,Om="#grid",Lm=(e,t,r,n=Rm.WHITE)=>e&&!qm(e)?e:qm(t)?r&&!qm(r)?r:n:t,Nm=(e,t)=>{const r=t?.closest(e);return r&&window.getComputedStyle(r).backgroundColor},jm=(e,t,r,n,o)=>{const i=Nm(".qv-object .qv-inner-object",r),a=Nm(".qv-panel-sheet",r),s=Nm(Om,r)??a,l=(e=>{const t=e.components?.find(e=>"general"===e.key),r=t?.bgColor?.colorExpression,n=t?.bgColor?.color?.color,o=t?.bgColor?.useColorExpression;if(o&&r)return Dm(r);if("none"===n)return"transparent";if(void 0===n)return;const i=ie(n);return i.setAlpha(t?.bgColor?.color?.alpha??i.a),i.getRGBA()})(e),c=n?.(t),u=o?.(t),d=l||c||i||u,p=qm(d),f=!qm(h=p?s:d)&&Am(h,Rm.TEXT,Rm.DARK_MODE_TEXT)===ee(Rm.DARK_MODE_TEXT);var h;return{color:d,headerColor:Lm(l,d,s),isDark:f}},_m=(t,r,a,s)=>{const l=i(),c=((e,t={attributeFilter:["style"],childList:!1,subtree:!1})=>{const[r,i]=n([]);return o(()=>{let r;return e&&(r=new MutationObserver(e=>{i(e)}),r.observe(e,t)),()=>{r?.disconnect()}},[e,t]),r})(r.closest(Om),{attributeFilter:["style"],childList:!1,subtree:!1,attributeOldValue:!0}).filter(({oldValue:e})=>e?.includes("background")).map(({oldValue:e})=>e).join(",");return e(()=>({...l,background:jm(t,l,r,a,s)}),[l.name(),r,a,s,t,c])};const zm=3,Fm=/\n/g;function $m(e,t,r){let n=0,o=e.length;if(Number.isNaN(t))return null;if(e.length<=1)return null;if(r(e)<=t)return null;for(;n<=o;){const i=Math.floor((n+o)/2),a=e.slice(0,i),s=e.slice(0,i-1),l=r(a),c=r(s);if(l>t&&c<=t)return e.slice(i-1)||null;if(l===t)return e.slice(i)||null;l<t?n=i+1:o=i}return null}const Hm=({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o)=>{const{maxNbrLinesOfText:i=zm,allowLineBreaks:a=!0}=o??{};return()=>{const o=document.createElement("canvas").getContext("2d");o.font=`${r} ${n} ${e} ${t}`;const s=o.measureText.bind(o),l=It(e=>{if(void 0===e)return 0;if(a){const t=e.split(Fm).map(e=>s(e).width);return t.reduce((e,t)=>t>e?t:e,0)}const t=e.replace(Fm," ");return s(t).width}),c=e=>+l(e).toFixed(2),u=It(({text:e,maxWidth:t,isNumeric:r=!1})=>{if(r)return 1;const n=a?e.split(Fm):[e];let o=0;for(const e of n){let r=e;do{o+=1,r=$m(r,t,c)}while(null!==r&&o<i);if(o>=i)break}return o},({text:e,maxWidth:t,isNumeric:r})=>`${e}-${t}-${r?"true":"false"}`);return{measureText:e=>l(e),estimateWidth:e=>l("N")*e,estimateLineCount:u}}};function Bm({fontSize:e="12px",fontFamily:t="Source Sans Pro, Arial, sans-serif",fontStyle:r="normal",fontWeight:n="normal"},o){const{maxNbrLinesOfText:i=zm,allowLineBreaks:a=!0}={},{estimateWidth:s,measureText:l,estimateLineCount:c}=A(()=>Hm({fontStyle:r,fontWeight:n,fontSize:e,fontFamily:t},{maxNbrLinesOfText:i,allowLineBreaks:a})(),[r,n,e,t,i,a]);return{estimateWidth:s,measureText:l,estimateLineCount:c}}var Vm,Wm={};var Um=function(){if(Vm)return Wm;Vm=1;var e=B;return Wm.createRoot=e.createRoot,Wm.hydrateRoot=e.hydrateRoot,Wm}();const Gm="Source Sans Pro, sans-serif",Km=(t,n,o)=>{const[,i,a]=function(t,n){const o=e(()=>({isLoading:!0}),n),[i,a]=r(async()=>{try{return await t()}finally{o.isLoading=!1}},n);return[i,o.isLoading,a]}(async()=>{const e=Se(),r=t.getStyle("","","fontFamily"),n=t.getStyle("object","label.name","fontFamily"),o=t.getStyle("object","label.value","fontFamily"),i=t.getStyle("","","fontFamilies")??[];return Promise.all([...e,...i,r,n,o,Gm].filter(e=>void 0!==e).map(async e=>{await document.fonts.load(`600 12px ${e}`),await document.fonts.load(`12px ${e}`)}))},[n,t,o]);return a?(console.warn("Failed to load fonts:",a),!0):!i};function Ym(e,t){const[r,n]=I(t);r.some((e,r)=>e!==t[r])&&(n(t),e())}var Xm={NebulaTableUtils_ColumnAdjuster_ColumnNameLabel:{id:"NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",locale:{"de-DE":"Breite von {0}","en-US":"Width of {0}","es-ES":"Ancho de {0}","fr-FR":"Largeur de {0}","it-IT":"Larghezza di {0}","ja-JP":"{0} の幅","ko-KR":"{0}의 너비","nl-NL":"Breedte van {0}","pl-PL":"Szerokość kolumny {0}","pt-BR":"Comprimento de {0}","ru-RU":'Ширина столбца "{0}"',"sv-SE":"Bredd på {0}","tr-TR":"{0} genişliği","zh-CN":"{0} 的宽度","zh-TW":"{0} 的寬度"}},NebulaTableUtils_MenuGroupLabel_Sorting:{id:"NebulaTableUtils.MenuGroupLabel.Sorting",locale:{"de-DE":"Sortierung","en-US":"Sorting","es-ES":"Ordenación","fr-FR":"Tri","it-IT":"Ordinamento","ja-JP":"ソート","ko-KR":"정렬","nl-NL":"Sorteren","pl-PL":"Sortowanie","pt-BR":"Classificação","ru-RU":"Сортировка","sv-SE":"Sortering","tr-TR":"Sıralama","zh-CN":"排序","zh-TW":"排序"}},NebulaTableUtils_MenuItemLabel_AdjustColumnSize:{id:"NebulaTableUtils.MenuItemLabel.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},NebulaTableUtils_MenuItemLabel_ClearSelections:{id:"NebulaTableUtils.MenuItemLabel.ClearSelections",locale:{"de-DE":"Auswahlen löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Geselecteerde waarden wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},NebulaTableUtils_MenuItemLabel_Collapse:{id:"NebulaTableUtils.MenuItemLabel.Collapse",locale:{"de-DE":"Reduzieren","en-US":"Collapse","es-ES":"Contraer","fr-FR":"Réduire","it-IT":"Comprimi","ja-JP":"折りたたむ","ko-KR":"축소","nl-NL":"Samenvouwen","pl-PL":"Zwiń","pt-BR":"Recolher","ru-RU":"Свернуть","sv-SE":"Dölj","tr-TR":"Daralt","zh-CN":"折叠","zh-TW":"收合"}},NebulaTableUtils_MenuItemLabel_ColumnOptions:{id:"NebulaTableUtils.MenuItemLabel.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбца","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},NebulaTableUtils_MenuItemLabel_Expand:{id:"NebulaTableUtils.MenuItemLabel.Expand",locale:{"de-DE":"Erweitern","en-US":"Expand","es-ES":"Expandir","fr-FR":"Développer","it-IT":"Espandi","ja-JP":"展開","ko-KR":"확장","nl-NL":"Uitvouwen","pl-PL":"Rozwiń","pt-BR":"Expandir","ru-RU":"Развернуть","sv-SE":"Utöka","tr-TR":"Genişlet","zh-CN":"展开","zh-TW":"展開"}},NebulaTableUtils_MenuItemLabel_Search:{id:"NebulaTableUtils.MenuItemLabel.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},NebulaTableUtils_MenuItemLabel_SelectAll:{id:"NebulaTableUtils.MenuItemLabel.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},NebulaTableUtils_MenuItemLabel_SelectAlternative:{id:"NebulaTableUtils.MenuItemLabel.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대체 가능 값 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},NebulaTableUtils_MenuItemLabel_SelectExcluded:{id:"NebulaTableUtils.MenuItemLabel.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},NebulaTableUtils_MenuItemLabel_SelectPossible:{id:"NebulaTableUtils.MenuItemLabel.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},NebulaTableUtils_MenuItemLabel_Selections:{id:"NebulaTableUtils.MenuItemLabel.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택 내용","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},NebulaTableUtils_MenuItemLabel_SortAscending:{id:"NebulaTableUtils.MenuItemLabel.SortAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortieren","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Trier par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},NebulaTableUtils_MenuItemLabel_SortDescending:{id:"NebulaTableUtils.MenuItemLabel.SortDescending",locale:{"de-DE":"In absteigender Reihenfolge sortieren","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Trier par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},NebulaTableUtils_Pagination_DisplayedRowsLabel:{id:"NebulaTableUtils.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{0}/{1}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},NebulaTableUtils_Pagination_FirstPage:{id:"NebulaTableUtils.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},NebulaTableUtils_Pagination_LastPage:{id:"NebulaTableUtils.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},NebulaTableUtils_Pagination_NextPage:{id:"NebulaTableUtils.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},NebulaTableUtils_Pagination_PreviousPage:{id:"NebulaTableUtils.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},NebulaTableUtils_Pagination_RowsPerPage:{id:"NebulaTableUtils.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},NebulaTableUtils_Pagination_SelectPage:{id:"NebulaTableUtils.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}}};const Jm=({translator:e})=>(A(()=>{!function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(Xm).forEach(t=>{e.add(Xm[t])})}}(e)},[e]),e),Zm="12px",Qm="nebula-table-utils-head-menu-button",eg="nebula-table-utils-head-menu-wrapper",tg="nebula-table-utils-head-menu",rg="nebula-table-utils-head-menu-list-id",ng="sn-copy-cell";let og=function(e){return e.Enter="Enter",e.Space=" ",e.Esc="Escape",e.Tab="Tab",e.Shift="Shift",e.Left="ArrowLeft",e.Right="ArrowRight",e.Up="ArrowUp",e.Down="ArrowDown",e.C="c",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.F2="F2",e}({});const ig="nebula-table-utils-column-adjuster";let ag=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMax=7680]="PixelsMax",e[e.PixelsDefault=200]="PixelsDefault",e[e.PercentageMin=1]="PercentageMin",e[e.PercentageMax=100]="PercentageMax",e[e.PercentageDefault=20]="PercentageDefault",e[e.PercentageMaxInIndentMode=75]="PercentageMaxInIndentMode",e[e.AutoMinPivot=80]="AutoMinPivot",e[e.AutoMinTable=120]="AutoMinTable",e}({}),sg=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const lg={darker:.15,brighter:.3,opacity:.03},cg={darker:.3,brighter:.5,opacity:.05};let ug=function(e){return e.Cyclic="C",e}({});const dg=document.createElement("textarea");function pg(e){dg.value=e,document.body.appendChild(dg),dg.select(),dg.setSelectionRange(0,dg.value.length),document.execCommand("copy"),document.body.removeChild(dg)}dg.style.position="absolute",dg.style.left="-9999px",dg.setAttribute("readonly","");const fg=e=>{const t=e.title;t&&(navigator.clipboard?.writeText?navigator.clipboard.writeText(t).catch(()=>{pg(t)}):pg(t))};function hg(e){return"init"in e}function mg(e){return"function"==typeof e.write}function gg(e){return"v"in e||"e"in e}function bg(e){if("e"in e)throw e.e;if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function vg(e){return"function"==typeof(null==e?void 0:e.then)}function yg(e,t,r){if(!r.p.has(e)){r.p.add(e);const n=()=>r.p.delete(e);t.then(n,n)}}function xg(e,t,r){const n=r.get(e),o=null==n?void 0:n.t,i=t.p;if(!(null==o?void 0:o.size))return i;if(!i.size)return o;const a=new Set(o);for(const e of i)a.add(e);return a}const Sg=()=>{const e={},t=new WeakMap,r=r=>{var n,o;null==(n=t.get(e))||n.forEach(e=>e(r)),null==(o=t.get(r))||o.forEach(e=>e())};return r.add=(r,n)=>{const o=r||e;let i=t.get(o);return i||(i=new Set,t.set(o,i)),i.add(n),()=>{i.delete(n),i.size||t.delete(o)}},r};function wg(e){return e.i||(e.i=Sg()),e.r||(e.r=Sg()),e.c||(e.c=Sg()),e.m||(e.m=Sg()),e.u||(e.u=Sg()),e.f||(e.f=(()=>{const e=new Set,t=()=>e.forEach(e=>e());return t.add=t=>(e.add(t),()=>e.delete(t)),t})()),e}const Cg=(e,t,r,...n)=>r.read(...n),Eg=(e,t,r,...n)=>r.write(...n),Rg=(e,t,r)=>r.INTERNAL_onInit(t),Ag=(e,t,r,n)=>{var o;return null==(o=r.onMount)?void 0:o.call(r,n)},Ig=(e,t,r)=>{var n;const o=e[0];let i=o.get(r);if(!i){const a=e[6],s=e[9];i={d:new Map,p:new Set,n:0},o.set(r,i),null==(n=a.i)||n.call(a,r),function(e){return!!e.INTERNAL_onInit}(r)&&s(e,t,r)}return i},kg=(e,t)=>{var r;const n=e[1],o=e[3],i=e[4],a=e[5],s=e[6],l=e[13];if(!(s.f||o.size||i.size||a.size))return;const c=[],u=e=>{try{e()}catch(e){c.push(e)}};do{s.f&&u(s.f);const c=new Set;for(const e of o){const t=null==(r=n.get(e))?void 0:r.l;if(t)for(const e of t)c.add(e)}o.clear();for(const e of a)c.add(e);a.clear();for(const e of i)c.add(e);i.clear();for(const e of c)u(e);o.size&&l(e,t)}while(o.size||a.size||i.size);if(c.length)throw new AggregateError(c)},Pg=(e,t)=>{const r=e[1],n=e[2],o=e[3],i=e[11],a=e[14],s=e[17];if(!o.size)return;const l=[],c=[],u=new WeakSet,d=new WeakSet,p=[],f=[];for(const r of o)p.push(r),f.push(i(e,t,r));for(;p.length;){const o=p.length-1,a=p[o],s=f[o];if(d.has(a))p.pop(),f.pop();else if(u.has(a)){if(n.get(a)===s.n)l.push(a),c.push(s);else if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&n.has(a))throw new Error("[Bug] invalidated atom exists");d.add(a),p.pop(),f.pop()}else{u.add(a);for(const n of xg(a,s,r))u.has(n)||(p.push(n),f.push(i(e,t,n)))}}for(let r=l.length-1;r>=0;--r){const i=l[r],u=c[r];let d=!1;for(const e of u.d.keys())if(e!==i&&o.has(e)){d=!0;break}d&&(n.set(i,u.n),a(e,t,i),s(e,t,i)),n.delete(i)}},Dg=new WeakSet,Mg=(e,t,r)=>{var n,o;const i=e[1],a=e[2],s=e[3],l=e[6],c=e[7],u=e[11],d=e[12],p=e[13],f=e[14],h=e[16],m=e[17],g=e[20],b=e[26],v=e[28],y=u(e,t,r),x=v[0];if(gg(y)){if(i.has(r)&&a.get(r)!==y.n||y.m===x)return y.m=x,y;let n=!1;for(const[r,o]of y.d)if(f(e,t,r).n!==o){n=!0;break}if(!n)return y.m=x,y}let S=!0;const w=new Set(y.d.keys()),C=()=>{for(const e of w)y.d.delete(e)},E=()=>{if(i.has(r)){const n=!s.size;m(e,t,r),n&&(p(e,t),d(e,t))}},R=n=>{var o;if(n===r){const r=u(e,t,n);if(!gg(r)){if(!hg(n))throw new Error("no atom init");g(e,t,n,n.init)}return bg(r)}const a=f(e,t,n);try{return bg(a)}finally{w.delete(n),y.d.set(n,a.n),vg(y.v)&&yg(r,y.v,a),i.has(r)&&(null==(o=i.get(n))||o.t.add(r)),S||E()}};let A,I;const k={get signal(){return A||(A=new AbortController),A.signal},get setSelf(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),"production"===(import.meta.env?import.meta.env.MODE:void 0)||mg(r)||console.warn("setSelf function cannot be used with read-only atom"),!I&&mg(r)&&(I=(...n)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&S&&console.warn("setSelf function cannot be called in sync"),!S)try{return h(e,t,r,n)}finally{p(e,t),d(e,t)}}),I}},P=y.n,D=a.get(r)===P;try{"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.delete(t);const o=c(e,t,r,R,k);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.has(t)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,r,o),vg(o)){b(e,t,o,()=>null==A?void 0:A.abort());const r=()=>{C(),E()};o.then(r,r)}else C();return null==(n=l.r)||n.call(l,r),y.m=x,y}catch(e){if(function(e){if(!(e instanceof Error))return!1;const t=e.name,r=e.message.toLowerCase();return("RangeError"===t||"InternalError"===t)&&(r.includes("call stack")||r.includes("too much recursion")||r.includes("stack overflow"))}(e))throw e;return delete y.v,y.e=e,++y.n,y.m=x,y}finally{S=!1,y.n!==P&&D&&(a.set(r,y.n),s.add(r),null==(o=l.c)||o.call(l,r))}},Tg=(e,t,r)=>{const n=e[1],o=e[2],i=e[11],a=[r];for(;a.length;){const r=a.pop(),s=i(e,t,r);for(const l of xg(r,s,n)){const r=i(e,t,l);o.get(l)!==r.n&&(o.set(l,r.n),a.push(l))}}},qg=(e,t,r,n)=>{const o=e[3],i=e[6],a=e[8],s=e[11],l=e[12],c=e[13],u=e[14],d=e[15],p=e[16],f=e[17],h=e[20],m=e[28];let g=!0;const b=r=>bg(u(e,t,r)),v=(n,...a)=>{var u;const b=s(e,t,n);try{if(n===r){if(!hg(n))throw new Error("atom not writable");"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&Dg.add(t);const r=b.n,s=a[0];return h(e,t,n,s),f(e,t,n),void(r!==b.n&&(++m[0],o.add(n),d(e,t,n),null==(u=i.c)||u.call(i,n)))}return p(e,t,n,a)}finally{g||(c(e,t),l(e,t))}};try{return a(e,t,r,b,v,...n)}finally{g=!1}},Og=(e,t,r)=>{var n;const o=e[1],i=e[3],a=e[6],s=e[11],l=e[15],c=e[18],u=e[19],d=s(e,t,r),p=o.get(r);if(p&&d.d.size>0){for(const[o,u]of d.d)if(!p.d.has(o)){const d=s(e,t,o);c(e,t,o).t.add(r),p.d.add(o),u!==d.n&&(i.add(o),l(e,t,o),null==(n=a.c)||n.call(a,o))}for(const n of p.d)if(!d.d.has(n)){p.d.delete(n);const o=u(e,t,n);null==o||o.t.delete(r)}}},Lg=(e,t,r)=>{var n;const o=e[1],i=e[4],a=e[6],s=e[10],l=e[11],c=e[12],u=e[13],d=e[14],p=e[16],f=e[18],h=l(e,t,r);let m=o.get(r);if(!m){d(e,t,r);for(const n of h.d.keys()){f(e,t,n).t.add(r)}if(m={l:new Set,d:new Set(h.d.keys()),t:new Set},o.set(r,m),mg(r)&&function(e){return!!e.onMount}(r)){const n=()=>{let n=!0;const o=(...o)=>{try{return p(e,t,r,o)}finally{n||(u(e,t),c(e,t))}};try{const i=s(e,t,r,o);i&&(m.u=()=>{n=!0;try{i()}finally{n=!1}})}finally{n=!1}};i.add(n)}null==(n=a.m)||n.call(a,r)}return m},Ng=(e,t,r)=>{var n,o;const i=e[1],a=e[5],s=e[6],l=e[11],c=e[19],u=l(e,t,r);let d=i.get(r);if(!d||d.l.size)return d;let p=!1;for(const e of d.t)if(null==(n=i.get(e))?void 0:n.d.has(r)){p=!0;break}if(p)return d;d.u&&a.add(d.u),d=void 0,i.delete(r);for(const n of u.d.keys()){const o=c(e,t,n);null==o||o.t.delete(r)}null==(o=s.u)||o.call(s,r)},jg=(e,t,r,n)=>{const o=e[11],i=e[27],a=o(e,t,r),s="v"in a,l=a.v;if(vg(n))for(const i of a.d.keys())yg(r,n,o(e,t,i));a.v=n,delete a.e,s&&Object.is(l,a.v)||(++a.n,vg(l)&&i(e,t,l))},_g=(e,t,r)=>bg((0,e[14])(e,t,r)),zg=(e,t,r,...n)=>{const o=e[3],i=e[12],a=e[13],s=e[16],l=o.size;try{return s(e,t,r,n)}finally{o.size!==l&&(a(e,t),i(e,t))}},Fg=(e,t,r,n)=>{const o=e[12],i=e[13],a=e[18],s=e[19],l=a(e,t,r).l;return l.add(n),i(e,t),o(e,t),()=>{l.delete(n),s(e,t,r),i(e,t),o(e,t)}},$g=(e,t,r,n)=>{const o=e[25];let i=o.get(r);if(!i){i=new Set,o.set(r,i);const e=()=>o.delete(r);r.then(e,e)}i.add(n)},Hg=(e,t,r)=>{const n=e[25].get(r);null==n||n.forEach(e=>e())},Bg=new WeakMap;function Vg(e){const t=Bg.get(e);if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!t)throw new Error("Store must be created by buildStore to read its building blocks");const r=t[24];return r?r(t,e):t}function Wg(...e){const t={get:e=>n(r,t,e),set:(e,...n)=>o(r,t,e,...n),sub:(e,n)=>i(r,t,e,n)},r=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},Cg,Eg,Rg,Ag,Ig,kg,Pg,Mg,Tg,qg,Og,Lg,Ng,jg,_g,zg,Fg,void 0,new WeakMap,$g,Hg,[0]].map((t,r)=>e[r]||t);Bg.set(t,Object.freeze(r));const n=r[21],o=r[22],i=r[23];return t}let Ug,Gg=0;function Kg(e,t){const r="atom"+ ++Gg,n={toString(){return"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&this.debugLabel?r+":"+this.debugLabel:r}};return"function"==typeof e?n.read=e:(n.init=e,n.read=Yg,n.write=Xg),t&&(n.write=t),n}function Yg(e){return e(this)}function Xg(e,t,r){return t(this,"function"==typeof r?r(e(this)):r)}function Jg(){return Wg()}const Zg=P(void 0);function Qg(e){const t=O(Zg);return(null==e?void 0:e.store)||t||(Ug||(Ug=Jg(),"production"!==(import.meta.env?import.meta.env.MODE:void 0)&&(globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Ug),globalThis.__JOTAI_DEFAULT_STORE__!==Ug&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044"))),Ug)}function eb({children:e,store:t}){const r=k(null);return t?w(Zg.Provider,{value:t},e):(null===r.current&&(r.current=Jg()),w(Zg.Provider,{value:r.current},e))}const tb=e=>"function"==typeof(null==e?void 0:e.then),rb=e=>{e.status||(e.status="pending",e.then(t=>{e.status="fulfilled",e.value=t},t=>{e.status="rejected",e.reason=t}))},nb=S.use||(e=>{if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(rb(e),e)}),ob=new WeakMap,ib=(e,t,r)=>{const n=Vg(e),o=n[26];let i=ob.get(t);return i||(i=new Promise((a,s)=>{let l=t;const c=e=>t=>{l===e&&a(t)},u=e=>t=>{l===e&&s(t)},d=()=>{try{const t=r();tb(t)?(ob.set(t,i),l=t,t.then(c(t),u(t)),o(n,e,t,d)):a(t)}catch(e){s(e)}};t.then(c(t),u(t)),o(n,e,t,d)}),ob.set(t,i)),i};function ab(e,t){const{delay:r,unstable_promiseStatus:n=!S.use}={},o=Qg(t),[[i,a,s],l]=D(t=>{const r=o.get(e);return Object.is(t[0],r)&&t[1]===o&&t[2]===e?t:[r,o,e]},void 0,()=>[o.get(e),o,e]);let c=i;if(a===o&&s===e||(l(),c=o.get(e)),M(()=>{const t=o.sub(e,()=>{if(n)try{const t=o.get(e);tb(t)&&rb(ib(o,t,()=>o.get(e)))}catch(e){}if("number"==typeof r)return console.warn("[DEPRECATED] delay option is deprecated and will be removed in v3.\n\nMigration guide:\n\nCreate a custom hook like the following.\n\nfunction useAtomValueWithDelay<Value>(\n atom: Atom<Value>,\n options: { delay: number },\n): Value {\n const { delay } = options\n const store = useStore(options)\n const [value, setValue] = useState(() => store.get(atom))\n useEffect(() => {\n const unsub = store.sub(atom, () => {\n setTimeout(() => setValue(store.get(atom)), delay)\n })\n return unsub\n }, [store, atom, delay])\n return value\n}\n"),void setTimeout(l,r);l()});return l(),t},[o,e,r,n]),T(c),tb(c)){const t=ib(o,c,()=>o.get(e));return n&&rb(t),nb(t)}return c}function sb(e,t){const r=Qg(t);return q((...t)=>{if("production"!==(import.meta.env?import.meta.env.MODE:void 0)&&!("write"in e))throw new Error("not writable atom");return r.set(e,...t)},[r,e])}function lb(e,t){return[ab(e,t),sb(e,t)]}const cb=Kg(void 0),ub=Kg({viewState:void 0,isDownloadedAsPDForImage:!1,waitForPromise:()=>{},notifyIsDoneRendering:()=>Promise.resolve()}),db=Kg({}),pb=e=>"string"==typeof e,fb=e=>"number"==typeof e,hb=e=>"boolean"==typeof e,mb=e=>e instanceof Set,gb=e=>e instanceof Map,bb=e=>{if(e instanceof Error)return e.message;if(null===e)return"null";if(void 0===e)return"undefined";if(pb(e))return e;if(mb(e))try{return JSON.stringify([...e])}catch{return"Failed to serialize Set"}if(gb(e))try{return JSON.stringify(Object.fromEntries(e))}catch{return"Failed to serialize Map"}try{return JSON.stringify(e)}catch{return"Failed to serialize value"}},vb=e=>{if(null!=e){if(pb(e))return e;if(e instanceof Error)return bb(e);if(fb(e)||hb(e))return String(e);if(Array.isArray(e)||mb(e)||gb(e))return bb(e);if((e=>"object"==typeof e&&null!==e&&!Array.isArray(e))(e)){const t={};return Object.entries(e).forEach(([e,r])=>{pb(r)||fb(r)||hb(r)?t[e]=r:t[e]=bb(r)}),t}return bb(e)}},yb=(e,t={})=>{const{tag:r}=t,n=({msg:t,payload:n})=>{const o=((e,t)=>{const r=[];return pb(t)&&t.length>0?r.push(t):Array.isArray(t)&&r.push(...t.filter(e=>"string"==typeof e&&e.length>0)),r.length>0?`${r.map(e=>`[${e}]`).join("")} ${e}`:e})(t,r);return e.anything?.logInfo?.(o,vb(n)),o};return{warn:({msg:e,payload:t})=>{n({msg:e,payload:t})},error:({msg:e,payload:t})=>{n({msg:e,payload:t})}}},xb=e=>yb(e,{tag:"sn-table"}),Sb=Kg({}),wb=Kg(e=>{const t=e(Sb);return e=>t.flags.isEnabled(e)}),Cb=Kg(e=>{const t=e(Sb);return xb(t)}),Eb=Kg(!1),Rb=Kg({qHyperCube:{qDimensionInfo:[],qMeasureInfo:[],qSize:{qcx:0,qcy:0}}}),Ab=Kg(e=>e(Rb).qHyperCube.qSize.qcy),Ib=Kg(e=>!!e(Rb).snapshotData),kb=Kg(e=>e(Rb).qHyperCube.qDimensionInfo.length),Pb=Kg(e=>e(Rb).qHyperCube.qMeasureInfo.length),Db=Kg(e=>e(Rb).qStateName),Mb=Kg(e=>e(Rb).snapshotData),Tb=Kg(e=>!1!==e(Rb).usePagination),qb=Kg(e=>!1!==e(Rb).accessibleHeader),Ob=Kg(),Lb=Kg(!1),Nb=Kg(e=>e(Ob),(e,t,r)=>{t(Ob,r),t(Lb,r.isModal())}),jb=Kg(),_b=Kg(e=>{const t=e(jb),r=e(Ib);return{...t,select:!!t?.active&&!!t.select&&!r,active:!!t?.active&&!r,scroll:!!t?.active}},(e,t,r)=>{t(jb,r)}),zb=Kg(e=>!!e(_b).active),Fb=Kg(e=>!!e(_b).passive),$b=Kg(e=>!!e(_b).select),Hb=Kg(e=>!!e(_b).scroll),Bb=Kg(e=>{const t=e(zb),r=e(Lb);return t&&!r}),Vb=(e,t)=>!(!e.snapshotData&&!t?.visibleHeight),Wb=Kg(),Ub=Kg(e=>e(Wb)?.direction),Gb=Kg(e=>e(Wb)?.footerContainer),Kb=Kg(e=>e(Wb)?.viewState),Yb=Kg(e=>e(Wb)?.freeResize),Xb=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(Tb);return void 0!==r?.usePagination?r.usePagination:n||Vb(t,r)}),Jb=Kg({active:!1,enabled:!1,blur:()=>{},focus:()=>{},focusSelection:()=>{}}),Zb=Kg(e=>e(Jb),(e,t,r)=>{const n=e(Xb),o=e(wb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE");(n||o)&&t(Jb,r)}),Qb=Kg(),ev=Kg(e=>{const t=e(Qb);if(t&&"getEffectiveProperties"in t)return t}),tv={width:0,height:0,top:0,left:0},rv=Kg(tv),nv=Kg(tv),ov=Kg(e=>e(rv),(e,t,r)=>{const n=e(Rb),o=e(Yb),i=e(rv),a=n.snapshotData?.content&&!o;(i.width!==r.width||i.height!==r.height||i.top!==r.top||i.left!==r.left||a)&&(t(nv,r),t(rv,a?{...r,...n.snapshotData?.content?.size}:r))}),iv=Kg({}),av=new WeakMap,sv=Kg(e=>{const t=e(iv),r=av.get(t);if(r)return r;const n=Um.createRoot(t);return av.set(t,n),n}),lv=Kg({getColorPickerColor:()=>{},name:()=>{},getStyle:()=>{},background:{isDark:!1}}),cv=Kg({get:e=>e,add:()=>{},language:()=>"en"});var uv,dv={exports:{}};var pv=(uv||(uv=1,self,dv.exports=(()=>{var e={909:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}},8:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===r.call(e)},a=function(e){if(!e||"[object Object]"!==r.call(e))return!1;var n,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(n in e);return void 0===n||t.call(e,n)},s=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(e,r){if("__proto__"===r){if(!t.call(e,r))return;if(o)return o(e,r).value}return e[r]};e.exports=function e(){var t,r,n,o,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(r in t)n=l(d,r),d!==(o=l(t,r))&&(h&&o&&(a(o)||(c=i(o)))?(c?(c=!1,u=n&&i(n)?n:[]):u=n&&a(n)?n:{},s(d,{name:r,newValue:e(h,u,o)})):void 0!==o&&s(d,{name:r,newValue:o}));return d}}},r={};function n(t){var o=r[t];if(void 0!==o)return o.exports;var i=r[t]={exports:{}};return e[t](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{n.r(o),n.d(o,{default:()=>Me});var e=n(229),t=n.n(e);const r=function(e,t,r){if(!t)return!1;var n,o=t.split("."),i=o[o.length-1],a=e;for(n=0;n<o.length-1;++n)void 0===a[o[n]]&&(a[o[n]]=Number.isNaN(+o[n+1])?{}:[]),a=a[o[n]];if(void 0!==r){var s=a[i];return a[i]=r,{updated:r,previous:s}}return delete a[i],!1},i=function(e,t,r){var n,o=t.split("."),i=e;if(void 0===i)return r;for(n=0;n<o.length;++n){if(void 0===i[o[n]])return r;i=i[o[n]]}return i},a={EXPRESSIONS:{observed:"",trend:"STL_Trend",seasonal:"STL_Seasonal",residual:"STL_Residual"},OPTIONS:[{value:"observed",translation:"cao.trendDecomposition.parameters.decomposition.observed"},{value:"trend",translation:"cao.trendDecomposition.parameters.decomposition.trend"},{value:"seasonal",translation:"cao.trendDecomposition.parameters.decomposition.seasonal"},{value:"residual",translation:"cao.trendDecomposition.parameters.decomposition.residual"}]};var s="".concat(" ","(").concat(" "),l="".concat(" ",")").concat(" ");function c(e){return s+e+l}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e.qLibraryId){var r=function(e,t){if(!t)return null;var r,n;for(r=0;r<t.length;r++)if((n=t[r]).qInfo.qId===e)return n;return null}(e.qLibraryId,t.dimensionList);return r&&r.qData.info[0].qTags.indexOf("$numeric")>-1}var n=function(e,t){if(!t)return null;var r,n,o=function(e){var t=e.trim();"="===t.charAt(0)&&(t=(t=t.substring(1)).trim());var r=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(r)&&(t=(t=t.substring(1,r)).trim()),t}(e);for(r=0;r<t.length;r++){if((n=t[r]).qName===o)return n;if(n.qDerivedFieldData)for(var i=0;i<n.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=n.qDerivedFieldData.qDerivedFieldLists[i],s=0;s<a.qFieldDefs.length;++s){var l=a.qFieldDefs[s];if(l.qName===o)return l}}return null}(e.qDef.qFieldDefs[0],t.fieldList);return n&&n.qTags.indexOf("$numeric")>-1}function d(e){return!(!e.fullAccumulation&&!e.fullRange)}function p(e,t){var r=e.crossAllDimensions;return 2===t&&r?"RowNo(Total)":"RowNo()"}function f(e){var t=function(e){return e?(e=function(e){return e.replace(/\/\*[^]*?\*\//g,"")}(e=function(e){return e.replace(/\/\/(.*)$/gm,"")}(e))).trim():""}(e),r=t.trim();return"="===r.substring(0,1)?r.substring(1).trim():r}function h(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function m(e,t){var r=e.crossAllDimensions;return 2===t&&r?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,r=void 0===t?{}:t,n=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,s=e.valueComp,l=void 0===s?"0":s;if(!r.showExcludedValues)return"";if(n&&1===n.length){var c=v(u(n[0],o),h(0));return"".concat(a,"({1<").concat(c,">}").concat(l,")")}if(n&&2===n.length){var d=u(n[0],o),p=u(n[1],o),f=h(0),m=h(1),g=v(d,f),b=v(p,m);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(l,")")}return"".concat(a,"({1}").concat(l,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,r=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(r,"qHyperCube.qDimensionInfo",[])).length}const w={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,r=e.modifier,n=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=c(f(t));if(!r.showExcludedValues)return a;var s=y({modifier:r,dimensions:n,dimensionAndFieldList:o}),l=i?"":", 0";if(n&&1===n.length){var u=h(0);return"If(Count(".concat(u,") > 0, ").concat(a," + ").concat(s).concat(l,")")}if(n&&2===n.length){var d=h(0),p=h(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(s).concat(l,")")}return a},getRowNoComp:p,getNumStepComp:function(e,t){if(!d(e)){var r=e.steps;return"number"!=typeof r||Number.isNaN(r)?6:r}return p(e,t)},getAboveCompPrefix:m,getAboveCompSuffix:g,getAboveComp:function(e,t,r,n){return m(e,t)+r+g(n)},getFunctionPrefix:x,getFunctionSuffix:function(){return")"},getRangeComp:function(e,t){return x(e)+t+")"},getAggrComp:function(e,t,r){return"Aggr(".concat(e,", ").concat(t,", ").concat(r,")")},getExcludedComp:y,needDimension:function(e){var t=e.modifier,r=e.properties,n=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&2===S({properties:r,layout:n})},getDimComp:function(e,t){var r=function(e){return e[arguments.length>1&&void 0!==arguments[1]?arguments[1]:0].qDef.qSortCriterias[0]}(e,t),n=h(t);if(!r.qSortByExpression&&!r.qSortByNumeric&&!r.qSortByAscii)return n;var o=["Descending","Ascending"],i=r.qSortByNumeric?"(Numeric, ".concat(o[(r.qSortByNumeric+1)/2],")"):"",a=r.qSortByAscii?"(Text, ".concat(o[(r.qSortByAscii+1)/2],")"):"";return r.qSortByNumeric&&r.qSortByAscii?"(".concat(n,", ").concat(i,", ").concat(a,")"):r.qSortByNumeric?"(".concat(n,", ").concat(i,")"):r.qSortByAscii?"(".concat(n,", ").concat(a,")"):n},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var r=t.indexOf(s);if(-1!==r){var n=t.indexOf(l);if(-1!==n)return t.substring(r+s.length,n)}}},initModifier:function(e,t){Object.keys(t).forEach(function(r){void 0===e[r]&&(e[r]=t[r])})},isNumeric:u,isApplicable:function(e){var t=e.properties,r=e.layout,n=e.minDimensions,o=void 0===n?1:n,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!r)return!0;var s=S({properties:t,layout:r});return s>=o&&s<=a},getExpressionWithMarkers:c,canExtract:function(e){var t=e.indexOf(s),r=e.indexOf(l);return t>-1&&r>-1&&t<r},getDimDefWithWrapper:h,getFieldWithWrapper:function(e){var t=e?e.replace(/]/g,"]]"):e;return"[".concat(t,"]")},generateTSDExpression:function(e,t,r){var n=t||e.outputExpression;if(e.base&&e.base.qDef&&(n=t!==e.base.qDef?t:e.base.qDef),"observed"!==e.decomposition){var o=r.qHyperCubeDef.qMeasures.find(function(t){return t.qDef.base&&t.qDef.base.qLibraryId&&e.base&&e.base.qLibraryId?t.qDef.base.qLibraryId===e.base.qLibraryId:null});o&&t!==o.qDef.qLabel&&(n=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=function(e){var t=a.OPTIONS.find(function(t){return t.value===e.decomposition});return t?a.EXPRESSIONS[t.value]:""}(e);n=n.startsWith("=")?n.substr(1):n,n="".concat(i,"(").concat(n,", ").concat(e.steps,")")}return n},getDecomposition:function(e){var t="observed";return Object.values(a.EXPRESSIONS).find(function(r){var n=e.qDef.base.qDef.toLowerCase()||e.qDef.qDef.toLowerCase();return a.EXPRESSIONS[r]&&n.includes(a.EXPRESSIONS[r].toLowerCase())&&(t=r),r}),t}};function C(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function E(e){return E="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},E(e)}var R=t().bind(null,!0),A={},I=Array.isArray;function k(e){return null!=e&&!Array.isArray(e)&&"object"===E(e)}function P(e){return void 0===e}function D(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var r,n=t.substring(1).split("/").slice(0,-1);return n.forEach(function(t,o){if(o!==n.length){r=+t;var i=Number.isNaN(r)?{}:[];e[r||t]=P(e[r||t])?i:e[t],e=e[r||t]}}),e}function T(e,t){var r=!0;if(k(e)&&k(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(function(n){T(e[n],t[n])||(r=!1)}),r);if(I(e)&&I(t)){if(e.length!==t.length)return!1;for(var n=0,o=e.length;n<o;n+=1)if(!T(e[n],t[n]))return!1;return!0}return e===t}A.generate=function(e,t,r){r=r||"";var n=[];return Object.keys(t).forEach(function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],s="".concat(r,"/").concat(o);T(i,a)||D(t,o)||(P(a)?n.push({op:"add",path:s,value:i}):k(i)&&k(a)?n=n.concat(A.generate(a,i,s)):I(i)&&I(a)?n=n.concat(function(e,t,r){var n=[],o=e.slice(),i=-1;function a(e,t,r){if(e[r]&&P(e[r].qInfo))return null;if(e[r]&&e[r].qInfo.qId===t)return r;for(var n=0,o=e.length;n<o;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(T(t,o))return n;if(!P(t[0])&&P(t[0].qInfo))return n.push({op:"replace",path:r,value:t}),n;for(var s=o.length-1;s>=0;s-=1)-1===(i=a(t,o[s].qInfo&&o[s].qInfo.qId,s))?(n.push({op:"remove",path:"".concat(r,"/").concat(s)}),o.splice(s,1)):n=n.concat(A.generate(o[s],t[i],"".concat(r,"/").concat(s)));for(var l=0,c=t.length;l<c;l+=1)-1===(i=a(o,t[l].qInfo&&t[l].qInfo.qId))?(n.push({op:"add",path:"".concat(r,"/").concat(l),value:t[l]}),o.splice(l,0,t[l])):i!==l&&(n.push({op:"move",path:"".concat(r,"/").concat(l),from:"".concat(r,"/").concat(i)}),o.splice(l,0,o.splice(i,1)[0]));return n}(a,i,s)):n.push({op:"replace",path:"".concat(r,"/").concat(o),value:i}))}),Object.keys(e).forEach(function(o){P(t[o])&&!D(e,o)&&n.push({op:"remove",path:"".concat(r,"/").concat(o)})}),n},A.apply=function(e,t){t.forEach(function(t){var r,n,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,s=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(I(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(I(a)&&I(t.value)){var l,c=t.value.slice();a.length=0,(l=a).push.apply(l,function(e){if(Array.isArray(e))return C(e)}(n=c)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return C(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?C(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}else if(k(a)&&k(t.value))r=a,Object.keys(r).forEach(function(e){Object.getOwnPropertyDescriptor(r,e).configurable&&!D(r,e)&&delete r[e]}),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var u=M(e,t.from);I(o)?o.splice(+i,0,u.splice(+s,1)[0]):(o[i]=u[s],delete u[s])}else"remove"===t.op&&(I(o)?o.splice(+i,1):delete o[i])})},A.clone=function(e){return R({},e)},A.createPatch=function(e,t,r){var n={op:e.toLowerCase(),path:r};return"move"===n.op?n.from=t:void 0!==t&&(n.value=t),n},A.updateObject=function(e,t){Object.keys(e).length?A.apply(e,A.generate(e,t)):R(e,t)};const q=A,O=function(e,r,n){if(!e)return Promise.resolve();var o=q.generate(r,n);return t()(!0,r,n),o&&o.length?(o=o.map(function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}}),e.applyPatches(o,!0)):Promise.resolve()};var L="accumulation";function N(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===L)return r[n]}function j(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===L)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var _={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const z={translationKey:"properties.modifier.accumulation",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getNumStepComp(r,l),p=w.getAboveComp(r,l,u,d),f=w.getRangeComp("RangeSum",p);if(w.needDimension({modifier:r,properties:n,layout:o})){var h=w.getDimComp(c,1),m=w.getDimComp(c,0),g=w.getAggrComp(f,h,m);f=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,valueComp:g}):g}return f},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,_)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.accumulation.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(j(t,e),".accumulationDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.accumulation.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(j(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.accumulation.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(j(t,e),".fullAccumulation")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(j(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=N(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=N(t,e);return r&&!r.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(j(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(L))return!1;var i=N(t,e);return i&&!i.disabled}};return r}};var F="movingAverage";function $(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===F)return r[n]}function H(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===F)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const V={translationKey:"properties.modifier.movingAverage",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,r=e.expression,n=e.modifier,o=e.properties,a=e.layout,s=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return r;var c=s;void 0===c&&(c=w.getNumDimensions({properties:o,layout:a}));var u=i(o,"qHyperCubeDef.qDimensions",[]),d=n.showExcludedValues&&n.nullSuppression,p=w.getExpressionWithExcludedComp({expression:r,modifier:n,dimensions:u,dimensionAndFieldList:l,treatMissingAsNull:d}),f=w.getNumStepComp(n,c),h=w.getAboveComp(n,c,p,f);if(n.nullSuppression)t=w.getRangeComp("RangeAvg",h);else{var m=w.getRangeComp("RangeSum",h),g=function(e,t){var r=w.getRowNoComp(e,t);if(!w.isFullRange(e)){var n=e.steps,o="number"!=typeof n||Number.isNaN(n)?6:n;return"RangeMin(".concat(o,", ").concat(r,")")}return r}(n,c);t="".concat(m," / ").concat(g)}var b=t;if(w.needDimension({modifier:n,properties:o,layout:a})){var v=w.getDimComp(u,1),y=w.getDimComp(u,0),x=w.getAggrComp(b,v,y);b=n.showExcludedValues?w.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:w.extractInputExpression,initModifier:function(e){w.initModifier(e,B)},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.movingAverage.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.movingAverage.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(H(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.movingAverage.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},fullRange:{refFn:function(t){return"".concat(H(t,e),".fullRange")},type:"boolean",translation:t.range||"properties.modifier.range",component:"dropdown",schemaIgnore:!0,defaultValue:!1,options:[{value:!0,translation:t.rangeFull||"properties.modifier.range.full"},{value:!1,translation:t.rangeCustom||"properties.modifier.range.custom"}]},steps:{refFn:function(t){return"".concat(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var r=$(t,e);if(r){var n=r.steps;r.steps="number"!=typeof n||Number.isNaN(n)?6:Math.abs(n)}},show:function(t){var r=$(t,e);return r&&!r.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(F))return!1;var i=$(t,e);return i&&!i.disabled}};return r}};var W="timeSeriesDecomposition";function U(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===W)return r[n]}function G(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===W)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var K={type:"timeSeriesDecomposition",disabled:!1,decomposition:"",steps:2,outputExpression:""};const Y={translationKey:"properties.modifier.timeSeriesDecomposition",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties;return r?w.generateTSDExpression(r,t,n):t},extractInputExpression:w.extractInputExpression,initModifier:function(e,t){w.initModifier(e,K),""===e.decomposition&&t&&(e.decomposition=w.getDecomposition(t))},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.timeSeriesDecomposition||"properties.modifier.timeSeriesDecomposition",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(t,e),".decomposition")},type:"string",translation:t.modifierTrendDecompositionDecomposition||"properties.modifier.trendDecomposition.decomposition",component:"dropdown",schemaIgnore:!0,defaultValue:t.trendDecompositionParametersDecompositionObserved||"cao.trendDecomposition.parameters.decomposition.observed",options:a.OPTIONS},steps:{refFn:function(t){return"".concat(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,r){var n=U(t,e);if(n){var o=n.steps;n.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),r.properties.qHyperCubeDef.qMeasures=r.properties.qHyperCubeDef.qMeasures.map(function(e){return e.qDef.modifiers.map(function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e}),e})}},show:function(t){var r=U(t,e);return r&&!r.fullRange}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(W))return!1;var i=U(t,e);return i&&!i.disabled}};return r}};var X="difference";function J(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===X)return r[n]}function Z(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===X)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}var Q={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:w.needDimension,isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=w.getAboveComp(r,l,u),p="".concat(u," - ").concat(d);if(w.needDimension({modifier:r,properties:n,layout:o})){var f=w.getDimComp(c,1),h=w.getDimComp(c,0),m=w.getAggrComp(p,f,h);p=r.showExcludedValues?w.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:m}):m}return p},initModifier:function(e){Object.keys(Q).forEach(function(t){void 0===e[t]&&(e[t]=Q[t])})},enableTotalsFunction:function(){return!1},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.difference.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Z(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.difference.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},crossAllDimensions:{refFn:function(t){return"".concat(Z(t,e),".crossAllDimensions")},type:"boolean",translation:t.crossAllDimensions||"properties.modifier.crossAllDimensions",title:{translation:t.crossAllDimensionsTooltip||"properties.modifier.difference.crossAllDimensions.tooltip"},schemaIgnore:!0,defaultValue:!1,show:function(e,t){return t.layout.qHyperCube.qDimensionInfo.length>1}},showExcludedValues:{refFn:function(t){return"".concat(Z(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return r}};var te="normalization";function re(e,t){var r=i(e,t);if(r)for(var n=0;n<r.length;n++)if(r[n].type===te)return r[n]}function ne(e,t){var r=function(e,t){var r=i(e,t);if(!r)return-1;for(var n=0;n<r.length;n++)if(r[n].type===te)return n;return-1}(e,t);return r>-1?"".concat(t,".").concat(r):t}function oe(e,t){for(var r=0;r<e.length;r++)if(e[r].value===t)return r;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function se(e,t,r){return 1===e?"{$<".concat(w.getFieldWithWrapper(t),"={'").concat(r,"'}>}"):""}function le(e,t){return 0===e&&t>1||2===e?"Total":""}function ce(e,t,r){return 0===e&&t>1?"<".concat(w.getDimDefWithWrapper(r),">"):""}const ue={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,r=e.layout;return w.isApplicable({properties:t,layout:r,minDimensions:1,maxDimensions:2})},extractInputExpression:w.extractInputExpression,generateExpression:function(e){var t=e.expression,r=e.modifier,n=e.properties,o=e.layout,a=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return t;var l=a;void 0===l&&(l=w.getNumDimensions({properties:n,layout:o}));var c=i(n,"qHyperCubeDef.qDimensions",[]),u=w.getExpressionWithExcludedComp({expression:t,modifier:r,dimensions:c,dimensionAndFieldList:s}),d=r.selectionScope,p=r.dimensionalScope;return function(e,t,r,n,o,i,a){var s=ae(t),l=se(t,r,n),c=""===s&&""===l?"":s||l,u=le(o,i),d=ce(o,i,a),p=function(e){for(var t=[],r=0;r<e;r++)t[r]=w.getDimDefWithWrapper(r);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(c," ").concat(u).concat(d," Aggr(").concat(c," ").concat(e,", ").concat(p,"))")}(u,d,r.field,r.value,p,l,r.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach(function(t){void 0===e[t]&&(e[t]=ie[t])})},updateModifier:function(e,t){1===(t.qDimensions?t.qDimensions.length:0)&&0===e.dimensionalScope&&(e.dimensionalScope=2)},enableTotalsFunction:function(){return!0},propertyPanelDef:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={type:"items",items:{disclaimer:{component:"text",translation:t.disclaimer||"properties.modifier.normalization.disclaimer",show:function(e,t){return!w.isApplicable({properties:t.properties})}},settings:{type:"items",items:{selectionScope:{refFn:function(t){return"".concat(ne(t,e),".selectionScope")},type:"string",translation:t.modifierSelectionScope||"properties.modifier.selectionScope",title:{translation:t.modifierSelectionScopeTooltip||"properties.modifier.selectionScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,options:function(r){return function(e,t,r){var n=[{value:0,translation:t.selectionScopeCurrentSelection||"properties.modifier.selectionScope.currentSelection"},{value:1,translation:t.selectionScopeSpecificValue||"properties.modifier.selectionScope.selectAField"},{value:2,translation:t.selectionScopeTotal||"properties.modifier.selectionScope.total"}];return n=function(e,t){if(1===e){var r=oe(t,0);t.splice(r,1)}return t}(re(e,r).dimensionalScope,n),n}(r,t,e)}},field:{refFn:function(t){return"".concat(ne(t,e),".field")},type:"string",component:"expression-with-dropdown",translation:"Common.Field",defaultValue:"",dropdownOnly:!0,options:function(e,t,r){return r.app.getFieldList().then(function(e){return e.map(function(e){return{label:e.qName,value:e.qName}})})},show:function(t){return 1===re(t,e).selectionScope}},value:{refFn:function(t){return"".concat(ne(t,e),".value")},type:"string",ref:"value",component:"string",translation:"properties.value",expression:"optional",show:function(t){return 1===re(t,e).selectionScope}},dimensionalScope:{refFn:function(t){return"".concat(ne(t,e),".dimensionalScope")},type:"string",translation:t.modifierDimensionalScope||"properties.modifier.dimensionalScope",title:{translation:t.modifierDimensionalScopeTooltip||"properties.modifier.dimensionalScope.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:2,supportTooltip:!0,options:function(r,n){return function(e,t,r,n){var o=t.layout.qHyperCube.qDimensionInfo.length,i=[{value:0,translation:r.dimensionalScopeOneDimension||"properties.modifier.dimensionalScope.respectOneDimension",tooltipTranslation:r.dimensionalScopeOneDimensionTooltip||"properties.modifier.dimensionalScope.respectOneDimension.tooltip"},{value:1,translation:r.dimensionalScopeAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:r.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:r.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:r.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(re(e,n).selectionScope,i),i}(r,n,t,e)}},primaryDimension:{refFn:function(t){return"".concat(ne(t,e),".primaryDimension")},type:"integer",translation:t.primaryDimension||"properties.modifier.primaryDimension",title:{translation:t.primaryDimensionTooltip||"properties.modifier.normalization.primaryDimension.tooltip"},component:"dropdown",schemaIgnore:!0,defaultValue:1,options:function(e,t){return t.layout.qHyperCube.qDimensionInfo.map(function(e,t){return{value:t,label:e.qGroupFallbackTitles[0]}})},show:function(t,r){return 0===(re(t,e).dimensionalScope||0)&&r.layout.qHyperCube.qDimensionInfo.length>1}}},show:function(e,t){return w.isApplicable({properties:t.properties})}}},show:function(t,r,n){var o=n.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=re(t,e);return i&&!i.disabled}};return r},getDisregardSelectionComp:ae,getFieldSelectionComp:se,getTotalComp:le,getSelectedDimComp:ce};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",he="qLibraryId",me="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,me)?me:he},getLibraryId:function(e){return i(e,me)||i(e,he)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",we="qDef.qLabelExpression",Ce="qDef.base.qLabel",Ee="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",Ae="qDef.base.qAggrFunc",Ie={initBase:function(e,t){(t||Ie.isValid(e))&&(r(e,ve,i(e,be)),r(e,xe,i(e,ye)),r(e,Ce,i(e,Se)),r(e,Ee,i(e,we)))},restoreBase:function(e){Ie.isValid(e)&&(r(e,be,i(e,ve)),r(e,ye,i(e,xe)),r(e,Se,i(e,Ce)),r(e,we,i(e,Ee)),i(e,Re)&&i(e,Ae)&&r(e,Re,i(e,Ae)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),r=i(e,xe);return void 0!==t||void 0!==r}};const ke=Ie;function Pe(e){return Pe="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},Pe(e)}var De={accumulation:z,movingAverage:V,difference:ee,normalization:ue,timeSeriesDecomposition:Y};const Me={modifiers:De,apply:qe,applyModifiers:Oe,cleanUpMeasure:Le,destroy:function(e){e&&Te[e.id]&&Te[e.id].masterItemSubscriber&&(Te[e.id].masterItemSubscriber&&Te[e.id].masterItemSubscriber.unsubscribe(),delete Te[e.id])},hasActiveModifiers:Ne,getActiveModifier:je,initBase:ke.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some(function(e){return De[e]})},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return De[e]&&De[e].isApplicable({properties:r,layout:n})})},measureBase:ge,limitedSorting:function(e){var t=e.measures,r=e.properties,n=e.layout,o=!1,i=!1;return t.forEach(function(e){var t=Fe(e);Ge({modifiers:t,properties:r,layout:n})&&(o=!0,i=i||Ze({modifiers:t,properties:r,layout:n}))}),o&&!i},ifEnableTotalsFunction:_e};var Te={};function qe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=e.model,n=e.properties,o=e.isSnapshot,a=void 0!==o&&o,s=e.masterItem,l=!1;Te[r.id]=Te[r.id]||{isFirstTime:!0};var c=Te[r.id].isFirstTime;if(Te[r.id].isFirstTime=!1,n&&"object"===Pe(n))return Oe({model:r,properties:n});var u=r?r.layout:void 0,d=i(u,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(l);var p=i(u,"qHyperCube.qMeasureInfo"),f=Te[r.id].lastReloadTime;if(Te[r.id].lastReloadTime=i(r,"app.layout.qLastReloadTime"),Ne({measures:p,layout:u})){var h=function(e){var t=e.measures,r=e.layout,n=e.lastReloadTime;return i(e.model,"app.layout.qLastReloadTime")!==n&&function(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ue({measure:e,properties:r,layout:n})})}({measures:t,layout:r})}({measures:p,layout:u,model:r,lastReloadTime:f});return h||function(e){var t=e.measures,r=e.layout,n=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||n||t.some(function(e){return function(e){var t=e.measure,r=e.layout;return Ge({modifiers:Fe(t),layout:r})?!t.base:!!t.base}({measure:e,layout:r})}))}({measures:p,layout:u,masterItem:s,isFirstTime:c})?r.getEffectiveProperties().then(function(e){var n=t()(!0,{},e);He(n);var o=Qe(n);return Ke({model:r}).then(function(t){return Ye({libraryIds:o,model:r}).then(function(o){return h&&function(e){var t=e.properties;ze(t).forEach(function(e){return function(e){var t=e.measure;if(Ue({measure:t,properties:e.properties})){var r=0,n=t.qDef.modifiers;Array.isArray(n)&&n.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(r++,"object"!==Pe(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(r>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");var n=De[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==n&&Ve(t)&&w.simplifyExpression(t.qDef.base.qDef)!==w.simplifyExpression(n)&&(t.qDef.base.qDef=n)}})}}({measure:e,properties:t})})}({properties:n}),Oe({model:r,oldProperties:e,properties:n,runUpdateIfChange:!0,masterItem:s,libraryItemsProps:o,dimensionAndFieldList:t})})})}):Promise.resolve(l)}return function(e){return!!Array.isArray(e)&&e.some(function(e){return"object"===Pe(e.base)})}(p)?r.getEffectiveProperties().then(function(e){return function(e){var r=e.model,n=e.properties,o=Qe(n);return et({model:r,libraryIds:o}).then(function(){var e=t()(!0,{},n);return ze(n).forEach(function(e){return Le(e)}),Je({oldProperties:e,newProperties:n,model:r})})}({model:r,properties:e})}):Promise.resolve(l)}function Oe(e){var r=e.model,n=e.oldProperties,o=e.properties,a=e.measures,s=e.runUpdateIfChange,l=void 0!==s&&s,c=e.masterItem,u=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===n&&(n=l?t()(!0,{},o):o),He(o);var p=Qe(o);return et({model:r,libraryIds:p,masterItem:c}).then(function(){return function(e){var r=e.measures,n=e.properties,o=e.model,a=e.libraryItemsProps,s=e.dimensionAndFieldList;if(r||(r=ze(n)),!r.length)return Promise.resolve();if(!Ne({measures:r,properties:n}))return r.forEach(function(e){return Le(e)}),Promise.resolve();var l=a?void 0:Qe(n);return Ke({model:o,dimensionAndFieldList:s}).then(function(e){return Ye({libraryIds:l,model:o,libraryItemsProps:a}).then(function(o){r.forEach(function(r){Ge({modifiers:r.qDef.modifiers,properties:n})?(function(e){var r=e.measure,n=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,s=0;ke.isValid(r)||ke.initBase(r,!0);var l=r.qDef,c=l.modifiers,u=l.base;Array.isArray(c)&&c.forEach(function(e){if("object"===Pe(e)&&!e.disabled){if(s++,"object"!==Pe(De[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(s>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");De[e.type].initModifier(e,r);var l=r.qLibraryId||u&&u.qLibraryId;l?function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],s=a.qMeasure.qDef,l=""===s?s:De[n.type].generateExpression({expression:s,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=l,r.qDef.qDef=n.outputExpression,(r.qDef.qLabel||a.qMeasure.qLabel)&&(r.qDef.qLabel=a.qMeasure.qLabel),(r.qDef.qLabelExpression||a.qMeasure.qLabelExpression)&&(r.qDef.qLabelExpression=a.qMeasure.qLabelExpression),r.qDef.quarantine&&r.qDef.quarantine.qNumFormat&&a.qMeasure.qNumFormat&&(r.qDef.qNumFormat=a.qMeasure.qNumFormat,r.qDef.isCustomFormatted=a.qMeasure.isCustomFormatted),delete r.qLibraryId,r.qDef.coloring=a.qMeasure.coloring,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,libraryId:l,properties:n,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var r=e.measure,n=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof De[n.type].updateModifier&&De[n.type].updateModifier(n,o.qHyperCubeDef);var a=ge.getExpression(r),s=""===a?a:De[n.type].generateExpression({expression:a,modifier:n,properties:o,dimensionAndFieldList:i});n.outputExpression=s,r.qDef.qDef=n.outputExpression,r.qDef.base.qLabelExpression?r.qDef.qLabelExpression=r.qDef.base.qLabelExpression:r.qDef.qLabel=r.qDef.base.qLabel||a,n.base=t()(!0,{},r.qDef.base)}({measure:r,modifier:e,properties:n,dimensionAndFieldList:a}),function(e){var t=i(e,"qDef.qAggrFunc");"Expr"!==t||_e(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&_e(e)&&"Expr"===e.qDef.base.qAggrFunc&&(e.qDef.qAggrFunc="Expr",delete e.qDef.base.qAggrFunc):(e.qDef.qAggrFunc="None",e.qDef.base.qAggrFunc="Expr")}(r)}})}({measure:r,properties:n,libraryItemsProps:o,dimensionAndFieldList:e}),Be(r)):Le(r)})})})}({measures:a,properties:o,model:r,libraryItemsProps:u,dimensionAndFieldList:d}).then(function(){return l?Je({oldProperties:n,newProperties:o,model:r}):Promise.resolve(!1)})})}function Le(e){!function(e){var t=Fe(e);return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&!De[e.type]})}(e)?ke.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,r=e.properties,n=e.layout;return!!Array.isArray(t)&&t.some(function(e){return Ge({modifiers:Fe(e),properties:r,layout:n})})}function je(e){var t=Fe(e);if(Array.isArray(t))for(var r=0;r<t.length;r++){var n=t[r];if(De[n.type]&&!n.disabled)return n}}function _e(e){var t=je(e);return!t||De[t.type].enableTotalsFunction(e)}function ze(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function Fe(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){ze(e).forEach(function(e){return function(e){var r=je(e);r&&(void 0!==r.outputExpression&&$e(r)!==e.qDef.qDef?delete e.qDef.base:!ke.isValid(e)&&r.base&&(e.qDef.base=t()(!0,{},r.base)))}(e)})}function Be(e){var t=Fe(e);Array.isArray(t)&&t.forEach(function(t){"object"===Pe(t)&&(t.disabled||!De[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)})}function Ve(e){return e.base||e.qDef&&e.qDef.base}function We(e){var t=Ve(e);return e.qLibraryId||t&&t.qLibraryId}function Ue(e){var t=e.measure,r=e.properties,n=e.layout;return!We(t)&&Ge({modifiers:Fe(t),properties:r,layout:n})}function Ge(e){var t=e.modifiers,r=e.properties,n=e.layout,o={};return Array.isArray(t)&&t.some(function(e){return!("object"!==Pe(e)||e.disabled||!De[e.type])&&(void 0===o[e.type]&&(o[e.type]=De[e.type].isApplicable({properties:r,layout:n})),o[e.type])})}function Ke(e){var t=e.model,r=e.dimensionAndFieldList;if(r)return Promise.resolve(r);var n=[],o={},i=t.app.getDimensionList().then(function(e){o.dimensionList=e});n.push(i);var a=t.app.getFieldList().then(function(e){o.fieldList=e});return n.push(a),Promise.all(n).then(function(){return o})}function Ye(e){var t=e.libraryIds,r=e.model,n=e.libraryItemsProps;if(n)return Promise.resolve(n);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},s=[];return o.forEach(function(e){var t=r.app.getMeasure(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),i.forEach(function(e){var t=r.app.getDimension(e).then(function(t){return t.getProperties().then(function(t){a[e]=t})});s.push(t)}),Promise.all(s).then(function(){return a})}function Xe(e,t){if(""!==t||-1===["qFmt","qDec","qThou"].indexOf(e))return t}function Je(e){var t=e.oldProperties,r=e.newProperties,n=e.model,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(r,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,r=e.oldProperties,n=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(n):O(t,r,n)}({model:n,oldProperties:t,newProperties:r}).then(function(){return o}):Promise.resolve(o)}function Ze(e){var t=e.modifiers,r=e.properties,n=e.layout;return Array.isArray(t)&&t.some(function(e){return"object"===Pe(e)&&!e.disabled&&De[e.type]&&De[e.type].needDimension({modifier:e,properties:r,layout:n})})}function Qe(e){var t=ze(e),r=[],n=[],o=!1;return t.forEach(function(t){var n=Fe(t);if(Ge({modifiers:n,properties:e})){var i=We(t);i&&r.push(i),o=o||Ze({modifiers:n,properties:e})}}),i(e,"qHyperCubeDef.qDimensions",[]).forEach(function(e){var t=e.qLibraryId;t&&n.push(t)}),{measureLibraryIds:r,dimensionLibraryIds:n}}function et(e){var t=e.model,r=e.libraryIds;return!e.masterItem&&r&&(r.measureLibraryIds.length||r.dimensionLibraryIds.length)?(Te[t.id].masterItemSubscriber=Te[t.id].masterItemSubscriber||function(e){var t=e.model,r=e.callback,n={},o={},a={},s={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function l(e){var t={},r=i(e,"qInfo.qType");return r&&s[r]&&s[r].forEach(function(r){t[r]=i(e,r)}),JSON.stringify(t)}function c(e){var t=e.qInfo.qId;if(n[t]){var o=l(e);n[t].properties!==o&&(n[t].properties=o,"function"==typeof r&&n[t].enabled&&r(e)),n[t].enabled=!0}}function u(e,r){return t.app[r](e).then(function(t){n[e]={listener:t.layoutSubscribe(c),enabled:!1,properties:l(t.layout)}})}return{subscribe:function(e){var r=e.measureLibraryIds,i=e.dimensionLibraryIds,s=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach(function(e){o[e]=!0}),a={},t.forEach(function(e){a[e]=!0})}({measureLibraryIds:r,dimensionLibraryIds:i}),Object.keys(n).forEach(function(e){o[e]||a[e]||(n[e].listener.dispose(),delete n[e])}),t.app&&(Object.keys(o).forEach(function(e){o[e]&&!n[e]&&s.push(u(e,"getMeasure"))}),Object.keys(a).forEach(function(e){a[e]&&!n[e]&&s.push(u(e,"getDimension"))})),Promise.all(s)},unsubscribe:function(){Object.keys(n).forEach(function(e){n[e].listener.dispose()}),n={}}}}({model:t,callback:function(e){return qe({model:t,masterItem:e}).then(function(){return t.app.clearUndoBuffer()})}}),Te[t.id].masterItemSubscriber.subscribe(r)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={exports:{}};return e[n](i,i.exports,r),i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{function e(t){var r,n=t;return n>9?(r=65+n-10)>90&&(r+=6):n="".concat(n).charCodeAt(0),[48,111,79,105,73,108].indexOf(r)>-1?e(n+1):String.fromCharCode(r)}function t(r){var n=e(r%62),o=Math.floor(r/62);return o>0?t(o)+n:n}function o(e){return o="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},o(e)}r.d(n,{default:()=>He});const i={getValue:function(e,t,r){if(null==e||null==t)return r;for(var n=t.split("."),o=e,i=0;i<n.length;++i){var a=n[i];if(""!==a){if(void 0===o[a]||null===o[a])return r;o=o[a]}}return o},setValue:function(e,t,r){if(null!=e&&null!=t){for(var n=t.split("."),o=n[n.length-1],i=e,a=0;a<n.length-1;++a){var s=n[a];void 0!==i[s]&&null!==i[s]||(i[s]=Number.isNaN(+n[a+1])?{}:[]),i=i[s]}void 0!==r?i[o]=r:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(e))},generateId:function(){return t(Math.round(99e11*Math.random()+1e11)).replace(/\W/g,"")}};function a(e){return function(e){if(Array.isArray(e))return s(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return s(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?s(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?c(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function u(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return n;return-1}return-1}const d={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;var r=e.indexOf(t[0]);if(-1!==r){for(var n=0;n<t.length;n++){var o=e.indexOf(t[n]);if(r>o)return!1;r=o}return!0}return!1},indexAdded:function(e,t){var r;for(r=0;r<e.length;++r)e[r]>=0&&e[r]>=t&&++e[r];e.push(t)},indexRemoved:function(e,t){var r,n=0;for(r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n},findItemByPropertyValue:function(e,t,r){if(e){for(var n=0;n<e.length;n++)if(e[n][t]===r)return e[n];return null}return null},findIndexByPropertyValue:u};var p=r(8),f=r.n(p);const h=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.dimensions).push.apply(t,a(n.qDimensions));var s,l=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qDimensions");l&&(s=o.excludedDimensions).push.apply(s,a(l))},m=function(e){var t,r=e.exportFormat,n=e.qHyperCubeDef,o=r.data[0];(t=o.measures).push.apply(t,l(n.qMeasures));var a,s=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qMeasures");s&&(a=o.excludedMeasures).push.apply(a,l(s))},g=function(e){var t=e.exportFormat,r=e.qHyperCubeDef,n=t.data[0];r.qInterColumnSortOrder||(r.qInterColumnSortOrder=[]),n.interColumnSortOrder=r.qInterColumnSortOrder.concat();var o=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,n.interColumnSortOrder)&&(n.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,r=e.properties;Object.keys(r).forEach(function(e){t.properties[e]=r[e]})},v=function(e){var t=e.exportFormat,r=e.properties;r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(function(e){t.properties.hasOwnProperty(e)||(t.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(function(e){Object.keys(e.qLayoutExclude.changed).forEach(function(t){e.qLayoutExclude.changed[t].to===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)})}(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!i.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude},y=function(e){e.forEach(function(e){f().cleanUpMeasure(e),e.qDef.modifiers&&(e.store={modifiers:e.qDef.modifiers},delete e.qDef.modifiers)})};function x(e,t,r){var n,o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=i.getValue(e,t);if(!i.isAtomicValue(s))try{if((o=(o=(n=JSON.stringify(s)).match(/:\{/g))?o.length:0)>2&&!a)return;s=JSON.parse(n)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[r]||(l[r]={}),l[r][t]=s}var S=r(909),w=r.n(S);function C(e,t){var r=w()(!0,{},t,e);return i.getValue(r,"qOtherTotalSpec.qOtherCounted")||i.setValue(r,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(r,"qOtherTotalSpec.qOtherLimit")||i.setValue(r,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),r.hasOwnProperty("othersLabel")||(r.othersLabel="Others"),r}function E(e,t){return w()(!0,{},t,e)}function R(e,t,r){return"function"==typeof e?e(t):Number.isNaN(+e)?r:e}var A=Math.pow(2,53)-1;function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}const P=function(e,t,r){var n="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(r,"qInfo.qType");i.setValue(e,"qInfo.qType",n),e.visualization=r.visualization},D=function(e,t,r){t.hasOwnProperty(e)&&(r[e]=t[e])},M=function(e,t,r,n){t.hasOwnProperty(e)?r[e]=t[e]:r[e]=n},T=function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},q=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},O=function(e){var t,r=e.exportFormat,n=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,s=r.data[0];for(t=0;t<s.dimensions.length;++t){var l=C(s.dimensions[t],a);i.qDimensions.length<n?i.qDimensions.push(l):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(l)}for(t=0;t<s.excludedDimensions.length;++t){var c=C(s.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(c):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(c)}},L=function(e){var t,r=e.exportFormat,n=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,s=r.data[0];for(t=0;t<s.measures.length;++t){var l=E(s.measures[t],a);i.qMeasures.length<n?i.qMeasures.push(l):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(l)}for(t=0;t<s.excludedMeasures.length;++t){var c=E(s.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(c):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(c)}},N=function(e){var t=e.exportFormat,r=e.dataDefinition,n=void 0===r?{}:r,o=t.data[0],i=n.dimensions||{max:0},a=n.measures||{max:0},s=R(a.max,o.dimensions.length,A),l=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,s,A),minDimensions:R(i.min,l,0),maxMeasures:s,minMeasures:l}},j=function(e){var t=e.exportFormat,r=e.newHyperCubeDef,n=t.data[0],o=r.qDimensions.length+r.qMeasures.length;r.qInterColumnSortOrder=n.interColumnSortOrder.concat();var i=r.qInterColumnSortOrder.length;if(i!==o)for(r.qLayoutExclude&&(r.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(r.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(r.qInterColumnSortOrder,i))},_=function(e){var t=e.exportFormat,r=e.initialProperties,n=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach(function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=w()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&n?i.setValue(o,"".concat(n,".qHyperCubeDef"),t.properties.qHyperCubeDef):r.hasOwnProperty(e)||-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)||function(e,t){return"components"===t&&Array.isArray(e[t])&&e[t].some(function(e){return"general"===e.key})}(t.properties,e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]}),null===(o=w()(!0,{},r,o)).components&&(o.components=[]),o},z=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>r&&r>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>n||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!r&&a.dimensions.length>0},F=function(e){var t=e.exportFormat,r=e.maxDimensions,n=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,s=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(s.dimensions.length>r&&r>0||s.excludedDimensions&&s.excludedDimensions.length&&s.dimensions.length+s.excludedDimensions.length>n)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(s.measures.length>o&&o>0||s.excludedMeasures&&s.excludedMeasures.length&&s.measures.length+s.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&s.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&s.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.dimensions&&"function"==typeof n.dimensions.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return I(e)}(t=a.qDimensions)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qDimensions=[],s.forEach(function(e){a.qDimensions.push(e),n.dimensions.added(e,r)})}},H=function(e){var t,r=e.newProperties,n=e.dataDefinition,o=e.hypercubePath;if(n.measures&&"function"==typeof n.measures.added){var a=i.getValue(r,o||"").qHyperCubeDef,s=function(e){if(Array.isArray(e))return k(e)}(t=a.qMeasures)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return k(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?k(e,t):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}();a.qMeasures=[],s.forEach(function(e){a.qMeasures.push(e),n.measures.added(e,r)})}},B=function(e){var t=e.measures,r=e.modifierTypes;t&&r&&f().isSupportedModifiers(r)&&t.forEach(function(e){e.store&&e.store.modifiers&&(e.qDef.modifiers=e.store.modifiers),delete e.store})};function V(e,t){var r=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!r&&(Object.keys(r).forEach(function(t){i.setValue(e,t,r[t])}),delete e.qLayoutExclude.quarantine[t],!0)}const W={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,t={data:[],properties:{}},r=0;r<e;++r)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),a=t.qProperty,s=i.getValue(a,r||""),l=s.qHyperCubeDef;return l.qInterColumnSortOrder||(l.qInterColumnSortOrder=[]),h({exportFormat:o,qHyperCubeDef:l}),m({exportFormat:o,qHyperCubeDef:l}),g({exportFormat:o,qHyperCubeDef:l}),delete l.qLayoutExclude,b({exportFormat:o,properties:a}),r&&(o.properties.qHyperCubeDef=l,delete s.qHyperCubeDef),v({exportFormat:o,properties:a}),n||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters",!0),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=void 0===r?{}:r,o=e.dataDefinition,a=void 0===o?{}:o,s=e.defaultPropertyValues,l=void 0===s?{}:s,c=e.hypercubePath,u=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,h=void 0===f||f,m={qChildren:[]},g=_({exportFormat:t,initialProperties:n,hypercubePath:c}),b=i.getValue(n,c||"").qHyperCubeDef,v=i.getValue(g,c||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,w=y.maxMeasures,C=y.minMeasures,E=l.defaultDimension,R=void 0===E?T():E,A=l.defaultMeasure,I=void 0===A?q():A;v.qDimensions.length=0,v.qMeasures.length=0,z({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C})&&F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:w,minMeasures:C,newHyperCubeDef:v}),O({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),L({exportFormat:t,maxMeasures:w,minMeasures:C,newHyperCubeDef:v,defaultMeasure:I}),$({newProperties:g,dataDefinition:a,hypercubePath:c}),H({newProperties:g,dataDefinition:a,hypercubePath:c}),j({exportFormat:t,newHyperCubeDef:v}),D("qMaxStackedCells",b,v),D("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),P(g,t,n),m.qProperty=g;var k=i.getValue(u||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:k}),p&&V(m.qProperty,"storedFilters"),"S"===v.qMode&&h&&V(m.qProperty,"dynamicScript"),m}};var U={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,r,n){t=t||[];var o=u(e,n,r),i=u(t,n,r);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function K(e,t){return e.length!==t}const Y={create:function(e,t){if(!e||!U[e])throw new Error("Attribute Expressions Util: ID required");var r={};return t&&Object.keys(t).forEach(function(e){r[e]=t[e]}),r.id=e,r.qAttribute=!0,r},moveByIdFromGroup:function(e,t,r,n,o){r=r||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][r],s=t.length;if(G(a,t,n,o),K(t,s))return t}return t},IDMAP:{CELL_BACKGROUND_COLOR:"cellBackgroundColor",CELL_FOREGROUND_COLOR:"cellForegroundColor",COLOR_BY_ALTERNATIVE:"colorByAlternative",COLOR_BY_EXPRESSION:"colorByExpression",TOOLTIP:"tooltip",CELL_LINK_LABEL:"urlLabel",CELL_LINK_URL:"url"}},X={getNumDimensions:function(e){return i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.getValue(e,"qHyperCubeDef.qMeasures.length",0)},wrapFieldName:function(e){return e.split(" ").length>1&&"="!==e[0]&&"["!==e[0]?"[".concat(e,"]"):e},getItemLabel:function(e){return e.label||e.name}},J={colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>0&&X.getNumMeasures(e)<=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>0},expression:function(e){return X.getNumMeasures(e)>=1}}},Z={colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}};var Q={scatterplot:Z,"sn-scatter-plot":Z,piechart:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumMeasures(e)>=1}}},linechart:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)<=1},expression:function(e){return X.getNumMeasures(e)>=1}}},map:{colorModeOptions:{primary:function(){return!0},dimension:function(e){return X.getNumDimensions(e)>=1},multiColor:function(e){return X.getNumMeasures(e)>1},measure:function(e){return X.getNumDimensions(e)>=1},expression:function(e){return X.getNumDimensions(e)>=1}}},distributionplot:{colorModeOptions:{primary:function(){return!0},dimension:function(){return!0},multiColor:function(){return!1},measure:function(){return!0},expression:function(e){return X.getNumDimensions(e)>=1}}}};function ee(e,t,r){if(Array.isArray(e[t])){var n=d.findIndexByPropertyValue(e[t],"id",r);n>=0&&e[t].splice(n,1)}else e[t]=[]}function te(e,t){var r=Y.IDMAP.COLOR_BY_ALTERNATIVE;e.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)}),t.forEach(function(e){ee(e,"qAttributeDimensions",r),ee(e,"qAttributeExpressions",r)})}function re(e,t){if(t){var r="="===t.charAt(0);e.color.altLabel=r?{qStringExpression:{qExpr:t.substr(1)}}:t}}function ne(e){var t=e.properties,r=e.isDimension,n=e.dimensions,o=e.excludedDimensions,a=e.measures,s=e.label;te(n,o);var l=n[n.length-1];if(l){var c=r?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),u=i.getValue(t,"color.formatting.qNumFormat"),p=i.getValue(t,"color.formatting.isCustomFormatted");if(c){var f=Y.create(Y.IDMAP.COLOR_BY_ALTERNATIVE);switch(c.type){case"expression":!function(e){var t=e.attributeExpression,r=e.label,n=e.item,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=r||n.label,o?t.qDef=n.key:(t.qExpression=n.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=n.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:s,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,r=e.measures,n=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(r,"qLibraryId",n.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),void 0!==n.expression?t.qExpression=n.expression:t.qLibraryId=n.key,t.colorMapRef=n.key}({attributeExpression:f,measures:a,item:c,isDimension:r,qNumFormat:u,isCustomFormatted:p})}r?(f.qSortBy={qSortByAscii:1},l.qAttributeDimensions.push(f)):l.qAttributeExpressions.push(f)}}}function oe(e,t,r,n){var o,i,a,s={};switch(e){case"dimension":r.qLibraryId?(s.type="dimension",s.name=r.qLibraryId,s.id=r.qLibraryId):(s.type="field",t?(s.name=r.label||r.qDef,s.id=r.qDef):(s.name=r.qDef.qFieldDefs[0],s.label=(a=r.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(r,t),o?(s.type="measure",s.name=o,s.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(r,n),i&&(s.expression=i)):(s.type="expression",t?(s.name=r.label||r.qExpression,s.id=r.qExpression):(s.name=r.qDef.qDef,s.label=function(e){var t=e.qDef;return t.qLabelExpression?t.qLabelExpression:t.qLabel?t.qLabel:t.qDef}(r)));break;default:throw new Error('columnType should be "dimension" or "measure"')}return s}const ie={useMasterNumberFormat:function(e){e.quarantine={qNumFormat:e.qNumFormat||{},isCustomFormatted:e.isCustomFormatted||!1},e.qNumFormat=null,e.isCustomFormatted=void 0}};function ae(e,t,r,n){var o=t.type,i=e.color,a=i.mode,s=X.getItemLabel(t);switch(re(e,s||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:s,key:t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}i.auto=!1,i.mode=a}function se(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"color.byDimDef");n.activeDimensionIndex=Math.min(n.activeDimensionIndex,r.length-1);var o=oe("dimension",!1,r[n.activeDimensionIndex]);o.activeDimensionIndex=n.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=r[function(e,t,r){var n=i.getValue(t,"visualization"),o=r.split("."),a=Number(o[1]),s=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===n&&"point"===s}(r,e,t)?0:r.length-1],o=Y.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(n.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||n)),!!a}(e,t))return;ne({properties:e,isDimension:!0,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byDimDef.label")})}const le=function(e,t,r){i.setValue(e,t,r),i.isAtomicValue(r)&&function(e,t,r){var n=e.qLayoutExclude;n&&(n.changed||(n.changed={}),n.changed[t]={from:i.getValue(e,t),to:r})}(e,t,r)},ce=function(e,t){var r={primary:!0};if(e){var n=(Q[t]||J).colorModeOptions||J.colorModeOptions;r.byDimension=n.dimension(e),r.byMeasure=n.measure(e),r.byMultiple=n.multiColor(e),r.byExpression=n.expression(e)}return r},ue=function(e){var t=e.canColorBy,r=e.autoColor,n=e.colorMode,o=e.dimensions;return!(t[n]&&!r&&("byDimension"!==n&&"byMeasure"!==n||!o.length))},de=function(e,t){var r,n=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),s=i.getValue(e,"".concat(t,"qMeasures"),[]),l=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,l):!(r={auto:o,colorMode:n,dimensions:a}).auto&&"byDimension"===r.colorMode&&r.dimensions.length>0?se(e,t):function(e){var t=e.auto,r=e.colorMode,n=e.dimensions,o=e.measures,a=e.properties,s=i.getValue(a,"visualization");return!(t||"byMeasure"!==r||!n.length||"map"!==s&&!o.length)}({auto:o,colorMode:n,dimensions:a,measures:s,properties:e})?function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&re(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var r=i.getValue(e,"".concat(t,"qMeasures"),[]),n=i.getValue(e,"color.byMeasureDef");if(n.activeMeasureIndex=Math.min(n.activeMeasureIndex,r.length-1),n.activeMeasureIndex>-1){var o=oe("measure",!1,r[n.activeMeasureIndex],!0);o.activeMeasureIndex=n.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,n)&&function(e,t){var r=i.getValue(e,"".concat(t,"qDimensions"),[]),n=i.getValue(e,"".concat(t,"qMeasures"),[]),o=r[r.length-1],a=Y.IDMAP.COLOR_BY_ALTERNATIVE,s=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!s,s||n[0])),!!s}(e,t))return;ne({properties:e,isDimension:!1,dimensions:r,excludedDimensions:o,measures:n,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var r=i.getValue(e,"color.mode"),n=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===r&&o.length<2&&i.setValue(e,"color.mode","primary"),te(n,a)}(e,t)},pe=function(e){e.forEach(function(e){e.qOtherTotalSpec&&"qTotalMode"in e.qOtherTotalSpec&&delete e.qOtherTotalSpec.qTotalMode})},fe=function(e){var t=e.shouldUpdateColorBy,r=e.properties,n=i.getValue(r,"qHyperCubeDef.qMeasures",[]),o=i.getValue(r,"color.mode","");return!t&&"byExpression"===o&&n.length>0},he=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),r=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:r,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},me=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),r=i.getValue(e,"color.persistent",!1);return t.length>1&&!r},be={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=W.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),s=i.measures.concat(i.excludedMeasures),l=Y.IDMAP,c=l.COLOR_BY_ALTERNATIVE,u=l.COLOR_BY_EXPRESSION;return Y.moveByIdFromGroup(a,[],"qAttributeDimensions",c),Y.moveByIdFromGroup(a,[],"qAttributeExpressions",c),Y.moveByIdFromGroup(s,[],"qAttributeExpressions",u),o},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=W.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:a,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),h=i.getValue(d,"color.mode",""),m=i.getValue(d,"color.auto",""),g=ce(d,p),b=ue({canColorBy:g,autoColor:m,colorMode:h,dimensions:f});return g[h]?fe({shouldUpdateColorBy:b,properties:d})&&he(d):me(d),b&&de(d,"qHyperCubeDef."),ge(d)&&le(d,"color.persistent",!0),pe(f),u}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,r=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?V(r,"unsupportedAutoMinMax")||w()(r.measureAxis,t.measureAxis):V(r,"supportedAutoMinMax")||w()(r.measureAxis,t.measureAxis)},xe=function(e){var t,r=e.exportFormat,n=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,s=o.measureAxis;if(function(e){var t=e.initialProperties;return!(!e.exportFormat.properties.measureAxes||t.measureAxes||!t.measureAxis||void 0===t.measureAxis.autoMinMax)}({exportFormat:r,initialProperties:n})){var l=function(e){var t=[];return e.qMeasures.length>0&&e.qMeasures.forEach(function(e){if(e.qDef.series){var r=e.qDef.series,n=r.type,o=r.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(n)&&t[o].type[n]++,t[o].type.total++}}),t}(a);l.length?(i&&(t=l.filter(function(e){return e.type[i]>0}).sort(function(e,t){return t.type[i]-e.type[i]})),t&&t.length||(t=l.sort(function(e,t){return t.type.total-e.type.total})),t&&t[0]&&w()(s,r.properties.measureAxes[t[0].axis])):w()(s,r.properties.measureAxes[0])}},Se=function(e){if(e.qDimensions.length>1){var t=e.qInterColumnSortOrder.indexOf(0);if(0!==t){var r=e.qInterColumnSortOrder[0];e.qInterColumnSortOrder[0]=0,e.qInterColumnSortOrder[t]=r}}},we={exportProperties:function(e){var t=e.propertyTree,r=e.hypercubePath,n=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:r,viewDataMode:n}),s=a.properties;return i?(x(s,"measureAxis.min","supportedAutoMinMax"),x(s,"measureAxis.max","supportedAutoMinMax")):(x(s,"measureAxis.min","unsupportedAutoMinMax"),x(s,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,r=e.initialProperties,n=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,s=e.extension,l=e.supportedFilters,c=e.isHCModifierSupported,u=be.importProperties({exportFormat:t,initialProperties:r,dataDefinition:n,defaultPropertyValues:o,hypercubePath:i,extension:s,supportedFilters:l,isHCModifierSupported:c}),d=u.qProperty;return ye({initialProperties:r,properties:d}),xe({exportFormat:t,initialProperties:r,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],u}};function Ce(e,t,r){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(r)}function Ee(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,a);if(void 0!==s){var l=i.getValue(o,"qDef.cId");l||(l=i.generateId(),i.setValue(o,"qDef.cId",l));var c=Ce(r,n,l);i.setValue(t,c,s),i.setValue(o,a,void 0)}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}function Re(e){var t=e.properties,r=e.arrayPath,n=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,r,[]).forEach(function(e){return function(e){var t=e.properties,r=e.quarantineName,n=e.arrayName,o=e.item,a=e.itemPath,s=i.getValue(o,"qDef.cId");if(s){var l=Ce(r,n,s),c=i.getValue(t,l);void 0!==c&&(i.setValue(o,a,c),i.setValue(t,l,void 0))}}({properties:t,quarantineName:n,arrayName:o,item:e,itemPath:a})})}var Ae="qHyperCubeDef.qMeasures",Ie="conditionalColoring",ke="measures",Pe="qDef.conditionalColoring";const De={quarantine:function(e){Ee({properties:e,arrayPath:Ae,quarantineName:Ie,arrayName:ke,itemPath:Pe})},unquarantine:function(e){Re({properties:e,arrayPath:Ae,itemPath:Pe,arrayName:ke,quarantineName:Ie})}};var Me="qHyperCubeDef.qMeasures",Te="measures",qe="qHyperCubeDef.qDimensions",Oe="dimensions",Le="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",je="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",_e="alternativeDimensions",ze="qCalcCondition",Fe="conditionalShowHide";const $e={quarantine:function(e){Ee({properties:e,arrayPath:Me,quarantineName:Fe,arrayName:Te,itemPath:ze}),Ee({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:Fe,arrayName:Te,itemPath:ze}),Re({properties:e,arrayPath:qe,quarantineName:Fe,arrayName:Oe,itemPath:ze})},quarantineAlternative:function(e){Ee({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Ee({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Le,quarantineName:Fe,arrayName:Ne,itemPath:ze}),Re({properties:e,arrayPath:je,quarantineName:Fe,arrayName:_e,itemPath:ze})}},He={hypercube:W,colorChart:be,axisChart:we,quarantineProperty:x,unquarantineProperty:V,quarantineArrayProp:Ee,unquarantineArrayProp:Re,conditionalColoring:De,conditionalShow:$e}})(),n.default})()),dv.exports),fv=Jt(pv);const hv="qHyperCubeDef.qMeasures",mv="measures",gv="qHyperCubeDef.qDimensions",bv="dimensions",vv="qDef.representation",yv="tableRepresentation",xv="qDef.conditionalColoring",Sv="conditionalColoring",wv="qMiniChartDef",Cv="miniChartDef",Ev=({propertyTree:e,hyperCubePath:t})=>{const r=fv.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:n,qDimensions:o,qMeasures:i}}=r.properties,a=((e,t,r)=>{const n=e.length+t.length,o=(r?.length===n?r:Array.from(Array(n).keys())).map(r=>((e,t,r)=>{const n=t.length,o=e<n?t[e]:r[e-n],{columnWidth:i}=o.qDef;return i||-1})(r,e,t));return o})(o,i,n);return At(r,"properties.qHyperCubeDef",{...r.properties.qHyperCubeDef,columnWidths:a}),fv.quarantineProperty(r.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),fv.quarantineProperty(r.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),fv.quarantineProperty(r.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{fv.quarantineArrayProp({properties:e,arrayPath:gv,itemPath:vv,arrayName:bv,quarantineName:yv}),fv.quarantineArrayProp({properties:e,arrayPath:hv,itemPath:vv,arrayName:mv,quarantineName:yv}),fv.quarantineArrayProp({properties:e,arrayPath:hv,itemPath:xv,arrayName:mv,quarantineName:Sv}),fv.quarantineArrayProp({properties:e,arrayPath:hv,itemPath:wv,arrayName:mv,quarantineName:Cv})})(r.properties),r};const Rv=/^q[A-Z]/,Av=[/\bqnDec\b/,/\bqv\b/,/\bcId\b/,/^title$/,/^subtitle$/,/^footnote$/,/^qLayoutExclude\b.+/],Iv=e=>"object"==typeof e&&null!==e,kv=(e,t)=>(Object.entries(e).forEach(([r,n])=>{const o=void 0===t?r:`${t}.${r}`;((e,t)=>!Rv.test(e)&&!Av.some(e=>e.test(t)))(r,o)?delete e[r]:Array.isArray(n)?e[r]=n.map((e,t)=>Iv(e)?kv(e,`${o}.${t}`):e):Iv(n)&&(e[r]=kv(n,o))}),e),Pv=(e,t,r,n)=>{let o=t;n&&(o=t-n);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(r)&&r.length>0){const e=r[t];null===e||Array.isArray(e)||"object"!=typeof e?i.qDef.columnWidth="number"==typeof e&&e>0?{type:sg.Pixels,pixels:e}:{type:sg.FitToContent}:i.qDef.columnWidth=e}return i},Dv=({exportFormat:e,initialProperties:t,extension:r,hypercubePath:n,defaultPropertyValues:o,viewDataMode:i,env:a})=>{const s=xb(a);if(i){try{e=structuredClone(e)}catch(e){s.error({msg:"Failed to copy source properties",payload:e})}kv(e.properties)}const l=fv.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:n,extension:r});if(fv.conditionalShow.unquarantine(l.qProperty),i)At(l,"qProperty.totals.show",!1),At(l,"qProperty.usePagination",!0),At(l,"qProperty.accessibleHeader",!0);else{fv.unquarantineProperty(l.qProperty,"straightTableColumnOrder"),(e=>{fv.unquarantineArrayProp({properties:e,arrayPath:gv,itemPath:vv,arrayName:bv,quarantineName:yv}),fv.unquarantineArrayProp({properties:e,arrayPath:hv,itemPath:vv,arrayName:mv,quarantineName:yv}),fv.unquarantineArrayProp({properties:e,arrayPath:hv,itemPath:xv,arrayName:mv,quarantineName:Sv}),fv.unquarantineArrayProp({properties:e,arrayPath:hv,itemPath:wv,arrayName:mv,quarantineName:Cv})})(l.qProperty);const{qHyperCubeDef:{qDimensions:e,qMeasures:t,qColumnOrder:r,columnWidths:n}}=l.qProperty,{dimensions:o,measures:i}=((e,t,r,n)=>{const o=e.length,i=o+t.length,a=r?.length===i?r:Array.from(Array(i).keys());return{dimensions:a.filter(e=>e<o).map(t=>Pv(e,t,n)),measures:a.filter(e=>e>=o).map(e=>Pv(t,e,n,o))}})(e,t,r,n);Array.isArray(n)&&n.length>0&&(At(l,"qProperty.qHyperCubeDef.qDimensions",o),At(l,"qProperty.qHyperCubeDef.qMeasures",i))}return l};var Mv,Tv,qv={},Ov={exports:{}},Lv={exports:{}};function Nv(){return Mv||(Mv=1,function(e){function t(r){return e.exports=t="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},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Lv)),Lv.exports}var jv={};function _v(e,t){return function(){return null}}function zv(e){return e&&"object"===$l(e)&&e.constructor===Object}function Fv(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{clone:!0},n=r.clone?$r({},e):e;return zv(e)&&zv(t)&&Object.keys(t).forEach(function(o){"__proto__"!==o&&(zv(t[o])&&o in e?n[o]=Fv(e[o],t[o],r):n[o]=t[o])}),n}var $v=(Qi.element,function(){return null});$v.isRequired=(Qi.element.isRequired,function(){return null});var Hv=function(){return null};var Bv,Vv,Wv={exports:{}},Uv={};var Gv=(Vv||(Vv=1,Wv.exports=function(){if(Bv)return Uv;Bv=1;var e=60103,t=60106,r=60107,n=60108,o=60114,i=60109,a=60110,s=60112,l=60113,c=60120,u=60115,d=60116,p=60121,f=60122,h=60117,m=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),n=b("react.strict_mode"),o=b("react.profiler"),i=b("react.provider"),a=b("react.context"),s=b("react.forward_ref"),l=b("react.suspense"),c=b("react.suspense_list"),u=b("react.memo"),d=b("react.lazy"),p=b("react.block"),f=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function v(p){if("object"==typeof p&&null!==p){var f=p.$$typeof;switch(f){case e:switch(p=p.type){case r:case o:case n:case l:case c:return p;default:switch(p=p&&p.$$typeof){case a:case s:case d:case u:case i:return p;default:return f}}case t:return f}}}var y=i,x=e,S=s,w=r,C=d,E=u,R=t,A=o,I=n,k=l;return Uv.ContextConsumer=a,Uv.ContextProvider=y,Uv.Element=x,Uv.ForwardRef=S,Uv.Fragment=w,Uv.Lazy=C,Uv.Memo=E,Uv.Portal=R,Uv.Profiler=A,Uv.StrictMode=I,Uv.Suspense=k,Uv.isAsyncMode=function(){return!1},Uv.isConcurrentMode=function(){return!1},Uv.isContextConsumer=function(e){return v(e)===a},Uv.isContextProvider=function(e){return v(e)===i},Uv.isElement=function(t){return"object"==typeof t&&null!==t&&t.$$typeof===e},Uv.isForwardRef=function(e){return v(e)===s},Uv.isFragment=function(e){return v(e)===r},Uv.isLazy=function(e){return v(e)===d},Uv.isMemo=function(e){return v(e)===u},Uv.isPortal=function(e){return v(e)===t},Uv.isProfiler=function(e){return v(e)===o},Uv.isStrictMode=function(e){return v(e)===n},Uv.isSuspense=function(e){return v(e)===l},Uv.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===o||e===m||e===n||e===l||e===c||e===g||"object"==typeof e&&null!==e&&(e.$$typeof===d||e.$$typeof===u||e.$$typeof===i||e.$$typeof===a||e.$$typeof===s||e.$$typeof===h||e.$$typeof===p||e[0]===f)},Uv.typeOf=v,Uv}()),Wv.exports),Kv=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Yv(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e.displayName||e.name||function(e){var t="".concat(e).match(Kv);return t&&t[1]||""}(e)||t}function Xv(e,t,r){var n=Yv(t);return e.displayName||(""!==n?"".concat(r,"(").concat(n,")"):r)}var Jv,Zv="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")(),Qv=Qi.oneOfType([Qi.func,Qi.object]),ey=Object.freeze({__proto__:null,HTMLElementType:function(e,t,r,n,o){return null},chainPropTypes:_v,deepmerge:Fv,elementAcceptingRef:$v,elementTypeAcceptingRef:Hv,exactProp:function(e){return e},formatMuiErrorMessage:function(e){for(var t="https://mui.com/production-error/?code="+e,r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified Material-UI error #"+e+"; visit "+t+" for the full message."},getDisplayName:function(e){if(null!=e){if("string"==typeof e)return e;if("function"==typeof e)return Yv(e,"Component");if("object"===$l(e))switch(e.$$typeof){case Gv.ForwardRef:return Xv(e,e.render,"ForwardRef");case Gv.Memo:return Xv(e,e.type,"memo");default:return}}},ponyfillGlobal:Zv,refType:Qv}),ty=Zt(ey);function ry(){if(Jv)return jv;Jv=1,Object.defineProperty(jv,"__esModule",{value:!0}),jv.hexToRgb=r,jv.rgbToHex=function(e){if(0===e.indexOf("#"))return e;var t=o(e),r=t.values;return"#".concat(r.map(function(e){return function(e){var t=e.toString(16);return 1===t.length?"0".concat(t):t}(e)}).join(""))},jv.hslToRgb=n,jv.decomposeColor=o,jv.recomposeColor=i,jv.getContrastRatio=function(e,t){var r=a(e),n=a(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)},jv.getLuminance=a,jv.emphasize=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:.15;return a(e)>.5?l(e,t):c(e,t)},jv.fade=function(e,t){return s(e,t)},jv.alpha=s,jv.darken=l,jv.lighten=c;var e=ty;function t(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;return Math.min(Math.max(t,e),r)}function r(e){e=e.substr(1);var t=new RegExp(".{1,".concat(e.length>=6?2:1,"}"),"g"),r=e.match(t);return r&&1===r[0].length&&(r=r.map(function(e){return e+e})),r?"rgb".concat(4===r.length?"a":"","(").concat(r.map(function(e,t){return t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3}).join(", "),")"):""}function n(e){var t=(e=o(e)).values,r=t[0],n=t[1]/100,a=t[2]/100,s=n*Math.min(a,1-a),l=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:(e+r/30)%12;return a-s*Math.max(Math.min(t-3,9-t,1),-1)},c="rgb",u=[Math.round(255*l(0)),Math.round(255*l(8)),Math.round(255*l(4))];return"hsla"===e.type&&(c+="a",u.push(t[3])),i({type:c,values:u})}function o(t){if(t.type)return t;if("#"===t.charAt(0))return o(r(t));var n=t.indexOf("("),i=t.substring(0,n);if(-1===["rgb","rgba","hsl","hsla"].indexOf(i))throw new Error((0,e.formatMuiErrorMessage)(3,t));var a=t.substring(n+1,t.length-1).split(",");return{type:i,values:a=a.map(function(e){return parseFloat(e)})}}function i(e){var t=e.type,r=e.values;return-1!==t.indexOf("rgb")?r=r.map(function(e,t){return t<3?parseInt(e,10):e}):-1!==t.indexOf("hsl")&&(r[1]="".concat(r[1],"%"),r[2]="".concat(r[2],"%")),"".concat(t,"(").concat(r.join(", "),")")}function a(e){var t="hsl"===(e=o(e)).type?o(n(e)).values:e.values;return t=t.map(function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function s(e,r){return e=o(e),r=t(r),"rgb"!==e.type&&"hsl"!==e.type||(e.type+="a"),e.values[3]=r,i(e)}function l(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]*=1-r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]*=1-r;return i(e)}function c(e,r){if(e=o(e),r=t(r),-1!==e.type.indexOf("hsl"))e.values[2]+=(100-e.values[2])*r;else if(-1!==e.type.indexOf("rgb"))for(var n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*r;return i(e)}return jv}var ny,oy,iy,ay={},sy={exports:{}},ly={exports:{}},cy={exports:{}};function uy(){return ny||(ny=1,function(e){var t=Nv().default;e.exports=function(e,r){if("object"!=t(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,r||"default");if("object"!=t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports}(cy)),cy.exports}function dy(){return oy||(oy=1,function(e){var t=Nv().default,r=uy();e.exports=function(e){var n=r(e,"string");return"symbol"==t(n)?n:n+""},e.exports.__esModule=!0,e.exports.default=e.exports}(ly)),ly.exports}function py(){return iy||(iy=1,function(e){var t=dy();e.exports=function(e,r,n){return(r=t(r))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports}(sy)),sy.exports}var fy,hy={exports:{}};function my(){return fy||(fy=1,function(e){var t=Ic();e.exports=function(e,r){if(null==e)return{};var n,o,i=t(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(o=0;o<a.length;o++)n=a[o],-1===r.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i},e.exports.__esModule=!0,e.exports.default=e.exports}(hy)),hy.exports}var gy,by={};function vy(){if(gy)return by;gy=1;var e=Gl();Object.defineProperty(by,"__esModule",{value:!0}),by.default=function(e){var o=e.values,i=void 0===o?{xs:0,sm:600,md:960,lg:1280,xl:1920}:o,a=e.unit,s=void 0===a?"px":a,l=e.step,c=void 0===l?5:l,u=(0,r.default)(e,["values","unit","step"]);function d(e){var t="number"==typeof i[e]?i[e]:e;return"@media (min-width:".concat(t).concat(s,")")}function p(e,t){var r=n.indexOf(t);return r===n.length-1?d(e):"@media (min-width:".concat("number"==typeof i[e]?i[e]:e).concat(s,") and ")+"(max-width:".concat((-1!==r&&"number"==typeof i[n[r+1]]?i[n[r+1]]:t)-c/100).concat(s,")")}return(0,t.default)({keys:n,values:i,up:d,down:function(e){var t=n.indexOf(e)+1,r=i[n[t]];return t===n.length?d("xs"):"@media (max-width:".concat(("number"==typeof r&&t>0?r:e)-c/100).concat(s,")")},between:p,only:function(e){return p(e,e)},width:function(e){return i[e]}},u)},by.keys=void 0;var t=e(Ec()),r=e(my()),n=["xs","sm","md","lg","xl"];return by.keys=n,by}var yy,xy={};function Sy(){if(yy)return xy;yy=1;var e=Gl();Object.defineProperty(xy,"__esModule",{value:!0}),xy.default=function(e,n,o){var i;return(0,r.default)({gutters:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return console.warn(["Material-UI: theme.mixins.gutters() is deprecated.","You can use the source of the mixin directly:","\n paddingLeft: theme.spacing(2),\n paddingRight: theme.spacing(2),\n [theme.breakpoints.up('sm')]: {\n paddingLeft: theme.spacing(3),\n paddingRight: theme.spacing(3),\n },\n "].join("\n")),(0,r.default)({paddingLeft:n(2),paddingRight:n(2)},o,(0,t.default)({},e.up("sm"),(0,r.default)({paddingLeft:n(3),paddingRight:n(3)},o[e.up("sm")])))},toolbar:(i={minHeight:56},(0,t.default)(i,"".concat(e.up("xs")," and (orientation: landscape)"),{minHeight:48}),(0,t.default)(i,e.up("sm"),{minHeight:64}),i)},o)};var t=e(py()),r=e(Ec());return xy}var wy,Cy={},Ey={};function Ry(){if(wy)return Ey;wy=1,Object.defineProperty(Ey,"__esModule",{value:!0}),Ey.default=void 0;var e={black:"#000",white:"#fff"};return Ey.default=e,Ey}var Ay,Iy={};function ky(){if(Ay)return Iy;Ay=1,Object.defineProperty(Iy,"__esModule",{value:!0}),Iy.default=void 0;var e={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#d5d5d5",A200:"#aaaaaa",A400:"#303030",A700:"#616161"};return Iy.default=e,Iy}var Py,Dy={};function My(){if(Py)return Dy;Py=1,Object.defineProperty(Dy,"__esModule",{value:!0}),Dy.default=void 0;var e={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"};return Dy.default=e,Dy}var Ty,qy={};function Oy(){if(Ty)return qy;Ty=1,Object.defineProperty(qy,"__esModule",{value:!0}),qy.default=void 0;var e={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"};return qy.default=e,qy}var Ly,Ny={};function jy(){if(Ly)return Ny;Ly=1,Object.defineProperty(Ny,"__esModule",{value:!0}),Ny.default=void 0;var e={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"};return Ny.default=e,Ny}var _y,zy={};function Fy(){if(_y)return zy;_y=1,Object.defineProperty(zy,"__esModule",{value:!0}),zy.default=void 0;var e={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"};return zy.default=e,zy}var $y,Hy={};function By(){if($y)return Hy;$y=1,Object.defineProperty(Hy,"__esModule",{value:!0}),Hy.default=void 0;var e={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"};return Hy.default=e,Hy}var Vy,Wy,Uy={};function Gy(){if(Vy)return Uy;Vy=1,Object.defineProperty(Uy,"__esModule",{value:!0}),Uy.default=void 0;var e={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};return Uy.default=e,Uy}function Ky(){if(Wy)return Cy;Wy=1;var e=Gl();Object.defineProperty(Cy,"__esModule",{value:!0}),Cy.default=function(e){var g=e.primary,b=void 0===g?{light:a.default[300],main:a.default[500],dark:a.default[700]}:g,v=e.secondary,y=void 0===v?{light:s.default.A200,main:s.default.A400,dark:s.default.A700}:v,x=e.error,S=void 0===x?{light:l.default[300],main:l.default[500],dark:l.default[700]}:x,w=e.warning,C=void 0===w?{light:c.default[300],main:c.default[500],dark:c.default[700]}:w,E=e.info,R=void 0===E?{light:u.default[300],main:u.default[500],dark:u.default[700]}:E,A=e.success,I=void 0===A?{light:d.default[300],main:d.default[500],dark:d.default[700]}:A,k=e.type,P=void 0===k?"light":k,D=e.contrastThreshold,M=void 0===D?3:D,T=e.tonalOffset,q=void 0===T?.2:T,O=(0,r.default)(e,["primary","secondary","error","warning","info","success","type","contrastThreshold","tonalOffset"]);function L(e){return(0,p.getContrastRatio)(e,h.text.primary)>=M?h.text.primary:f.text.primary}var N=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:300,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:700;if(!(e=(0,t.default)({},e)).main&&e[r]&&(e.main=e[r]),!e.main)throw new Error((0,n.formatMuiErrorMessage)(4,r));if("string"!=typeof e.main)throw new Error(_formatMuiErrorMessage(5,JSON.stringify(e.main)));return m(e,"light",o,q),m(e,"dark",i,q),e.contrastText||(e.contrastText=L(e.main)),e},j={dark:h,light:f},_=(0,n.deepmerge)((0,t.default)({common:o.default,type:P,primary:N(b),secondary:N(y,"A400","A200","A700"),error:N(S),warning:N(C),info:N(R),success:N(I),grey:i.default,contrastThreshold:M,getContrastText:L,augmentColor:N,tonalOffset:q},j[P]),O);return _},Cy.dark=Cy.light=void 0;var t=e(Ec()),r=e(my()),n=ty,o=e(Ry()),i=e(ky()),a=e(My()),s=e(Oy()),l=e(jy()),c=e(Fy()),u=e(By()),d=e(Gy()),p=ry(),f={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.54)",disabled:"rgba(0, 0, 0, 0.38)",hint:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:o.default.white,default:i.default[50]},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}};Cy.light=f;var h={text:{primary:o.default.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",hint:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:i.default[800],default:"#303030"},action:{active:o.default.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function m(e,t,r,n){var o=n.light||n,i=n.dark||1.5*n;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:"light"===t?e.light=(0,p.lighten)(e.main,o):"dark"===t&&(e.dark=(0,p.darken)(e.main,i)))}return Cy.dark=h,Cy}var Yy,Xy={};function Jy(){if(Yy)return Xy;Yy=1;var e=Gl();Object.defineProperty(Xy,"__esModule",{value:!0}),Xy.default=function(e,l){var c="function"==typeof l?l(e):l,u=c.fontFamily,d=void 0===u?s:u,p=c.fontSize,f=void 0===p?14:p,h=c.fontWeightLight,m=void 0===h?300:h,g=c.fontWeightRegular,b=void 0===g?400:g,v=c.fontWeightMedium,y=void 0===v?500:v,x=c.fontWeightBold,S=void 0===x?700:x,w=c.htmlFontSize,C=void 0===w?16:w,E=c.allVariants,R=c.pxToRem,A=(0,r.default)(c,["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"]),I=f/14,k=R||function(e){return"".concat(e/C*I,"rem")},P=function(e,r,n,i,a){return(0,t.default)({fontFamily:d,fontWeight:e,fontSize:k(r),lineHeight:n},d===s?{letterSpacing:"".concat(o(i/r),"em")}:{},a,E)},D={h1:P(m,96,1.167,-1.5),h2:P(m,60,1.2,-.5),h3:P(b,48,1.167,0),h4:P(b,34,1.235,.25),h5:P(b,24,1.334,0),h6:P(y,20,1.6,.15),subtitle1:P(b,16,1.75,.15),subtitle2:P(y,14,1.57,.1),body1:P(b,16,1.5,.15),body2:P(b,14,1.43,.15),button:P(y,14,1.75,.4,a),caption:P(b,12,1.66,.4),overline:P(b,12,2.66,1,a)};return(0,n.deepmerge)((0,t.default)({htmlFontSize:C,pxToRem:k,round:i,fontFamily:d,fontSize:f,fontWeightLight:m,fontWeightRegular:b,fontWeightMedium:y,fontWeightBold:S},D),A,{clone:!1})};var t=e(Ec()),r=e(my()),n=ty;function o(e){return Math.round(1e5*e)/1e5}function i(e){return o(e)}var a={textTransform:"uppercase"},s='"Roboto", "Helvetica", "Arial", sans-serif';return Xy}var Zy,Qy={};function ex(){if(Zy)return Qy;Zy=1,Object.defineProperty(Qy,"__esModule",{value:!0}),Qy.default=void 0;function e(){return["".concat(arguments.length<=0?void 0:arguments[0],"px ").concat(arguments.length<=1?void 0:arguments[1],"px ").concat(arguments.length<=2?void 0:arguments[2],"px ").concat(arguments.length<=3?void 0:arguments[3],"px rgba(0,0,0,").concat(.2,")"),"".concat(arguments.length<=4?void 0:arguments[4],"px ").concat(arguments.length<=5?void 0:arguments[5],"px ").concat(arguments.length<=6?void 0:arguments[6],"px ").concat(arguments.length<=7?void 0:arguments[7],"px rgba(0,0,0,").concat(.14,")"),"".concat(arguments.length<=8?void 0:arguments[8],"px ").concat(arguments.length<=9?void 0:arguments[9],"px ").concat(arguments.length<=10?void 0:arguments[10],"px ").concat(arguments.length<=11?void 0:arguments[11],"px rgba(0,0,0,").concat(.12,")")].join(",")}var t=["none",e(0,2,1,-1,0,1,1,0,0,1,3,0),e(0,3,1,-2,0,2,2,0,0,1,5,0),e(0,3,3,-2,0,3,4,0,0,1,8,0),e(0,2,4,-1,0,4,5,0,0,1,10,0),e(0,3,5,-1,0,5,8,0,0,1,14,0),e(0,3,5,-1,0,6,10,0,0,1,18,0),e(0,4,5,-2,0,7,10,1,0,2,16,1),e(0,5,5,-3,0,8,10,1,0,3,14,2),e(0,5,6,-3,0,9,12,1,0,3,16,2),e(0,6,6,-3,0,10,14,1,0,4,18,3),e(0,6,7,-4,0,11,15,1,0,4,20,3),e(0,7,8,-4,0,12,17,2,0,5,22,4),e(0,7,8,-4,0,13,19,2,0,5,24,4),e(0,7,9,-4,0,14,21,2,0,5,26,4),e(0,8,9,-5,0,15,22,2,0,6,28,5),e(0,8,10,-5,0,16,24,2,0,6,30,5),e(0,8,11,-5,0,17,26,2,0,6,32,5),e(0,9,11,-5,0,18,28,2,0,7,34,6),e(0,9,12,-6,0,19,29,2,0,7,36,6),e(0,10,13,-6,0,20,31,3,0,8,38,7),e(0,10,13,-6,0,21,33,3,0,8,40,7),e(0,10,14,-6,0,22,35,3,0,8,42,7),e(0,11,14,-7,0,23,36,3,0,9,44,8),e(0,11,15,-7,0,24,38,3,0,9,46,8)];return Qy.default=t,Qy}var tx,rx={};function nx(){if(tx)return rx;tx=1,Object.defineProperty(rx,"__esModule",{value:!0}),rx.default=void 0;var e={borderRadius:4};return rx.default=e,rx}var ox={};function ix(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function ax(e,t){if(e){if("string"==typeof e)return ix(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ix(e,t):void 0}}function sx(e){return function(e){if(Array.isArray(e))return ix(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||ax(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function lx(e,t){return t?Fv(e,t,{clone:!1}):e}var cx={xs:0,sm:600,md:960,lg:1280,xl:1920},ux={keys:["xs","sm","md","lg","xl"],up:function(e){return"@media (min-width:".concat(cx[e],"px)")}};function dx(e,t,r){if(Array.isArray(t)){var n=e.theme.breakpoints||ux;return t.reduce(function(e,o,i){return e[n.up(n.keys[i])]=r(t[i]),e},{})}if("object"===$l(t)){var o=e.theme.breakpoints||ux;return Object.keys(t).reduce(function(e,n){return e[o.up(n)]=r(t[n]),e},{})}return r(t)}function px(e,t){return t&&"string"==typeof t?t.split(".").reduce(function(e,t){return e&&e[t]?e[t]:null},e):null}function fx(e){var t=e.prop,r=e.cssProperty,n=void 0===r?e.prop:r,o=e.themeKey,i=e.transform,a=function(e){if(null==e[t])return null;var r=e[t],a=px(e.theme,o)||{};return dx(e,r,function(e){var t;return"function"==typeof a?t=a(e):Array.isArray(a)?t=a[e]||e:(t=px(a,e)||e,i&&(t=i(t))),!1===n?t:function(e,t,r){return(t=Hl(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},n,t)})};return a.propTypes={},a.filterProps=[t],a}function hx(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n=function(e){return t.reduce(function(t,r){var n=r(e);return n?lx(t,n):t},{})};return n.propTypes={},n.filterProps=t.reduce(function(e,t){return e.concat(t.filterProps)},[]),n}function mx(e){return"number"!=typeof e?e:"".concat(e,"px solid")}var gx=fx({prop:"border",themeKey:"borders",transform:mx}),bx=fx({prop:"borderTop",themeKey:"borders",transform:mx}),vx=fx({prop:"borderRight",themeKey:"borders",transform:mx}),yx=fx({prop:"borderBottom",themeKey:"borders",transform:mx}),xx=fx({prop:"borderLeft",themeKey:"borders",transform:mx}),Sx=fx({prop:"borderColor",themeKey:"palette"}),wx=fx({prop:"borderRadius",themeKey:"shape"}),Cx=hx(gx,bx,vx,yx,xx,Sx,wx);function Ex(e,t){var r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}function Rx(e){var t=function(t){var r=e(t);return t.css?$r({},lx(r,e($r({theme:t.theme},t.css))),Ex(t.css,[e.filterProps])):t.sx?$r({},lx(r,e($r({theme:t.theme},t.sx))),Ex(t.sx,[e.filterProps])):r};return t.propTypes={},t.filterProps=["css","sx"].concat(sx(e.filterProps)),t}var Ax=hx(fx({prop:"displayPrint",cssProperty:!1,transform:function(e){return{"@media print":{display:e}}}}),fx({prop:"display"}),fx({prop:"overflow"}),fx({prop:"textOverflow"}),fx({prop:"visibility"}),fx({prop:"whiteSpace"})),Ix=fx({prop:"flexBasis"}),kx=fx({prop:"flexDirection"}),Px=fx({prop:"flexWrap"}),Dx=fx({prop:"justifyContent"}),Mx=fx({prop:"alignItems"}),Tx=fx({prop:"alignContent"}),qx=fx({prop:"order"}),Ox=fx({prop:"flex"}),Lx=fx({prop:"flexGrow"}),Nx=fx({prop:"flexShrink"}),jx=fx({prop:"alignSelf"}),_x=fx({prop:"justifyItems"}),zx=fx({prop:"justifySelf"}),Fx=hx(Ix,kx,Px,Dx,Mx,Tx,qx,Ox,Lx,Nx,jx,_x,zx),$x=fx({prop:"gridGap"}),Hx=fx({prop:"gridColumnGap"}),Bx=fx({prop:"gridRowGap"}),Vx=fx({prop:"gridColumn"}),Wx=fx({prop:"gridRow"}),Ux=fx({prop:"gridAutoFlow"}),Gx=fx({prop:"gridAutoColumns"}),Kx=fx({prop:"gridAutoRows"}),Yx=fx({prop:"gridTemplateColumns"}),Xx=fx({prop:"gridTemplateRows"}),Jx=fx({prop:"gridTemplateAreas"}),Zx=fx({prop:"gridArea"}),Qx=hx($x,Hx,Bx,Vx,Wx,Ux,Gx,Kx,Yx,Xx,Jx,Zx),eS=fx({prop:"color",themeKey:"palette"}),tS=fx({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),rS=hx(eS,tS),nS=fx({prop:"position"}),oS=fx({prop:"zIndex",themeKey:"zIndex"}),iS=fx({prop:"top"}),aS=fx({prop:"right"}),sS=fx({prop:"bottom"}),lS=fx({prop:"left"}),cS=hx(nS,oS,iS,aS,sS,lS),uS=fx({prop:"boxShadow",themeKey:"shadows"});function dS(e){return e<=1?"".concat(100*e,"%"):e}var pS=fx({prop:"width",transform:dS}),fS=fx({prop:"maxWidth",transform:dS}),hS=fx({prop:"minWidth",transform:dS}),mS=fx({prop:"height",transform:dS}),gS=fx({prop:"maxHeight",transform:dS}),bS=fx({prop:"minHeight",transform:dS}),vS=fx({prop:"size",cssProperty:"width",transform:dS}),yS=fx({prop:"size",cssProperty:"height",transform:dS}),xS=fx({prop:"boxSizing"}),SS=hx(pS,fS,hS,mS,gS,bS,xS);function wS(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,c=!1;try{if(i=(r=r.call(e)).next,0===t);else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){c=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||ax(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.")}()}var CS={m:"margin",p:"padding"},ES={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},RS={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},AS=function(e){var t={};return function(r){return void 0===t[r]&&(t[r]=e(r)),t[r]}}(function(e){if(e.length>2){if(!RS[e])return[e];e=RS[e]}var t=wS(e.split(""),2),r=t[0],n=t[1],o=CS[r],i=ES[n]||"";return Array.isArray(i)?i.map(function(e){return o+e}):[o+i]}),IS=["m","mt","mr","mb","ml","mx","my","p","pt","pr","pb","pl","px","py","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY"];function kS(e){var t=e.spacing||8;return"number"==typeof t?function(e){return t*e}:Array.isArray(t)?function(e){return t[e]}:"function"==typeof t?t:function(){}}function PS(e,t){return function(r){return e.reduce(function(e,n){return e[n]=function(e,t){if("string"==typeof t||null==t)return t;var r=e(Math.abs(t));return t>=0?r:"number"==typeof r?-r:"-".concat(r)}(t,r),e},{})}}function DS(e){var t=kS(e.theme);return Object.keys(e).map(function(r){if(-1===IS.indexOf(r))return null;var n=PS(AS(r),t),o=e[r];return dx(e,o,n)}).reduce(lx,{})}DS.propTypes={},DS.filterProps=IS;var MS,TS=fx({prop:"fontFamily",themeKey:"typography"}),qS=fx({prop:"fontSize",themeKey:"typography"}),OS=fx({prop:"fontStyle",themeKey:"typography"}),LS=fx({prop:"fontWeight",themeKey:"typography"}),NS=fx({prop:"letterSpacing"}),jS=fx({prop:"lineHeight"}),_S=fx({prop:"textAlign"}),zS=hx(TS,qS,OS,LS,NS,jS,_S),FS=Object.freeze({__proto__:null,alignContent:Tx,alignItems:Mx,alignSelf:jx,bgcolor:tS,border:gx,borderBottom:yx,borderColor:Sx,borderLeft:xx,borderRadius:wx,borderRight:vx,borderTop:bx,borders:Cx,bottom:sS,boxSizing:xS,breakpoints:function(e){var t=function(t){var r=e(t),n=t.theme.breakpoints||ux,o=n.keys.reduce(function(r,o){return t[o]&&((r=r||{})[n.up(o)]=e($r({theme:t.theme},t[o]))),r},null);return lx(r,o)};return t.propTypes={},t.filterProps=["xs","sm","md","lg","xl"].concat(sx(e.filterProps)),t},color:eS,compose:hx,createUnarySpacing:kS,css:function(e){return Rx(e)},display:Ax,flex:Ox,flexBasis:Ix,flexDirection:kx,flexGrow:Lx,flexShrink:Nx,flexWrap:Px,flexbox:Fx,fontFamily:TS,fontSize:qS,fontStyle:OS,fontWeight:LS,grid:Qx,gridArea:Zx,gridAutoColumns:Gx,gridAutoFlow:Ux,gridAutoRows:Kx,gridColumn:Vx,gridColumnGap:Hx,gridGap:$x,gridRow:Wx,gridRowGap:Bx,gridTemplateAreas:Jx,gridTemplateColumns:Yx,gridTemplateRows:Xx,height:mS,justifyContent:Dx,justifyItems:_x,justifySelf:zx,left:lS,letterSpacing:NS,lineHeight:jS,maxHeight:gS,maxWidth:fS,minHeight:bS,minWidth:hS,order:qx,palette:rS,position:nS,positions:cS,right:aS,shadows:uS,sizeHeight:yS,sizeWidth:vS,sizing:SS,spacing:DS,style:fx,styleFunctionSx:Rx,textAlign:_S,top:iS,typography:zS,width:pS,zIndex:oS}),$S=Zt(FS);function HS(){if(MS)return ox;MS=1,Object.defineProperty(ox,"__esModule",{value:!0}),ox.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;if(t.mui)return t;var r=(0,e.createUnarySpacing)({spacing:t}),n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?r(1):1===t.length?r(t[0]):t.map(function(e){if("string"==typeof e)return e;var t=r(e);return"number"==typeof t?"".concat(t,"px"):t}).join(" ")};return Object.defineProperty(n,"unit",{get:function(){return t}}),n.mui=!0,n};var e=$S;return ox}var BS,VS={};function WS(){if(BS)return VS;BS=1;var e=Gl();Object.defineProperty(VS,"__esModule",{value:!0}),VS.default=VS.duration=VS.easing=void 0;var t=e(my()),r={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)"};VS.easing=r;var n={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function o(e){return"".concat(Math.round(e),"ms")}VS.duration=n;var i={easing:r,duration:n,create:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["all"],i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=i.duration,s=void 0===a?n.standard:a,l=i.easing,c=void 0===l?r.easeInOut:l,u=i.delay,d=void 0===u?0:u;return(0,t.default)(i,["duration","easing","delay"]),(Array.isArray(e)?e:[e]).map(function(e){return"".concat(e," ").concat("string"==typeof s?s:o(s)," ").concat(c," ").concat("string"==typeof d?d:o(d))}).join(",")},getAutoHeightDuration:function(e){if(!e)return 0;var t=e/36;return Math.round(10*(4+15*Math.pow(t,.25)+t/5))}};return VS.default=i,VS}var US,GS,KS={};function YS(){if(US)return KS;US=1,Object.defineProperty(KS,"__esModule",{value:!0}),KS.default=void 0;var e={mobileStepper:1e3,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};return KS.default=e,KS}function XS(){if(GS)return ay;GS=1;var e=Gl();Object.defineProperty(ay,"__esModule",{value:!0}),ay.createMuiTheme=function(){return p.apply(void 0,arguments)},ay.default=void 0,e(py());var t=e(my()),r=ty,n=e(vy()),o=e(Sy()),i=e(Ky()),a=e(Jy()),s=e(ex()),l=e(nx()),c=e(HS()),u=e(WS()),d=e(YS());function p(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},p=e.breakpoints,f=void 0===p?{}:p,h=e.mixins,m=void 0===h?{}:h,g=e.palette,b=void 0===g?{}:g,v=e.spacing,y=e.typography,x=void 0===y?{}:y,S=(0,t.default)(e,["breakpoints","mixins","palette","spacing","typography"]),w=(0,i.default)(b),C=(0,n.default)(f),E=(0,c.default)(v),R=(0,r.deepmerge)({breakpoints:C,direction:"ltr",mixins:(0,o.default)(C,E,m),overrides:{},palette:w,props:{},shadows:s.default,typography:(0,a.default)(w,x),spacing:E,shape:l.default,transitions:u.default,zIndex:d.default},S),A=arguments.length,I=new Array(A>1?A-1:0),k=1;k<A;k++)I[k-1]=arguments[k];return R=I.reduce(function(e,t){return(0,r.deepmerge)(e,t)},R)}var f=p;return ay.default=f,ay}var JS,ZS={};function QS(){if(JS)return ZS;JS=1;var e=Gl();Object.defineProperty(ZS,"__esModule",{value:!0}),ZS.default=function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return r.default.apply(void 0,[(0,t.deepmerge)({unstable_strictMode:!0},e)].concat(o))};var t=ty,r=e(XS());return ZS}var ew={},tw="function"==typeof Symbol&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__",rw=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function nw(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.disableGlobal,r=void 0!==t&&t,n=e.productionPrefix,o=void 0===n?"jss":n,i=e.seed,a=void 0===i?"":i,s=""===a?"":"".concat(a,"-"),l=0,c=function(){return l+=1};return function(e,t){var n=t.options.name;if(n&&0===n.indexOf("Mui")&&!t.options.link&&!r){if(-1!==rw.indexOf(e.key))return"Mui-".concat(e.key);var i="".concat(s).concat(n,"-").concat(e.key);return t.options.theme[tw]&&""===a?"".concat(i,"-").concat(c()):i}return"".concat(s).concat(o).concat(c())}}function ow(e){var t=e.theme,r=e.name,n=e.props;if(!t||!t.props||!t.props[r])return n;var o,i=t.props[r];for(o in i)void 0===n[o]&&(n[o]=i[o]);return n}var iw="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},aw="object"===("undefined"==typeof window?"undefined":iw(window))&&"object"===("undefined"==typeof document?"undefined":iw(document))&&9===document.nodeType;function sw(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,Hl(n.key),n)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var lw={}.constructor;function cw(e){if(null==e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(cw);if(e.constructor!==lw)return e;var t={};for(var r in e)t[r]=cw(e[r]);return t}function uw(e,t,r){void 0===e&&(e="unnamed");var n=r.jss,o=cw(t),i=n.plugins.onCreateRule(e,o,r);return i||(e[0],null)}var dw=function(e,t){for(var r="",n=0;n<e.length&&"!important"!==e[n];n++)r&&(r+=t),r+=e[n];return r},pw=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var r=0;r<e.length&&"!important"!==e[r];r++)t&&(t+=", "),t+=dw(e[r]," ");else t=dw(e,", ");return"!important"===e[e.length-1]&&(t+=" !important"),t};function fw(e){return e&&!1===e.format?{linebreak:"",space:""}:{linebreak:"\n",space:" "}}function hw(e,t){for(var r="",n=0;n<t;n++)r+=" ";return r+e}function mw(e,t,r){void 0===r&&(r={});var n="";if(!t)return n;var o=r.indent,i=void 0===o?0:o,a=t.fallbacks;!1===r.format&&(i=-1/0);var s=fw(r),l=s.linebreak,c=s.space;if(e&&i++,a)if(Array.isArray(a))for(var u=0;u<a.length;u++){var d=a[u];for(var p in d){var f=d[p];null!=f&&(n&&(n+=l),n+=hw(p+":"+c+pw(f)+";",i))}}else for(var h in a){var m=a[h];null!=m&&(n&&(n+=l),n+=hw(h+":"+c+pw(m)+";",i))}for(var g in t){var b=t[g];null!=b&&"fallbacks"!==g&&(n&&(n+=l),n+=hw(g+":"+c+pw(b)+";",i))}return(n||r.allowEmpty)&&e?(n&&(n=""+l+n+l),hw(""+e+c+"{"+n,--i)+hw("}",i)):n}var gw=/([[\].#*$><+~=|^:(),"'`\s])/g,bw="undefined"!=typeof CSS&&CSS.escape,vw=function(e){return bw?bw(e):e.replace(gw,"\\$1")},yw=function(){function e(e,t,r){this.type="style",this.isProcessed=!1;var n=r.sheet,o=r.Renderer;this.key=e,this.options=r,this.style=t,n?this.renderer=n.renderer:o&&(this.renderer=new o)}return e.prototype.prop=function(e,t,r){if(void 0===t)return this.style[e];var n=!!r&&r.force;if(!n&&this.style[e]===t)return this;var o=t;r&&!1===r.process||(o=this.options.jss.plugins.onChangeValue(t,e,this));var i=null==o||!1===o,a=e in this.style;if(i&&!a&&!n)return this;var s=i&&a;if(s?delete this.style[e]:this.style[e]=o,this.renderable&&this.renderer)return s?this.renderer.removeProperty(this.renderable,e):this.renderer.setProperty(this.renderable,e,o),this;var l=this.options.sheet;return l&&l.attached,this},e}(),xw=function(e){function t(t,r,n){var o;o=e.call(this,t,r,n)||this;var i=n.selector,a=n.scoped,s=n.sheet,l=n.generateId;return i?o.selectorText=i:!1!==a&&(o.id=l(iu(iu(o)),s),o.selectorText="."+vw(o.id)),o}Yc(t,e);var r=t.prototype;return r.applyTo=function(e){var t=this.renderer;if(t){var r=this.toJSON();for(var n in r)t.setProperty(e,n,r[n])}return this},r.toJSON=function(){var e={};for(var t in this.style){var r=this.style[t];"object"!=typeof r?e[t]=r:Array.isArray(r)&&(e[t]=pw(r))}return e},r.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return mw(this.selectorText,this.style,r)},sw(t,[{key:"selector",set:function(e){if(e!==this.selectorText){this.selectorText=e;var t=this.renderer,r=this.renderable;if(r&&t)t.setSelector(r,e)||t.replaceRule(r,this)}},get:function(){return this.selectorText}}]),t}(yw),Sw={onCreateRule:function(e,t,r){return"@"===e[0]||r.parent&&"keyframes"===r.parent.type?null:new xw(e,t,r)}},ww={indent:1,children:!0},Cw=/@([\w-]+)/,Ew=function(){function e(e,t,r){this.type="conditional",this.isProcessed=!1,this.key=e;var n=e.match(Cw);for(var o in this.at=n?n[1]:"unknown",this.query=r.name||"@"+this.at,this.options=r,this.rules=new Kw($r({},r,{parent:this})),t)this.rules.add(o,t[o]);this.rules.process()}var t=e.prototype;return t.getRule=function(e){return this.rules.get(e)},t.indexOf=function(e){return this.rules.indexOf(e)},t.addRule=function(e,t,r){var n=this.rules.add(e,t,r);return n?(this.options.jss.plugins.onProcessRule(n),n):null},t.replaceRule=function(e,t,r){var n=this.rules.replace(e,t,r);return n&&this.options.jss.plugins.onProcessRule(n),n},t.toString=function(e){void 0===e&&(e=ww);var t=fw(e).linebreak;if(null==e.indent&&(e.indent=ww.indent),null==e.children&&(e.children=ww.children),!1===e.children)return this.query+" {}";var r=this.rules.toString(e);return r?this.query+" {"+t+r+t+"}":""},e}(),Rw=/@container|@media|@supports\s+/,Aw={onCreateRule:function(e,t,r){return Rw.test(e)?new Ew(e,t,r):null}},Iw={indent:1,children:!0},kw=/@keyframes\s+([\w-]+)/,Pw=function(){function e(e,t,r){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var n=e.match(kw);n&&n[1]?this.name=n[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=r;var o=r.scoped,i=r.sheet,a=r.generateId;for(var s in this.id=!1===o?this.name:vw(a(this,i)),this.rules=new Kw($r({},r,{parent:this})),t)this.rules.add(s,t[s],$r({},r,{parent:this}));this.rules.process()}return e.prototype.toString=function(e){void 0===e&&(e=Iw);var t=fw(e).linebreak;if(null==e.indent&&(e.indent=Iw.indent),null==e.children&&(e.children=Iw.children),!1===e.children)return this.at+" "+this.id+" {}";var r=this.rules.toString(e);return r&&(r=""+t+r+t),this.at+" "+this.id+" {"+r+"}"},e}(),Dw=/@keyframes\s+/,Mw=/\$([\w-]+)/g,Tw=function(e,t){return"string"==typeof e?e.replace(Mw,function(e,r){return r in t?t[r]:e}):e},qw=function(e,t,r){var n=e[t],o=Tw(n,r);o!==n&&(e[t]=o)},Ow={onCreateRule:function(e,t,r){return"string"==typeof e&&Dw.test(e)?new Pw(e,t,r):null},onProcessStyle:function(e,t,r){return"style"===t.type&&r?("animation-name"in e&&qw(e,"animation-name",r.keyframes),"animation"in e&&qw(e,"animation",r.keyframes),e):e},onChangeValue:function(e,t,r){var n=r.options.sheet;if(!n)return e;switch(t){case"animation":case"animation-name":return Tw(e,n.keyframes);default:return e}}},Lw=function(e){function t(){return e.apply(this,arguments)||this}return Yc(t,e),t.prototype.toString=function(e){var t=this.options.sheet,r=!!t&&t.options.link?$r({},e,{allowEmpty:!0}):e;return mw(this.key,this.style,r)},t}(yw),Nw={onCreateRule:function(e,t,r){return r.parent&&"keyframes"===r.parent.type?new Lw(e,t,r):null}},jw=function(){function e(e,t,r){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){var t=fw(e).linebreak;if(Array.isArray(this.style)){for(var r="",n=0;n<this.style.length;n++)r+=mw(this.at,this.style[n]),this.style[n+1]&&(r+=t);return r}return mw(this.at,this.style,e)},e}(),_w=/@font-face/,zw={onCreateRule:function(e,t,r){return _w.test(e)?new jw(e,t,r):null}},Fw=function(){function e(e,t,r){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=e,this.style=t,this.options=r}return e.prototype.toString=function(e){return mw(this.key,this.style,e)},e}(),$w={onCreateRule:function(e,t,r){return"@viewport"===e||"@-ms-viewport"===e?new Fw(e,t,r):null}},Hw=function(){function e(e,t,r){this.type="simple",this.isProcessed=!1,this.key=e,this.value=t,this.options=r}return e.prototype.toString=function(e){if(Array.isArray(this.value)){for(var t="",r=0;r<this.value.length;r++)t+=this.key+" "+this.value[r]+";",this.value[r+1]&&(t+="\n");return t}return this.key+" "+this.value+";"},e}(),Bw={"@charset":!0,"@import":!0,"@namespace":!0},Vw={onCreateRule:function(e,t,r){return e in Bw?new Hw(e,t,r):null}},Ww=[Sw,Aw,Ow,Nw,zw,$w,Vw],Uw={process:!0},Gw={force:!0,process:!0},Kw=function(){function e(e){this.map={},this.raw={},this.index=[],this.counter=0,this.options=e,this.classes=e.classes,this.keyframes=e.keyframes}var t=e.prototype;return t.add=function(e,t,r){var n=this.options,o=n.parent,i=n.sheet,a=n.jss,s=n.Renderer,l=n.generateId,c=n.scoped,u=$r({classes:this.classes,parent:o,sheet:i,jss:a,Renderer:s,generateId:l,scoped:c,name:e,keyframes:this.keyframes,selector:void 0},r),d=e;e in this.raw&&(d=e+"-d"+this.counter++),this.raw[d]=t,d in this.classes&&(u.selector="."+vw(this.classes[d]));var p=uw(d,t,u);if(!p)return null;this.register(p);var f=void 0===u.index?this.index.length:u.index;return this.index.splice(f,0,p),p},t.replace=function(e,t,r){var n=this.get(e),o=this.index.indexOf(n);n&&this.remove(n);var i=r;return-1!==o&&(i=$r({},r,{index:o})),this.add(e,t,i)},t.get=function(e){return this.map[e]},t.remove=function(e){this.unregister(e),delete this.raw[e.key],this.index.splice(this.index.indexOf(e),1)},t.indexOf=function(e){return this.index.indexOf(e)},t.process=function(){var e=this.options.jss.plugins;this.index.slice(0).forEach(e.onProcessRule,e)},t.register=function(e){this.map[e.key]=e,e instanceof xw?(this.map[e.selector]=e,e.id&&(this.classes[e.key]=e.id)):e instanceof Pw&&this.keyframes&&(this.keyframes[e.name]=e.id)},t.unregister=function(e){delete this.map[e.key],e instanceof xw?(delete this.map[e.selector],delete this.classes[e.key]):e instanceof Pw&&delete this.keyframes[e.name]},t.update=function(){var e,t,r;if("string"==typeof(arguments.length<=0?void 0:arguments[0])?(e=arguments.length<=0?void 0:arguments[0],t=arguments.length<=1?void 0:arguments[1],r=arguments.length<=2?void 0:arguments[2]):(t=arguments.length<=0?void 0:arguments[0],r=arguments.length<=1?void 0:arguments[1],e=null),e)this.updateOne(this.get(e),t,r);else for(var n=0;n<this.index.length;n++)this.updateOne(this.index[n],t,r)},t.updateOne=function(t,r,n){void 0===n&&(n=Uw);var o=this.options,i=o.jss.plugins,a=o.sheet;if(t.rules instanceof e)t.rules.update(r,n);else{var s=t.style;if(i.onUpdate(r,t,a,n),n.process&&s&&s!==t.style){for(var l in i.onProcessStyle(t.style,t,a),t.style){var c=t.style[l];c!==s[l]&&t.prop(l,c,Gw)}for(var u in s){var d=t.style[u],p=s[u];null==d&&d!==p&&t.prop(u,null,Gw)}}}},t.toString=function(e){for(var t="",r=this.options.sheet,n=!!r&&r.options.link,o=fw(e).linebreak,i=0;i<this.index.length;i++){var a=this.index[i].toString(e);(a||n)&&(t&&(t+=o),t+=a)}return t},e}(),Yw=function(){function e(e,t){for(var r in this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=$r({},t,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),t.Renderer&&(this.renderer=new t.Renderer(this)),this.rules=new Kw(this.options),e)this.rules.add(r,e[r]);this.rules.process()}var t=e.prototype;return t.attach=function(){return this.attached||(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy()),this},t.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},t.addRule=function(e,t,r){var n=this.queue;this.attached&&!n&&(this.queue=[]);var o=this.rules.add(e,t,r);return o?(this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(n?n.push(o):(this.insertRule(o),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0)),o):o:(this.deployed=!1,o)):null},t.replaceRule=function(e,t,r){var n=this.rules.get(e);if(!n)return this.addRule(e,t,r);var o=this.rules.replace(e,t,r);return o&&this.options.jss.plugins.onProcessRule(o),this.attached?this.deployed?(this.renderer&&(o?n.renderable&&this.renderer.replaceRule(n.renderable,o):this.renderer.deleteRule(n)),o):o:(this.deployed=!1,o)},t.insertRule=function(e){this.renderer&&this.renderer.insertRule(e)},t.addRules=function(e,t){var r=[];for(var n in e){var o=this.addRule(n,e[n],t);o&&r.push(o)}return r},t.getRule=function(e){return this.rules.get(e)},t.deleteRule=function(e){var t="object"==typeof e?e:this.rules.get(e);return!(!t||this.attached&&!t.renderable)&&(this.rules.remove(t),!(this.attached&&t.renderable&&this.renderer)||this.renderer.deleteRule(t.renderable))},t.indexOf=function(e){return this.rules.indexOf(e)},t.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},t.update=function(){var e;return(e=this.rules).update.apply(e,arguments),this},t.updateOne=function(e,t,r){return this.rules.updateOne(e,t,r),this},t.toString=function(e){return this.rules.toString(e)},e}(),Xw=function(){function e(){this.plugins={internal:[],external:[]},this.registry={}}var t=e.prototype;return t.onCreateRule=function(e,t,r){for(var n=0;n<this.registry.onCreateRule.length;n++){var o=this.registry.onCreateRule[n](e,t,r);if(o)return o}return null},t.onProcessRule=function(e){if(!e.isProcessed){for(var t=e.options.sheet,r=0;r<this.registry.onProcessRule.length;r++)this.registry.onProcessRule[r](e,t);e.style&&this.onProcessStyle(e.style,e,t),e.isProcessed=!0}},t.onProcessStyle=function(e,t,r){for(var n=0;n<this.registry.onProcessStyle.length;n++)t.style=this.registry.onProcessStyle[n](t.style,t,r)},t.onProcessSheet=function(e){for(var t=0;t<this.registry.onProcessSheet.length;t++)this.registry.onProcessSheet[t](e)},t.onUpdate=function(e,t,r,n){for(var o=0;o<this.registry.onUpdate.length;o++)this.registry.onUpdate[o](e,t,r,n)},t.onChangeValue=function(e,t,r){for(var n=e,o=0;o<this.registry.onChangeValue.length;o++)n=this.registry.onChangeValue[o](n,t,r);return n},t.use=function(e,t){void 0===t&&(t={queue:"external"});var r=this.plugins[t.queue];-1===r.indexOf(e)&&(r.push(e),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(e,t){for(var r in t)r in e&&e[r].push(t[r]);return e},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},e}(),Jw=function(){function e(){this.registry=[]}var t=e.prototype;return t.add=function(e){var t=this.registry,r=e.options.index;if(-1===t.indexOf(e))if(0===t.length||r>=this.index)t.push(e);else for(var n=0;n<t.length;n++)if(t[n].options.index>r)return void t.splice(n,0,e)},t.reset=function(){this.registry=[]},t.remove=function(e){var t=this.registry.indexOf(e);this.registry.splice(t,1)},t.toString=function(e){for(var t=void 0===e?{}:e,r=t.attached,n=Hr(t,["attached"]),o=fw(n).linebreak,i="",a=0;a<this.registry.length;a++){var s=this.registry[a];null!=r&&s.attached!==r||(i&&(i+=o),i+=s.toString(n))}return i},sw(e,[{key:"index",get:function(){return 0===this.registry.length?0:this.registry[this.registry.length-1].options.index}}]),e}(),Zw=new Jw,Qw="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window&&window.Math===Math?window:"undefined"!=typeof self&&self.Math===Math?self:Function("return this")(),eC="2f1acc6c3a606b082e5eef5e54414ffb";null==Qw[eC]&&(Qw[eC]=0);var tC=Qw[eC]++,rC=function(e){void 0===e&&(e={});var t=0;return function(r,n){t+=1;var o="",i="";return n&&(n.options.classNamePrefix&&(i=n.options.classNamePrefix),null!=n.options.jss.id&&(o=String(n.options.jss.id))),e.minify?""+(i||"c")+tC+o+t:i+r.key+"-"+tC+(o?"-"+o:"")+"-"+t}},nC=function(e){var t;return function(){return t||(t=e()),t}},oC=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch(e){return""}},iC=function(e,t,r){try{var n=r;if(Array.isArray(r)&&(n=pw(r)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var o=n?n.indexOf("!important"):-1,i=o>-1?n.substr(0,o-1):n;e.style.setProperty(t,i,o>-1?"important":"")}}catch(e){return!1}return!0},aC=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch(e){}},sC=function(e,t){return e.selectorText=t,e.selectorText===t},lC=nC(function(){return document.querySelector("head")});function cC(e){var t=Zw.registry;if(t.length>0){var r=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n.attached&&n.options.index>t.index&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e);if(r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element};if(r=function(e,t){for(var r=e.length-1;r>=0;r--){var n=e[r];if(n.attached&&n.options.insertionPoint===t.insertionPoint)return n}return null}(t,e),r&&r.renderer)return{parent:r.renderer.element.parentNode,node:r.renderer.element.nextSibling}}var n=e.insertionPoint;if(n&&"string"==typeof n){var o=function(e){for(var t=lC(),r=0;r<t.childNodes.length;r++){var n=t.childNodes[r];if(8===n.nodeType&&n.nodeValue.trim()===e)return n}return null}(n);if(o)return{parent:o.parentNode,node:o.nextSibling}}return!1}var uC=nC(function(){var e=document.querySelector('meta[property="csp-nonce"]');return e?e.getAttribute("content"):null}),dC=function(e,t,r){try{"insertRule"in e?e.insertRule(t,r):"appendRule"in e&&e.appendRule(t)}catch(e){return!1}return e.cssRules[r]},pC=function(e,t){var r=e.cssRules.length;return void 0===t||t>r?r:t},fC=function(){function e(e){this.getPropertyValue=oC,this.setProperty=iC,this.removeProperty=aC,this.setSelector=sC,this.hasInsertedRules=!1,this.cssRules=[],e&&Zw.add(e),this.sheet=e;var t=this.sheet?this.sheet.options:{},r=t.media,n=t.meta,o=t.element;this.element=o||function(){var e=document.createElement("style");return e.textContent="\n",e}(),this.element.setAttribute("data-jss",""),r&&this.element.setAttribute("media",r),n&&this.element.setAttribute("data-meta",n);var i=uC();i&&this.element.setAttribute("nonce",i)}var t=e.prototype;return t.attach=function(){if(!this.element.parentNode&&this.sheet){!function(e,t){var r=t.insertionPoint,n=cC(t);if(!1!==n&&n.parent)n.parent.insertBefore(e,n.node);else if(r&&"number"==typeof r.nodeType){var o=r,i=o.parentNode;i&&i.insertBefore(e,o.nextSibling)}else lC().appendChild(e)}(this.element,this.sheet.options);var e=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&e&&(this.hasInsertedRules=!1,this.deploy())}},t.detach=function(){if(this.sheet){var e=this.element.parentNode;e&&e.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},t.deploy=function(){var e=this.sheet;e&&(e.options.link?this.insertRules(e.rules):this.element.textContent="\n"+e.toString()+"\n")},t.insertRules=function(e,t){for(var r=0;r<e.index.length;r++)this.insertRule(e.index[r],r,t)},t.insertRule=function(e,t,r){if(void 0===r&&(r=this.element.sheet),e.rules){var n=e,o=r;if("conditional"===e.type||"keyframes"===e.type){var i=pC(r,t);if(!1===(o=dC(r,n.toString({children:!1}),i)))return!1;this.refCssRule(e,i,o)}return this.insertRules(n.rules,o),o}var a=e.toString();if(!a)return!1;var s=pC(r,t),l=dC(r,a,s);return!1!==l&&(this.hasInsertedRules=!0,this.refCssRule(e,s,l),l)},t.refCssRule=function(e,t,r){e.renderable=r,e.options.parent instanceof Yw&&this.cssRules.splice(t,0,r)},t.deleteRule=function(e){var t=this.element.sheet,r=this.indexOf(e);return-1!==r&&(t.deleteRule(r),this.cssRules.splice(r,1),!0)},t.indexOf=function(e){return this.cssRules.indexOf(e)},t.replaceRule=function(e,t){var r=this.indexOf(e);return-1!==r&&(this.element.sheet.deleteRule(r),this.cssRules.splice(r,1),this.insertRule(t,r))},t.getRules=function(){return this.element.sheet.cssRules},e}(),hC=0,mC=function(){function e(e){this.id=hC++,this.version="10.10.0",this.plugins=new Xw,this.options={id:{minify:!1},createGenerateId:rC,Renderer:aw?fC:null,plugins:[]},this.generateId=rC({minify:!1});for(var t=0;t<Ww.length;t++)this.plugins.use(Ww[t],{queue:"internal"});this.setup(e)}var t=e.prototype;return t.setup=function(e){return void 0===e&&(e={}),e.createGenerateId&&(this.options.createGenerateId=e.createGenerateId),e.id&&(this.options.id=$r({},this.options.id,e.id)),(e.createGenerateId||e.id)&&(this.generateId=this.options.createGenerateId(this.options.id)),null!=e.insertionPoint&&(this.options.insertionPoint=e.insertionPoint),"Renderer"in e&&(this.options.Renderer=e.Renderer),e.plugins&&this.use.apply(this,e.plugins),this},t.createStyleSheet=function(e,t){void 0===t&&(t={});var r=t.index;"number"!=typeof r&&(r=0===Zw.index?0:Zw.index+1);var n=new Yw(e,$r({},t,{jss:this,generateId:t.generateId||this.generateId,insertionPoint:this.options.insertionPoint,Renderer:this.options.Renderer,index:r}));return this.plugins.onProcessSheet(n),n},t.removeStyleSheet=function(e){return e.detach(),Zw.remove(e),this},t.createRule=function(e,t,r){if(void 0===t&&(t={}),void 0===r&&(r={}),"object"==typeof e)return this.createRule(void 0,e,t);var n=$r({},r,{name:e,jss:this,Renderer:this.options.Renderer});n.generateId||(n.generateId=this.generateId),n.classes||(n.classes={}),n.keyframes||(n.keyframes={});var o=uw(e,t,n);return o&&this.plugins.onProcessRule(o),o},t.use=function(){for(var e=this,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return r.forEach(function(t){e.plugins.use(t)}),this},e}(),gC=function(e){return new mC(e)},bC="object"==typeof CSS&&null!=CSS&&"number"in CSS;function vC(e){var t=null;for(var r in e){var n=e[r],o=typeof n;if("function"===o)t||(t={}),t[r]=n;else if("object"===o&&null!==n&&!Array.isArray(n)){var i=vC(n);i&&(t||(t={}),t[r]=i)}}return t}
|
|
91
91
|
/**
|
|
92
92
|
* A better abstraction over CSS.
|
|
93
93
|
*
|
|
@@ -118,4 +118,4 @@ function ra(e,t){let r;return r=t?zi(e).withConfig({displayName:t.label,shouldFo
|
|
|
118
118
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
119
119
|
* See the License for the specific language governing permissions and
|
|
120
120
|
* limitations under the License.
|
|
121
|
-
*/var o$=(r$||(r$=1,function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),I=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return t.split("(").length>t.split(")").length?e:("%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r)}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(I,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(O,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(q,"$1left").replace(w,"right")),r=r.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,ne).replace(G,ne).replace(K,te).replace(Y,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(n$,n$.exports)),n$.exports),i$=Jt(o$),a$="comm",s$="rule",l$="decl",c$=Math.abs,u$=String.fromCharCode;function d$(e){return e.trim()}function p$(e,t,r){return e.replace(t,r)}function f$(e,t){return 0|e.charCodeAt(t)}function h$(e,t,r){return e.slice(t,r)}function m$(e){return e.length}function g$(e,t){return t.push(e),e}var b$=1,v$=1,y$=0,x$=0,S$=0,w$="";function C$(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:b$,column:v$,length:a,return:"",siblings:s}}function E$(){return S$=x$>0?f$(w$,--x$):0,v$--,10===S$&&(v$=1,b$--),S$}function R$(){return S$=x$<y$?f$(w$,x$++):0,v$++,10===S$&&(v$=1,b$++),S$}function A$(){return f$(w$,x$)}function I$(){return x$}function k$(e,t){return h$(w$,e,t)}function P$(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D$(e){return d$(k$(x$-1,q$(91===e?e+2:40===e?e+1:e)))}function M$(e){for(;(S$=A$())&&S$<33;)R$();return P$(e)>2||P$(S$)>3?"":" "}function T$(e,t){for(;--t&&R$()&&!(S$<48||S$>102||S$>57&&S$<65||S$>70&&S$<97););return k$(e,I$()+(t<6&&32==A$()&&32==R$()))}function q$(e){for(;R$();)switch(S$){case e:return x$;case 34:case 39:34!==e&&39!==e&&q$(S$);break;case 40:41===e&&q$(e);break;case 92:R$()}return x$}function O$(e,t){for(;R$()&&e+S$!==57&&(e+S$!==84||47!==A$()););return"/*"+k$(t,x$-1)+"*"+u$(47===e?e:R$())}function L$(e){for(;!P$(A$());)R$();return k$(e,x$)}function N$(e){return function(e){return w$="",e}(j$("",null,null,null,[""],e=function(e){return b$=v$=1,y$=m$(w$=e),x$=0,[]}(e),0,[0],e))}function j$(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=n,E=x;g;)switch(h=y,y=R$()){case 40:108!=h&&58==f$(E,d-1)?(v++,E+="("):E+=D$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=D$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=u$(y);break}E+=M$(h);break;case 92:E+=T$(I$()-1,7);continue;case 47:switch(A$()){case 42:case 47:g$(z$(O$(R$(),I$()),t,r,l),l),5!=P$(h||1)&&5!=P$(A$()||1)||!m$(E)||" "===h$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=m$(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=u$(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=p$(E,/\f/g,"")),f>0&&(m$(E)-d||0===m)&&g$(f>32?F$(E+";",n,r,d-1,l):F$(p$(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(g$(C=_$(E,t,r,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)j$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===f$(E,3))break;case 108:if(97===f$(E,2))break;default:u=0;case 100:case 109:case 115:}u?j$(e,C,C,n&&g$(_$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,n?S:w):j$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+m$(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==E$())continue;switch(E+=u$(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(m$(E)-1)*b,b=1;break;case 64:45===A$()&&(E+=D$(R$())),p=A$(),u=d=m$(x=E+=L$(I$())),y++;break;case 45:45===h&&2==m$(E)&&(m=0)}}return i}function _$(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=h$(e,p+1,p=c$(g=a[m])),x=e;v<h;++v)(x=d$(g>0?f[v]+" "+y:p$(y,/&\f/g,f[v])))&&(l[b++]=x);return C$(e,t,r,0===o?s$:s,l,c,u,d)}function z$(e,t,r,n){return C$(e,t,r,a$,u$(S$),h$(e,2,-2),0,n)}function F$(e,t,r,n,o){return C$(e,t,r,l$,h$(e,0,n),h$(e,n+1,-1),n,o)}function $$(e,t,r){switch(e.type){case"@import":case l$:case a$:return e.return=e.return||e.value;case s$:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===a$&&(e.children=e.value)})}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),$$);return m$(n)?e.return=e.value+"{"+n+"}":""}function H$(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===s$&&(!e.parent||"@media"===e.parent.type||e.parent.type===s$)){var o=i$.transform($$(e));e.children=o?N$(o)[0].children:[],e.return=""}}Object.defineProperty(H$,"name",{value:"stylisRTLPlugin"});const B$=hI(({options:e,...t})=>Kg(Hm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class V${#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,r){const n=this.#y[e].get(t)??new Set;n.add(r),this.#y[e].set(t,n),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const W$=Kg(()=>new V$);let U$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),G$=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),K$=function(e){return e.A="ascending",e.D="descending",e}({}),Y$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const X$=[0,0],J$=e=>"number"==typeof e&&!Number.isNaN(+e),Z$=e=>J$(e.qNum),Q$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),eH=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),tH=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},rH=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},nH=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:eH(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:tH(n,t,r)}))),n},oH=(e,t,r,n)=>{const o=nH(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=rH(e,a,t);break}n=i}return r})(o,t);return a},iH=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!J$(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!J$(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},aH=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=iH(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!J$(t))return 0;let a=r&&J$(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},sH=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=aH(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return tH(o,r.limitPaletteColorIndex,n);const a=eH(r.limitRange,t);return oH(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===r&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},lH=(wm().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),cH=4/3,uH="12px",dH="600",pH="Source Sans Pro, sans-serif",fH={height:"auto",fontSize:uH,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},hH={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:dH},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},mH=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,gH=(e,t)=>e.representation.type===lF.Image&&"fitHeight"===e.representation.imageSize?mH(t,e.representation):e.align,bH=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",vH=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},yH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,xH=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",SH=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",wH=24,CH=_c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),EH=_c(Pd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?bH(e,n):void 0})),RH=_c(Pd,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${eg}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${eg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),AH=_c(Pd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),IH=_c(Pd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),kH=_c(zu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),PH=Kg(),DH=Kg(0),MH=Kg(0),TH=e=>parseInt(e??fH.fontSize,10)*cH,qH=4/3,OH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function LH(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const NH=(e,t)=>e?{borderBottomColor:Rm.DARK_MODE_BORDER,borderRightColor:Rm.DARK_MODE_BORDER,borderLeftColor:Rm.DARK_MODE_BORDER,borderTopColor:Rm.DARK_MODE_BORDER}:{borderLeftColor:Rm.BORDER_MEDIUM,borderRightColor:Rm.BORDER_MEDIUM,borderTopColor:Rm.BORDER_HEAVY,borderBottomColor:t?Rm.BORDER_HEAVY:Rm.BORDER_LIGHT},jH=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*qH+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},_H=e=>e.components?.find(e=>"theme"===e.key),zH=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:OH(r?.fontColor)?LH(Rm.TEXT,t,r?.fontColor):i||Rm.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...NH(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function FH(e,t,r){const n=_H(e)?.header,o=zH("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=km(o.background??Rm.WHITE,lg),o.activeBackground=km(o.background??Rm.WHITE,cg),o}const $H=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in hH)(e)&&Object.assign(t,hH[e])),t};function HH(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&Dm(i);a&&(n[r[t]]=a),o=i?$H(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Am(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const BH=25e4,VH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,WH=5e6,UH=5e5;const GH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:KH(e),value:KH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}};function KH(e){try{return decodeURIComponent(e)}catch{return e}}function YH(e){if(!(this instanceof YH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>GH.fromSearchString(t.search)}})}function XH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}YH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},YH.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=XH(t.key),t.value?r+=`=${XH(t.value)}`:r+=t.useEqualSign?"=":"";return r};var JH=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(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}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},ZH=class{decode(e){let t="";const r=new JH(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}};const QH=e=>e>=0&&e<=1114111,eB=e=>e.match(/[\s]/);var tB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const 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(r=i,n=0;n<5&&(o=e.next(),null!=o&&!eB(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return QH(a)?String.fromCharCode(a):"�"}},rB=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},nB=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return rB.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return rB.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||rB.newInstanceIfNeeded(e,t,this._value)}},oB=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new nB);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const iB=(()=>{const e=[],t=[],r=new oB;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})();var aB=class extends ZH{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,iB.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=iB.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}},sB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),QH(i))?String.fromCharCode(i):(e.reset(),null)}};let lB;"undefined"!=typeof document&&(lB=document.createElement("div"));const cB=Array.prototype.indexOf,uB=[",",".","_"," "],dB=[",",".","-","_"," "],pB={width:["%"],height:["%"]},fB={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},hB={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":fB.image,"background-color":fB.color,"border-color":fB.color,"border-image":fB.image,color:fB.color,icon:fB.image,"list-style-image":fB.image,"outline-color":fB.color},mB={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function gB(e,t,r){let n;if(t){if(cB)return cB.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function bB(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return lB.appendChild(r),t=lB.innerHTML,lB.removeChild(r),t}function vB(e,t,r){let n,o,i,a,s,l,c,u,d;for(e=xB(e).toLowerCase(),t=xB(t),i=0;i<mB.attr_name.length;i++)if(e.match(mB.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<mB.attr_val.length;i++)if(t.toLowerCase().match(mB.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=pB[e],n||(n=dB),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,n)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return r||(o+='"'),o}function yB(e,t,r){let n,o,i,a,s,l,c,u,d,p;if(e=xB(e).toLowerCase(),t=xB(t),gB(e,mB.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<mB.css_val.length;n++)if(t.toLowerCase().indexOf(mB.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=hB[e],o||(o=fB.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function xB(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new aB,new sB,new tB];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}const SB=[];for(let e=0;e<255;e++)SB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const wB={html:e=>bB(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=yB(t,r[t],!0),i+=yB(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=vB(e,t[e],!0),o+=vB(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function CB(e,t){throw new Error(t)}var EB={canonicalize:xB,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(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?wB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.attr(e)):void CB(this,"Invalid parameter type")},encodeForAttr:vB,encodeForAttr2:function(e){return vB("nonsens",e,!0)},encodeForCSS:yB,encodeForHref:function(e){xB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new YH(e),r=YH.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+YH.encodeSearchParams(n)+t.hash;const o=decodeURI(e).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){let r,n,o,i,a,s;for(t||(t=uB),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),gB(o,t)>=0||null==SB[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:bB,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=xB(t).toLowerCase():CB(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:r=UH,maxByteSizeImage:n=WH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=VH.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const RB=(e,t)=>t.qAttrExps?.qValues?.[e],AB=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},IB=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!EB.isSafeDataURL(t))?{type:lF.Text,url:void 0,text:e,labelStructure:o}:{type:lF.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:AB(n,a),labelStructure:o,imageBox:i},kB=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:lF.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:lF.MiniChart,text:n,miniChart:a}},PB=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===cF.Attribute?void 0:r?.urlLabel},DB=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:lF.Link,url:EB.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:lF.Text,url:void 0,text:t,labelStructure:e}}},MB=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=uF(t),d=s(e);return u===lF.Image&&c[lF.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=RB(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),IB({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return IB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=RB(r.imageLabel??-1,e)?.qText??n;return IB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:lF.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):u===lF.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===cF.Attribute){const i=PB(r.url??-1,e,t);return DB({labelStructure:n,text:o||i||"",url:i})}if(i===cF.Dimension){const i=PB(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),DB({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:lF.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):u===lF.Indicator&&c[lF.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:lF.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===lF.MiniChart&&c[lF.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?kB(e,t,i,d):{type:lF.Text,url:void 0,text:d,labelStructure:a}},TB=Kg(e=>{const t=e(Kb),r=e(Mb);return e(Tb),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),qB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),OB=({cId:e})=>e??Zz(),LB=1e4;function NB(e,t){return[...t].reverse().find(t=>t*e<=LB)||Math.floor(LB/e)}function jB(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function _B(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function zB(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return J$(r?.qNum)}function FB(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const $B=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",HB=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?km(s,lg):void 0,c=s?km(s,cg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Am(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const BB=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ug.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:sg.Auto},selectionColIdx:S,isActivelySorted:g,id:OB(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:qB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:_B(e,f,c,d??-1),...!f&&{isTotalNumeric:zB(e,d??-1)},...FB(I,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?HB(O,r):void 0}}(e,o,t,r,n))},VB=(e,t,r,n)=>e?(n?r.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":r.nullValueRepresentation?.text??t.qText??"-",WB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,UB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},GB=Kg(e=>{const t=e(KB),r=e(Rb),n=e(TB),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>LB?{...t,rowsPerPage:NB(l,t.rowsPerPageOptions),page:0}:t}),KB=Kg(UB),YB=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(TB);return Vb(t,r)?{page:n.page||UB.page,rowsPerPage:n.rowsPerPage||UB.rowsPerPage,rowsPerPageOptions:UB.rowsPerPageOptions}:e(GB)},(e,t,r)=>{t(KB,e=>({...e,...r}))}),XB=!0,JB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,ZB=Kg(async e=>{const t=e(Rb),r=e(Kb),n=e(Ub),{page:o,rowsPerPage:i}=e(YB),a=e(TB),s=e(Qb),l=e(Sb),c=e(Ib),u=e(wb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=jB(t,r),v=BB(t,XB,n,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,r)=>{const o=[],i=e.some(JB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&WB(c,a.isDim),p=u||d?VB(a.isDim,c,t,y):c.qText,f=u?Q$(p):Z$(c),g=Z$(c)&&!Q$(c.qText??"");o[s]={id:Zz(),...c,align:$B(f,a.bodyTextAlign,n,XB),rowIdx:r+h,colIdx:a.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:r===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&WB(c,a.isDim),representation:MB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:n,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),QB=oA(ZB,e=>e),eV=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(_b),o=e(Ub),i=e(wb),a=BB(t,false,o,i),s=jB(t,r),l=t.qHyperCube.qSize.qcy,c=Math.min(BH,l),u=l>BH&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),tV={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},rV=Kg(),nV=Kg(e=>{const t=e(Xb),r=e(rV);return r||(t?e(QB)??tV:e(eV))}),oV=Kg(e=>e(nV).totalsPosition),iV=Kg(e=>e(nV).columns),aV=Kg(e=>e(iV).length),sV=Kg(e=>e(nV).rows),lV=Kg(e=>e(nV).totalRowCount),cV=Kg(e=>e(nV).totalColumnCount),uV=Kg(e=>e(nV).paginationNeeded),dV=Kg(e=>{const t=e(iv),r=e(lv),n=e(Rb),o=e(oV),i=e(sV),a=o.atTop,s=function(e,t,r,n){const o=_H(e)?.content,i=zH("content",t,o);i.background=t.background.color;const a=jH(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=OH(l)||!!u,p=OH(s)||!!c,f=d||p;let h;h=OH(s)?LH(Rm.HOVER,t,s):c||(d?"":Rm.HOVER);const m=f?LH(Am(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=FH(n,r,!a),c=function(e,t,r){const n=_H(e)?.content,o=zH("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=FH(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:c}}),pV=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},fV=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=pV(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},hV=(e,t,r,n=Rm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=fV(e,t,r);return Lm(i,o,a,n)??n},mV=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return uH}},gV=e=>e?.some(e=>"italic"===e)?"italic":"normal",bV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?dH:"normal",vV=e=>!1===e?1:3,yV=e=>e?.some(e=>"underline"===e)?"underline":"none",xV=Kg(e=>{const t=e(Kb),r=e(Xb),n=e(lv),o=e(Rb),i=e(dV),a=e(wb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=_H(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=r?Rm.WHITE:Rm.TRANSPARENT,v=hV(n,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??pH,fontSize:mV(s?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:gV(s?.fontStyle),fontWeight:bV(s?.fontStyle,dH),textDecoration:yV(s?.fontStyle),color:pV(n,s?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??Rm.TEXT,background:v},headerMenuHoverBackground:km(v,lg),headerMenuActiveBackground:km(v,cg),dimension:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(l?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:gV(l?.fontStyle),fontWeight:bV(l?.fontStyle,"normal"),textDecoration:yV(l?.fontStyle),color:pV(n,l?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(c?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:gV(c?.fontStyle),fontWeight:bV(c?.fontStyle,"normal"),textDecoration:yV(c?.fontStyle),color:pV(n,c?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(u?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(u?.fontStyle),fontWeight:bV(u?.fontStyle,dH),textDecoration:yV(u?.fontStyle),color:pV(n,u?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??n.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(d?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(d?.fontStyle),fontWeight:bV(d?.fontStyle,dH),textDecoration:yV(d?.fontStyle),color:pV(n,d?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:gV(x?.fontStyle),fontWeight:bV(x?.fontStyle,"normal"),textDecoration:yV(x?.fontStyle),color:pV(n,x?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,x?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:gV(p?.fontStyle),fontWeight:bV(p?.fontStyle,"normal"),textDecoration:yV(p?.fontStyle),color:pV(n,p?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,p?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??vV(o.multiline?.wrapTextInCells),headerLineClamp:vV(o.multiline?.wrapTextInHeaders),border:pV(n,h?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?Rm.DARK_MODE_BORDER:Rm.BORDER_MEDIUM),divider:pV(n,h?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??Rm.BORDER_HEAVY,hoverColors:{color:pV(n,m?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:pV(n,m?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:pV(n,h?.zebraStripes?.color?.odd),background:pV(n,h?.zebraStripes?.background?.odd)},even:{color:pV(n,h?.zebraStripes?.color?.even),background:pV(n,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===pV(n,x?.background),overrideDimNullValueColor:void 0===pV(n,x?.fontColor),overrideMeasNullValueBackground:void 0===pV(n,p?.background),overrideMeasNullValueColor:void 0===pV(n,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Im(n),contentStaticLineCount:y}}),SV=Kg(e=>{const t=e(xV);return Math.max(TH(t.header.fontSize)+8,32)}),wV=Kg(e=>{const t=e(xV),r=TH(t.totalRow.fontSize);return Math.max(r+9,24)}),CV=Kg(e=>{const t=e(xV),r=e(kb),n=e(Pb);return Math.max(r>0?TH(t.dimension.values.fontSize):0,n>0?TH(t.measure.values.fontSize):0)}),EV=Kg(e=>{const t=e(xV),r=e(CV),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),RV=Kg(e=>{const t=e(xV),r=TH(t.subTotalRow.fontSize),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),AV=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(ag.PixelsMax,Math.max(ag.PixelsMin,f)),i-=n[a]};switch(s){case sg.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?ag.PixelsDefault:+e)(l),h();break;case sg.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?ag.PercentageDefault:+e)(c)/100*t,h();break;case sg.FitToContent:e.representation?.type===lF.Image?o.push(a):(f=r(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sg.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(ag.AutoMinTable,e)})}return n},IV=Kg(e=>{const t=e(xV),r=e(nV).totalsPosition,n=e(qb),{measureText:o}=e(B$({...t.header,fontWeight:dH})),{measureText:i}=e(B$({...t.totalRow,fontWeight:dH})),{estimateWidth:a}=e(B$(t.dimension.values)),{estimateWidth:s}=e(B$(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,c,u,d,p)=>{let f;if(n){const t=4;let r=25;r+=t+24,c&&(r+=20+t),u&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=wH),t+=wH,t+=wH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),kV=Kg(null),PV=Kg(e=>{const t=e(nV),r=e(ov).width,n=e(MH),o=e(IV);return AV(t.columns,r-n,o)}),DV=Kg(e=>e(kV)??e(PV),(e,t,r)=>{t(kV,r)}),MV=cA(e=>{const t=e(W$);!1===e(PH)&&t.emit("done-adjusting-column-width")}),TV=cA((e,t)=>{e(Rb),t(kV,null)}),qV=Kg(e=>e(DV).reduce((e,t)=>e+t,0)),OV=({children:e})=>(ab(TV),ab(MV),e);function LV(e){const t=wm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),vc({...t,direction:e})}const NV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},jV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},_V=_c("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...NV},"&::-moz-range-track":{...NV},"&::-ms-track":{...NV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...jV},"&::-moz-range-thumb":{...jV},"&::-ms-thumb":{...jV},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),zV=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=Jm({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!c,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};Ym(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,ag.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sg.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Tm(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Tm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===og.Left||e.key===og.Right){Tm(e);const t=5,r=e.key===og.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===og.Space||e.key===og.Enter?(Tm(e),s(e),l?.(!1),x()):e.key===og.Esc&&(Tm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return nr.jsx(_V,{style:b,hoverColor:o,isLastColumn:r,className:ig,"data-testid":ig,onMouseDown:e=>{Tm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:sg.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Tm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":ag.PixelsMin,"aria-valuemax":ag.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},FV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),$V=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},HV=_c(Pd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),BV=_c(FV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),VV=_c(Wf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),WV=_c(Cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),UV=_c(Xf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),GV=_c(Xf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({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:r?"rgba(0, 0, 0, 0.05)":"transparent"})),KV=_c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),YV=_c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),XV=_c(Wu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),JV=_c(vf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),ZV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),QV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?QV(t):t:e.parentElement?.children?.[0]},eW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?eW(t):t},tW=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===og.Down||t===og.Up){const r=e=>t===og.Down?QV(e):eW(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},rW=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let nW={};const oW=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=I(!1),f=S.useRef(null),h=q(e=>{e.stopPropagation(),p(!1)},[p]);return nr.jsxs(nr.Fragment,{children:[nr.jsxs(GV,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),nW={}),a?.length&&(p(!0),nW[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:tW,children:[l?nr.jsx(KV,{direction:c,isPagination:u}):null,nr.jsxs(YV,{children:[nr.jsx(JV,{direction:c,isPagination:u,children:nr.jsx(o,{})}),nr.jsx(XV,{variant:"body2",children:n})]}),a?.length?nr.jsx(ZV,{}):null]},t),a?.length?nr.jsx(lW,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:rW(a,nW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},iW=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&nr.jsx(UV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>nr.jsx(oW,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),aW=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[iW({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?nr.jsx(WV,{"data-testid":"group-divider",variant:"middle"}):void 0]),sW={appear:0,enter:0,exit:0},lW=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?nr.jsx(VV,{className:tg,open:t,anchorEl:e,onClose:r,transitionDuration:sW,MenuListProps:{id:rg},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:aW({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,cW=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),uW=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),dW=(e,t)=>e.some(e=>t[e]>0),pW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},fW=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(pW);return Ym(()=>{e||(s(pW),i(null))},[e]),M(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=uW(t,r),c=await n.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:dW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:dW(["qSelected"],e),canSelectPossible:dW(["qOption"],e),canSelectAlternative:dW(["qAlternative"],e),canSelectExcluded:dW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},hW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),mW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),gW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),bW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),vW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),yW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),xW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),SW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),wW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),CW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),EW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),RW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),AW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})}));let IW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const kW="/qListObjectDef",PW=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[IW.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:hW,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:bW,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:xW,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[IW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:SW,enabled:!0}]}]),!e.isLocked&&r[IW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:AW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(kW))},icon:wW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(kW))},icon:RW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(kW))},icon:CW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(kW))},icon:EW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(kW))},icon:mW,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:yW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:vW,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[IW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),u?.(c)},icon:gW,enabled:!0}]}]),f},DW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Zm})=>{const v=k(null),y=Jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=fW({open:e,headerData:n,app:C,qStateName:u?.qStateName}),A=$V({model:f,headerData:n}),I=cW({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),P=q(e=>{e.stopPropagation(),t(!1)},[t]),D=q(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?nr.jsxs(HV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eg,onClick:!1===g?D:void 0,ref:v,isAccessibleHeader:g,children:[s?nr.jsx(BV,{height:b,className:Qm,"data-testid":Qm,isInteractionsActive:i.active??!1,children:nr.jsx(FV,{})}):null,nr.jsx(lW,{open:e,anchorEl:!1===g?v.current:r.current,onClose:P,menuGroups:PW({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},MW=e=>e.isDark?{background:e.color,borderColor:Rm.DARK_MODE_BORDER,color:Rm.DARK_MODE_TEXT,disabledColor:Rm.DARK_MODE_DISABLED,iconColor:Rm.DARK_MODE_TEXT}:{background:e.color,borderColor:Rm.BORDER_MEDIUM,color:Rm.TEXT,disabledColor:Rm.DISABLED},TW=_c(Pd,{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}`})),qW=_c(Dh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),OW=_c(zd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),LW=_c(Wu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),NW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>MW(n.background),[n]);if(!r.active)return null;const a=o?nr.jsx(TW,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},jW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),_W=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),zW=P({}),FW=()=>O(zW),$W=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=A(()=>MW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Jm({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return nr.jsx(zW.Provider,{value:S,children:e})},HW=({disabledCondition:e,pageNumber:t,type:r,footerStyle:n,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:n,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${r}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let BW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),VW=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}({});const WW=()=>{const{direction:e,pageInfo:t,width:r,interactions:n,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=FW(),c=0===t.page,u=HW({type:BW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:n,tabIndex:l});return r<=(o?.firstPage||VW.FirstPage)?null:nr.jsx(OW,{...u,disabled:!n.active,children:"rtl"===e?nr.jsx(_W,{height:Zm}):nr.jsx(jW,{height:Zm})})},UW=(e,t,r=!1)=>{r&&e.key===og.Tab&&!e.shiftKey&&(Tm(e),Mm(e.target,t,!1))},GW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=FW(),p=t.page>=n-1,f=HW({type:BW.LastPage,disabledCondition:p,pageNumber:n-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=r.enabled?e=>{UW(e,r,o)}:void 0;return i<=(s?.lastPage||VW.LastPage)?null:nr.jsx(OW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?nr.jsx(jW,{height:Zm}):nr.jsx(_W,{height:Zm})})},KW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),YW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=FW(),d=t.page>=n-1,p=HW({type:BW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>VW.FirstPage&&i>VW.LastPage)&&r.enabled?e=>{UW(e,r,o)}:void 0;return nr.jsx(OW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?nr.jsx(KW,{height:Zm}):nr.jsx(ZV,{height:Zm})})},XW=()=>{const{direction:e,pageInfo:t,interactions:r,footerStyle:n,handleChangePage:o,translator:i,tabIndex:a}=FW(),s=0===t.page,l=HW({type:BW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:n,handleChangePage:o,translator:i,interactions:r,tabIndex:a});return nr.jsx(OW,{...l,disabled:!r.active,children:"rtl"===e?nr.jsx(ZV,{height:Zm}):nr.jsx(KW,{height:Zm})})},JW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=FW(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||VW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return nr.jsx(LW,{variant:"caption",dir:"ltr",children:s})},ZW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=FW(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return nr.jsxs(nr.Fragment,{children:[nr.jsxs(LW,{variant:"caption",id:p,children:[u,":"]}),nr.jsx(qW,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},QW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=FW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||VW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=nr.jsx(nr.Fragment,{children:e.rowsPerPageOptions.map(e=>nr.jsx("option",{value:e,children:e},e))});return nr.jsx(ZW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},eU=1e3,tU="…",rU=({totalPages:e,page:t})=>{const r=Math.min(e,eU),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-eU):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return nr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(nr.jsx("option",{value:tU,disabled:!0,children:tU},"startMoreOptions")),o<e-1&&a.push(nr.jsx("option",{value:tU,disabled:!0,children:tU},"endMoreOptions")),nr.jsx(nr.Fragment,{children:a})},nU=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=FW(),{page:i}=e;if(t<=(o?.selectPage||VW.SelectPage))return null;const a=nr.jsx(rU,{totalPages:r,page:i});return nr.jsx(ZW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var oU=j(e=>nr.jsxs($W,{...e,children:[nr.jsx(QW,{}),nr.jsx(nU,{}),nr.jsx(JW,{}),nr.jsx(WW,{}),nr.jsx(XW,{}),nr.jsx(YW,{}),nr.jsx(GW,{})]}));const iU=e=>nr.jsx(NW,{...e,children:nr.jsx(oU,{...e})}),aU=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},sU=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},lU=e=>e.ctrlKey||e.metaKey,cU=e=>e.shiftKey&&lU(e),uU=e=>[og.Left,og.Right,og.Up,og.Down].includes(e),dU=e=>e.shiftKey&&uU(e.key),pU=e=>(e=>uU(e)||[og.Home,og.End,og.PageUp,og.PageDown].includes(e))(e.key)&&!cU(e),fU=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),aU(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},hU=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&dU(c)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const u=((e,t,r,n,o)=>{if(!r.isSelectable)return t;const i=new Map(t);if("key"in n&&dU(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===og.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];r.isSelectable&&i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,c,a);return aU(l,n,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},mU=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},gU=(e,t)=>{switch(t.type){case G$.Select:return fU(e,t.payload);case G$.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case G$.SelectMouseUp:return((e,t)=>mU(e.isSelectMultiValues||e.firstCell!==t.cell?e:fU(e,t)))(e,t.payload);case G$.SelectMultiAdd:return hU(e,t.payload);case G$.SelectMultiEnd:return mU(e);case G$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case G$.Clear:return e.rows.size?{...e,rows:new Map}:e;case G$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},bU=Kg(e=>{const t=e(Nb);return function(e,t){return Kg(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(nV).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},gU)}),vU=Kg(e=>e(e(bU)),(e,t,r)=>{t(e(bU),r)}),yU=hI(e=>Kg(t=>{const{colIdx:r,rows:n,api:o}=t(vU);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?U$.Disabled:n.has(e.qElemNumber)?U$.Selected:U$.Possible:U$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),xU=Kg(e=>{const t=e(qV),r=e(ov).width,n=e(MH);return t>0&&t+n<r}),SU=()=>{const[e,t]=I(!1);return dj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?nr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},wU=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),CU=Kg(e=>{const t=e(kb),r=e(ev);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await r.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),EU=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},RU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),AU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),IU=e=>e.atTop?2:1,kU=(e,t)=>({top:e?IU(t):0,bottom:e&&t.atBottom?1:0}),PU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],DU=e=>e?.setAttribute("tabIndex","0"),MU=e=>e?.setAttribute("tabIndex","-1"),TU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(MU)},qU=e=>{e?.focus(),DU(e)},OU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ig}`);qU(t)},0)},LU=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{TU(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[c,u]=r;switch(e.key){case og.Down:c<s&&c++;break;case og.Up:c>a&&c--;break;case og.Right:if(i)break;[c,u]="rtl"===n?RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case og.Left:if(i)break;[c,u]="rtl"===n?AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case og.Home:(lU(e)||i)&&(c=a),i||(u=0);break;case og.End:(lU(e)||i)&&(c=s),i||(u=l);break;case og.PageDown:c=Math.min(s,c+10);break;case og.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,r,i,o),s=PU(t,a);return qU(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},NU=(e,t,r,n)=>{TU(t),r(e),n.enabled&&!n.active?n.focus?.():qU(PU(t,e))},jU=(e,t,r)=>{const n=e.currentTarget;if(!n)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${tg}`))return;const i=!!o&&n.contains(o);!r.enabled||t.current||i||(e=>{const t=e.querySelector(`.${Y$.First}`),r=e.querySelector(`.${Y$.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),((e,t,r)=>{const n=e.currentTarget;if(!r.enabled||t.current||!n)return;const o=e.relatedTarget??document.activeElement;o&&n.contains(o)||r.blur?.(!1)})(e,t,r)},_U=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),zU=_c(Kh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...fH,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),FU=_c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:uH,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),$U=parseInt(uH,10)/2,HU=_c("div")({position:"absolute",bottom:-$U,left:`calc(50% - ${$U}px)`}),BU=_c(um)({position:"sticky",top:0,zIndex:1}),VU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},WU=_c(Pd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),UU=_c("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isDual:o=!1})=>n&&!o||1===e&&!t?{...VU,whiteSpace:"nowrap",display:r?"block":void 0}:{...VU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),GU=_c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),KU="cell-text",YU=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=ab(xV);return o?nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:r,lineClamp:a??s.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},XU=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=ab(Db),l=ab(CU),c=ab(Ub),u=ab(_b),d=ab(db),p=ab(cv),f=ab(cb),h=ab(DV)[t.pageColIdx],m=ab(Qb),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const r=ab(xV),{measureText:n}=Bm({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:dH});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(hW,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(bW,{height:uH,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(FU,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(AH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(_U,{height:uH,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return nr.jsxs(RH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:vH(t,i,c),children:[S,nr.jsxs(EH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,nr.jsx(YU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?nr.jsxs(nr.Fragment,{children:[nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),nr.jsx(CH,{ref:b,direction:c,isPagination:i}),nr.jsx(CH,{ref:g,direction:c})]}):null]})},JU=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),ZU=(e,t)=>e.isCyclic&&t,QU=({column:e})=>{const t=ab(xV),r=ab(Ub),n=ab(Qb),o=S.useRef(null),[i,a]=S.useState(!1),s=$V({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return nr.jsxs(nr.Fragment,{children:[nr.jsx(kH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:nr.jsx(JU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),nr.jsx(lW,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},eG=e=>e.isLocked,tG=({column:e})=>{const t=ab(cb),r=ab(Db),n=ab(Cb),o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,r,n={warn:()=>{},error:()=>{}})=>{const o=uW(t??"$",r);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){n.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||n.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,r,e,n)},children:nr.jsx(_U,{height:16,"data-testid":"head-cell-lock-icon"})})},rG=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:nr.jsx(FV,{height:16})})},nG=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=ab(cb),s=ab(Ub),l=ab(db),c=ab(_b),u=ab(Qb),d=ab(Db),p=ab(cv),f=ab(CU);return nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:r})},oG=Kg();oG.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const iG=({ref:e,callback:t})=>{const r=ab(oG),n=k(t);n.current=t,L(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},aG=_c(Pd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),sG=({children:e})=>{const t=S.useRef(null),[r,n]=I(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=q(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return iG({ref:t,callback:i}),nr.jsx(aG,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},lG=({children:e})=>e,cG=(e,t)=>!e.isLocked&&e.isDim&&t,uG=({column:e,open:t,setOpen:r})=>{const n=ab(xV),o=ab(Db),i=ab(Ub),a=ab(db);ab(cb);const s=S.useRef(null),l=q(()=>{r(!1)},[r]),c=cW({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:nr.jsx(SW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},dG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),pG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),fG=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?nr.jsx(pG,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(dG,{height:uH,"data-testid":"head-cell-sort-descending-icon"});return r?nr.jsx(HU,{children:n}):void 0},hG=0,mG=1,gG=2,bG=3,vG=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=ab(xV),c=ab(Ub),{measureText:u}=Bm(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>ag.PixelsMin+18;return nr.jsxs(nr.Fragment,{children:[nr.jsxs(sG,{children:[nr.jsx(lG,{prio:gG,minWidth:wH,children:eG(t)?nr.jsx(tG,{column:t}):null},"Lock"),nr.jsx(lG,{prio:mG,minWidth:wH,children:ZU(t,s)?nr.jsx(QU,{column:t}):null},"Cyclic"),nr.jsx(lG,{ignore:!0,children:nr.jsx(fG,{column:t})},"Sort"),nr.jsx(lG,{minWidth:u(t.label)+8,children:nr.jsx(IH,{justifyContent:t.headTextAlign,children:nr.jsx(YU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),nr.jsx(lG,{prio:g?void 0:hG,minWidth:wH,children:d||cG(t,s)?nr.jsx(uG,{open:d,setOpen:p,column:t}):null},"Search"),nr.jsx(lG,{prio:bG,minWidth:wH,children:s?nr.jsx(rG,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?nr.jsxs(nr.Fragment,{children:[nr.jsx(CH,{ref:h,direction:c,isPagination:o}),nr.jsx(CH,{ref:f,direction:c}),nr.jsx(nG,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},yG=_c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),xG=()=>{},SG=({column:e,isPagination:t})=>{const r=ab(xV),n=ab(Ub),o=ab(xU),i=ab(oV),a=!1,s=ab(qb)?XU:vG;return nr.jsx(yG,{className:"sn-table-cell",applicableStyle:{...r.header,...wU(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(n,a,o),borderLeftWidth:SH(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:nr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:xG})})},wG=({isPagination:e})=>{const t=ab(iV),[r,n]=I();dj({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?nr.jsx(HN,{children:nr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:nr.jsx(SG,{column:o,isPagination:e})})}):null},CG=oA(Kg(async e=>{e(Rb);const t=e(ev);return t?.getEffectiveProperties()}),e=>e),EG=Kg(e=>e(CG)?.qHyperCubeDef),RG=[YL.configure({activationConstraints:[new WL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],AG=gN.plugins.filter(e=>e!==CO),IG=(e,t,r)=>{const n=JSON.stringify(t),o=JSON.stringify(r);if(n!==o)return{qPath:e,qOp:"Replace",qValue:o}},kG=(e,t,r,n,o)=>{if(!e||!t||n===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,visibleColumnIds:n,sourceId:o,targetId:i})=>{const a=Qz({qDimensions:e,qMeasures:t}),s=[...e,...t],l=n.findIndex(e=>e===o),c=n.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,r)=>{const n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n})(n,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const r=d.get(e.id),n=d.get(t.id);return void 0===r||void 0===n?0:r-n}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:eF({previousColumns:s,nextColumns:m,qInterColumnSortOrder:r}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:r.map(e=>e.id),sourceId:n,targetId:o});if(!i)return;const a=[IG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),IG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),IG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),IG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},PG=({children:e})=>{const t=ab(ev),r=ab(EG),n=ab(iV);return nr.jsx(zN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&kG(t,r,n,o,i)},sensors:RG,plugins:AG,children:e})};function DG(e,t){const r=k(!1);M(()=>{r.current?e():r.current=!0},t)}const MG=(e,t)=>{const r=ab(Zb);M(()=>{const n=e.current;if(!n)return;const o=e=>{jU(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])},TG=Kg(X$),qG=hI(e=>Kg(t=>{const[r,n]=t(TG);return 0===r&&n===e})),OG=()=>{const e=ab(ub);M(()=>{e.notifyIsDoneRendering()})};var LG={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const NG=Kg(e=>{const t=e(cv),r=e(iv),n=e(Cb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(LG).forEach(t=>{e.add(LG[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),s=r.querySelector(`.${Y$.First}`),l=r.querySelector(`.${Y$.Second}`);if(!s||!l)return void n.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===Y$.First?(c=l,o=Y$.Second):(c=s,o=Y$.First),c.innerHTML=c.innerHTML.endsWith(" ")?a:`${a} `,c.setAttribute("aria-live",i)}}),jG=(e,t)=>{const r=ab(NG),n=ab(iv),o=ab(cV),i=ab(lV),a=ab(sV),s=ab(oV),[l,c]=lb(TG),u=ab(Lb),d=ab(Zb);DG(()=>{const t=((e,t,r=!1)=>{const n=[IU(t),e[1]];return r?n:X$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(TU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=PU(t,e);r.current?(qU(s),r.current=!1):DU(s),n&&(a({keys:[s?.textContent??""]}),sU(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:r})},[a.length,i,o,t])},_G=e=>{Tm(e),lU(e)&&fg(e.currentTarget)},zG=e=>{pU(e.evt)&&(Tm(e.evt),LU(e))},FG=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!pU(t))return;Tm(t);const i=((e,t)=>[e.pageRowIdx+IU(t),e.pageColIdx])(n,r),a=kU(o,r),{nextCell:s,nextCellCoord:l}=LU({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:G$.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):sU(o,a,i)})({...e,nextCell:s})},$G=e=>{const{evt:t}=e;cU(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Tm(e);const a=Math.ceil(t/r)-1;e.key===og.Right&&n<a?(o(),i(n+1)):e.key===og.Left&&n>0&&(o(),i(n-1))})(e):t.key===og.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Tm(e),t.blur?.(!0))})(e):uU(t.key)&&Tm(t)},HG=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(U$.Disabled))return void Tm(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case og.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Tm(e),t.isSelectable&&r&&n({type:G$.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case og.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Tm(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case og.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Tm(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case og.C:_G(t);break;case og.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Tm(e),Mm(e.currentTarget,t,e.shiftKey))})(n);break;default:FG(n)}},BG=e=>{const t=ab(PH),r=sb(DH),n=sb(MH),o=ab(W$),i=k();iG({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),M(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},VG=_c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),WG=_c(Zh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),UG=_c(Nh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),GG=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(VG,{className:Y$.First,"data-testid":Y$.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(VG,{className:Y$.Second,"data-testid":Y$.Second,"aria-live":"polite","aria-atomic":"true"})]}),KG=e=>{const t=k(new Map),r=k(null);M(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=q((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=q(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},YG=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),XG=()=>KG(YG),JG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(Nb),n=ab(Zb),o=sb(vU);M(()=>{const i=()=>{o({type:G$.Reset})},a=()=>{o({type:G$.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},ZG=e=>{e.stopPropagation()},QG=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:ZG,color:Rm.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),eK=({href:e,text:t,interactions:r,color:n})=>nr.jsx(Yp,{...QG({href:e,text:t,interactions:r,color:n}),children:t}),tK=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),rK=window.cancelIdleCallback??(e=>{clearTimeout(e)}),nK="qDimensionInfo/0",oK="qMeasureInfo/0",iK="x",aK="y",sK=e=>({key:"bars",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK}}}},settings:{major:{scale:iK},minor:{scale:aK},box:{maxWidthPx:8,fill:{fn:e}}}}),lK=e=>({key:"p",type:"point",data:{extract:{field:nK,props:{y:{field:oK}}}},settings:{x:{scale:iK},y:{scale:aK},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),cK=({qNum:e})=>void 0===e?0:Math.sign(e),uK=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Pm(e,t?.negative,r),a=Pm(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK,value:cK}}}},settings:{major:{scale:iK},minor:{scale:aK},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},dK=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Pm(e,t?.main,o),l=Pm(e,t?.max,s),c=Pm(e,t?.min,s),u=Pm(e,t?.first,s),d=Pm(e,t?.last,s);return e=>{const t=aK in e.datum?aK:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[sK(a)];case"dots":return[lK(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:nK,props:{v:{field:oK}}}},settings:{coordinates:{major:{scale:iK},minor:{scale:aK,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Pm(e,n?.main,e.getDataColorSpecials().primary));return r?[t,lK(a)]:[t]}case"posNeg":return[uK(e,n)];default:return[]}},pK=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),fK=(e,t,r,n)=>({y:{data:{field:oK},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:nK}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),hK=U();hK.use(W),hK.renderer.prio(["canvas"]);const mK={resolve:()=>{},promise:{}},gK=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=k(e.isDownloadedAsPDForImage?Lt():mK);return{addChartPromiseToQueue:q(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q(()=>{if(null===t.current||null!==e.current)return;c();r.current=tK(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=n;return hK.chart({element:e,data:{type:"q",key:"qHyperCube",data:pK(s)},settings:{scales:fK(a,l,c,i),components:dK(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,c,r,n,o,a,i,l]),safeCancelIdleCallback:q(()=>{null!==r.current&&rK(r.current),r.current=null,l()},[r,l])}},bK=e=>{const t=k(null),r=k(!1);return q(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(rK(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=tK(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},vK=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),c=k(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=gK({element:s,chart:l,requestId:c,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=q(e=>{e.isIntersecting?n():r()},[n,r]);M(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{M(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=bK(t);M(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},yK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=vK({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return nr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},xK=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},SK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},wK=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=ab(Ub),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=nr.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:r,objectFit:SK(s),objectPosition:xK(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?r:"100%",overflow:"hidden",display:"flex",justifyContent:c?mH(o,e):void 0},children:u}):u},CK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),EK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),RK=_((e,t)=>nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[nr.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),nr.jsx("use",{fillRule:"evenodd"})]})),AK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),IK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),kK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),PK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M2 7.5h12v1H2z"})})),DK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),MK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),TK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),qK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),OK={m:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":TK,R:pG,S:dG,T:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:MK,Q:kK,"è":_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":AK,"©":RK,"23F4":IK,2013:qK,"&":DK,add:CK,"minus-2":PK,dot:EK},LK=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&OK[t];return o&&nr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:nr.jsx(o,{style:{height:e}})})},NK=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=ab(xV),o=ab(Ub),i=ab(lv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=sH(e,t,o,i),d=(e=>parseInt(e||uH,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&LK({size:d,iconKey:f,color:p}),nr.jsx(YU,{isNumeric:!0,children:a}),"right"===h&&LK({size:d,iconKey:f,color:p})]}):LK({size:d,iconKey:f,color:p})},jK=(e,t,r)=>e.contentStaticLineCount?t*(r??e.grid.contentLineClamp):t,_K=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=ab(xV),c=ab(CV),u=ab(ub),d=ab(Rb),p=ab(lv),f=ab(Ub),h=ab(_b),m=ab(Lb);if(t.representation.type===lF.Image&&!t.representation.url?.trim())return null;if(t.representation.type===lF.Image)return nr.jsx(wK,{representation:t.representation,textStyle:r,maxImageHeight:jK(l,c,o),wrapInContainer:!n});let g=t.representation.text;t.representation.type!==lF.Link||m||t.isNull||(g=nr.jsx(eK,{href:t.representation.url,text:t.representation.text,interactions:h,color:r.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==lF.Indicator||Number.isNaN(b)?t.representation.type===lF.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(yK,{height:jK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):nr.jsx(YU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):nr.jsx(NK,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:s})},zK=()=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:nr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),FK=_c("div")({"& path":{stroke:"none !important"}}),$K=({children:e,cellSelectionState:t,hideTickIcon:r})=>t!==U$.Selected||r?e:nr.jsxs(GU,{children:[e,nr.jsx(FK,{children:nr.jsx(zK,{})})]}),HK=e=>{const t=function(){const e=FN(),t=CN(()=>null==e?void 0:e.dragOperation.source,[e]),r=CN(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},BK=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:G$.SelectMultiEnd})};r({type:G$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:G$.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:G$.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),VK=e=>{const t=ab(uV),r=ab(oV),n=ab(NG),o=ab(iv),i=ab(Ub),a=sb(TG),s=sb(vU),l=ab(Zb),c=ab($b),u=ab(Nb),d=d=>{HG({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===og.Shift&&t({type:G$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;NU([s,a],t,r,n)})(e,o,a,l,r)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=BK(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},WK=e=>{M(()=>()=>{yU.remove(e)},[e])},UK=(e,t,r,n)=>{if(!r.isNull)return e;const o=n?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=n?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=n?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},GK=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},KK=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return GK(t,e,n?"even":"odd")}return e},YK=(e,t)=>{const r=ab(xV),n=ab(yU(e)),o=ab(wb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");WK(e);let a=t.isDim?r.dimension.values:r.measure.values;a=KK(a,r,e),a=i?r.subTotalRow:a,a=UK(a,r,e,t.isDim);const s=e.isNull||i&&t.isDim?a:HH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,r){return t===U$.Selected?{...e,...r}:t===U$.Disabled?{...e,background:`${lH}, ${e.background}`}:e}(s,n,r.selectedColors);return{cellStyle:{...l,borderColor:r.grid.border},representationStyle:s,cellSelectionState:n}},XK=_c(Bh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),JK=_c(um,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),ZK=_c(Kh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...fH,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),QK=_c(Kh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...fH,...e,fontWeight:dH,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),eY=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=ab(Ub),a=ab(_b),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=VK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=YK(e,t),m=HK(t.id);return nr.jsx(ZK,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${ng}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:nr.jsx($K,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:nr.jsx(_K,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:yH(i,e.align)})})})},tY=Kg(0),rY=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=ab(xV),i=ab(Fb),a=ab(tY),s=HK(e.id);return nr.jsx(QK,{totalsStyle:{...o.totalRow,...wU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ng}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:nr.jsx(YU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},nY=()=>{const e=ab(oV),t=ab(iV),r=ab(sV),n=ab(iv),o=ab(zb),i=ab(Ub),a=sb(TG),s=ab(Lb),l=ab(Zb);return nr.jsx(um,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:r.length+1,c];return nr.jsx(rY,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case og.C:_G(r);break;case og.Space:r.preventDefault();break;default:zG(e)}else Tm(r)})({evt:e,rootElement:n,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{NU(u,n,a,l)}},t.id)})})};var oY=j(nY);const iY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(sV),n=ab(oV),o=ab(iV),i=ab(xV),a=ab(EV),s=ab(RV),l=ab(Rb),c=!!_H(l)?.content?.hoverEffect;JG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=q(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return KG(t)})(t),d=XG();return nr.jsxs(XK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?nr.jsx(oY,{}):void 0,r.map((e,t)=>{const r=e.at(0)?.isTotalRow??!1;return nr.jsx(JK,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:r?s:a,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return nr.jsx(eY,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},n)})},`row-${t}`)}),n.atBottom?nr.jsx(oY,{}):void 0]})};var aY=j(iY);const sY=(e,t)=>!!e?.skipHeader||!!t.hideHeader,lY=Kg(e=>{const t=e(Rb),r=e(Qb);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),cY=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=ab(lY),s=ab(Ub),l=ab(zb),c=ab(cv),[u,d]=lb(DV);if(!l)return null;return nr.jsx(zV,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{MU(e);const t=e.closest(".sn-table-cell");qU(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},uY=e=>e.target?.getAttribute("class")?.includes(ig),dY=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=ab(CU),i=ab(PH);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||uY(t)||i||n(!0)},toggleSortOrder:r=>{e&&!uY(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var pY=class extends UM{constructor(e,t){super(e,t),this.boundingRectangle=YI(null),this.destroy=ik(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=aT(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,c=o.center.y-a/2,u=function(e,t,r){const n=Aj({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new RP(l,c,s,a),r,n);return u}};pY.configure=uD(pY);const fY=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/EP.distance(r.shape.center,s),type:xM.Collision,priority:yM.Normal}:null},hY=[pY.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],mY=(e,t)=>{const r=ab(Ub),n=!ab(Bb);return V_({id:e.id,disabled:n,index:t,type:"item",accept:"item",group:"column",modifiers:hY,data:e,plugins:e=>[...e,mL.configure({feedback:"clone"})],collisionDetector:fY({invert:"rtl"===r})})},gY=({column:e,columnIndex:t,columnsLength:r})=>{const n=ab(xV),o=ab(iv),i=ab(Ub),a=ab(_b),s=ab(iV),l=ab(oV),c=ab(DV)[t],u=sb(TG),d=ab(qG(t)),p=ab(Bb),f=ab(Zb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=dY({isInteractionEnabled:p,column:e}),v=sb(PH),{ref:y,isDragging:x}=mY(e,t),S=HK(e.id),w=ab(qb),C=w?XU:vG,E=e.isActivelySorted?K$[e.sortDirection]:void 0,R=h?rg:void 0,A=h?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return nr.jsxs(zU,{"data-dragging":x,ref:y,headerStyle:{...n.header,...wU(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${ng}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case og.C:_G(r);break;case og.Enter:case og.Space:n?.(r);break;default:zG(e)}else Tm(r)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&NU(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[nr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),nr.jsx(cY,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},bY=()=>{const e=ab(iV),t=ab(xV),r=ab(Rb),n=ab(Kb),o=sb(tY),i=ab(DV),a=k(null),s=sY(n,r);return M(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),nr.jsx(om,{style:{visibility:s?"collapse":void 0},children:nr.jsx(BU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>nr.jsx(gY,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var vY=j(bY);var yY=j(()=>{const e=ab(NG),[t,r]=lb(YB),{page:n,rowsPerPage:o}=t,i=ab(Gb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=ab(nV),p=ab(xV),f=ab(TB),h=ab(Rb),m=ab(lv),g=ab(ov),b=ab(iv),v=ab(Kb),y=ab(Ub),x=ab(_b),S=ab(cv),w=ab(xU),C=sb(vU),E=ab(Lb),R=ab(Zb),A=k(!1),I=k(null),P=k(null),D=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=Vb(h,v),O=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=q(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=q(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=q(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return(e=>{const t=ab(Ub),r=ab(TB);M(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth,{scrollLeft:o}=r;let i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&e.preventDefault()})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])})(I),MG(P,A),(()=>{const e=ab(iv),t=ab(Zb),r=ab(TG);Ym(()=>{const n=PU(e,r);t.active?qU(n):(n?.blur(),TU(e))},[t.active,e])})(),jG(A,n),M(()=>{const e=I.current;e&&(e.scrollLeft=O,e.scrollTop=L)},[t,s,O,L]),DG(()=>{C({type:G$.UpdatePageRows,payload:{pageRows:u}})},[u]),OG(),BG(I),nr.jsxs(PG,{children:[nr.jsxs(WU,{ref:P,dir:y,onKeyDown:e=>{$G({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[nr.jsx(GG,{}),nr.jsxs(WG,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[nr.jsxs(UG,{stickyHeader:!0,"aria-label":D,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[nr.jsx(vY,{}),nr.jsx(aY,{updateShouldRefocus:N,tableWrapperRef:P})]}),nr.jsx(SU,{})]}),nr.jsx(iU,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),nr.jsx(wG,{isPagination:!0})]})});const xY=Kg(0),SY=Kg(e=>{const t=e(Ab);return Math.min(BH,t)}),wY=Kg(e=>{const t=e(Ab);return t===BH?0:Math.floor(t/BH)}),CY=Kg(e=>{const t=e(xY),r=e(wY);return Math.min(t,r)}),EY=Kg(e=>({page:e(CY),rowsPerPage:e(SY),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(wY);t(xY,Math.max(0,Math.min(r,n)))}),RY=Kg(null),AY=Kg(null),IY=Kg(e=>{const t=e(EY),r=e(Ab);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),kY=Kg(null),PY=Kg(null),DY=Kg(e=>e(oV).atTop?2:1),MY=Kg(e=>e(oV).atTop?1:e(DY)+e(IY)),TY=Kg(e=>kU(Boolean(e(Lb)),e(oV))),qY=Kg(e=>({firstBodyRowIdx:e(DY),totalsRowIdx:e(MY),allowedRows:e(TY)})),OY=Kg(e=>({rootElement:e(iv),totalsPosition:e(oV),rowCount:e(IY),colCount:e(aV),columnWidths:e(DV)})),LY=Kg(e=>({scrollToCell:e(kY),scrollableContainerElement:e(PY)})),NY=Kg(e=>({keyboard:e(Zb),isInSelectionMode:e(Lb),selectionsAPI:e(Nb),isSelectionsEnabled:e($b)})),jY=Kg(e=>({direction:e(Ub),isInteractionEnabled:e(Bb),paginationNeeded:e(uV),announce:e(NG),shouldRefocusRef:e(RY)})),_Y=10,zY=e=>e.atTop?2:1,FY=(e,[t,r],n,o)=>{const i=zY(n);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${r}"]`);if(n.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${r}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${r}"]`):e.querySelector(`.sn-table-totals-row [data-col="${r}"]`)},$Y=(e,t,r,n,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=r,d=c-zY(n),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom&&r.left>=n.left&&r.right<=n.right})(FY(t,r,n,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},HY=(e,t,r,n,o,i)=>e<i?[t,e+1]:t<n?[t+1,o]:[t,e],BY=(e,t,r,n,o,i)=>e>o?[t,e-1]:t>r?[t-1,i]:[t,e],VY=(e,[t,r],n,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=n-1-a.bottom,d=o-1;switch(e.key){case og.Down:case og.Up:t=((e,t,r,n)=>e===og.Down&&t<n?t+1:e===og.Up&&t>r?t-1:t)(e.key,t,c,u);break;case og.Right:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?BY(e,t,r,0,o,i):HY(e,t,0,n,o,i))(r,t,c,u,0,d,i));break;case og.Left:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?HY(e,t,0,n,o,i):BY(e,t,r,0,o,i))(r,t,c,u,0,d,i));break;case og.Home:l?t=Math.max(c,t-_Y):(lU(e)&&(t=c),r=0);break;case og.End:l?t=Math.min(u,t+_Y):(lU(e)&&(t=u),r=d);break;case og.PageDown:t=Math.min(u,t+_Y);break;case og.PageUp:if(l)t=Math.max(c,t-_Y);else{const e=s?zY(s):1,r=t-e;t=r>0&&r<=_Y?e:Math.max(c,t-_Y)}}return[t,r]},WY=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},UY=[og.Home,og.End,og.PageUp,og.PageDown],GY=()=>{const e=k(!1),t=k(0),r=k(0),n=k(null),o=k(null),i=k(null),a=k(0),s=sb(TG),l=sb(vU),c=ab(wb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=ab(OY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=ab(qY),{scrollToCell:v,scrollableContainerElement:y}=ab(LY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=ab(NY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:P,shouldRefocusRef:D}=ab(jY),T=A(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let r=0;r<e.length;r++)t[r+1]=t[r]+(e[r]??0);return t})(h),[h]);M(()=>()=>{t.current+=1,r.current+=1,a.current+=1,n.current?.(),n.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const O=q((e,t,r,n)=>{const o=t=>{if(n&&!n())return void r?.(!1);const i=FY(u,e,d,p);if(i)return document.activeElement!==i&&EU(i),document.activeElement===i?void r?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void r?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):r?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=q((e,t)=>{const n=a.current+1;a.current=n;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==n)return;if(r.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,D&&(D.current=!0),o.current?.(),o.current=$Y(v,u,e,d,p,y,10,()=>a.current===n&&r.current===t,()=>{O(e,300,()=>{D&&(D.current=!1)},()=>a.current===n&&r.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[O,u,p,v,y,D,d]),N=q(()=>(D&&(D.current=!0),t.current+=1,t.current),[D]),j=q(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=q((e,r)=>{const n=o=>{t.current===e&&(i.current?.(),i.current=$Y(v,u,r,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=FY(u,r,d,p);i&&document.activeElement!==i&&EU(i),o>0?requestAnimationFrame(()=>{n(o-1)}):t.current===e&&D&&(D.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{n(300)})})},[u,d,p,v,D,y]),z=q((e,t)=>{if(!pU(e))return;Tm(e),j(),r.current+=1;const o=r.current;a.current+=1,n.current?.(),n.current=null;const i=((e,t)=>zY(t)+e+(t.atBottom?1:0))(p,d),l=VY(e,t,i,f,E,g,d);WY(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,r)=>{if(!e)return;const n=t[r]??0,o=t[r+1]??n,{scrollLeft:i,clientWidth:a}=e;n<i?e.scrollLeft=n:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),D&&(D.current=!0),n.current=$Y(v,u,l,d,p,y,10,()=>r.current===o,()=>{O(l,300,t=>{D&&(D.current=!1),t&&(e=>UY.includes(e))(e.key)&&L(l,o)},()=>r.current===o)}),l},[u,d,p,f,E,v,s,g,y,D,O,j,T,L]),F=q(e=>{e.key===og.Esc?x.enabled&&!S&&(Tm(e),x.blur?.(!0)):uU(e.key)&&Tm(e)},[x,S]),$=q((e,t,r)=>{switch(e.key){case og.C:Tm(e),I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget);break;case og.Enter:case og.Space:if(!I){Tm(e);break}r?.(e);break;default:z(e,[0,t])}},[z,I]),H=q((t,n,o,i)=>{const a=[n+m,o];switch(t.key){case og.Space:if(Tm(t),i.isSelectable&&C){e.current=!0;const r=N();l({type:G$.Select,payload:{cell:i,evt:t,announce:R}}),_(r,a)}break;case og.Enter:if(Tm(t),e.current=!1,S){N(),s(X$),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),r.current+=1;const t=r.current;O(X$,300,()=>{D&&(D.current=!1)},()=>r.current===t)}break;case og.Esc:if(e.current=!1,S){Tm(t);const e=N();w?.cancel(),_(e,a)}break;case og.C:Tm(t),I&&(t.ctrlKey||t.metaKey)&&fg(t.currentTarget);break;case og.Tab:{const e=t.shiftKey||!P;x.enabled&&S&&e&&(Tm(t),Mm(t.currentTarget,x,t.shiftKey));break}default:{const r=t.key===og.Left||t.key===og.Right,n=S||Boolean(w?.isModal())||e.current;if(r&&n){Tm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:G$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,P,I,N,_,s,v,y,O,D]),B=q(t=>{t.key===og.Space&&(e.current=!1),t.key===og.Shift&&l({type:G$.SelectMultiEnd})},[l]),V=q((e,t)=>{if(S)Tm(e);else{if(e.key!==og.Space)return e.key===og.C?(Tm(e),void(I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=q(e=>{j(),r.current+=1;const t=r.current;WY(u),s(e),x.enabled&&x.focus?.(),O(e,2,r=>{r&&L(e,t)},()=>r.current===t)},[u,s,x,O,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:q(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:q((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:q(e=>{c&&W([b,e])},[W,b,c])}};var KY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YY(e,t){return e===t||!(!KY(e)||!KY(t))}function XY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!YY(e[r],t[r]))return!1;return!0}function JY(e,t){var r;void 0===t&&(t=XY);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var ZY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function QY(e){cancelAnimationFrame(e.id)}function eX(e,t){var r=ZY();var n={id:requestAnimationFrame(function o(){ZY()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var tX=-1;function rX(e){if(void 0===e&&(e=!1),-1===tX||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),tX=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return tX}var nX=null;function oX(e){if(void 0===e&&(e=!1),null===nX||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?nX="positive-descending":(t.scrollLeft=1,nX=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),nX}return nX}var iX=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function aX(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=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 n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,iu(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:iu(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=JY(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=JY(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=JY(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,c=i;if("rtl"===t)switch(oX()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return sX(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=rX();void 0!==n&&(n=Math.max(0,Math.min(n,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(oX()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&QY(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?iX:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var D=C;D<=E;D++)k.push(w(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(c||u||"div",{children:k,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var sX=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},lX=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},cX=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},uX=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=r;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},dX=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?pX(e,t,r,i,0,n):fX(e,t,r,Math.max(0,i),n)},pX=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=uX(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},fX=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uX(e,t,n,r).offset<o;)n+=a,a*=2;return pX(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},hX=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=uX(e,t,r,i),c="column"===e?cX(t,i):lX(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},mX=aX({getColumnOffset:function(e,t,r){return uX("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return dX("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uX("column",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("column",e,c,n).size;return c},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:lX,getEstimatedTotalWidth:cX,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return hX("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return hX("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uX("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return dX("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uX("row",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("row",e,c,n).size;return c},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),gX=function(e,t){return e};function bX(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,iu(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:iu(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=JY(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=JY(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[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},n._getItemStyleCache=void 0,n._getItemStyleCache=JY(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(oX()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return vX(e,t),u(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 r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?rX():0:l.scrollHeight>l.clientHeight?rX():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(oX()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&QY(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?gX:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(c>0)for(var I=E;I<=R;I++)A.push(w(t,{data:u,key:p(I,u),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var vX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},yX=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=t}return o[t]},xX=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=yX(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},SX=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&yX(e,r,t).offset<n;)r+=i,i*=2;return xX(e,t,Math.min(r,o-1),Math.floor(r/2),n)},wX=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},CX=bX({getItemOffset:function(e,t,r){return yX(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:wX,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=yX(e,t,o),p=wX(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===r&&(r=n>=h-u&&n<=f+u?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?xX(e,t,o,0,r):SX(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=yX(e,t,n),d=r+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=yX(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function EX(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var RX=["style"],AX=["style"];function IX(e,t){var r=e.style,n=Hr(e,RX),o=t.style,i=Hr(t,AX);return!EX(r,o)&&!EX(n,i)}const kX=Kg(0),PX=Kg(0),DX=Kg(0),MX=Kg(e=>e(kX)+e(PX)),TX=Kg(e=>{const t=e(ov),r=e(uV),n=t.height-(r?41:0);return{width:t.width,height:n}}),qX=Kg(e=>{const t=e(TX),r=e(DH),n=e(MH);return{width:t.width-n,height:t.height-r}}),OX=Kg(e=>{const t=e(qX),r=e(MX),n=e(DX);return Math.min(t.height-r,n)}),LX=Kg(-1),NX=hI(e=>Kg(t=>t(LX)===e)),jX=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var _X=S.memo(jX,IX);const zX=Kg(e=>{const t=e(qX),r=e(EV),n=e(MX),o=e(DX)+n,i=e(IY)*r+n;return o<2*t.height?o:i}),FX=Kg(e=>e(zX)<=e(TX).height),$X=()=>{},HX=e=>{e.preventDefault()};const BX=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=n,f=ab(NX(t)),h=sb(LX),m=ab(xV),g=ab(Ub),b=ab(Fb),v=ab(Bb),y=ab(xU),x=ab(wb),S=ab(FX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,r=ab($b),n=sb(vU),o=ab(yU(e));if(WK(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=BK(HX,e,n,$X);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,r,n)=>{const o=k(null),i=r&&(!r.isNumeric||r.isDual),a=r?.isTotalRow??!1,s=q(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t,a)},[a,t,n,e,i]);return iG({ref:o,callback:s}),o})(t,e,w,s),P=i[e]?.isDim?m.dimension.values:m.measure.values,D=HK(i[e].id);if("object"==typeof w){const n=((e,t,r,n,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=KK(o,i,e);l=s?i.subTotalRow:l,l=UK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:HH(l,e.qAttrExps,t.qAttrExprInfoIDs);return n!==U$.Selected||s?n!==U$.Disabled||s?r?{...c,...i.grid.hoverColors}:c:{...c,color:r?i.grid.hoverColors?.color:c.color,background:`${lH}, ${r?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,A,P,m,x),o={rowindex:t,columnindex:e},s=r=>{v&&p?.(t,e),C?.(r)},k=u?r=>{u(r,t,e,w)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${A} ${ng}`,tabIndex:-1,style:{...r,...n,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:xH(g,w.isLastColumn,y),borderLeftWidth:SH(g,w.isLastColumn,y),justifyContent:gH(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:D},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:k,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:nr.jsx($K,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:nr.jsx(_K,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return nr.jsx(_X,{style:{...r,...P,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:D}})};var VX=j(BX,IX);const WX=oA(Kg(async e=>{const t=e(Rb),r=e(Qb),n=e(EY).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(BH,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),UX=Kg(e=>{const t=e(IY),r=e(qX),n=e(EV);return Math.min(t,Math.ceil(r.height/n))}),GX=Kg(e=>{const t=e(DV),r=e(qX);return t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),KX=e=>{const t=k(e);return t.current=e,t},YX=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,XX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,JX=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},ZX=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},QX=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[],h=t.some(XX);return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[r],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&WB(e,m),A=E||R?VB(m,e,a,C):e.qText,I=E?Q$(A):Z$(e),k=Z$(e)&&!Q$(e.qText??"");f[r]={id:Zz(),...e,align:$B(I,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:r===u.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&WB(e,m),representation:MB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:c,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,c,e.qArea,u,n,o,i,a,s);r[p]=d})})},eJ=({gridState:e,setEstimatedCellHeight:t})=>{const r=ab(Rb),n=ab(lv),o=ab(Qb),i=ab(Sb),a=ab(Ub),s=ab(EY),l=ab(WX),c=ab(iV),u=ab(IY),d=ab(UX),p=ab(GX),f=k([]),h=q((e,n)=>{const o=Array.isArray(n)?n.slice(0,u):(e=>Array(e).fill(void 0))(u);return QX(e,s,o,c,r,i,t,a),f.current=o,o},[u,s,c,r,i,t,a]),[m,g]=I(()=>h(l??[]));Ym(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const r=ab(Cb),n=k(new Set),o=k(new Set),i=k(new Set),a=KX(e),s=KX(t),l=A(()=>({enqueue:e=>{const t=YX(e);i.current.has(t)||(n.current.add(e),i.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await a.current(t);o.current.has(e)&&s.current(r)}catch(t){e.forEach(e=>{i.current.delete(YX(e))}),r.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{n.current.clear(),o.current.clear(),i.current.clear()}}),[r,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=q((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(ZX(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[b]),y=q((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(JX(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[b,s]);return M(()=>{if(void 0===l)return;const{qcx:t,qcy:n}=r.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,n,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,r,d,p,s,b,y,e,n]),{rowsInPage:m,loadRows:y,loadColumns:v}},tJ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},rJ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,nJ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=ab(xV),i=ab(DV),{estimateLineCount:a}=Bm(o.dimension.values),s=TH(o.dimension.values.fontSize),l=e||t||1===r;return q((e,t,o)=>{if(l||e.representation.type===lF.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(r,Math.max(1,u));n(d*s,t,o,e.isTotalRow??!1)},[l,i,a,r,s,n])},oJ=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=ab(TB);L(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},iJ=({isSnapshot:e,gridRef:t})=>{const r=ab(xV),n=ab(IY),[o,i]=I(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=ab(CV),s=ab(EV),l=ab(RV),c=!!r.contentStaticLineCount,u=Math.max(8e6/n,s,l)-9,d=u+9,p=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const r=ab(Rb),n=ab(EY),o=ab(DV),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:r})=>{const n=ab(EV),o=ab(RV);return q((i,a,s,l=!1)=>{z(()=>{e(e=>{const c=l?o:n,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!rJ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:tJ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,r.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,n,o,r])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q((o,i,a,s)=>{e||t||1===r||n(o,i,a,s)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=nJ({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=q(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return oJ({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},aJ=(e,t)=>{L(()=>()=>{t(0)},[e,t]);const r=q(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);iG({ref:e,callback:r})};let sJ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const lJ=({loadRows:e,loadColumns:t,gridState:r})=>{const n=ab(TB),o=ab(Rb),i=ab(EY),a=ab(IY);return q(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o,i;return o=n>t?sJ.Down:n<t?sJ.Up:sJ.None,i=r>e?sJ.Right:r<e?sJ.Left:sJ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,c);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=c,r.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===sJ.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===sJ.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===sJ.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===sJ.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])};const cJ=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},uJ=(e,t)=>{if(!e||!t)return;const r=e.scrollHeight-e.clientHeight,n=Math.round(r*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==n&&(e.scrollTop=n)},dJ={overflow:"hidden",willChange:"auto"},pJ=_((e,t)=>{const{handleBodyKeyDown:r,handleBodyKeyUp:n,focusBodyCellOnClick:o}=GY(),i=ab(iV),a=ab(qX),s=sb(DX),l=ab(OX),c=ab(TB),u=ab(Rb),d=ab(Ub),p=ab(DV),f=ab(IY),h=ab(PY),m=sb(kY),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!_H(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=iJ({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:P,loadColumns:D}=eJ({gridState:y,setEstimatedCellHeight:C}),T=lJ({loadRows:P,loadColumns:D,gridState:y}),O=XG(),N=A(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:O,onKeyDown:r,onKeyUp:n,onCellClick:o}),[I,i,S,R,w,O,r,n,o]);return L(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=sb(vU),{shouldRefocusRef:r}=ab(jY),n=ab(iv),o=ab(AY);M(()=>{t({type:G$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=q(()=>{r&&(r.current=n.contains(document.activeElement))},[r,n]);JG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(v.current?.clientHeight??l)-l,n=Math.round(r*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[v,l,f]),M(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),uJ(h,b.current)}),()=>{m(null)}),[h,m]),aJ(v,s),nr.jsx(mX,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:dJ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:N,onItemsRendered:T,itemKey:cJ,className:"sn-table-body",direction:d,children:VX})});var fJ=j(pJ);const hJ=({children:e})=>{const t=ab(qV),r=ab(zX);return nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},mJ=(e,t)=>{const r=k(null),n=ab(DV);L(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=q(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return iG({ref:r,callback:o}),r},gJ=_c("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),bJ=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Ub),u=ab(_b),d=ab(xU),p=sb(PH),f=ab(oV),h=ab(Bb),m=ab(DV)[e],g=ab(Zb),b=ab(qG(e)),v=n[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=dY({isInteractionEnabled:h,column:v}),C=ab(qb),E=mJ(e,i),R=n.length-1===e,A=C?XU:vG,{ref:I,isDragging:k}=mY(v,e),P=HK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return nr.jsxs(gJ,{"data-dragging":k,ref:I,className:`sn-table-cell ${ng}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...wU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(c,R,d),borderLeftWidth:SH(c,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[nr.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),nr.jsx(cY,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},vJ=e=>{const[t,r]=I(new Map);Ym(()=>{r(new Map)},[e.length]);const n=q((e,t)=>{r(r=>rJ(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>tJ(t),[t]),setMeasuredCellHeight:n}},yJ=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},xJ=e=>{const t=ab(lv),r=ab(Rb),n=ab(EY),o=ab(DV);Ym(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},SJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},wJ=_((e,t)=>{const{columResizeHandler:r}=e,n=ab(iV),o=ab(qX),i=sb(kX),a=S.useRef(null),s=k(null),l=ab(SV),c=ab(Rb),u=ab(Kb),d=ab(Ub),p=ab(DV),{rowHeight:f,setMeasuredCellHeight:h}=vJ(n),m=sY(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...SJ,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:bJ})});var CJ=j(wJ);const EJ=_((e,t)=>{const{children:r,onScroll:n}=e,o=ab(Ub),i=ab(Hb),{width:a,height:s}=ab(TX),l=sb(PY),c=q(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return nr.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),RJ=({children:e})=>{const t=ab(Ub),r=ab(qX);return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},AJ=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Rb),u=ab(Ub),d=ab(Fb),p=ab(Bb),f=ab(xU),h=ab(FX),m=mJ(e,i),g=n[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=n[e],y=c.qHyperCube.qSize.qcx-1===e,x=HK(n[e].id),S=a?t=>{a(t,e)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${ng}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...wU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:xH(u,y,f),borderLeftWidth:SH(u,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:nr.jsx(YU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},IJ=_((e,t)=>{const{totals:r}=e,n=ab(iV),o=ab(qX),i=sb(PX),a=k(null),s=k(null),l=ab(wV),c=ab(Ub),u=ab(Rb),d=ab(DV),{rowHeight:p,setMeasuredCellHeight:f}=vJ(n),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:SJ,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:AJ})});var kJ=j(IJ);const PJ=(e,t,r)=>{const n=ab(Ub),o=ab(TB);return q(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,r.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,r,e,t,n])};var DJ=j(()=>{const e=ab(oV),t=k(null),r=k(null),n=k(null),o=k(null),i=PJ(r,n,o),a=q(()=>{t.current&&(t.current.scrollTop=0)},[t]);OG(),(e=>{const t=ab(aV),r=ab(EY),n=ab(lv),o=ab(IY);M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),BG(t);const s=nr.jsx(kJ,{ref:n,totals:e},"totals");return nr.jsxs(PG,{children:[nr.jsx(EJ,{ref:t,onScroll:i,children:nr.jsxs(hJ,{children:[nr.jsxs(RJ,{children:[nr.jsx(CJ,{ref:r,columResizeHandler:a}),e.atTop?s:null,nr.jsx(fJ,{ref:o}),e.atBottom?s:null]}),nr.jsx(SU,{})]})}),nr.jsx(wG,{isPagination:!1})]})});const MJ=()=>{const e=ab(Rb),t=ab(ov),r=ab(_b),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=ab(nV),s=ab(lv),l=ab(cv),c=ab(Zb),[u,d]=lb(EY),p=k(null),f=k(!1),h=sb(RY),m=sb(AY);M(()=>{h(f)},[h]);const g=S.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=GY();return(()=>{const e=ab(iv),{keyboard:t}=ab(NY),r=ab(TG),n=ab(oV),o=ab(IY),{scrollToCell:i}=ab(LY),{shouldRefocusRef:a}=ab(jY),s=k({focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);L(()=>{s.current={focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}},[r,n,o,i,e]),M(()=>{let e=!1;const{focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=r,d=n.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const r=t=>{if(e)return;const n=FY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);n&&document.activeElement!==n&&EU(n),n&&document.activeElement===n||t>0&&(l.current=requestAnimationFrame(()=>{r(t-1)}))};l.current=requestAnimationFrame(()=>{e||r(5)})}else{const e=FY(u,r,n,o);e&&EU(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const r=FY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);r?.blur(),WY(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),MG(p,f),nr.jsxs(WU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[nr.jsx(GG,{}),nr.jsx(DJ,{}),nr.jsx(iU,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:r,rect:t,layout:e})]})};var TJ=j(MJ);const qJ=e=>{const t=e.get(Qb),r=e.get(Xb),n=e.get(Eb),i=e.get(Ub);o(()=>{n&&t&&(r?function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(Ii,{stylisPlugins:"rtl"===t?[H$]:void 0,children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(yY,{})})})})}))}(e):function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(S.StrictMode,{children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(TJ,{})})})})}))}(e))},[n,r,e,t,i])};function OJ(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),c={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,c),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const LJ=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},NJ=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const jJ=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||UB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},_J=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=jB(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=OJ(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:jJ(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=LJ(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=n.y+n.height,b=(NJ(h,m,g)?d:d+1)+u;let v=p+u;const y=LJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(NJ(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:jJ(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},zJ={version:JSON.stringify("6.46.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var FJ=e=>({properties:{initial:zJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Dv({...t,env:e}),exportProperties:Ev,exploration:Hz(e)});const $J=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),HJ=e=>e.getStyle("object","straightTableV2","backgroundColor");function BJ(r){return{qae:FJ(r),ext:t$(r),component(){const n=u(),i=e(()=>Jg(),[!1!==n.usePagination]);i.set(Sb,r);const s=d();i.set(iv,s),i.set(Rb,n),i.set(cb,p()),i.set(Qb,f()),i.set(_b,h()),i.set(cv,m()),i.set(Nb,g()),i.set(Wb,t()),i.set(Zb,b()),i.set(ov,v()),i.set(db,y());const x=_m(n,s,$J,HJ);i.set(lv,x),i.set(Eb,Km(x,n,r)),i.set(ub,_t()),(e=>{const t=e.get(sv);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${ng}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{fg(n)}})}),(({store:e})=>{const t=e.get(Rb),r=e.get(Qb),n=e.get(iv),o=e.get(nv),i=e.get(Kb),a=e.get(Xb);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(TB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=_J(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),c(()=>({getViewState:()=>_J(t,e.get(TB),n,i,a)}),[t,e,n,a])})({store:i}),qJ(i)}}}export{BJ as default};
|
|
121
|
+
*/var o$=(r$||(r$=1,function(e,t){var r;function n(e,t){var r=[],n=0;function o(e){return r.push(e),t}function i(){return r[n++]}return{tokenize:function(t){return t.replace(e,o)},detokenize:function(e){return e.replace(new RegExp("("+t+")","g"),i)}}}r=new function(){var e="`TMP`",t="`COMMENT`",r="[^\\u0020-\\u007e]",o="(?:[0-9]*\\.[0-9]+|[0-9]+)",i="(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)",a="direction\\s*:\\s*",s="['\"]?\\s*",l="(^|[^a-zA-Z])",c="\\/\\*\\!?\\s*@noflip\\s*\\*\\/",u="(?:(?:(?:\\\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",d="(?:[_a-z0-9-]|"+r+"|"+u+")",p=o+"(?:\\s*"+i+"|-?(?:[_a-z]|"+r+"|"+u+")"+d+"*)?",f="((?:-?"+p+")|(?:inherit|auto))",h="((?:-?"+p+")|(?:inherit|auto)|(?:calc\\((?:(?:(?:\\(|\\)|\\t| )|(?:-?"+o+"(?:\\s*"+i+")?)|(?:\\+|\\-|\\*|\\/)){3,})\\)))",m="(#?"+d+"+|(?:rgba?|hsla?)\\([ \\d.,%-]+\\))",g="(?:[!#$%&*-~]|"+r+"|"+u+")*?",b="(?![a-zA-Z])",v="(?!("+d+"|\\r?\\n|\\s|#|\\:|\\.|\\,|\\+|>|~|\\(|\\)|\\[|\\]|=|\\*=|~=|\\^=|'[^']*'|\"[^\"]*\"|"+t+")*?{)",y="(?!"+g+s+"\\))",x="(?="+g+s+"\\))",S="(\\s*(?:!important\\s*)?[;}])",w=/`TMP`/g,C=/`TMPLTR`/g,E=/`TMPRTL`/g,R=new RegExp("\\/\\*[^*]*\\*+([^\\/*][^*]*\\*+)*\\/","gi"),A=new RegExp("("+c+v+"[^;}]+;?)","gi"),I=new RegExp("("+c+"[^\\}]*?})","gi"),k=new RegExp("("+a+")ltr","gi"),P=new RegExp("("+a+")rtl","gi"),D=new RegExp(l+"(left)"+b+y+v,"gi"),M=new RegExp(l+"(right)"+b+y+v,"gi"),T=new RegExp(l+"(left)"+x,"gi"),q=new RegExp(l+"(right)"+x,"gi"),O=/(:dir\( *)ltr( *\))/g,L=/(:dir\( *)rtl( *\))/g,N=new RegExp(l+"(ltr)"+x,"gi"),j=new RegExp(l+"(rtl)"+x,"gi"),_=new RegExp(l+"([ns]?)e-resize","gi"),z=new RegExp(l+"([ns]?)w-resize","gi"),F=new RegExp("((?:margin|padding|border-width)\\s*:\\s*)"+h+"(\\s+)"+h+"(\\s+)"+h+"(\\s+)"+h+S,"gi"),$=new RegExp("((?:-color|border-style)\\s*:\\s*)"+m+"(\\s+)"+m+"(\\s+)"+m+"(\\s+)"+m+S,"gi"),H=new RegExp("(background(?:-position)?\\s*:\\s*(?:[^:;}\\s]+\\s+)*?)("+p+")","gi"),B=new RegExp("(background-position-x\\s*:\\s*)(-?"+o+"%)","gi"),V=new RegExp("(border-radius\\s*:\\s*)"+f+"(?:(?:\\s+"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?)?(?:(?:(?:\\s*\\/\\s*)"+f+")(?:\\s+"+f+")?(?:\\s+"+f+")?(?:\\s+"+f+")?)?"+S,"gi"),W=new RegExp("(box-shadow\\s*:\\s*(?:inset\\s*)?)"+f,"gi"),U=new RegExp("(text-shadow\\s*:\\s*)"+f+"(\\s*)"+m,"gi"),G=new RegExp("(text-shadow\\s*:\\s*)"+m+"(\\s*)"+f,"gi"),K=new RegExp("(text-shadow\\s*:\\s*)"+f,"gi"),Y=new RegExp("(transform\\s*:[^;}]*)(translateX\\s*\\(\\s*)"+f+"(\\s*\\))","gi"),X=new RegExp("(transform\\s*:[^;}]*)(translate\\s*\\(\\s*)"+f+"((?:\\s*,\\s*"+f+"){0,2}\\s*\\))","gi");function J(e,t,r){var n,o;return t.split("(").length>t.split(")").length?e:("%"===r.slice(-1)&&(-1!==(n=r.indexOf("."))?(o=r.length-n-2,r=(r=100-parseFloat(r)).toFixed(o)+"%"):r=100-parseFloat(r)+"%"),t+r)}function Z(e){switch(e.length){case 4:e=[e[1],e[0],e[3],e[2]];break;case 3:e=[e[1],e[0],e[1],e[2]];break;case 2:e=[e[1],e[0]];break;case 1:e=[e[0]]}return e.join(" ")}function Q(e,t){var r=[].slice.call(arguments),n=r.slice(2,6).filter(function(e){return e}),o=r.slice(6,10).filter(function(e){return e}),i=r[10]||"";return t+(o.length?Z(n)+" / "+Z(o):Z(n))+i}function ee(e){return 0===parseFloat(e)?e:"-"===e[0]?e.slice(1):"-"+e}function te(e,t,r){return t+ee(r)}function re(e,t,r,n,o){return t+r+ee(n)+o}function ne(e,t,r,n,o){return t+r+n+ee(o)}return{transform:function(r,o){var i=new n(A,"`NOFLIP_SINGLE`"),a=new n(I,"`NOFLIP_CLASS`"),s=new n(R,t);return r=s.tokenize(a.tokenize(i.tokenize(r.replace("`","%60")))),o.transformDirInUrl&&(r=r.replace(O,"$1`TMPLTR`$2").replace(L,"$1`TMPRTL`$2").replace(N,"$1"+e).replace(j,"$1ltr").replace(w,"rtl").replace(C,"ltr").replace(E,"rtl")),o.transformEdgeInUrl&&(r=r.replace(T,"$1"+e).replace(q,"$1left").replace(w,"right")),r=r.replace(k,"$1"+e).replace(P,"$1ltr").replace(w,"rtl").replace(D,"$1"+e).replace(M,"$1left").replace(w,"right").replace(_,"$1$2"+e).replace(z,"$1$2e-resize").replace(w,"w-resize").replace(V,Q).replace(W,te).replace(U,ne).replace(G,ne).replace(K,te).replace(Y,re).replace(X,re).replace(F,"$1$2$3$8$5$6$7$4$9").replace($,"$1$2$3$8$5$6$7$4$9").replace(H,J).replace(B,J),r=i.detokenize(a.detokenize(s.detokenize(r)))}}},e.exports?t.transform=function(e,t,n){var o;return"object"==typeof t?o=t:(o={},"boolean"==typeof t&&(o.transformDirInUrl=t),"boolean"==typeof n&&(o.transformEdgeInUrl=n)),r.transform(e,o)}:"undefined"!=typeof window&&(window.cssjanus=r)}(n$,n$.exports)),n$.exports),i$=Jt(o$),a$="comm",s$="rule",l$="decl",c$=Math.abs,u$=String.fromCharCode;function d$(e){return e.trim()}function p$(e,t,r){return e.replace(t,r)}function f$(e,t){return 0|e.charCodeAt(t)}function h$(e,t,r){return e.slice(t,r)}function m$(e){return e.length}function g$(e,t){return t.push(e),e}var b$=1,v$=1,y$=0,x$=0,S$=0,w$="";function C$(e,t,r,n,o,i,a,s){return{value:e,root:t,parent:r,type:n,props:o,children:i,line:b$,column:v$,length:a,return:"",siblings:s}}function E$(){return S$=x$>0?f$(w$,--x$):0,v$--,10===S$&&(v$=1,b$--),S$}function R$(){return S$=x$<y$?f$(w$,x$++):0,v$++,10===S$&&(v$=1,b$++),S$}function A$(){return f$(w$,x$)}function I$(){return x$}function k$(e,t){return h$(w$,e,t)}function P$(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function D$(e){return d$(k$(x$-1,q$(91===e?e+2:40===e?e+1:e)))}function M$(e){for(;(S$=A$())&&S$<33;)R$();return P$(e)>2||P$(S$)>3?"":" "}function T$(e,t){for(;--t&&R$()&&!(S$<48||S$>102||S$>57&&S$<65||S$>70&&S$<97););return k$(e,I$()+(t<6&&32==A$()&&32==R$()))}function q$(e){for(;R$();)switch(S$){case e:return x$;case 34:case 39:34!==e&&39!==e&&q$(S$);break;case 40:41===e&&q$(e);break;case 92:R$()}return x$}function O$(e,t){for(;R$()&&e+S$!==57&&(e+S$!==84||47!==A$()););return"/*"+k$(t,x$-1)+"*"+u$(47===e?e:R$())}function L$(e){for(;!P$(A$());)R$();return k$(e,x$)}function N$(e){return function(e){return w$="",e}(j$("",null,null,null,[""],e=function(e){return b$=v$=1,y$=m$(w$=e),x$=0,[]}(e),0,[0],e))}function j$(e,t,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,p=0,f=0,h=0,m=1,g=1,b=1,v=0,y=0,x="",S=o,w=i,C=n,E=x;g;)switch(h=y,y=R$()){case 40:108!=h&&58==f$(E,d-1)?(v++,E+="("):E+=D$(y);break;case 41:v--,E+=")";break;case 34:case 39:case 91:E+=D$(y);break;case 9:case 10:case 13:case 32:if(v>0){E+=u$(y);break}E+=M$(h);break;case 92:E+=T$(I$()-1,7);continue;case 47:switch(A$()){case 42:case 47:g$(z$(O$(R$(),I$()),t,r,l),l),5!=P$(h||1)&&5!=P$(A$()||1)||!m$(E)||" "===h$(E,-1,void 0)||(E+=" ");break;default:E+="/"}break;case 123*m:s[c++]=m$(E)*b;case 125*m:case 59:case 0:if(v>0&&y){E+=u$(y);break}switch(y){case 0:case 125:g=0;case 59+u:-1==b&&(E=p$(E,/\f/g,"")),f>0&&(m$(E)-d||0===m)&&g$(f>32?F$(E+";",n,r,d-1,l):F$(p$(E," ","")+";",n,r,d-2,l),l);break;case 59:E+=";";default:if(g$(C=_$(E,t,r,c,u,o,s,x,S=[],w=[],d,i),i),123===y)if(0===u)j$(E,t,C,C,S,i,d,s,w);else{switch(p){case 99:if(110===f$(E,3))break;case 108:if(97===f$(E,2))break;default:u=0;case 100:case 109:case 115:}u?j$(e,C,C,n&&g$(_$(e,C,C,0,0,o,s,x,o,S=[],d,w),w),o,w,d,s,n?S:w):j$(E,C,C,C,[""],w,0,s,w)}}c=u=f=0,m=b=1,x=E="",d=a;break;case 58:d=1+m$(E),f=h;default:if(m<1)if(123==y)--m;else if(125==y&&0==m++&&125==E$())continue;switch(E+=u$(y),y*m){case 38:b=u>0?1:(E+="\f",-1);break;case 44:if(v>0)break;s[c++]=(m$(E)-1)*b,b=1;break;case 64:45===A$()&&(E+=D$(R$())),p=A$(),u=d=m$(x=E+=L$(I$())),y++;break;case 45:45===h&&2==m$(E)&&(m=0)}}return i}function _$(e,t,r,n,o,i,a,s,l,c,u,d){for(var p=o-1,f=0===o?i:[""],h=function(e){return e.length}(f),m=0,g=0,b=0;m<n;++m)for(var v=0,y=h$(e,p+1,p=c$(g=a[m])),x=e;v<h;++v)(x=d$(g>0?f[v]+" "+y:p$(y,/&\f/g,f[v])))&&(l[b++]=x);return C$(e,t,r,0===o?s$:s,l,c,u,d)}function z$(e,t,r,n){return C$(e,t,r,a$,u$(S$),h$(e,2,-2),0,n)}function F$(e,t,r,n,o){return C$(e,t,r,l$,h$(e,0,n),h$(e,n+1,-1),n,o)}function $$(e,t,r){switch(e.type){case"@import":case l$:case a$:return e.return=e.return||e.value;case s$:e.value=Array.isArray(e.props)?e.props.join(","):e.props,Array.isArray(e.children)&&e.children.forEach(function(e){e.type===a$&&(e.children=e.value)})}var n=function(e,t){for(var r="",n=0;n<e.length;n++)r+=t(e[n],n,e,t)||"";return r}(Array.prototype.concat(e.children),$$);return m$(n)?e.return=e.value+"{"+n+"}":""}function H$(e,t,r,n){if("@keyframes"===e.type||"@supports"===e.type||e.type===s$&&(!e.parent||"@media"===e.parent.type||e.parent.type===s$)){var o=i$.transform($$(e));e.children=o?N$(o)[0].children:[],e.return=""}}Object.defineProperty(H$,"name",{value:"stylisRTLPlugin"});const B$=hI(({options:e,...t})=>Kg(Hm(t,e)()),(e,t)=>e.fontSize===t.fontSize&&e.fontFamily===t.fontFamily&&e.fontStyle===t.fontStyle&&e.fontWeight===t.fontWeight&&e.options?.maxNbrLinesOfText===t.options?.maxNbrLinesOfText&&e.options?.allowLineBreaks===t.options?.allowLineBreaks);class V${#y={on:new Map,once:new Map};#x=10;#S(e){this.listenerCount(e)>this.#x&&console.warn(`Possible EventEmitter memory leak detected. ${this.listenerCount(e)} listeners added to "${String(e)}".`)}#w(e,t,r){const n=this.#y[e].get(t)??new Set;n.add(r),this.#y[e].set(t,n),this.#S(t)}setMaxListeners(e){this.#x=e}on(e,t){this.#w("on",e,t)}once(e,t){this.#w("once",e,t)}off(e,t){this.#y.on.get(e)?.delete(t),this.#y.once.get(e)?.delete(t)}emit(e,...t){this.#y.on.get(e)?.forEach(e=>{e(...t)}),this.#y.once.get(e)?.forEach(e=>{e(...t)}),this.#y.once.delete(e)}listenerCount(e){return(this.#y.on.get(e)?.size??0)+(this.#y.once.get(e)?.size??0)}removeAllListeners(e){void 0===e?(this.#y.on.clear(),this.#y.once.clear()):(this.#y.on.delete(e),this.#y.once.delete(e))}}const W$=Kg(()=>new V$);let U$=function(e){return e.Selected="selected",e.Possible="possible",e.Disabled="disabled",e.Inactive="inactive",e}({}),G$=function(e){return e.Select="Select",e.SelectMouseDown="SelectMouseDown",e.SelectMouseUp="SelectMouseUp",e.SelectMultiAdd="SelectMultiAdd",e.SelectMultiEnd="SelectMultiEnd",e.Reset="Reset",e.Clear="Clear",e.UpdatePageRows="UpdatePageRows",e}({}),K$=function(e){return e.A="ascending",e.D="descending",e}({}),Y$=function(e){return e.First="sn-table-announcer-1",e.Second="sn-table-announcer-2",e}({});const X$=[0,0],J$=e=>"number"==typeof e&&!Number.isNaN(+e),Z$=e=>J$(e.qNum),Q$=e=>"string"==typeof e&&e.length>0&&!Number.isNaN(+e),eH=(e,t)=>e.max===e.min?.5:(t-e.min)/(e.max-e.min),tH=(e,t,r)=>{const n=e.paletteColors?e.paletteColors[t]:e.localPaletteColors[t];return r.getColorPickerColor(n)},rH=(e,t,r)=>{const n={previousColor:(o=e.localPaletteColors)[(i=t)-(i>0?1:0)],nextColor:o[i+(i<o.length-1?1:0)]};var o,i;const a=((e,t)=>{const r=e.limits&&e.limits.concat().sort((e,t)=>e.value-t.value);return{lowerLimit:r&&t>0?r[t-1]:{value:0,gradient:!1},upperLimit:r&&r[t]?r[t]:{value:1,gradient:!1}}})(e,t),s=((e,t,r,n,o)=>{const{upperLimit:i,lowerLimit:a}=e,{previousColor:s,nextColor:l}=t,c=n===i.value?1:(n-a.value)/(i.value-a.value);return a.gradient&&i.gradient?n-a.value<i.value-n?{color:s.color,t:.5-c}:{color:l.color,t:c-.5}:a.gradient?{color:s.color,t:1-(.5+c/2)}:i.gradient?{color:l.color,t:c/2}:{color:o.localPaletteColors[r].color,t:n}})(a,n,t,r,e);return ie(e.localPaletteColors[t].color??"").blend(ie(s.color??""),s.t)},nH=(e,t,r)=>{const n=((e,t)=>{const{limits:r}=e;return r&&(e.limits=r.sort((e,t)=>e.value-t.value),e.limits=r.map(e=>({...e,value:eH(t,e.value)}))),e})({...e},t),o=n.paletteColors||n.localPaletteColors;return o&&(n.localPaletteColors=o.concat().map((e,t)=>({color:tH(n,t,r)}))),n},oH=(e,t,r,n)=>{const o=nH(e,r,n),{localPaletteColors:i}=o;if(t<=0)return i[0].color;if(t>=1)return i[i.length-1].color;const a=((e,t)=>{let r="",n=0;const{limits:o,localPaletteColors:i}=e;for(let a=0;a<i.length;a++){const i=o&&o[a]?o[a].value:1;if(t>=n&&t<i){r=rH(e,a,t);break}n=i}return r})(o,t);return a},iH=(e,t)=>{const r=(e=>e.map(e=>e.value??e).sort((e,t)=>e-t))(e),n=r.some(e=>!J$(e));return 0===r.length||n?(e=>{const t=0===e?0:.5*e;return{min:e-t,max:e+t}})(t):1===r.length?((e,t)=>{const r=e[0]-t;if(0===r||!J$(r)){const e=0===t?.5:Math.abs(.5*t);return{min:t-e,max:t+e}}return r>0?{min:t-.5*Math.abs(t),max:e[0]+2*r}:{min:e[0]+2*r,max:t+.5*Math.abs(t)}})(r,t):((e,t)=>{let r=e[e.length-1]-e[0];return r=r>0?r:1,{min:Math.min(t,e[0])-r/2,max:Math.max(t,e[e.length-1])+r/2}})(r,t)},aH=(e,t)=>{const{limits:r}=e.segments;if(!r)return;const n=((e,t)=>{const{min:r,max:n}=iH(e,t),o=Math.abs(t);return{min:r??t-o,max:n??t+o}})(r,t),o=((e,t,r)=>{const{limits:n,paletteColors:o,localPaletteColors:i}=e.segments;if(!n||!J$(t))return 0;let a=r&&J$(r)?Math.min(r,t):0;const s=n.sort((e,t)=>e.value-t.value),l=o||i;for(let e=0;e<l.length;e++){if(e===l.length-1||t<s[e].value&&t>=a)return e;a=s[e].value}return 0})(e,t,n.min);return{limitRange:n,limitPaletteColorIndex:o}},sH=(e,t,r,n)=>{const o=e.indicatorConditionalColoring;if(!o)return;const i=aH(o,t),a=((e,t,r,n)=>{const{segments:o}=e;if(!o||!r)return;const{limits:i}=o;if(!i?.length||!((e,t)=>!(!e||0===e.length||!(e[t]?.gradient??e[t-1]?.gradient)))(i,r.limitPaletteColorIndex))return tH(o,r.limitPaletteColorIndex,n);const a=eH(r.limitRange,t);return oH(o,a,r.limitRange,n)})(o,t,i,n),s=o.segments.paletteColors[i?.limitPaletteColorIndex||0].icon,{indicator:l}=e;let c=l?.position||"right";return"rtl"===r&&(c="right"===c?"left":"right"),{color:a,iconKey:s,position:c}},lH=(wm().palette.primary.light,"repeating-linear-gradient(-45deg, rgba(200,200,200,0.08), rgba(200,200,200,0.08) 2px, rgba(200,200,200,0.3) 2.5px, rgba(200,200,200,0.08) 3px, rgba(200,200,200,0.08) 5px)"),cH=4/3,uH="12px",dH="600",pH="Source Sans Pro, sans-serif",fH={height:"auto",fontSize:uH,lineHeight:"unset",padding:"4px",borderStyle:"solid",borderWidth:"0px 1px 1px 0px",userSelect:"none",outline:"none","&:focus-visible":{boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"&:focus:not(:focus-visible)":{boxShadow:"none"},"&:last-child":{borderRightWidth:"0px"}},hH={"<i>":{fontStyle:"italic"},"<b>":{fontWeight:dH},"<u>":{textDecoration:"underline"},"<s>":{textDecoration:"line-through"}},mH=(e,t)=>"rtl"===e&&"center"!==t.resolvedImagePosition?.horizontal?t.resolvedImagePosition?.horizontal&&(e=>"flex-start"===e?"flex-end":"flex-start")(t.resolvedImagePosition?.horizontal):t.resolvedImagePosition?.horizontal,gH=(e,t)=>e.representation.type===lF.Image&&"fitHeight"===e.representation.imageSize?mH(t,e.representation):e.align,bH=(e,t)=>t||"right"!==e&&"left"!==e?t||"center"!==e?void 0:"row":"row-reverse",vH=(e,t,r)=>{if(!t&&"rtl"===r){if("left"===e.headTextAlign)return"right";if("right"===e.headTextAlign)return"left"}return e.headTextAlign},yH=(e,t)=>"rtl"===e&&"center"!==t?"right"===t?"left":"right":t,xH=(e,t,r)=>"rtl"===e||t&&!r?"0px":"1px",SH=(e,t,r)=>"rtl"===e?t&&!r?"0px":"1px":"0px",wH=24,CH=_c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({direction:e,isPagination:t})=>({position:"absolute",left:t&&"rtl"===e?0:void 0,bottom:0})),EH=_c(Pd,{shouldForwardProp:e=>!["textAlign","direction","isPagination"].includes(e)})(({textAlign:e,theme:t,direction:r,isPagination:n})=>({textAlign:e,height:"auto",padding:t.spacing(.5,1),display:"flex",alignItems:"flex-end",justifySelf:e,alignSelf:"center",flexDirection:"rtl"===r?bH(e,n):void 0})),RH=_c(Pd,{shouldForwardProp:e=>"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e&&"alignment"!==e})(({shouldShowMenuIcon:e,shouldShowLockIcon:t,alignment:r})=>{const n=e?"24px":"";let o;switch(r){case"left":o={gridTemplateColumns:t?`20px 2fr ${n}`:`1fr ${n}`};break;case"center":{const r=e||t;o={gridTemplateColumns:r?"24px 2fr 24px":"1fr","& .sn-table-lock-icon":{gridColumn:1},"& .sn-table-head-label":{gridColumn:r?2:1},[`& .${eg}`]:{gridColumn:3}};break}case"right":o={gridTemplateColumns:t?`${n} 2fr 20px`:`${n} 1fr`,"& .sn-table-lock-icon":{gridColumn:t?3:"unset"},"& .sn-table-head-label":{gridColumn:e?2:"span 2"},[`& .${eg}`]:{gridColumn:1}}}return{width:"100%",display:"grid",gridAutoFlow:"dense",fontSize:"inherit",fontFamily:"inherit",alignItems:"end",overflow:"hidden",...o}}),AH=_c(Pd,{shouldForwardProp:e=>"rightAligned"!==e})(({rightAligned:e})=>({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit",justifyContent:e?"flex-start":"flex-end"})),IH=_c(Pd,{shouldForwardProp:e=>"justifyContent"!==e})(({justifyContent:e})=>({display:"flex",flexGrow:1,textAlign:e,justifyContent:e,alignItems:"center",padding:"4px"})),kH=_c(zu,{shouldForwardProp:e=>"hoverBackground"!==e&&"activeBackground"!==e&&"isActive"!==e&&"order"!==e})(({hoverBackground:e,activeBackground:t,isActive:r,order:n})=>({padding:"4px !important",width:"fit-content",height:"auto",background:r?t:void 0,"&:hover":{background:e},color:"inherit",order:n})),PH=Kg(),DH=Kg(0),MH=Kg(0),TH=e=>parseInt(e??fH.fontSize,10)*cH,qH=4/3,OH=e=>!!e?.color||"number"==typeof e?.index&&e.index>-1;function LH(e,t,r={index:-1}){const n=t.getColorPickerColor(r);return n&&"none"!==n?n:e}const NH=(e,t)=>e?{borderBottomColor:Rm.DARK_MODE_BORDER,borderRightColor:Rm.DARK_MODE_BORDER,borderLeftColor:Rm.DARK_MODE_BORDER,borderTopColor:Rm.DARK_MODE_BORDER}:{borderLeftColor:Rm.BORDER_MEDIUM,borderRightColor:Rm.BORDER_MEDIUM,borderTopColor:Rm.BORDER_HEAVY,borderBottomColor:t?Rm.BORDER_HEAVY:Rm.BORDER_LIGHT},jH=(e,t,r)=>{if(e&&t&&r){const n=(e=>parseInt(e,10)*qH+8+1)(e);return n*(t+2)<r.clientHeight-40?"1px":"0px"}return"0px"},_H=e=>e.components?.find(e=>"theme"===e.key),zH=(e,t,r,n=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),s={fontFamily:o,color:OH(r?.fontColor)?LH(Rm.TEXT,t,r?.fontColor):i||Rm.TEXT,fontSize:r?.fontSize&&`${r.fontSize}px`||a,padding:r&&"padding"in r?r.padding:void 0,...NH(t.background.isDark,n)};return Object.keys(s).forEach(e=>{const t=e;null==s[t]&&delete s[t]}),s};function FH(e,t,r){const n=_H(e)?.header,o=zH("header",t,n,r);return o.background=(e=>{if(void 0===e)return;const t=ie(e);return t.setAlpha(1),t.getRGB()})(t.background.headerColor),o.hoverBackground=km(o.background??Rm.WHITE,lg),o.activeBackground=km(o.background??Rm.WHITE,cg),o}const $H=(e,t)=>{const r=e.toLowerCase().match(/<[^>]+>/g)??[];return r.forEach(e=>(e=>e in hH)(e)&&Object.assign(t,hH[e])),t};function HH(e,t,r){const n={};let o={fontStyle:e.fontStyle,fontWeight:e.fontWeight,textDecoration:e.textDecoration};return t?.qValues?.forEach((e,t)=>{const i=e.qText,a=i&&Dm(i);a&&(n[r[t]]=a),o=i?$H(i,o):o}),n.cellBackgroundColor&&!n.cellForegroundColor&&(n.cellForegroundColor=Am(n.cellBackgroundColor)),{...e,...n,color:n.cellForegroundColor||e.color,background:n.cellBackgroundColor||e.background,fontStyle:o.fontStyle,fontWeight:o.fontWeight,textDecoration:o.textDecoration}}const BH=25e4,VH=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i,WH=5e6,UH=5e5;const GH={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));const t=[];return e.split("&").forEach(e=>{if(!e)return;const r=e.indexOf("=");let n,o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,r){return{key:KH(e),value:KH(t.replace(/%2B/g,"shouldNotDecodePlus")),useEqualSign:r}}(n,o,i))}),t}};function KH(e){try{return decodeURIComponent(e)}catch{return e}}function YH(e){if(!(this instanceof YH))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");const t=function(e){const t={authorityAndPath:"",search:"",hash:""};let r=e.indexOf("#");-1!==r&&(t.hash=e.substr(r),e=e.substr(0,r));r=e.indexOf("?"),-1!==r&&(t.search=e.substr(r),e=e.substr(0,r));return t.authorityAndPath=e,t}(e);Object.defineProperties(this,{authorityAndPath:{value:t.authorityAndPath},search:{value:t.search},hash:{value:t.hash},searchParams:{get:()=>GH.fromSearchString(t.search)}})}function XH(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/shouldNotDecodePlus/gi,"%2B")}YH.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},YH.encodeSearchParams=function(e){let t,r="";for(let n=0;n<e.length;n++)t=e[n],r+=0===n?"?":"&",r+=XH(t.key),t.value?r+=`=${XH(t.value)}`:r+=t.useEqualSign?"=":"";return r};var JH=class{_hasNext(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}constructor(e){this._input=e,this._pushback=null,this._temp=null,this._index=0,this._mark=0}pushback(e){this._pushback=e}index(){return this._index}hasNext(){return null!=this._pushback||this._hasNext()}next(){if(null!=this._pushback){const e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}nextHex(){const e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}peek(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}mark(){this._temp=this._pushback,this._mark=this._index}reset(){this._pushback=this._temp,this._index=this._mark}remainder(){let e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}},ZH=class{decode(e){let t="";const r=new JH(e);let n;for(;r.hasNext();)n=this.decodeCharacter(r),t+=null!=n?n:r.next();return t}decodeCharacter(e){return e.next()}};const QH=e=>e>=0&&e<=1114111,eB=e=>e.match(/[\s]/);var tB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o;if(null==t||"\\"!==t)return e.reset(),null;const 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(r=i,n=0;n<5&&(o=e.next(),null!=o&&!eB(o));n++){if("NaN"===parseInt(o,16)){e.pushback(o);break}r+=o}const a=parseInt(r,16);return QH(a)?String.fromCharCode(a):"�"}},rB=class e{constructor(e,t){this._key=e,this._value=t}getKey(){return this._key}getValue(){return this._value}equals(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}static newInstanceIfNeeded(){let t,r,n=arguments[0];return"string"==typeof arguments[1]?(t=arguments[1],r=n.length):(r=arguments[1],t=arguments[2]),t&&n?(n.length>r&&(n=n.substr(0,r)),new e(n,t)):null}},nB=class e{setValue(e){this._nextMap=null,this._value=e}getNextNode(e){return this._nextMap?this._nextMap[e]:null}put(t,r,n){let o,i;if(t.length===r)return i=this._value,this.setValue(n),i;const a=t.charAt(r);return this._nextMap?(o=this._nextMap[a],o||(o=new e,this._nextMap[a]=o)):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,r+1,n)}get(e,t){if(e.length<=t)return this._value;const r=this.getNextNode(e.charAt(t));return r?r.get(e,t+1):null}getLongestMatch(e,t){if(e.length<=t)return rB.newInstanceIfNeeded(e,this._value);const r=this.getNextNode(e.charAt(t));if(!r)return rB.newInstanceIfNeeded(e,t,this._value);const n=r.getLongestMatch(e,t+1);return n||rB.newInstanceIfNeeded(e,t,this._value)}},oB=class{constructor(){this.clear()}getLongestMatch(e){return this.root&&e?this.root.getLongestMatch(e,0):null}getMaxKeyLength(){return this.maxKeyLen}clear(){this.root=null,this.maxKeyLen=0,this.size=0}put(e,t){this.root||(this.root=new nB);const r=this.root.put(e,0,t);return r||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}};const iB=(()=>{const e=[],t=[],r=new oB;let n,o,i;for(n in e["""]="34",e["&"]="38",e["<"]="60",e[">"]="62",e[" "]="160",e["¡"]="161",e["¢"]="162",e["£"]="163",e["¤"]="164",e["¥"]="165",e["¦"]="166",e["§"]="167",e["¨"]="168",e["©"]="169",e["ª"]="170",e["«"]="171",e["¬"]="172",e["­"]="173",e["®"]="174",e["¯"]="175",e["°"]="176",e["±"]="177",e["²"]="178",e["³"]="179",e["´"]="180",e["µ"]="181",e["¶"]="182",e["·"]="183",e["¸"]="184",e["¹"]="185",e["º"]="186",e["»"]="187",e["¼"]="188",e["½"]="189",e["¾"]="190",e["¿"]="191",e["À"]="192",e["Á"]="193",e["Â"]="194",e["Ã"]="195",e["Ä"]="196",e["Å"]="197",e["Æ"]="198",e["Ç"]="199",e["È"]="200",e["É"]="201",e["Ê"]="202",e["Ë"]="203",e["Ì"]="204",e["Í"]="205",e["Î"]="206",e["Ï"]="207",e["Ð"]="208",e["Ñ"]="209",e["Ò"]="210",e["Ó"]="211",e["Ô"]="212",e["Õ"]="213",e["Ö"]="214",e["×"]="215",e["Ø"]="216",e["Ù"]="217",e["Ú"]="218",e["Û"]="219",e["Ü"]="220",e["Ý"]="221",e["Þ"]="222",e["ß"]="223",e["à"]="224",e["á"]="225",e["â"]="226",e["ã"]="227",e["ä"]="228",e["å"]="229",e["æ"]="230",e["ç"]="231",e["è"]="232",e["é"]="233",e["ê"]="234",e["ë"]="235",e["ì"]="236",e["í"]="237",e["î"]="238",e["ï"]="239",e["ð"]="240",e["ñ"]="241",e["ò"]="242",e["ó"]="243",e["ô"]="244",e["õ"]="245",e["ö"]="246",e["÷"]="247",e["ø"]="248",e["ù"]="249",e["ú"]="250",e["û"]="251",e["ü"]="252",e["ý"]="253",e["þ"]="254",e["ÿ"]="255",e["&OElig"]="338",e["&oelig"]="339",e["&Scaron"]="352",e["&scaron"]="353",e["&Yuml"]="376",e["&fnof"]="402",e["&circ"]="710",e["&tilde"]="732",e["&Alpha"]="913",e["&Beta"]="914",e["&Gamma"]="915",e["&Delta"]="916",e["&Epsilon"]="917",e["&Zeta"]="918",e["&Eta"]="919",e["&Theta"]="920",e["&Iota"]="921",e["&Kappa"]="922",e["&Lambda"]="923",e["&Mu"]="924",e["&Nu"]="925",e["&Xi"]="926",e["&Omicron"]="927",e["&Pi"]="928",e["&Rho"]="929",e["&Sigma"]="931",e["&Tau"]="932",e["&Upsilon"]="933",e["&Phi"]="934",e["&Chi"]="935",e["&Psi"]="936",e["&Omega"]="937",e["&alpha"]="945",e["&beta"]="946",e["&gamma"]="947",e["&delta"]="948",e["&epsilon"]="949",e["&zeta"]="950",e["&eta"]="951",e["&theta"]="952",e["&iota"]="953",e["&kappa"]="954",e["&lambda"]="955",e["&mu"]="956",e["&nu"]="957",e["&xi"]="958",e["&omicron"]="959",e["&pi"]="960",e["&rho"]="961",e["&sigmaf"]="962",e["&sigma"]="963",e["&tau"]="964",e["&upsilon"]="965",e["&phi"]="966",e["&chi"]="967",e["&psi"]="968",e["&omega"]="969",e["&thetasym"]="977",e["&upsih"]="978",e["&piv"]="982",e["&ensp"]="8194",e["&emsp"]="8195",e["&thinsp"]="8201",e["&zwnj"]="8204",e["&zwj"]="8205",e["&lrm"]="8206",e["&rlm"]="8207",e["&ndash"]="8211",e["&mdash"]="8212",e["&lsquo"]="8216",e["&rsquo"]="8217",e["&sbquo"]="8218",e["&ldquo"]="8220",e["&rdquo"]="8221",e["&bdquo"]="8222",e["&dagger"]="8224",e["&Dagger"]="8225",e["&bull"]="8226",e["&hellip"]="8230",e["&permil"]="8240",e["&prime"]="8242",e["&Prime"]="8243",e["&lsaquo"]="8249",e["&rsaquo"]="8250",e["&oline"]="8254",e["&frasl"]="8260",e["&euro"]="8364",e["&image"]="8365",e["&weierp"]="8472",e["&real"]="8476",e["&trade"]="8482",e["&alefsym"]="8501",e["&larr"]="8592",e["&uarr"]="8593",e["&rarr"]="8594",e["&darr"]="8595",e["&harr"]="8596",e["&crarr"]="8629",e["&lArr"]="8656",e["&uArr"]="8657",e["&rArr"]="8658",e["&dArr"]="8659",e["&hArr"]="8660",e["&forall"]="8704",e["&part"]="8706",e["&exist"]="8707",e["&empty"]="8709",e["&nabla"]="8711",e["&isin"]="8712",e["¬in"]="8713",e["&ni"]="8715",e["&prod"]="8719",e["&sum"]="8721",e["&minus"]="8722",e["&lowast"]="8727",e["&radic"]="8730",e["&prop"]="8733",e["&infin"]="8734",e["&ang"]="8736",e["&and"]="8743",e["&or"]="8744",e["&cap"]="8745",e["&cup"]="8746",e["&int"]="8747",e["&there4"]="8756",e["&sim"]="8764",e["&cong"]="8773",e["&asymp"]="8776",e["&ne"]="8800",e["&equiv"]="8801",e["&le"]="8804",e["&ge"]="8805",e["&sub"]="8834",e["&sup"]="8835",e["&nsub"]="8836",e["&sube"]="8838",e["&supe"]="8839",e["&oplus"]="8853",e["&otimes"]="8855",e["&perp"]="8869",e["&sdot"]="8901",e["&lceil"]="8968",e["&rceil"]="8969",e["&lfloor"]="8970",e["&rfloor"]="8971",e["&lang"]="9001",e["&rang"]="9002",e["&loz"]="9674",e["&spades"]="9824",e["&clubs"]="9827",e["&hearts"]="9829",e["&diams"]="9830",e)"function"!=typeof e[n]&&e.hasOwnProperty(n)&&(t[e[n]]=n);for(o in t)"function"!=typeof t[o]&&t.hasOwnProperty(o)&&(i=t[o].toLowerCase().substr(1),r.put(i,String.fromCharCode(o)));return r})();var aB=class extends ZH{decodeCharacter(e){let t;e.mark();const r=e.next();if(null==r||"&"!==r)return e.reset(),null;const n=e.next();if(null==n)return e.reset(),null;if("#"===n){if(t=this._getNumericEntity(e),null!=t)return t}else if(n.match(/[A-Za-z]/)&&(e.pushback(n),t=this._getNamedEntity(e),null!=t))return t;return e.reset(),null}_getNamedEntity(e){let t,r,n,o="";for(t=Math.min(e.remainder().length,iB.getMaxKeyLength()),n=0;n<t;n++)o+=e.next().toLowerCase();const i=iB.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,r=0;r<t;r++)e.next();return e.peek(";")&&e.next(),i.getValue()}_getNumericEntity(e){const t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}_parseHex(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,16);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}_parseNumber(e){let t,r="";for(;e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}r+=t,e.next()}const n=parseInt(r,10);return!Number.isNaN(+n)&&QH(n)?String.fromCharCode(n):null}},sB=class extends ZH{decodeCharacter(e){e.mark();const t=e.next();let r,n,o,i;if(null==t)return e.reset(),null;if("%"!==t)return e.reset(),null;for(r="",n=0;n<2;n++)o=e.nextHex(),null!=o&&(r+=o);return 2===r.length&&(i=parseInt(r,16),QH(i))?String.fromCharCode(i):(e.reset(),null)}};let lB;"undefined"!=typeof document&&(lB=document.createElement("div"));const cB=Array.prototype.indexOf,uB=[",",".","_"," "],dB=[",",".","-","_"," "],pB={width:["%"],height:["%"]},fB={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},hB={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":fB.image,"background-color":fB.color,"border-color":fB.color,"border-image":fB.image,color:fB.color,icon:fB.image,"list-style-image":fB.image,"outline-color":fB.color},mB={attr_name:["^on[a-z]{1,}","style","href","src"],attr_val:["javascript:","data:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function gB(e,t,r){let n;if(t){if(cB)return cB.call(t,e,r);for(n=t.length,r=r?r<0?Math.max(0,n+r):r:0;r<n;r++)if(r in t&&t[r]===e)return r}return-1}function bB(e){if(null==e)return"";let t="";const r=document.createTextNode(e);return lB.appendChild(r),t=lB.innerHTML,lB.removeChild(r),t}function vB(e,t,r){let n,o,i,a,s,l,c,u,d;for(e=xB(e).toLowerCase(),t=xB(t),i=0;i<mB.attr_name.length;i++)if(e.match(mB.attr_name[i]))throw new Error(`Unsafe attribute name used: ${e}`);for(i=0;i<mB.attr_val.length;i++)if(t.toLowerCase().match(mB.attr_val[i]))throw new Error(`Unsafe attribute value used: ${t}`);if(n=pB[e],n||(n=dB),o="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=s}o+='="'}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,n)<0?(d=u.toString(16),o+=`&#x${d};`):o+=c;return r||(o+='"'),o}function yB(e,t,r){let n,o,i,a,s,l,c,u,d,p;if(e=xB(e).toLowerCase(),t=xB(t),gB(e,mB.css_key)>=0)throw new Error(`Unsafe property name used: ${e}`);for(n=0;n<mB.css_val.length;n++)if(t.toLowerCase().indexOf(mB.css_val[n])>=0)throw new Error(`Unsafe property value used: ${t}`);if(o=hB[e],o||(o=fB.default),i="",!r){for(a=0;a<e.length;a++){if(s=e.charAt(a),!s.match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=s}i+=": "}for(l=0;l<t.length;l++)c=t.charAt(l),u=t.charCodeAt(l),!c.match(/[a-zA-Z0-9]/)&&gB(c,o)<0?(d=u.toString(16),p="000000".substr(d.length),i+=`\\${p}${d}`):i+=c;return i}function xB(e,t){let r,n,o,i,a=!1;if(null===e)return null;r=e,n=e,o=0;const s=[new aB,new sB,new tB];for(;!a;){n=r;for(let e=0;e<s.length;e++)i=s[e].decode(r),i!==r&&(o++,r=i);n!==r||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return r}const SB=[];for(let e=0;e<255;e++)SB[e]=e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?null:e.toString(16);const wB={html:e=>bB(e.unsafe),css(e){let t,r=[];const n=[],o={};let i="";for(t in e.map?r=e.map:r[e.name]=e.unsafe,r)"function"!=typeof r[t]&&r.hasOwnProperty(t)&&(n[t]=yB(t,r[t],!0),i+=yB(t,r[t],!0),o[t]=n[t]);return e.map?o:i},attr(e){let t=[];const r=[],n={};let o="";e.map?t=e.map:t[e.name]=e.unsafe;for(const e in t)"function"!=typeof t[e]&&t.hasOwnProperty(e)&&(r[e]=vB(e,t[e],!0),o+=vB(e,t[e],!0),n[e]=r[e]);return e.map?n:o}};function CB(e,t){throw new Error(t)}var EB={canonicalize:xB,encode:function(){const e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"==typeof arguments[0]?function(){let e,t,r;const n=arguments[0]||{};let o=1;const i=arguments.length;for(;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r=e[t],n===r)continue;void 0!==r&&(n[t]=r)}}(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?wB.html(e):"css"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.css(e)):"attr"===e.context?(null!=e.map&&"object"!=typeof e.map&&CB(this,"Invalid parameter type"),wB.attr(e)):void CB(this,"Invalid parameter type")},encodeForAttr:vB,encodeForAttr2:function(e){return vB("nonsens",e,!0)},encodeForCSS:yB,encodeForHref:function(e){xB(e),0!==e.search("[a-zA-Z0-9]+:")&&(e=`http://${e}`);const t=new YH(e),r=YH.encodeAuthorityAndPath(t.authorityAndPath),n=t.searchParams;e=r+YH.encodeSearchParams(n)+t.hash;const o=decodeURI(e).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){let r,n,o,i,a,s;for(t||(t=uB),s="",r=0;r<e.length;r++)o=e.charAt(r),i=e.charCodeAt(r),gB(o,t)>=0||null==SB[i]?s+=o:(n=i.toString(16),i<256?(a="00".substr(n.length),s+=`\\x${a}${n.toUpperCase()}`):(a="0000".substr(n.length),s+=`\\u${a}${n.toUpperCase()}`));return s},encodeForHTML:bB,encodeForURL:function(e,t){let r="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?r+=xB(t).toLowerCase():CB(this,"Illegal Attribute Name Specified"),r+='="'),r+=encodeURIComponent(e).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A"),r+=t?'"':"",r},isSafeDataURL:(e,t)=>{const{maxByteSizeSvg:r=UH,maxByteSizeImage:n=WH}=t??{},{mimeType:o,encoding:i,data:a}=(e=>{const[,t,r,n]=VH.exec(e.trim())??[];return{encoding:r,data:n,mimeType:t?.toLocaleLowerCase()}})(e);if(!a)return!0;const s=((e,t,r)=>{const n={type:e};if(t?.includes(";base64"))try{return new Blob([atob(r)],n).size}catch{return new Blob([r],n).size}return"image/svg+xml"===e?new Blob([r],n).size:0})(o,i,a);return"image/svg+xml"===o?s<=r:s<=n},validateURI:function(e){if(""===e||function(e){if("canParse"in URL)return URL.canParse(e);try{return new URL(e),!0}catch{return!1}}(e))return!1;const t=e.replace(/%2E/gi,".");if(t.match(/[#&=: ]/))return!1;const r=function(e){let t=e,r="";for(;t.length>0;)if(t.startsWith("../")||t.startsWith("./"))t=t.replace(/^\.\.?\//,"");else if(t.startsWith("/./"))t=t.replace(/^\/\.\//,"/");else if("/."===t)t="/";else if(t.startsWith("/../")){t=t.replace(/^\/\.\.\//,"/");const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("/.."===t){t="/";const e=r.lastIndexOf("/");-1!==e&&(r=r.slice(0,e))}else if("."===t||".."===t)t="";else{const e=t.match(/^\/?[^/]*/),n=e?e[0]:"";t=t.slice(n.length),r+=n}return r}(t);return""!==r&&"/"!==r&&r}};const RB=(e,t)=>t.qAttrExps?.qValues?.[e],AB=(e,t)=>{switch(e){case"topLeft":default:return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"center"};case"topRight":return{horizontal:"rtl"===t?"flex-end":"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"rtl"===t?"flex-start":"flex-end",vertical:"flex-end"}}},IB=({text:e,url:t,imageSize:r,imagePosition:n,labelStructure:o,imageBox:i,direction:a})=>!n||t&&(t.toLowerCase().includes("javascript:")||!EB.isSafeDataURL(t))?{type:lF.Text,url:void 0,text:e,labelStructure:o}:{type:lF.Image,url:t||"",text:e,imageSize:r,resolvedImagePosition:AB(n,a),labelStructure:o,imageBox:i},kB=(e,t,r,n)=>{if(!e.qMiniChart||!t?.miniChart||!r)return{type:lF.Text,text:n};const{minY:o,maxY:i}=((e,t,r)=>{const n="global"===t.yAxis?.scale,o="zeroCenter"===t.yAxis?.position,i=n?r.qYMin:e.qMiniChart.qMin,a=n?r.qYMax:e.qMiniChart.qMax;if(o){const e=Math.max(Math.abs(i),Math.abs(a));return{minY:-e,maxY:e}}return(e=>"zeroBaseline"===e.yAxis?.position||"bars"===e.type&&"auto"===e.yAxis?.position)(t)?{minY:Math.min(0,i),maxY:Math.max(0,a)}:{minY:i,maxY:a}})(e,t.miniChart,r),a={type:t.miniChart.type,qMatrix:e.qMiniChart.qMatrix,minY:o,maxY:i,showDots:!!t.miniChart.showDots,colors:t.miniChart.colors,colorMin:e.qMiniChart.qMin,colorMax:e.qMiniChart.qMax};return{type:lF.MiniChart,text:n,miniChart:a}},PB=(e,t,r)=>{const n=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,o=n?.qValues?.[e];if(o){const e=Number.isNaN(+o.qNum)?void 0:`${o.qNum}`;return o.qText||e}return r?.urlPosition===cF.Attribute?void 0:r?.urlLabel},DB=({labelStructure:e,text:t,url:r})=>{try{if(!r)throw Error("Invalid url");return{type:lF.Link,url:EB.encodeForHref(r),text:t,labelStructure:e}}catch{return{type:lF.Text,url:void 0,text:t,labelStructure:e}}},MB=({cell:e,representationProperties:t,attrExprInfoIndex:r,env:n,conditionalColoring:o,miniChartOnMeasure:i,labelStructure:a,getText:s=e=>e.qText,direction:l,enabledFeatures:c})=>{const u=uF(t),d=s(e);return u===lF.Image&&c[lF.Image]&&!n.anything.sense?.isUnsupportedFeature?.("tableImages")?((e,t,r,n,o,i)=>{const{imageSize:a,imagePosition:s,imageSetting:l,imageLabel:c,imageBox:u}=t??{};if("url"===l){const t=RB(r.imageUrl??-1,e)?.qText;return i&&(i.maskedValue=t??""),IB({text:n,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}if("label"===l){const t=i?i.originalValue:n;if(-1===r.imageLabel)return IB({text:c||t||"",url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o});const l=RB(r.imageLabel??-1,e)?.qText??n;return IB({text:l,url:t,imageSize:a,imagePosition:s,labelStructure:i,imageBox:u,direction:o})}return{type:lF.Text,url:void 0,labelStructure:i,text:n}})(e,t,r,d,l,a):u===lF.Link?((e,t,r,n,o)=>{const{urlPosition:i}=t??{};if(i===cF.Attribute){const i=PB(r.url??-1,e,t);return DB({labelStructure:n,text:o||i||"",url:i})}if(i===cF.Dimension){const i=PB(r.urlLabel??-1,e,t)||o;return n&&(n.maskedValue=i),DB({text:i,labelStructure:n,url:n?.originalValue??o})}return{type:lF.Text,url:void 0,text:o,labelStructure:n}})(e,t,r,a,d):u===lF.Indicator&&c[lF.Indicator]&&!n.anything.sense?.isUnsupportedFeature?.("tableIndicators")?((e,t,r)=>{const{indicator:n}=e??{};return{type:lF.Indicator,url:void 0,text:r,indicator:{applySegmentColors:n?.applySegmentColors,position:n?.position,showTextValues:n?.showTextValues},indicatorConditionalColoring:t}})(t,o,d):u===lF.MiniChart&&c[lF.MiniChart]&&!n.anything.sense?.isUnsupportedFeature?.("qMiniChartDef")?kB(e,t,i,d):{type:lF.Text,url:void 0,text:d,labelStructure:a}},TB=Kg(e=>{const t=e(Kb),r=e(Mb);return e(Tb),{qTop:0,qHeight:0,rowPartialHeight:r?.content?.rowPartialHeight??0,visibleTop:r?.content?.visibleTop??t?.visibleTop,visibleHeight:r?.content?.visibleHeight??t?.visibleHeight,scrollLeft:r?.content?.scrollLeft??t?.scrollLeft??0,scrollTopRatio:r?.content?.scrollTopRatio??t?.scrollTopRatio,rowsPerPage:r?.content?.rowsPerPage??t?.rowsPerPage,page:r?.content?.page??t?.page,estimatedRowHeight:r?.content?.estimatedRowHeight??0}}),qB=e=>-1===e?{}:e.qAttrExprInfo.reduce((e,{id:t},r)=>(e[t]=r,e),{}),OB=({cId:e})=>e??Zz(),LB=1e4;function NB(e,t){return[...t].reverse().find(t=>t*e<=LB)||Math.floor(LB/e)}function jB(e,t){if(t?.skipTotals)return{atTop:!1,atBottom:!1};const r=e.qHyperCube.qDimensionInfo.length>0,n=e.qHyperCube.qMeasureInfo.length>0,o=e.qHyperCube.qGrandTotalRow.length>0,i=e.totals?.show,a=e.totals?.position;if(o&&(r&&n||!i&&!r)){if(i||"top"===a)return{atTop:!0,atBottom:!1};if("bottom"===a)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function _B(e,t,r,n){return t?0===r?e.totals?.label??"":"":e.qHyperCube.qGrandTotalRow.at(n)?.qText??""}function zB(e,t){const r=e.qHyperCube.qGrandTotalRow.at(t);return J$(r?.qNum)}function FB(e,t,r,n,o){return e&&!e.auto?n&&"rtl"===o&&"center"!==e.align?{headTextAlign:"right"===e.align?"left":"right",totalsTextAlign:"right"===e.align?"left":"right",bodyTextAlign:"right"===e.align?"left":"right"}:{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:n||"rtl"!==o?{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:r?"left":"right",bodyTextAlign:"auto"}:{headTextAlign:"N"===t||void 0===t?"left":"right",totalsTextAlign:r?"right":"left",bodyTextAlign:"auto"}}const $B=(e,t,r,n)=>"auto"!==t?t:n||"rtl"!==r?e?"right":"left":e?"left":"right",HB=(e,t)=>{if(!e)return;const{background:r,foreground:n}=e,o=ie(r??""),i=ie(n??""),a=t?"getRGB":"getRGBA",s=o.isInvalid()?void 0:o[a](),l=s?km(s,lg):void 0,c=s?km(s,cg):void 0;return i.isInvalid()&&void 0!==s?{background:s,color:Am(s),headerMenuHoverBackground:l,headerMenuActiveBackground:c}:{background:s,color:i.isInvalid()?void 0:i.getRGBA(),headerMenuHoverBackground:l,headerMenuActiveBackground:c}};const BB=(e,t,r,n=()=>!1)=>{const{qHyperCube:{qColumnOrder:o,qDimensionInfo:i,qMeasureInfo:a}}=e,s=i.length+a.length,l=((e,t,r)=>{const n=t.length,{visible:o,hiddenDim:i,hiddenMea:a}=e.reduce((e,o)=>{const i=o<n,{qError:a}=i?t[o]:r[o-n];return 7005===a?.qErrorCode?i?e.hiddenDim.push(o):e.hiddenMea.push(o):e.visible.push(o),e},{visible:[],hiddenDim:[],hiddenMea:[]});return o.map((e,t)=>{const r=e<n,o=(r?i:a).filter(t=>t<e).length,s=e-o;return{colIdx:e,pageColIdx:t,visibleDimInfoIdx:r?s:void 0,visibleMeasureInfoIdx:r?void 0:s-n}})})(o.length===s?o:Array.from(Array(s).keys()),i,a);return l.map(o=>function(e,t,r,n,o=()=>!1){const{qDimensionInfo:i,qMeasureInfo:a,qEffectiveInterColumnSortOrder:s}=e.qHyperCube,{colIdx:l,pageColIdx:c,visibleDimInfoIdx:u,visibleMeasureInfoIdx:d}=t,p=i.length,f=l<p,h=f?i[l]:a[l-p],m=f&&i[l].qGrouping===ug.Cyclic,g=l===s[0];let b,v,y="",x=!1,S=-1,w=0,C=[];const{representation:E,conditionalColoring:R}=h;if(f&&void 0!==u){const e=h;y=e.qGroupFieldDefs[e.qGroupPos],w=e.qGroupPos,C=e.qGroupFallbackTitles,x=e.qLocked??!1,S=u,({qDimensionType:b}=e)}else({qMiniChart:v}=h);const{qFallbackTitle:A,textAlign:I,qAttrExprInfo:k,qSortIndicator:P,qReverseSort:D,qApprMaxGlyphCount:M,columnWidth:T,qLibraryId:q,headerColor:O}=h;return{isDim:f,isCyclic:m,isLocked:x,fieldId:y,colIdx:l,qLibraryId:q,pageColIdx:c,qApprMaxGlyphCount:M,qReverseSort:D,columnWidth:T??{type:sg.Auto},selectionColIdx:S,isActivelySorted:g,id:OB(h),label:A??"",groupDimensionPos:w,groupDimensionLabels:C,qAttrExprInfoIDs:k.map(e=>e.id),qAttrExprInfoIndex:qB(h),sortDirection:P&&"N"!==P?P:"A",totalInfo:_B(e,f,c,d??-1),...!f&&{isTotalNumeric:zB(e,d??-1)},...FB(I,b,f,r,n),representation:E,conditionalColoring:f?void 0:R,qMiniChart:v,headerColor:o("VNA-626-TABLE_HEADER_COLOR_BY_EXPRESSION")?HB(O,r):void 0}}(e,o,t,r,n))},VB=(e,t,r,n)=>e?(n?r.nullValueRepresentation?.dimensionText:void 0)??t.qText??"-":r.nullValueRepresentation?.text??t.qText??"-",WB=(e,t)=>t?-2===e.qElemNumber:!!e.qIsNull,UB={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},GB=Kg(e=>{const t=e(KB),r=e(Rb),n=e(TB),o=r.qHyperCube.qSize.qcy,i=n.visibleHeight??t.rowsPerPage,a=n.visibleTop??t.page*i,s=n.visibleHeight??Math.min(i,o-a),l=r.qHyperCube.qSize.qcx;return t.page>0&&a>=o?{...t,page:0}:s*l>LB?{...t,rowsPerPage:NB(l,t.rowsPerPageOptions),page:0}:t}),KB=Kg(UB),YB=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(TB);return Vb(t,r)?{page:n.page||UB.page,rowsPerPage:n.rowsPerPage||UB.rowsPerPage,rowsPerPageOptions:UB.rowsPerPageOptions}:e(GB)},(e,t,r)=>{t(KB,e=>({...e,...r}))}),XB=!0,JB=e=>-1===e.qElemNumber||!!e.qIsTotalCell,ZB=Kg(async e=>{const t=e(Rb),r=e(Kb),n=e(Ub),{page:o,rowsPerPage:i}=e(YB),a=e(TB),s=e(Qb),l=e(Sb),c=e(Ib),u=e(wb),d=t.qHyperCube.qSize.qcx,p=t.qHyperCube.qSize.qcy,f=Math.ceil(p/i),h=a.visibleTop??o*i,m=a.visibleHeight??Math.min(i,p-h),g=p>10,b=jB(t,r),v=BB(t,XB,n,u),y=l.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),x=await(async(e,t,r)=>{if(t.snapshotData)return t.qHyperCube.qDataPages;const n=t.qHyperCube.qDataPages.at(0),o=n?.qArea;return n&&o?.qLeft===r.qLeft&&o.qTop===r.qTop&&o.qWidth===r.qWidth&&o.qHeight>=r.qHeight?[{...n,qMatrix:n.qMatrix.slice(0,r.qHeight)}]:e&&"getHyperCubeData"in e?e.getHyperCubeData("/qHyperCubeDef",[r]):[]})(s,t,{qLeft:0,qTop:h,qHeight:m,qWidth:d});c||(a.qTop=h,a.qHeight=m,a.rowsPerPage=i,a.page=o);const S=x.at(0)?.qMatrix.map((e,r)=>{const o=[],i=e.some(JB);return v.forEach((a,s)=>{const c=e[s],u=!a.isDim&&c.qIsNull,d=a.isDim&&WB(c,a.isDim),p=u||d?VB(a.isDim,c,t,y):c.qText,f=u?Q$(p):Z$(c),g=Z$(c)&&!Q$(c.qText??"");o[s]={id:Zz(),...c,align:$B(f,a.bodyTextAlign,n,XB),rowIdx:r+h,colIdx:a.colIdx,pageRowIdx:r,pageColIdx:s,selectionColIdx:a.selectionColIdx,isSelectable:a.isDim&&!a.isLocked&&!i&&!d,isTotalRow:i,isLastRow:r===m-1,isNumeric:f,isDual:g,isNull:(!u||!f)&&WB(c,a.isDim),representation:MB({cell:c,representationProperties:a.representation,attrExprInfoIndex:a.qAttrExprInfoIndex,env:l,conditionalColoring:a.conditionalColoring,miniChartOnMeasure:a.qMiniChart,getText:()=>p,direction:n,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})}}),o})??[];return{totalColumnCount:d,totalRowCount:p,totalPages:f,paginationNeeded:g,totalsPosition:b,columns:v,rows:S}}),QB=oA(ZB,e=>e),eV=Kg(e=>{const t=e(Rb),r=e(Kb),n=e(_b),o=e(Ub),i=e(wb),a=BB(t,false,o,i),s=jB(t,r),l=t.qHyperCube.qSize.qcy,c=Math.min(BH,l),u=l>BH&&!!n.active;return{totalsPosition:s,columns:a,rows:[],totalRowCount:l,totalColumnCount:t.qHyperCube.qSize.qcx,totalPages:Math.ceil(l/c),paginationNeeded:u}}),tV={totalsPosition:{atTop:!1,atBottom:!1},columns:[],rows:[],totalRowCount:0,totalColumnCount:0,totalPages:0,paginationNeeded:!1},rV=Kg(),nV=Kg(e=>{const t=e(Xb),r=e(rV);return r||(t?e(QB)??tV:e(eV))}),oV=Kg(e=>e(nV).totalsPosition),iV=Kg(e=>e(nV).columns),aV=Kg(e=>e(iV).length),sV=Kg(e=>e(nV).rows),lV=Kg(e=>e(nV).totalRowCount),cV=Kg(e=>e(nV).totalColumnCount),uV=Kg(e=>e(nV).paginationNeeded),dV=Kg(e=>{const t=e(iv),r=e(lv),n=e(Rb),o=e(oV),i=e(sV),a=o.atTop,s=function(e,t,r,n){const o=_H(e)?.content,i=zH("content",t,o);i.background=t.background.color;const a=jH(i.fontSize,r,n),s=o?.hoverColor,l=o?.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),u=t.getStyle("object","","straightTableV2.content.hover.color"),d=OH(l)||!!u,p=OH(s)||!!c,f=d||p;let h;h=OH(s)?LH(Rm.HOVER,t,s):c||(d?"":Rm.HOVER);const m=f?LH(Am(h),t,l):"";return{...i,lastRowBottomBorder:a,hoverColors:{background:h,color:m}}}(n,r,i.length,t),l=FH(n,r,!a),c=function(e,t,r){const n=_H(e)?.content,o=zH("content",t,n),{borderBottomColor:i,borderTopColor:a,background:s}=FH(e,t,r);return{...o,borderBottomColor:i,background:s,borderTopColor:a}}(n,r,a);return{body:s,head:l,totals:c}}),pV=(e,t)=>{if(t){const r=e.getColorPickerColor(t);return"none"===r?"transparent":r}},fV=(e,t,r)=>{const{objectColorFromCSS:n,sheetColorFromCSS:o}=e.background,i=pV(e,t?.background),a=e.getStyle("","",r);return{backgroundColor:i||n||a,backgroundFromStyling:i,sheetColorFromCSS:o}},hV=(e,t,r,n=Rm.WHITE)=>{const{backgroundColor:o,backgroundFromStyling:i,sheetColorFromCSS:a}=fV(e,t,r);return Lm(i,o,a,n)??n},mV=e=>{switch(typeof e){case"string":return`${parseInt(e,10)}px`;case"number":return`${e}px`;default:return uH}},gV=e=>e?.some(e=>"italic"===e)?"italic":"normal",bV=(e,t)=>void 0===e?t:e.some(e=>"bold"===e)?dH:"normal",vV=e=>!1===e?1:3,yV=e=>e?.some(e=>"underline"===e)?"underline":"none",xV=Kg(e=>{const t=e(Kb),r=e(Xb),n=e(lv),o=e(Rb),i=e(dV),a=e(wb),{header:s,dimensionValues:l,measureValues:c,totalValues:u,subTotalValues:d,nullValues:p,dimensionNullValues:f,grid:h,content:m}=_H(o)??{},g=a("VNA-670-SEPARATE_NULL_VALUE_STYLING"),b=r?Rm.WHITE:Rm.TRANSPARENT,v=hV(n,s,"object.straightTableV2.dimension.label.name.backgroundColor",b),y=t?.maxLineCount??m?.rowHeight??n.getStyle("object.straightTableV2","grid","lineClamp"),x=(g?f:void 0)??p;return{header:{fontFamily:s?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.name","fontFamily")??i.head.fontFamily??pH,fontSize:mV(s?.fontSize??n.getStyle("object.straightTableV2.dimension","label.name","fontSize")??i.head.fontSize),fontStyle:gV(s?.fontStyle),fontWeight:bV(s?.fontStyle,dH),textDecoration:yV(s?.fontStyle),color:pV(n,s?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.name","color")??i.head.color??Rm.TEXT,background:v},headerMenuHoverBackground:km(v,lg),headerMenuActiveBackground:km(v,cg),dimension:{values:{fontFamily:l?.fontFamily??n.getStyle("object.straightTableV2.dimension","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(l?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.dimension","label.value","fontSize")??i.body.fontSize),fontStyle:gV(l?.fontStyle),fontWeight:bV(l?.fontStyle,"normal"),textDecoration:yV(l?.fontStyle),color:pV(n,l?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.dimension","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,l,"object.straightTableV2.dimension.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},measure:{values:{fontFamily:c?.fontFamily??n.getStyle("object.straightTableV2.measure","label.value","fontFamily")??i.body.fontFamily??pH,fontSize:mV(c?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.measure","label.value","fontSize")??i.body.fontSize),fontStyle:gV(c?.fontStyle),fontWeight:bV(c?.fontStyle,"normal"),textDecoration:yV(c?.fontStyle),color:pV(n,c?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.measure","label.value","color")??i.body.color??Rm.TEXT,background:fV(n,c,"object.straightTableV2.measure.label.value.backgroundColor").backgroundColor??i.body.background??Rm.TRANSPARENT}},totalRow:{fontFamily:u?.fontFamily??n.getStyle("object.straightTableV2.total","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(u?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.total","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(u?.fontStyle),fontWeight:bV(u?.fontStyle,dH),textDecoration:yV(u?.fontStyle),color:pV(n,u?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.total","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,u,"object.straightTableV2.total.label.value.backgroundColor",b)},subTotalRow:{fontFamily:d?.fontFamily??n.getStyle("object.straightTableV2.subTotal","label.value","fontFamily")??i.totals.fontFamily??pH,fontSize:mV(d?.fontSize??m?.fontSize??n.getStyle("object.straightTableV2.subTotal","label.value","fontSize")??i.totals.fontSize),fontStyle:gV(d?.fontStyle),fontWeight:bV(d?.fontStyle,dH),textDecoration:yV(d?.fontStyle),color:pV(n,d?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.subTotal","label.value","color")??i.totals.color??Rm.TEXT,background:hV(n,d,"object.straightTableV2.subTotal.label.value.backgroundColor",b)},dimensionNull:{fontStyle:gV(x?.fontStyle),fontWeight:bV(x?.fontStyle,"normal"),textDecoration:yV(x?.fontStyle),color:pV(n,x?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,x?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},measureNull:{fontStyle:gV(p?.fontStyle),fontWeight:bV(p?.fontStyle,"normal"),textDecoration:yV(p?.fontStyle),color:pV(n,p?.fontColor)??pV(n,m?.fontColor)??n.getStyle("object.straightTableV2.null","label.value","color")??i.body.color??Rm.TEXT,background:pV(n,p?.background)??n.getStyle("","","object.straightTableV2.null.label.value.backgroundColor")??Rm.NULL_VALUE_BACKGROUND},grid:{contentLineClamp:y??vV(o.multiline?.wrapTextInCells),headerLineClamp:vV(o.multiline?.wrapTextInHeaders),border:pV(n,h?.border)??n.getStyle("object.straightTableV2","grid","borderColor")??(n.background.isDark?Rm.DARK_MODE_BORDER:Rm.BORDER_MEDIUM),divider:pV(n,h?.divider)??n.getStyle("object.straightTableV2.grid","","divider.borderColor")??Rm.BORDER_HEAVY,hoverColors:{color:pV(n,m?.hoverFontColor)??n.getStyle("object.straightTableV2","","grid.hover.color")??i.body.hoverColors?.color,background:pV(n,m?.hoverColor)??n.getStyle("object.straightTableV2","","grid.hover.backgroundColor")??i.body.hoverColors?.background},zebraStripes:{show:!!h?.zebraStripes?.show,odd:{color:pV(n,h?.zebraStripes?.color?.odd),background:pV(n,h?.zebraStripes?.background?.odd)},even:{color:pV(n,h?.zebraStripes?.color?.even),background:pV(n,h?.zebraStripes?.background?.even)},overrideDimNullValueBackground:void 0===pV(n,x?.background),overrideDimNullValueColor:void 0===pV(n,x?.fontColor),overrideMeasNullValueBackground:void 0===pV(n,p?.background),overrideMeasNullValueColor:void 0===pV(n,p?.fontColor)},lastRowBottomBorder:i.body.lastRowBottomBorder},selectedColors:Im(n),contentStaticLineCount:y}}),SV=Kg(e=>{const t=e(xV);return Math.max(TH(t.header.fontSize)+8,32)}),wV=Kg(e=>{const t=e(xV),r=TH(t.totalRow.fontSize);return Math.max(r+9,24)}),CV=Kg(e=>{const t=e(xV),r=e(kb),n=e(Pb);return Math.max(r>0?TH(t.dimension.values.fontSize):0,n>0?TH(t.measure.values.fontSize):0)}),EV=Kg(e=>{const t=e(xV),r=e(CV),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),RV=Kg(e=>{const t=e(xV),r=TH(t.subTotalRow.fontSize),n=(t.contentStaticLineCount||1)*r;return Math.max(n+9,24)}),AV=(e,t,r)=>{if(!e.length)return[];const n=[],o=[];let i=t;if(e.forEach((e,a)=>{const{columnWidth:{type:s,pixels:l,percentage:c},label:u,qApprMaxGlyphCount:d,totalInfo:p}=e;let f=0;const h=()=>{n[a]=Math.min(ag.PixelsMax,Math.max(ag.PixelsMin,f)),i-=n[a]};switch(s){case sg.Pixels:f=(e=>void 0===e||Number.isNaN(+e)?ag.PixelsDefault:+e)(l),h();break;case sg.Percentage:f=(e=>void 0===e||Number.isNaN(+e)?ag.PercentageDefault:+e)(c)/100*t,h();break;case sg.FitToContent:e.representation?.type===lF.Image?o.push(a):(f=r(u,p,d,e.isLocked,e.isActivelySorted,e.isDim,e.isCyclic),h());break;case sg.Auto:o.push(a);break;default:throw new Error(`${s} is not a valid column width type`)}}),o.length){const e=i/o.length;o.forEach(t=>{n[t]=Math.max(ag.AutoMinTable,e)})}return n},IV=Kg(e=>{const t=e(xV),r=e(nV).totalsPosition,n=e(qb),{measureText:o}=e(B$({...t.header,fontWeight:dH})),{measureText:i}=e(B$({...t.totalRow,fontWeight:dH})),{estimateWidth:a}=e(B$(t.dimension.values)),{estimateWidth:s}=e(B$(t.measure.values)),l=r.atBottom||r.atTop;return(e,t,r,c,u,d,p)=>{let f;if(n){const t=4;let r=25;r+=t+24,c&&(r+=20+t),u&&(r+=20),f=o(e)+r}else{let t=9;t+=16,p&&(t+=wH),t+=wH,t+=wH,f=o(e)+t}const h=d?a:s;return Math.max(f,l?i(t)+24+1:0,h(r))}}),kV=Kg(null),PV=Kg(e=>{const t=e(nV),r=e(ov).width,n=e(MH),o=e(IV);return AV(t.columns,r-n,o)}),DV=Kg(e=>e(kV)??e(PV),(e,t,r)=>{t(kV,r)}),MV=cA(e=>{const t=e(W$);!1===e(PH)&&t.emit("done-adjusting-column-width")}),TV=cA((e,t)=>{e(Rb),t(kV,null)}),qV=Kg(e=>e(DV).reduce((e,t)=>e+t,0)),OV=({children:e})=>(ab(TV),ab(MV),e);function LV(e){const t=wm();return t.components?.MuiTable?.styleOverrides&&(t.components.MuiTable.styleOverrides.root={}),vc({...t,direction:e})}const NV={width:"100%",height:"100%",color:"transparent",background:"transparent",borderColor:"transparent"},jV={border:0,boxShadow:"none",borderRadius:0,outline:0,width:0,height:0,background:"transparent",cursor:"pointer",visibility:"hidden"},_V=_c("input",{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})(({isLastColumn:e,hoverColor:t,dir:r})=>({position:"absolute",display:"flex",height:"100%",top:0,marginLeft:"-4px",marginRight:"rtl"===r?"-4px":void 0,touchAction:"none",cursor:"col-resize",pointerEvents:"auto",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",outline:"none",appearance:"none",WebkitAppearance:"none",backgroundColor:"transparent","&::-webkit-slider-runnable-track":{...NV},"&::-moz-range-track":{...NV},"&::-ms-track":{...NV},"&::-webkit-slider-thumb":{appearance:"none",WebkitAppearance:"none",...jV},"&::-moz-range-thumb":{...jV},"&::-ms-thumb":{...jV},"&:hover:not(:focus, :active)":{"&::after":{backgroundColor:t||"#D9D9D9","@media (hover: none)":{backgroundColor:"none"}}},"&:focus-visible, &:active":{"&::after":{backgroundColor:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}},"&::after":{content:'""',height:"100%",width:"3px",position:"absolute"}})),zV=({columnWidth:e,keyValue:t,isLastColumn:r,isPivot:n,hoverColor:o,updateWidthCallback:i,confirmWidthCallback:a,handleBlur:s,setIsAdjustingWidth:l,isLeftColumn:c,accessibilityRelatedArgs:u,direction:d="ltr"})=>{const p=Jm({translator:u.translator}),f=k({initWidth:e,columnWidth:e,initX:0}),h=r?0:1,m=n&&!c,g=()=>m?f.current.columnWidth-h:"100%",b={left:"rtl"!==d?g():void 0,right:"rtl"===d?g():void 0},v=t=>{f.current={initWidth:e,columnWidth:e,initX:t??f.current.initX}};Ym(()=>{m&&v()},[e]);const y=e=>{const t=Math.max(e,ag.PixelsMin);f.current.columnWidth=t,i(t)},x=()=>{if(f.current.columnWidth!==f.current.initWidth){const e={type:sg.Pixels,pixels:f.current.columnWidth};a(e)}l?.(!1)},S=e=>{const t="rtl"===d?f.current.initWidth+f.current.initX-e.clientX:f.current.initWidth+e.clientX-f.current.initX;y(t)},w=e=>{Tm(e),document.removeEventListener("mousemove",S),document.removeEventListener("mouseup",w),x()},C=e=>{const t="rtl"===d?f.current.initWidth+-f.current.initX-e.touches[0].clientX:f.current.initWidth+e.touches[0].clientX-f.current.initX;y(t)},E=e=>{Tm(e),document.removeEventListener("touchmove",C),document.removeEventListener("touchend",E),x()},R=!n&&s?e=>{if(e.key===og.Left||e.key===og.Right){Tm(e);const t=5,r=e.key===og.Left?t:-t,n="rtl"===d?r:-r;l?.(!0),y(f.current.columnWidth+n)}else e.key===og.Space||e.key===og.Enter?(Tm(e),s(e),l?.(!1),x()):e.key===og.Esc&&(Tm(e),s(e),l?.(!1),y(f.current.initWidth))}:void 0,A=p.get("NebulaTableUtils.ColumnAdjuster.ColumnNameLabel",[String(u.columnLabel)]);return nr.jsx(_V,{style:b,hoverColor:o,isLastColumn:r,className:ig,"data-testid":ig,onMouseDown:e=>{Tm(e),document.addEventListener("mousemove",S),document.addEventListener("mouseup",w),l?.(!0),v(e.clientX)},onDoubleClick:()=>{a({type:sg.FitToContent})},onTouchStart:e=>{1===e.touches.length&&(Tm(e),document.addEventListener("touchmove",C),document.addEventListener("touchend",E),l?.(!0),v(e.touches[0].clientX))},onKeyDown:R,onBlur:s,onFocus:()=>{v()},type:"range",tabIndex:-1,"aria-label":A,"aria-valuemin":ag.PixelsMin,"aria-valuemax":ag.PixelsMax,"aria-valuenow":Number(e.toFixed(1)),dir:d},t)},FV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})})),$V=({model:e,headerData:t})=>{if(e&&"setActiveField"in e&&void 0!==t.dimensionInfoIndex){const r=t.dimensionInfoIndex;return async t=>{try{await e.setActiveField("/qHyperCubeDef",r,t)}catch(e){console.error(e)}}}return null},HV=_c(Pd,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e&&"isAccessibleHeader"!==e})(({rightAligned:e,shouldShowMenuIcon:t,isAccessibleHeader:r})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:r?24:void 0,display:t?"flex":"none",fontWeight:"bold",width:r?"100%":void 0,alignItems:"center",justifyContent:"center"})),BV=_c(FV,{shouldForwardProp:e=>"isInteractionsActive"!==e})(({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"})),VV=_c(Wf)(({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}})),WV=_c(Cp)(({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}})),UV=_c(Xf)(({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)})),GV=_c(Xf,{shouldForwardProp:e=>"isSubMenu"!==e&&"isActive"!==e})(({theme:e,isSubMenu:t,isActive:r})=>({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:r?"rgba(0, 0, 0, 0.05)":"transparent"})),KV=_c("div",{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,right:r||"rtl"!==t?void 0:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"})),YV=_c("div")(()=>({display:"flex",justifyContent:"space-between",alignItems:"center",maxWidth:"100%"})),XV=_c(Wu)(()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),JV=_c(vf,{shouldForwardProp:e=>!["direction","isPagination"].includes(e)})(({theme:e,direction:t,isPagination:r})=>({width:16,minWidth:"unset !important",marginRight:r||"rtl"!==t?e.spacing(1.5):0,marginLeft:r||"rtl"!==t?void 0:e.spacing(1.5),lineHeight:0})),ZV=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})})),QV=e=>{const t=e.nextElementSibling;return t?"HR"===t.tagName?QV(t):t:e.parentElement?.children?.[0]},eW=e=>{const t=e.previousElementSibling;if(!t){const t=e.parentElement?.children?.length;return e.parentElement?.children?.[t-1]}return"HR"===t.tagName?eW(t):t},tW=e=>{const{key:t,currentTarget:r}=e,n=document.activeElement??r;if(t===og.Down||t===og.Up){const r=e=>t===og.Down?QV(e):eW(e);e.preventDefault(),e.stopPropagation();let o=r(n);for(;o;){if("true"!==o.ariaDisabled){o.focus();break}o=r(o)}}},rW=(e,t)=>e.map(e=>e.map(e=>({...e.groupHeading?{groupHeading:e.groupHeading}:{},items:e.items.map(({onClick:e,...r})=>({...r,...e?{onClick:async r=>{Object.entries(t).forEach(([,e])=>{e(!1)}),await e(r)}}:{}}))})));let nW={};const oW=({autoFocus:e,id:t,onClick:r,itemTitle:n,icon:o,enabled:i,subMenus:a,isSubMenu:s,isActive:l,direction:c,isPagination:u})=>{const[d,p]=I(!1),f=S.useRef(null),h=q(e=>{e.stopPropagation(),p(!1)},[p]);return nr.jsxs(nr.Fragment,{children:[nr.jsxs(GV,{ref:a?f:null,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(r&&(await r(e),nW={}),a?.length&&(p(!0),nW[n]=p,e.stopPropagation()))},disabled:!i,autoFocus:e,isSubMenu:!!s,isActive:!!l,onKeyDown:tW,children:[l?nr.jsx(KV,{direction:c,isPagination:u}):null,nr.jsxs(YV,{children:[nr.jsx(JV,{direction:c,isPagination:u,children:nr.jsx(o,{})}),nr.jsx(XV,{variant:"body2",children:n})]}),a?.length?nr.jsx(ZV,{}):null]},t),a?.length?nr.jsx(lW,{isSubMenu:!0,open:d,anchorEl:f.current,onClose:h,menuGroups:rW(a,nW),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},direction:c,isPagination:u}):null]})},iW=({menuGroup:e,isSubMenu:t,direction:r,isPagination:n})=>e.map(e=>[[e.groupHeading&&nr.jsx(UV,{disabled:!0,style:{opacity:1},children:e.groupHeading},e.groupHeading),e.items.map(e=>nr.jsx(oW,{...e,isSubMenu:t,direction:r,isPagination:n},e.id))].filter(Boolean)]),aW=({itemGroups:e,isSubMenu:t,direction:r,isPagination:n})=>e.map((o,i)=>[iW({menuGroup:o,isSubMenu:t,direction:r,isPagination:n}),i<e.length-1?nr.jsx(WV,{"data-testid":"group-divider",variant:"middle"}):void 0]),sW={appear:0,enter:0,exit:0},lW=({anchorEl:e,open:t,onClose:r,menuGroups:n,transformOrigin:o,anchorOrigin:i,isSubMenu:a,direction:s,isPagination:l})=>n.length?nr.jsx(VV,{className:tg,open:t,anchorEl:e,onClose:r,transitionDuration:sW,MenuListProps:{id:rg},...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},dir:s,children:aW({itemGroups:n,isSubMenu:a,direction:s,isPagination:l})}):null,cW=({qLibraryId:e,fieldId:t,searchRelatedArgs:r,selectionRelatedArgs:n,direction:o,onPopoverClose:i})=>q(()=>{const a=e?{qLibraryId:e,type:"dimension"}:t;if(r?.embed){const{embed:e,listboxRef:t}=r;e.__DO_NOT_USE__.popover(t.current,a,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"rtl"===o?"right":"left"},sortCriteria:r.sortCriteria,stateName:n?.qStateName,direction:o,onPopoverClose:i})}},[e,t,r,n?.qStateName,o,i]),uW=(e,t)=>({qInfo:{qType:"tableListbox"},qListObjectDef:Boolean(t.qLibraryId)?{qLibraryId:t.qLibraryId,qStateName:e}:{qDef:{qFieldDefs:[t.fieldId]},qStateName:e}}),dW=(e,t)=>e.some(e=>t[e]>0),pW={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},fW=({open:e,qStateName:t="$",headerData:r,app:n})=>{const[o,i]=I(null),[a,s]=I(pW);return Ym(()=>{e||(s(pW),i(null))},[e]),M(()=>{if(!n?.createSessionObject||!r.isDim||!e)return()=>{};let o,a=!1;const l=()=>{o&&n.destroySessionObject(o)};return(async()=>{try{const e=uW(t,r),c=await n.createSessionObject(e),u=await c.getLayout(),{qStateCounts:d}=u.qListObject?.qDimensionInfo??{};o=u.qInfo?.qId,a?l():(i(c),d&&s((e=>({canSelectAll:dW(["qOption","qAlternative","qExcluded","qDeselected"],e),canClearSelections:dW(["qSelected"],e),canSelectPossible:dW(["qOption"],e),canSelectAlternative:dW(["qAlternative"],e),canSelectExcluded:dW(["qAlternative","qExcluded"],e)}))(d)))}catch(e){console.error(e)}})(),()=>{a=!0,l()}},[e,n,r,t]),{fieldInstance:o,selectionActionsEnabledStatus:a}},hW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),mW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M1 14.5a.5.5 0 0 0 .5.5H3v1H1.5A1.5 1.5 0 0 1 0 14.5V13h1zm9 1.5H6v-1h4zm5.354-8.646L12.707 10l2.646 2.646-.707.707L12 10.708l-2.646 2.646-.708-.707L11.293 10 8.646 7.354l.708-.708L12 9.293l2.646-2.647zM1 10H0V6h1zm2-9H1.5a.5.5 0 0 0-.5.5V3H0V1.5A1.5 1.5 0 0 1 1.5 0H3zm11.5-1A1.5 1.5 0 0 1 16 1.5V3h-1V1.5a.5.5 0 0 0-.5-.5H13V0zM10 1H6V0h4z"})})),gW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),bW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),vW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),yW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),xW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7"})})),SW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),wW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),CW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),EW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),RW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})})),AW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("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"})}));let IW=function(e){return e.Sorting="sorting",e.Searching="searching",e.Selections="selections",e.AdjusterHeaderSize="adjustHeaderSize",e}({});const kW="/qListObjectDef",PW=({headerData:e,translator:t,menuAvailabilityFlags:r,setOpen:n,sortFromMenu:o,interactions:i,embedListbox:a,fieldInstance:s,selectionActionsEnabledStatus:l,anchorRef:c,focusColumnAdjuster:u,setActiveFieldCallback:d,expandOrCollapseArgs:p})=>{const f=[];if(r[IW.Sorting]){const{isActivelySorted:r,sortDirection:i}=e,{ascendingEnabled:a,descendingEnabled:s}=(({isActivelySorted:e,sortDirection:t,isPivot:r,isSortedByFirstMeasure:n})=>{let o=!r&&!e||"D"===t,i=!r&&!e||"A"===t;return n&&(o=!1,i=!1),{ascendingEnabled:o,descendingEnabled:i}})(e);f.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"A")),n(!1)},icon:hW,enabled:a,isActive:!!r&&"A"===i,autoFocus:a},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async e=>{e.stopPropagation(),await(o?.(e,"D")),n(!1)},icon:bW,enabled:s,isActive:!!r&&"D"===i,autoFocus:!a&&s}]}])}if(e.isCyclic&&d){const t=[];t.push([{items:[{id:1,itemTitle:e.groupDimensionLabels[e.groupDimensionPos],enabled:!0,icon:xW,subMenus:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),n(!1),d(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]]}]}]),t.length>0&&f.push(...t)}if(e.isDim&&i?.select){const o=[];r[IW.Searching]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),n(!1),a()},icon:SW,enabled:!0}]}]),!e.isLocked&&r[IW.Selections]&&o.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:AW,enabled:!!s,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAll(kW))},icon:wW,enabled:l.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectPossible(kW))},icon:RW,enabled:l.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectAlternative(kW))},icon:CW,enabled:l.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.selectListObjectExcluded(kW))},icon:EW,enabled:l.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),n(!1),await(s?.clearSelections(kW))},icon:mW,enabled:l.canClearSelections}]}]]}]}]),p&&!p.alwaysFullyExpanded&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Expand"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.expandCallback()},icon:yW,enabled:!0},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Collapse"),onClick:async e=>{e.stopPropagation(),e.preventDefault(),n(!1),await p.collapseCallback()},icon:vW,enabled:!0}]}]),o.length>0&&f.push(...o)}return r[IW.AdjusterHeaderSize]&&f.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),n(!1),u?.(c)},icon:gW,enabled:!0}]}]),f},DW=({open:e,setOpen:t,anchorRef:r,headerData:n,translator:o,interactions:i,menuAvailabilityFlags:a,shouldShowMenuIcon:s=!0,sortRelatedArgs:l,searchRelatedArgs:c,selectionRelatedArgs:u,adjustHeaderSizeRelatedArgs:d,expandOrCollapseArgs:p,model:f,direction:h="ltr",isPagination:m,isAccessibleHeader:g,iconSize:b=Zm})=>{const v=k(null),y=Jm({translator:o}),{qLibraryId:x,fieldId:S,headTextAlign:w}=n,C=u?.app,{fieldInstance:E,selectionActionsEnabledStatus:R}=fW({open:e,headerData:n,app:C,qStateName:u?.qStateName}),A=$V({model:f,headerData:n}),I=cW({qLibraryId:x,fieldId:S,searchRelatedArgs:c,selectionRelatedArgs:u,direction:h}),P=q(e=>{e.stopPropagation(),t(!1)},[t]),D=q(e=>{e.stopPropagation(),t(e=>!e)},[t]);return i.active?nr.jsxs(HV,{rightAligned:"right"===w,shouldShowMenuIcon:s,className:eg,onClick:!1===g?D:void 0,ref:v,isAccessibleHeader:g,children:[s?nr.jsx(BV,{height:b,className:Qm,"data-testid":Qm,isInteractionsActive:i.active??!1,children:nr.jsx(FV,{})}):null,nr.jsx(lW,{open:e,anchorEl:!1===g?v.current:r.current,onClose:P,menuGroups:PW({headerData:n,translator:y,menuAvailabilityFlags:a,setOpen:t,...l,embedListbox:I,interactions:i,fieldInstance:E,selectionActionsEnabledStatus:R,anchorRef:r,focusColumnAdjuster:d?.focusColumnAdjuster,setActiveFieldCallback:A,expandOrCollapseArgs:p}),direction:h,isPagination:m})]}):null},MW=e=>e.isDark?{background:e.color,borderColor:Rm.DARK_MODE_BORDER,color:Rm.DARK_MODE_TEXT,disabledColor:Rm.DARK_MODE_DISABLED,iconColor:Rm.DARK_MODE_TEXT}:{background:e.color,borderColor:Rm.BORDER_MEDIUM,color:Rm.TEXT,disabledColor:Rm.DISABLED},TW=_c(Pd,{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}`})),qW=_c(Dh,{shouldForwardProp:e=>"footerStyle"!==e})(({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}})),OW=_c(zd,{shouldForwardProp:e=>"disabledCondition"!==e&&"footerStyle"!==e})(({disabledCondition:e,footerStyle:t,theme:r})=>({color:e?t.disabledColor:t.color,cursor:e?"default":"pointer",marginLeft:r.spacing(1)})),LW=_c(Wu)(({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)})),NW=({children:e,footerContainer:t,interactions:r,theme:n,paginationNeeded:o=!0})=>{const i=A(()=>MW(n.background),[n]);if(!r.active)return null;const a=o?nr.jsx(TW,{footerStyle:i,children:e}):null;return t?B.createPortal(e,t):a},jW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})})),_W=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})})),zW=P({}),FW=()=>O(zW),$W=({children:e,direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:d,theme:p,interactions:f,rect:h,layout:m,visibilityThreshold:g})=>{const b=(e=>!e.enabled||e.active)(u)?0:-1,v=A(()=>MW(p.background),[p]),y=o?o.getBoundingClientRect().width:h.width,x=Jm({translator:d}),S=A(()=>({direction:t,pageInfo:r,handleChangeRowsPerPage:n,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:s,totalColumnCount:l,totalPages:c,keyboard:u,translator:x,theme:p,interactions:f,rect:h,layout:m,footerStyle:v,tabIndex:b,width:y,visibilityThreshold:g}),[t,r,n,o,i,a,s,l,c,u,x,p,f,h,m,v,b,y,g]);return nr.jsx(zW.Provider,{value:S,children:e})},HW=({disabledCondition:e,pageNumber:t,type:r,footerStyle:n,handleChangePage:o,translator:i,interactions:a,tabIndex:s})=>({footerStyle:n,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":i.get(`NebulaTableUtils.Pagination.${r}`),title:a.passive?i.get(`NebulaTableUtils.Pagination.${r}`):void 0,tabIndex:s,onClick:e?void 0:()=>{o(t)}});let BW=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),VW=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}({});const WW=()=>{const{direction:e,pageInfo:t,width:r,interactions:n,visibilityThreshold:o,footerStyle:i,handleChangePage:a,translator:s,tabIndex:l}=FW(),c=0===t.page,u=HW({type:BW.FirstPage,disabledCondition:c,pageNumber:0,footerStyle:i,handleChangePage:a,translator:s,interactions:n,tabIndex:l});return r<=(o?.firstPage||VW.FirstPage)?null:nr.jsx(OW,{...u,disabled:!n.active,children:"rtl"===e?nr.jsx(_W,{height:Zm}):nr.jsx(jW,{height:Zm})})},UW=(e,t,r=!1)=>{r&&e.key===og.Tab&&!e.shiftKey&&(Tm(e),Mm(e.target,t,!1))},GW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,visibilityThreshold:s,footerStyle:l,handleChangePage:c,translator:u,tabIndex:d}=FW(),p=t.page>=n-1,f=HW({type:BW.LastPage,disabledCondition:p,pageNumber:n-1,footerStyle:l,handleChangePage:c,translator:u,interactions:a,tabIndex:d}),h=r.enabled?e=>{UW(e,r,o)}:void 0;return i<=(s?.lastPage||VW.LastPage)?null:nr.jsx(OW,{...f,onKeyDown:h,disabled:!a.active,children:"rtl"===e?nr.jsx(jW,{height:Zm}):nr.jsx(_W,{height:Zm})})},KW=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})})),YW=()=>{const{direction:e,pageInfo:t,keyboard:r,totalPages:n,isSelectionMode:o,width:i,interactions:a,footerStyle:s,handleChangePage:l,translator:c,tabIndex:u}=FW(),d=t.page>=n-1,p=HW({type:BW.NextPage,disabledCondition:d,pageNumber:t.page+1,footerStyle:s,handleChangePage:l,translator:c,interactions:a,tabIndex:u}),f=!(i>VW.FirstPage&&i>VW.LastPage)&&r.enabled?e=>{UW(e,r,o)}:void 0;return nr.jsx(OW,{...p,onKeyDown:f,disabled:!a.active,children:"rtl"===e?nr.jsx(KW,{height:Zm}):nr.jsx(ZV,{height:Zm})})},XW=()=>{const{direction:e,pageInfo:t,interactions:r,footerStyle:n,handleChangePage:o,translator:i,tabIndex:a}=FW(),s=0===t.page,l=HW({type:BW.PreviousPage,disabledCondition:s,pageNumber:t.page-1,footerStyle:n,handleChangePage:o,translator:i,interactions:r,tabIndex:a});return nr.jsx(OW,{...l,disabled:!r.active,children:"rtl"===e?nr.jsx(ZV,{height:Zm}):nr.jsx(KW,{height:Zm})})},JW=()=>{const{translator:e,width:t,pageInfo:r,totalRowCount:n,visibilityThreshold:o}=FW(),{page:i,rowsPerPage:a}=r;if(t<=(o?.displayedRowsLabel||VW.DisplayedRowsLabel))return null;const s=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${i*a+1} - ${Math.min((i+1)*a,n)}`,n.toString()]);return nr.jsx(LW,{variant:"caption",dir:"ltr",children:s})},ZW=({name:e,value:t,options:r,handleChange:n})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:s,interactions:l}=FW(),c=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),d=`${e}-dropdown`,p=`${d}-label-${c}`,f={tabIndex:s,id:`${d}-${c}`,"data-testid":d,"aria-labelledby":p};return nr.jsxs(nr.Fragment,{children:[nr.jsxs(LW,{variant:"caption",id:p,children:[u,":"]}),nr.jsx(qW,{footerStyle:i,size:"small",native:!0,value:t,onChange:n,inputProps:f,disabled:!l.active,children:r})]})},QW=()=>{const{pageInfo:e,isSelectionMode:t,totalColumnCount:r,width:n,handleChangeRowsPerPage:o,visibilityThreshold:i}=FW();if(!(!!e.rowsPerPageOptions?.length&&!t&&n>(i?.rowsPerPage||VW.RowsPerPage)&&r<=100)||void 0===e.rowsPerPageOptions)return null;const a=nr.jsx(nr.Fragment,{children:e.rowsPerPageOptions.map(e=>nr.jsx("option",{value:e,children:e},e))});return nr.jsx(ZW,{name:"RowsPerPage",value:e.rowsPerPage,options:a,handleChange:e=>{o?.(+e.target.value)}})},eU=1e3,tU="…",rU=({totalPages:e,page:t})=>{const r=Math.min(e,eU),n=r<e&&t>500,o=n?Math.min(500+t,e):r,i=n?Math.max(0,o-eU):0,a=Array.from(Array(r).keys()).map(e=>{const t=e+i;return nr.jsx("option",{value:t,children:t+1},t)});return i>0&&a.unshift(nr.jsx("option",{value:tU,disabled:!0,children:tU},"startMoreOptions")),o<e-1&&a.push(nr.jsx("option",{value:tU,disabled:!0,children:tU},"endMoreOptions")),nr.jsx(nr.Fragment,{children:a})},nU=()=>{const{pageInfo:e,width:t,totalPages:r,handleChangePage:n,visibilityThreshold:o}=FW(),{page:i}=e;if(t<=(o?.selectPage||VW.SelectPage))return null;const a=nr.jsx(rU,{totalPages:r,page:i});return nr.jsx(ZW,{name:"SelectPage",value:i,options:a,handleChange:e=>{n(+e.target.value)}})};var oU=j(e=>nr.jsxs($W,{...e,children:[nr.jsx(QW,{}),nr.jsx(nU,{}),nr.jsx(JW,{}),nr.jsx(WW,{}),nr.jsx(XW,{}),nr.jsx(YW,{}),nr.jsx(GW,{})]}));const iU=e=>nr.jsx(NW,{...e,children:nr.jsx(oU,{...e})}),aU=(e,t,r)=>{const n=r.size,o=n>=t.size;if(n){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===n?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",n.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},sU=(e,t,r)=>{r&&t&&(t.classList.contains("selected")?e({keys:["SNTable.SelectionLabel.SelectedValue"]}):e({keys:["SNTable.SelectionLabel.NotSelectedValue"]}))},lU=e=>e.ctrlKey||e.metaKey,cU=e=>e.shiftKey&&lU(e),uU=e=>[og.Left,og.Right,og.Up,og.Down].includes(e),dU=e=>e.shiftKey&&uU(e.key),pU=e=>(e=>uU(e)||[og.Home,og.End,og.PageUp,og.PageDown].includes(e))(e.key)&&!cU(e),fU=(e,t)=>{const{api:r,rows:n,colIdx:o}=e,{cell:i,announce:a,evt:s}=t;let l=new Map;if(-1===o)r?.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;l=new Map(n)}return l=((e,t,r)=>{const{qElemNumber:n,rowIdx:o}=t;return r.ctrlKey||r.metaKey?(new Map).set(n,o):(e.has(n)?e.delete(n):e.set(n,o),new Map(e))})(l,i,s),aU(a,n,l),l.size?(r?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(l.values()),[i.selectionColIdx]]}),{...e,rows:l,colIdx:i.selectionColIdx}):(r?.cancel(),{...e,rows:l,colIdx:-1})},hU=(e,t)=>{const{api:r,rows:n,colIdx:o,pageRows:i,firstCell:a}=e,{cell:s,announce:l,evt:c}=t;if(!(a||"key"in c&&dU(c)))return e;-1===o&&r?.begin(["/qHyperCubeDef"]);const u=((e,t,r,n,o)=>{if(!r.isSelectable)return t;const i=new Map(t);if("key"in n&&dU(n)){i.set(r.qElemNumber,r.rowIdx);const t=n.key===og.Down?1:-1,o=e[r.pageRowIdx+t][r.pageColIdx];return o.isSelectable&&i.set(o.qElemNumber,r.rowIdx+t),i}if(!o)return t;const a=Math.min(o.pageRowIdx,r.pageRowIdx),s=Math.max(o.pageRowIdx,r.pageRowIdx);for(let t=a;t<=s;t++){const r=e[t][o.pageColIdx];r.isSelectable&&i.set(r.qElemNumber,r.rowIdx)}return i})(i,n,s,c,a);return aU(l,n,u),{...e,rows:u,colIdx:a?.selectionColIdx??s.selectionColIdx,isSelectMultiValues:!0}},mU=e=>{const{api:t,rows:r,colIdx:n,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&t?.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Array.from(r.values()),[n]]}),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},gU=(e,t)=>{switch(t.type){case G$.Select:return fU(e,t.payload);case G$.SelectMouseDown:return((e,{cell:t,mouseupOutsideCallback:r})=>!r||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",r),{...e,firstCell:t,mouseupOutsideCallback:r}))(e,t.payload);case G$.SelectMouseUp:return((e,t)=>mU(e.isSelectMultiValues||e.firstCell!==t.cell?e:fU(e,t)))(e,t.payload);case G$.SelectMultiAdd:return hU(e,t.payload);case G$.SelectMultiEnd:return mU(e);case G$.Reset:return e.api?.isModal()?e:{...e,rows:new Map,colIdx:-1};case G$.Clear:return e.rows.size?{...e,rows:new Map}:e;case G$.UpdatePageRows:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},bU=Kg(e=>{const t=e(Nb);return function(e,t){return Kg(e,function(e,r,n){r(this,t(e(this),n))})}({pageRows:e(nV).rows,rows:new Map,colIdx:-1,api:t,isSelectMultiValues:!1},gU)}),vU=Kg(e=>e(e(bU)),(e,t,r)=>{t(e(bU),r)}),yU=hI(e=>Kg(t=>{const{colIdx:r,rows:n,api:o}=t(vU);return"object"==typeof e&&o?.isModal()?r!==e.selectionColIdx?U$.Disabled:n.has(e.qElemNumber)?U$.Selected:U$.Possible:U$.Inactive}),(e,t)=>"object"!=typeof e||"object"!=typeof t?e===t:e.qElemNumber===t.qElemNumber&&e.selectionColIdx===t.selectionColIdx),xU=Kg(e=>{const t=e(qV),r=e(ov).width,n=e(MH);return t>0&&t+n<r}),SU=()=>{const[e,t]=I(!1);return dj({onDragStart:()=>{t(!0)},onDragEnd:()=>{t(!1)}}),e?nr.jsx("div",{style:{width:"100%",height:"100%",position:"absolute",top:0,left:0,zIndex:100}}):null},wU=(e,{atTop:t,atBottom:r},n)=>({borderLeftColor:e.grid.border,borderRightColor:e.grid.border,borderTopColor:!n&&r?e.grid.divider:e.grid.border,borderBottomColor:n&&!t||!n&&t?e.grid.divider:e.grid.border}),CU=Kg(e=>{const t=e(kb),r=e(ev);if(void 0!==r)return async(e,n)=>{const{isDim:o,colIdx:i,qReverseSort:a,sortDirection:s,isActivelySorted:l}=e,c=o?i:i-t,u=await r.getEffectiveProperties(),d=u.qHyperCubeDef.qInterColumnSortOrder,p=[],f=n!==s||l;if(!o){const e=u.qHyperCubeDef.qMeasures.at(c)?.qSortBy;void 0===e?.qSortByNumeric&&p.push({qPath:`/qHyperCubeDef/qMeasures/${c}/qSortBy`,qOp:"Replace",qValue:JSON.stringify({...e,qSortByNumeric:"A"===s?1:-1})})}l||(d.splice(d.indexOf(i),1),d.unshift(i),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),f&&p.push({qPath:`/qHyperCubeDef/${o?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!a).toString()}),r.applyPatches(p,!0)}}),EU=e=>{e&&(e.focus(),(e=>{e?.setAttribute("tabIndex","0")})(e))},RU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n})=>(e>r?e--:t>r&&(t--,e=n),[t,e]),AU=({colIdx:e,rowIdx:t,firstColIdx:r,lastColIdx:n,lastRowIdx:o})=>(e<n?e++:t<o&&(t++,e=r),[t,e]),IU=e=>e.atTop?2:1,kU=(e,t)=>({top:e?IU(t):0,bottom:e&&t.atBottom?1:0}),PU=(e,t)=>e.getElementsByClassName("sn-table-row")[t[0]]?.getElementsByClassName("sn-table-cell")[t[1]],DU=e=>e?.setAttribute("tabIndex","0"),MU=e=>e?.setAttribute("tabIndex","-1"),TU=e=>{e.querySelectorAll("td[tabindex='0'], th[tabindex='0']").forEach(MU)},qU=e=>{e?.focus(),DU(e)},OU=e=>{setTimeout(()=>{const t=e.current?.closest(".sn-table-cell")?.querySelector(`.${ig}`);qU(t)},0)},LU=({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,allowedRows:o,direction:i})=>{TU(t);const a=((e,t,r,n,o={top:0,bottom:0})=>{const i=o.top>0,a=o.top,s=t.getElementsByClassName("sn-table-row").length-1-o.bottom,l=t.getElementsByClassName("sn-table-head-cell").length-1;let[c,u]=r;switch(e.key){case og.Down:c<s&&c++;break;case og.Up:c>a&&c--;break;case og.Right:if(i)break;[c,u]="rtl"===n?RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0}):AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0});break;case og.Left:if(i)break;[c,u]="rtl"===n?AU({colIdx:u,rowIdx:c,lastColIdx:l,lastRowIdx:s,firstColIdx:0}):RU({colIdx:u,rowIdx:c,lastColIdx:l,firstColIdx:0});break;case og.Home:(lU(e)||i)&&(c=a),i||(u=0);break;case og.End:(lU(e)||i)&&(c=s),i||(u=l);break;case og.PageDown:c=Math.min(s,c+10);break;case og.PageUp:c=Math.max(a,c-10)}return[c,u]})(e,t,r,i,o),s=PU(t,a);return qU(s),((e,t)=>{const r=t.getElementsByClassName("sn-table-container")[0];if(!r?.scrollTo)return;const[n,o]=e;if(n<2)r.scrollTo({top:0,behavior:"auto"});else{const e=t.getElementsByClassName("sn-table-head-cell")[0],i=t.getElementsByClassName("sn-table-row")[n].getElementsByClassName("sn-table-cell")[o];if(!i||!e)return;if(i.offsetTop-e.offsetHeight<r.scrollTop){const t=r.scrollTop-i.offsetHeight-e.offsetHeight;r.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})(a,t),n(a),{nextCell:s,nextCellCoord:a}},NU=(e,t,r,n)=>{TU(t),r(e),n.enabled&&!n.active?n.focus?.():qU(PU(t,e))},jU=(e,t,r)=>{const n=e.currentTarget;if(!n)return;const o=e.relatedTarget??document.activeElement;if(!!o?.closest(`.${tg}`))return;const i=!!o&&n.contains(o);!r.enabled||t.current||i||(e=>{const t=e.querySelector(`.${Y$.First}`),r=e.querySelector(`.${Y$.Second}`);t&&r&&(t.innerHTML="",r.innerHTML="")})(n),((e,t,r)=>{const n=e.currentTarget;if(!r.enabled||t.current||!n)return;const o=e.relatedTarget??document.activeElement;o&&n.contains(o)||r.blur?.(!1)})(e,t,r)},_U=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10M3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0zM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0"})})),zU=_c(Kh,{shouldForwardProp:e=>"headerStyle"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"color"!==e})(({headerStyle:e,interactions:t,hoverBackground:r,background:n,color:o})=>({...fH,...e,cursor:t.active?"pointer":"default",background:n,color:o,verticalAlign:"bottom",boxSizing:"border-box","&&:focus-visible, &&:hover:not(:has(button:hover))":{background:t.active?r:n}})),FU=_c("span",{shouldForwardProp:e=>"align"!==e&&"dir"!==e})(({align:e,dir:t})=>({minWidth:uH,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e||"rtl"===t&&"center"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}})),$U=parseInt(uH,10)/2,HU=_c("div")({position:"absolute",bottom:-$U,left:`calc(50% - ${$U}px)`}),BU=_c(um)({position:"sticky",top:0,zIndex:1}),VU={lineHeight:"calc(4/3)",fontSize:"inherit",textOverflow:"ellipsis",overflow:"hidden"},WU=_c(Pd)({height:"100%","& .sn-table-cell:focus-visible":{outline:"none",boxShadow:"0 0 0 2px #177fe6 inset, 0 0 0 3px #fff inset"},"& .sn-table-cell:focus:not(:focus-visible)":{outline:"none"}}),UU=_c("span",{shouldForwardProp:e=>"lineClamp"!==e&&"isHeadCell"!==e&&"isPagination"!==e&&"isNumeric"!==e&&"isDual"!==e})(({lineClamp:e,isHeadCell:t=!1,isPagination:r=!1,isNumeric:n=!1,isDual:o=!1})=>n&&!o||1===e&&!t?{...VU,whiteSpace:"nowrap",display:r?"block":void 0}:{...VU,wordBreak:"break-word",display:"-webkit-box",WebkitLineClamp:e,WebkitBoxOrient:"vertical",whiteSpace:"pre-line"}),GU=_c("div")({display:"grid",gridAutoFlow:"column",width:"100%",gridAutoColumns:"1fr auto",gap:"4px"}),KU="cell-text",YU=({children:e,forwardRef:t,isNumeric:r=!1,isPagination:n=!1,isHeadCell:o=!1,isDual:i=!1,lineClamp:a})=>{const s=ab(xV);return o?nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",lineClamp:s.grid.headerLineClamp,isPagination:n,isHeadCell:!0,style:{direction:r?"ltr":void 0},children:e}):nr.jsx(UU,{"data-testid":KU,ref:t,className:"sn-table-cell-text",isDual:i,isNumeric:r,lineClamp:a??s.grid.contentLineClamp,isPagination:n,style:{direction:r?"ltr":void 0},children:e})},XU=e=>{const{column:t,isInteractionEnabled:r,open:n,setOpen:o,isPagination:i,forwardRef:a}=e,s=ab(Db),l=ab(CU),c=ab(Ub),u=ab(_b),d=ab(db),p=ab(cv),f=ab(cb),h=ab(DV)[t.pageColIdx],m=ab(Qb),g=k(null),b=k(null),v=(({column:e,columnWidth:t})=>{const r=ab(xV),{measureText:n}=Bm({fontSize:r.header.fontSize,fontFamily:r.header.fontFamily,fontWeight:dH});let o=!1,i=!1,a=!1;const s=e.isLocked,l=e.isActivelySorted,c=t-25,u=s?20:0,d=l?20:0;let p=n(e.label);return s&&p+u<=c&&(a=!0,p+=u,l&&p+d<=c&&(i=!0,p+=d)),!s&&l&&p+d<=c&&(i=!0,p+=d),p+24<=c&&(o=!0),{shouldShowMenuIcon:o,shouldShowSortIcon:i,shouldShowLockIcon:a}})({column:t,columnWidth:h}),{StartIcon:y,EndIcon:x,LockIcon:S}=(({sortDirection:e,headTextAlign:t},{shouldShowSortIcon:r,shouldShowLockIcon:n},o)=>{const i="A"===e?nr.jsx(hW,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(bW,{height:uH,"data-testid":"head-cell-sort-descending-icon"}),a=r?nr.jsx(FU,{align:t,dir:o,children:i}):void 0,s=n?nr.jsx(AH,{rightAligned:"right"===t,className:"sn-table-lock-icon",children:nr.jsx(_U,{height:uH,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===t?{StartIcon:a,LockIcon:s}:{EndIcon:a,LockIcon:s}})(t,v,c);return nr.jsxs(RH,{shouldShowMenuIcon:v.shouldShowMenuIcon,shouldShowLockIcon:v.shouldShowLockIcon,alignment:vH(t,i,c),children:[S,nr.jsxs(EH,{className:"sn-table-head-label",textAlign:t.headTextAlign,direction:c,isPagination:i,children:[y,nr.jsx(YU,{forwardRef:a,isPagination:i,isHeadCell:!0,children:t.label}),x]}),r?nr.jsxs(nr.Fragment,{children:[nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:g,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:n,setOpen:o,interactions:u,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),l?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:d,listboxRef:b},selectionRelatedArgs:{app:f,qStateName:s},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:v.shouldShowMenuIcon,model:m,direction:c,isPagination:i,isAccessibleHeader:!0}),nr.jsx(CH,{ref:b,direction:c,isPagination:i}),nr.jsx(CH,{ref:g,direction:c})]}):null]})},JU=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M6 2h10V1H6zm5 5h5V6h-5zm5 5h-5v-1h5zM5 10h1v2.663a3.5 3.5 0 1 0-2.922.036l-.406.914A4.501 4.501 0 1 1 7.329 13H9v1H5z"})})),ZU=(e,t)=>e.isCyclic&&t,QU=({column:e})=>{const t=ab(xV),r=ab(Ub),n=ab(Qb),o=S.useRef(null),[i,a]=S.useState(!1),s=$V({model:n,headerData:{...e,dimensionInfoIndex:e.colIdx}});return nr.jsxs(nr.Fragment,{children:[nr.jsx(kH,{hoverBackground:e.headerColor?.headerMenuHoverBackground??t.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??t.headerMenuActiveBackground,isActive:i,tabIndex:-1,onClick:e=>{e.stopPropagation(),a(!0)},children:nr.jsx(JU,{ref:o,height:16,"data-testid":"head-cell-cyclic-icon"})}),nr.jsx(lW,{open:i,onClose:()=>{a(!1)},menuGroups:[[{items:e.groupDimensionLabels.map((t,r)=>({id:r+1,itemTitle:t,onClick:e=>{e.stopPropagation(),a(!1),s?.(r)},enabled:!0,icon:Iz,isActive:e.groupDimensionPos===r}))}]],anchorEl:o.current,direction:r,isPagination:!1})]})},eG=e=>e.isLocked,tG=({column:e})=>{const t=ab(cb),r=ab(Db),n=ab(Cb),o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,onClick:o=>{o.stopPropagation(),(async(e,t,r,n={warn:()=>{},error:()=>{}})=>{const o=uW(t??"$",r);let i;try{const t=await(e?.createSessionObject(o));i=t?.id,await(t?.unlock("/qListObjectDef"))}catch(e){n.error({msg:"Failed to unlock field from table header",payload:e})}finally{i&&(await(e?.destroySessionObject(i))||n.error({msg:"Failed to destroy session object when unlocking field from table header"}))}})(t,r,e,n)},children:nr.jsx(_U,{height:16,"data-testid":"head-cell-lock-icon"})})},rG=({column:e,menuIconRef:t,open:r,setOpen:n})=>{const o=ab(xV);return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??o.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??o.headerMenuActiveBackground,isActive:r,order:e.isDim?void 0:-1,onClick:e=>{e.stopPropagation(),n(e=>!e)},ref:t,children:nr.jsx(FV,{height:16})})},nG=({anchorRef:e,column:t,isPagination:r,listboxRef:n,open:o,setOpen:i})=>{const a=ab(cb),s=ab(Ub),l=ab(db),c=ab(_b),u=ab(Qb),d=ab(Db),p=ab(cv),f=ab(CU);return nr.jsx(DW,{headerData:{...t,dimensionInfoIndex:t.colIdx},translator:p,anchorRef:e,menuAvailabilityFlags:{[IW.Sorting]:!0,[IW.Searching]:!0,[IW.Selections]:!0,[IW.AdjusterHeaderSize]:!0},open:o,setOpen:i,interactions:c,sortRelatedArgs:{sortFromMenu:(e,r)=>(e.stopPropagation(),f?.(t,r)??Promise.resolve())},searchRelatedArgs:{embed:l,listboxRef:n},selectionRelatedArgs:{app:a,qStateName:d},adjustHeaderSizeRelatedArgs:{focusColumnAdjuster:OU},shouldShowMenuIcon:!1,model:u,direction:s,isPagination:r})},oG=Kg();oG.onMount=e=>{const t=new Map,r=new ResizeObserver(e=>{for(const r of e){const e=t.get(r.target);e&&e.current(r)}});return e({callbacks:t,observer:r}),()=>{t.clear(),r.disconnect()}};const iG=({ref:e,callback:t})=>{const r=ab(oG),n=k(t);n.current=t,L(()=>{const t=e.current;return void 0===r?()=>{}:(t&&(r.callbacks.set(t,n),r.observer.observe(t)),()=>{t&&(r.callbacks.delete(t),r.observer.unobserve(t))})},[e,n,r])},aG=_c(Pd)({display:"flex",alignItems:"flex-end",justifyContent:"center",width:"100%",boxSizing:"border-box"}),sG=({children:e})=>{const t=S.useRef(null),[r,n]=I(()=>new Set(e.filter(({props:e})=>void 0!==e.prio&&e.children).map(({key:e})=>e))),o=A(()=>Array.from(e).sort((e,t)=>(e.props.prio??-1/0)-(t.props.prio??-1/0)),[e]),i=q(e=>{const t=new Set,r=e.contentBoxSize.at(0)?.inlineSize??0;let i=0;o.forEach(e=>{if(e.props.ignore||!e.props.children)return;const n=e.props.minWidth+1;void 0===e.props.prio||i+n<=r?i+=n:t.add(e.key)}),n(e=>e.size===t.size&&[...e].every(e=>t.has(e))?e:t)},[o]);return iG({ref:t,callback:i}),nr.jsx(aG,{ref:t,"data-testid":"responsive-container",children:e.filter(e=>!r.has(e.key))})},lG=({children:e})=>e,cG=(e,t)=>!e.isLocked&&e.isDim&&t,uG=({column:e,open:t,setOpen:r})=>{const n=ab(xV),o=ab(Db),i=ab(Ub),a=ab(db);ab(cb);const s=S.useRef(null),l=q(()=>{r(!1)},[r]),c=cW({qLibraryId:e.qLibraryId,fieldId:e.fieldId,searchRelatedArgs:{embed:a,listboxRef:s},selectionRelatedArgs:{qStateName:o},direction:i,onPopoverClose:l});return nr.jsx(kH,{tabIndex:-1,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,activeBackground:e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground,isActive:t,onClick:e=>{e.stopPropagation(),c(),r(!0)},children:nr.jsx(SW,{ref:s,height:16,"data-testid":"head-cell-search-icon"})})},dG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M2.4 4h11.2a.2.2 0 0 1 .16.32l-5.6 7.467a.2.2 0 0 1-.32 0L2.24 4.32A.2.2 0 0 1 2.4 4"})})),pG=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13.6 11H2.4a.2.2 0 0 1-.16-.32l5.6-7.467a.2.2 0 0 1 .32 0l5.6 7.467a.2.2 0 0 1-.16.32"})})),fG=({column:e})=>{const{sortDirection:t,isActivelySorted:r}=e,n="A"===t?nr.jsx(pG,{height:uH,"data-testid":"head-cell-sort-ascending-icon"}):nr.jsx(dG,{height:uH,"data-testid":"head-cell-sort-descending-icon"});return r?nr.jsx(HU,{children:n}):void 0},hG=0,mG=1,gG=2,bG=3,vG=e=>{const{column:t,open:r,setOpen:n,isPagination:o,forwardRef:i,columnWidth:a,isInteractionEnabled:s}=e,l=ab(xV),c=ab(Ub),{measureText:u}=Bm(l.header),[d,p]=I(!1),f=k(null),h=k(null),m=k(null),g="number"==typeof a&&a>ag.PixelsMin+18;return nr.jsxs(nr.Fragment,{children:[nr.jsxs(sG,{children:[nr.jsx(lG,{prio:gG,minWidth:wH,children:eG(t)?nr.jsx(tG,{column:t}):null},"Lock"),nr.jsx(lG,{prio:mG,minWidth:wH,children:ZU(t,s)?nr.jsx(QU,{column:t}):null},"Cyclic"),nr.jsx(lG,{ignore:!0,children:nr.jsx(fG,{column:t})},"Sort"),nr.jsx(lG,{minWidth:u(t.label)+8,children:nr.jsx(IH,{justifyContent:t.headTextAlign,children:nr.jsx(YU,{forwardRef:i,isPagination:o,isHeadCell:!0,children:t.label})})},"Text"),nr.jsx(lG,{prio:g?void 0:hG,minWidth:wH,children:d||cG(t,s)?nr.jsx(uG,{open:d,setOpen:p,column:t}):null},"Search"),nr.jsx(lG,{prio:bG,minWidth:wH,children:s?nr.jsx(rG,{menuIconRef:m,column:t,open:r,setOpen:n}):null},"Menu")]}),s?nr.jsxs(nr.Fragment,{children:[nr.jsx(CH,{ref:h,direction:c,isPagination:o}),nr.jsx(CH,{ref:f,direction:c}),nr.jsx(nG,{anchorRef:m.current?m:f,column:t,isPagination:o,listboxRef:h,open:r,setOpen:n})]}):null]})},yG=_c("div",{shouldForwardProp:e=>"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({background:e,applicableStyle:t,color:r})=>({...t,background:e,color:r})),xG=()=>{},SG=({column:e,isPagination:t})=>{const r=ab(xV),n=ab(Ub),o=ab(xU),i=ab(oV),a=!1,s=ab(qb)?XU:vG;return nr.jsx(yG,{className:"sn-table-cell",applicableStyle:{...r.header,...wU(r,i,!0)},style:{cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(n,a,o),borderLeftWidth:SH(n,a,o),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:e.headTextAlign,boxSizing:"border-box",flexDirection:"right"===e.headTextAlign?"row-reverse":"row",userSelect:"none",width:"100%"},background:e.headerColor?.background??r.header.background,color:e.headerColor?.color??r.header.color,children:nr.jsx(s,{column:e,isInteractionEnabled:!1,isPagination:t,open:!1,setOpen:xG})})},wG=({isPagination:e})=>{const t=ab(iV),[r,n]=I();dj({onDragStart:e=>{const t=e.operation.source?.id;n(t)},onDragEnd:()=>{}});const o=r?t.find(e=>e.id===r):void 0;return o?nr.jsx(HN,{children:nr.jsx("div",{style:{background:"white",height:"100%",display:"flex",position:"relative"},children:nr.jsx(SG,{column:o,isPagination:e})})}):null},CG=oA(Kg(async e=>{e(Rb);const t=e(ev);return t?.getEffectiveProperties()}),e=>e),EG=Kg(e=>e(CG)?.qHyperCubeDef),RG=[YL.configure({activationConstraints:[new WL.Distance({value:5})],preventActivation:e=>{const t=e.target;return t instanceof HTMLElement&&t.classList.contains("nebula-table-utils-column-adjuster")}})],AG=gN.plugins.filter(e=>e!==CO),IG=(e,t,r)=>{const n=JSON.stringify(t),o=JSON.stringify(r);if(n!==o)return{qPath:e,qOp:"Replace",qValue:o}},kG=(e,t,r,n,o)=>{if(!e||!t||n===o)return;const i=(({qDimensions:e,qMeasures:t,qInterColumnSortOrder:r,visibleColumnIds:n,sourceId:o,targetId:i})=>{const a=Qz({qDimensions:e,qMeasures:t}),s=[...e,...t],l=n.findIndex(e=>e===o),c=n.findIndex(e=>e===i);if(l<0||c<0||l===c)return;const u=((e,t,r)=>{const n=[...e],[o]=n.splice(t,1);return n.splice(r,0,o),n})(n,l,c),d=new Map(u.map((e,t)=>[e,t])),p=a.toSorted((e,t)=>{const r=d.get(e.id),n=d.get(t.id);return void 0===r||void 0===n?0:r-n}),f=p.filter(e=>e.isDimension).map(e=>e.def),h=p.filter(e=>!e.isDimension).map(e=>e.def),m=[...f,...h],g=new Map(m.map((e,t)=>[e.qDef.cId,t]));return{qDimensions:f,qMeasures:h,qInterColumnSortOrder:eF({previousColumns:s,nextColumns:m,qInterColumnSortOrder:r}),qColumnOrder:u.map(e=>g.get(e)).filter(e=>void 0!==e)}})({qDimensions:t.qDimensions,qMeasures:t.qMeasures,qInterColumnSortOrder:t.qInterColumnSortOrder,visibleColumnIds:r.map(e=>e.id),sourceId:n,targetId:o});if(!i)return;const a=[IG("/qHyperCubeDef/qDimensions",t.qDimensions,i.qDimensions),IG("/qHyperCubeDef/qMeasures",t.qMeasures,i.qMeasures),IG("/qHyperCubeDef/qInterColumnSortOrder",t.qInterColumnSortOrder,i.qInterColumnSortOrder),IG("/qHyperCubeDef/qColumnOrder",t.qColumnOrder,i.qColumnOrder)].filter(e=>void 0!==e);0!==a.length&&e.applyPatches(a,!0)},PG=({children:e})=>{const t=ab(ev),r=ab(EG),n=ab(iV);return nr.jsx(zN,{onDragOver:e=>{const o=e.operation.source?.id,i=e.operation.target?.id;void 0!==i&&o!==i&&kG(t,r,n,o,i)},sensors:RG,plugins:AG,children:e})};function DG(e,t){const r=k(!1);M(()=>{r.current?e():r.current=!0},t)}const MG=(e,t)=>{const r=ab(Zb);M(()=>{const n=e.current;if(!n)return;const o=e=>{jU(e,t,r)};return n.addEventListener("focusout",o),()=>{n.removeEventListener("focusout",o)}},[e,t,r])},TG=Kg(X$),qG=hI(e=>Kg(t=>{const[r,n]=t(TG);return 0===r&&n===e})),OG=()=>{const e=ab(ub);M(()=>{e.notifyIsDoneRendering()})};var LG={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.ColumnOptions",locale:{"de-DE":"Spaltenoptionen","en-US":"Column options","es-ES":"Opciones de columna","fr-FR":"Options de colonne","it-IT":"Opzioni colonna","ja-JP":"列オプション","ko-KR":"열 옵션","nl-NL":"Kolomopties","pl-PL":"Opcje kolumny","pt-BR":"Opções da coluna","ru-RU":"Параметры столбцов","sv-SE":"Alternativ för kolumn","tr-TR":"Sütun seçenekleri","zh-CN":"列选项","zh-TW":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um zwischen den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerelementen zu wechseln. Drücken Sie die Leertaste in den Kopfzellen, um das Spaltenmenü zu öffnen, und drücken Sie die Leertaste in den Körperzellen, um eine Auswahl zu treffen. Duch die Auswahl wird der Seiteninhalt aktualisiert. Die vollständige Liste der Navigationssteuerungen finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate between table cells and tab to move to pagination controls. Press space on header cells to open the column menu, press space on body cells to make selections. Selections will cause content on the page to be updated. The full list of navigation controls can be found in the documentation.","es-ES":"Utilice las teclas de flecha para desplazarse entre las celdas de la tabla y la pestaña a fin de pasar a los controles de paginación. Pulse la barra espaciadora en las celdas del encabezado para abrir el menú de columnas; pulse la barra espaciadora en las celdas del cuerpo para realizar selecciones. Las selecciones harán que se actualice el contenido de la página. Encontrará la lista completa de controles de navegación en la documentación.","fr-FR":"Utilisez les touches fléchées pour naviguer parmi les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Appuyez sur la touche Espace dans les cellules d'en-tête pour ouvrir le menu de la colonne. Appuyez sur Espace dans les cellules de corps pour effectuer une sélection. Les sélections actualiseront le contenu de la page. Vous pouvez consulter la liste complète des commandes de navigation dans la documentation.","it-IT":"Utilizzare i tasti freccia per navigare tra le celle della tabella e il tasto TAB per passare ai controlli di paginazione. Premere lo spazio nelle celle dell'intestazione per aprire il menu della colonna; premere lo spazio nelle celle del corpo per effettuare selezioni. Le selezioni determineranno l'aggiornamento del contenuto della pagina. È possibile trovare l'elenco completo dei controlli di navigazione nella documentazione.","ja-JP":"矢印キーで表のセル間を移動し、タブ キーでページネーション コントロールに移動します。ヘッダー セルでスペースを押すと列メニューが開き、ボディ セルでスペースを押すと選択ができます。選択によって、ページのコンテンツが更新されます。ナビゲーション コントロールの全リストは、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 표 셀 사이를 탐색하고, 탭을 사용하여 페이지 번호 컨트롤로 이동하십시오. 헤더 셀에서 스페이스바를 눌러 열 메뉴를 열고, 본문 셀에서 스페이스바를 눌러 선택하십시오. 선택하면 페이지의 콘텐츠가 업데이트됩니다. 전체 탐색 컨트롤 목록은 설명서에서 확인할 수 있습니다.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren tussen tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Druk op de spatietoets in koptekstcellen om het kolommenu te openen, druk op de spatietoets in hoofdtekstcellen om selecties te maken. Door selecties te maken, wordt de inhoud op de pagina bijgewerkt. De volledige lijst met besturingselementen voor navigatie vindt u in de documentatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się między komórkami tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Naciśnij klawisz spacji na komórkach nagłówka, aby otworzyć menu kolumny i naciśnij go na komórkach treści, aby dokonać wyborów. Wybory będą powodować aktualizację zawartości na stronie. Pełną listę nawigacyjnych elementów sterujących można znaleźć w dokumentacji.","pt-BR":"Use as teclas de seta para navegar entre as células da tabela e a tecla Tab para mover para os controles de paginação. Pressione espaço nas células do cabeçalho para abrir o menu da coluna, pressione espaço nas células do corpo para fazer seleções. As seleções farão com que o conteúdo da página seja atualizado. A lista completa de controles de navegação pode ser encontrada na documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения между ячейками таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Нажмите пробел на ячейках заголовка, чтобы открыть меню столбца; нажмите пробел на ячейках тела, чтобы сделать выборки. Выборки приведут к обновлению содержимого страницы. Полный перечень элементов управления навигацией см. в документации.","sv-SE":"Använd piltangenterna för att navigera mellan tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Tryck på mellanslag på rubrikceller för att öppna kolumnmenyn och tryck på mellanslag på innehållsceller för att göra urval. Med urval kommer innehåll på sidan att uppdateras. Den fullständiga listan med navigeringsreglage.","tr-TR":"Tablo hücreleri arasında gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Sütun menüsünü açmak için başlık hücrelerinde boşluğa basın, seçim yapmak için gövde hücrelerinde boşluğa basın. Seçimler, sayfadaki içeriğin güncellenmesine neden olur. Navigasyon kontrollerinin tam listesi belgede bulunabilir.","zh-CN":"使用箭头键在表格单元格之间导航,使用 tab 键移动到分页控件。按标题单元格上的空间打开列菜单,按正文单元格上的空间进行选择。选择将导致页面上的内容更新。导航控件的完整列表可以在文档中找到。","zh-TW":"使用方向鍵以在表格儲存格之間導覽,並使用 Tab 以前往分頁控制。按下標頭儲存格的空白處可開啟欄功能表,按下正文儲存格的空白處可進行選取。選項將會造成更新頁面上的內容。導覽控制的完整清單可見於文件中。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.AdjustColumnSize",locale:{"de-DE":"Spaltengröße anpassen","en-US":"Adjust column size","es-ES":"Ajustar el tamaño de columna","fr-FR":"Ajuster la taille de colonne","it-IT":"Regola dimensioni colonna","ja-JP":"列サイズを調整","ko-KR":"열 크기 조정","nl-NL":"Kolomgrootte aanpassen","pl-PL":"Dostosuj rozmiar kolumny","pt-BR":"Ajustar tamanho da coluna","ru-RU":"Настроить размер столбца","sv-SE":"Justera kolumnens storlek","tr-TR":"Sütun boyutunu ayarla","zh-CN":"调节列大小","zh-TW":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selections","es-ES":"Borrar selecciones","fr-FR":"Effacer les sélections","it-IT":"Cancella selezioni","ja-JP":"選択をクリア","ko-KR":"선택 지우기","nl-NL":"Selecties wissen","pl-PL":"Wyczyść wybory","pt-BR":"Limpar seleções","ru-RU":"Очистить выбранные","sv-SE":"Radera urval","tr-TR":"Seçimleri temizle","zh-CN":"清除选择项","zh-TW":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.Search",locale:{"de-DE":"Suchen","en-US":"Search","es-ES":"Buscar","fr-FR":"Rechercher","it-IT":"Cerca","ja-JP":"検索","ko-KR":"검색","nl-NL":"Zoeken","pl-PL":"Wyszukaj","pt-BR":"Pesquisar","ru-RU":"Поиск","sv-SE":"Sök","tr-TR":"Ara","zh-CN":"搜索","zh-TW":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutti","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar tudo","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.SelectAlternative",locale:{"de-DE":"Alternative Werte auswählen","en-US":"Select alternative","es-ES":"Seleccionar alternativos","fr-FR":"Sélectionner des valeurs alternatives","it-IT":"Seleziona alternativi","ja-JP":"代替項目を選択","ko-KR":"대안 선택","nl-NL":"Alternatief selecteren","pl-PL":"Wybierz alternatywę","pt-BR":"Selecionar alternativa","ru-RU":"Выбрать альтернативные","sv-SE":"Välj alternativ","tr-TR":"Alternatifi seç","zh-CN":"选择替代项","zh-TW":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.SelectExcluded",locale:{"de-DE":"Ausgeschlossene Werte auswählen","en-US":"Select excluded","es-ES":"Seleccionar excluidos","fr-FR":"Sélectionner les valeurs exclues","it-IT":"Seleziona esclusi","ja-JP":"除外項目を選択","ko-KR":"제외 항목 선택","nl-NL":"Uitgesloten waarden selecteren","pl-PL":"Wybierz wykluczone","pt-BR":"Selecionar excluídos","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.SelectPossible",locale:{"de-DE":"Wählbare Werte auswählen","en-US":"Select possible","es-ES":"Seleccionar posibles","fr-FR":"Sélectionner les valeurs possibles","it-IT":"Seleziona possibili","ja-JP":"絞込項目を選択","ko-KR":"사용 가능 항목 선택","nl-NL":"Mogelijke waarden selecteren","pl-PL":"Wybierz możliwe","pt-BR":"Selecionar possíveis","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olası olanı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.Selections",locale:{"de-DE":"Auswahlen","en-US":"Selections","es-ES":"Selecciones","fr-FR":"Sélections","it-IT":"Selezioni","ja-JP":"選択","ko-KR":"선택","nl-NL":"Selecties","pl-PL":"Wybory","pt-BR":"Seleções","ru-RU":"Выборки","sv-SE":"Urval","tr-TR":"Seçimler","zh-CN":"选择项","zh-TW":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri par ordre croissant","it-IT":"Ordinamento crescente","ja-JP":"昇順でソート","ko-KR":"오름차순으로 정렬","nl-NL":"Oplopend sorteren","pl-PL":"Sortuj rosnąco","pt-BR":"Classificar em ordem crescente","ru-RU":"Сортировка по возрастанию","sv-SE":"Sortera stigande","tr-TR":"Artan sıralama","zh-CN":"升序排序","zh-TW":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri par ordre décroissant","it-IT":"Ordinamento decrescente","ja-JP":"降順でソート","ko-KR":"내림차순으로 정렬","nl-NL":"Aflopend sorteren","pl-PL":"Sortuj malejąco","pt-BR":"Classificar em ordem decrescente","ru-RU":"Сортировка по убыванию","sv-SE":"Sortera fallande","tr-TR":"Azalan sıralama","zh-CN":"降序排序","zh-TW":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.Pagination.DisplayedRowsLabel",locale:{"de-DE":"{0} von {1}","en-US":"{0} of {1}","es-ES":"{0} de {1}","fr-FR":"{0} sur {1}","it-IT":"{0} di {1}","ja-JP":"{0} / {1}","ko-KR":"{1}의 {0}","nl-NL":"{0} van {1}","pl-PL":"{0} z {1}","pt-BR":"{0} de {1}","ru-RU":"{0} из {1}","sv-SE":"{0} av {1}","tr-TR":"{0} / {1}","zh-CN":"{0} / {1}","zh-TW":"{0} / {1}"}},SNTable_Pagination_FirstPage:{id:"SNTable.Pagination.FirstPage",locale:{"de-DE":"Zur ersten Seite","en-US":"Go to the first page","es-ES":"Ir a la primera página","fr-FR":"Accéder à la première page","it-IT":"Vai alla prima pagina","ja-JP":"最初のページに移動","ko-KR":"첫 페이지로 이동","nl-NL":"Ga naar de eerste pagina","pl-PL":"Przejdź do pierwszej strony","pt-BR":"Ir para a primeira página","ru-RU":"Перейти к первой странице","sv-SE":"Gå till första sidan","tr-TR":"İlk sayfaya git","zh-CN":"转到第一页","zh-TW":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.Pagination.LastPage",locale:{"de-DE":"Zur letzten Seite","en-US":"Go to the last page","es-ES":"Ir a la última página","fr-FR":"Accéder à la dernière page","it-IT":"Vai all'ultima pagina","ja-JP":"最後のページに移動","ko-KR":"마지막 페이지로 이동","nl-NL":"Ga naar de laatste pagina","pl-PL":"Przejdź do ostatniej strony","pt-BR":"Ir para a última página","ru-RU":"Перейти к последней странице","sv-SE":"Gå till sista sidan","tr-TR":"Son sayfaya git","zh-CN":"转到最后一页","zh-TW":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.Pagination.NextPage",locale:{"de-DE":"Zur nächsten Seite","en-US":"Go to the next page","es-ES":"Ir a la página siguiente","fr-FR":"Accéder à la page suivante","it-IT":"Vai alla pagina successiva","ja-JP":"次のページに移動","ko-KR":"다음 페이지로 이동","nl-NL":"Ga naar de volgende pagina","pl-PL":"Przejdź do następnej strony","pt-BR":"Ir para a próxima página","ru-RU":"Перейти к следующей странице","sv-SE":"Gå till nästa sida","tr-TR":"Sonraki sayfaya git","zh-CN":"转到下一页","zh-TW":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.Pagination.PreviousPage",locale:{"de-DE":"Zur vorherigen Seite","en-US":"Go to the previous page","es-ES":"Ir a la página anterior","fr-FR":"Accéder à la page précédente","it-IT":"Vai alla pagina precedente","ja-JP":"前のページに移動","ko-KR":"이전 페이지로 이동","nl-NL":"Ga naar de vorige pagina","pl-PL":"Przejdź do poprzedniej strony","pt-BR":"Ir para a página anterior","ru-RU":"Перейти к предыдущей странице","sv-SE":"Gå till föregående sida","tr-TR":"Önceki sayfaya git","zh-CN":"转到前一页","zh-TW":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.Pagination.RowsPerPage",locale:{"de-DE":"Zeilen pro Seite","en-US":"Rows per page","es-ES":"Filas por página","fr-FR":"Lignes par page","it-IT":"Righe per pagina","ja-JP":"ページあたりの行数","ko-KR":"페이지별 행 수","nl-NL":"Rijen per pagina","pl-PL":"Wierszy na stronę","pt-BR":"Linhas por página","ru-RU":"Строк на странице","sv-SE":"Rader per sida","tr-TR":"Sayfa başına satır sayısı","zh-CN":"每页行数","zh-TW":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.Pagination.SelectPage",locale:{"de-DE":"Seite auswählen","en-US":"Select page","es-ES":"Seleccionar página","fr-FR":"Sélectionner une page","it-IT":"Seleziona pagina","ja-JP":"ページを選択","ko-KR":"페이지 선택","nl-NL":"Pagina selecteren","pl-PL":"Wybierz stronę","pt-BR":"Selecionar página","ru-RU":"Выберите страницу","sv-SE":"Välj sida","tr-TR":"Sayfa seç","zh-CN":"选择页面","zh-TW":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};const NG=Kg(e=>{const t=e(cv),r=e(iv),n=e(Cb);let o;return function(e){const t="SNTable.Accessibility.RowsAndColumns";e.get(t)===t&&Object.keys(LG).forEach(t=>{e.add(LG[t])})}(t),({keys:e,politeness:i="polite"})=>{const a=e.map(e=>{if(Array.isArray(e)){const[r,...n]=e;return t.get(r,n)}return t.get(e)}).join(" "),s=r.querySelector(`.${Y$.First}`),l=r.querySelector(`.${Y$.Second}`);if(!s||!l)return void n.error({msg:"could not find aria-live elements, which means accessibility is not working properly"});let c;o===Y$.First?(c=l,o=Y$.Second):(c=s,o=Y$.First),c.innerHTML=c.innerHTML.endsWith(" ")?a:`${a} `,c.setAttribute("aria-live",i)}}),jG=(e,t)=>{const r=ab(NG),n=ab(iv),o=ab(cV),i=ab(lV),a=ab(sV),s=ab(oV),[l,c]=lb(TG),u=ab(Lb),d=ab(Zb);DG(()=>{const t=((e,t,r=!1)=>{const n=[IU(t),e[1]];return r?n:X$})(l,s,u);(({resetCellCoord:e,rootElement:t,shouldRefocus:r,isSelectionMode:n,setFocusedCellCoord:o,keyboard:i,announce:a})=>{if(TU(t),o(e),!(e=>!e.enabled||e.active)(i))return;const s=PU(t,e);r.current?(qU(s),r.current=!1):DU(s),n&&(a({keys:[s?.textContent??""]}),sU(a,s,n))})({resetCellCoord:t,rootElement:n,shouldRefocus:e,setFocusedCellCoord:c,isSelectionMode:u,keyboard:d,announce:r})},[a.length,i,o,t])},_G=e=>{Tm(e),lU(e)&&fg(e.currentTarget)},zG=e=>{pU(e.evt)&&(Tm(e.evt),LU(e))},FG=e=>{const{evt:t,totalsPosition:r,cell:n,isSelectionMode:o}=e;if(!pU(t))return;Tm(t);const i=((e,t)=>[e.pageRowIdx+IU(t),e.pageColIdx])(n,r),a=kU(o,r),{nextCell:s,nextCellCoord:l}=LU({...e,cellCoord:i,allowedRows:a});l[0]!==i[0]&&(({evt:e,isSelectionsEnabled:t,cell:r,selectionDispatch:n,announce:o,isSelectionMode:i,nextCell:a})=>{e.shiftKey&&t&&r.isSelectable?n({type:G$.SelectMultiAdd,payload:{cell:r,evt:e,announce:o}}):sU(o,a,i)})({...e,nextCell:s})},$G=e=>{const{evt:t}=e;cU(t)?(({evt:e,totalRowCount:t,rowsPerPage:r,page:n,updateShouldRefocus:o,handleChangePage:i})=>{Tm(e);const a=Math.ceil(t/r)-1;e.key===og.Right&&n<a?(o(),i(n+1)):e.key===og.Left&&n>0&&(o(),i(n-1))})(e):t.key===og.Esc?(({evt:e,keyboard:t,isSelectionMode:r})=>{t.enabled&&!r&&(Tm(e),t.blur?.(!0))})(e):uU(t.key)&&Tm(t)},HG=e=>{const{evt:t,selectionsAPI:r}=e;if(t.currentTarget.classList.contains(U$.Disabled))return void Tm(t);const n={...e,isSelectionMode:!!r?.isModal()};switch(t.key){case og.Space:(({evt:e,cell:t,isSelectionsEnabled:r,selectionDispatch:n,announce:o})=>{Tm(e),t.isSelectable&&r&&n({type:G$.Select,payload:{cell:t,evt:e,announce:o}})})(n);break;case og.Enter:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{Tm(r),e&&(t?.confirm(),n({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}))})(n);break;case og.Esc:(({isSelectionMode:e,selectionsAPI:t,evt:r,announce:n})=>{e&&(Tm(r),t?.cancel(),n({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]}))})(n);break;case og.C:_G(t);break;case og.Tab:(({evt:e,keyboard:t,isSelectionMode:r,paginationNeeded:n})=>{const o=e.shiftKey||!n;t.enabled&&r&&o&&(Tm(e),Mm(e.currentTarget,t,e.shiftKey))})(n);break;default:FG(n)}},BG=e=>{const t=ab(PH),r=sb(DH),n=sb(MH),o=ab(W$),i=k();iG({ref:e,callback:a=>{const s=()=>{if(e.current){const e=a.borderBoxSize.at(0)?.inlineSize??0,t=a.borderBoxSize.at(0)?.blockSize??0,o=a.contentBoxSize.at(0)?.inlineSize??0,i=t-(a.contentBoxSize.at(0)?.blockSize??0);n(e-o),r(i)}};t?(i.current&&o.off("done-adjusting-column-width",i.current),o.once("done-adjusting-column-width",s),i.current=s):s()}}),M(()=>{const e=o;return()=>{i.current&&e.off("done-adjusting-column-width",i.current)}},[o])},VG=_c("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),WG=_c(Zh,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})(({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.scroll?"auto":"hidden",border:"none"})),UG=_c(Nh,{shouldForwardProp:e=>"borderRight"!==e})(({borderRight:e})=>({tableLayout:"fixed",width:"min-content",borderRight:e})),GG=()=>nr.jsxs(nr.Fragment,{children:[nr.jsx(VG,{className:Y$.First,"data-testid":Y$.First,"aria-live":"polite","aria-atomic":"true"}),nr.jsx(VG,{className:Y$.Second,"data-testid":Y$.Second,"aria-live":"polite","aria-atomic":"true"})]}),KG=e=>{const t=k(new Map),r=k(null);M(()=>{r.current=e(t.current),t.current.forEach((e,t)=>{r.current?.observe(t)});const n=t.current,o=r.current;return()=>{o.disconnect(),n.clear()}},[e,r,t]);const n=q((e,n)=>{t.current.set(e,n),r.current?.observe(e)},[t,r]),o=q(e=>{t.current.delete(e),r.current?.unobserve(e)},[r,t]);return A(()=>({addTask:n,removeTask:o}),[n,o])},YG=e=>new ResizeObserver(t=>{t.forEach(t=>{const r=e.get(t.target);r?.(t)})}),XG=()=>KG(YG),JG=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(Nb),n=ab(Zb),o=sb(vU);M(()=>{const i=()=>{o({type:G$.Reset})},a=()=>{o({type:G$.Clear})},s=()=>{t.current?.contains(document.activeElement)?e():n.enabled&&n.blur?.(!0),i()};return r?.on("deactivated",i),r?.on("canceled",i),r?.on("confirmed",s),r?.on("cleared",a),()=>{r?.removeListener("deactivated",i),r?.removeListener("canceled",i),r?.removeListener("confirmed",s),r?.removeListener("cleared",a)}},[r,n,o,e,t])},ZG=e=>{e.stopPropagation()},QG=({href:e,text:t,interactions:r,color:n})=>({href:e,title:t,rel:"noreferrer",target:"_blank",underline:"hover",onClick:ZG,color:Rm.LINK,style:{pointerEvents:r.active?"auto":"none",color:n??void 0,opacity:r.active&&r.passive||n?void 0:.4}}),eK=({href:e,text:t,interactions:r,color:n})=>nr.jsx(Yp,{...QG({href:e,text:t,interactions:r,color:n}),children:t}),tK=window.requestIdleCallback??(e=>setTimeout(()=>{e({})},0)),rK=window.cancelIdleCallback??(e=>{clearTimeout(e)}),nK="qDimensionInfo/0",oK="qMeasureInfo/0",iK="x",aK="y",sK=e=>({key:"bars",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK}}}},settings:{major:{scale:iK},minor:{scale:aK},box:{maxWidthPx:8,fill:{fn:e}}}}),lK=e=>({key:"p",type:"point",data:{extract:{field:nK,props:{y:{field:oK}}}},settings:{x:{scale:iK},y:{scale:aK},shape:"circle",size:1,opacity:1,sizeLimits:{minPx:4,maxPx:4},fill:{fn:e}},preferredSize:{edgeBleed:{left:2,right:2,top:2,bottom:2}}}),cK=({qNum:e})=>void 0===e?0:Math.sign(e),uK=(e,t)=>{const{primary:r,nil:n,others:o}=e.getDataColorSpecials(),i=Pm(e,t?.negative,r),a=Pm(e,t?.positive,r);return{key:"pos-neg",type:"box",data:{extract:{field:nK,props:{start:0,end:{field:oK,value:cK}}}},settings:{major:{scale:iK},minor:{scale:aK},box:{maxWidthPx:8,fill:{fn:e=>-2===e.datum.value?n:-3===e.datum.value?o:0===e.datum.end.value?"#DDDDDD":Math.sign(e.datum.end.value)<0?i:a}}}}},dK=(e,{type:t,showDots:r,colors:n,colorMin:o,colorMax:i})=>{const a=((e,t,r,n)=>{const{primary:o,nil:i,others:a}=e.getDataColorSpecials(),s=Pm(e,t?.main,o),l=Pm(e,t?.max,s),c=Pm(e,t?.min,s),u=Pm(e,t?.first,s),d=Pm(e,t?.last,s);return e=>{const t=aK in e.datum?aK:"end";return-2===e.datum.value?i:-3===e.datum.value?a:e.datum[t].value>=n?l:e.datum[t].value<=r?c:e.data.items.at(0)===e.datum?u:e.data.items.at(-1)===e.datum?d:s}})(e,n,o,i);switch(t){case"bars":return[sK(a)];case"dots":return[lK(a)];case"sparkline":{const t=(e=>({key:"lines",type:"line",data:{extract:{field:nK,props:{v:{field:oK}}}},settings:{coordinates:{major:{scale:iK},minor:{scale:aK,ref:"v"}},layers:{line:{strokeWidth:1,stroke:e}}}}))(Pm(e,n?.main,e.getDataColorSpecials().primary));return r?[t,lK(a)]:[t]}case"posNeg":return[uK(e,n)];default:return[]}},pK=e=>({qDimensionInfo:[{qFallbackTitle:"",qCardinal:1}],qMeasureInfo:[{qFallbackTitle:""}],qDataPages:[{qArea:{qTop:0,qLeft:0,qHeight:e.length,qWidth:2},qMatrix:e}],qEffectiveInterColumnSortOrder:[0,1],qSize:{qcx:2,qcy:e.length},qMode:"S"}),fK=(e,t,r,n)=>({y:{data:{field:oK},invert:!0,min:"posNeg"===e?-1:t,max:"posNeg"===e?1:r},x:{data:{extract:{field:nK}},paddingInner:.3,paddingOuter:0,invert:"rtl"===n,align:"rtl"===n?1:0,maxPxStep:12}}),hK=U();hK.use(W),hK.renderer.prio(["canvas"]);const mK={resolve:()=>{},promise:{}},gK=({chart:e,element:t,requestId:r,theme:n,isSnapshot:o,direction:i,miniChartData:a,downloadService:s})=>{const{resolveChartPromise:l,addChartPromiseToQueue:c}=(e=>{const t=k(e.isDownloadedAsPDForImage?Lt():mK);return{addChartPromiseToQueue:q(()=>{e.waitForPromise(t.current.promise)},[e]),resolveChartPromise:t.current.resolve}})(s);return{renderChartWithRequestIdleCallback:q(()=>{if(null===t.current||null!==e.current)return;c();r.current=tK(()=>{t.current&&(e.current=(({element:e,theme:t,isSnapshot:r,miniChartData:n,onChartRendered:o,direction:i})=>{const{type:a,qMatrix:s,minY:l,maxY:c}=n;return hK.chart({element:e,data:{type:"q",key:"qHyperCube",data:pK(s)},settings:{scales:fK(a,l,c,i),components:dK(t,n),strategy:r?{size:{width:e.offsetWidth,height:e.offsetHeight}}:void 0},mounted:()=>{o()}})})({element:t.current,theme:n,isSnapshot:o,miniChartData:a,direction:i,onChartRendered:l}))},{timeout:2e3})},[t,e,c,r,n,o,a,i,l]),safeCancelIdleCallback:q(()=>{null!==r.current&&rK(r.current),r.current=null,l()},[r,l])}},bK=e=>{const t=k(null),r=k(!1);return q(n=>{const o=n.contentBoxSize.at(0)?.inlineSize??0;(e=>{e.current&&(rK(e.current),e.current=null)})(t),r.current?0!==o?null!==e.current&&(t.current=tK(()=>{e.current?.update()},{timeout:2e3})):r.current=!1:r.current=!0},[e])},vK=({intersectionObserverTaskScheduler:e,resizeObserverTaskScheduler:t,theme:r,isSnapshot:n,miniChartData:o,downloadService:i,direction:a})=>{const s=k(null),l=k(null),c=k(null),{renderChartWithRequestIdleCallback:u,safeCancelIdleCallback:d}=gK({element:s,chart:l,requestId:c,theme:r,isSnapshot:n,direction:a,miniChartData:o,downloadService:i});return(({element:e,intersectionObserverTaskScheduler:t,safeCancelIdleCallback:r,renderChartWithRequestIdleCallback:n,chart:o})=>{const i=q(e=>{e.isIntersecting?n():r()},[n,r]);M(()=>{if(!e.current||!t)return()=>{};const n=e.current;return t.addTask(n,i),()=>{t.removeTask(n),r(),o.current?.destroy(),o.current=null}},[o,e,t,r,i])})({element:s,intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({renderChartWithRequestIdleCallback:e,safeCancelIdleCallback:t,chart:r,intersectionObserverTaskScheduler:n})=>{M(()=>n?()=>{}:(e(),()=>{t(),r.current?.destroy(),r.current=null}),[n,t,e,r])})({intersectionObserverTaskScheduler:e,safeCancelIdleCallback:d,renderChartWithRequestIdleCallback:u,chart:l}),(({element:e,chart:t,resizeObserverTaskScheduler:r})=>{const n=bK(t);M(()=>{const t=e.current;return t?(r.addTask(t,n),()=>{r.removeTask(t)}):()=>{}},[e,n,r])})({element:s,chart:l,resizeObserverTaskScheduler:t}),s},yK=({height:e,intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s})=>{const l=vK({intersectionObserverTaskScheduler:t,resizeObserverTaskScheduler:r,theme:n,isSnapshot:o,miniChartData:i,downloadService:a,direction:s});return nr.jsx("div",{"data-testid":"picasso-container",ref:l,style:{position:"relative",width:"100%",height:e,overflow:"hidden"}})},xK=e=>{let t="center",r="center";return"flex-start"===e?.vertical?t="top":"flex-end"===e?.vertical&&(t="bottom"),"flex-start"===e?.horizontal?r="left":"flex-end"===e?.horizontal&&(r="right"),`${r} ${t}`},SK=e=>{switch(e){case"alwaysFit":return"contain";case"fill":return"fill";case"fitHeight":case"fitWidth":return"cover";case"originalSize":return"none";default:return}},wK=({representation:e,textStyle:t,maxImageHeight:r,wrapInContainer:n})=>{const o=ab(Ub),{url:i,text:a,imageSize:s,resolvedImagePosition:l}=e,c="fitHeight"===s,u=nr.jsx("img",{src:i,alt:a,style:{...t,width:c?"auto":"100%",height:"100%",maxHeight:r,objectFit:SK(s),objectPosition:xK(l),overflow:"hidden"}});return n?nr.jsx("div",{"data-key":"image-horizontal-container",style:{width:"100%",height:c?r:"100%",overflow:"hidden",display:"flex",justifyContent:c?mH(o,e):void 0},children:u}):u},CK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M7.5 8.5H2v-1h5.5V2h1v5.5H14v1H8.5V14h-1z"})})),EK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),RK=_((e,t)=>nr.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:[nr.jsx("path",{d:"M3 9v6.5a.5.5 0 1 1-1 0V.5a.5.5 0 0 1 1 0V1q2.441.639 3.667.639c1.225 0 1.774-.995 3.87-1.196q1.972-.19 3.297.47A.3.3 0 0 1 14 1.18v7.344a.3.3 0 0 1-.417.277q-1.338-.565-3.045-.416c-1.98.172-2.083 1.107-3.871 1.253Q4.879 9.785 3 9"}),nr.jsx("use",{fillRule:"evenodd"})]})),AK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13.9 7.4c-1 1.3-.6 1.5-1.5 4.1-.5 1.8-1.2 2.9-1.7 3.6q-.45.6-.9.9H4.2c-1 0-1.6-.5-1.9-1-.2-.3-.3-.6-.3-1V4.2c0-.4.3-.7.7-.7s.7.3.7.7v3.6l.9-.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v5.1l1.1-.2V.7C6.7.3 7 0 7.4 0s.7.3.7.7v5.9l1.1.1V1.6c0-.4.3-.7.7-.7s.7.3.7.7v7.7s.1 0 .1-.2l.6-1.4c1.1-2.1 3.1-1.1 2.6-.3"})})),IK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M5 13h6v1.5c0 .3-.2.5-.5.5H10v.5c0 .3-.2.5-.5.5h-3c-.3 0-.5-.2-.5-.5V15h-.5c-.3 0-.5-.2-.5-.5zm0-1c0-2-3-3-3-7 0-3 3-5 6-5s6 2 6 5c0 4-3 4-3 7H5m-.5-7c.3 0 .5-.2.5-.5s.2-.7.5-1 .6-.5 1-.5c.3 0 .5-.2.5-.5S6.8 2 6.5 2c-.6 0-1.2.3-1.7.8S4 3.9 4 4.5c0 .3.2.5.5.5"})})),kK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8m4.5 9c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6h-9c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7z"})})),PK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"currentColor","aria-hidden":"true",viewBox:"0 0 16 16",height:"16px",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M2 7.5h12v1H2z"})})),DK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9 7h7a7.004 7.004 0 0 0-7-7zm1-5.917A6.005 6.005 0 0 1 14.917 6H10zM14 9H7V2a7.002 7.002 0 0 0 0 14 7 7 0 0 0 7-7m-8 1h6.917A6.002 6.002 0 0 1 1 9a6 6 0 0 1 5-5.917z"})})),MK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M9 9h3.5c.25 0 .5-.3.5-.6v-.8c0-.3-.25-.6-.5-.6H9V3.5c0-.25-.3-.5-.6-.5h-.7c-.4 0-.7.25-.7.5V7H3.5c-.25 0-.5.3-.5.6v.7c0 .4.25.7.5.7H7v3.5c0 .25.3.5.6.5h.8c.3 0 .6-.25.6-.5zM8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8"})})),TK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m8.418 1.007.042.08 1.788 4.217 4.571.388a.5.5 0 0 1 .348.811l-.063.065-3.472 3.008 1.043 4.47a.5.5 0 0 1-.664.581l-.081-.04L8 12.217l-3.93 2.372a.5.5 0 0 1-.757-.453l.012-.089 1.043-4.47L.896 6.568a.5.5 0 0 1 .196-.86l.089-.016 4.571-.388L7.54 1.086a.5.5 0 0 1 .878-.08Z"})})),qK=_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M13 14H3a1 1 0 0 1-1-1V3a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1"})})),OK={m:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"m6 10 7-7 2 2-7 7-2 2-5-5 2-2z"})})),"ï":TK,R:pG,S:dG,T:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M11 2.4v11.2a.2.2 0 0 1-.32.16l-7.467-5.6a.2.2 0 0 1 0-.32l7.467-5.6a.2.2 0 0 1 .32.16"})})),U:_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M4 13.6V2.4a.2.2 0 0 1 .32-.16l7.467 5.6a.2.2 0 0 1 0 .32l-7.467 5.6A.2.2 0 0 1 4 13.6"})})),P:MK,Q:kK,"è":_((e,t)=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t,...e,children:nr.jsx("path",{d:"M14.98 15H1.04c-1.002 0-1.303-.7-.802-1.5l6.82-11.9c.5-.8 1.303-.8 1.804 0l6.92 11.9c.501.8.1 1.5-.803 1.5M8.5 5h-1c-.3 0-.5.2-.5.5V9c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5V5.5c0-.3-.2-.5-.5-.5m-1 6c-.3 0-.5.2-.5.5v1c0 .3.2.5.5.5h1c.3 0 .5-.2.5-.5v-1c0-.3-.2-.5-.5-.5z"})})),"¢":AK,"©":RK,"23F4":IK,2013:qK,"&":DK,add:CK,"minus-2":PK,dot:EK},LK=({size:e,iconKey:t,color:r,pvStyle:n})=>{const o=t&&OK[t];return o&&nr.jsx("div",{"data-testid":"representation-indicator-icon",style:{color:r,height:e,...n},children:nr.jsx(o,{style:{height:e}})})},NK=({representation:e,cellValue:t,paginationCellAlign:r})=>{const n=ab(xV),o=ab(Ub),i=ab(lv),{text:a,indicator:s}=e,{showTextValues:l,applySegmentColors:c}=s??{},u=sH(e,t,o,i),d=(e=>parseInt(e||uH,10))(n.measure.values.fontSize),{color:p,iconKey:f,position:h}=u||{};return l?nr.jsxs("div",{"data-key":"representation-indicator",style:{display:"flex",justifyContent:r??"flex-end",alignItems:"center",gap:"2px",overflow:"hidden",color:c?p:void 0},children:["left"===h&&LK({size:d,iconKey:f,color:p}),nr.jsx(YU,{isNumeric:!0,children:a}),"right"===h&&LK({size:d,iconKey:f,color:p})]}):LK({size:d,iconKey:f,color:p})},jK=(e,t,r)=>e.contentStaticLineCount?t*(r??e.grid.contentLineClamp):t,_K=({forwardRef:e,cell:t,style:r,virtualizedCell:n,lineClamp:o,intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,paginationCellAlign:s})=>{const l=ab(xV),c=ab(CV),u=ab(ub),d=ab(Rb),p=ab(lv),f=ab(Ub),h=ab(_b),m=ab(Lb);if(t.representation.type===lF.Image&&!t.representation.url?.trim())return null;if(t.representation.type===lF.Image)return nr.jsx(wK,{representation:t.representation,textStyle:r,maxImageHeight:jK(l,c,o),wrapInContainer:!n});let g=t.representation.text;t.representation.type!==lF.Link||m||t.isNull||(g=nr.jsx(eK,{href:t.representation.url,text:t.representation.text,interactions:h,color:r.cellForegroundColor}));const b="string"==typeof(v=t.qIsNull?t.representation.text:t.qNum)&&v.length>0||"number"==typeof v?+v:NaN;var v;return t.representation.type!==lF.Indicator||Number.isNaN(b)?t.representation.type===lF.MiniChart&&t.representation.miniChart&&!t.isNull?nr.jsx(yK,{height:jK(l,c,o),intersectionObserverTaskScheduler:i,resizeObserverTaskScheduler:a,miniChartData:t.representation.miniChart,theme:p,isSnapshot:!!d.snapshotData,direction:f,downloadService:u}):nr.jsx(YU,{forwardRef:e,isDual:t.isDual,isNumeric:t.isNumeric,lineClamp:o,isPagination:!n,children:g}):nr.jsx(NK,{representation:t.representation,cellValue:b,paginationCellAlign:n?void 0:s})},zK=()=>nr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",fill:"currentColor",width:"0.75em",height:"0.75em",children:nr.jsx("path",{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"})}),FK=_c("div")({"& path":{stroke:"none !important"}}),$K=({children:e,cellSelectionState:t,hideTickIcon:r})=>t!==U$.Selected||r?e:nr.jsxs(GU,{children:[e,nr.jsx(FK,{children:nr.jsx(zK,{})})]}),HK=e=>{const t=function(){const e=FN(),t=CN(()=>null==e?void 0:e.dragOperation.source,[e]),r=CN(()=>null==e?void 0:e.dragOperation.target,[e]);return{get source(){return t.value},get target(){return r.value}}}();return t.source&&t.source.id!==e?.5:1},BK=(e,t,r,n)=>({handleMouseDown:n=>{e?.(n);const o=n.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>{r({type:G$.SelectMultiEnd})};r({type:G$.SelectMouseDown,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&r({type:G$.SelectMultiAdd,payload:{cell:t,evt:e,announce:n}})},handleMouseUp:e=>{0===e.button&&r({type:G$.SelectMouseUp,payload:{cell:t,evt:e,announce:n}})}}),VK=e=>{const t=ab(uV),r=ab(oV),n=ab(NG),o=ab(iv),i=ab(Ub),a=sb(TG),s=sb(vU),l=ab(Zb),c=ab($b),u=ab(Nb),d=d=>{HG({evt:d,rootElement:o,selectionsAPI:u,cell:e,selectionDispatch:s,isSelectionsEnabled:c,setFocusedCellCoord:a,announce:n,keyboard:l,paginationNeeded:t,totalsPosition:r,direction:i})},p=e=>{((e,t)=>{e.key===og.Shift&&t({type:G$.SelectMultiEnd})})(e,s)},f=()=>{((e,t,r,n,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,s=o.atTop?i+2:i+1;NU([s,a],t,r,n)})(e,o,a,l,r)};if(!c)return{onKeyDown:d,onKeyUp:p,onMouseDown:f};const{handleMouseDown:h,handleMouseOver:m,handleMouseUp:g}=BK(f,e,s,n);return{onKeyDown:d,onKeyUp:p,onMouseDown:h,onMouseUp:g,onMouseOver:m}},WK=e=>{M(()=>()=>{yU.remove(e)},[e])},UK=(e,t,r,n)=>{if(!r.isNull)return e;const o=n?t.dimensionNull:t.measureNull,i={...e,...o};if(!t.grid.zebraStripes.show)return i;const a=n?t.grid.zebraStripes.overrideDimNullValueColor:t.grid.zebraStripes.overrideMeasNullValueColor,s=n?t.grid.zebraStripes.overrideDimNullValueBackground:t.grid.zebraStripes.overrideMeasNullValueBackground;return a&&(i.color=e.color),s&&(i.background=e.background),i},GK=(e,t,r)=>{const{color:n,background:o}=e.grid.zebraStripes[r];return{...t,...n?{color:n}:void 0,...o?{background:o}:void 0}},KK=(e,t,r)=>{if(t.grid.zebraStripes.show){const n=(r.rowIdx+1)%2==0;return GK(t,e,n?"even":"odd")}return e},YK=(e,t)=>{const r=ab(xV),n=ab(yU(e)),o=ab(wb),i=e.isTotalRow&&o("TLV-2303-SUB-TOTALS");WK(e);let a=t.isDim?r.dimension.values:r.measure.values;a=KK(a,r,e),a=i?r.subTotalRow:a,a=UK(a,r,e,t.isDim);const s=e.isNull||i&&t.isDim?a:HH(a,e.qAttrExps,t.qAttrExprInfoIDs),l=i?s:function(e,t,r){return t===U$.Selected?{...e,...r}:t===U$.Disabled?{...e,background:`${lH}, ${e.background}`}:e}(s,n,r.selectedColors);return{cellStyle:{...l,borderColor:r.grid.border},representationStyle:s,cellSelectionState:n}},XK=_c(Bh,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})(({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}})),JK=_c(um,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e&&"height"!==e})(({hover:e,hoverColors:t,height:r})=>({height:r,"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}})),ZK=_c(Kh,{shouldForwardProp:e=>"cellStyle"!==e})(({cellStyle:e,theme:t})=>({...fH,...e,padding:t.spacing(.5,1.5),verticalAlign:"top",boxSizing:"border-box",width:"100%",height:"100%"})),QK=_c(Kh,{shouldForwardProp:e=>!["atTop","headRowHeight","totalsStyle","direction"].includes(e)})(({totalsStyle:e,atTop:t,headRowHeight:r,theme:n})=>({...fH,...e,fontWeight:dH,position:"sticky",padding:n.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t?r:void 0,bottom:t?void 0:0,verticalAlign:t?"bottom":"top",boxSizing:"border-box",zIndex:t?1:void 0})),eY=({cell:e,column:t,columnIndex:r,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o})=>{const i=ab(Ub),a=ab(_b),{onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d}=VK(e),{cellStyle:p,representationStyle:f,cellSelectionState:h}=YK(e,t),m=HK(t.id);return nr.jsx(ZK,{cellStyle:{...p,opacity:m},scope:0===r?"row":void 0,component:0===r?"th":void 0,align:e.align,tabIndex:-1,className:`sn-table-cell ${h} ${ng}`,title:a.passive?e.representation.text:void 0,onKeyDown:s,onKeyUp:l,onMouseDown:c,onMouseUp:u,onMouseOver:d,children:nr.jsx($K,{cellSelectionState:h,hideTickIcon:!!e.isTotalRow,children:nr.jsx(_K,{cell:e,style:f,intersectionObserverTaskScheduler:n,resizeObserverTaskScheduler:o,paginationCellAlign:yH(i,e.align)})})})},tY=Kg(0),rY=({column:e,totalsPosition:t,onKeyDown:r,onMouseDown:n})=>{const o=ab(xV),i=ab(Fb),a=ab(tY),s=HK(e.id);return nr.jsx(QK,{totalsStyle:{...o.totalRow,...wU(o,t,!1),opacity:s},headRowHeight:a,atTop:t.atTop,align:e.totalsTextAlign,className:`sn-table-cell ${ng}`,tabIndex:-1,title:i?e.totalInfo:void 0,onKeyDown:r,onMouseDown:n,children:nr.jsx(YU,{isNumeric:e.isTotalNumeric,isPagination:!0,children:e.totalInfo})},e.id)},nY=()=>{const e=ab(oV),t=ab(iV),r=ab(sV),n=ab(iv),o=ab(zb),i=ab(Ub),a=sb(TG),s=ab(Lb),l=ab(Zb);return nr.jsx(um,{className:"sn-table-row sn-table-totals-row",children:t.map((t,c)=>{const u=[e.atTop?1:r.length+1,c];return nr.jsx(rY,{column:t,totalsPosition:e,onKeyDown:e=>{(e=>{const{isSelectionMode:t,evt:r,isInteractionEnabled:n}=e;if(!t&&n)switch(r.key){case og.C:_G(r);break;case og.Space:r.preventDefault();break;default:zG(e)}else Tm(r)})({evt:e,rootElement:n,cellCoord:u,setFocusedCellCoord:a,isSelectionMode:s,isInteractionEnabled:o,direction:i})},onMouseDown:()=>{NU(u,n,a,l)}},t.id)})})};var oY=j(nY);const iY=({updateShouldRefocus:e,tableWrapperRef:t})=>{const r=ab(sV),n=ab(oV),o=ab(iV),i=ab(xV),a=ab(EV),s=ab(RV),l=ab(Rb),c=!!_H(l)?.content?.hoverEffect;JG({updateShouldRefocus:e,tableWrapperRef:t});const u=(e=>{const t=q(t=>new IntersectionObserver(e=>{e.forEach(e=>{const r=t.get(e.target);r?.(e)})},{root:e.current}),[e]);return KG(t)})(t),d=XG();return nr.jsxs(XK,{lastRowBottomBorder:i.grid.lastRowBottomBorder,children:[n.atTop?nr.jsx(oY,{}):void 0,r.map((e,t)=>{const r=e.at(0)?.isTotalRow??!1;return nr.jsx(JK,{hoverColors:i.grid.hoverColors,hover:c,tabIndex:-1,className:"sn-table-row sn-table-data-row",height:r?s:a,children:o.map((t,r)=>{const{id:n}=t,o=e[r];return nr.jsx(eY,{columnIndex:r,cell:o,column:t,intersectionObserverTaskScheduler:u,resizeObserverTaskScheduler:d},n)})},`row-${t}`)}),n.atBottom?nr.jsx(oY,{}):void 0]})};var aY=j(iY);const sY=(e,t)=>!!e?.skipHeader||!!t.hideHeader,lY=Kg(e=>{const t=e(Rb),r=e(Qb);if(r)return(e,{isDim:n,colIdx:o})=>{const i=n?o:o-t.qHyperCube.qDimensionInfo.length,a=`/qHyperCubeDef/${n?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,s=t.qHyperCube[n?"qDimensionInfo":"qMeasureInfo"].at(i)?.columnWidth,l=s?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...s,...e})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(e)};r.applyPatches([l],!0)}}),cY=({column:e,isLastColumn:t,onColumnResize:r,setIsAdjustingWidth:n})=>{const{pageColIdx:o,label:i}=e,a=ab(lY),s=ab(Ub),l=ab(zb),c=ab(cv),[u,d]=lb(DV);if(!l)return null;return nr.jsx(zV,{columnWidth:u.at(o)??0,isLastColumn:t,keyValue:`adjuster-${o}`,updateWidthCallback:e=>{r?.();const t=[...u];t[o]=e,d(t)},confirmWidthCallback:t=>{a?.(t,e)},handleBlur:e=>{(e=>{MU(e);const t=e.closest(".sn-table-cell");qU(t)})(e.currentTarget)},setIsAdjustingWidth:n,accessibilityRelatedArgs:{translator:c,columnLabel:i},direction:s})},uY=e=>e.target?.getAttribute("class")?.includes(ig),dY=({isInteractionEnabled:e,column:t})=>{const[r,n]=I(!1),o=ab(CU),i=ab(PH);return{open:r,setOpen:n,handleOpenMenu:t=>{!e||uY(t)||i||n(!0)},toggleSortOrder:r=>{e&&!uY(r)&&!i&&(e=>null!==e.target.closest(".sn-table-cell"))(r)&&(r.stopPropagation(),o?.(t,"A"===t.sortDirection?"D":"A"))}}};var pY=class extends UM{constructor(e,t){super(e,t),this.boundingRectangle=YI(null),this.destroy=ik(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:r}=t;if(r.initialized){const{element:e}=this.options,r="function"==typeof e?e(t):e;if(!r)return;let n;const o=()=>{this.boundingRectangle.value=aT(r)},i=()=>{n||(n=setTimeout(()=>{o(),n=void 0},25))},a=new ResizeObserver(o);return a.observe(r),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),a.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:r}=e;if(!t)return r;const n=this.boundingRectangle.value;if(!n)return r;const{initial:o,current:i}=t,{height:a,width:s}=i.boundingRectangle,l=o.center.x-s/2,c=o.center.y-a/2,u=function(e,t,r){const n=Aj({},t);return e.boundingRectangle.top+t.y<=r.top?n.y=r.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=r.top+r.height&&(n.y=r.top+r.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=r.left?n.x=r.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=r.left+r.width&&(n.x=r.left+r.width-e.boundingRectangle.right),n}(new RP(l,c,s,a),r,n);return u}};pY.configure=uD(pY);const fY=({invert:e})=>({dragOperation:t,droppable:r})=>{if(!r.shape)return null;const{shape:n}=t;if(!n)return null;const o=function(e){return e.sortable?.index}(r);if(void 0===o)return null;const i=function(e){return e.source.index}(t);if(void 0===i)return null;if(i===o)return null;const a=i<o!==e?"right":"left",{center:s,boundingRectangle:l}=n.current;return"left"===a&&l.left+.3*l.width<=r.shape.center.x||"right"===a&&l.right-.3*l.width>=r.shape.center.x?{id:r.id,value:1/EP.distance(r.shape.center,s),type:xM.Collision,priority:yM.Normal}:null},hY=[pY.configure({element:e=>{const t=e.activatorEvent?.target;return t instanceof HTMLElement?t.closest(".sn-table-head-row"):null}})],mY=(e,t)=>{const r=ab(Ub),n=!ab(Bb);return V_({id:e.id,disabled:n,index:t,type:"item",accept:"item",group:"column",modifiers:hY,data:e,plugins:e=>[...e,mL.configure({feedback:"clone"})],collisionDetector:fY({invert:"rtl"===r})})},gY=({column:e,columnIndex:t,columnsLength:r})=>{const n=ab(xV),o=ab(iv),i=ab(Ub),a=ab(_b),s=ab(iV),l=ab(oV),c=ab(DV)[t],u=sb(TG),d=ab(qG(t)),p=ab(Bb),f=ab(Zb),{open:h,setOpen:m,handleOpenMenu:g,toggleSortOrder:b}=dY({isInteractionEnabled:p,column:e}),v=sb(PH),{ref:y,isDragging:x}=mY(e,t),S=HK(e.id),w=ab(qb),C=w?XU:vG,E=e.isActivelySorted?K$[e.sortDirection]:void 0,R=h?rg:void 0,A=h?"true":void 0,I=t===r-1,k=[0,e.pageColIdx],P={width:c,zIndex:s.length-t},D=d&&0===t&&!f.enabled&&p?0:-1;return nr.jsxs(zU,{"data-dragging":x,ref:y,headerStyle:{...n.header,...wU(n,l,!0),opacity:S},background:w&&h?e.headerColor?.headerMenuActiveBackground??n.headerMenuActiveBackground:e.headerColor?.background??n.header.background,hoverBackground:e.headerColor?.headerMenuHoverBackground??n.headerMenuHoverBackground,color:e.headerColor?.color??n.header.color,interactions:a,style:P,align:e.headTextAlign,className:`sn-table-head-cell sn-table-cell ${ng}`,tabIndex:D,title:a.passive?e.label:void 0,onKeyDown:e=>{(e=>{const{isInteractionEnabled:t,evt:r,handleOpenMenu:n}=e;if(t)switch(r.key){case og.C:_G(r);break;case og.Enter:case og.Space:n?.(r);break;default:zG(e)}else Tm(r)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,isInteractionEnabled:p,handleOpenMenu:g,direction:i})},onMouseDown:e=>{(({evt:e,rootElement:t,cellCoord:r,setFocusedCellCoord:n,keyboard:o,isInteractionEnabled:i})=>{e.preventDefault(),i&&NU(r,t,n,o)})({evt:e,rootElement:o,cellCoord:k,setFocusedCellCoord:u,keyboard:f,isInteractionEnabled:p})},onClick:w?g:b,"aria-sort":E,"aria-controls":R,"aria-expanded":A,"aria-haspopup":"true",children:[nr.jsx(C,{column:e,isInteractionEnabled:p,open:h,setOpen:m,isPagination:!0,columnWidth:c}),nr.jsx(cY,{column:e,isLastColumn:I,setIsAdjustingWidth:v})]},e.id)},bY=()=>{const e=ab(iV),t=ab(xV),r=ab(Rb),n=ab(Kb),o=sb(tY),i=ab(DV),a=k(null),s=sY(n,r);return M(()=>{a.current&&o(a.current.getBoundingClientRect().height)},[t.header.fontSize,i,o,s]),nr.jsx(om,{style:{visibility:s?"collapse":void 0},children:nr.jsx(BU,{ref:a,className:"sn-table-row sn-table-head-row",children:e.map((t,r)=>nr.jsx(gY,{column:t,columnIndex:r,columnsLength:e.length},t.id))})})};var vY=j(bY);var yY=j(()=>{const e=ab(NG),[t,r]=lb(YB),{page:n,rowsPerPage:o}=t,i=ab(Gb),{totalColumnCount:a,totalRowCount:s,totalPages:l,paginationNeeded:c,rows:u,columns:d}=ab(nV),p=ab(xV),f=ab(TB),h=ab(Rb),m=ab(lv),g=ab(ov),b=ab(iv),v=ab(Kb),y=ab(Ub),x=ab(_b),S=ab(cv),w=ab(xU),C=sb(vU),E=ab(Lb),R=ab(Zb),A=k(!1),I=k(null),P=k(null),D=`${S.get("SNTable.Accessibility.RowsAndColumns",[String(u.length),String(d.length)])} ${S.get("SNTable.Accessibility.NavigationInstructions")}`,T=Vb(h,v),O=T?f.scrollLeft??0:0,L=T?f.rowPartialHeight??0:0,N=q(()=>{A.current=b.getElementsByTagName("table")[0].contains(document.activeElement)},[b]),j=q(n=>{r({...t,page:n}),e({keys:[["SNTable.Pagination.PageStatusReport",(n+1).toString(),l.toString()]],politeness:"assertive"})},[t,r,l,e]),_=q(n=>{r({...t,page:0,rowsPerPage:n}),e({keys:[["SNTable.Pagination.RowsPerPageChange",n.toString()]],politeness:"assertive"})},[e,t,r]);return(e=>{const t=ab(Ub),r=ab(TB);M(()=>{const n=e.current;if(!n)return;const o=e=>{((e,t,r)=>{if(0===e.deltaX)return;e.stopPropagation();const n=r.scrollWidth-r.offsetWidth,{scrollLeft:o}=r;let i=o+e.deltaX;t&&(i=n+i),n>0&&(i<0||i>n+1)&&e.preventDefault()})(e,"rtl"===t,n)},i=e=>{r.scrollLeft=e.currentTarget?.scrollLeft||0};return n.addEventListener("wheel",o),n.addEventListener("scroll",i),()=>{n.removeEventListener("wheel",o),n.removeEventListener("scroll",i)}},[e,t,r])})(I),MG(P,A),(()=>{const e=ab(iv),t=ab(Zb),r=ab(TG);Ym(()=>{const n=PU(e,r);t.active?qU(n):(n?.blur(),TU(e))},[t.active,e])})(),jG(A,n),M(()=>{const e=I.current;e&&(e.scrollLeft=O,e.scrollTop=L)},[t,s,O,L]),DG(()=>{C({type:G$.UpdatePageRows,payload:{pageRows:u}})},[u]),OG(),BG(I),nr.jsxs(PG,{children:[nr.jsxs(WU,{ref:P,dir:y,onKeyDown:e=>{$G({evt:e,totalRowCount:s,page:n,rowsPerPage:o,handleChangePage:j,updateShouldRefocus:N,keyboard:R,isSelectionMode:E})},"data-testid":"sn-table",children:[nr.jsx(GG,{}),nr.jsxs(WG,{ref:I,className:"sn-table-container",fullHeight:!!i||!x.active||!c,interactions:x,tabIndex:-1,role:"application","data-testid":"table-container",children:[nr.jsxs(UG,{stickyHeader:!0,"aria-label":D,borderRight:w?`1px solid ${p.grid.border}`:void 0,children:[nr.jsx(vY,{}),nr.jsx(aY,{updateShouldRefocus:N,tableWrapperRef:P})]}),nr.jsx(SU,{})]}),nr.jsx(iU,{footerContainer:i,pageInfo:t,paginationNeeded:c,theme:m,totalRowCount:s,totalColumnCount:a,totalPages:l,keyboard:R,translator:S,interactions:x,rect:g,layout:h,handleChangePage:j,handleChangeRowsPerPage:_,isSelectionMode:E,direction:y})]}),nr.jsx(wG,{isPagination:!0})]})});const xY=Kg(0),SY=Kg(e=>{const t=e(Ab);return Math.min(BH,t)}),wY=Kg(e=>{const t=e(Ab);return t===BH?0:Math.floor(t/BH)}),CY=Kg(e=>{const t=e(xY),r=e(wY);return Math.min(t,r)}),EY=Kg(e=>({page:e(CY),rowsPerPage:e(SY),rowsPerPageOptions:[]}),(e,t,r)=>{const n=e(wY);t(xY,Math.max(0,Math.min(r,n)))}),RY=Kg(null),AY=Kg(null),IY=Kg(e=>{const t=e(EY),r=e(Ab);return Math.min(t.rowsPerPage,r-t.page*t.rowsPerPage)}),kY=Kg(null),PY=Kg(null),DY=Kg(e=>e(oV).atTop?2:1),MY=Kg(e=>e(oV).atTop?1:e(DY)+e(IY)),TY=Kg(e=>kU(Boolean(e(Lb)),e(oV))),qY=Kg(e=>({firstBodyRowIdx:e(DY),totalsRowIdx:e(MY),allowedRows:e(TY)})),OY=Kg(e=>({rootElement:e(iv),totalsPosition:e(oV),rowCount:e(IY),colCount:e(aV),columnWidths:e(DV)})),LY=Kg(e=>({scrollToCell:e(kY),scrollableContainerElement:e(PY)})),NY=Kg(e=>({keyboard:e(Zb),isInSelectionMode:e(Lb),selectionsAPI:e(Nb),isSelectionsEnabled:e($b)})),jY=Kg(e=>({direction:e(Ub),isInteractionEnabled:e(Bb),paginationNeeded:e(uV),announce:e(NG),shouldRefocusRef:e(RY)})),_Y=10,zY=e=>e.atTop?2:1,FY=(e,[t,r],n,o)=>{const i=zY(n);if(0===t)return e.querySelector(`.sn-table-head-row [data-col="${r}"]`);if(n.atTop&&1===t)return e.querySelector(`.sn-table-totals-row [data-col="${r}"]`);const a=t-i;return a>=0&&a<o?e.querySelector(`.sn-table-body .sn-table-cell[rowindex="${a}"][columnindex="${r}"]`):e.querySelector(`.sn-table-totals-row [data-col="${r}"]`)},$Y=(e,t,r,n,o,i,a,s,l)=>{if(!e)return l(!1),()=>{};const[c,u]=r,d=c-zY(n),p=d>=0&&d<o;let f=a,h=!1,m=null;const g=()=>h||s&&!s(),b=()=>{g()||(p&&e(d,u),m=requestAnimationFrame(()=>{if(g())return;const e=((e,t)=>{if(!e||!t)return!1;const r=e.getBoundingClientRect(),n=t.getBoundingClientRect();return r.top>=n.top&&r.bottom<=n.bottom&&r.left>=n.left&&r.right<=n.right})(FY(t,r,n,o),i);if(!e)return f>0?(f-=1,void b()):void l(!1);l(!0)}))};return b(),()=>{h=!0,null!==m&&cancelAnimationFrame(m)}},HY=(e,t,r,n,o,i)=>e<i?[t,e+1]:t<n?[t+1,o]:[t,e],BY=(e,t,r,n,o,i)=>e>o?[t,e-1]:t>r?[t-1,i]:[t,e],VY=(e,[t,r],n,o,i,a={top:0,bottom:0},s)=>{const l=a.top>0,c=a.top,u=n-1-a.bottom,d=o-1;switch(e.key){case og.Down:case og.Up:t=((e,t,r,n)=>e===og.Down&&t<n?t+1:e===og.Up&&t>r?t-1:t)(e.key,t,c,u);break;case og.Right:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?BY(e,t,r,0,o,i):HY(e,t,0,n,o,i))(r,t,c,u,0,d,i));break;case og.Left:l||([t,r]=((e,t,r,n,o,i,a)=>"rtl"===a?HY(e,t,0,n,o,i):BY(e,t,r,0,o,i))(r,t,c,u,0,d,i));break;case og.Home:l?t=Math.max(c,t-_Y):(lU(e)&&(t=c),r=0);break;case og.End:l?t=Math.min(u,t+_Y):(lU(e)&&(t=u),r=d);break;case og.PageDown:t=Math.min(u,t+_Y);break;case og.PageUp:if(l)t=Math.max(c,t-_Y);else{const e=s?zY(s):1,r=t-e;t=r>0&&r<=_Y?e:Math.max(c,t-_Y)}}return[t,r]},WY=e=>{((e,t)=>{e.querySelectorAll(t).forEach(e=>{e.setAttribute("tabIndex","-1")})})(e,".sn-table-cell[tabindex='0']")},UY=[og.Home,og.End,og.PageUp,og.PageDown],GY=()=>{const e=k(!1),t=k(0),r=k(0),n=k(null),o=k(null),i=k(null),a=k(0),s=sb(TG),l=sb(vU),c=ab(wb)("VNA-700-KEYBOARD_NAV_VIRTUALIZED_STRAIGHT_TABLE"),{rootElement:u,totalsPosition:d,rowCount:p,colCount:f,columnWidths:h}=ab(OY),{firstBodyRowIdx:m,allowedRows:g,totalsRowIdx:b}=ab(qY),{scrollToCell:v,scrollableContainerElement:y}=ab(LY),{keyboard:x,isInSelectionMode:S,selectionsAPI:w,isSelectionsEnabled:C}=ab(NY),{direction:E,announce:R,isInteractionEnabled:I,paginationNeeded:P,shouldRefocusRef:D}=ab(jY),T=A(()=>(e=>{const t=new Array(e.length+1);t[0]=0;for(let r=0;r<e.length;r++)t[r+1]=t[r]+(e[r]??0);return t})(h),[h]);M(()=>()=>{t.current+=1,r.current+=1,a.current+=1,n.current?.(),n.current=null,o.current?.(),o.current=null,i.current?.(),i.current=null},[]);const O=q((e,t,r,n)=>{const o=t=>{if(n&&!n())return void r?.(!1);const i=FY(u,e,d,p);if(i)return document.activeElement!==i&&EU(i),document.activeElement===i?void r?.(!0):t>0?void requestAnimationFrame(()=>{o(t-1)}):void r?.(!1);t>0?requestAnimationFrame(()=>{o(t-1)}):r?.(!1)};requestAnimationFrame(()=>{o(t)})},[u,d,p]),L=q((e,t)=>{const n=a.current+1;a.current=n;let i=0;const s=Date.now()+5e3,l=()=>{if(a.current!==n)return;if(r.current!==t)return;if(u instanceof HTMLElement&&!u.isConnected)return;if(Date.now()>s||i>=5)return;const c=document.activeElement;c&&c!==document.body&&c!==document.documentElement||(i+=1,D&&(D.current=!0),o.current?.(),o.current=$Y(v,u,e,d,p,y,10,()=>a.current===n&&r.current===t,()=>{O(e,300,()=>{D&&(D.current=!1)},()=>a.current===n&&r.current===t)})),requestAnimationFrame(()=>{requestAnimationFrame(l)})};requestAnimationFrame(()=>{requestAnimationFrame(l)})},[O,u,p,v,y,D,d]),N=q(()=>(D&&(D.current=!0),t.current+=1,t.current),[D]),j=q(()=>{t.current+=1,i.current?.(),i.current=null},[]),_=q((e,r)=>{const n=o=>{t.current===e&&(i.current?.(),i.current=$Y(v,u,r,d,p,y,10,()=>t.current===e,()=>{if(t.current!==e)return;const i=FY(u,r,d,p);i&&document.activeElement!==i&&EU(i),o>0?requestAnimationFrame(()=>{n(o-1)}):t.current===e&&D&&(D.current=!1)}))};requestAnimationFrame(()=>{requestAnimationFrame(()=>{n(300)})})},[u,d,p,v,D,y]),z=q((e,t)=>{if(!pU(e))return;Tm(e),j(),r.current+=1;const o=r.current;a.current+=1,n.current?.(),n.current=null;const i=((e,t)=>zY(t)+e+(t.atBottom?1:0))(p,d),l=VY(e,t,i,f,E,g,d);WY(u),s(l);const[,c]=l,[,h]=t;return c!==h&&((e,t,r)=>{if(!e)return;const n=t[r]??0,o=t[r+1]??n,{scrollLeft:i,clientWidth:a}=e;n<i?e.scrollLeft=n:o>i+a&&(e.scrollLeft=o-a)})(y,T,c),D&&(D.current=!0),n.current=$Y(v,u,l,d,p,y,10,()=>r.current===o,()=>{O(l,300,t=>{D&&(D.current=!1),t&&(e=>UY.includes(e))(e.key)&&L(l,o)},()=>r.current===o)}),l},[u,d,p,f,E,v,s,g,y,D,O,j,T,L]),F=q(e=>{e.key===og.Esc?x.enabled&&!S&&(Tm(e),x.blur?.(!0)):uU(e.key)&&Tm(e)},[x,S]),$=q((e,t,r)=>{switch(e.key){case og.C:Tm(e),I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget);break;case og.Enter:case og.Space:if(!I){Tm(e);break}r?.(e);break;default:z(e,[0,t])}},[z,I]),H=q((t,n,o,i)=>{const a=[n+m,o];switch(t.key){case og.Space:if(Tm(t),i.isSelectable&&C){e.current=!0;const r=N();l({type:G$.Select,payload:{cell:i,evt:t,announce:R}}),_(r,a)}break;case og.Enter:if(Tm(t),e.current=!1,S){N(),s(X$),w?.confirm(),y&&(y.scrollTop=0,y.scrollLeft=0);const e=t=>{v?.(0,0),t>0&&requestAnimationFrame(()=>{e(t-1)})};e(10),r.current+=1;const t=r.current;O(X$,300,()=>{D&&(D.current=!1)},()=>r.current===t)}break;case og.Esc:if(e.current=!1,S){Tm(t);const e=N();w?.cancel(),_(e,a)}break;case og.C:Tm(t),I&&(t.ctrlKey||t.metaKey)&&fg(t.currentTarget);break;case og.Tab:{const e=t.shiftKey||!P;x.enabled&&S&&e&&(Tm(t),Mm(t.currentTarget,x,t.shiftKey));break}default:{const r=t.key===og.Left||t.key===og.Right,n=S||Boolean(w?.isModal())||e.current;if(r&&n){Tm(t);break}const o=z(t,a);!!o&&o[0]!==a[0]&&t.shiftKey&&C&&i.isSelectable&&l({type:G$.SelectMultiAdd,payload:{cell:i,evt:t,announce:R}});break}}},[m,z,C,l,R,S,w,x,P,I,N,_,s,v,y,O,D]),B=q(t=>{t.key===og.Space&&(e.current=!1),t.key===og.Shift&&l({type:G$.SelectMultiEnd})},[l]),V=q((e,t)=>{if(S)Tm(e);else{if(e.key!==og.Space)return e.key===og.C?(Tm(e),void(I&&(e.ctrlKey||e.metaKey)&&fg(e.currentTarget))):void z(e,[b,t]);e.preventDefault()}},[S,z,b,I]),W=q(e=>{j(),r.current+=1;const t=r.current;WY(u),s(e),x.enabled&&x.focus?.(),O(e,2,r=>{r&&L(e,t)},()=>r.current===t)},[u,s,x,O,j,L]);return{handleWrapperKeyDown:F,handleHeadKeyDown:$,handleBodyKeyDown:H,handleBodyKeyUp:B,handleTotalsKeyDown:V,focusHeadCellOnClick:q(e=>{c&&W([0,e])},[W,c]),focusBodyCellOnClick:q((e,t)=>{c&&W([e+m,t])},[W,m,c]),focusTotalsCellOnClick:q(e=>{c&&W([b,e])},[W,b,c])}};var KY=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function YY(e,t){return e===t||!(!KY(e)||!KY(t))}function XY(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!YY(e[r],t[r]))return!1;return!0}function JY(e,t){var r;void 0===t&&(t=XY);var n,o=[],i=!1;return function(){for(var a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];return i&&r===this&&t(a,o)||(n=e.apply(this,a),i=!0,r=this,o=a),n}}var ZY="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function QY(e){cancelAnimationFrame(e.id)}function eX(e,t){var r=ZY();var n={id:requestAnimationFrame(function o(){ZY()-r>=t?e.call(null):n.id=requestAnimationFrame(o)})};return n}var tX=-1;function rX(e){if(void 0===e&&(e=!1),-1===tX||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",document.body.appendChild(t),tX=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return tX}var nX=null;function oX(e){if(void 0===e&&(e=!1),null===nX||e){var t=document.createElement("div"),r=t.style;r.width="50px",r.height="50px",r.overflow="scroll",r.direction="rtl";var n=document.createElement("div"),o=n.style;return o.width="100px",o.height="100px",t.appendChild(n),document.body.appendChild(t),t.scrollLeft>0?nX="positive-descending":(t.scrollLeft=1,nX=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),nX}return nX}var iX=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function aX(e){var t,r=e.getColumnOffset,n=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,s=e.getEstimatedTotalWidth,l=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=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 n;return(n=e.call(this,t)||this)._instanceProps=h(n.props,iu(n)),n._resetIsScrollingTimeoutId=null,n._outerRef=void 0,n.state={instance:iu(n),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof n.props.initialScrollLeft?n.props.initialScrollLeft:0,scrollTop:"number"==typeof n.props.initialScrollTop?n.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},n._callOnItemsRendered=void 0,n._callOnItemsRendered=JY(function(e,t,r,o,i,a,s,l){return n.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:r,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:s,visibleRowStopIndex:l})}),n._callOnScroll=void 0,n._callOnScroll=JY(function(e,t,r,o,i){return n.props.onScroll({horizontalScrollDirection:r,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})}),n._getItemStyle=void 0,n._getItemStyle=function(e,t){var o,a=n.props,s=a.columnWidth,l=a.direction,c=a.rowHeight,p=n._getItemStyleCache(m&&s,m&&l,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=r(n.props,t,n._instanceProps),g="rtl"===l;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(n.props,e,n._instanceProps),height:u(n.props,e,n._instanceProps),width:i(n.props,t,n._instanceProps)}}return o},n._getItemStyleCache=void 0,n._getItemStyleCache=JY(function(e,t,r){return{}}),n._onScroll=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,s=t.scrollHeight,l=t.scrollWidth;n.setState(function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=n.props.direction,c=i;if("rtl"===t)switch(oX()){case"negative":c=-i;break;case"positive-descending":c=l-o-i}c=Math.max(0,Math.min(c,l-o));var u=Math.max(0,Math.min(a,s-r));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return sX(e,t),g(e),null};var b=t.prototype;return b.scrollTo=function(e){var t=e.scrollLeft,r=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==r&&(r=Math.max(0,r)),this.setState(function(e){return void 0===t&&(t=e.scrollLeft),void 0===r&&(r=e.scrollTop),e.scrollLeft===t&&e.scrollTop===r?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:r,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<r?"forward":"backward"}},this._resetIsScrollingDebounced)},b.scrollToItem=function(e){var t=e.align,r=void 0===t?"auto":t,n=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=rX();void 0!==n&&(n=Math.max(0,Math.min(n,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=s(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==n?l(this.props,n,r,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,r,g,this._instanceProps,y):g})},b.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,r=e.initialScrollTop;if(null!=this._outerRef){var n=this._outerRef;"number"==typeof t&&(n.scrollLeft=t),"number"==typeof r&&(n.scrollTop=r)}this._callPropsCallbacks()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,r=t.scrollLeft,n=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(oX()){case"negative":o.scrollLeft=-r;break;case"positive-ascending":o.scrollLeft=r;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-r}else o.scrollLeft=Math.max(0,r);o.scrollTop=Math.max(0,n)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&QY(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,r=e.className,n=e.columnCount,o=e.direction,i=e.height,l=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?iX:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),C=S[0],E=S[1],R=this._getVerticalRangeToRender(),A=R[0],I=R[1],k=[];if(n>0&&g)for(var P=A;P<=I;P++)for(var D=C;D<=E;D++)k.push(w(t,{columnIndex:D,data:d,isScrolling:v?x:void 0,key:f({columnIndex:D,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,D)}));var M=a(this.props,this._instanceProps),T=s(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:this._onScroll,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},w(c||u||"div",{children:k,ref:l,style:{height:M,pointerEvents:x?"none":void 0,width:T}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,r=e.onItemsRendered,n=e.onScroll,o=e.rowCount;if("function"==typeof r&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],s=i[1],l=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,s,d,p,l,c,f,h)}if("function"==typeof n){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,v=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,s=e.rowCount,l=this.state,c=l.horizontalScrollDirection,u=l.isScrolling,d=l.scrollLeft,p=r||i||a||1;if(0===t||0===s)return[0,0,0,0];var f=n(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,r=e.overscanCount,n=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,s=a.isScrolling,l=a.verticalScrollDirection,c=a.scrollTop,u=n||o||r||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=s&&"backward"!==l?1:Math.max(1,u),g=s&&"forward"!==l?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var sX=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},lX=function(e,t){var r=e.rowCount,n=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},cX=function(e,t){var r=e.columnCount,n=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},uX=function(e,t,r,n){var o,i,a;if("column"===e?(o=n.columnMetadataMap,i=t.columnWidth,a=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=t.rowHeight,a=n.lastMeasuredRowIndex),r>a){var s=0;if(a>=0){var l=o[a];s=l.offset+l.size}for(var c=a+1;c<=r;c++){var u=i(c);o[c]={offset:s,size:u},s+=u}"column"===e?n.lastMeasuredColumnIndex=r:n.lastMeasuredRowIndex=r}return o[r]},dX=function(e,t,r,n){var o,i;return"column"===e?(o=r.columnMetadataMap,i=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=r.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=n?pX(e,t,r,i,0,n):fX(e,t,r,Math.max(0,i),n)},pX=function(e,t,r,n,o,i){for(;o<=n;){var a=o+Math.floor((n-o)/2),s=uX(e,t,a,r).offset;if(s===i)return a;s<i?o=a+1:s>i&&(n=a-1)}return o>0?o-1:0},fX=function(e,t,r,n,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;n<i&&uX(e,t,n,r).offset<o;)n+=a,a*=2;return pX(e,t,r,Math.min(n,i-1),Math.floor(n/2),o)},hX=function(e,t,r,n,o,i,a){var s="column"===e?t.width:t.height,l=uX(e,t,r,i),c="column"===e?cX(t,i):lX(t,i),u=Math.max(0,Math.min(c-s,l.offset)),d=Math.max(0,l.offset-s+a+l.size);switch("smart"===n&&(n=o>=d-s&&o<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":return Math.round(d+(u-d)/2);default:return o>=d&&o<=u?o:d>u||o<d?d:u}},mX=aX({getColumnOffset:function(e,t,r){return uX("column",e,t,r).offset},getColumnStartIndexForOffset:function(e,t,r){return dX("column",e,r,t)},getColumnStopIndexForStartIndex:function(e,t,r,n){for(var o=e.columnCount,i=e.width,a=uX("column",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("column",e,c,n).size;return c},getColumnWidth:function(e,t,r){return r.columnMetadataMap[t].size},getEstimatedTotalHeight:lX,getEstimatedTotalWidth:cX,getOffsetForColumnAndAlignment:function(e,t,r,n,o,i){return hX("column",e,t,r,n,o,i)},getOffsetForRowAndAlignment:function(e,t,r,n,o,i){return hX("row",e,t,r,n,o,i)},getRowOffset:function(e,t,r){return uX("row",e,t,r).offset},getRowHeight:function(e,t,r){return r.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,r){return dX("row",e,r,t)},getRowStopIndexForStartIndex:function(e,t,r,n){for(var o=e.rowCount,i=e.height,a=uX("row",e,t,n),s=r+i,l=a.offset+a.size,c=t;c<o-1&&l<s;)c++,l+=uX("row",e,c,n).size;return c},initInstanceProps:function(e,t){var r=e,n={columnMetadataMap:{},estimatedColumnWidth:r.estimatedColumnWidth||50,estimatedRowHeight:r.estimatedRowHeight||50,lastMeasuredColumnIndex:-1,lastMeasuredRowIndex:-1,rowMetadataMap:{}};return t.resetAfterColumnIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({columnIndex:e,shouldForceUpdate:r})},t.resetAfterRowIndex=function(e,r){void 0===r&&(r=!0),t.resetAfterIndices({rowIndex:e,shouldForceUpdate:r})},t.resetAfterIndices=function(e){var r=e.columnIndex,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof r&&(n.lastMeasuredColumnIndex=Math.min(n.lastMeasuredColumnIndex,r-1)),"number"==typeof o&&(n.lastMeasuredRowIndex=Math.min(n.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},n},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),gX=function(e,t){return e};function bX(e){var t,r=e.getItemOffset,n=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,s=e.getStopIndexForStartIndex,l=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var n;return(n=e.call(this,t)||this)._instanceProps=l(n.props,iu(n)),n._outerRef=void 0,n._resetIsScrollingTimeoutId=null,n.state={instance:iu(n),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof n.props.initialScrollOffset?n.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},n._callOnItemsRendered=void 0,n._callOnItemsRendered=JY(function(e,t,r,o){return n.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:r,visibleStopIndex:o})}),n._callOnScroll=void 0,n._callOnScroll=JY(function(e,t,r){return n.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:r})}),n._getItemStyle=void 0,n._getItemStyle=function(e){var t,i=n.props,a=i.direction,s=i.itemSize,l=i.layout,u=n._getItemStyleCache(c&&s,c&&l,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=r(n.props,e,n._instanceProps),p=o(n.props,e,n._instanceProps),f="horizontal"===a||"horizontal"===l,h="rtl"===a,m=f?d:0;u[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},n._getItemStyleCache=void 0,n._getItemStyleCache=JY(function(e,t,r){return{}}),n._onScrollHorizontal=function(e){var t=e.currentTarget,r=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;n.setState(function(e){if(e.scrollOffset===o)return null;var t=n.props.direction,a=o;if("rtl"===t)switch(oX()){case"negative":a=-o;break;case"positive-descending":a=i-r-o}return a=Math.max(0,Math.min(a,i-r)),{isScrolling:!0,scrollDirection:e.scrollOffset<a?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._onScrollVertical=function(e){var t=e.currentTarget,r=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;n.setState(function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-r));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}},n._resetIsScrollingDebounced)},n._outerRefSetter=function(e){var t=n.props.outerRef;n._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},n._resetIsScrollingDebounced=function(){null!==n._resetIsScrollingTimeoutId&&QY(n._resetIsScrollingTimeoutId),n._resetIsScrollingTimeoutId=eX(n._resetIsScrolling,150)},n._resetIsScrolling=function(){n._resetIsScrollingTimeoutId=null,n.setState({isScrolling:!1},function(){n._getItemStyleCache(-1,null)})},n}Yc(t,e),t.getDerivedStateFromProps=function(e,t){return vX(e,t),u(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 r=this.props,n=r.itemCount,o=r.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1));var s=0;if(this._outerRef){var l=this._outerRef;s="vertical"===o?l.scrollWidth>l.clientWidth?rX():0:l.scrollHeight>l.clientHeight?rX():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,s))},d.componentDidMount=function(){var e=this.props,t=e.direction,r=e.initialScrollOffset,n=e.layout;if("number"==typeof r&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===n?o.scrollLeft=r:o.scrollTop=r}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,r=e.layout,n=this.state,o=n.scrollOffset;if(n.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===r)if("rtl"===t)switch(oX()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,s=i.scrollWidth;i.scrollLeft=s-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&QY(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,r=e.className,o=e.direction,i=e.height,a=e.innerRef,s=e.innerElementType,l=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?gX:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,C=this._getRangeToRender(),E=C[0],R=C[1],A=[];if(c>0)for(var I=E;I<=R;I++)A.push(w(t,{data:u,key:p(I,u),index:I,isScrolling:b?y:void 0,style:this._getItemStyle(I)}));var k=n(this.props,this._instanceProps);return w(h||m||"div",{className:r,onScroll:S,ref:this._outerRefSetter,style:$r({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},w(s||l||"div",{children:A,ref:a,style:{height:x?"100%":k,pointerEvents:y?"none":void 0,width:x?k:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],r=e[1],n=e[2],o=e[3];this._callOnItemsRendered(t,r,n,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,s=i.scrollOffset,l=i.scrollUpdateWasRequested;this._callOnScroll(a,s,l)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,r=e.overscanCount,n=this.state,o=n.isScrolling,i=n.scrollDirection,l=n.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,l,this._instanceProps),u=s(this.props,c,l,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,r),p=o&&"forward"!==i?1:Math.max(1,r);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}($),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var vX=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},yX=function(e,t,r){var n=e.itemSize,o=r.itemMetadataMap,i=r.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var s=o[i];a=s.offset+s.size}for(var l=i+1;l<=t;l++){var c=n(l);o[l]={offset:a,size:c},a+=c}r.lastMeasuredIndex=t}return o[t]},xX=function(e,t,r,n,o){for(;n<=r;){var i=n+Math.floor((r-n)/2),a=yX(e,i,t).offset;if(a===o)return i;a<o?n=i+1:a>o&&(r=i-1)}return n>0?n-1:0},SX=function(e,t,r,n){for(var o=e.itemCount,i=1;r<o&&yX(e,r,t).offset<n;)r+=i,i*=2;return xX(e,t,Math.min(r,o-1),Math.floor(r/2),n)},wX=function(e,t){var r=e.itemCount,n=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=r&&(i=r-1),i>=0){var s=n[i];a=s.offset+s.size}return a+(r-i-1)*o},CX=bX({getItemOffset:function(e,t,r){return yX(e,t,r).offset},getItemSize:function(e,t,r){return r.itemMetadataMap[t].size},getEstimatedTotalSize:wX,getOffsetForIndexAndAlignment:function(e,t,r,n,o,i){var a=e.direction,s=e.height,l=e.layout,c=e.width,u="horizontal"===a||"horizontal"===l?c:s,d=yX(e,t,o),p=wX(e,o),f=Math.max(0,Math.min(p-u,d.offset)),h=Math.max(0,d.offset-u+d.size+i);switch("smart"===r&&(r=n>=h-u&&n<=f+u?"auto":"center"),r){case"start":return f;case"end":return h;case"center":return Math.round(h+(f-h)/2);default:return n>=h&&n<=f?n:n<h?h:f}},getStartIndexForOffset:function(e,t,r){return function(e,t,r){var n=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?n[o].offset:0)>=r?xX(e,t,o,0,r):SX(e,t,Math.max(0,o),r)}(e,r,t)},getStopIndexForStartIndex:function(e,t,r,n){for(var o=e.direction,i=e.height,a=e.itemCount,s=e.layout,l=e.width,c="horizontal"===o||"horizontal"===s?l:i,u=yX(e,t,n),d=r+c,p=u.offset+u.size,f=t;f<a-1&&p<d;)f++,p+=yX(e,f,n).size;return f},initInstanceProps:function(e,t){var r={itemMetadataMap:{},estimatedItemSize:e.estimatedItemSize||50,lastMeasuredIndex:-1};return t.resetAfterIndex=function(e,n){void 0===n&&(n=!0),r.lastMeasuredIndex=Math.min(r.lastMeasuredIndex,e-1),t._getItemStyleCache(-1),n&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.itemSize}});function EX(e,t){for(var r in e)if(!(r in t))return!0;for(var n in t)if(e[n]!==t[n])return!0;return!1}var RX=["style"],AX=["style"];function IX(e,t){var r=e.style,n=Hr(e,RX),o=t.style,i=Hr(t,AX);return!EX(r,o)&&!EX(n,i)}const kX=Kg(0),PX=Kg(0),DX=Kg(0),MX=Kg(e=>e(kX)+e(PX)),TX=Kg(e=>{const t=e(ov),r=e(uV),n=t.height-(r?41:0);return{width:t.width,height:n}}),qX=Kg(e=>{const t=e(TX),r=e(DH),n=e(MH);return{width:t.width-n,height:t.height-r}}),OX=Kg(e=>{const t=e(qX),r=e(MX),n=e(DX);return Math.min(t.height-r,n)}),LX=Kg(-1),NX=hI(e=>Kg(t=>t(LX)===e)),jX=({style:e})=>nr.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var _X=S.memo(jX,IX);const zX=Kg(e=>{const t=e(qX),r=e(EV),n=e(MX),o=e(DX)+n,i=e(IY)*r+n;return o<2*t.height?o:i}),FX=Kg(e=>e(zX)<=e(TX).height),$X=()=>{},HX=e=>{e.preventDefault()};const BX=({columnIndex:e,rowIndex:t,style:r,data:n})=>{const{rowsInPage:o,columns:i,isHoverEnabled:a,setMeasuredCellHeight:s,lineClamp:l,resizeObserverTaskScheduler:c,onKeyDown:u,onKeyUp:d,onCellClick:p}=n,f=ab(NX(t)),h=sb(LX),m=ab(xV),g=ab(Ub),b=ab(Fb),v=ab(Bb),y=ab(xU),x=ab(wb),S=ab(FX),w=o[t]?.[e],{handleMouseDown:C,handleMouseOver:E,handleMouseUp:R,cellSelectionState:A}=function(e){const t="object"==typeof e,r=ab($b),n=sb(vU),o=ab(yU(e));if(WK(e),t&&r){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=BK(HX,e,n,$X);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(w),I=((e,t,r,n)=>{const o=k(null),i=r&&(!r.isNumeric||r.isDual),a=r?.isTotalRow??!1,s=q(r=>{const o=r.contentBoxSize.at(0)?.blockSize;o&&i&&n(o,e,t,a)},[a,t,n,e,i]);return iG({ref:o,callback:s}),o})(t,e,w,s),P=i[e]?.isDim?m.dimension.values:m.measure.values,D=HK(i[e].id);if("object"==typeof w){const n=((e,t,r,n,o,i,a)=>{const s=e.isTotalRow&&a("TLV-2303-SUB-TOTALS");let l=KK(o,i,e);l=s?i.subTotalRow:l,l=UK(l,i,e,t.isDim);const c=e.isNull||s&&t.isDim?l:HH(l,e.qAttrExps,t.qAttrExprInfoIDs);return n!==U$.Selected||s?n!==U$.Disabled||s?r?{...c,...i.grid.hoverColors}:c:{...c,color:r?i.grid.hoverColors?.color:c.color,background:`${lH}, ${r?i.grid.hoverColors?.background:c.background}`}:{...c,...i.selectedColors}})(w,i[e],a&&f,A,P,m,x),o={rowindex:t,columnindex:e},s=r=>{v&&p?.(t,e),C?.(r)},k=u?r=>{u(r,t,e,w)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${A} ${ng}`,tabIndex:-1,style:{...r,...n,display:"flex",alignItems:"start",borderColor:m.grid.border,borderTop:"0px",borderBottomWidth:!S&&w.isLastRow?"0px":"1px",borderRightWidth:xH(g,w.isLastColumn,y),borderLeftWidth:SH(g,w.isLastColumn,y),justifyContent:gH(w,g),borderStyle:"solid",padding:"4px 12px",boxSizing:"border-box",cursor:"default",overflow:"hidden",textAlign:w.align,opacity:D},onMouseDown:s,onMouseUp:R,onMouseOver:E,onMouseEnter:a?()=>{h(t)}:void 0,onMouseLeave:a?()=>{h(-1)}:void 0,onKeyDown:k,onKeyUp:d,title:b?w.representation.text:void 0,...o,children:nr.jsx($K,{cellSelectionState:A,hideTickIcon:!!w.isTotalRow,children:nr.jsx(_K,{forwardRef:m.contentStaticLineCount||1===l?void 0:I,cell:w,style:n,lineClamp:l,virtualizedCell:!0,resizeObserverTaskScheduler:c})})})}return nr.jsx(_X,{style:{...r,...P,borderColor:m.grid.border,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box",opacity:D}})};var VX=j(BX,IX);const WX=oA(Kg(async e=>{const t=e(Rb),r=e(Qb),n=e(EY).page,{qDataPages:o}=t.qHyperCube;if(0!==n||0===o.length){const e=n*Math.min(BH,t.qHyperCube.qSize.qcy);if(r&&"getHyperCubeData"in r)return r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:e,qWidth:50,qHeight:100}])}return[...o]})),UX=Kg(e=>{const t=e(IY),r=e(qX),n=e(EV);return Math.min(t,Math.ceil(r.height/n))}),GX=Kg(e=>{const t=e(DV),r=e(qX);return t.reduce((e,t)=>e.width<r.width?{width:e.width+t,count:e.count+1}:e,{count:0,width:0}).count}),KX=e=>{const t=k(e);return t.current=e,t},YX=({qLeft:e,qTop:t,qWidth:r,qHeight:n})=>`${e}-${t}-${r}-${n}`,XX=e=>-1===e.qElemNumber||!!e.qIsTotalCell,JX=(e,t,r,n,o)=>{const i=e[r];if(!i)return!0;for(let e=t;e<t+n;e++){const t=i[e];if(t?.rowIdx!==o)return!0}return!1},ZX=(e,t,r,n)=>{const o=e.slice(r,n);return 0===o.length||o.some(e=>!e[t])},QX=(e,t,r,n,o,i,a,s)=>{e.forEach(e=>{e.qMatrix.forEach((l,c)=>{const u=e.qArea.qTop-t.page*t.rowsPerPage,{row:d,pageRowIdx:p}=((e,t,r,n,o,i,a,s,l,c)=>{const{qSize:u}=a.qHyperCube,d=n.qTop+r,p=o+r,f=e[p]??[],h=t.some(XX);return t.forEach((e,t)=>{const r=t+n.qLeft;if(f.at(r))return;const{colIdx:o,isDim:m,isLocked:g,bodyTextAlign:b,selectionColIdx:v,qAttrExprInfoIndex:y,representation:x,conditionalColoring:S,qMiniChart:w}=i[r],C=s.flags.isEnabled("VNA-670-SEPARATE_NULL_VALUE_STYLING"),E=!m&&e.qIsNull,R=m&&WB(e,m),A=E||R?VB(m,e,a,C):e.qText,I=E?Q$(A):Z$(e),k=Z$(e)&&!Q$(e.qText??"");f[r]={id:Zz(),...e,align:$B(I,b,c),rowIdx:d,colIdx:o,isSelectable:m&&!g&&!h&&!R,isTotalRow:h,pageRowIdx:p,pageColIdx:r,selectionColIdx:v,isLastRow:d===u.qcy-1,isLastColumn:r===u.qcx-1,isNumeric:I,isDual:k,isNull:(!E||!I)&&WB(e,m),representation:MB({cell:e,representationProperties:x,attrExprInfoIndex:y,env:s,conditionalColoring:S,miniChartOnMeasure:w,getText:()=>A,direction:c,enabledFeatures:{[lF.Image]:!0,[lF.Indicator]:!0,[lF.MiniChart]:!0}})},l(f[r],d,r)}),{row:f,pageRowIdx:p}})(r,l,c,e.qArea,u,n,o,i,a,s);r[p]=d})})},eJ=({gridState:e,setEstimatedCellHeight:t})=>{const r=ab(Rb),n=ab(lv),o=ab(Qb),i=ab(Sb),a=ab(Ub),s=ab(EY),l=ab(WX),c=ab(iV),u=ab(IY),d=ab(UX),p=ab(GX),f=k([]),h=q((e,n)=>{const o=Array.isArray(n)?n.slice(0,u):(e=>Array(e).fill(void 0))(u);return QX(e,s,o,c,r,i,t,a),f.current=o,o},[u,s,c,r,i,t,a]),[m,g]=I(()=>h(l??[]));Ym(()=>{g(h(l??[]))},[l,a,u]);const b=((e,t)=>{const r=ab(Cb),n=k(new Set),o=k(new Set),i=k(new Set),a=KX(e),s=KX(t),l=A(()=>({enqueue:e=>{const t=YX(e);i.current.has(t)||(n.current.add(e),i.current.add(t),1===n.current.size&&setTimeout(async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),o.current.add(e);try{const t=(e=>{const t=[];return e.forEach(e=>{if(t.length>0){const r=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(r,e)?r.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(r,e)?r.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})}),t})(e),r=await a.current(t);o.current.has(e)&&s.current(r)}catch(t){e.forEach(e=>{i.current.delete(YX(e))}),r.error({msg:"Failed to fetch pages",payload:t})}finally{o.current.delete(e)}}},75))},clear:()=>{n.current.clear(),o.current.clear(),i.current.clear()}}),[r,a,s]);return l})(e=>o&&"getHyperCubeData"in o?o.getHyperCubeData("/qHyperCubeDef",e):Promise.resolve([]),e=>{g(t=>h(e,t))}),v=q((e,t,r,n)=>{for(let o=e;o<e+r;o++)if(ZX(f.current,o,t,n)){const e={qLeft:o,qTop:t,qHeight:n,qWidth:1};b.enqueue(e)}},[b]),y=q((e,t,r,n)=>{for(let o=t;o<t+n;o++){const t=Math.max(0,o-s.page*s.rowsPerPage);if(JX(f.current,e,t,r,o)){const t={qLeft:e,qTop:o,qHeight:1,qWidth:r};b.enqueue(t)}}},[b,s]);return M(()=>{if(void 0===l)return;const{qcx:t,qcy:n}=r.qHyperCube.qSize,o=e.current.overscanRowStartIndex,i=e.current.overscanColumnStartIndex,a=o+s.page*s.rowsPerPage,c=t-i,u=s.rowsPerPage-o,f=Math.min(100,c,t,p+5),h=Math.min(100,u,n,d+25);return y(i,a,f,h),()=>{b.clear()}},[l,r,d,p,s,b,y,e,n]),{rowsInPage:m,loadRows:y,loadColumns:v}},tJ=e=>{let t=0;return e.forEach(e=>{e>t&&(t=e)}),t},rJ=(e,t)=>void 0===e||Math.abs(e-t)>1e-4,nJ=({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>{const o=ab(xV),i=ab(DV),{estimateLineCount:a}=Bm(o.dimension.values),s=TH(o.dimension.values.fontSize),l=e||t||1===r;return q((e,t,o)=>{if(l||e.representation.type===lF.Image||e.isNumeric&&!e.isDual)return;const c=(e=>Math.max(0,e-24-1))(i[o]),u=e.representation.text?a({text:e.representation.text,maxWidth:c,isNumeric:!1}):1,d=Math.min(r,Math.max(1,u));n(d*s,t,o,e.isTotalRow??!1)},[l,i,a,r,s,n])},oJ=({isStaticNbrOfLines:e,minRowHeight:t,state:r,staticRowHeight:n=0})=>{const o=ab(TB);L(()=>{const i=e?n:((e,t)=>{const r=0===t?0:e/t;return Math.ceil(r)})(r.sumHeight,r.rowHeights.size);o.estimatedRowHeight=Math.max(i,t)},[e,t,r,n,o])},iJ=({isSnapshot:e,gridRef:t})=>{const r=ab(xV),n=ab(IY),[o,i]=I(()=>({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})),a=ab(CV),s=ab(EV),l=ab(RV),c=!!r.contentStaticLineCount,u=Math.max(8e6/n,s,l)-9,d=u+9,p=Math.max(1,Math.min(r.grid.contentLineClamp,Math.round(u/a))),f=(({lineClamp:e,lineHeight:t,isStaticNbrOfLines:r})=>r?t*e+8+1:void 0)({lineClamp:p,lineHeight:a,isStaticNbrOfLines:c});(({gridRef:e,setState:t})=>{const r=ab(Rb),n=ab(EY),o=ab(DV),i=r.multiline?.wrapTextInCells,a=r.nullValueRepresentation?.text;Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),t({rowHeights:new Map,cellHeightsInGrid:new Map,sumHeight:0})},[r.qHyperCube.qSize.qcx,r.qHyperCube.qSize.qcy,n.page,i,a]),Ym(()=>{e.current?.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})},[o])})({gridRef:t,setState:i});const h=(({setState:e,maxCellHeight:t,gridRef:r})=>{const n=ab(EV),o=ab(RV);return q((i,a,s,l=!1)=>{z(()=>{e(e=>{const c=l?o:n,u=Math.max(c,i+9),d=Math.min(t,u),p=e.cellHeightsInGrid.get(a)??e.cellHeightsInGrid.set(a,new Map).get(a);if(!rJ(p.get(s),d))return e;const f={...e},h=e.rowHeights.get(a);p.set(s,d);const m=void 0===h||d>=h?d:tJ(p);return f.rowHeights.set(a,m),f.sumHeight=e.sumHeight-(h??0)+m,r.current?.resetAfterIndices({columnIndex:s,rowIndex:a,shouldForceUpdate:!1}),f})})},[e,t,n,o,r])})({maxCellHeight:d,setState:i,gridRef:t}),m=(({isSnapshot:e,isStaticNbrOfLines:t,lineClamp:r,setCellHeight:n})=>q((o,i,a,s)=>{e||t||1===r||n(o,i,a,s)},[e,t,r,n]))({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),g=nJ({isSnapshot:e,isStaticNbrOfLines:c,lineClamp:p,setCellHeight:h}),b=q(e=>c?f??s:o.rowHeights.get(e)??s,[c,s,o.rowHeights,f]);return oJ({isStaticNbrOfLines:c,minRowHeight:s,state:o,staticRowHeight:f}),{setMeasuredCellHeight:m,setEstimatedCellHeight:g,getRowHeight:b,lineClamp:p}},aJ=(e,t)=>{L(()=>()=>{t(0)},[e,t]);const r=q(e=>{const r=e.contentBoxSize.at(0)?.blockSize;void 0!==r&&t(r)},[t]);iG({ref:e,callback:r})};let sJ=function(e){return e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None",e}({});const lJ=({loadRows:e,loadColumns:t,gridState:r})=>{const n=ab(TB),o=ab(Rb),i=ab(EY),a=ab(IY);return q(({overscanColumnStartIndex:s,overscanColumnStopIndex:l,overscanRowStartIndex:c,overscanRowStopIndex:u,visibleColumnStartIndex:d,visibleColumnStopIndex:p,visibleRowStartIndex:f,visibleRowStopIndex:h})=>{const{verticalScrollDirection:m,horizontalScrollDirection:g}=(({overscanColumnStartIndex:e,overscanRowStartIndex:t},r,n)=>{let o,i;return o=n>t?sJ.Down:n<t?sJ.Up:sJ.None,i=r>e?sJ.Right:r<e?sJ.Left:sJ.None,{verticalScrollDirection:o,horizontalScrollDirection:i}})(r.current,s,c);if(r.current.overscanColumnStartIndex=s,r.current.overscanColumnStopIndex=l,r.current.overscanRowStartIndex=c,r.current.overscanRowStopIndex=u,c>a)return;const b=s,v=c+i.page*i.rowsPerPage,y=l-s+1,x=u-c+1;if(n.visibleLeft=d,n.visibleWidth=p-d+1,n.visibleTop=f+i.page*i.rowsPerPage,n.visibleHeight=h-f+1,n.page=i.page,n.rowsPerPage=i.rowsPerPage,m===sJ.Down){const t=x+25;e(b,v,y,c+t>a?a-c:t)}else if(m===sJ.Up){const t=x+25,r=i.page*i.rowsPerPage,n=Math.max(r,v-25);e(b,n,y,t)}if(g===sJ.Right){const e=o.qHyperCube.qSize.qcx-b,r=y+5,n=Math.min(e,r);t(b,v,n,x)}else if(g===sJ.Left){const e=Math.max(0,b-5),r=Math.min(o.qHyperCube.qSize.qcx,y+5);t(e,v,r,x)}},[r,a,i.page,i.rowsPerPage,n,e,o.qHyperCube.qSize.qcx,t])};const cJ=({columnIndex:e,data:t,rowIndex:r})=>{const n=t.rowsInPage[r]?.[e];return n?.id??`${r}-${e}`},uJ=(e,t)=>{if(!e||!t)return;const r=e.scrollHeight-e.clientHeight,n=Math.round(r*(e=>{const t=e.scrollHeight-e.clientHeight;return t<=0?0:Math.max(0,Math.min(1,e.scrollTop/t))})(t));e.scrollTop!==n&&(e.scrollTop=n)},dJ={overflow:"hidden",willChange:"auto"},pJ=_((e,t)=>{const{handleBodyKeyDown:r,handleBodyKeyUp:n,focusBodyCellOnClick:o}=GY(),i=ab(iV),a=ab(qX),s=sb(DX),l=ab(OX),c=ab(TB),u=ab(Rb),d=ab(Ub),p=ab(DV),f=ab(IY),h=ab(PY),m=sb(kY),g=k(null),b=k(null),v=k(null),y=k({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),x=k(0),S=!!_H(u)?.content?.hoverEffect,{setMeasuredCellHeight:w,setEstimatedCellHeight:C,getRowHeight:E,lineClamp:R}=iJ({isSnapshot:!!u.snapshotData,gridRef:g}),{rowsInPage:I,loadRows:P,loadColumns:D}=eJ({gridState:y,setEstimatedCellHeight:C}),T=lJ({loadRows:P,loadColumns:D,gridState:y}),O=XG(),N=A(()=>({rowsInPage:I,columns:i,isHoverEnabled:S,lineClamp:R,setMeasuredCellHeight:w,resizeObserverTaskScheduler:O,onKeyDown:r,onKeyUp:n,onCellClick:o}),[I,i,S,R,w,O,r,n,o]);return L(()=>{1===x.current&&g.current?.scrollToItem({rowIndex:f-1,align:"start"})}),function(e){const t=sb(vU),{shouldRefocusRef:r}=ab(jY),n=ab(iv),o=ab(AY);M(()=>{t({type:G$.UpdatePageRows,payload:{pageRows:e}})},[t,e]);const i=q(()=>{r&&(r.current=n.contains(document.activeElement))},[r,n]);JG({updateShouldRefocus:i,tableWrapperRef:{current:o}})}(I),F(t,()=>({interpolatedScrollTo:(e,t)=>{const r=(v.current?.clientHeight??l)-l,n=Math.round(r*e);x.current=e,1===x.current?(g.current?.scrollToItem({rowIndex:f-1,align:"start"}),g.current?.scrollTo({scrollLeft:t})):g.current?.scrollTo({scrollTop:n,scrollLeft:t})}}),[v,l,f]),M(()=>(m(()=>(e,t)=>{g.current?.scrollToItem({rowIndex:e,columnIndex:t,align:"auto"}),uJ(h,b.current)}),()=>{m(null)}),[h,m]),aJ(v,s),nr.jsx(mX,{"data-key":"body",ref:g,outerRef:b,innerRef:v,style:dJ,columnCount:i.length,columnWidth:e=>p[e],height:l,rowCount:f,rowHeight:E,estimatedRowHeight:c.estimatedRowHeight,width:a.width,itemData:N,onItemsRendered:T,itemKey:cJ,className:"sn-table-body",direction:d,children:VX})});var fJ=j(pJ);const hJ=({children:e})=>{const t=ab(qV),r=ab(zX);return nr.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:t,height:r},children:e})},mJ=(e,t)=>{const r=k(null),n=ab(DV);L(()=>{r.current&&t(r.current.getBoundingClientRect().height+9,e)},[t,r,e,n.length]);const o=q(r=>{const n=r.contentBoxSize.at(0)?.blockSize;n&&t(n+9,e)},[e,t]);return iG({ref:r,callback:o}),r},gJ=_c("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"color"!==e})(({interactions:e,hoverBackground:t,background:r,applicableStyle:n,color:o})=>({...n,background:r,color:o,"&&:hover:not(:has(button:hover))":{background:e.active?t:void 0}})),bJ=({index:e,style:t,data:r})=>{const{columns:n,columResizeHandler:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Ub),u=ab(_b),d=ab(xU),p=sb(PH),f=ab(oV),h=ab(Bb),m=ab(DV)[e],g=ab(Zb),b=ab(qG(e)),v=n[e],{open:y,setOpen:x,handleOpenMenu:S,toggleSortOrder:w}=dY({isInteractionEnabled:h,column:v}),C=ab(qb),E=mJ(e,i),R=n.length-1===e,A=C?XU:vG,{ref:I,isDragging:k}=mY(v,e),P=HK(v.id),D=b&&!g.enabled&&h?0:-1,M=a?t=>{a(t,e,S)}:void 0;return nr.jsxs(gJ,{"data-dragging":k,ref:I,className:`sn-table-cell ${ng}`,title:u.passive?v.label:void 0,onClick:C?S:w,applicableStyle:{...l.header,...wU(l,f,!0)},style:{...t,cursor:"pointer",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderRightWidth:xH(c,R,d),borderLeftWidth:SH(c,R,d),borderTopWidth:"0px",borderBottomWidth:"1px",padding:"4px",justifyContent:v.headTextAlign,boxSizing:"border-box",zIndex:n.length-e,flexDirection:"right"===v.headTextAlign?"row-reverse":"row",userSelect:"none",opacity:P},interactions:u,hoverBackground:v.headerColor?.headerMenuHoverBackground??l.headerMenuHoverBackground,background:C&&y?v.headerColor?.headerMenuActiveBackground??l.headerMenuActiveBackground:v.headerColor?.background??l.header.background,color:v.headerColor?.color??l.header.color,tabIndex:D,onKeyDown:M,onMouseDown:t=>{t.preventDefault(),h&&s?.(e)},"data-col":e,children:[nr.jsx(A,{forwardRef:E,column:v,isInteractionEnabled:h,open:y,setOpen:x,columnWidth:m}),nr.jsx(cY,{column:v,isLastColumn:R,onColumnResize:o,setIsAdjustingWidth:p})]})},vJ=e=>{const[t,r]=I(new Map);Ym(()=>{r(new Map)},[e.length]);const n=q((e,t)=>{r(r=>rJ(r.get(t),e)?new Map(r).set(t,e):r)},[]);return{rowHeight:A(()=>tJ(t),[t]),setMeasuredCellHeight:n}},yJ=(e,t)=>{F(e,()=>({scrollTo:e=>t.current?.scrollTo(e)}),[t])},xJ=e=>{const t=ab(lv),r=ab(Rb),n=ab(EY),o=ab(DV);Ym(()=>{e.current?.resetAfterIndex(0,!1)},[r,n,e,o,t])},SJ={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},wJ=_((e,t)=>{const{columResizeHandler:r}=e,n=ab(iV),o=ab(qX),i=sb(kX),a=S.useRef(null),s=k(null),l=ab(SV),c=ab(Rb),u=ab(Kb),d=ab(Ub),p=ab(DV),{rowHeight:f,setMeasuredCellHeight:h}=vJ(n),m=sY(u,c),{handleHeadKeyDown:g,focusHeadCellOnClick:b}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-head-row",ref:a,outerRef:s,layout:"horizontal",style:{...SJ,...m?{display:"none"}:void 0},itemCount:n.length,itemSize:e=>p[e],height:Math.max(f+8,l),width:o.width,itemKey:e=>n[e].id,itemData:{columns:n,columResizeHandler:r,setMeasuredCellHeight:h,onKeyDown:g,onCellClick:b},direction:d,children:bJ})});var CJ=j(wJ);const EJ=_((e,t)=>{const{children:r,onScroll:n}=e,o=ab(Ub),i=ab(Hb),{width:a,height:s}=ab(TX),l=sb(PY),c=q(e=>{l(e),"function"==typeof t?t(e):t&&(t.current=e)},[t,l]);return nr.jsx("div",{"data-testid":"scrollable-container",ref:c,style:{overflow:i?"auto":"hidden",width:a,height:s},onScroll:n,dir:o,tabIndex:-1,children:r})}),RJ=({children:e})=>{const t=ab(Ub),r=ab(qX);return nr.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"rtl"!==t?"0px":void 0,right:"rtl"===t?"0px":void 0,width:r.width,height:r.height},children:e})},AJ=({index:e,style:t,data:r})=>{const{columns:n,totals:o,setMeasuredCellHeight:i,onKeyDown:a,onCellClick:s}=r,l=ab(xV),c=ab(Rb),u=ab(Ub),d=ab(Fb),p=ab(Bb),f=ab(xU),h=ab(FX),m=mJ(e,i),g=n[e].totalInfo,{totalsTextAlign:b,isTotalNumeric:v}=n[e],y=c.qHyperCube.qSize.qcx-1===e,x=HK(n[e].id),S=a?t=>{a(t,e)}:void 0;return nr.jsx("div",{className:`sn-table-cell ${ng}`,tabIndex:-1,title:d?g:void 0,"data-col":e,onKeyDown:S,onMouseDown:t=>{t.preventDefault(),p&&s?.(e)},style:{...t,...l.totalRow,...wU(l,o,!1),background:l.totalRow.background,display:"flex",alignItems:o.atTop?"end":"start",borderStyle:"solid",borderRightWidth:xH(u,y,f),borderLeftWidth:SH(u,y,f),borderTopWidth:o.atBottom?"1px":"0px",borderBottomWidth:h&&o.atBottom||o.atTop?"1px":"0px",padding:"4px 12px",justifyContent:b,textAlign:b,boxSizing:"border-box",cursor:"default",opacity:x},children:nr.jsx(YU,{forwardRef:v?void 0:m,isNumeric:v,children:g})})},IJ=_((e,t)=>{const{totals:r}=e,n=ab(iV),o=ab(qX),i=sb(PX),a=k(null),s=k(null),l=ab(wV),c=ab(Ub),u=ab(Rb),d=ab(DV),{rowHeight:p,setMeasuredCellHeight:f}=vJ(n),{handleTotalsKeyDown:h,focusTotalsCellOnClick:m}=GY();return yJ(t,a),xJ(a),aJ(s,i),nr.jsx(CX,{className:"sn-table-totals-row",ref:a,outerRef:s,layout:"horizontal",style:SJ,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:Math.max(p,l),width:o.width,itemData:{columns:n,totals:r,setMeasuredCellHeight:f,onKeyDown:h,onCellClick:m},direction:c,children:AJ})});var kJ=j(IJ);const PJ=(e,t,r)=>{const n=ab(Ub),o=ab(TB);return q(i=>{const{scrollHeight:a,clientHeight:s,scrollTop:l}=i.currentTarget,c=((e,t)=>{const{scrollWidth:r,clientWidth:n,scrollLeft:o}=e,i=r-n;if("rtl"===t){if(o>i)return i;if(o<0)return Math.abs(o)}return o})(i.currentTarget,n),u=Math.max(0,Math.min(1,l/(a-s)));o.scrollTopRatio=u,o.scrollLeft=c,r.current?.interpolatedScrollTo(Number.isNaN(u)?0:u,c),e.current?.scrollTo(c),t.current?.scrollTo(c)},[o,r,e,t,n])};var DJ=j(()=>{const e=ab(oV),t=k(null),r=k(null),n=k(null),o=k(null),i=PJ(r,n,o),a=q(()=>{t.current&&(t.current.scrollTop=0)},[t]);OG(),(e=>{const t=ab(aV),r=ab(EY),n=ab(lv),o=ab(IY);M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollLeft=0,e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[t,e]),M(()=>{const t=requestAnimationFrame(()=>{e.current&&(e.current.scrollTop=0)});return()=>{cancelAnimationFrame(t)}},[r,o,n,e])})(t),BG(t);const s=nr.jsx(kJ,{ref:n,totals:e},"totals");return nr.jsxs(PG,{children:[nr.jsx(EJ,{ref:t,onScroll:i,children:nr.jsxs(hJ,{children:[nr.jsxs(RJ,{children:[nr.jsx(CJ,{ref:r,columResizeHandler:a}),e.atTop?s:null,nr.jsx(fJ,{ref:o}),e.atBottom?s:null]}),nr.jsx(SU,{})]})}),nr.jsx(wG,{isPagination:!1})]})});const MJ=()=>{const e=ab(Rb),t=ab(ov),r=ab(_b),{paginationNeeded:n,totalRowCount:o,totalColumnCount:i,totalPages:a}=ab(nV),s=ab(lv),l=ab(cv),c=ab(Zb),[u,d]=lb(EY),p=k(null),f=k(!1),h=sb(RY),m=sb(AY);M(()=>{h(f)},[h]);const g=S.useCallback(e=>{p.current=e,m(e)},[m]),{handleWrapperKeyDown:b}=GY();return(()=>{const e=ab(iv),{keyboard:t}=ab(NY),r=ab(TG),n=ab(oV),o=ab(IY),{scrollToCell:i}=ab(LY),{shouldRefocusRef:a}=ab(jY),s=k({focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}),l=k(null),c=k(null);L(()=>{s.current={focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:e}},[r,n,o,i,e]),M(()=>{let e=!1;const{focusedCellCoord:r,totalsPosition:n,rowCount:o,scrollToCell:i,rootElement:u}=s.current;if("function"==typeof u.querySelector){if(t.active){const[t,a]=r,d=n.atTop?2:1;if(t>=d&&t<d+o){null!==c.current&&(cancelAnimationFrame(c.current),c.current=null),i?.(t-d,a);const r=t=>{if(e)return;const n=FY(s.current.rootElement,s.current.focusedCellCoord,s.current.totalsPosition,s.current.rowCount);n&&document.activeElement!==n&&EU(n),n&&document.activeElement===n||t>0&&(l.current=requestAnimationFrame(()=>{r(t-1)}))};l.current=requestAnimationFrame(()=>{e||r(5)})}else{const e=FY(u,r,n,o);e&&EU(e)}}else null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),c.current=requestAnimationFrame(()=>{if(e)return;const t=s.current;if(a?.current)return;if(t.rootElement.contains(document.activeElement))return;const r=FY(t.rootElement,t.focusedCellCoord,t.totalsPosition,t.rowCount);r?.blur(),WY(t.rootElement)});return()=>{e=!0,null!==l.current&&(cancelAnimationFrame(l.current),l.current=null),null!==c.current&&(cancelAnimationFrame(c.current),c.current=null)}}},[t.active,e,a])})(),MG(p,f),nr.jsxs(WU,{ref:g,"data-testid":"sn-table",onKeyDown:b,children:[nr.jsx(GG,{}),nr.jsx(DJ,{}),nr.jsx(iU,{paginationNeeded:n,handleChangePage:e=>{d(e)},pageInfo:u,totalRowCount:o,totalColumnCount:i,totalPages:a,keyboard:c,translator:l,theme:s,interactions:r,rect:t,layout:e})]})};var TJ=j(MJ);const qJ=e=>{const t=e.get(Qb),r=e.get(Xb),n=e.get(Eb),i=e.get(Ub);o(()=>{n&&t&&(r?function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(Ii,{stylisPlugins:"rtl"===t?[H$]:void 0,children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(yY,{})})})})}))}(e):function(e){const t=e.get(Ub),r=e.get(sv),n=LV(t);r.render(nr.jsx(S.StrictMode,{children:nr.jsx(Fc,{theme:n,children:nr.jsx(eb,{store:e,children:nr.jsx(OV,{children:nr.jsx(TJ,{})})})})}))}(e))},[n,r,e,t,i])};function OJ(e,t){const r=e.getElementsByClassName("sn-table-container")[0];if(!r)return{};const n=r.getBoundingClientRect(),o=e.getElementsByClassName("sn-table-head-row")[0],i=o?.getBoundingClientRect()??{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],s=a?.getBoundingClientRect()??{height:0},l=e.getElementsByClassName("sn-table-data-row"),c={top:n.y+i.height+(t.atTop?s.height:0),bottom:n.y+n.height-(t.atBottom?s.height:0)},u=((e,t)=>{if(!e)return-1;for(let r=0;r<e.length;r++)if(e[r].getBoundingClientRect().bottom>t.top)return r;return-1})(l,c),d=((e,t)=>{if(!e)return-1;for(let r=e.length-1;r>-1;r--){const n=e[r].getBoundingClientRect();if(t.bottom>n.top)return r}return-1})(l,c),p=((e,t,r)=>{if(!e||0===e.length||r<0)return 0;const n=e[r].getBoundingClientRect();return Math.max(t.top-n.top,0)})(l,c,u);return{visibleRowStartIndex:u,visibleRowEndIndex:d,rowPartialHeight:p}}const LJ=(e,t)=>{if(t)for(let r=0;r<t.length;r++){const n=t[r].getAttribute("rowindex");if(n&&parseInt(n,10)===e)return t[r]}},NJ=(e,t,r)=>{if(!e)return!1;const n=e.y+e.height/2;return n>=t&&n<=r};const jJ=(e,t,r,n,o)=>{if(e<0)return 0;const i=r.qHyperCube.qSize.qcy,a=n.rowsPerPage||UB.rowsPerPage,s=o?.isMultiPage?0:3;return Math.min(i,a,e-t+1+s)},_J=(e,t,r,n,o)=>{if(n&&!n.isMultiPage)return n;const i=jB(e,n);if(o){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:a=-1,rowPartialHeight:s}=OJ(r,i);return{rowPartialHeight:s,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:jJ(a,o,e,t,n),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}}const{visibleRowStartIndex:a=-1,visibleRowEndIndex:s=-1}=function(e,t){const r=e.querySelector(".sn-table-body"),n=r?.getBoundingClientRect(),o=r?.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!n)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:s=0,page:l=0,rowsPerPage:c=0}=t,u=l*c,d=a-u,p=d+s-1,f=LJ(d,o),h=f?.getBoundingClientRect();if(!f||!h)return{};const m=n.y;if(1-i<.001)return{visibleRowStartIndex:d+(h.y>=m-4?0:1)+u,visibleRowEndIndex:p+u};const g=n.y+n.height,b=(NJ(h,m,g)?d:d+1)+u;let v=p+u;const y=LJ(p,o),x=y?.getBoundingClientRect();return y&&x&&(NJ(x,m,g)||(v=p-1+u)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(r,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:a,visibleHeight:jJ(s,a,e,t,n),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:i}},zJ={version:JSON.stringify("6.47.0"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals"},usePagination:!1,components:[]};var FJ=e=>({properties:{initial:zJ},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:t=>Dv({...t,env:e}),exportProperties:Ev,exploration:Hz(e)});const $J=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),HJ=e=>e.getStyle("object","straightTableV2","backgroundColor");function BJ(r){return{qae:FJ(r),ext:t$(r),component(){const n=u(),i=e(()=>Jg(),[!1!==n.usePagination]);i.set(Sb,r);const s=d();i.set(iv,s),i.set(Rb,n),i.set(cb,p()),i.set(Qb,f()),i.set(_b,h()),i.set(cv,m()),i.set(Nb,g()),i.set(Wb,t()),i.set(Zb,b()),i.set(ov,v()),i.set(db,y());const x=_m(n,s,$J,HJ);i.set(lv,x),i.set(Eb,Km(x,n,r)),i.set(ub,_t()),(e=>{const t=e.get(sv);o(()=>()=>{t.unmount()},[t])})(i),a?.((e,t)=>{const r=t.target,n=r?.closest(`.${ng}`);n?.title&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",id:"copy-cell-context-item",select:()=>{fg(n)}})}),(({store:e})=>{const t=e.get(Rb),r=e.get(Qb),n=e.get(iv),o=e.get(nv),i=e.get(Kb),a=e.get(Xb);l(async s=>{const l=s;if(!l.snapshotData||!r||l.snapshotData.content)return l;if("getHyperCubeData"in r){const s=e.get(TB),{rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b}=_J(t,s,n,i,a);l.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:h,qWidth:t.qHyperCube.qSize.qcx,qHeight:m}]),l.snapshotData.content={rowPartialHeight:c,scrollLeft:u,scrollTopRatio:d,visibleLeft:p,visibleWidth:f,visibleTop:h,visibleHeight:m,rowsPerPage:g,page:b,size:{width:o.width,height:o.height},estimatedRowHeight:s.estimatedRowHeight}}return l}),c(()=>({getViewState:()=>_J(t,e.get(TB),n,i,a)}),[t,e,n,a])})({store:i}),qJ(i)}}}export{BJ as default};
|