@nebula.js/stardust 4.2.3 → 4.2.4
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/dev.js +7 -7
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +7 -7
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +3 -3
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
package/dist/stardust.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.2.
|
|
2
|
+
* @nebula.js/stardust v4.2.4
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -103,7 +103,7 @@
|
|
|
103
103
|
animation-iteration-count: infinite;
|
|
104
104
|
animation-delay: 200ms;
|
|
105
105
|
}
|
|
106
|
-
`),Sx.rippleVisible,Ox,550,(({theme:e})=>e.transitions.easing.easeInOut),Sx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Sx.child,Sx.childLeaving,Ix,550,(({theme:e})=>e.transitions.easing.easeInOut),Sx.childPulsate,Tx,(({theme:e})=>e.transitions.easing.easeInOut)),Nx=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Rf(n,wx),[l,s]=H.useState([]),c=H.useRef(0),u=H.useRef(null);H.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=H.useRef(!1),p=H.useRef(null),f=H.useRef(null),h=H.useRef(null);H.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=H.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Lm.jsx(_x,{classes:{ripple:$g(o.ripple,Sx.ripple),rippleVisible:$g(o.rippleVisible,Sx.rippleVisible),ripplePulsate:$g(o.ripplePulsate,Sx.ripplePulsate),child:$g(o.child,Sx.child),childLeaving:$g(o.childLeaving,Sx.childLeaving),childPulsate:$g(o.childPulsate,Sx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=H.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.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:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=H.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=H.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return H.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Lm.jsx(Px,kf({className:$g(Sx.root,o.root,i),ref:h},a,{children:Lm.jsx(xx,{component:null,exit:!0,children:l})}))}));var Mx=Nx;function qx(e){return wf("MuiButtonBase",e)}var zx=Ef("MuiButtonBase",["root","disabled","focusVisible"]);const Dx=["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"],Ax=Vv("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"},[`&.${zx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jx=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:T}=n,P=Rf(n,Dx),_=H.useRef(null),N=H.useRef(null),M=of(N,I),{isFocusVisibleRef:q,onFocus:z,onBlur:D,ref:A}=hf(),[j,F]=H.useState(!1);s&&j&&F(!1),H.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),_.current.focus()}})),[]);const[B,W]=H.useState(!1);H.useEffect((()=>{W(!0)}),[]);const $=B&&!c&&!s;function U(e,t,n=u){return rf((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}H.useEffect((()=>{j&&d&&!c&&B&&N.current.pulsate()}),[c,d,j,B]);const V=U("start",S),G=U("stop",m),K=U("stop",g),Z=U("stop",E),X=U("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=U("start",R),J=U("stop",C),Y=U("stop",k),ee=U("stop",(e=>{D(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=rf((e=>{_.current||(_.current=e.currentTarget),z(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=H.useRef(!1),oe=rf((e=>{d&&!re.current&&j&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=rf((e=>{d&&" "===e.key&&N.current&&j&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===T?"button":T,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=of(t,A,_),ce=kf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bf({root:["root",t&&"disabled",n&&"focusVisible"]},qx,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Lm.jsxs(Ax,kf({as:ae,className:$g(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:T},le,P,{children:[i,$?Lm.jsx(Mx,kf({ref:M,center:o},O)):null]}))}));var Fx=jx;function Bx(e){return wf("MuiButton",e)}var Wx=Ef("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var $x=H.createContext({});const Hx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ux=e=>kf({},"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}}),Vx=Vv(Fx,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Up(n.color)}`],t[`size${Up(n.size)}`],t[`${n.variant}Size${Up(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return kf({},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":kf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rv(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})`:rv(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})`:rv(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":kf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Wx.focusVisible}`]:kf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Wx.disabled}`]:kf({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 ${rv(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Wx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Wx.disabled}`]:{boxShadow:"none"}})),Gx=Vv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>kf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ux(e)))),Kx=Vv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>kf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ux(e)))),Zx=H.forwardRef((function(e,t){const n=H.useContext($x),r=$v({props:vf(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:m,type:g,variant:v="text"}=r,b=Rf(r,Hx),y=kf({},r,{color:i,component:a,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:h,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return kf({},a,bf({root:["root",i,`${i}${Up(t)}`,`size${Up(o)}`,`${i}Size${Up(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Up(o)}`],endIcon:["endIcon",`iconSize${Up(o)}`]},Bx,a))})(y),S=m&&Lm.jsx(Gx,{className:x.startIcon,ownerState:y,children:m}),w=d&&Lm.jsx(Kx,{className:x.endIcon,ownerState:y,children:d});return Lm.jsxs(Vx,kf({ownerState:y,className:$g(n.className,x.root,l),component:a,disabled:s,focusRipple:!u,focusVisibleClassName:$g(x.focusVisible,p),ref:t,type:g},b,{classes:x,children:[S,o,w]}))}));var Xx=Zx,Qx={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Jx="#009845",Yx="#3F8AB3",eS="#ffffff",tS="#404040",nS="#333333",rS="#1A1A1A",oS={mode:"light",palette:{primary:{main:tS,contrastText:eS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:tS,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:eS,default:eS,lightest:eS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Yx,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Jx,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:eS,alternativeContrastText:tS,excludedContrastText:tS},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},iS={mode:"dark",palette:{primary:{main:nS,contrastText:eS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:eS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:eS,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:tS,lighter:nS,darker:"#262626",darkest:rS},custom:{focusBorder:Yx,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Jx,alternative:nS,excluded:rS,mainContrastText:eS,alternativeContrastText:eS,excludedContrastText:eS},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},aS={},lS=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Wx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Wx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Wx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Wx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function sS(e){let t=oS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=iS));const r=JSON.stringify(t);if(aS[r])return aS[r];const o={palette:i(i({type:t.mode},Qx.palette),t.palette),typography:i({},Qx.typography),shadows:Qx.shadows,props:i({},Qx.props),shape:i({},Qx.shape)};return aS[r]=Fv(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,l=kf({},Rf(e,dv),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.defaultProps=i[e],l.components[e]=t})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=a[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=ig(e.spacing);const s=zm(e.breakpoints||{}),c=l.spacing;l.mixins=kf({gutters:(e={})=>kf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:kf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rf(o,pv),f=d||u||"light";return l.palette=kf({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(i(i({},o),{},{overrides:lS(o)}))),aS[r].name=n,aS[r]}xf.configure((e=>"njs-".concat("e554","-").concat(e.replace("Mui",""))));var cS=U.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),uS=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=H.useState(t);return H.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const[dS,pS]=uS({}),[fS,hS]=uS({}),[mS,gS]=uS({}),[vS,bS]=uS({});function yS(e){if(!e.session)return[];const[t]=dS(),n=e?e.id:null;let r=t.get(n);return H.useEffect((()=>{e&&!r&&(r=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=bS.get(n);t&&(await t.endSelections(e),bS.clear(n),gS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===bS.get(n))return;r(i),bS.set(n,e);const a=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(a),bS.set(n,e)}catch(e){6003!==e.code||r?bS.clear(n):(await t.abortModal(i),l(!0))}};await l()},end:r};hS.set(n,o);const i={model:t,isInModal:()=>!!bS.get(n),isModal:e=>e?bS.get(n)===e:!!bS.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const xS={active:!0,select:!0,passive:!0,edit:!1};function SS(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(xS).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=xS[e],n[e]=!xS[e])})),e.constraints=n,e.interactions=t}const wS=H.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[i]=yS(r),[a,l]=H.useState(n),[s,c]=H.useState(),{theme:u}=H.useMemo((()=>({theme:sS(s)})),[s]),[d,p]=H.useState([]);return H.useEffect((()=>{o&&o()}),[]),H.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>i})),[]),U.createElement(Im,{injectFirst:!0},U.createElement(Kv,{theme:u},U.createElement(cS.Provider,{value:a},d)))}));function ES(e){return wf("MuiSvgIcon",e)}Ef("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],kS=Vv("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),RS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Rf(n,CS),f=kf({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},ES,r)})(f);return Lm.jsxs(kS,kf({as:a,className:$g(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,u?Lm.jsx("title",{children:u}):null]}))}));RS.muiName="SvgIcon";var LS=RS;function OS(e,t){function n(n,r){return Lm.jsx(LS,kf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=LS.muiName,H.memo(H.forwardRef(n))}const IS={configure:e=>{xf.configure(e)}};var TS=Object.freeze({__proto__:null,capitalize:Up,createChainedFunction:Vp,createSvgIcon:OS,debounce:Gp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Kp,ownerDocument:Zp,ownerWindow:Xp,requirePropFactory:function(e,t){return()=>null},setRef:Qp,unstable_ClassNameGenerator:IS,unstable_useEnhancedEffect:Jp,unstable_useId:tf,unsupportedProp:function(e,t,n,r,o){return null},useControlled:nf,useEventCallback:rf,useForkRef:of,useIsFocusVisible:hf});const PS=e=>e.scrollTop;function _S(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function NS(e){return wf("MuiPaper",e)}Ef("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const MS=["className","component","elevation","square","variant"],qS=Vv("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return kf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&kf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${rv("#fff",Zv(t.elevation))}, ${rv("#fff",Zv(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),zS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Rf(n,MS),c=kf({},n,{component:o,elevation:i,square:a,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},NS,o)})(c);return Lm.jsx(qS,kf({as:o,ownerState:c,className:$g(u.root,r),ref:t},s))}));var DS=zS;function AS(e){return wf("MuiIconButton",e)}var jS=Ef("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const FS=["edge","children","className","color","disabled","disableFocusRipple","size"],BS=Vv(Fx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Up(n.color)}`],n.edge&&t[`edge${Up(n.edge)}`],t[`size${Up(n.size)}`]]}})((({theme:e,ownerState:t})=>kf({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})`:rv(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 n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return kf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&kf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":kf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rv(r.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)},{[`&.${jS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),WS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Rf(n,FS),d=kf({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return bf({root:["root",n&&"disabled","default"!==r&&`color${Up(r)}`,o&&`edge${Up(o)}`,`size${Up(i)}`]},AS,t)})(d);return Lm.jsx(BS,kf({className:$g(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var $S=WS;function HS(e){return wf("MuiTypography",e)}Ef("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const US=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],VS=Vv("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Up(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>kf({margin:0},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}))),GS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},KS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiTypography"}),r=(e=>KS[e]||e)(n.color),o=Bg(kf({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=GS}=o,f=Rf(o,US),h=kf({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||GS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bf({root:["root",i,"inherit"!==e.align&&`align${Up(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},HS,a)})(h);return Lm.jsx(VS,kf({as:m,ref:t,ownerState:h,className:$g(g.root,a)},f))}));var XS=ZS;const QS=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],JS=Vv(Dy,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YS=H.forwardRef((function(e,t){var n;const r=qg(),o=$v({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Rf(o,QS),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=kf({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Lm.jsx(JS,kf({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));var ew=YS;function tw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var nw=H.createContext(void 0);function rw(){return H.useContext(nw)}function ow(e){return Lm.jsx(Ag,kf({},e,{defaultTheme:Bv,themeId:Cf}))}function iw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function aw(e){return wf("MuiInputBase",e)}var lw=Ef("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const sw=["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"],cw=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Up(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},uw=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},dw=Vv("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cw})((({theme:e,ownerState:t})=>kf({},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",[`&.${lw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&kf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),pw=Vv("input",{name:"MuiInputBase",slot:"Input",overridesResolver:uw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=kf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return kf({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lw.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},[`&.${lw.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"})})),fw=Lm.jsx(ow,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),hw=H.forwardRef((function(e,t){var n;const r=$v({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:T,renderSuffix:P,rows:_,slotProps:N={},slots:M={},startAdornment:q,type:z="text",value:D}=r,A=Rf(r,sw),j=null!=v.value?v.value:D,{current:F}=H.useRef(null!=j),B=H.useRef(),W=H.useCallback((e=>{}),[]),$=of(B,b,v.ref,W),[U,V]=H.useState(!1),G=rw(),K=tw({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,H.useEffect((()=>{!G&&d&&U&&(V(!1),E&&E())}),[G,d,U,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=H.useCallback((e=>{!function(e,t=!1){return e&&(iw(e.value)&&""!==e.value||t&&iw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);Jp((()=>{F&&Q({value:j})}),[j,Q,F]);H.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=kf(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:y,minRows:x},Y),J=Yy);H.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=kf({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:z}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return bf({root:["root",`color${Up(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},aw,t)})(ee),ne=M.root||s.Root||dw,re=N.root||c.root||{},oe=M.input||s.Input||pw;return Y=kf({},Y,null!=(n=N.input)?n:c.input),Lm.jsxs(H.Fragment,{children:[!p&&fw,Lm.jsxs(ne,kf({},re,!Qv(ne)&&{ownerState:kf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&!K.disabled&&k(e)}},A,{className:$g(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[q,Lm.jsx(nw.Provider,{value:null,children:Lm.jsx(oe,kf({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:I,readOnly:T,required:K.required,rows:_,value:j,onKeyDown:L,onKeyUp:O,type:z},Y,!Qv(oe)&&{as:J,ownerState:kf({},ee,Y.ownerState)},{ref:$,className:$g(te.input,Y.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(kp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,P?P(kf({},K,{startAdornment:q})):null]}))]})}));var mw=hw;function gw(e){return wf("MuiOutlinedInput",e)}var vw=kf({},lw,Ef("MuiOutlinedInput",["root","notchedOutline","input"]));const bw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yw={entering:{opacity:1},entered:{opacity:1}},xw=H.forwardRef((function(e,t){const n=Wv(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=fx}=e,b=Rf(e,bw),y=H.useRef(null),x=of(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{PS(e);const r=_S({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=_S({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return Lm.jsx(v,kf({appear:i,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>H.cloneElement(a,kf({style:kf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},yw[e],m,a.props.style),ref:x},t))}))}));var Sw=xw;function ww(e){return wf("MuiBackdrop",e)}Ef("MuiBackdrop",["root","invisible"]);const Ew=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Cw=Vv("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>kf({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"}))),kw=H.forwardRef((function(e,t){var n,r,o;const i=$v({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Sw,transitionDuration:g}=i,v=Rf(i,Ew),b=kf({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bf({root:["root",n&&"invisible"]},ww,t)})(b),x=null!=(n=f.root)?n:u.root;return Lm.jsx(m,kf({in:p,timeout:g},v,{children:Lm.jsx(Cw,kf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:$g(y.root,l,null==x?void 0:x.className),ownerState:kf({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Rw=kw;function Lw(e){return wf("MuiBadge",e)}var Ow=Ef("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const Iw=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Tw=Vv("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Pw=Vv("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Up(n.anchorOrigin.vertical)}${Up(n.anchorOrigin.horizontal)}${Up(n.overlap)}`],"default"!==n.color&&t[`color${Up(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>kf({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),_w=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$v({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Rf(s,Iw),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gf({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),I=gf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),T=R||null==k&&"dot"!==E,{color:P=g,overlap:_=m,anchorOrigin:N=c,variant:M=E}=T?I:s,q="dot"!==M?O:void 0,z=kf({},s,{badgeContent:k,invisible:T,max:L,displayValue:q,showZero:w,anchorOrigin:N,color:P,overlap:_,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return bf({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}`,`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}${Up(o)}`,`overlap${Up(o)}`,"default"!==t&&`color${Up(t)}`]},Lw,a)})(z),A=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Tw,j=null!=(o=null!=(i=null==x?void 0:x.badge)?i:p.Badge)?o:Pw,F=null!=(a=null==S?void 0:S.root)?a:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,W=lb({elementType:A,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:z,className:$g(null==F?void 0:F.className,D.root,u)}),$=lb({elementType:j,externalSlotProps:B,ownerState:z,className:$g(D.badge,null==B?void 0:B.className)});return Lm.jsxs(A,kf({},W,{children:[h,Lm.jsx(j,kf({},$,{children:q}))]}))}));var Nw=_w;const Mw=Fv(),qw=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Pm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(_g),a=H.forwardRef((function(e,a){const l=Dg(n),s=Bg(e),{className:c,component:u="div"}=s,d=Nm(s,Hg);return Lm.jsx(i,_m({as:u,ref:a,className:$g(c,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:Cf,defaultTheme:Mw,defaultClassName:"MuiBox-root",generateClassName:xf.generate});var zw=qw;function Dw(e){return wf("PrivateSwitchBase",e)}Ef("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Aw=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jw=Vv(Fx)((({ownerState:e})=>kf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Fw=Vv("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Bw=H.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Rf(e,Aw),[C,k]=nf({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=rw();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=kf({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),T=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return bf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Up(o)}`],input:["input"]},Dw,t)})(I);return Lm.jsxs(jw,kf({component:"span",className:$g(T.root,i),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:I,ref:t},E,{children:[Lm.jsx(Fw,kf({autoFocus:n,checked:r,defaultChecked:a,className:T.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var Ww=Bw,$w=OS(Lm.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"),Hw=OS(Lm.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"),Uw=OS(Lm.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 Vw(e){return wf("MuiCheckbox",e)}var Gw=Ef("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const Kw=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Zw=Vv(Ww,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>kf({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Gw.checked}, &.${Gw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Gw.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Xw=Lm.jsx(Hw,{}),Qw=Lm.jsx($w,{}),Jw=Lm.jsx(Uw,{}),Yw=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Xw,color:a="primary",icon:l=Qw,indeterminate:s=!1,indeterminateIcon:c=Jw,inputProps:u,size:d="medium",className:p}=o,f=Rf(o,Kw),h=s?c:l,m=s?c:i,g=kf({},o,{color:a,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r}=e;return kf({},t,bf({root:["root",n&&"indeterminate",`color${Up(r)}`]},Vw,t))})(g);return Lm.jsx(Zw,kf({type:"checkbox",inputProps:kf({"data-indeterminate":s},u),icon:H.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:H.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:$g(v.root,p)},f,{classes:v}))}));var eE=Yw;function tE(e){return wf("MuiCircularProgress",e)}Ef("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const nE=["className","color","disableShrink","size","style","thickness","value","variant"];let rE,oE,iE,aE,lE=e=>e;const sE=44,cE=um(rE||(rE=lE`
|
|
106
|
+
`),Sx.rippleVisible,Ox,550,(({theme:e})=>e.transitions.easing.easeInOut),Sx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Sx.child,Sx.childLeaving,Ix,550,(({theme:e})=>e.transitions.easing.easeInOut),Sx.childPulsate,Tx,(({theme:e})=>e.transitions.easing.easeInOut)),Nx=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=Rf(n,wx),[l,s]=H.useState([]),c=H.useRef(0),u=H.useRef(null);H.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=H.useRef(!1),p=H.useRef(null),f=H.useRef(null),h=H.useRef(null);H.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const m=H.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Lm.jsx(_x,{classes:{ripple:$g(o.ripple,Sx.ripple),rippleVisible:$g(o.rippleVisible,Sx.rippleVisible),ripplePulsate:$g(o.ripplePulsate,Sx.ripplePulsate),child:$g(o.child,Sx.child),childLeaving:$g(o.childLeaving,Sx.childLeaving),childPulsate:$g(o.childPulsate,Sx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},c.current)])),c.current+=1,u.current=a}),[o]),g=H.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:h.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)c=Math.round(s.width/2),u=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.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:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):m({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,m]),v=H.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=H.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return H.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),Lm.jsx(Px,kf({className:$g(Sx.root,o.root,i),ref:h},a,{children:Lm.jsx(xx,{component:null,exit:!0,children:l})}))}));var Mx=Nx;function qx(e){return wf("MuiButtonBase",e)}var zx=Ef("MuiButtonBase",["root","disabled","focusVisible"]);const Dx=["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"],Ax=Vv("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"},[`&.${zx.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),jx=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:h,onContextMenu:m,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:E,onTouchEnd:C,onTouchMove:k,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:I,type:T}=n,P=Rf(n,Dx),_=H.useRef(null),N=H.useRef(null),M=of(N,I),{isFocusVisibleRef:q,onFocus:z,onBlur:D,ref:A}=hf(),[j,F]=H.useState(!1);s&&j&&F(!1),H.useImperativeHandle(r,(()=>({focusVisible:()=>{F(!0),_.current.focus()}})),[]);const[B,W]=H.useState(!1);H.useEffect((()=>{W(!0)}),[]);const $=B&&!c&&!s;function U(e,t,n=u){return rf((r=>{t&&t(r);return!n&&N.current&&N.current[e](r),!0}))}H.useEffect((()=>{j&&d&&!c&&B&&N.current.pulsate()}),[c,d,j,B]);const V=U("start",S),G=U("stop",m),K=U("stop",g),Z=U("stop",E),X=U("stop",(e=>{j&&e.preventDefault(),w&&w(e)})),Q=U("start",R),J=U("stop",C),Y=U("stop",k),ee=U("stop",(e=>{D(e),!1===q.current&&F(!1),f&&f(e)}),!1),te=rf((e=>{_.current||(_.current=e.currentTarget),z(e),!0===q.current&&(F(!0),b&&b(e)),v&&v(e)})),ne=()=>{const e=_.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=H.useRef(!1),oe=rf((e=>{d&&!re.current&&j&&N.current&&" "===e.key&&(re.current=!0,N.current.stop(e,(()=>{N.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))})),ie=rf((e=>{d&&" "===e.key&&N.current&&j&&!e.defaultPrevented&&(re.current=!1,N.current.stop(e,(()=>{N.current.pulsate(e)}))),x&&x(e),h&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&h(e)}));let ae=l;"button"===ae&&(P.href||P.to)&&(ae=p);const le={};"button"===ae?(le.type=void 0===T?"button":T,le.disabled=s):(P.href||P.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=of(t,A,_),ce=kf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:j}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=bf({root:["root",t&&"disabled",n&&"focusVisible"]},qx,o);return n&&r&&(i.root+=` ${r}`),i})(ce);return Lm.jsxs(Ax,kf({as:ae,className:$g(ue.root,a),ownerState:ce,onBlur:ee,onClick:h,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ie,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:J,onTouchMove:Y,onTouchStart:Q,ref:se,tabIndex:s?-1:L,type:T},le,P,{children:[i,$?Lm.jsx(Mx,kf({ref:M,center:o},O)):null]}))}));var Fx=jx;function Bx(e){return wf("MuiButton",e)}var Wx=Ef("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var $x=H.createContext({});const Hx=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],Ux=e=>kf({},"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}}),Vx=Vv(Fx,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Up(n.color)}`],t[`size${Up(n.size)}`],t[`${n.variant}Size${Up(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return kf({},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":kf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:rv(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})`:rv(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})`:rv(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":kf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${Wx.focusVisible}`]:kf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${Wx.disabled}`]:kf({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 ${rv(e.palette[t.color].main,.5)}`},"contained"===t.variant&&{color:e.vars?e.vars.palette.text.primary:null==(n=(r=e.palette).getContrastText)?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},"contained"===t.variant&&"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},"inherit"===t.color&&{color:"inherit",borderColor:"currentColor"},"small"===t.size&&"text"===t.variant&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"text"===t.variant&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"outlined"===t.variant&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"outlined"===t.variant&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},"small"===t.size&&"contained"===t.variant&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},"large"===t.size&&"contained"===t.variant&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})}),(({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${Wx.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${Wx.disabled}`]:{boxShadow:"none"}})),Gx=Vv("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>kf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},Ux(e)))),Kx=Vv("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Up(n.size)}`]]}})((({ownerState:e})=>kf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},Ux(e)))),Zx=H.forwardRef((function(e,t){const n=H.useContext($x),r=$v({props:vf(n,e),name:"MuiButton"}),{children:o,color:i="primary",component:a="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:h="medium",startIcon:m,type:g,variant:v="text"}=r,b=Rf(r,Hx),y=kf({},r,{color:i,component:a,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:h,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return kf({},a,bf({root:["root",i,`${i}${Up(t)}`,`size${Up(o)}`,`${i}Size${Up(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Up(o)}`],endIcon:["endIcon",`iconSize${Up(o)}`]},Bx,a))})(y),S=m&&Lm.jsx(Gx,{className:x.startIcon,ownerState:y,children:m}),w=d&&Lm.jsx(Kx,{className:x.endIcon,ownerState:y,children:d});return Lm.jsxs(Vx,kf({ownerState:y,className:$g(n.className,x.root,l),component:a,disabled:s,focusRipple:!u,focusVisibleClassName:$g(x.focusVisible,p),ref:t,type:g},b,{classes:x,children:[S,o,w]}))}));var Xx=Zx,Qx={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"],props:{MuiButtonBase:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},MuiCheckbox:{color:"secondary"},MuiRadio:{color:"secondary"},MuiTabs:{indicatorColor:"secondary"}}};const Jx="#009845",Yx="#3F8AB3",eS="#ffffff",tS="#404040",nS="#333333",rS="#1A1A1A",oS={mode:"light",palette:{primary:{main:tS,contrastText:eS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:tS,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:eS,default:eS,lightest:eS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:Yx,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:Jx,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:eS,alternativeContrastText:tS,excludedContrastText:tS},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},iS={mode:"dark",palette:{primary:{main:nS,contrastText:eS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:eS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:eS,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:tS,lighter:nS,darker:"#262626",darkest:rS},custom:{focusBorder:Yx,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:Jx,alternative:nS,excluded:rS,mainContrastText:eS,alternativeContrastText:eS,excludedContrastText:eS},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},aS={},lS=e=>({MuiTypography:{root:{color:e.palette.text.primary}},MuiGrid:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]},MuiButtonBase:{root:{borderRadius:2,border:"1px solid transparent","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},MuiIconButton:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&:focus-visible":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(:active):not(:focus-visible)":{borderColor:"transparent",boxShadow:"none"}}},MuiOutlinedInput:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}},MuiButton:{outlined:{padding:"3px 11px",["&.".concat(Wx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:"1px solid ".concat(e.palette.btn.border),backgroundColor:e.palette.btn.normal,boxShadow:"none",["&.".concat(Wx.focusVisible)]:{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",["&.".concat(Wx.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(Wx.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function sS(e){let t=oS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=iS));const r=JSON.stringify(t);if(aS[r])return aS[r];const o={palette:i(i({type:t.mode},Qx.palette),t.palette),typography:i({},Qx.typography),shadows:Qx.shadows,props:i({},Qx.props),shape:i({},Qx.shape)};return aS[r]=Fv(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:i={},styleOverrides:a={}}=e,l=kf({},Rf(e,dv),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.defaultProps=i[e],l.components[e]=t})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=a[e],l.components[e]=t})),Object.keys(r).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=r[e],l.components[e]=t})),l.spacing=ig(e.spacing);const s=zm(e.breakpoints||{}),c=l.spacing;l.mixins=kf({gutters:(e={})=>kf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:kf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rf(o,pv),f=d||u||"light";return l.palette=kf({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(i(i({},o),{},{overrides:lS(o)}))),aS[r].name=n,aS[r]}xf.configure((e=>"njs-".concat("79ef","-").concat(e.replace("Mui",""))));var cS=U.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null}),uS=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=[],r={get:e=>t[e],set:(n,r)=>{if(void 0===n||"object"==typeof n)throw new Error("Invalid key: ".concat(JSON.stringify(n)));return t[n]=r,e({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));t[e]=null},dispatch:e=>{n.forEach((n=>n(e?{}:t)))}};return[()=>{const[,e]=H.useState(t);return H.useEffect((()=>(n.push(e),()=>{const t=n.indexOf(e);n.splice(t,1)})),[e]),[r]},r]};const[dS,pS]=uS({}),[fS,hS]=uS({}),[mS,gS]=uS({}),[vS,bS]=uS({});function yS(e){if(!e.session)return[];const[t]=dS(),n=e?e.id:null;let r=t.get(n);return H.useEffect((()=>{e&&!r&&(r=function(e){let{app:t}=e;const n="".concat(t.id),r=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=bS.get(n);t&&(await t.endSelections(e),bS.clear(n),gS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===bS.get(n))return;r(i),bS.set(n,e);const a=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(a),bS.set(n,e)}catch(e){6003!==e.code||r?bS.clear(n):(await t.abortModal(i),l(!0))}};await l()},end:r};hS.set(n,o);const i={model:t,isInModal:()=>!!bS.get(n),isModal:e=>e?bS.get(n)===e:!!bS.get(n),forward:()=>o.end().then((()=>t.forward())),back:()=>o.end().then((()=>t.back())),clear:()=>o.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return o.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return i}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const xS={active:!0,select:!0,passive:!0,edit:!1};function SS(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach((e=>{r[e]=!t[e]})),r}(e);Object.keys(xS).forEach((e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=xS[e],n[e]=!xS[e])})),e.constraints=n,e.interactions=t}const wS=H.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[i]=yS(r),[a,l]=H.useState(n),[s,c]=H.useState(),{theme:u}=H.useMemo((()=>({theme:sS(s)})),[s]),[d,p]=H.useState([]);return H.useEffect((()=>{o&&o()}),[]),H.useImperativeHandle(t,(()=>({setComps(e){p([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>i})),[]),U.createElement(Im,{injectFirst:!0},U.createElement(Kv,{theme:u},U.createElement(cS.Provider,{value:a},d)))}));function ES(e){return wf("MuiSvgIcon",e)}Ef("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const CS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],kS=Vv("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(i=o.duration)?void 0:i.shorter}),fontSize:{inherit:"inherit",small:(null==(a=e.typography)||null==(l=a.pxToRem)?void 0:l.call(a,20))||"1.25rem",medium:(null==(s=e.typography)||null==(c=s.pxToRem)?void 0:c.call(s,24))||"1.5rem",large:(null==(u=e.typography)||null==(d=u.pxToRem)?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(h=f[t.color])?void 0:h.main)?p:{action:null==(m=(e.vars||e).palette)||null==(g=m.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),RS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Rf(n,CS),f=kf({},n,{color:i,component:a,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),h={};c||(h.viewBox=d);const m=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},ES,r)})(f);return Lm.jsxs(kS,kf({as:a,className:$g(m.root,o),focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},h,p,{ownerState:f,children:[r,u?Lm.jsx("title",{children:u}):null]}))}));RS.muiName="SvgIcon";var LS=RS;function OS(e,t){function n(n,r){return Lm.jsx(LS,kf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=LS.muiName,H.memo(H.forwardRef(n))}const IS={configure:e=>{xf.configure(e)}};var TS=Object.freeze({__proto__:null,capitalize:Up,createChainedFunction:Vp,createSvgIcon:OS,debounce:Gp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Kp,ownerDocument:Zp,ownerWindow:Xp,requirePropFactory:function(e,t){return()=>null},setRef:Qp,unstable_ClassNameGenerator:IS,unstable_useEnhancedEffect:Jp,unstable_useId:tf,unsupportedProp:function(e,t,n,r,o){return null},useControlled:nf,useEventCallback:rf,useForkRef:of,useIsFocusVisible:hf});const PS=e=>e.scrollTop;function _S(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:null!=(n=a.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=a.transitionTimingFunction)?r:"object"==typeof i?i[t.mode]:i,delay:a.transitionDelay}}function NS(e){return wf("MuiPaper",e)}Ef("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const MS=["className","component","elevation","square","variant"],qS=Vv("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})((({theme:e,ownerState:t})=>{var n;return kf({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.divider}`},"elevation"===t.variant&&kf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${rv("#fff",Zv(t.elevation))}, ${rv("#fff",Zv(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),zS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:l="elevation"}=n,s=Rf(n,MS),c=kf({},n,{component:o,elevation:i,square:a,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return bf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},NS,o)})(c);return Lm.jsx(qS,kf({as:o,ownerState:c,className:$g(u.root,r),ref:t},s))}));var DS=zS;function AS(e){return wf("MuiIconButton",e)}var jS=Ef("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const FS=["edge","children","className","color","disabled","disableFocusRipple","size"],BS=Vv(Fx,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Up(n.color)}`],n.edge&&t[`edge${Up(n.edge)}`],t[`size${Up(n.size)}`]]}})((({theme:e,ownerState:t})=>kf({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})`:rv(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 n;const r=null==(n=(e.vars||e).palette)?void 0:n[t.color];return kf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&kf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":kf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rv(r.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)},{[`&.${jS.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),WS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Rf(n,FS),d=kf({},n,{edge:r,color:a,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e;return bf({root:["root",n&&"disabled","default"!==r&&`color${Up(r)}`,o&&`edge${Up(o)}`,`size${Up(i)}`]},AS,t)})(d);return Lm.jsx(BS,kf({className:$g(p.root,i),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var $S=WS;function HS(e){return wf("MuiTypography",e)}Ef("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const US=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],VS=Vv("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],"inherit"!==n.align&&t[`align${Up(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>kf({margin:0},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}))),GS={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},KS={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},ZS=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiTypography"}),r=(e=>KS[e]||e)(n.color),o=Bg(kf({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=GS}=o,f=Rf(o,US),h=kf({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||GS[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return bf({root:["root",i,"inherit"!==e.align&&`align${Up(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},HS,a)})(h);return Lm.jsx(VS,kf({as:m,ref:t,ownerState:h,className:$g(g.root,a)},f))}));var XS=ZS;const QS=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],JS=Vv(Dy,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YS=H.forwardRef((function(e,t){var n;const r=qg(),o=$v({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:l,componentsProps:s,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v,slots:b,slotProps:y}=o,x=Rf(o,QS),S=null!=(n=null==b?void 0:b.root)?n:null==l?void 0:l.Root,w=kf({anchorEl:i,container:c,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:h,popperOptions:m,popperRef:g,transition:v},x);return Lm.jsx(JS,kf({as:a,direction:null==r?void 0:r.direction,slots:{root:S},slotProps:null!=y?y:s},w,{ref:t}))}));var ew=YS;function tw({props:e,states:t,muiFormControl:n}){return t.reduce(((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t)),{})}var nw=H.createContext(void 0);function rw(){return H.useContext(nw)}function ow(e){return Lm.jsx(Ag,kf({},e,{defaultTheme:Bv,themeId:Cf}))}function iw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function aw(e){return wf("MuiInputBase",e)}var lw=Ef("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const sw=["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"],cw=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,"small"===n.size&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Up(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},uw=(e,t)=>{const{ownerState:n}=e;return[t.input,"small"===n.size&&t.inputSizeSmall,n.multiline&&t.inputMultiline,"search"===n.type&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},dw=Vv("div",{name:"MuiInputBase",slot:"Root",overridesResolver:cw})((({theme:e,ownerState:t})=>kf({},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",[`&.${lw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&kf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),pw=Vv("input",{name:"MuiInputBase",slot:"Input",overridesResolver:uw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=kf({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return kf({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${lw.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},[`&.${lw.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"})})),fw=Lm.jsx(ow,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),hw=H.forwardRef((function(e,t){var n;const r=$v({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:h=!1,id:m,inputComponent:g="input",inputProps:v={},inputRef:b,maxRows:y,minRows:x,multiline:S=!1,name:w,onBlur:E,onChange:C,onClick:k,onFocus:R,onKeyDown:L,onKeyUp:O,placeholder:I,readOnly:T,renderSuffix:P,rows:_,slotProps:N={},slots:M={},startAdornment:q,type:z="text",value:D}=r,A=Rf(r,sw),j=null!=v.value?v.value:D,{current:F}=H.useRef(null!=j),B=H.useRef(),W=H.useCallback((e=>{}),[]),$=of(B,b,v.ref,W),[U,V]=H.useState(!1),G=rw(),K=tw({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,H.useEffect((()=>{!G&&d&&U&&(V(!1),E&&E())}),[G,d,U,E]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=H.useCallback((e=>{!function(e,t=!1){return e&&(iw(e.value)&&""!==e.value||t&&iw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);Jp((()=>{F&&Q({value:j})}),[j,Q,F]);H.useEffect((()=>{Q(B.current)}),[]);let J=g,Y=v;S&&"input"===J&&(Y=kf(_?{type:void 0,minRows:_,maxRows:_}:{type:void 0,maxRows:y,minRows:x},Y),J=Yy);H.useEffect((()=>{G&&G.setAdornedStart(Boolean(q))}),[G,q]);const ee=kf({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:f,error:K.error,focused:K.focused,formControl:G,fullWidth:h,hiddenLabel:K.hiddenLabel,multiline:S,size:K.size,startAdornment:q,type:z}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return bf({root:["root",`color${Up(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},aw,t)})(ee),ne=M.root||s.Root||dw,re=N.root||c.root||{},oe=M.input||s.Input||pw;return Y=kf({},Y,null!=(n=N.input)?n:c.input),Lm.jsxs(H.Fragment,{children:[!p&&fw,Lm.jsxs(ne,kf({},re,!Qv(ne)&&{ownerState:kf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),k&&!K.disabled&&k(e)}},A,{className:$g(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[q,Lm.jsx(nw.Provider,{value:null,children:Lm.jsx(oe,kf({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:K.disabled,id:m,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:w,placeholder:I,readOnly:T,required:K.required,rows:_,value:j,onKeyDown:L,onKeyUp:O,type:z},Y,!Qv(oe)&&{as:J,ownerState:kf({},ee,Y.ownerState)},{ref:$,className:$g(te.input,Y.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{E&&E(e),v.onBlur&&v.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!F){const t=e.target||B.current;if(null==t)throw new Error(kp(1));Q({value:t.value})}v.onChange&&v.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),v.onFocus&&v.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),f,P?P(kf({},K,{startAdornment:q})):null]}))]})}));var mw=hw;function gw(e){return wf("MuiOutlinedInput",e)}var vw=kf({},lw,Ef("MuiOutlinedInput",["root","notchedOutline","input"]));const bw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],yw={entering:{opacity:1},entered:{opacity:1}},xw=H.forwardRef((function(e,t){const n=Wv(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,TransitionComponent:v=fx}=e,b=Rf(e,bw),y=H.useRef(null),x=of(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},w=S(d),E=S(((e,t)=>{PS(e);const r=_S({style:m,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),C=S(u),k=S(h),R=S((e=>{const t=_S({style:m,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),L=S(f);return Lm.jsx(v,kf({appear:i,in:s,nodeRef:y,onEnter:E,onEntered:C,onEntering:w,onExit:R,onExited:L,onExiting:k,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>H.cloneElement(a,kf({style:kf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},yw[e],m,a.props.style),ref:x},t))}))}));var Sw=xw;function ww(e){return wf("MuiBackdrop",e)}Ef("MuiBackdrop",["root","invisible"]);const Ew=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Cw=Vv("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>kf({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"}))),kw=H.forwardRef((function(e,t){var n,r,o;const i=$v({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Sw,transitionDuration:g}=i,v=Rf(i,Ew),b=kf({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return bf({root:["root",n&&"invisible"]},ww,t)})(b),x=null!=(n=f.root)?n:u.root;return Lm.jsx(m,kf({in:p,timeout:g},v,{children:Lm.jsx(Cw,kf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:$g(y.root,l,null==x?void 0:x.className),ownerState:kf({},b,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var Rw=kw;function Lw(e){return wf("MuiBadge",e)}var Ow=Ef("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const Iw=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],Tw=Vv("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Pw=Vv("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Up(n.anchorOrigin.vertical)}${Up(n.anchorOrigin.horizontal)}${Up(n.overlap)}`],"default"!==n.color&&t[`color${Up(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>kf({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen})},"default"!==t.color&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},"dot"===t.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"rectangular"===t.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"right"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(50%, 50%)"}},"top"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===t.anchorOrigin.vertical&&"left"===t.anchorOrigin.horizontal&&"circular"===t.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",[`&.${Ow.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),_w=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$v({props:e,name:"MuiBadge"}),{anchorOrigin:c={vertical:"top",horizontal:"right"},className:u,component:d,components:p={},componentsProps:f={},children:h,overlap:m="rectangular",color:g="default",invisible:v=!1,max:b=99,badgeContent:y,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Rf(s,Iw),{badgeContent:k,invisible:R,max:L,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=gf({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:b,invisible:v,badgeContent:y,showZero:w}),I=gf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:y}),T=R||null==k&&"dot"!==E,{color:P=g,overlap:_=m,anchorOrigin:N=c,variant:M=E}=T?I:s,q="dot"!==M?O:void 0,z=kf({},s,{badgeContent:k,invisible:T,max:L,displayValue:q,showZero:w,anchorOrigin:N,color:P,overlap:_,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return bf({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}`,`anchorOrigin${Up(n.vertical)}${Up(n.horizontal)}${Up(o)}`,`overlap${Up(o)}`,"default"!==t&&`color${Up(t)}`]},Lw,a)})(z),A=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:Tw,j=null!=(o=null!=(i=null==x?void 0:x.badge)?i:p.Badge)?o:Pw,F=null!=(a=null==S?void 0:S.root)?a:f.root,B=null!=(l=null==S?void 0:S.badge)?l:f.badge,W=lb({elementType:A,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:z,className:$g(null==F?void 0:F.className,D.root,u)}),$=lb({elementType:j,externalSlotProps:B,ownerState:z,className:$g(D.badge,null==B?void 0:B.className)});return Lm.jsxs(A,kf({},W,{children:[h,Lm.jsx(j,kf({},$,{children:q}))]}))}));var Nw=_w;const Mw=Fv(),qw=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Pm("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(_g),a=H.forwardRef((function(e,a){const l=Dg(n),s=Bg(e),{className:c,component:u="div"}=s,d=Nm(s,Hg);return Lm.jsx(i,_m({as:u,ref:a,className:$g(c,o?o(r):r),theme:t&&l[t]||l},d))}));return a}({themeId:Cf,defaultTheme:Mw,defaultClassName:"MuiBox-root",generateClassName:xf.generate});var zw=qw;function Dw(e){return wf("PrivateSwitchBase",e)}Ef("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Aw=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],jw=Vv(Fx)((({ownerState:e})=>kf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Fw=Vv("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Bw=H.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:l,disableFocusRipple:s=!1,edge:c=!1,icon:u,id:d,inputProps:p,inputRef:f,name:h,onBlur:m,onChange:g,onFocus:v,readOnly:b,required:y=!1,tabIndex:x,type:S,value:w}=e,E=Rf(e,Aw),[C,k]=nf({controlled:r,default:Boolean(a),name:"SwitchBase",state:"checked"}),R=rw();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,I=kf({},e,{checked:C,disabled:L,disableFocusRipple:s,edge:c}),T=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return bf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Up(o)}`],input:["input"]},Dw,t)})(I);return Lm.jsxs(jw,kf({component:"span",className:$g(T.root,i),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{m&&m(e),R&&R.onBlur&&R.onBlur(e)},ownerState:I,ref:t},E,{children:[Lm.jsx(Fw,kf({autoFocus:n,checked:r,defaultChecked:a,className:T.input,disabled:L,id:O?d:void 0,name:h,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;k(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var Ww=Bw,$w=OS(Lm.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"),Hw=OS(Lm.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"),Uw=OS(Lm.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 Vw(e){return wf("MuiCheckbox",e)}var Gw=Ef("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const Kw=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Zw=Vv(Ww,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,"default"!==n.color&&t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>kf({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.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:rv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Gw.checked}, &.${Gw.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Gw.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Xw=Lm.jsx(Hw,{}),Qw=Lm.jsx($w,{}),Jw=Lm.jsx(Uw,{}),Yw=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiCheckbox"}),{checkedIcon:i=Xw,color:a="primary",icon:l=Qw,indeterminate:s=!1,indeterminateIcon:c=Jw,inputProps:u,size:d="medium",className:p}=o,f=Rf(o,Kw),h=s?c:l,m=s?c:i,g=kf({},o,{color:a,indeterminate:s,size:d}),v=(e=>{const{classes:t,indeterminate:n,color:r}=e;return kf({},t,bf({root:["root",n&&"indeterminate",`color${Up(r)}`]},Vw,t))})(g);return Lm.jsx(Zw,kf({type:"checkbox",inputProps:kf({"data-indeterminate":s},u),icon:H.cloneElement(h,{fontSize:null!=(n=h.props.fontSize)?n:d}),checkedIcon:H.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:g,ref:t,className:$g(v.root,p)},f,{classes:v}))}));var eE=Yw;function tE(e){return wf("MuiCircularProgress",e)}Ef("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const nE=["className","color","disableShrink","size","style","thickness","value","variant"];let rE,oE,iE,aE,lE=e=>e;const sE=44,cE=um(rE||(rE=lE`
|
|
107
107
|
0% {
|
|
108
108
|
transform: rotate(0deg);
|
|
109
109
|
}
|
|
@@ -130,5 +130,5 @@
|
|
|
130
130
|
animation: ${0} 1.4s linear infinite;
|
|
131
131
|
`),cE))),pE=Vv("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),fE=Vv("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Up(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>kf({stroke:"currentColor"},"determinate"===e.variant&&{transition:t.transitions.create("stroke-dashoffset")},"indeterminate"===e.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0})),(({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink&&cm(aE||(aE=lE`
|
|
132
132
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
133
|
-
`),uE))),hE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Rf(n,nE),p=kf({},n,{color:o,disableShrink:i,size:a,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return bf({root:["root",n,`color${Up(r)}`],svg:["svg"],circle:["circle",`circle${Up(n)}`,o&&"circleDisableShrink"]},tE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((sE-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Lm.jsx(dE,kf({className:$g(f.root,r),style:kf({width:a,height:a},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Lm.jsx(pE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Lm.jsx(fE,{className:f.circle,style:h,ownerState:p,cx:sE,cy:sE,r:(sE-s)/2,fill:"none",strokeWidth:s})})}))}));var mE=hE;const gE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],vE=Vv("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>kf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),bE=Vv(Rw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yE=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$v({name:"MuiModal",props:e}),{BackdropComponent:c=bE,BackdropProps:u,classes:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:R=!1,onBackdropClick:L,onClose:O,open:I,slotProps:T,slots:P,theme:_}=s,N=Rf(s,gE),[M,q]=H.useState(!0),z={container:m,closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:R,onBackdropClick:L,onClose:O,open:I},D=kf({},s,z,{exited:M}),A=null!=(n=null!=(r=null==P?void 0:P.root)?r:v.Root)?n:vE,j=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:v.Backdrop)?o:c,F=null!=(a=null==T?void 0:T.root)?a:b.root,B=null!=(l=null==T?void 0:T.backdrop)?l:b.backdrop;return Lm.jsx(Gy,kf({slots:{root:A,backdrop:j},slotProps:{root:()=>kf({},nb(F,D),!Qv(A)&&{as:g,theme:_},{className:$g(p,null==F?void 0:F.className,null==d?void 0:d.root,!D.open&&D.exited&&(null==d?void 0:d.hidden))}),backdrop:()=>kf({},u,nb(B,D),{className:$g(null==B?void 0:B.className,null==u?void 0:u.className,null==d?void 0:d.backdrop)})},onTransitionEnter:()=>q(!1),onTransitionExited:()=>q(!0),ref:t},N,z,{children:h}))}));var xE=yE;function SE(e){return wf("MuiDivider",e)}var wE=Ef("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const EE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],CE=Vv("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>kf({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)`:rv(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})=>kf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>kf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>kf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>kf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),kE=Vv("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>kf({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)`}))),RE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rf(n,EE),h=kf({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return bf({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},SE,r)})(h);return Lm.jsx(CE,kf({as:a,className:$g(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Lm.jsx(kE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var LE=RE;function OE(e){return wf("MuiFormControlLabel",e)}var IE=Ef("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const TE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],PE=Vv("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${IE.label}`]:t.label},t.root,t[`labelPlacement${Up(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>kf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${IE.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${IE.label}`]:{[`&.${IE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),_E=Vv("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${IE.error}`]:{color:(e.vars||e).palette.error.main}}))),NE=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Rf(o,TE),m=rw(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=tw({props:o,muiFormControl:m,states:["error"]}),x=kf({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return bf({root:["root",n&&"disabled",`labelPlacement${Up(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},OE,t)})(x),w=null!=(r=f.typography)?r:a.typography;let E=u;return null==E||E.type===XS||c||(E=Lm.jsx(XS,kf({component:"span"},w,{className:$g(S.label,null==w?void 0:w.className),children:E}))),Lm.jsxs(PE,kf({className:$g(S.root,i),ownerState:x,ref:t},h,{children:[H.cloneElement(l,b),E,v&&Lm.jsxs(_E,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var ME=NE;var qE=H.createContext();function zE(e){return wf("MuiGrid",e)}const DE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],AE=Ef("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...DE.map((e=>`grid-xs-${e}`)),...DE.map((e=>`grid-sm-${e}`)),...DE.map((e=>`grid-md-${e}`)),...DE.map((e=>`grid-lg-${e}`)),...DE.map((e=>`grid-xl-${e}`))]),jE=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function FE(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function BE({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const WE=Vv("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>kf({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return Bm({theme:e},Wm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${AE.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=BE({breakpoints:e.breakpoints.values,values:t})),o=Bm({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${FE(i)}`,[`& > .${AE.item}`]:{paddingTop:FE(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${AE.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=BE({breakpoints:e.breakpoints.values,values:t})),o=Bm({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${FE(i)})`,marginLeft:`-${FE(i)}`,[`& > .${AE.item}`]:{paddingLeft:FE(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${AE.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Wm({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof a?a[o]:a;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${FE(n)})`;c={flexBasis:e,maxWidth:e}}}i=kf({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const $E=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return bf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},zE,t)},HE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiGrid"}),{breakpoints:r}=Wv(),o=Bg(n),{className:i,columns:a,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Rf(o,jE),v=p||f,b=l||f,y=H.useContext(qE),x=c?a||12:y,S={},w=kf({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=kf({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=$E(E);return Lm.jsx(qE.Provider,{value:x,children:Lm.jsx(WE,kf({ownerState:E,className:$g(C.root,i),as:s,ref:t},w))})}));var UE=HE;const VE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function GE(e){return`scale(${e}, ${e**2})`}const KE={entering:{opacity:1,transform:GE(1)},entered:{opacity:1,transform:"none"}},ZE="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),XE=H.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=fx}=e,g=Rf(e,VE),v=H.useRef(),b=H.useRef(),y=Wv(),x=H.useRef(null),S=of(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{PS(e);const{duration:n,delay:r,easing:o}=_S({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ZE?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=_S({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ZE?o:.666*o,delay:ZE?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=GE(.75),u&&u(e)})),O=w(d);return H.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Lm.jsx(m,kf({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>H.cloneElement(o,kf({style:kf({opacity:0,transform:GE(.75),visibility:"exited"!==e||a?void 0:"hidden"},KE[e],f,o.props.style),ref:S},t))}))}));XE.muiSupportAuto=!0;var QE=XE;function JE(e){return wf("MuiIcon",e)}Ef("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YE=["baseClassName","className","color","component","fontSize"],eC=Vv("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),tC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium"}=n,s=Rf(n,YE),c=kf({},n,{baseClassName:r,color:i,component:a,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},JE,r)})(c);return Lm.jsx(eC,kf({as:a,className:$g(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));tC.muiName="Icon";var nC=tC;function rC(e){return wf("MuiInputAdornment",e)}var oC,iC=Ef("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const aC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],lC=Vv("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Up(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>kf({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${iC.positionStart}&:not(.${iC.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),sC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rf(n,aC),d=rw()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=kf({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return bf({root:["root",n&&"disablePointerEvents",o&&`position${Up(o)}`,a,r&&"hiddenLabel",i&&`size${Up(i)}`]},rC,t)})(f);return Lm.jsx(nw.Provider,{value:null,children:Lm.jsx(lC,kf({as:i,ownerState:f,className:$g(h.root,o),ref:t},u,{children:"string"!=typeof r||l?Lm.jsxs(H.Fragment,{children:["start"===s?oC||(oC=Lm.jsx("span",{className:"notranslate",children:""})):null,r]}):Lm.jsx(XS,{color:"text.secondary",children:r})}))})}));var cC=sC;var uC=H.createContext({});function dC(e){return wf("MuiList",e)}Ef("MuiList",["root","padding","dense","subheader"]);const pC=["children","className","component","dense","disablePadding","subheader"],fC=Vv("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>kf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),hC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=Rf(n,pC),u=H.useMemo((()=>({dense:a})),[a]),d=kf({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dC,t)})(d);return Lm.jsx(uC.Provider,{value:u,children:Lm.jsxs(fC,kf({as:i,className:$g(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));var mC=hC;function gC(e){return wf("MuiListItem",e)}var vC=Ef("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var bC=Ef("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function yC(e){return wf("MuiListItemSecondaryAction",e)}Ef("MuiListItemSecondaryAction",["root","disableGutters"]);const xC=["className"],SC=Vv("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>kf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),wC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rf(n,xC),i=kf({},n,{disableGutters:H.useContext(uC).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return bf({root:["root",t&&"disableGutters"]},yC,n)})(i);return Lm.jsx(SC,kf({className:$g(a.root,r),ownerState:i,ref:t},o))}));wC.muiName="ListItemSecondaryAction";var EC=wC;const CC=["className"],kC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],RC=Vv("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>kf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&kf({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bC.root}`]:{paddingRight:48}},{[`&.${vC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vC.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"}},[`&.${vC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rv(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})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),LC=Vv("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),OC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Rf(n.ContainerProps,CC),C=Rf(n,kC),k=H.useContext(uC),R=H.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=H.useRef(null);Jp((()=>{o&&L.current&&L.current.focus()}),[o]);const O=H.Children.toArray(a),I=O.length&&Kp(O[O.length-1],["ListItemSecondaryAction"]),T=kf({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:I,selected:x}),P=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return bf({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},gC,r)})(T),_=of(L,t),N=w.root||c.Root||RC,M=S.root||u.root||{},q=kf({className:$g(P.root,M.className,l),disabled:h},C);let z=s||"li";return i&&(q.component=s||"div",q.focusVisibleClassName=$g(vC.focusVisible,b),z=Fx),I?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),Lm.jsx(uC.Provider,{value:R,children:Lm.jsxs(LC,kf({as:d,className:$g(P.container,p),ref:_,ownerState:T},E,{children:[Lm.jsx(N,kf({},M,!Qv(N)&&{as:z,ownerState:kf({},T,M.ownerState)},q,{children:O})),O.pop()]}))})):Lm.jsx(uC.Provider,{value:R,children:Lm.jsxs(N,kf({},M,{as:z,ref:_},!Qv(N)&&{ownerState:kf({},T,M.ownerState)},q,{children:[O,y&&Lm.jsx(EC,{children:y})]}))})}));var IC=OC;function TC(e){return wf("MuiListItemIcon",e)}var PC=Ef("MuiListItemIcon",["root","alignItemsFlexStart"]);const _C=["className"],NC=Vv("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>kf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),MC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rf(n,_C),i=kf({},n,{alignItems:H.useContext(uC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},TC,n)})(i);return Lm.jsx(NC,kf({className:$g(a.root,r),ownerState:i,ref:t},o))}));var qC=MC;var zC=Ef("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const DC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function AC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function FC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function BC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&FC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const WC=H.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Rf(e,DC),p=H.useRef(null),f=H.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jp((()=>{r&&p.current.focus()}),[r]),H.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${mf(Zp(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=of(p,t);let m=-1;H.Children.forEach(i,((e,t)=>{H.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=H.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),H.cloneElement(e,t)}return e}));return Lm.jsx(mC,kf({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Zp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),BC(t,r,s,l,AC);else if("ArrowUp"===n)e.preventDefault(),BC(t,r,s,l,jC);else if("Home"===n)e.preventDefault(),BC(t,null,s,l,AC);else if("End"===n)e.preventDefault(),BC(t,null,s,l,jC);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&FC(r,o);o.previousKeyMatched&&(s||BC(t,r,!1,l,AC,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));var $C=WC;function HC(e){return wf("MuiPopover",e)}Ef("MuiPopover",["root","paper"]);const UC=["onEntering"],VC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],GC=["slotProps"];function KC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ZC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function XC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function QC(e){return"function"==typeof e?e():e}const JC=Vv(xE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YC=Vv(DS,{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}),ek=H.forwardRef((function(e,t){var n,r,o;const i=$v({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=QE,transitionDuration:w="auto",TransitionProps:{onEntering:E}={}}=i,C=Rf(i.TransitionProps,UC),k=Rf(i,VC),R=null!=(n=null==y?void 0:y.paper)?n:v,L=H.useRef(),O=of(L,R.ref),I=kf({},i,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:R,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:C}),T=(e=>{const{classes:t}=e;return bf({root:["root"],paper:["paper"]},HC,t)})(I),P=H.useCallback((()=>{if("anchorPosition"===u)return c;const e=QC(l),t=(e&&1===e.nodeType?e:Zp(L.current).body).getBoundingClientRect();return{top:t.top+KC(t,s.vertical),left:t.left+ZC(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),_=H.useCallback((e=>({vertical:KC(e,x.vertical),horizontal:ZC(e,x.horizontal)})),[x.horizontal,x.vertical]),N=H.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=_(t);if("none"===u)return{top:null,left:null,transformOrigin:XC(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=Xp(QC(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(o<m){const e=o-m;o-=e,n.vertical+=e}else if(a>d){const e=a-d;o-=e,n.vertical+=e}if(i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:XC(n)}}),[l,u,P,_,m]),[M,q]=H.useState(g),z=H.useCallback((()=>{const e=L.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[N]);H.useEffect((()=>{g&&z()})),H.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),H.useEffect((()=>{if(!g)return;const e=Gp((()=>{z()})),t=Xp(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=w;"auto"!==w||S.muiSupportAuto||(D=void 0);const A=f||(l?Zp(QC(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:JC,F=null!=(o=null==b?void 0:b.paper)?o:YC,B=lb({elementType:F,externalSlotProps:kf({},R,{style:M?R.style:kf({},R.style,{opacity:0})}),additionalProps:{elevation:h,ref:O},ownerState:I,className:$g(T.paper,null==R?void 0:R.className)}),W=lb({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:A,open:g},ownerState:I,className:$g(T.root,p)}),{slotProps:$}=W,U=Rf(W,GC);return Lm.jsx(j,kf({},U,!Qv(j)&&{slotProps:$},{children:Lm.jsx(S,kf({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),z()},onExited:()=>{q(!1)},timeout:D},C,{children:Lm.jsx(F,kf({},B,{children:d}))}))}))}));var tk=ek;function nk(e){return wf("MuiMenuItem",e)}var rk=Ef("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ok=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ik=Vv(Fx,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>kf({},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"}},[`&.${rk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rv(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})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wE.inset}`]:{marginLeft:52},[`& .${zC.root}`]:{marginTop:0,marginBottom:0},[`& .${zC.inset}`]:{paddingLeft:36},[`& .${PC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&kf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${PC.root} svg`]:{fontSize:"1.25rem"}})))),ak=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Rf(n,ok),f=H.useContext(uC),h=H.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=H.useRef(null);Jp((()=>{r&&m.current&&m.current.focus()}),[r]);const g=kf({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return kf({},a,bf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},nk,a))})(n),b=of(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Lm.jsx(uC.Provider,{value:h,children:Lm.jsx(ik,kf({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:$g(v.focusVisible,s),className:$g(v.root,d)},p,{ownerState:g,classes:v}))})}));var lk,sk=ak;const ck=["children","classes","className","label","notched"],uk=Vv("fieldset")({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%"}),dk=Vv("legend")((({ownerState:e,theme:t})=>kf({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&&kf({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 pk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],fk=Vv(dw,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:cw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return kf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${vw.focused} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${vw.error} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vw.disabled} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&kf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),hk=Vv((function(e){const{className:t,label:n,notched:r}=e,o=Rf(e,ck),i=null!=n&&""!==n,a=kf({},e,{notched:r,withLabel:i});return Lm.jsx(uk,kf({"aria-hidden":!0,className:t,ownerState:a},o,{children:Lm.jsx(dk,{ownerState:a,children:i?Lm.jsx("span",{children:n}):lk||(lk=Lm.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}})),mk=Vv(pw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:uw})((({theme:e,ownerState:t})=>kf({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}))),gk=H.forwardRef((function(e,t){var n,r,o,i,a;const l=$v({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Rf(l,pk),v=(e=>{const{classes:t}=e;return kf({},t,bf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gw,t))})(l),b=rw(),y=tw({props:l,muiFormControl:b,states:["required"]}),x=kf({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:fk,w=null!=(o=null!=(i=h.input)?i:s.Input)?o:mk;return Lm.jsx(mw,kf({slots:{root:S,input:w},renderSuffix:e=>Lm.jsx(hk,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Lm.jsxs(H.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:kf({},v,{notchedOutline:null})}))}));gk.muiName="Input";var vk=gk,bk=OS(Lm.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),yk=OS(Lm.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const xk=Vv("span")({position:"relative",display:"flex"}),Sk=Vv(bk)({transform:"scale(1)"}),wk=Vv(yk)((({theme:e,ownerState:t})=>kf({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function Ek(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=kf({},e,{checked:t});return Lm.jsxs(xk,{className:n.root,ownerState:o,children:[Lm.jsx(Sk,{fontSize:r,className:n.background,ownerState:o}),Lm.jsx(wk,{fontSize:r,className:n.dot,ownerState:o})]})}var Ck=H.createContext(void 0);function kk(e){return wf("MuiRadio",e)}var Rk=Ef("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Lk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Ok=Vv(Ww,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>kf({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})`:rv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Rk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Rk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Ik=Lm.jsx(Ek,{checked:!0}),Tk=Lm.jsx(Ek,{}),Pk=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=Ik,color:l="primary",icon:s=Tk,name:c,onChange:u,size:d="medium",className:p}=o,f=Rf(o,Lk),h=kf({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n}=e;return kf({},t,bf({root:["root",`color${Up(n)}`]},kk,t))})(h),g=H.useContext(Ck);let v=i;const b=Vp(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),Lm.jsx(Ok,kf({type:"radio",icon:H.cloneElement(s,{fontSize:null!=(n=Tk.props.fontSize)?n:d}),checkedIcon:H.cloneElement(a,{fontSize:null!=(r=Ik.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:$g(m.root,p)},f))}));var _k=Pk;function Nk(e){return wf("MuiTooltip",e)}var Mk=Ef("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const qk=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const zk=Vv(ew,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>kf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Mk.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Mk.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Mk.arrow}`]:kf({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Mk.arrow}`]:kf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Dk=Vv("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Up(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return kf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rv(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Mk.popper}[data-popper-placement*="left"] &`]:kf({transformOrigin:"right center"},t.isRtl?kf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):kf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Mk.popper}[data-popper-placement*="right"] &`]:kf({transformOrigin:"left center"},t.isRtl?kf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):kf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Mk.popper}[data-popper-placement*="top"] &`]:kf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Mk.popper}[data-popper-placement*="bottom"] &`]:kf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Ak=Vv("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let jk=!1,Fk=null,Bk={x:0,y:0};function Wk(e,t){return n=>{t&&t(n),e(n)}}const $k=H.forwardRef((function(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=$v({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:T=!1,enterDelay:P=100,enterNextDelay:_=0,enterTouchDelay:N=700,followCursor:M=!1,id:q,leaveDelay:z=0,leaveTouchDelay:D=1500,onClose:A,onOpen:j,open:F,placement:B="bottom",PopperComponent:W,PopperProps:$={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=QE,TransitionProps:Z}=S,X=Rf(S,qk),Q=Wv(),J="rtl"===Q.direction,[Y,ee]=H.useState(),[te,ne]=H.useState(null),re=H.useRef(!1),oe=I||M,ie=H.useRef(),ae=H.useRef(),le=H.useRef(),se=H.useRef(),[ce,ue]=nf({controlled:F,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=tf(q),fe=H.useRef(),he=H.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(se.current)}),[]);H.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(ae.current),clearTimeout(le.current),he()}),[he]);const me=e=>{clearTimeout(Fk),jk=!0,ue(!0),j&&!de&&j(e)},ge=rf((e=>{clearTimeout(Fk),Fk=setTimeout((()=>{jk=!1}),800+z),ue(!1),A&&de&&A(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(Y&&Y.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(le.current),P||jk&&_?ae.current=setTimeout((()=>{me(e)}),jk?_:P):me(e))},be=e=>{clearTimeout(ae.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),z)},{isFocusVisibleRef:ye,onBlur:xe,onFocus:Se,ref:we}=hf(),[,Ee]=H.useState(!1),Ce=e=>{xe(e),!1===ye.current&&(Ee(!1),be(e))},ke=e=>{Y||ee(e.currentTarget),Se(e),!0===ye.current&&(Ee(!0),ve(e))},Re=e=>{re.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)},Le=ve,Oe=be,Ie=e=>{Re(e),clearTimeout(le.current),clearTimeout(ie.current),he(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),N)},Te=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),he(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)};H.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,de]);const Pe=of(E.ref,we,ee,t);G||0===G||(de=!1);const _e=H.useRef(),Ne={},Me="string"==typeof G;R?(Ne.title=de||!Me||O?null:G,Ne["aria-describedby"]=de?pe:null):(Ne["aria-label"]=Me?G:null,Ne["aria-labelledby"]=de&&!Me?pe:null);const qe=kf({},Ne,X,E.props,{className:$g(X.className,E.props.className),onTouchStart:Re,ref:Pe},M?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),Bk={x:e.clientX,y:e.clientY},_e.current&&_e.current.update()}}:{}),ze={};T||(qe.onTouchStart=Ie,qe.onTouchEnd=Te),O||(qe.onMouseOver=Wk(Le,qe.onMouseOver),qe.onMouseLeave=Wk(Oe,qe.onMouseLeave),oe||(ze.onMouseOver=Le,ze.onMouseLeave=Oe)),L||(qe.onFocus=Wk(ke,qe.onFocus),qe.onBlur=Wk(Ce,qe.onBlur),oe||(ze.onFocus=ke,ze.onBlur=Ce));const De=H.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=$.popperOptions)&&e.modifiers&&(t=t.concat($.popperOptions.modifiers)),kf({},$.popperOptions,{modifiers:t})}),[te,$]),Ae=kf({},S,{isRtl:J,arrow:w,disableInteractive:oe,placement:B,PopperComponentProp:W,touch:re.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return bf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Up(i.split("-")[0])}`],arrow:["arrow"]},Nk,t)})(Ae),Fe=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:zk,Be=null!=(o=null!=(i=null!=(a=V.transition)?a:C.Transition)?i:K)?o:QE,We=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:Dk,$e=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:Ak,He=Jv(Fe,kf({},$,null!=(d=U.popper)?d:k.popper,{className:$g(je.popper,null==$?void 0:$.className,null==(p=null!=(f=U.popper)?f:k.popper)?void 0:p.className)}),Ae),Ue=Jv(Be,kf({},Z,null!=(h=U.transition)?h:k.transition),Ae),Ve=Jv(We,kf({},null!=(m=U.tooltip)?m:k.tooltip,{className:$g(je.tooltip,null==(g=null!=(v=U.tooltip)?v:k.tooltip)?void 0:g.className)}),Ae),Ge=Jv($e,kf({},null!=(b=U.arrow)?b:k.arrow,{className:$g(je.arrow,null==(y=null!=(x=U.arrow)?x:k.arrow)?void 0:y.className)}),Ae);return Lm.jsxs(H.Fragment,{children:[H.cloneElement(E,qe),Lm.jsx(Fe,kf({as:null!=W?W:ew,placement:B,anchorEl:M?{getBoundingClientRect:()=>({top:Bk.y,left:Bk.x,right:Bk.x,bottom:Bk.y,width:0,height:0})}:Y,popperRef:_e,open:!!Y&&de,id:pe,transition:!0},ze,He,{popperOptions:De,children:({TransitionProps:e})=>Lm.jsx(Be,kf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Lm.jsxs(We,kf({},Ve,{children:[G,w?Lm.jsx($e,kf({},Ge,{ref:ne})):null]}))}))}))]})}));var Hk=$k;const[Uk,Vk]=uS({}),[Gk,Kk]=uS({}),[Zk,Xk]=uS({}),[Qk,Jk]=uS({}),[Yk,eR]=uS({}),[,tR]=uS({}),nR=e=>{let{type:t,value:n}=e;const r=tR.get(n.id);tR.set(n.id,{});const o=()=>{Kk.clear(n.id),eR.set(n.id,{}),eR.dispatch(!0)},i=()=>{n.removeListener("changed",o),Vk.clear(n.id),Kk.clear(n.id),Xk.clear(n.id),Jk.clear(n.id),eR.clear(n.id),tR.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[rR,oR]=uS({},nR),iR=e=>{const t=nR({type:"SET",value:e});return()=>{t(),oR.clear(e.id)}};function aR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=rR(),[o]=Zk(),[i,a]=H.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return H.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const i=await l;r.set(n,i),a(i)})()}),[t,...c]),[i]}const lR={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function sR(e){return aR(lR,e)}const cR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=i(i({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:i({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=i(i({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=a,n.set(r,l),a};function uR(e,t){const n=e?"".concat(e.id):null,[r]=Uk(),[o,i]=H.useReducer(cR,n?r.get(n):null),[a]=Yk(),[l]=Gk();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return H.useEffect((()=>{e&&c()}),[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function dR(e){return uR(e,"getLayout")}function pR(e){return uR(e,"getAppLayout")}function fR(){const[e,t]=H.useState(),[n,r]=H.useState(),o=H.useCallback((e=>{e&&t(e)}),[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return H.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}}),[e]),[o,n,e]}function hR(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function mR(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=i({fontSize:hR(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return U.createElement("i",{style:a},U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return U.createElement(n,l({key:t},r))}))))}var gR=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var vR=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.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 0v1.652ZM3 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-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));var bR=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));var yR=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),xR=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},SR=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=xR(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},xR(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),yR(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++)t(c)?null!==s&&(a.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(H.PureComponent);const wR=["S","XS"],ER=e=>e.reduce(((e,t)=>e.concat(t)));function CR(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!wR.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return ER(t)}async function kR(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const RR="RowColumn",LR={row:"".concat(RR,"-row"),rowBorderBottom:"".concat(RR,"-rowBorderBottom"),column:"".concat(RR,"-column"),fieldRoot:"".concat(RR,"-fieldRoot"),cell:"".concat(RR,"-cell"),labelText:"".concat(RR,"-labelText"),labelDense:"".concat(RR,"-labelDense"),highlighted:"".concat(RR,"-highlighted"),checkboxLabel:"".concat(RR,"-checkboxLabel"),icon:"".concat(RR,"-icon"),S:"".concat(RR,"-S"),XS:"".concat(RR,"-XS"),A:"".concat(RR,"-A"),X:"".concat(RR,"-X"),frequencyCount:"".concat(RR,"-frequencyCount"),barContainer:"".concat(RR,"-barContainer"),bar:"".concat(RR,"-bar"),barSelected:"".concat(RR,"-barSelected"),barWithCheckbox:"".concat(RR,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(RR,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(RR,"-excludedTextWithCheckbox")},OR=".".concat(LR.fieldRoot),IR=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function TR(e){var t,n;let{selectionState:r,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:l}=e;const s=H.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});H.useEffect((()=>{var e,t;if(null===(e=l.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),i=l.current._listRef._outerRef;return i.addEventListener("gesturestart",n),i.addEventListener("gesturechange",r),i.addEventListener("gestureend",o),()=>{i.removeEventListener("gesturestart",n),i.removeEventListener("gesturechange",r),i.removeEventListener("gestureend",o)}}),[null===(t=l.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const c=()=>(r.setSelectableValuesUpdating(),kR({selections:o,elemNumbers:s.current.elemNumbers,isSingleSelect:r.isSingleSelect,toggle:s.current.toggle})),u=(e,t)=>{const n=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return ER(t)}(r.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],n)},d=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const n=u(s.current.startElemNumber,e);r.updateItems(n,!0,s.current.elemNumbers)},p=H.useCallback((e=>{if(r.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!r.isSingleSelect&&IR(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=n,n||r.clearItemStates(!0),r.updateItem(t),s.current.active=!1,c()}),[]),f=H.useCallback((e=>{if(0!==e.button||r.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!r.isSingleSelect&&IR(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=n,s.current.active=!0,n||r.clearItemStates(!0),r.updateItem(t),r.isSingleSelect&&(s.current.active=!1,c()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),h=H.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");d(t)}c()}}),[]),m=H.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,c())}),[]),g=H.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,r.isSelected(s.current.startElemNumber)||(r.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");d(t)}),[]),v=H.useCallback((e=>{var t,n,o,i;if(s.current.active||s.current.isRange||r.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void c();const a=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(OR))||void 0===n?void 0:n.getAttribute("data-n")),l=Number(null===(o=e.touches[1].target)||void 0===o||null===(i=o.closest(OR))||void 0===i?void 0:i.getAttribute("data-n"));if(Number.isNaN(a)||Number.isNaN(a))return void c();s.current.active=!0;u(a,l).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[a,l]}),[]),b=H.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,d(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,c()}),[]);H.useEffect((()=>(a.addEventListener("mouseup",m),()=>{a.removeEventListener("mouseup",m)})),[m]),H.useEffect((()=>{const e=()=>{r.clearItemStates(!1)},t=()=>{r.clearItemStates(!0),r.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const y={};return i?Object.assign(y,{onChange:p}):Object.assign(y,{onMouseUp:h,onMouseDown:f,onMouseEnter:g,onTouchStart:v,onTouchEnd:b}),{interactionEvents:y,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=!r.isSingleSelect&&IR(null==n?void 0:n.nativeEvent);i||r.clearItemStates(!0);const a=[];return r.updateItems(e,t,a),r.setSelectableValuesUpdating(),kR({selections:o,elemNumbers:t?a:e,isSingleSelect:r.isSingleSelect,toggle:i})}}}const PR=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var _R=e=>mR(PR(e));const NR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,MR=e=>e?"A"===e.qState:null,qR=e=>{let{cell:t,checkboxes:n}=e;return(MR(t)||NR(t))&&n},zR=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?LR.column:LR.row];return n||a.push(LR.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?LR.XS:LR.S):"S"===o.qState||"L"===o.qState?a.push(LR.S):i&&MR(o)?a.push(LR.A):i&&NR(o)&&a.push(LR.X)),a):[]},DR=9,AR=80,jR=10,FR=150,BR=56,WR=20,$R="-",HR=e=>e.filter((e=>!!e)).join(" ").trim(),UR=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},VR=e=>e||$R,GR=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},KR=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},ZR=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},XR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},QR=Vv("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue"].includes(e)})((e=>{var t,n,r,o,a,l,s,c,u,d;let{theme:p,checkboxes:f,isGridMode:h,isGridCol:m,dense:g,direction:v,sizes:b,frequencyMode:y,freqHitsValue:x}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(LR.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=p.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:p.palette.text.primary},["& .".concat(LR.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(LR.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(p.palette.divider),color:null!==(o=null===(a=p.listBox)||void 0===a||null===(l=a.content)||void 0===l?void 0:l.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(LR.cell)]:{display:"flex",alignItems:"center",flexGrow:1,minWidth:f?"52px":"26px",flexBasis:f?"auto":"max-content",paddingLeft:"".concat(DR,"px"),paddingRight:0},["& .".concat(LR.labelText)]:i(i({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},XR),{},{fontSize:null===(s=p.listBox)||void 0===s||null===(c=s.content)||void 0===c?void 0:c.fontSize,fontFamily:null===(u=p.listBox)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.fontFamily}),["& .".concat(LR.labelDense)]:{fontSize:12},["& .".concat(LR.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(LR.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":i(i({},XR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(LR.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(LR.S)]:i(i({},ZR({theme:p})),{},{border:h?"none":void 0}),["& .".concat(LR.XS)]:i(i({},ZR({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(LR.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(LR.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(LR.frequencyCount)]:i(i({justifyContent:"flex-end"},XR),{},{flex:"0 0 ".concat(GR({sizes:b,frequencyMode:y,isGridMode:h,freqHitsValue:x})),minWidth:!h&&"P"!==y&&x?b.freqMinWidth:"max-content",maxWidth:KR({sizes:b,frequencyMode:y,isGridMode:h}),textAlign:"rtl"===v?"left":"right",paddingLeft:"rtl"!==v?"8px":0}),["&.".concat(LR.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(LR.bar)]:{height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(LR.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:p.palette.background.lighter}},["& .".concat(LR.barWithCheckbox)]:{left:"rtl"===v?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(LR.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(LR.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var JR=U.memo(QR);const YR="ListBoxCheckbox",eL={cbIcon:"".concat(YR,"-cbIcon"),cbIconChecked:"".concat(YR,"-cbIconChecked"),cbIconExcluded:"".concat(YR,"-cbIconExcluded"),cbIconAlternative:"".concat(YR,"-cbIconAlternative"),checkbox:"".concat(YR,"-checkbox"),dense:"".concat(YR,"-dense")},tL=Vv(eE)((e=>{let{theme:t}=e;return{["& .".concat(eL.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(eL.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(eL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(eL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(eL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(eL.dense)]:{padding:"4px 8px"}}})),nL=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return U.createElement("span",{className:e.cbIcon},n&&U.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function rL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,showGray:a=!0,dataN:l}=e;return U.createElement(tL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[eL.checkbox,o&&eL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:nL(eL,a,i),checkedIcon:U.createElement("span",{className:eL.cbIconChecked})})}const oL="ListBoxRadioButton",iL={denseRadioButton:"".concat(oL,"-denseRadioButton"),radioButton:"".concat(oL,"-radioButton")},aL=Vv(_k)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(iL.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function lL(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i}=e;return U.createElement(aL,{checked:n,onChange:t,value:r,name:r,className:iL.radioButton,inputProps:{"data-n":i},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function sL(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:l}=e;return U.createElement(XS,{component:"span",variant:"body2",className:HR([LR.labelText,r&&LR.labelDense,o&&qR({cell:a,checkboxes:i})&&LR.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},U.createElement("span",null,t))}function cL(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}=e;return"string"==typeof t?U.createElement(sL,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}):t}function uL(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=U.createElement(rL,{onChange:t,label:n,checked:i,dense:a,excluded:NR(l),isGridCol:s,showGray:c,dataN:o}),h=U.createElement(lL,{onChange:t,label:n,checked:i,dense:a,dataN:o});return U.createElement(ME,{color:r,control:u?h:f,className:LR.checkboxLabel,label:U.createElement(cL,{label:n,color:r,dense:a,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function dL(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return U.createElement("span",{id:t,className:r?LR.highlighted:""},n)}));return U.createElement(sL,{label:i,dense:n,showGray:r,checkboxes:o})}function pL(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,color:a,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=U.createElement(dL,{labels:n,dense:o,showGray:i,checkboxes:r});return r?U.createElement(uL,{onChange:t,label:f,color:a,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:i,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var fL=U.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?U.createElement(uL,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):U.createElement(sL,{label:n,color:r,dense:a,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function hL(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&VR(t)!==$R))return;const a=UR({qFrequency:t,checkboxes:r,frequencyMax:i});return U.createElement(zw,{className:HR([LR.bar,r&&LR.barWithCheckbox,o&&(r?LR.barSelectedWithCheckbox:LR.barSelected)])},U.createElement(zw,{className:"bar-filled",width:a}))}function mL(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=VR(null==t?void 0:t.qFrequency);return U.createElement(UE,{item:!0,style:{display:"flex",alignItems:"center"},className:LR.frequencyCount,"aria-label":i,title:i},U.createElement(XS,{noWrap:!0,color:"inherit",variant:"body2",className:HR([r&&LR.labelDense,LR.labelText,o&&qR({cell:t,checkboxes:n})&&LR.excludedTextWithCheckbox])},i))}function gL(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const vL=Vv(UE,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a}=e;const l="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(LR.fieldRoot)]:i(i({},gL({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{[l]:o?"8px":void 0})}}));const bL={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function yL(e){var t;let{layout:n}=e;const{translator:r}=H.useContext(cS),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}const l=r.get(a,[i]);return U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const xL=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===xL.ARROW_UP||e===xL.ARROW_DOWN||e===xL.ARROW_LEFT||e===xL.ARROW_RIGHT}),SL=e=>+e.getAttribute("data-n"),wL=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},EL=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},CL=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:l}=e;const s=e=>{let t;return"row"===i?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(a===xL.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function kL(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:l,style:s,data:c}=e;const{onChange:u,onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onTouchStart:m,onTouchEnd:g,pages:v,isLocked:b,column:y=!1,checkboxes:x=!1,textAlign:S,direction:w,layoutOptions:E={},freqIsAllowed:C,isSingleSelect:k,actions:R,frequencyMax:L="",histogram:O=!1,keyboard:I,showGray:T=!0,showTick:P=!0,columnCount:_=1,rowCount:N=1,dataOffset:M,deducedFrequencyMode:q,focusListItems:z,listCount:D,sizes:A,translator:j,showSearch:F,isModal:B}=c,{dense:W=!1,dataLayout:$="singleColumn",layoutOrder:V}=E,{itemPadding:G}=A;let K,Z;const X={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof l){"row"===V?(K=a*_+l,X.max=N,X.currentIndex=a):(K=l*N+a,X.max=_,X.currentIndex=l);const e=0;Z=i(i({},s),{},{left:e+(0===l?s.left:Number(s.left)+l*e),top:0===a?s.top:Number(s.top)+a*e})}else K=o,X.max=D,X.currentIndex=o,Z=i({},s);K+=M;const[Q,J]=H.useState(null);H.useEffect((()=>{null!==Q&&(0===X.currentIndex&&z.first&&(Q.focus(),z.setFirst(!1)),X.currentIndex===X.max-1&&z.last&&(Q.focus(),z.setLast(!1)))}),[Q,z.first,z.last]);const Y=H.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===xL.ARROW_LEFT||e===xL.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=CL({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case xL.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){wL(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case xL.SHIFT:v(!0);break;case xL.SPACE:t([SL(d)],!1,e);break;case xL.ARROW_DOWN:case xL.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([SL(d)],!0),v(!1)),t([SL(u)],!0));break;case xL.ARROW_UP:case xL.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([SL(d)],!0),v(!1)),t([SL(u)],!0));break;case xL.ENTER:o();break;case xL.ESCAPE:if(!c())return;i();break;case xL.HOME:if(l.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case xL.END:if(l.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case xL.A:if(b||y){n();break}return;case xL.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(i(i({},R),{},{focusListItems:z,keyboard:I,isModal:B,rowCount:N,columnCount:_,rowIndex:a,columnIndex:l,layoutOrder:V})),[R,null==I?void 0:I.innerTabStops,N,_,a,l,V]),ee=H.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:v,cellIndex:K})),[v,K]),te="S"===(null==ee?void 0:ee.qState)||"XS"===(null==ee?void 0:ee.qState)||"L"===(null==ee?void 0:ee.qState)||"XL"===(null==ee?void 0:ee.qState),ne=H.useMemo((()=>zR({column:y,histogram:O,checkboxes:x,cell:ee,showGray:T})),[null==ee?void 0:ee.qState,O,W,x]),re=H.useCallback((e=>{e.preventDefault()}),[x]),oe=H.useMemo((()=>ee&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:w,cell:ee,textAlign:S})),[w,ee,S]);if(!ee)return null;const ie="grid"===$&&"column"===V,ae=null!==(t=null==ee?void 0:ee.qText)&&void 0!==t?t:"";let le;if(null!==(n=ee.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=ee.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];le=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return a&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(ae,e)}const se={alignItems:"center",display:"flex",fontSize:"8px"},ce="rtl"===w,ue={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ce?8:x?0:void 0,paddingRight:x?0:ce?8:0,justifyContent:oe},de=0===o,pe=te&&b,fe=!x&&te&&!b,he=!x&&P,me=x||!P,ge=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:l}=e;const s=bL[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:j,label:ae,qState:ee.qState,currentIndex:X.currentIndex,maxIndex:X.max,showSearch:F}),ve=!ce&&"right"===oe||ce&&"left"===oe;return U.createElement(JR,{className:LR.barContainer,checkboxes:x,style:Z,isGridCol:ie,isGridMode:"grid"===$,dense:W,direction:w,sizes:A,frequencyMode:q,freqHitsValue:ve,"data-testid":"listbox.item"},U.createElement(vL,{role:"row","aria-label":ge,"aria-selected":te,"aria-setsize":X.max,"aria-rowindex":X.currentIndex,ref:J,container:!0,dataLayout:$,cellPaddingRight:me,layoutOrder:V,itemPadding:G,gap:0,className:HR(["value",...ne]),classes:{root:LR.fieldRoot},onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onKeyDown:Y,onTouchStart:m,onTouchEnd:g,onContextMenu:re,tabIndex:de&&I.innerTabStops?0:-1,"data-n":null==ee?void 0:ee.qElemNumber,direction:w},(null==ee?void 0:ee.qFrequency)&&U.createElement(hL,{qFrequency:null==ee?void 0:ee.qFrequency,histogram:O,checkboxes:x,isSelected:te,frequencyMax:L}),U.createElement(UE,{item:!0,style:ue,className:HR([LR.cell,LR.selectedCell]),title:"".concat(ae)},le?U.createElement(pL,{onChange:u,labels:le,checkboxes:x,dense:W,showGray:T,color:"inherit",qElemNumber:ee.qElemNumber,isSelected:te,cell:ee,isGridCol:ie,isSingleSelect:k,valueTextAlign:oe}):U.createElement(fL,{onChange:u,label:ae,color:"inherit",qElemNumber:ee.qElemNumber,isSelected:te,dense:W,cell:ee,isGridCol:ie,showGray:T,isSingleSelect:k,checkboxes:x,valueTextAlign:oe})),C&&U.createElement(mL,{cell:ee,checkboxes:x,dense:W,showGray:T}),he&&U.createElement(UE,{item:!0,className:LR.icon},pe&&U.createElement(vR,{style:se,size:"small"}),fe&&U.createElement(_R,{style:se,size:"small"}))))}var RL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function LL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||RL(r)&&RL(o)))return!1;var r,o;return!0}function OL(e,t){var n;void 0===t&&(t=LL);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var IL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function TL(e){cancelAnimationFrame(e.id)}function PL(e,t){var n=IL();var r={id:requestAnimationFrame((function o(){IL()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var _L=-1;function NL(e){if(void 0===e&&(e=!1),-1===_L||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),_L=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return _L}var ML=null;function qL(e){if(void 0===e&&(e=!1),null===ML||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ML="positive-descending":(t.scrollLeft=1,ML=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ML}return ML}var zL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function DL(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=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 r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,hx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:hx(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OL((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=OL((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=OL((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(qL()){case"negative":c=-i;break;case"positive-descending":c=s-o-i}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=PL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}rx(t,e),t.getDerivedStateFromProps=function(e,t){return AL(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=NL();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(qL()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TL(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?zL:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var I=w;I<=E;I++)L.push(H.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,I)}));var T=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ex({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},H.createElement(c||u||"div",{children:L,ref:s,style:{height:T,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=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]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||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=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var AL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},jL=function(e,t){return e};function FL(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,hx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:hx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OL((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=OL((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;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},r._getItemStyleCache=void 0,r._getItemStyleCache=OL((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(qL()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=PL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}rx(t,e),t.getDerivedStateFromProps=function(e,t){return BL(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?NL():0:s.scrollHeight>s.clientHeight?NL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(qL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?jL:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(H.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:ex({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},H.createElement(l||s||"div",{children:k,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var BL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},WL=DL({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,a*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+i+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*a-l),u=Math.min(c,t*a),d=Math.max(0,t*a-l+i+a);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),$L=FL({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const HL="#BBB",UL="#f1f1f1",VL={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const GL=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,KL=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,ZL=(e,t,n,r)=>e===t*n+r+n;function XL(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=GL(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,f=ZL(l,u,c?i:o,s),h=!!s&&KL(t,c),m=p&&!f&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:QL,StyledFixedSizeGrid:JL}=function(){const e=e=>({scrollbarColor:"".concat(HL," ").concat(UL),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:UL},"&::-webkit-scrollbar-thumb":{backgroundColor:HL,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:vm($L,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(VL.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:vm(WL,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(VL.styledScrollbars)]:e(n)}}))}}();const YL=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},eO=e=>{const t=H.useMemo((()=>"text"in e?e:{}),[e]);return H.useMemo((()=>YL(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function tO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function nO(e){var t;let{layout:n,width:r,height:o,listCount:i,count:a,freqIsAllowed:l,checkboxes:s,theme:c}=e;const{layoutOptions:u={}}=n||{},{layoutOrder:d,maxVisibleRows:p={},maxVisibleColumns:f,dense:h,dataLayout:m}=u,{fontSize:g="12px",fontFamily:v="Source sans pro"}=(null==c||null===(t=c.listBox)||void 0===t?void 0:t.content)||{},b="".concat(g," ").concat(v),y=eO({text:tO(n),font:b}),x=eO({text:tO(5),font:b}),S=eO({text:tO(8),font:b}),w=l?x:0,E=s?WR:0;let C=BR+w+E;!s&&C>=AR&&(C+=WR);let k,R,L,O,I=y+18+w+E;!s&&I>=AR&&(I+=WR),I=Math.min(FR,Math.max(I,C));const T="grid"===m;let P=h?20:T?32:29;T&&(P+=4);const _=null!=o?o:8*P;if(d){let e=r;"row"===d?(k={overflowX:"hidden"},e+=8,({rowCount:O,columnWidth:L,columnCount:R}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,l=r-jR;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(i,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:f,listCount:i,containerWidth:e,columnAutoWidth:I,itemMinWidth:C}))):(k={overflowY:"hidden"},({rowCount:O,columnWidth:L,columnCount:R}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:p,itemHeight:P,listCount:i,listHeight:_,columnAutoWidth:I,containerWidth:e,itemMinWidth:C})))}R=("singleColumn"===m?1:R)||1,O=("singleColumn"===m?a:O)||i;const N=u.dense?838e3:577e3;O=Math.min(O,N);const M=Math.floor(3355e4/L);R=Math.min(R,M)||1;const q=O*R,z=Math.min(i,q);return{columnCount:R,columnWidth:L,rowCount:O,overflowStyling:k,itemHeight:P,listHeight:_,listWidth:r,scrollBarWidth:jR,count:a,listCount:z,maxCount:{row:N,column:M},itemPadding:4,textWidth:y,freqMinWidth:x,freqMaxWidth:S}}const rO=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[oO,iO]=uS({});function aO(e){const t="".concat(e.id),[n]=oO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const lO=Vv(XS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return i({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function sO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=H.useContext(cS);return U.createElement(Hk,{title:o?i.get(n):""},U.createElement(lO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var cO={},uO={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(uO);var dO,pO=uO.exports,fO={},hO=r(TS);var mO=pO;Object.defineProperty(cO,"__esModule",{value:!0});var gO=cO.default=void 0,vO=mO((dO||(dO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hO}(fO)),fO)),bO=Lm,yO=(0,vO.default)((0,bO.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");gO=cO.default=yO;const xO=Vv(DS)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),SO=Vv("div")((()=>({paddingLeft:"6px",flexGrow:1}))),wO=Vv("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),EO=Vv(gO)((()=>({fontSize:"14px"})));function CO(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const i="function"==typeof n,a=r?370:282,l=Math.max(o/2-a/2,0),s=Math.min(a,o)-42,c=r&&o<a;return U.createElement(xO,{left:l,style:{maxWidth:a}},U.createElement(SO,null,U.createElement(sO,{text:t,dense:r,width:s,tooltip:c})),U.createElement(wO,{dense:r},i&&U.createElement($S,{"aria-label":"close",onClick:()=>n()},U.createElement(EO,null))))}const kO=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const RO=80;function LO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>RO,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const OO=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},IO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=H.useState(),[i,a]=H.useState(n);return H.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=OO(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const TO=["isLoadingData"],PO=100,_O=Vv("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function NO(e){var t,n,r,o;let{model:a,app:c,constraints:u,theme:d,layout:p,selections:f,selectionState:h,direction:m,checkboxes:g,height:v,width:b,frequencyMode:y,update:x,fetchStart:S,postProcessPages:w,calculatePagesHeight:E=!1,keyboard:C={},showGray:k=!0,scrollState:R,selectDisabled:L=(()=>!1),keyScroll:O={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:T,onCtrlF:P,showSearch:_,isModal:N}=e;const{translator:M}=H.useContext(cS),[q,z]=H.useState(!1),D=!(!p||!p.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=g,histogram:j}=null!=p?p:{},[F,B]=H.useState(""),W=H.useRef(null),$=H.useRef({queue:[],validPages:!1,dataOffset:0}),V=H.useRef({pages:[]}),{frequencyMax:G,awaitingFrequencyMax:K}=IO(c,p),Z=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:l}=e;const[s,c]=H.useState(!1),[u,d]=H.useState([]);let[p]=H.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],i=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=a?a(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(i)}),f?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:$,loaderRef:W,model:a,fetchStart:S,scrollTimeout:0,postProcessPages:w,listData:V}),X=s(Z,TO),{getStoreValue:Q,setStoreValue:J}=aO(a),Y=H.useCallback(X.loadMoreItems,[p]),[ee,te]=H.useState({show:!1,dismissed:!1}),[ne,re]=H.useState([]);null!=X&&X.pages&&h.update({setPages:re,pages:X.pages,isSingleSelect:D,selectDisabled:L,layout:p});const oe=null==p?void 0:p.qListObject.qDimensionInfo.qCardinal;(null!=X&&X.pages.length&&!K||0===oe)&&(null==T||T());const ie=H.useCallback((e=>{if(null==ne||!ne.length||!$.current.validPages)return!1;$.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=ne.filter((e=>t(e)))[0];return n&&t(n)}),[p,ne]),{interactionEvents:ae,select:le}=TR({selectionState:h,selections:f,checkboxes:A,doc:document,loaderRef:W}),{layoutOptions:se={}}=p||{};let ce=!0;se.dataLayout&&(ce="singleColumn"===se.dataLayout||"row"===(null==se?void 0:se.layoutOrder));const ue="grid"===(null==se?void 0:se.dataLayout),de=e=>{const t=i({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;W.current._listRef.scrollToItem(n)},pe=()=>{if($.current.queue=[],$.current.validPages=!1,W.current){W.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===O.state.scrollPosition;if(p&&p.qSelectionInfo.qInSelections||e)return void(e&&O.reset());$.current.dataOffset=0,de(0)}};x&&x.call(null,pe),H.useEffect((()=>{R&&!q&&W.current&&(W.current._listRef.scrollToItem(R.initScrollPos),z(!0))}),[W.current]),H.useEffect((()=>{pe()}),[p,$.current.dataOffset]);let fe=PO;const he="grid"!==se.dataLayout,me=null==p||null===(t=p.qListObject.qSize)||void 0===t?void 0:t.qcy,ge=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?rO({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ne,minimumBatchSize:fe,count:me,calculatePagesHeight:E,layoutOptions:se,model:a});let ve=LO({itemWidth:b,layout:p,frequencyMode:y});const be=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(ne),ye=nO({layout:p,width:b,height:v,listCount:ge,count:me,freqIsAllowed:ve,checkboxes:A,theme:d});ye.columnWidth&&(ve=LO({itemWidth:ye.columnWidth,layout:p,frequencyMode:y}));const{listCount:xe}=ye;J("listCount",xe);const Se=Q("inputText");H.useEffect((()=>{if(Se){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(xe),t=M.get(e,[xe]);B(t)}}),[Se,xe]);const we=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,l=!1,s=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=kO(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ce,sizes:ye,layout:p,offset:$.current.dataOffset});$.current.dataOffset=n,r&&h.triggerStateChanged(),de(t)};H.useEffect((()=>{const e=O.state;e.up?de(I.state.start-e.up):e.down?de(I.state.stop+e.down):e.scrollPosition&&we(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&O.reset()}),[O.state.up,O.state.down,O.state.scrollPosition]);const{textAlign:Ee}=(null==p?void 0:p.qListObject.qDimensionInfo)||{},[Ce,ke]=H.useState({first:!1,last:!1}),{List:Re,Grid:Le}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:s,selectDisabled:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:I,frequencyMax:T,freqIsAllowed:P,translator:_,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:z,listHeight:D,itemHeight:A,rowCount:j,columnCount:F}=E||{},B=("grid"===q.dataLayout?z:n)>AR,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:VL.styledScrollbars},$=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,H=i(i({isLocked:$,column:!a,pages:s},$||c()?{}:u),{},{checkboxes:r,layoutOptions:q,deducedFrequencyMode:d,freqIsAllowed:P,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:T,histogram:p,keyboard:y,showGray:x,showTick:B,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:_,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,U.createElement(QL,l({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:D,width:n,itemCount:C,itemData:i(i({},H),{},{listCount:C}),itemSize:A,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),XL({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(a=n.qDimensionInfo)||void 0===a?void 0:a.qCardinal,dataOffset:o.current.dataOffset}),r(i({},e))},ref:a}),kL)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=q||{},d=Math.min(D,j*A+c);return o.current.listRef=a,U.createElement(JL,l({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:F,columnWidth:z,rowCount:j,rowHeight:A,style:i({},s),itemData:i(i({},H),{},{column:void 0,columnCount:F,rowCount:j}),onItemsRendered:e=>{var n,i;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=a,f=c*o,h=l):(d=s,p=a*i,f=c,h=l*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:j,columnCount:F});XL({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(i=n.qDimensionInfo)||void 0===i?void 0:i.qCardinal,dataOffset:o.current.dataOffset}),r(l)},ref:a}),kL)}}}({direction:m,layout:p,height:v,width:b,checkboxes:A,deducedFrequencyMode:be,histogram:j,keyboard:C,showGray:k,interactionEvents:ae,select:le,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:P,textAlign:Ee,isVertical:he,pages:ne,selectDisabled:L,isSingleSelect:D,selections:f,scrollState:R,local:$,sizes:ye,listCount:xe,overflowDisclaimer:{state:ee,set:e=>te((t=>i(i({},t),{},{show:e})))},setScrollPosition:we,focusListItems:{first:Ce.first,setFirst:e=>ke((t=>i(i({},t),{},{first:e}))),last:Ce.last,setLast:e=>ke((t=>i(i({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:u,frequencyMax:G,freqIsAllowed:ve,translator:M,showSearch:_,isModal:N}),{columnWidth:Oe,listHeight:Ie,itemHeight:Te}=ye||{};return he||(fe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:b,columnWidth:Oe,listHeight:Ie,itemHeight:Te})),U.createElement(_O,null,U.createElement(yL,{className:"screenReaderOnly",layout:p}),U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},F),!xe&&oe>0&&U.createElement(sO,{width:b,text:"Listbox.NoMatchesForYourTerms"}),U.createElement(SR,{isItemLoaded:ie,itemCount:xe||1,loadMoreItems:Y.with({minimumBatchSize:fe}),threshold:0,minimumBatchSize:fe,ref:W,role:"grid"},he?Re:Le),ee.show&&!ee.dismissed&&U.createElement(CO,{text:"Listbox.ItemsOverflow",dismiss:()=>te((e=>i(i({},e),{},{dismissed:!0}))),parentWidth:null==W||null===(n=W.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==se?void 0:se.dense}))}const MO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),qO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),zO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),DO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var AO=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:MO,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:zO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:qO,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:DO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const jO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function FO(e){const t=Wv(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const BO={className:"njs-cell-action"},WO=U.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=Wv(),{hidden:a,disabled:l,style:s,hasSvgIconShape:c}=FO(r);if(a)return null;const u=Number.parseInt(i.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return U.createElement($S,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[BO.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&mR(r.getSvgIconShape()),o&&U.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),$O=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),HO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var UO=e=>mR(HO(e));const VO="njs-action-toolbar-more",GO={icon:"".concat("More","-icon")},KO=Vv(tk)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(GO.icon)]:{color:t.palette.text.primary}}}));function ZO(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=FO(t);return o?null:U.createElement(sk,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&U.createElement(qC,{className:GO.icon},mR(t.getSvgIconShape())),U.createElement(XS,{noWrap:!0},t.label))}const XO=U.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&U.createElement(KO,l({},a,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:VO}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:i({pointerEvents:"auto",maxWidth:"250px"},s)}}),U.createElement($C,{id:"moreMenuList"},n.map(((e,t)=>U.createElement(ZO,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),QO=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},JO=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const YO="ActionsToolbar",eI={item:"".concat(YO,"-item"),itemSpacing:"".concat(YO,"-itemSpacing")},tI=Vv(tk)((e=>{let{theme:t}=e;return{["& .".concat(eI.itemSpacing)]:{padding:t.spacing(0,.25)}}})),nI={className:"njs-action-toolbar-popover"},rI=U.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:i=!1,isRtl:a=!1}=e;return o.length>0?U.createElement(UE,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>U.createElement(UE,{item:!0,key:e.key,className:"".concat(eI.itemSpacing," ").concat(eI.item)},U.createElement(WO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:i}))))):null})),oI={pointerEvents:"none"},iI={vertical:"bottom",horizontal:"right"};function aI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:c=null,actionsRefMock:u=null,direction:d="ltr"}=e;const p=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=H.useContext(cS);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:HO},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:$O},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:PR}]}(a),{translator:f,keyboardNavigation:h}=H.useContext(cS),[m,g]=H.useState(!1),v={vertical:12,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=H.useRef(),y=H.useRef(),x=Wv(),S=H.useMemo((()=>({margin:x.spacing(.5,0)}))),w=e=>{const t=b.current||u;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},E=H.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:i,nativeEvent:a}=e,{keyCode:l}=a;switch(l){case xL.ARROW_LEFT:case xL.ARROW_DOWN:case xL.ARROW_RIGHT:case xL.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=QO(i),t=[xL.ARROW_LEFT,xL.ARROW_DOWN].includes(l);JO(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case xL.SPACE:e.preventDefault();break;case xL.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case xL.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:h,focusHandler:c,getEnabledButton:w,selections:a})),[h,c,w,a]);H.useEffect((()=>()=>{g(!1)}),[s.show,r,a.show]),H.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()}))}),[]);let C=l.enabled,k=l.actions;const R=l.alignTo||y,L=o.filter((e=>!e.hidden));if(L.length>i){const e=L.splice(-(L.length-i)-1);C=!0,k=[...e,...l.actions]}if(!a.show&&0===L.length)return null;const O={key:"more",label:f.get("Menu.More"),getSvgIconShape:jO,hidden:!1,active:m,enabled:()=>C,action:()=>g(!m)},I=L.length>0,T=k.length>0,P=I&&a.show||T&&a.show,_="rtl"===d,N=U.createElement(UE,{ref:b,onKeyDown:E,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:_?"row-reverse":"row"}},I&&U.createElement(rI,{actions:L}),T&&U.createElement(rI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:m,actions:[O],addAnchor:!0}),P&&U.createElement(UE,{item:!0,className:eI.itemSpacing,style:S},U.createElement(LE,{orientation:"vertical"})),a.show&&U.createElement(rI,{className:"actions-toolbar-default-actions",actions:p,isRtl:_}),m&&U.createElement(XO,{show:m,actions:k,alignTo:R,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?U.createElement(tI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:v,transformOrigin:iI,hideBackdrop:!0,style:oI,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:nI.className,style:{pointerEvents:"auto",padding:x.spacing(.5,.25)}}},N):r&&N}var lI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const sI="/qListObjectDef",cI="**",uI=Vv(cC)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),dI=Vv(vk)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function pI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:a=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d}=e;const{translator:p}=H.useContext(cS),[f,h]=H.useState(""),[m,g]=H.useState(!1),v=H.useRef(),b=Wv(),{getStoreValue:y,setStoreValue:x}=aO(r),S="rtl"===u,w=S?"right":"left",E=async()=>{if(t.isModal())try{await r.abortListObjectSearch(sI)}finally{h("")}};H.useEffect((()=>{a||E()}),[a]),H.useEffect((()=>(t.on("deactivated",E),()=>{t.removeListener&&t.removeListener("deactivated",E)})),[]),H.useEffect((()=>{if(m&&v.current){const e=f.length-1;v.current.setSelectionRange(e,e),g(!1)}}),[m,v.current]),H.useEffect((()=>{x("inputText",f)}),[f]);const C=async()=>{let e;return await r.searchListObjectFor(sI,f)&&f.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(sI,!0),t.selectionsMade=!0,n.clearItemStates(!1),h("")),e};function k(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return a&&!1!==c?U.createElement(dI,{startAdornment:U.createElement(uI,{position:"start"},U.createElement(lI,{size:i?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(b.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(DR,"px")},i&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:S?"row-reverse":"row"}],inputRef:v,size:"small",fullWidth:!0,placeholder:p.get("Listbox.Search"),value:f,onFocus:()=>{s&&(h(cI),g(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(h(e.target.value),e.target.value.length?r.searchListObjectFor(sI,e.target.value):E()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":C();break;case"Escape":k(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(k(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),k(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(w)},"data-testid":"search-input-field","aria-label":p.get("ScreenReader.SearchFieldLabel")}}):null}function fI(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}const hI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return fI(l),l},mI=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function gI(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=yS(e),[a]=dR(t),l=t?t.id:null,[s]=fS(),[c]=mS(),u=s.get(e.id);let d=c.get(l);return H.useEffect((()=>{i&&t&&!d&&(d=hI({appSelections:i,appModal:u,model:t}),c.set(l,d),c.dispatch(!0))}),[i,t]),H.useEffect((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=mI({elements:o,objectSelections:d,options:r});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),H.useEffect((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function vI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=CR(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=l,e.selectDisabled=s,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[i(i({},n),{},{qState:r}),...t.slice(1)]}));return i(i({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const bI=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function yI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:i,app:a,fieldName:l,stateName:s="$",autoFocus:c}=e;const u=Boolean(null==l?void 0:l.qLibraryId),d=o&&Boolean(t.current),[p,f]=H.useState(0),h=Wv(),m=H.useRef(),[g]=aR({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:u?void 0:[l]},qLibraryId:u?l.qLibraryId:void 0}},a,l,s),v=H.useCallback((()=>{g.lock("/qListObjectDef")}),[g]),b=H.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:y}=H.useContext(cS),x=H.useRef(),S=H.useRef(),[w]=gI(a,g,S),[E]=dR(g),[C]=H.useState((()=>vI()));if(H.useEffect((()=>{w&&d&&(w.isModal(g)||w.goModal("/qListObjectDef"))}),[w,d]),!g||!E||!y)return null;const k=!0===E.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),i()},L=AO({layout:E,model:g,translator:y,selectionState:C}),O=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return bI(t,"qSelected",0)+bI(t,"qSelectedExcluded",0)+bI(t,"qLocked",0)+bI(t,"qLockedExcluded",0)>0}(E);return U.createElement(tk,{open:d,onClose:R,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},U.createElement(UE,{container:!0,direction:"column",gap:0,ref:S},U.createElement(UE,{item:!0,container:!0,style:{padding:h.spacing(1)}},U.createElement(UE,{item:!0},k?U.createElement($S,{onClick:b,disabled:!k,size:"large"},U.createElement(vR,{title:y.get("Listbox.Unlock")})):U.createElement($S,{onClick:v,disabled:!O,size:"large"},U.createElement(bR,{title:y.get("Listbox.Lock")}))),U.createElement(UE,{item:!0,xs:!0}),U.createElement(UE,{item:!0},U.createElement(aI,{more:{enabled:!k,actions:L,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),U.createElement(UE,{item:!0,xs:!0},U.createElement("div",{ref:x}),U.createElement(UE,{item:!0,ref:m},U.createElement(pI,{visible:!0,model:g,listCount:p,selections:w,selectionState:C,keyboard:{enabled:!1},autoFocus:null==c||c})),U.createElement(NO,{model:g,app:a,layout:E,selections:w,selectionState:C,direction:"ltr",onSetListCount:e=>f(e),onCtrlF:()=>{const e=m.current.querySelector("input");null==e||e.focus()},theme:h}))))}function xI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=H.useContext(cS),s=i||H.useRef(),c=Wv(),[u,d]=H.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),a()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return i||(E=U.createElement(UE,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(vR,null))):h.qOneAndOnlyOne||(C=U.createElement(UE,{item:!0},U.createElement($S,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},U.createElement(gR,null)))),k=U.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>U.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=U.createElement(UE,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&U.createElement(yI,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?U.createElement(yI,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var SI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const wI={item:"".concat("MultiState","-item")},EI=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(wI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function CI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=H.useState(!!r),[l,s]=H.useState(-1),[c,u]=H.useState(r?r.current:null),d=r||H.useRef(),{translator:p}=H.useContext(cS),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=U.createElement(U.Fragment,null,U.createElement(UE,{item:!0,xs:!0,zeroMinWidth:!0},U.createElement(Nw,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},U.createElement(XS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),U.createElement(UE,{item:!0},U.createElement("div",{style:{width:"12px"}})),U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(SI,null)))));const g=U.createElement(mC,{dense:!0},U.createElement(IC,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},U.createElement(Xx,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>U.createElement(IC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,r)},U.createElement(zw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},U.createElement(xI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=U.createElement(tk,{open:i,onClose:()=>{a(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:U.createElement(EI,{container:!0,gap:0,className:wI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&v,l>-1&&U.createElement(yI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?U.createElement(yI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const kI="More",RI={item:"".concat(kI,"-item"),badge:"".concat(kI,"-badge")},LI=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(RI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(RI.badge)]:{padding:t.spacing(0,1)}}}));function OI(e){let{items:t=[],api:n}=e;const r=Wv(),[o,i]=H.useState(!1),[a,l]=H.useState(-1),[s,c]=H.useState(null),u=H.useRef(),d=()=>{l(-1)};let p=null;return a>-1&&(p=t[a].states.length>1?U.createElement(CI,{field:t[a],api:n,moreAlignTo:u,onClose:d}):U.createElement(xI,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),U.createElement(LI,{container:!0,gap:0,className:RI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},U.createElement(UE,{item:!0},U.createElement(zw,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(SI,null))),o&&U.createElement(tk,{open:o,onClose:()=>{i(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},U.createElement(mC,{dense:!0},t.map(((e,t)=>U.createElement(IC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,t)},U.createElement(zw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?U.createElement(CI,{field:e,api:n}):U.createElement(xI,{field:e,api:n}))))))),p)}const II=120,TI=72;function PI(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function _I(e){let{api:t,app:n}=e;const r=Wv(),[o]=sR(n),[i]=dR(o),[a,l]=H.useState({items:[],more:[]}),[s]=vS(),[c,u]=fR(),[d,p]=H.useState(0);return H.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-TI,n=Math.floor(t/II);p(n)}),[u]),H.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&PI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>PI(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(i);l((t=>{const r=e;if((()=>{const e=s.get(n.id);return e&&"njsListbox"===e.genericType})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,i,t.isInModal(),d]),U.createElement(UE,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>U.createElement(UE,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(II,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?U.createElement(CI,{field:e,api:t}):U.createElement(xI,{field:e,api:t})))),a.more.length>0&&U.createElement(UE,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(TI,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},U.createElement(OI,{items:a.more,api:t})))}var NI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var MI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const qI=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function zI(e){let{api:t,app:n}=e;const{translator:r}=H.useContext(cS),[o]=function(e){const[t]=sR(e),[n]=dR(t),[r]=pR(e),[o,i]=H.useState(null);return H.useEffect((()=>{r&&t&&n&&qI(t,n,r)}),[r,t,n]),H.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return U.createElement(UE,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},U.createElement(UE,{item:!0},U.createElement($S,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},U.createElement(NI,null))),U.createElement(UE,{item:!0},U.createElement($S,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},U.createElement(MI,null))),U.createElement(UE,{item:!0},U.createElement($S,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},U.createElement(UO,null))))}const DI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function AI(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function jI(){return DI.map(AI).join("")}function FI(e){let{app:t}=e;const n=Wv(),[r]=yS(t);return r?U.createElement(UE,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},U.createElement(UE,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},U.createElement(zI,{api:r,app:t})),U.createElement(UE,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},U.createElement(_I,{api:r,app:t}))):null}let BI;BI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let WI=null,$I=null;const HI=BI.clearTimeout,UI=BI.setTimeout,VI=BI.cancelAnimationFrame||BI.mozCancelAnimationFrame||BI.webkitCancelAnimationFrame,GI=BI.requestAnimationFrame||BI.mozRequestAnimationFrame||BI.webkitRequestAnimationFrame;function KI(e){let t,n,r,o,i,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&WI(this.__resizeRAF__),this.__resizeRAF__=$I((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(s)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const s=i.ownerDocument,c=BI.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==VI||null==GI?(WI=HI,$I=function(e){return UI(e,20)}):(WI=function([e,t]){VI(e),HI(t)},$I=function(e){const t=GI((function(){HI(n),e()})),n=UI((function(){VI(t),e()}),20);return[t,n]});class ZI extends H.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const l=window.getComputedStyle(this._parentNode)||{},s=parseFloat(null!==(r=l.paddingLeft)&&void 0!==r?r:"0"),c=parseFloat(null!==(o=l.paddingRight)&&void 0!==o?o:"0"),u=parseFloat(null!==(i=l.paddingTop)&&void 0!==i?i:"0"),d=parseFloat(null!==(a=l.paddingBottom)&&void 0!==a?a:"0"),p=this._parentNode.getBoundingClientRect(),f=p.height-u-d,h=p.width-s-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-s-c;(e||this.state.height===m&&this.state.scaledHeight===f)&&(t||this.state.width===g&&this.state.scaledWidth===h)||(this.setState({height:m,width:g,scaledHeight:f,scaledWidth:h}),"function"==typeof n&&n({height:m,scaledHeight:f,scaledWidth:h,width:g}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=KI(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,nonce:i,onResize:a,style:l={},tagName:s="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,h={overflow:"visible"},m={};let g=!1;return r||(0===u&&(g=!0),h.height=0,m.height=u,m.scaledHeight=d),o||(0===f&&(g=!0),h.width=0,m.width=f,m.scaledWidth=p),H.createElement(s,{ref:this._setRef,style:{...h,...l},...c},!g&&e(m))}}var XI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function QI(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function JI(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function YI(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:i,isModal:a,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,i=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case xL.TAB:if(s)r?EL(l)||wL(l):wL(l)||EL(l);else{if(!r)break;t.blur(!0)}i();break;case xL.ENTER:case xL.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case xL.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=JI(n.closest(".listbox-container")),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||l)t.blur(!0);else{QI(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=a();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:a=!1}=e;switch(t){case xL.ARROW_UP:r({up:1});break;case xL.ARROW_DOWN:r({down:1});break;case xL.PAGE_UP:r({up:i.stop-i.start});break;case xL.PAGE_DOWN:r({down:i.stop-i.start});break;case xL.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case xL.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const eT=Vv("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function tT(e){let{text:t}=e;const{translator:n}=H.useContext(cS);return U.createElement(eT,null,n.get(t))}const nT="ListBoxInline",rT={listBoxHeader:"".concat(nT,"-listBoxHeader"),screenReaderOnly:"".concat(nT,"-screenReaderOnly"),listboxWrapper:"".concat(nT,"-listboxWrapper")},oT=Vv(UE,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,isGridMode:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(rT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(rT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(rT.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}})),iT=Vv(XS)((e=>{var t,n,r,o,i,a,l,s,c,u,d,p;let{theme:f}=e;return{color:null===(t=f.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=f.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(l=f.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=f.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const aT=U.memo((function(e){var t,n,r,o,a;let{options:s,layout:c}=e;const{app:u,direction:d,frequencyMode:p,checkboxes:f,search:h=!0,focusSearch:m=!1,rangeSelect:g=!0,model:v,selections:b,update:y,fetchStart:x,selectDisabled:S=(()=>!1),postProcessPages:w,calculatePagesHeight:E,showGray:C=!0,scrollState:k,renderedCallback:R,toolbar:L=!0,isPopover:O=!1}=s,I=Wv(),T=H.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:P,keyboardNavigation:_,themeApi:N,constraints:M}=H.useContext(cS);I.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(N);const q=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==u?void 0:u.layout}),z=H.useRef(),[D,A]=fR(),[j,F]=(()=>{const[e,t]=H.useState({}),n=H.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[B,W]=H.useState(!1),[$,V]=H.useState(!1),G=H.useRef(!1),[K,Z]=H.useState({down:0,up:0,scrollPosition:""}),X=e=>Z((t=>i(i({},t),e))),[Q,J]=H.useState({start:0,stop:0}),[Y]=yS(u),ee=H.useRef(null),[te]=H.useState((()=>vI())),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=H.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=JI(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),QI(t.current),e&&i&&(i.setAttribute("tabIndex",0),i.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),i=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=r||i||a||l;null==s||s.setAttribute("tabIndex",0),null==s||s.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return i}({containerRef:z,enabled:_}),re=H.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:u,appSelections:Y})),[u,Y]),oe=null==c?void 0:c.qListObject.qDimensionInfo.qError,ie=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ae,le]=H.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=H.useMemo((()=>YI({keyboard:ne,hovering:G,updateKeyScroll:X,containerRef:z,currentScrollIndex:Q,app:u,appSelections:Y,constraints:M,isModal:re})),[ne,G,X,z,Q,u,Y,M,re]),pe=L&&(""===(null==c?void 0:c.title)||!1===(null==c?void 0:c.showTitle))&&!O,fe=L&&""!==(null==c?void 0:c.title)&&!1!==(null==c?void 0:c.showTitle)||O;H.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),H.useEffect((()=>{const e=()=>{W(!0)},t=()=>{W(!1),"toggle"===h&&V(!1)};return O&&(b.isActive()||(b.begin("/qListObjectDef"),b.on("activated",e),b.on("deactivated",t)),W(O)),b&&(b.isModal()||(b.on("activated",e),b.on("deactivated",t)),W(b.isActive())),()=>{b&&b.removeListener&&(b.removeListener("activated",e),b.removeListener("deactivated",t))}}),[b,O]),H.useEffect((()=>{if(j&&j.current&&(h&&m||"toggle"===h&&$)){const e=j.current.querySelector("input");e&&e.focus()}}),[j&&j.current,$,h,m]);const{wildCardSearch:he,searchEnabled:me,layoutOptions:ge={}}=null!=c?c:{},ve=!1!==me&&"toggle"===h,be=!0===(null==c||null===(t=c.qListObject)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n?void 0:n.qLocked),ye=be||ve,xe="H"===(null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qGrouping),Se=ye||xe,we=(ye?28:0)+(xe?19:0),Ee="rtl"===d,Ce=DR-(ye?7:0),ke=Ee?DR-(Se?7:0):4;if(H.useEffect((()=>{if(!ee.current||!A)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:l,headerPaddingLeft:s,headerPaddingRight:c}=e;const u=s+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:A,titleRef:ee,iconsWidth:we,headerPaddingLeft:Ce,headerPaddingRight:ke});le(e)}),[ee.current,A]),!v||!c||!P)return null;const Re=AO({layout:c,model:v,translator:P,selectionState:te,isDirectQuery:q}),Le=(!0===h||"toggle"===h&&$)&&!S()&&!1!==me,Oe=null!==(a=ge.dense)&&void 0!==a&&a,Ie=fe?49+(Le?Oe?27:40:0)+(Oe?39:49):0,Te=()=>{V(!$)},Pe=()=>{if("toggle"===h)Te();else{const e=j.current.querySelector("input");null==e||e.focus()}},_e=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a,keyboard:l}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!O&&e,showToolbar:B,containerRef:z,isLocked:be,listboxSelectionToolbarItems:Re,selections:b,keyboard:ne}),Ne=Le&&"toggle"===h,Me="grid"===(null==ge?void 0:ge.dataLayout);let qe;Me&&(qe="row"===ge.layoutOrder?"2px 4px":"2px 6px 2px 4px");const ze=null!=M&&M.active?U.createElement(lI,{title:P.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement($S,{onClick:Te,tabIndex:-1,title:P.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},U.createElement(lI,{style:{fontSize:"12px"}})),De=S()?U.createElement(vR,{size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement($S,{title:P.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:T,size:"large"},U.createElement(vR,{disableRipple:!0,style:{fontSize:"12px"}}));return oe&&(null==R||R()),U.createElement(U.Fragment,null,pe&&U.createElement(aI,l({direction:d},_e(!0))),U.createElement(oT,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:qe,style:{height:"100%",minHeight:"".concat(Ie,"px"),flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{z.current=e,D(e)},isGridMode:Me},fe&&U.createElement(UE,{item:!0,container:!0,minHeight:32,flexDirection:Ee?"row-reverse":"row",marginY:1,paddingLeft:"".concat(Ce,"px"),paddingRight:"".concat(ke,"px"),wrap:"nowrap"},Se&&U.createElement(UE,{item:!0,container:!0,alignItems:"center",width:we},be?De:ve&&ze,xe&&U.createElement(XI,{tabIndex:-1,title:P.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),U.createElement(UE,{item:!0,xs:!0,minWidth:0,justifyContent:Ee?"flex-end":"flex-start",className:rT.listBoxHeader},U.createElement(iT,{variant:"h6",noWrap:!0,ref:ee,title:c.title},c.title)),U.createElement(UE,{item:!0},U.createElement(aI,l({direction:d},_e(ae))))),U.createElement(UE,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":P.get("Listbox.ResultFilterLabel")},U.createElement(UE,{item:!0,ref:F},U.createElement("div",{className:rT.screenReaderOnly},P.get("Listbox.Search.ScreenReaderInstructions")),U.createElement(pI,{selections:b,selectionState:te,model:v,dense:Oe,keyboard:ne,visible:Le,search:h,autoFocus:Ne,wildCardSearch:he,searchEnabled:me,direction:d,hide:ve&&Te})),U.createElement(UE,{item:!0,xs:!0,className:rT.listboxWrapper},U.createElement("div",{className:rT.screenReaderOnly},P.get("Listbox.ScreenReaderInstructions")),oe?U.createElement(tT,{text:ie}):U.createElement(ZI,null,(e=>{let{height:t,width:n}=e;return U.createElement(NO,{model:v,app:u,theme:I,constraints:M,layout:c,selections:b,selectionState:te,direction:d,frequencyMode:p,rangeSelect:g,checkboxes:f,height:t,width:n,update:y,fetchStart:x,postProcessPages:w,calculatePagesHeight:E,selectDisabled:S,keyboard:ne,showGray:C,scrollState:k,keyScroll:{state:K,reset:()=>Z({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:J},renderedCallback:R,onCtrlF:Pe,isModal:re})}))))))}));function lT(e){let{options:t={}}=e;const{model:n}=t,[r]=dR(n);return U.createElement(aT,{options:t,layout:r})}const sT={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function cT(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const uT=["__DO_NOT_USE__"],dT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return i(i(i({},s(e,uT)),n),t)};function pT(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l});c||Object.assign(l,{frequencyMode:cT(l.frequencyMode)});const[d,p]=H.useState(0);H.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=H.useState(),[a]=rR(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return H.useEffect((()=>{l?i(l):async function(){const e=a.get(n);if(e)i(e);else{const e=await t.getObject(n);a.set(e.id,e),e.once("closed",(()=>{a.clear(e.id)})),i(e)}}()}),[]),o}({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,l]=H.useState(""),[s,c]=H.useState(!0),[u,d]=H.useState(),[p,f]=H.useState(),h=null!==(t=i.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=i;a&&a.failedToFetchFieldDef&&(m=!1,g="N"),H.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=i,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=H.useRef();w.current||(w.current=jI());const E=$e(!0,{},sT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if($e(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=a&&a.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?a:C;E.frequencyMax={qValueExpression:OO(e)}}const[k]=aR(E,s?null:n,C,o);return H.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=H.useRef(a),m=u?l.selectionsApi:gI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=H.useMemo((()=>i(i({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?U.createElement(lT,{options:g}):null}const fT={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function hT(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,l]=H.useState(!!i.show);return U.createElement(yI,{show:a,app:t,alignTo:{current:o},anchorOrigin:i.anchorOrigin,transformOrigin:i.transformOrigin,close:()=>{l(!1),i.onPopoverClose&&i.onPopoverClose()},fieldName:n,stateName:r,autoFocus:i.autoFocus})}function mT(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function gT(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const vT=e=>({qDef:{qFieldDefs:[e]}}),bT=e=>({qDef:{qDef:e}});function yT(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?vT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||jI(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<a.maxDimensions()?(t.qDimensions.push(r),mT(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return gT(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?bT(e):i(i({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||jI(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(r),mT(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];gT(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}const xT=e=>({qDef:{qFieldDefs:[e]}});function ST(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,a={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?xT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||jI(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===a.dimensions().length,canAddMeasure:()=>!1};return a}const wT=e=>({qDef:{qFieldDefs:[e]}}),ET=e=>{let t;return t="string"==typeof e?$e(!0,{},sT,{qListObjectDef:wT(e)}):e.qListObjectDef?$e(!0,{},sT,e):$e(!0,{},sT,{qListObjectDef:e}),t};function CT(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=ET(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||jI(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function kT(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function RT(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:l}=a,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?ST:e.match("/qChildListDef")?CT:yT}(l),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===kT(t)?await d.addMeasure(t):await d.addDimension(t)}}var LT={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var OT={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const IT=2**53-1;function TT(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function PT(e,t){const n=$e(!0,{},t,e);return LT.getValue(n,"qOtherTotalSpec.qOtherCounted")||LT.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),LT.getValue(n,"qOtherTotalSpec.qOtherLimit")||LT.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function _T(e,t){return $e(!0,{},t,e)}function NT(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var MT={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===LT.getValue(e,t)&<.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:TT,importCommonProperties:function(e,t,n){const r="masterobject"===LT.getValue(t,"properties.qInfo.qType")?"masterobject":LT.getValue(n,"qInfo.qType");LT.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:PT,createDefaultMeasure:_T,resolveValue:NT,getHypercubePath:function(e){const t=LT.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(OT.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,OT.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=$e(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?LT.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||TT(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=$e(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=NT(i.max,r.dimensions.length,IT),l=NT(i.min,r.dimensions.length,0);return{maxDimensions:NT(o.max,a,IT),minDimensions:NT(o.min,l,0),maxMeasures:a,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(PT(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PT(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PT(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(PT(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PT(a.excludedDimensions[l],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(_T(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_T(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_T(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(_T(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_T(a.excludedMeasures[l],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=LT.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=LT.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var qT={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=LT.getValue(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();OT.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(MT.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!LT.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=MT.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=LT.getValue(n,i||"").qHyperCubeDef,c=LT.getValue(l,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=MT.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=MT.getDefaultDimension(),defaultMeasure:m=MT.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,MT.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&MT.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),MT.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),MT.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),MT.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),MT.copyPropertyIfExist("qMaxStackedCells",s,c),MT.copyPropertyIfExist("qNoOfLeftDims",s,c),MT.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),MT.copyPropertyOrSetDefault("qMode",s,c,"S"),MT.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),MT.copyPropertyOrSetDefault("qSortbyYValue",s,c),MT.copyPropertyOrSetDefault("qIndentMode",s,c),MT.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),MT.importCommonProperties(l,t,n),MT.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),MT.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const zT=e=>LT.getValue(e,"data.targets.0.propertyPath"),DT=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qT.exportProperties})(zT(e))},AT=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qT.importProperties})(zT(e))},jT=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),l=r.current.getQae(),s=DT(l),c=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),u=c.qae;return AT(u)({exportFormat:s({propertyTree:a,hypercubePath:MT.getHypercubePath(l)}),initialProperties:i({qInfo:{qType:o},visualization:o},LT.getValue(u,"properties.initial",{})),dataDefinition:LT.getValue(u,"data.targets.0.",{}),hypercubePath:MT.getHypercubePath(u)})},FT={hypercube:qT};var BT=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function WT(e){let{d:t}=e;const n=Wv();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const i={color:o},a=U.createElement(XS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},U.createElement(nC,null,t.missing||t.error?U.createElement(BT,{style:i}):U.createElement(_R,{style:i})));return U.createElement(UE,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},U.createElement(UE,{item:!0},a),U.createElement(UE,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},U.createElement(XS,{noWrap:!0,component:"p"},U.createElement(XS,{component:"span",variant:"subtitle2",color:r},t.description),U.createElement(XS,{component:"span"}," "),U.createElement(XS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function $T(e){let{data:t}=e;const n=Wv();return U.createElement(UE,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>U.createElement(WT,{d:e,key:t})));return r.length>0&&U.createElement(UE,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},U.createElement(XS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HT(e){let{title:t="Error",message:n="",data:r=[]}=e;return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},U.createElement(UE,{item:!0},U.createElement(BT,{style:{fontSize:"38px"}})),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"error-title"},t)),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),U.createElement($T,{data:r}))}const UT=["size"],VT="Progress",GT={root:"".concat(VT,"-root"),front:"".concat(VT,"-front"),back:"".concat(VT,"-back")},KT=Vv("div")((e=>{let{theme:t}=e;return{["&.".concat(GT.root)]:{position:"relative",display:"inline-block"},["& .".concat(GT.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(GT.back)]:{color:t.palette.divider}}})),ZT={small:16,medium:32,large:64,xlarge:128};function XT(e){let{size:t="medium"}=e,n=s(e,UT);const r=ZT[t];return U.createElement(KT,{className:GT.root},U.createElement(mE,l({variant:"determinate",value:100,className:GT.back,size:r,thickness:3},n)),U.createElement(mE,l({variant:"indeterminate",disableShrink:!0,className:GT.front,size:r,thickness:3},n)))}const QT=["cancel","translator"],JT=["retry","translator"],YT={stripes:"".concat("LongRunningQuery","-stripes")},eP=Vv(UE)((()=>({["& .".concat(YT.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function tP(e){let{cancel:t,translator:n}=e,r=s(e,QT);return U.createElement(U.Fragment,null,U.createElement(eP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},U.createElement(UE,{item:!0},U.createElement(XT,null)),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),U.createElement(UE,l({item:!0},r),U.createElement(Xx,{variant:"contained",onClick:t},n.get("Cancel"))))}function nP(e){let{retry:t,translator:n}=e,r=s(e,JT);return U.createElement(U.Fragment,null,U.createElement(UE,{item:!0},U.createElement(BT,{style:{fontSize:"38px"}})),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),U.createElement(UE,{item:!0},U.createElement(Xx,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function rP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=H.useContext(cS);return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:YT.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&U.createElement(tP,{cancel:r.cancel,translator:o,className:YT.cancel}),n&&U.createElement(nP,{retry:r.retry,translator:o,className:YT.retry}))}function oP(){return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},U.createElement(XT,{size:"large"}))}const iP="Header",aP={containerStyle:"".concat(iP,"-containerStyle"),containerTitleStyle:"".concat(iP,"-containerTitleStyle")},lP=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(aP.containerStyle)]:{flexGrow:0},["&.".concat(aP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),sP="njs-cell-title",cP="njs-cell-sub-title";function uP(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:a={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=H.useState([]),[p,f]=fR(),[h,m]=H.useState(!1);H.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),H.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[aP.containerStyle,...g?[aP.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=U.createElement(aI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:i});return U.createElement(lP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},U.createElement(UE,{item:!0,zeroMinWidth:!0,xs:!0},U.createElement(UE,{container:!0,wrap:"nowrap",direction:"column"},l&&U.createElement(XS,{variant:"h6",noWrap:!0,className:sP,style:a.main},t.title),s&&U.createElement(XS,{variant:"body2",noWrap:!0,className:cP,style:a.subTitle},t.subtitle))),U.createElement(UE,{item:!0},x))}const dP={itemStyle:"".concat("Footer","-itemStyle")},pP=Vv(UE)((e=>{let{theme:t}=e;return{["& .".concat(dP.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),fP="njs-cell-footer";function hP(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?U.createElement(pP,{container:!0},U.createElement(UE,{item:!0,className:dP.itemStyle},U.createElement(XS,{noWrap:!0,variant:"body2",className:fP,style:n.footer},t.footnote))):null}class mP{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const gP="njs-viz";function vP(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=H.useContext(cS),[h]=H.useState((()=>new mP)),[m,g]=H.useState(!1),[v,b]=H.useState(0),[y,x,S]=fR(),[w,E]=H.useState(null),C=H.useCallback((e=>{e&&E(e)}),[]);return H.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),H.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:i({constraints:d,interactions:p,theme:l.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),U.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:gP},U.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const bP={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},yP={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function xP(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function SP(e,t){const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=xP(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=yP[e.bgImage.position]),n}(e),l=function(e){var t;let n=bP.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=bP[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:l}:void 0}}function wP(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function EP(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const CP="njs-cell",kP=(e,t)=>{switch(t.type){case"LOADING":return i(i({},e),{},{loading:!0});case"LOADED":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return i(i({},e),{},{longRunningQuery:!0});case"ERROR":return i(i({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function RP(e){let{delay:t=750}=e;const[n,r]=H.useState(!1);return H.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?U.createElement(oP,null):null}const LP=e=>!e.qError||7005===e.qError.qErrorCode,OP=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,c="".concat(l?r:a?s||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!l&&e>=t.length||a,error:l}})),IP=e=>e&&(Array.isArray(e)?e:[e])||[],TP=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:OP(o,IP(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:OP(i,IP(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},PP=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=IP(f.qDimensionInfo||f.qItems).filter(LP),m=IP(f.qMeasureInfo).filter(LP);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=p||await r.getProperties();p=n;const o=TP(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||i,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},_P=H.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=H.useContext(cS),y=Wv(),[x,S,w]=fR(),[E,C]=H.useReducer(kP,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,{validating:L,canCancel:O,canRetry:I},T]=dR(r),[P]=pR(d),[_,N,M]=fR(),[q,z]=H.useState(o),[D,A]=H.useState(a),j="njs-cell-".concat(c),[F]=gI(d,r,["#".concat(j),".njs-action-toolbar-popover"]),[B,W]=H.useState(!1),$=H.useRef({enter:null,leave:null}),[V,G]=H.useState(void 0),[K,Z]=H.useState(void 0),[X,Q]=H.useState(void 0),J=H.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});H.useEffect((()=>{fI(J.current)}),[]),H.useEffect((()=>{if(R&&n.public.theme){const e=R.components?R.components.find((e=>"general"===e.key)):null;Q({main:EP(e,"main",n.public.theme,R.visualization),footer:EP(e,"footer",n.public.theme,R.visualization),subTitle:EP(e,"subTitle",n.public.theme,R.visualization)}),G(wP(e,n.public.theme,R.visualization)),Z(SP(e,n.app))}}),[R,n.public.theme,n.app,h]),J.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&M&&M.focus()},J.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};H.useEffect((()=>{if(l||!P||!R)return;if(E.visualization===R.visualization&&E.sn)return void(async e=>{const[t,n]=await PP(m,R,e.generator.qae.data,r);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:R,model:r})})(E.sn);const e=p.getSupportedVersion(R.visualization,R.version);return(async(e,t)=>{C({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o});return e.create({model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u})}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}})}})({dispatch:C,types:p,visualization:e,version:t,model:r,app:d,selections:F,nebbie:f,focusHandler:J.current,emitter:u});n&&(C({type:"LOADED",sn:n,visualization:e}),s())})(R.visualization,e),()=>{}}),[p,E.sn,r,F,R,P,g]),H.useEffect((()=>{if(!L)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[L]),H.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:z,setSnPlugins:A,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(R));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:P,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[E.sn,N,S,R,y.name,P]);let Y=null;return E.loading&&!E.longRunningQuery?Y=U.createElement(RP,null):E.error?Y=U.createElement(HT,E.error):E.loaded&&(Y=U.createElement(vP,{key:R.visualization,sn:E.sn,halo:n,snOptions:q,snPlugins:D,layout:R,appLayout:P})),U.createElement(DS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:V||"unset",backgroundImage:K&&K.url?"url(".concat(K.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:K&&K.size,backgroundPosition:K&&K.pos},elevation:0,square:!0,className:CP,ref:x,id:j,onMouseEnter:()=>{$.current.leave&&clearTimeout($.current.leave),$.enter||($.current.enter=setTimeout((()=>{W(!0),$.current.enter=null}),250))},onMouseLeave:()=>{$.current.enter&&clearTimeout($.current.enter),$.current.leave||($.current.leave=setTimeout((()=>{W(!1),$.current.leave=null}),750))}},U.createElement(UE,{container:!0,direction:"column",gap:0,style:i(i({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&R&&E.sn&&U.createElement(uP,{layout:R,sn:E.sn,anchorEl:w,hovering:B,focusHandler:J.current,titleStyles:X}," "),U.createElement(UE,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:_},Y),w&&R&&E.sn&&U.createElement(hP,{layout:R,titleStyles:X})),E.longRunningQuery&&U.createElement(rP,{canCancel:O,canRetry:I,api:T}))}));function NP(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function MP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return NP(e)&&NP(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...MP("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function qP(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const zP=()=>{};function DP(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=zP,a=null,l=null,s=null,c=null;const u=new Promise((e=>{s=e})),d=new Promise((e=>{c=e})),p=e=>()=>{e&&e(),c()};let f={},h=[];const m=new Y,g={id:e.id,model:e,async destroy(){await r(),o(),o=zP},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await jT({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){m.addListener(e,t)},removeListener(e,t){m.removeListener(e,t)},getImperativeHandle:async()=>(await d,a.current.getImperativeHandle()),__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:l,initialError:s}=e;const{root:c}=t,u=U.createRef(),d=jI(),p=xp.createPortal(U.createElement(_P,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:t,element:r,model:e,initialSnOptions:f,initialSnPlugins:h,initialError:n,onMount:s,emitter:m}),u},async applyProperties(t){const n=MP("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;l?(async()=>{await u,a.current.setSnOptions(i(i(i({},f),e),{onInitialRender:p(t)}))})():f=i(i(i({},f),e),{onInitialRender:p(t)})})(e)},plugins(e){(async e=>{qP(e),l?(async()=>{await u,a.current.setSnPlugins(e)})():h=e})(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return g}async function AP(e,t,n,r){const o=DP({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function jP(e,t,n){let{type:r,version:o,fields:i,properties:a,extendProperties:l}=e,s={};const c=[];try{const e=t.types.get({name:r,version:o});s=await e.initialProperties(a,l);const n=await e.supernova();i&&await RT({sn:n,properties:s,fields:i,children:c},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},s)}catch(e){s=n?null:{qInfo:{qType:r},visualization:r}}if(!n){const e=await t.app.createObject(s);return c.length>0&&await e.setFullPropertyTree({qProperty:s,qChildren:c}),oR.set(e.id,e),e}return s}const FP={className:"njs-sheet"};function BP(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}=e;const{root:l}=n,[s]=dR(t),{theme:c}=H.useContext(cS),[u,d]=H.useState([]),[p,f]=H.useState(void 0),[h,m]=H.useState(void 0),[g,v]=H.useState("");H.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===g)return;v(e);const t=async()=>{u.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,t=await Promise.all(e.map((async e=>{let t;const r=new Promise((e=>{t=e})),o=u.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Jk.get(a);l||(l=t.app.getObject(n),Jk.set(a,l));const s=await l;return oR.set(a,s),AP(s,{options:r,plugins:o,element:i},t)}({id:e.name},n);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:U.createRef(),currentId:jI(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),d(t)};t()}}),[s]);const b=H.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,i){const{x:a,y:l,width:s,height:c}=e.bounds;return U.createElement("div",{style:{left:"".concat(a,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},U.createElement(_P,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i}))}(e,n,r,o,i,e.mounted))):[]),[u]);H.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;f(wP(e,n.public.theme)),m(SP(e,n.app))}),[s,n.public.theme,n.app,c]);const y=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),x=u.map((e=>e.mountedPromise)),S=x.filter((e=>!!e));return S.length&&Promise.all(x).then((()=>{a()})),U.createElement("div",{className:FP.className,style:{width:"100%",height:y,position:"relative",backgroundColor:p,backgroundImage:h&&h.url?"url(".concat(h.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:h&&h.size,backgroundPosition:h&&h.pos}},b)}const WP=()=>{};function $P(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=WP,a=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=WP},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l}=e;const{root:s}=t,c=U.createRef(),u=xp.createPortal(U.createElement(BP,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=MP("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{l?(async()=>{await c,a.current.setSnOptions(i(i({},u),e))})():u=i(i({},u),e)})(e)},plugins(e){(async e=>{qP(e),l?(async()=>{await c,a.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function HP(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Jk.get(a);l||(l=t.app.getObject(n),Jk.set(a,l));const s=await l;return oR.set(a,s),"sheet"===s.genericType?async function(e,t,n,r){const o=$P({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(s,{options:r,plugins:o,element:i},t):AP(s,{options:r,plugins:o,element:i},t)}function UP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const VP=$e.bind(null,!0),GP={},{isArray:KP}=Array;function ZP(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function XP(e){return void 0===e}function QP(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function JP(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=XP(e[r||t])?i:e[t],e=e[r||t]})),e}function YP(e,t){let n=!0;if(ZP(e)&&ZP(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{YP(e[r],t[r])||(n=!1)})),n);if(KP(e)&&KP(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!YP(e[n],t[n]))return!1;return!0}return e===t}GP.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?VP({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);YP(i,a)||QP(t,o)||(XP(a)?r.push({op:"add",path:l,value:i}):ZP(i)&&ZP(a)?r=r.concat(GP.generate(a,i,l)):KP(i)&&KP(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&XP(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(YP(t,o))return r;if(!XP(t[0])&&XP(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(GP.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{XP(t[o])&&!QP(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},GP.apply=function(e,t){t.forEach((t=>{let n=JP(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(KP(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(KP(o)&&KP(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(ZP(o)&&ZP(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!QP(a,e)&&delete a[e]})),VP(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=JP(e,t.from);KP(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(KP(n)?n.splice(+r,1):delete n[r]);var a}))},GP.clone=function(e){return VP({},e)},GP.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},GP.updateObject=function(e,t){Object.keys(e).length?GP.apply(e,GP.generate(e,t)):VP(e,t)};const e_=e=>t=>{const n=(r=i(i({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let t_,n_;function r_(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function o_(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function i_(e){l_(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function a_(e){if(e.__hooks.obsolete)return Promise.resolve();n_=-1,t_=e,t_.__hooks.initiated&&t_.__hooks.list.length;try{t_.fn.call(null)}catch(e){console.error(e)}t_.__hooks.initiated=!0;const t=t_.__hooks;return d_(t_),n_=void 0,t_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){l_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){l_(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function l_(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function s_(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function c_(e,t,n){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function u_(e){return e.__hooks.imperativeHandle}function d_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function p_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,d_(e))}function f_(e){if(void 0===t_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=t_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function h_(e){f_(++n_);return t_.context[e]}function m_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function g_(e){return{__hooked:!0,fn:e,initiate:o_,run:a_,teardown:i_,runSnaps:s_,runMenu:c_,focus:w_,blur:E_,observeActions:p_,getImperativeHandle:u_,updateRectOnNextRun:m_}}function v_(e){const t=f_(++n_);if(!t.value){t.component=t_;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,a_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function b_(e,t){const n=f_(++n_);r_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===t_.__hooks.pendingEffects.indexOf(n)&&t_.__hooks.pendingEffects.push(n))}function y_(e,t){const n=f_(++n_);r_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],t_.__hooks.pendingLayoutEffects.push(n))}function x_(e,t){const n=f_(++n_);return r_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function S_(){return h_("element")}function w_(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function E_(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const C_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},k_=Object.keys(C_),R_=e=>(Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e);function L_(e,t){const n=i({},C_);R_(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==k_.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=e_(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function O_(e,t,n){"function"==typeof e.component&&(e.component=g_(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const a={},l=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(i(i({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(i(i({},r[e]),c))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n){return e.component.runMenu(this,t,n)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):L_(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=GP.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));GP.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const l=GP.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const I_=()=>{};function T_(e,t){return void 0===e?()=>t:()=>e}function P_(e){const t=e||{};return{min:"function"==typeof t.min?t.min:T_(t.min,0),max:"function"==typeof t.max?t.max:T_(t.max,1e3),added:t.added||t.add||I_,description:t.description||I_,moved:t.moved||t.move||I_,removed:t.removed||t.remove||I_,replaced:t.replaced||t.replace||I_,isDefined:()=>!!e}}const __=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function N_(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>__(e,n,{}),dimensions:P_(e.dimensions),measures:P_(e.measures)}}function M_(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(N_)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function q_(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:M_(n.qae),component:n.component||{},create:e=>O_(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var z_={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],a=t.src=[],l=t.tokens={},s=0;function c(e){l[e]=s++}c("NUMERICIDENTIFIER"),a[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),a[l.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),a[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),a[l.MAINVERSION]="("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),a[l.MAINVERSIONLOOSE]="("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),a[l.PRERELEASEIDENTIFIER]="(?:"+a[l.NUMERICIDENTIFIER]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),a[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[l.NUMERICIDENTIFIERLOOSE]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),a[l.PRERELEASE]="(?:-("+a[l.PRERELEASEIDENTIFIER]+"(?:\\."+a[l.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),a[l.PRERELEASELOOSE]="(?:-?("+a[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[l.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),a[l.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),a[l.BUILD]="(?:\\+("+a[l.BUILDIDENTIFIER]+"(?:\\."+a[l.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),a[l.FULLPLAIN]="v?"+a[l.MAINVERSION]+a[l.PRERELEASE]+"?"+a[l.BUILD]+"?",a[l.FULL]="^"+a[l.FULLPLAIN]+"$",c("LOOSEPLAIN"),a[l.LOOSEPLAIN]="[v=\\s]*"+a[l.MAINVERSIONLOOSE]+a[l.PRERELEASELOOSE]+"?"+a[l.BUILD]+"?",c("LOOSE"),a[l.LOOSE]="^"+a[l.LOOSEPLAIN]+"$",c("GTLT"),a[l.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),a[l.XRANGEIDENTIFIERLOOSE]=a[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),a[l.XRANGEIDENTIFIER]=a[l.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),a[l.XRANGEPLAIN]="[v=\\s]*("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:"+a[l.PRERELEASE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),a[l.XRANGEPLAINLOOSE]="[v=\\s]*("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:"+a[l.PRERELEASELOOSE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGE"),a[l.XRANGE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAIN]+"$",c("XRANGELOOSE"),a[l.XRANGELOOSE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAINLOOSE]+"$",c("COERCE"),a[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[l.COERCERTL]=new RegExp(a[l.COERCE],"g"),c("LONETILDE"),a[l.LONETILDE]="(?:~>?)",c("TILDETRIM"),a[l.TILDETRIM]="(\\s*)"+a[l.LONETILDE]+"\\s+",i[l.TILDETRIM]=new RegExp(a[l.TILDETRIM],"g");c("TILDE"),a[l.TILDE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAIN]+"$",c("TILDELOOSE"),a[l.TILDELOOSE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAINLOOSE]+"$",c("LONECARET"),a[l.LONECARET]="(?:\\^)",c("CARETTRIM"),a[l.CARETTRIM]="(\\s*)"+a[l.LONECARET]+"\\s+",i[l.CARETTRIM]=new RegExp(a[l.CARETTRIM],"g");c("CARET"),a[l.CARET]="^"+a[l.LONECARET]+a[l.XRANGEPLAIN]+"$",c("CARETLOOSE"),a[l.CARETLOOSE]="^"+a[l.LONECARET]+a[l.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),a[l.COMPARATORLOOSE]="^"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),a[l.COMPARATOR]="^"+a[l.GTLT]+"\\s*("+a[l.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),a[l.COMPARATORTRIM]="(\\s*)"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+"|"+a[l.XRANGEPLAIN]+")",i[l.COMPARATORTRIM]=new RegExp(a[l.COMPARATORTRIM],"g");c("HYPHENRANGE"),a[l.HYPHENRANGE]="^\\s*("+a[l.XRANGEPLAIN]+")\\s+-\\s+("+a[l.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),a[l.HYPHENRANGELOOSE]="^\\s*("+a[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[l.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),a[l.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<s;u++)n(u,a[u]),i[u]||(i[u]=new RegExp(a[u]));function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[l.LOOSE]:i[l.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[l.LOOSE]:i[l.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=d,t.valid=function(e,t){var n=d(e,t);return n?n.version:null},t.clean=function(e,t){var n=d(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(b(e,t))return null;var n=d(e),r=d(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var f=/^[0-9]+$/;function h(e,t){var n=f.test(e),r=f.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function m(e,t,n){return new p(e,n).compare(new p(t,n))}function g(e,t,n){return m(e,t,n)>0}function v(e,t,n){return m(e,t,n)<0}function b(e,t,n){return 0===m(e,t,n)}function y(e,t,n){return 0!==m(e,t,n)}function x(e,t,n){return m(e,t,n)>=0}function S(e,t,n){return m(e,t,n)<=0}function w(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return b(e,n,r);case"!=":return y(e,n,r);case">":return g(e,n,r);case">=":return x(e,n,r);case"<":return v(e,n,r);case"<=":return S(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function E(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof E){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof E))return new E(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return m(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=g,t.lt=v,t.eq=b,t.neq=y,t.gte=x,t.lte=S,t.cmp=w,t.Comparator=E;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof E)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function R(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function L(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,l,s,c,u,d,p){return((t=L(n)?"":L(r)?">="+n+".0.0":L(o)?">="+n+"."+r+".0":">="+t)+" "+(l=L(s)?"":L(c)?"<"+(+s+1)+".0.0":L(u)?"<"+s+"."+(+c+1)+".0":d?"<="+s+"."+c+"."+u+"-"+d:"<="+l)).trim()}function I(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function T(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function P(e,t,n,r){var o,i,a,l,s;switch(e=new p(e,r),t=new k(t,r),n){case">":o=g,i=S,a=v,l=">",s=">=";break;case"<":o=v,i=x,a=g,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(T(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,f=null;if(u.forEach((function(e){e.semver===C&&(e=new E(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===l||d.operator===s)return!1;if((!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0}E.prototype.parse=function(e){var t=this.options.loose?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=C},E.prototype.toString=function(){return this.value},E.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return w(e,this.operator,this.semver,this.options)},E.prototype.intersects=function(e,t){if(!(e instanceof E))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),T(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),T(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=w(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=w(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||l||s},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[l.COMPARATORTRIM]),e=(e=(e=e.replace(i[l.TILDETRIM],"$1~")).replace(i[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[l.CARETLOOSE]:i[l.CARET];return e.replace(r,(function(t,r,o,i,a){var l;return n("caret",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),l="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(r,(function(t,r,o,i,a){var l;return n("tilde",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),l=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(r,(function(r,o,i,a,l,s){n("xRange",e,r,o,i,a,l,s);var c=L(i),u=c||L(a),d=u||L(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),l=0,">"===o?(o=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+l+s):u?r=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:d&&(r=">="+i+"."+a+".0"+s+" <"+i+"."+(+a+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[l.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new E(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return R(n,t)&&e.set.some((function(e){return R(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1},t.satisfies=T,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new k(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return P(e,t,"<",n)},t.gtr=function(e,t,n){return P(e,t,">",n)},t.outside=P,t.prerelease=function(e,t){var n=d(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[l.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[l.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[l.COERCERTL].lastIndex=-1}else n=e.match(i[l.COERCE]);if(null===n)return null;return d(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(z_,z_.exports);var D_=z_.exports;const A_={};function j_(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||D_.satisfies(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!A_[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),l=Promise.resolve(a);A_[i]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return A_[i]}(l.name,l.version,t,o.load).then((e=>(n=n||q_(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=i({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?($e(!0,n,e),n):i(i({},n),e)}))}};return l}function F_(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=j_({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function B_(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=F_(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(A_).forEach((t=>{t.split("__")[0]===e&&(A_[t]=void 0)}))}(e)}}}const W_={get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))},$_={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:W_};$_.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1};const H_=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(i({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},U_=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var V_=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=i(i({},t.context),{},{translator:n.translator});const[l]=function(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),i=U.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.2.3"),a.setAttribute("data-app-id",n.id),document.body.appendChild(a),r&&SS(r),dt.createRoot(a).render(U.createElement(wS,{ref:i,app:n,initialContext:r,renderCallback:t}));const l={},s=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,s.push(e),i.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),i.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,i.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&SS(e),i.current.setContext(e)})()},getAppSelections:async()=>(await o,i.current.getAppSelections())},i,o]}({app:e,context:a}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=lt();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),st(ct,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:UP(t.flags),deviceType:ut(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:l,config:t,public:c,context:a,types:null},d=B_({halo:u});t.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?HP(e,u):async function(e,t){let{type:n,version:r,fields:o,properties:i,options:a,plugins:l,element:s,extendProperties:c}=e,u={};const d=[];let p;try{const e=t.types.get({name:n,version:r});u=await e.initialProperties(i,c);const a=await e.supernova();o&&await RT({sn:a,properties:u,fields:o,children:d},t),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},u)}catch(e){p=e,u={qInfo:{qType:n},visualization:n}}const f=await t.app.createSessionObject(u);d.length>0&&await f.setFullPropertyTree({qProperty:u,qChildren:d}),oR.set(f.id,f);const h=iR(f);return AP(f,{options:a,plugins:l,element:s},t,p,(async()=>{await t.app.destroySessionObject(f.id),h()}))}(e,u)),create:async e=>jP(e,u,!1),generateProperties:async e=>jP(e,u,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=i(i(i({},a),t),{},{translator:n.translator}),t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){h||(h=function(e){let{element:t,app:n}=e;return xp.createPortal(U.createElement(FI,{app:n}),t,jI())}({element:t,app:e}),l.add(h))},unmount(){h&&(l.remove(h),h=null)}}),f),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:i="$",options:a={},renderedCallback:l}=e;return xp.createPortal(U.createElement(pT,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,options:a,renderedCallback:l}),t,jI())}({element:a,app:e,fieldIdentifier:t,qId:n,options:dT(i({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return fI(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(l.remove(m._popoverInstance),m._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=i({},fT);return $e(!0,t,e),t}(i({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=U.createElement(hT,{element:t,key:jI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,fI(m),m}return r.createConfiguration=n=>e(((e,t)=>({context:H_(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:i({},t.snapshot||e.snapshot),types:U_(e.types,t.types),themes:U_(e.themes,t.themes),flags:H_(e.flags,t.flags),anything:H_(e.anything,t.anything)}))(t,n)),r.config=t,r}($_);function G_(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const K_=globalThis.crypto||{getRandomValues:()=>123456};function Z_(){return e=>{const t=$e({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^K_.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=$e({},t,n)),Promise.resolve(i({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const X_=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},Q_=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const l=X_(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},J_=["id","session"],Y_=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function eN(e){return!Y_.includes(e)}function tN(e){const t=X_(e.getLayout);return t.qInfo&&t.qInfo.qId}function nN(e,t){return e.reduce(((e,n)=>i(i({},e),function(e,t){let n=tN(e);const{delay:r}=t,{id:o,session:a}=e,l=s(e,J_);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:i(i({id:n,session:X_(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return i(i({},e),{},{[n]:Q_(o,{async:eN(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function rN(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!tN(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function oN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(rN);const n=nN(e,t);return async e=>Promise.resolve(n[e])}function iN(){return()=>Promise.resolve({id:"app-layout"})}const aN={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new G_,r=new Z_,o=new oN(e,t),i=new iN,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},lN={generator:q_,hook:g_,theme:lt,locale:G};e.EnigmaMocker=aN,e.__DO_NOT_USE__=lN,e.conversion=FT,e.embed=V_,e.onContextMenu=function(e){const t=f_(++n_);t.value||(t.value=1,t_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=f_(++n_);t.value||(t.value=1,t_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=v_({action(){n._config.action.call(null)}});return n.component||(n.component=t_,t_.__hooks.actions.list.push(n)),x_((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=h_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return h_("appLayout")},e.useConstraints=function(){return h_("constraints")},e.useDeviceType=function(){return h_("deviceType")},e.useEffect=b_,e.useElement=S_,e.useEmbed=function(){return h_("nebbie")},e.useEmitter=function(){return h_("emitter")},e.useGlobal=function(){const e=h_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=f_(++n_);if(n.imperative||(n.imperative=!0),r_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],t_.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return h_("interactions")},e.useKeyboard=function(){const e=h_("keyboardNavigation"),t=h_("focusHandler");if(!t_.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(E_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(t_);t_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),w_(this))}.bind(t_);t_.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(t_);t_.__hooks.accessibility.focusSelectionFunction=r}const n=t_.__hooks.accessibility.focusFunction,r=t_.__hooks.accessibility.exitFunction,o=t_.__hooks.accessibility.focusSelectionFunction,[i,a]=v_({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return t_.__hooks.accessibility.setter=a,t_.__hooks.accessibility.enabled=e,b_((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return h_("layout")},e.useMemo=x_,e.useModel=function(){const e=h_("model");return e&&e.session?e:void 0},e.useOptions=function(){return h_("options")},e.usePlugins=function(){return h_("plugins")},e.usePromise=function(e,t){const[n,r]=v_((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=f_(++n_);return o.component||(o.component=t_),y_((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=S_(),t=t_.__hooks.resizer,[n,r]=v_((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),y_((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){f_(++n_);const e=t_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return h_("selections")},e.useStaleLayout=function(){const e=h_("layout"),[t]=v_({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=v_,e.useTheme=function(){return h_("theme")},e.useTranslator=function(){return h_("translator")}}));
|
|
133
|
+
`),uE))),hE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,size:a=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Rf(n,nE),p=kf({},n,{color:o,disableShrink:i,size:a,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return bf({root:["root",n,`color${Up(r)}`],svg:["svg"],circle:["circle",`circle${Up(n)}`,o&&"circleDisableShrink"]},tE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((sE-s)/2);h.strokeDasharray=e.toFixed(3),g["aria-valuenow"]=Math.round(c),h.strokeDashoffset=`${((100-c)/100*e).toFixed(3)}px`,m.transform="rotate(-90deg)"}return Lm.jsx(dE,kf({className:$g(f.root,r),style:kf({width:a,height:a},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Lm.jsx(pE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Lm.jsx(fE,{className:f.circle,style:h,ownerState:p,cx:sE,cy:sE,r:(sE-s)/2,fill:"none",strokeWidth:s})})}))}));var mE=hE;const gE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","open","slotProps","slots","theme"],vE=Vv("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})((({theme:e,ownerState:t})=>kf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),bE=Vv(Rw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),yE=H.forwardRef((function(e,t){var n,r,o,i,a,l;const s=$v({name:"MuiModal",props:e}),{BackdropComponent:c=bE,BackdropProps:u,classes:d,className:p,closeAfterTransition:f=!1,children:h,container:m,component:g,components:v={},componentsProps:b={},disableAutoFocus:y=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:R=!1,onBackdropClick:L,onClose:O,open:I,slotProps:T,slots:P,theme:_}=s,N=Rf(s,gE),[M,q]=H.useState(!0),z={container:m,closeAfterTransition:f,disableAutoFocus:y,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:R,onBackdropClick:L,onClose:O,open:I},D=kf({},s,z,{exited:M}),A=null!=(n=null!=(r=null==P?void 0:P.root)?r:v.Root)?n:vE,j=null!=(o=null!=(i=null==P?void 0:P.backdrop)?i:v.Backdrop)?o:c,F=null!=(a=null==T?void 0:T.root)?a:b.root,B=null!=(l=null==T?void 0:T.backdrop)?l:b.backdrop;return Lm.jsx(Gy,kf({slots:{root:A,backdrop:j},slotProps:{root:()=>kf({},nb(F,D),!Qv(A)&&{as:g,theme:_},{className:$g(p,null==F?void 0:F.className,null==d?void 0:d.root,!D.open&&D.exited&&(null==d?void 0:d.hidden))}),backdrop:()=>kf({},u,nb(B,D),{className:$g(null==B?void 0:B.className,null==u?void 0:u.className,null==d?void 0:d.backdrop)})},onTransitionEnter:()=>q(!1),onTransitionExited:()=>q(!0),ref:t},N,z,{children:h}))}));var xE=yE;function SE(e){return wf("MuiDivider",e)}var wE=Ef("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const EE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],CE=Vv("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,"vertical"===n.orientation&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&"vertical"===n.orientation&&t.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&t.textAlignLeft]}})((({theme:e,ownerState:t})=>kf({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)`:rv(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})=>kf({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>kf({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>kf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>kf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),kE=Vv("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>kf({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)`}))),RE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Rf(n,EE),h=kf({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return bf({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},SE,r)})(h);return Lm.jsx(CE,kf({as:a,className:$g(m.root,i),role:u,ref:t,ownerState:h},f,{children:o?Lm.jsx(kE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var LE=RE;function OE(e){return wf("MuiFormControlLabel",e)}var IE=Ef("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]);const TE=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],PE=Vv("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${IE.label}`]:t.label},t.root,t[`labelPlacement${Up(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>kf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${IE.disabled}`]:{cursor:"default"}},"start"===t.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===t.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===t.labelPlacement&&{flexDirection:"column",marginLeft:16},{[`& .${IE.label}`]:{[`&.${IE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),_E=Vv("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})((({theme:e})=>({[`&.${IE.error}`]:{color:(e.vars||e).palette.error.main}}))),NE=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiFormControlLabel"}),{className:i,componentsProps:a={},control:l,disabled:s,disableTypography:c,label:u,labelPlacement:d="end",required:p,slotProps:f={}}=o,h=Rf(o,TE),m=rw(),g=null!=(n=null!=s?s:l.props.disabled)?n:null==m?void 0:m.disabled,v=null!=p?p:l.props.required,b={disabled:g,required:v};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===l.props[e]&&void 0!==o[e]&&(b[e]=o[e])}));const y=tw({props:o,muiFormControl:m,states:["error"]}),x=kf({},o,{disabled:g,labelPlacement:d,required:v,error:y.error}),S=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return bf({root:["root",n&&"disabled",`labelPlacement${Up(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},OE,t)})(x),w=null!=(r=f.typography)?r:a.typography;let E=u;return null==E||E.type===XS||c||(E=Lm.jsx(XS,kf({component:"span"},w,{className:$g(S.label,null==w?void 0:w.className),children:E}))),Lm.jsxs(PE,kf({className:$g(S.root,i),ownerState:x,ref:t},h,{children:[H.cloneElement(l,b),E,v&&Lm.jsxs(_E,{ownerState:x,"aria-hidden":!0,className:S.asterisk,children:[" ","*"]})]}))}));var ME=NE;var qE=H.createContext();function zE(e){return wf("MuiGrid",e)}const DE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],AE=Ef("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map((e=>`spacing-xs-${e}`)),...["column-reverse","column","row-reverse","row"].map((e=>`direction-xs-${e}`)),...["nowrap","wrap-reverse","wrap"].map((e=>`wrap-xs-${e}`)),...DE.map((e=>`grid-xs-${e}`)),...DE.map((e=>`grid-sm-${e}`)),...DE.map((e=>`grid-md-${e}`)),...DE.map((e=>`grid-lg-${e}`)),...DE.map((e=>`grid-xl-${e}`))]),jE=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function FE(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function BE({breakpoints:e,values:t}){let n="";Object.keys(t).forEach((e=>{""===n&&0!==t[e]&&(n=e)}));const r=Object.keys(e).sort(((t,n)=>e[t]-e[n]));return r.slice(0,r.indexOf(n))}const WE=Vv("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:i,spacing:a,wrap:l,zeroMinWidth:s,breakpoints:c}=n;let u=[];r&&(u=function(e,t,n={}){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach((t=>{const o=e[t];Number(o)>0&&r.push(n[`spacing-${t}-${String(o)}`])})),r}(a,c,t));const d=[];return c.forEach((e=>{const r=n[e];r&&d.push(t[`grid-${e}-${String(r)}`])})),[t.root,r&&t.container,i&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>kf({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},"wrap"!==e.wrap&&{flexWrap:e.wrap})),(function({theme:e,ownerState:t}){return Bm({theme:e},Wm({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${AE.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=BE({breakpoints:e.breakpoints.values,values:t})),o=Bm({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{marginTop:`-${FE(i)}`,[`& > .${AE.item}`]:{paddingTop:FE(i)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${AE.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=Wm({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=BE({breakpoints:e.breakpoints.values,values:t})),o=Bm({theme:e},t,((t,r)=>{var o;const i=e.spacing(t);return"0px"!==i?{width:`calc(100% + ${FE(i)})`,marginLeft:`-${FE(i)}`,[`& > .${AE.item}`]:{paddingLeft:FE(i)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${AE.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let i={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)i={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)i={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const a=Wm({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof a?a[o]:a;if(null==l)return r;const s=Math.round(n/l*1e8)/1e6+"%";let c={};if(t.container&&t.item&&0!==t.columnSpacing){const n=e.spacing(t.columnSpacing);if("0px"!==n){const e=`calc(${s} + ${FE(n)})`;c={flexBasis:e,maxWidth:e}}}i=kf({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,i):r[e.breakpoints.up(o)]=i,r}),{})}));const $E=e=>{const{classes:t,container:n,direction:r,item:o,spacing:i,wrap:a,zeroMinWidth:l,breakpoints:s}=e;let c=[];n&&(c=function(e,t){if(!e||e<=0)return[];if("string"==typeof e&&!Number.isNaN(Number(e))||"number"==typeof e)return[`spacing-xs-${String(e)}`];const n=[];return t.forEach((t=>{const r=e[t];if(Number(r)>0){const e=`spacing-${t}-${String(r)}`;n.push(e)}})),n}(i,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return bf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==a&&`wrap-xs-${String(a)}`,...u]},zE,t)},HE=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiGrid"}),{breakpoints:r}=Wv(),o=Bg(n),{className:i,columns:a,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:d=!1,rowSpacing:p,spacing:f=0,wrap:h="wrap",zeroMinWidth:m=!1}=o,g=Rf(o,jE),v=p||f,b=l||f,y=H.useContext(qE),x=c?a||12:y,S={},w=kf({},g);r.keys.forEach((e=>{null!=g[e]&&(S[e]=g[e],delete w[e])}));const E=kf({},o,{columns:x,container:c,direction:u,item:d,rowSpacing:v,columnSpacing:b,wrap:h,zeroMinWidth:m,spacing:f},S,{breakpoints:r.keys}),C=$E(E);return Lm.jsx(qE.Provider,{value:x,children:Lm.jsx(WE,kf({ownerState:E,className:$g(C.root,i),as:s,ref:t},w))})}));var UE=HE;const VE=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function GE(e){return`scale(${e}, ${e**2})`}const KE={entering:{opacity:1,transform:GE(1)},entered:{opacity:1,transform:"none"}},ZE="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),XE=H.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",TransitionComponent:m=fx}=e,g=Rf(e,VE),v=H.useRef(),b=H.useRef(),y=Wv(),x=H.useRef(null),S=of(x,o.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(c),C=w(((e,t)=>{PS(e);const{duration:n,delay:r,easing:o}=_S({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:ZE?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),k=w(s),R=w(p),L=w((e=>{const{duration:t,delay:n,easing:r}=_S({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:ZE?o:.666*o,delay:ZE?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=GE(.75),u&&u(e)})),O=w(d);return H.useEffect((()=>()=>{clearTimeout(v.current)}),[]),Lm.jsx(m,kf({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{"auto"===h&&(v.current=setTimeout(e,b.current||0)),n&&n(x.current,e)},timeout:"auto"===h?null:h},g,{children:(e,t)=>H.cloneElement(o,kf({style:kf({opacity:0,transform:GE(.75),visibility:"exited"!==e||a?void 0:"hidden"},KE[e],f,o.props.style),ref:S},t))}))}));XE.muiSupportAuto=!0;var QE=XE;function JE(e){return wf("MuiIcon",e)}Ef("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YE=["baseClassName","className","color","component","fontSize"],eC=Vv("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Up(n.color)}`],t[`fontSize${Up(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]}))),tC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium"}=n,s=Rf(n,YE),c=kf({},n,{baseClassName:r,color:i,component:a,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return bf({root:["root","inherit"!==t&&`color${Up(t)}`,`fontSize${Up(n)}`]},JE,r)})(c);return Lm.jsx(eC,kf({as:a,className:$g(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));tC.muiName="Icon";var nC=tC;function rC(e){return wf("MuiInputAdornment",e)}var oC,iC=Ef("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const aC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],lC=Vv("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Up(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>kf({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${iC.positionStart}&:not(.${iC.hiddenLabel})`]:{marginTop:16}},"start"===t.position&&{marginRight:8},"end"===t.position&&{marginLeft:8},!0===t.disablePointerEvents&&{pointerEvents:"none"}))),sC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rf(n,aC),d=rw()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f=kf({},n,{hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:p}),h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return bf({root:["root",n&&"disablePointerEvents",o&&`position${Up(o)}`,a,r&&"hiddenLabel",i&&`size${Up(i)}`]},rC,t)})(f);return Lm.jsx(nw.Provider,{value:null,children:Lm.jsx(lC,kf({as:i,ownerState:f,className:$g(h.root,o),ref:t},u,{children:"string"!=typeof r||l?Lm.jsxs(H.Fragment,{children:["start"===s?oC||(oC=Lm.jsx("span",{className:"notranslate",children:""})):null,r]}):Lm.jsx(XS,{color:"text.secondary",children:r})}))})}));var cC=sC;var uC=H.createContext({});function dC(e){return wf("MuiList",e)}Ef("MuiList",["root","padding","dense","subheader"]);const pC=["children","className","component","dense","disablePadding","subheader"],fC=Vv("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})((({ownerState:e})=>kf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),hC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,c=Rf(n,pC),u=H.useMemo((()=>({dense:a})),[a]),d=kf({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return bf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},dC,t)})(d);return Lm.jsx(uC.Provider,{value:u,children:Lm.jsxs(fC,kf({as:i,className:$g(p.root,o),ref:t,ownerState:d},c,{children:[s,r]}))})}));var mC=hC;function gC(e){return wf("MuiListItem",e)}var vC=Ef("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var bC=Ef("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function yC(e){return wf("MuiListItemSecondaryAction",e)}Ef("MuiListItemSecondaryAction",["root","disableGutters"]);const xC=["className"],SC=Vv("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>kf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),wC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rf(n,xC),i=kf({},n,{disableGutters:H.useContext(uC).disableGutters}),a=(e=>{const{disableGutters:t,classes:n}=e;return bf({root:["root",t&&"disableGutters"]},yC,n)})(i);return Lm.jsx(SC,kf({className:$g(a.root,r),ownerState:i,ref:t},o))}));wC.muiName="ListItemSecondaryAction";var EC=wC;const CC=["className"],kC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],RC=Vv("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]}})((({theme:e,ownerState:t})=>kf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&kf({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${bC.root}`]:{paddingRight:48}},{[`&.${vC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${vC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${vC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${vC.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"}},[`&.${vC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rv(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})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),LC=Vv("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),OC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:i=!1,children:a,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:d="li",ContainerProps:{className:p}={},dense:f=!1,disabled:h=!1,disableGutters:m=!1,disablePadding:g=!1,divider:v=!1,focusVisibleClassName:b,secondaryAction:y,selected:x=!1,slotProps:S={},slots:w={}}=n,E=Rf(n.ContainerProps,CC),C=Rf(n,kC),k=H.useContext(uC),R=H.useMemo((()=>({dense:f||k.dense||!1,alignItems:r,disableGutters:m})),[r,k.dense,f,m]),L=H.useRef(null);Jp((()=>{o&&L.current&&L.current.focus()}),[o]);const O=H.Children.toArray(a),I=O.length&&Kp(O[O.length-1],["ListItemSecondaryAction"]),T=kf({},n,{alignItems:r,autoFocus:o,button:i,dense:R.dense,disabled:h,disableGutters:m,disablePadding:g,divider:v,hasSecondaryAction:I,selected:x}),P=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:i,disableGutters:a,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return bf({root:["root",o&&"dense",!a&&"gutters",!l&&"padding",s&&"divider",i&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},gC,r)})(T),_=of(L,t),N=w.root||c.Root||RC,M=S.root||u.root||{},q=kf({className:$g(P.root,M.className,l),disabled:h},C);let z=s||"li";return i&&(q.component=s||"div",q.focusVisibleClassName=$g(vC.focusVisible,b),z=Fx),I?(z=q.component||s?z:"div","li"===d&&("li"===z?z="div":"li"===q.component&&(q.component="div")),Lm.jsx(uC.Provider,{value:R,children:Lm.jsxs(LC,kf({as:d,className:$g(P.container,p),ref:_,ownerState:T},E,{children:[Lm.jsx(N,kf({},M,!Qv(N)&&{as:z,ownerState:kf({},T,M.ownerState)},q,{children:O})),O.pop()]}))})):Lm.jsx(uC.Provider,{value:R,children:Lm.jsxs(N,kf({},M,{as:z,ref:_},!Qv(N)&&{ownerState:kf({},T,M.ownerState)},q,{children:[O,y&&Lm.jsx(EC,{children:y})]}))})}));var IC=OC;function TC(e){return wf("MuiListItemIcon",e)}var PC=Ef("MuiListItemIcon",["root","alignItemsFlexStart"]);const _C=["className"],NC=Vv("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})((({theme:e,ownerState:t})=>kf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),MC=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rf(n,_C),i=kf({},n,{alignItems:H.useContext(uC).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return bf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},TC,n)})(i);return Lm.jsx(NC,kf({className:$g(a.root,r),ownerState:i,ref:t},o))}));var qC=MC;var zC=Ef("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const DC=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function AC(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function jC(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function FC(e,t){if(void 0===t)return!0;let n=e.innerText;return void 0===n&&(n=e.textContent),n=n.trim().toLowerCase(),0!==n.length&&(t.repeating?n[0]===t.keys[0]:0===n.indexOf(t.keys.join("")))}function BC(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&FC(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const WC=H.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,d=Rf(e,DC),p=H.useRef(null),f=H.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Jp((()=>{r&&p.current.focus()}),[r]),H.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${mf(Zp(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const h=of(p,t);let m=-1;H.Children.forEach(i,((e,t)=>{H.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=H.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),H.cloneElement(e,t)}return e}));return Lm.jsx(mC,kf({role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=Zp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),BC(t,r,s,l,AC);else if("ArrowUp"===n)e.preventDefault(),BC(t,r,s,l,jC);else if("Home"===n)e.preventDefault(),BC(t,null,s,l,AC);else if("End"===n)e.preventDefault(),BC(t,null,s,l,jC);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&FC(r,o);o.previousKeyMatched&&(s||BC(t,r,!1,l,AC,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},d,{children:g}))}));var $C=WC;function HC(e){return wf("MuiPopover",e)}Ef("MuiPopover",["root","paper"]);const UC=["onEntering"],VC=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"],GC=["slotProps"];function KC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function ZC(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function XC(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function QC(e){return"function"==typeof e?e():e}const JC=Vv(xE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),YC=Vv(DS,{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}),ek=H.forwardRef((function(e,t){var n,r,o;const i=$v({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:h=8,marginThreshold:m=16,open:g,PaperProps:v={},slots:b,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=QE,transitionDuration:w="auto",TransitionProps:{onEntering:E}={}}=i,C=Rf(i.TransitionProps,UC),k=Rf(i,VC),R=null!=(n=null==y?void 0:y.paper)?n:v,L=H.useRef(),O=of(L,R.ref),I=kf({},i,{anchorOrigin:s,anchorReference:u,elevation:h,marginThreshold:m,externalPaperSlotProps:R,transformOrigin:x,TransitionComponent:S,transitionDuration:w,TransitionProps:C}),T=(e=>{const{classes:t}=e;return bf({root:["root"],paper:["paper"]},HC,t)})(I),P=H.useCallback((()=>{if("anchorPosition"===u)return c;const e=QC(l),t=(e&&1===e.nodeType?e:Zp(L.current).body).getBoundingClientRect();return{top:t.top+KC(t,s.vertical),left:t.left+ZC(t,s.horizontal)}}),[l,s.horizontal,s.vertical,c,u]),_=H.useCallback((e=>({vertical:KC(e,x.vertical),horizontal:ZC(e,x.horizontal)})),[x.horizontal,x.vertical]),N=H.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=_(t);if("none"===u)return{top:null,left:null,transformOrigin:XC(n)};const r=P();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,c=Xp(QC(l)),d=c.innerHeight-m,p=c.innerWidth-m;if(o<m){const e=o-m;o-=e,n.vertical+=e}else if(a>d){const e=a-d;o-=e,n.vertical+=e}if(i<m){const e=i-m;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:XC(n)}}),[l,u,P,_,m]),[M,q]=H.useState(g),z=H.useCallback((()=>{const e=L.current;if(!e)return;const t=N(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,q(!0)}),[N]);H.useEffect((()=>{g&&z()})),H.useImperativeHandle(a,(()=>g?{updatePosition:()=>{z()}}:null),[g,z]),H.useEffect((()=>{if(!g)return;const e=Gp((()=>{z()})),t=Xp(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,z]);let D=w;"auto"!==w||S.muiSupportAuto||(D=void 0);const A=f||(l?Zp(QC(l)).body:void 0),j=null!=(r=null==b?void 0:b.root)?r:JC,F=null!=(o=null==b?void 0:b.paper)?o:YC,B=lb({elementType:F,externalSlotProps:kf({},R,{style:M?R.style:kf({},R.style,{opacity:0})}),additionalProps:{elevation:h,ref:O},ownerState:I,className:$g(T.paper,null==R?void 0:R.className)}),W=lb({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:A,open:g},ownerState:I,className:$g(T.root,p)}),{slotProps:$}=W,U=Rf(W,GC);return Lm.jsx(j,kf({},U,!Qv(j)&&{slotProps:$},{children:Lm.jsx(S,kf({appear:!0,in:g,onEntering:(e,t)=>{E&&E(e,t),z()},onExited:()=>{q(!1)},timeout:D},C,{children:Lm.jsx(F,kf({},B,{children:d}))}))}))}));var tk=ek;function nk(e){return wf("MuiMenuItem",e)}var rk=Ef("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const ok=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ik=Vv(Fx,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiMenuItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((({theme:e,ownerState:t})=>kf({},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"}},[`&.${rk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:rv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:rv(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})`:rv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${wE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${wE.inset}`]:{marginLeft:52},[`& .${zC.root}`]:{marginTop:0,marginBottom:0},[`& .${zC.inset}`]:{paddingLeft:36},[`& .${PC.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&kf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${PC.root} svg`]:{fontSize:"1.25rem"}})))),ak=H.forwardRef((function(e,t){const n=$v({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d}=n,p=Rf(n,ok),f=H.useContext(uC),h=H.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),m=H.useRef(null);Jp((()=>{r&&m.current&&m.current.focus()}),[r]);const g=kf({},n,{dense:h.dense,divider:a,disableGutters:l}),v=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return kf({},a,bf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},nk,a))})(n),b=of(m,t);let y;return n.disabled||(y=void 0!==u?u:-1),Lm.jsx(uC.Provider,{value:h,children:Lm.jsx(ik,kf({ref:b,role:c,tabIndex:y,component:o,focusVisibleClassName:$g(v.focusVisible,s),className:$g(v.root,d)},p,{ownerState:g,classes:v}))})}));var lk,sk=ak;const ck=["children","classes","className","label","notched"],uk=Vv("fieldset")({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%"}),dk=Vv("legend")((({ownerState:e,theme:t})=>kf({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&&kf({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 pk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],fk=Vv(dw,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:cw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return kf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${vw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${vw.focused} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${vw.error} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${vw.disabled} .${vw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&kf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),hk=Vv((function(e){const{className:t,label:n,notched:r}=e,o=Rf(e,ck),i=null!=n&&""!==n,a=kf({},e,{notched:r,withLabel:i});return Lm.jsx(uk,kf({"aria-hidden":!0,className:t,ownerState:a},o,{children:Lm.jsx(dk,{ownerState:a,children:i?Lm.jsx("span",{children:n}):lk||(lk=Lm.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}})),mk=Vv(pw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:uw})((({theme:e,ownerState:t})=>kf({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}))),gk=H.forwardRef((function(e,t){var n,r,o,i,a;const l=$v({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:h={},type:m="text"}=l,g=Rf(l,pk),v=(e=>{const{classes:t}=e;return kf({},t,bf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},gw,t))})(l),b=rw(),y=tw({props:l,muiFormControl:b,states:["required"]}),x=kf({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:b,fullWidth:c,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:m}),S=null!=(n=null!=(r=h.root)?r:s.Root)?n:fk,w=null!=(o=null!=(i=h.input)?i:s.Input)?o:mk;return Lm.jsx(mw,kf({slots:{root:S,input:w},renderSuffix:e=>Lm.jsx(hk,{ownerState:x,className:v.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Lm.jsxs(H.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:kf({},v,{notchedOutline:null})}))}));gk.muiName="Input";var vk=gk,bk=OS(Lm.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),yk=OS(Lm.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const xk=Vv("span")({position:"relative",display:"flex"}),Sk=Vv(bk)({transform:"scale(1)"}),wk=Vv(yk)((({theme:e,ownerState:t})=>kf({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})})));function Ek(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=kf({},e,{checked:t});return Lm.jsxs(xk,{className:n.root,ownerState:o,children:[Lm.jsx(Sk,{fontSize:r,className:n.background,ownerState:o}),Lm.jsx(wk,{fontSize:r,className:n.dot,ownerState:o})]})}var Ck=H.createContext(void 0);function kk(e){return wf("MuiRadio",e)}var Rk=Ef("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Lk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Ok=Vv(Ww,{shouldForwardProp:e=>Hv(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Up(n.color)}`]]}})((({theme:e,ownerState:t})=>kf({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})`:rv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Rk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Rk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Ik=Lm.jsx(Ek,{checked:!0}),Tk=Lm.jsx(Ek,{}),Pk=H.forwardRef((function(e,t){var n,r;const o=$v({props:e,name:"MuiRadio"}),{checked:i,checkedIcon:a=Ik,color:l="primary",icon:s=Tk,name:c,onChange:u,size:d="medium",className:p}=o,f=Rf(o,Lk),h=kf({},o,{color:l,size:d}),m=(e=>{const{classes:t,color:n}=e;return kf({},t,bf({root:["root",`color${Up(n)}`]},kk,t))})(h),g=H.useContext(Ck);let v=i;const b=Vp(u,g&&g.onChange);let y=c;return g&&(void 0===v&&(v=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(g.value,o.value)),void 0===y&&(y=g.name)),Lm.jsx(Ok,kf({type:"radio",icon:H.cloneElement(s,{fontSize:null!=(n=Tk.props.fontSize)?n:d}),checkedIcon:H.cloneElement(a,{fontSize:null!=(r=Ik.props.fontSize)?r:d}),ownerState:h,classes:m,name:y,checked:v,onChange:b,ref:t,className:$g(m.root,p)},f))}));var _k=Pk;function Nk(e){return wf("MuiTooltip",e)}var Mk=Ef("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const qk=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];const zk=Vv(ew,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((({theme:e,ownerState:t,open:n})=>kf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Mk.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Mk.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Mk.arrow}`]:kf({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Mk.arrow}`]:kf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),Dk=Vv("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Up(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return kf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:rv(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:e.typography.fontWeightRegular},{[`.${Mk.popper}[data-popper-placement*="left"] &`]:kf({transformOrigin:"right center"},t.isRtl?kf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):kf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Mk.popper}[data-popper-placement*="right"] &`]:kf({transformOrigin:"left center"},t.isRtl?kf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):kf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Mk.popper}[data-popper-placement*="top"] &`]:kf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Mk.popper}[data-popper-placement*="bottom"] &`]:kf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),Ak=Vv("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:rv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let jk=!1,Fk=null,Bk={x:0,y:0};function Wk(e,t){return n=>{t&&t(n),e(n)}}const $k=H.forwardRef((function(e,t){var n,r,o,i,a,l,s,c,u,d,p,f,h,m,g,v,b,y,x;const S=$v({props:e,name:"MuiTooltip"}),{arrow:w=!1,children:E,components:C={},componentsProps:k={},describeChild:R=!1,disableFocusListener:L=!1,disableHoverListener:O=!1,disableInteractive:I=!1,disableTouchListener:T=!1,enterDelay:P=100,enterNextDelay:_=0,enterTouchDelay:N=700,followCursor:M=!1,id:q,leaveDelay:z=0,leaveTouchDelay:D=1500,onClose:A,onOpen:j,open:F,placement:B="bottom",PopperComponent:W,PopperProps:$={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=QE,TransitionProps:Z}=S,X=Rf(S,qk),Q=Wv(),J="rtl"===Q.direction,[Y,ee]=H.useState(),[te,ne]=H.useState(null),re=H.useRef(!1),oe=I||M,ie=H.useRef(),ae=H.useRef(),le=H.useRef(),se=H.useRef(),[ce,ue]=nf({controlled:F,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=tf(q),fe=H.useRef(),he=H.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(se.current)}),[]);H.useEffect((()=>()=>{clearTimeout(ie.current),clearTimeout(ae.current),clearTimeout(le.current),he()}),[he]);const me=e=>{clearTimeout(Fk),jk=!0,ue(!0),j&&!de&&j(e)},ge=rf((e=>{clearTimeout(Fk),Fk=setTimeout((()=>{jk=!1}),800+z),ue(!1),A&&de&&A(e),clearTimeout(ie.current),ie.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(Y&&Y.removeAttribute("title"),clearTimeout(ae.current),clearTimeout(le.current),P||jk&&_?ae.current=setTimeout((()=>{me(e)}),jk?_:P):me(e))},be=e=>{clearTimeout(ae.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),z)},{isFocusVisibleRef:ye,onBlur:xe,onFocus:Se,ref:we}=hf(),[,Ee]=H.useState(!1),Ce=e=>{xe(e),!1===ye.current&&(Ee(!1),be(e))},ke=e=>{Y||ee(e.currentTarget),Se(e),!0===ye.current&&(Ee(!0),ve(e))},Re=e=>{re.current=!0;const t=E.props;t.onTouchStart&&t.onTouchStart(e)},Le=ve,Oe=be,Ie=e=>{Re(e),clearTimeout(le.current),clearTimeout(ie.current),he(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),N)},Te=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),he(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)};H.useEffect((()=>{if(de)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"!==e.key&&"Esc"!==e.key||ge(e)}}),[ge,de]);const Pe=of(E.ref,we,ee,t);G||0===G||(de=!1);const _e=H.useRef(),Ne={},Me="string"==typeof G;R?(Ne.title=de||!Me||O?null:G,Ne["aria-describedby"]=de?pe:null):(Ne["aria-label"]=Me?G:null,Ne["aria-labelledby"]=de&&!Me?pe:null);const qe=kf({},Ne,X,E.props,{className:$g(X.className,E.props.className),onTouchStart:Re,ref:Pe},M?{onMouseMove:e=>{const t=E.props;t.onMouseMove&&t.onMouseMove(e),Bk={x:e.clientX,y:e.clientY},_e.current&&_e.current.update()}}:{}),ze={};T||(qe.onTouchStart=Ie,qe.onTouchEnd=Te),O||(qe.onMouseOver=Wk(Le,qe.onMouseOver),qe.onMouseLeave=Wk(Oe,qe.onMouseLeave),oe||(ze.onMouseOver=Le,ze.onMouseLeave=Oe)),L||(qe.onFocus=Wk(ke,qe.onFocus),qe.onBlur=Wk(Ce,qe.onBlur),oe||(ze.onFocus=ke,ze.onBlur=Ce));const De=H.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=$.popperOptions)&&e.modifiers&&(t=t.concat($.popperOptions.modifiers)),kf({},$.popperOptions,{modifiers:t})}),[te,$]),Ae=kf({},S,{isRtl:J,arrow:w,disableInteractive:oe,placement:B,PopperComponentProp:W,touch:re.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return bf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Up(i.split("-")[0])}`],arrow:["arrow"]},Nk,t)})(Ae),Fe=null!=(n=null!=(r=V.popper)?r:C.Popper)?n:zk,Be=null!=(o=null!=(i=null!=(a=V.transition)?a:C.Transition)?i:K)?o:QE,We=null!=(l=null!=(s=V.tooltip)?s:C.Tooltip)?l:Dk,$e=null!=(c=null!=(u=V.arrow)?u:C.Arrow)?c:Ak,He=Jv(Fe,kf({},$,null!=(d=U.popper)?d:k.popper,{className:$g(je.popper,null==$?void 0:$.className,null==(p=null!=(f=U.popper)?f:k.popper)?void 0:p.className)}),Ae),Ue=Jv(Be,kf({},Z,null!=(h=U.transition)?h:k.transition),Ae),Ve=Jv(We,kf({},null!=(m=U.tooltip)?m:k.tooltip,{className:$g(je.tooltip,null==(g=null!=(v=U.tooltip)?v:k.tooltip)?void 0:g.className)}),Ae),Ge=Jv($e,kf({},null!=(b=U.arrow)?b:k.arrow,{className:$g(je.arrow,null==(y=null!=(x=U.arrow)?x:k.arrow)?void 0:y.className)}),Ae);return Lm.jsxs(H.Fragment,{children:[H.cloneElement(E,qe),Lm.jsx(Fe,kf({as:null!=W?W:ew,placement:B,anchorEl:M?{getBoundingClientRect:()=>({top:Bk.y,left:Bk.x,right:Bk.x,bottom:Bk.y,width:0,height:0})}:Y,popperRef:_e,open:!!Y&&de,id:pe,transition:!0},ze,He,{popperOptions:De,children:({TransitionProps:e})=>Lm.jsx(Be,kf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Lm.jsxs(We,kf({},Ve,{children:[G,w?Lm.jsx($e,kf({},Ge,{ref:ne})):null]}))}))}))]})}));var Hk=$k;const[Uk,Vk]=uS({}),[Gk,Kk]=uS({}),[Zk,Xk]=uS({}),[Qk,Jk]=uS({}),[Yk,eR]=uS({}),[,tR]=uS({}),nR=e=>{let{type:t,value:n}=e;const r=tR.get(n.id);tR.set(n.id,{});const o=()=>{Kk.clear(n.id),eR.set(n.id,{}),eR.dispatch(!0)},i=()=>{n.removeListener("changed",o),Vk.clear(n.id),Kk.clear(n.id),Xk.clear(n.id),Jk.clear(n.id),eR.clear(n.id),tR.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{i()})));return i},[rR,oR]=uS({},nR),iR=e=>{const t=nR({type:"SET",value:e});return()=>{t(),oR.clear(e.id)}};function aR(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=rR(),[o]=Zk(),[i,a]=H.useState();let l;n&&(l=o.get(n));for(var s=arguments.length,c=new Array(s>2?s-2:0),u=2;u<s;u++)c[u-2]=arguments[u];return H.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const i=await l;r.set(n,i),a(i)})()}),[t,...c]),[i]}const lR={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function sR(e){return aR(lR,e)}const cR=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=i(i({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:i({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=i(i({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[o]=a,n.set(r,l),a};function uR(e,t){const n=e?"".concat(e.id):null,[r]=Uk(),[o,i]=H.useReducer(cR,n?r.get(n):null),[a]=Yk(),[l]=Gk();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return H.useEffect((()=>{e&&c()}),[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function dR(e){return uR(e,"getLayout")}function pR(e){return uR(e,"getAppLayout")}function fR(){const[e,t]=H.useState(),[n,r]=H.useState(),o=H.useCallback((e=>{e&&t(e)}),[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return H.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}}),[e]),[o,n,e]}function hR(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function mR(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=i({fontSize:hR(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return U.createElement("i",{style:a},U.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},o.map(((e,t)=>{let{type:n,attrs:r}=e;return U.createElement(n,l({key:t},r))}))))}var gR=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var vR=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.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 0v1.652ZM3 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-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));var bR=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]}))(e));var yR=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),xR=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},SR=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=xR(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},xR(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),yR(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++)t(c)?null!==s&&(a.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some((function(e,t){return c[t]!==e})))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then((function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}}))},o=0;o<e.length;o+=2)r(o)}}]),t}(H.PureComponent);const wR=["S","XS"],ER=e=>e.reduce(((e,t)=>e.concat(t)));function CR(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!wR.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return ER(t)}async function kR(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let i=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{i=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){i=!1}i||(o?t.cancel():t.clear())}return i}const RR="RowColumn",LR={row:"".concat(RR,"-row"),rowBorderBottom:"".concat(RR,"-rowBorderBottom"),column:"".concat(RR,"-column"),fieldRoot:"".concat(RR,"-fieldRoot"),cell:"".concat(RR,"-cell"),labelText:"".concat(RR,"-labelText"),labelDense:"".concat(RR,"-labelDense"),highlighted:"".concat(RR,"-highlighted"),checkboxLabel:"".concat(RR,"-checkboxLabel"),icon:"".concat(RR,"-icon"),S:"".concat(RR,"-S"),XS:"".concat(RR,"-XS"),A:"".concat(RR,"-A"),X:"".concat(RR,"-X"),frequencyCount:"".concat(RR,"-frequencyCount"),barContainer:"".concat(RR,"-barContainer"),bar:"".concat(RR,"-bar"),barSelected:"".concat(RR,"-barSelected"),barWithCheckbox:"".concat(RR,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(RR,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(RR,"-excludedTextWithCheckbox")},OR=".".concat(LR.fieldRoot),IR=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function TR(e){var t,n;let{selectionState:r,selections:o,checkboxes:i=!1,doc:a=document,loaderRef:l}=e;const s=H.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});H.useEffect((()=>{var e,t;if(null===(e=l.current)||void 0===e||null===(t=e._listRef)||void 0===t||!t._outerRef)return;const n=e=>e.preventDefault(),r=e=>e.preventDefault(),o=e=>e.preventDefault(),i=l.current._listRef._outerRef;return i.addEventListener("gesturestart",n),i.addEventListener("gesturechange",r),i.addEventListener("gestureend",o),()=>{i.removeEventListener("gesturestart",n),i.removeEventListener("gesturechange",r),i.removeEventListener("gestureend",o)}}),[null===(t=l.current)||void 0===t||null===(n=t._listRef)||void 0===n?void 0:n._outerRef]);const c=()=>(r.setSelectableValuesUpdating(),kR({selections:o,elemNumbers:s.current.elemNumbers,isSingleSelect:r.isSingleSelect,toggle:s.current.toggle})),u=(e,t)=>{const n=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[{qElemNumber:t}]=e;return t}));return t}));return ER(t)}(r.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach((e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r})),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([e,t],n)},d=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const n=u(s.current.startElemNumber,e);r.updateItems(n,!0,s.current.elemNumbers)},p=H.useCallback((e=>{if(r.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!r.isSingleSelect&&IR(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=n,n||r.clearItemStates(!0),r.updateItem(t),s.current.active=!1,c()}),[]),f=H.useCallback((e=>{if(0!==e.button||r.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!r.isSingleSelect&&IR(e);s.current.isRange=!1,s.current.startElemNumber=t,s.current.elemNumbers=[t],s.current.toggle=n,s.current.active=!0,n||r.clearItemStates(!0),r.updateItem(t),r.isSingleSelect&&(s.current.active=!1,c()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),h=H.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");d(t)}c()}}),[]),m=H.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,c())}),[]),g=H.useCallback((e=>{if(!s.current.active)return;s.current.isRange||(s.current.isRange=!0,r.isSelected(s.current.startElemNumber)||(r.updateItem(s.current.startElemNumber,!0),s.current.elemNumbers=[]));const t=+e.currentTarget.getAttribute("data-n");d(t)}),[]),v=H.useCallback((e=>{var t,n,o,i;if(s.current.active||s.current.isRange||r.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void c();const a=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(OR))||void 0===n?void 0:n.getAttribute("data-n")),l=Number(null===(o=e.touches[1].target)||void 0===o||null===(i=o.closest(OR))||void 0===i?void 0:i.getAttribute("data-n"));if(Number.isNaN(a)||Number.isNaN(a))return void c();s.current.active=!0;u(a,l).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[a,l]}),[]),b=H.useCallback((()=>{if(2!==s.current.touchElemNumbers.length)return;if(s.current.touchRangeSmall)return s.current.touchRangeSmall=!1,s.current.touchElemNumbers=[],void(s.current.active=!1);const[e,t]=s.current.touchElemNumbers;s.current.startElemNumber=e,d(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,c()}),[]);H.useEffect((()=>(a.addEventListener("mouseup",m),()=>{a.removeEventListener("mouseup",m)})),[m]),H.useEffect((()=>{const e=()=>{r.clearItemStates(!1)},t=()=>{r.clearItemStates(!0),r.triggerStateChanged()};return o.on("clearItemStates",e),o.on("deactivated",e),o.on("cleared",t),()=>{o.removeListener("clearItemStates",e),o.removeListener("deactivated",e),o.removeListener("cleared",t)}}),[o]);const y={};return i?Object.assign(y,{onChange:p}):Object.assign(y,{onMouseUp:h,onMouseDown:f,onMouseEnter:g,onTouchStart:v,onTouchEnd:b}),{interactionEvents:y,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const i=!r.isSingleSelect&&IR(null==n?void 0:n.nativeEvent);i||r.clearItemStates(!0);const a=[];return r.updateItems(e,t,a),r.setSelectableValuesUpdating(),kR({selections:o,elemNumbers:t?a:e,isSingleSelect:r.isSingleSelect,toggle:i})}}}const PR=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var _R=e=>mR(PR(e));const NR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,MR=e=>e?"A"===e.qState:null,qR=e=>{let{cell:t,checkboxes:n}=e;return(MR(t)||NR(t))&&n},zR=e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:i}=e;const a=[t?LR.column:LR.row];return n||a.push(LR.rowBorderBottom),o?(r||("XS"===o.qState?a.push(i?LR.XS:LR.S):"S"===o.qState||"L"===o.qState?a.push(LR.S):i&&MR(o)?a.push(LR.A):i&&NR(o)&&a.push(LR.X)),a):[]},DR=9,AR=80,jR=10,FR=150,BR=56,WR=20,$R="-",HR=e=>e.filter((e=>!!e)).join(" ").trim(),UR=e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),i=parseFloat(o?r:t);return"".concat(o?i:i/n*100,"%")},VR=e=>e||$R,GR=e=>{let{sizes:t,frequencyMode:n,isGridMode:r,freqHitsValue:o}=e;if("P"===n)return"".concat(t.freqMinWidth,"px");return r&&!o?"max-content":"25%"},KR=e=>{let{sizes:t,frequencyMode:n,isGridMode:r}=e;return r?"max-content":"P"===n?t.freqMinWidth:t.freqMaxWidth},ZR=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder),outline:"none"},"& $cell":{paddingRight:0}}},XR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},QR=Vv("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue"].includes(e)})((e=>{var t,n,r,o,a,l,s,c,u,d;let{theme:p,checkboxes:f,isGridMode:h,isGridCol:m,dense:g,direction:v,sizes:b,frequencyMode:y,freqHitsValue:x}=e;return{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"},"& .value":{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(p.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(LR.row)]:{flexWrap:"nowrap",color:null!==(t=null===(n=p.listBox)||void 0===n||null===(r=n.content)||void 0===r?void 0:r.color)&&void 0!==t?t:p.palette.text.primary},["& .".concat(LR.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(LR.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(p.palette.divider),color:null!==(o=null===(a=p.listBox)||void 0===a||null===(l=a.content)||void 0===l?void 0:l.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(LR.cell)]:{display:"flex",alignItems:"center",flexGrow:1,minWidth:f?"52px":"26px",flexBasis:f?"auto":"max-content",paddingLeft:"".concat(DR,"px"),paddingRight:0},["& .".concat(LR.labelText)]:i(i({lineHeight:"16px",userSelect:"none",paddingRight:"1px"},XR),{},{fontSize:null===(s=p.listBox)||void 0===s||null===(c=s.content)||void 0===c?void 0:c.fontSize,fontFamily:null===(u=p.listBox)||void 0===u||null===(d=u.content)||void 0===d?void 0:d.fontFamily}),["& .".concat(LR.labelDense)]:{fontSize:12},["& .".concat(LR.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(LR.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":i(i({},XR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(LR.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(LR.S)]:i(i({},ZR({theme:p})),{},{border:h?"none":void 0}),["& .".concat(LR.XS)]:i(i({},ZR({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(LR.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(LR.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(LR.frequencyCount)]:i(i({justifyContent:"flex-end"},XR),{},{flex:"0 0 ".concat(GR({sizes:b,frequencyMode:y,isGridMode:h,freqHitsValue:x})),minWidth:!h&&"P"!==y&&x?b.freqMinWidth:"max-content",maxWidth:KR({sizes:b,frequencyMode:y,isGridMode:h}),textAlign:"rtl"===v?"left":"right",paddingLeft:"rtl"!==v?"8px":0}),["&.".concat(LR.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(LR.bar)]:{height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:4,width:"calc(100% - ".concat(8,"px)"),display:"flex",alignItems:"center","& .bar-filled":{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",transition:"width 0.2s",backgroundColor:"#FAFAFA",height:"100%"}},["& .".concat(LR.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:p.palette.background.lighter}},["& .".concat(LR.barWithCheckbox)]:{left:"rtl"===v?4:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(LR.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(LR.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var JR=U.memo(QR);const YR="ListBoxCheckbox",eL={cbIcon:"".concat(YR,"-cbIcon"),cbIconChecked:"".concat(YR,"-cbIconChecked"),cbIconExcluded:"".concat(YR,"-cbIconExcluded"),cbIconAlternative:"".concat(YR,"-cbIconAlternative"),checkbox:"".concat(YR,"-checkbox"),dense:"".concat(YR,"-dense")},tL=Vv(eE)((e=>{let{theme:t}=e;return{["& .".concat(eL.cbIcon)]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},["& .".concat(eL.cbIconChecked)]:{borderRadius:3,backgroundColor:t.palette.selected.main,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},["& .".concat(eL.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(eL.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(eL.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(eL.dense)]:{padding:"4px 8px"}}})),nL=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return U.createElement("span",{className:e.cbIcon},n&&U.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function rL(e){let{onChange:t,checked:n,label:r,dense:o,excluded:i,showGray:a=!0,dataN:l}=e;return U.createElement(tL,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[eL.checkbox,o&&eL.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:nL(eL,a,i),checkedIcon:U.createElement("span",{className:eL.cbIconChecked})})}const oL="ListBoxRadioButton",iL={denseRadioButton:"".concat(oL,"-denseRadioButton"),radioButton:"".concat(oL,"-radioButton")},aL=Vv(_k)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(iL.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function lL(e){let{onChange:t,checked:n,label:r,dense:o,dataN:i}=e;return U.createElement(aL,{checked:n,onChange:t,value:r,name:r,className:iL.radioButton,inputProps:{"data-n":i},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function sL(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:i,cell:a,valueTextAlign:l}=e;return U.createElement(XS,{component:"span",variant:"body2",className:HR([LR.labelText,r&&LR.labelDense,o&&qR({cell:a,checkboxes:i})&&LR.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},U.createElement("span",null,t))}function cL(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}=e;return"string"==typeof t?U.createElement(sL,{label:t,color:n,dense:r,showGray:o,checkboxes:i,cell:a,valueTextAlign:l}):t}function uL(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=U.createElement(rL,{onChange:t,label:n,checked:i,dense:a,excluded:NR(l),isGridCol:s,showGray:c,dataN:o}),h=U.createElement(lL,{onChange:t,label:n,checked:i,dense:a,dataN:o});return U.createElement(ME,{color:r,control:u?h:f,className:LR.checkboxLabel,label:U.createElement(cL,{label:n,color:r,dense:a,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function dL(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const i=t.map(((e,t)=>{let[n,r]=e;return U.createElement("span",{id:t,className:r?LR.highlighted:""},n)}));return U.createElement(sL,{label:i,dense:n,showGray:r,checkboxes:o})}function pL(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:i,color:a,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=U.createElement(dL,{labels:n,dense:o,showGray:i,checkboxes:r});return r?U.createElement(uL,{onChange:t,label:f,color:a,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:i,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var fL=U.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?U.createElement(uL,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:i,dense:a,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):U.createElement(sL,{label:n,color:r,dense:a,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function hL(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:i}=e;if(!(t&&n&&VR(t)!==$R))return;const a=UR({qFrequency:t,checkboxes:r,frequencyMax:i});return U.createElement(zw,{className:HR([LR.bar,r&&LR.barWithCheckbox,o&&(r?LR.barSelectedWithCheckbox:LR.barSelected)])},U.createElement(zw,{className:"bar-filled",width:a}))}function mL(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const i=VR(null==t?void 0:t.qFrequency);return U.createElement(UE,{item:!0,style:{display:"flex",alignItems:"center"},className:LR.frequencyCount,"aria-label":i,title:i},U.createElement(XS,{noWrap:!0,color:"inherit",variant:"body2",className:HR([r&&LR.labelDense,LR.labelText,o&&qR({cell:t,checkboxes:n})&&LR.excludedTextWithCheckbox])},i))}function gL(e){let{dataLayout:t,layoutOrder:n,itemPadding:r}=e;if("singleColumn"===t)return{height:"100%",width:"100%"};switch(n){case"row":case"column":return{height:"calc(100% - ".concat(r,"px)"),width:"calc(100% - ".concat(2*r,"px)"),position:"absolute",left:4};default:return{}}}const vL=Vv(UE,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o,direction:a}=e;const l="padding".concat("rtl"===a?"Left":"Right");return{["&.".concat(LR.fieldRoot)]:i(i({},gL({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{[l]:o?"8px":void 0})}}));const bL={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function yL(e){var t;let{layout:n}=e;const{translator:r}=H.useContext(cS),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},i=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let a;switch(i){case 0:a="ScreenReader.ZeroSelected";break;case 1:a="ScreenReader.OneSelected";break;default:a="ScreenReader.ManySelected"}const l=r.get(a,[i]);return U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}const xL=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===xL.ARROW_UP||e===xL.ARROW_DOWN||e===xL.ARROW_LEFT||e===xL.ARROW_RIGHT}),SL=e=>+e.getAttribute("data-n"),wL=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},EL=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused, .value.selector, .value");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},CL=e=>{let{rowIndex:t,columnIndex:n,rowCount:r,columnCount:o,layoutOrder:i,keyCode:a,numCells:l}=e;const s=e=>{let t;return"row"===i?(t=l%o,e<t?r:r-1):(t=l%r,e<o-1?r:t)};let c=t,u=n;if(a===xL.ARROW_DOWN)if(t>=s(n)-1){if(n===o-1)return-1;c=0,u=n+1}else c=t+1;else if(0===t){if(0===n)return-1;c=s(n-1)-1,u=n-1}else c=t-1;if("row"===i)return c*o+u;const d=l%r;return 0===d||c<d?c*o+u:(c-d)*(o-1)+u+d*o};function kL(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:l,style:s,data:c}=e;const{onChange:u,onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onTouchStart:m,onTouchEnd:g,pages:v,isLocked:b,column:y=!1,checkboxes:x=!1,textAlign:S,direction:w,layoutOptions:E={},freqIsAllowed:C,isSingleSelect:k,actions:R,frequencyMax:L="",histogram:O=!1,keyboard:I,showGray:T=!0,showTick:P=!0,columnCount:_=1,rowCount:N=1,dataOffset:M,deducedFrequencyMode:q,focusListItems:z,listCount:D,sizes:A,translator:j,showSearch:F,isModal:B}=c,{dense:W=!1,dataLayout:$="singleColumn",layoutOrder:V}=E,{itemPadding:G}=A;let K,Z;const X={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof l){"row"===V?(K=a*_+l,X.max=N,X.currentIndex=a):(K=l*N+a,X.max=_,X.currentIndex=l);const e=0;Z=i(i({},s),{},{left:e+(0===l?s.left:Number(s.left)+l*e),top:0===a?s.top:Number(s.top)+a*e})}else K=o,X.max=D,X.currentIndex=o,Z=i({},s);K+=M;const[Q,J]=H.useState(null);H.useEffect((()=>{null!==Q&&(0===X.currentIndex&&z.first&&(Q.focus(),z.setFirst(!1)),X.currentIndex===X.max-1&&z.last&&(Q.focus(),z.setLast(!1)))}),[Q,z.first,z.last]);const Y=H.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:i,setScrollPosition:a,focusListItems:l,keyboard:s,isModal:c,rowCount:u,columnCount:d,rowIndex:p,columnIndex:f,layoutOrder:h}=e;const m=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e===xL.ARROW_LEFT||e===xL.ARROW_RIGHT||"number"!=typeof p||"number"!=typeof f){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=CL({rowIndex:p,columnIndex:f,rowCount:u,columnCount:d,layoutOrder:h,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let g=!1;const v=e=>{g=e};return e=>{let u;const{currentTarget:d,nativeEvent:p}=e,{keyCode:f,shiftKey:h=!1,ctrlKey:b=!1,metaKey:y=!1}=p;switch(f){case xL.TAB:{const e=d.closest(".listbox-container"),t=c();if(d.classList.add("last-focused"),h){wL(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(d.blur(),s.blur());break}case xL.SHIFT:v(!0);break;case xL.SPACE:t([SL(d)],!1,e);break;case xL.ARROW_DOWN:case xL.ARROW_RIGHT:u=m(f,d,!0),h&&u&&(g&&(t([SL(d)],!0),v(!1)),t([SL(u)],!0));break;case xL.ARROW_UP:case xL.ARROW_LEFT:u=m(f,d,!1),h&&u&&(g&&(t([SL(d)],!0),v(!1)),t([SL(u)],!0));break;case xL.ENTER:o();break;case xL.ESCAPE:if(!c())return;i();break;case xL.HOME:if(l.setFirst(!0),b){null==a||a("overflowStart");break}null==a||a("start");break;case xL.END:if(l.setLast(!0),b){null==a||a("overflowEnd");break}null==a||a("end");break;case xL.A:if(b||y){n();break}return;case xL.F:if(b||y){r();break}return;default:return}u&&u.focus(),e.preventDefault(),e.stopPropagation()}}(i(i({},R),{},{focusListItems:z,keyboard:I,isModal:B,rowCount:N,columnCount:_,rowIndex:a,columnIndex:l,layoutOrder:V})),[R,null==I?void 0:I.innerTabStops,N,_,a,l,V]),ee=H.useMemo((()=>function(e){let t,{pages:n,cellIndex:r}=e;const o=n.filter((e=>e.qArea.qTop<=r&&r<e.qArea.qTop+e.qArea.qHeight))[0];if(o){const e=o.qArea;r>=e.qTop&&r<e.qTop+e.qHeight&&([t]=o.qMatrix[r-e.qTop])}return t}({pages:v,cellIndex:K})),[v,K]),te="S"===(null==ee?void 0:ee.qState)||"XS"===(null==ee?void 0:ee.qState)||"L"===(null==ee?void 0:ee.qState)||"XL"===(null==ee?void 0:ee.qState),ne=H.useMemo((()=>zR({column:y,histogram:O,checkboxes:x,cell:ee,showGray:T})),[null==ee?void 0:ee.qState,O,W,x]),re=H.useCallback((e=>{e.preventDefault()}),[x]),oe=H.useMemo((()=>ee&&function(e){let{direction:t,cell:n,textAlign:r}=e;const o=!["NaN",void 0].includes(null==n?void 0:n.qNum);let i;return i=!r||r.auto?o?"rtl"===t?"left":"right":{rtl:"right",ltr:"left"}[t]:(null==r?void 0:r.align)||"left",["left","center","right"].includes(i)?i:"left"}({direction:w,cell:ee,textAlign:S})),[w,ee,S]);if(!ee)return null;const ie="grid"===$&&"column"===V,ae=null!==(t=null==ee?void 0:ee.qText)&&void 0!==t?t:"";let le;if(null!==(n=ee.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=ee.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];le=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return a&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(ae,e)}const se={alignItems:"center",display:"flex",fontSize:"8px"},ce="rtl"===w,ue={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ce?8:x?0:void 0,paddingRight:x?0:ce?8:0,justifyContent:oe},de=0===o,pe=te&&b,fe=!x&&te&&!b,he=!x&&P,me=x||!P,ge=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:i,maxIndex:a,showSearch:l}=e;const s=bL[r],c=t.get(s),u=[];if(o){const e=l?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=t.get(e);u.push(n)}const d="".concat(n," ").concat(c),p=t.get("CurrentSelections.Of",[i+1,a+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:j,label:ae,qState:ee.qState,currentIndex:X.currentIndex,maxIndex:X.max,showSearch:F}),ve=!ce&&"right"===oe||ce&&"left"===oe;return U.createElement(JR,{className:LR.barContainer,checkboxes:x,style:Z,isGridCol:ie,isGridMode:"grid"===$,dense:W,direction:w,sizes:A,frequencyMode:q,freqHitsValue:ve,"data-testid":"listbox.item"},U.createElement(vL,{role:"row","aria-label":ge,"aria-selected":te,"aria-setsize":X.max,"aria-rowindex":X.currentIndex,ref:J,container:!0,dataLayout:$,cellPaddingRight:me,layoutOrder:V,itemPadding:G,gap:0,className:HR(["value",...ne]),classes:{root:LR.fieldRoot},onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onKeyDown:Y,onTouchStart:m,onTouchEnd:g,onContextMenu:re,tabIndex:de&&I.innerTabStops?0:-1,"data-n":null==ee?void 0:ee.qElemNumber,direction:w},(null==ee?void 0:ee.qFrequency)&&U.createElement(hL,{qFrequency:null==ee?void 0:ee.qFrequency,histogram:O,checkboxes:x,isSelected:te,frequencyMax:L}),U.createElement(UE,{item:!0,style:ue,className:HR([LR.cell,LR.selectedCell]),title:"".concat(ae)},le?U.createElement(pL,{onChange:u,labels:le,checkboxes:x,dense:W,showGray:T,color:"inherit",qElemNumber:ee.qElemNumber,isSelected:te,cell:ee,isGridCol:ie,isSingleSelect:k,valueTextAlign:oe}):U.createElement(fL,{onChange:u,label:ae,color:"inherit",qElemNumber:ee.qElemNumber,isSelected:te,dense:W,cell:ee,isGridCol:ie,showGray:T,isSingleSelect:k,checkboxes:x,valueTextAlign:oe})),C&&U.createElement(mL,{cell:ee,checkboxes:x,dense:W,showGray:T}),he&&U.createElement(UE,{item:!0,className:LR.icon},pe&&U.createElement(vR,{style:se,size:"small"}),fe&&U.createElement(_R,{style:se,size:"small"}))))}var RL=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function LL(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||RL(r)&&RL(o)))return!1;var r,o;return!0}function OL(e,t){var n;void 0===t&&(t=LL);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}var IL="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function TL(e){cancelAnimationFrame(e.id)}function PL(e,t){var n=IL();var r={id:requestAnimationFrame((function o(){IL()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var _L=-1;function NL(e){if(void 0===e&&(e=!1),-1===_L||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),_L=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return _L}var ML=null;function qL(e){if(void 0===e&&(e=!1),null===ML||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?ML="positive-descending":(t.scrollLeft=1,ML=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),ML}return ML}var zL=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function DL(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=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 r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,hx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:hx(r),isScrolling:!1,horizontalScrollDirection:"forward",scrollLeft:"number"==typeof r.props.initialScrollLeft?r.props.initialScrollLeft:0,scrollTop:"number"==typeof r.props.initialScrollTop?r.props.initialScrollTop:0,scrollUpdateWasRequested:!1,verticalScrollDirection:"forward"},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OL((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=OL((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,c=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=OL((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,c=i;if("rtl"===t)switch(qL()){case"negative":c=-i;break;case"positive-descending":c=s-o-i}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<a?"forward":"backward",scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=PL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}rx(t,e),t.getDerivedStateFromProps=function(e,t){return AL(e,t),g(e),null};var v=t.prototype;return v.scrollTo=function(e){var t=e.scrollLeft,n=e.scrollTop;void 0!==t&&(t=Math.max(0,t)),void 0!==n&&(n=Math.max(0,n)),this.setState((function(e){return void 0===t&&(t=e.scrollLeft),void 0===n&&(n=e.scrollTop),e.scrollLeft===t&&e.scrollTop===n?null:{horizontalScrollDirection:e.scrollLeft<t?"forward":"backward",scrollLeft:t,scrollTop:n,scrollUpdateWasRequested:!0,verticalScrollDirection:e.scrollTop<n?"forward":"backward"}}),this._resetIsScrollingDebounced)},v.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=NL();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var b=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?v:0,x=b>d?v:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,x):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,y):g})},v.componentDidMount=function(){var e=this.props,t=e.initialScrollLeft,n=e.initialScrollTop;if(null!=this._outerRef){var r=this._outerRef;"number"==typeof t&&(r.scrollLeft=t),"number"==typeof n&&(r.scrollTop=n)}this._callPropsCallbacks()},v.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(qL()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},v.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TL(this._resetIsScrollingTimeoutId)},v.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?zL:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,v=e.style,b=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),w=S[0],E=S[1],C=this._getVerticalRangeToRender(),k=C[0],R=C[1],L=[];if(r>0&&g)for(var O=k;O<=R;O++)for(var I=w;I<=E;I++)L.push(H.createElement(t,{columnIndex:I,data:d,isScrolling:b?x:void 0,key:f({columnIndex:I,data:d,rowIndex:O}),rowIndex:O,style:this._getItemStyle(O,I)}));var T=a(this.props,this._instanceProps),P=l(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:ex({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},H.createElement(c||u||"div",{children:L,ref:s,style:{height:T,pointerEvents:x?"none":void 0,width:P}}))},v._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,b=m.scrollTop,y=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,b,g,x,y)}},v._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),h=o(this.props,f,d,this._instanceProps),m=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]},v._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,c=a.scrollTop,u=r||o||n||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=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var AL=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},jL=function(e,t){return e};function FL(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,hx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:hx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=OL((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=OL((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;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},r._getItemStyleCache=void 0,r._getItemStyleCache=OL((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(qL()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&TL(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=PL(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}rx(t,e),t.getDerivedStateFromProps=function(e,t){return BL(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 n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?NL():0:s.scrollHeight>s.clientHeight?NL():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(qL()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&TL(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?jL:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),E=w[0],C=w[1],k=[];if(c>0)for(var R=E;R<=C;R++)k.push(H.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return H.createElement(h||m||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:ex({position:"relative",height:i,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},H.createElement(l||s||"div",{children:k,ref:a,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(H.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var BL=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},WL=DL({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,a*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+i+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*a-l),u=Math.min(c,t*a),d=Math.max(0,t*a-l+i+a);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),$L=FL({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const HL="#BBB",UL="#f1f1f1",VL={styledScrollbars:"".concat("ListBox","-styledScrollbars")};const GL=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex,KL=(e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex,ZL=(e,t,n,r)=>e===t*n+r+n;function XL(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:i,overflowDisclaimer:a,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=GL(t,c),d=c?r.column:r.row,p=(c?o:i)>=d,f=ZL(l,u,c?i:o,s),h=!!s&&KL(t,c),m=p&&!f&&u>=d-1||h||a.state.show;a.set(m)}const{StyledFixedSizeList:QL,StyledFixedSizeGrid:JL}=function(){const e=e=>({scrollbarColor:"".concat(HL," ").concat(UL),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:UL},"&::-webkit-scrollbar-thumb":{backgroundColor:HL,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:vm($L,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(VL.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:vm(WL,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(VL.styledScrollbars)]:e(n)}}))}}();const YL=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map((e=>n.measureText(e).width)));const r=n.measureText(e);return Math.ceil(r.width||0)},eO=e=>{const t=H.useMemo((()=>"text"in e?e:{}),[e]);return H.useMemo((()=>YL(t.text,t.font||"12px Source Sans Pro")),[t.text,t.font])};function tO(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function nO(e){var t;let{layout:n,width:r,height:o,listCount:i,count:a,freqIsAllowed:l,checkboxes:s,theme:c}=e;const{layoutOptions:u={}}=n||{},{layoutOrder:d,maxVisibleRows:p={},maxVisibleColumns:f,dense:h,dataLayout:m}=u,{fontSize:g="12px",fontFamily:v="Source sans pro"}=(null==c||null===(t=c.listBox)||void 0===t?void 0:t.content)||{},b="".concat(g," ").concat(v),y=eO({text:tO(n),font:b}),x=eO({text:tO(5),font:b}),S=eO({text:tO(8),font:b}),w=l?x:0,E=s?WR:0;let C=BR+w+E;!s&&C>=AR&&(C+=WR);let k,R,L,O,I=y+18+w+E;!s&&I>=AR&&(I+=WR),I=Math.min(FR,Math.max(I,C));const T="grid"===m;let P=h?20:T?32:29;T&&(P+=4);const _=null!=o?o:8*P;if(d){let e=r;"row"===d?(k={overflowX:"hidden"},e+=8,({rowCount:O,columnWidth:L,columnCount:R}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:i}=e;const a=(null==t?void 0:t.maxColumns)||3,l=r-jR;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(i,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,a,c);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:f,listCount:i,containerWidth:e,columnAutoWidth:I,itemMinWidth:C}))):(k={overflowY:"hidden"},({rowCount:O,columnWidth:L,columnCount:R}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:i,columnAutoWidth:a,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(i/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(a,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:p,itemHeight:P,listCount:i,listHeight:_,columnAutoWidth:I,containerWidth:e,itemMinWidth:C})))}R=("singleColumn"===m?1:R)||1,O=("singleColumn"===m?a:O)||i;const N=u.dense?838e3:577e3;O=Math.min(O,N);const M=Math.floor(3355e4/L);R=Math.min(R,M)||1;const q=O*R,z=Math.min(i,q);return{columnCount:R,columnWidth:L,rowCount:O,overflowStyling:k,itemHeight:P,listHeight:_,listWidth:r,scrollBarWidth:jR,count:a,listCount:z,maxCount:{row:N,column:M},itemPadding:4,textWidth:y,freqMinWidth:x,freqMaxWidth:S}}const rO=e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),i=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?i:r};const[oO,iO]=uS({});function aO(e){const t="".concat(e.id),[n]=oO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const lO=Vv(XS,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return i({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function sO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:i}=H.useContext(cS);return U.createElement(Hk,{title:o?i.get(n):""},U.createElement(lO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},i.get(n)))}var cO={},uO={exports:{}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(uO);var dO,pO=uO.exports,fO={},hO=r(TS);var mO=pO;Object.defineProperty(cO,"__esModule",{value:!0});var gO=cO.default=void 0,vO=mO((dO||(dO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=hO}(fO)),fO)),bO=Lm,yO=(0,vO.default)((0,bO.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");gO=cO.default=yO;const xO=Vv(DS)((e=>{let{theme:t,left:n}=e;return{position:"absolute",bottom:"12px",display:"flex",border:"1px solid ".concat(t.palette.divider),width:"calc(100% - 11px)",left:n}})),SO=Vv("div")((()=>({paddingLeft:"6px",flexGrow:1}))),wO=Vv("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),EO=Vv(gO)((()=>({fontSize:"14px"})));function CO(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const i="function"==typeof n,a=r?370:282,l=Math.max(o/2-a/2,0),s=Math.min(a,o)-42,c=r&&o<a;return U.createElement(xO,{left:l,style:{maxWidth:a}},U.createElement(SO,null,U.createElement(sO,{text:t,dense:r,width:s,tooltip:c})),U.createElement(wO,{dense:r},i&&U.createElement($S,{"aria-label":"close",onClick:()=>n()},U.createElement(EO,null))))}const kO=(e,t)=>e.qListObject.qDimensionInfo.qCardinal-t;const RO=80;function LO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>RO,{frequencyEnabled:i=!1}=(null==n?void 0:n.qListObject)||{},a=!["N",void 0].includes(r);return!(!o||!a&&!i)}const OO=e=>{const t=(e=>e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:"[".concat(e.replace(/\]/g,"]]"),"]"):e)(e);return"Max(AGGR(Count(".concat(t,"), ").concat(t,"))")},IO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=H.useState(),[i,a]=H.useState(n);return H.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=OO(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const TO=["isLoadingData"],PO=100,_O=Vv("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function NO(e){var t,n,r,o;let{model:a,app:c,constraints:u,theme:d,layout:p,selections:f,selectionState:h,direction:m,checkboxes:g,height:v,width:b,frequencyMode:y,update:x,fetchStart:S,postProcessPages:w,calculatePagesHeight:E=!1,keyboard:C={},showGray:k=!0,scrollState:R,selectDisabled:L=(()=>!1),keyScroll:O={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:T,onCtrlF:P,showSearch:_,isModal:N}=e;const{translator:M}=H.useContext(cS),[q,z]=H.useState(!1),D=!(!p||!p.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:A=g,histogram:j}=null!=p?p:{},[F,B]=H.useState(""),W=H.useRef(null),$=H.useRef({queue:[],validPages:!1,dataOffset:0}),V=H.useRef({pages:[]}),{frequencyMax:G,awaitingFrequencyMax:K}=IO(c,p),Z=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:i,postProcessPages:a,listData:l}=e;const[s,c]=H.useState(!1),[u,d]=H.useState([]);let[p]=H.useState(0);const f=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const f=!!n.current&&n.current._listRef&&n.current._listRef.state.isScrolling;return t.current.queue.length>10&&t.current.queue.shift(),clearTimeout(t.current.timeout),c(!0),new Promise((e=>{t.current.timeout=setTimeout((()=>{const n=t.current.queue.slice(-1)[0],i=r.getListObjectData("/qListObjectDef",[{qTop:n.start>p?n.start-p:0,qHeight:p,qLeft:0,qWidth:1},{qTop:n.start,qHeight:p,qLeft:0,qWidth:1}]).then((n=>{const r=a?a(n):n;t.current.validPages=!0,l.current.pages=r,d(r),c(!1),e()}));o&&o(i)}),f?i:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(p=t),f}},pages:u,isLoading:s}}({local:$,loaderRef:W,model:a,fetchStart:S,scrollTimeout:0,postProcessPages:w,listData:V}),X=s(Z,TO),{getStoreValue:Q,setStoreValue:J}=aO(a),Y=H.useCallback(X.loadMoreItems,[p]),[ee,te]=H.useState({show:!1,dismissed:!1}),[ne,re]=H.useState([]);null!=X&&X.pages&&h.update({setPages:re,pages:X.pages,isSingleSelect:D,selectDisabled:L,layout:p});const oe=null==p?void 0:p.qListObject.qDimensionInfo.qCardinal;(null!=X&&X.pages.length&&!K||0===oe)&&(null==T||T());const ie=H.useCallback((e=>{if(null==ne||!ne.length||!$.current.validPages)return!1;$.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=ne.filter((e=>t(e)))[0];return n&&t(n)}),[p,ne]),{interactionEvents:ae,select:le}=TR({selectionState:h,selections:f,checkboxes:A,doc:document,loaderRef:W}),{layoutOptions:se={}}=p||{};let ce=!0;se.dataLayout&&(ce="singleColumn"===se.dataLayout||"row"===(null==se?void 0:se.layoutOrder));const ue="grid"===(null==se?void 0:se.dataLayout),de=e=>{const t=i({},ce?{rowIndex:e}:{columnIndex:e}),n=ue?t:e;W.current._listRef.scrollToItem(n)},pe=()=>{if($.current.queue=[],$.current.validPages=!1,W.current){W.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===O.state.scrollPosition;if(p&&p.qSelectionInfo.qInSelections||e)return void(e&&O.reset());$.current.dataOffset=0,de(0)}};x&&x.call(null,pe),H.useEffect((()=>{R&&!q&&W.current&&(W.current._listRef.scrollToItem(R.initScrollPos),z(!0))}),[W.current]),H.useEffect((()=>{pe()}),[p,$.current.dataOffset]);let fe=PO;const he="grid"!==se.dataLayout,me=null==p||null===(t=p.qListObject.qSize)||void 0===t?void 0:t.qcy,ge=function(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;return(null!=t&&t.length&&o?rO({pages:t,minimumBatchSize:n,count:r}):r)||0}({pages:ne,minimumBatchSize:fe,count:me,calculatePagesHeight:E,layoutOptions:se,model:a});let ve=LO({itemWidth:b,layout:p,frequencyMode:y});const be=function(e){return e.some((e=>{let{qMatrix:t}=e;return t.some((e=>{var t;let[n]=e;return!(null===(t=n.qFrequency)||void 0===t||!t.match("%"))}))}))?"P":"-"}(ne),ye=nO({layout:p,width:b,height:v,listCount:ge,count:me,freqIsAllowed:ve,checkboxes:A,theme:d});ye.columnWidth&&(ve=LO({itemWidth:ye.columnWidth,layout:p,frequencyMode:y}));const{listCount:xe}=ye;J("listCount",xe);const Se=Q("inputText");H.useEffect((()=>{if(Se){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(xe),t=M.get(e,[xe]);B(t)}}),[Se,xe]);const we=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:i,offset:a}=e,l=!1,s=null!=a?a:0;switch(n){case"start":t=0;break;case"end":t=r?o.rowCount:o.columnCount;break;case"overflowStart":s=0,t=0,l=!0;break;case"overflowEnd":s=kO(i,o.listCount),t=i.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:ce,sizes:ye,layout:p,offset:$.current.dataOffset});$.current.dataOffset=n,r&&h.triggerStateChanged(),de(t)};H.useEffect((()=>{const e=O.state;e.up?de(I.state.start-e.up):e.down?de(I.state.stop+e.down):e.scrollPosition&&we(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&O.reset()}),[O.state.up,O.state.down,O.state.scrollPosition]);const{textAlign:Ee}=(null==p?void 0:p.qListObject.qDimensionInfo)||{},[Ce,ke]=H.useState({first:!1,last:!1}),{List:Re,Grid:Le}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:s,selectDisabled:c,interactionEvents:u,deducedFrequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:b,keyboard:y,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:R,focusListItems:L,setCurrentScrollIndex:O,constraints:I,frequencyMax:T,freqIsAllowed:P,translator:_,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:z,listHeight:D,itemHeight:A,rowCount:j,columnCount:F}=E||{},B=("grid"===q.dataLayout?z:n)>AR,W={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:VL.styledScrollbars},$=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,H=i(i({isLocked:$,column:!a,pages:s},$||c()?{}:u),{},{checkboxes:r,layoutOptions:q,deducedFrequencyMode:d,freqIsAllowed:P,isSingleSelect:f,textAlign:v,sizes:E,actions:{select:h,confirm:()=>null==b?void 0:b.confirm.call(b),cancel:()=>null==b?void 0:b.cancel.call(b),setScrollPosition:R,selectAll:m,onCtrlF:g},frequencyMax:T,histogram:p,keyboard:y,showGray:x,showTick:B,dataOffset:o.current.dataOffset,focusListItems:L,direction:w,translator:_,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,U.createElement(QL,l({},W,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:D,width:n,itemCount:C,itemData:i(i({},H),{},{listCount:C}),itemSize:A,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),XL({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(a=n.qDimensionInfo)||void 0===a?void 0:a.qCardinal,dataOffset:o.current.dataOffset}),r(i({},e))},ref:a}),kL)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:s,scrollBarWidth:c}=E,{layoutOrder:u}=q||{},d=Math.min(D,j*A+c);return o.current.listRef=a,U.createElement(JL,l({},W,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:F,columnWidth:z,rowCount:j,rowHeight:A,style:i({},s),itemData:i(i({},H),{},{column:void 0,columnCount:F,rowCount:j}),onItemsRendered:e=>{var n,i;const a="row"===u;O({start:a?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:a?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=a,f=c*o,h=l):(d=s,p=a*i,f=c,h=l*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:j,columnCount:F});XL({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:F,rowCount:j,overflowDisclaimer:k,qCardinal:null==t||null===(n=t.qListObject)||void 0===n||null===(i=n.qDimensionInfo)||void 0===i?void 0:i.qCardinal,dataOffset:o.current.dataOffset}),r(l)},ref:a}),kL)}}}({direction:m,layout:p,height:v,width:b,checkboxes:A,deducedFrequencyMode:be,histogram:j,keyboard:C,showGray:k,interactionEvents:ae,select:le,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:P,textAlign:Ee,isVertical:he,pages:ne,selectDisabled:L,isSingleSelect:D,selections:f,scrollState:R,local:$,sizes:ye,listCount:xe,overflowDisclaimer:{state:ee,set:e=>te((t=>i(i({},t),{},{show:e})))},setScrollPosition:we,focusListItems:{first:Ce.first,setFirst:e=>ke((t=>i(i({},t),{},{first:e}))),last:Ce.last,setLast:e=>ke((t=>i(i({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:u,frequencyMax:G,freqIsAllowed:ve,translator:M,showSearch:_,isModal:N}),{columnWidth:Oe,listHeight:Ie,itemHeight:Te}=ye||{};return he||(fe=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:b,columnWidth:Oe,listHeight:Ie,itemHeight:Te})),U.createElement(_O,null,U.createElement(yL,{className:"screenReaderOnly",layout:p}),U.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},F),!xe&&oe>0&&U.createElement(sO,{width:b,text:"Listbox.NoMatchesForYourTerms"}),U.createElement(SR,{isItemLoaded:ie,itemCount:xe||1,loadMoreItems:Y.with({minimumBatchSize:fe}),threshold:0,minimumBatchSize:fe,ref:W,role:"grid"},he?Re:Le),ee.show&&!ee.dismissed&&U.createElement(CO,{text:"Listbox.ItemsOverflow",dismiss:()=>te((e=>i(i({},e),{},{dismissed:!0}))),parentWidth:null==W||null===(n=W.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==se?void 0:se.dense}))}const MO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),qO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),zO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),DO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var AO=e=>{let{layout:t,model:n,translator:r,selectionState:o,isDirectQuery:i=!1}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:MO,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:zO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},!i&&{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:qO,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},!i&&{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:DO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}].filter(Boolean)};const jO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function FO(e){const t=Wv(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const BO={className:"njs-cell-action"},WO=U.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const i=Wv(),{hidden:a,disabled:l,style:s,hasSvgIconShape:c}=FO(r);if(a)return null;const u=Number.parseInt(i.spacing(.5),10),d=r.keyboardAction||r.action,p=d?e=>["Enter"].includes(e.key)&&d():null,f=d?e=>[" ","Spacebar"].includes(e.key)&&d():null,h="actions-toolbar-".concat(r.key);return U.createElement($S,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:p,onKeyUp:f,disabled:l,style:s,className:[BO.className,h].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":h},c&&mR(r.getSvgIconShape()),o&&U.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),$O=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]}),HO=e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var UO=e=>mR(HO(e));const VO="njs-action-toolbar-more",GO={icon:"".concat("More","-icon")},KO=Vv(tk)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(GO.icon)]:{color:t.palette.text.primary}}}));function ZO(e){let{item:t,autoFocus:n,onActionClick:r=(()=>{})}=e;const{hidden:o,disabled:i,hasSvgIconShape:a}=FO(t);return o?null:U.createElement(sk,{autoFocus:n,title:t.label,onClick:()=>{t.action(),r()},disabled:i,tabindex:"0"},a&&U.createElement(qC,{className:GO.icon},mR(t.getSvgIconShape())),U.createElement(XS,{noWrap:!0},t.label))}const XO=U.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;const u=n.length>0,d=n.findIndex((e=>!e.disabled));return u&&U.createElement(KO,l({},a,{onClose:c,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:VO}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:i({pointerEvents:"auto",maxWidth:"250px"},s)}}),U.createElement($C,{id:"moreMenuList"},n.map(((e,t)=>U.createElement(ZO,{key:t,item:e,autoFocus:t===d,onActionClick:c})))))})),QO=e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)},JO=e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()};const YO="ActionsToolbar",eI={item:"".concat(YO,"-item"),itemSpacing:"".concat(YO,"-itemSpacing")},tI=Vv(tk)((e=>{let{theme:t}=e;return{["& .".concat(eI.itemSpacing)]:{padding:t.spacing(0,.25)}}})),nI={className:"njs-action-toolbar-popover"},rI=U.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],addAnchor:i=!1,isRtl:a=!1}=e;return o.length>0?U.createElement(UE,{item:!0,container:!0,gap:0,flexDirection:a?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>U.createElement(UE,{item:!0,key:e.key,className:"".concat(eI.itemSpacing," ").concat(eI.item)},U.createElement(WO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:i}))))):null})),oI={pointerEvents:"none"},iI={vertical:"bottom",horizontal:"right"};function aI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:i=3,selections:a={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:l={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:s={show:!1,anchorEl:null},focusHandler:c=null,actionsRefMock:u=null,direction:d="ltr"}=e;const p=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:i}=H.useContext(cS);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:HO},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:()=>{o(),r(),t.cancel()},getSvgIconShape:$O},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:()=>{o(),n(),t.confirm()},getSvgIconShape:PR}]}(a),{translator:f,keyboardNavigation:h}=H.useContext(cS),[m,g]=H.useState(!1),v={vertical:12,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=H.useRef(),y=H.useRef(),x=Wv(),S=H.useMemo((()=>({margin:x.spacing(.5,0)}))),w=e=>{const t=b.current||u;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},E=H.useMemo((()=>function(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r,selections:o}=e;return e=>{const{target:i,nativeEvent:a}=e,{keyCode:l}=a;switch(l){case xL.ARROW_LEFT:case xL.ARROW_DOWN:case xL.ARROW_RIGHT:case xL.ARROW_UP:if(i.classList.contains("njs-cell-action")){const e=QO(i),t=[xL.ARROW_LEFT,xL.ARROW_DOWN].includes(l);JO(t?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case xL.SPACE:e.preventDefault();break;case xL.TAB:t&&null!=n&&n.refocusContent&&(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent());break;case xL.ESCAPE:o&&(o.onCancel(),o.api.cancel(),e.preventDefault(),e.stopPropagation())}}}({keyboardNavigation:h,focusHandler:c,getEnabledButton:w,selections:a})),[h,c,w,a]);H.useEffect((()=>()=>{g(!1)}),[s.show,r,a.show]),H.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=w(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=w(!0);e&&e.focus()}))}),[]);let C=l.enabled,k=l.actions;const R=l.alignTo||y,L=o.filter((e=>!e.hidden));if(L.length>i){const e=L.splice(-(L.length-i)-1);C=!0,k=[...e,...l.actions]}if(!a.show&&0===L.length)return null;const O={key:"more",label:f.get("Menu.More"),getSvgIconShape:jO,hidden:!1,active:m,enabled:()=>C,action:()=>g(!m)},I=L.length>0,T=k.length>0,P=I&&a.show||T&&a.show,_="rtl"===d,N=U.createElement(UE,{ref:b,onKeyDown:E,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:_?"row-reverse":"row"}},I&&U.createElement(rI,{actions:L}),T&&U.createElement(rI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:y,ariaExpanded:m,actions:[O],addAnchor:!0}),P&&U.createElement(UE,{item:!0,className:eI.itemSpacing,style:S},U.createElement(LE,{orientation:"vertical"})),a.show&&U.createElement(rI,{className:"actions-toolbar-default-actions",actions:p,isRtl:_}),m&&U.createElement(XO,{show:m,actions:k,alignTo:R,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{g(!1)}}));return s.show?U.createElement(tI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:v,transformOrigin:iI,hideBackdrop:!0,style:oI,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:nI.className,style:{pointerEvents:"auto",padding:x.spacing(.5,.25)}}},N):r&&N}var lI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const sI="/qListObjectDef",cI="**",uI=Vv(cC)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color}})),dI=Vv(vk)((e=>{var t,n;let{theme:r}=e;return{color:null===(t=r.listBox)||void 0===t||null===(n=t.content)||void 0===n?void 0:n.color,display:"flex"}}));function pI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:a=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:d}=e;const{translator:p}=H.useContext(cS),[f,h]=H.useState(""),[m,g]=H.useState(!1),v=H.useRef(),b=Wv(),{getStoreValue:y,setStoreValue:x}=aO(r),S="rtl"===u,w=S?"right":"left",E=async()=>{if(t.isModal())try{await r.abortListObjectSearch(sI)}finally{h("")}};H.useEffect((()=>{a||E()}),[a]),H.useEffect((()=>(t.on("deactivated",E),()=>{t.removeListener&&t.removeListener("deactivated",E)})),[]),H.useEffect((()=>{if(m&&v.current){const e=f.length-1;v.current.setSelectionRange(e,e),g(!1)}}),[m,v.current]),H.useEffect((()=>{x("inputText",f)}),[f]);const C=async()=>{let e;return await r.searchListObjectFor(sI,f)&&f.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(sI,!0),t.selectionsMade=!0,n.clearItemStates(!1),h("")),e};function k(e){const t=(null==e?void 0:e.querySelector(".last-focused"))||(null==e?void 0:e.querySelector('[role="row"]:first-child'));t.setAttribute("tabIndex",0),null==t||t.focus()}return a&&!1!==c?U.createElement(dI,{startAdornment:U.createElement(uI,{position:"start"},U.createElement(lI,{size:i?"small":"normal"})),className:"search",sx:[{border:"none",fontSize:14,borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(b.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(DR,"px")},i&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:S?"row-reverse":"row"}],inputRef:v,size:"small",fullWidth:!0,placeholder:p.get("Listbox.Search"),value:f,onFocus:()=>{s&&(h(cI),g(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(h(e.target.value),e.target.value.length?r.searchListObjectFor(sI,e.target.value):E()),onKeyDown:async e=>{const{currentTarget:n}=e,r=n.closest(".listbox-container");switch(e.key){case"Enter":C();break;case"Escape":k(r),t.isActive()&&t.cancel();break;case"Tab":e.shiftKey?o.focusSelection():(k(r),null==r||r.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")})));break;case"f":case"F":if(!e.ctrlKey&&!e.metaKey)return;d&&(d(),k(r));break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(w)},"data-testid":"search-input-field","aria-label":p.get("ScreenReader.SearchFieldLabel")}}):null}function fI(e){return Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e}const hI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,i=!1,a=!1;const l={id:o.id,setLayout(e){t=e},begin(e){const t=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",t),t.isPrevented()?Promise.resolve():(i=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return a=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return a=!1,i=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return a=!1,i=!1,this.emit("canceled"),this.emit("deactivated"),r.end(!1)},async select(e){const t=this.begin([e.params[0]]);if(!n.isModal())return!1;await t;const r=await o[e.method](...e.params);return a="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:a,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:a,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>i,isModal:()=>n.isModal(o),goModal:e=>r.begin(o,e,!1),noModal:function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return r.end(e)}};return fI(l),l},mI=e=>{let{elements:t,objectSelections:n,options:r={}}=e;const o=function(e){let{elements:t,handleClickOutside:n}=e;return e=>{if(!document.contains(e.target))return;const r=t.map((e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current)).filter((e=>!!e&&!!document.contains(e)));r.length&&!r.some((t=>t.contains(e.target)))&&n(e)}}({elements:t,handleClickOutside:()=>n.confirm.call(n)});return{activateClickOut(){var e;document.addEventListener("mousedown",o),null==r||null===(e=r.onSelectionActivated)||void 0===e||e.call(r)},deactivateClickOut(){var e;document.removeEventListener("mousedown",o),null==r||null===(e=r.onSelectionDeactivated)||void 0===e||e.call(r)}}};function gI(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=yS(e),[a]=dR(t),l=t?t.id:null,[s]=fS(),[c]=mS(),u=s.get(e.id);let d=c.get(l);return H.useEffect((()=>{i&&t&&!d&&(d=hI({appSelections:i,appModal:u,model:t}),c.set(l,d),c.dispatch(!0))}),[i,t]),H.useEffect((()=>{if(!d)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=mI({elements:o,objectSelections:d,options:r});return d.addListener("activated",e),d.addListener("deactivated",t),()=>{d.isActive()&&d.confirm(),d.removeListener("activated",e),d.removeListener("deactivated",t)}}),[d]),H.useEffect((()=>{d&&d.setLayout(a)}),[d,a]),[d]}function vI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:i,pages:a,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=i;const u=this.lastRowCount===c.qListObject.qSize.qcy,d=this.lastApprMaxGlyphCount===c.qListObject.qDimensionInfo.qApprMaxGlyphCount;u&&d||(this.lastRowCount=c.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=c.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),e.enginePages!==a&&void 0!==a&&(e.enginePages=null!=a?a:[],e.selectedInEngine=CR(a),e.selectableValuesUpdating=!1,e.triggerStateChanged()),e.isSingleSelect=l,e.selectDisabled=s,e.isDimCalculated=null!==(n=null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qIsCalculated)&&void 0!==n&&n},allowedToSelect:()=>!e.selectDisabled()&&!(e.isDimCalculated&&e.selectableValuesUpdating),setSelectableValuesUpdating(){e.selectableValuesUpdating=!0},useClientItemState:t=>e.ignoreSelectionState||t in e.itemStates,isSelected:t=>e.useClientItemState(t)?!!e.itemStates[t]:e.selectedInEngine.includes(t),getState(t){const{qElemNumber:n,qState:r}=t;return e.useClientItemState(n)?e.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(t,n,r){const o=e.isSelected(t);o&&!n?e.itemStates[t]=!1:o||(null==r||r.push(t),e.itemStates[t]=!0)},triggerStateChanged(){if(this.setPages){const t=e.applySelectionsOnPages(e.enginePages);this.setPages(t)}},applySelectionsOnPages(t){const n=t.map((t=>{const n=t.qMatrix.map((t=>{const[n]=t,r=e.getState(n);return[i(i({},n),{},{qState:r}),...t.slice(1)]}));return i(i({},t),{},{qMatrix:n})}));return n},updateItem(t,n,r){e.updateItemNoEvents(t,n,r),e.triggerStateChanged()},updateItems(t,n,r){t.forEach((t=>{e.updateItemNoEvents(t,n,r)})),e.triggerStateChanged()},clearItemStates(t){e.itemStates={},e.ignoreSelectionState=t}};return e}const bI=function(e,t){var n;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;return null!==(n=null==e?void 0:e[t])&&void 0!==n?n:r};function yI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:i,app:a,fieldName:l,stateName:s="$",autoFocus:c}=e;const u=Boolean(null==l?void 0:l.qLibraryId),d=o&&Boolean(t.current),[p,f]=H.useState(0),h=Wv(),m=H.useRef(),[g]=aR({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:s,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:u?void 0:[l]},qLibraryId:u?l.qLibraryId:void 0}},a,l,s),v=H.useCallback((()=>{g.lock("/qListObjectDef")}),[g]),b=H.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:y}=H.useContext(cS),x=H.useRef(),S=H.useRef(),[w]=gI(a,g,S),[E]=dR(g),[C]=H.useState((()=>vI()));if(H.useEffect((()=>{w&&d&&(w.isModal(g)||w.goModal("/qListObjectDef"))}),[w,d]),!g||!E||!y)return null;const k=!0===E.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),i()},L=AO({layout:E,model:g,translator:y,selectionState:C}),O=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return bI(t,"qSelected",0)+bI(t,"qSelectedExcluded",0)+bI(t,"qLocked",0)+bI(t,"qLockedExcluded",0)>0}(E);return U.createElement(tk,{open:d,onClose:R,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},U.createElement(UE,{container:!0,direction:"column",gap:0,ref:S},U.createElement(UE,{item:!0,container:!0,style:{padding:h.spacing(1)}},U.createElement(UE,{item:!0},k?U.createElement($S,{onClick:b,disabled:!k,size:"large"},U.createElement(vR,{title:y.get("Listbox.Unlock")})):U.createElement($S,{onClick:v,disabled:!O,size:"large"},U.createElement(bR,{title:y.get("Listbox.Lock")}))),U.createElement(UE,{item:!0,xs:!0}),U.createElement(UE,{item:!0},U.createElement(aI,{more:{enabled:!k,actions:L,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),U.createElement(UE,{item:!0,xs:!0},U.createElement("div",{ref:x}),U.createElement(UE,{item:!0,ref:m},U.createElement(pI,{visible:!0,model:g,listCount:p,selections:w,selectionState:C,keyboard:{enabled:!1},autoFocus:null==c||c})),U.createElement(NO,{model:g,app:a,layout:E,selections:w,selectionState:C,direction:"ltr",onSetListCount:e=>f(e),onCtrlF:()=>{const e=m.current.querySelector("input");null==e||e.focus()},theme:h}))))}function xI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:i=null,onClose:a=(()=>{})}=e;const{translator:l}=H.useContext(cS),s=i||H.useRef(),c=Wv(),[u,d]=H.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),a()},h=t.selections[r];void 0===h.qTotal&&(h.qTotal=0);const m=h.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(m.qSelected+m.qLocked)/h.qTotal,v=m.qAlternative/h.qTotal,b=(m.qExcluded+m.qLockedExcluded+m.qSelectedExcluded)/h.qTotal,y=m.qSelected+m.qSelectedExcluded+m.qLocked+m.qLockedExcluded,x=0===y&&0===h.qTotal;let S="";h.qTotal===y&&h.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&h.qTotal?S=l.get("CurrentSelections.Of",[y,h.qTotal]):h.qSelectedFieldSelectionInfo&&(S=h.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let E=null,C=null,k=null,R=null;return i||(E=U.createElement(UE,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:h.qLocked?"0.3":""}},U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},h.qField),U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),h.qLocked?C=U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(vR,null))):h.qOneAndOnlyOne||(C=U.createElement(UE,{item:!0},U.createElement($S,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(h.qField,t.states[r])},size:"large"},U.createElement(gR,null)))),k=U.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>U.createElement("div",{key:e.color,style:{position:"absolute",background:e.color,height:"100%",top:0,width:"".concat(100*e.ratio,"%"),left:"".concat(100*e.offset,"%")}})))),R=U.createElement(UE,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},E,C,k,u&&U.createElement(yI,{alignTo:s,show:u,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}))),i?U.createElement(yI,{alignTo:s,show:!0,close:f,app:n.model,fieldName:h.qField,stateName:t.states[r]}):R}var SI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const wI={item:"".concat("MultiState","-item")},EI=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(wI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function CI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[i,a]=H.useState(!!r),[l,s]=H.useState(-1),[c,u]=H.useState(r?r.current:null),d=r||H.useRef(),{translator:p}=H.useContext(cS),f=p.get("Selection.ClearAllStates"),h=()=>{s(-1),o()};let m=null;r||(m=U.createElement(U.Fragment,null,U.createElement(UE,{item:!0,xs:!0,zeroMinWidth:!0},U.createElement(Nw,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},U.createElement(XS,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),U.createElement(UE,{item:!0},U.createElement("div",{style:{width:"12px"}})),U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(SI,null)))));const g=U.createElement(mC,{dense:!0},U.createElement(IC,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},U.createElement(Xx,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>U.createElement(IC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),s(t)})(e,r)},U.createElement(zw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},U.createElement(xI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=U.createElement(tk,{open:i,onClose:()=>{a(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},g),b=r?v:U.createElement(EI,{container:!0,gap:0,className:wI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,a(!i))}},m,i&&v,l>-1&&U.createElement(yI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?U.createElement(yI,{alignTo:d,show:l>-1,close:h,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const kI="More",RI={item:"".concat(kI,"-item"),badge:"".concat(kI,"-badge")},LI=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(RI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(RI.badge)]:{padding:t.spacing(0,1)}}}));function OI(e){let{items:t=[],api:n}=e;const r=Wv(),[o,i]=H.useState(!1),[a,l]=H.useState(-1),[s,c]=H.useState(null),u=H.useRef(),d=()=>{l(-1)};let p=null;return a>-1&&(p=t[a].states.length>1?U.createElement(CI,{field:t[a],api:n,moreAlignTo:u,onClose:d}):U.createElement(xI,{field:t[a],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),U.createElement(LI,{container:!0,gap:0,className:RI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))}},U.createElement(UE,{item:!0},U.createElement(zw,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},U.createElement(XS,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),U.createElement(UE,{item:!0},U.createElement($S,{size:"large"},U.createElement(SI,null))),o&&U.createElement(tk,{open:o,onClose:()=>{i(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},U.createElement(mC,{dense:!0},t.map(((e,t)=>U.createElement(IC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,t)},U.createElement(zw,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?U.createElement(CI,{field:e,api:n}):U.createElement(xI,{field:e,api:n}))))))),p)}const II=120,TI=72;function PI(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"$";e.qSelections.forEach((e=>{const r=e.qField,o=t[r]=t[r]||{name:r,states:[],selections:[]};-1===o.states.indexOf(n)&&(o.states.push(n),o.selections.push(e))}))}function _I(e){let{api:t,app:n}=e;const r=Wv(),[o]=sR(n),[i]=dR(o),[a,l]=H.useState({items:[],more:[]}),[s]=vS(),[c,u]=fR(),[d,p]=H.useState(0);return H.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-TI,n=Math.floor(t/II);p(n)}),[u]),H.useEffect((()=>{if(!(n&&o&&i&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&PI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>PI(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(i);l((t=>{const r=e;if((()=>{const e=s.get(n.id);return e&&"njsListbox"===e.genericType})()&&r.length+1===t.items.length){const e=t.items.filter((e=>!1===r.some((t=>e.name===t.name))))[0],{qField:n}=e.selections[0];e.selections=[{qField:n}];const o=t.items.indexOf(e);r.splice(o,0,e)}let o=[];return d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,i,t.isInModal(),d]),U.createElement(UE,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},a.items.map((e=>U.createElement(UE,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(II,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?U.createElement(CI,{field:e,api:t}):U.createElement(xI,{field:e,api:t})))),a.more.length>0&&U.createElement(UE,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(TI,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},U.createElement(OI,{items:a.more,api:t})))}var NI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var MI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));const qI=(e,t,n)=>{const r=[...n.qStateNames||[]].map((e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})));(t&&t.alternateStates?t.alternateStates.map((e=>e.stateName)):[]).join("::")!==(n.qStateNames||[]).map((e=>e)).join("::")&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)};function zI(e){let{api:t,app:n}=e;const{translator:r}=H.useContext(cS),[o]=function(e){const[t]=sR(e),[n]=dR(t),[r]=pR(e),[o,i]=H.useState(null);return H.useEffect((()=>{r&&t&&n&&qI(t,n,r)}),[r,t,n]),H.useEffect((()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach((n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter((e=>!0!==e.qLocked)).length>0})),i({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}(n);return U.createElement(UE,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},U.createElement(UE,{item:!0},U.createElement($S,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},U.createElement(NI,null))),U.createElement(UE,{item:!0},U.createElement($S,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},U.createElement(MI,null))),U.createElement(UE,{item:!0},U.createElement($S,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},U.createElement(UO,null))))}const DI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function AI(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function jI(){return DI.map(AI).join("")}function FI(e){let{app:t}=e;const n=Wv(),[r]=yS(t);return r?U.createElement(UE,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},U.createElement(UE,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},U.createElement(zI,{api:r,app:t})),U.createElement(UE,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},U.createElement(_I,{api:r,app:t}))):null}let BI;BI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let WI=null,$I=null;const HI=BI.clearTimeout,UI=BI.setTimeout,VI=BI.cancelAnimationFrame||BI.mozCancelAnimationFrame||BI.webkitCancelAnimationFrame,GI=BI.requestAnimationFrame||BI.mozRequestAnimationFrame||BI.webkitRequestAnimationFrame;function KI(e){let t,n,r,o,i,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&WI(this.__resizeRAF__),this.__resizeRAF__=$I((function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(s)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const s=i.ownerDocument,c=BI.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==VI||null==GI?(WI=HI,$I=function(e){return UI(e,20)}):(WI=function([e,t]){VI(e),HI(t)},$I=function(e){const t=GI((function(){HI(n),e()})),n=UI((function(){VI(t),e()}),20);return[t,n]});class ZI extends H.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){var r,o,i,a;const l=window.getComputedStyle(this._parentNode)||{},s=parseFloat(null!==(r=l.paddingLeft)&&void 0!==r?r:"0"),c=parseFloat(null!==(o=l.paddingRight)&&void 0!==o?o:"0"),u=parseFloat(null!==(i=l.paddingTop)&&void 0!==i?i:"0"),d=parseFloat(null!==(a=l.paddingBottom)&&void 0!==a?a:"0"),p=this._parentNode.getBoundingClientRect(),f=p.height-u-d,h=p.width-s-c,m=this._parentNode.offsetHeight-u-d,g=this._parentNode.offsetWidth-s-c;(e||this.state.height===m&&this.state.scaledHeight===f)&&(t||this.state.width===g&&this.state.scaledWidth===h)||(this.setState({height:m,width:g,scaledHeight:f,scaledWidth:h}),"function"==typeof n&&n({height:m,scaledHeight:f,scaledWidth:h,width:g}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,null!=this._parentNode&&("undefined"!=typeof ResizeObserver?(this._resizeObserver=new ResizeObserver((()=>{this._timeoutId=setTimeout(this._onResize,0)})),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=KI(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,nonce:i,onResize:a,style:l={},tagName:s="div",...c}=this.props,{height:u,scaledHeight:d,scaledWidth:p,width:f}=this.state,h={overflow:"visible"},m={};let g=!1;return r||(0===u&&(g=!0),h.height=0,m.height=u,m.scaledHeight=d),o||(0===f&&(g=!0),h.width=0,m.width=f,m.scaledWidth=p),H.createElement(s,{ref:this._setRef,style:{...h,...l},...c},!g&&e(m))}}var XI=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M15.9993744,3 L15.9993744,5 L4.99937445,5 L4.99937445,3 L15.9993744,3 Z M8.99937445,7 L15.9993744,7 L15.9993744,9 L8.99937445,9 L8.99937445,7 Z M11.9993744,11 L15.9993744,11 L15.9993744,13 L11.9993744,13 L11.9993744,11 Z M2.2,11 L7,11 L7,9.00369263 C7,8.89323568 7.08954305,8.80369263 7.2,8.80369263 C7.2549016,8.80369263 7.30738916,8.82626165 7.34515712,8.86610844 L10.1852182,11.8624926 C10.2583124,11.93961 10.258346,12.0604218 10.1852948,12.13758 L7.34523376,15.1373102 C7.2692928,15.2175206 7.14270711,15.2209817 7.06249671,15.1450407 C7.02260076,15.1072683 7,15.0547472 7,14.9998069 L7,12.9043747 C4.79351111,12.9043747 2.8018683,12.9266213 1.02507156,12.9711145 L1.02507252,12.9711526 C0.472939773,12.9849787 0.014139487,12.5485949 0.000313396522,11.9964622 C0.000104473692,11.988119 -1.32268838e-12,11.9797736 -1.3231638e-12,11.9714278 L-1.83320026e-12,3 L2,3 L2,10.8 C2,10.9104569 2.08954305,11 2.2,11 Z"}}]}))(e));function QI(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function JI(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}function YI(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:i,isModal:a,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,i=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=a();switch(n){case xL.TAB:if(s)r?EL(l)||wL(l):wL(l)||EL(l);else{if(!r)break;t.blur(!0)}i();break;case xL.ENTER:case xL.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),i();break;case xL.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,i=r.classList.contains("listbox-container"),a=JI(n.closest(".listbox-container")),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(i||l)t.blur(!0);else{QI(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=a();return e||t})()||(n.current=!0)},handleOnMouseLeave:()=>{n.current&&(n.current=!1)},globalKeyDown:e=>{if(!n.current)return;const{keyCode:t,ctrlKey:o=!1,shiftKey:a=!1}=e;switch(t){case xL.ARROW_UP:r({up:1});break;case xL.ARROW_DOWN:r({down:1});break;case xL.PAGE_UP:r({up:i.stop-i.start});break;case xL.PAGE_DOWN:r({down:i.stop-i.start});break;case xL.HOME:r({scrollPosition:o&&a?"overflowStart":"start"});break;case xL.END:r({scrollPosition:o&&a?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const eT=Vv("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function tT(e){let{text:t}=e;const{translator:n}=H.useContext(cS);return U.createElement(eT,null,n.get(t))}const nT="ListBoxInline",rT={listBoxHeader:"".concat(nT,"-listBoxHeader"),screenReaderOnly:"".concat(nT,"-screenReaderOnly"),listboxWrapper:"".concat(nT,"-listboxWrapper")},oT=Vv(UE,{shouldForwardProp:e=>!["containerPadding","isGridMode"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,isGridMode:i}=e;return{backgroundColor:null!==(t=null===(n=r.listBox)||void 0===n?void 0:n.backgroundColor)&&void 0!==t?t:r.palette.background.default,["& .".concat(rT.listBoxHeader)]:{alignSelf:"center",display:"flex"},["& .".concat(rT.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(rT.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus ::-webkit-scrollbar-track":{boxShadow:i?void 0:"inset -2px -2px 0px #3F8AB3"},"&:focus-visible":{outline:"none"}}})),iT=Vv(XS)((e=>{var t,n,r,o,i,a,l,s,c,u,d,p;let{theme:f}=e;return{color:null===(t=f.listBox)||void 0===t||null===(n=t.title)||void 0===n||null===(r=n.main)||void 0===r?void 0:r.color,fontSize:null===(o=f.listBox)||void 0===o||null===(i=o.title)||void 0===i||null===(a=i.main)||void 0===a?void 0:a.fontSize,fontFamily:null===(l=f.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily,fontWeight:(null===(u=f.listBox)||void 0===u||null===(d=u.title)||void 0===d||null===(p=d.main)||void 0===p?void 0:p.fontWeight)||"bold"}}));const aT=U.memo((function(e){var t,n,r,o,a;let{options:s,layout:c}=e;const{app:u,direction:d,frequencyMode:p,checkboxes:f,search:h=!0,focusSearch:m=!1,rangeSelect:g=!0,model:v,selections:b,update:y,fetchStart:x,selectDisabled:S=(()=>!1),postProcessPages:w,calculatePagesHeight:E,showGray:C=!0,scrollState:k,renderedCallback:R,toolbar:L=!0,isPopover:O=!1}=s,I=Wv(),T=H.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:P,keyboardNavigation:_,themeApi:N,constraints:M}=H.useContext(cS);I.listBox=(e=>{const t=(t,n)=>e.getStyle("object.listBox",t,n);return{backgroundColor:t("","backgroundColor"),title:{main:{color:t("title.main","color"),fontSize:t("title.main","fontSize"),fontFamily:t("title.main","fontFamily"),fontWeight:t("title.main","fontWeight")}},content:{color:t("content","color"),fontSize:t("content","fontSize"),fontFamily:t("content","fontFamily")}}})(N);const q=function(e){let{appLayout:t}=e;return!(null==t||!t.qIsDirectQueryMode)}({appLayout:null==u?void 0:u.layout}),z=H.useRef(),[D,A]=fR(),[j,F]=(()=>{const[e,t]=H.useState({}),n=H.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[B,W]=H.useState(!1),[$,V]=H.useState(!1),G=H.useRef(!1),[K,Z]=H.useState({down:0,up:0,scrollPosition:""}),X=e=>Z((t=>i(i({},t),e))),[Q,J]=H.useState({start:0,stop:0}),[Y]=yS(u),ee=H.useRef(null),[te]=H.useState((()=>vI())),ne=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=H.useState(!1),i={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const i=JI(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var a;null==(a=t.current)||a.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),QI(t.current),e&&i&&(i.setAttribute("tabIndex",0),i.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),i=null==e?void 0:e.querySelector(".value.last-focused"),a=null==e?void 0:e.querySelector(".value.selector, .value"),l=null==e?void 0:e.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=r||i||a||l;null==s||s.setAttribute("tabIndex",0),null==s||s.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return i}({containerRef:z,enabled:_}),re=H.useCallback((()=>(e=>{var t,n;let{app:r,appSelections:o}=e;return null!==(t=null===(n=r.isInModalSelection)||void 0===n?void 0:n.call(r))&&void 0!==t?t:o.isInModal()})({app:u,appSelections:Y})),[u,Y]),oe=null==c?void 0:c.qListObject.qDimensionInfo.qError,ie=oe&&M.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[ae,le]=H.useState(!1),{handleKeyDown:se,handleOnMouseEnter:ce,handleOnMouseLeave:ue,globalKeyDown:de}=H.useMemo((()=>YI({keyboard:ne,hovering:G,updateKeyScroll:X,containerRef:z,currentScrollIndex:Q,app:u,appSelections:Y,constraints:M,isModal:re})),[ne,G,X,z,Q,u,Y,M,re]),pe=L&&(""===(null==c?void 0:c.title)||!1===(null==c?void 0:c.showTitle))&&!O,fe=L&&""!==(null==c?void 0:c.title)&&!1!==(null==c?void 0:c.showTitle)||O;H.useEffect((()=>(document.addEventListener("keydown",de),()=>{document.removeEventListener("keydown",de)})),[de]),H.useEffect((()=>{const e=()=>{W(!0)},t=()=>{W(!1),"toggle"===h&&V(!1)};return O&&(b.isActive()||(b.begin("/qListObjectDef"),b.on("activated",e),b.on("deactivated",t)),W(O)),b&&(b.isModal()||(b.on("activated",e),b.on("deactivated",t)),W(b.isActive())),()=>{b&&b.removeListener&&(b.removeListener("activated",e),b.removeListener("deactivated",t))}}),[b,O]),H.useEffect((()=>{if(j&&j.current&&(h&&m||"toggle"===h&&$)){const e=j.current.querySelector("input");e&&e.focus()}}),[j&&j.current,$,h,m]);const{wildCardSearch:he,searchEnabled:me,layoutOptions:ge={}}=null!=c?c:{},ve=!1!==me&&"toggle"===h,be=!0===(null==c||null===(t=c.qListObject)||void 0===t||null===(n=t.qDimensionInfo)||void 0===n?void 0:n.qLocked),ye=be||ve,xe="H"===(null==c||null===(r=c.qListObject)||void 0===r||null===(o=r.qDimensionInfo)||void 0===o?void 0:o.qGrouping),Se=ye||xe,we=(ye?28:0)+(xe?19:0),Ee="rtl"===d,Ce=DR-(ye?7:0),ke=Ee?DR-(Se?7:0):4;if(H.useEffect((()=>{if(!ee.current||!A)return;const e=function(e){var t,n,r,o;let{containerRect:i,titleRef:a,iconsWidth:l,headerPaddingLeft:s,headerPaddingRight:c}=e;const u=s+c,d=i.width<(null!==(t=null==a||null===(n=a.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)+l+u+2+128,p=(null==a||null===(r=a.current)||void 0===r?void 0:r.scrollWidth)>(null==a||null===(o=a.current)||void 0===o?void 0:o.offsetWidth);return!(!d&&!p)}({containerRect:A,titleRef:ee,iconsWidth:we,headerPaddingLeft:Ce,headerPaddingRight:ke});le(e)}),[ee.current,A]),!v||!c||!P)return null;const Re=AO({layout:c,model:v,translator:P,selectionState:te,isDirectQuery:q}),Le=(!0===h||"toggle"===h&&$)&&!S()&&!1!==me,Oe=null!==(a=ge.dense)&&void 0!==a&&a,Ie=fe?49+(Le?Oe?27:40:0)+(Oe?39:49):0,Te=()=>{V(!$)},Pe=()=>{if("toggle"===h)Te();else{const e=j.current.querySelector("input");null==e||e.focus()}},_e=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:i,selections:a,keyboard:l}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:i,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:a,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!O&&e,showToolbar:B,containerRef:z,isLocked:be,listboxSelectionToolbarItems:Re,selections:b,keyboard:ne}),Ne=Le&&"toggle"===h,Me="grid"===(null==ge?void 0:ge.dataLayout);let qe;Me&&(qe="row"===ge.layoutOrder?"2px 4px":"2px 6px 2px 4px");const ze=null!=M&&M.active?U.createElement(lI,{title:P.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement($S,{onClick:Te,tabIndex:-1,title:P.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},U.createElement(lI,{style:{fontSize:"12px"}})),De=S()?U.createElement(vR,{size:"large",style:{fontSize:"12px",padding:"7px"}}):U.createElement($S,{title:P.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:T,size:"large"},U.createElement(vR,{disableRipple:!0,style:{fontSize:"12px"}}));return oe&&(null==R||R()),U.createElement(U.Fragment,null,pe&&U.createElement(aI,l({direction:d},_e(!0))),U.createElement(oT,{className:"listbox-container",container:!0,tabIndex:ne.enabled?-1:void 0,direction:"column",gap:0,containerPadding:qe,style:{height:"100%",minHeight:"".concat(Ie,"px"),flexFlow:"column nowrap"},onKeyDown:se,onMouseEnter:ce,onMouseLeave:ue,ref:e=>{z.current=e,D(e)},isGridMode:Me},fe&&U.createElement(UE,{item:!0,container:!0,minHeight:32,flexDirection:Ee?"row-reverse":"row",marginY:1,paddingLeft:"".concat(Ce,"px"),paddingRight:"".concat(ke,"px"),wrap:"nowrap"},Se&&U.createElement(UE,{item:!0,container:!0,alignItems:"center",width:we},be?De:ve&&ze,xe&&U.createElement(XI,{tabIndex:-1,title:P.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),U.createElement(UE,{item:!0,xs:!0,minWidth:0,justifyContent:Ee?"flex-end":"flex-start",className:rT.listBoxHeader},U.createElement(iT,{variant:"h6",noWrap:!0,ref:ee,title:c.title},c.title)),U.createElement(UE,{item:!0},U.createElement(aI,l({direction:d},_e(ae))))),U.createElement(UE,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":P.get("Listbox.ResultFilterLabel")},U.createElement(UE,{item:!0,ref:F},U.createElement("div",{className:rT.screenReaderOnly},P.get("Listbox.Search.ScreenReaderInstructions")),U.createElement(pI,{selections:b,selectionState:te,model:v,dense:Oe,keyboard:ne,visible:Le,search:h,autoFocus:Ne,wildCardSearch:he,searchEnabled:me,direction:d,hide:ve&&Te})),U.createElement(UE,{item:!0,xs:!0,className:rT.listboxWrapper},U.createElement("div",{className:rT.screenReaderOnly},P.get("Listbox.ScreenReaderInstructions")),oe?U.createElement(tT,{text:ie}):U.createElement(ZI,null,(e=>{let{height:t,width:n}=e;return U.createElement(NO,{model:v,app:u,theme:I,constraints:M,layout:c,selections:b,selectionState:te,direction:d,frequencyMode:p,rangeSelect:g,checkboxes:f,height:t,width:n,update:y,fetchStart:x,postProcessPages:w,calculatePagesHeight:E,selectDisabled:S,keyboard:ne,showGray:C,scrollState:k,keyScroll:{state:K,reset:()=>Z({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:Q,set:J},renderedCallback:R,onCtrlF:Pe,isModal:re})}))))))}));function lT(e){let{options:t={}}=e;const{model:n}=t,[r]=dR(n);return U.createElement(aT,{options:t,layout:r})}const sT={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function cT(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const uT=["__DO_NOT_USE__"],dT=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return i(i(i({},s(e,uT)),n),t)};function pT(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:l,renderedCallback:s}=e;const{isExistingObject:c,hasExternalSelectionsApi:u}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:l});c||Object.assign(l,{frequencyMode:cT(l.frequencyMode)});const[d,p]=H.useState(0);H.useEffect((()=>{if(d)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(d+1)}),[c,u]);const f=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,i]=H.useState(),[a]=rR(),{sessionModel:l}=r,s=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],c=Object.keys(r).filter((e=>s.includes(e)));if(c.length)throw new Error('Option "'.concat(c.join(", "),'" is not applicable for existing objects.'));return H.useEffect((()=>{l?i(l):async function(){const e=a.get(n);if(e)i(e);else{const e=await t.getObject(n);a.set(e.id,e),e.once("closed",(()=>{a.clear(e.id)})),i(e)}}()}),[]),o}({app:t,qId:r,options:l}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:i={}}=e;const[a,l]=H.useState(""),[s,c]=H.useState(!0),[u,d]=H.useState(),[p,f]=H.useState(),h=null!==(t=i.title)&&void 0!==t?t:p;let{histogram:m=!1,frequencyMode:g="N"}=i;a&&a.failedToFetchFieldDef&&(m=!1,g="N"),H.useEffect((()=>{const e=m||"N"!==g;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();f(t.qDim.title),"N"===t.qDim.qGrouping?l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[0]:""):l({multiFieldDim:!0}),c(!1)}catch(e){throw c(!1),l({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}():(c(!1),f(r))}),[]);const{dense:v,checkboxes:b,listLayout:y,properties:x={}}=i,S={dense:v};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const w=H.useRef();w.current||(w.current=jI());const E=$e(!0,{},sT,{qInfo:{qId:w.current},qListObjectDef:{qStateName:o,qFrequencyMode:m&&"N"===g?"V":g},histogram:m,checkboxes:b,layoutOptions:S,title:h});let C;if($e(!0,E,x),r.qLibraryId?(E.qListObjectDef.qLibraryId=r.qLibraryId,C=r.qLibraryId):(E.qListObjectDef.qDef.qFieldDefs=[r],C=r),"P"!==g&&m)if(null!=a&&a.multiFieldDim)E.frequencyMax="fetch";else{const e=r.qLibraryId?a:C;E.frequencyMax={qValueExpression:OO(e)}}const[k]=aR(E,s?null:n,C,o);return H.useEffect((()=>{k&&d(k)}),[k]),u}({app:t,fieldIdentifier:n,stateName:o,options:l}),h=H.useRef(a),m=u?l.selectionsApi:gI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],l)[0],g=H.useMemo((()=>i(i({},l),{},{selections:m,model:f,app:t,renderedCallback:s})),[l,m,f,t]);return m&&f?U.createElement(lT,{options:g}):null}const fT={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function hT(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:i={}}=e;const[a,l]=H.useState(!!i.show);return U.createElement(yI,{show:a,app:t,alignTo:{current:o},anchorOrigin:i.anchorOrigin,transformOrigin:i.transformOrigin,close:()=>{l(!1),i.onPopoverClose&&i.onPopoverClose()},fieldName:n,stateName:r,autoFocus:i.autoFocus})}function mT(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function gT(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}const vT=e=>({qDef:{qFieldDefs:[e]}}),bT=e=>({qDef:{qDef:e}});function yT(e){let{dc:t,def:n,properties:r}=e;t.qDimensions=t.qDimensions||[],t.qMeasures=t.qMeasures||[],t.qInterColumnSortOrder=t.qInterColumnSortOrder||[],t.qInitialDataFetch=t.qInitialDataFetch||[],t.qColumnOrder=t.qColumnOrder||[],t.qExpansionState=t.qExpansionState||[];const o=r,a={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?vT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||jI(),r.qDef.qSortCriterias=r.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],r.qOtherTotalSpec=r.qOtherTotalSpec||{},r.qAttributeExpressions=r.qAttributeExpressions||[],r.qAttributeDimensions=r.qAttributeDimensions||[],t.qDimensions.length<a.maxDimensions()?(t.qDimensions.push(r),mT(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qDimensions.push(r)),r},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];return gT(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?bT(e):i(i({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||jI(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<a.maxMeasures()?(t.qMeasures.push(r),mT(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,o)):(t.qLayoutExclude=t.qLayoutExclude||{},t.qLayoutExclude.qHyperCubeDef=t.qLayoutExclude.qHyperCubeDef||{},t.qLayoutExclude.qHyperCubeDef.qDimensions=t.qLayoutExclude.qHyperCubeDef.qDimensions||[],t.qLayoutExclude.qHyperCubeDef.qMeasures=t.qLayoutExclude.qHyperCubeDef.qMeasures||[],t.qLayoutExclude.qHyperCubeDef.qMeasures.push(r))},removeMeasure(e){const r=t.qMeasures.splice(e,1)[0];gT(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,o,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<a.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<a.maxMeasures()};return a}const xT=e=>({qDef:{qFieldDefs:[e]}});function ST(e){let{dc:t,def:n,properties:r}=e;t.qInitialDataFetch=t.qInitialDataFetch||[];const o=r,a={dimensions:()=>t.qLibraryId||t.qDef&&t.qDef.qFieldDefs&&0!==t.qDef.qFieldDefs.length?[t]:[],measures:()=>[],addDimension(e){const r="string"==typeof e?xT(e):i(i({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||jI(),r.qDef.qSortCriterias=t.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(r).forEach((e=>{t[e]=r[e]})),n.dimensions.added(r,o),r},removeDimension(e){const r=t;return delete t.qDef,delete t.qLibraryId,n.dimensions.removed(r,o,e),r},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===a.dimensions().length,canAddMeasure:()=>!1};return a}const wT=e=>({qDef:{qFieldDefs:[e]}}),ET=e=>{let t;return t="string"==typeof e?$e(!0,{},sT,{qListObjectDef:wT(e)}):e.qListObjectDef?$e(!0,{},sT,e):$e(!0,{},sT,{qListObjectDef:e}),t};function CT(e){let{children:t,halo:n}=e;const r={async addDimension(e){const r=ET(e),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||jI(),!r.title)if(o.qLibraryId){const e=await n.app.getDimension(o.qLibraryId),t=await e.getProperties();t.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:t.qDim.qLabelExpression}}:r.title=t.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}t.push({qProperty:r,qChildren:[]})},addMeasure(){}};return r}function kT(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function RT(e,t){let{sn:n,properties:r,fields:o,children:i}=e;if(!o.length)return;const a=n.qae.data.targets[0];if(!a)return;const{propertyPath:l}=a,s=l.split("/");let c=r;for(let e=0;e<s.length;e++){const t=s[e];c=t?c[t]:c}const u=function(e){return e.match("/qListObjectDef")?ST:e.match("/qChildListDef")?CT:yT}(l),d=u({dc:c,def:a,properties:r,children:i,halo:t});for(let e=0;e<o.length;++e){const t=o[e];"measure"===kT(t)?await d.addMeasure(t):await d.addDimension(t)}}var LT={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?i[o]=n:delete i[o]},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var OT={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const IT=2**53-1;function TT(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function PT(e,t){const n=$e(!0,{},t,e);return LT.getValue(n,"qOtherTotalSpec.qOtherCounted")||LT.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),LT.getValue(n,"qOtherTotalSpec.qOtherLimit")||LT.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function _T(e,t){return $e(!0,{},t,e)}function NT(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var MT={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===LT.getValue(e,t)&<.setValue(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:TT,importCommonProperties:function(e,t,n){const r="masterobject"===LT.getValue(t,"properties.qInfo.qType")?"masterobject":LT.getValue(n,"qInfo.qType");LT.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:PT,createDefaultMeasure:_T,resolveValue:NT,getHypercubePath:function(e){const t=LT.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(OT.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,OT.indexRemoved(n.qInterColumnSortOrder,i))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=$e(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?LT.setValue(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||TT(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=$e(!0,{},n,o),null===o.components&&(o.components=[]),o},getMaxMinDimensionMeasure:function(e){let{exportFormat:t,dataDefinition:n={}}=e;const r=t.data[0],o=n.dimensions||{max:0},i=n.measures||{max:0},a=NT(i.max,r.dimensions.length,IT),l=NT(i.min,r.dimensions.length,0);return{maxDimensions:NT(o.max,a,IT),minDimensions:NT(o.min,l,0),maxMeasures:a,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i}=e;const a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:i,newHyperCubeDef:a}=e;const l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(PT(a.dimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PT(a.dimensions[l],i));else if(a.dimensions.length)for(l=0;l<a.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PT(a.dimensions[l],i));if(a.excludedDimensions.length)for(l=0;l<a.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(PT(a.excludedDimensions[l],i)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PT(a.excludedDimensions[l],i))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:i}=e;const a=t.data[0];let l;if(n>0)for(l=0;l<a.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(_T(a.measures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_T(a.measures[l],i));else if(a.measures.length)for(l=0;l<a.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_T(a.measures[l],i));if(a.excludedMeasures.length)for(l=0;l<a.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(_T(a.excludedMeasures[l],i)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_T(a.excludedMeasures[l],i))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=LT.getValue(t,r||"").qHyperCubeDef,o=[...e.qDimensions];e.qDimensions=[],o.forEach((r=>{e.qDimensions.push(r),n.dimensions.added(r,t)}))}},updateMeasuresOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.measures&&"function"==typeof n.measures.added){const e=LT.getValue(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var qT={exportProperties:e=>function(e){let{propertyTree:t,hypercubePath:n}=e;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),o=t.qProperty,i=LT.getValue(o,n||""),a=i.qHyperCubeDef,l=r.data[0];if(a.qInterColumnSortOrder||(a.qInterColumnSortOrder=[]),l.dimensions.push(...a.qDimensions),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...a.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...a.qMeasures),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...a.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=a.qInterColumnSortOrder.concat(),a.qLayoutExclude&&a.qLayoutExclude.qHyperCubeDef&&a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=a.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();OT.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete a.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=i.qHyperCubeDef,delete i.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(MT.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!LT.isEmpty(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:i}=e;const a={qChildren:[]},l=MT.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:i}),s=LT.getValue(n,i||"").qHyperCubeDef,c=LT.getValue(l,i||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=MT.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=MT.getDefaultDimension(),defaultMeasure:m=MT.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,MT.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&MT.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),MT.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),MT.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),MT.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),MT.copyPropertyIfExist("qMaxStackedCells",s,c),MT.copyPropertyIfExist("qNoOfLeftDims",s,c),MT.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),MT.copyPropertyOrSetDefault("qMode",s,c,"S"),MT.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),MT.copyPropertyOrSetDefault("qSortbyYValue",s,c),MT.copyPropertyOrSetDefault("qIndentMode",s,c),MT.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),MT.importCommonProperties(l,t,n),MT.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),MT.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:i}),a.qProperty=l,a}(e)};const zT=e=>LT.getValue(e,"data.targets.0.propertyPath"),DT=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qT.exportProperties})(zT(e))},AT=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qT.importProperties})(zT(e))},jT=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),l=r.current.getQae(),s=DT(l),c=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:o}),u=c.qae;return AT(u)({exportFormat:s({propertyTree:a,hypercubePath:MT.getHypercubePath(l)}),initialProperties:i({qInfo:{qType:o},visualization:o},LT.getValue(u,"properties.initial",{})),dataDefinition:LT.getValue(u,"data.targets.0.",{}),hypercubePath:MT.getHypercubePath(u)})},FT={hypercube:qT};var BT=e=>mR((e=>i(i({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function WT(e){let{d:t}=e;const n=Wv();let r="inherit",o=n.palette.success.main;t.missing?o=n.palette.warning.main:t.error&&(r="error",o=n.palette.error.main);const i={color:o},a=U.createElement(XS,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},U.createElement(nC,null,t.missing||t.error?U.createElement(BT,{style:i}):U.createElement(_R,{style:i})));return U.createElement(UE,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},U.createElement(UE,{item:!0},a),U.createElement(UE,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},U.createElement(XS,{noWrap:!0,component:"p"},U.createElement(XS,{component:"span",variant:"subtitle2",color:r},t.description),U.createElement(XS,{component:"span"}," "),U.createElement(XS,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function $T(e){let{data:t}=e;const n=Wv();return U.createElement(UE,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>U.createElement(WT,{d:e,key:t})));return r.length>0&&U.createElement(UE,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},U.createElement(XS,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HT(e){let{title:t="Error",message:n="",data:r=[]}=e;return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},U.createElement(UE,{item:!0},U.createElement(BT,{style:{fontSize:"38px"}})),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"error-title"},t)),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),U.createElement($T,{data:r}))}const UT=["size"],VT="Progress",GT={root:"".concat(VT,"-root"),front:"".concat(VT,"-front"),back:"".concat(VT,"-back")},KT=Vv("div")((e=>{let{theme:t}=e;return{["&.".concat(GT.root)]:{position:"relative",display:"inline-block"},["& .".concat(GT.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(GT.back)]:{color:t.palette.divider}}})),ZT={small:16,medium:32,large:64,xlarge:128};function XT(e){let{size:t="medium"}=e,n=s(e,UT);const r=ZT[t];return U.createElement(KT,{className:GT.root},U.createElement(mE,l({variant:"determinate",value:100,className:GT.back,size:r,thickness:3},n)),U.createElement(mE,l({variant:"indeterminate",disableShrink:!0,className:GT.front,size:r,thickness:3},n)))}const QT=["cancel","translator"],JT=["retry","translator"],YT={stripes:"".concat("LongRunningQuery","-stripes")},eP=Vv(UE)((()=>({["& .".concat(YT.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function tP(e){let{cancel:t,translator:n}=e,r=s(e,QT);return U.createElement(U.Fragment,null,U.createElement(eP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},U.createElement(UE,{item:!0},U.createElement(XT,null)),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),U.createElement(UE,l({item:!0},r),U.createElement(Xx,{variant:"contained",onClick:t},n.get("Cancel"))))}function nP(e){let{retry:t,translator:n}=e,r=s(e,JT);return U.createElement(U.Fragment,null,U.createElement(UE,{item:!0},U.createElement(BT,{style:{fontSize:"38px"}})),U.createElement(UE,{item:!0},U.createElement(XS,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),U.createElement(UE,{item:!0},U.createElement(Xx,l({variant:"contained",onClick:t},r),n.get("Retry"))))}function rP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=H.useContext(cS);return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:YT.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&U.createElement(tP,{cancel:r.cancel,translator:o,className:YT.cancel}),n&&U.createElement(nP,{retry:r.retry,translator:o,className:YT.retry}))}function oP(){return U.createElement(UE,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},U.createElement(XT,{size:"large"}))}const iP="Header",aP={containerStyle:"".concat(iP,"-containerStyle"),containerTitleStyle:"".concat(iP,"-containerTitleStyle")},lP=Vv(UE)((e=>{let{theme:t}=e;return{["&.".concat(aP.containerStyle)]:{flexGrow:0},["&.".concat(aP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),sP="njs-cell-title",cP="njs-cell-sub-title";function uP(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:a={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,d]=H.useState([]),[p,f]=fR(),[h,m]=H.useState(!1);H.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{d([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),H.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=l||s,v=[aP.containerStyle,...g?[aP.containerTitleStyle]:[]],b=(o||c)&&(h||!g),y=g&&!b&&!h,x=U.createElement(aI,{show:y,selections:{show:c,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:i});return U.createElement(lP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},U.createElement(UE,{item:!0,zeroMinWidth:!0,xs:!0},U.createElement(UE,{container:!0,wrap:"nowrap",direction:"column"},l&&U.createElement(XS,{variant:"h6",noWrap:!0,className:sP,style:a.main},t.title),s&&U.createElement(XS,{variant:"body2",noWrap:!0,className:cP,style:a.subTitle},t.subtitle))),U.createElement(UE,{item:!0},x))}const dP={itemStyle:"".concat("Footer","-itemStyle")},pP=Vv(UE)((e=>{let{theme:t}=e;return{["& .".concat(dP.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),fP="njs-cell-footer";function hP(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?U.createElement(pP,{container:!0},U.createElement(UE,{item:!0,className:dP.itemStyle},U.createElement(XS,{noWrap:!0,variant:"body2",className:fP,style:n.footer},t.footnote))):null}class mP{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout((()=>{this.doNext()}),10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const gP="njs-viz";function vP(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,interactions:p,keyboardNavigation:f}=H.useContext(cS),[h]=H.useState((()=>new mP)),[m,g]=H.useState(!1),[v,b]=H.useState(0),[y,x,S]=fR(),[w,E]=H.useState(null),C=H.useCallback((e=>{e&&E(e)}),[]);return H.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),H.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),d.edit||e.push("edit"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:l.public.nebbie,context:i({constraints:d,interactions:p,theme:l.public.theme,appLayout:a,keyboardNavigation:f},s.isHooked?{}:{logicalSize:t.logicalSize({layout:o}),localeInfo:(a||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===v&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),b(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,d,p,m,f]),U.createElement("div",{ref:y,"data-render-count":v,style:{position:"relative",height:"100%"},className:gP},U.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const bP={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},yP={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function xP(e,t){return t?function(e){var t;let n,r,o,i;return null!=e&&null!==(t=e.session)&&void 0!==t&&t.config?(n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://",o+r.host):""}(e)+t:void 0}function SP(e,t){const n=null==e?void 0:e.bgImage;if(n){let i="";var r,o;if("media"===n.mode||"media"===e.useImage)i=null!=n&&null!==(r=n.mediaUrl)&&void 0!==r&&null!==(o=r.qStaticContentUrl)&&void 0!==o&&o.qUrl?decodeURIComponent(n.mediaUrl.qStaticContentUrl.qUrl):void 0,i=xP(t,i);"expression"===n.mode&&(i=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=yP[e.bgImage.position]),n}(e),l=function(e){var t;let n=bP.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=bP[e.bgImage.sizing]),n}(e);return i?{url:i,pos:a,size:l}:void 0}}function wP(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t?r.useExpression?t.validateColor(r.colorExpression):r.color&&"none"!==r.color.color?t.getColorPickerColor(r.color,!0):void 0:t&&n?t.getStyle("object.".concat(n),"","backgroundColor"):t?t.getStyle("","","backgroundColor"):void 0}function EP(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const CP="njs-cell",kP=(e,t)=>{switch(t.type){case"LOADING":return i(i({},e),{},{loading:!0});case"LOADED":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return i(i({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return i(i({},e),{},{longRunningQuery:!0});case"ERROR":return i(i({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function RP(e){let{delay:t=750}=e;const[n,r]=H.useState(!1);return H.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?U.createElement(oP,null):null}const LP=e=>!e.qError||7005===e.qError.qErrorCode,OP=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,c="".concat(l?r:a?s||o:i&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!i&&!l&&e>=t.length||a,error:l}})),IP=e=>e&&(Array.isArray(e)?e:[e])||[],TP=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t);return{reqDimErrors:OP(o,IP(a.qDimensionInfo||a.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:OP(i,IP(a.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},PP=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:i,aggMinD:a,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=IP(f.qDimensionInfo||f.qItems).filter(LP),m=IP(f.qMeasureInfo).filter(LP);if(o+=d,i+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){a=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const a=o[n];if(!s&&i){const n=p||await r.getProperties();p=n;const o=TP(e,t,n,a);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,h=e.get("Visualization.Incomplete.Dimensions",[f,a]),m=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[m,l]),v=[{title:h,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||i,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},_P=H.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:s,currentId:c,emitter:u}=e;const{app:d,types:p}=n,{nebbie:f}=n.public,{theme:h,translator:m,language:g,keyboardNavigation:v,disableCellPadding:b=!1}=H.useContext(cS),y=Wv(),[x,S,w]=fR(),[E,C]=H.useReducer(kP,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=l)?{title:k.message}:null,sn:null,visualization:null});var k;const[R,{validating:L,canCancel:O,canRetry:I},T]=dR(r),[P]=pR(d),[_,N,M]=fR(),[q,z]=H.useState(o),[D,A]=H.useState(a),j="njs-cell-".concat(c),[F]=gI(d,r,["#".concat(j),".njs-action-toolbar-popover"]),[B,W]=H.useState(!1),$=H.useRef({enter:null,leave:null}),[V,G]=H.useState(void 0),[K,Z]=H.useState(void 0),[X,Q]=H.useState(void 0),J=H.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});H.useEffect((()=>{fI(J.current)}),[]),H.useEffect((()=>{if(R&&n.public.theme){const e=R.components?R.components.find((e=>"general"===e.key)):null;Q({main:EP(e,"main",n.public.theme,R.visualization),footer:EP(e,"footer",n.public.theme,R.visualization),subTitle:EP(e,"subTitle",n.public.theme,R.visualization)}),G(wP(e,n.public.theme,R.visualization)),Z(SP(e,n.app))}}),[R,n.public.theme,n.app,h]),J.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&M&&M.focus()},J.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};H.useEffect((()=>{if(l||!P||!R)return;if(E.visualization===R.visualization&&E.sn)return void(async e=>{const[t,n]=await PP(m,R,e.generator.qae.data,r);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:R,model:r})})(E.sn);const e=p.getSupportedVersion(R.visualization,R.version);return(async(e,t)=>{C({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u}=e;try{const e=await(async e=>{let{types:t,name:n,version:r}=e;return await t.get({name:n,version:r}).supernova()})({types:n,name:r,version:o});return e.create({model:i,app:a,selections:l,nebbie:s,focusHandler:c,emitter:u})}catch(e){t(o?{type:"ERROR",error:{title:e.message}}:{type:"ERROR",error:{title:"Could not find a version of '".concat(r,"' that supports current object version. Did you forget to register ").concat(r,"?")}})}})({dispatch:C,types:p,visualization:e,version:t,model:r,app:d,selections:F,nebbie:f,focusHandler:J.current,emitter:u});n&&(C({type:"LOADED",sn:n,visualization:e}),s())})(R.visualization,e),()=>{}}),[p,E.sn,r,F,R,P,g]),H.useEffect((()=>{if(!L)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[L]),H.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:z,setSnPlugins:A,getImperativeHandle(){var e;return null!==(e=E.sn)&&void 0!==e&&e.component&&"function"==typeof E.sn.component.getImperativeHandle?E.sn.component.getImperativeHandle():{}},async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(R));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:y.name,appLayout:P,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof n.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const e=await this.takeSnapshot();return n.config.snapshot.capture(e)}})),[E.sn,N,S,R,y.name,P]);let Y=null;return E.loading&&!E.longRunningQuery?Y=U.createElement(RP,null):E.error?Y=U.createElement(HT,E.error):E.loaded&&(Y=U.createElement(vP,{key:R.visualization,sn:E.sn,halo:n,snOptions:q,snPlugins:D,layout:R,appLayout:P})),U.createElement(DS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:V||"unset",backgroundImage:K&&K.url?"url(".concat(K.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:K&&K.size,backgroundPosition:K&&K.pos},elevation:0,square:!0,className:CP,ref:x,id:j,onMouseEnter:()=>{$.current.leave&&clearTimeout($.current.leave),$.enter||($.current.enter=setTimeout((()=>{W(!0),$.current.enter=null}),250))},onMouseLeave:()=>{$.current.enter&&clearTimeout($.current.enter),$.current.leave||($.current.leave=setTimeout((()=>{W(!1),$.current.leave=null}),750))}},U.createElement(UE,{container:!0,direction:"column",gap:0,style:i(i({position:"relative",width:"100%",height:"100%"},b?{}:{padding:y.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&R&&E.sn&&U.createElement(uP,{layout:R,sn:E.sn,anchorEl:w,hovering:B,focusHandler:J.current,titleStyles:X}," "),U.createElement(UE,{tabIndex:v?0:-1,onKeyDown:v?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:_},Y),w&&R&&E.sn&&U.createElement(hP,{layout:R,titleStyles:X})),E.longRunningQuery&&U.createElement(rP,{canCancel:O,canRetry:I,api:T}))}));function NP(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function MP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1?arguments[1]:void 0,n=arguments.length>2?arguments[2]:void 0;const r=[];return Object.keys(t).forEach((o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return NP(e)&&NP(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...MP("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function qP(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach((e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error('Invalid plugin format: The plugin "'.concat(e.info.name,'" has no "fn" function'))}))}const zP=()=>{};function DP(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=zP,a=null,l=null,s=null,c=null;const u=new Promise((e=>{s=e})),d=new Promise((e=>{c=e})),p=e=>()=>{e&&e(),c()};let f={},h=[];const m=new Y,g={id:e.id,model:e,async destroy(){await r(),o(),o=zP},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await jT({halo:t,model:e,cellRef:a,newType:n});return r&&(e.__snInterceptor?await e.__snInterceptor.setProperties.call(e,o.qProperty):await e.setProperties(o.qProperty)),o},addListener(e,t){m.addListener(e,t)},removeListener(e,t){m.removeListener(e,t)},getImperativeHandle:async()=>(await d,a.current.getImperativeHandle()),__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,emitter:l,initialError:s}=e;const{root:c}=t,u=U.createRef(),d=jI(),p=xp.createPortal(U.createElement(_P,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:i,initialError:s,onMount:a,emitter:l}),n,d),f=()=>{c.remove(p),r.removeListener("closed",f)};return r.on("closed",f),c.add(p),c.addCell(d,u),[f,u]}({halo:t,element:r,model:e,initialSnOptions:f,initialSnPlugins:h,initialError:n,onMount:s,emitter:m}),u},async applyProperties(t){const n=MP("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;l?(async()=>{await u,a.current.setSnOptions(i(i(i({},f),e),{onInitialRender:p(t)}))})():f=i(i(i({},f),e),{onInitialRender:p(t)})})(e)},plugins(e){(async e=>{qP(e),l?(async()=>{await u,a.current.setSnPlugins(e)})():h=e})(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return g}async function AP(e,t,n,r){const o=DP({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}async function jP(e,t,n){let{type:r,version:o,fields:i,properties:a,extendProperties:l}=e,s={};const c=[];try{const e=t.types.get({name:r,version:o});s=await e.initialProperties(a,l);const n=await e.supernova();i&&await RT({sn:n,properties:s,fields:i,children:c},t),a&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},s)}catch(e){s=n?null:{qInfo:{qType:r},visualization:r}}if(!n){const e=await t.app.createObject(s);return c.length>0&&await e.setFullPropertyTree({qProperty:s,qChildren:c}),oR.set(e.id,e),e}return s}const FP={className:"njs-sheet"};function BP(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:i,onMount:a}=e;const{root:l}=n,[s]=dR(t),{theme:c}=H.useContext(cS),[u,d]=H.useState([]),[p,f]=H.useState(void 0),[h,m]=H.useState(void 0),[g,v]=H.useState("");H.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===g)return;v(e);const t=async()=>{u.forEach((e=>{l.removeCell(e.currentId)}));const e=s.cells,t=await Promise.all(e.map((async e=>{let t;const r=new Promise((e=>{t=e})),o=u.find((t=>t.id===e.name));if(o)return o.bounds=e.bounds,delete o.mountedPromise,o;const i=await async function(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Jk.get(a);l||(l=t.app.getObject(n),Jk.set(a,l));const s=await l;return oR.set(a,s),AP(s,{options:r,plugins:o,element:i},t)}({id:e.name},n);return{model:i.model,id:e.name,bounds:e.bounds,cellRef:U.createRef(),currentId:jI(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),d(t)};t()}}),[s]);const b=H.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,i){const{x:a,y:l,width:s,height:c}=e.bounds;return U.createElement("div",{style:{left:"".concat(a,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},U.createElement(_P,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i}))}(e,n,r,o,i,e.mounted))):[]),[u]);H.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;f(wP(e,n.public.theme)),m(SP(e,n.app))}),[s,n.public.theme,n.app,c]);const y=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),x=u.map((e=>e.mountedPromise)),S=x.filter((e=>!!e));return S.length&&Promise.all(x).then((()=>{a()})),U.createElement("div",{className:FP.className,style:{width:"100%",height:y,position:"relative",backgroundColor:p,backgroundImage:h&&h.url?"url(".concat(h.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:h&&h.size,backgroundPosition:h&&h.pos}},b)}const WP=()=>{};function $P(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=WP,a=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p={id:e.id,model:e,async destroy(){await r(),o(),o=WP},__DO_NOT_USE__:{mount(r){if(l)throw new Error("Already mounted");return l=r,[o,a]=function(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:i,onMount:a,initialError:l}=e;const{root:s}=t,c=U.createRef(),u=xp.createPortal(U.createElement(BP,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:i,initialError:l,onMount:a}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=MP("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{l?(async()=>{await c,a.current.setSnOptions(i(i({},u),e))})():u=i(i({},u),e)})(e)},plugins(e){(async e=>{qP(e),l?(async()=>{await c,a.current.setSnPlugins(e)})():d=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return p}async function HP(e,t){let{id:n,options:r,plugins:o,element:i}=e;const a="".concat(n);let l=Jk.get(a);l||(l=t.app.getObject(n),Jk.set(a,l));const s=await l;return oR.set(a,s),"sheet"===s.genericType?async function(e,t,n,r){const o=$P({model:e,halo:n,initialError:r,onDestroy:arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{}});return t.options&&o.__DO_NOT_USE__.options(t.options),t.plugins&&o.__DO_NOT_USE__.plugins(t.plugins),t.element&&await o.__DO_NOT_USE__.mount(t.element),o}(s,{options:r,plugins:o,element:i},t):AP(s,{options:r,plugins:o,element:i},t)}function UP(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const VP=$e.bind(null,!0),GP={},{isArray:KP}=Array;function ZP(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function XP(e){return void 0===e}function QP(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function JP(e,t){const n=t.substring(1).split("/").slice(0,-1);let r;return n.forEach(((t,o)=>{if(o===n.length)return;r=+t;const i=isNaN(r)?{}:[];e[r||t]=XP(e[r||t])?i:e[t],e=e[r||t]})),e}function YP(e,t){let n=!0;if(ZP(e)&&ZP(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{YP(e[r],t[r])||(n=!1)})),n);if(KP(e)&&KP(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!YP(e[n],t[n]))return!1;return!0}return e===t}GP.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const i=function(e){return e?VP({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);YP(i,a)||QP(t,o)||(XP(a)?r.push({op:"add",path:l,value:i}):ZP(i)&&ZP(a)?r=r.concat(GP.generate(a,i,l)):KP(i)&&KP(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&XP(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(YP(t,o))return r;if(!XP(t[0])&&XP(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(GP.generate(o[e],t[i],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(i)}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((o=>{XP(t[o])&&!QP(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},GP.apply=function(e,t){t.forEach((t=>{let n=JP(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(KP(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(KP(o)&&KP(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(ZP(o)&&ZP(t.value))a=o,Object.keys(a).forEach((e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!QP(a,e)&&delete a[e]})),VP(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=JP(e,t.from);KP(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(KP(n)?n.splice(+r,1):delete n[r]);var a}))},GP.clone=function(e){return VP({},e)},GP.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},GP.updateObject=function(e,t){Object.keys(e).length?GP.apply(e,GP.generate(e,t)):VP(e,t)};const e_=e=>t=>{const n=(r=i(i({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(Y.prototype).forEach((e=>{r[e]=Y.prototype[e]})),Y.init(r),r);var r;return n};let t_,n_;function r_(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function o_(e){let{explicitResize:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function i_(e){l_(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function a_(e){if(e.__hooks.obsolete)return Promise.resolve();n_=-1,t_=e,t_.__hooks.initiated&&t_.__hooks.list.length;try{t_.fn.call(null)}catch(e){console.error(e)}t_.__hooks.initiated=!0;const t=t_.__hooks;return d_(t_),n_=void 0,t_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){l_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){l_(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)}))}(t),t.chain.promise}function l_(e,t){try{e.forEach((e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())}))}catch(e){console.error(e)}e.length=0}function s_(e,t){try{return Promise.all(e.__hooks.snaps.map((e=>Promise.resolve(e.fn(t))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function c_(e,t,n,r){try{return Promise.all(e.__hooks.menus.map((e=>Promise.resolve(e.fn(t,n,r))))).then((e=>e[e.length-1]))}catch(e){console.error(e)}return Promise.resolve()}function u_(e){return e.__hooks.imperativeHandle}function d_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function p_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,d_(e))}function f_(e){if(void 0===t_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=t_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function h_(e){f_(++n_);return t_.context[e]}function m_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function g_(e){return{__hooked:!0,fn:e,initiate:o_,run:a_,teardown:i_,runSnaps:s_,runMenu:c_,focus:w_,blur:E_,observeActions:p_,getImperativeHandle:u_,updateRectOnNextRun:m_}}function v_(e){const t=f_(++n_);if(!t.value){t.component=t_;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout((()=>{r.__hooks.micro=null,a_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function b_(e,t){const n=f_(++n_);r_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===t_.__hooks.pendingEffects.indexOf(n)&&t_.__hooks.pendingEffects.push(n))}function y_(e,t){const n=f_(++n_);r_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],t_.__hooks.pendingLayoutEffects.push(n))}function x_(e,t){const n=f_(++n_);return r_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function S_(){return h_("element")}function w_(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function E_(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const C_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},k_=Object.keys(C_),R_=e=>(Object.keys(Y.prototype).forEach((t=>{e[t]=Y.prototype[t]})),Y.init(e),e);function L_(e,t){const n=i({},C_);R_(n);const r={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==k_.indexOf(t)?n[t]=e.component[t].bind(r):r[t]=e.component[t]}));const o=function(e){let{sn:t,component:n}=e;const r={},o=[],i=e_(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=i(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=i(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:r}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(r,{model:t.model,app:t.app,global:a,selections:t.selections,actions:o.actions}),Object.assign(n,{actions:o.actions,model:t.model,app:t.app,selections:t.selections}),[n,o]}function O_(e,t,n){"function"==typeof e.component&&(e.component=g_(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const a={},l=["appLayout","constraints","interactions"],s={},c={};t.model&&t.model.session||(s.select=!0,s.edit=!0,c.select=!1,c.edit=!1);const u={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,focusHandler:t.focusHandler,constraints:s,interactions:c,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(u,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(i(i({},r[e]),s))),"interactions"===e&&(t=JSON.stringify(i(i({},r[e]),c))),t!==a[e]&&(n=!0,a[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==a.themeName&&(n=!0,a.themeName=this.context.theme.name()),this.context.translator.language()!==a.language&&(n=!0,a.language=u.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{a[e]=JSON.stringify(u.context[e])})),a.themeName=u.context.theme?u.context.theme.name():void 0,a.language=u.context.translator?u.context.translator.language():void 0,Object.assign(u,{selections:t.selections}),[u,null]}(e,t,n):L_(e,t),a=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return e.qae.properties.onChange.call({model:t.model},...r),t.model.__snInterceptor.setProperties.call(this,...r)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then((o=>{const i=GP.clone(o),a=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));GP.apply(o,a),e.qae.properties.onChange.call({model:t.model},o);const l=GP.generate(i,o).map((e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})));return t.model.__snInterceptor.applyPatches.call(this,l,r)}))},t.model.__snInterceptor.teardown=()=>{t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor},a.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){a.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const I_=()=>{};function T_(e,t){return void 0===e?()=>t:()=>e}function P_(e){const t=e||{};return{min:"function"==typeof t.min?t.min:T_(t.min,0),max:"function"==typeof t.max?t.max:T_(t.max,1e3),added:t.added||t.add||I_,description:t.description||I_,moved:t.moved||t.move||I_,removed:t.removed||t.remove||I_,replaced:t.replaced||t.replace||I_,isDefined:()=>!!e}}const __=(e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o};function N_(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef"))}return{propertyPath:t,layoutPath:n,resolveLayout:e=>__(e,n,{}),dimensions:P_(e.dimensions),measures:P_(e.measures)}}function M_(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.properties||{};t.properties&&(t.properties.initial||t.properties.onChange)&&(n=t.properties.initial,e=t.properties.onChange);return{properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(N_)},exportProperties:t.exportProperties,importProperties:t.importProperties}}function q_(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:M_(n.qae),component:n.component||{},create:e=>O_(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var z_={exports:{}};!function(e,t){var n;t=e.exports=p,n="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var r=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],a=t.src=[],l=t.tokens={},s=0;function c(e){l[e]=s++}c("NUMERICIDENTIFIER"),a[l.NUMERICIDENTIFIER]="0|[1-9]\\d*",c("NUMERICIDENTIFIERLOOSE"),a[l.NUMERICIDENTIFIERLOOSE]="[0-9]+",c("NONNUMERICIDENTIFIER"),a[l.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",c("MAINVERSION"),a[l.MAINVERSION]="("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")\\.("+a[l.NUMERICIDENTIFIER]+")",c("MAINVERSIONLOOSE"),a[l.MAINVERSIONLOOSE]="("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")\\.("+a[l.NUMERICIDENTIFIERLOOSE]+")",c("PRERELEASEIDENTIFIER"),a[l.PRERELEASEIDENTIFIER]="(?:"+a[l.NUMERICIDENTIFIER]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASEIDENTIFIERLOOSE"),a[l.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[l.NUMERICIDENTIFIERLOOSE]+"|"+a[l.NONNUMERICIDENTIFIER]+")",c("PRERELEASE"),a[l.PRERELEASE]="(?:-("+a[l.PRERELEASEIDENTIFIER]+"(?:\\."+a[l.PRERELEASEIDENTIFIER]+")*))",c("PRERELEASELOOSE"),a[l.PRERELEASELOOSE]="(?:-?("+a[l.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[l.PRERELEASEIDENTIFIERLOOSE]+")*))",c("BUILDIDENTIFIER"),a[l.BUILDIDENTIFIER]="[0-9A-Za-z-]+",c("BUILD"),a[l.BUILD]="(?:\\+("+a[l.BUILDIDENTIFIER]+"(?:\\."+a[l.BUILDIDENTIFIER]+")*))",c("FULL"),c("FULLPLAIN"),a[l.FULLPLAIN]="v?"+a[l.MAINVERSION]+a[l.PRERELEASE]+"?"+a[l.BUILD]+"?",a[l.FULL]="^"+a[l.FULLPLAIN]+"$",c("LOOSEPLAIN"),a[l.LOOSEPLAIN]="[v=\\s]*"+a[l.MAINVERSIONLOOSE]+a[l.PRERELEASELOOSE]+"?"+a[l.BUILD]+"?",c("LOOSE"),a[l.LOOSE]="^"+a[l.LOOSEPLAIN]+"$",c("GTLT"),a[l.GTLT]="((?:<|>)?=?)",c("XRANGEIDENTIFIERLOOSE"),a[l.XRANGEIDENTIFIERLOOSE]=a[l.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",c("XRANGEIDENTIFIER"),a[l.XRANGEIDENTIFIER]=a[l.NUMERICIDENTIFIER]+"|x|X|\\*",c("XRANGEPLAIN"),a[l.XRANGEPLAIN]="[v=\\s]*("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:\\.("+a[l.XRANGEIDENTIFIER]+")(?:"+a[l.PRERELEASE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGEPLAINLOOSE"),a[l.XRANGEPLAINLOOSE]="[v=\\s]*("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[l.XRANGEIDENTIFIERLOOSE]+")(?:"+a[l.PRERELEASELOOSE]+")?"+a[l.BUILD]+"?)?)?",c("XRANGE"),a[l.XRANGE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAIN]+"$",c("XRANGELOOSE"),a[l.XRANGELOOSE]="^"+a[l.GTLT]+"\\s*"+a[l.XRANGEPLAINLOOSE]+"$",c("COERCE"),a[l.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",c("COERCERTL"),i[l.COERCERTL]=new RegExp(a[l.COERCE],"g"),c("LONETILDE"),a[l.LONETILDE]="(?:~>?)",c("TILDETRIM"),a[l.TILDETRIM]="(\\s*)"+a[l.LONETILDE]+"\\s+",i[l.TILDETRIM]=new RegExp(a[l.TILDETRIM],"g");c("TILDE"),a[l.TILDE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAIN]+"$",c("TILDELOOSE"),a[l.TILDELOOSE]="^"+a[l.LONETILDE]+a[l.XRANGEPLAINLOOSE]+"$",c("LONECARET"),a[l.LONECARET]="(?:\\^)",c("CARETTRIM"),a[l.CARETTRIM]="(\\s*)"+a[l.LONECARET]+"\\s+",i[l.CARETTRIM]=new RegExp(a[l.CARETTRIM],"g");c("CARET"),a[l.CARET]="^"+a[l.LONECARET]+a[l.XRANGEPLAIN]+"$",c("CARETLOOSE"),a[l.CARETLOOSE]="^"+a[l.LONECARET]+a[l.XRANGEPLAINLOOSE]+"$",c("COMPARATORLOOSE"),a[l.COMPARATORLOOSE]="^"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+")$|^$",c("COMPARATOR"),a[l.COMPARATOR]="^"+a[l.GTLT]+"\\s*("+a[l.FULLPLAIN]+")$|^$",c("COMPARATORTRIM"),a[l.COMPARATORTRIM]="(\\s*)"+a[l.GTLT]+"\\s*("+a[l.LOOSEPLAIN]+"|"+a[l.XRANGEPLAIN]+")",i[l.COMPARATORTRIM]=new RegExp(a[l.COMPARATORTRIM],"g");c("HYPHENRANGE"),a[l.HYPHENRANGE]="^\\s*("+a[l.XRANGEPLAIN]+")\\s+-\\s+("+a[l.XRANGEPLAIN]+")\\s*$",c("HYPHENRANGELOOSE"),a[l.HYPHENRANGELOOSE]="^\\s*("+a[l.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[l.XRANGEPLAINLOOSE]+")\\s*$",c("STAR"),a[l.STAR]="(<|>)?=?\\s*\\*";for(var u=0;u<s;u++)n(u,a[u]),i[u]||(i[u]=new RegExp(a[u]));function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p)return e;if("string"!=typeof e)return null;if(e.length>r)return null;if(!(t.loose?i[l.LOOSE]:i[l.FULL]).test(e))return null;try{return new p(e,t)}catch(e){return null}}function p(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof p){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>r)throw new TypeError("version is longer than "+r+" characters");if(!(this instanceof p))return new p(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?i[l.LOOSE]:i[l.FULL]);if(!a)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+a[1],this.minor=+a[2],this.patch=+a[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");a[4]?this.prerelease=a[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=d,t.valid=function(e,t){var n=d(e,t);return n?n.version:null},t.clean=function(e,t){var n=d(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=p,p.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},p.prototype.toString=function(){return this.version},p.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof p||(e=new p(e,this.options)),this.compareMain(e)||this.comparePre(e)},p.prototype.compareMain=function(e){return e instanceof p||(e=new p(e,this.options)),h(this.major,e.major)||h(this.minor,e.minor)||h(this.patch,e.patch)},p.prototype.comparePre=function(e){if(e instanceof p||(e=new p(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var r=this.prerelease[t],o=e.prerelease[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.compareBuild=function(e){e instanceof p||(e=new p(e,this.options));var t=0;do{var r=this.build[t],o=e.build[t];if(n("prerelease compare",t,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return h(r,o)}while(++t)},p.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new p(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(b(e,t))return null;var n=d(e),r=d(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var i="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return o+a;return i},t.compareIdentifiers=h;var f=/^[0-9]+$/;function h(e,t){var n=f.test(e),r=f.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function m(e,t,n){return new p(e,n).compare(new p(t,n))}function g(e,t,n){return m(e,t,n)>0}function v(e,t,n){return m(e,t,n)<0}function b(e,t,n){return 0===m(e,t,n)}function y(e,t,n){return 0!==m(e,t,n)}function x(e,t,n){return m(e,t,n)>=0}function S(e,t,n){return m(e,t,n)<=0}function w(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return b(e,n,r);case"!=":return y(e,n,r);case">":return g(e,n,r);case">=":return x(e,n,r);case"<":return v(e,n,r);case"<=":return S(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function E(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof E){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof E))return new E(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===C?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return h(t,e)},t.major=function(e,t){return new p(e,t).major},t.minor=function(e,t){return new p(e,t).minor},t.patch=function(e,t){return new p(e,t).patch},t.compare=m,t.compareLoose=function(e,t){return m(e,t,!0)},t.compareBuild=function(e,t,n){var r=new p(e,n),o=new p(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return m(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=g,t.lt=v,t.eq=b,t.neq=y,t.gte=x,t.lte=S,t.cmp=w,t.Comparator=E;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof E)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function R(e,t){for(var n=!0,r=e.slice(),o=r.pop();n&&r.length;)n=r.every((function(e){return o.intersects(e,t)})),o=r.pop();return n}function L(e){return!e||"x"===e.toLowerCase()||"*"===e}function O(e,t,n,r,o,i,a,l,s,c,u,d,p){return((t=L(n)?"":L(r)?">="+n+".0.0":L(o)?">="+n+"."+r+".0":">="+t)+" "+(l=L(s)?"":L(c)?"<"+(+s+1)+".0.0":L(u)?"<"+s+"."+(+c+1)+".0":d?"<="+s+"."+c+"."+u+"-"+d:"<="+l)).trim()}function I(e,t,r){for(var o=0;o<e.length;o++)if(!e[o].test(t))return!1;if(t.prerelease.length&&!r.includePrerelease){for(o=0;o<e.length;o++)if(n(e[o].semver),e[o].semver!==C&&e[o].semver.prerelease.length>0){var i=e[o].semver;if(i.major===t.major&&i.minor===t.minor&&i.patch===t.patch)return!0}return!1}return!0}function T(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function P(e,t,n,r){var o,i,a,l,s;switch(e=new p(e,r),t=new k(t,r),n){case">":o=g,i=S,a=v,l=">",s=">=";break;case"<":o=v,i=x,a=g,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(T(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],d=null,f=null;if(u.forEach((function(e){e.semver===C&&(e=new E(">=0.0.0")),d=d||e,f=f||e,o(e.semver,d.semver,r)?d=e:a(e.semver,f.semver,r)&&(f=e)})),d.operator===l||d.operator===s)return!1;if((!f.operator||f.operator===l)&&i(e,f.semver))return!1;if(f.operator===s&&a(e,f.semver))return!1}return!0}E.prototype.parse=function(e){var t=this.options.loose?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new p(n[2],this.options.loose):this.semver=C},E.prototype.toString=function(){return this.value},E.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}return w(e,this.operator,this.semver,this.options)},E.prototype.intersects=function(e,t){if(!(e instanceof E))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new k(e.value,t),T(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),T(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=w(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=w(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||i&&a||l||s},t.Range=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?i[l.HYPHENRANGELOOSE]:i[l.HYPHENRANGE];e=e.replace(r,O),n("hyphen replace",e),e=e.replace(i[l.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,i[l.COMPARATORTRIM]),e=(e=(e=e.replace(i[l.TILDETRIM],"$1~")).replace(i[l.CARETTRIM],"$1^")).split(/\s+/).join(" ");var o=t?i[l.COMPARATORLOOSE]:i[l.COMPARATOR],a=e.split(" ").map((function(e){return function(e,t){return n("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){n("caret",e,t);var r=t.loose?i[l.CARETLOOSE]:i[l.CARET];return e.replace(r,(function(t,r,o,i,a){var l;return n("caret",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":a?(n("replaceCaret pr",a),l="0"===r?"0"===o?">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+"-"+a+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+i+" <"+r+"."+o+"."+(+i+1):">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+i+" <"+(+r+1)+".0.0"),n("caret return",l),l}))}(e,t)})).join(" ")}(e,t),n("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var r=t.loose?i[l.TILDELOOSE]:i[l.TILDE];return e.replace(r,(function(t,r,o,i,a){var l;return n("tilde",e,t,r,o,i,a),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(i)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":a?(n("replaceTilde pr",a),l=">="+r+"."+o+"."+i+"-"+a+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+i+" <"+r+"."+(+o+1)+".0",n("tilde return",l),l}))}(e,t)})).join(" ")}(e,t),n("tildes",e),e=function(e,t){return n("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var r=t.loose?i[l.XRANGELOOSE]:i[l.XRANGE];return e.replace(r,(function(r,o,i,a,l,s){n("xRange",e,r,o,i,a,l,s);var c=L(i),u=c||L(a),d=u||L(l),p=d;return"="===o&&p&&(o=""),s=t.includePrerelease?"-0":"",c?r=">"===o||"<"===o?"<0.0.0-0":"*":o&&p?(u&&(a=0),l=0,">"===o?(o=">=",u?(i=+i+1,a=0,l=0):(a=+a+1,l=0)):"<="===o&&(o="<",u?i=+i+1:a=+a+1),r=o+i+"."+a+"."+l+s):u?r=">="+i+".0.0"+s+" <"+(+i+1)+".0.0"+s:d&&(r=">="+i+"."+a+".0"+s+" <"+i+"."+(+a+1)+".0"+s),n("xRange return",r),r}))}(e,t)})).join(" ")}(e,t),n("xrange",e),e=function(e,t){return n("replaceStars",e,t),e.trim().replace(i[l.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(a=a.filter((function(e){return!!e.match(o)}))),a=a.map((function(e){return new E(e,this.options)}),this)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return R(n,t)&&e.set.some((function(e){return R(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new p(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(I(this.set[t],e,this.options))return!0;return!1},t.satisfies=T,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&-1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var i=new k(t,n)}catch(e){return null}return e.forEach((function(e){i.test(e)&&(r&&1!==o.compare(e)||(o=new p(r=e,n)))})),r},t.minVersion=function(e,t){e=new k(e,t);var n=new p("0.0.0");if(e.test(n))return n;if(n=new p("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r){e.set[r].forEach((function(e){var t=new p(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!g(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return P(e,t,"<",n)},t.gtr=function(e,t,n){return P(e,t,">",n)},t.outside=P,t.prerelease=function(e,t){var n=d(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new k(e,n),t=new k(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof p)return e;"number"==typeof e&&(e=String(e));if("string"!=typeof e)return null;var n=null;if((t=t||{}).rtl){for(var r;(r=i[l.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),i[l.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;i[l.COERCERTL].lastIndex=-1}else n=e.match(i[l.COERCE]);if(null===n)return null;return d(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(z_,z_.exports);var D_=z_.exports;const A_={};function j_(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||D_.satisfies(e,a.deps.properties),supernova:()=>async function(e,t,n,r){let{config:o}=n;const i="".concat(e,"__").concat(t);if(!A_[i]){const n="".concat(e).concat(t&&" v".concat(t)||"");if(r&&"function"!=typeof r)throw new Error("load of visualization '".concat(n,"' is not a fuction, wrap load promise in function"));const a=(r||o.load)({name:e,version:t}),l=Promise.resolve(a);A_[i]=l.then((e=>{if(!e)throw new Error("load() of visualization '".concat(n,"' resolved to an invalid object"));return e})).catch((e=>{throw new Error("Failed to load visualization: '".concat(n,"'"))}))}return A_[i]}(l.name,l.version,t,o.load).then((e=>(n=n||q_(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.supernova().then((()=>{const n=i({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r));return t?($e(!0,n,e),n):i(i({},n),e)}))}};return l}function F_(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=j_({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function B_(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=F_(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>{if(r[e])return r[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:n}=e;if(r[t]){if(!r[t].versions[n]){n=Object.keys(r[t].versions)[0]}}else this.register({name:t,version:n});return r[t].get(n)||o.get(e)},getList:()=>Object.keys(r).map((e=>({name:e,versions:Object.keys(r[e].versions).map((e=>"undefined"===e?void 0:e))}))),clearFromCache:e=>{r[e]&&(r[e]=void 0),function(e){Object.keys(A_).forEach((t=>{t.split("__")[0]===e&&(A_[t]=void 0)}))}(e)}}}const W_={get:async e=>{const t=await fetch("/njs/snapshot/".concat(e));if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then((e=>e.json()))},$_={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:W_};$_.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1};const H_=function(){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return i(i({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),e)},U_=function(){return[...arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],...arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]].filter(((e,t,n)=>n.indexOf(e)===t))};var V_=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=Z(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=i(i({},t.context),{},{translator:n.translator});const[l]=function(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),i=U.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","4.2.4"),a.setAttribute("data-app-id",n.id),document.body.appendChild(a),r&&SS(r),dt.createRoot(a).render(U.createElement(wS,{ref:i,app:n,initialContext:r,renderCallback:t}));const l={},s=[];return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},removeCell(e){delete l[e]},add(e){(async()=>{await o,s.push(e),i.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),i.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,i.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,e&&SS(e),i.current.setContext(e)})()},getAppSelections:async()=>(await o,i.current.getAppSelections())},i,o]}({app:e,context:a}),s=function(){let{themes:e=[],loadTheme:t,root:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=lt();return{setTheme:async o=>{let i=e.filter((e=>e.id===o))[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),st(ct,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:l});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:UP(t.flags),deviceType:ut(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:l,config:t,public:c,context:a,types:null},d=B_({halo:u});t.types.forEach((e=>d.register({name:e.name,version:e.version},{meta:e.meta,load:e.load})));let p=s.setTheme(t.context.theme),f=null,h=null;const m={render:async e=>(await p,e.id?HP(e,u):async function(e,t){let{type:n,version:r,fields:o,properties:i,options:a,plugins:l,element:s,extendProperties:c}=e,u={};const d=[];let p;try{const e=t.types.get({name:n,version:r});u=await e.initialProperties(i,c);const a=await e.supernova();o&&await RT({sn:a,properties:u,fields:o,children:d},t),i&&a&&a.qae.properties.onChange&&a.qae.properties.onChange.call({},u)}catch(e){p=e,u={qInfo:{qType:n},visualization:n}}const f=await t.app.createSessionObject(u);d.length>0&&await f.setFullPropertyTree({qProperty:u,qChildren:d}),oR.set(f.id,f);const h=iR(f);return AP(f,{options:a,plugins:l,element:s},t,p,(async()=>{await t.app.destroySessionObject(f.id),h()}))}(e,u)),create:async e=>jP(e,u,!1),generateProperties:async e=>jP(e,u,!0),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=i(i(i({},a),t),{},{translator:n.translator}),t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(a))},selections:async()=>(f||(f={mount(t){h||(h=function(e){let{element:t,app:n}=e;return xp.createPortal(U.createElement(FI,{app:n}),t,jI())}({element:t,app:e}),l.add(h))},unmount(){h&&(l.remove(h),h=null)}}),f),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(a){let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!a)throw new Error("Element for ".concat(r||n," not provided"));if(this._instance)throw new Error("Field or object ".concat(r||n," already mounted"));const c=()=>o.emit("selectionActivated"),u=()=>o.emit("selectionDeactivated");return new Promise((r=>{this._instance=function(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:i="$",options:a={},renderedCallback:l}=e;return xp.createPortal(U.createElement(pT,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:i,options:a,renderedCallback:l}),t,jI())}({element:a,app:e,fieldIdentifier:t,qId:n,options:dT(i({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),l.add(this._instance)}))},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return fI(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(l.remove(m._popoverInstance),m._popoverInstance=null);const o=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=i({},fT);return $e(!0,t,e),t}(i({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=U.createElement(hT,{element:t,key:jI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),l.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,fI(m),m}return r.createConfiguration=n=>e(((e,t)=>({context:H_(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:i({},t.snapshot||e.snapshot),types:U_(e.types,t.types),themes:U_(e.themes,t.themes),flags:H_(e.flags,t.flags),anything:H_(e.anything,t.anything)}))(t,n)),r.config=t,r}($_);function G_(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const K_=globalThis.crypto||{getRandomValues:()=>123456};function Z_(){return e=>{const t=$e({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^K_.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=$e({},t,n)),Promise.resolve(i({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const X_=function(e){let{args:t=[],defaultValue:n}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"function"==typeof e?e(...t):void 0!==e?e:n},Q_=function(e){let{defaultValue:t,async:n=!0,delay:r=0}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];const l=X_(e,{defaultValue:t,args:i});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},J_=["id","session"],Y_=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function eN(e){return!Y_.includes(e)}function tN(e){const t=X_(e.getLayout);return t.qInfo&&t.qInfo.qId}function nN(e,t){return e.reduce(((e,n)=>i(i({},e),function(e,t){let n=tN(e);const{delay:r}=t,{id:o,session:a}=e,l=s(e,J_);if(o&&n&&o!==n)throw new Error("Generic object has multiple IDs, qInfo.qId: ".concat(n,", id: ").concat(o));return n=n||o||"object - ".concat(+Date.now()),{[n]:i(i({id:n,session:X_(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(l).reduce(((e,t)=>{let[n,o]=t;return i(i({},e),{},{[n]:Q_(o,{async:eN(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function rN(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!tN(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function oN(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(rN);const n=nN(e,t);return async e=>Promise.resolve(n[e])}function iN(){return()=>Promise.resolve({id:"app-layout"})}const aN={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new G_,r=new Z_,o=new oN(e,t),i=new iN,a={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:i};return Promise.resolve(a)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},lN={generator:q_,hook:g_,theme:lt,locale:G};e.EnigmaMocker=aN,e.__DO_NOT_USE__=lN,e.conversion=FT,e.embed=V_,e.onContextMenu=function(e){const t=f_(++n_);t.value||(t.value=1,t_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=f_(++n_);t.value||(t.value=1,t_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=v_({action(){n._config.action.call(null)}});return n.component||(n.component=t_,t_.__hooks.actions.list.push(n)),x_((()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0}),t),n.action},e.useApp=function(){const e=h_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return h_("appLayout")},e.useConstraints=function(){return h_("constraints")},e.useDeviceType=function(){return h_("deviceType")},e.useEffect=b_,e.useElement=S_,e.useEmbed=function(){return h_("nebbie")},e.useEmitter=function(){return h_("emitter")},e.useGlobal=function(){const e=h_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=f_(++n_);if(n.imperative||(n.imperative=!0),r_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],t_.__hooks.imperativeHandle=r}},e.useInteractionState=function(){return h_("interactions")},e.useKeyboard=function(){const e=h_("keyboardNavigation"),t=h_("focusHandler");if(!t_.__hooks.accessibility.exitFunction){const e=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const n=this.__hooks.accessibility;n.enabled&&n.active&&(E_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(t_);t_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),w_(this))}.bind(t_);t_.__hooks.accessibility.focusFunction=n;const r=function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(t_);t_.__hooks.accessibility.focusSelectionFunction=r}const n=t_.__hooks.accessibility.focusFunction,r=t_.__hooks.accessibility.exitFunction,o=t_.__hooks.accessibility.focusSelectionFunction,[i,a]=v_({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return t_.__hooks.accessibility.setter=a,t_.__hooks.accessibility.enabled=e,b_((()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),i},e.useLayout=function(){return h_("layout")},e.useMemo=x_,e.useModel=function(){const e=h_("model");return e&&e.session?e:void 0},e.useOptions=function(){return h_("options")},e.usePlugins=function(){return h_("plugins")},e.usePromise=function(e,t){const[n,r]=v_((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=f_(++n_);return o.component||(o.component=t_),y_((()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then((e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))})).catch((e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))})),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}}),t),[n.resolved,n.rejected]},e.useRect=function(){const e=S_(),t=t_.__hooks.resizer,[n,r]=v_((()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}}));return t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r),t.update&&t.resize&&(t.update=!1,t.resize()),y_((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:i})))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}}),[e]),n},e.useRenderState=function(){f_(++n_);const e=t_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return h_("selections")},e.useStaleLayout=function(){const e=h_("layout"),[t]=v_({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=v_,e.useTheme=function(){return h_("theme")},e.useTranslator=function(){return h_("translator")}}));
|
|
134
134
|
//# sourceMappingURL=stardust.js.map
|