@nebula.js/stardust 4.0.0-alpha.0 → 4.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +116 -65
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +116 -65
- package/dist/stardust.dev.js.map +1 -1
- package/dist/stardust.js +3 -3
- package/dist/stardust.js.map +1 -1
- package/package.json +9 -9
package/dist/stardust.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v4.0.0-alpha.
|
|
2
|
+
* @nebula.js/stardust v4.0.0-alpha.1
|
|
3
3
|
* Copyright (c) 2023 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -104,7 +104,7 @@ var bt=d,xt=gt;function St(e){for(var t="https://reactjs.org/docs/error-decoder.
|
|
|
104
104
|
animation-iteration-count: infinite;
|
|
105
105
|
animation-delay: 200ms;
|
|
106
106
|
}
|
|
107
|
-
`),Gx.rippleVisible,eS,550,(({theme:e})=>e.transitions.easing.easeInOut),Gx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Gx.child,Gx.childLeaving,tS,550,(({theme:e})=>e.transitions.easing.easeInOut),Gx.childPulsate,nS,(({theme:e})=>e.transitions.easing.easeInOut)),aS=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Rf(n,Kx),[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,Gm.jsx(oS,{classes:{ripple:Cy(o.ripple,Gx.ripple),rippleVisible:Cy(o.rippleVisible,Gx.rippleVisible),ripplePulsate:Cy(o.ripplePulsate,Gx.ripplePulsate),child:Cy(o.child,Gx.child),childLeaving:Cy(o.childLeaving,Gx.childLeaving),childPulsate:Cy(o.childPulsate,Gx.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]),Gm.jsx(rS,Lf({className:Cy(Gx.root,o.root,a),ref:m},i,{children:Gm.jsx(Vx,{component:null,exit:!0,children:l})}))}));var iS=aS;function lS(e){return Cf("MuiButtonBase",e)}var sS=kf("MuiButtonBase",["root","disabled","focusVisible"]);const cS=["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"],uS=Sy("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"},[`&.${sS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dS=d.forwardRef((function(e,t){const n=yy({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:_}=n,T=Rf(n,cS),N=d.useRef(null),M=d.useRef(null),z=lf(M,P),{isFocusVisibleRef:A,onFocus:D,onBlur:q,ref:j}=gf(),[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 af((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=>{q(e),!1===A.current&&$(!1),h&&h(e)}),!1),te=af((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=af((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=af((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&&(T.href||T.to)&&(ie=f);const le={};"button"===ie?(le.type=void 0===_?"button":_,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=lf(t,j,N),ce=Lf({},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=xf({root:["root",t&&"disabled",n&&"focusVisible"]},lS,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Gm.jsxs(uS,Lf({as:ie,className:Cy(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:_},le,T,{children:[a,H?Gm.jsx(iS,Lf({ref:z,center:o},I)):null]}))}));var pS=dS;function fS(e){return Cf("MuiButton",e)}var hS=kf("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 mS=d.createContext({});const gS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],vS=e=>Lf({},"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}}),yS=Sy(pS,{shouldForwardProp:e=>by(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Gp(n.color)}`],t[`size${Gp(n.size)}`],t[`${n.variant}Size${Gp(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Lf({},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":Lf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Av(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})`:Av(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})`:Av(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":Lf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hS.focusVisible}`]:Lf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hS.disabled}`]:Lf({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 ${Av(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"},[`&.${hS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hS.disabled}`]:{boxShadow:"none"}})),bS=Sy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Gp(n.size)}`]]}})((({ownerState:e})=>Lf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},vS(e)))),xS=Sy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Gp(n.size)}`]]}})((({ownerState:e})=>Lf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},vS(e)))),SS=d.forwardRef((function(e,t){const n=d.useContext(mS),r=yy({props:bf(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=Rf(r,gS),x=Lf({},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 Lf({},i,xf({root:["root",a,`${a}${Gp(t)}`,`size${Gp(o)}`,`${a}Size${Gp(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Gp(o)}`],endIcon:["endIcon",`iconSize${Gp(o)}`]},fS,i))})(x),w=g&&Gm.jsx(bS,{className:S.startIcon,ownerState:x,children:g}),E=p&&Gm.jsx(xS,{className:S.endIcon,ownerState:x,children:p});return Gm.jsxs(yS,Lf({ownerState:x,className:Cy(n.className,S.root,l),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:Cy(S.focusVisible,f),ref:t,type:v},b,{classes:S,children:[w,o,E]}))}));var wS=SS,ES={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 CS="#009845",kS="#3F8AB3",LS="#ffffff",RS="#404040",OS="#333333",IS="#1A1A1A",PS={mode:"light",palette:{primary:{main:RS,contrastText:LS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:RS,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:RS,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:LS,default:LS,lightest:LS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:kS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:CS,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:LS,alternativeContrastText:RS,excludedContrastText:RS},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:OS,contrastText:LS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:LS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:LS,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:RS,lighter:OS,darker:"#262626",darkest:IS},custom:{focusBorder:kS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:CS,alternative:OS,excluded:IS,mainContrastText:LS,alternativeContrastText:LS,excludedContrastText:LS},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)"}}},TS={},NS=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","&:focus":{borderColor:e.palette.custom.focusBorder,boxShadow:"0 0 0 2px ".concat(e.palette.custom.focusOutline)}}},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(hS.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(hS.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(hS.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(hS.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function MS(e){let t=PS,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(TS[r])return TS[r];const o={palette:l(l({type:t.mode},ES.palette),t.palette),typography:l({},ES.typography),shadows:ES.shadows,props:l({},ES.props),shape:l({},ES.shape)};return TS[r]=my(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Lf({},Rf(e,Fv),{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=uv(e.spacing);const s=sv(e.breakpoints||{}),c=l.spacing;l.mixins=Lf({gutters:(e={})=>Lf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Lf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rf(o,$v),f=d||u||"light";return l.palette=Lf({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:NS(o)}))),TS[r].name=n,TS[r]}wf.configure((e=>"njs-".concat("b1a6","-").concat(e.replace("Mui",""))));var zS=G.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),AS=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[DS,qS]=AS({}),[jS,FS]=AS({}),[$S,BS]=AS({}),[WS,HS]=AS({});function US(e){if(!e.session)return[];const[t]=DS(),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=HS.get(n);t&&(await t.endSelections(e),HS.clear(n),BS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===HS.get(n))return;r(a),HS.set(n,e);const i=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(i),HS.set(n,e)}catch(e){6003!==e.code||r?HS.clear(n):(await t.abortModal(a),l(!0))}};await l()},end:r};FS.set(n,o);const a={model:t,isInModal:()=>!!HS.get(n),isModal:e=>e?HS.get(n)===e:!!HS.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 VS=d.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[a]=US(r),[i,l]=d.useState(n),[s,c]=d.useState(),{theme:u}=d.useMemo((()=>({theme:MS(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(og,{injectFirst:!0},G.createElement(jv,{theme:u},G.createElement(zS.Provider,{value:i},p)))}));function GS(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.0"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i);pt.createRoot(i).render(G.createElement(VS,{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 KS(e){return Cf("MuiSvgIcon",e)}kf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],XS=Sy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Gp(n.color)}`],t[`fontSize${Gp(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]}})),QS=d.forwardRef((function(e,t){const n=yy({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=Rf(n,ZS),f=Lf({},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 xf({root:["root","inherit"!==t&&`color${Gp(t)}`,`fontSize${Gp(n)}`]},KS,r)})(f);return Gm.jsxs(XS,Lf({as:i,className:Cy(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?Gm.jsx("title",{children:u}):null]}))}));QS.muiName="SvgIcon";var YS=QS;function JS(e,t){function n(n,r){return Gm.jsx(YS,Lf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=YS.muiName,d.memo(d.forwardRef(n))}const ew={configure:e=>{wf.configure(e)}};var tw=Object.freeze({__proto__:null,capitalize:Gp,createChainedFunction:Kp,createSvgIcon:JS,debounce:Zp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Xp,ownerDocument:Qp,ownerWindow:Yp,requirePropFactory:function(e,t){return()=>null},setRef:Jp,unstable_ClassNameGenerator:ew,unstable_useEnhancedEffect:ef,unstable_useId:rf,unsupportedProp:function(e,t,n,r,o){return null},useControlled:of,useEventCallback:af,useForkRef:lf,useIsFocusVisible:gf});const nw=e=>e.scrollTop;function rw(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 ow(e){return Cf("MuiPaper",e)}kf("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 aw=["className","component","elevation","square","variant"],iw=Sy("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 Lf({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&&Lf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Av("#fff",wy(t.elevation))}, ${Av("#fff",wy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),lw=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Rf(n,aw),c=Lf({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ow,o)})(c);return Gm.jsx(iw,Lf({as:o,ownerState:c,className:Cy(u.root,r),ref:t},s))}));var sw=lw;function cw(e){return Cf("MuiIconButton",e)}var uw=kf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const dw=["edge","children","className","color","disabled","disableFocusRipple","size"],pw=Sy(pS,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Gp(n.color)}`],n.edge&&t[`edge${Gp(n.edge)}`],t[`size${Gp(n.size)}`]]}})((({theme:e,ownerState:t})=>Lf({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})`:Av(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 Lf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Lf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Lf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Av(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)},{[`&.${uw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),fw=d.forwardRef((function(e,t){const n=yy({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=Rf(n,dw),d=Lf({},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 xf({root:["root",n&&"disabled","default"!==r&&`color${Gp(r)}`,o&&`edge${Gp(o)}`,`size${Gp(a)}`]},cw,t)})(d);return Gm.jsx(pw,Lf({className:Cy(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var hw=fw;function mw(e){return Cf("MuiTypography",e)}kf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vw=Sy("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${Gp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lf({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}))),yw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xw=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiTypography"}),r=(e=>bw[e]||e)(n.color),o=ov(Lf({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=yw}=o,f=Rf(o,gw),h=Lf({},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]||yw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return xf({root:["root",a,"inherit"!==e.align&&`align${Gp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},mw,i)})(h);return Gm.jsx(vw,Lf({as:m,ref:t,ownerState:h,className:Cy(g.root,i)},f))}));var Sw=xw;const ww=["components","componentsProps","slots","slotProps"],Ew=Sy(cx,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cw=d.forwardRef((function(e,t){var n;const r=yv(),o=yy({props:e,name:"MuiPopper"}),{components:a,componentsProps:i,slots:l,slotProps:s}=o,c=Rf(o,ww),u=null!=(n=null==l?void 0:l.root)?n:null==a?void 0:a.Root;return Gm.jsx(Ew,Lf({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=s?s:i},c,{ref:t}))}));var kw=Cw;function Lw({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 Rw=d.createContext(void 0);function Ow(){return d.useContext(Rw)}function Iw(e){return Gm.jsx(ag,Lf({},e,{defaultTheme:gy}))}function Pw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _w(e){return Cf("MuiInputBase",e)}var Tw=kf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Nw=["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"],Mw=(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${Gp(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zw=(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]},Aw=Sy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mw})((({theme:e,ownerState:t})=>Lf({},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",[`&.${Tw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Dw=Sy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lf({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 Lf({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] + .${Tw.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},[`&.${Tw.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"})})),qw=Gm.jsx(Iw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jw=d.forwardRef((function(e,t){var n;const r=yy({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:_,renderSuffix:T,rows:N,slotProps:M={},slots:z={},startAdornment:A,type:D="text",value:q}=r,j=Rf(r,Nw),F=null!=y.value?y.value:q,{current:$}=d.useRef(null!=F),B=d.useRef(),W=d.useCallback((e=>{}),[]),H=lf(B,b,y.ref,W),[U,V]=d.useState(!1),G=Ow(),K=Lw({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&&(Pw(e.value)&&""!==e.value||t&&Pw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);ef((()=>{$&&Q({value:F})}),[F,Q,$]);d.useEffect((()=>{Q(B.current)}),[]);let Y=v,J=y;w&&"input"===Y&&(J=Lf(N?{type:void 0,minRows:N,maxRows:N}:{type:void 0,maxRows:x,minRows:S},J),Y=kx);d.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=Lf({},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 xf({root:["root",`color${Gp(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=z.root||s.Root||Aw,re=M.root||c.root||{},oe=z.input||s.Input||Dw;return J=Lf({},J,null!=(n=M.input)?n:c.input),Gm.jsxs(d.Fragment,{children:[!f&&qw,Gm.jsxs(ne,Lf({},re,!Ly(ne)&&{ownerState:Lf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),L&&L(e)}},j,{className:Cy(te.root,re.className,l,_&&"MuiInputBase-readOnly"),children:[A,Gm.jsx(Rw.Provider,{value:null,children:Gm.jsx(oe,Lf({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:_,required:K.required,rows:N,value:F,onKeyDown:O,onKeyUp:I,type:D},J,!Ly(oe)&&{as:Y,ownerState:Lf({},ee,J.ownerState)},{ref:H,className:Cy(te.input,J.className,_&&"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(Rp(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,T?T(Lf({},K,{startAdornment:A})):null]}))]})}));var Fw=jw;function $w(e){return Cf("MuiOutlinedInput",e)}var Bw=Lf({},Tw,kf("MuiOutlinedInput",["root","notchedOutline","input"]));const Ww=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hw={entering:{opacity:1},entered:{opacity:1}},Uw=d.forwardRef((function(e,t){const n=vy(),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=jx}=e,b=Rf(e,Ww),x=d.useRef(null),S=lf(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)=>{nw(e);const r=rw({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=rw({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 Gm.jsx(y,Lf({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,Lf({style:Lf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Hw[e],g,i.props.style),ref:S},t))}))}));var Vw=Uw;function Gw(e){return Cf("MuiBackdrop",e)}kf("MuiBackdrop",["root","invisible"]);const Kw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zw=Sy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lf({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"}))),Xw=d.forwardRef((function(e,t){var n,r,o;const a=yy({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=Vw,transitionDuration:g}=a,v=Rf(a,Kw),y=Lf({},a,{component:s,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return xf({root:["root",n&&"invisible"]},Gw,t)})(y),x=null!=(n=f.root)?n:u.root;return Gm.jsx(m,Lf({in:p,timeout:g},v,{children:Gm.jsx(Zw,Lf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:Cy(b.root,l,null==x?void 0:x.className),ownerState:Lf({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));var Qw=Xw;function Yw(e){return Cf("MuiBadge",e)}var Jw=kf("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 eE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],tE=Sy("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),nE=Sy("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Gp(n.anchorOrigin.vertical)}${Gp(n.anchorOrigin.horizontal)}${Gp(n.overlap)}`],"default"!==n.color&&t[`color${Gp(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Lf({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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),rE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=yy({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=Rf(s,eE),{badgeContent:k,invisible:L,max:R,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=yf({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=yf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:b}),P=L||null==k&&"dot"!==E,{color:_=g,overlap:T=m,anchorOrigin:N=c,variant:M=E}=P?I:s,z="dot"!==M?O:void 0,A=Lf({},s,{badgeContent:k,invisible:P,max:R,displayValue:z,showZero:w,anchorOrigin:N,color:_,overlap:T,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return xf({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Gp(n.vertical)}${Gp(n.horizontal)}`,`anchorOrigin${Gp(n.vertical)}${Gp(n.horizontal)}${Gp(o)}`,`overlap${Gp(o)}`,"default"!==t&&`color${Gp(t)}`]},Yw,i)})(A),q=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:tE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:nE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=zy({elementType:q,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:Cy(null==F?void 0:F.className,D.root,u)}),W=zy({elementType:j,externalSlotProps:$,ownerState:A,className:Cy(D.badge,null==$?void 0:$.className)});return Gm.jsxs(q,Lf({},B,{children:[h,Gm.jsx(j,Lf({},W,{children:z}))]}))}));var oE=rE;const aE=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=ig("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(tv),a=d.forwardRef((function(e,a){const i=xv(t),l=ov(e),{className:s,component:c="div"}=l,u=nv(l,Sv);return Gm.jsx(o,lg({as:c,ref:a,className:iv(s,r?r(n):n),theme:i},u))}));return a}({defaultTheme:my(),defaultClassName:"MuiBox-root",generateClassName:wf.generate});var iE=aE;function lE(e){return Cf("PrivateSwitchBase",e)}kf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],cE=Sy(pS)((({ownerState:e})=>Lf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),uE=Sy("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),dE=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=Rf(e,sE),[C,k]=of({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Ow();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=Lf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return xf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Gp(o)}`],input:["input"]},lE,t)})(I);return Gm.jsxs(cE,Lf({component:"span",className:Cy(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:[Gm.jsx(uE,Lf({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 pE=dE,fE=JS(Gm.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"),hE=JS(Gm.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"),mE=JS(Gm.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 gE(e){return Cf("MuiCheckbox",e)}var vE=kf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const yE=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],bE=Sy(pE,{shouldForwardProp:e=>by(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${Gp(n.color)}`]]}})((({theme:e,ownerState:t})=>Lf({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})`:Av("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${vE.checked}, &.${vE.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${vE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),xE=Gm.jsx(hE,{}),SE=Gm.jsx(fE,{}),wE=Gm.jsx(mE,{}),EE=d.forwardRef((function(e,t){var n,r;const o=yy({props:e,name:"MuiCheckbox"}),{checkedIcon:a=xE,color:i="primary",icon:l=SE,indeterminate:s=!1,indeterminateIcon:c=wE,inputProps:u,size:p="medium",className:f}=o,h=Rf(o,yE),m=s?c:l,g=s?c:a,v=Lf({},o,{color:i,indeterminate:s,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Lf({},t,xf({root:["root",n&&"indeterminate",`color${Gp(r)}`]},gE,t))})(v);return Gm.jsx(bE,Lf({type:"checkbox",inputProps:Lf({"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:Cy(y.root,f)},h,{classes:y}))}));var CE=EE;function kE(e){return Cf("MuiCircularProgress",e)}kf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const LE=["className","color","disableShrink","size","style","thickness","value","variant"];let RE,OE,IE,PE,_E=e=>e;const TE=44,NE=mm(RE||(RE=_E`
|
|
107
|
+
`),Gx.rippleVisible,eS,550,(({theme:e})=>e.transitions.easing.easeInOut),Gx.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),Gx.child,Gx.childLeaving,tS,550,(({theme:e})=>e.transitions.easing.easeInOut),Gx.childPulsate,nS,(({theme:e})=>e.transitions.easing.easeInOut)),aS=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Rf(n,Kx),[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,Gm.jsx(oS,{classes:{ripple:Cy(o.ripple,Gx.ripple),rippleVisible:Cy(o.rippleVisible,Gx.rippleVisible),ripplePulsate:Cy(o.ripplePulsate,Gx.ripplePulsate),child:Cy(o.child,Gx.child),childLeaving:Cy(o.childLeaving,Gx.childLeaving),childPulsate:Cy(o.childPulsate,Gx.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]),Gm.jsx(rS,Lf({className:Cy(Gx.root,o.root,a),ref:m},i,{children:Gm.jsx(Vx,{component:null,exit:!0,children:l})}))}));var iS=aS;function lS(e){return Cf("MuiButtonBase",e)}var sS=kf("MuiButtonBase",["root","disabled","focusVisible"]);const cS=["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"],uS=Sy("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"},[`&.${sS.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),dS=d.forwardRef((function(e,t){const n=yy({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:_}=n,T=Rf(n,cS),N=d.useRef(null),M=d.useRef(null),z=lf(M,P),{isFocusVisibleRef:A,onFocus:D,onBlur:q,ref:j}=gf(),[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 af((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=>{q(e),!1===A.current&&$(!1),h&&h(e)}),!1),te=af((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=af((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=af((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&&(T.href||T.to)&&(ie=f);const le={};"button"===ie?(le.type=void 0===_?"button":_,le.disabled=s):(T.href||T.to||(le.role="button"),s&&(le["aria-disabled"]=s));const se=lf(t,j,N),ce=Lf({},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=xf({root:["root",t&&"disabled",n&&"focusVisible"]},lS,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return Gm.jsxs(uS,Lf({as:ie,className:Cy(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:_},le,T,{children:[a,H?Gm.jsx(iS,Lf({ref:z,center:o},I)):null]}))}));var pS=dS;function fS(e){return Cf("MuiButton",e)}var hS=kf("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 mS=d.createContext({});const gS=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],vS=e=>Lf({},"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}}),yS=Sy(pS,{shouldForwardProp:e=>by(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Gp(n.color)}`],t[`size${Gp(n.size)}`],t[`${n.variant}Size${Gp(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Lf({},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":Lf({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Av(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})`:Av(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})`:Av(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":Lf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${hS.focusVisible}`]:Lf({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${hS.disabled}`]:Lf({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 ${Av(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"},[`&.${hS.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${hS.disabled}`]:{boxShadow:"none"}})),bS=Sy("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Gp(n.size)}`]]}})((({ownerState:e})=>Lf({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},vS(e)))),xS=Sy("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Gp(n.size)}`]]}})((({ownerState:e})=>Lf({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},vS(e)))),SS=d.forwardRef((function(e,t){const n=d.useContext(mS),r=yy({props:bf(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=Rf(r,gS),x=Lf({},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 Lf({},i,xf({root:["root",a,`${a}${Gp(t)}`,`size${Gp(o)}`,`${a}Size${Gp(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Gp(o)}`],endIcon:["endIcon",`iconSize${Gp(o)}`]},fS,i))})(x),w=g&&Gm.jsx(bS,{className:S.startIcon,ownerState:x,children:g}),E=p&&Gm.jsx(xS,{className:S.endIcon,ownerState:x,children:p});return Gm.jsxs(yS,Lf({ownerState:x,className:Cy(n.className,S.root,l),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:Cy(S.focusVisible,f),ref:t,type:v},b,{classes:S,children:[w,o,E]}))}));var wS=SS,ES={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 CS="#009845",kS="#3F8AB3",LS="#ffffff",RS="#404040",OS="#333333",IS="#1A1A1A",PS={mode:"light",palette:{primary:{main:RS,contrastText:LS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:RS,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:LS,default:LS,lightest:LS,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:kS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:CS,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:LS,alternativeContrastText:RS,excludedContrastText:RS},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:OS,contrastText:LS},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:LS,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:LS,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:RS,lighter:OS,darker:"#262626",darkest:IS},custom:{focusBorder:kS,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:CS,alternative:OS,excluded:IS,mainContrastText:LS,alternativeContrastText:LS,excludedContrastText:LS},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)"}}},TS={},NS=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(hS.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(hS.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(hS.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(hS.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function MS(e){let t=PS,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(TS[r])return TS[r];const o={palette:l(l({type:t.mode},ES.palette),t.palette),typography:l({},ES.typography),shadows:ES.shadows,props:l({},ES.props),shape:l({},ES.shape)};return TS[r]=my(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Lf({},Rf(e,Fv),{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=uv(e.spacing);const s=sv(e.breakpoints||{}),c=l.spacing;l.mixins=Lf({gutters:(e={})=>Lf({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Lf({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Rf(o,$v),f=d||u||"light";return l.palette=Lf({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:NS(o)}))),TS[r].name=n,TS[r]}wf.configure((e=>"njs-".concat("f871","-").concat(e.replace("Mui",""))));var zS=G.createContext({language:null,theme:null,translator:null,constraints:{},themeApi:null}),AS=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[DS,qS]=AS({}),[jS,FS]=AS({}),[$S,BS]=AS({}),[WS,HS]=AS({});function US(e){if(!e.session)return[];const[t]=DS(),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=HS.get(n);t&&(await t.endSelections(e),HS.clear(n),BS.get(t.id).emit("deactivated"))},o={begin:async function(e,o){let a=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===HS.get(n))return;r(a),HS.set(n,e);const i=Array.isArray(o)?o:[o],l=async r=>{try{await e.beginSelections(i),HS.set(n,e)}catch(e){6003!==e.code||r?HS.clear(n):(await t.abortModal(a),l(!0))}};await l()},end:r};FS.set(n,o);const a={model:t,isInModal:()=>!!HS.get(n),isModal:e=>e?HS.get(n)===e:!!HS.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 VS=d.forwardRef(((e,t)=>{let{initialContext:n,app:r,renderCallback:o}=e;const[a]=US(r),[i,l]=d.useState(n),[s,c]=d.useState(),{theme:u}=d.useMemo((()=>({theme:MS(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(og,{injectFirst:!0},G.createElement(jv,{theme:u},G.createElement(zS.Provider,{value:i},p)))}));function GS(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.1"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i);pt.createRoot(i).render(G.createElement(VS,{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 KS(e){return Cf("MuiSvgIcon",e)}kf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZS=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],XS=Sy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Gp(n.color)}`],t[`fontSize${Gp(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]}})),QS=d.forwardRef((function(e,t){const n=yy({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=Rf(n,ZS),f=Lf({},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 xf({root:["root","inherit"!==t&&`color${Gp(t)}`,`fontSize${Gp(n)}`]},KS,r)})(f);return Gm.jsxs(XS,Lf({as:i,className:Cy(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?Gm.jsx("title",{children:u}):null]}))}));QS.muiName="SvgIcon";var YS=QS;function JS(e,t){function n(n,r){return Gm.jsx(YS,Lf({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=YS.muiName,d.memo(d.forwardRef(n))}const ew={configure:e=>{wf.configure(e)}};var tw=Object.freeze({__proto__:null,capitalize:Gp,createChainedFunction:Kp,createSvgIcon:JS,debounce:Zp,deprecatedPropType:function(e,t){return()=>null},isMuiElement:Xp,ownerDocument:Qp,ownerWindow:Yp,requirePropFactory:function(e,t){return()=>null},setRef:Jp,unstable_ClassNameGenerator:ew,unstable_useEnhancedEffect:ef,unstable_useId:rf,unsupportedProp:function(e,t,n,r,o){return null},useControlled:of,useEventCallback:af,useForkRef:lf,useIsFocusVisible:gf});const nw=e=>e.scrollTop;function rw(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 ow(e){return Cf("MuiPaper",e)}kf("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 aw=["className","component","elevation","square","variant"],iw=Sy("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 Lf({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&&Lf({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&"dark"===e.palette.mode&&{backgroundImage:`linear-gradient(${Av("#fff",wy(t.elevation))}, ${Av("#fff",wy(t.elevation))})`},e.vars&&{backgroundImage:null==(n=e.vars.overlays)?void 0:n[t.elevation]}))})),lw=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:a=1,square:i=!1,variant:l="elevation"}=n,s=Rf(n,aw),c=Lf({},n,{component:o,elevation:a,square:i,variant:l}),u=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return xf({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},ow,o)})(c);return Gm.jsx(iw,Lf({as:o,ownerState:c,className:Cy(u.root,r),ref:t},s))}));var sw=lw;function cw(e){return Cf("MuiIconButton",e)}var uw=kf("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);const dw=["edge","children","className","color","disabled","disableFocusRipple","size"],pw=Sy(pS,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${Gp(n.color)}`],n.edge&&t[`edge${Gp(n.edge)}`],t[`size${Gp(n.size)}`]]}})((({theme:e,ownerState:t})=>Lf({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})`:Av(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 Lf({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Lf({color:null==r?void 0:r.main},!t.disableRipple&&{"&:hover":Lf({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Av(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)},{[`&.${uw.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})})),fw=d.forwardRef((function(e,t){const n=yy({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=Rf(n,dw),d=Lf({},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 xf({root:["root",n&&"disabled","default"!==r&&`color${Gp(r)}`,o&&`edge${Gp(o)}`,`size${Gp(a)}`]},cw,t)})(d);return Gm.jsx(pw,Lf({className:Cy(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));var hw=fw;function mw(e){return Cf("MuiTypography",e)}kf("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const gw=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],vw=Sy("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${Gp(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Lf({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}))),yw={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bw={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},xw=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiTypography"}),r=(e=>bw[e]||e)(n.color),o=ov(Lf({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=yw}=o,f=Rf(o,gw),h=Lf({},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]||yw[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return xf({root:["root",a,"inherit"!==e.align&&`align${Gp(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},mw,i)})(h);return Gm.jsx(vw,Lf({as:m,ref:t,ownerState:h,className:Cy(g.root,i)},f))}));var Sw=xw;const ww=["components","componentsProps","slots","slotProps"],Ew=Sy(cx,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Cw=d.forwardRef((function(e,t){var n;const r=yv(),o=yy({props:e,name:"MuiPopper"}),{components:a,componentsProps:i,slots:l,slotProps:s}=o,c=Rf(o,ww),u=null!=(n=null==l?void 0:l.root)?n:null==a?void 0:a.Root;return Gm.jsx(Ew,Lf({direction:null==r?void 0:r.direction,slots:{root:u},slotProps:null!=s?s:i},c,{ref:t}))}));var kw=Cw;function Lw({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 Rw=d.createContext(void 0);function Ow(){return d.useContext(Rw)}function Iw(e){return Gm.jsx(ag,Lf({},e,{defaultTheme:gy}))}function Pw(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function _w(e){return Cf("MuiInputBase",e)}var Tw=kf("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const Nw=["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"],Mw=(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${Gp(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},zw=(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]},Aw=Sy("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Mw})((({theme:e,ownerState:t})=>Lf({},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",[`&.${Tw.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Lf({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),Dw=Sy("input",{name:"MuiInputBase",slot:"Input",overridesResolver:zw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Lf({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 Lf({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] + .${Tw.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},[`&.${Tw.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"})})),qw=Gm.jsx(Iw,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),jw=d.forwardRef((function(e,t){var n;const r=yy({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:_,renderSuffix:T,rows:N,slotProps:M={},slots:z={},startAdornment:A,type:D="text",value:q}=r,j=Rf(r,Nw),F=null!=y.value?y.value:q,{current:$}=d.useRef(null!=F),B=d.useRef(),W=d.useCallback((e=>{}),[]),H=lf(B,b,y.ref,W),[U,V]=d.useState(!1),G=Ow(),K=Lw({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&&(Pw(e.value)&&""!==e.value||t&&Pw(e.defaultValue)&&""!==e.defaultValue)}(e)?X&&X():Z&&Z()}),[Z,X]);ef((()=>{$&&Q({value:F})}),[F,Q,$]);d.useEffect((()=>{Q(B.current)}),[]);let Y=v,J=y;w&&"input"===Y&&(J=Lf(N?{type:void 0,minRows:N,maxRows:N}:{type:void 0,maxRows:x,minRows:S},J),Y=kx);d.useEffect((()=>{G&&G.setAdornedStart(Boolean(A))}),[G,A]);const ee=Lf({},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 xf({root:["root",`color${Gp(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=z.root||s.Root||Aw,re=M.root||c.root||{},oe=z.input||s.Input||Dw;return J=Lf({},J,null!=(n=M.input)?n:c.input),Gm.jsxs(d.Fragment,{children:[!f&&qw,Gm.jsxs(ne,Lf({},re,!Ly(ne)&&{ownerState:Lf({},ee,re.ownerState)},{ref:t,onClick:e=>{B.current&&e.currentTarget===e.target&&B.current.focus(),L&&L(e)}},j,{className:Cy(te.root,re.className,l,_&&"MuiInputBase-readOnly"),children:[A,Gm.jsx(Rw.Provider,{value:null,children:Gm.jsx(oe,Lf({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:_,required:K.required,rows:N,value:F,onKeyDown:O,onKeyUp:I,type:D},J,!Ly(oe)&&{as:Y,ownerState:Lf({},ee,J.ownerState)},{ref:H,className:Cy(te.input,J.className,_&&"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(Rp(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,T?T(Lf({},K,{startAdornment:A})):null]}))]})}));var Fw=jw;function $w(e){return Cf("MuiOutlinedInput",e)}var Bw=Lf({},Tw,kf("MuiOutlinedInput",["root","notchedOutline","input"]));const Ww=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Hw={entering:{opacity:1},entered:{opacity:1}},Uw=d.forwardRef((function(e,t){const n=vy(),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=jx}=e,b=Rf(e,Ww),x=d.useRef(null),S=lf(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)=>{nw(e);const r=rw({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=rw({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 Gm.jsx(y,Lf({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,Lf({style:Lf({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},Hw[e],g,i.props.style),ref:S},t))}))}));var Vw=Uw;function Gw(e){return Cf("MuiBackdrop",e)}kf("MuiBackdrop",["root","invisible"]);const Kw=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],Zw=Sy("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Lf({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"}))),Xw=d.forwardRef((function(e,t){var n,r,o;const a=yy({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=Vw,transitionDuration:g}=a,v=Rf(a,Kw),y=Lf({},a,{component:s,invisible:d}),b=(e=>{const{classes:t,invisible:n}=e;return xf({root:["root",n&&"invisible"]},Gw,t)})(y),x=null!=(n=f.root)?n:u.root;return Gm.jsx(m,Lf({in:p,timeout:g},v,{children:Gm.jsx(Zw,Lf({"aria-hidden":!0},x,{as:null!=(r=null!=(o=h.root)?o:c.Root)?r:s,className:Cy(b.root,l,null==x?void 0:x.className),ownerState:Lf({},y,null==x?void 0:x.ownerState),classes:b,ref:t,children:i}))}))}));var Qw=Xw;function Yw(e){return Cf("MuiBadge",e)}var Jw=kf("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 eE=["anchorOrigin","className","classes","component","components","componentsProps","children","overlap","color","invisible","max","badgeContent","slots","slotProps","showZero","variant"],tE=Sy("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),nE=Sy("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Gp(n.anchorOrigin.vertical)}${Gp(n.anchorOrigin.horizontal)}${Gp(n.overlap)}`],"default"!==n.color&&t[`color${Gp(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Lf({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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.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%",[`&.${Jw.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),rE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=yy({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=Rf(s,eE),{badgeContent:k,invisible:L,max:R,displayValue:O}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,a=yf({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=yf({anchorOrigin:c,color:g,overlap:m,variant:E,badgeContent:b}),P=L||null==k&&"dot"!==E,{color:_=g,overlap:T=m,anchorOrigin:N=c,variant:M=E}=P?I:s,z="dot"!==M?O:void 0,A=Lf({},s,{badgeContent:k,invisible:P,max:R,displayValue:z,showZero:w,anchorOrigin:N,color:_,overlap:T,variant:M}),D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return xf({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${Gp(n.vertical)}${Gp(n.horizontal)}`,`anchorOrigin${Gp(n.vertical)}${Gp(n.horizontal)}${Gp(o)}`,`overlap${Gp(o)}`,"default"!==t&&`color${Gp(t)}`]},Yw,i)})(A),q=null!=(n=null!=(r=null==x?void 0:x.root)?r:p.Root)?n:tE,j=null!=(o=null!=(a=null==x?void 0:x.badge)?a:p.Badge)?o:nE,F=null!=(i=null==S?void 0:S.root)?i:f.root,$=null!=(l=null==S?void 0:S.badge)?l:f.badge,B=zy({elementType:q,externalSlotProps:F,externalForwardedProps:C,additionalProps:{ref:t,as:d},ownerState:A,className:Cy(null==F?void 0:F.className,D.root,u)}),W=zy({elementType:j,externalSlotProps:$,ownerState:A,className:Cy(D.badge,null==$?void 0:$.className)});return Gm.jsxs(q,Lf({},B,{children:[h,Gm.jsx(j,Lf({},W,{children:z}))]}))}));var oE=rE;const aE=function(e={}){const{defaultTheme:t,defaultClassName:n="MuiBox-root",generateClassName:r}=e,o=ig("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(tv),a=d.forwardRef((function(e,a){const i=xv(t),l=ov(e),{className:s,component:c="div"}=l,u=nv(l,Sv);return Gm.jsx(o,lg({as:c,ref:a,className:iv(s,r?r(n):n),theme:i},u))}));return a}({defaultTheme:my(),defaultClassName:"MuiBox-root",generateClassName:wf.generate});var iE=aE;function lE(e){return Cf("PrivateSwitchBase",e)}kf("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const sE=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],cE=Sy(pS)((({ownerState:e})=>Lf({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),uE=Sy("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),dE=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=Rf(e,sE),[C,k]=of({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),L=Ow();let R=l;L&&void 0===R&&(R=L.disabled);const O="checkbox"===S||"radio"===S,I=Lf({},e,{checked:C,disabled:R,disableFocusRipple:s,edge:c}),P=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return xf({root:["root",n&&"checked",r&&"disabled",o&&`edge${Gp(o)}`],input:["input"]},lE,t)})(I);return Gm.jsxs(cE,Lf({component:"span",className:Cy(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:[Gm.jsx(uE,Lf({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 pE=dE,fE=JS(Gm.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"),hE=JS(Gm.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"),mE=JS(Gm.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 gE(e){return Cf("MuiCheckbox",e)}var vE=kf("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const yE=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],bE=Sy(pE,{shouldForwardProp:e=>by(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${Gp(n.color)}`]]}})((({theme:e,ownerState:t})=>Lf({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})`:Av("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${vE.checked}, &.${vE.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${vE.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),xE=Gm.jsx(hE,{}),SE=Gm.jsx(fE,{}),wE=Gm.jsx(mE,{}),EE=d.forwardRef((function(e,t){var n,r;const o=yy({props:e,name:"MuiCheckbox"}),{checkedIcon:a=xE,color:i="primary",icon:l=SE,indeterminate:s=!1,indeterminateIcon:c=wE,inputProps:u,size:p="medium",className:f}=o,h=Rf(o,yE),m=s?c:l,g=s?c:a,v=Lf({},o,{color:i,indeterminate:s,size:p}),y=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Lf({},t,xf({root:["root",n&&"indeterminate",`color${Gp(r)}`]},gE,t))})(v);return Gm.jsx(bE,Lf({type:"checkbox",inputProps:Lf({"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:Cy(y.root,f)},h,{classes:y}))}));var CE=EE;function kE(e){return Cf("MuiCircularProgress",e)}kf("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const LE=["className","color","disableShrink","size","style","thickness","value","variant"];let RE,OE,IE,PE,_E=e=>e;const TE=44,NE=mm(RE||(RE=_E`
|
|
108
108
|
0% {
|
|
109
109
|
transform: rotate(0deg);
|
|
110
110
|
}
|
|
@@ -131,5 +131,5 @@ var bt=d,xt=gt;function St(e){for(var t="https://reactjs.org/docs/error-decoder.
|
|
|
131
131
|
animation: ${0} 1.4s linear infinite;
|
|
132
132
|
`),NE))),AE=Sy("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),DE=Sy("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Gp(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})((({ownerState:e,theme:t})=>Lf({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&&hm(PE||(PE=_E`
|
|
133
133
|
animation: ${0} 1.4s ease-in-out infinite;
|
|
134
|
-
`),ME))),qE=d.forwardRef((function(e,t){const n=yy({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=Rf(n,LE),p=Lf({},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 xf({root:["root",n,`color${Gp(r)}`],svg:["svg"],circle:["circle",`circle${Gp(n)}`,o&&"circleDisableShrink"]},kE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((TE-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 Gm.jsx(zE,Lf({className:Cy(f.root,r),style:Lf({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Gm.jsx(AE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Gm.jsx(DE,{className:f.circle,style:h,ownerState:p,cx:TE,cy:TE,r:(TE-s)/2,fill:"none",strokeWidth:s})})}))}));var jE=qE;const FE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],$E=Sy("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})=>Lf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),BE=Sy(Qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),WE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=yy({name:"MuiModal",props:e}),{BackdropComponent:c=BE,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=Rf(s,FE),[_,T]=d.useState(!0),N={closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:L},M=Lf({},s,N,{exited:_}),z=null!=(n=null!=(r=null==O?void 0:O.root)?r:v.Root)?n:$E,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,q=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop;return Gm.jsx(bx,Lf({slots:{root:z,backdrop:A},slotProps:{root:()=>Lf({},Oy(D,M),!Ly(z)&&{as:g,theme:I},{className:Cy(f,null==D?void 0:D.className,null==p?void 0:p.root,!M.open&&M.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>Lf({},u,Oy(q,M),{className:Cy(null==q?void 0:q.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>T(!1),onTransitionExited:()=>T(!0),ref:t},P,N,{children:m}))}));var HE=WE;function UE(e){return Cf("MuiDivider",e)}var VE=kf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const GE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],KE=Sy("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})=>Lf({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)`:Av(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})=>Lf({},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})=>Lf({},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})=>Lf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),ZE=Sy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lf({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)`}))),XE=d.forwardRef((function(e,t){const n=yy({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=Rf(n,GE),h=Lf({},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 xf({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"]},UE,r)})(h);return Gm.jsx(KE,Lf({as:i,className:Cy(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?Gm.jsx(ZE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var QE=XE;function YE(e){return Cf("MuiFormControlLabel",e)}var JE=kf("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);const eC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],tC=Sy("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${JE.label}`]:t.label},t.root,t[`labelPlacement${Gp(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Lf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${JE.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},{[`& .${JE.label}`]:{[`&.${JE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),nC=d.forwardRef((function(e,t){var n;const r=yy({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:i,disabled:l,disableTypography:s,label:c,labelPlacement:u="end",slotProps:p={}}=r,f=Rf(r,eC),h=Ow();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=Lw({props:r,muiFormControl:h,states:["error"]}),y=Lf({},r,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e;return xf({root:["root",n&&"disabled",`labelPlacement${Gp(r)}`,o&&"error"],label:["label",n&&"disabled"]},YE,t)})(y),x=null!=(n=p.typography)?n:a.typography;let S=c;return null==S||S.type===Sw||s||(S=Gm.jsx(Sw,Lf({component:"span"},x,{className:Cy(b.label,null==x?void 0:x.className),children:S}))),Gm.jsxs(tC,Lf({className:Cy(b.root,o),ownerState:y,ref:t},f,{children:[d.cloneElement(i,g),S]}))}));var rC=nC;var oC=d.createContext();function aC(e){return Cf("MuiGrid",e)}const iC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lC=kf("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}`)),...iC.map((e=>`grid-xs-${e}`)),...iC.map((e=>`grid-sm-${e}`)),...iC.map((e=>`grid-md-${e}`)),...iC.map((e=>`grid-lg-${e}`)),...iC.map((e=>`grid-xl-${e}`))]),sC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function cC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function uC({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 dC=Sy("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})=>Lf({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 dg({theme:e},pg({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${lC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=pg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=uC({breakpoints:e.breakpoints.values,values:t})),o=dg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${cC(a)}`,[`& > .${lC.item}`]:{paddingTop:cC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${lC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=pg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=uC({breakpoints:e.breakpoints.values,values:t})),o=dg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${cC(a)})`,marginLeft:`-${cC(a)}`,[`& > .${lC.item}`]:{paddingLeft:cC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${lC.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=pg({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} + ${cC(n)})`;c={flexBasis:e,maxWidth:e}}}a=Lf({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 pC=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 xf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},aC,t)},fC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiGrid"}),{breakpoints:r}=vy(),o=ov(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=Rf(o,sC),y=f||h,b=l||h,x=d.useContext(oC),S=c?i||12:x,w={},E=Lf({},v);r.keys.forEach((e=>{null!=v[e]&&(w[e]=v[e],delete E[e])}));const C=Lf({},o,{columns:S,container:c,direction:u,item:p,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:h},w,{breakpoints:r.keys}),k=pC(C);return Gm.jsx(oC.Provider,{value:S,children:Gm.jsx(dC,Lf({ownerState:C,className:Cy(k.root,a),as:s,ref:t},E))})}));var hC=fC;const mC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gC(e){return`scale(${e}, ${e**2})`}const vC={entering:{opacity:1,transform:gC(1)},entered:{opacity:1,transform:"none"}},yC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bC=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=jx}=e,v=Rf(e,mC),y=d.useRef(),b=d.useRef(),x=vy(),S=d.useRef(null),w=lf(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)=>{nw(e);const{duration:n,delay:r,easing:o}=rw({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:yC?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}=rw({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:yC?o:.666*o,delay:yC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=gC(.75),u&&u(e)})),I=E(p);return d.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Gm.jsx(g,Lf({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,Lf({style:Lf({opacity:0,transform:gC(.75),visibility:"exited"!==e||i?void 0:"hidden"},vC[e],h,o.props.style),ref:w},t))}))}));bC.muiSupportAuto=!0;var xC=bC;function SC(e){return Cf("MuiIcon",e)}kf("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wC=["baseClassName","className","color","component","fontSize"],EC=Sy("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Gp(n.color)}`],t[`fontSize${Gp(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]}))),CC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Rf(n,wC),c=Lf({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return xf({root:["root","inherit"!==t&&`color${Gp(t)}`,`fontSize${Gp(n)}`]},SC,r)})(c);return Gm.jsx(EC,Lf({as:i,className:Cy(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));CC.muiName="Icon";var kC=CC;function LC(e){return Cf("MuiInputAdornment",e)}var RC,OC=kf("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const IC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],PC=Sy("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Gp(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Lf({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${OC.positionStart}&:not(.${OC.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=yy({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rf(n,IC),p=Ow()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Lf({},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 xf({root:["root",n&&"disablePointerEvents",o&&`position${Gp(o)}`,i,r&&"hiddenLabel",a&&`size${Gp(a)}`]},LC,t)})(h);return Gm.jsx(Rw.Provider,{value:null,children:Gm.jsx(PC,Lf({as:a,ownerState:h,className:Cy(m.root,o),ref:t},u,{children:"string"!=typeof r||l?Gm.jsxs(d.Fragment,{children:["start"===s?RC||(RC=Gm.jsx("span",{className:"notranslate",children:""})):null,r]}):Gm.jsx(Sw,{color:"text.secondary",children:r})}))})}));var TC=_C;var NC=d.createContext({});function MC(e){return Cf("MuiList",e)}kf("MuiList",["root","padding","dense","subheader"]);const zC=["children","className","component","dense","disablePadding","subheader"],AC=Sy("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})=>Lf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),DC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Rf(n,zC),u=d.useMemo((()=>({dense:i})),[i]),p=Lf({},n,{component:a,dense:i,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},MC,t)})(p);return Gm.jsx(NC.Provider,{value:u,children:Gm.jsxs(AC,Lf({as:a,className:Cy(f.root,o),ref:t,ownerState:p},c,{children:[s,r]}))})}));var qC=DC;function jC(e){return Cf("MuiListItem",e)}var FC=kf("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var $C=kf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function BC(e){return Cf("MuiListItemSecondaryAction",e)}kf("MuiListItemSecondaryAction",["root","disableGutters"]);const WC=["className"],HC=Sy("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Lf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),UC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rf(n,WC),a=Lf({},n,{disableGutters:d.useContext(NC).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return xf({root:["root",t&&"disableGutters"]},BC,n)})(a);return Gm.jsx(HC,Lf({className:Cy(i.root,r),ownerState:a,ref:t},o))}));UC.muiName="ListItemSecondaryAction";var VC=UC;const GC=["className"],KC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ZC=Sy("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})=>Lf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Lf({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${$C.root}`]:{paddingRight:48}},{[`&.${FC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${FC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${FC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Av(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${FC.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"}},[`&.${FC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Av(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})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),XC=Sy("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),QC=d.forwardRef((function(e,t){const n=yy({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=Rf(n.ContainerProps,GC),k=Rf(n,KC),L=d.useContext(NC),R=d.useMemo((()=>({dense:h||L.dense||!1,alignItems:r,disableGutters:g})),[r,L.dense,h,g]),O=d.useRef(null);ef((()=>{o&&O.current&&O.current.focus()}),[o]);const I=d.Children.toArray(i),P=I.length&&Xp(I[I.length-1],["ListItemSecondaryAction"]),_=Lf({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:P,selected:S}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return xf({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},jC,r)})(_),N=lf(O,t),M=E.root||c.Root||ZC,z=w.root||u.root||{},A=Lf({className:Cy(T.root,z.className,l),disabled:m},k);let D=s||"li";return a&&(A.component=s||"div",A.focusVisibleClassName=Cy(FC.focusVisible,b),D=pS),P?(D=A.component||s?D:"div","li"===p&&("li"===D?D="div":"li"===A.component&&(A.component="div")),Gm.jsx(NC.Provider,{value:R,children:Gm.jsxs(XC,Lf({as:p,className:Cy(T.container,f),ref:N,ownerState:_},C,{children:[Gm.jsx(M,Lf({},z,!Ly(M)&&{as:D,ownerState:Lf({},_,z.ownerState)},A,{children:I})),I.pop()]}))})):Gm.jsx(NC.Provider,{value:R,children:Gm.jsxs(M,Lf({},z,{as:D,ref:N},!Ly(M)&&{ownerState:Lf({},_,z.ownerState)},A,{children:[I,x&&Gm.jsx(VC,{children:x})]}))})}));var YC=QC;function JC(e){return Cf("MuiListItemIcon",e)}var ek=kf("MuiListItemIcon",["root","alignItemsFlexStart"]);const tk=["className"],nk=Sy("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})=>Lf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),rk=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rf(n,tk),a=Lf({},n,{alignItems:d.useContext(NC).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return xf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},JC,n)})(a);return Gm.jsx(nk,Lf({className:Cy(i.root,r),ownerState:a,ref:t},o))}));var ok=rk;var ak=kf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ik=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ck(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 uk(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")&&ck(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const dk=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=Rf(e,ik),f=d.useRef(null),h=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ef((()=>{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=`${vf(Qp(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=lf(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 Gm.jsx(qC,Lf({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,n=e.key,r=Qp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),uk(t,r,s,l,lk);else if("ArrowUp"===n)e.preventDefault(),uk(t,r,s,l,sk);else if("Home"===n)e.preventDefault(),uk(t,null,s,l,lk);else if("End"===n)e.preventDefault(),uk(t,null,s,l,sk);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&&ck(r,o);o.previousKeyMatched&&(s||uk(t,r,!1,l,lk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))}));var pk=dk;function fk(e){return Cf("MuiPopover",e)}kf("MuiPopover",["root","paper"]);const hk=["onEntering"],mk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function gk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function yk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function bk(e){return"function"==typeof e?e():e}const xk=Sy(HE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sk=Sy(sw,{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}),wk=d.forwardRef((function(e,t){const n=yy({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=xC,transitionDuration:y="auto",TransitionProps:{onEntering:b}={}}=n,x=Rf(n.TransitionProps,hk),S=Rf(n,mk),w=d.useRef(),E=lf(w,m.ref),C=Lf({},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 xf({root:["root"],paper:["paper"]},fk,t)})(C),L=d.useCallback((()=>{if("anchorPosition"===l)return i;const e=bk(o),t=(e&&1===e.nodeType?e:Qp(w.current).body).getBoundingClientRect();return{top:t.top+gk(t,a.vertical),left:t.left+vk(t,a.horizontal)}}),[o,a.horizontal,a.vertical,i,l]),R=d.useCallback((e=>({vertical:gk(e,g.vertical),horizontal:vk(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:yk(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=Yp(bk(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:yk(n)}}),[o,l,L,R,f]),[I,P]=d.useState(h),_=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&&_()})),d.useImperativeHandle(r,(()=>h?{updatePosition:()=>{_()}}:null),[h,_]),d.useEffect((()=>{if(!h)return;const e=Zp((()=>{_()})),t=Yp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,h,_]);let T=y;"auto"!==y||v.muiSupportAuto||(T=void 0);const N=u||(o?Qp(bk(o)).body:void 0);return Gm.jsx(xk,Lf({BackdropProps:{invisible:!0},className:Cy(k.root,c),container:N,open:h,ref:t,ownerState:C},S,{children:Gm.jsx(v,Lf({appear:!0,in:h,onEntering:(e,t)=>{b&&b(e,t),_()},onExited:()=>{P(!1)},timeout:T},x,{children:Gm.jsx(Sk,Lf({elevation:p},m,{ref:E,className:Cy(k.paper,m.className)},I?void 0:{style:Lf({},m.style,{opacity:0})},{ownerState:C,children:s}))}))}))}));var Ek=wk;function Ck(e){return Cf("MuiMenuItem",e)}var kk=kf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Lk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rk=Sy(pS,{shouldForwardProp:e=>by(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})=>Lf({},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"}},[`&.${kk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Av(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Av(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})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${kk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VE.inset}`]:{marginLeft:52},[`& .${ak.root}`]:{marginTop:0,marginBottom:0},[`& .${ak.inset}`]:{paddingLeft:36},[`& .${ek.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ek.root} svg`]:{fontSize:"1.25rem"}})))),Ok=d.forwardRef((function(e,t){const n=yy({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=Rf(n,Lk),h=d.useContext(NC),m=d.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=d.useRef(null);ef((()=>{r&&g.current&&g.current.focus()}),[r]);const v=Lf({},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 Lf({},i,xf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},Ck,i))})(n),b=lf(g,t);let x;return n.disabled||(x=void 0!==u?u:-1),Gm.jsx(NC.Provider,{value:m,children:Gm.jsx(Rk,Lf({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:Cy(y.focusVisible,s),className:Cy(y.root,p)},f,{ownerState:v,classes:y}))})}));var Ik,Pk=Ok;const _k=["children","classes","className","label","notched"],Tk=Sy("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%"}),Nk=Sy("legend")((({ownerState:e,theme:t})=>Lf({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&&Lf({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 Mk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zk=Sy(Aw,{shouldForwardProp:e=>by(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Bw.focused} .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Bw.error} .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bw.disabled} .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Ak=Sy((function(e){const{className:t,label:n,notched:r}=e,o=Rf(e,_k),a=null!=n&&""!==n,i=Lf({},e,{notched:r,withLabel:a});return Gm.jsx(Tk,Lf({"aria-hidden":!0,className:t,ownerState:i},o,{children:Gm.jsx(Nk,{ownerState:i,children:a?Gm.jsx("span",{children:n}):Ik||(Ik=Gm.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}})),Dk=Sy(Dw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zw})((({theme:e,ownerState:t})=>Lf({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}))),qk=d.forwardRef((function(e,t){var n,r,o,a,i;const l=yy({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=Rf(l,Mk),y=(e=>{const{classes:t}=e;return Lf({},t,xf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$w,t))})(l),b=Ow(),x=Lw({props:l,muiFormControl:b,states:["required"]}),S=Lf({},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:zk,E=null!=(o=null!=(a=m.input)?a:s.Input)?o:Dk;return Gm.jsx(Fw,Lf({slots:{root:w,input:E},renderSuffix:e=>Gm.jsx(Ak,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?i||(i=Gm.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:Lf({},y,{notchedOutline:null})}))}));qk.muiName="Input";var jk=qk,Fk=JS(Gm.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"),$k=JS(Gm.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 Bk=Sy("span")({position:"relative",display:"flex"}),Wk=Sy(Fk)({transform:"scale(1)"}),Hk=Sy($k)((({theme:e,ownerState:t})=>Lf({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 Uk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Lf({},e,{checked:t});return Gm.jsxs(Bk,{className:n.root,ownerState:o,children:[Gm.jsx(Wk,{fontSize:r,className:n.background,ownerState:o}),Gm.jsx(Hk,{fontSize:r,className:n.dot,ownerState:o})]})}var Vk=d.createContext(void 0);function Gk(e){return Cf("MuiRadio",e)}var Kk=kf("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Zk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Xk=Sy(pE,{shouldForwardProp:e=>by(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Gp(n.color)}`]]}})((({theme:e,ownerState:t})=>Lf({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})`:Av("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Kk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Kk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Qk=Gm.jsx(Uk,{checked:!0}),Yk=Gm.jsx(Uk,{}),Jk=d.forwardRef((function(e,t){var n,r;const o=yy({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Qk,color:l="primary",icon:s=Yk,name:c,onChange:u,size:p="medium",className:f}=o,h=Rf(o,Zk),m=Lf({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:n}=e;return Lf({},t,xf({root:["root",`color${Gp(n)}`]},Gk,t))})(m),v=d.useContext(Vk);let y=a;const b=Kp(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)),Gm.jsx(Xk,Lf({type:"radio",icon:d.cloneElement(s,{fontSize:null!=(n=Yk.props.fontSize)?n:p}),checkedIcon:d.cloneElement(i,{fontSize:null!=(r=Qk.props.fontSize)?r:p}),ownerState:m,classes:g,name:x,checked:y,onChange:b,ref:t,className:Cy(g.root,f)},h))}));var eL=Jk;function tL(e){return Cf("MuiTooltip",e)}var nL=kf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const rL=["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 oL=Sy(kw,{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})=>Lf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${nL.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${nL.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${nL.arrow}`]:Lf({},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"] .${nL.arrow}`]:Lf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),aL=Sy("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${Gp(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Lf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Av(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},{[`.${nL.popper}[data-popper-placement*="left"] &`]:Lf({transformOrigin:"right center"},t.isRtl?Lf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Lf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${nL.popper}[data-popper-placement*="right"] &`]:Lf({transformOrigin:"left center"},t.isRtl?Lf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Lf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${nL.popper}[data-popper-placement*="top"] &`]:Lf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${nL.popper}[data-popper-placement*="bottom"] &`]:Lf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),iL=Sy("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:Av(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let lL=!1,sL=null,cL={x:0,y:0};function uL(e,t){return n=>{t&&t(n),e(n)}}const dL=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=yy({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:_=!1,enterDelay:T=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:z=!1,id:A,leaveDelay:D=0,leaveTouchDelay:q=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=xC,TransitionProps:Z}=w,X=Rf(w,rL),Q=vy(),Y="rtl"===Q.direction,[J,ee]=d.useState(),[te,ne]=d.useState(null),re=d.useRef(!1),oe=P||z,ae=d.useRef(),ie=d.useRef(),le=d.useRef(),se=d.useRef(),[ce,ue]=of({controlled:$,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=rf(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(sL),lL=!0,ue(!0),F&&!de&&F(e)},ge=af((e=>{clearTimeout(sL),sL=setTimeout((()=>{lL=!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),T||lL&&N?ie.current=setTimeout((()=>{me(e)}),lL?N:T):me(e))},ye=e=>{clearTimeout(ie.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)},{isFocusVisibleRef:be,onBlur:xe,onFocus:Se,ref:we}=gf(),[,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)}),q)};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 _e=lf(C.ref,we,ee,t);G||0===G||(de=!1);const Te=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 ze=Lf({},Ne,X,C.props,{className:Cy(X.className,C.props.className),onTouchStart:Le,ref:_e},z?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),cL={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),Ae={};_||(ze.onTouchStart=Ie,ze.onTouchEnd=Pe),I||(ze.onMouseOver=uL(Re,ze.onMouseOver),ze.onMouseLeave=uL(Oe,ze.onMouseLeave),oe||(Ae.onMouseOver=Re,Ae.onMouseLeave=Oe)),O||(ze.onFocus=uL(ke,ze.onFocus),ze.onBlur=uL(Ce,ze.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)),Lf({},H.popperOptions,{modifiers:t})}),[te,H]),qe=Lf({},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 xf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Gp(a.split("-")[0])}`],arrow:["arrow"]},tL,t)})(qe),Fe=null!=(n=null!=(r=V.popper)?r:k.Popper)?n:oL,$e=null!=(o=null!=(a=null!=(i=V.transition)?i:k.Transition)?a:K)?o:xC,Be=null!=(l=null!=(s=V.tooltip)?s:k.Tooltip)?l:aL,We=null!=(c=null!=(u=V.arrow)?u:k.Arrow)?c:iL,He=Ry(Fe,Lf({},H,null!=(p=U.popper)?p:L.popper,{className:Cy(je.popper,null==H?void 0:H.className,null==(f=null!=(h=U.popper)?h:L.popper)?void 0:f.className)}),qe),Ue=Ry($e,Lf({},Z,null!=(m=U.transition)?m:L.transition),qe),Ve=Ry(Be,Lf({},null!=(g=U.tooltip)?g:L.tooltip,{className:Cy(je.tooltip,null==(v=null!=(y=U.tooltip)?y:L.tooltip)?void 0:v.className)}),qe),Ge=Ry(We,Lf({},null!=(b=U.arrow)?b:L.arrow,{className:Cy(je.arrow,null==(x=null!=(S=U.arrow)?S:L.arrow)?void 0:x.className)}),qe);return Gm.jsxs(d.Fragment,{children:[d.cloneElement(C,ze),Gm.jsx(Fe,Lf({as:null!=W?W:kw,placement:B,anchorEl:z?{getBoundingClientRect:()=>({top:cL.y,left:cL.x,right:cL.x,bottom:cL.y,width:0,height:0})}:J,popperRef:Te,open:!!J&&de,id:pe,transition:!0},Ae,He,{popperOptions:De,children:({TransitionProps:e})=>Gm.jsx($e,Lf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Gm.jsxs(Be,Lf({},Ve,{children:[G,E?Gm.jsx(We,Lf({},Ge,{ref:ne})):null]}))}))}))]})}));var pL=dL;const[fL,hL]=AS({}),[mL,gL]=AS({}),[vL,yL]=AS({}),[bL,xL]=AS({}),[SL,wL]=AS({}),[,EL]=AS({}),CL=e=>{let{type:t,value:n}=e;const r=EL.get(n.id);EL.set(n.id,{});const o=()=>{gL.clear(n.id),wL.set(n.id,{}),wL.dispatch(!0)},a=()=>{n.removeListener("changed",o),hL.clear(n.id),gL.clear(n.id),yL.clear(n.id),xL.clear(n.id),wL.clear(n.id),EL.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[kL,LL]=AS({},CL);function RL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=kL(),[o]=vL(),[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 OL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function IL(e){return RL(OL,e)}const PL=(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]=fL(),[o,a]=d.useReducer(PL,n?r.get(n):null),[i]=SL(),[l]=mL();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 TL(e){return _L(e,"getLayout")}function NL(e){return _L(e,"getAppLayout")}function ML(){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 zL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function AL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=l({fontSize:zL(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 DL=e=>AL((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 qL=e=>AL((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 jL=e=>AL((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 FL=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$L=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}}(),BL=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},WL=function(e){function t(){var e,n,r;FL(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=BL(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},BL(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),$L(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 HL=["S","XS"],UL=e=>e.reduce(((e,t)=>e.concat(t)));function VL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!HL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return UL(t)}async function GL(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 KL=e=>!(e.metaKey||e.ctrlKey);function ZL(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(),GL({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 UL(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&&KL(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(t.selectDisabled())return;const n=+e.currentTarget.getAttribute("data-n"),r=!t.isSingleSelect&&KL(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(a.current.active){if(a.current.active=!1,a.current.isRange){const t=+e.currentTarget.getAttribute("data-n");l(t)}i()}}),[]),p=d.useCallback((()=>{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("deactivated",e),n.on("cleared",r),()=>{n.removeListener("activated",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];const o=[];return t.updateItems(e,r,o),t.setSelectableValuesUpdating(),GL({selections:n,elemNumbers:r?o:e,isSingleSelect:t.isSingleSelect,toggle:!t.isSingleSelect})}}}const XL=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 QL=e=>AL(XL(e));const YL=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===YL.ARROW_UP||e===YL.ARROW_DOWN||e===YL.ARROW_LEFT||e===YL.ARROW_RIGHT});function JL(e){let{setKeyboardActive:t,hovering:n,setHovering:r,updateKeyScroll:o,containerRef:a,currentScrollIndex:i,app:l,appSelections:s,constraints:c}=e;const u=e=>{n&&o(e)};return{handleKeyDown:e=>{const{keyCode:n,ctrlKey:r=!1,shiftKey:o=!1}=e.nativeEvent;switch(n){case YL.ENTER:case YL.SPACE:if(!e.target.classList.contains("listbox-container"))return;(e=>{const n=e.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");t(!0),n&&n.focus()})(e.currentTarget);break;case YL.ESCAPE:a=e.currentTarget,t(!1),a.focus();break;case YL.ARROW_UP:u({up:1});break;case YL.ARROW_DOWN:u({down:1});break;case YL.PAGE_UP:u({up:i.stop-i.start});break;case YL.PAGE_DOWN:u({down:i.stop-i.start});break;case YL.HOME:u({scrollPosition:r&&o?"overflowStart":"start"});break;case YL.END:u({scrollPosition:r&&o?"overflowEnd":"end"});break;default:return}var a;e.preventDefault()},handleOnMouseEnter:()=>{var e,t;(()=>{var e,t;const n=(null==c?void 0:c.select)||(null==c?void 0:c.active),r=null!==(e=null===(t=l.isInModalSelection)||void 0===t?void 0:t.call(l))&&void 0!==e?e:s.isInModal();return n||r})()||(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 eR="RowColumn",tR={row:"".concat(eR,"-row"),rowBorderBottom:"".concat(eR,"-rowBorderBottom"),column:"".concat(eR,"-column"),fieldRoot:"".concat(eR,"-fieldRoot"),cell:"".concat(eR,"-cell"),labelText:"".concat(eR,"-labelText"),labelDense:"".concat(eR,"-labelDense"),highlighted:"".concat(eR,"-highlighted"),checkboxLabel:"".concat(eR,"-checkboxLabel"),icon:"".concat(eR,"-icon"),S:"".concat(eR,"-S"),XS:"".concat(eR,"-XS"),A:"".concat(eR,"-A"),X:"".concat(eR,"-X"),frequencyCount:"".concat(eR,"-frequencyCount"),barContainer:"".concat(eR,"-barContainer"),bar:"".concat(eR,"-bar"),barSelected:"".concat(eR,"-barSelected"),barWithCheckbox:"".concat(eR,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(eR,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(eR,"-excludedTextWithCheckbox")},nR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,rR=e=>e?"A"===e.qState:null,oR=e=>{let{cell:t,checkboxes:n}=e;return(rR(t)||nR(t))&&n},aR=e=>e.filter((e=>!!e)).join(" ").trim(),iR=e=>{let{cell:t}=e;return t?t.qFrequency?t.qFrequency:"-":""},lR=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}}},sR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cR=Sy("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"},["& .".concat(tR.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(tR.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(tR.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(tR.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(tR.labelText)]:l(l({flexBasis:f,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},sR),{},{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(tR.labelDense)]:{fontSize:12},["& .".concat(tR.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(tR.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},sR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(tR.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(tR.S)]:l(l({},lR({theme:p})),{},{border:h?"none":void 0}),["& .".concat(tR.XS)]:l(l({},lR({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.mainContrastText,border:h?"none":void 0}),["& .".concat(tR.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(tR.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(tR.frequencyCount)]:l(l({justifyContent:"flex-end"},sR),{},{flex:"0 1 ".concat(v,"px"),textAlign:"right",paddingLeft:"2px"}),["&.".concat(tR.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(tR.bar)]:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},["& .".concat(tR.barSelected)]:{opacity:"30%",zIndex:"0",background:p.palette.background.lighter},["& .".concat(tR.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(tR.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(tR.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var uR=G.memo(cR);const dR="ListBoxCheckbox",pR={cbIcon:"".concat(dR,"-cbIcon"),cbIconChecked:"".concat(dR,"-cbIconChecked"),cbIconExcluded:"".concat(dR,"-cbIconExcluded"),cbIconAlternative:"".concat(dR,"-cbIconAlternative"),checkbox:"".concat(dR,"-checkbox"),dense:"".concat(dR,"-dense")},fR=Sy(CE)((e=>{let{theme:t}=e;return{["& .".concat(pR.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(pR.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(pR.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(pR.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(pR.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(pR.dense)]:{padding:"4px 8px"}}})),hR=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 mR(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,showGray:i=!0,dataN:l}=e;return G.createElement(fR,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[pR.checkbox,o&&pR.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:hR(pR,i,a),checkedIcon:G.createElement("span",{className:pR.cbIconChecked})})}const gR="ListBoxRadioButton",vR={denseRadioButton:"".concat(gR,"-denseRadioButton"),radioButton:"".concat(gR,"-radioButton")},yR=Sy(eL)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(vR.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function bR(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a}=e;return G.createElement(yR,{checked:n,onChange:t,value:r,name:r,className:vR.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function xR(e){let{label:t,color:n,highlighted:r=!1,dense:o,showGray:a=!0,checkboxes:i,cell:l,valueTextAlign:s}=e;return G.createElement(Sw,{component:"span",variant:"body2",className:aR([tR.labelText,r&&tR.highlighted,o&&tR.labelDense,a&&oR({cell:l,checkboxes:i})&&tR.excludedTextWithCheckbox]),color:n,align:s},G.createElement("span",{style:{whiteSpace:"pre"}},t))}function SR(e){let{label:t,color:n,highlighted:r,dense:o,showGray:a,checkboxes:i,cell:l,valueTextAlign:s}=e;return"string"==typeof t?G.createElement(xR,{label:t,color:n,highlighted:r,dense:o,showGray:a,checkboxes:i,cell:l,valueTextAlign:s}):t}function wR(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,highlighted:d,checkboxes:p,valueTextAlign:f}=e;const h=G.createElement(mR,{onChange:t,label:n,checked:a,dense:i,excluded:nR(l),isGridCol:s,showGray:c,dataN:o}),m=G.createElement(bR,{onChange:t,label:n,checked:a,dense:i,dataN:o});return G.createElement(rC,{color:r,control:u?m:h,className:tR.checkboxLabel,label:G.createElement(SR,{label:n,color:r,highlighted:d,dense:i,showGray:c,checkboxes:p,cell:l,valueTextAlign:f}),key:o})}function ER(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;return G.createElement(G.Fragment,null,t.map(((e,t)=>{let[a,i]=e;const l="".concat(t);return G.createElement(xR,{label:a,key:l,highlighted:i,dense:n,showGray:r,checkboxes:o})})))}function CR(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(ER,{labels:n,dense:o,showGray:a,checkboxes:r});return r?G.createElement(wR,{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 kR=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,highlighted:d,checkboxes:p,valueTextAlign:f}=e;return p?G.createElement(wR,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,highlighted:d,checkboxes:p,valueTextAlign:f}):G.createElement(xR,{label:n,color:r,highlighted:!1,dense:i,showGray:!0,checkboxes:p,cell:l,valueTextAlign:f})}));function LR(e){let{cell:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&"-"!==iR({cell:t})))return;const i=(e=>{let{qFrequency:t,checkboxes:n,frequencyMax:r}=e;const o=String(t),a="%"===o.substring(o.length-1),i=parseFloat(a?o:t),l=n?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(a?i:i/r*100,"% - ").concat(l,")")})({qFrequency:t.qFrequency,checkboxes:r,frequencyMax:a});return G.createElement("div",{className:aR([tR.bar,r&&tR.barWithCheckbox,o&&(r?tR.barSelectedWithCheckbox:tR.barSelected)]),style:{width:i}})}function RR(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;return G.createElement(hC,{item:!0,style:{display:"flex",alignItems:"center"},className:tR.frequencyCount},G.createElement(Sw,{noWrap:!0,color:"inherit",variant:"body2",className:aR([r&&tR.labelDense,tR.labelText,o&&oR({cell:t,checkboxes:n})&&tR.excludedTextWithCheckbox])},iR({cell:t})))}function OR(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 IR=Sy(hC,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","checkboxes"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,checkboxes:o}=e;return{["&.".concat(tR.fieldRoot)]:l(l({},OR({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{paddingRight:o?"8px":void 0})}}));function PR(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,columnCount:P=1,rowCount:_=1,dataOffset:T,focusListItems:N,listCount:M,itemPadding:z,frequencyWidth:A}=c,{dense:D=!1,dataLayout:q="singleColumn",layoutOrder:j}=w;let F,$;const B={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof i){"row"===j?(F=a*P+i,B.max=_,B.currentIndex=a):(F=i*_+a,B.max=P,B.currentIndex=i);const e=0;$=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 F=o,B.max=M,B.currentIndex=o,$=l({},s);F+=T;const W=d.useRef(null);d.useEffect((()=>{null!==W.current&&(0===B.currentIndex&&N.first&&(W.current.focus(),N.setFirst(!1)),B.currentIndex===B.max-1&&N.last&&(W.current.focus(),N.setLast(!1)))}),[W.current]);const H=d.useCallback(function(e){let{select:t,confirm:n,cancel:r,setScrollPosition:o,focusListItems:a}=e;const i=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 l=!1;const s=e=>{l=e};return e=>{let c;const{keyCode:u,shiftKey:d=!1,ctrlKey:p=!1}=e.nativeEvent;switch(u){case YL.SHIFT:s(!0);break;case YL.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case YL.ARROW_DOWN:case YL.ARROW_RIGHT:c=i(e.currentTarget,!0),d&&c&&(l&&(t([+e.currentTarget.getAttribute("data-n")],!0),s(!1)),t([+c.getAttribute("data-n")],!0));break;case YL.ARROW_UP:case YL.ARROW_LEFT:c=i(e.currentTarget,!1),d&&c&&(l&&(t([+e.currentTarget.getAttribute("data-n")],!0),s(!1)),t([+c.getAttribute("data-n")],!0));break;case YL.ENTER:n();break;case YL.ESCAPE:return void r();case YL.HOME:if(a.setFirst(!0),p){null==o||o("overflowStart");break}null==o||o("start");break;case YL.END:if(a.setLast(!0),p){null==o||o("overflowEnd");break}null==o||o("end");break;default:return}c&&c.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:N})),[k]),U=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:F})),[g,F]),V="S"===(null==U?void 0:U.qState)||"XS"===(null==U?void 0:U.qState)||"L"===(null==U?void 0:U.qState),K=d.useMemo((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:a}=e;const i=[t?tR.column:tR.row];return n||i.push(tR.rowBorderBottom),o?(r||("XS"===o.qState?i.push(a?tR.XS:tR.S):"S"===o.qState||"L"===o.qState?i.push(tR.S):a&&rR(o)?i.push(tR.A):a&&nR(o)&&i.push(tR.X)),i):[]})({column:y,histogram:R,checkboxes:b,cell:U,showGray:I})),[null==U?void 0:U.qState,R,D,b]),Z=d.useCallback((e=>{b&&p(e),e.preventDefault()}),[b]);if(!U)return null;const X=!["NaN",void 0].includes(null==U?void 0:U.qNum);let Q;Q=!x||x.auto?X?"right":{rtl:"right",ltr:"left"}[S]:(null==x?void 0:x.align)||"left";const Y="grid"===q&&"column"===j,J=null!==(t=null==U?void 0:U.qText)&&void 0!==t?t:"";let ee;if(null!==(n=U.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=U.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ee=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}(J,e)}const te={alignItems:"center",display:"flex",fontSize:"8px"},ne=V&&v,re=!b&&V&&!v,oe={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:b?0:void 0,justifyContent:Q},ae=0===o,ie=b?"auto":"max-content";return G.createElement(uR,{className:tR.barContainer,flexBasisProp:ie,style:$,isGridCol:Y,isGridMode:"grid"===q,dense:D,frequencyWidth:A},G.createElement(IR,{ref:W,container:!0,dataLayout:q,checkboxes:b,layoutOrder:j,itemPadding:z,gap:0,className:aR(["value",...K]),classes:{root:tR.fieldRoot},onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,onKeyDown:H,onContextMenu:Z,role:y?"column":"row",tabIndex:!ae||O.enabled&&!O.active?-1:0,"data-n":null==U?void 0:U.qElemNumber},G.createElement(LR,{cell:U,histogram:R,checkboxes:b,isSelected:V,frequencyMax:L}),G.createElement(hC,{item:!0,style:oe,className:aR([tR.cell,tR.selectedCell]),title:"".concat(J)},ee?G.createElement(CR,{onChange:u,labels:ee,checkboxes:b,dense:D,showGray:I,color:"inherit",qElemNumber:U.qElemNumber,isSelected:V,cell:U,isGridCol:Y,isSingleSelect:C,valueTextAlign:Q}):G.createElement(kR,{onChange:u,label:J,color:"inherit",qElemNumber:U.qElemNumber,isSelected:V,dense:D,cell:U,isGridCol:Y,showGray:I,isSingleSelect:C,checkboxes:b,valueTextAlign:Q})),E&&G.createElement(RR,{cell:U,checkboxes:b,dense:D,showGray:I}),!b&&G.createElement(hC,{item:!0,className:tR.icon},!ne&&!re&&G.createElement("span",{style:{minWidth:"12px"}}),ne&&G.createElement(qL,{style:te,size:"small"}),re&&G.createElement(QL,{style:te,size:"small"}))))}var _R=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function TR(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||_R(r)&&_R(o)))return!1;var r,o;return!0}function NR(e,t){var n;void 0===t&&(t=TR);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 MR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function zR(e){cancelAnimationFrame(e.id)}function AR(e,t){var n=MR();var r={id:requestAnimationFrame((function o(){MR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var DR=-1;function qR(e){if(void 0===e&&(e=!1),-1===DR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),DR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return DR}var jR=null;function FR(e){if(void 0===e&&(e=!1),null===jR||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?jR="positive-descending":(t.scrollLeft=1,jR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),jR}return jR}var $R=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function BR(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,Fx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Fx(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=NR((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=NR((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=NR((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(FR()){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&&zR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ix(t,e),t.getDerivedStateFromProps=function(e,t){return WR(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=qR();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(FR()){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&&zR(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?$R: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 _=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Lx({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:_,pointerEvents:S?"none":void 0,width:T}}))},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 WR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},HR=function(e,t){return e};function UR(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,Fx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Fx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=NR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=NR((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=NR((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(FR()){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&&zR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ix(t,e),t.getDerivedStateFromProps=function(e,t){return VR(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?qR():0:s.scrollHeight>s.clientHeight?qR():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(FR()){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&&zR(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?HR: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:Lx({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 VR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},GR=BR({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}}),KR=UR({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 ZR="#BBB",XR="#f1f1f1",QR={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function YR(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:JR,StyledFixedSizeGrid:eO}=function(){const e=e=>({scrollbarColor:"".concat(ZR," ").concat(XR),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:XR},"&::-webkit-scrollbar-thumb":{backgroundColor:ZR,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Am(KR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(QR.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Am(GR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(QR.styledScrollbars)]:e(n)}}))}}();const tO=(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 nO(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function rO(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[oO,aO]=AS({});function iO(e){const t="".concat(e.id),[n]=oO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}function lO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=d.useContext(zS),i=Sy(Sw)((()=>l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(r?"12px":"14px")},r&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})));return G.createElement(pL,{title:o?a.get(n):""},G.createElement(i,{component:"div",variant:"body1",py:"12px"},a.get(n)))}var sO={},cO={},uO={get exports(){return cO},set exports(e){cO=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(uO);var dO,pO={},fO=r(tw);var hO=cO;Object.defineProperty(sO,"__esModule",{value:!0});var mO=sO.default=void 0,gO=hO((dO||(dO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fO}(pO)),pO)),vO=Gm,yO=(0,gO.default)((0,vO.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");mO=sO.default=yO;const bO=Sy(sw)((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}})),xO=Sy("div")((()=>({paddingLeft:"6px",flexGrow:1}))),SO=Sy("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),wO=Sy(mO)((()=>({fontSize:"14px"})));function EO(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(bO,{left:l,style:{maxWidth:i}},G.createElement(xO,null,G.createElement(lO,{text:t,dense:r,width:s,tooltip:c})),G.createElement(SO,{dense:r},a&&G.createElement(hw,{"aria-label":"close",onClick:()=>n()},G.createElement(wO,null))))}function CO(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 kO=["isLoadingData"];function LO(e){var t,n,r,o;let{model:a,constraints:i,layout:s,selections:p,selectionState:f,direction:h,checkboxes:m,height:g,width:v,frequencyMode:y,update:b,fetchStart:x,postProcessPages:S,calculatePagesHeight:w=!1,keyboard:E={},showGray:C=!0,scrollState:k,selectDisabled:L=(()=>!1),keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:O={set:()=>{}}}=e;const[I,P]=d.useState(!1),_=!(!s||!s.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:T=m,histogram:N}=null!=s?s:{},M=d.useRef(null),z=d.useRef({queue:[],validPages:!1,dataOffset:0}),A=d.useRef({pages:[]}),D=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:z,loaderRef:M,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:S,listData:A}),q=u(D,kO),{setStoreValue:j}=iO(a),F=d.useCallback(q.loadMoreItems,[s]),[$,B]=d.useState({show:!1,dismissed:!1}),[W,H]=d.useState([]);null!=q&&q.pages&&f.update({setPages:H,pages:null==q?void 0:q.pages,isSingleSelect:_,selectDisabled:L,layout:s});const U=d.useCallback((e=>{if(null==W||!W.length||!z.current.validPages)return!1;z.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=W.filter((e=>t(e)))[0];return n&&t(n)}),[s,W]),{interactionEvents:V,select:K}=ZL({selectionState:f,selections:p,checkboxes:T,doc:document}),{layoutOptions:Z={}}=s||{};let X=!0;Z.dataLayout&&(X="singleColumn"===Z.dataLayout||"row"===(null==Z?void 0:Z.layoutOrder));const Q="grid"===(null==Z?void 0:Z.dataLayout),Y=e=>{const t=l({},X?{rowIndex:e}:{columnIndex:e}),n=Q?t:e;M.current._listRef.scrollToItem(n)},J=()=>{if(z.current.queue=[],z.current.validPages=!1,M.current){M.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(s&&s.qSelectionInfo.qInSelections||e)return void(e&&R.reset());z.current.dataOffset=0,Y(0)}};b&&b.call(null,J),d.useEffect((()=>{k&&!I&&M.current&&(M.current._listRef.scrollToItem(k.initScrollPos),P(!0))}),[M.current]),d.useEffect((()=>{J()}),[s,z.current.dataOffset]);const ee=(e=>{const t=d.useMemo((()=>"text"in e?e:{}),[e]);return d.useMemo((()=>tO(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:nO(s),font:"14px Source sans pro"});let te=100;const ne="grid"!==Z.dataLayout,re=null==s||null===(t=s.qListObject.qSize)||void 0===t?void 0:t.qcy,oe=rO({pages:W,minimumBatchSize:te,count:re,calculatePagesHeight:w,layoutOptions:Z,model:a});let ae=CO({itemWidth:v,layout:s,frequencyMode:y});const ie=function(e){let{layout:t,width:n,height:r,listCount:o,count:a,textWidth:i,freqIsAllowed:l}=e;const{layoutOptions:s={}}=t||{},{layoutOrder:c,maxVisibleRows:u={},maxVisibleColumns:d,dense:p,dataLayout:f}=s,h=l?40:0,m=Math.max(Math.min(150,i+18+h),56+h);let g,v,y,b;const x="grid"===f;let S=p?20:x?32:29;x&&(S+=4);const w=null!=r?r:8*S;if(c){let e=n;if("row"===c){e+=8,g={overflowX:"hidden"};const t=(null==d?void 0:d.maxColumns)||3;v=!1!==(null==d?void 0:d.auto)?Math.min(o,Math.ceil((e-10)/m)):Math.min(o,t),b=Math.ceil(o/v),y=(e-10)/v}else{g={overflowY:"hidden"};const t=(null==u?void 0:u.maxRows)||3;b=!1!==u.auto?Math.floor(w/S):Math.min(o,t),v=Math.ceil(o/b),y=Math.max(m,e/v)}}v=("singleColumn"===f?1:v)||1,b=("singleColumn"===f?a:b)||o;const E=s.dense?838e3:577e3;b=Math.min(b,E);const C=Math.floor(3355e4/y);v=Math.min(v,C)||1;const k=b*v;return{columnCount:v,columnWidth:y,rowCount:b,overflowStyling:g,itemSize:S,listHeight:w,scrollBarWidth:10,count:a,listCount:Math.min(o,k),maxCount:{row:E,column:C},itemPadding:4,frequencyWidth:40}}({layout:s,width:v,height:g,listCount:oe,count:re,textWidth:ee,freqIsAllowed:ae});ie.columnWidth&&(ae=CO({itemWidth:ie.columnWidth,layout:s,frequencyMode:y}));const{listCount:le}=ie;j("listCount",le);const se=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:X,sizes:ie,layout:s,offset:z.current.dataOffset});z.current.dataOffset=n,r&&f.triggerStateChanged(),Y(t)};d.useEffect((()=>{const e=R.state;e.up?Y(O.state.start-e.up):e.down?Y(O.state.stop+e.down):e.scrollPosition&&se(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:ce}=(null==s?void 0:s.qListObject.qDimensionInfo)||{},[ue,de]=d.useState({first:!1,last:!1}),{List:pe,Grid:fe}=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,textAlign:m,selections:g,keyboard:v,showGray:y,scrollState:b,direction:x,sizes:S,listCount:w,overflowDisclaimer:E,setScrollPosition:C,focusListItems:k,setCurrentScrollIndex:L,constraints:R,freqIsAllowed:O}=e;const{layoutOptions:I={},frequencyMax:P}=t||{},{itemPadding:_,listHeight:T,itemSize:N,rowCount:M,columnCount:z,frequencyWidth:A}=S||{},D={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:QR.styledScrollbars},q=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,j=l(l({isLocked:q,column:!a,pages:i},q||s()?{}:u),{},{checkboxes:r,layoutOptions:I,frequencyMode:d,freqIsAllowed:O,isSingleSelect:f,textAlign:m,itemPadding:_,frequencyWidth:A,actions:{select:h,confirm:()=>null==g?void 0:g.confirm.call(g),cancel:()=>null==g?void 0:g.cancel.call(g),setScrollPosition:C},frequencyMax:P,histogram:p,keyboard:v,showGray:y,dataOffset:o.current.dataOffset,focusListItems:k});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,G.createElement(JR,c({},D,{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:T,width:n,itemCount:w,itemData:l(l({},j),{},{listCount:w}),itemSize:N,onItemsRendered:e=>{var n,a;L({start:e.visibleStartIndex,stop:e.visibleStopIndex}),b&&b.setScrollPos(e.visibleStopIndex),YR({renderProps:e,layoutOptions:I,maxCount:S.maxCount,columnCount:z,rowCount:M,overflowDisclaimer:E,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}),PR)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{columnWidth:i,overflowStyling:s,scrollBarWidth:u}=S,{layoutOrder:d}=I||{},p=Math.min(T,M*N+u);return o.current.listRef=a,G.createElement(eO,c({},D,{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:p,width:n,columnCount:z,columnWidth:i,rowCount:M,rowHeight:N,style:l({},s),itemData:l(l({},j),{},{column:void 0,columnCount:z,rowCount:M}),onItemsRendered:e=>{var n,a;const i="row"===d;L({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:b,layoutOrder:d,rowCount:M,columnCount:z});YR({renderProps:e,layoutOptions:I,maxCount:S.maxCount,columnCount:z,rowCount:M,overflowDisclaimer:E,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}),PR)}}}({direction:h,layout:s,height:g,width:v,checkboxes:T,frequencyMode:y,histogram:N,keyboard:E,showGray:C,interactionEvents:V,select:K,textAlign:ce,isVertical:ne,pages:W,selectDisabled:L,isSingleSelect:_,selections:p,scrollState:k,local:z,sizes:ie,listCount:le,overflowDisclaimer:{state:$,set:e=>B((t=>l(l({},t),{},{show:e})))},setScrollPosition:se,focusListItems:{first:ue.first,setFirst:e=>de((t=>l(l({},t),{},{first:e}))),last:ue.last,setLast:e=>de((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:O.set,constraints:i,freqIsAllowed:ae}),{columnWidth:he,listHeight:me,itemSize:ge}=ie||{};return ne||(te=function(e){let{width:t,columnWidth:n,listHeight:r,itemSize:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:v,columnWidth:he,listHeight:me,itemSize:ge})),G.createElement(G.Fragment,null,!le&&G.createElement(lO,{width:v,text:"Listbox.NoMatchesForYourTerms"}),G.createElement(WL,{isItemLoaded:U,itemCount:le||1,loadMoreItems:F.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:M},ne?pe:fe),$.show&&!$.dismissed&&G.createElement(EO,{text:"Listbox.ItemsOverflow",dismiss:()=>B((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==M||null===(n=M.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==Z?void 0:Z.dense}))}const RO=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"}}]}),OO=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"}}]}),IO=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"}}]}),PO=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 _O=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:RO,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:IO,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:OO,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:PO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}]};const TO=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 NO(e){const t=vy(),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 MO="njs-cell-action",zO=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=vy(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=NO(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;return G.createElement(hw,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:d,disabled:l,style:s,className:MO,size:"large","aria-expanded":n,"aria-controls":"moreMenuList"},c&&AL(r.getSvgIconShape()),o&&G.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),AO=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"}}]}),DO=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=>AL(DO(e));const jO="njs-action-toolbar-more",FO={icon:"".concat("More","-icon")},$O=Sy(Ek)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(FO.icon)]:{color:t.palette.text.primary}}}));function BO(e){let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:a}=NO(t);return r?null:G.createElement(Pk,{title:t.label,onClick:()=>{t.action(),n()},disabled:o,tabindex:"0"},a&&G.createElement(ok,{className:FO.icon},AL(t.getSvgIconShape())),G.createElement(Sw,{noWrap:!0},t.label))}const WO=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($O,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(pk,{id:"moreMenuList"},n.map(((e,t)=>G.createElement(BO,{key:t,item:e,onActionClick:s})))))})),HO="ActionsToolbar",UO={itemSpacing:"".concat(HO,"-itemSpacing"),firstItemSpacing:"".concat(HO,"-firstItemSpacing"),lastItemSpacing:"".concat(HO,"-lastItemSpacing")},VO=Sy(Ek)((e=>{let{theme:t}=e;return{["& .".concat(UO.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(UO.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(UO.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),GO="njs-action-toolbar-popover",KO=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,actions:r=[],first:o=!1,last:a=!1,addAnchor:i=!1}=e;return r.length>0?G.createElement(hC,{item:!0,container:!0,gap:0,wrap:"nowrap"},r.map(((e,l)=>{let s=[];const c=o&&0===l,u=a&&r.length-1===l;return c&&!u&&(s=[UO.firstItemSpacing]),u&&!c&&(s=[...s,UO.lastItemSpacing]),c||u||0!==s.length||(s=[UO.itemSpacing]),G.createElement(hC,{item:!0,key:e.key,className:s.join(" ").trim()},G.createElement(zO,{ariaExpanded:n,key:e.key,item:e,ref:0===l?t:null,addAnchor:i}))}))):null})),ZO={pointerEvents:"none"},XO={vertical:"top",horizontal:"right"},QO={vertical:"bottom",horizontal:"right"};function YO(e){let{show:t=!0,actions:n=[],maxItems:r=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:a={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:i={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:s=null}=e;const c=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:a}=d.useContext(zS);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:DO},{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:AO},{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:XL}]}(o),{translator:u,keyboardNavigation:p}=d.useContext(zS),[f,h]=d.useState(!1),m=d.useRef(),g=d.useRef(),v=vy(),y=d.useMemo((()=>({margin:v.spacing(.5,0)}))),b=e=>{const t=g.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};d.useEffect((()=>()=>{h(!1)}),[i.show,t,o.show]),d.useEffect((()=>{if(!l)return;l.on("focus_toolbar_first",(()=>{const e=b(!1);e&&e.focus()})),l.on("focus_toolbar_last",(()=>{const e=b(!0);e&&e.focus()}))}),[]);let x=a.enabled,S=a.actions;const w=a.alignTo||m,E=n.filter((e=>!e.hidden));if(E.length>r){const e=E.splice(-(E.length-r)-1);x=!0,S=[...e,...a.actions]}if(!o.show&&0===E.length)return null;const C={key:"more",label:u.get("Menu.More"),getSvgIconShape:TO,hidden:!1,active:f,enabled:()=>x,action:()=>h(!f)},k=p&&l&&l.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&b(!1)===e.target||!e.shiftKey&&b(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),l.refocusContent())}:null,L=E.length>0,R=S.length>0,O=L&&o.show||R&&o.show,I=G.createElement(hC,{ref:g,onKeyDown:k,container:!0,gap:0,wrap:"nowrap"},L&&G.createElement(KO,{actions:E,first:!0,last:!R&&!o.show}),R&&G.createElement(KO,{ref:m,ariaExpanded:f,actions:[C],first:!L,last:!o.show,addAnchor:!0}),O&&G.createElement(hC,{item:!0,className:UO.itemSpacing,style:y},G.createElement(QE,{orientation:"vertical"})),o.show&&G.createElement(KO,{actions:c,first:!L&&!R,last:!0}),f&&G.createElement(WO,{show:f,actions:S,alignTo:w,popoverProps:a.popoverProps,popoverPaperStyle:a.popoverPaperStyle,onCloseOrActionClick:()=>{h(!1)}}));return i.show?G.createElement(VO,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:i.show,anchorEl:i.anchorEl,anchorOrigin:XO,transformOrigin:QO,hideBackdrop:!0,style:ZO,PaperProps:{className:GO,style:{pointerEvents:"auto",padding:v.spacing(1,1)}}},I):t&&I}var JO=e=>AL((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 eI="/qListObjectDef",tI=Sy(TC)((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}})),nI=Sy(jk)((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}}));function rI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c}=e;const{translator:u}=d.useContext(zS),[p,f]=d.useState(""),[h,m]=d.useState(!1),g=d.useRef(),v=vy(),{getStoreValue:y}=iO(r),b=async()=>{if(t.isModal())try{await r.abortListObjectSearch(eI)}finally{f("")}};d.useEffect((()=>{i||b()}),[i]),d.useEffect((()=>(t.on("deactivated",b),()=>{t.removeListener&&t.removeListener("deactivated",b)})),[]),d.useEffect((()=>{if(h&&g.current){const e=p.length-1;g.current.setSelectionRange(e,e),m(!1)}}),[h,g.current]);const x=async()=>{let e;return await r.searchListObjectFor(eI,p)&&p.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(eI,!0),t.selectionsMade=!0,n.clearItemStates(!1),f("")),e};return i&&!1!==c?G.createElement(nI,{startAdornment:G.createElement(tI,{position:"start"},G.createElement(JO,{size:a?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(v.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(9,"px")},a&&{fontSize:12,paddingLeft:v.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],inputRef:g,size:"small",fullWidth:!0,placeholder:u.get("Listbox.Search"),value:p,onFocus:()=>{s&&(f("**"),m(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(f(e.target.value),e.target.value.length?r.searchListObjectFor(eI,e.target.value):b()),onKeyDown:async e=>{let n;switch(e.key){case"Enter":n=await x();break;case"Escape":n=t.isActive()&&t.cancel(),e.preventDefault(),e.stopPropagation()}return n},autoFocus:l,inputProps:{tabIndex:!o||o.enabled&&!o.active?-1:0}}):null}function oI(e){return Object.keys(ne.prototype).forEach((t=>{e[t]=ne.prototype[t]})),ne.init(e),e}const aI=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 oI(l),l},iI=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 lI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=US(e),[i]=TL(t),l=t?t.id:null,[s]=jS(),[c]=$S(),u=s.get(e.id);let p=c.get(l);return d.useEffect((()=>{a&&t&&!p&&(p=aI({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}=iI({elements:o,objectSelections:p,options:r});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{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=VL(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 cI=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 uI(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=vy(),[g]=RL({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),v=d.useCallback((()=>{g.lock("/qListObjectDef")}),[g]),y=d.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:b}=d.useContext(zS),x=d.useRef(),S=d.useRef(),[w]=lI(i,g,S),[E]=TL(g),[C]=d.useState((()=>sI()));if(d.useEffect((()=>{w&&p&&(w.isModal(g)||w.goModal("/qListObjectDef"))}),[w,p]),!g||!E||!b)return null;const k=!0===E.qListObject.qDimensionInfo.qLocked,L=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),a()},R=_O({layout:E,model:g,translator:b,selectionState:C}),O=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return cI(t,"qSelected",0)+cI(t,"qSelectedExcluded",0)+cI(t,"qLocked",0)+cI(t,"qLockedExcluded",0)>0}(E);return G.createElement(Ek,{open:p,onClose:L,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},G.createElement(hC,{container:!0,direction:"column",gap:0,ref:S},G.createElement(hC,{item:!0,container:!0,style:{padding:m.spacing(1)}},G.createElement(hC,{item:!0},k?G.createElement(hw,{onClick:y,disabled:!k,size:"large"},G.createElement(qL,{title:b.get("Listbox.Unlock")})):G.createElement(hw,{onClick:v,disabled:!O,size:"large"},G.createElement(jL,{title:b.get("Listbox.Lock")}))),G.createElement(hC,{item:!0,xs:!0}),G.createElement(hC,{item:!0},G.createElement(YO,{more:{enabled:!k,actions:R,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:L,onCancel:()=>L(0,"escapeKeyDown")}}))),G.createElement(hC,{item:!0,xs:!0},G.createElement("div",{ref:x}),G.createElement(rI,{visible:!0,model:g,listCount:f,selections:w,selectionState:C,keyboard:{enabled:!1},autoFocus:null==c||c}),G.createElement(LO,{model:g,layout:E,selections:w,selectionState:C,direction:"ltr",onSetListCount:e=>h(e)}))))}function dI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=d.useContext(zS),s=a||d.useRef(),c=vy(),[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(hC,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},G.createElement(Sw,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),G.createElement(Sw,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},w)),m.qLocked?k=G.createElement(hC,{item:!0},G.createElement(hw,{size:"large"},G.createElement(qL,null))):m.qOneAndOnlyOne||(k=G.createElement(hC,{item:!0},G.createElement(hw,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])},size:"large"},G.createElement(DL,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(hC,{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(uI,{alignTo:s,show:u,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),a?G.createElement(uI,{alignTo:s,show:!0,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var pI=e=>AL((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 fI={item:"".concat("MultiState","-item")},hI=Sy(hC)((e=>{let{theme:t}=e;return{["&.".concat(fI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function mI(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(zS),h=f.get("Selection.ClearAllStates"),m=()=>{s(-1),o()};let g=null;r||(g=G.createElement(G.Fragment,null,G.createElement(hC,{item:!0,xs:!0,zeroMinWidth:!0},G.createElement(oE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},G.createElement(Sw,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),G.createElement(hC,{item:!0},G.createElement("div",{style:{width:"12px"}})),G.createElement(hC,{item:!0},G.createElement(hw,{size:"large"},G.createElement(pI,null)))));const v=G.createElement(qC,{dense:!0},G.createElement(YC,{title:h,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},G.createElement(wS,{variant:"contained",fullWidth:!0},h)),t.states.map(((e,r)=>G.createElement(YC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},G.createElement(iE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},G.createElement(dI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),y=G.createElement(Ek,{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(hI,{container:!0,gap:0,className:fI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),p.current=e.currentTarget,i(!a))}},g,a&&y,l>-1&&G.createElement(uI,{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(uI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const gI="More",vI={item:"".concat(gI,"-item"),badge:"".concat(gI,"-badge")},yI=Sy(hC)((e=>{let{theme:t}=e;return{["&.".concat(vI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(vI.badge)]:{padding:t.spacing(0,1)}}}));function bI(e){let{items:t=[],api:n}=e;const r=vy(),[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(mI,{field:t[i],api:n,moreAlignTo:u,onClose:p}):G.createElement(dI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:p})),G.createElement(yI,{container:!0,gap:0,className:vI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},G.createElement(hC,{item:!0},G.createElement(iE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},G.createElement(Sw,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),G.createElement(hC,{item:!0},G.createElement(hw,{size:"large"},G.createElement(pI,null))),o&&G.createElement(Ek,{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(qC,{dense:!0},t.map(((e,t)=>G.createElement(YC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},G.createElement(iE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?G.createElement(mI,{field:e,api:n}):G.createElement(dI,{field:e,api:n}))))))),f)}function xI(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 SI(e){let{api:t,app:n}=e;const r=vy(),[o]=IL(n),[a]=TL(o),[i,l]=d.useState({items:[],more:[]}),[s]=WS(),[c,u]=ML(),[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&&xI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>xI(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(hC,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>G.createElement(hC,{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(mI,{field:e,api:t}):G.createElement(dI,{field:e,api:t})))),i.more.length>0&&G.createElement(hC,{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(bI,{items:i.more,api:t})))}var wI=e=>AL((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 EI=e=>AL((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 CI(e){const[t]=IL(e),[n]=TL(t),[r]=NL(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 kI(e){let{api:t,app:n}=e;const{translator:r}=d.useContext(zS),[o]=CI(n);return G.createElement(hC,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},G.createElement(hC,{item:!0},G.createElement(hw,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},G.createElement(wI,null))),G.createElement(hC,{item:!0},G.createElement(hw,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},G.createElement(EI,null))),G.createElement(hC,{item:!0},G.createElement(hw,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},G.createElement(qO,null))))}const LI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function RI(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function OI(){return LI.map(RI).join("")}function II(e){let{app:t}=e;const n=vy(),[r]=US(t);return r?G.createElement(hC,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},G.createElement(hC,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},G.createElement(kI,{api:r,app:t})),G.createElement(hC,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},G.createElement(SI,{api:r,app:t}))):null}function PI(e){let{element:t,app:n}=e;return Sp.createPortal(G.createElement(II,{app:n}),t,OI())}var _I=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},TI=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}}(),NI=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},MI=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")},AI=void 0;AI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var DI=null,qI=null,jI=AI.clearTimeout,FI=AI.setTimeout,$I=AI.cancelAnimationFrame||AI.mozCancelAnimationFrame||AI.webkitCancelAnimationFrame,BI=AI.requestAnimationFrame||AI.mozRequestAnimationFrame||AI.webkitRequestAnimationFrame;function WI(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__&&DI(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=AI.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==$I||null==BI?(DI=jI,qI=function(e){return FI(e,20)}):(DI=function(e){var t=zI(e,2),n=t[0],r=t[1];$I(n),jI(r)},qI=function(e){var t=BI((function(){jI(n),e()})),n=FI((function(){$I(t),e()}),20);return[t,n]});var HI=function(e){function t(){var e,n,r;_I(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=MI(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},MI(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),TI(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=WI(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:NI({},c,a)},!p&&t(u))}}]),t}(d.PureComponent);HI.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var UI=e=>AL((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 VI="ListBoxInline",GI={listBoxHeader:"".concat(VI,"-listBoxHeader"),screenReaderOnly:"".concat(VI,"-screenReaderOnly"),listboxWrapper:"".concat(VI,"-listboxWrapper")},KI=Sy(hC,{shouldForwardProp:e=>!["containerPadding"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o}=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(GI.listBoxHeader)]:{alignSelf:"center",display:"inline-flex",width:"calc(100% - ".concat(28,"px)")},["& .".concat(GI.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(GI.listboxWrapper)]:{padding:o}}})),ZI=Sy(Sw)((e=>{var t,n,r,o,a,i,l,s,c;let{theme:u}=e;return{color:null===(t=u.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=u.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=u.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily}}));const XI=G.memo((function(e){var t;let{options:n,layout:r}=e;const{app:o,direction:a,frequencyMode:i,checkboxes:s,search:c=!0,focusSearch:u=!1,rangeSelect:p=!0,model:f,selections:h,update:m,fetchStart:g,selectDisabled:v=(()=>!1),postProcessPages:y,calculatePagesHeight:b,showGray:x=!0,scrollState:S}=n;let{toolbar:w=!0}=n;const E=vy(),C=d.useCallback((()=>{f.unlock("/qListObjectDef")}),[f]),{translator:k,keyboardNavigation:L,themeApi:R,constraints:O}=d.useContext(zS);E.listBox=(e=>{const t=t=>e.getStyle("object","","listBox.".concat(t));return{backgroundColor:t("backgroundColor"),title:{main:{color:t("title.main.color"),fontSize:t("title.main.fontSize"),fontFamily:t("title.main.fontFamily")}},content:{color:t("content.color"),fontSize:t("content.fontSize"),fontFamily:t("content.fontFamily")}}})(R);const I=d.useRef(),P=d.useRef(),[_,T]=(()=>{const[e,t]=d.useState({}),n=d.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[N,M]=d.useState(!1),[z,A]=d.useState(!1),[D,q]=d.useState(!1),[j,F]=d.useState(!1),[$,B]=d.useState({down:0,up:0,scrollPosition:""}),[W,H]=d.useState({start:0,stop:0}),[U]=US(o),[V]=d.useState((()=>sI())),{handleKeyDown:K,handleOnMouseEnter:Z,handleOnMouseLeave:X}=JL({setKeyboardActive:q,hovering:j,setHovering:F,updateKeyScroll:e=>B((t=>l(l({},t),e))),containerRef:P,currentScrollIndex:W,app:o,appSelections:U,constraints:O}),Q={enabled:L,active:D};if(void 0!==(null==r?void 0:r.toolbar)&&(w=r.toolbar),w=w&&""!==(null==r?void 0:r.title),d.useEffect((()=>{const e=()=>{M(!0),"toggle"===c&&!1===w&&A(!0)},t=()=>{M(!1),"toggle"===c&&A(!1)};return h&&(h.isModal()||(h.on("deactivated",t),h.on("activated",e)),M(h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("deactivated",e),h.removeListener("activated",t))}}),[h,w]),d.useEffect((()=>{if(_&&_.current&&(c&&u||"toggle"===c&&z)){const e=_.current.querySelector("input");e&&e.focus()}}),[_&&_.current,z,c,u]),!f||!r||!k)return null;const Y=!0===r.qListObject.qDimensionInfo.qLocked,J="H"===r.qListObject.qDimensionInfo.qGrouping,ee=w?_O({layout:r,model:f,translator:k,selectionState:V}):[],te=(!0===c||"toggle"===c&&z)&&!v(),{layoutOptions:ne={}}=r,re=null!==(t=ne.dense)&&void 0!==t&&t,oe=49+(te?re?27:40:0)+(re?39:49),{wildCardSearch:ae,searchEnabled:ie}=r,le=te&&"toggle"===c,se=!1!==ie&&"toggle"===c&&!(null!=O&&O.active),ce=Y||se,ue=ce||J,de=(ce?28:0)+(J?24:0),pe=ce?0:7,fe=9-(ue?7:0);let he;return"grid"===(null==ne?void 0:ne.dataLayout)&&(he="row"===ne.layoutOrder?"2px 4px":"2px 6px 2px 4px"),G.createElement(KI,{className:"listbox-container",container:!0,tabIndex:Q.enabled&&!Q.active?0:-1,direction:"column",gap:0,containerPadding:he,style:{height:"100%",minHeight:"".concat(oe,"px"),flexFlow:"column nowrap"},onKeyDown:K,onMouseEnter:Z,onMouseLeave:X,ref:P},w&&G.createElement(hC,{item:!0,container:!0,style:{padding:E.spacing(1),paddingLeft:"".concat(fe,"px")},wrap:"nowrap"},G.createElement(hC,{item:!0,container:!0,height:32,wrap:"nowrap"},ue&&G.createElement(hC,{item:!0,sx:{display:"flex",alignItems:"center",width:de}},Y?G.createElement(hw,{tabIndex:-1,onClick:C,disabled:v(),size:"large"},G.createElement(qL,{title:k.get("Listbox.Unlock"),style:{fontSize:"12px"}})):se&&G.createElement(hw,{onClick:()=>{A(!z)},tabIndex:-1,title:k.get("Listbox.Search"),size:"large","data-testid":"search-toggle-btn"},G.createElement(JO,{style:{fontSize:"12px"}})),J&&G.createElement(hw,{tabIndex:-1,title:k.get("Listbox.DrillDown"),size:"large",sx:{paddingLeft:"".concat(pe,"px")}},G.createElement(UI,{style:{fontSize:"12px"}}))),G.createElement(hC,{item:!0,className:GI.listBoxHeader},G.createElement(ZI,{variant:"h6",noWrap:!0,title:r.title},r.title))),G.createElement(hC,{item:!0,xs:!0}),G.createElement(hC,{item:!0},G.createElement(YO,{more:{enabled:!Y,actions:ee,alignTo:I,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:N,api:h,onConfirm:()=>{},onCancel:()=>{}}}))),G.createElement(hC,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"".concat(oe,"px")},role:"region","aria-label":k.get("Listbox.ResultFilterLabel")},G.createElement("div",{ref:I}),G.createElement(hC,{item:!0,ref:T},G.createElement("div",{className:GI.screenReaderOnly},k.get("Listbox.Search.ScreenReaderInstructions")),G.createElement(rI,{selections:h,selectionState:V,model:f,dense:re,keyboard:Q,visible:te,search:c,autoFocus:le,searchContainerRef:T,wildCardSearch:ae,searchEnabled:ie})),G.createElement(hC,{item:!0,xs:!0,className:GI.listboxWrapper},G.createElement("div",{className:GI.screenReaderOnly},k.get("Listbox.ScreenReaderInstructions")),G.createElement(HI,null,(e=>{let{height:t,width:n}=e;return G.createElement(LO,{model:f,constraints:O,layout:r,selections:h,selectionState:V,direction:a,frequencyMode:i,rangeSelect:p,checkboxes:s,height:t,width:n,update:m,fetchStart:g,postProcessPages:y,calculatePagesHeight:b,selectDisabled:v,keyboard:Q,showGray:x,scrollState:S,keyScroll:{state:$,reset:()=>B({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:W,set:H}})})))))}));function QI(e){let{options:t={}}=e;const{model:n}=t,[r]=TL(n);return G.createElement(XI,{options:t,layout:r})}const YI=["__DO_NOT_USE__"],JI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=u(e,YI),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 eP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i}=e;const{isExistingObject:s,hasExternalSelectionsApi:c}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:i}),[u,p]=d.useState(0);d.useEffect((()=>{if(u)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(u+1)}),[s,c]);const f=s?function(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=d.useState(),[i]=kL(),{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),l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[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=OI());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),"N"!==x||S){const e=r.qLibraryId?i:k;C.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}const[L]=RL(C,s?null:n,k,o);return d.useEffect((()=>{L&&p(L)}),[L]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),h=d.useRef(a),m=c?i.selectionsApi:lI(t,f,[h,".njs-action-toolbar-more"],i)[0],g=d.useMemo((()=>l(l({},i),{},{selections:m,model:f,app:t})),[i,m,f,t]);return m&&f?G.createElement(QI,{options:g}):null}function tP(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={}}=e;return Sp.createPortal(G.createElement(eP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i}),t,OI())}const nP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},rP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},nP);return Ve(!0,t,e),t};function oP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=d.useState(!!a.show);return G.createElement(uI,{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 aP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function iP(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 lP(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 s=n;for(let e=0;e<i.length;e++){const t=i[e];s=t?s[t]:s}const c=function(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||OI(),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),aP(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 iP(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||OI(),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),aP(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];iP(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}({dc:s,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?c.addMeasure(e):c.addDimension(e)}))}var sP=(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},cP=(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]},uP=e=>0===Object.keys(e).length&&e.constructor===Object;var dP={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 pP=2**53-1;function fP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function hP(e,t){const n=Ve(!0,{},t,e);return sP(n,"qOtherTotalSpec.qOtherCounted")||cP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),sP(n,"qOtherTotalSpec.qOtherLimit")||cP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function mP(e,t){return Ve(!0,{},t,e)}function gP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var vP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===sP(e,t)&&cP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:fP,importCommonProperties:function(e,t,n){const r="masterobject"===sP(t,"properties.qInfo.qType")?"masterobject":sP(n,"qInfo.qType");cP(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:hP,createDefaultMeasure:mP,resolveValue:gP,getHypercubePath:function(e){const t=sP(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?(dP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,dP.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?cP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||fP(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=gP(a.max,r.dimensions.length,pP),l=gP(a.min,r.dimensions.length,0);return{maxDimensions:gP(o.max,i,pP),minDimensions:gP(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(hP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(hP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(hP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(hP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(hP(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(mP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(mP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(mP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(mP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(mP(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=sP(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=sP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var yP={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=sP(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();dP.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&&(vP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!uP(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=vP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=sP(n,a||"").qHyperCubeDef,c=sP(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=vP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=vP.getDefaultDimension(),defaultMeasure:m=vP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,vP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&vP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),vP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),vP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),vP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),vP.copyPropertyIfExist("qMaxStackedCells",s,c),vP.copyPropertyIfExist("qNoOfLeftDims",s,c),vP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),vP.copyPropertyOrSetDefault("qMode",s,c,"S"),vP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),vP.copyPropertyOrSetDefault("qSortbyYValue",s,c),vP.copyPropertyOrSetDefault("qIndentMode",s,c),vP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),vP.importCommonProperties(l,t,n),vP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),vP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const bP=e=>sP(e,"data.targets.0.propertyPath"),xP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return yP.exportProperties})(bP(e))},SP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return yP.importProperties})(bP(e))},wP=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),i=r.current.getQae(),s=xP(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 SP(u)({exportFormat:s({propertyTree:a,hypercubePath:vP.getHypercubePath(i)}),initialProperties:l({qInfo:{qType:o},visualization:o},sP(u,"properties.initial",{})),dataDefinition:sP(u,"data.targets.0.",{}),hypercubePath:vP.getHypercubePath(u)})},EP={hypercube:yP};var CP=e=>AL((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 kP(e){let{d:t}=e;const n=vy();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(Sw,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},G.createElement(kC,null,t.missing||t.error?G.createElement(CP,{style:a}):G.createElement(QL,{style:a})));return G.createElement(hC,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},G.createElement(hC,{item:!0},i),G.createElement(hC,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},G.createElement(Sw,{noWrap:!0,component:"p"},G.createElement(Sw,{component:"span",variant:"subtitle2",color:r},t.description),G.createElement(Sw,{component:"span"}," "),G.createElement(Sw,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function LP(e){let{data:t}=e;const n=vy();return G.createElement(hC,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>G.createElement(kP,{d:e,key:t})));return r.length>0&&G.createElement(hC,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},G.createElement(Sw,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function RP(e){let{title:t="Error",message:n="",data:r=[]}=e;return G.createElement(hC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},G.createElement(hC,{item:!0},G.createElement(CP,{style:{fontSize:"38px"}})),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"h6",align:"center","data-tid":"error-title"},t)),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),G.createElement(LP,{data:r}))}const OP=["size"],IP="Progress",PP={root:"".concat(IP,"-root"),front:"".concat(IP,"-front"),back:"".concat(IP,"-back")},_P=Sy("div")((e=>{let{theme:t}=e;return{["&.".concat(PP.root)]:{position:"relative",display:"inline-block"},["& .".concat(PP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(PP.back)]:{color:t.palette.divider}}})),TP={small:16,medium:32,large:64,xlarge:128};function NP(e){let{size:t="medium"}=e,n=u(e,OP);const r=TP[t];return G.createElement(_P,{className:PP.root},G.createElement(jE,c({variant:"determinate",value:100,className:PP.back,size:r,thickness:3},n)),G.createElement(jE,c({variant:"indeterminate",disableShrink:!0,className:PP.front,size:r,thickness:3},n)))}const MP=["cancel","translator"],zP=["retry","translator"],AP={stripes:"".concat("LongRunningQuery","-stripes")},DP=Sy(hC)((()=>({["& .".concat(AP.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 qP(e){let{cancel:t,translator:n}=e,r=u(e,MP);return G.createElement(G.Fragment,null,G.createElement(DP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},G.createElement(hC,{item:!0},G.createElement(NP,null)),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),G.createElement(hC,c({item:!0},r),G.createElement(wS,{variant:"contained",onClick:t},n.get("Cancel"))))}function jP(e){let{retry:t,translator:n}=e,r=u(e,zP);return G.createElement(G.Fragment,null,G.createElement(hC,{item:!0},G.createElement(CP,{style:{fontSize:"38px"}})),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),G.createElement(hC,{item:!0},G.createElement(wS,c({variant:"contained",onClick:t},r),n.get("Retry"))))}function FP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=d.useContext(zS);return G.createElement(hC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:AP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&G.createElement(qP,{cancel:r.cancel,translator:o,className:AP.cancel}),n&&G.createElement(jP,{retry:r.retry,translator:o,className:AP.retry}))}function $P(){return G.createElement(hC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},G.createElement(NP,{size:"large"}))}const BP="Header",WP={containerStyle:"".concat(BP,"-containerStyle"),containerTitleStyle:"".concat(BP,"-containerTitleStyle")},HP=Sy(hC)((e=>{let{theme:t}=e;return{["&.".concat(WP.containerStyle)]:{flexGrow:0},["&.".concat(WP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),UP="njs-cell-title",VP="njs-cell-sub-title";function GP(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a}=e;const i=t.showTitles&&!!t.title,l=t.showTitles&&!!t.subtitle,s=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[c,u]=d.useState([]),[p,f]=ML(),[h,m]=d.useState(!1);d.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{u([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),d.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=i||l,v=[WP.containerStyle,...g?[WP.containerTitleStyle]:[]],y=(o||s)&&(h||!g),b=g&&!y&&!h,x=G.createElement(YO,{show:b,selections:{show:s,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:c,popover:{show:y,anchorEl:r},focusHandler:a});return G.createElement(HP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},G.createElement(hC,{item:!0,zeroMinWidth:!0,xs:!0},G.createElement(hC,{container:!0,wrap:"nowrap",direction:"column"},i&&G.createElement(Sw,{variant:"h6",noWrap:!0,className:UP},t.title),l&&G.createElement(Sw,{variant:"body2",noWrap:!0,className:VP},t.subtitle))),G.createElement(hC,{item:!0},x))}const KP={itemStyle:"".concat("Footer","-itemStyle")},ZP=Sy(hC)((e=>{let{theme:t}=e;return{["& .".concat(KP.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),XP="njs-cell-footer";function QP(e){let{layout:t}=e;return t&&t.showTitles&&t.footnote?G.createElement(ZP,{container:!0},G.createElement(hC,{item:!0,className:KP.itemStyle},G.createElement(Sw,{noWrap:!0,variant:"body2",className:XP},t.footnote))):null}class YP{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 JP="njs-viz";function e_(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(zS),[h]=d.useState((()=>new YP)),[m,g]=d.useState(!1),[v,y]=d.useState(0),[b,x,S]=ML(),[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:JP},G.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const t_={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},n_={"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 r_(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}const o_=(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=r_(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=n_[e.bgImage.position]),n}(e),l=function(e){var t;let n=t_.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=t_[e.bgImage.sizing]),n}(e);return a?{url:a,pos:i,size:l}:void 0}},a_=(e,t)=>{const n=null==e?void 0:e.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},i_="njs-cell",l_=(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 s_(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($P,null):null}const c_=e=>!e.qError||7005===e.qError.qErrorCode,u_=(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}})),d_=e=>e&&(Array.isArray(e)?e:[e])||[],p_=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:u_(o,d_(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:u_(a,d_(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},f_=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=d_(f.qDimensionInfo||f.qItems).filter(c_),m=d_(f.qMeasureInfo).filter(c_);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=p_(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}]},h_=d.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c}=e;const{app:u,types:p}=n,{nebbie:f}=n.public,{disableCellPadding:h=!1}=n.context||{},{theme:m,translator:g,language:v,keyboardNavigation:y}=d.useContext(zS),b=vy(),[x,S,w]=ML(),[E,C]=d.useReducer(l_,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=i)?{title:k.message}:null,sn:null,visualization:null});var k;const[L,{validating:R,canCancel:O,canRetry:I},P]=TL(r),[_]=NL(u),[T,N,M]=ML(),[z,A]=d.useState(o),[D,q]=d.useState(a),j="njs-cell-".concat(c),[F]=lI(u,r,["#".concat(j),".njs-action-toolbar-popover"]),[$,B]=d.useState(!1),W=d.useRef({enter:null,leave:null}),[H,U]=d.useState(void 0),[V,K]=d.useState(void 0),Z=d.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});d.useEffect((()=>{oI(Z.current)}),[]),d.useEffect((()=>{const e=null!=L&&L.components?L.components.find((e=>"general"===e.key)):null;U(a_(e,n.public.theme)),K(o_(e,n.app))}),[L,n.public.theme,n.app,m]),Z.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&M&&M.focus()},Z.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};d.useEffect((()=>{if(i||!_||!L)return;if(E.visualization===L.visualization&&E.sn)return void(async e=>{const[t,n]=await f_(g,L,e.generator.qae.data,r);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:L,model:r})})(E.sn);const e=p.getSupportedVersion(L.visualization,L.version);if(e)return(async(e,t)=>{C({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}=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})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:C,types:p,visualization:e,version:t,model:r,app:u,selections:F,nebbie:f,focusHandler:Z.current});n&&(C({type:"LOADED",sn:n,visualization:e}),s())})(L.visualization,e),()=>{};C({type:"ERROR",error:{title:"Could not find a version of '".concat(L.visualization,"' that supports current object version. Did you forget to register ").concat(L.visualization,"?")}})}),[p,E.sn,r,F,L,_,v]),d.useEffect((()=>{if(!R)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[R]),d.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:A,setSnPlugins:q,async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(L));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:g.language(),theme:b.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)}})),[E.sn,N,S,L,b.name,_]);let X=null;return E.loading&&!E.longRunningQuery?X=G.createElement(s_,null):E.error?X=G.createElement(RP,E.error):E.loaded&&(X=G.createElement(e_,{key:L.visualization,sn:E.sn,halo:n,snOptions:z,snPlugins:D,layout:L,appLayout:_})),G.createElement(sw,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:H||"unset",backgroundImage:V&&V.url?"url(".concat(V.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:V&&V.size,backgroundPosition:V&&V.pos},elevation:0,square:!0,className:i_,ref:x,id:j,onMouseEnter:()=>{W.current.leave&&clearTimeout(W.current.leave),W.enter||(W.current.enter=setTimeout((()=>{B(!0),W.current.enter=null}),250))},onMouseLeave:()=>{W.current.enter&&clearTimeout(W.current.enter),W.current.leave||(W.current.leave=setTimeout((()=>{B(!1),W.current.leave=null}),750))}},G.createElement(hC,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},h?{}:{padding:b.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&L&&E.sn&&G.createElement(GP,{layout:L,sn:E.sn,anchorEl:w,hovering:$,focusHandler:Z.current}," "),G.createElement(hC,{tabIndex:y?0:-1,onKeyDown:y?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:T},X),G.createElement(QP,{layout:L})),E.longRunningQuery&&G.createElement(FP,{canCancel:O,canRetry:I,api:P}))}));function m_(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=OI(),d=Sp.createPortal(G.createElement(h_,{ref:c,halo:t,model:r,currentId:u,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,u),p=()=>{s.remove(d),r.removeListener("closed",p)};return r.on("closed",p),s.add(d),s.addCell(u,c),[p,c]}function g_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function v_(e,t){return g_(e)&&g_(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function y_(){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)?v_(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...y_("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function b_(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 x_=()=>{};function S_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=x_,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=>{b_(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=x_},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await wP({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},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=m_({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=y_("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return h}async function w_(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=S_({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 E_(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&&lP({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);LL.set(p.id,p);const f=(e=>{const t=CL({type:"SET",value:e});return()=>{t(),LL.clear(e.id)}})(p);return w_(p,{options:l,plugins:s,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),f()}))}const C_="njs-sheet";function k_(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=TL(t),{theme:c}=d.useContext(zS),[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=xL.get(i);l||(l=t.app.getObject(n),xL.set(i,l));const s=await l;return LL.set(i,s),w_(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:OI(),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(h_,{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(a_(e,n.public.theme)),g(o_(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:C_,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 L_(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=Sp.createPortal(G.createElement(k_,{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 R_=()=>{};function O_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=R_,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=>{b_(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=R_},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=L_({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=y_("/",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 I_(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=xL.get(i);l||(l=t.app.getObject(n),xL.set(i,l));const s=await l;return LL.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=O_({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):w_(s,{options:r,plugins:o,element:a},t)}function P_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const __=Ve.bind(null,!0),T_={},{isArray:N_}=Array;function M_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function z_(e){return void 0===e}function A_(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D_(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]=z_(e[r||t])?a:e[t],e=e[r||t]})),e}function q_(e,t){let n=!0;if(M_(e)&&M_(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{q_(e[r],t[r])||(n=!1)})),n);if(N_(e)&&N_(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!q_(e[n],t[n]))return!1;return!0}return e===t}T_.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?__({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);q_(a,i)||A_(t,o)||(z_(i)?r.push({op:"add",path:l,value:a}):M_(a)&&M_(i)?r=r.concat(T_.generate(i,a,l)):N_(a)&&N_(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]&&z_(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(q_(t,o))return r;if(!z_(t[0])&&z_(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(T_.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=>{z_(t[o])&&!A_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},T_.apply=function(e,t){t.forEach((t=>{let n=D_(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(N_(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(N_(o)&&N_(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(M_(o)&&M_(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!A_(i,e)&&delete i[e]})),__(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=D_(e,t.from);N_(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(N_(n)?n.splice(+r,1):delete n[r]);var i}))},T_.clone=function(e){return __({},e)},T_.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},T_.updateObject=function(e,t){Object.keys(e).length?T_.apply(e,T_.generate(e,t)):__(e,t)};const j_=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 F_,$_;function B_(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 W_(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 H_(e){V_(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 U_(e){if(e.__hooks.obsolete)return Promise.resolve();$_=-1,F_=e,F_.__hooks.initiated&&F_.__hooks.list.length;try{F_.fn.call(null)}catch(e){console.error(e)}F_.__hooks.initiated=!0;const t=F_.__hooks;return X_(F_),$_=void 0,F_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){V_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){V_(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 V_(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 G_(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 K_(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 Z_(e){return e.__hooks.imperativeHandle}function X_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Q_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,X_(e))}function Y_(e){if(void 0===F_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=F_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function J_(e){Y_(++$_);return F_.context[e]}function eT(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function tT(e){return{__hooked:!0,fn:e,initiate:W_,run:U_,teardown:H_,runSnaps:G_,runMenu:K_,focus:lT,blur:sT,observeActions:Q_,getImperativeHandle:Z_,updateRectOnNextRun:eT}}function nT(e){const t=Y_(++$_);if(!t.value){t.component=F_;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,U_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function rT(e,t){const n=Y_(++$_);B_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===F_.__hooks.pendingEffects.indexOf(n)&&F_.__hooks.pendingEffects.push(n))}function oT(e,t){const n=Y_(++$_);B_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],F_.__hooks.pendingLayoutEffects.push(n))}function aT(e,t){const n=Y_(++$_);return B_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function iT(){return J_("element")}function lT(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 sT(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 cT={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},uT=Object.keys(cT);function dT(e,t){const n=l({},cT);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!==uT.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=j_(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 pT(e,t,n){"function"==typeof e.component&&(e.component=tT(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,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):dT(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=T_.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));T_.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=T_.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 fT=()=>{};function hT(e,t){return void 0===e?()=>t:()=>e}function mT(e){const t=e||{};return{min:"function"==typeof t.min?t.min:hT(t.min,0),max:"function"==typeof t.max?t.max:hT(t.max,1e3),added:t.added||t.add||fT,description:t.description||fT,moved:t.moved||t.move||fT,removed:t.removed||t.remove||fT,replaced:t.replaced||t.replace||fT,isDefined:()=>!!e}}function gT(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:mT(e.dimensions),measures:mT(e.measures)}}function vT(){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(gT)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function yT(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:vT(n.qae),component:n.component||{},create:e=>pT(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var bT={},xT={get exports(){return bT},set exports(e){bT=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)}}(xT,bT);const ST={};async function wT(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!ST[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);ST[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 ST[a]}function ET(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)||bT.satisfies(e,a.deps.properties),supernova:()=>wT(i.name,i.version,t,o.load).then((e=>(n=n||yT(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 CT(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=ET(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(ST).forEach((t=>{t.split("__")[0]===e&&(ST[t]=void 0)}))}(e)}}}const kT={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()))},LT={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:kT};LT.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1};const RT=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)},OT=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))},IT=(e,t)=>({context:RT(e.context,t.context),load:t.load||e.load,snapshot:l({},t.snapshot||e.snapshot),types:OT(e.types,t.types),themes:OT(e.themes,t.themes),flags:RT(e.flags,t.flags),anything:RT(e.anything,t.anything)});var PT=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]=GS({app:e,context:a}),s=ut({themes:t.themes,root:i});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:P_(t.flags),deviceType:dt(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=CT({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?I_(e,u):E_(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=PI({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,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"));this._instance=tP({element:a,app:e,fieldIdentifier:t,qId:n,options:JI(l({onSelectionActivated:()=>o.emit("selectionActivated"),onSelectionDeactivated:()=>o.emit("selectionDeactivated")},s)),stateName:s.stateName||"$"}),i.add(this._instance)},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return oI(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=rP(l({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=G.createElement(oP,{element:t,key:OI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,oI(m),m}return r.createConfiguration=n=>e(IT(t,n)),r.config=t,r}(LT);function _T(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const TT=globalThis.crypto||{getRandomValues:()=>123456};function NT(){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^TT.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 MT=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},zT=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=MT(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},AT=["id","session"],DT=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function qT(e){return!DT.includes(e)}function jT(e){const t=MT(e.getLayout);return t.qInfo&&t.qInfo.qId}function FT(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=jT(e);const{delay:r}=t,{id:o,session:a}=e,i=u(e,AT);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:MT(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:zT(o,{async:qT(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function $T(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!jT(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function BT(){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($T);const n=FT(e,t);return async e=>Promise.resolve(n[e])}function WT(){return()=>Promise.resolve({id:"app-layout"})}const HT={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new _T,r=new NT,o=new BT(e,t),a=new WT,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]:{})}},UT={generator:yT,hook:tT,theme:st,locale:Q};e.EnigmaMocker=HT,e.__DO_NOT_USE__=UT,e.conversion=EP,e.embed=PT,e.onContextMenu=function(e){const t=Y_(++$_);t.value||(t.value=1,F_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=Y_(++$_);t.value||(t.value=1,F_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=nT({action(){n._config.action.call(null)}});return n.component||(n.component=F_,F_.__hooks.actions.list.push(n)),aT((()=>{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=J_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return J_("appLayout")},e.useConstraints=function(){return J_("constraints")},e.useDeviceType=function(){return J_("deviceType")},e.useEffect=rT,e.useElement=iT,e.useEmbed=function(){return J_("nebbie")},e.useGlobal=function(){const e=J_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=Y_(++$_);if(n.imperative||(n.imperative=!0),B_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],F_.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=J_("keyboardNavigation"),t=J_("focusHandler");if(!F_.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(sT(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(F_);F_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),lT(this))}.bind(F_);F_.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(F_);F_.__hooks.accessibility.focusSelectionFunction=r}const n=F_.__hooks.accessibility.focusFunction,r=F_.__hooks.accessibility.exitFunction,o=F_.__hooks.accessibility.focusSelectionFunction,[a,i]=nT({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return F_.__hooks.accessibility.setter=i,F_.__hooks.accessibility.enabled=e,rT((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return J_("layout")},e.useMemo=aT,e.useModel=function(){const e=J_("model");return e&&e.session?e:void 0},e.useOptions=function(){return J_("options")},e.usePlugins=function(){return J_("plugins")},e.usePromise=function(e,t){const[n,r]=nT((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Y_(++$_);return o.component||(o.component=F_),oT((()=>{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=iT(),t=F_.__hooks.resizer,[n,r]=nT((()=>{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()),oT((()=>{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(){Y_(++$_);const e=F_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return J_("selections")},e.useStaleLayout=function(){const e=J_("layout"),[t]=nT({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=nT,e.useTheme=function(){return J_("theme")},e.useTranslator=function(){return J_("translator")}}));
|
|
134
|
+
`),ME))),qE=d.forwardRef((function(e,t){const n=yy({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=Rf(n,LE),p=Lf({},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 xf({root:["root",n,`color${Gp(r)}`],svg:["svg"],circle:["circle",`circle${Gp(n)}`,o&&"circleDisableShrink"]},kE,t)})(p),h={},m={},g={};if("determinate"===u){const e=2*Math.PI*((TE-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 Gm.jsx(zE,Lf({className:Cy(f.root,r),style:Lf({width:i,height:i},m,l),ownerState:p,ref:t,role:"progressbar"},g,d,{children:Gm.jsx(AE,{className:f.svg,ownerState:p,viewBox:"22 22 44 44",children:Gm.jsx(DE,{className:f.circle,style:h,ownerState:p,cx:TE,cy:TE,r:(TE-s)/2,fill:"none",strokeWidth:s})})}))}));var jE=qE;const FE=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","slotProps","slots","theme"],$E=Sy("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})=>Lf({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),BE=Sy(Qw,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),WE=d.forwardRef((function(e,t){var n,r,o,a,i,l;const s=yy({name:"MuiModal",props:e}),{BackdropComponent:c=BE,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=Rf(s,FE),[_,T]=d.useState(!0),N={closeAfterTransition:h,disableAutoFocus:b,disableEnforceFocus:x,disableEscapeKeyDown:S,disablePortal:w,disableRestoreFocus:E,disableScrollLock:C,hideBackdrop:k,keepMounted:L},M=Lf({},s,N,{exited:_}),z=null!=(n=null!=(r=null==O?void 0:O.root)?r:v.Root)?n:$E,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,q=null!=(l=null==R?void 0:R.backdrop)?l:y.backdrop;return Gm.jsx(bx,Lf({slots:{root:z,backdrop:A},slotProps:{root:()=>Lf({},Oy(D,M),!Ly(z)&&{as:g,theme:I},{className:Cy(f,null==D?void 0:D.className,null==p?void 0:p.root,!M.open&&M.exited&&(null==p?void 0:p.hidden))}),backdrop:()=>Lf({},u,Oy(q,M),{className:Cy(null==q?void 0:q.className,null==p?void 0:p.backdrop)})},onTransitionEnter:()=>T(!1),onTransitionExited:()=>T(!0),ref:t},P,N,{children:m}))}));var HE=WE;function UE(e){return Cf("MuiDivider",e)}var VE=kf("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const GE=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],KE=Sy("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})=>Lf({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)`:Av(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})=>Lf({},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})=>Lf({},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})=>Lf({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),ZE=Sy("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>Lf({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)`}))),XE=d.forwardRef((function(e,t){const n=yy({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=Rf(n,GE),h=Lf({},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 xf({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"]},UE,r)})(h);return Gm.jsx(KE,Lf({as:i,className:Cy(m.root,a),role:u,ref:t,ownerState:h},f,{children:o?Gm.jsx(ZE,{className:m.wrapper,ownerState:h,children:o}):null}))}));var QE=XE;function YE(e){return Cf("MuiFormControlLabel",e)}var JE=kf("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]);const eC=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","slotProps","value"],tC=Sy("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${JE.label}`]:t.label},t.root,t[`labelPlacement${Gp(n.labelPlacement)}`]]}})((({theme:e,ownerState:t})=>Lf({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${JE.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},{[`& .${JE.label}`]:{[`&.${JE.disabled}`]:{color:(e.vars||e).palette.text.disabled}}}))),nC=d.forwardRef((function(e,t){var n;const r=yy({props:e,name:"MuiFormControlLabel"}),{className:o,componentsProps:a={},control:i,disabled:l,disableTypography:s,label:c,labelPlacement:u="end",slotProps:p={}}=r,f=Rf(r,eC),h=Ow();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=Lw({props:r,muiFormControl:h,states:["error"]}),y=Lf({},r,{disabled:m,labelPlacement:u,error:v.error}),b=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o}=e;return xf({root:["root",n&&"disabled",`labelPlacement${Gp(r)}`,o&&"error"],label:["label",n&&"disabled"]},YE,t)})(y),x=null!=(n=p.typography)?n:a.typography;let S=c;return null==S||S.type===Sw||s||(S=Gm.jsx(Sw,Lf({component:"span"},x,{className:Cy(b.label,null==x?void 0:x.className),children:S}))),Gm.jsxs(tC,Lf({className:Cy(b.root,o),ownerState:y,ref:t},f,{children:[d.cloneElement(i,g),S]}))}));var rC=nC;var oC=d.createContext();function aC(e){return Cf("MuiGrid",e)}const iC=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],lC=kf("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}`)),...iC.map((e=>`grid-xs-${e}`)),...iC.map((e=>`grid-sm-${e}`)),...iC.map((e=>`grid-md-${e}`)),...iC.map((e=>`grid-lg-${e}`)),...iC.map((e=>`grid-xl-${e}`))]),sC=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function cC(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function uC({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 dC=Sy("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})=>Lf({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 dg({theme:e},pg({values:t.direction,breakpoints:e.breakpoints.values}),(e=>{const t={flexDirection:e};return 0===e.indexOf("column")&&(t[`& > .${lC.item}`]={maxWidth:"none"}),t}))}),(function({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let o={};if(n&&0!==r){const t=pg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=uC({breakpoints:e.breakpoints.values,values:t})),o=dg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{marginTop:`-${cC(a)}`,[`& > .${lC.item}`]:{paddingTop:cC(a)}}:null!=(o=n)&&o.includes(r)?{}:{marginTop:0,[`& > .${lC.item}`]:{paddingTop:0}}}))}return o}),(function({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let o={};if(n&&0!==r){const t=pg({values:r,breakpoints:e.breakpoints.values});let n;"object"==typeof t&&(n=uC({breakpoints:e.breakpoints.values,values:t})),o=dg({theme:e},t,((t,r)=>{var o;const a=e.spacing(t);return"0px"!==a?{width:`calc(100% + ${cC(a)})`,marginLeft:`-${cC(a)}`,[`& > .${lC.item}`]:{paddingLeft:cC(a)}}:null!=(o=n)&&o.includes(r)?{}:{width:"100%",marginLeft:0,[`& > .${lC.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=pg({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} + ${cC(n)})`;c={flexBasis:e,maxWidth:e}}}a=Lf({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 pC=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 xf({root:["root",n&&"container",o&&"item",l&&"zeroMinWidth",...c,"row"!==r&&`direction-xs-${String(r)}`,"wrap"!==i&&`wrap-xs-${String(i)}`,...u]},aC,t)},fC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiGrid"}),{breakpoints:r}=vy(),o=ov(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=Rf(o,sC),y=f||h,b=l||h,x=d.useContext(oC),S=c?i||12:x,w={},E=Lf({},v);r.keys.forEach((e=>{null!=v[e]&&(w[e]=v[e],delete E[e])}));const C=Lf({},o,{columns:S,container:c,direction:u,item:p,rowSpacing:y,columnSpacing:b,wrap:m,zeroMinWidth:g,spacing:h},w,{breakpoints:r.keys}),k=pC(C);return Gm.jsx(oC.Provider,{value:S,children:Gm.jsx(dC,Lf({ownerState:C,className:Cy(k.root,a),as:s,ref:t},E))})}));var hC=fC;const mC=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function gC(e){return`scale(${e}, ${e**2})`}const vC={entering:{opacity:1,transform:gC(1)},entered:{opacity:1,transform:"none"}},yC="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),bC=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=jx}=e,v=Rf(e,mC),y=d.useRef(),b=d.useRef(),x=vy(),S=d.useRef(null),w=lf(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)=>{nw(e);const{duration:n,delay:r,easing:o}=rw({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:yC?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}=rw({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:yC?o:.666*o,delay:yC?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=gC(.75),u&&u(e)})),I=E(p);return d.useEffect((()=>()=>{clearTimeout(y.current)}),[]),Gm.jsx(g,Lf({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,Lf({style:Lf({opacity:0,transform:gC(.75),visibility:"exited"!==e||i?void 0:"hidden"},vC[e],h,o.props.style),ref:w},t))}))}));bC.muiSupportAuto=!0;var xC=bC;function SC(e){return Cf("MuiIcon",e)}kf("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const wC=["baseClassName","className","color","component","fontSize"],EC=Sy("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Gp(n.color)}`],t[`fontSize${Gp(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]}))),CC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:a="inherit",component:i="span",fontSize:l="medium"}=n,s=Rf(n,wC),c=Lf({},n,{baseClassName:r,color:a,component:i,fontSize:l}),u=(e=>{const{color:t,fontSize:n,classes:r}=e;return xf({root:["root","inherit"!==t&&`color${Gp(t)}`,`fontSize${Gp(n)}`]},SC,r)})(c);return Gm.jsx(EC,Lf({as:i,className:Cy(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t},s))}));CC.muiName="Icon";var kC=CC;function LC(e){return Cf("MuiInputAdornment",e)}var RC,OC=kf("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);const IC=["children","className","component","disablePointerEvents","disableTypography","position","variant"],PC=Sy("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Gp(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})((({theme:e,ownerState:t})=>Lf({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},"filled"===t.variant&&{[`&.${OC.positionStart}&:not(.${OC.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=yy({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:a="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:s,variant:c}=n,u=Rf(n,IC),p=Ow()||{};let f=c;c&&p.variant,p&&!f&&(f=p.variant);const h=Lf({},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 xf({root:["root",n&&"disablePointerEvents",o&&`position${Gp(o)}`,i,r&&"hiddenLabel",a&&`size${Gp(a)}`]},LC,t)})(h);return Gm.jsx(Rw.Provider,{value:null,children:Gm.jsx(PC,Lf({as:a,ownerState:h,className:Cy(m.root,o),ref:t},u,{children:"string"!=typeof r||l?Gm.jsxs(d.Fragment,{children:["start"===s?RC||(RC=Gm.jsx("span",{className:"notranslate",children:""})):null,r]}):Gm.jsx(Sw,{color:"text.secondary",children:r})}))})}));var TC=_C;var NC=d.createContext({});function MC(e){return Cf("MuiList",e)}kf("MuiList",["root","padding","dense","subheader"]);const zC=["children","className","component","dense","disablePadding","subheader"],AC=Sy("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})=>Lf({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0}))),DC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiList"}),{children:r,className:o,component:a="ul",dense:i=!1,disablePadding:l=!1,subheader:s}=n,c=Rf(n,zC),u=d.useMemo((()=>({dense:i})),[i]),p=Lf({},n,{component:a,dense:i,disablePadding:l}),f=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return xf({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},MC,t)})(p);return Gm.jsx(NC.Provider,{value:u,children:Gm.jsxs(AC,Lf({as:a,className:Cy(f.root,o),ref:t,ownerState:p},c,{children:[s,r]}))})}));var qC=DC;function jC(e){return Cf("MuiListItem",e)}var FC=kf("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);var $C=kf("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function BC(e){return Cf("MuiListItemSecondaryAction",e)}kf("MuiListItemSecondaryAction",["root","disableGutters"]);const WC=["className"],HC=Sy("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})((({ownerState:e})=>Lf({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0}))),UC=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiListItemSecondaryAction"}),{className:r}=n,o=Rf(n,WC),a=Lf({},n,{disableGutters:d.useContext(NC).disableGutters}),i=(e=>{const{disableGutters:t,classes:n}=e;return xf({root:["root",t&&"disableGutters"]},BC,n)})(a);return Gm.jsx(HC,Lf({className:Cy(i.root,r),ownerState:a,ref:t},o))}));UC.muiName="ListItemSecondaryAction";var VC=UC;const GC=["className"],KC=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],ZC=Sy("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})=>Lf({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Lf({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${$C.root}`]:{paddingRight:48}},{[`&.${FC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${FC.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${FC.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Av(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${FC.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"}},[`&.${FC.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Av(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})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48}))),XC=Sy("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),QC=d.forwardRef((function(e,t){const n=yy({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=Rf(n.ContainerProps,GC),k=Rf(n,KC),L=d.useContext(NC),R=d.useMemo((()=>({dense:h||L.dense||!1,alignItems:r,disableGutters:g})),[r,L.dense,h,g]),O=d.useRef(null);ef((()=>{o&&O.current&&O.current.focus()}),[o]);const I=d.Children.toArray(i),P=I.length&&Xp(I[I.length-1],["ListItemSecondaryAction"]),_=Lf({},n,{alignItems:r,autoFocus:o,button:a,dense:R.dense,disabled:m,disableGutters:g,disablePadding:v,divider:y,hasSecondaryAction:P,selected:S}),T=(e=>{const{alignItems:t,button:n,classes:r,dense:o,disabled:a,disableGutters:i,disablePadding:l,divider:s,hasSecondaryAction:c,selected:u}=e;return xf({root:["root",o&&"dense",!i&&"gutters",!l&&"padding",s&&"divider",a&&"disabled",n&&"button","flex-start"===t&&"alignItemsFlexStart",c&&"secondaryAction",u&&"selected"],container:["container"]},jC,r)})(_),N=lf(O,t),M=E.root||c.Root||ZC,z=w.root||u.root||{},A=Lf({className:Cy(T.root,z.className,l),disabled:m},k);let D=s||"li";return a&&(A.component=s||"div",A.focusVisibleClassName=Cy(FC.focusVisible,b),D=pS),P?(D=A.component||s?D:"div","li"===p&&("li"===D?D="div":"li"===A.component&&(A.component="div")),Gm.jsx(NC.Provider,{value:R,children:Gm.jsxs(XC,Lf({as:p,className:Cy(T.container,f),ref:N,ownerState:_},C,{children:[Gm.jsx(M,Lf({},z,!Ly(M)&&{as:D,ownerState:Lf({},_,z.ownerState)},A,{children:I})),I.pop()]}))})):Gm.jsx(NC.Provider,{value:R,children:Gm.jsxs(M,Lf({},z,{as:D,ref:N},!Ly(M)&&{ownerState:Lf({},_,z.ownerState)},A,{children:[I,x&&Gm.jsx(VC,{children:x})]}))})}));var YC=QC;function JC(e){return Cf("MuiListItemIcon",e)}var ek=kf("MuiListItemIcon",["root","alignItemsFlexStart"]);const tk=["className"],nk=Sy("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})=>Lf({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8}))),rk=d.forwardRef((function(e,t){const n=yy({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=Rf(n,tk),a=Lf({},n,{alignItems:d.useContext(NC).alignItems}),i=(e=>{const{alignItems:t,classes:n}=e;return xf({root:["root","flex-start"===t&&"alignItemsFlexStart"]},JC,n)})(a);return Gm.jsx(nk,Lf({className:Cy(i.root,r),ownerState:a,ref:t},o))}));var ok=rk;var ak=kf("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const ik=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function lk(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function sk(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function ck(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 uk(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")&&ck(l,a)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const dk=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=Rf(e,ik),f=d.useRef(null),h=d.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ef((()=>{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=`${vf(Qp(e))}px`;f.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,f.current.style.width=`calc(100% + ${n})`}return f.current}})),[]);const m=lf(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 Gm.jsx(qC,Lf({role:"menu",ref:m,className:i,onKeyDown:e=>{const t=f.current,n=e.key,r=Qp(t).activeElement;if("ArrowDown"===n)e.preventDefault(),uk(t,r,s,l,lk);else if("ArrowUp"===n)e.preventDefault(),uk(t,r,s,l,sk);else if("Home"===n)e.preventDefault(),uk(t,null,s,l,lk);else if("End"===n)e.preventDefault(),uk(t,null,s,l,sk);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&&ck(r,o);o.previousKeyMatched&&(s||uk(t,r,!1,l,lk,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1},p,{children:v}))}));var pk=dk;function fk(e){return Cf("MuiPopover",e)}kf("MuiPopover",["root","paper"]);const hk=["onEntering"],mk=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function gk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function vk(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function yk(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function bk(e){return"function"==typeof e?e():e}const xk=Sy(HE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sk=Sy(sw,{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}),wk=d.forwardRef((function(e,t){const n=yy({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=xC,transitionDuration:y="auto",TransitionProps:{onEntering:b}={}}=n,x=Rf(n.TransitionProps,hk),S=Rf(n,mk),w=d.useRef(),E=lf(w,m.ref),C=Lf({},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 xf({root:["root"],paper:["paper"]},fk,t)})(C),L=d.useCallback((()=>{if("anchorPosition"===l)return i;const e=bk(o),t=(e&&1===e.nodeType?e:Qp(w.current).body).getBoundingClientRect();return{top:t.top+gk(t,a.vertical),left:t.left+vk(t,a.horizontal)}}),[o,a.horizontal,a.vertical,i,l]),R=d.useCallback((e=>({vertical:gk(e,g.vertical),horizontal:vk(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:yk(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=Yp(bk(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:yk(n)}}),[o,l,L,R,f]),[I,P]=d.useState(h),_=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&&_()})),d.useImperativeHandle(r,(()=>h?{updatePosition:()=>{_()}}:null),[h,_]),d.useEffect((()=>{if(!h)return;const e=Zp((()=>{_()})),t=Yp(o);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[o,h,_]);let T=y;"auto"!==y||v.muiSupportAuto||(T=void 0);const N=u||(o?Qp(bk(o)).body:void 0);return Gm.jsx(xk,Lf({BackdropProps:{invisible:!0},className:Cy(k.root,c),container:N,open:h,ref:t,ownerState:C},S,{children:Gm.jsx(v,Lf({appear:!0,in:h,onEntering:(e,t)=>{b&&b(e,t),_()},onExited:()=>{P(!1)},timeout:T},x,{children:Gm.jsx(Sk,Lf({elevation:p},m,{ref:E,className:Cy(k.paper,m.className)},I?void 0:{style:Lf({},m.style,{opacity:0})},{ownerState:C,children:s}))}))}))}));var Ek=wk;function Ck(e){return Cf("MuiMenuItem",e)}var kk=kf("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const Lk=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Rk=Sy(pS,{shouldForwardProp:e=>by(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})=>Lf({},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"}},[`&.${kk.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${kk.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Av(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${kk.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Av(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})`:Av(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${kk.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${kk.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${VE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${VE.inset}`]:{marginLeft:52},[`& .${ak.root}`]:{marginTop:0,marginBottom:0},[`& .${ak.inset}`]:{paddingLeft:36},[`& .${ek.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Lf({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${ek.root} svg`]:{fontSize:"1.25rem"}})))),Ok=d.forwardRef((function(e,t){const n=yy({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=Rf(n,Lk),h=d.useContext(NC),m=d.useMemo((()=>({dense:a||h.dense||!1,disableGutters:l})),[h.dense,a,l]),g=d.useRef(null);ef((()=>{r&&g.current&&g.current.focus()}),[r]);const v=Lf({},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 Lf({},i,xf({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",a&&"selected"]},Ck,i))})(n),b=lf(g,t);let x;return n.disabled||(x=void 0!==u?u:-1),Gm.jsx(NC.Provider,{value:m,children:Gm.jsx(Rk,Lf({ref:b,role:c,tabIndex:x,component:o,focusVisibleClassName:Cy(y.focusVisible,s),className:Cy(y.root,p)},f,{ownerState:v,classes:y}))})}));var Ik,Pk=Ok;const _k=["children","classes","className","label","notched"],Tk=Sy("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%"}),Nk=Sy("legend")((({ownerState:e,theme:t})=>Lf({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&&Lf({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 Mk=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],zk=Sy(Aw,{shouldForwardProp:e=>by(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:Mw})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Lf({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Bw.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${Bw.focused} .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${Bw.error} .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Bw.disabled} .${Bw.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Lf({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),Ak=Sy((function(e){const{className:t,label:n,notched:r}=e,o=Rf(e,_k),a=null!=n&&""!==n,i=Lf({},e,{notched:r,withLabel:a});return Gm.jsx(Tk,Lf({"aria-hidden":!0,className:t,ownerState:i},o,{children:Gm.jsx(Nk,{ownerState:i,children:a?Gm.jsx("span",{children:n}):Ik||(Ik=Gm.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}})),Dk=Sy(Dw,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:zw})((({theme:e,ownerState:t})=>Lf({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}))),qk=d.forwardRef((function(e,t){var n,r,o,a,i;const l=yy({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=Rf(l,Mk),y=(e=>{const{classes:t}=e;return Lf({},t,xf({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},$w,t))})(l),b=Ow(),x=Lw({props:l,muiFormControl:b,states:["required"]}),S=Lf({},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:zk,E=null!=(o=null!=(a=m.input)?a:s.Input)?o:Dk;return Gm.jsx(Fw,Lf({slots:{root:w,input:E},renderSuffix:e=>Gm.jsx(Ak,{ownerState:S,className:y.notchedOutline,label:null!=p&&""!==p&&x.required?i||(i=Gm.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:Lf({},y,{notchedOutline:null})}))}));qk.muiName="Input";var jk=qk,Fk=JS(Gm.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"),$k=JS(Gm.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 Bk=Sy("span")({position:"relative",display:"flex"}),Wk=Sy(Fk)({transform:"scale(1)"}),Hk=Sy($k)((({theme:e,ownerState:t})=>Lf({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 Uk(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o=Lf({},e,{checked:t});return Gm.jsxs(Bk,{className:n.root,ownerState:o,children:[Gm.jsx(Wk,{fontSize:r,className:n.background,ownerState:o}),Gm.jsx(Hk,{fontSize:r,className:n.dot,ownerState:o})]})}var Vk=d.createContext(void 0);function Gk(e){return Cf("MuiRadio",e)}var Kk=kf("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Zk=["checked","checkedIcon","color","icon","name","onChange","size","className"],Xk=Sy(pE,{shouldForwardProp:e=>by(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Gp(n.color)}`]]}})((({theme:e,ownerState:t})=>Lf({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})`:Av("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Kk.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${Kk.disabled}`]:{color:(e.vars||e).palette.action.disabled}})));const Qk=Gm.jsx(Uk,{checked:!0}),Yk=Gm.jsx(Uk,{}),Jk=d.forwardRef((function(e,t){var n,r;const o=yy({props:e,name:"MuiRadio"}),{checked:a,checkedIcon:i=Qk,color:l="primary",icon:s=Yk,name:c,onChange:u,size:p="medium",className:f}=o,h=Rf(o,Zk),m=Lf({},o,{color:l,size:p}),g=(e=>{const{classes:t,color:n}=e;return Lf({},t,xf({root:["root",`color${Gp(n)}`]},Gk,t))})(m),v=d.useContext(Vk);let y=a;const b=Kp(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)),Gm.jsx(Xk,Lf({type:"radio",icon:d.cloneElement(s,{fontSize:null!=(n=Yk.props.fontSize)?n:p}),checkedIcon:d.cloneElement(i,{fontSize:null!=(r=Qk.props.fontSize)?r:p}),ownerState:m,classes:g,name:x,checked:y,onChange:b,ref:t,className:Cy(g.root,f)},h))}));var eL=Jk;function tL(e){return Cf("MuiTooltip",e)}var nL=kf("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const rL=["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 oL=Sy(kw,{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})=>Lf({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${nL.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${nL.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${nL.arrow}`]:Lf({},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"] .${nL.arrow}`]:Lf({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),aL=Sy("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${Gp(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Lf({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Av(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},{[`.${nL.popper}[data-popper-placement*="left"] &`]:Lf({transformOrigin:"right center"},t.isRtl?Lf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Lf({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${nL.popper}[data-popper-placement*="right"] &`]:Lf({transformOrigin:"left center"},t.isRtl?Lf({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Lf({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${nL.popper}[data-popper-placement*="top"] &`]:Lf({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${nL.popper}[data-popper-placement*="bottom"] &`]:Lf({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),iL=Sy("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:Av(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let lL=!1,sL=null,cL={x:0,y:0};function uL(e,t){return n=>{t&&t(n),e(n)}}const dL=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=yy({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:_=!1,enterDelay:T=100,enterNextDelay:N=0,enterTouchDelay:M=700,followCursor:z=!1,id:A,leaveDelay:D=0,leaveTouchDelay:q=1500,onClose:j,onOpen:F,open:$,placement:B="bottom",PopperComponent:W,PopperProps:H={},slotProps:U={},slots:V={},title:G,TransitionComponent:K=xC,TransitionProps:Z}=w,X=Rf(w,rL),Q=vy(),Y="rtl"===Q.direction,[J,ee]=d.useState(),[te,ne]=d.useState(null),re=d.useRef(!1),oe=P||z,ae=d.useRef(),ie=d.useRef(),le=d.useRef(),se=d.useRef(),[ce,ue]=of({controlled:$,default:!1,name:"Tooltip",state:"open"});let de=ce;const pe=rf(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(sL),lL=!0,ue(!0),F&&!de&&F(e)},ge=af((e=>{clearTimeout(sL),sL=setTimeout((()=>{lL=!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),T||lL&&N?ie.current=setTimeout((()=>{me(e)}),lL?N:T):me(e))},ye=e=>{clearTimeout(ie.current),clearTimeout(le.current),le.current=setTimeout((()=>{ge(e)}),D)},{isFocusVisibleRef:be,onBlur:xe,onFocus:Se,ref:we}=gf(),[,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)}),q)};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 _e=lf(C.ref,we,ee,t);G||0===G||(de=!1);const Te=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 ze=Lf({},Ne,X,C.props,{className:Cy(X.className,C.props.className),onTouchStart:Le,ref:_e},z?{onMouseMove:e=>{const t=C.props;t.onMouseMove&&t.onMouseMove(e),cL={x:e.clientX,y:e.clientY},Te.current&&Te.current.update()}}:{}),Ae={};_||(ze.onTouchStart=Ie,ze.onTouchEnd=Pe),I||(ze.onMouseOver=uL(Re,ze.onMouseOver),ze.onMouseLeave=uL(Oe,ze.onMouseLeave),oe||(Ae.onMouseOver=Re,Ae.onMouseLeave=Oe)),O||(ze.onFocus=uL(ke,ze.onFocus),ze.onBlur=uL(Ce,ze.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)),Lf({},H.popperOptions,{modifiers:t})}),[te,H]),qe=Lf({},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 xf({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Gp(a.split("-")[0])}`],arrow:["arrow"]},tL,t)})(qe),Fe=null!=(n=null!=(r=V.popper)?r:k.Popper)?n:oL,$e=null!=(o=null!=(a=null!=(i=V.transition)?i:k.Transition)?a:K)?o:xC,Be=null!=(l=null!=(s=V.tooltip)?s:k.Tooltip)?l:aL,We=null!=(c=null!=(u=V.arrow)?u:k.Arrow)?c:iL,He=Ry(Fe,Lf({},H,null!=(p=U.popper)?p:L.popper,{className:Cy(je.popper,null==H?void 0:H.className,null==(f=null!=(h=U.popper)?h:L.popper)?void 0:f.className)}),qe),Ue=Ry($e,Lf({},Z,null!=(m=U.transition)?m:L.transition),qe),Ve=Ry(Be,Lf({},null!=(g=U.tooltip)?g:L.tooltip,{className:Cy(je.tooltip,null==(v=null!=(y=U.tooltip)?y:L.tooltip)?void 0:v.className)}),qe),Ge=Ry(We,Lf({},null!=(b=U.arrow)?b:L.arrow,{className:Cy(je.arrow,null==(x=null!=(S=U.arrow)?S:L.arrow)?void 0:x.className)}),qe);return Gm.jsxs(d.Fragment,{children:[d.cloneElement(C,ze),Gm.jsx(Fe,Lf({as:null!=W?W:kw,placement:B,anchorEl:z?{getBoundingClientRect:()=>({top:cL.y,left:cL.x,right:cL.x,bottom:cL.y,width:0,height:0})}:J,popperRef:Te,open:!!J&&de,id:pe,transition:!0},Ae,He,{popperOptions:De,children:({TransitionProps:e})=>Gm.jsx($e,Lf({timeout:Q.transitions.duration.shorter},e,Ue,{children:Gm.jsxs(Be,Lf({},Ve,{children:[G,E?Gm.jsx(We,Lf({},Ge,{ref:ne})):null]}))}))}))]})}));var pL=dL;const[fL,hL]=AS({}),[mL,gL]=AS({}),[vL,yL]=AS({}),[bL,xL]=AS({}),[SL,wL]=AS({}),[,EL]=AS({}),CL=e=>{let{type:t,value:n}=e;const r=EL.get(n.id);EL.set(n.id,{});const o=()=>{gL.clear(n.id),wL.set(n.id,{}),wL.dispatch(!0)},a=()=>{n.removeListener("changed",o),hL.clear(n.id),gL.clear(n.id),yL.clear(n.id),xL.clear(n.id),wL.clear(n.id),EL.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[kL,LL]=AS({},CL);function RL(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=kL(),[o]=vL(),[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 OL={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function IL(e){return RL(OL,e)}const PL=(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]=fL(),[o,a]=d.useReducer(PL,n?r.get(n):null),[i]=SL(),[l]=mL();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 TL(e){return _L(e,"getLayout")}function NL(e){return _L(e,"getAppLayout")}function ML(){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 zL(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function AL(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:o=[]}=e;const a=l({fontSize:zL(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 DL=e=>AL((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 qL=e=>AL((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 jL=e=>AL((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 FL=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},$L=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}}(),BL=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},WL=function(e){function t(){var e,n,r;FL(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=BL(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},BL(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),$L(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 HL=["S","XS"],UL=e=>e.reduce(((e,t)=>e.concat(t)));function VL(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return n=t.qState,!!HL.includes(n)&&t.qElemNumber;var n}));return t.filter((e=>!1!==e))}));return UL(t)}async function GL(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 KL=e=>!(e.metaKey||e.ctrlKey);function ZL(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(),GL({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 UL(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&&KL(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&&KL(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];const o=[];return t.updateItems(e,r,o),t.setSelectableValuesUpdating(),GL({selections:n,elemNumbers:r?o:e,isSingleSelect:t.isSingleSelect,toggle:!t.isSingleSelect})}}}const XL=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 QL=e=>AL(XL(e));const YL=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===YL.ARROW_UP||e===YL.ARROW_DOWN||e===YL.ARROW_LEFT||e===YL.ARROW_RIGHT});function JL(e){let{setKeyboardActive:t,hovering:n,setHovering:r,updateKeyScroll:o,containerRef:a,currentScrollIndex:i,app:l,appSelections:s,constraints:c}=e;const u=e=>{n&&o(e)};return{handleKeyDown:e=>{const{keyCode:n,ctrlKey:r=!1,shiftKey:o=!1}=e.nativeEvent;switch(n){case YL.ENTER:case YL.SPACE:if(!e.target.classList.contains("listbox-container"))return;(e=>{const n=e.querySelector(".search input, .value.selector, .value, .ActionsToolbar-* button");t(!0),n&&n.focus()})(e.currentTarget);break;case YL.ESCAPE:a=e.currentTarget,t(!1),a.focus();break;case YL.ARROW_UP:u({up:1});break;case YL.ARROW_DOWN:u({down:1});break;case YL.PAGE_UP:u({up:i.stop-i.start});break;case YL.PAGE_DOWN:u({down:i.stop-i.start});break;case YL.HOME:u({scrollPosition:r&&o?"overflowStart":"start"});break;case YL.END:u({scrollPosition:r&&o?"overflowEnd":"end"});break;default:return}var a;e.preventDefault()},handleOnMouseEnter:()=>{var e,t;(()=>{var e,t;const n=(null==c?void 0:c.select)||(null==c?void 0:c.active),r=null!==(e=null===(t=l.isInModalSelection)||void 0===t?void 0:t.call(l))&&void 0!==e?e:s.isInModal();return n||r})()||(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 eR="RowColumn",tR={row:"".concat(eR,"-row"),rowBorderBottom:"".concat(eR,"-rowBorderBottom"),column:"".concat(eR,"-column"),fieldRoot:"".concat(eR,"-fieldRoot"),cell:"".concat(eR,"-cell"),labelText:"".concat(eR,"-labelText"),labelDense:"".concat(eR,"-labelDense"),highlighted:"".concat(eR,"-highlighted"),checkboxLabel:"".concat(eR,"-checkboxLabel"),icon:"".concat(eR,"-icon"),S:"".concat(eR,"-S"),XS:"".concat(eR,"-XS"),A:"".concat(eR,"-A"),X:"".concat(eR,"-X"),frequencyCount:"".concat(eR,"-frequencyCount"),barContainer:"".concat(eR,"-barContainer"),bar:"".concat(eR,"-bar"),barSelected:"".concat(eR,"-barSelected"),barWithCheckbox:"".concat(eR,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(eR,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(eR,"-excludedTextWithCheckbox")},nR=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,rR=e=>e?"A"===e.qState:null,oR=e=>{let{cell:t,checkboxes:n}=e;return(rR(t)||nR(t))&&n},aR=e=>e.filter((e=>!!e)).join(" ").trim(),iR=e=>{let{cell:t}=e;return t?t.qFrequency?t.qFrequency:"-":""},lR=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}}},sR={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},cR=Sy("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"},["& .".concat(tR.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(tR.rowBorderBottom)]:{borderBottom:m?"none":"1px solid ".concat(p.palette.divider),borderLeft:m?"1px solid ".concat(p.palette.divider):"none"},["& .".concat(tR.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(tR.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"".concat(9,"px"),paddingRight:0},["& .".concat(tR.labelText)]:l(l({flexBasis:f,lineHeight:"16px",userSelect:"none",paddingRight:"1px"},sR),{},{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(tR.labelDense)]:{fontSize:12},["& .".concat(tR.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(tR.checkboxLabel)]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":l(l({},sR),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},["& .".concat(tR.icon)]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24},["& .".concat(tR.S)]:l(l({},lR({theme:p})),{},{border:h?"none":void 0}),["& .".concat(tR.XS)]:l(l({},lR({theme:p})),{},{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0}),["& .".concat(tR.A)]:{background:p.palette.selected.alternative,color:p.palette.selected.alternativeContrastText,border:h?"none":void 0},["& .".concat(tR.X)]:{background:p.palette.selected.excluded,color:p.palette.selected.excludedContrastText,border:h?"none":void 0},["& .".concat(tR.frequencyCount)]:l(l({justifyContent:"flex-end"},sR),{},{flex:"0 1 ".concat(v,"px"),textAlign:"right",paddingLeft:"2px"}),["&.".concat(tR.barContainer)]:{height:"100%",display:"flex",alignItems:"center"},["& .".concat(tR.bar)]:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:g?"16px":"20px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},["& .".concat(tR.barSelected)]:{opacity:"30%",zIndex:"0",background:p.palette.background.lighter},["& .".concat(tR.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(tR.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(tR.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));var uR=G.memo(cR);const dR="ListBoxCheckbox",pR={cbIcon:"".concat(dR,"-cbIcon"),cbIconChecked:"".concat(dR,"-cbIconChecked"),cbIconExcluded:"".concat(dR,"-cbIconExcluded"),cbIconAlternative:"".concat(dR,"-cbIconAlternative"),checkbox:"".concat(dR,"-checkbox"),dense:"".concat(dR,"-dense")},fR=Sy(CE)((e=>{let{theme:t}=e;return{["& .".concat(pR.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(pR.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(pR.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(pR.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(pR.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(pR.dense)]:{padding:"4px 8px"}}})),hR=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 mR(e){let{onChange:t,checked:n,label:r,dense:o,excluded:a,showGray:i=!0,dataN:l}=e;return G.createElement(fR,{edge:"start",onChange:t,checked:n,disableRipple:!0,className:[pR.checkbox,o&&pR.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":r,"data-n":l},name:r,icon:hR(pR,i,a),checkedIcon:G.createElement("span",{className:pR.cbIconChecked})})}const gR="ListBoxRadioButton",vR={denseRadioButton:"".concat(gR,"-denseRadioButton"),radioButton:"".concat(gR,"-radioButton")},yR=Sy(eL)((e=>{let{theme:t,checked:n}=e;return{["&.".concat(vR.radioButton)]:{right:"5px",color:n?t.palette.selected.main:t.palette.main}}}));function bR(e){let{onChange:t,checked:n,label:r,dense:o,dataN:a}=e;return G.createElement(yR,{checked:n,onChange:t,value:r,name:r,className:vR.radioButton,inputProps:{"data-n":a},style:{backgroundColor:"transparent"},disableRipple:!0,size:o?"small":"medium",sx:o&&{padding:"0px 0px 0px 12px"}})}function xR(e){let{label:t,color:n,highlighted:r=!1,dense:o,showGray:a=!0,checkboxes:i,cell:l,valueTextAlign:s}=e;return G.createElement(Sw,{component:"span",variant:"body2",className:aR([tR.labelText,r&&tR.highlighted,o&&tR.labelDense,a&&oR({cell:l,checkboxes:i})&&tR.excludedTextWithCheckbox]),color:n,align:s},G.createElement("span",{style:{whiteSpace:"pre"}},t))}function SR(e){let{label:t,color:n,highlighted:r,dense:o,showGray:a,checkboxes:i,cell:l,valueTextAlign:s}=e;return"string"==typeof t?G.createElement(xR,{label:t,color:n,highlighted:r,dense:o,showGray:a,checkboxes:i,cell:l,valueTextAlign:s}):t}function wR(e){let{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,highlighted:d,checkboxes:p,valueTextAlign:f}=e;const h=G.createElement(mR,{onChange:t,label:n,checked:a,dense:i,excluded:nR(l),isGridCol:s,showGray:c,dataN:o}),m=G.createElement(bR,{onChange:t,label:n,checked:a,dense:i,dataN:o});return G.createElement(rC,{color:r,control:u?m:h,className:tR.checkboxLabel,label:G.createElement(SR,{label:n,color:r,highlighted:d,dense:i,showGray:c,checkboxes:p,cell:l,valueTextAlign:f}),key:o})}function ER(e){let{labels:t,dense:n,showGray:r,checkboxes:o}=e;return G.createElement(G.Fragment,null,t.map(((e,t)=>{let[a,i]=e;const l="".concat(t);return G.createElement(xR,{label:a,key:l,highlighted:i,dense:n,showGray:r,checkboxes:o})})))}function CR(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(ER,{labels:n,dense:o,showGray:a,checkboxes:r});return r?G.createElement(wR,{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 kR=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,highlighted:d,checkboxes:p,valueTextAlign:f}=e;return p?G.createElement(wR,{onChange:t,label:n,color:r,qElemNumber:o,isSelected:a,dense:i,cell:l,isGridCol:s,showGray:c,isSingleSelect:u,highlighted:d,checkboxes:p,valueTextAlign:f}):G.createElement(xR,{label:n,color:r,highlighted:!1,dense:i,showGray:!0,checkboxes:p,cell:l,valueTextAlign:f})}));function LR(e){let{cell:t,histogram:n,checkboxes:r,isSelected:o,frequencyMax:a}=e;if(!(t&&n&&"-"!==iR({cell:t})))return;const i=(e=>{let{qFrequency:t,checkboxes:n,frequencyMax:r}=e;const o=String(t),a="%"===o.substring(o.length-1),i=parseFloat(a?o:t),l=n?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(a?i:i/r*100,"% - ").concat(l,")")})({qFrequency:t.qFrequency,checkboxes:r,frequencyMax:a});return G.createElement("div",{className:aR([tR.bar,r&&tR.barWithCheckbox,o&&(r?tR.barSelectedWithCheckbox:tR.barSelected)]),style:{width:i}})}function RR(e){let{cell:t,checkboxes:n,dense:r,showGray:o}=e;return G.createElement(hC,{item:!0,style:{display:"flex",alignItems:"center"},className:tR.frequencyCount},G.createElement(Sw,{noWrap:!0,color:"inherit",variant:"body2",className:aR([r&&tR.labelDense,tR.labelText,o&&oR({cell:t,checkboxes:n})&&tR.excludedTextWithCheckbox])},iR({cell:t})))}function OR(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 IR=Sy(hC,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","checkboxes"].includes(e)})((e=>{let{dataLayout:t,layoutOrder:n,itemPadding:r,checkboxes:o}=e;return{["&.".concat(tR.fieldRoot)]:l(l({},OR({dataLayout:t,layoutOrder:n,itemPadding:r})),{},{paddingRight:o?"8px":void 0})}}));function PR(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,columnCount:P=1,rowCount:_=1,dataOffset:T,focusListItems:N,listCount:M,itemPadding:z,frequencyWidth:A}=c,{dense:D=!1,dataLayout:q="singleColumn",layoutOrder:j}=w;let F,$;const B={max:null,currentIndex:null};if("number"==typeof a&&"number"==typeof i){"row"===j?(F=a*P+i,B.max=_,B.currentIndex=a):(F=i*_+a,B.max=P,B.currentIndex=i);const e=0;$=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 F=o,B.max=M,B.currentIndex=o,$=l({},s);F+=T;const W=d.useRef(null);d.useEffect((()=>{null!==W.current&&(0===B.currentIndex&&N.first&&(W.current.focus(),N.setFirst(!1)),B.currentIndex===B.max-1&&N.last&&(W.current.focus(),N.setLast(!1)))}),[W.current]);const H=d.useCallback(function(e){let{select:t,confirm:n,cancel:r,setScrollPosition:o,focusListItems:a}=e;const i=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 l=!1;const s=e=>{l=e};return e=>{let c;const{keyCode:u,shiftKey:d=!1,ctrlKey:p=!1}=e.nativeEvent;switch(u){case YL.SHIFT:s(!0);break;case YL.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case YL.ARROW_DOWN:case YL.ARROW_RIGHT:c=i(e.currentTarget,!0),d&&c&&(l&&(t([+e.currentTarget.getAttribute("data-n")],!0),s(!1)),t([+c.getAttribute("data-n")],!0));break;case YL.ARROW_UP:case YL.ARROW_LEFT:c=i(e.currentTarget,!1),d&&c&&(l&&(t([+e.currentTarget.getAttribute("data-n")],!0),s(!1)),t([+c.getAttribute("data-n")],!0));break;case YL.ENTER:n();break;case YL.ESCAPE:return void r();case YL.HOME:if(a.setFirst(!0),p){null==o||o("overflowStart");break}null==o||o("start");break;case YL.END:if(a.setLast(!0),p){null==o||o("overflowEnd");break}null==o||o("end");break;default:return}c&&c.focus(),e.preventDefault(),e.stopPropagation()}}(l(l({},k),{},{focusListItems:N})),[k]),U=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:F})),[g,F]),V="S"===(null==U?void 0:U.qState)||"XS"===(null==U?void 0:U.qState)||"L"===(null==U?void 0:U.qState)||"XL"===(null==U?void 0:U.qState),K=d.useMemo((()=>(e=>{let{column:t,histogram:n,checkboxes:r,cell:o,showGray:a}=e;const i=[t?tR.column:tR.row];return n||i.push(tR.rowBorderBottom),o?(r||("XS"===o.qState?i.push(a?tR.XS:tR.S):"S"===o.qState||"L"===o.qState?i.push(tR.S):a&&rR(o)?i.push(tR.A):a&&nR(o)&&i.push(tR.X)),i):[]})({column:y,histogram:R,checkboxes:b,cell:U,showGray:I})),[null==U?void 0:U.qState,R,D,b]),Z=d.useCallback((e=>{e.preventDefault()}),[b]);if(!U)return null;const X=!["NaN",void 0].includes(null==U?void 0:U.qNum);let Q;Q=!x||x.auto?X?"right":{rtl:"right",ltr:"left"}[S]:(null==x?void 0:x.align)||"left";const Y="grid"===q&&"column"===j,J=null!==(t=null==U?void 0:U.qText)&&void 0!==t?t:"";let ee;if(null!==(n=U.qHighlightRanges)&&void 0!==n&&null!==(r=n.qRanges)&&void 0!==r&&r.length){const e=U.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[];ee=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}(J,e)}const te={alignItems:"center",display:"flex",fontSize:"8px"},ne=V&&v,re=!b&&V&&!v,oe={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:b?0:void 0,justifyContent:Q},ae=0===o,ie=b?"auto":"max-content";return G.createElement(uR,{className:tR.barContainer,flexBasisProp:ie,style:$,isGridCol:Y,isGridMode:"grid"===q,dense:D,frequencyWidth:A},G.createElement(IR,{ref:W,container:!0,dataLayout:q,checkboxes:b,layoutOrder:j,itemPadding:z,gap:0,className:aR(["value",...K]),classes:{root:tR.fieldRoot},onClick:p,onMouseDown:f,onMouseUp:h,onMouseEnter:m,onKeyDown:H,onContextMenu:Z,role:y?"column":"row",tabIndex:!ae||O.enabled&&!O.active?-1:0,"data-n":null==U?void 0:U.qElemNumber},G.createElement(LR,{cell:U,histogram:R,checkboxes:b,isSelected:V,frequencyMax:L}),G.createElement(hC,{item:!0,style:oe,className:aR([tR.cell,tR.selectedCell]),title:"".concat(J)},ee?G.createElement(CR,{onChange:u,labels:ee,checkboxes:b,dense:D,showGray:I,color:"inherit",qElemNumber:U.qElemNumber,isSelected:V,cell:U,isGridCol:Y,isSingleSelect:C,valueTextAlign:Q}):G.createElement(kR,{onChange:u,label:J,color:"inherit",qElemNumber:U.qElemNumber,isSelected:V,dense:D,cell:U,isGridCol:Y,showGray:I,isSingleSelect:C,checkboxes:b,valueTextAlign:Q})),E&&G.createElement(RR,{cell:U,checkboxes:b,dense:D,showGray:I}),!b&&G.createElement(hC,{item:!0,className:tR.icon},!ne&&!re&&G.createElement("span",{style:{minWidth:"12px"}}),ne&&G.createElement(qL,{style:te,size:"small"}),re&&G.createElement(QL,{style:te,size:"small"}))))}var _R=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function TR(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||_R(r)&&_R(o)))return!1;var r,o;return!0}function NR(e,t){var n;void 0===t&&(t=TR);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 MR="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function zR(e){cancelAnimationFrame(e.id)}function AR(e,t){var n=MR();var r={id:requestAnimationFrame((function o(){MR()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var DR=-1;function qR(e){if(void 0===e&&(e=!1),-1===DR||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),DR=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return DR}var jR=null;function FR(e){if(void 0===e&&(e=!1),null===jR||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?jR="positive-descending":(t.scrollLeft=1,jR=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),jR}return jR}var $R=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function BR(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,Fx(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Fx(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=NR((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=NR((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=NR((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(FR()){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&&zR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}Ix(t,e),t.getDerivedStateFromProps=function(e,t){return WR(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=qR();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(FR()){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&&zR(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?$R: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 _=i(this.props,this._instanceProps),T=l(this.props,this._instanceProps);return d.createElement(m||g||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Lx({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:_,pointerEvents:S?"none":void 0,width:T}}))},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 WR=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},HR=function(e,t){return e};function UR(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,Fx(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Fx(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=NR((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=NR((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=NR((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(FR()){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&&zR(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=AR(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}Ix(t,e),t.getDerivedStateFromProps=function(e,t){return VR(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?qR():0:s.scrollHeight>s.clientHeight?qR():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(FR()){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&&zR(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?HR: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:Lx({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 VR=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},GR=BR({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}}),KR=UR({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 ZR="#BBB",XR="#f1f1f1",QR={styledScrollbars:"".concat("ListBox","-styledScrollbars")};function YR(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:JR,StyledFixedSizeGrid:eO}=function(){const e=e=>({scrollbarColor:"".concat(ZR," ").concat(XR),overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:XR},"&::-webkit-scrollbar-thumb":{backgroundColor:ZR,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:Am(KR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(QR.styledScrollbars)]:e(n)}})),StyledFixedSizeGrid:Am(GR,{shouldForwardProp:e=>"scrollDisabled"!==e})((t=>{let{scrollDisabled:n}=t;return{["&.".concat(QR.styledScrollbars)]:e(n)}}))}}();const tO=(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 nO(e){if(!e)return"";const t=e.qListObject.qDimensionInfo.qApprMaxGlyphCount;let n="";for(let e=0;e<t;e++)n+="M";return n}function rO(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[oO,aO]=AS({});function iO(e){const t="".concat(e.id),[n]=oO();return{setStoreValue:(e,r)=>n.set("".concat(t,"/").concat(e),r),getStoreValue:e=>n.get("".concat(t,"/").concat(e))}}function lO(e){let{width:t,text:n,dense:r,tooltip:o}=e;const{translator:a}=d.useContext(zS),i=Sy(Sw)((()=>l({minWidth:"".concat(t,"px"),textAlign:"center",fontSize:"".concat(r?"12px":"14px")},r&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:t})));return G.createElement(pL,{title:o?a.get(n):""},G.createElement(i,{component:"div",variant:"body1",py:"12px"},a.get(n)))}var sO={},cO={},uO={get exports(){return cO},set exports(e){cO=e}};!function(e){e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports}(uO);var dO,pO={},fO=r(tw);var hO=cO;Object.defineProperty(sO,"__esModule",{value:!0});var mO=sO.default=void 0,gO=hO((dO||(dO=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=fO}(pO)),pO)),vO=Gm,yO=(0,gO.default)((0,vO.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");mO=sO.default=yO;const bO=Sy(sw)((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}})),xO=Sy("div")((()=>({paddingLeft:"6px",flexGrow:1}))),SO=Sy("div")((e=>{let{dense:t}=e;return{display:"flex",alignItems:"".concat(t?"center":"flex-start")}})),wO=Sy(mO)((()=>({fontSize:"14px"})));function EO(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(bO,{left:l,style:{maxWidth:i}},G.createElement(xO,null,G.createElement(lO,{text:t,dense:r,width:s,tooltip:c})),G.createElement(SO,{dense:r},a&&G.createElement(hw,{"aria-label":"close",onClick:()=>n()},G.createElement(wO,null))))}function CO(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 kO=["isLoadingData"];function LO(e){var t,n,r,o;let{model:a,constraints:i,layout:s,selections:p,selectionState:f,direction:h,checkboxes:m,height:g,width:v,frequencyMode:y,update:b,fetchStart:x,postProcessPages:S,calculatePagesHeight:w=!1,keyboard:E={},showGray:C=!0,scrollState:k,selectDisabled:L=(()=>!1),keyScroll:R={state:{},reset:()=>{}},currentScrollIndex:O={set:()=>{}}}=e;const[I,P]=d.useState(!1),_=!(!s||!s.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:T=m,histogram:N}=null!=s?s:{},M=d.useRef(null),z=d.useRef({queue:[],validPages:!1,dataOffset:0}),A=d.useRef({pages:[]}),D=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:z,loaderRef:M,model:a,fetchStart:x,scrollTimeout:0,postProcessPages:S,listData:A}),q=u(D,kO),{setStoreValue:j}=iO(a),F=d.useCallback(q.loadMoreItems,[s]),[$,B]=d.useState({show:!1,dismissed:!1}),[W,H]=d.useState([]);null!=q&&q.pages&&f.update({setPages:H,pages:null==q?void 0:q.pages,isSingleSelect:_,selectDisabled:L,layout:s});const U=d.useCallback((e=>{if(null==W||!W.length||!z.current.validPages)return!1;z.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=W.filter((e=>t(e)))[0];return n&&t(n)}),[s,W]),{interactionEvents:V,select:K}=ZL({selectionState:f,selections:p,checkboxes:T,doc:document}),{layoutOptions:Z={}}=s||{};let X=!0;Z.dataLayout&&(X="singleColumn"===Z.dataLayout||"row"===(null==Z?void 0:Z.layoutOrder));const Q="grid"===(null==Z?void 0:Z.dataLayout),Y=e=>{const t=l({},X?{rowIndex:e}:{columnIndex:e}),n=Q?t:e;M.current._listRef.scrollToItem(n)},J=()=>{if(z.current.queue=[],z.current.validPages=!1,M.current){M.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===R.state.scrollPosition;if(s&&s.qSelectionInfo.qInSelections||e)return void(e&&R.reset());z.current.dataOffset=0,Y(0)}};b&&b.call(null,J),d.useEffect((()=>{k&&!I&&M.current&&(M.current._listRef.scrollToItem(k.initScrollPos),P(!0))}),[M.current]),d.useEffect((()=>{J()}),[s,z.current.dataOffset]);const ee=(e=>{const t=d.useMemo((()=>"text"in e?e:{}),[e]);return d.useMemo((()=>tO(t.text,t.font||"14px Source Sans Pro")),[t.text,t.font])})({text:nO(s),font:"14px Source sans pro"});let te=100;const ne="grid"!==Z.dataLayout,re=null==s||null===(t=s.qListObject.qSize)||void 0===t?void 0:t.qcy,oe=rO({pages:W,minimumBatchSize:te,count:re,calculatePagesHeight:w,layoutOptions:Z,model:a});let ae=CO({itemWidth:v,layout:s,frequencyMode:y});const ie=function(e){let{layout:t,width:n,height:r,listCount:o,count:a,textWidth:i,freqIsAllowed:l}=e;const{layoutOptions:s={}}=t||{},{layoutOrder:c,maxVisibleRows:u={},maxVisibleColumns:d,dense:p,dataLayout:f}=s,h=l?40:0,m=Math.max(Math.min(150,i+18+h),56+h);let g,v,y,b;const x="grid"===f;let S=p?20:x?32:29;x&&(S+=4);const w=null!=r?r:8*S;if(c){let e=n;if("row"===c){e+=8,g={overflowX:"hidden"};const t=(null==d?void 0:d.maxColumns)||3;v=!1!==(null==d?void 0:d.auto)?Math.min(o,Math.ceil((e-10)/m)):Math.min(o,t),b=Math.ceil(o/v),y=(e-10)/v}else{g={overflowY:"hidden"};const t=(null==u?void 0:u.maxRows)||3;b=!1!==u.auto?Math.floor(w/S):Math.min(o,t),v=Math.ceil(o/b),y=Math.max(m,e/v)}}v=("singleColumn"===f?1:v)||1,b=("singleColumn"===f?a:b)||o;const E=s.dense?838e3:577e3;b=Math.min(b,E);const C=Math.floor(3355e4/y);v=Math.min(v,C)||1;const k=b*v;return{columnCount:v,columnWidth:y,rowCount:b,overflowStyling:g,itemSize:S,listHeight:w,scrollBarWidth:10,count:a,listCount:Math.min(o,k),maxCount:{row:E,column:C},itemPadding:4,frequencyWidth:40}}({layout:s,width:v,height:g,listCount:oe,count:re,textWidth:ee,freqIsAllowed:ae});ie.columnWidth&&(ae=CO({itemWidth:ie.columnWidth,layout:s,frequencyMode:y}));const{listCount:le}=ie;j("listCount",le);const se=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:X,sizes:ie,layout:s,offset:z.current.dataOffset});z.current.dataOffset=n,r&&f.triggerStateChanged(),Y(t)};d.useEffect((()=>{const e=R.state;e.up?Y(O.state.start-e.up):e.down?Y(O.state.stop+e.down):e.scrollPosition&&se(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&R.reset()}),[R.state.up,R.state.down,R.state.scrollPosition]);const{textAlign:ce}=(null==s?void 0:s.qListObject.qDimensionInfo)||{},[ue,de]=d.useState({first:!1,last:!1}),{List:pe,Grid:fe}=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,textAlign:m,selections:g,keyboard:v,showGray:y,scrollState:b,direction:x,sizes:S,listCount:w,overflowDisclaimer:E,setScrollPosition:C,focusListItems:k,setCurrentScrollIndex:L,constraints:R,freqIsAllowed:O}=e;const{layoutOptions:I={},frequencyMax:P}=t||{},{itemPadding:_,listHeight:T,itemSize:N,rowCount:M,columnCount:z,frequencyWidth:A}=S||{},D={direction:"rtl"===x?"rtl":"ltr",useIsScrolling:!0,className:QR.styledScrollbars},q=null==t?void 0:t.qListObject.qDimensionInfo.qLocked,j=l(l({isLocked:q,column:!a,pages:i},q||s()?{}:u),{},{checkboxes:r,layoutOptions:I,frequencyMode:d,freqIsAllowed:O,isSingleSelect:f,textAlign:m,itemPadding:_,frequencyWidth:A,actions:{select:h,confirm:()=>null==g?void 0:g.confirm.call(g),cancel:()=>null==g?void 0:g.cancel.call(g),setScrollPosition:C},frequencyMax:P,histogram:p,keyboard:v,showGray:y,dataOffset:o.current.dataOffset,focusListItems:k});return{List:e=>{let{onItemsRendered:r,ref:a}=e;return o.current.listRef=a,G.createElement(JR,c({},D,{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:T,width:n,itemCount:w,itemData:l(l({},j),{},{listCount:w}),itemSize:N,onItemsRendered:e=>{var n,a;L({start:e.visibleStartIndex,stop:e.visibleStopIndex}),b&&b.setScrollPos(e.visibleStopIndex),YR({renderProps:e,layoutOptions:I,maxCount:S.maxCount,columnCount:z,rowCount:M,overflowDisclaimer:E,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}),PR)},Grid:e=>{let{onItemsRendered:r,ref:a}=e;const{columnWidth:i,overflowStyling:s,scrollBarWidth:u}=S,{layoutOrder:d}=I||{},p=Math.min(T,M*N+u);return o.current.listRef=a,G.createElement(eO,c({},D,{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:p,width:n,columnCount:z,columnWidth:i,rowCount:M,rowHeight:N,style:l({},s),itemData:l(l({},j),{},{column:void 0,columnCount:z,rowCount:M}),onItemsRendered:e=>{var n,a;const i="row"===d;L({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:b,layoutOrder:d,rowCount:M,columnCount:z});YR({renderProps:e,layoutOptions:I,maxCount:S.maxCount,columnCount:z,rowCount:M,overflowDisclaimer:E,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}),PR)}}}({direction:h,layout:s,height:g,width:v,checkboxes:T,frequencyMode:y,histogram:N,keyboard:E,showGray:C,interactionEvents:V,select:K,textAlign:ce,isVertical:ne,pages:W,selectDisabled:L,isSingleSelect:_,selections:p,scrollState:k,local:z,sizes:ie,listCount:le,overflowDisclaimer:{state:$,set:e=>B((t=>l(l({},t),{},{show:e})))},setScrollPosition:se,focusListItems:{first:ue.first,setFirst:e=>de((t=>l(l({},t),{},{first:e}))),last:ue.last,setLast:e=>de((t=>l(l({},t),{},{last:e})))},setCurrentScrollIndex:O.set,constraints:i,freqIsAllowed:ae}),{columnWidth:he,listHeight:me,itemSize:ge}=ie||{};return ne||(te=function(e){let{width:t,columnWidth:n,listHeight:r,itemSize:o}=e;return Math.ceil(t/n)*Math.ceil(r/o)*2}({width:v,columnWidth:he,listHeight:me,itemSize:ge})),G.createElement(G.Fragment,null,!le&&G.createElement(lO,{width:v,text:"Listbox.NoMatchesForYourTerms"}),G.createElement(WL,{isItemLoaded:U,itemCount:le||1,loadMoreItems:F.with({minimumBatchSize:te}),threshold:0,minimumBatchSize:te,ref:M},ne?pe:fe),$.show&&!$.dismissed&&G.createElement(EO,{text:"Listbox.ItemsOverflow",dismiss:()=>B((e=>l(l({},e),{},{dismissed:!0}))),parentWidth:null==M||null===(n=M.current)||void 0===n||null===(r=n._listRef)||void 0===r||null===(o=r.props)||void 0===o?void 0:o.width,dense:null==Z?void 0:Z.dense}))}const RO=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"}}]}),OO=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"}}]}),IO=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"}}]}),PO=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 _O=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:RO,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:IO,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:OO,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:PO,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{o.clearItemStates(!1),n.selectListObjectExcluded("/qListObjectDef")}}]};const TO=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 NO(e){const t=vy(),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 MO="njs-cell-action",zO=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,item:r,addAnchor:o=!1}=e;const a=vy(),{hidden:i,disabled:l,style:s,hasSvgIconShape:c}=NO(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;return G.createElement(hw,{ref:o?null:t,title:r.label,onClick:r.action,onKeyDown:d,disabled:l,style:s,className:MO,size:"large",disableRipple:!0,"aria-expanded":n,"aria-controls":"moreMenuList"},c&&AL(r.getSvgIconShape()),o&&G.createElement("div",{ref:t,style:{bottom:-u,right:0,position:"absolute",width:"100%",height:0}}))})),AO=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"}}]}),DO=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=>AL(DO(e));const jO="njs-action-toolbar-more",FO={icon:"".concat("More","-icon")},$O=Sy(Ek)((e=>{let{theme:t}=e;return{pointerEvents:"none",["& .".concat(FO.icon)]:{color:t.palette.text.primary}}}));function BO(e){let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:a}=NO(t);return r?null:G.createElement(Pk,{title:t.label,onClick:()=>{t.action(),n()},disabled:o,tabindex:"0"},a&&G.createElement(ok,{className:FO.icon},AL(t.getSvgIconShape())),G.createElement(Sw,{noWrap:!0},t.label))}const WO=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($O,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(pk,{id:"moreMenuList"},n.map(((e,t)=>G.createElement(BO,{key:t,item:e,onActionClick:s})))))})),HO="ActionsToolbar",UO={itemSpacing:"".concat(HO,"-itemSpacing"),firstItemSpacing:"".concat(HO,"-firstItemSpacing"),lastItemSpacing:"".concat(HO,"-lastItemSpacing")},VO=Sy(Ek)((e=>{let{theme:t}=e;return{["& .".concat(UO.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(UO.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(UO.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),GO="njs-action-toolbar-popover",KO=G.forwardRef(((e,t)=>{let{ariaExpanded:n=!1,actions:r=[],first:o=!1,last:a=!1,addAnchor:i=!1}=e;return r.length>0?G.createElement(hC,{item:!0,container:!0,gap:0,wrap:"nowrap"},r.map(((e,l)=>{let s=[];const c=o&&0===l,u=a&&r.length-1===l;return c&&!u&&(s=[UO.firstItemSpacing]),u&&!c&&(s=[...s,UO.lastItemSpacing]),c||u||0!==s.length||(s=[UO.itemSpacing]),G.createElement(hC,{item:!0,key:e.key,className:s.join(" ").trim()},G.createElement(zO,{ariaExpanded:n,key:e.key,item:e,ref:0===l?t:null,addAnchor:i}))}))):null})),ZO={pointerEvents:"none"},XO={vertical:"top",horizontal:"right"},QO={vertical:"bottom",horizontal:"right"};function YO(e){let{show:t=!0,actions:n=[],maxItems:r=3,selections:o={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},more:a={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{}},popover:i={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:s=null}=e;const c=function(e){let{api:t,onConfirm:n=(()=>{}),onCancel:r=(()=>{}),onKeyDeactivate:o=(()=>{})}=e;const{translator:a}=d.useContext(zS);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:DO},{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:AO},{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:XL}]}(o),{translator:u,keyboardNavigation:p}=d.useContext(zS),[f,h]=d.useState(!1),m=d.useRef(),g=d.useRef(),v=vy(),y=d.useMemo((()=>({margin:v.spacing(.5,0)}))),b=e=>{const t=g.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};d.useEffect((()=>()=>{h(!1)}),[i.show,t,o.show]),d.useEffect((()=>{if(!l)return;l.on("focus_toolbar_first",(()=>{const e=b(!1);e&&e.focus()})),l.on("focus_toolbar_last",(()=>{const e=b(!0);e&&e.focus()}))}),[]);let x=a.enabled,S=a.actions;const w=a.alignTo||m,E=n.filter((e=>!e.hidden));if(E.length>r){const e=E.splice(-(E.length-r)-1);x=!0,S=[...e,...a.actions]}if(!o.show&&0===E.length)return null;const C={key:"more",label:u.get("Menu.More"),getSvgIconShape:TO,hidden:!1,active:f,enabled:()=>x,action:()=>h(!f)},k=p&&l&&l.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&b(!1)===e.target||!e.shiftKey&&b(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),l.refocusContent())}:null,L=E.length>0,R=S.length>0,O=L&&o.show||R&&o.show,I=G.createElement(hC,{ref:g,onKeyDown:k,container:!0,gap:0,wrap:"nowrap"},L&&G.createElement(KO,{actions:E,first:!0,last:!R&&!o.show}),R&&G.createElement(KO,{ref:m,ariaExpanded:f,actions:[C],first:!L,last:!o.show,addAnchor:!0}),O&&G.createElement(hC,{item:!0,className:UO.itemSpacing,style:y},G.createElement(QE,{orientation:"vertical"})),o.show&&G.createElement(KO,{actions:c,first:!L&&!R,last:!0}),f&&G.createElement(WO,{show:f,actions:S,alignTo:w,popoverProps:a.popoverProps,popoverPaperStyle:a.popoverPaperStyle,onCloseOrActionClick:()=>{h(!1)}}));return i.show?G.createElement(VO,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:i.show,anchorEl:i.anchorEl,anchorOrigin:XO,transformOrigin:QO,hideBackdrop:!0,style:ZO,PaperProps:{className:GO,style:{pointerEvents:"auto",padding:v.spacing(.8)}}},I):t&&I}var JO=e=>AL((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 eI="/qListObjectDef",tI=Sy(TC)((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}})),nI=Sy(jk)((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}}));function rI(e){let{selections:t,selectionState:n,model:r,keyboard:o,dense:a=!1,visible:i=!0,autoFocus:l=!0,wildCardSearch:s=!1,searchEnabled:c}=e;const{translator:u}=d.useContext(zS),[p,f]=d.useState(""),[h,m]=d.useState(!1),g=d.useRef(),v=vy(),{getStoreValue:y}=iO(r),b=async()=>{if(t.isModal())try{await r.abortListObjectSearch(eI)}finally{f("")}};d.useEffect((()=>{i||b()}),[i]),d.useEffect((()=>(t.on("deactivated",b),()=>{t.removeListener&&t.removeListener("deactivated",b)})),[]),d.useEffect((()=>{if(h&&g.current){const e=p.length-1;g.current.setSelectionRange(e,e),m(!1)}}),[h,g.current]);const x=async()=>{let e;return await r.searchListObjectFor(eI,p)&&p.length&&y("listCount")>0&&(e=r.acceptListObjectSearch(eI,!0),t.selectionsMade=!0,n.clearItemStates(!1),f("")),e};return i&&!1!==c?G.createElement(nI,{startAdornment:G.createElement(tI,{position:"start"},G.createElement(JO,{size:a?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,backgroundColor:"transparent","& fieldset":{border:"1px solid ".concat(v.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"},paddingLeft:"".concat(9,"px")},a&&{fontSize:12,paddingLeft:v.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],inputRef:g,size:"small",fullWidth:!0,placeholder:u.get("Listbox.Search"),value:p,onFocus:()=>{s&&(f("**"),m(!0)),t.isModal()||t.begin(["/qListObjectDef"])},onChange:async e=>(f(e.target.value),e.target.value.length?r.searchListObjectFor(eI,e.target.value):b()),onKeyDown:async e=>{let n;switch(e.key){case"Enter":n=await x();break;case"Escape":n=t.isActive()&&t.cancel(),e.preventDefault(),e.stopPropagation()}return n},autoFocus:l,inputProps:{tabIndex:!o||o.enabled&&!o.active?-1:0}}):null}function oI(e){return Object.keys(ne.prototype).forEach((t=>{e[t]=ne.prototype[t]})),ne.init(e),e}const aI=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 oI(l),l},iI=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 lI(e,t,n,r){const o=Array.isArray(n)?n:[n],[a]=US(e),[i]=TL(t),l=t?t.id:null,[s]=jS(),[c]=$S(),u=s.get(e.id);let p=c.get(l);return d.useEffect((()=>{a&&t&&!p&&(p=aI({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}=iI({elements:o,objectSelections:p,options:r});return p.addListener("activated",e),p.addListener("deactivated",t),()=>{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=VL(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 cI=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 uI(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=vy(),[g]=RL({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),v=d.useCallback((()=>{g.lock("/qListObjectDef")}),[g]),y=d.useCallback((()=>{g.unlock("/qListObjectDef")}),[g]),{translator:b}=d.useContext(zS),x=d.useRef(),S=d.useRef(),[w]=lI(i,g,S),[E]=TL(g),[C]=d.useState((()=>sI()));if(d.useEffect((()=>{w&&p&&(w.isModal(g)||w.goModal("/qListObjectDef"))}),[w,p]),!g||!E||!b)return null;const k=!0===E.qListObject.qDimensionInfo.qLocked,L=(e,t)=>{const n="escapeKeyDown"!==t;w.noModal(n),a()},R=_O({layout:E,model:g,translator:b,selectionState:C}),O=function(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return cI(t,"qSelected",0)+cI(t,"qSelectedExcluded",0)+cI(t,"qLocked",0)+cI(t,"qLockedExcluded",0)>0}(E);return G.createElement(Ek,{open:p,onClose:L,anchorEl:t.current,anchorOrigin:n,transformOrigin:r,PaperProps:{style:{minWidth:"250px"}}},G.createElement(hC,{container:!0,direction:"column",gap:0,ref:S},G.createElement(hC,{item:!0,container:!0,style:{padding:m.spacing(1)}},G.createElement(hC,{item:!0},k?G.createElement(hw,{onClick:y,disabled:!k,size:"large"},G.createElement(qL,{title:b.get("Listbox.Unlock")})):G.createElement(hw,{onClick:v,disabled:!O,size:"large"},G.createElement(jL,{title:b.get("Listbox.Lock")}))),G.createElement(hC,{item:!0,xs:!0}),G.createElement(hC,{item:!0},G.createElement(YO,{more:{enabled:!k,actions:R,alignTo:x,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:w,onConfirm:L,onCancel:()=>L(0,"escapeKeyDown")}}))),G.createElement(hC,{item:!0,xs:!0},G.createElement("div",{ref:x}),G.createElement(rI,{visible:!0,model:g,listCount:f,selections:w,selectionState:C,keyboard:{enabled:!1},autoFocus:null==c||c}),G.createElement(LO,{model:g,layout:E,selections:w,selectionState:C,direction:"ltr",onSetListCount:e=>h(e)}))))}function dI(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=d.useContext(zS),s=a||d.useRef(),c=vy(),[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(hC,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},G.createElement(Sw,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),G.createElement(Sw,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},w)),m.qLocked?k=G.createElement(hC,{item:!0},G.createElement(hw,{size:"large"},G.createElement(qL,null))):m.qOneAndOnlyOne||(k=G.createElement(hC,{item:!0},G.createElement(hw,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])},size:"large"},G.createElement(DL,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(hC,{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(uI,{alignTo:s,show:u,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),a?G.createElement(uI,{alignTo:s,show:!0,close:h,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var pI=e=>AL((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 fI={item:"".concat("MultiState","-item")},hI=Sy(hC)((e=>{let{theme:t}=e;return{["&.".concat(fI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function mI(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(zS),h=f.get("Selection.ClearAllStates"),m=()=>{s(-1),o()};let g=null;r||(g=G.createElement(G.Fragment,null,G.createElement(hC,{item:!0,xs:!0,zeroMinWidth:!0},G.createElement(oE,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},G.createElement(Sw,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),G.createElement(hC,{item:!0},G.createElement("div",{style:{width:"12px"}})),G.createElement(hC,{item:!0},G.createElement(hw,{size:"large"},G.createElement(pI,null)))));const v=G.createElement(qC,{dense:!0},G.createElement(YC,{title:h,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},G.createElement(wS,{variant:"contained",fullWidth:!0},h)),t.states.map(((e,r)=>G.createElement(YC,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},G.createElement(iE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},G.createElement(dI,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),y=G.createElement(Ek,{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(hI,{container:!0,gap:0,className:fI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),p.current=e.currentTarget,i(!a))}},g,a&&y,l>-1&&G.createElement(uI,{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(uI,{alignTo:p,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const gI="More",vI={item:"".concat(gI,"-item"),badge:"".concat(gI,"-badge")},yI=Sy(hC)((e=>{let{theme:t}=e;return{["&.".concat(vI.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(vI.badge)]:{padding:t.spacing(0,1)}}}));function bI(e){let{items:t=[],api:n}=e;const r=vy(),[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(mI,{field:t[i],api:n,moreAlignTo:u,onClose:p}):G.createElement(dI,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:p})),G.createElement(yI,{container:!0,gap:0,className:vI.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},G.createElement(hC,{item:!0},G.createElement(iE,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},G.createElement(Sw,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),G.createElement(hC,{item:!0},G.createElement(hw,{size:"large"},G.createElement(pI,null))),o&&G.createElement(Ek,{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(qC,{dense:!0},t.map(((e,t)=>G.createElement(YC,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},G.createElement(iE,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?G.createElement(mI,{field:e,api:n}):G.createElement(dI,{field:e,api:n}))))))),f)}function xI(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 SI(e){let{api:t,app:n}=e;const r=vy(),[o]=IL(n),[a]=TL(o),[i,l]=d.useState({items:[],more:[]}),[s]=WS(),[c,u]=ML(),[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&&xI(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>xI(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(hC,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>G.createElement(hC,{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(mI,{field:e,api:t}):G.createElement(dI,{field:e,api:t})))),i.more.length>0&&G.createElement(hC,{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(bI,{items:i.more,api:t})))}var wI=e=>AL((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 EI=e=>AL((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 CI(e){const[t]=IL(e),[n]=TL(t),[r]=NL(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 kI(e){let{api:t,app:n}=e;const{translator:r}=d.useContext(zS),[o]=CI(n);return G.createElement(hC,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},G.createElement(hC,{item:!0},G.createElement(hw,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},G.createElement(wI,null))),G.createElement(hC,{item:!0},G.createElement(hw,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},G.createElement(EI,null))),G.createElement(hC,{item:!0},G.createElement(hw,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},G.createElement(qO,null))))}const LI=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function RI(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function OI(){return LI.map(RI).join("")}function II(e){let{app:t}=e;const n=vy(),[r]=US(t);return r?G.createElement(hC,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},G.createElement(hC,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},G.createElement(kI,{api:r,app:t})),G.createElement(hC,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},G.createElement(SI,{api:r,app:t}))):null}function PI(e){let{element:t,app:n}=e;return Sp.createPortal(G.createElement(II,{app:n}),t,OI())}var _I=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},TI=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}}(),NI=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},MI=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")},AI=void 0;AI="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var DI=null,qI=null,jI=AI.clearTimeout,FI=AI.setTimeout,$I=AI.cancelAnimationFrame||AI.mozCancelAnimationFrame||AI.webkitCancelAnimationFrame,BI=AI.requestAnimationFrame||AI.mozRequestAnimationFrame||AI.webkitRequestAnimationFrame;function WI(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__&&DI(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=AI.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==$I||null==BI?(DI=jI,qI=function(e){return FI(e,20)}):(DI=function(e){var t=zI(e,2),n=t[0],r=t[1];$I(n),jI(r)},qI=function(e){var t=BI((function(){jI(n),e()})),n=FI((function(){$I(t),e()}),20);return[t,n]});var HI=function(e){function t(){var e,n,r;_I(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=MI(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},MI(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),TI(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=WI(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:NI({},c,a)},!p&&t(u))}}]),t}(d.PureComponent);HI.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};var UI=e=>AL((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 VI="ListBoxInline",GI={listBoxHeader:"".concat(VI,"-listBoxHeader"),screenReaderOnly:"".concat(VI,"-screenReaderOnly"),listboxWrapper:"".concat(VI,"-listboxWrapper")},KI=Sy(hC,{shouldForwardProp:e=>!["containerPadding"].includes(e)})((e=>{var t,n;let{theme:r,containerPadding:o}=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(GI.listBoxHeader)]:{alignSelf:"center",display:"inline-flex",width:"calc(100% - ".concat(28,"px)")},["& .".concat(GI.screenReaderOnly)]:{position:"absolute",height:0,width:0,overflow:"hidden"},["& .".concat(GI.listboxWrapper)]:{padding:o}}})),ZI=Sy(Sw)((e=>{var t,n,r,o,a,i,l,s,c;let{theme:u}=e;return{color:null===(t=u.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=u.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=u.listBox)||void 0===l||null===(s=l.title)||void 0===s||null===(c=s.main)||void 0===c?void 0:c.fontFamily}}));const XI=G.memo((function(e){var t;let{options:n,layout:r}=e;const{app:o,direction:a,frequencyMode:i,checkboxes:s,search:c=!0,focusSearch:u=!1,rangeSelect:p=!0,model:f,selections:h,update:m,fetchStart:g,selectDisabled:v=(()=>!1),postProcessPages:y,calculatePagesHeight:b,showGray:x=!0,scrollState:S}=n;let{toolbar:w=!0}=n;const E=vy(),C=d.useCallback((()=>{f.unlock("/qListObjectDef")}),[f]),{translator:k,keyboardNavigation:L,themeApi:R,constraints:O}=d.useContext(zS);E.listBox=(e=>{const t=t=>e.getStyle("object","","listBox.".concat(t));return{backgroundColor:t("backgroundColor"),title:{main:{color:t("title.main.color"),fontSize:t("title.main.fontSize"),fontFamily:t("title.main.fontFamily")}},content:{color:t("content.color"),fontSize:t("content.fontSize"),fontFamily:t("content.fontFamily")}}})(R);const I=d.useRef(),[P,_]=(()=>{const[e,t]=d.useState({}),n=d.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[T,N]=d.useState(!1),[M,z]=d.useState(!1),[A,D]=d.useState(!1),[q,j]=d.useState(!1),[F,$]=d.useState({down:0,up:0,scrollPosition:""}),[B,W]=d.useState({start:0,stop:0}),[H]=US(o),U=d.useRef(null),[V]=d.useState((()=>sI())),{handleKeyDown:K,handleOnMouseEnter:Z,handleOnMouseLeave:X}=JL({setKeyboardActive:D,hovering:q,setHovering:j,updateKeyScroll:e=>$((t=>l(l({},t),e))),containerRef:I,currentScrollIndex:B,app:o,appSelections:H,constraints:O}),Q={enabled:L,active:A};void 0!==(null==r?void 0:r.toolbar)&&(w=r.toolbar);const Y=w&&""===(null==r?void 0:r.title);if(w=w&&""!==(null==r?void 0:r.title),d.useEffect((()=>{const e=()=>{N(!0),"toggle"===c&&!1===w&&z(!0)},t=()=>{N(!1),"toggle"===c&&z(!1)};return h&&(h.isModal()||(h.on("activated",e),h.on("deactivated",t)),N(h.isActive())),()=>{h&&h.removeListener&&(h.removeListener("activated",e),h.removeListener("deactivated",t))}}),[h,w]),d.useEffect((()=>{if(P&&P.current&&(c&&u||"toggle"===c&&M)){const e=P.current.querySelector("input");e&&e.focus()}}),[P&&P.current,M,c,u]),!f||!r||!k)return null;const J=!0===r.qListObject.qDimensionInfo.qLocked,ee="H"===r.qListObject.qDimensionInfo.qGrouping,te=_O({layout:r,model:f,translator:k,selectionState:V}),ne=(!0===c||"toggle"===c&&M)&&!v(),{layoutOptions:re={}}=r,oe=null!==(t=re.dense)&&void 0!==t&&t,ae=49+(ne?oe?27:40:0)+(oe?39:49),{wildCardSearch:ie,searchEnabled:le}=r,se=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:T,containerRef:I,isLocked:J,listboxSelectionToolbarItems:te,selections:h}),ce=ne&&"toggle"===c,ue=!1!==le&&"toggle"===c&&!(null!=O&&O.active),de=J||ue,pe=de||ee,fe=(de?28:0)+(ee?19:0),he=9-(de?7:0);let me;return"grid"===(null==re?void 0:re.dataLayout)&&(me="row"===re.layoutOrder?"2px 4px":"2px 6px 2px 4px"),G.createElement(G.Fragment,null,Y&&G.createElement(YO,se(!0)),G.createElement(KI,{className:"listbox-container",container:!0,tabIndex:Q.enabled&&!Q.active?0:-1,direction:"column",gap:0,containerPadding:me,style:{height:"100%",minHeight:"".concat(ae,"px"),flexFlow:"column nowrap"},onKeyDown:K,onMouseEnter:Z,onMouseLeave:X,ref:I},w&&G.createElement(hC,{item:!0,container:!0,style:{padding:E.spacing(1),paddingLeft:"".concat(he,"px")},wrap:"nowrap"},G.createElement(hC,{item:!0,container:!0,height:32,wrap:"nowrap"},pe&&G.createElement(hC,{item:!0,sx:{display:"flex",alignItems:"center",width:fe}},J?G.createElement(hw,{tabIndex:-1,onClick:C,disabled:v(),size:"large"},G.createElement(qL,{title:k.get("Listbox.Unlock"),disableRipple:!0,style:{fontSize:"12px"}})):ue&&G.createElement(hw,{onClick:()=>{z(!M)},tabIndex:-1,title:k.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn"},G.createElement(JO,{style:{fontSize:"12px"}})),ee&&G.createElement(UI,{tabIndex:-1,title:k.get("Listbox.DrillDown"),size:"large",style:{fontSize:"12px"}})),G.createElement(hC,{item:!0,className:GI.listBoxHeader},G.createElement(ZI,{variant:"h6",noWrap:!0,ref:U,title:r.title},r.title))),G.createElement(hC,{item:!0,xs:!0}),G.createElement(hC,{item:!0},G.createElement(YO,se(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:I,titleRef:U,iconsWidth:fe}))))),G.createElement(hC,{item:!0,container:!0,direction:"column",style:{height:"100%",minHeight:"".concat(ae,"px")},role:"region","aria-label":k.get("Listbox.ResultFilterLabel")},G.createElement(hC,{item:!0,ref:_},G.createElement("div",{className:GI.screenReaderOnly},k.get("Listbox.Search.ScreenReaderInstructions")),G.createElement(rI,{selections:h,selectionState:V,model:f,dense:oe,keyboard:Q,visible:ne,search:c,autoFocus:ce,searchContainerRef:_,wildCardSearch:ie,searchEnabled:le})),G.createElement(hC,{item:!0,xs:!0,className:GI.listboxWrapper},G.createElement("div",{className:GI.screenReaderOnly},k.get("Listbox.ScreenReaderInstructions")),G.createElement(HI,null,(e=>{let{height:t,width:n}=e;return G.createElement(LO,{model:f,constraints:O,layout:r,selections:h,selectionState:V,direction:a,frequencyMode:i,rangeSelect:p,checkboxes:s,height:t,width:n,update:m,fetchStart:g,postProcessPages:y,calculatePagesHeight:b,selectDisabled:v,keyboard:Q,showGray:x,scrollState:S,keyScroll:{state:F,reset:()=>$({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:B,set:W}})}))))))}));function QI(e){let{options:t={}}=e;const{model:n}=t,[r]=TL(n);return G.createElement(XI,{options:t,layout:r})}const YI=["__DO_NOT_USE__"],JI=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=u(e,YI),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 eP(e){let{app:t,fieldIdentifier:n,qId:r,stateName:o,element:a,options:i}=e;const{isExistingObject:s,hasExternalSelectionsApi:c}=function(e){let{qId:t,options:n}=e;return{isExistingObject:!(!t&&!n.sessionModel),hasExternalSelectionsApi:!!n.selectionsApi}}({qId:r,options:i}),[u,p]=d.useState(0);d.useEffect((()=>{if(u)throw new Error("Source or selection Api can not change after a listbox has been mounted");p(u+1)}),[s,c]);const f=s?function(e){let{app:t,qId:n,options:r={}}=e;const[o,a]=d.useState(),[i]=kL(),{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),l(t.qDim.qFieldDefs?t.qDim.qFieldDefs[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=OI());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),"N"!==x||S){const e=r.qLibraryId?i:k;C.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}const[L]=RL(C,s?null:n,k,o);return d.useEffect((()=>{L&&p(L)}),[L]),u}({app:t,fieldIdentifier:n,stateName:o,options:i}),h=d.useRef(a),m=c?i.selectionsApi:lI(t,f,[h,".njs-action-toolbar-more",".njs-action-toolbar-popover"],i)[0],g=d.useMemo((()=>l(l({},i),{},{selections:m,model:f,app:t})),[i,m,f,t]);return m&&f?G.createElement(QI,{options:g}):null}function tP(e){let{element:t,app:n,fieldIdentifier:r,qId:o,stateName:a="$",options:i={}}=e;return Sp.createPortal(G.createElement(eP,{app:n,element:t,fieldIdentifier:r,qId:o,stateName:a,options:i}),t,OI())}const nP={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},rP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=l({},nP);return Ve(!0,t,e),t};function oP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a={}}=e;const[i,l]=d.useState(!!a.show);return G.createElement(uI,{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 aP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function iP(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 lP(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 s=n;for(let e=0;e<i.length;e++){const t=i[e];s=t?s[t]:s}const c=function(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||OI(),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),aP(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 iP(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||OI(),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),aP(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];iP(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}({dc:s,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?c.addMeasure(e):c.addDimension(e)}))}var sP=(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},cP=(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]},uP=e=>0===Object.keys(e).length&&e.constructor===Object;var dP={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 pP=2**53-1;function fP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function hP(e,t){const n=Ve(!0,{},t,e);return sP(n,"qOtherTotalSpec.qOtherCounted")||cP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),sP(n,"qOtherTotalSpec.qOtherLimit")||cP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function mP(e,t){return Ve(!0,{},t,e)}function gP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var vP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===sP(e,t)&&cP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:fP,importCommonProperties:function(e,t,n){const r="masterobject"===sP(t,"properties.qInfo.qType")?"masterobject":sP(n,"qInfo.qType");cP(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:hP,createDefaultMeasure:mP,resolveValue:gP,getHypercubePath:function(e){const t=sP(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?(dP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,dP.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?cP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||fP(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=gP(a.max,r.dimensions.length,pP),l=gP(a.min,r.dimensions.length,0);return{maxDimensions:gP(o.max,i,pP),minDimensions:gP(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(hP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(hP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(hP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(hP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(hP(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(mP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(mP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(mP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(mP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(mP(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=sP(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=sP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var yP={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=sP(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();dP.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&&(vP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!uP(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=vP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=sP(n,a||"").qHyperCubeDef,c=sP(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=vP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:h=vP.getDefaultDimension(),defaultMeasure:m=vP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,vP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&vP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),vP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:h}),vP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:m}),vP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),vP.copyPropertyIfExist("qMaxStackedCells",s,c),vP.copyPropertyIfExist("qNoOfLeftDims",s,c),vP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),vP.copyPropertyOrSetDefault("qMode",s,c,"S"),vP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),vP.copyPropertyOrSetDefault("qSortbyYValue",s,c),vP.copyPropertyOrSetDefault("qIndentMode",s,c),vP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),vP.importCommonProperties(l,t,n),vP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),vP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const bP=e=>sP(e,"data.targets.0.propertyPath"),xP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return yP.exportProperties})(bP(e))},SP=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return yP.importProperties})(bP(e))},wP=async e=>{let{halo:t,model:n,cellRef:r,newType:o}=e;const a=await n.getFullPropertyTree(),i=r.current.getQae(),s=xP(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 SP(u)({exportFormat:s({propertyTree:a,hypercubePath:vP.getHypercubePath(i)}),initialProperties:l({qInfo:{qType:o},visualization:o},sP(u,"properties.initial",{})),dataDefinition:sP(u,"data.targets.0.",{}),hypercubePath:vP.getHypercubePath(u)})},EP={hypercube:yP};var CP=e=>AL((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 kP(e){let{d:t}=e;const n=vy();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(Sw,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},G.createElement(kC,null,t.missing||t.error?G.createElement(CP,{style:a}):G.createElement(QL,{style:a})));return G.createElement(hC,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},G.createElement(hC,{item:!0},i),G.createElement(hC,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},G.createElement(Sw,{noWrap:!0,component:"p"},G.createElement(Sw,{component:"span",variant:"subtitle2",color:r},t.description),G.createElement(Sw,{component:"span"}," "),G.createElement(Sw,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function LP(e){let{data:t}=e;const n=vy();return G.createElement(hC,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>G.createElement(kP,{d:e,key:t})));return r.length>0&&G.createElement(hC,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},G.createElement(Sw,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function RP(e){let{title:t="Error",message:n="",data:r=[]}=e;return G.createElement(hC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},G.createElement(hC,{item:!0},G.createElement(CP,{style:{fontSize:"38px"}})),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"h6",align:"center","data-tid":"error-title"},t)),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),G.createElement(LP,{data:r}))}const OP=["size"],IP="Progress",PP={root:"".concat(IP,"-root"),front:"".concat(IP,"-front"),back:"".concat(IP,"-back")},_P=Sy("div")((e=>{let{theme:t}=e;return{["&.".concat(PP.root)]:{position:"relative",display:"inline-block"},["& .".concat(PP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(PP.back)]:{color:t.palette.divider}}})),TP={small:16,medium:32,large:64,xlarge:128};function NP(e){let{size:t="medium"}=e,n=u(e,OP);const r=TP[t];return G.createElement(_P,{className:PP.root},G.createElement(jE,c({variant:"determinate",value:100,className:PP.back,size:r,thickness:3},n)),G.createElement(jE,c({variant:"indeterminate",disableShrink:!0,className:PP.front,size:r,thickness:3},n)))}const MP=["cancel","translator"],zP=["retry","translator"],AP={stripes:"".concat("LongRunningQuery","-stripes")},DP=Sy(hC)((()=>({["& .".concat(AP.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 qP(e){let{cancel:t,translator:n}=e,r=u(e,MP);return G.createElement(G.Fragment,null,G.createElement(DP,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},G.createElement(hC,{item:!0},G.createElement(NP,null)),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),G.createElement(hC,c({item:!0},r),G.createElement(wS,{variant:"contained",onClick:t},n.get("Cancel"))))}function jP(e){let{retry:t,translator:n}=e,r=u(e,zP);return G.createElement(G.Fragment,null,G.createElement(hC,{item:!0},G.createElement(CP,{style:{fontSize:"38px"}})),G.createElement(hC,{item:!0},G.createElement(Sw,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),G.createElement(hC,{item:!0},G.createElement(wS,c({variant:"contained",onClick:t},r),n.get("Retry"))))}function FP(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=d.useContext(zS);return G.createElement(hC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:AP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&G.createElement(qP,{cancel:r.cancel,translator:o,className:AP.cancel}),n&&G.createElement(jP,{retry:r.retry,translator:o,className:AP.retry}))}function $P(){return G.createElement(hC,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},G.createElement(NP,{size:"large"}))}const BP="Header",WP={containerStyle:"".concat(BP,"-containerStyle"),containerTitleStyle:"".concat(BP,"-containerTitleStyle")},HP=Sy(hC)((e=>{let{theme:t}=e;return{["&.".concat(WP.containerStyle)]:{flexGrow:0},["&.".concat(WP.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),UP="njs-cell-title",VP="njs-cell-sub-title";function GP(e){let{layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:a}=e;const i=t.showTitles&&!!t.title,l=t.showTitles&&!!t.subtitle,s=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[c,u]=d.useState([]),[p,f]=ML(),[h,m]=d.useState(!1);d.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{u([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),d.useEffect((()=>{if(!f)return;const{width:e}=f;m(e<221)}),[f]);const g=i||l,v=[WP.containerStyle,...g?[WP.containerTitleStyle]:[]],y=(o||s)&&(h||!g),b=g&&!y&&!h,x=G.createElement(YO,{show:b,selections:{show:s,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:c,popover:{show:y,anchorEl:r},focusHandler:a});return G.createElement(HP,{ref:p,item:!0,container:!0,wrap:"nowrap",className:v.join(" ")},G.createElement(hC,{item:!0,zeroMinWidth:!0,xs:!0},G.createElement(hC,{container:!0,wrap:"nowrap",direction:"column"},i&&G.createElement(Sw,{variant:"h6",noWrap:!0,className:UP},t.title),l&&G.createElement(Sw,{variant:"body2",noWrap:!0,className:VP},t.subtitle))),G.createElement(hC,{item:!0},x))}const KP={itemStyle:"".concat("Footer","-itemStyle")},ZP=Sy(hC)((e=>{let{theme:t}=e;return{["& .".concat(KP.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),XP="njs-cell-footer";function QP(e){let{layout:t}=e;return t&&t.showTitles&&t.footnote?G.createElement(ZP,{container:!0},G.createElement(hC,{item:!0,className:KP.itemStyle},G.createElement(Sw,{noWrap:!0,variant:"body2",className:XP},t.footnote))):null}class YP{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 JP="njs-viz";function e_(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(zS),[h]=d.useState((()=>new YP)),[m,g]=d.useState(!1),[v,y]=d.useState(0),[b,x,S]=ML(),[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:JP},G.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const t_={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},n_={"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 r_(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}const o_=(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=r_(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=n_[e.bgImage.position]),n}(e),l=function(e){var t;let n=t_.originalSize;return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.sizing&&(n=t_[e.bgImage.sizing]),n}(e);return a?{url:a,pos:i,size:l}:void 0}},a_=(e,t)=>{const n=null==e?void 0:e.bgColor;if(n&&t)return n.useExpression?t.validateColor(n.colorExpression):n.color&&"none"!==n.color.color?t.getColorPickerColor(n.color,!0):void 0},i_="njs-cell",l_=(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 s_(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($P,null):null}const c_=e=>!e.qError||7005===e.qError.qErrorCode,u_=(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}})),d_=e=>e&&(Array.isArray(e)?e:[e])||[],p_=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:u_(o,d_(i.qDimensionInfo||i.qItems),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:u_(a,d_(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},f_=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=d_(f.qDimensionInfo||f.qItems).filter(c_),m=d_(f.qMeasureInfo).filter(c_);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=p_(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}]},h_=d.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:o,initialSnPlugins:a,initialError:i,onMount:s,currentId:c}=e;const{app:u,types:p}=n,{nebbie:f}=n.public,{disableCellPadding:h=!1}=n.context||{},{theme:m,translator:g,language:v,keyboardNavigation:y}=d.useContext(zS),b=vy(),[x,S,w]=ML(),[E,C]=d.useReducer(l_,{loading:!1,loaded:!1,longRunningQuery:!1,error:(k=i)?{title:k.message}:null,sn:null,visualization:null});var k;const[L,{validating:R,canCancel:O,canRetry:I},P]=TL(r),[_]=NL(u),[T,N,M]=ML(),[z,A]=d.useState(o),[D,q]=d.useState(a),j="njs-cell-".concat(c),[F]=lI(u,r,["#".concat(j),".njs-action-toolbar-popover"]),[$,B]=d.useState(!1),W=d.useRef({enter:null,leave:null}),[H,U]=d.useState(void 0),[V,K]=d.useState(void 0),Z=d.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});d.useEffect((()=>{oI(Z.current)}),[]),d.useEffect((()=>{const e=null!=L&&L.components?L.components.find((e=>"general"===e.key)):null;U(a_(e,n.public.theme)),K(o_(e,n.app))}),[L,n.public.theme,n.app,m]),Z.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&M&&M.focus()},Z.current.refocusContent=()=>{E.sn.component&&"function"==typeof E.sn.component.focus&&E.sn.component.focus()};d.useEffect((()=>{if(i||!_||!L)return;if(E.visualization===L.visualization&&E.sn)return void(async e=>{const[t,n]=await f_(g,L,e.generator.qae.data,r);C(t?{type:"ERROR",error:n}:{type:"RENDER"}),(e=>{let{sn:t,layout:n,model:r}=e;const o=t&&t.component&&t.component.selections;if(o&&o.id&&r.id&&o.id===r.id){if(n&&n.qSelectionInfo&&n.qSelectionInfo.qInSelections&&!o.isModal()){const{targets:e}=t.generator.qae.data,n=e[0].propertyPath;o.goModal(n)}n.qSelectionInfo&&n.qSelectionInfo.qInSelections||o.isModal()&&o.noModal()}})({sn:E.sn,layout:L,model:r})})(E.sn);const e=p.getSupportedVersion(L.visualization,L.version);if(e)return(async(e,t)=>{C({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}=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})}catch(e){t({type:"ERROR",error:{title:e.message}})}})({dispatch:C,types:p,visualization:e,version:t,model:r,app:u,selections:F,nebbie:f,focusHandler:Z.current});n&&(C({type:"LOADED",sn:n,visualization:e}),s())})(L.visualization,e),()=>{};C({type:"ERROR",error:{title:"Could not find a version of '".concat(L.visualization,"' that supports current object version. Did you forget to register ").concat(L.visualization,"?")}})}),[p,E.sn,r,F,L,_,v]),d.useEffect((()=>{if(!R)return;const e=setTimeout((()=>C({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[R]),d.useImperativeHandle(t,(()=>({getQae:()=>E.sn.generator.qae,toggleFocus(e){"function"==typeof E.sn.component.focus&&(e?E.sn.component.focus():E.sn.component.blur())},setSnOptions:A,setSnPlugins:q,async takeSnapshot(){const{width:e,height:t}=S;let n=JSON.parse(JSON.stringify(L));return"function"==typeof E.sn.component.setSnapshotData&&(n=await E.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:g.language(),theme:b.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)}})),[E.sn,N,S,L,b.name,_]);let X=null;return E.loading&&!E.longRunningQuery?X=G.createElement(s_,null):E.error?X=G.createElement(RP,E.error):E.loaded&&(X=G.createElement(e_,{key:L.visualization,sn:E.sn,halo:n,snOptions:z,snPlugins:D,layout:L,appLayout:_})),G.createElement(sw,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:H||"unset",backgroundImage:V&&V.url?"url(".concat(V.url,")"):void 0,backgroundRepeat:"no-repeat",backgroundSize:V&&V.size,backgroundPosition:V&&V.pos},elevation:0,square:!0,className:i_,ref:x,id:j,onMouseEnter:()=>{W.current.leave&&clearTimeout(W.current.leave),W.enter||(W.current.enter=setTimeout((()=>{B(!0),W.current.enter=null}),250))},onMouseLeave:()=>{W.current.enter&&clearTimeout(W.current.enter),W.current.leave||(W.current.leave=setTimeout((()=>{B(!1),W.current.leave=null}),750))}},G.createElement(hC,{container:!0,direction:"column",gap:0,style:l(l({position:"relative",width:"100%",height:"100%"},h?{}:{padding:b.spacing(1)}),E.longRunningQuery?{opacity:"0.3"}:{})},w&&L&&E.sn&&G.createElement(GP,{layout:L,sn:E.sn,anchorEl:w,hovering:$,focusHandler:Z.current}," "),G.createElement(hC,{tabIndex:y?0:-1,onKeyDown:y?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:T},X),G.createElement(QP,{layout:L})),E.longRunningQuery&&G.createElement(FP,{canCancel:O,canRetry:I,api:P}))}));function m_(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=OI(),d=Sp.createPortal(G.createElement(h_,{ref:c,halo:t,model:r,currentId:u,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,u),p=()=>{s.remove(d),r.removeListener("closed",p)};return r.on("closed",p),s.add(d),s.addCell(u,c),[p,c]}function g_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function v_(e,t){return g_(e)&&g_(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function y_(){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)?v_(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...y_("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function b_(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 x_=()=>{};function S_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=x_,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=>{b_(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=x_},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await wP({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},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=m_({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=y_("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage:()=>a.current.exportImage(),takeSnapshot:()=>a.current.takeSnapshot(),getModel:()=>e}};return h}async function w_(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=S_({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 E_(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&&lP({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);LL.set(p.id,p);const f=(e=>{const t=CL({type:"SET",value:e});return()=>{t(),LL.clear(e.id)}})(p);return w_(p,{options:l,plugins:s,element:c},t,n,(async()=>{await t.app.destroySessionObject(p.id),f()}))}const C_="njs-sheet";function k_(e){let{model:t,halo:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i}=e;const{root:l}=n,[s]=TL(t),{theme:c}=d.useContext(zS),[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=xL.get(i);l||(l=t.app.getObject(n),xL.set(i,l));const s=await l;return LL.set(i,s),w_(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:OI(),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(h_,{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(a_(e,n.public.theme)),g(o_(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:C_,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 L_(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=Sp.createPortal(G.createElement(k_,{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 R_=()=>{};function O_(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=R_,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=>{b_(e),i?(async()=>{await c,a.current.setSnPlugins(e)})():d=e},h={id:e.id,model:e,async destroy(){await r(),o(),o=R_},__DO_NOT_USE__:{mount(r){if(i)throw new Error("Already mounted");return i=r,[o,a]=L_({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=y_("/",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 I_(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=xL.get(i);l||(l=t.app.getObject(n),xL.set(i,l));const s=await l;return LL.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=O_({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):w_(s,{options:r,plugins:o,element:a},t)}function P_(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const __=Ve.bind(null,!0),T_={},{isArray:N_}=Array;function M_(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function z_(e){return void 0===e}function A_(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function D_(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]=z_(e[r||t])?a:e[t],e=e[r||t]})),e}function q_(e,t){let n=!0;if(M_(e)&&M_(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{q_(e[r],t[r])||(n=!1)})),n);if(N_(e)&&N_(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!q_(e[n],t[n]))return!1;return!0}return e===t}T_.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?__({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);q_(a,i)||A_(t,o)||(z_(i)?r.push({op:"add",path:l,value:a}):M_(a)&&M_(i)?r=r.concat(T_.generate(i,a,l)):N_(a)&&N_(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]&&z_(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(q_(t,o))return r;if(!z_(t[0])&&z_(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(T_.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=>{z_(t[o])&&!A_(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},T_.apply=function(e,t){t.forEach((t=>{let n=D_(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(N_(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(N_(o)&&N_(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(M_(o)&&M_(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!A_(i,e)&&delete i[e]})),__(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=D_(e,t.from);N_(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(N_(n)?n.splice(+r,1):delete n[r]);var i}))},T_.clone=function(e){return __({},e)},T_.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},T_.updateObject=function(e,t){Object.keys(e).length?T_.apply(e,T_.generate(e,t)):__(e,t)};const j_=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 F_,$_;function B_(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 W_(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 H_(e){V_(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 U_(e){if(e.__hooks.obsolete)return Promise.resolve();$_=-1,F_=e,F_.__hooks.initiated&&F_.__hooks.list.length;try{F_.fn.call(null)}catch(e){console.error(e)}F_.__hooks.initiated=!0;const t=F_.__hooks;return X_(F_),$_=void 0,F_=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){V_(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){V_(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 V_(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 G_(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 K_(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 Z_(e){return e.__hooks.imperativeHandle}function X_(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Q_(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,X_(e))}function Y_(e){if(void 0===F_)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=F_.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function J_(e){Y_(++$_);return F_.context[e]}function eT(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function tT(e){return{__hooked:!0,fn:e,initiate:W_,run:U_,teardown:H_,runSnaps:G_,runMenu:K_,focus:lT,blur:sT,observeActions:Q_,getImperativeHandle:Z_,updateRectOnNextRun:eT}}function nT(e){const t=Y_(++$_);if(!t.value){t.component=F_;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,U_(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function rT(e,t){const n=Y_(++$_);B_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===F_.__hooks.pendingEffects.indexOf(n)&&F_.__hooks.pendingEffects.push(n))}function oT(e,t){const n=Y_(++$_);B_(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],F_.__hooks.pendingLayoutEffects.push(n))}function aT(e,t){const n=Y_(++$_);return B_(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function iT(){return J_("element")}function lT(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 sT(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 cT={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},uT=Object.keys(cT);function dT(e,t){const n=l({},cT);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!==uT.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=j_(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 pT(e,t,n){"function"==typeof e.component&&(e.component=tT(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,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):dT(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=T_.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));T_.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=T_.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 fT=()=>{};function hT(e,t){return void 0===e?()=>t:()=>e}function mT(e){const t=e||{};return{min:"function"==typeof t.min?t.min:hT(t.min,0),max:"function"==typeof t.max?t.max:hT(t.max,1e3),added:t.added||t.add||fT,description:t.description||fT,moved:t.moved||t.move||fT,removed:t.removed||t.remove||fT,replaced:t.replaced||t.replace||fT,isDefined:()=>!!e}}function gT(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:mT(e.dimensions),measures:mT(e.measures)}}function vT(){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(gT)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function yT(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:vT(n.qae),component:n.component||{},create:e=>pT(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var bT={},xT={get exports(){return bT},set exports(e){bT=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)}}(xT,bT);const ST={};async function wT(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!ST[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);ST[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 ST[a]}function ET(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)||bT.satisfies(e,a.deps.properties),supernova:()=>wT(i.name,i.version,t,o.load).then((e=>(n=n||yT(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 CT(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=ET(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(ST).forEach((t=>{t.split("__")[0]===e&&(ST[t]=void 0)}))}(e)}}}const kT={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()))},LT={context:{},load:()=>{},types:[],themes:[],anything:{},snapshot:kT};LT.context={theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1};const RT=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)},OT=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))},IT=(e,t)=>({context:RT(e.context,t.context),load:t.load||e.load,snapshot:l({},t.snapshot||e.snapshot),types:OT(e.types,t.types),themes:OT(e.themes,t.themes),flags:RT(e.flags,t.flags),anything:RT(e.anything,t.anything)});var PT=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]=GS({app:e,context:a}),s=ut({themes:t.themes,root:i});a.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,flags:P_(t.flags),deviceType:dt(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=CT({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?I_(e,u):E_(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=PI({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,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"));this._instance=tP({element:a,app:e,fieldIdentifier:t,qId:n,options:JI(l({onSelectionActivated:()=>o.emit("selectionActivated"),onSelectionDeactivated:()=>o.emit("selectionDeactivated")},s)),stateName:s.stateName||"$"}),i.add(this._instance)},unmount(){this._instance&&(i.remove(this._instance),this._instance=null)}};return oI(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=rP(l({onPopoverClose:()=>m.emit("fieldPopoverClose")},r));m._popoverInstance=G.createElement(oP,{element:t,key:OI(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),i.add(m._popoverInstance)}}};return u.public.nebbie=m,u.types=d,oI(m),m}return r.createConfiguration=n=>e(IT(t,n)),r.config=t,r}(LT);function _T(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}const TT=globalThis.crypto||{getRandomValues:()=>123456};function NT(){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^TT.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 MT=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},zT=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=MT(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},AT=["id","session"],DT=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function qT(e){return!DT.includes(e)}function jT(e){const t=MT(e.getLayout);return t.qInfo&&t.qInfo.qId}function FT(e,t){return e.reduce(((e,n)=>l(l({},e),function(e,t){let n=jT(e);const{delay:r}=t,{id:o,session:a}=e,i=u(e,AT);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:MT(a,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(i).reduce(((e,t)=>{let[n,o]=t;return l(l({},e),{},{[n]:zT(o,{async:qT(n),delay:r})})}),{})),{},{genericType:e.type})}}(n,t))),{})}function $T(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!jT(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function BT(){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($T);const n=FT(e,t);return async e=>Promise.resolve(n[e])}function WT(){return()=>Promise.resolve({id:"app-layout"})}const HT={fromGenericObjects(e){return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new _T,r=new NT,o=new BT(e,t),a=new WT,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]:{})}},UT={generator:yT,hook:tT,theme:st,locale:Q};e.EnigmaMocker=HT,e.__DO_NOT_USE__=UT,e.conversion=EP,e.embed=PT,e.onContextMenu=function(e){const t=Y_(++$_);t.value||(t.value=1,F_.__hooks.menus.push(t)),t.fn=e},e.onTakeSnapshot=function(e){const t=Y_(++$_);t.value||(t.value=1,F_.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=nT({action(){n._config.action.call(null)}});return n.component||(n.component=F_,F_.__hooks.actions.list.push(n)),aT((()=>{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=J_("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return J_("appLayout")},e.useConstraints=function(){return J_("constraints")},e.useDeviceType=function(){return J_("deviceType")},e.useEffect=rT,e.useElement=iT,e.useEmbed=function(){return J_("nebbie")},e.useGlobal=function(){const e=J_("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=Y_(++$_);if(n.imperative||(n.imperative=!0),B_(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],F_.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=J_("keyboardNavigation"),t=J_("focusHandler");if(!F_.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(sT(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(F_);F_.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),lT(this))}.bind(F_);F_.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(F_);F_.__hooks.accessibility.focusSelectionFunction=r}const n=F_.__hooks.accessibility.focusFunction,r=F_.__hooks.accessibility.exitFunction,o=F_.__hooks.accessibility.focusSelectionFunction,[a,i]=nT({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return F_.__hooks.accessibility.setter=i,F_.__hooks.accessibility.enabled=e,rT((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return J_("layout")},e.useMemo=aT,e.useModel=function(){const e=J_("model");return e&&e.session?e:void 0},e.useOptions=function(){return J_("options")},e.usePlugins=function(){return J_("plugins")},e.usePromise=function(e,t){const[n,r]=nT((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=Y_(++$_);return o.component||(o.component=F_),oT((()=>{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=iT(),t=F_.__hooks.resizer,[n,r]=nT((()=>{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()),oT((()=>{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(){Y_(++$_);const e=F_.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return J_("selections")},e.useStaleLayout=function(){const e=J_("layout"),[t]=nT({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=nT,e.useTheme=function(){return J_("theme")},e.useTranslator=function(){return J_("translator")}}));
|
|
135
135
|
//# sourceMappingURL=stardust.js.map
|