@nebula.js/stardust 4.0.0-alpha.7 → 4.0.0-alpha.8

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/dist/stardust.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * @nebula.js/stardust v4.0.0-alpha.7
2
+ * @nebula.js/stardust v4.0.0-alpha.8
3
3
  * Copyright (c) 2023 QlikTech International AB
4
4
  * Released under the MIT license.
5
5
  */
@@ -104,7 +104,7 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
104
104
  animation-iteration-count: infinite;
105
105
  animation-delay: 200ms;
106
106
  }
107
- `),Kx.rippleVisible,tS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kx.child,Kx.childLeaving,nS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.childPulsate,rS,(({theme:e})=>e.transitions.easing.easeInOut)),iS=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Of(n,Zx),[l,s]=d.useState([]),c=d.useRef(0),u=d.useRef(null);d.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const p=d.useRef(!1),f=d.useRef(null),h=d.useRef(null),m=d.useRef(null);d.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const g=d.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,Km.jsx(aS,{classes:{ripple:ky(o.ripple,Kx.ripple),rippleVisible:ky(o.rippleVisible,Kx.rippleVisible),ripplePulsate:ky(o.ripplePulsate,Kx.ripplePulsate),child:ky(o.child,Kx.child),childLeaving:ky(o.childLeaving,Kx.childLeaving),childPulsate:ky(o.childPulsate,Kx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),v=d.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=i?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||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(a)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=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;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g]),y=d.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=d.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{b(e,t)})));h.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return d.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),Km.jsx(oS,Rf({className:ky(Kx.root,o.root,a),ref:m},i,{children:Km.jsx(Gx,{component:null,exit:!0,children:l})}))}));var lS=iS;function sS(e){return kf("MuiButtonBase",e)}var cS=Lf("MuiButtonBase",["root","disabled","focusVisible"]);const uS=["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"],dS=wy("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"},[`&.${cS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pS=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:C,onTouchEnd:k,onTouchMove:L,onTouchStart:R,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:P,type:T}=n,_=Of(n,uS),N=d.useRef(null),M=d.useRef(null),q=sf(M,P),{isFocusVisibleRef:A,onFocus:D,onBlur:z,ref:j}=vf(),[F,$]=d.useState(!1);s&&F&&$(!1),d.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),N.current.focus()}})),[]);const[B,W]=d.useState(!1);d.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return lf((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}d.useEffect((()=>{F&&p&&!c&&B&&M.current.pulsate()}),[c,p,F,B]);const V=U("start",w),G=U("stop",g),K=U("stop",v),Z=U("stop",C),X=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),Q=U("start",R),Y=U("stop",k),J=U("stop",L),ee=U("stop",(e=>{z(e),!1===A.current&&$(!1),h&&h(e)}),!1),te=lf((e=>{N.current||(N.current=e.currentTarget),D(e),!0===A.current&&($(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=d.useRef(!1),oe=lf((e=>{p&&!re.current&&F&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ae=lf((e=>{p&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(_.href||_.to)&&(ie=f);const le={};"button"===ie?(le.type=void 0===T?"button":T,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=sf(t,j,N),ce=Rf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:p,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Sf({root:["root",t&&"disabled",n&&"focusVisible"]},sS,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Km.jsxs(dS,Rf({as:ie,className:ky(ue.root,i),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:Y,onTouchMove:J,onTouchStart:Q,ref:se,tabIndex:s?-1:O,type:T},le,_,{children:[a,H?Km.jsx(lS,Rf({ref:q,center:o},I)):null]}))}));var fS=pS;function hS(e){return kf("MuiButton",e)}var mS=Lf("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 gS=d.createContext({});const vS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],yS=e=>Rf({},"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}}),bS=wy(fS,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Kp(n.color)}`],t[`size${Kp(n.size)}`],t[`${n.variant}Size${Kp(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Rf({},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":Rf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dv(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})`:Dv(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})`:Dv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,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":Rf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mS.focusVisible}`]:Rf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mS.disabled}`]:Rf({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 ${Dv(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).palette.grey[300],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"},[`&.${mS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mS.disabled}`]:{boxShadow:"none"}})),xS=wy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Rf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},yS(e)))),SS=wy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Rf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},yS(e)))),wS=d.forwardRef((function(e,t){const n=d.useContext(gS),r=by({props:xf(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:i="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=r,b=Of(r,vS),x=Rf({},r,{color:a,component:i,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:h,size:m,type:v,variant:y}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Rf({},i,Sf({root:["root",a,`${a}${Kp(t)}`,`size${Kp(o)}`,`${a}Size${Kp(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Kp(o)}`],endIcon:["endIcon",`iconSize${Kp(o)}`]},hS,i))})(x),w=g&&Km.jsx(xS,{className:S.startIcon,ownerState:x,children:g}),E=p&&Km.jsx(SS,{className:S.endIcon,ownerState:x,children:p});return Km.jsxs(bS,Rf({ownerState:x,className:ky(n.className,S.root,l),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:ky(S.focusVisible,f),ref:t,type:v},b,{classes:S,children:[w,o,E]}))}));var ES=wS,CS={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 kS="#009845",LS="#3F8AB3",RS="#ffffff",OS="#404040",IS="#333333",PS="#1A1A1A",TS={mode:"light",palette:{primary:{main:OS,contrastText:RS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:OS,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:RS,default:RS,lightest:RS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:LS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:kS,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:RS,alternativeContrastText:OS,excludedContrastText:OS},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)"}}},_S={mode:"dark",palette:{primary:{main:IS,contrastText:RS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:RS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:RS,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:OS,lighter:IS,darker:"#262626",darkest:PS},custom:{focusBorder:LS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:kS,alternative:IS,excluded:PS,mainContrastText:RS,alternativeContrastText:RS,excludedContrastText:RS},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)"}}},NS={},MS=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(mS.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(mS.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(mS.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(mS.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function qS(e){let t=TS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=_S));const r=JSON.stringify(t);if(NS[r])return NS[r];const o={palette:l(l({type:t.mode},CS.palette),t.palette),typography:l({},CS.typography),shadows:CS.shadows,props:l({},CS.props),shape:l({},CS.shape)};return NS[r]=gy(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Rf({},Of(e,$v),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[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=dv(e.spacing);const s=cv(e.breakpoints||{}),c=l.spacing;l.mixins=Rf({gutters:(e={})=>Rf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Rf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Of(o,Bv),f=d||u||"light";return l.palette=Rf({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(l(l({},o),{},{overrides:MS(o)}))),NS[r].name=n,NS[r]}Ef.configure((e=>"njs-".concat("a704","-").concat(e.replace("Mui",""))));var AS=G.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),DS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach((t=>t(e?{}:n)))}},a=()=>{const[,e]=d.useState(n);return d.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[a,o]};const[zS,jS]=DS({}),[FS,$S]=DS({}),[BS,WS]=DS({}),[HS,US]=DS({});function VS(e){if(!e.session)return[];const[t]=zS(),n=e?e.id:null;let r=t.get(n);return d.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=US.get(n);t&&(await t.endSelections(e),US.clear(n),WS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===US.get(n))return;r(a),US.set(n,e);const i=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(i),US.set(n,e)}catch(e){6003!==e.code||r?US.clear(n):(await t.abortModal(a),l(!0))}};await l()},end:r};$S.set(n,o);const a={model:t,isInModal:()=>!!US.get(n),isModal:e=>e?US.get(n)===e:!!US.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 a}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const GS=d.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[a]=VS(r),[i,l]=d.useState(n),[s,c]=d.useState(),{theme:u}=d.useMemo((()=>({theme:qS(s)})),[s]),[p,f]=d.useState([]);return d.useEffect((()=>{o&&o()}),[]),d.useImperativeHandle(t,(()=>({setComps(e){f([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>a})),[]),G.createElement(ag,{injectFirst:!0},G.createElement(Fv,{theme:u},G.createElement(AS.Provider,{value:i},p)))}));function KS(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=G.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","4.0.0-alpha.7"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i);ft.createRoot(i).render(G.createElement(GS,{ref:a,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),a.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),a.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,a.current.setContext(e)})()},getAppSelections:async()=>(await o,a.current.getAppSelections())},a,o]}function ZS(e){return kf("MuiSvgIcon",e)}Lf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const XS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],QS=wy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,y;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==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(l=i.pxToRem)?void 0:l.call(i,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==(y=v.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),YS=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Of(n,XS),f=Rf({},n,{color:a,component:i,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 Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},ZS,r)})(f);return Km.jsxs(QS,Rf({as:i,className:ky(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?Km.jsx("title",{children:u}):null]}))}));YS.muiName="SvgIcon";var JS=YS;function ew(e,t){function n(n,r){return Km.jsx(JS,Rf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=JS.muiName,d.memo(d.forwardRef(n))}const tw={configure:e=>{Ef.configure(e)}};var nw=Object.freeze({__proto__:null,capitalize:Kp,createChainedFunction:Zp,createSvgIcon:ew,debounce:Xp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Qp,ownerDocument:Yp,ownerWindow:Jp,requirePropFactory:function(e,t){return()=>null},setRef:ef,unstable_ClassNameGenerator:tw,unstable_useEnhancedEffect:tf,unstable_useId:of,unsupportedProp:function(e,t,n,r,o){return null},useControlled:af,useEventCallback:lf,useForkRef:sf,useIsFocusVisible:vf});const rw=e=>e.scrollTop;function ow(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function aw(e){return kf("MuiPaper",e)}Lf("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 iw=["className","component","elevation","square","variant"],lw=wy("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 Rf({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&&Rf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Dv("#fff",Ey(t.elevation))}, ${Dv("#fff",Ey(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),sw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Of(n,iw),c=Rf({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},aw,o)})(c);return Km.jsx(lw,Rf({as:o,ownerState:c,className:ky(u.root,r),ref:t},s))}));var cw=sw;function uw(e){return kf("MuiIconButton",e)}var dw=Lf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const pw=["edge","children","className","color","disabled","disableFocusRipple","size"],fw=wy(fS,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Kp(n.color)}`],n.edge&&t[`edge${Kp(n.edge)}`],t[`size${Kp(n.size)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv(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 Rf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Rf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Rf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dv(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)},{[`&.${dw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),hw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Of(n,pw),d=Rf({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Sf({root:["root",n&&"disabled","default"!==r&&`color${Kp(r)}`,o&&`edge${Kp(o)}`,`size${Kp(a)}`]},uw,t)})(d);return Km.jsx(fw,Rf({className:ky(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var mw=hw;function gw(e){return kf("MuiTypography",e)}Lf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yw=wy("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${Kp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Rf({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}))),bw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiTypography"}),r=(e=>xw[e]||e)(n.color),o=av(Rf({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=bw}=o,f=Of(o,vw),h=Rf({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||bw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Sf({root:["root",a,"inherit"!==e.align&&`align${Kp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gw,i)})(h);return Km.jsx(yw,Rf({as:m,ref:t,ownerState:h,className:ky(g.root,i)},f))}));var ww=Sw;const Ew=["components","componentsProps","slots","slotProps"],Cw=wy(ux,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kw=d.forwardRef((function(e,t){var n;const r=bv(),o=by({props:e,name:"MuiPopper"}),{components:a,componentsProps:i,slots:l,slotProps:s}=o,c=Of(o,Ew),u=null!=(n=null==l?void 0:l.root)?n:null==a?void 0:a.Root;return Km.jsx(Cw,Rf({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=s?s:i},c,{ref:t}))}));var Lw=kw;function Rw({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 Ow=d.createContext(void 0);function Iw(){return d.useContext(Ow)}function Pw(e){return Km.jsx(ig,Rf({},e,{defaultTheme:vy}))}function Tw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _w(e){return kf("MuiInputBase",e)}var Nw=Lf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Mw=["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"],qw=(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${Kp(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Aw=(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=wy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qw})((({theme:e,ownerState:t})=>Rf({},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",[`&.${Nw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Rf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),zw=wy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Aw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Rf({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"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Rf({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] + .${Nw.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Nw.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"})})),jw=Km.jsx(Pw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fw=d.forwardRef((function(e,t){var n;const r=by({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:C,onChange:k,onClick:L,onFocus:R,onKeyDown:O,onKeyUp:I,placeholder:P,readOnly:T,renderSuffix:_,rows:N,slotProps:M={},slots:q={},startAdornment:A,type:D="text",value:z}=r,j=Of(r,Mw),F=null!=y.value?y.value:z,{current:$}=d.useRef(null!=F),B=d.useRef(),W=d.useCallback((e=>{}),[]),H=sf(B,b,y.ref,W),[U,V]=d.useState(!1),G=Iw(),K=Rw({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,d.useEffect((()=>{!G&&p&&U&&(V(!1),C&&C())}),[G,p,U,C]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=d.useCallback((e=>{!function(e,t=!1){return e&&(Tw(e.value)&&""!==e.value||t&&Tw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);tf((()=>{$&&Q({value:F})}),[F,Q,$]);d.useEffect((()=>{Q(B.current)}),[]);let Y=v,J=y;w&&"input"===Y&&(J=Rf(N?{type:void 0,minRows:N,maxRows:N}:{type:void 0,maxRows:x,minRows:S},J),Y=Lx);d.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=Rf({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:h,error:K.error,focused:K.focused,formControl:G,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:A,type:D}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Sf({root:["root",`color${Kp(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},_w,t)})(ee),ne=q.root||s.Root||Dw,re=M.root||c.root||{},oe=q.input||s.Input||zw;return J=Rf({},J,null!=(n=M.input)?n:c.input),Km.jsxs(d.Fragment,{children:[!f&&jw,Km.jsxs(ne,Rf({},re,!Ry(ne)&&{ownerState:Rf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),L&&L(e)}},j,{className:ky(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[A,Km.jsx(Ow.Provider,{value:null,children:Km.jsx(oe,Rf({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:g,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:P,readOnly:T,required:K.required,rows:N,value:F,onKeyDown:O,onKeyUp:I,type:D},J,!Ry(oe)&&{as:Y,ownerState:Rf({},ee,J.ownerState)},{ref:H,className:ky(te.input,J.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),y.onBlur&&y.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Op(1));Q({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),y.onFocus&&y.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),h,_?_(Rf({},K,{startAdornment:A})):null]}))]})}));var $w=Fw;function Bw(e){return kf("MuiOutlinedInput",e)}var Ww=Rf({},Nw,Lf("MuiOutlinedInput",["root","notchedOutline","input"]));const Hw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Uw={entering:{opacity:1},entered:{opacity:1}},Vw=d.forwardRef((function(e,t){const n=yy(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:y=Fx}=e,b=Of(e,Hw),x=d.useRef(null),S=sf(x,i.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(p),C=w(((e,t)=>{rw(e);const r=ow({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=w(u),L=w(m),R=w((e=>{const t=ow({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),O=w(h);return Km.jsx(y,Rf({appear:a,in:s,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:R,onExited:O,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>d.cloneElement(i,Rf({style:Rf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Uw[e],g,i.props.style),ref:S},t))}))}));var Gw=Vw;function Kw(e){return kf("MuiBackdrop",e)}Lf("MuiBackdrop",["root","invisible"]);const Zw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Xw=wy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Rf({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"}))),Qw=d.forwardRef((function(e,t){var n,r,o;const a=by({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Gw,transitionDuration:g}=a,v=Of(a,Zw),y=Rf({},a,{component:s,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return Sf({root:["root",n&&"invisible"]},Kw,t)})(y),x=null!=(n=f.root)?n:u.root;return Km.jsx(m,Rf({in:p,timeout:g},v,{children:Km.jsx(Xw,Rf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ky(b.root,l,null==x?void 0:x.className),ownerState:Rf({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));var Yw=Qw;function Jw(e){return kf("MuiBadge",e)}var eE=Lf("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 tE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],nE=wy("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rE=wy("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Kp(n.anchorOrigin.vertical)}${Kp(n.anchorOrigin.horizontal)}${Kp(n.overlap)}`],"default"!==n.color&&t[`color${Kp(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Rf({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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),oE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=by({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:y=99,badgeContent:b,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Of(s,tE),{badgeContent:k,invisible:L,max:R,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=bf({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:y,invisible:v,badgeContent:b,showZero:w}),I=bf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:b}),P=L||null==k&&"dot"!==E,{color:T=g,overlap:_=m,anchorOrigin:N=c,variant:M=E}=P?I:s,q="dot"!==M?O:void 0,A=Rf({},s,{badgeContent:k,invisible:P,max:R,displayValue:q,showZero:w,anchorOrigin:N,color:T,overlap:_,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Sf({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}`,`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}${Kp(o)}`,`overlap${Kp(o)}`,"default"!==t&&`color${Kp(t)}`]},Jw,i)})(A),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:nE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:rE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=Ay({elementType:z,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:ky(null==F?void 0:F.className,D.root,u)}),W=Ay({elementType:j,externalSlotProps:$,ownerState:A,className:ky(D.badge,null==$?void 0:$.className)});return Km.jsxs(z,Rf({},B,{children:[h,Km.jsx(j,Rf({},W,{children:q}))]}))}));var aE=oE;const iE=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=lg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nv),a=d.forwardRef((function(e,a){const i=Sv(t),l=av(e),{className:s,component:c="div"}=l,u=rv(l,wv);return Km.jsx(o,sg({as:c,ref:a,className:lv(s,r?r(n):n),theme:i},u))}));return a}({defaultTheme:gy(),defaultClassName:"MuiBox-root",generateClassName:Ef.generate});var lE=iE;function sE(e){return kf("PrivateSwitchBase",e)}Lf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const cE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],uE=wy(fS)((({ownerState:e})=>Rf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),dE=wy("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),pE=d.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,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:y,required:b=!1,tabIndex:x,type:S,value:w}=e,E=Of(e,cE),[C,k]=af({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Iw();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=Rf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Sf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Kp(o)}`],input:["input"]},sE,t)})(I);return Km.jsxs(uE,Rf({component:"span",className:ky(P.root,a),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:I,ref:t},E,{children:[Km.jsx(dE,Rf({autoFocus:n,checked:r,defaultChecked:i,className:P.input,disabled:R,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:y,ref:f,required:b,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var fE=pE,hE=ew(Km.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"),mE=ew(Km.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"),gE=ew(Km.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 vE(e){return kf("MuiCheckbox",e)}var yE=Lf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const bE=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xE=wy(fE,{shouldForwardProp:e=>xy(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${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${yE.checked}, &.${yE.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${yE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),SE=Km.jsx(mE,{}),wE=Km.jsx(hE,{}),EE=Km.jsx(gE,{}),CE=d.forwardRef((function(e,t){var n,r;const o=by({props:e,name:"MuiCheckbox"}),{checkedIcon:a=SE,color:i="primary",icon:l=wE,indeterminate:s=!1,indeterminateIcon:c=EE,inputProps:u,size:p="medium",className:f}=o,h=Of(o,bE),m=s?c:l,g=s?c:a,v=Rf({},o,{color:i,indeterminate:s,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Rf({},t,Sf({root:["root",n&&"indeterminate",`color${Kp(r)}`]},vE,t))})(v);return Km.jsx(xE,Rf({type:"checkbox",inputProps:Rf({"data-indeterminate":s},u),icon:d.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:d.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:v,ref:t,className:ky(y.root,f)},h,{classes:y}))}));var kE=CE;function LE(e){return kf("MuiCircularProgress",e)}Lf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const RE=["className","color","disableShrink","size","style","thickness","value","variant"];let OE,IE,PE,TE,_E=e=>e;const NE=44,ME=gm(OE||(OE=_E`
107
+ `),Kx.rippleVisible,tS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Kx.child,Kx.childLeaving,nS,550,(({theme:e})=>e.transitions.easing.easeInOut),Kx.childPulsate,rS,(({theme:e})=>e.transitions.easing.easeInOut)),iS=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Of(n,Zx),[l,s]=d.useState([]),c=d.useRef(0),u=d.useRef(null);d.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const p=d.useRef(!1),f=d.useRef(null),h=d.useRef(null),m=d.useRef(null);d.useEffect((()=>()=>{clearTimeout(f.current)}),[]);const g=d.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,Km.jsx(aS,{classes:{ripple:ky(o.ripple,Kx.ripple),rippleVisible:ky(o.rippleVisible,Kx.rippleVisible),ripplePulsate:ky(o.ripplePulsate,Kx.ripplePulsate),child:ky(o.child,Kx.child),childLeaving:ky(o.childLeaving,Kx.childLeaving),childPulsate:ky(o.childPulsate,Kx.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),v=d.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&p.current)return void(p.current=!1);"touchstart"===(null==e?void 0:e.type)&&(p.current=!0);const l=i?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,d;if(a||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(a)d=Math.sqrt((2*s.width**2+s.height**2)/3),d%2==0&&(d+=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;d=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===h.current&&(h.current=()=>{g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})},f.current=setTimeout((()=>{h.current&&(h.current(),h.current=null)}),80)):g({pulsate:o,rippleX:c,rippleY:u,rippleSize:d,cb:n})}),[r,g]),y=d.useCallback((()=>{v({},{pulsate:!0})}),[v]),b=d.useCallback(((e,t)=>{if(clearTimeout(f.current),"touchend"===(null==e?void 0:e.type)&&h.current)return h.current(),h.current=null,void(f.current=setTimeout((()=>{b(e,t)})));h.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return d.useImperativeHandle(t,(()=>({pulsate:y,start:v,stop:b})),[y,v,b]),Km.jsx(oS,Rf({className:ky(Kx.root,o.root,a),ref:m},i,{children:Km.jsx(Gx,{component:null,exit:!0,children:l})}))}));var lS=iS;function sS(e){return kf("MuiButtonBase",e)}var cS=Lf("MuiButtonBase",["root","disabled","focusVisible"]);const uS=["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"],dS=wy("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"},[`&.${cS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),pS=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:c=!1,disableTouchRipple:u=!1,focusRipple:p=!1,LinkComponent:f="a",onBlur:h,onClick:m,onContextMenu:g,onDragLeave:v,onFocus:y,onFocusVisible:b,onKeyDown:x,onKeyUp:S,onMouseDown:w,onMouseLeave:E,onMouseUp:C,onTouchEnd:k,onTouchMove:L,onTouchStart:R,tabIndex:O=0,TouchRippleProps:I,touchRippleRef:P,type:T}=n,_=Of(n,uS),N=d.useRef(null),M=d.useRef(null),q=sf(M,P),{isFocusVisibleRef:A,onFocus:D,onBlur:z,ref:j}=vf(),[F,$]=d.useState(!1);s&&F&&$(!1),d.useImperativeHandle(r,(()=>({focusVisible:()=>{$(!0),N.current.focus()}})),[]);const[B,W]=d.useState(!1);d.useEffect((()=>{W(!0)}),[]);const H=B&&!c&&!s;function U(e,t,n=u){return lf((r=>{t&&t(r);return!n&&M.current&&M.current[e](r),!0}))}d.useEffect((()=>{F&&p&&!c&&B&&M.current.pulsate()}),[c,p,F,B]);const V=U("start",w),G=U("stop",g),K=U("stop",v),Z=U("stop",C),X=U("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),Q=U("start",R),Y=U("stop",k),J=U("stop",L),ee=U("stop",(e=>{z(e),!1===A.current&&$(!1),h&&h(e)}),!1),te=lf((e=>{N.current||(N.current=e.currentTarget),D(e),!0===A.current&&($(!0),b&&b(e)),y&&y(e)})),ne=()=>{const e=N.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},re=d.useRef(!1),oe=lf((e=>{p&&!re.current&&F&&M.current&&" "===e.key&&(re.current=!0,M.current.stop(e,(()=>{M.current.start(e)}))),e.target===e.currentTarget&&ne()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&ne()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),ae=lf((e=>{p&&" "===e.key&&M.current&&F&&!e.defaultPrevented&&(re.current=!1,M.current.stop(e,(()=>{M.current.pulsate(e)}))),S&&S(e),m&&e.target===e.currentTarget&&ne()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(_.href||_.to)&&(ie=f);const le={};"button"===ie?(le.type=void 0===T?"button":T,le.disabled=s):(_.href||_.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=sf(t,j,N),ce=Rf({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:p,tabIndex:O,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Sf({root:["root",t&&"disabled",n&&"focusVisible"]},sS,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Km.jsxs(dS,Rf({as:ie,className:ky(ue.root,i),ownerState:ce,onBlur:ee,onClick:m,onContextMenu:G,onFocus:te,onKeyDown:oe,onKeyUp:ae,onMouseDown:V,onMouseLeave:X,onMouseUp:Z,onDragLeave:K,onTouchEnd:Y,onTouchMove:J,onTouchStart:Q,ref:se,tabIndex:s?-1:O,type:T},le,_,{children:[a,H?Km.jsx(lS,Rf({ref:q,center:o},I)):null]}))}));var fS=pS;function hS(e){return kf("MuiButton",e)}var mS=Lf("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 gS=d.createContext({});const vS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],yS=e=>Rf({},"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}}),bS=wy(fS,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Kp(n.color)}`],t[`size${Kp(n.size)}`],t[`${n.variant}Size${Kp(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Rf({},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":Rf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dv(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})`:Dv(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})`:Dv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===t.variant&&{backgroundColor:(e.vars||e).palette.grey.A100,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":Rf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mS.focusVisible}`]:Rf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mS.disabled}`]:Rf({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 ${Dv(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).palette.grey[300],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"},[`&.${mS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mS.disabled}`]:{boxShadow:"none"}})),xS=wy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Rf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},yS(e)))),SS=wy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Kp(n.size)}`]]}})((({ownerState:e})=>Rf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},yS(e)))),wS=d.forwardRef((function(e,t){const n=d.useContext(gS),r=by({props:xf(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:i="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,size:m="medium",startIcon:g,type:v,variant:y="text"}=r,b=Of(r,vS),x=Rf({},r,{color:a,component:i,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:h,size:m,type:v,variant:y}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Rf({},i,Sf({root:["root",a,`${a}${Kp(t)}`,`size${Kp(o)}`,`${a}Size${Kp(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Kp(o)}`],endIcon:["endIcon",`iconSize${Kp(o)}`]},hS,i))})(x),w=g&&Km.jsx(xS,{className:S.startIcon,ownerState:x,children:g}),E=p&&Km.jsx(SS,{className:S.endIcon,ownerState:x,children:p});return Km.jsxs(bS,Rf({ownerState:x,className:ky(n.className,S.root,l),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:ky(S.focusVisible,f),ref:t,type:v},b,{classes:S,children:[w,o,E]}))}));var ES=wS,CS={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 kS="#009845",LS="#3F8AB3",RS="#ffffff",OS="#404040",IS="#333333",PS="#1A1A1A",TS={mode:"light",palette:{primary:{main:OS,contrastText:RS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:OS,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:RS,default:RS,lightest:RS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:LS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:kS,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:RS,alternativeContrastText:OS,excludedContrastText:OS},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)"}}},_S={mode:"dark",palette:{primary:{main:IS,contrastText:RS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:RS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:RS,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:OS,lighter:IS,darker:"#262626",darkest:PS},custom:{focusBorder:LS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:kS,alternative:IS,excluded:PS,mainContrastText:RS,alternativeContrastText:RS,excludedContrastText:RS},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)"}}},NS={},MS=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(mS.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(mS.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(mS.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(mS.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function qS(e){let t=TS,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=_S));const r=JSON.stringify(t);if(NS[r])return NS[r];const o={palette:l(l({type:t.mode},CS.palette),t.palette),typography:l({},CS.typography),shadows:CS.shadows,props:l({},CS.props),shape:l({},CS.shape)};return NS[r]=gy(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Rf({},Of(e,$v),{components:{}});Object.keys(t).forEach((e=>{const n=l.components[e]||{};n.defaultProps=t[e],l.components[e]=n})),Object.keys(a).forEach((e=>{const t=l.components[e]||{};t.defaultProps=a[e],l.components[e]=t})),Object.keys(i).forEach((e=>{const t=l.components[e]||{};t.styleOverrides=i[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=dv(e.spacing);const s=cv(e.breakpoints||{}),c=l.spacing;l.mixins=Rf({gutters:(e={})=>Rf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Rf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Of(o,Bv),f=d||u||"light";return l.palette=Rf({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(l(l({},o),{},{overrides:MS(o)}))),NS[r].name=n,NS[r]}Ef.configure((e=>"njs-".concat("757e","-").concat(e.replace("Mui",""))));var AS=G.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),DS=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:()=>{};const n=e,r=[],o={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));return n[e]=r,t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error("Invalid key: ".concat(JSON.stringify(e)));n[e]=null},dispatch:e=>{r.forEach((t=>t(e?{}:n)))}},a=()=>{const[,e]=d.useState(n);return d.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[a,o]};const[zS,jS]=DS({}),[FS,$S]=DS({}),[BS,WS]=DS({}),[HS,US]=DS({});function VS(e){if(!e.session)return[];const[t]=zS(),n=e?e.id:null;let r=t.get(n);return d.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=US.get(n);t&&(await t.endSelections(e),US.clear(n),WS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===US.get(n))return;r(a),US.set(n,e);const i=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(i),US.set(n,e)}catch(e){6003!==e.code||r?US.clear(n):(await t.abortModal(a),l(!0))}};await l()},end:r};$S.set(n,o);const a={model:t,isInModal:()=>!!US.get(n),isModal:e=>e?US.get(n)===e:!!US.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 a}({app:e}),t.set(n,r),t.dispatch(!0))}),[e]),[r]}const GS=d.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[a]=VS(r),[i,l]=d.useState(n),[s,c]=d.useState(),{theme:u}=d.useMemo((()=>({theme:qS(s)})),[s]),[p,f]=d.useState([]);return d.useEffect((()=>{o&&o()}),[]),d.useImperativeHandle(t,(()=>({setComps(e){f([...e])},setMuiThemeName:c,setContext:e=>l((t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)),getAppSelections:()=>a})),[]),G.createElement(ag,{injectFirst:!0},G.createElement(Fv,{theme:u},G.createElement(AS.Provider,{value:i},p)))}));function KS(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=G.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","4.0.0-alpha.8"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i);ft.createRoot(i).render(G.createElement(GS,{ref:a,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),a.current.setComps(s)})()},remove(e){(async()=>{await o;const t=s.indexOf(e);-1!==t&&s.splice(t,1),a.current.setComps(s)})()},setMuiThemeName(e){(async()=>{await o,a.current.setMuiThemeName(e)})()},context(e){(async()=>{await o,a.current.setContext(e)})()},getAppSelections:async()=>(await o,a.current.getAppSelections())},a,o]}function ZS(e){return kf("MuiSvgIcon",e)}Lf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const XS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],QS=wy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,h,m,g,v,y;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==(a=o.duration)?void 0:a.shorter}),fontSize:{inherit:"inherit",small:(null==(i=e.typography)||null==(l=i.pxToRem)?void 0:l.call(i,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==(y=v.action)?void 0:y.disabled,inherit:void 0}[t.color]}})),YS=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:c=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=Of(n,XS),f=Rf({},n,{color:a,component:i,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 Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},ZS,r)})(f);return Km.jsxs(QS,Rf({as:i,className:ky(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?Km.jsx("title",{children:u}):null]}))}));YS.muiName="SvgIcon";var JS=YS;function ew(e,t){function n(n,r){return Km.jsx(JS,Rf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=JS.muiName,d.memo(d.forwardRef(n))}const tw={configure:e=>{Ef.configure(e)}};var nw=Object.freeze({__proto__:null,capitalize:Kp,createChainedFunction:Zp,createSvgIcon:ew,debounce:Xp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Qp,ownerDocument:Yp,ownerWindow:Jp,requirePropFactory:function(e,t){return()=>null},setRef:ef,unstable_ClassNameGenerator:tw,unstable_useEnhancedEffect:tf,unstable_useId:of,unsupportedProp:function(e,t,n,r,o){return null},useControlled:af,useEventCallback:lf,useForkRef:sf,useIsFocusVisible:vf});const rw=e=>e.scrollTop;function ow(e,t){var n,r;const{timeout:o,easing:a,style:i={}}=e;return{duration:null!=(n=i.transitionDuration)?n:"number"==typeof o?o:o[t.mode]||0,easing:null!=(r=i.transitionTimingFunction)?r:"object"==typeof a?a[t.mode]:a,delay:i.transitionDelay}}function aw(e){return kf("MuiPaper",e)}Lf("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 iw=["className","component","elevation","square","variant"],lw=wy("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 Rf({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&&Rf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Dv("#fff",Ey(t.elevation))}, ${Dv("#fff",Ey(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),sw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Of(n,iw),c=Rf({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Sf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},aw,o)})(c);return Km.jsx(lw,Rf({as:o,ownerState:c,className:ky(u.root,r),ref:t},s))}));var cw=sw;function uw(e){return kf("MuiIconButton",e)}var dw=Lf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const pw=["edge","children","className","color","disabled","disableFocusRipple","size"],fw=wy(fS,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Kp(n.color)}`],n.edge&&t[`edge${Kp(n.edge)}`],t[`size${Kp(n.size)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv(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 Rf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Rf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Rf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dv(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)},{[`&.${dw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),hw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:a,color:i="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium"}=n,u=Of(n,pw),d=Rf({},n,{edge:r,color:i,disabled:l,disableFocusRipple:s,size:c}),p=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:a}=e;return Sf({root:["root",n&&"disabled","default"!==r&&`color${Kp(r)}`,o&&`edge${Kp(o)}`,`size${Kp(a)}`]},uw,t)})(d);return Km.jsx(fw,Rf({className:ky(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var mw=hw;function gw(e){return kf("MuiTypography",e)}Lf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const vw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],yw=wy("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${Kp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Rf({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}))),bw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},xw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},Sw=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiTypography"}),r=(e=>xw[e]||e)(n.color),o=av(Rf({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=bw}=o,f=Of(o,vw),h=Rf({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),m=l||(u?"p":p[d]||bw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Sf({root:["root",a,"inherit"!==e.align&&`align${Kp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},gw,i)})(h);return Km.jsx(yw,Rf({as:m,ref:t,ownerState:h,className:ky(g.root,i)},f))}));var ww=Sw;const Ew=["components","componentsProps","slots","slotProps"],Cw=wy(ux,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kw=d.forwardRef((function(e,t){var n;const r=bv(),o=by({props:e,name:"MuiPopper"}),{components:a,componentsProps:i,slots:l,slotProps:s}=o,c=Of(o,Ew),u=null!=(n=null==l?void 0:l.root)?n:null==a?void 0:a.Root;return Km.jsx(Cw,Rf({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=s?s:i},c,{ref:t}))}));var Lw=kw;function Rw({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 Ow=d.createContext(void 0);function Iw(){return d.useContext(Ow)}function Pw(e){return Km.jsx(ig,Rf({},e,{defaultTheme:vy}))}function Tw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _w(e){return kf("MuiInputBase",e)}var Nw=Lf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Mw=["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"],qw=(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${Kp(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Aw=(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=wy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:qw})((({theme:e,ownerState:t})=>Rf({},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",[`&.${Nw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Rf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),zw=wy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Aw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Rf({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"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Rf({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] + .${Nw.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${Nw.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"})})),jw=Km.jsx(Pw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fw=d.forwardRef((function(e,t){var n;const r=by({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:a,autoFocus:i,className:l,components:s={},componentsProps:c={},defaultValue:u,disabled:p,disableInjectingGlobalStyles:f,endAdornment:h,fullWidth:m=!1,id:g,inputComponent:v="input",inputProps:y={},inputRef:b,maxRows:x,minRows:S,multiline:w=!1,name:E,onBlur:C,onChange:k,onClick:L,onFocus:R,onKeyDown:O,onKeyUp:I,placeholder:P,readOnly:T,renderSuffix:_,rows:N,slotProps:M={},slots:q={},startAdornment:A,type:D="text",value:z}=r,j=Of(r,Mw),F=null!=y.value?y.value:z,{current:$}=d.useRef(null!=F),B=d.useRef(),W=d.useCallback((e=>{}),[]),H=sf(B,b,y.ref,W),[U,V]=d.useState(!1),G=Iw(),K=Rw({props:r,muiFormControl:G,states:["color","disabled","error","hiddenLabel","size","required","filled"]});K.focused=G?G.focused:U,d.useEffect((()=>{!G&&p&&U&&(V(!1),C&&C())}),[G,p,U,C]);const Z=G&&G.onFilled,X=G&&G.onEmpty,Q=d.useCallback((e=>{!function(e,t=!1){return e&&(Tw(e.value)&&""!==e.value||t&&Tw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);tf((()=>{$&&Q({value:F})}),[F,Q,$]);d.useEffect((()=>{Q(B.current)}),[]);let Y=v,J=y;w&&"input"===Y&&(J=Rf(N?{type:void 0,minRows:N,maxRows:N}:{type:void 0,maxRows:x,minRows:S},J),Y=Lx);d.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=Rf({},r,{color:K.color||"primary",disabled:K.disabled,endAdornment:h,error:K.error,focused:K.focused,formControl:G,fullWidth:m,hiddenLabel:K.hiddenLabel,multiline:w,size:K.size,startAdornment:A,type:D}),te=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Sf({root:["root",`color${Kp(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===p&&"sizeSmall",u&&"multiline",f&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",a&&"inputAdornedEnd",d&&"readOnly"]},_w,t)})(ee),ne=q.root||s.Root||Dw,re=M.root||c.root||{},oe=q.input||s.Input||zw;return J=Rf({},J,null!=(n=M.input)?n:c.input),Km.jsxs(d.Fragment,{children:[!f&&jw,Km.jsxs(ne,Rf({},re,!Ry(ne)&&{ownerState:Rf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),L&&L(e)}},j,{className:ky(te.root,re.className,l,T&&"MuiInputBase-readOnly"),children:[A,Km.jsx(Ow.Provider,{value:null,children:Km.jsx(oe,Rf({ownerState:ee,"aria-invalid":K.error,"aria-describedby":o,autoComplete:a,autoFocus:i,defaultValue:u,disabled:K.disabled,id:g,onAnimationStart:e=>{Q("mui-auto-fill-cancel"===e.animationName?B.current:{value:"x"})},name:E,placeholder:P,readOnly:T,required:K.required,rows:N,value:F,onKeyDown:O,onKeyUp:I,type:D},J,!Ry(oe)&&{as:Y,ownerState:Rf({},ee,J.ownerState)},{ref:H,className:ky(te.input,J.className,T&&"MuiInputBase-readOnly"),onBlur:e=>{C&&C(e),y.onBlur&&y.onBlur(e),G&&G.onBlur?G.onBlur(e):V(!1)},onChange:(e,...t)=>{if(!$){const t=e.target||B.current;if(null==t)throw new Error(Op(1));Q({value:t.value})}y.onChange&&y.onChange(e,...t),k&&k(e,...t)},onFocus:e=>{K.disabled?e.stopPropagation():(R&&R(e),y.onFocus&&y.onFocus(e),G&&G.onFocus?G.onFocus(e):V(!0))}}))}),h,_?_(Rf({},K,{startAdornment:A})):null]}))]})}));var $w=Fw;function Bw(e){return kf("MuiOutlinedInput",e)}var Ww=Rf({},Nw,Lf("MuiOutlinedInput",["root","notchedOutline","input"]));const Hw=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Uw={entering:{opacity:1},entered:{opacity:1}},Vw=d.forwardRef((function(e,t){const n=yy(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:a=!0,children:i,easing:l,in:s,onEnter:c,onEntered:u,onEntering:p,onExit:f,onExited:h,onExiting:m,style:g,timeout:v=r,TransitionComponent:y=Fx}=e,b=Of(e,Hw),x=d.useRef(null),S=sf(x,i.ref,t),w=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},E=w(p),C=w(((e,t)=>{rw(e);const r=ow({style:g,timeout:v,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),k=w(u),L=w(m),R=w((e=>{const t=ow({style:g,timeout:v,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),f&&f(e)})),O=w(h);return Km.jsx(y,Rf({appear:a,in:s,nodeRef:x,onEnter:C,onEntered:k,onEntering:E,onExit:R,onExited:O,onExiting:L,addEndListener:e=>{o&&o(x.current,e)},timeout:v},b,{children:(e,t)=>d.cloneElement(i,Rf({style:Rf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Uw[e],g,i.props.style),ref:S},t))}))}));var Gw=Vw;function Kw(e){return kf("MuiBackdrop",e)}Lf("MuiBackdrop",["root","invisible"]);const Zw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Xw=wy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Rf({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"}))),Qw=d.forwardRef((function(e,t){var n,r,o;const a=by({props:e,name:"MuiBackdrop"}),{children:i,className:l,component:s="div",components:c={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:h={},TransitionComponent:m=Gw,transitionDuration:g}=a,v=Of(a,Zw),y=Rf({},a,{component:s,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return Sf({root:["root",n&&"invisible"]},Kw,t)})(y),x=null!=(n=f.root)?n:u.root;return Km.jsx(m,Rf({in:p,timeout:g},v,{children:Km.jsx(Xw,Rf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:ky(b.root,l,null==x?void 0:x.className),ownerState:Rf({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));var Yw=Qw;function Jw(e){return kf("MuiBadge",e)}var eE=Lf("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 tE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],nE=wy("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),rE=wy("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Kp(n.anchorOrigin.vertical)}${Kp(n.anchorOrigin.horizontal)}${Kp(n.overlap)}`],"default"!==n.color&&t[`color${Kp(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Rf({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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.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%",[`&.${eE.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),oE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=by({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:y=99,badgeContent:b,slots:x,slotProps:S,showZero:w=!1,variant:E="standard"}=s,C=Of(s,tE),{badgeContent:k,invisible:L,max:R,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=bf({badgeContent:t,max:r});let i=n;!1!==n||0!==t||o||(i=!0);const{badgeContent:l,max:s=r}=i?a:e;return{badgeContent:l,invisible:i,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:y,invisible:v,badgeContent:b,showZero:w}),I=bf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:b}),P=L||null==k&&"dot"!==E,{color:T=g,overlap:_=m,anchorOrigin:N=c,variant:M=E}=P?I:s,q="dot"!==M?O:void 0,A=Rf({},s,{badgeContent:k,invisible:P,max:R,displayValue:q,showZero:w,anchorOrigin:N,color:T,overlap:_,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Sf({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}`,`anchorOrigin${Kp(n.vertical)}${Kp(n.horizontal)}${Kp(o)}`,`overlap${Kp(o)}`,"default"!==t&&`color${Kp(t)}`]},Jw,i)})(A),z=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:nE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:rE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=Ay({elementType:z,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:ky(null==F?void 0:F.className,D.root,u)}),W=Ay({elementType:j,externalSlotProps:$,ownerState:A,className:ky(D.badge,null==$?void 0:$.className)});return Km.jsxs(z,Rf({},B,{children:[h,Km.jsx(j,Rf({},W,{children:q}))]}))}));var aE=oE;const iE=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=lg("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(nv),a=d.forwardRef((function(e,a){const i=Sv(t),l=av(e),{className:s,component:c="div"}=l,u=rv(l,wv);return Km.jsx(o,sg({as:c,ref:a,className:lv(s,r?r(n):n),theme:i},u))}));return a}({defaultTheme:gy(),defaultClassName:"MuiBox-root",generateClassName:Ef.generate});var lE=iE;function sE(e){return kf("PrivateSwitchBase",e)}Lf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const cE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],uE=wy(fS)((({ownerState:e})=>Rf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),dE=wy("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),pE=d.forwardRef((function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:a,defaultChecked:i,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:y,required:b=!1,tabIndex:x,type:S,value:w}=e,E=Of(e,cE),[C,k]=af({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Iw();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=Rf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Sf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Kp(o)}`],input:["input"]},sE,t)})(I);return Km.jsxs(uE,Rf({component:"span",className:ky(P.root,a),centerRipple:!0,focusRipple:!s,disabled:R,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),L&&L.onFocus&&L.onFocus(e)},onBlur:e=>{m&&m(e),L&&L.onBlur&&L.onBlur(e)},ownerState:I,ref:t},E,{children:[Km.jsx(dE,Rf({autoFocus:n,checked:r,defaultChecked:i,className:P.input,disabled:R,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:y,ref:f,required:b,ownerState:I,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),C?o:u]}))}));var fE=pE,hE=ew(Km.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"),mE=ew(Km.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"),gE=ew(Km.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 vE(e){return kf("MuiCheckbox",e)}var yE=Lf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const bE=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],xE=wy(fE,{shouldForwardProp:e=>xy(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${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${yE.checked}, &.${yE.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${yE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),SE=Km.jsx(mE,{}),wE=Km.jsx(hE,{}),EE=Km.jsx(gE,{}),CE=d.forwardRef((function(e,t){var n,r;const o=by({props:e,name:"MuiCheckbox"}),{checkedIcon:a=SE,color:i="primary",icon:l=wE,indeterminate:s=!1,indeterminateIcon:c=EE,inputProps:u,size:p="medium",className:f}=o,h=Of(o,bE),m=s?c:l,g=s?c:a,v=Rf({},o,{color:i,indeterminate:s,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Rf({},t,Sf({root:["root",n&&"indeterminate",`color${Kp(r)}`]},vE,t))})(v);return Km.jsx(xE,Rf({type:"checkbox",inputProps:Rf({"data-indeterminate":s},u),icon:d.cloneElement(m,{fontSize:null!=(n=m.props.fontSize)?n:p}),checkedIcon:d.cloneElement(g,{fontSize:null!=(r=g.props.fontSize)?r:p}),ownerState:v,ref:t,className:ky(y.root,f)},h,{classes:y}))}));var kE=CE;function LE(e){return kf("MuiCircularProgress",e)}Lf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const RE=["className","color","disableShrink","size","style","thickness","value","variant"];let OE,IE,PE,TE,_E=e=>e;const NE=44,ME=gm(OE||(OE=_E`
108
108
  0% {
109
109
  transform: rotate(0deg);
110
110
  }
@@ -131,5 +131,5 @@ var xt=d,St=vt;function wt(e){for(var t="https://reactjs.org/docs/error-decoder.
131
131
  animation: ${0} 1.4s linear infinite;
132
132
  `),ME))),DE=wy("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),zE=wy("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Kp(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Rf({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&&mm(TE||(TE=_E`
133
133
  animation: ${0} 1.4s ease-in-out infinite;
134
- `),qE))),jE=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Of(n,RE),p=Rf({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Sf({root:["root",n,`color${Kp(r)}`],svg:["svg"],circle:["circle",`circle${Kp(n)}`,o&&"circleDisableShrink"]},LE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((NE-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 Km.jsx(AE,Rf({className:ky(f.root,r),style:Rf({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Km.jsx(DE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Km.jsx(zE,{className:f.circle,style:h,ownerState:p,cx:NE,cy:NE,r:(NE-s)/2,fill:"none",strokeWidth:s})})}))}));var FE=jE;const $E=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],BE=wy("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})=>Rf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),WE=wy(Yw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=by({name:"MuiModal",props:e}),{BackdropComponent:c=WE,BackdropProps:u,classes:p,className:f,closeAfterTransition:h=!1,children:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:L=!1,slotProps:R,slots:O,theme:I}=s,P=Of(s,$E),[T,_]=d.useState(!0),N={closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:L},M=Rf({},s,N,{exited:T}),q=null!=(n=null!=(r=null==O?void 0:O.root)?r:v.Root)?n:BE,A=null!=(o=null!=(a=null==O?void 0:O.backdrop)?a:v.Backdrop)?o:c,D=null!=(i=null==R?void 0:R.root)?i:y.root,z=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop;return Km.jsx(xx,Rf({slots:{root:q,backdrop:A},slotProps:{root:()=>Rf({},Iy(D,M),!Ry(q)&&{as:g,theme:I},{className:ky(f,null==D?void 0:D.className,null==p?void 0:p.root,!M.open&&M.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>Rf({},u,Iy(z,M),{className:ky(null==z?void 0:z.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>_(!1),onTransitionExited:()=>_(!0),ref:t},P,N,{children:m}))}));var UE=HE;function VE(e){return kf("MuiDivider",e)}var GE=Lf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const KE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZE=wy("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})=>Rf({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)`:Dv(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"})),(({theme:e,ownerState:t})=>Rf({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>Rf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>Rf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),XE=wy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Rf({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)`}))),QE=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Of(n,KE),h=Rf({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Sf({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},VE,r)})(h);return Km.jsx(ZE,Rf({as:i,className:ky(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?Km.jsx(XE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var YE=QE;function JE(e){return kf("MuiFormControlLabel",e)}var eC=Lf("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);const tC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],nC=wy("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eC.label}`]:t.label},t.root,t[`labelPlacement${Kp(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Rf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eC.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},{[`& .${eC.label}`]:{[`&.${eC.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),rC=d.forwardRef((function(e,t){var n;const r=by({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:i,disabled:l,disableTypography:s,label:c,labelPlacement:u="end",slotProps:p={}}=r,f=Of(r,tC),h=Iw();let m=l;void 0===m&&void 0!==i.props.disabled&&(m=i.props.disabled),void 0===m&&h&&(m=h.disabled);const g={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===i.props[e]&&void 0!==r[e]&&(g[e]=r[e])}));const v=Rw({props:r,muiFormControl:h,states:["error"]}),y=Rf({},r,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e;return Sf({root:["root",n&&"disabled",`labelPlacement${Kp(r)}`,o&&"error"],label:["label",n&&"disabled"]},JE,t)})(y),x=null!=(n=p.typography)?n:a.typography;let S=c;return null==S||S.type===ww||s||(S=Km.jsx(ww,Rf({component:"span"},x,{className:ky(b.label,null==x?void 0:x.className),children:S}))),Km.jsxs(nC,Rf({className:ky(b.root,o),ownerState:y,ref:t},f,{children:[d.cloneElement(i,g),S]}))}));var oC=rC;var aC=d.createContext();function iC(e){return kf("MuiGrid",e)}const lC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],sC=Lf("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}`)),...lC.map((e=>`grid-xs-${e}`)),...lC.map((e=>`grid-sm-${e}`)),...lC.map((e=>`grid-md-${e}`)),...lC.map((e=>`grid-lg-${e}`)),...lC.map((e=>`grid-xl-${e}`))]),cC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function uC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function dC({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 pC=wy("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,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}(i,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,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>Rf({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 pg({theme:e},fg({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${sC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dC({breakpoints:e.breakpoints.values,values:t})),o=pg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${uC(a)}`,[`& > .${sC.item}`]:{paddingTop:uC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${sC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dC({breakpoints:e.breakpoints.values,values:t})),o=pg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${uC(a)})`,marginLeft:`-${uC(a)}`,[`& > .${sC.item}`]:{paddingLeft:uC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${sC.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=fg({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;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} + ${uC(n)})`;c={flexBasis:e,maxWidth:e}}}a=Rf({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const fC=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,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}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Sf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},iC,t)},hC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiGrid"}),{breakpoints:r}=yy(),o=av(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:p=!1,rowSpacing:f,spacing:h=0,wrap:m="wrap",zeroMinWidth:g=!1}=o,v=Of(o,cC),y=f||h,b=l||h,x=d.useContext(aC),S=c?i||12:x,w={},E=Rf({},v);r.keys.forEach((e=>{null!=v[e]&&(w[e]=v[e],delete E[e])}));const C=Rf({},o,{columns:S,container:c,direction:u,item:p,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:h},w,{breakpoints:r.keys}),k=fC(C);return Km.jsx(aC.Provider,{value:S,children:Km.jsx(pC,Rf({ownerState:C,className:ky(k.root,a),as:s,ref:t},E))})}));var mC=hC;const gC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vC(e){return`scale(${e}, ${e**2})`}const yC={entering:{opacity:1,transform:vC(1)},entered:{opacity:1,transform:"none"}},bC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xC=d.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Fx}=e,v=Of(e,gC),y=d.useRef(),b=d.useRef(),x=yy(),S=d.useRef(null),w=sf(S,o.ref,t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},C=E(c),k=E(((e,t)=>{rw(e);const{duration:n,delay:r,easing:o}=ow({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:bC?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),L=E(s),R=E(f),O=E((e=>{const{duration:t,delay:n,easing:r}=ow({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:bC?o:.666*o,delay:bC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=vC(.75),u&&u(e)})),I=E(p);return d.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Km.jsx(g,Rf({appear:r,in:i,nodeRef:S,onEnter:k,onEntered:L,onEntering:C,onExit:O,onExited:I,onExiting:R,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>d.cloneElement(o,Rf({style:Rf({opacity:0,transform:vC(.75),visibility:"exited"!==e||i?void 0:"hidden"},yC[e],h,o.props.style),ref:w},t))}))}));xC.muiSupportAuto=!0;var SC=xC;function wC(e){return kf("MuiIcon",e)}Lf("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const EC=["baseClassName","className","color","component","fontSize"],CC=wy("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(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]}))),kC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Of(n,EC),c=Rf({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},wC,r)})(c);return Km.jsx(CC,Rf({as:i,className:ky(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));kC.muiName="Icon";var LC=kC;function RC(e){return kf("MuiInputAdornment",e)}var OC,IC=Lf("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const PC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],TC=wy("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Kp(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Rf({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"}))),_C=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Of(n,PC),p=Iw()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Rf({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:i,position:s,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Sf({root:["root",n&&"disablePointerEvents",o&&`position${Kp(o)}`,i,r&&"hiddenLabel",a&&`size${Kp(a)}`]},RC,t)})(h);return Km.jsx(Ow.Provider,{value:null,children:Km.jsx(TC,Rf({as:a,ownerState:h,className:ky(m.root,o),ref:t},u,{children:"string"!=typeof r||l?Km.jsxs(d.Fragment,{children:["start"===s?OC||(OC=Km.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Km.jsx(ww,{color:"text.secondary",children:r})}))})}));var NC=_C;var MC=d.createContext({});function qC(e){return kf("MuiList",e)}Lf("MuiList",["root","padding","dense","subheader"]);const AC=["children","className","component","dense","disablePadding","subheader"],DC=wy("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})=>Rf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),zC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Of(n,AC),u=d.useMemo((()=>({dense:i})),[i]),p=Rf({},n,{component:a,dense:i,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},qC,t)})(p);return Km.jsx(MC.Provider,{value:u,children:Km.jsxs(DC,Rf({as:a,className:ky(f.root,o),ref:t,ownerState:p},c,{children:[s,r]}))})}));var jC=zC;function FC(e){return kf("MuiListItem",e)}var $C=Lf("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var BC=Lf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function WC(e){return kf("MuiListItemSecondaryAction",e)}Lf("MuiListItemSecondaryAction",["root","disableGutters"]);const HC=["className"],UC=wy("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Rf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),VC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Of(n,HC),a=Rf({},n,{disableGutters:d.useContext(MC).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Sf({root:["root",t&&"disableGutters"]},WC,n)})(a);return Km.jsx(UC,Rf({className:ky(i.root,r),ownerState:a,ref:t},o))}));VC.muiName="ListItemSecondaryAction";var GC=VC;const KC=["className"],ZC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],XC=wy("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})=>Rf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Rf({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}},{[`&.${$C.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$C.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$C.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$C.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"}},[`&.${$C.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dv(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})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),QC=wy("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),YC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:E={}}=n,C=Of(n.ContainerProps,KC),k=Of(n,ZC),L=d.useContext(MC),R=d.useMemo((()=>({dense:h||L.dense||!1,alignItems:r,disableGutters:g})),[r,L.dense,h,g]),O=d.useRef(null);tf((()=>{o&&O.current&&O.current.focus()}),[o]);const I=d.Children.toArray(i),P=I.length&&Qp(I[I.length-1],["ListItemSecondaryAction"]),T=Rf({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:P,selected:S}),_=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Sf({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},FC,r)})(T),N=sf(O,t),M=E.root||c.Root||XC,q=w.root||u.root||{},A=Rf({className:ky(_.root,q.className,l),disabled:m},k);let D=s||"li";return a&&(A.component=s||"div",A.focusVisibleClassName=ky($C.focusVisible,b),D=fS),P?(D=A.component||s?D:"div","li"===p&&("li"===D?D="div":"li"===A.component&&(A.component="div")),Km.jsx(MC.Provider,{value:R,children:Km.jsxs(QC,Rf({as:p,className:ky(_.container,f),ref:N,ownerState:T},C,{children:[Km.jsx(M,Rf({},q,!Ry(M)&&{as:D,ownerState:Rf({},T,q.ownerState)},A,{children:I})),I.pop()]}))})):Km.jsx(MC.Provider,{value:R,children:Km.jsxs(M,Rf({},q,{as:D,ref:N},!Ry(M)&&{ownerState:Rf({},T,q.ownerState)},A,{children:[I,x&&Km.jsx(GC,{children:x})]}))})}));var JC=YC;function ek(e){return kf("MuiListItemIcon",e)}var tk=Lf("MuiListItemIcon",["root","alignItemsFlexStart"]);const nk=["className"],rk=wy("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})=>Rf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ok=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Of(n,nk),a=Rf({},n,{alignItems:d.useContext(MC).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Sf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ek,n)})(a);return Km.jsx(rk,Rf({className:ky(i.root,r),ownerState:a,ref:t},o))}));var ak=ok;var ik=Lf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const lk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ck(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uk(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 dk(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uk(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const pk=d.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,p=Of(e,lk),f=d.useRef(null),h=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tf((()=>{r&&f.current.focus()}),[r]),d.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${yf(Yp(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=sf(f,t);let g=-1;d.Children.forEach(a,((e,t)=>{d.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1)))}));const v=d.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),d.cloneElement(e,t)}return e}));return Km.jsx(jC,Rf({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,n=e.key,r=Yp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),dk(t,r,s,l,sk);else if("ArrowUp"===n)e.preventDefault(),dk(t,r,s,l,ck);else if("Home"===n)e.preventDefault(),dk(t,null,s,l,sk);else if("End"===n)e.preventDefault(),dk(t,null,s,l,ck);else if(1===n.length){const o=h.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&uk(r,o);o.previousKeyMatched&&(s||dk(t,r,!1,l,sk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))}));var fk=pk;function hk(e){return kf("MuiPopover",e)}Lf("MuiPopover",["root","paper"]);const mk=["onEntering"],gk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function vk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function xk(e){return"function"==typeof e?e():e}const Sk=wy(UE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wk=wy(cw,{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=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:v=SC,transitionDuration:y="auto",TransitionProps:{onEntering:b}={}}=n,x=Of(n.TransitionProps,mk),S=Of(n,gk),w=d.useRef(),E=sf(w,m.ref),C=Rf({},n,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:f,PaperProps:m,transformOrigin:g,TransitionComponent:v,transitionDuration:y,TransitionProps:x}),k=(e=>{const{classes:t}=e;return Sf({root:["root"],paper:["paper"]},hk,t)})(C),L=d.useCallback((()=>{if("anchorPosition"===l)return i;const e=xk(o),t=(e&&1===e.nodeType?e:Yp(w.current).body).getBoundingClientRect();return{top:t.top+vk(t,a.vertical),left:t.left+yk(t,a.horizontal)}}),[o,a.horizontal,a.vertical,i,l]),R=d.useCallback((e=>({vertical:vk(e,g.vertical),horizontal:yk(e,g.horizontal)})),[g.horizontal,g.vertical]),O=d.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===l)return{top:null,left:null,transformOrigin:bk(n)};const r=L();let a=r.top-n.vertical,i=r.left-n.horizontal;const s=a+t.height,c=i+t.width,u=Jp(xk(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(a<f){const e=a-f;a-=e,n.vertical+=e}else if(s>d){const e=s-d;a-=e,n.vertical+=e}if(i<f){const e=i-f;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:bk(n)}}),[o,l,L,R,f]),[I,P]=d.useState(h),T=d.useCallback((()=>{const e=w.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[O]);d.useEffect((()=>{h&&T()})),d.useImperativeHandle(r,(()=>h?{updatePosition:()=>{T()}}:null),[h,T]),d.useEffect((()=>{if(!h)return;const e=Xp((()=>{T()})),t=Jp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,h,T]);let _=y;"auto"!==y||v.muiSupportAuto||(_=void 0);const N=u||(o?Yp(xk(o)).body:void 0);return Km.jsx(Sk,Rf({BackdropProps:{invisible:!0},className:ky(k.root,c),container:N,open:h,ref:t,ownerState:C},S,{children:Km.jsx(v,Rf({appear:!0,in:h,onEntering:(e,t)=>{b&&b(e,t),T()},onExited:()=>{P(!1)},timeout:_},x,{children:Km.jsx(wk,Rf({elevation:p},m,{ref:E,className:ky(k.paper,m.className)},I?void 0:{style:Rf({},m.style,{opacity:0})},{ownerState:C,children:s}))}))}))}));var Ck=Ek;function kk(e){return kf("MuiMenuItem",e)}var Lk=Lf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Rk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ok=wy(fS,{shouldForwardProp:e=>xy(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})=>Rf({},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"}},[`&.${Lk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dv(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})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Lk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${GE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${GE.inset}`]:{marginLeft:52},[`& .${ik.root}`]:{marginTop:0,marginBottom:0},[`& .${ik.inset}`]:{paddingLeft:36},[`& .${tk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tk.root} svg`]:{fontSize:"1.25rem"}})))),Ik=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:p}=n,f=Of(n,Rk),h=d.useContext(MC),m=d.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=d.useRef(null);tf((()=>{r&&g.current&&g.current.focus()}),[r]);const v=Rf({},n,{dense:m.dense,divider:i,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return Rf({},i,Sf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},kk,i))})(n),b=sf(g,t);let x;return n.disabled||(x=void 0!==u?u:-1),Km.jsx(MC.Provider,{value:m,children:Km.jsx(Ok,Rf({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:ky(y.focusVisible,s),className:ky(y.root,p)},f,{ownerState:v,classes:y}))})}));var Pk,Tk=Ik;const _k=["children","classes","className","label","notched"],Nk=wy("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%"}),Mk=wy("legend")((({ownerState:e,theme:t})=>Rf({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&&Rf({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 qk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ak=wy(Dw,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:qw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Rf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ww.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ww.focused} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ww.error} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ww.disabled} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Rf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Dk=wy((function(e){const{className:t,label:n,notched:r}=e,o=Of(e,_k),a=null!=n&&""!==n,i=Rf({},e,{notched:r,withLabel:a});return Km.jsx(Nk,Rf({"aria-hidden":!0,className:t,ownerState:i},o,{children:Km.jsx(Mk,{ownerState:i,children:a?Km.jsx("span",{children:n}):Pk||(Pk=Km.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}})),zk=wy(zw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Aw})((({theme:e,ownerState:t})=>Rf({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}))),jk=d.forwardRef((function(e,t){var n,r,o,a,i;const l=by({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=Of(l,qk),y=(e=>{const{classes:t}=e;return Rf({},t,Sf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bw,t))})(l),b=Iw(),x=Rw({props:l,muiFormControl:b,states:["required"]}),S=Rf({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(n=null!=(r=m.root)?r:s.Root)?n:Ak,E=null!=(o=null!=(a=m.input)?a:s.Input)?o:zk;return Km.jsx($w,Rf({slots:{root:w,input:E},renderSuffix:e=>Km.jsx(Dk,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?i||(i=Km.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:f,ref:t,type:g},v,{classes:Rf({},y,{notchedOutline:null})}))}));jk.muiName="Input";var Fk=jk,$k=ew(Km.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"),Bk=ew(Km.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 Wk=wy("span")({position:"relative",display:"flex"}),Hk=wy($k)({transform:"scale(1)"}),Uk=wy(Bk)((({theme:e,ownerState:t})=>Rf({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 Vk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Rf({},e,{checked:t});return Km.jsxs(Wk,{className:n.root,ownerState:o,children:[Km.jsx(Hk,{fontSize:r,className:n.background,ownerState:o}),Km.jsx(Uk,{fontSize:r,className:n.dot,ownerState:o})]})}var Gk=d.createContext(void 0);function Kk(e){return kf("MuiRadio",e)}var Zk=Lf("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Xk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Qk=wy(fE,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Zk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Zk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Yk=Km.jsx(Vk,{checked:!0}),Jk=Km.jsx(Vk,{}),eL=d.forwardRef((function(e,t){var n,r;const o=by({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Yk,color:l="primary",icon:s=Jk,name:c,onChange:u,size:p="medium",className:f}=o,h=Of(o,Xk),m=Rf({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:n}=e;return Rf({},t,Sf({root:["root",`color${Kp(n)}`]},Kk,t))})(m),v=d.useContext(Gk);let y=a;const b=Zp(u,v&&v.onChange);let x=c;return v&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(v.value,o.value)),void 0===x&&(x=v.name)),Km.jsx(Qk,Rf({type:"radio",icon:d.cloneElement(s,{fontSize:null!=(n=Jk.props.fontSize)?n:p}),checkedIcon:d.cloneElement(i,{fontSize:null!=(r=Yk.props.fontSize)?r:p}),ownerState:m,classes:g,name:x,checked:y,onChange:b,ref:t,className:ky(g.root,f)},h))}));var tL=eL;function nL(e){return kf("MuiTooltip",e)}var rL=Lf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const oL=["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 aL=wy(Lw,{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})=>Rf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${rL.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${rL.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${rL.arrow}`]:Rf({},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"] .${rL.arrow}`]:Rf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),iL=wy("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${Kp(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Rf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Dv(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},{[`.${rL.popper}[data-popper-placement*="left"] &`]:Rf({transformOrigin:"right center"},t.isRtl?Rf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Rf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${rL.popper}[data-popper-placement*="right"] &`]:Rf({transformOrigin:"left center"},t.isRtl?Rf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Rf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${rL.popper}[data-popper-placement*="top"] &`]:Rf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${rL.popper}[data-popper-placement*="bottom"] &`]:Rf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),lL=wy("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:Dv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let sL=!1,cL=null,uL={x:0,y:0};function dL(e,t){return n=>{t&&t(n),e(n)}}const pL=d.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,p,f,h,m,g,v,y,b,x,S;const w=by({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:C,components:k={},componentsProps:L={},describeChild:R=!1,disableFocusListener:O=!1,disableHoverListener:I=!1,disableInteractive:P=!1,disableTouchListener:T=!1,enterDelay:_=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:q=!1,id:A,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=SC,TransitionProps:Z}=w,X=Of(w,oL),Q=yy(),Y="rtl"===Q.direction,[J,ee]=d.useState(),[te,ne]=d.useState(null),re=d.useRef(!1),oe=P||q,ae=d.useRef(),ie=d.useRef(),le=d.useRef(),se=d.useRef(),[ce,ue]=af({controlled:$,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=of(A),fe=d.useRef(),he=d.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(se.current)}),[]);d.useEffect((()=>()=>{clearTimeout(ae.current),clearTimeout(ie.current),clearTimeout(le.current),he()}),[he]);const me=e=>{clearTimeout(cL),sL=!0,ue(!0),F&&!de&&F(e)},ge=lf((e=>{clearTimeout(cL),cL=setTimeout((()=>{sL=!1}),800+D),ue(!1),j&&de&&j(e),clearTimeout(ae.current),ae.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(J&&J.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(le.current),_||sL&&N?ie.current=setTimeout((()=>{me(e)}),sL?N:_):me(e))},ye=e=>{clearTimeout(ie.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)},{isFocusVisibleRef:be,onBlur:xe,onFocus:Se,ref:we}=vf(),[,Ee]=d.useState(!1),Ce=e=>{xe(e),!1===be.current&&(Ee(!1),ye(e))},ke=e=>{J||ee(e.currentTarget),Se(e),!0===be.current&&(Ee(!0),ve(e))},Le=e=>{re.current=!0;const t=C.props;t.onTouchStart&&t.onTouchStart(e)},Re=ve,Oe=ye,Ie=e=>{Le(e),clearTimeout(le.current),clearTimeout(ae.current),he(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),M)},Pe=e=>{C.props.onTouchEnd&&C.props.onTouchEnd(e),he(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),z)};d.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 Te=sf(C.ref,we,ee,t);G||0===G||(de=!1);const _e=d.useRef(),Ne={},Me="string"==typeof G;R?(Ne.title=de||!Me||I?null:G,Ne["aria-describedby"]=de?pe:null):(Ne["aria-label"]=Me?G:null,Ne["aria-labelledby"]=de&&!Me?pe:null);const qe=Rf({},Ne,X,C.props,{className:ky(X.className,C.props.className),onTouchStart:Le,ref:Te},q?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),uL={x:e.clientX,y:e.clientY},_e.current&&_e.current.update()}}:{}),Ae={};T||(qe.onTouchStart=Ie,qe.onTouchEnd=Pe),I||(qe.onMouseOver=dL(Re,qe.onMouseOver),qe.onMouseLeave=dL(Oe,qe.onMouseLeave),oe||(Ae.onMouseOver=Re,Ae.onMouseLeave=Oe)),O||(qe.onFocus=dL(ke,qe.onFocus),qe.onBlur=dL(Ce,qe.onBlur),oe||(Ae.onFocus=ke,Ae.onBlur=Ce));const De=d.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=H.popperOptions)&&e.modifiers&&(t=t.concat(H.popperOptions.modifiers)),Rf({},H.popperOptions,{modifiers:t})}),[te,H]),ze=Rf({},w,{isRtl:Y,arrow:E,disableInteractive:oe,placement:B,PopperComponentProp:W,touch:re.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Sf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Kp(a.split("-")[0])}`],arrow:["arrow"]},nL,t)})(ze),Fe=null!=(n=null!=(r=V.popper)?r:k.Popper)?n:aL,$e=null!=(o=null!=(a=null!=(i=V.transition)?i:k.Transition)?a:K)?o:SC,Be=null!=(l=null!=(s=V.tooltip)?s:k.Tooltip)?l:iL,We=null!=(c=null!=(u=V.arrow)?u:k.Arrow)?c:lL,He=Oy(Fe,Rf({},H,null!=(p=U.popper)?p:L.popper,{className:ky(je.popper,null==H?void 0:H.className,null==(f=null!=(h=U.popper)?h:L.popper)?void 0:f.className)}),ze),Ue=Oy($e,Rf({},Z,null!=(m=U.transition)?m:L.transition),ze),Ve=Oy(Be,Rf({},null!=(g=U.tooltip)?g:L.tooltip,{className:ky(je.tooltip,null==(v=null!=(y=U.tooltip)?y:L.tooltip)?void 0:v.className)}),ze),Ge=Oy(We,Rf({},null!=(b=U.arrow)?b:L.arrow,{className:ky(je.arrow,null==(x=null!=(S=U.arrow)?S:L.arrow)?void 0:x.className)}),ze);return Km.jsxs(d.Fragment,{children:[d.cloneElement(C,qe),Km.jsx(Fe,Rf({as:null!=W?W:Lw,placement:B,anchorEl:q?{getBoundingClientRect:()=>({top:uL.y,left:uL.x,right:uL.x,bottom:uL.y,width:0,height:0})}:J,popperRef:_e,open:!!J&&de,id:pe,transition:!0},Ae,He,{popperOptions:De,children:({TransitionProps:e})=>Km.jsx($e,Rf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Km.jsxs(Be,Rf({},Ve,{children:[G,E?Km.jsx(We,Rf({},Ge,{ref:ne})):null]}))}))}))]})}));var fL=pL;const[hL,mL]=DS({}),[gL,vL]=DS({}),[yL,bL]=DS({}),[xL,SL]=DS({}),[wL,EL]=DS({}),[,CL]=DS({}),kL=e=>{let{type:t,value:n}=e;const r=CL.get(n.id);CL.set(n.id,{});const o=()=>{vL.clear(n.id),EL.set(n.id,{}),EL.dispatch(!0)},a=()=>{n.removeListener("changed",o),mL.clear(n.id),vL.clear(n.id),bL.clear(n.id),SL.clear(n.id),EL.clear(n.id),CL.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[LL,RL]=DS({},kL);function OL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=LL(),[o]=yL(),[a,i]=d.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 d.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const a=await l;r.set(n,a),i(a)})()}),[t,...c]),[a]}const IL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function PL(e){return OL(IL,e)}const TL=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=l(l({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:l({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=l(l({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function _L(e,t){const n=e?"".concat(e.id):null,[r]=hL(),[o,a]=d.useReducer(TL,n?r.get(n):null),[i]=wL(),[l]=gL();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return d.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function NL(e){return _L(e,"getLayout")}function ML(e){return _L(e,"getAppLayout")}function qL(){const[e,t]=d.useState(),[n,r]=d.useState(),o=d.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return d.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function AL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function DL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=l({fontSize:AL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return G.createElement("i",{style:a},G.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 G.createElement(n,c({key:t},r))}))))}var zL=e=>DL((e=>l(l({},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 jL=e=>DL((e=>l(l({},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 FL=e=>DL((e=>l(l({},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 $L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},BL=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}}(),WL=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},HL=function(e){function t(){var e,n,r;$L(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=WL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),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},WL(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),BL(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,a=n.minimumBatchSize,i=void 0===a?10:a,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,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.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;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,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],a=e[r+1],i=n(o,a);null!=i&&i.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:a})){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}(d.PureComponent);const UL=["S","XS"],VL=e=>e.reduce(((e,t)=>e.concat(t)));function GL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!UL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return VL(t)}async function KL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const ZL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function XL(e){let{selectionState:t,selections:n,checkboxes:r=!1,doc:o=document}=e;const a=d.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1}),i=()=>(t.setSelectableValuesUpdating(),KL({selections:n,elemNumbers:a.current.elemNumbers,isSingleSelect:t.isSingleSelect,toggle:a.current.toggle})),l=e=>{const{startElemNumber:n}=a.current;if(n===e)return;const r=[a.current.startElemNumber,e],o=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 VL(t)}(t.enginePages),i=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)}(r,o);t.updateItems(i,!0,a.current.elemNumbers)},s=d.useCallback((e=>{if(t.selectDisabled())return;const n=+e.target.getAttribute("data-n"),r=!t.isSingleSelect&&ZL(e.nativeEvent);a.current.elemNumbers=[n],a.current.toggle=r,r||t.clearItemStates(!0),t.updateItem(n),a.current.active=!1,i()}),[]),c=d.useCallback((e=>{if(0!==e.button||t.selectDisabled())return;const n=+e.currentTarget.getAttribute("data-n"),r=!t.isSingleSelect&&ZL(e);a.current.isRange=!1,a.current.startElemNumber=n,a.current.elemNumbers=[n],a.current.toggle=r,a.current.active=!0,r||t.clearItemStates(!0),t.updateItem(n),t.isSingleSelect&&(a.current.active=!1,i()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(e,e.currentTarget)}),[]),u=d.useCallback((e=>{if(0===e.button&&a.current.active){if(a.current.active=!1,a.current.isRange){const t=+e.currentTarget.getAttribute("data-n");l(t)}i()}}),[]),p=d.useCallback((e=>{0===e.button&&a.current.active&&(a.current.active=!1,i())}),[]),f=d.useCallback((e=>{if(!a.current.active)return;a.current.isRange||(a.current.isRange=!0,t.isSelected(a.current.startElemNumber)||(t.updateItem(a.current.startElemNumber,!0),a.current.elemNumbers=[]));const n=+e.currentTarget.getAttribute("data-n");l(n)}),[]);d.useEffect((()=>(o.addEventListener("mouseup",p),()=>{o.removeEventListener("mouseup",p)})),[p]),d.useEffect((()=>{const e=()=>{t.clearItemStates(!1)},r=()=>{t.clearItemStates(!0),t.triggerStateChanged()};return n.on("clearItemStates",e),n.on("deactivated",e),n.on("cleared",r),()=>{n.removeListener("clearItemStates",e),n.removeListener("deactivated",e),n.removeListener("cleared",r)}}),[n]);const h={};return r?Object.assign(h,{onChange:s}):Object.assign(h,{onMouseUp:u,onMouseDown:c,onMouseEnter:f}),{interactionEvents:h,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]&&arguments[1],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;const a=!t.isSingleSelect&&ZL(null==o?void 0:o.nativeEvent);a||t.clearItemStates(!0);const i=[];return t.updateItems(e,r,i),t.setSelectableValuesUpdating(),KL({selections:n,elemNumbers:r?i:e,isSingleSelect:t.isSingleSelect,toggle:a})}}}const QL=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var YL=e=>DL(QL(e));const JL=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===JL.ARROW_UP||e===JL.ARROW_DOWN||e===JL.ARROW_LEFT||e===JL.ARROW_RIGHT});function eR(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function tR(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}const nR=e=>+e.getAttribute("data-n"),rR=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},oR=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};function aR(e){let{keyboard:t,hovering:n,setHovering:r,updateKeyScroll:o,containerRef:a,currentScrollIndex:i,isModal:l,constraints:s}=e;const c=e=>{n&&o(e)};return{handleKeyDown:e=>{const{keyCode:n,ctrlKey:r=!1,shiftKey:o=!1}=e.nativeEvent,l=()=>{e.stopPropagation(),e.preventDefault()};switch(n){case JL.PAGE_UP:c({up:i.stop-i.start}),l();break;case JL.PAGE_DOWN:c({down:i.stop-i.start}),l();break;case JL.HOME:c({scrollPosition:r&&o?"overflowStart":"start"}),l();break;case JL.END:c({scrollPosition:r&&o?"overflowEnd":"end"}),l();break;case JL.ARROW_UP:c({up:1}),l();break;case JL.ARROW_DOWN:c({down:1}),l()}if(!t.enabled)return;const s=e.currentTarget.closest(".listbox-container");switch(n){case JL.TAB:o?oR(s)||rR(s):rR(s)||oR(s),l();break;case JL.ENTER:case JL.SPACE:if(!e.target.classList.contains("listbox-container"))return;t.focus(),l();break;case JL.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=tR(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{eR(a.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",0),null==e||e.focus()}})(e),l();break;case JL.ARROW_LEFT:case JL.ARROW_RIGHT:return}},handleOnMouseEnter:()=>{var e,t;(()=>{const e=(null==s?void 0:s.select)||(null==s?void 0:s.active),t=l();return e||t})()||(r(!0),null==a||null===(e=a.current)||void 0===e||null===(t=e.focus)||void 0===t||t.call(e))},handleOnMouseLeave:()=>{var e,t;n&&(r(!1),null==a||null===(e=a.current)||void 0===e||null===(t=e.blur)||void 0===t||t.call(e))}}}const iR="RowColumn",lR={row:"".concat(iR,"-row"),rowBorderBottom:"".concat(iR,"-rowBorderBottom"),column:"".concat(iR,"-column"),fieldRoot:"".concat(iR,"-fieldRoot"),cell:"".concat(iR,"-cell"),labelText:"".concat(iR,"-labelText"),labelDense:"".concat(iR,"-labelDense"),highlighted:"".concat(iR,"-highlighted"),checkboxLabel:"".concat(iR,"-checkboxLabel"),icon:"".concat(iR,"-icon"),S:"".concat(iR,"-S"),XS:"".concat(iR,"-XS"),A:"".concat(iR,"-A"),X:"".concat(iR,"-X"),frequencyCount:"".concat(iR,"-frequencyCount"),barContainer:"".concat(iR,"-barContainer"),bar:"".concat(iR,"-bar"),barSelected:"".concat(iR,"-barSelected"),barWithCheckbox:"".concat(iR,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(iR,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(iR,"-excludedTextWithCheckbox")},sR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,cR=e=>e?"A"===e.qState:null,uR=e=>{let{cell:t,checkboxes:n}=e;return(cR(t)||sR(t))&&n},dR=e=>e.filter((e=>!!e)).join(" ").trim(),pR=e=>e||"-",fR=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}}},hR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},mR=wy("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth"].includes(e)})((e=>{var t,n,r,o,a,i,s,c,u,d;let{theme:p,flexBasisProp:f,isGridMode:h,isGridCol:m,dense:g,frequencyWidth:v}=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===(i=a.content)||void 0===i?void 0:i.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(lR.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(lR.labelText)]:l(l({flexBasis:f,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},hR),{},{whiteSpace:"pre",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)":l(l({},hR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(lR.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(lR.S)]:l(l({},fR({theme:p})),{},{border:h?"none":void 0}),["& .".concat(lR.XS)]:l(l({},fR({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)]:l(l({justifyContent:"flex-end"},hR),{},{flex:"0 1 ".concat(v,"px"),textAlign:"right",paddingLeft:"2px"}),["&.".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:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(lR.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(lR.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var gR=G.memo(mR);const vR="ListBoxCheckbox",yR={cbIcon:"".concat(vR,"-cbIcon"),cbIconChecked:"".concat(vR,"-cbIconChecked"),cbIconExcluded:"".concat(vR,"-cbIconExcluded"),cbIconAlternative:"".concat(vR,"-cbIconAlternative"),checkbox:"".concat(vR,"-checkbox"),dense:"".concat(vR,"-dense")},bR=wy(kE)((e=>{let{theme:t}=e;return{["& .".concat(yR.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(yR.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(yR.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(yR.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(yR.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(yR.dense)]:{padding:"4px 8px"}}})),xR=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return G.createElement("span",{className:e.cbIcon},n&&G.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function SR(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,showGray:i=!0,dataN:l}=e;return G.createElement(bR,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[yR.checkbox,o&&yR.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:xR(yR,i,a),checkedIcon:G.createElement("span",{className:yR.cbIconChecked})})}const wR="ListBoxRadioButton",ER={denseRadioButton:"".concat(wR,"-denseRadioButton"),radioButton:"".concat(wR,"-radioButton")},CR=wy(tL)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(ER.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function kR(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a}=e;return G.createElement(CR,{checked:n,onChange:t,value:r,name:r,className:ER.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function LR(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:a,cell:i,valueTextAlign:l}=e;return G.createElement(ww,{component:"span",variant:"body2",className:dR([lR.labelText,r&&lR.labelDense,o&&uR({cell:i,checkboxes:a})&&lR.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},G.createElement("span",{style:{whiteSpace:"pre"}},t))}function RR(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?G.createElement(LR,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function OR(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=G.createElement(SR,{onChange:t,label:n,checked:a,dense:i,excluded:sR(l),isGridCol:s,showGray:c,dataN:o}),h=G.createElement(kR,{onChange:t,label:n,checked:a,dense:i,dataN:o});return G.createElement(oC,{color:r,control:u?h:f,className:lR.checkboxLabel,label:G.createElement(RR,{label:n,color:r,dense:i,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function IR(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return G.createElement("span",{id:t,className:r?lR.highlighted:""},n)}));return G.createElement(LR,{label:a,dense:n,showGray:r,checkboxes:o})}function PR(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,color:i,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=G.createElement(IR,{labels:n,dense:o,showGray:a,checkboxes:r});return r?G.createElement(OR,{onChange:t,label:f,color:i,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var TR=G.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?G.createElement(OR,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):G.createElement(LR,{label:n,color:r,dense:i,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function _R(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&"-"!==pR(t)))return;const i=(e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")})({qFrequency:t,checkboxes:r,frequencyMax:a});return G.createElement(lE,{className:dR([lR.bar,r&&lR.barWithCheckbox,o&&(r?lR.barSelectedWithCheckbox:lR.barSelected)])},G.createElement(lE,{className:"bar-filled",width:i}))}function NR(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=pR(null==t?void 0:t.qFrequency);return G.createElement(mC,{item:!0,style:{display:"flex",alignItems:"center"},className:lR.frequencyCount,"aria-label":a},G.createElement(ww,{noWrap:!0,color:"inherit",variant:"body2",className:dR([r&&lR.labelDense,lR.labelText,o&&uR({cell:t,checkboxes:n})&&lR.excludedTextWithCheckbox])},a))}function MR(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 qR=wy(mC,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o}=e;return{["&.".concat(lR.fieldRoot)]:l(l({},MR({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{paddingRight:o?"8px":void 0})}}));const AR={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 DR(e){var t;let{layout:n}=e;const{translator:r}=d.useContext(AS),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}const l=r.get(i,[a]);return G.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}function zR(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:i,style:s,data:c}=e;const{onChange:u,onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,pages:g,isLocked:v,column:y=!1,checkboxes:b=!1,textAlign:x,direction:S,layoutOptions:w={},freqIsAllowed:E,isSingleSelect:C,actions:k,frequencyMax:L="",histogram:R=!1,keyboard:O,showGray:I=!0,showTick:P=!0,columnCount:T=1,rowCount:_=1,dataOffset:N,focusListItems:M,listCount:q,itemPadding:A,frequencyWidth:D,translator:z,showSearch:j,isModal:F}=c,{dense:$=!1,dataLayout:B="singleColumn",layoutOrder:W}=w;let H,U;const V={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof i){"row"===W?(H=a*T+i,V.max=_,V.currentIndex=a):(H=i*_+a,V.max=T,V.currentIndex=i);const e=0;U=l(l({},s),{},{left:e+(0===i?s.left:Number(s.left)+i*e),top:0===a?s.top:Number(s.top)+a*e})}else H=o,V.max=q,V.currentIndex=o,U=l({},s);H+=N;const K=d.useRef(null);d.useEffect((()=>{null!==K.current&&(0===V.currentIndex&&M.first&&(K.current.focus(),M.setFirst(!1)),V.currentIndex===V.max-1&&M.last&&(K.current.focus(),M.setLast(!1)))}),[K.current]);const Z=d.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c}=e;const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let d=!1;const p=e=>{d=e};return e=>{let f;const{currentTarget:h,nativeEvent:m}=e,{keyCode:g,shiftKey:v=!1,ctrlKey:y=!1,metaKey:b=!1}=m;switch(g){case JL.TAB:{const e=h.closest(".listbox-container"),t=c();if(h.classList.add("last-focused"),v){rR(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(h.blur(),s.blur());break}case JL.SHIFT:p(!0);break;case JL.SPACE:t([nR(h)],!1,e);break;case JL.ARROW_DOWN:case JL.ARROW_RIGHT:f=u(h,!0),v&&f&&(d&&(t([nR(h)],!0),p(!1)),t([nR(f)],!0));break;case JL.ARROW_UP:case JL.ARROW_LEFT:f=u(h,!1),v&&f&&(d&&(t([nR(h)],!0),p(!1)),t([nR(f)],!0));break;case JL.ENTER:o();break;case JL.ESCAPE:if(!c())return;a();break;case JL.HOME:if(l.setFirst(!0),y){null==i||i("overflowStart");break}null==i||i("start");break;case JL.END:if(l.setLast(!0),y){null==i||i("overflowEnd");break}null==i||i("end");break;case JL.A:if(y||b){n();break}return;case JL.F:if(y||b){r();break}return;default:return}f&&f.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:M,keyboard:O,isModal:F})),[k,null==O?void 0:O.innerTabStops]),X=d.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:g,cellIndex:H})),[g,H]),Q="S"===(null==X?void 0:X.qState)||"XS"===(null==X?void 0:X.qState)||"L"===(null==X?void 0:X.qState)||"XL"===(null==X?void 0:X.qState),Y=d.useMemo((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:a}=e;const i=[t?lR.column:lR.row];return n||i.push(lR.rowBorderBottom),o?(r||("XS"===o.qState?i.push(a?lR.XS:lR.S):"S"===o.qState||"L"===o.qState?i.push(lR.S):a&&cR(o)?i.push(lR.A):a&&sR(o)&&i.push(lR.X)),i):[]})({column:y,histogram:R,checkboxes:b,cell:X,showGray:I})),[null==X?void 0:X.qState,R,$,b]),J=d.useCallback((e=>{e.preventDefault()}),[b]);if(!X)return null;const ee=!["NaN",void 0].includes(null==X?void 0:X.qNum);let te;te=!x||x.auto?ee?"rtl"===S?"left":"right":{rtl:"right",ltr:"left"}[S]:(null==x?void 0:x.align)||"left";const ne="grid"===B&&"column"===W,re=null!==(t=null==X?void 0:X.qText)&&void 0!==t?t:"";let oe;if(null!==(n=X.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=X.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];oe=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=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,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(re,e)}const ae={alignItems:"center",display:"flex",fontSize:"8px"},ie={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===S?8:b?0:void 0,paddingRight:b?0:"rtl"===S?8:0,justifyContent:te},le=0===o,se=b?"auto":"max-content",ce=Q&&v,ue=!b&&Q&&!v,de=!b&&P,pe=b||!P,fe=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=AR[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",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:z,label:re,qState:X.qState,currentIndex:V.currentIndex,maxIndex:V.max,showSearch:j});return G.createElement(gR,{className:lR.barContainer,flexBasisProp:se,style:U,isGridCol:ne,isGridMode:"grid"===B,dense:$,frequencyWidth:D,"data-testid":"listbox.item"},G.createElement(qR,{role:"row","aria-label":fe,"aria-selected":Q,"aria-setsize":V.max,"aria-rowindex":V.currentIndex,ref:K,container:!0,dataLayout:B,cellPaddingRight:pe,layoutOrder:W,itemPadding:A,gap:0,className:dR(["value",...Y]),classes:{root:lR.fieldRoot},onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,onKeyDown:Z,onContextMenu:J,tabIndex:le&&O.innerTabStops?0:-1,"data-n":null==X?void 0:X.qElemNumber},(null==X?void 0:X.qFrequency)&&G.createElement(_R,{qFrequency:null==X?void 0:X.qFrequency,histogram:R,checkboxes:b,isSelected:Q,frequencyMax:L}),G.createElement(mC,{item:!0,style:ie,className:dR([lR.cell,lR.selectedCell]),title:"".concat(re)},oe?G.createElement(PR,{onChange:u,labels:oe,checkboxes:b,dense:$,showGray:I,color:"inherit",qElemNumber:X.qElemNumber,isSelected:Q,cell:X,isGridCol:ne,isSingleSelect:C,valueTextAlign:te}):G.createElement(TR,{onChange:u,label:re,color:"inherit",qElemNumber:X.qElemNumber,isSelected:Q,dense:$,cell:X,isGridCol:ne,showGray:I,isSingleSelect:C,checkboxes:b,valueTextAlign:te})),E&&G.createElement(NR,{cell:X,checkboxes:b,dense:$,showGray:I}),de&&G.createElement(mC,{item:!0,className:lR.icon},ce&&G.createElement(jL,{style:ae,size:"small"}),ue&&G.createElement(YL,{style:ae,size:"small"}))))}var jR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function FR(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||jR(r)&&jR(o)))return!1;var r,o;return!0}function $R(e,t){var n;void 0===t&&(t=FR);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var BR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function WR(e){cancelAnimationFrame(e.id)}function HR(e,t){var n=BR();var r={id:requestAnimationFrame((function o(){BR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var UR=-1;function VR(e){if(void 0===e&&(e=!1),-1===UR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),UR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return UR}var GR=null;function KR(e){if(void 0===e&&(e=!1),null===GR||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?GR="positive-descending":(t.scrollLeft=1,GR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),GR}return GR}var ZR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function XR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,$x(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$x(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=$R((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=$R((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,d=r._getItemStyleCache(g&&l,g&&s,g&&c),f=e+":"+t;if(d.hasOwnProperty(f))o=d[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===s;d[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=$R((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(KR()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"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&&WR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Px(t,e),t.getDerivedStateFromProps=function(e,t){return QR(e,t),v(e),null};var y=t.prototype;return y.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)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=VR();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 y=i(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>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,b):g})},y.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()},y.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(KR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&WR(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?ZR:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],C=w[1],k=this._getVerticalRangeToRender(),L=k[0],R=k[1],O=[];if(r>0&&v)for(var I=L;I<=R;I++)for(var P=E;P<=C;P++)O.push(d.createElement(t,{columnIndex:P,data:p,isScrolling:b?S:void 0,key:h({columnIndex:P,data:p,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,P)}));var T=i(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Rx({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},d.createElement(c||u||"div",{children:O,ref:s,style:{height:T,pointerEvents:S?"none":void 0,width:_}}))},y._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 a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||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]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=h(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(a-1,p+g)),d,p]},t}(d.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var QR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},YR=function(e,t){return e};function JR(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=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,$x(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$x(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=$R((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=$R((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);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"===i||"horizontal"===s,h="rtl"===i,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=$R((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(KR()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,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&&WR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=HR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Px(t,e),t.getDerivedStateFromProps=function(e,t){return eO(e,t),u(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=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?VR():0:s.scrollHeight>s.clientHeight?VR():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.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()},p.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 a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(KR()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&WR(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,p=e.itemKey,f=void 0===p?YR:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===o||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],k=E[1],L=[];if(c>0)for(var R=C;R<=k;R++)L.push(d.createElement(t,{data:u,key:f(R,u),index:R,isScrolling:y?x:void 0,style:this._getItemStyle(R)}));var O=r(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Rx({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},d.createElement(l||s||"div",{children:L,ref:i,style:{height:S?"100%":O,pointerEvents:x?"none":void 0,width:S?O:"100%"}}))},p._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 a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(d.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var eO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},tO=XR({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,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+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,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);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,a=e.width,i=t*r,l=Math.ceil((a+n-i)/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,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),nO=JR({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,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"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+a);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,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const rO="#BBB",oO="#f1f1f1",aO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function iO(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=((e,t,n,r)=>e===t*n+r+n)(l,u,c?a:o,s),h=!!s&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:lO,StyledFixedSizeGrid:sO}=function(){const e=e=>({scrollbarColor:"".concat(rO," ").concat(oO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:oO},"&::-webkit-scrollbar-thumb":{backgroundColor:rO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Dm(nO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(aO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Dm(tO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(aO.styledScrollbars)]:e(n)}}))}}();function cO(e){let{layout:t,width:n,height:r,listCount:o,count:a,textWidth:i,freqIsAllowed:l,checkboxes:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,m=l?40:0,g=s?20:0;let v=56+m+g;!s&&v>=80&&(v+=20);let y,b,x,S,w=i+18+m+g;!s&&w>=80&&(w+=20),w=Math.min(150,Math.max(w,v));const E="grid"===h;let C=f?20:E?32:29;E&&(C+=4);const k=null!=r?r:8*C;if(u){let e=n;"row"===u?(y={overflowX:"hidden"},e+=8,({rowCount:S,columnWidth:x,columnCount:b}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-10;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:w,itemMinWidth:v}))):(y={overflowY:"hidden"},({rowCount:S,columnWidth:x,columnCount:b}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:C,listCount:o,listHeight:k,columnAutoWidth:w,containerWidth:e,itemMinWidth:v})))}b=("singleColumn"===h?1:b)||1,S=("singleColumn"===h?a:S)||o;const L=c.dense?838e3:577e3;S=Math.min(S,L);const R=Math.floor(3355e4/x);b=Math.min(b,R)||1;const O=S*b;return{columnCount:b,columnWidth:x,rowCount:S,overflowStyling:y,itemHeight:C,listHeight:k,scrollBarWidth:10,count:a,listCount:Math.min(o,O),maxCount:{row:L,column:R},itemPadding:4,frequencyWidth:40}}const uO=(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)));return n.measureText(e).width};function dO(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function pO(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;const a=null!=t&&t.length&&o?(e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r})({pages:t,minimumBatchSize:n,count:r}):r;return a||0}const[fO,hO]=DS({});function mO(e){const t="".concat(e.id),[n]=fO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const gO=wy(ww,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function vO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=d.useContext(AS);return G.createElement(fL,{title:o?a.get(n):""},G.createElement(gO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var yO={},bO={},xO={get exports(){return bO},set exports(e){bO=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(xO);var SO,wO={},EO=r(nw);var CO=bO;Object.defineProperty(yO,"__esModule",{value:!0});var kO=yO.default=void 0,LO=CO((SO||(SO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=EO}(wO)),wO)),RO=Km,OO=(0,LO.default)((0,RO.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");kO=yO.default=OO;const IO=wy(cw)((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}})),PO=wy("div")((()=>({paddingLeft:"6px",flexGrow:1}))),TO=wy("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),_O=wy(kO)((()=>({fontSize:"14px"})));function NO(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return G.createElement(IO,{left:l,style:{maxWidth:i}},G.createElement(PO,null,G.createElement(vO,{text:t,dense:r,width:s,tooltip:c})),G.createElement(TO,{dense:r},a&&G.createElement(mw,{"aria-label":"close",onClick:()=>n()},G.createElement(_O,null))))}function MO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>80,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["none",void 0].includes(r);return!(!o||!i&&!a)}const qO=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,"))")},AO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=d.useState(),[a,i]=d.useState(n);return d.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=qO(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}},DO=["isLoadingData"],zO=wy("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function jO(e){var t,n,r,o;let{model:a,app:i,constraints:s,layout:p,selections:f,selectionState:h,direction:m,checkboxes:g,height:v,width:y,frequencyMode:b,update:x,fetchStart:S,postProcessPages:w,calculatePagesHeight:E=!1,keyboard:C={},showGray:k=!0,scrollState:L,selectDisabled:R=(()=>!1),keyScroll:O={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:P,onCtrlF:T,showSearch:_,isModal:N}=e;const{translator:M}=d.useContext(AS),[q,A]=d.useState(!1),D=!(!p||!p.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:z=g,histogram:j}=null!=p?p:{},F=d.useRef(null),$=d.useRef({queue:[],validPages:!1,dataOffset:0}),B=d.useRef({pages:[]}),{frequencyMax:W,awaitingFrequencyMax:H}=AO(i,p),U=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=d.useState(!1),[u,p]=d.useState([]);let[f]=d.useState(0);const h=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const d=!!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],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>f?n.start-f:0,qHeight:f,qLeft:0,qWidth:1},{qTop:n.start,qHeight:f,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,p(r),c(!1),e()}));o&&o(a)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(f=t),h}},pages:u,isLoading:s}}({local:$,loaderRef:F,model:a,fetchStart:S,scrollTimeout:0,postProcessPages:w,listData:B}),V=u(U,DO),{setStoreValue:K}=mO(a),Z=d.useCallback(V.loadMoreItems,[p]),[X,Q]=d.useState({show:!1,dismissed:!1}),[Y,J]=d.useState([]);null!=V&&V.pages&&(h.update({setPages:J,pages:V.pages,isSingleSelect:D,selectDisabled:R,layout:p}),V.pages.length&&!H&&(null==P||P()));const ee=d.useCallback((e=>{if(null==Y||!Y.length||!$.current.validPages)return!1;$.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Y.filter((e=>t(e)))[0];return n&&t(n)}),[p,Y]),{interactionEvents:te,select:ne}=XL({selectionState:h,selections:f,checkboxes:z,doc:document}),{layoutOptions:re={}}=p||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=l({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;F.current._listRef.scrollToItem(n)},le=()=>{if($.current.queue=[],$.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===O.state.scrollPosition;if(p&&p.qSelectionInfo.qInSelections||e)return void(e&&O.reset());$.current.dataOffset=0,ie(0)}};x&&x.call(null,le),d.useEffect((()=>{L&&!q&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),A(!0))}),[F.current]),d.useEffect((()=>{le()}),[p,$.current.dataOffset]);const se=(e=>{const t=d.useMemo((()=>"text"in e?e:{}),[e]);return d.useMemo((()=>uO(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:dO(p),font:"14px Source sans pro"});let ce=100;const ue="grid"!==re.dataLayout,de=null==p||null===(t=p.qListObject.qSize)||void 0===t?void 0:t.qcy,pe=pO({pages:Y,minimumBatchSize:ce,count:de,calculatePagesHeight:E,layoutOptions:re,model:a});let fe=MO({itemWidth:y,layout:p,frequencyMode:b});const he=cO({layout:p,width:y,height:v,listCount:pe,count:de,textWidth:se,freqIsAllowed:fe,checkboxes:z});he.columnWidth&&(fe=MO({itemWidth:he.columnWidth,layout:p,frequencyMode:b}));const{listCount:me}=he;K("listCount",me);const ge=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i: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=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:p,offset:$.current.dataOffset});$.current.dataOffset=n,r&&h.triggerStateChanged(),ie(t)};d.useEffect((()=>{const e=O.state;e.up?ie(I.state.start-e.up):e.down?ie(I.state.stop+e.down):e.scrollPosition&&ge(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&O.reset()}),[O.state.up,O.state.down,O.state.scrollPosition]);const{textAlign:ve}=(null==p?void 0:p.qListObject.qDimensionInfo)||{},[ye,be]=d.useState({first:!1,last:!1}),{List:xe,Grid:Se}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:i,selectDisabled:s,interactionEvents:u,frequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:y,keyboard:b,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:L,focusListItems:R,setCurrentScrollIndex:O,constraints:I,frequencyMax:P,freqIsAllowed:T,translator:_,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:A,itemPadding:D,listHeight:z,itemHeight:j,rowCount:F,columnCount:$,frequencyWidth:B}=E||{},W=("grid"===q.dataLayout?A:n)>80,H={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:aO.styledScrollbars},U=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=l(l({isLocked:U,column:!a,pages:i},U||s()?{}:u),{},{checkboxes:r,layoutOptions:q,frequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,itemPadding:D,frequencyWidth:B,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:P,histogram:p,keyboard:b,showGray:x,showTick:W,dataOffset:o.current.dataOffset,focusListItems:R,direction:w,translator:_,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,G.createElement(lO,c({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:z,width:n,itemCount:C,itemData:l(l({},V),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),iO({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,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(l({},e))},ref:a}),zR)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:i,scrollBarWidth:s}=E,{layoutOrder:u}=q||{},d=Math.min(z,F*j+s);return o.current.listRef=a,G.createElement(sO,c({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:$,columnWidth:A,rowCount:F,rowHeight:j,style:l({},i),itemData:l(l({},V),{},{column:void 0,columnCount:$,rowCount:F}),onItemsRendered:e=>{var n,a;const i="row"===u;O({start:i?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:i?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,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=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:$});iO({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,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(l)},ref:a}),zR)}}}({direction:m,layout:p,height:v,width:y,checkboxes:z,frequencyMode:b,histogram:j,keyboard:C,showGray:k,interactionEvents:te,select:ne,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:T,textAlign:ve,isVertical:ue,pages:Y,selectDisabled:R,isSingleSelect:D,selections:f,scrollState:L,local:$,sizes:he,listCount:me,overflowDisclaimer:{state:X,set:e=>Q((t=>l(l({},t),{},{show:e})))},setScrollPosition:ge,focusListItems:{first:ye.first,setFirst:e=>be((t=>l(l({},t),{},{first:e}))),last:ye.last,setLast:e=>be((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:s,frequencyMax:W,freqIsAllowed:fe,translator:M,showSearch:_,isModal:N}),{columnWidth:we,listHeight:Ee,itemHeight:Ce}=he||{};return ue||(ce=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:we,listHeight:Ee,itemHeight:Ce})),G.createElement(zO,null,G.createElement(DR,{className:"screenReaderOnly",layout:p}),!me&&G.createElement(vO,{width:y,text:"Listbox.NoMatchesForYourTerms"}),G.createElement(HL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:Z.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:F,role:"grid"},ue?xe:Se),X.show&&!X.dismissed&&G.createElement(NO,{text:"Listbox.ItemsOverflow",dismiss:()=>Q((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==F||null===(n=F.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==re?void 0:re.dense}))}const FO=e=>l(l({},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"}}]}),$O=e=>l(l({},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"}}]}),BO=e=>l(l({},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"}}]}),WO=e=>l(l({},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 HO=e=>{let{layout:t,model:n,translator:r,selectionState:o}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:FO,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:BO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:$O,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:WO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}]};const UO=e=>l(l({},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 VO(e){const t=yy(),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 GO={className:"njs-cell-action"},KO=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=yy(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=VO(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&r.keyboardAction():null,p="actions-toolbar-".concat(r.key);return G.createElement(mw,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:d,disabled:l,style:s,className:[GO.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":p},c&&DL(r.getSvgIconShape()),o&&G.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),ZO=e=>l(l({},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"}}]}),XO=e=>l(l({},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 QO=e=>DL(XO(e));const YO="njs-action-toolbar-more",JO={icon:"".concat("More","-icon")},eI=wy(Ck)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(JO.icon)]:{color:t.palette.text.primary}}}));function tI(e){let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:a}=VO(t);return r?null:G.createElement(Tk,{title:t.label,onClick:()=>{t.action(),n()},disabled:o,tabindex:"0"},a&&G.createElement(ak,{className:JO.icon},DL(t.getSvgIconShape())),G.createElement(ww,{noWrap:!0},t.label))}const nI=G.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:i={},onCloseOrActionClick:s=(()=>{})}=e;return n.length>0&&G.createElement(eI,c({},a,{onClose:s,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:YO}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:l({pointerEvents:"auto",maxWidth:"250px"},i)}}),G.createElement(fk,{id:"moreMenuList"},n.map(((e,t)=>G.createElement(tI,{key:t,item:e,onActionClick:s})))))}));function rI(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r}=e;return e=>{const{target:o,nativeEvent:a}=e,{keyCode:i}=a;switch(i){case JL.ARROW_LEFT:case JL.ARROW_DOWN:case JL.ARROW_RIGHT:case JL.ARROW_UP:if(o.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(o);(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()})([JL.ARROW_LEFT,JL.ARROW_DOWN].includes(i)?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case JL.SPACE:e.preventDefault();break;case JL.TAB:if(t&&null!=n&&n.refocusContent){(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent())}}}}const oI="ActionsToolbar",aI={item:"".concat(oI,"-item"),itemSpacing:"".concat(oI,"-itemSpacing"),firstItemSpacing:"".concat(oI,"-firstItemSpacing"),lastItemSpacing:"".concat(oI,"-lastItemSpacing")},iI=wy(Ck)((e=>{let{theme:t}=e;return{["& .".concat(aI.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(aI.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(aI.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),lI="njs-action-toolbar-popover",sI=G.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],first:a=!1,last:i=!1,addAnchor:l=!1,isRtl:s=!1}=e;return o.length>0?G.createElement(mC,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>{let s=[];const c=a&&0===n,u=i&&o.length-1===n;return c&&!u&&(s=[aI.firstItemSpacing,aI.item]),u&&!c&&(s=[...s,aI.lastItemSpacing,aI.item]),c||u||0!==s.length||(s=[aI.itemSpacing,aI.item]),G.createElement(mC,{item:!0,key:e.key,className:s.join(" ").trim()},G.createElement(KO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:l}))}))):null})),cI={pointerEvents:"none"},uI={vertical:"bottom",horizontal:"right"};function dI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={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:p="ltr"}=e;const f=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:a}=d.useContext(AS);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:XO},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:ZO},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:QL}]}(i),{translator:h,keyboardNavigation:m}=d.useContext(AS),[g,v]=d.useState(!1),y={vertical:7,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=d.useRef(),x=d.useRef(),S=yy(),w=d.useMemo((()=>({margin:S.spacing(.5,0)}))),E=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]},C=d.useMemo((()=>rI({keyboardNavigation:m,focusHandler:c,getEnabledButton:E})),[m,c,E]);d.useEffect((()=>()=>{v(!1)}),[s.show,r,i.show]),d.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=E(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=E(!0);e&&e.focus()}))}),[]);let k=l.enabled,L=l.actions;const R=l.alignTo||x,O=o.filter((e=>!e.hidden));if(O.length>a){const e=O.splice(-(O.length-a)-1);k=!0,L=[...e,...l.actions]}if(!i.show&&0===O.length)return null;const I={key:"more",label:h.get("Menu.More"),getSvgIconShape:UO,hidden:!1,active:g,enabled:()=>k,action:()=>v(!g)},P=O.length>0,T=L.length>0,_=P&&i.show||T&&i.show,N="rtl"===p,M=G.createElement(mC,{ref:b,onKeyDown:C,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:N?"row-reverse":"row"}},P&&G.createElement(sI,{actions:O,first:!0,last:!T&&!i.show}),T&&G.createElement(sI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:x,ariaExpanded:g,actions:[I],first:!P,last:!i.show,addAnchor:!0}),_&&G.createElement(mC,{item:!0,className:aI.itemSpacing,style:w},G.createElement(YE,{orientation:"vertical"})),i.show&&G.createElement(sI,{className:"actions-toolbar-default-actions",actions:f,first:!P&&!T,last:!0,isRtl:N}),g&&G.createElement(nI,{show:g,actions:L,alignTo:R,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return s.show?G.createElement(iI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:y,transformOrigin:uI,hideBackdrop:!0,style:cI,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:lI,style:{pointerEvents:"auto",padding:S.spacing(.8)}}},M):r&&M}var pI=e=>DL((e=>l(l({},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 fI="/qListObjectDef",hI=wy(NC)((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}})),mI=wy(Fk)((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 gI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:p}=e;const{translator:f}=d.useContext(AS),[h,m]=d.useState(""),[g,v]=d.useState(!1),y=d.useRef(),b=yy(),{getStoreValue:x}=mO(r),S="rtl"===u,w=S?"right":"left",E=async()=>{if(t.isModal())try{await r.abortListObjectSearch(fI)}finally{m("")}};d.useEffect((()=>{i||E()}),[i]),d.useEffect((()=>(t.on("deactivated",E),()=>{t.removeListener&&t.removeListener("deactivated",E)})),[]),d.useEffect((()=>{if(g&&y.current){const e=h.length-1;y.current.setSelectionRange(e,e),v(!1)}}),[g,y.current]);const C=async()=>{let e;return await r.searchListObjectFor(fI,h)&&h.length&&x("listCount")>0&&(e=r.acceptListObjectSearch(fI,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),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 i&&!1!==c?G.createElement(mI,{startAdornment:G.createElement(hI,{position:"start"},G.createElement(pI,{size:a?"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(9,"px")},a&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:S?"row-reverse":"row"}],inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m("**"),v(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?r.searchListObjectFor(fI,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;p&&p();break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(w)},"data-testid":"search-input-field"}}):null}function vI(e){return Object.keys(ne.prototype).forEach((t=>{e[t]=ne.prototype[t]})),ne.init(e),e}const yI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!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():(a=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!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 i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,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 vI(l),l},bI=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 xI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=VS(e),[i]=NL(t),l=t?t.id:null,[s]=FS(),[c]=BS(),u=s.get(e.id);let p=c.get(l);return d.useEffect((()=>{a&&t&&!p&&(p=yI({appSelections:a,appModal:u,model:t}),c.set(l,p),c.dispatch(!0))}),[a,t]),d.useEffect((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=bI({elements:o,objectSelections:p,options:r});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.isActive()&&p.confirm(),p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),d.useEffect((()=>{p&&p.setLayout(i)}),[p,i]),[p]}function SI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:a,pages:i,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=a;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!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=GL(i),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[l(l({},n),{},{qState:r}),...t.slice(1)]}));return l(l({},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 wI=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 EI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c}=e;const u=Boolean(null==l?void 0:l.qLibraryId),p=o&&Boolean(t.current),[f,h]=d.useState(0),m=yy(),g=d.useRef(),[v]=OL({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}},i,l,s),y=d.useCallback((()=>{v.lock("/qListObjectDef")}),[v]),b=d.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:x}=d.useContext(AS),S=d.useRef(),w=d.useRef(),[E]=xI(i,v,w),[C]=NL(v),[k]=d.useState((()=>SI()));if(d.useEffect((()=>{E&&p&&(E.isModal(v)||E.goModal("/qListObjectDef"))}),[E,p]),!v||!C||!x)return null;const L=!0===C.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const n="escapeKeyDown"!==t;E.noModal(n),a()},O=HO({layout:C,model:v,translator:x,selectionState:k}),I=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return wI(t,"qSelected",0)+wI(t,"qSelectedExcluded",0)+wI(t,"qLocked",0)+wI(t,"qLockedExcluded",0)>0}(C);return G.createElement(Ck,{open:p,onClose:R,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},G.createElement(mC,{container:!0,direction:"column",gap:0,ref:w},G.createElement(mC,{item:!0,container:!0,style:{padding:m.spacing(1)}},G.createElement(mC,{item:!0},L?G.createElement(mw,{onClick:b,disabled:!L,size:"large"},G.createElement(jL,{title:x.get("Listbox.Unlock")})):G.createElement(mw,{onClick:y,disabled:!I,size:"large"},G.createElement(FL,{title:x.get("Listbox.Lock")}))),G.createElement(mC,{item:!0,xs:!0}),G.createElement(mC,{item:!0},G.createElement(dI,{more:{enabled:!L,actions:O,alignTo:S,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:E,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),G.createElement(mC,{item:!0,xs:!0},G.createElement("div",{ref:S}),G.createElement(mC,{item:!0,ref:g},G.createElement(gI,{visible:!0,model:v,listCount:f,selections:E,selectionState:k,keyboard:{enabled:!1},autoFocus:null==c||c})),G.createElement(jO,{model:v,app:i,layout:C,selections:E,selectionState:k,direction:"ltr",onSetListCount:e=>h(e),onCtrlF:()=>{const e=g.current.querySelector("input");null==e||e.focus()}}))))}function CI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=d.useContext(AS),s=a||d.useRef(),c=yy(),[u,p]=d.useState(!1),f=e=>{e.currentTarget.contains(e.target)&&p(!u)},h=()=>{p(!1),i()},m=t.selections[r];void 0===m.qTotal&&(m.qTotal=0);const g=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},v=(g.qSelected+g.qLocked)/m.qTotal,y=g.qAlternative/m.qTotal,b=(g.qExcluded+g.qLockedExcluded+g.qSelectedExcluded)/m.qTotal,x=g.qSelected+g.qSelectedExcluded+g.qLocked+g.qLockedExcluded,S=0===x&&0===m.qTotal;let w="";m.qTotal===x&&m.qTotal>1?w=l.get("CurrentSelections.All"):x>1&&m.qTotal?w=l.get("CurrentSelections.Of",[x,m.qTotal]):m.qSelectedFieldSelectionInfo&&(w=m.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(w="".concat(t.states[r],": ").concat(w));const E=[{color:c.palette.selected.main,ratio:v},{color:c.palette.selected.alternative,ratio:y},{color:c.palette.selected.excluded,ratio:b}];E.forEach(((e,t)=>{e.offset=t?E[t-1].offset+E[t-1].ratio:0}));let C=null,k=null,L=null,R=null;return a||(C=G.createElement(mC,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},w)),m.qLocked?k=G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(jL,null))):m.qOneAndOnlyOne||(k=G.createElement(mC,{item:!0},G.createElement(mw,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])},size:"large"},G.createElement(zL,null)))),L=G.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===S&&E.map((e=>G.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=G.createElement(mC,{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&&f||null},C,k,L,u&&G.createElement(EI,{alignTo:s,show:u,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),a?G.createElement(EI,{alignTo:s,show:!0,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var kI=e=>DL((e=>l(l({},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 LI={item:"".concat("MultiState","-item")},RI=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(LI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function OI(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=d.useState(!!r),[l,s]=d.useState(-1),[c,u]=d.useState(r?r.current:null),p=r||d.useRef(),{translator:f}=d.useContext(AS),h=f.get("Selection.ClearAllStates"),m=()=>{s(-1),o()};let g=null;r||(g=G.createElement(G.Fragment,null,G.createElement(mC,{item:!0,xs:!0,zeroMinWidth:!0},G.createElement(aE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},G.createElement(ww,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),G.createElement(mC,{item:!0},G.createElement("div",{style:{width:"12px"}})),G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(kI,null)))));const v=G.createElement(jC,{dense:!0},G.createElement(JC,{title:h,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},G.createElement(ES,{variant:"contained",fullWidth:!0},h)),t.states.map(((e,r)=>G.createElement(JC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},G.createElement(lE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},G.createElement(CI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),y=G.createElement(Ck,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},v),b=r?y:G.createElement(RI,{container:!0,gap:0,className:LI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),p.current=e.currentTarget,i(!a))}},g,a&&y,l>-1&&G.createElement(EI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?G.createElement(EI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const II="More",PI={item:"".concat(II,"-item"),badge:"".concat(II,"-badge")},TI=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(PI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(PI.badge)]:{padding:t.spacing(0,1)}}}));function _I(e){let{items:t=[],api:n}=e;const r=yy(),[o,a]=d.useState(!1),[i,l]=d.useState(-1),[s,c]=d.useState(null),u=d.useRef(),p=()=>{l(-1)};let f=null;return i>-1&&(f=t[i].states.length>1?G.createElement(OI,{field:t[i],api:n,moreAlignTo:u,onClose:p}):G.createElement(CI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:p})),G.createElement(TI,{container:!0,gap:0,className:PI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},G.createElement(mC,{item:!0},G.createElement(lE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(kI,null))),o&&G.createElement(Ck,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},G.createElement(jC,{dense:!0},t.map(((e,t)=>G.createElement(JC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},G.createElement(lE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?G.createElement(OI,{field:e,api:n}):G.createElement(CI,{field:e,api:n}))))))),f)}function NI(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 MI(e){let{api:t,app:n}=e;const r=yy(),[o]=PL(n),[a]=NL(o),[i,l]=d.useState({items:[],more:[]}),[s]=HS(),[c,u]=qL(),[p,f]=d.useState(0);return d.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-72,n=Math.floor(t/120);f(n)}),[u]),d.useEffect((()=>{if(!(n&&o&&a&&p))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&NI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>NI(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);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 p<r.length&&(o=r.splice(p-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),p]),G.createElement(mC,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>G.createElement(mC,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?G.createElement(OI,{field:e,api:t}):G.createElement(CI,{field:e,api:t})))),i.more.length>0&&G.createElement(mC,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},G.createElement(_I,{items:i.more,api:t})))}var qI=e=>DL((e=>l(l({},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 AI=e=>DL((e=>l(l({},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));function DI(e){const[t]=PL(e),[n]=NL(t),[r]=ML(e),[o,a]=d.useState(null);return d.useEffect((()=>{r&&t&&n&&((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)})(t,n,r)}),[r,t,n]),d.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})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}function zI(e){let{api:t,app:n}=e;const{translator:r}=d.useContext(AS),[o]=DI(n);return G.createElement(mC,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},G.createElement(mC,{item:!0},G.createElement(mw,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},G.createElement(qI,null))),G.createElement(mC,{item:!0},G.createElement(mw,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},G.createElement(AI,null))),G.createElement(mC,{item:!0},G.createElement(mw,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},G.createElement(QO,null))))}const jI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function FI(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function $I(){return jI.map(FI).join("")}function BI(e){let{app:t}=e;const n=yy(),[r]=VS(t);return r?G.createElement(mC,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},G.createElement(mC,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},G.createElement(zI,{api:r,app:t})),G.createElement(mC,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},G.createElement(MI,{api:r,app:t}))):null}function WI(e){let{element:t,app:n}=e;return wp.createPortal(G.createElement(BI,{app:n}),t,$I())}var HI=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},UI=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}}(),VI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GI=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},KI=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},ZI=void 0;ZI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var XI=null,QI=null,YI=ZI.clearTimeout,JI=ZI.setTimeout,eP=ZI.cancelAnimationFrame||ZI.mozCancelAnimationFrame||ZI.webkitCancelAnimationFrame,tP=ZI.requestAnimationFrame||ZI.mozRequestAnimationFrame||ZI.webkitRequestAnimationFrame;function nP(e){var t=void 0,n=void 0,r=void 0,o=void 0,a=void 0,i=void 0,l=void 0,s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){var 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},a=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)){var t=this;i(this),this.__resizeRAF__&&XI(this.__resizeRAF__),this.__resizeRAF__=QI((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<d.length;h++)if(void 0!==f.style[d[h]+"AnimationName"]){u="-"+d[h].toLowerCase()+"-",r=p[h],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){var u=a.ownerDocument,d=ZI.getComputedStyle(a);d&&"static"===d.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var 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%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(u),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var p=u.createElement("div");p.className="expand-trigger",p.appendChild(u.createElement("div"));var f=u.createElement("div");f.className="contract-trigger",a.__resizeTriggers__.appendChild(p),a.__resizeTriggers__.appendChild(f),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__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==eP||null==tP?(XI=YI,QI=function(e){return JI(e,20)}):(XI=function(e){var t=KI(e,2),n=t[0],r=t[1];eP(n),YI(r)},QI=function(e){var t=tP((function(){YI(n),e()})),n=JI((function(){eP(t),e()}),20);return[t,n]});var rP=function(e){function t(){var e,n,r;HI(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=GI(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var a=r._parentNode.offsetHeight||0,i=r._parentNode.offsetWidth||0,l=window.getComputedStyle(r._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,u=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,p=a-u-d,f=i-s-c;(!t&&r.state.height!==p||!n&&r.state.width!==f)&&(r.setState({height:a-u-d,width:i-s-c}),o({height:a,width:i}))}},r._setRef=function(e){r._autoSizer=e},GI(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),UI(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;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,this._detectElementResize=nP(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,a=e.style,i=this.state,l=i.height,s=i.width,c={overflow:"visible"},u={},p=!1;return r||(0===l&&(p=!0),c.height=0,u.height=l),o||(0===s&&(p=!0),c.width=0,u.width=s),d.createElement("div",{className:n,ref:this._setRef,style:VI({},c,a)},!p&&t(u))}}]),t}(d.PureComponent);rP.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var oP=e=>DL((e=>l(l({},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));const aP=wy("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function iP(e){let{text:t}=e;const{translator:n}=d.useContext(AS);return G.createElement(aP,null,n.get(t))}const lP="ListBoxInline",sP={listBoxHeader:"".concat(lP,"-listBoxHeader"),screenReaderOnly:"".concat(lP,"-screenReaderOnly"),listboxWrapper:"".concat(lP,"-listboxWrapper")},cP=wy(mC,{shouldForwardProp:e=>!["containerPadding","hasIcon"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,hasIcon:a}=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(sP.listBoxHeader)]:{alignSelf:"center",display:"flex",width:"calc(100% - ".concat(a?28:0,"px)")},["& .".concat(sP.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(sP.listboxWrapper)]:{padding:o},"&:focus:not(:hover)":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}}})),uP=wy(ww)((e=>{var t,n,r,o,a,i,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===(a=o.title)||void 0===a||null===(i=a.main)||void 0===i?void 0:i.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 dP=G.memo((function(e){var t;let{options:n,layout:r}=e;const{app:o,direction:a,frequencyMode:i,checkboxes:s,search:u=!0,focusSearch:p=!1,rangeSelect:f=!0,model:h,selections:m,update:g,fetchStart:v,selectDisabled:y=(()=>!1),postProcessPages:b,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0}=n,k=yy(),L=d.useCallback((()=>{h.unlock("/qListObjectDef")}),[h]),{translator:R,keyboardNavigation:O,themeApi:I,constraints:P}=d.useContext(AS);k.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")}}})(I);const T=d.useRef(),[_,N]=(()=>{const[e,t]=d.useState({}),n=d.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[M,q]=d.useState(!1),[A,D]=d.useState(!1),[z,j]=d.useState(!1),[F,$]=d.useState({down:0,up:0,scrollPosition:""}),[B,W]=d.useState({start:0,stop:0}),[H]=VS(o),U=d.useRef(null),[V]=d.useState((()=>SI())),K=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=d.useState(!1),a=!n||r,i={enabled:n,active:r,innerTabStops:a,outerTabStops:!a,blur:e=>{var r;if(!n)return;o(!1);const a=tR(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),eR(t.current),e&&a&&(a.setAttribute("tabIndex",0),a.focus())},focus:()=>{if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value, .ActionsToolbar-item button"),l=r||a||i;null==l||l.setAttribute("tabIndex",0),null==l||l.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:T,enabled:O}),Z=d.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:o,appSelections:H})),[o,H]),X=null==r?void 0:r.qListObject.qDimensionInfo.qError,Q=X&&P.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:Y,handleOnMouseEnter:J,handleOnMouseLeave:ee}=aR({keyboard:K,hovering:z,setHovering:j,updateKeyScroll:e=>$((t=>l(l({},t),e))),containerRef:T,currentScrollIndex:B,app:o,appSelections:H,constraints:P,isModal:Z}),te=C&&(""===(null==r?void 0:r.title)||!1===(null==r?void 0:r.showTitle)),ne=C&&""!==(null==r?void 0:r.title)&&!1!==(null==r?void 0:r.showTitle);if(d.useEffect((()=>{const e=()=>{q(!0)},t=()=>{q(!1),"toggle"===u&&D(!1)};return m&&(m.isModal()||(m.on("activated",e),m.on("deactivated",t)),q(m.isActive())),()=>{m&&m.removeListener&&(m.removeListener("activated",e),m.removeListener("deactivated",t))}}),[m]),d.useEffect((()=>{if(_&&_.current&&(u&&p||"toggle"===u&&A)){const e=_.current.querySelector("input");e&&e.focus()}}),[_&&_.current,A,u,p]),!h||!r||!R)return null;const re=!0===r.qListObject.qDimensionInfo.qLocked,oe="rtl"===a,ae="H"===r.qListObject.qDimensionInfo.qGrouping,ie=HO({layout:r,model:h,translator:R,selectionState:V}),{wildCardSearch:le,searchEnabled:se,layoutOptions:ce={}}=r,ue=(!0===u||"toggle"===u&&A)&&!y()&&!1!==se,de=null!==(t=ce.dense)&&void 0!==t&&t,pe=ne?49+(ue?de?27:40:0)+(de?39:49):0,fe=()=>{D(!A)},he=()=>{if("toggle"===u)fe();else{const e=_.current.querySelector("input");null==e||e.focus()}},me=e=>function(e){let{isPopover:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,selections:i}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:i,onConfirm:()=>{},onCancel:()=>{}}}}({isPopover:e,showToolbar:M,containerRef:T,isLocked:re,listboxSelectionToolbarItems:ie,selections:m}),ge=ue&&"toggle"===u,ve=!1!==se&&"toggle"===u,ye=re||ve,be=ye||ae,xe=(ye?28:0)+(ae?19:0),Se=9-(ye?7:0),we=oe?9-(be?7:0):0;let Ee;"grid"===(null==ce?void 0:ce.dataLayout)&&(Ee="row"===ce.layoutOrder?"2px 4px":"2px 6px 2px 4px");const Ce=null!=P&&P.active?G.createElement(pI,{title:R.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):G.createElement(mw,{onClick:fe,tabIndex:-1,title:R.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},G.createElement(pI,{style:{fontSize:"12px"}})),ke=y()?G.createElement(jL,{size:"large",style:{fontSize:"12px",padding:"7px"}}):G.createElement(mw,{title:R.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:L,size:"large"},G.createElement(jL,{disableRipple:!0,style:{fontSize:"12px"}}));return G.createElement(G.Fragment,null,te&&G.createElement(dI,c({direction:a},me(!0))),G.createElement(cP,{className:"listbox-container",container:!0,tabIndex:K.outerTabStops?0:-1,direction:"column",gap:0,containerPadding:Ee,style:{height:"100%",minHeight:"".concat(pe,"px"),flexFlow:"column nowrap"},onKeyDown:Y,onMouseEnter:J,onMouseLeave:ee,ref:T,hasIcon:be},ne&&G.createElement(mC,{item:!0,container:!0,style:{padding:k.spacing(1),paddingLeft:"".concat(Se,"px"),paddingRight:"".concat(we,"px")},sx:{flexDirection:oe?"row-reverse":"row"},wrap:"nowrap"},G.createElement(mC,{item:!0,container:!0,height:32,sx:{flexDirection:oe?"row-reverse":"row"},wrap:"nowrap"},be&&G.createElement(mC,{item:!0,sx:{display:"flex",alignItems:"center",width:xe}},re?ke:ve&&Ce,ae&&G.createElement(oP,{tabIndex:-1,title:R.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),G.createElement(mC,{item:!0,sx:{justifyContent:oe?"flex-end":"flex-start"},className:sP.listBoxHeader},G.createElement(uP,{variant:"h6",noWrap:!0,ref:U,title:r.title},r.title))),G.createElement(mC,{item:!0,xs:!0}),G.createElement(mC,{item:!0},G.createElement(dI,c({direction:a},me(function(e){var t,n,r,o,a,i;let{containerRef:l,titleRef:s,iconsWidth:c}=e;return!!((null!==(t=null==l||null===(n=l.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)<(null!==(r=null==s||null===(o=s.current)||void 0===o?void 0:o.clientWidth)&&void 0!==r?r:0)+c+16+128|(null==s||null===(a=s.current)||void 0===a?void 0:a.scrollWidth)>(null==s||null===(i=s.current)||void 0===i?void 0:i.offsetWidth))}({containerRef:T,titleRef:U,iconsWidth:xe})))))),G.createElement(mC,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":R.get("Listbox.ResultFilterLabel")},G.createElement(mC,{item:!0,ref:N},G.createElement("div",{className:sP.screenReaderOnly},R.get("Listbox.Search.ScreenReaderInstructions")),G.createElement(gI,{selections:m,selectionState:V,model:h,dense:de,keyboard:K,visible:ue,search:u,autoFocus:ge,wildCardSearch:le,searchEnabled:se,direction:a,hide:ve&&fe})),G.createElement(mC,{item:!0,xs:!0,className:sP.listboxWrapper},G.createElement("div",{className:sP.screenReaderOnly},R.get("Listbox.ScreenReaderInstructions")),X?G.createElement(iP,{text:Q}):G.createElement(rP,null,(e=>{let{height:t,width:n}=e;return G.createElement(jO,{model:h,app:o,constraints:P,layout:r,selections:m,selectionState:V,direction:a,frequencyMode:i,rangeSelect:f,checkboxes:s,height:t,width:n,update:g,fetchStart:v,postProcessPages:b,calculatePagesHeight:x,selectDisabled:y,keyboard:K,showGray:S,scrollState:w,keyScroll:{state:F,reset:()=>$({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:B,set:W},renderedCallback:E,onCtrlF:he,isModal:Z})}))))))}));function pP(e){let{options:t={}}=e;const{model:n}=t,[r]=NL(n);return G.createElement(dP,{options:t,layout:r})}const fP=["__DO_NOT_USE__"],hP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=u(e,fP),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=l(l(l({},n),r),t);return o};function mP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i,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:i}),[p,f]=d.useState(0);d.useEffect((()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");f(p+1)}),[c,u]);const h=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=d.useState(),[i]=LL(),{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 d.useEffect((()=>{l?a(l):async function(){const e=i.get(n);if(e)a(e);else{const e=await t.getObject(n);i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})),a(e)}}()}),[]),o}({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=d.useState(""),[s,c]=d.useState(!0),[u,p]=d.useState(),[f,h]=d.useState(),m=null!==(t=a.title)&&void 0!==t?t:f;d.useEffect((()=>{const e=a.histogram||"N"!==a.frequencyMode;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();h(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),h(r))}),[]);const{dense:g,checkboxes:v,listLayout:y,properties:b={}}=a;let{frequencyMode:x,histogram:S=!1}=a;switch(i&&i.failedToFetchFieldDef&&(S=!1,x="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(x):x="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(x):x="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(x):x="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(x):x="R";break;default:x="N"}const w={dense:g};"horizontal"===y&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const E=d.useRef();E.current||(E.current=$I());const C={qInfo:{qType:"njsListbox",qId:E.current},qListObjectDef:{qStateName:o,qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:S&&"N"===x?"V":x,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:S,checkboxes:v,layoutOptions:w,title:m};let k;if(Ve(!0,C,b),r.qLibraryId?(C.qListObjectDef.qLibraryId=r.qLibraryId,k=r.qLibraryId):(C.qListObjectDef.qDef.qFieldDefs=[r],k=r),"P"!==x&&S)if(null!=i&&i.multiFieldDim)C.frequencyMax="fetch";else{const e=r.qLibraryId?i:k;C.frequencyMax={qValueExpression:qO(e)}}const[L]=OL(C,s?null:n,k,o);return d.useEffect((()=>{L&&p(L)}),[L]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),m=d.useRef(a),g=u?i.selectionsApi:xI(t,h,[m,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],v=d.useMemo((()=>l(l({},i),{},{selections:g,model:h,app:t,renderedCallback:s})),[i,g,h,t]);return g&&h?G.createElement(pP,{options:v}):null}function gP(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return wp.createPortal(G.createElement(mP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,$I())}const vP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},yP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},vP);return Ve(!0,t,e),t};function bP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=d.useState(!!a.show);return G.createElement(EI,{show:i,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{l(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus})}function xP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function SP(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}function wP(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||$I(),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),xP(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 SP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||$I(),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),xP(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];SP(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}function EP(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||$I(),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}var CP=(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},kP=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},LP=e=>0===Object.keys(e).length&&e.constructor===Object;var RP={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 OP=2**53-1;function IP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function PP(e,t){const n=Ve(!0,{},t,e);return CP(n,"qOtherTotalSpec.qOtherCounted")||kP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),CP(n,"qOtherTotalSpec.qOtherLimit")||kP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function TP(e,t){return Ve(!0,{},t,e)}function _P(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var NP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===CP(e,t)&&kP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:IP,importCommonProperties:function(e,t,n){const r="masterobject"===CP(t,"properties.qInfo.qType")?"masterobject":CP(n,"qInfo.qType");kP(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:PP,createDefaultMeasure:TP,resolveValue:_P,getHypercubePath:function(e){const t=CP(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 a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(RP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,RP.indexRemoved(n.qInterColumnSortOrder,a))},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=Ve(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?kP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||IP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ve(!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},a=n.measures||{max:0},i=_P(a.max,r.dimensions.length,OP),l=_P(a.min,r.dimensions.length,0);return{maxDimensions:_P(o.max,i,OP),minDimensions:_P(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(PP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(PP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(PP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(TP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(TP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(TP(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=CP(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=CP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var MP={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,a=CP(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();RP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.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&&(NP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!LP(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=NP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=CP(n,a||"").qHyperCubeDef,c=CP(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=NP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=NP.getDefaultDimension(),defaultMeasure:m=NP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,NP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&NP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),NP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),NP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),NP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),NP.copyPropertyIfExist("qMaxStackedCells",s,c),NP.copyPropertyIfExist("qNoOfLeftDims",s,c),NP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),NP.copyPropertyOrSetDefault("qMode",s,c,"S"),NP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),NP.copyPropertyOrSetDefault("qSortbyYValue",s,c),NP.copyPropertyOrSetDefault("qIndentMode",s,c),NP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),NP.importCommonProperties(l,t,n),NP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),NP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const qP=e=>CP(e,"data.targets.0.propertyPath"),AP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return MP.exportProperties})(qP(e))},DP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return MP.importProperties})(qP(e))},zP=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),i=r.current.getQae(),s=AP(i),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 DP(u)({exportFormat:s({propertyTree:a,hypercubePath:NP.getHypercubePath(i)}),initialProperties:l({qInfo:{qType:o},visualization:o},CP(u,"properties.initial",{})),dataDefinition:CP(u,"data.targets.0.",{}),hypercubePath:NP.getHypercubePath(u)})},jP={hypercube:MP};var FP=e=>DL((e=>l(l({},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 $P(e){let{d:t}=e;const n=yy();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 a={color:o},i=G.createElement(ww,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},G.createElement(LC,null,t.missing||t.error?G.createElement(FP,{style:a}):G.createElement(YL,{style:a})));return G.createElement(mC,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},G.createElement(mC,{item:!0},i),G.createElement(mC,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},G.createElement(ww,{noWrap:!0,component:"p"},G.createElement(ww,{component:"span",variant:"subtitle2",color:r},t.description),G.createElement(ww,{component:"span"}," "),G.createElement(ww,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function BP(e){let{data:t}=e;const n=yy();return G.createElement(mC,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>G.createElement($P,{d:e,key:t})));return r.length>0&&G.createElement(mC,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},G.createElement(ww,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function WP(e){let{title:t="Error",message:n="",data:r=[]}=e;return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},G.createElement(mC,{item:!0},G.createElement(FP,{style:{fontSize:"38px"}})),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"error-title"},t)),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),G.createElement(BP,{data:r}))}const HP=["size"],UP="Progress",VP={root:"".concat(UP,"-root"),front:"".concat(UP,"-front"),back:"".concat(UP,"-back")},GP=wy("div")((e=>{let{theme:t}=e;return{["&.".concat(VP.root)]:{position:"relative",display:"inline-block"},["& .".concat(VP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(VP.back)]:{color:t.palette.divider}}})),KP={small:16,medium:32,large:64,xlarge:128};function ZP(e){let{size:t="medium"}=e,n=u(e,HP);const r=KP[t];return G.createElement(GP,{className:VP.root},G.createElement(FE,c({variant:"determinate",value:100,className:VP.back,size:r,thickness:3},n)),G.createElement(FE,c({variant:"indeterminate",disableShrink:!0,className:VP.front,size:r,thickness:3},n)))}const XP=["cancel","translator"],QP=["retry","translator"],YP={stripes:"".concat("LongRunningQuery","-stripes")},JP=wy(mC)((()=>({["& .".concat(YP.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 eT(e){let{cancel:t,translator:n}=e,r=u(e,XP);return G.createElement(G.Fragment,null,G.createElement(JP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},G.createElement(mC,{item:!0},G.createElement(ZP,null)),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),G.createElement(mC,c({item:!0},r),G.createElement(ES,{variant:"contained",onClick:t},n.get("Cancel"))))}function tT(e){let{retry:t,translator:n}=e,r=u(e,QP);return G.createElement(G.Fragment,null,G.createElement(mC,{item:!0},G.createElement(FP,{style:{fontSize:"38px"}})),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),G.createElement(mC,{item:!0},G.createElement(ES,c({variant:"contained",onClick:t},r),n.get("Retry"))))}function nT(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=d.useContext(AS);return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:YP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&G.createElement(eT,{cancel:r.cancel,translator:o,className:YP.cancel}),n&&G.createElement(tT,{retry:r.retry,translator:o,className:YP.retry}))}function rT(){return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},G.createElement(ZP,{size:"large"}))}const oT="Header",aT={containerStyle:"".concat(oT,"-containerStyle"),containerTitleStyle:"".concat(oT,"-containerTitleStyle")},iT=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(aT.containerStyle)]:{flexGrow:0},["&.".concat(aT.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),lT="njs-cell-title",sT="njs-cell-sub-title";function cT(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,p]=d.useState([]),[f,h]=qL(),[m,g]=d.useState(!1);d.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{p([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),d.useEffect((()=>{if(!h)return;const{width:e}=h;g(e<221)}),[h]);const v=l||s,y=[aT.containerStyle,...v?[aT.containerTitleStyle]:[]],b=(o||c)&&(m||!v),x=v&&!b&&!m,S=G.createElement(dI,{show:x,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a});return G.createElement(iT,{ref:f,item:!0,container:!0,wrap:"nowrap",className:y.join(" ")},G.createElement(mC,{item:!0,zeroMinWidth:!0,xs:!0},G.createElement(mC,{container:!0,wrap:"nowrap",direction:"column"},l&&G.createElement(ww,{variant:"h6",noWrap:!0,className:lT,style:i.main},t.title),s&&G.createElement(ww,{variant:"body2",noWrap:!0,className:sT,style:i.subTitle},t.subtitle))),G.createElement(mC,{item:!0},S))}const uT={itemStyle:"".concat("Footer","-itemStyle")},dT=wy(mC)((e=>{let{theme:t}=e;return{["& .".concat(uT.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),pT="njs-cell-footer";function fT(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?G.createElement(dT,{container:!0},G.createElement(mC,{item:!0,className:uT.itemStyle},G.createElement(ww,{noWrap:!0,variant:"body2",className:pT,style:n.footer},t.footnote))):null}class hT{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 mT="njs-viz";function gT(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:p,keyboardNavigation:f}=d.useContext(AS),[h]=d.useState((()=>new hT)),[m,g]=d.useState(!1),[v,y]=d.useState(0),[b,x,S]=qL(),[w,E]=d.useState(null),C=d.useCallback((e=>{e&&E(e)}),[]);return d.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),d.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return p.passive||e.push("passive"),p.active||e.push("interact"),p.select||e.push("select"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:l({constraints:p,theme:i.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),y(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,p,m,f]),G.createElement("div",{ref:b,"data-render-count":v,style:{position:"relative",height:"100%"},className:mT},G.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const vT={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},yT={"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 bT(e,t){return t?function(e){var t;let n,r,o,a;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config)return n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host}(e)+t:void 0}function xT(e,t){const n=null==e?void 0:e.bgImage;if(n){let a="";var r,o;if("media"===n.mode||"media"===e.useImage)a=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,a=bT(t,a);"expression"===n.mode&&(a=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const i=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=yT[e.bgImage.position]),n}(e),l=function(e){var t;let n=vT.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=vT[e.bgImage.sizing]),n}(e);return a?{url:a,pos:i,size:l}:void 0}}function ST(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 wT(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const ET="njs-cell",CT=(e,t)=>{switch(t.type){case"LOADING":return l(l({},e),{},{loading:!0});case"LOADED":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return l(l({},e),{},{longRunningQuery:!0});case"ERROR":return l(l({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function kT(e){let{delay:t=750}=e;const[n,r]=d.useState(!1);return d.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?G.createElement(rT,null):null}const LT=e=>!e.qError||7005===e.qError.qErrorCode,RT=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),OT=e=>e&&(Array.isArray(e)?e:[e])||[],IT=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:RT(o,OT(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:RT(a,OT(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},PT=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!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=OT(f.qDimensionInfo||f.qItems).filter(LT),m=OT(f.qMeasureInfo).filter(LT);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!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:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=IT(e,t,n,i);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,i]),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]}],y=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:y}]},TT=d.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c,emitter:u}=e;const{app:p,types:f}=n,{nebbie:h}=n.public,{disableCellPadding:m=!1}=n.context||{},{theme:g,translator:v,language:y,keyboardNavigation:b}=d.useContext(AS),x=yy(),[S,w,E]=qL(),[C,k]=d.useReducer(CT,{loading:!1,loaded:!1,longRunningQuery:!1,error:(L=i)?{title:L.message}:null,sn:null,visualization:null});var L;const[R,{validating:O,canCancel:I,canRetry:P},T]=NL(r),[_]=ML(p),[N,M,q]=qL(),[A,D]=d.useState(o),[z,j]=d.useState(a),F="njs-cell-".concat(c),[$]=xI(p,r,["#".concat(F),".njs-action-toolbar-popover"]),[B,W]=d.useState(!1),H=d.useRef({enter:null,leave:null}),[U,V]=d.useState(void 0),[K,Z]=d.useState(void 0),[X,Q]=d.useState(void 0),Y=d.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});d.useEffect((()=>{vI(Y.current)}),[]),d.useEffect((()=>{if(R&&n.public.theme){const e=R.components?R.components.find((e=>"general"===e.key)):null;Q({main:wT(e,"main",n.public.theme,R.visualization),footer:wT(e,"footer",n.public.theme,R.visualization),subTitle:wT(e,"subTitle",n.public.theme,R.visualization)}),V(ST(e,n.public.theme,R.visualization)),Z(xT(e,n.app))}}),[R,n.public.theme,n.app,g]),Y.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&q&&q.focus()},Y.current.refocusContent=()=>{C.sn.component&&"function"==typeof C.sn.component.focus&&C.sn.component.focus()};d.useEffect((()=>{if(i||!_||!R)return;if(C.visualization===R.visualization&&C.sn)return void(async e=>{const[t,n]=await PT(v,R,e.generator.qae.data,r);k(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:C.sn,layout:R,model:r})})(C.sn);const e=f.getSupportedVersion(R.visualization,R.version);return(async(e,t)=>{k({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,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:a,app:i,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:k,types:f,visualization:e,version:t,model:r,app:p,selections:$,nebbie:h,focusHandler:Y.current,emitter:u});n&&(k({type:"LOADED",sn:n,visualization:e}),s())})(R.visualization,e),()=>{}}),[f,C.sn,r,$,R,_,y]),d.useEffect((()=>{if(!O)return;const e=setTimeout((()=>k({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[O]),d.useImperativeHandle(t,(()=>({getQae:()=>C.sn.generator.qae,toggleFocus(e){"function"==typeof C.sn.component.focus&&(e?C.sn.component.focus():C.sn.component.blur())},setSnOptions:D,setSnPlugins:j,async takeSnapshot(){const{width:e,height:t}=w;let n=JSON.parse(JSON.stringify(R));return"function"==typeof C.sn.component.setSnapshotData&&(n=await C.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:v.language(),theme:x.name,appLayout:_,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)}})),[C.sn,M,w,R,x.name,_]);let J=null;return C.loading&&!C.longRunningQuery?J=G.createElement(kT,null):C.error?J=G.createElement(WP,C.error):C.loaded&&(J=G.createElement(gT,{key:R.visualization,sn:C.sn,halo:n,snOptions:A,snPlugins:z,layout:R,appLayout:_})),G.createElement(cw,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:U||"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:ET,ref:S,id:F,onMouseEnter:()=>{H.current.leave&&clearTimeout(H.current.leave),H.enter||(H.current.enter=setTimeout((()=>{W(!0),H.current.enter=null}),250))},onMouseLeave:()=>{H.current.enter&&clearTimeout(H.current.enter),H.current.leave||(H.current.leave=setTimeout((()=>{W(!1),H.current.leave=null}),750))}},G.createElement(mC,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},m?{}:{padding:x.spacing(1)}),C.longRunningQuery?{opacity:"0.3"}:{})},E&&R&&C.sn&&G.createElement(cT,{layout:R,sn:C.sn,anchorEl:E,hovering:B,focusHandler:Y.current,titleStyles:X}," "),G.createElement(mC,{tabIndex:b?0:-1,onKeyDown:b?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:N},J),G.createElement(fT,{layout:R,titleStyles:X})),C.longRunningQuery&&G.createElement(nT,{canCancel:I,canRetry:P,api:T}))}));function _T(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=G.createRef(),d=$I(),p=wp.createPortal(G.createElement(TT,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,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]}function NT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function MT(e,t){return NT(e)&&NT(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function qT(){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 a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?MT(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...qT("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function AT(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 DT=()=>{};function zT(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=DT,a=null,i=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=new ne,f=async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)},h=async e=>{AT(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},m={id:e.id,model:e,async destroy(){await r(),o(),o=DT},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await zP({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},on(e,t){p.on(e,t)},off(e,t){p.off(e,t)},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=_T({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s,emitter:p}),c},async applyProperties(t){const n=qT("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){f(e)},plugins(e){h(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return m}async function jT(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=zT({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function FT(e,t){let n,{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&function(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:a}=o,i=a.split("/");let l=n;for(let e=0;e<i.length;e++){const t=i[e];l=t?l[t]:l}const s=(a.match("/qListObjectDef")?EP:wP)({dc:l,def:o,properties:n});r.forEach((e=>{const t=function(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"}(e);"measure"===t?s.addMeasure(e):s.addDimension(e)}))}({sn:n,properties:d,fields:a}),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){n=e,d={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(d);RL.set(p.id,p);const f=(e=>{const t=kL({type:"SET",value:e});return()=>{t(),RL.clear(e.id)}})(p);return jT(p,{options:l,plugins:s,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),f()}))}const $T="njs-sheet";function BT(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=NL(t),{theme:c}=d.useContext(AS),[u,p]=d.useState([]),[f,h]=d.useState(void 0),[m,g]=d.useState(void 0),[v,y]=d.useState("");d.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;y(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 a=await async function(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=SL.get(i);l||(l=t.app.getObject(n),SL.set(i,l));const s=await l;return RL.set(i,s),jT(s,{options:r,plugins:o,element:a},t)}({id:e.name},n);return{model:a.model,id:e.name,bounds:e.bounds,cellRef:G.createRef(),currentId:$I(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(t)};t()}}),[s]);const b=d.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return G.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},G.createElement(TT,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[u]);d.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(ST(e,n.public.theme)),g(xT(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=u.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),G.createElement("div",{className:$T,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},b)}function WT(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=G.createRef(),u=wp.createPortal(G.createElement(BT,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}const HT=()=>{};function UT(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=HT,a=null,i=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)},f=async e=>{AT(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=HT},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=WT({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=qT("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}async function VT(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=SL.get(i);l||(l=t.app.getObject(n),SL.set(i,l));const s=await l;return RL.set(i,s),"sheet"===s.genericType?async function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=UT({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(s,{options:r,plugins:o,element:a},t):jT(s,{options:r,plugins:o,element:a},t)}function GT(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const KT=Ve.bind(null,!0),ZT={},{isArray:XT}=Array;function QT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function YT(e){return void 0===e}function JT(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function e_(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 a=isNaN(r)?{}:[];e[r||t]=YT(e[r||t])?a:e[t],e=e[r||t]})),e}function t_(e,t){let n=!0;if(QT(e)&&QT(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{t_(e[r],t[r])||(n=!1)})),n);if(XT(e)&&XT(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!t_(e[n],t[n]))return!1;return!0}return e===t}ZT.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?KT({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);t_(a,i)||JT(t,o)||(YT(i)?r.push({op:"add",path:l,value:a}):QT(a)&&QT(i)?r=r.concat(ZT.generate(i,a,l)):XT(a)&&XT(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&YT(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(t_(t,o))return r;if(!YT(t[0])&&YT(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(ZT.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{YT(t[o])&&!JT(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},ZT.apply=function(e,t){t.forEach((t=>{let n=e_(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(XT(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(XT(o)&&XT(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(QT(o)&&QT(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!JT(i,e)&&delete i[e]})),KT(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=e_(e,t.from);XT(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(XT(n)?n.splice(+r,1):delete n[r]);var i}))},ZT.clone=function(e){return KT({},e)},ZT.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},ZT.updateObject=function(e,t){Object.keys(e).length?ZT.apply(e,ZT.generate(e,t)):KT(e,t)};const n_=e=>t=>{const n=(r=l(l({},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(ne.prototype).forEach((e=>{r[e]=ne.prototype[e]})),ne.init(r),r);var r;return n};let r_,o_;function a_(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 i_(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 l_(e){c_(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 s_(e){if(e.__hooks.obsolete)return Promise.resolve();o_=-1,r_=e,r_.__hooks.initiated&&r_.__hooks.list.length;try{r_.fn.call(null)}catch(e){console.error(e)}r_.__hooks.initiated=!0;const t=r_.__hooks;return f_(r_),o_=void 0,r_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){c_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){c_(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 c_(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 u_(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 d_(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 p_(e){return e.__hooks.imperativeHandle}function f_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function h_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,f_(e))}function m_(e){if(void 0===r_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=r_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function g_(e){m_(++o_);return r_.context[e]}function v_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function y_(e){return{__hooked:!0,fn:e,initiate:i_,run:s_,teardown:l_,runSnaps:u_,runMenu:d_,focus:C_,blur:k_,observeActions:h_,getImperativeHandle:p_,updateRectOnNextRun:v_}}function b_(e){const t=m_(++o_);if(!t.value){t.component=r_;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,s_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function x_(e,t){const n=m_(++o_);a_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===r_.__hooks.pendingEffects.indexOf(n)&&r_.__hooks.pendingEffects.push(n))}function S_(e,t){const n=m_(++o_);a_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],r_.__hooks.pendingLayoutEffects.push(n))}function w_(e,t){const n=m_(++o_);return a_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function E_(){return g_("element")}function C_(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 k_(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 L_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},R_=Object.keys(L_);function O_(e,t){const n=l({},L_);var r;r=n,Object.keys(ne.prototype).forEach((e=>{r[e]=ne.prototype[e]})),ne.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==R_.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const a=function(e){let{sn:t,component:n}=e;const r={},o=[],a=n_(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:i,selections:t.selections,actions:a.actions}),Object.assign(n,{actions:a.actions,model:t.model,app:t.app,selections:t.selections}),[n,a]}function I_(e,t,n){"function"==typeof e.component&&(e.component=y_(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={},i=["appLayout","constraints"],s={};t.model&&t.model.session||(s.select=!0);const c={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,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{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)}i.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(l(l({},r[e]),s))),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=c.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 i.forEach((e=>{a[e]=JSON.stringify(c.context[e])})),a.themeName=c.context.theme?c.context.theme.name():void 0,a.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):O_(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 a=ZT.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));ZT.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=ZT.generate(a,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 P_=()=>{};function T_(e,t){return void 0===e?()=>t:()=>e}function __(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||P_,description:t.description||P_,moved:t.moved||t.move||P_,removed:t.removed||t.remove||P_,replaced:t.replaced||t.replace||P_,isDefined:()=>!!e}}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,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})(e,n,{}),dimensions:__(e.dimensions),measures:__(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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(N_)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function q_(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:M_(n.qae),component:n.component||{},create:e=>I_(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var A_={},D_={get exports(){return A_},set exports(e){A_=e}};!function(e,t){var n;t=e.exports=d,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=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],a=t.src=[],i=t.tokens={},l=0;function s(e){i[e]=l++}s("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",s("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",s("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",s("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",s("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",s("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",s("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",s("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",s("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",s("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",s("FULL"),s("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",s("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",s("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",s("GTLT"),a[i.GTLT]="((?:<|>)?=?)",s("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",s("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",s("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",s("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",s("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",s("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",s("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",s("COERCERTL"),o[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),s("LONETILDE"),a[i.LONETILDE]="(?:~>?)",s("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",o[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");s("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",s("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",s("LONECARET"),a[i.LONECARET]="(?:\\^)",s("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",o[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");s("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",s("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",s("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",s("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",s("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",o[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");s("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",s("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",s("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<l;c++)n(c,a[c]),o[c]||(o[c]=new RegExp(a[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[i.LOOSE]:o[i.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>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||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<r)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(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 f(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(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 f(r,o)}while(++t)},d.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 d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var a="prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return o+i;return a},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function v(e,t,n){return 0===h(e,t,n)}function y(e,t,n){return 0!==h(e,t,n)}function b(e,t,n){return h(e,t,n)>=0}function x(e,t,n){return h(e,t,n)<=0}function S(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 v(e,n,r);case"!=":return y(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===E?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(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=m,t.lt=g,t.eq=v,t.neq=y,t.gte=b,t.lte=x,t.cmp=S,t.Comparator=w;var E={};function C(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof C)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new C(e.raw,t);if(e instanceof w)return new C(e.value,t);if(!(this instanceof C))return new C(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 k(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 R(e,t,n,r,o,a,i,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 O(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!==E&&e[o].semver.prerelease.length>0){var a=e[o].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new C(t,n)}catch(e){return!1}return t.test(e)}function P(e,t,n,r){var o,a,i,l,s;switch(e=new d(e,r),t=new C(t,r),n){case">":o=m,a=x,i=g,l=">",s=">=";break;case"<":o=g,a=b,i=m,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,f=null;if(u.forEach((function(e){e.semver===E&&(e=new w(">=0.0.0")),p=p||e,f=f||e,o(e.semver,p.semver,r)?p=e:i(e.semver,f.semver,r)&&(f=e)})),p.operator===l||p.operator===s)return!1;if((!f.operator||f.operator===l)&&a(e,f.semver))return!1;if(f.operator===s&&i(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.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 d(n[2],this.options.loose):this.semver=E},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===E||e===E)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return S(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))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 C(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new C(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=S(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=S(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&i||l||s},t.Range=C,C.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},C.prototype.toString=function(){return this.range},C.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[i.HYPHENRANGELOOSE]:o[i.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(o[i.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[i.COMPARATORTRIM]),e=(e=(e=e.replace(o[i.TILDETRIM],"$1~")).replace(o[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?o[i.COMPARATORLOOSE]:o[i.COMPARATOR],l=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?o[i.CARETLOOSE]:o[i.CARET];return e.replace(r,(function(t,r,o,a,i){var l;return n("caret",e,t,r,o,a,i),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(a)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":i?(n("replaceCaret pr",i),l="0"===r?"0"===o?">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+"-"+i+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+a+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+" <"+(+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?o[i.TILDELOOSE]:o[i.TILDE];return e.replace(r,(function(t,r,o,a,i){var l;return n("tilde",e,t,r,o,a,i),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(a)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":i?(n("replaceTilde pr",i),l=">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+a+" <"+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?o[i.XRANGELOOSE]:o[i.XRANGE];return e.replace(r,(function(r,o,a,i,l,s){n("xRange",e,r,o,a,i,l,s);var c=L(a),u=c||L(i),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&&(i=0),l=0,">"===o?(o=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===o&&(o="<",u?a=+a+1:i=+i+1),r=o+a+"."+i+"."+l+s):u?r=">="+a+".0.0"+s+" <"+(+a+1)+".0.0"+s:d&&(r=">="+a+"."+i+".0"+s+" <"+a+"."+(+i+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(o[i.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(l=l.filter((function(e){return!!e.match(a)}))),l=l.map((function(e){return new w(e,this.options)}),this)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Range is required");return this.set.some((function(n){return k(n,t)&&e.set.some((function(e){return k(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new C(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},C.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=I,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var a=new C(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var a=new C(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new C(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("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 d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(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 C(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=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new C(e,n),t=new C(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)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=o[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[i.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[i.COERCERTL].lastIndex=-1}else n=e.match(o[i.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(D_,A_);const z_={};async function j_(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!z_[a]){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 i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);z_[a]=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 z_[a]}function F_(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=function(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||A_.satisfies(e,a.deps.properties),supernova:()=>j_(i.name,i.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=l({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(Ve(!0,n,e),n):l(l({},n),e)}))}};return i}({name:e,version:o},t,a),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 $_(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)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(z_).forEach((t=>{t.split("__")[0]===e&&(z_[t]=void 0)}))}(e)}}}const B_={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()))},W_={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:B_};W_.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1};const H_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},e),t)},U_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},V_=(e,t)=>({context:H_(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},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)});var G_=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=J(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=l(l({},t.context),{},{translator:n.translator});const[i]=KS({app:e,context:a}),s=dt({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:GT(t.flags),deviceType:pt(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:i,config:t,public:c,context:a,types:null},d=$_({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?VT(e,u):FT(e,u)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=l(l(l({},a),t),{},{translator:n.translator}),u.context=a,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),i.context(a))},selections:async()=>(f||(f={mount(t){h||(h=WI({element:t,app:e}),i.add(h))},unmount(){h&&(i.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=gP({element:a,app:e,fieldIdentifier:t,qId:n,options:hP(l({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return vI(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(i.remove(m._popoverInstance),m._popoverInstance=null);const o=yP(l({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=G.createElement(bP,{element:t,key:$I(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,vI(m),m}return r.createConfiguration=n=>e(V_(t,n)),r.config=t,r}(W_);function K_(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const Z_=globalThis.crypto||{getRandomValues:()=>123456};function X_(){return e=>{const t=Ve({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^Z_.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=Ve({},t,n)),Promise.resolve(l({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const Q_=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},Y_=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,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=Q_(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},J_=["id","session"],eN=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function tN(e){return!eN.includes(e)}function nN(e){const t=Q_(e.getLayout);return t.qInfo&&t.qInfo.qId}function rN(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=nN(e);const{delay:r}=t,{id:o,session:a}=e,i=u(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]:l(l({id:n,session:Q_(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:Y_(o,{async:tN(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function oN(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!nN(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function aN(){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(oN);const n=rN(e,t);return async e=>Promise.resolve(n[e])}function iN(){return()=>Promise.resolve({id:"app-layout"})}const lN={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new K_,r=new X_,o=new aN(e,t),a=new iN,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},sN={generator:q_,hook:y_,theme:ct,locale:Q};e.EnigmaMocker=lN,e.__DO_NOT_USE__=sN,e.conversion=jP,e.embed=G_,e.onContextMenu=function(e){const t=m_(++o_);t.value||(t.value=1,r_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=m_(++o_);t.value||(t.value=1,r_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=b_({action(){n._config.action.call(null)}});return n.component||(n.component=r_,r_.__hooks.actions.list.push(n)),w_((()=>{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=g_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return g_("appLayout")},e.useConstraints=function(){return g_("constraints")},e.useDeviceType=function(){return g_("deviceType")},e.useEffect=x_,e.useElement=E_,e.useEmbed=function(){return g_("nebbie")},e.useEmitter=function(){return g_("emitter")},e.useGlobal=function(){const e=g_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=m_(++o_);if(n.imperative||(n.imperative=!0),a_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],r_.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=g_("keyboardNavigation"),t=g_("focusHandler");if(!r_.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(k_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(r_);r_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),C_(this))}.bind(r_);r_.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(r_);r_.__hooks.accessibility.focusSelectionFunction=r}const n=r_.__hooks.accessibility.focusFunction,r=r_.__hooks.accessibility.exitFunction,o=r_.__hooks.accessibility.focusSelectionFunction,[a,i]=b_({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return r_.__hooks.accessibility.setter=i,r_.__hooks.accessibility.enabled=e,x_((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return g_("layout")},e.useMemo=w_,e.useModel=function(){const e=g_("model");return e&&e.session?e:void 0},e.useOptions=function(){return g_("options")},e.usePlugins=function(){return g_("plugins")},e.usePromise=function(e,t){const[n,r]=b_((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=m_(++o_);return o.component||(o.component=r_),S_((()=>{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=E_(),t=r_.__hooks.resizer,[n,r]=b_((()=>{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()),S_((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};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(){m_(++o_);const e=r_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return g_("selections")},e.useStaleLayout=function(){const e=g_("layout"),[t]=b_({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=b_,e.useTheme=function(){return g_("theme")},e.useTranslator=function(){return g_("translator")}}));
134
+ `),qE))),jE=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:a=!1,size:i=40,style:l,thickness:s=3.6,value:c=0,variant:u="indeterminate"}=n,d=Of(n,RE),p=Rf({},n,{color:o,disableShrink:a,size:i,thickness:s,value:c,variant:u}),f=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Sf({root:["root",n,`color${Kp(r)}`],svg:["svg"],circle:["circle",`circle${Kp(n)}`,o&&"circleDisableShrink"]},LE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((NE-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 Km.jsx(AE,Rf({className:ky(f.root,r),style:Rf({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Km.jsx(DE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Km.jsx(zE,{className:f.circle,style:h,ownerState:p,cx:NE,cy:NE,r:(NE-s)/2,fill:"none",strokeWidth:s})})}))}));var FE=jE;const $E=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],BE=wy("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})=>Rf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),WE=wy(Yw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),HE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=by({name:"MuiModal",props:e}),{BackdropComponent:c=WE,BackdropProps:u,classes:p,className:f,closeAfterTransition:h=!1,children:m,component:g,components:v={},componentsProps:y={},disableAutoFocus:b=!1,disableEnforceFocus:x=!1,disableEscapeKeyDown:S=!1,disablePortal:w=!1,disableRestoreFocus:E=!1,disableScrollLock:C=!1,hideBackdrop:k=!1,keepMounted:L=!1,slotProps:R,slots:O,theme:I}=s,P=Of(s,$E),[T,_]=d.useState(!0),N={closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:L},M=Rf({},s,N,{exited:T}),q=null!=(n=null!=(r=null==O?void 0:O.root)?r:v.Root)?n:BE,A=null!=(o=null!=(a=null==O?void 0:O.backdrop)?a:v.Backdrop)?o:c,D=null!=(i=null==R?void 0:R.root)?i:y.root,z=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop;return Km.jsx(xx,Rf({slots:{root:q,backdrop:A},slotProps:{root:()=>Rf({},Iy(D,M),!Ry(q)&&{as:g,theme:I},{className:ky(f,null==D?void 0:D.className,null==p?void 0:p.root,!M.open&&M.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>Rf({},u,Iy(z,M),{className:ky(null==z?void 0:z.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>_(!1),onTransitionExited:()=>_(!0),ref:t},P,N,{children:m}))}));var UE=HE;function VE(e){return kf("MuiDivider",e)}var GE=Lf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const KE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],ZE=wy("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})=>Rf({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)`:Dv(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"})),(({theme:e,ownerState:t})=>Rf({},t.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,top:"50%",content:'""',transform:"translateY(50%)"}})),(({theme:e,ownerState:t})=>Rf({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,transform:"translateX(0%)"}})),(({ownerState:e})=>Rf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),XE=wy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Rf({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)`}))),QE=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:a,component:i=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:c="horizontal",role:u=("hr"!==i?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=Of(n,KE),h=Rf({},n,{absolute:r,component:i,flexItem:l,light:s,orientation:c,role:u,textAlign:d,variant:p}),m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:a,orientation:i,textAlign:l,variant:s}=e;return Sf({root:["root",t&&"absolute",s,a&&"light","vertical"===i&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===i&&"withChildrenVertical","right"===l&&"vertical"!==i&&"textAlignRight","left"===l&&"vertical"!==i&&"textAlignLeft"],wrapper:["wrapper","vertical"===i&&"wrapperVertical"]},VE,r)})(h);return Km.jsx(ZE,Rf({as:i,className:ky(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?Km.jsx(XE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var YE=QE;function JE(e){return kf("MuiFormControlLabel",e)}var eC=Lf("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);const tC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],nC=wy("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${eC.label}`]:t.label},t.root,t[`labelPlacement${Kp(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Rf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${eC.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},{[`& .${eC.label}`]:{[`&.${eC.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),rC=d.forwardRef((function(e,t){var n;const r=by({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:i,disabled:l,disableTypography:s,label:c,labelPlacement:u="end",slotProps:p={}}=r,f=Of(r,tC),h=Iw();let m=l;void 0===m&&void 0!==i.props.disabled&&(m=i.props.disabled),void 0===m&&h&&(m=h.disabled);const g={disabled:m};["checked","name","onChange","value","inputRef"].forEach((e=>{void 0===i.props[e]&&void 0!==r[e]&&(g[e]=r[e])}));const v=Rw({props:r,muiFormControl:h,states:["error"]}),y=Rf({},r,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e;return Sf({root:["root",n&&"disabled",`labelPlacement${Kp(r)}`,o&&"error"],label:["label",n&&"disabled"]},JE,t)})(y),x=null!=(n=p.typography)?n:a.typography;let S=c;return null==S||S.type===ww||s||(S=Km.jsx(ww,Rf({component:"span"},x,{className:ky(b.label,null==x?void 0:x.className),children:S}))),Km.jsxs(nC,Rf({className:ky(b.root,o),ownerState:y,ref:t},f,{children:[d.cloneElement(i,g),S]}))}));var oC=rC;var aC=d.createContext();function iC(e){return kf("MuiGrid",e)}const lC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],sC=Lf("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}`)),...lC.map((e=>`grid-xs-${e}`)),...lC.map((e=>`grid-sm-${e}`)),...lC.map((e=>`grid-md-${e}`)),...lC.map((e=>`grid-lg-${e}`)),...lC.map((e=>`grid-xl-${e}`))]),cC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function uC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function dC({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 pC=wy("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:o,item:a,spacing:i,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}(i,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,a&&t.item,s&&t.zeroMinWidth,...u,"row"!==o&&t[`direction-xs-${String(o)}`],"wrap"!==l&&t[`wrap-xs-${String(l)}`],...d]}})((({ownerState:e})=>Rf({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 pg({theme:e},fg({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${sC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dC({breakpoints:e.breakpoints.values,values:t})),o=pg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${uC(a)}`,[`& > .${sC.item}`]:{paddingTop:uC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${sC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=fg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=dC({breakpoints:e.breakpoints.values,values:t})),o=pg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${uC(a)})`,marginLeft:`-${uC(a)}`,[`& > .${sC.item}`]:{paddingLeft:uC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${sC.item}`]:{paddingLeft:0}}}))}return o}),(function({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce(((r,o)=>{let a={};if(t[o]&&(n=t[o]),!n)return r;if(!0===n)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const i=fg({values:t.columns,breakpoints:e.breakpoints.values}),l="object"==typeof i?i[o]:i;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} + ${uC(n)})`;c={flexBasis:e,maxWidth:e}}}a=Rf({flexBasis:s,flexGrow:0,maxWidth:s},c)}return 0===e.breakpoints.values[o]?Object.assign(r,a):r[e.breakpoints.up(o)]=a,r}),{})}));const fC=e=>{const{classes:t,container:n,direction:r,item:o,spacing:a,wrap:i,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}(a,s));const u=[];s.forEach((t=>{const n=e[t];n&&u.push(`grid-${t}-${String(n)}`)}));return Sf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},iC,t)},hC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiGrid"}),{breakpoints:r}=yy(),o=av(n),{className:a,columns:i,columnSpacing:l,component:s="div",container:c=!1,direction:u="row",item:p=!1,rowSpacing:f,spacing:h=0,wrap:m="wrap",zeroMinWidth:g=!1}=o,v=Of(o,cC),y=f||h,b=l||h,x=d.useContext(aC),S=c?i||12:x,w={},E=Rf({},v);r.keys.forEach((e=>{null!=v[e]&&(w[e]=v[e],delete E[e])}));const C=Rf({},o,{columns:S,container:c,direction:u,item:p,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:h},w,{breakpoints:r.keys}),k=fC(C);return Km.jsx(aC.Provider,{value:S,children:Km.jsx(pC,Rf({ownerState:C,className:ky(k.root,a),as:s,ref:t},E))})}));var mC=hC;const gC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vC(e){return`scale(${e}, ${e**2})`}const yC={entering:{opacity:1,transform:vC(1)},entered:{opacity:1,transform:"none"}},bC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),xC=d.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:a,in:i,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:p,onExiting:f,style:h,timeout:m="auto",TransitionComponent:g=Fx}=e,v=Of(e,gC),y=d.useRef(),b=d.useRef(),x=yy(),S=d.useRef(null),w=sf(S,o.ref,t),E=e=>t=>{if(e){const n=S.current;void 0===t?e(n):e(n,t)}},C=E(c),k=E(((e,t)=>{rw(e);const{duration:n,delay:r,easing:o}=ow({style:h,timeout:m,easing:a},{mode:"enter"});let i;"auto"===m?(i=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=i):i=n,e.style.transition=[x.transitions.create("opacity",{duration:i,delay:r}),x.transitions.create("transform",{duration:bC?i:.666*i,delay:r,easing:o})].join(","),l&&l(e,t)})),L=E(s),R=E(f),O=E((e=>{const{duration:t,delay:n,easing:r}=ow({style:h,timeout:m,easing:a},{mode:"exit"});let o;"auto"===m?(o=x.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[x.transitions.create("opacity",{duration:o,delay:n}),x.transitions.create("transform",{duration:bC?o:.666*o,delay:bC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=vC(.75),u&&u(e)})),I=E(p);return d.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Km.jsx(g,Rf({appear:r,in:i,nodeRef:S,onEnter:k,onEntered:L,onEntering:C,onExit:O,onExited:I,onExiting:R,addEndListener:e=>{"auto"===m&&(y.current=setTimeout(e,b.current||0)),n&&n(S.current,e)},timeout:"auto"===m?null:m},v,{children:(e,t)=>d.cloneElement(o,Rf({style:Rf({opacity:0,transform:vC(.75),visibility:"exited"!==e||i?void 0:"hidden"},yC[e],h,o.props.style),ref:w},t))}))}));xC.muiSupportAuto=!0;var SC=xC;function wC(e){return kf("MuiIcon",e)}Lf("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const EC=["baseClassName","className","color","component","fontSize"],CC=wy("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Kp(n.color)}`],t[`fontSize${Kp(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]}))),kC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Of(n,EC),c=Rf({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Sf({root:["root","inherit"!==t&&`color${Kp(t)}`,`fontSize${Kp(n)}`]},wC,r)})(c);return Km.jsx(CC,Rf({as:i,className:ky(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));kC.muiName="Icon";var LC=kC;function RC(e){return kf("MuiInputAdornment",e)}var OC,IC=Lf("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const PC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],TC=wy("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Kp(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Rf({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"}))),_C=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Of(n,PC),p=Iw()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Rf({},n,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:i,position:s,variant:f}),m=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:a,variant:i}=e;return Sf({root:["root",n&&"disablePointerEvents",o&&`position${Kp(o)}`,i,r&&"hiddenLabel",a&&`size${Kp(a)}`]},RC,t)})(h);return Km.jsx(Ow.Provider,{value:null,children:Km.jsx(TC,Rf({as:a,ownerState:h,className:ky(m.root,o),ref:t},u,{children:"string"!=typeof r||l?Km.jsxs(d.Fragment,{children:["start"===s?OC||(OC=Km.jsx("span",{className:"notranslate",children:"​"})):null,r]}):Km.jsx(ww,{color:"text.secondary",children:r})}))})}));var NC=_C;var MC=d.createContext({});function qC(e){return kf("MuiList",e)}Lf("MuiList",["root","padding","dense","subheader"]);const AC=["children","className","component","dense","disablePadding","subheader"],DC=wy("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})=>Rf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),zC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Of(n,AC),u=d.useMemo((()=>({dense:i})),[i]),p=Rf({},n,{component:a,dense:i,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Sf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},qC,t)})(p);return Km.jsx(MC.Provider,{value:u,children:Km.jsxs(DC,Rf({as:a,className:ky(f.root,o),ref:t,ownerState:p},c,{children:[s,r]}))})}));var jC=zC;function FC(e){return kf("MuiListItem",e)}var $C=Lf("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var BC=Lf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function WC(e){return kf("MuiListItemSecondaryAction",e)}Lf("MuiListItemSecondaryAction",["root","disableGutters"]);const HC=["className"],UC=wy("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Rf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),VC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Of(n,HC),a=Rf({},n,{disableGutters:d.useContext(MC).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return Sf({root:["root",t&&"disableGutters"]},WC,n)})(a);return Km.jsx(UC,Rf({className:ky(i.root,r),ownerState:a,ref:t},o))}));VC.muiName="ListItemSecondaryAction";var GC=VC;const KC=["className"],ZC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],XC=wy("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})=>Rf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Rf({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}},{[`&.${$C.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${$C.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${$C.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${$C.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"}},[`&.${$C.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dv(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})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),QC=wy("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),YC=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItem"}),{alignItems:r="center",autoFocus:o=!1,button:a=!1,children:i,className:l,component:s,components:c={},componentsProps:u={},ContainerComponent:p="li",ContainerProps:{className:f}={},dense:h=!1,disabled:m=!1,disableGutters:g=!1,disablePadding:v=!1,divider:y=!1,focusVisibleClassName:b,secondaryAction:x,selected:S=!1,slotProps:w={},slots:E={}}=n,C=Of(n.ContainerProps,KC),k=Of(n,ZC),L=d.useContext(MC),R=d.useMemo((()=>({dense:h||L.dense||!1,alignItems:r,disableGutters:g})),[r,L.dense,h,g]),O=d.useRef(null);tf((()=>{o&&O.current&&O.current.focus()}),[o]);const I=d.Children.toArray(i),P=I.length&&Qp(I[I.length-1],["ListItemSecondaryAction"]),T=Rf({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:P,selected:S}),_=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return Sf({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},FC,r)})(T),N=sf(O,t),M=E.root||c.Root||XC,q=w.root||u.root||{},A=Rf({className:ky(_.root,q.className,l),disabled:m},k);let D=s||"li";return a&&(A.component=s||"div",A.focusVisibleClassName=ky($C.focusVisible,b),D=fS),P?(D=A.component||s?D:"div","li"===p&&("li"===D?D="div":"li"===A.component&&(A.component="div")),Km.jsx(MC.Provider,{value:R,children:Km.jsxs(QC,Rf({as:p,className:ky(_.container,f),ref:N,ownerState:T},C,{children:[Km.jsx(M,Rf({},q,!Ry(M)&&{as:D,ownerState:Rf({},T,q.ownerState)},A,{children:I})),I.pop()]}))})):Km.jsx(MC.Provider,{value:R,children:Km.jsxs(M,Rf({},q,{as:D,ref:N},!Ry(M)&&{ownerState:Rf({},T,q.ownerState)},A,{children:[I,x&&Km.jsx(GC,{children:x})]}))})}));var JC=YC;function ek(e){return kf("MuiListItemIcon",e)}var tk=Lf("MuiListItemIcon",["root","alignItemsFlexStart"]);const nk=["className"],rk=wy("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})=>Rf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),ok=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Of(n,nk),a=Rf({},n,{alignItems:d.useContext(MC).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return Sf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},ek,n)})(a);return Km.jsx(rk,Rf({className:ky(i.root,r),ownerState:a,ref:t},o))}));var ak=ok;var ik=Lf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const lk=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function sk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function ck(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function uk(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 dk(e,t,n,r,o,a){let i=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(i)return!1;i=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&uk(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const pk=d.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:a,className:i,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu"}=e,p=Of(e,lk),f=d.useRef(null),h=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});tf((()=>{r&&f.current.focus()}),[r]),d.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){const n=`${yf(Yp(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=sf(f,t);let g=-1;d.Children.forEach(a,((e,t)=>{d.isValidElement(e)&&(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===g)&&(g=t),g===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(g+=1,g>=a.length&&(g=-1)))}));const v=d.Children.map(a,((e,t)=>{if(t===g){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),d.cloneElement(e,t)}return e}));return Km.jsx(jC,Rf({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,n=e.key,r=Yp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),dk(t,r,s,l,sk);else if("ArrowUp"===n)e.preventDefault(),dk(t,r,s,l,ck);else if("Home"===n)e.preventDefault(),dk(t,null,s,l,sk);else if("End"===n)e.preventDefault(),dk(t,null,s,l,ck);else if(1===n.length){const o=h.current,a=n.toLowerCase(),i=performance.now();o.keys.length>0&&(i-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&a!==o.keys[0]&&(o.repeating=!1)),o.lastTime=i,o.keys.push(a);const s=r&&!o.repeating&&uk(r,o);o.previousKeyMatched&&(s||dk(t,r,!1,l,sk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))}));var fk=pk;function hk(e){return kf("MuiPopover",e)}Lf("MuiPopover",["root","paper"]);const mk=["onEntering"],gk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function vk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function yk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function bk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function xk(e){return"function"==typeof e?e():e}const Sk=wy(UE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wk=wy(cw,{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=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:a={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:p=8,marginThreshold:f=16,open:h,PaperProps:m={},transformOrigin:g={vertical:"top",horizontal:"left"},TransitionComponent:v=SC,transitionDuration:y="auto",TransitionProps:{onEntering:b}={}}=n,x=Of(n.TransitionProps,mk),S=Of(n,gk),w=d.useRef(),E=sf(w,m.ref),C=Rf({},n,{anchorOrigin:a,anchorReference:l,elevation:p,marginThreshold:f,PaperProps:m,transformOrigin:g,TransitionComponent:v,transitionDuration:y,TransitionProps:x}),k=(e=>{const{classes:t}=e;return Sf({root:["root"],paper:["paper"]},hk,t)})(C),L=d.useCallback((()=>{if("anchorPosition"===l)return i;const e=xk(o),t=(e&&1===e.nodeType?e:Yp(w.current).body).getBoundingClientRect();return{top:t.top+vk(t,a.vertical),left:t.left+yk(t,a.horizontal)}}),[o,a.horizontal,a.vertical,i,l]),R=d.useCallback((e=>({vertical:vk(e,g.vertical),horizontal:yk(e,g.horizontal)})),[g.horizontal,g.vertical]),O=d.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=R(t);if("none"===l)return{top:null,left:null,transformOrigin:bk(n)};const r=L();let a=r.top-n.vertical,i=r.left-n.horizontal;const s=a+t.height,c=i+t.width,u=Jp(xk(o)),d=u.innerHeight-f,p=u.innerWidth-f;if(a<f){const e=a-f;a-=e,n.vertical+=e}else if(s>d){const e=s-d;a-=e,n.vertical+=e}if(i<f){const e=i-f;i-=e,n.horizontal+=e}else if(c>p){const e=c-p;i-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(i)}px`,transformOrigin:bk(n)}}),[o,l,L,R,f]),[I,P]=d.useState(h),T=d.useCallback((()=>{const e=w.current;if(!e)return;const t=O(e);null!==t.top&&(e.style.top=t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,P(!0)}),[O]);d.useEffect((()=>{h&&T()})),d.useImperativeHandle(r,(()=>h?{updatePosition:()=>{T()}}:null),[h,T]),d.useEffect((()=>{if(!h)return;const e=Xp((()=>{T()})),t=Jp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,h,T]);let _=y;"auto"!==y||v.muiSupportAuto||(_=void 0);const N=u||(o?Yp(xk(o)).body:void 0);return Km.jsx(Sk,Rf({BackdropProps:{invisible:!0},className:ky(k.root,c),container:N,open:h,ref:t,ownerState:C},S,{children:Km.jsx(v,Rf({appear:!0,in:h,onEntering:(e,t)=>{b&&b(e,t),T()},onExited:()=>{P(!1)},timeout:_},x,{children:Km.jsx(wk,Rf({elevation:p},m,{ref:E,className:ky(k.paper,m.className)},I?void 0:{style:Rf({},m.style,{opacity:0})},{ownerState:C,children:s}))}))}))}));var Ck=Ek;function kk(e){return kf("MuiMenuItem",e)}var Lk=Lf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Rk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Ok=wy(fS,{shouldForwardProp:e=>xy(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})=>Rf({},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"}},[`&.${Lk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Lk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Lk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dv(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})`:Dv(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Lk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Lk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${GE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${GE.inset}`]:{marginLeft:52},[`& .${ik.root}`]:{marginTop:0,marginBottom:0},[`& .${ik.inset}`]:{paddingLeft:36},[`& .${tk.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Rf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${tk.root} svg`]:{fontSize:"1.25rem"}})))),Ik=d.forwardRef((function(e,t){const n=by({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:a=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:p}=n,f=Of(n,Rk),h=d.useContext(MC),m=d.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=d.useRef(null);tf((()=>{r&&g.current&&g.current.focus()}),[r]);const v=Rf({},n,{dense:m.dense,divider:i,disableGutters:l}),y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:a,classes:i}=e;return Rf({},i,Sf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},kk,i))})(n),b=sf(g,t);let x;return n.disabled||(x=void 0!==u?u:-1),Km.jsx(MC.Provider,{value:m,children:Km.jsx(Ok,Rf({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:ky(y.focusVisible,s),className:ky(y.root,p)},f,{ownerState:v,classes:y}))})}));var Pk,Tk=Ik;const _k=["children","classes","className","label","notched"],Nk=wy("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%"}),Mk=wy("legend")((({ownerState:e,theme:t})=>Rf({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&&Rf({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 qk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],Ak=wy(Dw,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:qw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Rf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Ww.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Ww.focused} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Ww.error} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Ww.disabled} .${Ww.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Rf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Dk=wy((function(e){const{className:t,label:n,notched:r}=e,o=Of(e,_k),a=null!=n&&""!==n,i=Rf({},e,{notched:r,withLabel:a});return Km.jsx(Nk,Rf({"aria-hidden":!0,className:t,ownerState:i},o,{children:Km.jsx(Mk,{ownerState:i,children:a?Km.jsx("span",{children:n}):Pk||(Pk=Km.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}})),zk=wy(zw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Aw})((({theme:e,ownerState:t})=>Rf({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}))),jk=d.forwardRef((function(e,t){var n,r,o,a,i;const l=by({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:c=!1,inputComponent:u="input",label:p,multiline:f=!1,notched:h,slots:m={},type:g="text"}=l,v=Of(l,qk),y=(e=>{const{classes:t}=e;return Rf({},t,Sf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bw,t))})(l),b=Iw(),x=Rw({props:l,muiFormControl:b,states:["required"]}),S=Rf({},l,{color:x.color||"primary",disabled:x.disabled,error:x.error,focused:x.focused,formControl:b,fullWidth:c,hiddenLabel:x.hiddenLabel,multiline:f,size:x.size,type:g}),w=null!=(n=null!=(r=m.root)?r:s.Root)?n:Ak,E=null!=(o=null!=(a=m.input)?a:s.Input)?o:zk;return Km.jsx($w,Rf({slots:{root:w,input:E},renderSuffix:e=>Km.jsx(Dk,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?i||(i=Km.jsxs(d.Fragment,{children:[p," ","*"]})):p,notched:void 0!==h?h:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:c,inputComponent:u,multiline:f,ref:t,type:g},v,{classes:Rf({},y,{notchedOutline:null})}))}));jk.muiName="Input";var Fk=jk,$k=ew(Km.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"),Bk=ew(Km.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 Wk=wy("span")({position:"relative",display:"flex"}),Hk=wy($k)({transform:"scale(1)"}),Uk=wy(Bk)((({theme:e,ownerState:t})=>Rf({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 Vk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Rf({},e,{checked:t});return Km.jsxs(Wk,{className:n.root,ownerState:o,children:[Km.jsx(Hk,{fontSize:r,className:n.background,ownerState:o}),Km.jsx(Uk,{fontSize:r,className:n.dot,ownerState:o})]})}var Gk=d.createContext(void 0);function Kk(e){return kf("MuiRadio",e)}var Zk=Lf("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Xk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Qk=wy(fE,{shouldForwardProp:e=>xy(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Kp(n.color)}`]]}})((({theme:e,ownerState:t})=>Rf({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})`:Dv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Zk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Zk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Yk=Km.jsx(Vk,{checked:!0}),Jk=Km.jsx(Vk,{}),eL=d.forwardRef((function(e,t){var n,r;const o=by({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Yk,color:l="primary",icon:s=Jk,name:c,onChange:u,size:p="medium",className:f}=o,h=Of(o,Xk),m=Rf({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:n}=e;return Rf({},t,Sf({root:["root",`color${Kp(n)}`]},Kk,t))})(m),v=d.useContext(Gk);let y=a;const b=Zp(u,v&&v.onChange);let x=c;return v&&(void 0===y&&(y=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(v.value,o.value)),void 0===x&&(x=v.name)),Km.jsx(Qk,Rf({type:"radio",icon:d.cloneElement(s,{fontSize:null!=(n=Jk.props.fontSize)?n:p}),checkedIcon:d.cloneElement(i,{fontSize:null!=(r=Yk.props.fontSize)?r:p}),ownerState:m,classes:g,name:x,checked:y,onChange:b,ref:t,className:ky(g.root,f)},h))}));var tL=eL;function nL(e){return kf("MuiTooltip",e)}var rL=Lf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const oL=["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 aL=wy(Lw,{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})=>Rf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${rL.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${rL.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${rL.arrow}`]:Rf({},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"] .${rL.arrow}`]:Rf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),iL=wy("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${Kp(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Rf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Dv(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},{[`.${rL.popper}[data-popper-placement*="left"] &`]:Rf({transformOrigin:"right center"},t.isRtl?Rf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Rf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${rL.popper}[data-popper-placement*="right"] &`]:Rf({transformOrigin:"left center"},t.isRtl?Rf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Rf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${rL.popper}[data-popper-placement*="top"] &`]:Rf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${rL.popper}[data-popper-placement*="bottom"] &`]:Rf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),lL=wy("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:Dv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let sL=!1,cL=null,uL={x:0,y:0};function dL(e,t){return n=>{t&&t(n),e(n)}}const pL=d.forwardRef((function(e,t){var n,r,o,a,i,l,s,c,u,p,f,h,m,g,v,y,b,x,S;const w=by({props:e,name:"MuiTooltip"}),{arrow:E=!1,children:C,components:k={},componentsProps:L={},describeChild:R=!1,disableFocusListener:O=!1,disableHoverListener:I=!1,disableInteractive:P=!1,disableTouchListener:T=!1,enterDelay:_=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:q=!1,id:A,leaveDelay:D=0,leaveTouchDelay:z=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=SC,TransitionProps:Z}=w,X=Of(w,oL),Q=yy(),Y="rtl"===Q.direction,[J,ee]=d.useState(),[te,ne]=d.useState(null),re=d.useRef(!1),oe=P||q,ae=d.useRef(),ie=d.useRef(),le=d.useRef(),se=d.useRef(),[ce,ue]=af({controlled:$,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=of(A),fe=d.useRef(),he=d.useCallback((()=>{void 0!==fe.current&&(document.body.style.WebkitUserSelect=fe.current,fe.current=void 0),clearTimeout(se.current)}),[]);d.useEffect((()=>()=>{clearTimeout(ae.current),clearTimeout(ie.current),clearTimeout(le.current),he()}),[he]);const me=e=>{clearTimeout(cL),sL=!0,ue(!0),F&&!de&&F(e)},ge=lf((e=>{clearTimeout(cL),cL=setTimeout((()=>{sL=!1}),800+D),ue(!1),j&&de&&j(e),clearTimeout(ae.current),ae.current=setTimeout((()=>{re.current=!1}),Q.transitions.duration.shortest)})),ve=e=>{re.current&&"touchstart"!==e.type||(J&&J.removeAttribute("title"),clearTimeout(ie.current),clearTimeout(le.current),_||sL&&N?ie.current=setTimeout((()=>{me(e)}),sL?N:_):me(e))},ye=e=>{clearTimeout(ie.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)},{isFocusVisibleRef:be,onBlur:xe,onFocus:Se,ref:we}=vf(),[,Ee]=d.useState(!1),Ce=e=>{xe(e),!1===be.current&&(Ee(!1),ye(e))},ke=e=>{J||ee(e.currentTarget),Se(e),!0===be.current&&(Ee(!0),ve(e))},Le=e=>{re.current=!0;const t=C.props;t.onTouchStart&&t.onTouchStart(e)},Re=ve,Oe=ye,Ie=e=>{Le(e),clearTimeout(le.current),clearTimeout(ae.current),he(),fe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",se.current=setTimeout((()=>{document.body.style.WebkitUserSelect=fe.current,ve(e)}),M)},Pe=e=>{C.props.onTouchEnd&&C.props.onTouchEnd(e),he(),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),z)};d.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 Te=sf(C.ref,we,ee,t);G||0===G||(de=!1);const _e=d.useRef(),Ne={},Me="string"==typeof G;R?(Ne.title=de||!Me||I?null:G,Ne["aria-describedby"]=de?pe:null):(Ne["aria-label"]=Me?G:null,Ne["aria-labelledby"]=de&&!Me?pe:null);const qe=Rf({},Ne,X,C.props,{className:ky(X.className,C.props.className),onTouchStart:Le,ref:Te},q?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),uL={x:e.clientX,y:e.clientY},_e.current&&_e.current.update()}}:{}),Ae={};T||(qe.onTouchStart=Ie,qe.onTouchEnd=Pe),I||(qe.onMouseOver=dL(Re,qe.onMouseOver),qe.onMouseLeave=dL(Oe,qe.onMouseLeave),oe||(Ae.onMouseOver=Re,Ae.onMouseLeave=Oe)),O||(qe.onFocus=dL(ke,qe.onFocus),qe.onBlur=dL(Ce,qe.onBlur),oe||(Ae.onFocus=ke,Ae.onBlur=Ce));const De=d.useMemo((()=>{var e;let t=[{name:"arrow",enabled:Boolean(te),options:{element:te,padding:4}}];return null!=(e=H.popperOptions)&&e.modifiers&&(t=t.concat(H.popperOptions.modifiers)),Rf({},H.popperOptions,{modifiers:t})}),[te,H]),ze=Rf({},w,{isRtl:Y,arrow:E,disableInteractive:oe,placement:B,PopperComponentProp:W,touch:re.current}),je=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:a}=e;return Sf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Kp(a.split("-")[0])}`],arrow:["arrow"]},nL,t)})(ze),Fe=null!=(n=null!=(r=V.popper)?r:k.Popper)?n:aL,$e=null!=(o=null!=(a=null!=(i=V.transition)?i:k.Transition)?a:K)?o:SC,Be=null!=(l=null!=(s=V.tooltip)?s:k.Tooltip)?l:iL,We=null!=(c=null!=(u=V.arrow)?u:k.Arrow)?c:lL,He=Oy(Fe,Rf({},H,null!=(p=U.popper)?p:L.popper,{className:ky(je.popper,null==H?void 0:H.className,null==(f=null!=(h=U.popper)?h:L.popper)?void 0:f.className)}),ze),Ue=Oy($e,Rf({},Z,null!=(m=U.transition)?m:L.transition),ze),Ve=Oy(Be,Rf({},null!=(g=U.tooltip)?g:L.tooltip,{className:ky(je.tooltip,null==(v=null!=(y=U.tooltip)?y:L.tooltip)?void 0:v.className)}),ze),Ge=Oy(We,Rf({},null!=(b=U.arrow)?b:L.arrow,{className:ky(je.arrow,null==(x=null!=(S=U.arrow)?S:L.arrow)?void 0:x.className)}),ze);return Km.jsxs(d.Fragment,{children:[d.cloneElement(C,qe),Km.jsx(Fe,Rf({as:null!=W?W:Lw,placement:B,anchorEl:q?{getBoundingClientRect:()=>({top:uL.y,left:uL.x,right:uL.x,bottom:uL.y,width:0,height:0})}:J,popperRef:_e,open:!!J&&de,id:pe,transition:!0},Ae,He,{popperOptions:De,children:({TransitionProps:e})=>Km.jsx($e,Rf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Km.jsxs(Be,Rf({},Ve,{children:[G,E?Km.jsx(We,Rf({},Ge,{ref:ne})):null]}))}))}))]})}));var fL=pL;const[hL,mL]=DS({}),[gL,vL]=DS({}),[yL,bL]=DS({}),[xL,SL]=DS({}),[wL,EL]=DS({}),[,CL]=DS({}),kL=e=>{let{type:t,value:n}=e;const r=CL.get(n.id);CL.set(n.id,{});const o=()=>{vL.clear(n.id),EL.set(n.id,{}),EL.dispatch(!0)},a=()=>{n.removeListener("changed",o),mL.clear(n.id),vL.clear(n.id),bL.clear(n.id),SL.clear(n.id),EL.clear(n.id),CL.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[LL,RL]=DS({},kL);function OL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=LL(),[o]=yL(),[a,i]=d.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 d.useEffect((()=>{if(!t)return;(async()=>{if(!l){const r=t.createSessionObject(e);l=r,o.set(n,l)}const a=await l;r.set(n,a),i(a)})()}),[t,...c]),[a]}const IL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function PL(e){return OL(IL,e)}const TL=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let a;switch(t.type){case"INVALID":a=l(l({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":a={result:l({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":a=l(l({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let i=n.get(r);return i||(i={}),i[o]=a,n.set(r,i),a};function _L(e,t){const n=e?"".concat(e.id):null,[r]=hL(),[o,a]=d.useReducer(TL,n?r.get(n):null),[i]=wL(),[l]=gL();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let i=s[t];if(!i||i&&i.rpcRetry){i={rpc:e[t](),rpcRetry:!1},s[t]=i,a({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{const o=await i.rpc;a({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(i.rpcRetry||(i.rpcRetry=!0),c(!0))}},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),a({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return d.useEffect((()=>{e&&c()}),[e,i.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function NL(e){return _L(e,"getLayout")}function ML(e){return _L(e,"getAppLayout")}function qL(){const[e,t]=d.useState(),[n,r]=d.useState(),o=d.useCallback((e=>{e&&t(e)}),[]),a=()=>{const{left:t,top:n,width:o,height:a}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:a})};return d.useLayoutEffect((()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(a);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return a(),window.addEventListener("resize",a),()=>{window.removeEventListener("resize",a)}}}),[e]),[o,n,e]}function AL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function DL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=l({fontSize:AL(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return G.createElement("i",{style:a},G.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 G.createElement(n,c({key:t},r))}))))}var zL=e=>DL((e=>l(l({},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 jL=e=>DL((e=>l(l({},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 FL=e=>DL((e=>l(l({},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 $L=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},BL=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}}(),WL=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},HL=function(e){function t(){var e,n,r;$L(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=WL(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),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},WL(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),BL(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,a=n.minimumBatchSize,i=void 0===a?10:a,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,a=e.stopIndex,i=[],l=null,s=null,c=o;c<=a;c++)t(c)?null!==s&&(i.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;i.push(l,s)}if(i.length)for(;i[1]-i[0]+1<r&&i[0]>0;){var p=i[0]-1;if(t(p))break;i[0]=p}return i}({isItemLoaded:r,itemCount:o,minimumBatchSize:i,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],a=e[r+1],i=n(o,a);null!=i&&i.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:a})){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}(d.PureComponent);const UL=["S","XS"],VL=e=>e.reduce(((e,t)=>e.concat(t)));function GL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!UL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return VL(t)}async function KL(e){let{selections:t,elemNumbers:n,toggle:r,isSingleSelect:o}=e;if(0===n.length)return!1;let a=!1;if(!n.some((e=>Number.isNaN(e)))){const e=n;try{a=!1!==await t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,r]})}catch(e){a=!1}a||(o?t.cancel():t.clear())}return a}const ZL="RowColumn",XL={row:"".concat(ZL,"-row"),rowBorderBottom:"".concat(ZL,"-rowBorderBottom"),column:"".concat(ZL,"-column"),fieldRoot:"".concat(ZL,"-fieldRoot"),cell:"".concat(ZL,"-cell"),labelText:"".concat(ZL,"-labelText"),labelDense:"".concat(ZL,"-labelDense"),highlighted:"".concat(ZL,"-highlighted"),checkboxLabel:"".concat(ZL,"-checkboxLabel"),icon:"".concat(ZL,"-icon"),S:"".concat(ZL,"-S"),XS:"".concat(ZL,"-XS"),A:"".concat(ZL,"-A"),X:"".concat(ZL,"-X"),frequencyCount:"".concat(ZL,"-frequencyCount"),barContainer:"".concat(ZL,"-barContainer"),bar:"".concat(ZL,"-bar"),barSelected:"".concat(ZL,"-barSelected"),barWithCheckbox:"".concat(ZL,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(ZL,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(ZL,"-excludedTextWithCheckbox")},QL=".".concat(XL.fieldRoot),YL=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function JL(e){var t,n;let{selectionState:r,selections:o,checkboxes:a=!1,doc:i=document,loaderRef:l}=e;const s=d.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});d.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(),a=l.current._listRef._outerRef;return a.addEventListener("gesturestart",n),a.addEventListener("gesturechange",r),a.addEventListener("gestureend",o),()=>{a.removeEventListener("gesturestart",n),a.removeEventListener("gesturechange",r),a.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(),KL({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 VL(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)},p=e=>{const{startElemNumber:t}=s.current;if(t===e)return;const n=u(s.current.startElemNumber,e);r.updateItems(n,!0,s.current.elemNumbers)},f=d.useCallback((e=>{if(r.selectDisabled())return;const t=+e.target.getAttribute("data-n"),n=!r.isSingleSelect&&YL(e.nativeEvent);s.current.elemNumbers=[t],s.current.toggle=n,n||r.clearItemStates(!0),r.updateItem(t),s.current.active=!1,c()}),[]),h=d.useCallback((e=>{if(0!==e.button||r.selectDisabled())return;const t=+e.currentTarget.getAttribute("data-n"),n=!r.isSingleSelect&&YL(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)}),[]),m=d.useCallback((e=>{if(0===e.button&&s.current.active){if(s.current.active=!1,s.current.isRange){const t=+e.currentTarget.getAttribute("data-n");p(t)}c()}}),[]),g=d.useCallback((e=>{0===e.button&&s.current.active&&(s.current.active=!1,c())}),[]),v=d.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");p(t)}),[]),y=d.useCallback((e=>{var t,n,o,a;if(s.current.active||s.current.isRange||r.isSingleSelect||e.touches.length<=1)return;if(e.touches.length>2)return void c();const i=Number(null===(t=e.touches[0].target)||void 0===t||null===(n=t.closest(QL))||void 0===n?void 0:n.getAttribute("data-n")),l=Number(null===(o=e.touches[1].target)||void 0===o||null===(a=o.closest(QL))||void 0===a?void 0:a.getAttribute("data-n"));if(Number.isNaN(i)||Number.isNaN(i))return void c();s.current.active=!0;u(i,l).length<7&&(s.current.touchRangeSmall=!0),s.current.elemNumbers=[],s.current.touchElemNumbers=[i,l]}),[]),b=d.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,p(t),s.current.touchElemNumbers=[],s.current.active=!1,s.current.toggle=!0,c()}),[]);d.useEffect((()=>(i.addEventListener("mouseup",g),()=>{i.removeEventListener("mouseup",g)})),[g]),d.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 x={};return a?Object.assign(x,{onChange:f}):Object.assign(x,{onMouseUp:m,onMouseDown:h,onMouseEnter:v,onTouchStart:y,onTouchEnd:b}),{interactionEvents:x,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 a=!r.isSingleSelect&&YL(null==n?void 0:n.nativeEvent);a||r.clearItemStates(!0);const i=[];return r.updateItems(e,t,i),r.setSelectableValuesUpdating(),KL({selections:o,elemNumbers:t?i:e,isSingleSelect:r.isSingleSelect,toggle:a})}}}const eR=e=>l(l({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var tR=e=>DL(eR(e));const nR=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===nR.ARROW_UP||e===nR.ARROW_DOWN||e===nR.ARROW_LEFT||e===nR.ARROW_RIGHT});function rR(e){null==e||e.querySelectorAll(".last-focused").forEach((e=>{e.classList.remove("last-focused")}))}function oR(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))}const aR=e=>+e.getAttribute("data-n"),iR=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},lR=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};function sR(e){let{keyboard:t,hovering:n,updateKeyScroll:r,containerRef:o,currentScrollIndex:a,isModal:i,constraints:l}=e;return{handleKeyDown:e=>{const{keyCode:n,shiftKey:r=!1}=e.nativeEvent,a=()=>{e.stopPropagation(),e.preventDefault()};if(!t.enabled)return;const l=e.currentTarget.closest(".listbox-container"),s=i();switch(n){case nR.TAB:if(s)r?lR(l)||iR(l):iR(l)||lR(l);else{if(!r)break;t.blur(!0)}a();break;case nR.ENTER:case nR.SPACE:if(!e.target.classList.contains("listbox-container"))break;t.focus(),a();break;case nR.ESCAPE:(e=>{const{currentTarget:n,target:r}=e,a=r.classList.contains("listbox-container"),i=oR(n.closest(".listbox-container")),l=1===(null==i?void 0:i.querySelectorAll(".listbox-container").length);if(a||l)t.blur(!0);else{rR(o.current),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",0),null==e||e.focus()}})(e)}},handleOnMouseEnter:()=>{(()=>{const e=(null==l?void 0:l.select)||(null==l?void 0:l.active),t=i();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:i=!1}=e;switch(t){case nR.ARROW_UP:r({up:1});break;case nR.ARROW_DOWN:r({down:1});break;case nR.PAGE_UP:r({up:a.stop-a.start});break;case nR.PAGE_DOWN:r({down:a.stop-a.start});break;case nR.HOME:r({scrollPosition:o&&i?"overflowStart":"start"});break;case nR.END:r({scrollPosition:o&&i?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const cR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,uR=e=>e?"A"===e.qState:null,dR=e=>{let{cell:t,checkboxes:n}=e;return(uR(t)||cR(t))&&n},pR=e=>e.filter((e=>!!e)).join(" ").trim(),fR=e=>e||"-",hR=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}}},mR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},gR=wy("div",{shouldForwardProp:e=>!["flexBasisProp","isGridMode","isGridCol","dense","frequencyWidth"].includes(e)})((e=>{var t,n,r,o,a,i,s,c,u,d;let{theme:p,flexBasisProp:f,isGridMode:h,isGridCol:m,dense:g,frequencyWidth:v}=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(XL.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(XL.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(XL.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(p.palette.divider),color:null!==(o=null===(a=p.listBox)||void 0===a||null===(i=a.content)||void 0===i?void 0:i.color)&&void 0!==o?o:p.palette.text.primary},["& .".concat(XL.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(XL.labelText)]:l(l({flexBasis:f,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},mR),{},{whiteSpace:"pre",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(XL.labelDense)]:{fontSize:12},["& .".concat(XL.highlighted)]:{backgroundColor:"#FFC72A"},["& .".concat(XL.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},mR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(XL.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(XL.S)]:l(l({},hR({theme:p})),{},{border:h?"none":void 0}),["& .".concat(XL.XS)]:l(l({},hR({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(XL.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(XL.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(XL.frequencyCount)]:l(l({justifyContent:"flex-end"},mR),{},{flex:"0 1 ".concat(v,"px"),textAlign:"right",paddingLeft:"2px"}),["&.".concat(XL.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(XL.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(XL.barSelected)]:{zIndex:"0","& .bar-filled":{opacity:"30%",background:p.palette.background.lighter}},["& .".concat(XL.barWithCheckbox)]:{left:29,width:"calc(100% - ".concat(33,"px)")},["& .".concat(XL.barSelectedWithCheckbox)]:{"& .bar-filled":{background:"#BFE5D0",borderColor:"#BFE5D0"}},["& .".concat(XL.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var vR=G.memo(gR);const yR="ListBoxCheckbox",bR={cbIcon:"".concat(yR,"-cbIcon"),cbIconChecked:"".concat(yR,"-cbIconChecked"),cbIconExcluded:"".concat(yR,"-cbIconExcluded"),cbIconAlternative:"".concat(yR,"-cbIconAlternative"),checkbox:"".concat(yR,"-checkbox"),dense:"".concat(yR,"-dense")},xR=wy(kE)((e=>{let{theme:t}=e;return{["& .".concat(bR.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(bR.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(bR.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(bR.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(bR.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(bR.dense)]:{padding:"4px 8px"}}})),SR=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return G.createElement("span",{className:e.cbIcon},n&&G.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function wR(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,showGray:i=!0,dataN:l}=e;return G.createElement(xR,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[bR.checkbox,o&&bR.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:SR(bR,i,a),checkedIcon:G.createElement("span",{className:bR.cbIconChecked})})}const ER="ListBoxRadioButton",CR={denseRadioButton:"".concat(ER,"-denseRadioButton"),radioButton:"".concat(ER,"-radioButton")},kR=wy(tL)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(CR.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function LR(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a}=e;return G.createElement(kR,{checked:n,onChange:t,value:r,name:r,className:CR.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function RR(e){let{label:t,color:n,dense:r,showGray:o=!0,checkboxes:a,cell:i,valueTextAlign:l}=e;return G.createElement(ww,{component:"span",variant:"body2",className:pR([XL.labelText,r&&XL.labelDense,o&&dR({cell:i,checkboxes:a})&&XL.excludedTextWithCheckbox]),color:n,align:l,dir:"auto"},G.createElement("span",{style:{whiteSpace:"pre"}},t))}function OR(e){let{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}=e;return"string"==typeof t?G.createElement(RR,{label:t,color:n,dense:r,showGray:o,checkboxes:a,cell:i,valueTextAlign:l}):t}function IR(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;const f=G.createElement(wR,{onChange:t,label:n,checked:a,dense:i,excluded:cR(l),isGridCol:s,showGray:c,dataN:o}),h=G.createElement(LR,{onChange:t,label:n,checked:a,dense:i,dataN:o});return G.createElement(oC,{color:r,control:u?h:f,className:XL.checkboxLabel,label:G.createElement(OR,{label:n,color:r,dense:i,showGray:c,checkboxes:d,cell:l,valueTextAlign:p}),key:o})}function PR(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;const a=t.map(((e,t)=>{let[n,r]=e;return G.createElement("span",{id:t,className:r?XL.highlighted:""},n)}));return G.createElement(RR,{label:a,dense:n,showGray:r,checkboxes:o})}function TR(e){let{onChange:t,labels:n,checkboxes:r,dense:o,showGray:a,color:i,qElemNumber:l,isSelected:s,cell:c,isGridCol:u,isSingleSelect:d,valueTextAlign:p}=e;const f=G.createElement(PR,{labels:n,dense:o,showGray:a,checkboxes:r});return r?G.createElement(IR,{onChange:t,label:f,color:i,qElemNumber:l,isSelected:s,dense:o,cell:c,isGridCol:u,showGray:a,isSingleSelect:d,checkboxes:r,valueTextAlign:p}):f}var _R=G.memo((function(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}=e;return d?G.createElement(IR,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,checkboxes:d,valueTextAlign:p}):G.createElement(RR,{label:n,color:r,dense:i,showGray:!0,checkboxes:d,cell:l,valueTextAlign:p})}));function NR(e){let{qFrequency:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&"-"!==fR(t)))return;const i=(e=>{let{qFrequency:t,frequencyMax:n}=e;const r=String(t),o="%"===r.substring(r.length-1),a=parseFloat(o?r:t);return"".concat(o?a:a/n*100,"%")})({qFrequency:t,checkboxes:r,frequencyMax:a});return G.createElement(lE,{className:pR([XL.bar,r&&XL.barWithCheckbox,o&&(r?XL.barSelectedWithCheckbox:XL.barSelected)])},G.createElement(lE,{className:"bar-filled",width:i}))}function MR(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;const a=fR(null==t?void 0:t.qFrequency);return G.createElement(mC,{item:!0,style:{display:"flex",alignItems:"center"},className:XL.frequencyCount,"aria-label":a},G.createElement(ww,{noWrap:!0,color:"inherit",variant:"body2",className:pR([r&&XL.labelDense,XL.labelText,o&&dR({cell:t,checkboxes:n})&&XL.excludedTextWithCheckbox])},a))}function qR(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 AR=wy(mC,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,cellPaddingRight:o}=e;return{["&.".concat(XL.fieldRoot)]:l(l({},qR({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{paddingRight:o?"8px":void 0})}}));const DR={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 zR(e){var t;let{layout:n}=e;const{translator:r}=d.useContext(AS),{qStateCounts:o={}}=(null==n||null===(t=n.qListObject)||void 0===t?void 0:t.qDimensionInfo)||{},a=o.qSelected+o.qSelectedExcluded+o.qLocked+o.qLockedExcluded;let i;switch(a){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}const l=r.get(i,[a]);return G.createElement("div",{className:"screenReaderOnly","aria-live":"assertive"},l)}function jR(e){var t,n,r;let{index:o,rowIndex:a,columnIndex:i,style:s,data:c}=e;const{onChange:u,onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,onTouchStart:g,onTouchEnd:v,pages:y,isLocked:b,column:x=!1,checkboxes:S=!1,textAlign:w,direction:E,layoutOptions:C={},freqIsAllowed:k,isSingleSelect:L,actions:R,frequencyMax:O="",histogram:I=!1,keyboard:P,showGray:T=!0,showTick:_=!0,columnCount:N=1,rowCount:M=1,dataOffset:q,focusListItems:A,listCount:D,itemPadding:z,frequencyWidth:j,translator:F,showSearch:$,isModal:B}=c,{dense:W=!1,dataLayout:H="singleColumn",layoutOrder:U}=C;let V,K;const Z={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof i){"row"===U?(V=a*N+i,Z.max=M,Z.currentIndex=a):(V=i*M+a,Z.max=N,Z.currentIndex=i);const e=0;K=l(l({},s),{},{left:e+(0===i?s.left:Number(s.left)+i*e),top:0===a?s.top:Number(s.top)+a*e})}else V=o,Z.max=D,Z.currentIndex=o,K=l({},s);V+=q;const X=d.useRef(null);d.useEffect((()=>{null!==X.current&&(0===Z.currentIndex&&A.first&&(X.current.focus(),A.setFirst(!1)),Z.currentIndex===Z.max-1&&A.last&&(X.current.focus(),A.setLast(!1)))}),[X.current]);const Q=d.useCallback(function(e){let{select:t,selectAll:n,onCtrlF:r,confirm:o,cancel:a,setScrollPosition:i,focusListItems:l,keyboard:s,isModal:c}=e;const u=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=e&&e.parentElement[t?"nextElementSibling":"previousElementSibling"];return n&&n.querySelector("[role]")};let d=!1;const p=e=>{d=e};return e=>{let f;const{currentTarget:h,nativeEvent:m}=e,{keyCode:g,shiftKey:v=!1,ctrlKey:y=!1,metaKey:b=!1}=m;switch(g){case nR.TAB:{const e=h.closest(".listbox-container"),t=c();if(h.classList.add("last-focused"),v){iR(e)||(t?s.focusSelection():s.blur(!0));break}t?s.focusSelection():(h.blur(),s.blur());break}case nR.SHIFT:p(!0);break;case nR.SPACE:t([aR(h)],!1,e);break;case nR.ARROW_DOWN:case nR.ARROW_RIGHT:f=u(h,!0),v&&f&&(d&&(t([aR(h)],!0),p(!1)),t([aR(f)],!0));break;case nR.ARROW_UP:case nR.ARROW_LEFT:f=u(h,!1),v&&f&&(d&&(t([aR(h)],!0),p(!1)),t([aR(f)],!0));break;case nR.ENTER:o();break;case nR.ESCAPE:if(!c())return;a();break;case nR.HOME:if(l.setFirst(!0),y){null==i||i("overflowStart");break}null==i||i("start");break;case nR.END:if(l.setLast(!0),y){null==i||i("overflowEnd");break}null==i||i("end");break;case nR.A:if(y||b){n();break}return;case nR.F:if(y||b){r();break}return;default:return}f&&f.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},R),{},{focusListItems:A,keyboard:P,isModal:B})),[R,null==P?void 0:P.innerTabStops]),Y=d.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:y,cellIndex:V})),[y,V]),J="S"===(null==Y?void 0:Y.qState)||"XS"===(null==Y?void 0:Y.qState)||"L"===(null==Y?void 0:Y.qState)||"XL"===(null==Y?void 0:Y.qState),ee=d.useMemo((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:a}=e;const i=[t?XL.column:XL.row];return n||i.push(XL.rowBorderBottom),o?(r||("XS"===o.qState?i.push(a?XL.XS:XL.S):"S"===o.qState||"L"===o.qState?i.push(XL.S):a&&uR(o)?i.push(XL.A):a&&cR(o)&&i.push(XL.X)),i):[]})({column:x,histogram:I,checkboxes:S,cell:Y,showGray:T})),[null==Y?void 0:Y.qState,I,W,S]),te=d.useCallback((e=>{e.preventDefault()}),[S]);if(!Y)return null;const ne=!["NaN",void 0].includes(null==Y?void 0:Y.qNum);let re;re=!w||w.auto?ne?"rtl"===E?"left":"right":{rtl:"right",ltr:"left"}[E]:(null==w?void 0:w.align)||"left";const oe="grid"===H&&"column"===U,ae=null!==(t=null==Y?void 0:Y.qText)&&void 0!==t?t:"";let ie;if(null!==(n=Y.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=Y.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ie=function(e,t){if(!t.length)return[];const n=t.reduce(((n,r,o)=>{const a=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,a=[];return r>n&&a.push([e.slice(n,r),!1]),a.push([e.slice(r,r+o),!0]),a}(e,r,a));const i=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return i&&l<e.length&&n.push([e.slice(l),!1]),n}),[]);return n}(ae,e)}const le={alignItems:"center",display:"flex",fontSize:"8px"},se={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"rtl"===E?8:S?0:void 0,paddingRight:S?0:"rtl"===E?8:0,justifyContent:re},ce=0===o,ue=S?"auto":"max-content",de=J&&b,pe=!S&&J&&!b,fe=!S&&_,he=S||!_,me=function(e){let{translator:t,label:n,qState:r,isSelected:o,currentIndex:a,maxIndex:i,showSearch:l}=e;const s=DR[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",[a+1,i+1]);return u.unshift(d,p),u.join(". ").trim()}({translator:F,label:ae,qState:Y.qState,currentIndex:Z.currentIndex,maxIndex:Z.max,showSearch:$});return G.createElement(vR,{className:XL.barContainer,flexBasisProp:ue,style:K,isGridCol:oe,isGridMode:"grid"===H,dense:W,frequencyWidth:j,"data-testid":"listbox.item"},G.createElement(AR,{role:"row","aria-label":me,"aria-selected":J,"aria-setsize":Z.max,"aria-rowindex":Z.currentIndex,ref:X,container:!0,dataLayout:H,cellPaddingRight:he,layoutOrder:U,itemPadding:z,gap:0,className:pR(["value",...ee]),classes:{root:XL.fieldRoot},onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,onKeyDown:Q,onTouchStart:g,onTouchEnd:v,onContextMenu:te,tabIndex:ce&&P.innerTabStops?0:-1,"data-n":null==Y?void 0:Y.qElemNumber},(null==Y?void 0:Y.qFrequency)&&G.createElement(NR,{qFrequency:null==Y?void 0:Y.qFrequency,histogram:I,checkboxes:S,isSelected:J,frequencyMax:O}),G.createElement(mC,{item:!0,style:se,className:pR([XL.cell,XL.selectedCell]),title:"".concat(ae)},ie?G.createElement(TR,{onChange:u,labels:ie,checkboxes:S,dense:W,showGray:T,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:J,cell:Y,isGridCol:oe,isSingleSelect:L,valueTextAlign:re}):G.createElement(_R,{onChange:u,label:ae,color:"inherit",qElemNumber:Y.qElemNumber,isSelected:J,dense:W,cell:Y,isGridCol:oe,showGray:T,isSingleSelect:L,checkboxes:S,valueTextAlign:re})),k&&G.createElement(MR,{cell:Y,checkboxes:S,dense:W,showGray:T}),fe&&G.createElement(mC,{item:!0,className:XL.icon},de&&G.createElement(jL,{style:le,size:"small"}),pe&&G.createElement(tR,{style:le,size:"small"}))))}var FR=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function $R(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||FR(r)&&FR(o)))return!1;var r,o;return!0}function BR(e,t){var n;void 0===t&&(t=$R);var r,o=[],a=!1;return function(){for(var i=[],l=0;l<arguments.length;l++)i[l]=arguments[l];return a&&n===this&&t(i,o)||(r=e.apply(this,i),a=!0,n=this,o=i),r}}var WR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function HR(e){cancelAnimationFrame(e.id)}function UR(e,t){var n=WR();var r={id:requestAnimationFrame((function o(){WR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var VR=-1;function GR(e){if(void 0===e&&(e=!1),-1===VR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),VR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return VR}var KR=null;function ZR(e){if(void 0===e&&(e=!1),null===KR||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?KR="positive-descending":(t.scrollLeft=1,KR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),KR}return KR}var XR=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function QR(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,a=e.getColumnWidth,i=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,p=e.getRowOffset,f=e.getRowStartIndexForOffset,h=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,g=e.shouldResetStyleCacheOnItemSizeChange,v=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,$x(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:$x(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=BR((function(e,t,n,o,a,i,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:a,visibleColumnStopIndex:i,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=BR((function(e,t,n,o,a){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:a})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,i=r.props,l=i.columnWidth,s=i.direction,c=i.rowHeight,d=r._getItemStyleCache(g&&l,g&&s,g&&c),f=e+":"+t;if(d.hasOwnProperty(f))o=d[f];else{var h=n(r.props,t,r._instanceProps),m="rtl"===s;d[f]=o={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:p(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:a(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=BR((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,a=t.scrollLeft,i=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===a&&e.scrollTop===i)return null;var t=r.props.direction,c=a;if("rtl"===t)switch(ZR()){case"negative":c=-a;break;case"positive-descending":c=s-o-a}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(i,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<a?"forward":"backward",scrollLeft:c,scrollTop:u,verticalScrollDirection:e.scrollTop<i?"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&&HR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Px(t,e),t.getDerivedStateFromProps=function(e,t){return YR(e,t),v(e),null};var y=t.prototype;return y.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)},y.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,a=this.props,u=a.columnCount,d=a.height,p=a.rowCount,f=a.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,v=GR();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 y=i(this.props,this._instanceProps),b=l(this.props,this._instanceProps)>f?v:0,x=y>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,b):g})},y.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()},y.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(ZR()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var a=o.clientWidth,i=o.scrollWidth;o.scrollLeft=i-a-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},y.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&HR(this._resetIsScrollingTimeoutId)},y.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,a=e.height,s=e.innerRef,c=e.innerElementType,u=e.innerTagName,p=e.itemData,f=e.itemKey,h=void 0===f?XR:f,m=e.outerElementType,g=e.outerTagName,v=e.rowCount,y=e.style,b=e.useIsScrolling,x=e.width,S=this.state.isScrolling,w=this._getHorizontalRangeToRender(),E=w[0],C=w[1],k=this._getVerticalRangeToRender(),L=k[0],R=k[1],O=[];if(r>0&&v)for(var I=L;I<=R;I++)for(var P=E;P<=C;P++)O.push(d.createElement(t,{columnIndex:P,data:p,isScrolling:b?S:void 0,key:h({columnIndex:P,data:p,rowIndex:I}),rowIndex:I,style:this._getItemStyle(I,P)}));var T=i(this.props,this._instanceProps),_=l(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Rx({position:"relative",height:a,width:x,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},y)},d.createElement(c||u||"div",{children:O,ref:s,style:{height:T,pointerEvents:S?"none":void 0,width:_}}))},y._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 a=this._getHorizontalRangeToRender(),i=a[0],l=a[1],s=a[2],c=a[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(i,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,v=m.scrollLeft,y=m.scrollTop,b=m.scrollUpdateWasRequested,x=m.verticalScrollDirection;this._callOnScroll(v,y,g,x,b)}},y._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,a=e.overscanColumnsCount,i=e.overscanCount,l=e.rowCount,s=this.state,c=s.horizontalScrollDirection,u=s.isScrolling,d=s.scrollLeft,p=n||a||i||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]},y._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,a=e.rowCount,i=this.state,l=i.isScrolling,s=i.verticalScrollDirection,c=i.scrollTop,u=r||o||n||1;if(0===t||0===a)return[0,0,0,0];var d=f(this.props,c,this._instanceProps),p=h(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(a-1,p+g)),d,p]},t}(d.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var YR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},JR=function(e,t){return e};function eO(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,a=e.getOffsetForIndexAndAlignment,i=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,$x(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:$x(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=BR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=BR((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,a=r.props,i=a.direction,l=a.itemSize,s=a.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&i);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"===i||"horizontal"===s,h="rtl"===i,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=BR((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,a=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,i=o;if("rtl"===t)switch(ZR()){case"negative":i=-o;break;case"positive-descending":i=a-n-o}return i=Math.max(0,Math.min(i,a-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:i,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,a=t.scrollTop;r.setState((function(e){if(e.scrollOffset===a)return null;var t=Math.max(0,Math.min(a,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&&HR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=UR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Px(t,e),t.getDerivedStateFromProps=function(e,t){return tO(e,t),u(e),null};var p=t.prototype;return p.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)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,i=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?GR():0:s.scrollHeight>s.clientHeight?GR():0}this.scrollTo(a(this.props,e,t,i,this._instanceProps,l))},p.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()},p.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 a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(ZR()){case"negative":a.scrollLeft=-o;break;case"positive-ascending":a.scrollLeft=o;break;default:var i=a.clientWidth,l=a.scrollWidth;a.scrollLeft=l-i-o}else a.scrollLeft=o;else a.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&HR(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,a=e.height,i=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,p=e.itemKey,f=void 0===p?JR:p,h=e.layout,m=e.outerElementType,g=e.outerTagName,v=e.style,y=e.useIsScrolling,b=e.width,x=this.state.isScrolling,S="horizontal"===o||"horizontal"===h,w=S?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),C=E[0],k=E[1],L=[];if(c>0)for(var R=C;R<=k;R++)L.push(d.createElement(t,{data:u,key:f(R,u),index:R,isScrolling:y?x:void 0,style:this._getItemStyle(R)}));var O=r(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:w,ref:this._outerRefSetter,style:Rx({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},v)},d.createElement(l||s||"div",{children:L,ref:i,style:{height:S?"100%":O,pointerEvents:x?"none":void 0,width:S?O:"100%"}}))},p._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 a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,a=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=i(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),d=o&&"backward"!==a?1:Math.max(1,n),p=o&&"forward"!==a?1:Math.max(1,n);return[Math.max(0,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(d.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var tO=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},nO=QR({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,a){var i=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,i*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+a+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,a){var i=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*i-l),u=Math.min(c,t*i),d=Math.max(0,t*i-l+a+i);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,a=e.width,i=t*r,l=Math.ceil((a+n-i)/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,a=e.height,i=t*r,l=Math.ceil((a+n-i)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),rO=eO({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,a){var i=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===i||"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+a);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,a=e.itemCount,i=e.itemSize,l=e.layout,s=e.width,c=t*i,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/i);return Math.max(0,Math.min(a-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const oO="#BBB",aO="#f1f1f1",iO={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function lO(e){let{renderProps:t,layoutOptions:n,maxCount:r,columnCount:o,rowCount:a,overflowDisclaimer:i,qCardinal:l,dataOffset:s}=e;const c="column"===(null==n?void 0:n.layoutOrder)&&"singleColumn"!==n.dataLayout,u=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(t,c),d=c?r.column:r.row,p=(c?o:a)>=d,f=((e,t,n,r)=>e===t*n+r+n)(l,u,c?a:o,s),h=!!s&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(t,c),m=p&&!f&&u>=d-1||h||i.state.show;i.set(m)}const{StyledFixedSizeList:sO,StyledFixedSizeGrid:cO}=function(){const e=e=>({scrollbarColor:"".concat(oO," ").concat(aO),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:aO},"&::-webkit-scrollbar-thumb":{backgroundColor:oO,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Dm(rO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(iO.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Dm(nO,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(iO.styledScrollbars)]:e(n)}}))}}();function uO(e){let{layout:t,width:n,height:r,listCount:o,count:a,textWidth:i,freqIsAllowed:l,checkboxes:s}=e;const{layoutOptions:c={}}=t||{},{layoutOrder:u,maxVisibleRows:d={},maxVisibleColumns:p,dense:f,dataLayout:h}=c,m=l?40:0,g=s?20:0;let v=56+m+g;!s&&v>=80&&(v+=20);let y,b,x,S,w=i+18+m+g;!s&&w>=80&&(w+=20),w=Math.min(150,Math.max(w,v));const E="grid"===h;let C=f?20:E?32:29;E&&(C+=4);const k=null!=r?r:8*C;if(u){let e=n;"row"===u?(y={overflowX:"hidden"},e+=8,({rowCount:S,columnWidth:x,columnCount:b}=function(e){let{maxVisibleColumns:t,listCount:n,containerWidth:r,columnAutoWidth:o,itemMinWidth:a}=e;const i=(null==t?void 0:t.maxColumns)||3,l=r-10;let s;const c=Math.min(n,Math.max(1,Math.round(l/Math.max(a,o))));s=!1!==(null==t?void 0:t.auto)?c:Math.min(n,i,c);const u=l/s;return{rowCount:Math.ceil(n/s),columnWidth:u,columnCount:s}}({maxVisibleColumns:p,listCount:o,containerWidth:e,columnAutoWidth:w,itemMinWidth:v}))):(y={overflowY:"hidden"},({rowCount:S,columnWidth:x,columnCount:b}=function(e){let t,{maxVisibleRows:n,itemHeight:r,listCount:o,listHeight:a,columnAutoWidth:i,containerWidth:l,itemMinWidth:s}=e;const c=(null==n?void 0:n.maxRows)||3,u=Math.floor(a/r);t=!1!==n.auto?u:Math.min(o,c,u);const d=Math.ceil(o/t);return{columnWidth:Math.max(i,l/d,s),columnCount:d,rowCount:t}}({maxVisibleRows:d,itemHeight:C,listCount:o,listHeight:k,columnAutoWidth:w,containerWidth:e,itemMinWidth:v})))}b=("singleColumn"===h?1:b)||1,S=("singleColumn"===h?a:S)||o;const L=c.dense?838e3:577e3;S=Math.min(S,L);const R=Math.floor(3355e4/x);b=Math.min(b,R)||1;const O=S*b;return{columnCount:b,columnWidth:x,rowCount:S,overflowStyling:y,itemHeight:C,listHeight:k,scrollBarWidth:10,count:a,listCount:Math.min(o,O),maxCount:{row:L,column:R},itemPadding:4,frequencyWidth:40}}const dO=(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)));return n.measureText(e).width};function pO(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function fO(e){let{pages:t,minimumBatchSize:n,count:r,calculatePagesHeight:o=!1}=e;const a=null!=t&&t.length&&o?(e=>{let{pages:t=[],minimumBatchSize:n,count:r}=e;const o=t.some((e=>e.qArea.qHeight<n)),a=Math.max(...t.map((e=>e.qArea.qTop+e.qArea.qHeight)));return o?a:r})({pages:t,minimumBatchSize:n,count:r}):r;return a||0}const[hO,mO]=DS({});function gO(e){const t="".concat(e.id),[n]=hO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}const vO=wy(ww,{shouldForwardProp:e=>!["width","dense"].includes(e)})((e=>{let{width:t,dense:n}=e;return l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(n?"12px":"14px")},n&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})}));function yO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=d.useContext(AS);return G.createElement(fL,{title:o?a.get(n):""},G.createElement(vO,{width:t,dense:r,component:"div",variant:"body1",py:"12px"},a.get(n)))}var bO={},xO={},SO={get exports(){return xO},set exports(e){xO=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(SO);var wO,EO={},CO=r(nw);var kO=xO;Object.defineProperty(bO,"__esModule",{value:!0});var LO=bO.default=void 0,RO=kO((wO||(wO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=CO}(EO)),EO)),OO=Km,IO=(0,RO.default)((0,OO.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");LO=bO.default=IO;const PO=wy(cw)((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}})),TO=wy("div")((()=>({paddingLeft:"6px",flexGrow:1}))),_O=wy("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),NO=wy(LO)((()=>({fontSize:"14px"})));function MO(e){let{text:t,dismiss:n,dense:r,parentWidth:o=0}=e;const a="function"==typeof n,i=r?370:282,l=Math.max(o/2-i/2,0),s=Math.min(i,o)-42,c=r&&o<i;return G.createElement(PO,{left:l,style:{maxWidth:i}},G.createElement(TO,null,G.createElement(yO,{text:t,dense:r,width:s,tooltip:c})),G.createElement(_O,{dense:r},a&&G.createElement(mw,{"aria-label":"close",onClick:()=>n()},G.createElement(NO,null))))}function qO(e){let{itemWidth:t,layout:n,frequencyMode:r}=e;const o=t>80,{frequencyEnabled:a=!1}=(null==n?void 0:n.qListObject)||{},i=!["none",void 0].includes(r);return!(!o||!i&&!a)}const AO=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,"))")},DO=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=d.useState(),[a,i]=d.useState(n);return d.useEffect((()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=AO(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),i(!1)})()}),[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:a}},zO=["isLoadingData"],jO=wy("div")((()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}})));function FO(e){var t,n,r,o;let{model:a,app:i,constraints:s,layout:p,selections:f,selectionState:h,direction:m,checkboxes:g,height:v,width:y,frequencyMode:b,update:x,fetchStart:S,postProcessPages:w,calculatePagesHeight:E=!1,keyboard:C={},showGray:k=!0,scrollState:L,selectDisabled:R=(()=>!1),keyScroll:O={state:{},reset:()=>{}},currentScrollIndex:I={set:()=>{}},renderedCallback:P,onCtrlF:T,showSearch:_,isModal:N}=e;const{translator:M}=d.useContext(AS),[q,A]=d.useState(!1),D=!(!p||!p.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:z=g,histogram:j}=null!=p?p:{},F=d.useRef(null),$=d.useRef({queue:[],validPages:!1,dataOffset:0}),B=d.useRef({pages:[]}),{frequencyMax:W,awaitingFrequencyMax:H}=DO(i,p),U=function(e){let{local:t,loaderRef:n,model:r,fetchStart:o,scrollTimeout:a,postProcessPages:i,listData:l}=e;const[s,c]=d.useState(!1),[u,p]=d.useState([]);let[f]=d.useState(0);const h=(e,s)=>{const u=t.current.dataOffset;t.current.queue.push({start:e+u,stop:s+u});const d=!!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],a=r.getListObjectData("/qListObjectDef",[{qTop:n.start>f?n.start-f:0,qHeight:f,qLeft:0,qWidth:1},{qTop:n.start,qHeight:f,qLeft:0,qWidth:1}]).then((n=>{const r=i?i(n):n;t.current.validPages=!0,l.current.pages=r,p(r),c(!1),e()}));o&&o(a)}),d?a:0)}))};return{loadMoreItems:{with(e){let{minimumBatchSize:t}=e;return t&&(f=t),h}},pages:u,isLoading:s}}({local:$,loaderRef:F,model:a,fetchStart:S,scrollTimeout:0,postProcessPages:w,listData:B}),V=u(U,zO),{setStoreValue:K}=gO(a),Z=d.useCallback(V.loadMoreItems,[p]),[X,Q]=d.useState({show:!1,dismissed:!1}),[Y,J]=d.useState([]);null!=V&&V.pages&&(h.update({setPages:J,pages:V.pages,isSingleSelect:D,selectDisabled:R,layout:p}),V.pages.length&&!H&&(null==P||P()));const ee=d.useCallback((e=>{if(null==Y||!Y.length||!$.current.validPages)return!1;$.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Y.filter((e=>t(e)))[0];return n&&t(n)}),[p,Y]),{interactionEvents:te,select:ne}=JL({selectionState:h,selections:f,checkboxes:z,doc:document,loaderRef:F}),{layoutOptions:re={}}=p||{};let oe=!0;re.dataLayout&&(oe="singleColumn"===re.dataLayout||"row"===(null==re?void 0:re.layoutOrder));const ae="grid"===(null==re?void 0:re.dataLayout),ie=e=>{const t=l({},oe?{rowIndex:e}:{columnIndex:e}),n=ae?t:e;F.current._listRef.scrollToItem(n)},le=()=>{if($.current.queue=[],$.current.validPages=!1,F.current){F.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===O.state.scrollPosition;if(p&&p.qSelectionInfo.qInSelections||e)return void(e&&O.reset());$.current.dataOffset=0,ie(0)}};x&&x.call(null,le),d.useEffect((()=>{L&&!q&&F.current&&(F.current._listRef.scrollToItem(L.initScrollPos),A(!0))}),[F.current]),d.useEffect((()=>{le()}),[p,$.current.dataOffset]);const se=(e=>{const t=d.useMemo((()=>"text"in e?e:{}),[e]);return d.useMemo((()=>dO(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:pO(p),font:"14px Source sans pro"});let ce=100;const ue="grid"!==re.dataLayout,de=null==p||null===(t=p.qListObject.qSize)||void 0===t?void 0:t.qcy,pe=fO({pages:Y,minimumBatchSize:ce,count:de,calculatePagesHeight:E,layoutOptions:re,model:a});let fe=qO({itemWidth:y,layout:p,frequencyMode:b});const he=uO({layout:p,width:y,height:v,listCount:pe,count:de,textWidth:se,freqIsAllowed:fe,checkboxes:z});he.columnWidth&&(fe=qO({itemWidth:he.columnWidth,layout:p,frequencyMode:b}));const{listCount:me}=he;K("listCount",me);const ge=e=>{const{scrollIndex:t,offset:n,triggerRerender:r}=function(e){let t,{position:n,isRow:r,sizes:o,layout:a,offset:i}=e,l=!1,s=null!=i?i: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=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(a,o.listCount),t=a.qListObject.qDimensionInfo.qCardinal,l=!0}return{scrollIndex:t,offset:s,triggerRerender:l}}({position:e,isRow:oe,sizes:he,layout:p,offset:$.current.dataOffset});$.current.dataOffset=n,r&&h.triggerStateChanged(),ie(t)};d.useEffect((()=>{const e=O.state;e.up?ie(I.state.start-e.up):e.down?ie(I.state.stop+e.down):e.scrollPosition&&ge(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&O.reset()}),[O.state.up,O.state.down,O.state.scrollPosition]);const{textAlign:ve}=(null==p?void 0:p.qListObject.qDimensionInfo)||{},[ye,be]=d.useState({first:!1,last:!1}),{List:xe,Grid:Se}=function(e){let{layout:t,width:n,checkboxes:r,local:o,isVertical:a,pages:i,selectDisabled:s,interactionEvents:u,frequencyMode:d,histogram:p,isSingleSelect:f,select:h,selectAll:m,onCtrlF:g,textAlign:v,selections:y,keyboard:b,showGray:x,scrollState:S,direction:w,sizes:E,listCount:C,overflowDisclaimer:k,setScrollPosition:L,focusListItems:R,setCurrentScrollIndex:O,constraints:I,frequencyMax:P,freqIsAllowed:T,translator:_,showSearch:N,isModal:M}=e;const{layoutOptions:q={}}=t||{},{columnWidth:A,itemPadding:D,listHeight:z,itemHeight:j,rowCount:F,columnCount:$,frequencyWidth:B}=E||{},W=("grid"===q.dataLayout?A:n)>80,H={direction:"rtl"===w?"rtl":"ltr",useIsScrolling:!0,className:iO.styledScrollbars},U=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,V=l(l({isLocked:U,column:!a,pages:i},U||s()?{}:u),{},{checkboxes:r,layoutOptions:q,frequencyMode:d,freqIsAllowed:T,isSingleSelect:f,textAlign:v,itemPadding:D,frequencyWidth:B,actions:{select:h,confirm:()=>null==y?void 0:y.confirm.call(y),cancel:()=>null==y?void 0:y.cancel.call(y),setScrollPosition:L,selectAll:m,onCtrlF:g},frequencyMax:P,histogram:p,keyboard:b,showGray:x,showTick:W,dataOffset:o.current.dataOffset,focusListItems:R,direction:w,translator:_,showSearch:N,isModal:M});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,G.createElement(sO,c({},H,{dataTestid:"fixed-size-list",scrollDisabled:null==I?void 0:I.active,height:z,width:n,itemCount:C,itemData:l(l({},V),{},{listCount:C}),itemSize:j,onItemsRendered:e=>{var n,a;O({start:e.visibleStartIndex,stop:e.visibleStopIndex}),S&&S.setScrollPos(e.visibleStopIndex),lO({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,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(l({},e))},ref:a}),jR)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{overflowStyling:i,scrollBarWidth:s}=E,{layoutOrder:u}=q||{},d=Math.min(z,F*j+s);return o.current.listRef=a,G.createElement(cO,c({},H,{dataTestid:"fixed-size-grid",scrollDisabled:null==I?void 0:I.active,height:d,width:n,columnCount:$,columnWidth:A,rowCount:F,rowHeight:j,style:l({},i),itemData:l(l({},V),{},{column:void 0,columnCount:$,rowCount:F}),onItemsRendered:e=>{var n,a;const i="row"===u;O({start:i?e.visibleRowStartIndex:e.visibleColumnStartIndex,stop:i?e.visibleRowStopIndex:e.visibleColumnStopIndex});const l=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:a}=e,{overscanRowStartIndex:i,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=i,f=c*o,h=l):(d=s,p=i*a,f=c,h=l*a),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:e,scrollState:S,layoutOrder:u,rowCount:F,columnCount:$});lO({renderProps:e,layoutOptions:q,maxCount:E.maxCount,columnCount:$,rowCount:F,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(l)},ref:a}),jR)}}}({direction:m,layout:p,height:v,width:y,checkboxes:z,frequencyMode:b,histogram:j,keyboard:C,showGray:k,interactionEvents:te,select:ne,selectAll:()=>{h.clearItemStates(!1),a.selectListObjectAll("/qListObjectDef")},onCtrlF:T,textAlign:ve,isVertical:ue,pages:Y,selectDisabled:R,isSingleSelect:D,selections:f,scrollState:L,local:$,sizes:he,listCount:me,overflowDisclaimer:{state:X,set:e=>Q((t=>l(l({},t),{},{show:e})))},setScrollPosition:ge,focusListItems:{first:ye.first,setFirst:e=>be((t=>l(l({},t),{},{first:e}))),last:ye.last,setLast:e=>be((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:I.set,constraints:s,frequencyMax:W,freqIsAllowed:fe,translator:M,showSearch:_,isModal:N}),{columnWidth:we,listHeight:Ee,itemHeight:Ce}=he||{};return ue||(ce=function(e){let{width:t,columnWidth:n,listHeight:r,itemHeight:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:y,columnWidth:we,listHeight:Ee,itemHeight:Ce})),G.createElement(jO,null,G.createElement(zR,{className:"screenReaderOnly",layout:p}),!me&&G.createElement(yO,{width:y,text:"Listbox.NoMatchesForYourTerms"}),G.createElement(HL,{isItemLoaded:ee,itemCount:me||1,loadMoreItems:Z.with({minimumBatchSize:ce}),threshold:0,minimumBatchSize:ce,ref:F,role:"grid"},ue?xe:Se),X.show&&!X.dismissed&&G.createElement(MO,{text:"Listbox.ItemsOverflow",dismiss:()=>Q((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==F||null===(n=F.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==re?void 0:re.dense}))}const $O=e=>l(l({},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"}}]}),BO=e=>l(l({},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"}}]}),WO=e=>l(l({},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"}}]}),HO=e=>l(l({},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 UO=e=>{let{layout:t,model:n,translator:r,selectionState:o}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:$O,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:WO,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:BO,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:HO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}]};const VO=e=>l(l({},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 GO(e){const t=yy(),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 KO={className:"njs-cell-action"},ZO=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=yy(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=GO(r);if(i)return null;const u=Number.parseInt(a.spacing(.5),10),d=r.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&r.keyboardAction():null,p="actions-toolbar-".concat(r.key);return G.createElement(mw,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:d,disabled:l,style:s,className:[KO.className,p].join(" "),size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList","data-testid":p},c&&DL(r.getSvgIconShape()),o&&G.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),XO=e=>l(l({},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"}}]}),QO=e=>l(l({},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 YO=e=>DL(QO(e));const JO="njs-action-toolbar-more",eI={icon:"".concat("More","-icon")},tI=wy(Ck)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(eI.icon)]:{color:t.palette.text.primary}}}));function nI(e){let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:a}=GO(t);return r?null:G.createElement(Tk,{title:t.label,onClick:()=>{t.action(),n()},disabled:o,tabindex:"0"},a&&G.createElement(ak,{className:eI.icon},DL(t.getSvgIconShape())),G.createElement(ww,{noWrap:!0},t.label))}const rI=G.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:o,popoverProps:a={},popoverPaperStyle:i={},onCloseOrActionClick:s=(()=>{})}=e;return n.length>0&&G.createElement(tI,c({},a,{onClose:s,ref:t,open:r,anchorEl:o.current,getContentAnchorEl:null,container:o.current,disablePortal:!0,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:JO}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:l({pointerEvents:"auto",maxWidth:"250px"},i)}}),G.createElement(fk,{id:"moreMenuList"},n.map(((e,t)=>G.createElement(nI,{key:t,item:e,onActionClick:s})))))}));function oI(e){let{keyboardNavigation:t,focusHandler:n,getEnabledButton:r}=e;return e=>{const{target:o,nativeEvent:a}=e,{keyCode:i}=a;switch(i){case nR.ARROW_LEFT:case nR.ARROW_DOWN:case nR.ARROW_RIGHT:case nR.ARROW_UP:if(o.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(o);(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()})([nR.ARROW_LEFT,nR.ARROW_DOWN].includes(i)?e-1:e+1)}e.stopPropagation(),e.preventDefault();break;case nR.SPACE:e.preventDefault();break;case nR.TAB:if(t&&null!=n&&n.refocusContent){(e.shiftKey&&r(!1)===e.target||!e.shiftKey&&r(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),n.refocusContent())}}}}const aI="ActionsToolbar",iI={item:"".concat(aI,"-item"),itemSpacing:"".concat(aI,"-itemSpacing"),firstItemSpacing:"".concat(aI,"-firstItemSpacing"),lastItemSpacing:"".concat(aI,"-lastItemSpacing")},lI=wy(Ck)((e=>{let{theme:t}=e;return{["& .".concat(iI.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(iI.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(iI.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),sI="njs-action-toolbar-popover",cI=G.forwardRef(((e,t)=>{let{className:n,ariaExpanded:r=!1,actions:o=[],first:a=!1,last:i=!1,addAnchor:l=!1,isRtl:s=!1}=e;return o.length>0?G.createElement(mC,{item:!0,container:!0,gap:0,flexDirection:s?"row-reverse":"row",wrap:"nowrap",className:n},o.map(((e,n)=>{let s=[];const c=a&&0===n,u=i&&o.length-1===n;return c&&!u&&(s=[iI.firstItemSpacing,iI.item]),u&&!c&&(s=[...s,iI.lastItemSpacing,iI.item]),c||u||0!==s.length||(s=[iI.itemSpacing,iI.item]),G.createElement(mC,{item:!0,key:e.key,className:s.join(" ").trim()},G.createElement(ZO,{ariaExpanded:r,key:e.key,item:e,ref:0===n?t:null,addAnchor:l}))}))):null})),uI={pointerEvents:"none"},dI={vertical:"bottom",horizontal:"right"};function pI(e){var t,n;let{show:r=!0,actions:o=[],maxItems:a=3,selections:i={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:p="ltr"}=e;const f=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:a}=d.useContext(AS);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:QO},{key:"cancel",type:"icon-button",label:a.get("Selection.Cancel"),enabled:()=>t.canCancel(),action:()=>{r(),t.cancel()},keyboardAction:e=>{o(e),r(),t.cancel()},getSvgIconShape:XO},{key:"confirm",type:"icon-button",label:a.get("Selection.Confirm"),enabled:()=>t.canConfirm(),action:()=>{n(),t.confirm()},keyboardAction:e=>{o(e),n(),t.confirm()},getSvgIconShape:eR}]}(i),{translator:h,keyboardNavigation:m}=d.useContext(AS),[g,v]=d.useState(!1),y={vertical:7,horizontal:(null!==(t=null===(n=s.anchorEl)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)-7},b=d.useRef(),x=d.useRef(),S=yy(),w=d.useMemo((()=>({margin:S.spacing(.5,0)}))),E=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]},C=d.useMemo((()=>oI({keyboardNavigation:m,focusHandler:c,getEnabledButton:E})),[m,c,E]);d.useEffect((()=>()=>{v(!1)}),[s.show,r,i.show]),d.useEffect((()=>{if(!c)return;c.on("focus_toolbar_first",(()=>{const e=E(!1);e&&e.focus()})),c.on("focus_toolbar_last",(()=>{const e=E(!0);e&&e.focus()}))}),[]);let k=l.enabled,L=l.actions;const R=l.alignTo||x,O=o.filter((e=>!e.hidden));if(O.length>a){const e=O.splice(-(O.length-a)-1);k=!0,L=[...e,...l.actions]}if(!i.show&&0===O.length)return null;const I={key:"more",label:h.get("Menu.More"),getSvgIconShape:VO,hidden:!1,active:g,enabled:()=>k,action:()=>v(!g)},P=O.length>0,T=L.length>0,_=P&&i.show||T&&i.show,N="rtl"===p,M=G.createElement(mC,{ref:b,onKeyDown:C,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:N?"row-reverse":"row"}},P&&G.createElement(cI,{actions:O,first:!0,last:!T&&!i.show}),T&&G.createElement(cI,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:x,ariaExpanded:g,actions:[I],first:!P,last:!i.show,addAnchor:!0}),_&&G.createElement(mC,{item:!0,className:iI.itemSpacing,style:w},G.createElement(YE,{orientation:"vertical"})),i.show&&G.createElement(cI,{className:"actions-toolbar-default-actions",actions:f,first:!P&&!T,last:!0,isRtl:N}),g&&G.createElement(rI,{show:g,actions:L,alignTo:R,popoverProps:l.popoverProps,popoverPaperStyle:l.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)}}));return s.show?G.createElement(lI,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:s.show,anchorEl:s.anchorEl,anchorOrigin:y,transformOrigin:dI,hideBackdrop:!0,style:uI,PaperProps:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:sI,style:{pointerEvents:"auto",padding:S.spacing(.8)}}},M):r&&M}var fI=e=>DL((e=>l(l({},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 hI="/qListObjectDef",mI=wy(NC)((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}})),gI=wy(Fk)((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 vI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c,direction:u,hide:p}=e;const{translator:f}=d.useContext(AS),[h,m]=d.useState(""),[g,v]=d.useState(!1),y=d.useRef(),b=yy(),{getStoreValue:x}=gO(r),S="rtl"===u,w=S?"right":"left",E=async()=>{if(t.isModal())try{await r.abortListObjectSearch(hI)}finally{m("")}};d.useEffect((()=>{i||E()}),[i]),d.useEffect((()=>(t.on("deactivated",E),()=>{t.removeListener&&t.removeListener("deactivated",E)})),[]),d.useEffect((()=>{if(g&&y.current){const e=h.length-1;y.current.setSelectionRange(e,e),v(!1)}}),[g,y.current]);const C=async()=>{let e;return await r.searchListObjectFor(hI,h)&&h.length&&x("listCount")>0&&(e=r.acceptListObjectSearch(hI,!0),t.selectionsMade=!0,n.clearItemStates(!1),m("")),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 i&&!1!==c?G.createElement(gI,{startAdornment:G.createElement(mI,{position:"start"},G.createElement(fI,{size:a?"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(9,"px")},a&&{fontSize:12,paddingLeft:b.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}},{flexDirection:S?"row-reverse":"row"}],inputRef:y,size:"small",fullWidth:!0,placeholder:f.get("Listbox.Search"),value:h,onFocus:()=>{s&&(m("**"),v(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(m(e.target.value),e.target.value.length?r.searchListObjectFor(hI,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;p&&p();break;default:return}e.preventDefault(),e.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,style:{textAlign:"".concat(w)},"data-testid":"search-input-field"}}):null}function yI(e){return Object.keys(ne.prototype).forEach((t=>{e[t]=ne.prototype[t]})),ne.init(e),e}const bI=e=>{let t,{appSelections:n,appModal:r,model:o}=e,a=!1,i=!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():(a=!0,this.emit("activated"),r.begin(o,e,!0))},clear(){return i=!1,this.emit("cleared"),t.qListObject?o.clearSelections("/qListObjectDef"):o.resetMadeSelections()},confirm(){return i=!1,a=!1,this.emit("confirmed"),this.emit("deactivated"),r.end(!0)},cancel(){return i=!1,a=!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 i="resetMadeSelections"!==e.method,!!r||(o.resetMadeSelections(),!1)},canClear:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked&&!t.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>t&&t.qListObject&&t.qListObject.qDimensionInfo?!t.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(t&&t.qListObject&&t.qListObject.qDimensionInfo)||!t.qListObject.qDimensionInfo.qLocked,isActive:()=>a,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 yI(l),l},xI=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 SI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=VS(e),[i]=NL(t),l=t?t.id:null,[s]=FS(),[c]=BS(),u=s.get(e.id);let p=c.get(l);return d.useEffect((()=>{a&&t&&!p&&(p=bI({appSelections:a,appModal:u,model:t}),c.set(l,p),c.dispatch(!0))}),[a,t]),d.useEffect((()=>{if(!p)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=xI({elements:o,objectSelections:p,options:r});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{p.isActive()&&p.confirm(),p.removeListener("activated",e),p.removeListener("deactivated",t)}}),[p]),d.useEffect((()=>{p&&p.setLayout(i)}),[p,i]),[p]}function wI(){const e={itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,update(t){var n,r,o;let{setPages:a,pages:i,isSingleSelect:l,selectDisabled:s,layout:c}=t;this.setPages=a;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!==i&&void 0!==i&&(e.enginePages=null!=i?i:[],e.selectedInEngine=GL(i),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[l(l({},n),{},{qState:r}),...t.slice(1)]}));return l(l({},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 EI=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 CI(e){let{alignTo:t,anchorOrigin:n={vertical:"bottom",horizontal:"center"},transformOrigin:r={vertical:"top",horizontal:"center"},show:o,close:a,app:i,fieldName:l,stateName:s="$",autoFocus:c}=e;const u=Boolean(null==l?void 0:l.qLibraryId),p=o&&Boolean(t.current),[f,h]=d.useState(0),m=yy(),g=d.useRef(),[v]=OL({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}},i,l,s),y=d.useCallback((()=>{v.lock("/qListObjectDef")}),[v]),b=d.useCallback((()=>{v.unlock("/qListObjectDef")}),[v]),{translator:x}=d.useContext(AS),S=d.useRef(),w=d.useRef(),[E]=SI(i,v,w),[C]=NL(v),[k]=d.useState((()=>wI()));if(d.useEffect((()=>{E&&p&&(E.isModal(v)||E.goModal("/qListObjectDef"))}),[E,p]),!v||!C||!x)return null;const L=!0===C.qListObject.qDimensionInfo.qLocked,R=(e,t)=>{const n="escapeKeyDown"!==t;E.noModal(n),a()},O=UO({layout:C,model:v,translator:x,selectionState:k}),I=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return EI(t,"qSelected",0)+EI(t,"qSelectedExcluded",0)+EI(t,"qLocked",0)+EI(t,"qLockedExcluded",0)>0}(C);return G.createElement(Ck,{open:p,onClose:R,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},G.createElement(mC,{container:!0,direction:"column",gap:0,ref:w},G.createElement(mC,{item:!0,container:!0,style:{padding:m.spacing(1)}},G.createElement(mC,{item:!0},L?G.createElement(mw,{onClick:b,disabled:!L,size:"large"},G.createElement(jL,{title:x.get("Listbox.Unlock")})):G.createElement(mw,{onClick:y,disabled:!I,size:"large"},G.createElement(FL,{title:x.get("Listbox.Lock")}))),G.createElement(mC,{item:!0,xs:!0}),G.createElement(mC,{item:!0},G.createElement(pI,{more:{enabled:!L,actions:O,alignTo:S,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:E,onConfirm:R,onCancel:()=>R(0,"escapeKeyDown")}}))),G.createElement(mC,{item:!0,xs:!0},G.createElement("div",{ref:S}),G.createElement(mC,{item:!0,ref:g},G.createElement(vI,{visible:!0,model:v,listCount:f,selections:E,selectionState:k,keyboard:{enabled:!1},autoFocus:null==c||c})),G.createElement(FO,{model:v,app:i,layout:C,selections:E,selectionState:k,direction:"ltr",onSetListCount:e=>h(e),onCtrlF:()=>{const e=g.current.querySelector("input");null==e||e.focus()}}))))}function kI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=d.useContext(AS),s=a||d.useRef(),c=yy(),[u,p]=d.useState(!1),f=e=>{e.currentTarget.contains(e.target)&&p(!u)},h=()=>{p(!1),i()},m=t.selections[r];void 0===m.qTotal&&(m.qTotal=0);const g=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},v=(g.qSelected+g.qLocked)/m.qTotal,y=g.qAlternative/m.qTotal,b=(g.qExcluded+g.qLockedExcluded+g.qSelectedExcluded)/m.qTotal,x=g.qSelected+g.qSelectedExcluded+g.qLocked+g.qLockedExcluded,S=0===x&&0===m.qTotal;let w="";m.qTotal===x&&m.qTotal>1?w=l.get("CurrentSelections.All"):x>1&&m.qTotal?w=l.get("CurrentSelections.Of",[x,m.qTotal]):m.qSelectedFieldSelectionInfo&&(w=m.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(w="".concat(t.states[r],": ").concat(w));const E=[{color:c.palette.selected.main,ratio:v},{color:c.palette.selected.alternative,ratio:y},{color:c.palette.selected.excluded,ratio:b}];E.forEach(((e,t)=>{e.offset=t?E[t-1].offset+E[t-1].ratio:0}));let C=null,k=null,L=null,R=null;return a||(C=G.createElement(mC,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},w)),m.qLocked?k=G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(jL,null))):m.qOneAndOnlyOne||(k=G.createElement(mC,{item:!0},G.createElement(mw,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])},size:"large"},G.createElement(zL,null)))),L=G.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===S&&E.map((e=>G.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=G.createElement(mC,{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&&f||null},C,k,L,u&&G.createElement(CI,{alignTo:s,show:u,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),a?G.createElement(CI,{alignTo:s,show:!0,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var LI=e=>DL((e=>l(l({},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 RI={item:"".concat("MultiState","-item")},OI=wy(mC)((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"}}}));function II(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=d.useState(!!r),[l,s]=d.useState(-1),[c,u]=d.useState(r?r.current:null),p=r||d.useRef(),{translator:f}=d.useContext(AS),h=f.get("Selection.ClearAllStates"),m=()=>{s(-1),o()};let g=null;r||(g=G.createElement(G.Fragment,null,G.createElement(mC,{item:!0,xs:!0,zeroMinWidth:!0},G.createElement(aE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},G.createElement(ww,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),G.createElement(mC,{item:!0},G.createElement("div",{style:{width:"12px"}})),G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(LI,null)))));const v=G.createElement(jC,{dense:!0},G.createElement(JC,{title:h,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},G.createElement(ES,{variant:"contained",fullWidth:!0},h)),t.states.map(((e,r)=>G.createElement(JC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},G.createElement(lE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},G.createElement(kI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),y=G.createElement(Ck,{open:a,onClose:()=>{i(!1),o()},anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},v),b=r?y:G.createElement(OI,{container:!0,gap:0,className:RI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),p.current=e.currentTarget,i(!a))}},g,a&&y,l>-1&&G.createElement(CI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?G.createElement(CI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const PI="More",TI={item:"".concat(PI,"-item"),badge:"".concat(PI,"-badge")},_I=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(TI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(TI.badge)]:{padding:t.spacing(0,1)}}}));function NI(e){let{items:t=[],api:n}=e;const r=yy(),[o,a]=d.useState(!1),[i,l]=d.useState(-1),[s,c]=d.useState(null),u=d.useRef(),p=()=>{l(-1)};let f=null;return i>-1&&(f=t[i].states.length>1?G.createElement(II,{field:t[i],api:n,moreAlignTo:u,onClose:p}):G.createElement(kI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:p})),G.createElement(_I,{container:!0,gap:0,className:TI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},G.createElement(mC,{item:!0},G.createElement(lE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},G.createElement(ww,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),G.createElement(mC,{item:!0},G.createElement(mw,{size:"large"},G.createElement(LI,null))),o&&G.createElement(Ck,{open:o,onClose:()=>{a(!1)},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}}},G.createElement(jC,{dense:!0},t.map(((e,t)=>G.createElement(JC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},G.createElement(lE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?G.createElement(II,{field:e,api:n}):G.createElement(kI,{field:e,api:n}))))))),f)}function MI(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 qI(e){let{api:t,app:n}=e;const r=yy(),[o]=PL(n),[a]=NL(o),[i,l]=d.useState({items:[],more:[]}),[s]=HS(),[c,u]=qL(),[p,f]=d.useState(0);return d.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-72,n=Math.floor(t/120);f(n)}),[u]),d.useEffect((()=>{if(!(n&&o&&a&&p))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&&MI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>MI(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e])).filter((e=>!e.selections.some((e=>e.qIsHidden))))}(a);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 p<r.length&&(o=r.splice(p-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),p]),G.createElement(mC,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>G.createElement(mC,{item:!0,key:"".concat(e.states.join("::"),"::").concat(e.name),style:{position:"relative",maxWidth:"240px",minWidth:"".concat(120,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},e.states.length>1?G.createElement(II,{field:e,api:t}):G.createElement(kI,{field:e,api:t})))),i.more.length>0&&G.createElement(mC,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},G.createElement(NI,{items:i.more,api:t})))}var AI=e=>DL((e=>l(l({},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 DI=e=>DL((e=>l(l({},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));function zI(e){const[t]=PL(e),[n]=NL(t),[r]=ML(e),[o,a]=d.useState(null);return d.useEffect((()=>{r&&t&&n&&((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)})(t,n,r)}),[r,t,n]),d.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})),a({canGoBack:e,canGoForward:t,canClear:r})}),[n]),[o,t,n]}function jI(e){let{api:t,app:n}=e;const{translator:r}=d.useContext(AS),[o]=zI(n);return G.createElement(mC,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},G.createElement(mC,{item:!0},G.createElement(mw,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},G.createElement(AI,null))),G.createElement(mC,{item:!0},G.createElement(mw,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},G.createElement(DI,null))),G.createElement(mC,{item:!0},G.createElement(mw,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},G.createElement(YO,null))))}const FI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function $I(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function BI(){return FI.map($I).join("")}function WI(e){let{app:t}=e;const n=yy(),[r]=VS(t);return r?G.createElement(mC,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},G.createElement(mC,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},G.createElement(jI,{api:r,app:t})),G.createElement(mC,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},G.createElement(qI,{api:r,app:t}))):null}function HI(e){let{element:t,app:n}=e;return wp.createPortal(G.createElement(WI,{app:n}),t,BI())}var UI=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},VI=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}}(),GI=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KI=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},ZI=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,a=void 0;try{for(var i,l=e[Symbol.iterator]();!(r=(i=l.next()).done)&&(n.push(i.value),!t||n.length!==t);r=!0);}catch(e){o=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},XI=void 0;XI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var QI=null,YI=null,JI=XI.clearTimeout,eP=XI.setTimeout,tP=XI.cancelAnimationFrame||XI.mozCancelAnimationFrame||XI.webkitCancelAnimationFrame,nP=XI.requestAnimationFrame||XI.mozRequestAnimationFrame||XI.webkitRequestAnimationFrame;function rP(e){var t=void 0,n=void 0,r=void 0,o=void 0,a=void 0,i=void 0,l=void 0,s="undefined"!=typeof document&&document.attachEvent;if(!s){i=function(e){var 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},a=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)){var t=this;i(this),this.__resizeRAF__&&QI(this.__resizeRAF__),this.__resizeRAF__=YI((function(){a(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach((function(n){n.call(t,e)})))}))}};var c=!1,u="";r="animationstart";var d="Webkit Moz O ms".split(" "),p="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),f=document.createElement("fakeelement");if(void 0!==f.style.animationName&&(c=!0),!1===c)for(var h=0;h<d.length;h++)if(void 0!==f.style[d[h]+"AnimationName"]){u="-"+d[h].toLowerCase()+"-",r=p[h],c=!0;break}t="@"+u+"keyframes "+(n="resizeanim")+" { from { opacity: 0; } to { opacity: 0; } } ",o=u+"animation: 1ms "+n+"; "}return{addResizeListener:function(a,c){if(s)a.attachEvent("onresize",c);else{if(!a.__resizeTriggers__){var u=a.ownerDocument,d=XI.getComputedStyle(a);d&&"static"===d.position&&(a.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){var 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%; }',a=n.head||n.getElementsByTagName("head")[0],i=n.createElement("style");i.id="detectElementResize",i.type="text/css",null!=e&&i.setAttribute("nonce",e),i.styleSheet?i.styleSheet.cssText=r:i.appendChild(n.createTextNode(r)),a.appendChild(i)}}(u),a.__resizeLast__={},a.__resizeListeners__=[],(a.__resizeTriggers__=u.createElement("div")).className="resize-triggers";var p=u.createElement("div");p.className="expand-trigger",p.appendChild(u.createElement("div"));var f=u.createElement("div");f.className="contract-trigger",a.__resizeTriggers__.appendChild(p),a.__resizeTriggers__.appendChild(f),a.appendChild(a.__resizeTriggers__),i(a),a.addEventListener("scroll",l,!0),r&&(a.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&i(a)},a.__resizeTriggers__.addEventListener(r,a.__resizeTriggers__.__animationListener__))}a.__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==tP||null==nP?(QI=JI,YI=function(e){return eP(e,20)}):(QI=function(e){var t=ZI(e,2),n=t[0],r=t[1];tP(n),JI(r)},YI=function(e){var t=nP((function(){JI(n),e()})),n=eP((function(){tP(t),e()}),20);return[t,n]});var oP=function(e){function t(){var e,n,r;UI(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=KI(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(a))),r.state={height:r.props.defaultHeight||0,width:r.props.defaultWidth||0},r._onResize=function(){var e=r.props,t=e.disableHeight,n=e.disableWidth,o=e.onResize;if(r._parentNode){var a=r._parentNode.offsetHeight||0,i=r._parentNode.offsetWidth||0,l=window.getComputedStyle(r._parentNode)||{},s=parseInt(l.paddingLeft,10)||0,c=parseInt(l.paddingRight,10)||0,u=parseInt(l.paddingTop,10)||0,d=parseInt(l.paddingBottom,10)||0,p=a-u-d,f=i-s-c;(!t&&r.state.height!==p||!n&&r.state.width!==f)&&(r.setState({height:a-u-d,width:i-s-c}),o({height:a,width:i}))}},r._setRef=function(e){r._autoSizer=e},KI(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),VI(t,[{key:"componentDidMount",value:function(){var e=this.props.nonce;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,this._detectElementResize=rP(e),this._detectElementResize.addResizeListener(this._parentNode,this._onResize),this._onResize())}},{key:"componentWillUnmount",value:function(){this._detectElementResize&&this._parentNode&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize)}},{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,r=e.disableHeight,o=e.disableWidth,a=e.style,i=this.state,l=i.height,s=i.width,c={overflow:"visible"},u={},p=!1;return r||(0===l&&(p=!0),c.height=0,u.height=l),o||(0===s&&(p=!0),c.width=0,u.width=s),d.createElement("div",{className:n,ref:this._setRef,style:GI({},c,a)},!p&&t(u))}}]),t}(d.PureComponent);oP.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var aP=e=>DL((e=>l(l({},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));const iP=wy("div")((()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"})));function lP(e){let{text:t}=e;const{translator:n}=d.useContext(AS);return G.createElement(iP,null,n.get(t))}const sP="ListBoxInline",cP={listBoxHeader:"".concat(sP,"-listBoxHeader"),screenReaderOnly:"".concat(sP,"-screenReaderOnly"),listboxWrapper:"".concat(sP,"-listboxWrapper")},uP=wy(mC,{shouldForwardProp:e=>!["containerPadding","hasIcon"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o,hasIcon:a}=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(cP.listBoxHeader)]:{alignSelf:"center",display:"flex",width:"calc(100% - ".concat(a?28:0,"px)")},["& .".concat(cP.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(cP.listboxWrapper)]:{padding:o},"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(r.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}}})),dP=wy(ww)((e=>{var t,n,r,o,a,i,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===(a=o.title)||void 0===a||null===(i=a.main)||void 0===i?void 0:i.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 pP=G.memo((function(e){var t;let{options:n,layout:r}=e;const{app:o,direction:a,frequencyMode:i,checkboxes:s,search:u=!0,focusSearch:p=!1,rangeSelect:f=!0,model:h,selections:m,update:g,fetchStart:v,selectDisabled:y=(()=>!1),postProcessPages:b,calculatePagesHeight:x,showGray:S=!0,scrollState:w,renderedCallback:E,toolbar:C=!0,isPopover:k=!1}=n,L=yy(),R=d.useCallback((()=>{h.unlock("/qListObjectDef")}),[h]),{translator:O,keyboardNavigation:I,themeApi:P,constraints:T}=d.useContext(AS);L.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")}}})(P);const _=d.useRef(),[N,M]=(()=>{const[e,t]=d.useState({}),n=d.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[q,A]=d.useState(!1),[D,z]=d.useState(!1),j=d.useRef(!1),[F,$]=d.useState({down:0,up:0,scrollPosition:""}),B=e=>$((t=>l(l({},t),e))),[W,H]=d.useState({start:0,stop:0}),[U]=VS(o),V=d.useRef(null),[K]=d.useState((()=>wI())),Z=function(e){let{containerRef:t,enabled:n}=e;const[r,o]=d.useState(!1),a={enabled:n,active:r,innerTabStops:!n||r,blur(e){var r;if(!n)return;o(!1);const a=oR(t.current)||(null===(r=t.current)||void 0===r?void 0:r.parentElement);var i;null==(i=t.current)||i.querySelectorAll('[tabIndex="0"]').forEach((e=>{e.setAttribute("tabIndex",-1)})),rR(t.current),e&&a&&(a.setAttribute("tabIndex",0),a.focus())},focus(){if(!n)return;o(!0);const e=t.current,r=null==e?void 0:e.querySelector(".search input"),a=null==e?void 0:e.querySelector(".value.last-focused"),i=null==e?void 0:e.querySelector(".value.selector, .value, .ActionsToolbar-item button"),l=r||a||i;null==l||l.setAttribute("tabIndex",0),null==l||l.focus()},focusSelection(){const e=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm");null==e||e.setAttribute("tabIndex",0),null==e||e.focus()}};return a}({containerRef:_,enabled:I}),X=d.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:o,appSelections:U})),[o,U]),Q=null==r?void 0:r.qListObject.qDimensionInfo.qError,Y=Q&&T.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",{handleKeyDown:J,handleOnMouseEnter:ee,handleOnMouseLeave:te,globalKeyDown:ne}=d.useMemo((()=>sR({keyboard:Z,hovering:j,updateKeyScroll:B,containerRef:_,currentScrollIndex:W,app:o,appSelections:U,constraints:T,isModal:X})),[Z,j,B,_,W,o,U,T,X]),re=C&&(""===(null==r?void 0:r.title)||!1===(null==r?void 0:r.showTitle))&&!k,oe=C&&""!==(null==r?void 0:r.title)&&!1!==(null==r?void 0:r.showTitle)||k;if(d.useEffect((()=>(document.addEventListener("keydown",ne),()=>{document.removeEventListener("keydown",ne)})),[ne]),d.useEffect((()=>{const e=()=>{A(!0)},t=()=>{A(!1),"toggle"===u&&z(!1)};return k&&(m.isActive()||(m.begin("/qListObjectDef"),m.on("activated",e),m.on("deactivated",t)),A(k)),m&&(m.isModal()||(m.on("activated",e),m.on("deactivated",t)),A(m.isActive())),()=>{m&&m.removeListener&&(m.removeListener("activated",e),m.removeListener("deactivated",t))}}),[m,k]),d.useEffect((()=>{if(N&&N.current&&(u&&p||"toggle"===u&&D)){const e=N.current.querySelector("input");e&&e.focus()}}),[N&&N.current,D,u,p]),!h||!r||!O)return null;const ae=!0===r.qListObject.qDimensionInfo.qLocked,ie="rtl"===a,le="H"===r.qListObject.qDimensionInfo.qGrouping,se=UO({layout:r,model:h,translator:O,selectionState:K}),{wildCardSearch:ce,searchEnabled:ue,layoutOptions:de={}}=r,pe=(!0===u||"toggle"===u&&D)&&!y()&&!1!==ue,fe=null!==(t=de.dense)&&void 0!==t&&t,he=oe?49+(pe?fe?27:40:0)+(fe?39:49):0,me=()=>{z(!D)},ge=()=>{if("toggle"===u)me();else{const e=N.current.querySelector("input");null==e||e.focus()}},ve=e=>function(e){let{isDetached:t,showToolbar:n,containerRef:r,isLocked:o,listboxSelectionToolbarItems:a,selections:i}=e;return{show:n&&!t,popover:{show:n&&t,anchorEl:r.current},more:{enabled:!o,actions:a,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:n,api:i,onConfirm:()=>{},onCancel:()=>{}}}}({isDetached:!k&&e,showToolbar:q,containerRef:_,isLocked:ae,listboxSelectionToolbarItems:se,selections:m}),ye=pe&&"toggle"===u,be=!1!==ue&&"toggle"===u,xe=ae||be,Se=xe||le,we=(xe?28:0)+(le?19:0),Ee=9-(xe?7:0),Ce=ie?9-(Se?7:0):0,{isDetached:ke,reasonDetached:Le}=function(e){var t,n,r,o,a,i;let{containerRef:l,titleRef:s,iconsWidth:c}=e;const u=(null!==(t=null==l||null===(n=l.current)||void 0===n?void 0:n.clientWidth)&&void 0!==t?t:0)<(null!==(r=null==s||null===(o=s.current)||void 0===o?void 0:o.clientWidth)&&void 0!==r?r:0)+c+16+128,d=!!(u|(null==s||null===(a=s.current)||void 0===a?void 0:a.scrollWidth)>(null==s||null===(i=s.current)||void 0===i?void 0:i.offsetWidth));return{isDetached:d,reasonDetached:d?u?"noSpace":"truncated":""}}({containerRef:_,titleRef:V,iconsWidth:we});let Re;"grid"===(null==de?void 0:de.dataLayout)&&(Re="row"===de.layoutOrder?"2px 4px":"2px 6px 2px 4px");const Oe=null!=T&&T.active?G.createElement(fI,{title:O.get("Listbox.Search"),size:"large",style:{fontSize:"12px",padding:"7px"}}):G.createElement(mw,{onClick:me,tabIndex:-1,title:O.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},G.createElement(fI,{style:{fontSize:"12px"}})),Ie=y()?G.createElement(jL,{size:"large",style:{fontSize:"12px",padding:"7px"}}):G.createElement(mw,{title:O.get("SelectionToolbar.ClickToUnlock"),tabIndex:-1,onClick:R,size:"large"},G.createElement(jL,{disableRipple:!0,style:{fontSize:"12px"}}));return G.createElement(G.Fragment,null,re&&G.createElement(pI,c({direction:a},ve(!0))),G.createElement(uP,{className:"listbox-container",container:!0,tabIndex:Z.enabled?-1:void 0,direction:"column",gap:0,containerPadding:Re,style:{height:"100%",minHeight:"".concat(he,"px"),flexFlow:"column nowrap"},onKeyDown:J,onMouseEnter:ee,onMouseLeave:te,ref:_,hasIcon:Se},oe&&G.createElement(mC,{item:!0,container:!0,style:{padding:L.spacing(1),paddingLeft:"".concat(Ee,"px"),paddingRight:"".concat(Ce,"px")},sx:{flexDirection:ie?"row-reverse":"row"},wrap:"nowrap"},G.createElement(mC,{item:!0,container:!0,height:32,sx:{flexDirection:ie?"row-reverse":"row"},wrap:"nowrap"},Se&&G.createElement(mC,{item:!0,sx:{display:"flex",alignItems:"center",width:we}},ae?Ie:be&&Oe,le&&G.createElement(aP,{tabIndex:-1,title:O.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),G.createElement(mC,{item:!0,sx:{justifyContent:ie?"flex-end":"flex-start"},className:cP.listBoxHeader},G.createElement(dP,{variant:"h6",sx:{width:k&&"noSpace"===Le?"60px":void 0},noWrap:!0,ref:V,title:r.title},r.title))),G.createElement(mC,{item:!0,xs:!0}),G.createElement(mC,{item:!0},G.createElement(pI,c({direction:a},ve(ke))))),G.createElement(mC,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"50px"},role:"region","aria-label":O.get("Listbox.ResultFilterLabel")},G.createElement(mC,{item:!0,ref:M},G.createElement("div",{className:cP.screenReaderOnly},O.get("Listbox.Search.ScreenReaderInstructions")),G.createElement(vI,{selections:m,selectionState:K,model:h,dense:fe,keyboard:Z,visible:pe,search:u,autoFocus:ye,wildCardSearch:ce,searchEnabled:ue,direction:a,hide:be&&me})),G.createElement(mC,{item:!0,xs:!0,className:cP.listboxWrapper},G.createElement("div",{className:cP.screenReaderOnly},O.get("Listbox.ScreenReaderInstructions")),Q?G.createElement(lP,{text:Y}):G.createElement(oP,null,(e=>{let{height:t,width:n}=e;return G.createElement(FO,{model:h,app:o,constraints:T,layout:r,selections:m,selectionState:K,direction:a,frequencyMode:i,rangeSelect:f,checkboxes:s,height:t,width:n,update:g,fetchStart:v,postProcessPages:b,calculatePagesHeight:x,selectDisabled:y,keyboard:Z,showGray:S,scrollState:w,keyScroll:{state:F,reset:()=>$({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:W,set:H},renderedCallback:E,onCtrlF:ge,isModal:X})}))))))}));function fP(e){let{options:t={}}=e;const{model:n}=t,[r]=NL(n);return G.createElement(pP,{options:t,layout:r})}const hP=["__DO_NOT_USE__"],mP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=u(e,hP),r={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1},o=l(l(l({},n),r),t);return o};function gP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i,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:i}),[p,f]=d.useState(0);d.useEffect((()=>{if(p)throw new Error("Source or selection Api can not change after a listbox has been mounted");f(p+1)}),[c,u]);const h=c?function(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=d.useState(),[i]=LL(),{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 d.useEffect((()=>{l?a(l):async function(){const e=i.get(n);if(e)a(e);else{const e=await t.getObject(n);i.set(e.id,e),e.once("closed",(()=>{i.clear(e.id)})),a(e)}}()}),[]),o}({app:t,qId:r,options:i}):function(e){var t;let{app:n,fieldIdentifier:r,stateName:o,options:a={}}=e;const[i,l]=d.useState(""),[s,c]=d.useState(!0),[u,p]=d.useState(),[f,h]=d.useState(),m=null!==(t=a.title)&&void 0!==t?t:f;d.useEffect((()=>{const e=a.histogram||"N"!==a.frequencyMode;r.qLibraryId&&e?async function(){try{const e=await n.getDimension(r.qLibraryId),t=await e.getLayout();h(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),h(r))}),[]);const{dense:g,checkboxes:v,listLayout:y,properties:b={}}=a;let{frequencyMode:x,histogram:S=!1}=a;switch(i&&i.failedToFetchFieldDef&&(S=!1,x="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(x):x="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(x):x="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(x):x="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(x):x="R";break;default:x="N"}const w={dense:g};"horizontal"===y&&(w.dataLayout="grid",w.layoutOrder="column",w.maxVisibleColumns={auto:!0},w.maxVisibleRows={auto:!1,maxRows:1});const E=d.useRef();E.current||(E.current=BI());const C={qInfo:{qType:"njsListbox",qId:E.current},qListObjectDef:{qStateName:o,qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:S&&"N"===x?"V":x,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:S,checkboxes:v,layoutOptions:w,title:m};let k;if(Ve(!0,C,b),r.qLibraryId?(C.qListObjectDef.qLibraryId=r.qLibraryId,k=r.qLibraryId):(C.qListObjectDef.qDef.qFieldDefs=[r],k=r),"P"!==x&&S)if(null!=i&&i.multiFieldDim)C.frequencyMax="fetch";else{const e=r.qLibraryId?i:k;C.frequencyMax={qValueExpression:AO(e)}}const[L]=OL(C,s?null:n,k,o);return d.useEffect((()=>{L&&p(L)}),[L]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),m=d.useRef(a),g=u?i.selectionsApi:SI(t,h,[m,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],v=d.useMemo((()=>l(l({},i),{},{selections:g,model:h,app:t,renderedCallback:s})),[i,g,h,t]);return g&&h?G.createElement(fP,{options:v}):null}function vP(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={},renderedCallback:l}=e;return wp.createPortal(G.createElement(gP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i,renderedCallback:l}),t,BI())}const yP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},bP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},yP);return Ve(!0,t,e),t};function xP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=d.useState(!!a.show);return G.createElement(CI,{show:i,app:t,alignTo:{current:o},anchorOrigin:a.anchorOrigin,transformOrigin:a.transformOrigin,close:()=>{l(!1),a.onPopoverClose&&a.onPopoverClose()},fieldName:n,stateName:r,autoFocus:a.autoFocus})}function SP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function wP(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}function EP(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||BI(),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),SP(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 wP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,o,e),r},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):l(l({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||BI(),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),SP(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];wP(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}function CP(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?(e=>({qDef:{qFieldDefs:[e]}}))(e):l(l({},e),{},{qDef:e.qDef||{}});return r.qDef.cId=r.qDef.cId||BI(),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}var kP=(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},LP=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},RP=e=>0===Object.keys(e).length&&e.constructor===Object;var OP={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 IP=2**53-1;function PP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function TP(e,t){const n=Ve(!0,{},t,e);return kP(n,"qOtherTotalSpec.qOtherCounted")||LP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),kP(n,"qOtherTotalSpec.qOtherLimit")||LP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function _P(e,t){return Ve(!0,{},t,e)}function NP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var MP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===kP(e,t)&&LP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:PP,importCommonProperties:function(e,t,n){const r="masterobject"===kP(t,"properties.qInfo.qType")?"masterobject":kP(n,"qInfo.qType");LP(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:TP,createDefaultMeasure:_P,resolveValue:NP,getHypercubePath:function(e){const t=kP(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 a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(OP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,OP.indexRemoved(n.qInterColumnSortOrder,a))},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=Ve(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?LP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||PP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=Ve(!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},a=n.measures||{max:0},i=NP(a.max,r.dimensions.length,IP),l=NP(a.min,r.dimensions.length,0);return{maxDimensions:NP(o.max,i,IP),minDimensions:NP(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(TP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(TP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(_P(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_P(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_P(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(_P(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(_P(i.excludedMeasures[l],a))},updateDimensionsOnAdded:function(e){let{newProperties:t,dataDefinition:n,hypercubePath:r}=e;if(n.dimensions&&"function"==typeof n.dimensions.added){const e=kP(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=kP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var qP={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,a=kP(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();OP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.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&&(MP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!RP(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=MP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=kP(n,a||"").qHyperCubeDef,c=kP(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=MP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=MP.getDefaultDimension(),defaultMeasure:m=MP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,MP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&MP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),MP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),MP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),MP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),MP.copyPropertyIfExist("qMaxStackedCells",s,c),MP.copyPropertyIfExist("qNoOfLeftDims",s,c),MP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),MP.copyPropertyOrSetDefault("qMode",s,c,"S"),MP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),MP.copyPropertyOrSetDefault("qSortbyYValue",s,c),MP.copyPropertyOrSetDefault("qIndentMode",s,c),MP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),MP.importCommonProperties(l,t,n),MP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),MP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const AP=e=>kP(e,"data.targets.0.propertyPath"),DP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qP.exportProperties})(AP(e))},zP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return qP.importProperties})(AP(e))},jP=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),i=r.current.getQae(),s=DP(i),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 zP(u)({exportFormat:s({propertyTree:a,hypercubePath:MP.getHypercubePath(i)}),initialProperties:l({qInfo:{qType:o},visualization:o},kP(u,"properties.initial",{})),dataDefinition:kP(u,"data.targets.0.",{}),hypercubePath:MP.getHypercubePath(u)})},FP={hypercube:qP};var $P=e=>DL((e=>l(l({},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 BP(e){let{d:t}=e;const n=yy();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 a={color:o},i=G.createElement(ww,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},G.createElement(LC,null,t.missing||t.error?G.createElement($P,{style:a}):G.createElement(tR,{style:a})));return G.createElement(mC,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},G.createElement(mC,{item:!0},i),G.createElement(mC,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},G.createElement(ww,{noWrap:!0,component:"p"},G.createElement(ww,{component:"span",variant:"subtitle2",color:r},t.description),G.createElement(ww,{component:"span"}," "),G.createElement(ww,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function WP(e){let{data:t}=e;const n=yy();return G.createElement(mC,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>G.createElement(BP,{d:e,key:t})));return r.length>0&&G.createElement(mC,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},G.createElement(ww,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HP(e){let{title:t="Error",message:n="",data:r=[]}=e;return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},G.createElement(mC,{item:!0},G.createElement($P,{style:{fontSize:"38px"}})),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"error-title"},t)),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),G.createElement(WP,{data:r}))}const UP=["size"],VP="Progress",GP={root:"".concat(VP,"-root"),front:"".concat(VP,"-front"),back:"".concat(VP,"-back")},KP=wy("div")((e=>{let{theme:t}=e;return{["&.".concat(GP.root)]:{position:"relative",display:"inline-block"},["& .".concat(GP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(GP.back)]:{color:t.palette.divider}}})),ZP={small:16,medium:32,large:64,xlarge:128};function XP(e){let{size:t="medium"}=e,n=u(e,UP);const r=ZP[t];return G.createElement(KP,{className:GP.root},G.createElement(FE,c({variant:"determinate",value:100,className:GP.back,size:r,thickness:3},n)),G.createElement(FE,c({variant:"indeterminate",disableShrink:!0,className:GP.front,size:r,thickness:3},n)))}const QP=["cancel","translator"],YP=["retry","translator"],JP={stripes:"".concat("LongRunningQuery","-stripes")},eT=wy(mC)((()=>({["& .".concat(JP.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 tT(e){let{cancel:t,translator:n}=e,r=u(e,QP);return G.createElement(G.Fragment,null,G.createElement(eT,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},G.createElement(mC,{item:!0},G.createElement(XP,null)),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),G.createElement(mC,c({item:!0},r),G.createElement(ES,{variant:"contained",onClick:t},n.get("Cancel"))))}function nT(e){let{retry:t,translator:n}=e,r=u(e,YP);return G.createElement(G.Fragment,null,G.createElement(mC,{item:!0},G.createElement($P,{style:{fontSize:"38px"}})),G.createElement(mC,{item:!0},G.createElement(ww,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),G.createElement(mC,{item:!0},G.createElement(ES,c({variant:"contained",onClick:t},r),n.get("Retry"))))}function rT(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=d.useContext(AS);return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:JP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&G.createElement(tT,{cancel:r.cancel,translator:o,className:JP.cancel}),n&&G.createElement(nT,{retry:r.retry,translator:o,className:JP.retry}))}function oT(){return G.createElement(mC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},G.createElement(XP,{size:"large"}))}const aT="Header",iT={containerStyle:"".concat(aT,"-containerStyle"),containerTitleStyle:"".concat(aT,"-containerTitleStyle")},lT=wy(mC)((e=>{let{theme:t}=e;return{["&.".concat(iT.containerStyle)]:{flexGrow:0},["&.".concat(iT.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),sT="njs-cell-title",cT="njs-cell-sub-title";function uT(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a,titleStyles:i={}}=e;const l=t.showTitles&&!!t.title,s=t.showTitles&&!!t.subtitle,c=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[u,p]=d.useState([]),[f,h]=qL(),[m,g]=d.useState(!1);d.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{p([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),d.useEffect((()=>{if(!h)return;const{width:e}=h;g(e<221)}),[h]);const v=l||s,y=[iT.containerStyle,...v?[iT.containerTitleStyle]:[]],b=(o||c)&&(m||!v),x=v&&!b&&!m,S=G.createElement(pI,{show:x,selections:{show:c,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:u,popover:{show:b,anchorEl:r},focusHandler:a});return G.createElement(lT,{ref:f,item:!0,container:!0,wrap:"nowrap",className:y.join(" ")},G.createElement(mC,{item:!0,zeroMinWidth:!0,xs:!0},G.createElement(mC,{container:!0,wrap:"nowrap",direction:"column"},l&&G.createElement(ww,{variant:"h6",noWrap:!0,className:sT,style:i.main},t.title),s&&G.createElement(ww,{variant:"body2",noWrap:!0,className:cT,style:i.subTitle},t.subtitle))),G.createElement(mC,{item:!0},S))}const dT={itemStyle:"".concat("Footer","-itemStyle")},pT=wy(mC)((e=>{let{theme:t}=e;return{["& .".concat(dT.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),fT="njs-cell-footer";function hT(e){let{layout:t,titleStyles:n={}}=e;return t&&t.showTitles&&t.footnote?G.createElement(pT,{container:!0},G.createElement(mC,{item:!0,className:dT.itemStyle},G.createElement(ww,{noWrap:!0,variant:"body2",className:fT,style:n.footer},t.footnote))):null}class mT{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 gT="njs-viz";function vT(e){let{sn:t,snOptions:n,snPlugins:r,layout:o,appLayout:a,halo:i}=e;const{component:s}=t,{theme:c,language:u,constraints:p,keyboardNavigation:f}=d.useContext(AS),[h]=d.useState((()=>new mT)),[m,g]=d.useState(!1),[v,y]=d.useState(0),[b,x,S]=qL(),[w,E]=d.useState(null),C=d.useCallback((e=>{e&&E(e)}),[]);return d.useEffect((()=>{if(w)return s.created({options:n}),s.mounted(w),g(!0),()=>{h.stop(),s.willUnmount()}}),[w,s]),d.useEffect((()=>{m&&w&&x&&(!s.isHooked&&o&&o.qSelectionInfo&&o.qSelectionInfo.qInSelections||h.schedule((()=>{const e=[];return p.passive||e.push("passive"),p.active||e.push("interact"),p.select||e.push("select"),i.app&&i.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:o,options:n,plugins:r,embed:i.public.nebbie,context:l({constraints:p,theme:i.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),y(v+1))}))})))}),[x,n,r,w,S,o,a,c,u,p,m,f]),G.createElement("div",{ref:b,"data-render-count":v,style:{position:"relative",height:"100%"},className:gT},G.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const yT={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},bT={"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 xT(e,t){return t?function(e){var t;let n,r,o,a;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config)return n=e.session.config,r=new URL(n.url),a="wss:"===r.protocol,o=a?"https://":"http://",o+r.host}(e)+t:void 0}function ST(e,t){const n=null==e?void 0:e.bgImage;if(n){let a="";var r,o;if("media"===n.mode||"media"===e.useImage)a=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,a=xT(t,a);"expression"===n.mode&&(a=n.expressionUrl?decodeURIComponent(n.expressionUrl):void 0);const i=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=bT[e.bgImage.position]),n}(e),l=function(e){var t;let n=yT.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=yT[e.bgImage.sizing]),n}(e);return a?{url:a,pos:i,size:l}:void 0}}function wT(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 ET(e,t,n,r){var o;const a=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},i=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(a.fontStyle,t);return{fontFamily:a.fontFamily||n.getStyle("object.".concat(r),"title.".concat(t),"fontFamily"),color:a.color&&"none"!==a.color.color?n.getColorPickerColor(a.color,!0):n.getStyle("object.".concat(r),t,"color"),fontWeight:i.includes("bold")?"bold":"normal",fontStyle:i.includes("italic")?"italic":"normal",textDecoration:i.includes("underline")?"underline":"initial"}}const CT="njs-cell",kT=(e,t)=>{switch(t.type){case"LOADING":return l(l({},e),{},{loading:!0});case"LOADED":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return l(l({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return l(l({},e),{},{longRunningQuery:!0});case"ERROR":return l(l({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function LT(e){let{delay:t=750}=e;const[n,r]=d.useState(!1);return d.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?G.createElement(oT,null):null}const RT=e=>!e.qError||7005===e.qError.qErrorCode,OT=(e,t,n,r,o)=>[...Array(e).keys()].map((e=>{const a=!(!t||!t[e]),i=a&&t[e].qError&&7005===t[e].qError.qErrorCode,l=a&&!i&&t[e].qError,s=i&&t[e].qCalcCondMsg,c="".concat(l?r:i?s||o:a&&t[e].qFallbackTitle||""),u=n(e);return{description:u?"".concat(u).concat(c.length?":":""):null,label:c,missing:t&&!a&&!l&&e>=t.length||i,error:l}})),IT=e=>e&&(Array.isArray(e)?e:[e])||[],PT=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:OT(o,IT(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:OT(a,IT(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},TT=async(e,t,n,r)=>{let{targets:o}=n;const{hasUnfulfilledErrors:a,aggMinD:i,aggMinM:l,hasLayoutErrors:s,layoutErrors:c}=((e,t,n)=>{let r=!1,o=0,a=0,i=!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=IT(f.qDimensionInfo||f.qItems).filter(RT),m=IT(f.qMeasureInfo).filter(RT);if(o+=d,a+=p,(h.length<d||m.length<p)&&(r=!0),f.qError){i=!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:a,hasLayoutErrors:i,layoutErrors:s}})(e,o,t),u=[],d=[];let p=null;for(let n=0;n<o.length;++n){const i=o[n];if(!s&&a){const n=p||await r.getProperties();p=n;const o=PT(e,t,n,i);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,i]),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]}],y=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:y}]},_T=d.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c,emitter:u}=e;const{app:p,types:f}=n,{nebbie:h}=n.public,{disableCellPadding:m=!1}=n.context||{},{theme:g,translator:v,language:y,keyboardNavigation:b}=d.useContext(AS),x=yy(),[S,w,E]=qL(),[C,k]=d.useReducer(kT,{loading:!1,loaded:!1,longRunningQuery:!1,error:(L=i)?{title:L.message}:null,sn:null,visualization:null});var L;const[R,{validating:O,canCancel:I,canRetry:P},T]=NL(r),[_]=ML(p),[N,M,q]=qL(),[A,D]=d.useState(o),[z,j]=d.useState(a),F="njs-cell-".concat(c),[$]=SI(p,r,["#".concat(F),".njs-action-toolbar-popover"]),[B,W]=d.useState(!1),H=d.useRef({enter:null,leave:null}),[U,V]=d.useState(void 0),[K,Z]=d.useState(void 0),[X,Q]=d.useState(void 0),Y=d.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});d.useEffect((()=>{yI(Y.current)}),[]),d.useEffect((()=>{if(R&&n.public.theme){const e=R.components?R.components.find((e=>"general"===e.key)):null;Q({main:ET(e,"main",n.public.theme,R.visualization),footer:ET(e,"footer",n.public.theme,R.visualization),subTitle:ET(e,"subTitle",n.public.theme,R.visualization)}),V(wT(e,n.public.theme,R.visualization)),Z(ST(e,n.app))}}),[R,n.public.theme,n.app,g]),Y.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&q&&q.focus()},Y.current.refocusContent=()=>{C.sn.component&&"function"==typeof C.sn.component.focus&&C.sn.component.focus()};d.useEffect((()=>{if(i||!_||!R)return;if(C.visualization===R.visualization&&C.sn)return void(async e=>{const[t,n]=await TT(v,R,e.generator.qae.data,r);k(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:C.sn,layout:R,model:r})})(C.sn);const e=f.getSupportedVersion(R.visualization,R.version);return(async(e,t)=>{k({type:"LOADING"});const n=await(async e=>{let{dispatch:t,types:n,visualization:r,version:o,model:a,app:i,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:a,app:i,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:k,types:f,visualization:e,version:t,model:r,app:p,selections:$,nebbie:h,focusHandler:Y.current,emitter:u});n&&(k({type:"LOADED",sn:n,visualization:e}),s())})(R.visualization,e),()=>{}}),[f,C.sn,r,$,R,_,y]),d.useEffect((()=>{if(!O)return;const e=setTimeout((()=>k({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[O]),d.useImperativeHandle(t,(()=>({getQae:()=>C.sn.generator.qae,toggleFocus(e){"function"==typeof C.sn.component.focus&&(e?C.sn.component.focus():C.sn.component.blur())},setSnOptions:D,setSnPlugins:j,async takeSnapshot(){const{width:e,height:t}=w;let n=JSON.parse(JSON.stringify(R));return"function"==typeof C.sn.component.setSnapshotData&&(n=await C.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:v.language(),theme:x.name,appLayout:_,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)}})),[C.sn,M,w,R,x.name,_]);let J=null;return C.loading&&!C.longRunningQuery?J=G.createElement(LT,null):C.error?J=G.createElement(HP,C.error):C.loaded&&(J=G.createElement(vT,{key:R.visualization,sn:C.sn,halo:n,snOptions:A,snPlugins:z,layout:R,appLayout:_})),G.createElement(cw,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:U||"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:CT,ref:S,id:F,onMouseEnter:()=>{H.current.leave&&clearTimeout(H.current.leave),H.enter||(H.current.enter=setTimeout((()=>{W(!0),H.current.enter=null}),250))},onMouseLeave:()=>{H.current.enter&&clearTimeout(H.current.enter),H.current.leave||(H.current.leave=setTimeout((()=>{W(!1),H.current.leave=null}),750))}},G.createElement(mC,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},m?{}:{padding:x.spacing(1)}),C.longRunningQuery?{opacity:"0.3"}:{})},E&&R&&C.sn&&G.createElement(uT,{layout:R,sn:C.sn,anchorEl:E,hovering:B,focusHandler:Y.current,titleStyles:X}," "),G.createElement(mC,{tabIndex:b?0:-1,onKeyDown:b?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:N},J),G.createElement(hT,{layout:R,titleStyles:X})),C.longRunningQuery&&G.createElement(rT,{canCancel:I,canRetry:P,api:T}))}));function NT(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,emitter:l,initialError:s}=e;const{root:c}=t,u=G.createRef(),d=BI(),p=wp.createPortal(G.createElement(_T,{ref:u,halo:t,model:r,currentId:d,initialSnOptions:o,initialSnPlugins:a,initialError:s,onMount:i,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]}function MT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function qT(e,t){return MT(e)&&MT(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function AT(){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 a=t[o];"object"!=typeof n[o]||"object"!=typeof a||Array.isArray(a)?qT(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...AT("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function DT(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 zT=()=>{};function jT(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=zT,a=null,i=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=new ne,f=async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)},h=async e=>{DT(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},m={id:e.id,model:e,async destroy(){await r(),o(),o=zT},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await jP({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},on(e,t){p.on(e,t)},off(e,t){p.off(e,t)},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=NT({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s,emitter:p}),c},async applyProperties(t){const n=AT("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){f(e)},plugins(e){h(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return m}async function FT(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=jT({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}async function $T(e,t){let n,{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c,extendProperties:u}=e,d={};try{const e=t.types.get({name:r,version:o});d=await e.initialProperties(i,u);const n=await e.supernova();a&&function(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const o=t.qae.data.targets[0];if(!o)return;const{propertyPath:a}=o,i=a.split("/");let l=n;for(let e=0;e<i.length;e++){const t=i[e];l=t?l[t]:l}const s=(a.match("/qListObjectDef")?CP:EP)({dc:l,def:o,properties:n});r.forEach((e=>{const t=function(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"}(e);"measure"===t?s.addMeasure(e):s.addDimension(e)}))}({sn:n,properties:d,fields:a}),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},d)}catch(e){n=e,d={qInfo:{qType:r},visualization:r}}const p=await t.app.createSessionObject(d);RL.set(p.id,p);const f=(e=>{const t=kL({type:"SET",value:e});return()=>{t(),RL.clear(e.id)}})(p);return FT(p,{options:l,plugins:s,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),f()}))}const BT="njs-sheet";function WT(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=NL(t),{theme:c}=d.useContext(AS),[u,p]=d.useState([]),[f,h]=d.useState(void 0),[m,g]=d.useState(void 0),[v,y]=d.useState("");d.useEffect((()=>{if(s){const e=JSON.stringify(s.cells);if(e===v)return;y(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 a=await async function(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=SL.get(i);l||(l=t.app.getObject(n),SL.set(i,l));const s=await l;return RL.set(i,s),FT(s,{options:r,plugins:o,element:a},t)}({id:e.name},n);return{model:a.model,id:e.name,bounds:e.bounds,cellRef:G.createRef(),currentId:BI(),mounted:t,mountedPromise:r}})));t.forEach((e=>l.addCell(e.currentId,e.cellRef))),p(t)};t()}}),[s]);const b=d.useMemo((()=>u?u.map((e=>function(e,t,n,r,o,a){const{x:i,y:l,width:s,height:c}=e.bounds;return G.createElement("div",{style:{left:"".concat(i,"%"),top:"".concat(l,"%"),width:"".concat(s,"%"),height:"".concat(c,"%"),position:"absolute"}},G.createElement(_T,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:a}))}(e,n,r,o,a,e.mounted))):[]),[u]);d.useEffect((()=>{const e=null!=s&&s.components?s.components.find((e=>"general"===e.key)):null;h(wT(e,n.public.theme)),g(ST(e,n.app))}),[s,n.public.theme,n.app,c]);const x=!s||Number.isNaN(s.height)?"100%":"".concat(Number(s.height),"%"),S=u.map((e=>e.mountedPromise)),w=S.filter((e=>!!e));return w.length&&Promise.all(S).then((()=>{i()})),G.createElement("div",{className:BT,style:{width:"100%",height:x,position:"relative",backgroundColor:f,backgroundImage:m&&m.url?"url(".concat(m.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:m&&m.size,backgroundPosition:m&&m.pos}},b)}function HT(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=G.createRef(),u=wp.createPortal(G.createElement(WT,{ref:c,halo:t,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),d=()=>{s.remove(u),r.removeListener("closed",d)};return r.on("closed",d),s.add(u),[d,c]}const UT=()=>{};function VT(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=UT,a=null,i=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=async e=>{i?(async()=>{await c,a.current.setSnOptions(l(l({},u),e))})():u=l(l({},u),e)},f=async e=>{DT(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=UT},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=HT({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=AT("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return h}async function GT(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=SL.get(i);l||(l=t.app.getObject(n),SL.set(i,l));const s=await l;return RL.set(i,s),"sheet"===s.genericType?async function(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=VT({model:e,halo:n,initialError:r,onDestroy:o});return t.options&&a.__DO_NOT_USE__.options(t.options),t.plugins&&a.__DO_NOT_USE__.plugins(t.plugins),t.element&&await a.__DO_NOT_USE__.mount(t.element),a}(s,{options:r,plugins:o,element:a},t):FT(s,{options:r,plugins:o,element:a},t)}function KT(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const ZT=Ve.bind(null,!0),XT={},{isArray:QT}=Array;function YT(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function JT(e){return void 0===e}function e_(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function t_(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 a=isNaN(r)?{}:[];e[r||t]=JT(e[r||t])?a:e[t],e=e[r||t]})),e}function n_(e,t){let n=!0;if(YT(e)&&YT(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{n_(e[r],t[r])||(n=!1)})),n);if(QT(e)&&QT(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!n_(e[n],t[n]))return!1;return!0}return e===t}XT.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?ZT({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);n_(a,i)||e_(t,o)||(JT(i)?r.push({op:"add",path:l,value:a}):YT(a)&&YT(i)?r=r.concat(XT.generate(i,a,l)):QT(a)&&QT(i)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let a=-1;function i(e,t,n){if(e[n]&&JT(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(n_(t,o))return r;if(!JT(t[0])&&JT(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)a=i(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===a?(r.push({op:"remove",path:"".concat(n,"/").concat(e)}),o.splice(e,1)):r=r.concat(XT.generate(o[e],t[a],"".concat(n,"/").concat(e)));for(let e=0,l=t.length;e<l;e+=1)a=i(o,t[e].qInfo&&t[e].qInfo.qId),-1===a?(r.push({op:"add",path:"".concat(n,"/").concat(e),value:t[e]}),o.splice(e,0,t[e])):a!==e&&(r.push({op:"move",path:"".concat(n,"/").concat(e),from:"".concat(n,"/").concat(a)}),o.splice(e,0,o.splice(a,1)[0]));return r}(i,a,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:a}))})),Object.keys(e).forEach((o=>{JT(t[o])&&!e_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},XT.apply=function(e,t){t.forEach((t=>{let n=t_(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const a=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(QT(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(QT(o)&&QT(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(YT(o)&&YT(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!e_(i,e)&&delete i[e]})),ZT(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=t_(e,t.from);QT(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(QT(n)?n.splice(+r,1):delete n[r]);var i}))},XT.clone=function(e){return ZT({},e)},XT.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},XT.updateObject=function(e,t){Object.keys(e).length?XT.apply(e,XT.generate(e,t)):ZT(e,t)};const r_=e=>t=>{const n=(r=l(l({},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(ne.prototype).forEach((e=>{r[e]=ne.prototype[e]})),ne.init(r),r);var r;return n};let o_,a_;function i_(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 l_(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 s_(e){u_(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 c_(e){if(e.__hooks.obsolete)return Promise.resolve();a_=-1,o_=e,o_.__hooks.initiated&&o_.__hooks.list.length;try{o_.fn.call(null)}catch(e){console.error(e)}o_.__hooks.initiated=!0;const t=o_.__hooks;return h_(o_),a_=void 0,o_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){u_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){u_(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 u_(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 d_(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 p_(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 f_(e){return e.__hooks.imperativeHandle}function h_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function m_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,h_(e))}function g_(e){if(void 0===o_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=o_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function v_(e){g_(++a_);return o_.context[e]}function y_(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function b_(e){return{__hooked:!0,fn:e,initiate:l_,run:c_,teardown:s_,runSnaps:d_,runMenu:p_,focus:k_,blur:L_,observeActions:m_,getImperativeHandle:f_,updateRectOnNextRun:y_}}function x_(e){const t=g_(++a_);if(!t.value){t.component=o_;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,c_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function S_(e,t){const n=g_(++a_);i_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===o_.__hooks.pendingEffects.indexOf(n)&&o_.__hooks.pendingEffects.push(n))}function w_(e,t){const n=g_(++a_);i_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],o_.__hooks.pendingLayoutEffects.push(n))}function E_(e,t){const n=g_(++a_);return i_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function C_(){return v_("element")}function k_(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 L_(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 R_={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},O_=Object.keys(R_);function I_(e,t){const n=l({},R_);var r;r=n,Object.keys(ne.prototype).forEach((e=>{r[e]=ne.prototype[e]})),ne.init(r);const o={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==O_.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]}));const a=function(e){let{sn:t,component:n}=e;const r={},o=[],a=r_(n);return((t.definition.selectionToolbar||{}).items||[]).forEach((e=>{const t=a(e);r[e.key]=t,o.push(t)})),(t.definition.actions||[]).forEach((e=>{const t=a(e);r[e.key]=t})),{actions:r,selectionToolbarItems:o,destroy(){o.length=0}}}({sn:e,component:o}),i=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:i,selections:t.selections,actions:a.actions}),Object.assign(n,{actions:a.actions,model:t.model,app:t.app,selections:t.selections}),[n,a]}function P_(e,t,n){"function"==typeof e.component&&(e.component=b_(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={},i=["appLayout","constraints"],s={};t.model&&t.model.session||(s.select=!0);const c={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,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{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)}i.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(l(l({},r[e]),s))),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=c.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 i.forEach((e=>{a[e]=JSON.stringify(c.context[e])})),a.themeName=c.context.theme?c.context.theme.name():void 0,a.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):I_(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 a=XT.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));XT.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=XT.generate(a,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 T_=()=>{};function __(e,t){return void 0===e?()=>t:()=>e}function N_(e){const t=e||{};return{min:"function"==typeof t.min?t.min:__(t.min,0),max:"function"==typeof t.max?t.max:__(t.max,1e3),added:t.added||t.add||T_,description:t.description||T_,moved:t.moved||t.move||T_,removed:t.removed||t.remove||T_,replaced:t.replaced||t.replace||T_,isDefined:()=>!!e}}function M_(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,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})(e,n,{}),dimensions:N_(e.dimensions),measures:N_(e.measures)}}function q_(){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);const r={properties:{initial:n,onChange:e},data:{targets:((t.data||{}).targets||[]).map(M_)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function A_(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:q_(n.qae),component:n.component||{},create:e=>P_(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var D_={},z_={get exports(){return D_},set exports(e){D_=e}};!function(e,t){var n;t=e.exports=d,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=Number.MAX_SAFE_INTEGER||9007199254740991,o=t.re=[],a=t.src=[],i=t.tokens={},l=0;function s(e){i[e]=l++}s("NUMERICIDENTIFIER"),a[i.NUMERICIDENTIFIER]="0|[1-9]\\d*",s("NUMERICIDENTIFIERLOOSE"),a[i.NUMERICIDENTIFIERLOOSE]="[0-9]+",s("NONNUMERICIDENTIFIER"),a[i.NONNUMERICIDENTIFIER]="\\d*[a-zA-Z-][a-zA-Z0-9-]*",s("MAINVERSION"),a[i.MAINVERSION]="("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")\\.("+a[i.NUMERICIDENTIFIER]+")",s("MAINVERSIONLOOSE"),a[i.MAINVERSIONLOOSE]="("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")\\.("+a[i.NUMERICIDENTIFIERLOOSE]+")",s("PRERELEASEIDENTIFIER"),a[i.PRERELEASEIDENTIFIER]="(?:"+a[i.NUMERICIDENTIFIER]+"|"+a[i.NONNUMERICIDENTIFIER]+")",s("PRERELEASEIDENTIFIERLOOSE"),a[i.PRERELEASEIDENTIFIERLOOSE]="(?:"+a[i.NUMERICIDENTIFIERLOOSE]+"|"+a[i.NONNUMERICIDENTIFIER]+")",s("PRERELEASE"),a[i.PRERELEASE]="(?:-("+a[i.PRERELEASEIDENTIFIER]+"(?:\\."+a[i.PRERELEASEIDENTIFIER]+")*))",s("PRERELEASELOOSE"),a[i.PRERELEASELOOSE]="(?:-?("+a[i.PRERELEASEIDENTIFIERLOOSE]+"(?:\\."+a[i.PRERELEASEIDENTIFIERLOOSE]+")*))",s("BUILDIDENTIFIER"),a[i.BUILDIDENTIFIER]="[0-9A-Za-z-]+",s("BUILD"),a[i.BUILD]="(?:\\+("+a[i.BUILDIDENTIFIER]+"(?:\\."+a[i.BUILDIDENTIFIER]+")*))",s("FULL"),s("FULLPLAIN"),a[i.FULLPLAIN]="v?"+a[i.MAINVERSION]+a[i.PRERELEASE]+"?"+a[i.BUILD]+"?",a[i.FULL]="^"+a[i.FULLPLAIN]+"$",s("LOOSEPLAIN"),a[i.LOOSEPLAIN]="[v=\\s]*"+a[i.MAINVERSIONLOOSE]+a[i.PRERELEASELOOSE]+"?"+a[i.BUILD]+"?",s("LOOSE"),a[i.LOOSE]="^"+a[i.LOOSEPLAIN]+"$",s("GTLT"),a[i.GTLT]="((?:<|>)?=?)",s("XRANGEIDENTIFIERLOOSE"),a[i.XRANGEIDENTIFIERLOOSE]=a[i.NUMERICIDENTIFIERLOOSE]+"|x|X|\\*",s("XRANGEIDENTIFIER"),a[i.XRANGEIDENTIFIER]=a[i.NUMERICIDENTIFIER]+"|x|X|\\*",s("XRANGEPLAIN"),a[i.XRANGEPLAIN]="[v=\\s]*("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:\\.("+a[i.XRANGEIDENTIFIER]+")(?:"+a[i.PRERELEASE]+")?"+a[i.BUILD]+"?)?)?",s("XRANGEPLAINLOOSE"),a[i.XRANGEPLAINLOOSE]="[v=\\s]*("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:\\.("+a[i.XRANGEIDENTIFIERLOOSE]+")(?:"+a[i.PRERELEASELOOSE]+")?"+a[i.BUILD]+"?)?)?",s("XRANGE"),a[i.XRANGE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAIN]+"$",s("XRANGELOOSE"),a[i.XRANGELOOSE]="^"+a[i.GTLT]+"\\s*"+a[i.XRANGEPLAINLOOSE]+"$",s("COERCE"),a[i.COERCE]="(^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])",s("COERCERTL"),o[i.COERCERTL]=new RegExp(a[i.COERCE],"g"),s("LONETILDE"),a[i.LONETILDE]="(?:~>?)",s("TILDETRIM"),a[i.TILDETRIM]="(\\s*)"+a[i.LONETILDE]+"\\s+",o[i.TILDETRIM]=new RegExp(a[i.TILDETRIM],"g");s("TILDE"),a[i.TILDE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAIN]+"$",s("TILDELOOSE"),a[i.TILDELOOSE]="^"+a[i.LONETILDE]+a[i.XRANGEPLAINLOOSE]+"$",s("LONECARET"),a[i.LONECARET]="(?:\\^)",s("CARETTRIM"),a[i.CARETTRIM]="(\\s*)"+a[i.LONECARET]+"\\s+",o[i.CARETTRIM]=new RegExp(a[i.CARETTRIM],"g");s("CARET"),a[i.CARET]="^"+a[i.LONECARET]+a[i.XRANGEPLAIN]+"$",s("CARETLOOSE"),a[i.CARETLOOSE]="^"+a[i.LONECARET]+a[i.XRANGEPLAINLOOSE]+"$",s("COMPARATORLOOSE"),a[i.COMPARATORLOOSE]="^"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+")$|^$",s("COMPARATOR"),a[i.COMPARATOR]="^"+a[i.GTLT]+"\\s*("+a[i.FULLPLAIN]+")$|^$",s("COMPARATORTRIM"),a[i.COMPARATORTRIM]="(\\s*)"+a[i.GTLT]+"\\s*("+a[i.LOOSEPLAIN]+"|"+a[i.XRANGEPLAIN]+")",o[i.COMPARATORTRIM]=new RegExp(a[i.COMPARATORTRIM],"g");s("HYPHENRANGE"),a[i.HYPHENRANGE]="^\\s*("+a[i.XRANGEPLAIN]+")\\s+-\\s+("+a[i.XRANGEPLAIN]+")\\s*$",s("HYPHENRANGELOOSE"),a[i.HYPHENRANGELOOSE]="^\\s*("+a[i.XRANGEPLAINLOOSE]+")\\s+-\\s+("+a[i.XRANGEPLAINLOOSE]+")\\s*$",s("STAR"),a[i.STAR]="(<|>)?=?\\s*\\*";for(var c=0;c<l;c++)n(c,a[c]),o[c]||(o[c]=new RegExp(a[c]));function u(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d)return e;if("string"!=typeof e)return null;if(e.length>256)return null;if(!(t.loose?o[i.LOOSE]:o[i.FULL]).test(e))return null;try{return new d(e,t)}catch(e){return null}}function d(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof d){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>256)throw new TypeError("version is longer than 256 characters");if(!(this instanceof d))return new d(e,t);n("SemVer",e,t),this.options=t,this.loose=!!t.loose;var a=e.trim().match(t.loose?o[i.LOOSE]:o[i.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>r||this.major<0)throw new TypeError("Invalid major version");if(this.minor>r||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>r||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<r)return t}return e})):this.prerelease=[],this.build=a[5]?a[5].split("."):[],this.format()}t.parse=u,t.valid=function(e,t){var n=u(e,t);return n?n.version:null},t.clean=function(e,t){var n=u(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=d,d.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},d.prototype.toString=function(){return this.version},d.prototype.compare=function(e){return n("SemVer.compare",this.version,this.options,e),e instanceof d||(e=new d(e,this.options)),this.compareMain(e)||this.comparePre(e)},d.prototype.compareMain=function(e){return e instanceof d||(e=new d(e,this.options)),f(this.major,e.major)||f(this.minor,e.minor)||f(this.patch,e.patch)},d.prototype.comparePre=function(e){if(e instanceof d||(e=new d(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 f(r,o)}while(++t)},d.prototype.compareBuild=function(e){e instanceof d||(e=new d(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 f(r,o)}while(++t)},d.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 d(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(v(e,t))return null;var n=u(e),r=u(t),o="";if(n.prerelease.length||r.prerelease.length){o="pre";var a="prerelease"}for(var i in n)if(("major"===i||"minor"===i||"patch"===i)&&n[i]!==r[i])return o+i;return a},t.compareIdentifiers=f;var p=/^[0-9]+$/;function f(e,t){var n=p.test(e),r=p.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function h(e,t,n){return new d(e,n).compare(new d(t,n))}function m(e,t,n){return h(e,t,n)>0}function g(e,t,n){return h(e,t,n)<0}function v(e,t,n){return 0===h(e,t,n)}function y(e,t,n){return 0!==h(e,t,n)}function b(e,t,n){return h(e,t,n)>=0}function x(e,t,n){return h(e,t,n)<=0}function S(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 v(e,n,r);case"!=":return y(e,n,r);case">":return m(e,n,r);case">=":return b(e,n,r);case"<":return g(e,n,r);case"<=":return x(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function w(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof w){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof w))return new w(e,t);n("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===E?this.value="":this.value=this.operator+this.semver.version,n("comp",this)}t.rcompareIdentifiers=function(e,t){return f(t,e)},t.major=function(e,t){return new d(e,t).major},t.minor=function(e,t){return new d(e,t).minor},t.patch=function(e,t){return new d(e,t).patch},t.compare=h,t.compareLoose=function(e,t){return h(e,t,!0)},t.compareBuild=function(e,t,n){var r=new d(e,n),o=new d(t,n);return r.compare(o)||r.compareBuild(o)},t.rcompare=function(e,t,n){return h(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=m,t.lt=g,t.eq=v,t.neq=y,t.gte=b,t.lte=x,t.cmp=S,t.Comparator=w;var E={};function C(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof C)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new C(e.raw,t);if(e instanceof w)return new C(e.value,t);if(!(this instanceof C))return new C(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 k(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 R(e,t,n,r,o,a,i,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 O(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!==E&&e[o].semver.prerelease.length>0){var a=e[o].semver;if(a.major===t.major&&a.minor===t.minor&&a.patch===t.patch)return!0}return!1}return!0}function I(e,t,n){try{t=new C(t,n)}catch(e){return!1}return t.test(e)}function P(e,t,n,r){var o,a,i,l,s;switch(e=new d(e,r),t=new C(t,r),n){case">":o=m,a=x,i=g,l=">",s=">=";break;case"<":o=g,a=b,i=m,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(I(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var u=t.set[c],p=null,f=null;if(u.forEach((function(e){e.semver===E&&(e=new w(">=0.0.0")),p=p||e,f=f||e,o(e.semver,p.semver,r)?p=e:i(e.semver,f.semver,r)&&(f=e)})),p.operator===l||p.operator===s)return!1;if((!f.operator||f.operator===l)&&a(e,f.semver))return!1;if(f.operator===s&&i(e,f.semver))return!1}return!0}w.prototype.parse=function(e){var t=this.options.loose?o[i.COMPARATORLOOSE]:o[i.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 d(n[2],this.options.loose):this.semver=E},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===E||e===E)return!0;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}return S(e,this.operator,this.semver,this.options)},w.prototype.intersects=function(e,t){if(!(e instanceof w))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 C(e.value,t),I(this.value,n,t));if(""===e.operator)return""===e.value||(n=new C(this.value,t),I(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),a=this.semver.version===e.semver.version,i=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),l=S(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),s=S(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||o||a&&i||l||s},t.Range=C,C.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},C.prototype.toString=function(){return this.range},C.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[i.HYPHENRANGELOOSE]:o[i.HYPHENRANGE];e=e.replace(r,R),n("hyphen replace",e),e=e.replace(o[i.COMPARATORTRIM],"$1$2$3"),n("comparator trim",e,o[i.COMPARATORTRIM]),e=(e=(e=e.replace(o[i.TILDETRIM],"$1~")).replace(o[i.CARETTRIM],"$1^")).split(/\s+/).join(" ");var a=t?o[i.COMPARATORLOOSE]:o[i.COMPARATOR],l=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?o[i.CARETLOOSE]:o[i.CARET];return e.replace(r,(function(t,r,o,a,i){var l;return n("caret",e,t,r,o,a,i),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(a)?l="0"===r?">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":">="+r+"."+o+".0 <"+(+r+1)+".0.0":i?(n("replaceCaret pr",i),l="0"===r?"0"===o?">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+"-"+i+" <"+(+r+1)+".0.0"):(n("no pr"),l="0"===r?"0"===o?">="+r+"."+o+"."+a+" <"+r+"."+o+"."+(+a+1):">="+r+"."+o+"."+a+" <"+r+"."+(+o+1)+".0":">="+r+"."+o+"."+a+" <"+(+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?o[i.TILDELOOSE]:o[i.TILDE];return e.replace(r,(function(t,r,o,a,i){var l;return n("tilde",e,t,r,o,a,i),L(r)?l="":L(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":L(a)?l=">="+r+"."+o+".0 <"+r+"."+(+o+1)+".0":i?(n("replaceTilde pr",i),l=">="+r+"."+o+"."+a+"-"+i+" <"+r+"."+(+o+1)+".0"):l=">="+r+"."+o+"."+a+" <"+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?o[i.XRANGELOOSE]:o[i.XRANGE];return e.replace(r,(function(r,o,a,i,l,s){n("xRange",e,r,o,a,i,l,s);var c=L(a),u=c||L(i),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&&(i=0),l=0,">"===o?(o=">=",u?(a=+a+1,i=0,l=0):(i=+i+1,l=0)):"<="===o&&(o="<",u?a=+a+1:i=+i+1),r=o+a+"."+i+"."+l+s):u?r=">="+a+".0.0"+s+" <"+(+a+1)+".0.0"+s:d&&(r=">="+a+"."+i+".0"+s+" <"+a+"."+(+i+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(o[i.STAR],"")}(e,t),n("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(l=l.filter((function(e){return!!e.match(a)}))),l=l.map((function(e){return new w(e,this.options)}),this)},C.prototype.intersects=function(e,t){if(!(e instanceof C))throw new TypeError("a Range is required");return this.set.some((function(n){return k(n,t)&&e.set.some((function(e){return k(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new C(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},C.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new d(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1},t.satisfies=I,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var a=new C(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&-1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,o=null;try{var a=new C(t,n)}catch(e){return null}return e.forEach((function(e){a.test(e)&&(r&&1!==o.compare(e)||(o=new d(r=e,n)))})),r},t.minVersion=function(e,t){e=new C(e,t);var n=new d("0.0.0");if(e.test(n))return n;if(n=new d("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 d(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!m(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 C(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=u(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new C(e,n),t=new C(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof d)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=o[i.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&r.index+r[0].length===n.index+n[0].length||(n=r),o[i.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;o[i.COERCERTL].lastIndex=-1}else n=e.match(o[i.COERCE]);if(null===n)return null;return u(n[2]+"."+(n[3]||"0")+"."+(n[4]||"0"),t)}}(z_,D_);const j_={};async function F_(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!j_[a]){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 i=(r||o.load)({name:e,version:t}),l=Promise.resolve(i);j_[a]=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 j_[a]}function $_(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,a)=>{if(n[o])throw new Error("Supernova '".concat(e,"@").concat(o,"' already registered."));n[o]=function(e,t){let n,r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:a}=o,i={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&a&&a.deps&&a.deps.properties)||D_.satisfies(e,a.deps.properties),supernova:()=>F_(i.name,i.version,t,o.load).then((e=>(n=n||A_(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=l({qInfo:{qType:i.name},visualization:i.name,version:i.version,showTitles:!0},JSON.parse(r));return t?(Ve(!0,n,e),n):l(l({},n),e)}))}};return i}({name:e,version:o},t,a),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]=$_(e.name,t)),r[e.name].register(e.version,n)},getSupportedVersion:(e,t)=>r[e]?r[e].getMatchingVersionFromProperties(t):null,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(j_).forEach((t=>{t.split("__")[0]===e&&(j_[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()))},H_={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:W_};H_.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1};const U_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return l(l({},e),t)},V_=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return[...e,...t].filter(((e,t,n)=>n.indexOf(e)===t))},G_=(e,t)=>({context:U_(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:l({},t.snapshot||e.snapshot),types:V_(e.types,t.types),themes:V_(e.themes,t.themes),flags:U_(e.flags,t.flags),anything:U_(e.anything,t.anything)});var K_=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=J(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let a=l(l({},t.context),{},{translator:n.translator});const[i]=KS({app:e,context:a}),s=dt({themes:t.themes,loadTheme:t.loadTheme,root:i});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:KT(t.flags),deviceType:pt(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:i,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?GT(e,u):$T(e,u)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==a[n]&&(t||(t={}),t[n]=e[n])})),t&&(a=l(l(l({},a),t),{},{translator:n.translator}),u.context=a,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),i.context(a))},selections:async()=>(f||(f={mount(t){h||(h=HI({element:t,app:e}),i.add(h))},unmount(){h&&(i.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=vP({element:a,app:e,fieldIdentifier:t,qId:n,options:mP(l({onSelectionActivated:c,onSelectionDeactivated:u},s)),stateName:s.stateName||"$",renderedCallback:r}),i.add(this._instance)}))},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return yI(o),o},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d,popover(t,n,r){m._popoverInstance&&(i.remove(m._popoverInstance),m._popoverInstance=null);const o=bP(l({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=G.createElement(xP,{element:t,key:BI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,yI(m),m}return r.createConfiguration=n=>e(G_(t,n)),r.config=t,r}(H_);function Z_(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const X_=globalThis.crypto||{getRandomValues:()=>123456};function Q_(){return e=>{const t=Ve({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^X_.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const n=t._mock;let r=t;return n&&(delete t._mock,r=Ve({},t,n)),Promise.resolve(l({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(r),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const Y_=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},J_=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,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];const l=Y_(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},eN=["id","session"],tN=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function nN(e){return!tN.includes(e)}function rN(e){const t=Y_(e.getLayout);return t.qInfo&&t.qInfo.qId}function oN(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=rN(e);const{delay:r}=t,{id:o,session:a}=e,i=u(e,eN);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]:l(l({id:n,session:Y_(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:J_(o,{async:nN(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function aN(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!rN(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function iN(){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(aN);const n=oN(e,t);return async e=>Promise.resolve(n[e])}function lN(){return()=>Promise.resolve({id:"app-layout"})}const sN={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Z_,r=new Q_,o=new iN(e,t),a=new lN,i={id:"app - ".concat(+Date.now()),session:n,createSessionObject:r,getObject:o,getAppLayout:a};return Promise.resolve(i)}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},cN={generator:A_,hook:b_,theme:ct,locale:Q};e.EnigmaMocker=sN,e.__DO_NOT_USE__=cN,e.conversion=FP,e.embed=K_,e.onContextMenu=function(e){const t=g_(++a_);t.value||(t.value=1,o_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=g_(++a_);t.value||(t.value=1,o_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=x_({action(){n._config.action.call(null)}});return n.component||(n.component=o_,o_.__hooks.actions.list.push(n)),E_((()=>{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=v_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return v_("appLayout")},e.useConstraints=function(){return v_("constraints")},e.useDeviceType=function(){return v_("deviceType")},e.useEffect=S_,e.useElement=C_,e.useEmbed=function(){return v_("nebbie")},e.useEmitter=function(){return v_("emitter")},e.useGlobal=function(){const e=v_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=g_(++a_);if(n.imperative||(n.imperative=!0),i_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],o_.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=v_("keyboardNavigation"),t=v_("focusHandler");if(!o_.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(L_(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(o_);o_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),k_(this))}.bind(o_);o_.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(o_);o_.__hooks.accessibility.focusSelectionFunction=r}const n=o_.__hooks.accessibility.focusFunction,r=o_.__hooks.accessibility.exitFunction,o=o_.__hooks.accessibility.focusSelectionFunction,[a,i]=x_({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return o_.__hooks.accessibility.setter=i,o_.__hooks.accessibility.enabled=e,S_((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return v_("layout")},e.useMemo=E_,e.useModel=function(){const e=v_("model");return e&&e.session?e:void 0},e.useOptions=function(){return v_("options")},e.usePlugins=function(){return v_("plugins")},e.usePromise=function(e,t){const[n,r]=x_((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=g_(++a_);return o.component||(o.component=o_),w_((()=>{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=C_(),t=o_.__hooks.resizer,[n,r]=x_((()=>{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()),w_((()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:a}=e.getBoundingClientRect(),i=t.current;i.width===o&&i.height===a&&i.left===n&&i.top===r||t.setters.forEach((e=>e({left:n,top:r,width:o,height:a})))};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(){g_(++a_);const e=o_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return v_("selections")},e.useStaleLayout=function(){const e=v_("layout"),[t]=x_({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=x_,e.useTheme=function(){return v_("theme")},e.useTranslator=function(){return v_("translator")}}));
135
135
  //# sourceMappingURL=stardust.js.map