@nebula.js/stardust 3.0.0-alpha2 → 3.0.0-alpha3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +7 -6
- package/core/esm/dev.js.map +1 -1
- package/core/esm/index.js +2 -2
- package/core/esm/index.js.map +1 -1
- package/dist/stardust.dev.js +7 -6
- 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/types/index.d.ts +24 -24
package/dist/stardust.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v3.0.0-
|
|
2
|
+
* @nebula.js/stardust v3.0.0-alpha3
|
|
3
3
|
* Copyright (c) 2022 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -102,7 +102,7 @@ var Nt=Ge.exports,_t=Pt.exports;function At(e){for(var t="https://reactjs.org/do
|
|
|
102
102
|
animation-iteration-count: infinite;
|
|
103
103
|
animation-delay: 200ms;
|
|
104
104
|
}
|
|
105
|
-
`),FS.rippleVisible,KS,550,(({theme:e})=>e.transitions.easing.easeInOut),FS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),FS.child,FS.childLeaving,XS,550,(({theme:e})=>e.transitions.easing.easeInOut),FS.childPulsate,ZS,(({theme:e})=>e.transitions.easing.easeInOut)),JS=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Dp(n,BS),[l,s]=Ge.exports.useState([]),c=Ge.exports.useRef(0),u=Ge.exports.useRef(null);Ge.exports.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=Ge.exports.useRef(!1),p=Ge.exports.useRef(null),f=Ge.exports.useRef(null),m=Ge.exports.useRef(null);Ge.exports.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const h=Ge.exports.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,ih.exports.jsx(QS,{classes:{ripple:uv(o.ripple,FS.ripple),rippleVisible:uv(o.rippleVisible,FS.rippleVisible),ripplePulsate:uv(o.ripplePulsate,FS.ripplePulsate),child:uv(o.child,FS.child),childLeaving:uv(o.childLeaving,FS.childLeaving),childPulsate:uv(o.childPulsate,FS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=Ge.exports.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)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;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[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h]),v=Ge.exports.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Ge.exports.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return Ge.exports.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),ih.exports.jsx(YS,Ap({className:uv(o.root,FS.root,a),ref:m},i,{children:ih.exports.jsx(TS,{component:null,exit:!0,children:l})}))}));function ew(e){return Yh("MuiButtonBase",e)}const tw=Qh("MuiButtonBase",["root","disabled","focusVisible"]),nw=["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"],rw=tS("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"},[`&.${tw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ow=Ge.exports.forwardRef((function(e,t){const n=Qx({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:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:k,onTouchMove:E,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:M,type:I}=n,T=Dp(n,nw),P=Ge.exports.useRef(null),z=Ge.exports.useRef(null),N=Ph(z,M),{isFocusVisibleRef:_,onFocus:A,onBlur:D,ref:$}=Fh(),[q,j]=Ge.exports.useState(!1);s&&q&&j(!1),Ge.exports.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[F,B]=Ge.exports.useState(!1);Ge.exports.useEffect((()=>{B(!0)}),[]);const W=F&&!c&&!s;function H(e,t,n=u){return Th((r=>{t&&t(r);return!n&&z.current&&z.current[e](r),!0}))}Ge.exports.useEffect((()=>{q&&d&&!c&&F&&z.current.pulsate()}),[c,d,q,F]);const U=H("start",S),V=H("stop",h),G=H("stop",g),K=H("stop",C),X=H("stop",(e=>{q&&e.preventDefault(),w&&w(e)})),Z=H("start",R),Y=H("stop",k),Q=H("stop",E),J=H("stop",(e=>{D(e),!1===_.current&&j(!1),f&&f(e)}),!1),ee=Th((e=>{P.current||(P.current=e.currentTarget),A(e),!0===_.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Ge.exports.useRef(!1),re=Th((e=>{d&&!ne.current&&q&&z.current&&" "===e.key&&(ne.current=!0,z.current.stop(e,(()=>{z.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Th((e=>{d&&" "===e.key&&z.current&&q&&!e.defaultPrevented&&(ne.current=!1,z.current.stop(e,(()=>{z.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const ie={};"button"===ae?(ie.type=void 0===I?"button":I,ie.disabled=s):(T.href||T.to||(ie.role="button"),s&&(ie["aria-disabled"]=s));const le=Ph($,P),se=Ph(t,le),ce=Ap({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:q}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Gh({root:["root",t&&"disabled",n&&"focusVisible"]},ew,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return ih.exports.jsxs(rw,Ap({as:ae,className:uv(ue.root,i),ownerState:ce,onBlur:J,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:G,onTouchEnd:Y,onTouchMove:Q,onTouchStart:Z,ref:se,tabIndex:s?-1:L,type:I},ie,T,{children:[a,W?ih.exports.jsx(JS,Ap({ref:N,center:o},O)):null]}))}));function aw(e){return Yh("MuiButton",e)}const iw=Qh("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lw=Ge.exports.createContext({}),sw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cw=e=>Ap({},"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}}),uw=tS(ow,{shouldForwardProp:e=>Jx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wh(n.color)}`],t[`size${wh(n.size)}`],t[`${n.variant}Size${wh(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Ap({},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":Ap({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hv(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})`:Hv(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})`:Hv(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":Ap({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${iw.focusVisible}`]:Ap({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${iw.disabled}`]:Ap({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},"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 ${Hv(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"},[`&.${iw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${iw.disabled}`]:{boxShadow:"none"}})),dw=tS("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${wh(n.size)}`]]}})((({ownerState:e})=>Ap({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},cw(e)))),pw=tS("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${wh(n.size)}`]]}})((({ownerState:e})=>Ap({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},cw(e)))),fw=Ge.exports.forwardRef((function(e,t){const n=Ge.exports.useContext(lw),r=Qx({props:Vh(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:i="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:m="medium",startIcon:h,type:g,variant:v="text"}=r,b=Dp(r,sw),y=Ap({},r,{color:a,component:i,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Ap({},i,Gh({root:["root",a,`${a}${wh(t)}`,`size${wh(o)}`,`${a}Size${wh(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${wh(o)}`],endIcon:["endIcon",`iconSize${wh(o)}`]},aw,i))})(y),S=h&&ih.exports.jsx(dw,{className:x.startIcon,ownerState:y,children:h}),w=d&&ih.exports.jsx(pw,{className:x.endIcon,ownerState:y,children:d});return ih.exports.jsxs(uw,Ap({ownerState:y,className:uv(l,n.className),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:uv(x.focusVisible,p),ref:t,type:g},b,{classes:x,children:[S,o,w]}))}));var mw={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 hw="#009845",gw="#3F8AB3",vw="#ffffff",bw="#404040",yw="#333333",xw="#1A1A1A",Sw={mode:"light",palette:{primary:{main:bw,contrastText:vw},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:bw,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:bw,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:vw,default:vw,lightest:vw,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:gw,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:hw,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:vw,alternativeContrastText:bw,excludedContrastText:bw},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)"}}},ww={mode:"dark",palette:{primary:{main:yw,contrastText:vw},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:vw,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:vw,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:bw,lighter:yw,darker:"#262626",darkest:xw},custom:{focusBorder:gw,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:hw,alternative:yw,excluded:xw,mainContrastText:vw,alternativeContrastText:vw,excludedContrastText:vw},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)"}}},Cw={},kw=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(iw.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(iw.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(iw.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(iw.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Ew(e){let t=Sw,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=ww));const r=JSON.stringify(t);if(Cw[r])return Cw[r];const a={palette:o(o({type:t.mode},mw.palette),t.palette),typography:o({},mw.typography),shadows:mw.shadows,props:o({},mw.props),shape:o({},mw.shape)};return Cw[r]=Xx(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Ap({},Dp(e,ob),{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=mv(e.spacing);const s=pv(e.breakpoints||{}),c=l.spacing;l.mixins=Ap({gutters:(e={})=>Ap({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Ap({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Dp(o,ab),f=d||u||"light";return l.palette=Ap({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(o(o({},a),{},{overrides:kw(a)}))),Cw[r].name=n,Cw[r]}Xh.configure((e=>"njs-".concat("9c10","-").concat(e.replace("Mui",""))));var Rw=Ot.createContext({language:null,theme:null,translator:null,constraints:{}}),Lw=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]=Ge.exports.useState(n);return Ge.exports.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[a,o]};const[Ow,Mw]=Lw({}),[Iw,Tw]=Lw({}),[Pw,zw]=Lw({}),[Nw,_w]=Lw({}),[Aw,Dw]=Lw({}),[,$w]=Lw({}),qw=e=>{let{type:t,value:n}=e;const r=$w.get(n.id);$w.set(n.id,{});const o=()=>{Tw.clear(n.id),Dw.set(n.id,{}),Dw.dispatch(!0)},a=()=>{n.removeListener("changed",o),Mw.clear(n.id),Tw.clear(n.id),zw.clear(n.id),_w.clear(n.id),Dw.clear(n.id),$w.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[jw,Fw]=Lw({},qw),Bw=(e,t)=>{const{rpcResultStore:n,key:r,method:a}=t;let i;switch(t.type){case"INVALID":i=o(o({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:o({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=o(o({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[a]=i,n.set(r,l),i};function Ww(e,t){const n=e?"".concat(e.id):null,[r]=Ow(),[o,a]=Ge.exports.useReducer(Bw,n?r.get(n):null),[i]=Aw(),[l]=Iw();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 Ge.exports.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 Hw(e){return Ww(e,"getLayout")}function Uw(e){return Ww(e,"getAppLayout")}function Vw(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=jw(),[o]=Pw(),[a,i]=Ge.exports.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 Ge.exports.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 Gw={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Kw(e){return Vw(Gw,e)}function Xw(e){const[t]=Kw(e),[n]=Hw(t),[r]=Uw(e),[o,a]=Ge.exports.useState(null);return Ge.exports.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]),Ge.exports.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]}const[Zw,Yw]=Lw({}),[Qw,Jw]=Lw({}),[eC,tC]=Lw({}),[nC,rC]=Lw({});function oC(e){if(!e.session)return[];const[t,n,r]=Xw(e),[o]=Zw(),a=e?e.id:null;let i=o.get(a);return Ge.exports.useEffect((()=>{e&&n&&r&&t&&!i&&(i=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=rC.get(o);t&&(await t.endSelections(e),rC.clear(o),tC.get(t.id).emit("deactivated"))},i={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===rC.get(o))return;a(r),rC.set(o,e);const i=Array.isArray(n)?n:[n],l=async n=>{try{await e.beginSelections(i),rC.set(o,e)}catch(e){6003!==e.code||n?rC.clear(o):(await t.abortModal(r),l(!0))}};await l()},end:a};Jw.set(o,i);const l={model:t,isInModal:()=>!!rC.get(o),isModal:e=>e?rC.get(o)===e:!!rC.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>i.end().then((()=>t.forward())),back:()=>i.end().then((()=>t.back())),clear:()=>i.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return i.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,currentSelectionsLayout:r,navState:t}),o.set(a,i),o.dispatch(!0))}),[e,n,r,t]),[i,t]}const aC=Ge.exports.forwardRef(((e,t)=>{let{initialContext:n,app:r}=e;const[o]=oC(r),[a,i]=Ge.exports.useState(n),[l,s]=Ge.exports.useState(),{theme:c}=Ge.exports.useMemo((()=>({theme:Ew(l)})),[l]),[u,d]=Ge.exports.useState([]);return Ge.exports.useImperativeHandle(t,(()=>({addComponent(e){d([...u,e])},removeComponent(e){const t=u.indexOf(e);-1!==t&&(u.splice(t,1),d([...u]))},setMuiThemeName:s,setContext:i,getAppSelections:()=>o}))),Ot.createElement(gh,{injectFirst:!0},Ot.createElement(Xv,{theme:c},Ot.createElement(Rw.Provider,{value:a},u)))}));function iC(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=Ot.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","3.0.0-alpha2"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),_p.render(Ot.createElement(aC,{ref:a,app:n,initialContext:r}),i,t);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await o,a.current.addComponent(e)})()},remove(e){(async()=>{await o,a.current.removeComponent(e)})()},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 lC(e){return Yh("MuiSvgIcon",e)}Qh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sC=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cC=tS("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${wh(n.color)}`],t[`fontSize${wh(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,m,h,g,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(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.1875"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(m=f[t.color])?void 0:m.main)?p:{action:null==(h=(e.vars||e).palette)||null==(g=h.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),uC=Ge.exports.forwardRef((function(e,t){const n=Qx({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=Dp(n,sC),f=Ap({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),m={};c||(m.viewBox=d);const h=(e=>{const{color:t,fontSize:n,classes:r}=e;return Gh({root:["root","inherit"!==t&&`color${wh(t)}`,`fontSize${wh(n)}`]},lC,r)})(f);return ih.exports.jsxs(cC,Ap({as:i,className:uv(h.root,o),ownerState:f,focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,{children:[r,u?ih.exports.jsx("title",{children:u}):null]}))}));function dC(e,t){const n=(n,r)=>ih.exports.jsx(uC,Ap({"data-testid":`${t}Icon`,ref:r},n,{children:e}));return n.muiName=uC.muiName,Ge.exports.memo(Ge.exports.forwardRef(n))}uC.muiName="SvgIcon";const pC=e=>e.scrollTop;function fC(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 mC(e){return Yh("MuiCollapse",e)}Qh("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const hC=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],gC=tS("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>Ap({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&Ap({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),vC=tS("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>Ap({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),bC=tS("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>Ap({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),yC=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:l,easing:s,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:b=Wx.standard,TransitionComponent:y=SS}=n,x=Dp(n,hC),S=Ap({},n,{orientation:g,collapsedSize:i}),w=(e=>{const{orientation:t,classes:n}=e;return Gh({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},mC,n)})(S),C=Yx(),k=Ge.exports.useRef(),E=Ge.exports.useRef(null),R=Ge.exports.useRef(),L="number"==typeof i?`${i}px`:i,O="horizontal"===g,M=O?"width":"height";Ge.exports.useEffect((()=>()=>{clearTimeout(k.current)}),[]);const I=Ge.exports.useRef(null),T=Ph(t,I),P=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},z=()=>E.current?E.current[O?"clientWidth":"clientHeight"]:0,N=P(((e,t)=>{E.current&&O&&(E.current.style.position="absolute"),e.style[M]=L,u&&u(e,t)})),_=P(((e,t)=>{const n=z();E.current&&O&&(E.current.style.position="");const{duration:r,easing:o}=fC({style:v,timeout:b,easing:s},{mode:"enter"});if("auto"===b){const t=C.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,R.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[M]=`${n}px`,e.style.transitionTimingFunction=o,p&&p(e,t)})),A=P(((e,t)=>{e.style[M]="auto",d&&d(e,t)})),D=P((e=>{e.style[M]=`${z()}px`,f&&f(e)})),$=P(m),q=P((e=>{const t=z(),{duration:n,easing:r}=fC({style:v,timeout:b,easing:s},{mode:"exit"});if("auto"===b){const n=C.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,R.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[M]=L,e.style.transitionTimingFunction=r,h&&h(e)}));return ih.exports.jsx(y,Ap({in:c,onEnter:N,onEntered:A,onEntering:_,onExit:D,onExited:$,onExiting:q,addEndListener:e=>{"auto"===b&&(k.current=setTimeout(e,R.current||0)),r&&r(I.current,e)},nodeRef:I,timeout:"auto"===b?null:b},x,{children:(e,t)=>ih.exports.jsx(gC,Ap({as:l,className:uv(w.root,a,{entered:w.entered,exited:!c&&"0px"===L&&w.hidden}[e]),style:Ap({[O?"minWidth":"minHeight"]:L},v),ownerState:Ap({},S,{state:e}),ref:T},t,{children:ih.exports.jsx(vC,{ownerState:Ap({},S,{state:e}),className:w.wrapper,ref:E,children:ih.exports.jsx(bC,{ownerState:Ap({},S,{state:e}),className:w.wrapperInner,children:o})})}))}))}));yC.muiSupportAuto=!0;const xC=Qh("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);tS(iS,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xC.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${xC.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${xC.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>Ap({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${xC.expanded}`]:{margin:"16px 0"}}))),Qh("MuiAccordionActions",["root","spacing"]),tS("div",{name:"MuiAccordionActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>Ap({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),Qh("MuiAccordionDetails",["root"]),tS("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)})));const SC=Qh("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);tS(ow,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return Ap({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${SC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${SC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${SC.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${SC.expanded}`]:{minHeight:64}})})),tS("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>Ap({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${SC.expanded}`]:{margin:"20px 0"}}))),tS("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${SC.expanded}`]:{transform:"rotate(180deg)"}})));const wC=Qh("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function CC(e){return Yh("MuiIconButton",e)}const kC=Qh("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),EC=["edge","children","className","color","disabled","disableFocusRipple","size"],RC=tS(ow,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wh(n.color)}`],n.edge&&t[`edge${wh(n.edge)}`],t[`size${wh(n.size)}`]]}})((({theme:e,ownerState:t})=>Ap({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.active} / ${e.vars.palette.action.hoverOpacity})`:Hv(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})=>Ap({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Ap({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hv(e.palette[t.color].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)},{[`&.${kC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),LC=Ge.exports.forwardRef((function(e,t){const n=Qx({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=Dp(n,EC),d=Ap({},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 Gh({root:["root",n&&"disabled","default"!==r&&`color${wh(r)}`,o&&`edge${wh(o)}`,`size${wh(a)}`]},CC,t)})(d);return ih.exports.jsx(RC,Ap({className:uv(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));function OC(e){return Yh("MuiTypography",e)}dC(ih.exports.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),dC(ih.exports.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),dC(ih.exports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),dC(ih.exports.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),dC(ih.exports.jsx("path",{d:"M19 6.41L17.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"),tS(iS,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wh(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?Uv:Vv,r="light"===e.palette.mode?Vv:Uv,o=t.color||t.severity;return Ap({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:n(e.palette[o].light,.6),backgroundColor:r(e.palette[o].light,.9),[`& .${wC.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"outlined"===t.variant&&{color:n(e.palette[o].light,.6),border:`1px solid ${e.palette[o].light}`,[`& .${wC.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"filled"===t.variant&&{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main})})),tS("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),tS("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),tS("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Qh("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MC=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],IC=tS("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${wh(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ap({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}))),TC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},PC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zC=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiTypography"}),r=(e=>PC[e]||e)(n.color),o=sv(Ap({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=TC}=o,f=Dp(o,MC),m=Ap({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=l||(u?"p":p[d]||TC[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Gh({root:["root",a,"inherit"!==e.align&&`align${wh(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},OC,i)})(m);return ih.exports.jsx(IC,Ap({as:h,ref:t,ownerState:m,className:uv(g.root,i)},f))}));Qh("MuiAlertTitle",["root"]),tS(zC,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Qh("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]),tS(iS,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${wh(n.position)}`],t[`color${wh(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return Ap({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&Ap({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"}))}));const NC=tS(Ty,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_C=Ge.exports.forwardRef((function(e,t){const n=Sv(),r=Qx({props:e,name:"MuiPopper"});return ih.exports.jsx(NC,Ap({direction:null==n?void 0:n.direction},r,{ref:t}))}));function AC(e){return Yh("MuiListSubheader",e)}Qh("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const DC=["className","color","component","disableGutters","disableSticky","inset"],$C=tS("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wh(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>Ap({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),qC=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:s=!1}=n,c=Dp(n,DC),u=Ap({},n,{color:o,component:a,disableGutters:i,disableSticky:l,inset:s}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e;return Gh({root:["root","default"!==n&&`color${wh(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]},AC,t)})(u);return ih.exports.jsx($C,Ap({as:a,className:uv(d.root,r),ref:t,ownerState:u},c))}));dC(ih.exports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");const jC=Qh("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]);function FC({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)),{})}tS("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:a,size:i,variant:l}=n;return[{[`& .${jC.avatar}`]:t.avatar},{[`& .${jC.avatar}`]:t[`avatar${wh(i)}`]},{[`& .${jC.avatar}`]:t[`avatarColor${wh(r)}`]},{[`& .${jC.icon}`]:t.icon},{[`& .${jC.icon}`]:t[`icon${wh(i)}`]},{[`& .${jC.icon}`]:t[`iconColor${wh(r)}`]},{[`& .${jC.deleteIcon}`]:t.deleteIcon},{[`& .${jC.deleteIcon}`]:t[`deleteIcon${wh(i)}`]},{[`& .${jC.deleteIcon}`]:t[`deleteIconColor${wh(r)}`]},{[`& .${jC.deleteIcon}`]:t[`deleteIconOutlinedColor${wh(r)}`]},t.root,t[`size${wh(i)}`],t[`color${wh(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${wh(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${wh(r)}`],t[l],"outlined"===l&&t[`outlined${wh(r)}`]]}})((({theme:e,ownerState:t})=>{const n=Hv(e.palette.text.primary,.26);return Ap({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${jC.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${jC.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${jC.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${jC.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${jC.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${jC.icon}`]:Ap({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${jC.deleteIcon}`]:Ap({WebkitTapHighlightColor:"transparent",color:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Hv(n,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:Hv(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${jC.focusVisible}`]:{backgroundColor:Hv(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${jC.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>Ap({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:Hv(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${jC.focusVisible}`]:{backgroundColor:Hv(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${jC.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>Ap({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${jC.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${jC.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${jC.avatar}`]:{marginLeft:4},[`& .${jC.avatarSmall}`]:{marginLeft:2},[`& .${jC.icon}`]:{marginLeft:4},[`& .${jC.iconSmall}`]:{marginLeft:2},[`& .${jC.deleteIcon}`]:{marginRight:5},[`& .${jC.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${Hv(e.palette[t.color].main,.7)}`,[`&.${jC.clickable}:hover`]:{backgroundColor:Hv(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${jC.focusVisible}`]:{backgroundColor:Hv(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${jC.deleteIcon}`]:{color:Hv(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),tS("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${wh(r)}`]]}})((({ownerState:e})=>Ap({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));const BC=Ge.exports.createContext();function WC(){return Ge.exports.useContext(BC)}function HC(e){return ih.exports.jsx(vh,Ap({},e,{defaultTheme:Zx}))}function UC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function VC(e,t=!1){return e&&(UC(e.value)&&""!==e.value||t&&UC(e.defaultValue)&&""!==e.defaultValue)}function GC(e){return Yh("MuiInputBase",e)}const KC=Qh("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),XC=["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","startAdornment","type","value"],ZC=(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${wh(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},YC=(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]},QC=tS("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ZC})((({theme:e,ownerState:t})=>Ap({},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",[`&.${KC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ap({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),JC=tS("input",{name:"MuiInputBase",slot:"Input",overridesResolver:YC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Ap({color:"currentColor"},e.vars?{opacity:e.vars.opacity.placeholder}:{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.placeholder}:{opacity:n?.42:.5};return Ap({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] + .${KC.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},[`&.${KC.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"})})),ek=ih.exports.jsx(HC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tk=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:i,components:l={},componentsProps:s={},defaultValue:c,disabled:u,disableInjectingGlobalStyles:d,endAdornment:p,fullWidth:f=!1,id:m,inputComponent:h="input",inputProps:g={},inputRef:v,maxRows:b,minRows:y,multiline:x=!1,name:S,onBlur:w,onChange:C,onClick:k,onFocus:E,onKeyDown:R,onKeyUp:L,placeholder:O,readOnly:M,renderSuffix:I,rows:T,startAdornment:P,type:z="text",value:N}=n,_=Dp(n,XC),A=null!=g.value?g.value:N,{current:D}=Ge.exports.useRef(null!=A),$=Ge.exports.useRef(),q=Ge.exports.useCallback((e=>{}),[]),j=Ph(g.ref,q),F=Ph(v,j),B=Ph($,F),[W,H]=Ge.exports.useState(!1),U=WC(),V=FC({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=U?U.focused:W,Ge.exports.useEffect((()=>{!U&&u&&W&&(H(!1),w&&w())}),[U,u,W,w]);const G=U&&U.onFilled,K=U&&U.onEmpty,X=Ge.exports.useCallback((e=>{VC(e)?G&&G():K&&K()}),[G,K]);Mh((()=>{D&&X({value:A})}),[A,X,D]);Ge.exports.useEffect((()=>{X($.current)}),[]);let Z=h,Y=g;x&&"input"===Z&&(Y=Ap(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:b,minRows:y},Y),Z=Xy);Ge.exports.useEffect((()=>{U&&U.setAdornedStart(Boolean(P))}),[U,P]);const Q=Ap({},n,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:U,fullWidth:f,hiddenLabel:V.hiddenLabel,multiline:x,size:V.size,startAdornment:P,type:z}),J=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,size:d,startAdornment:p,type:f}=e;return Gh({root:["root",`color${wh(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===d&&"sizeSmall",u&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===d&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd"]},GC,t)})(Q),ee=l.Root||QC,te=s.root||{},ne=l.Input||JC;return Y=Ap({},Y,s.input),ih.exports.jsxs(Ge.exports.Fragment,{children:[!d&&ek,ih.exports.jsxs(ee,Ap({},te,!ib(ee)&&{ownerState:Ap({},Q,te.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},_,{className:uv(J.root,te.className,i),children:[P,ih.exports.jsx(BC.Provider,{value:null,children:ih.exports.jsx(ne,Ap({ownerState:Q,"aria-invalid":V.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:c,disabled:V.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:S,placeholder:O,readOnly:M,required:V.required,rows:T,value:A,onKeyDown:R,onKeyUp:L,type:z},Y,!ib(ne)&&{as:Z,ownerState:Ap({},Q,Y.ownerState)},{ref:B,className:uv(J.input,Y.className),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),U&&U.onBlur?U.onBlur(e):H(!1)},onChange:(e,...t)=>{if(!D){const t=e.target||$.current;if(null==t)throw new Error(Sh(1));X({value:t.value})}g.onChange&&g.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(E&&E(e),g.onFocus&&g.onFocus(e),U&&U.onFocus?U.onFocus(e):H(!0))}}))}),p,I?I(Ap({},V,{startAdornment:P})):null]}))]})}));function nk(e){return Yh("MuiInput",e)}const rk=Ap({},KC,Qh("MuiInput",["root","underline","input"]));function ok(e){return Yh("MuiOutlinedInput",e)}const ak=Ap({},KC,Qh("MuiOutlinedInput",["root","notchedOutline","input"]));function ik(e){return Yh("MuiFilledInput",e)}const lk=Ap({},KC,Qh("MuiFilledInput",["root","underline","input"]));var sk=dC(ih.exports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ck=Qh("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);tS("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${ck.tag}`]:t.tag},{[`& .${ck.tag}`]:t[`tagSize${wh(l)}`]},{[`& .${ck.inputRoot}`]:t.inputRoot},{[`& .${ck.input}`]:t.input},{[`& .${ck.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})((({ownerState:e})=>Ap({[`&.${ck.focused} .${ck.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ck.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${ck.tag}`]:Ap({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${ck.inputRoot}`]:{flexWrap:"wrap",[`.${ck.hasPopupIcon}&, .${ck.hasClearIcon}&`]:{paddingRight:30},[`.${ck.hasPopupIcon}.${ck.hasClearIcon}&`]:{paddingRight:56},[`& .${ck.input}`]:{width:0,minWidth:30}},[`& .${rk.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${rk.root}.${KC.sizeSmall}`]:{[`& .${rk.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ak.root}`]:{padding:9,[`.${ck.hasPopupIcon}&, .${ck.hasClearIcon}&`]:{paddingRight:39},[`.${ck.hasPopupIcon}.${ck.hasClearIcon}&`]:{paddingRight:65},[`& .${ck.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${ck.endAdornment}`]:{right:9}},[`& .${ak.root}.${KC.sizeSmall}`]:{padding:6,[`& .${ck.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${lk.root}`]:{paddingTop:19,paddingLeft:8,[`.${ck.hasPopupIcon}&, .${ck.hasClearIcon}&`]:{paddingRight:39},[`.${ck.hasPopupIcon}.${ck.hasClearIcon}&`]:{paddingRight:65},[`& .${lk.input}`]:{padding:"7px 4px"},[`& .${ck.endAdornment}`]:{right:9}},[`& .${lk.root}.${KC.sizeSmall}`]:{paddingBottom:1,[`& .${lk.input}`]:{padding:"2.5px 4px"}},[`& .${KC.hiddenLabel}`]:{paddingTop:8},[`& .${ck.input}`]:Ap({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),tS("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),tS(LC,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),tS(LC,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>Ap({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>Ap({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),tS(_C,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ck.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>Ap({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),tS(iS,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>Ap({},e.typography.body1,{overflow:"auto"}))),tS("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),tS("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),tS("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${ck.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${ck.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ck.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ck.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ck.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),tS(qC,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),tS("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ck.option}`]:{paddingLeft:24}});var uk=dC(ih.exports.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function dk(e){return Yh("MuiAvatar",e)}const pk=Qh("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),fk=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],mk=tS("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>Ap({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:e.shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&{color:e.palette.background.default,backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}))),hk=tS("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),gk=tS(uk,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const vk=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:a,component:i="div",imgProps:l,sizes:s,src:c,srcSet:u,variant:d="circular"}=n,p=Dp(n,fk);let f=null;const m=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=Ge.exports.useState(!1);return Ge.exports.useEffect((()=>{if(!n&&!r)return;a(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&a("loaded")},i.onerror=()=>{o&&a("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,r&&(i.srcset=r),()=>{o=!1}}),[e,t,n,r]),o}(Ap({},l,{src:c,srcSet:u})),h=c||u,g=h&&"error"!==m,v=Ap({},n,{colorDefault:!g,component:i,variant:d}),b=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Gh({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},dk,t)})(v);return f=g?ih.exports.jsx(hk,Ap({alt:r,src:c,srcSet:u,sizes:s,ownerState:v,className:b.img},l)):null!=o?o:h&&r?r[0]:ih.exports.jsx(gk,{className:b.fallback}),ih.exports.jsx(mk,Ap({as:i,ownerState:v,className:uv(b.root,a),ref:t},p,{children:f}))})),bk=Qh("MuiAvatarGroup",["root","avatar"]);tS("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Ap({[`& .${bk.avatar}`]:t.avatar},t.root)})((({theme:e})=>({[`& .${pk.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}))),tS(vk,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})((({theme:e})=>({border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}})));const yk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xk={entering:{opacity:1},entered:{opacity:1}},Sk=Ge.exports.forwardRef((function(e,t){const n=Yx(),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:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=SS}=e,b=Dp(e,yk),y=Ge.exports.useRef(null),x=Ph(i.ref,t),S=Ph(y,x),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=w(d),k=w(((e,t)=>{pC(e);const r=fC({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),E=w(u),R=w(m),L=w((e=>{const t=fC({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),O=w(f);return ih.exports.jsx(v,Ap({appear:a,in:s,nodeRef:y,onEnter:k,onEntered:E,onEntering:C,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Ge.exports.cloneElement(i,Ap({style:Ap({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},xk[e],h,i.props.style),ref:S},t))}))}));function wk(e){return Yh("MuiBackdrop",e)}Qh("MuiBackdrop",["root","invisible"]);const Ck=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],kk=tS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ap({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"}))),Ek=Ge.exports.forwardRef((function(e,t){var n,r;const o=Qx({props:e,name:"MuiBackdrop"}),{children:a,component:i="div",components:l={},componentsProps:s={},className:c,invisible:u=!1,open:d,transitionDuration:p,TransitionComponent:f=Sk}=o,m=Dp(o,Ck),h=Ap({},o,{component:i,invisible:u}),g=(e=>{const{classes:t,invisible:n}=e;return Gh({root:["root",n&&"invisible"]},wk,t)})(h);return ih.exports.jsx(f,Ap({in:d,timeout:p},m,{children:ih.exports.jsx(kk,{"aria-hidden":!0,as:null!=(n=l.Root)?n:i,className:uv(g.root,c),ownerState:Ap({},h,null==(r=s.root)?void 0:r.ownerState),classes:g,ref:t,children:a})}))})),Rk=e=>!e||!ib(e);function Lk(e){return Yh("MuiBadge",e)}const Ok=Qh("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"]),Mk=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],Ik=tS("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Tk=tS("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${wh(n.anchorOrigin.vertical)}${wh(n.anchorOrigin.horizontal)}${wh(n.overlap)}`],"default"!==n.color&&t[`color${wh(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Ap({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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Pk=Ge.exports.forwardRef((function(e,t){var n,r,o,a;const i=Qx({props:e,name:"MuiBadge"}),{anchorOrigin:l={vertical:"top",horizontal:"right"},className:s,component:c="span",components:u={},componentsProps:d={},overlap:p="rectangular",color:f="default",invisible:m=!1,max:h,badgeContent:g,showZero:v=!1,variant:b="standard"}=i,y=Dp(i,Mk),x=Wh({anchorOrigin:l,color:f,overlap:p,variant:b});let S=m;!1===m&&(0===g&&!v||null==g&&"dot"!==b)&&(S=!0);const{color:w=f,overlap:C=p,anchorOrigin:k=l,variant:E=b}=S?x:i,R=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Gh({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${wh(n.vertical)}${wh(n.horizontal)}`,`anchorOrigin${wh(n.vertical)}${wh(n.horizontal)}${wh(o)}`,`overlap${wh(o)}`,"default"!==t&&`color${wh(t)}`]},Lk,i)})(Ap({},i,{anchorOrigin:k,invisible:S,color:w,overlap:C,variant:E}));let L;return"dot"!==E&&(L=g&&Number(g)>h?`${h}+`:g),ih.exports.jsx(ub,Ap({invisible:m,badgeContent:L,showZero:v,max:h},y,{components:Ap({Root:Ik,Badge:Tk},u),className:uv(s,R.root,null==(n=d.root)?void 0:n.className),componentsProps:{root:Ap({},d.root,Rk(u.Root)&&{as:c,ownerState:Ap({},null==(r=d.root)?void 0:r.ownerState,{anchorOrigin:k,color:w,overlap:C,variant:E})}),badge:Ap({},d.badge,{className:uv(R.badge,null==(o=d.badge)?void 0:o.className)},Rk(u.Badge)&&{ownerState:Ap({},null==(a=d.badge)?void 0:a.ownerState,{anchorOrigin:k,color:w,overlap:C,variant:E})})},ref:t}))}));Qh("MuiBottomNavigation",["root"]),tS("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper})));const zk=Qh("MuiBottomNavigationAction",["root","iconOnly","selected","label"]);tS(ow,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.showLabel&&!n.selected&&t.iconOnly]}})((({theme:e,ownerState:t})=>Ap({transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(e.vars||e).palette.text.secondary,flexDirection:"column",flex:"1"},!t.showLabel&&!t.selected&&{paddingTop:14},!t.showLabel&&!t.selected&&!t.label&&{paddingTop:0},{[`&.${zk.selected}`]:{color:(e.vars||e).palette.primary.main}}))),tS("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e,ownerState:t})=>Ap({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!t.showLabel&&!t.selected&&{opacity:0,transitionDelay:"0s"},{[`&.${zk.selected}`]:{fontSize:e.typography.pxToRem(14)}})));const Nk=Ev({defaultTheme:Xx(),defaultClassName:"MuiBox-root",generateClassName:Xh.generate});var _k=dC(ih.exports.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");tS(ow)((({theme:e})=>Ap({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},"light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Ap({},"light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":Ap({boxShadow:e.shadows[0]},"light"===e.palette.mode?{backgroundColor:Gv(e.palette.grey[200],.12)}:{backgroundColor:Gv(e.palette.grey[600],.12)})}))),tS(_k)({width:24,height:16});const Ak=Qh("MuiBreadcrumbs",["root","ol","li","separator"]);tS(zC,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Ak.li}`]:t.li},t.root]})({}),tS("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),tS("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});const Dk=Qh("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]);tS("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dk.grouped}`]:t.grouped},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.orientation)}`]},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.variant)}`]},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.variant)}${wh(n.orientation)}`]},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.variant)}${wh(n.color)}`]},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((({theme:e,ownerState:t})=>Ap({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},"vertical"===t.orientation&&{flexDirection:"column"},{[`& .${Dk.grouped}`]:Ap({minWidth:40,"&:not(:first-of-type)":Ap({},"horizontal"===t.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===t.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===t.variant&&"horizontal"===t.orientation&&{marginLeft:-1},"outlined"===t.variant&&"vertical"===t.orientation&&{marginTop:-1}),"&:not(:last-of-type)":Ap({},"horizontal"===t.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===t.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===t.variant&&"horizontal"===t.orientation&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===t.variant&&"vertical"===t.orientation&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===t.variant&&"inherit"!==t.color&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Hv(e.palette[t.color].main,.5)},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"transparent"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"transparent"},"contained"===t.variant&&"horizontal"===t.orientation&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Dk.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"vertical"===t.orientation&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Dk.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"inherit"!==t.color&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":Ap({},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"currentColor"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":Ap({},"contained"===t.variant&&{boxShadow:"none"})},"contained"===t.variant&&{boxShadow:"none"})}))),Qh("MuiCard",["root"]),tS(iS,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"})));const $k=Qh("MuiCardActionArea",["root","focusVisible","focusHighlight"]);tS(ow,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",textAlign:"inherit",width:"100%",[`&:hover .${$k.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${$k.focusVisible} .${$k.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),tS("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})((({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),Qh("MuiCardActions",["root","spacing"]),tS("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>Ap({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),Qh("MuiCardContent",["root"]),tS("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}})));const qk=Qh("MuiCardHeader",["root","avatar","action","content","title","subheader"]);function jk(e){return Yh("PrivateSwitchBase",e)}tS("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>Ap({[`& .${qk.title}`]:t.title,[`& .${qk.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),tS("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),tS("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),tS("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Qh("MuiCardMedia",["root","media","img"]),tS("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})((({ownerState:e})=>Ap({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),Qh("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fk=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bk=tS(ow)((({ownerState:e})=>Ap({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wk=tS("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Hk=Ge.exports.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:m,onBlur:h,onChange:g,onFocus:v,readOnly:b,required:y,tabIndex:x,type:S,value:w}=e,C=Dp(e,Fk),[k,E]=Ih({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=WC();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,M=Ap({},e,{checked:k,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Gh({root:["root",n&&"checked",r&&"disabled",o&&`edge${wh(o)}`],input:["input"]},jk,t)})(M);return ih.exports.jsxs(Bk,Ap({component:"span",className:uv(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{h&&h(e),R&&R.onBlur&&R.onBlur(e)},ownerState:M,ref:t},C,{children:[ih.exports.jsx(Wk,Ap({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O&&d,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),k?o:u]}))}));var Uk=dC(ih.exports.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"),Vk=dC(ih.exports.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"),Gk=dC(ih.exports.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 Kk(e){return Yh("MuiCheckbox",e)}const Xk=Qh("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Zk=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],Yk=tS(Hk,{shouldForwardProp:e=>Jx(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${wh(n.color)}`]]}})((({theme:e,ownerState:t})=>Ap({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})`:Hv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Xk.checked}, &.${Xk.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xk.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Qk=ih.exports.jsx(Vk,{}),Jk=ih.exports.jsx(Uk,{}),eE=ih.exports.jsx(Gk,{}),tE=Ge.exports.forwardRef((function(e,t){var n,r;const o=Qx({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Qk,color:i="primary",icon:l=Jk,indeterminate:s=!1,indeterminateIcon:c=eE,inputProps:u,size:d="medium"}=o,p=Dp(o,Zk),f=s?c:l,m=s?c:a,h=Ap({},o,{color:i,indeterminate:s,size:d}),g=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Ap({},t,Gh({root:["root",n&&"indeterminate",`color${wh(r)}`]},Kk,t))})(h);return ih.exports.jsx(Yk,Ap({type:"checkbox",inputProps:Ap({"data-indeterminate":s},u),icon:Ge.exports.cloneElement(f,{fontSize:null!=(n=f.props.fontSize)?n:d}),checkedIcon:Ge.exports.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:h,ref:t},p,{classes:g}))}));function nE(e){return Yh("MuiCircularProgress",e)}Qh("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rE=["className","color","disableShrink","size","style","thickness","value","variant"];let oE,aE,iE,lE,sE=e=>e;const cE=44,uE=Gm(oE||(oE=sE`
|
|
105
|
+
`),FS.rippleVisible,KS,550,(({theme:e})=>e.transitions.easing.easeInOut),FS.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),FS.child,FS.childLeaving,XS,550,(({theme:e})=>e.transitions.easing.easeInOut),FS.childPulsate,ZS,(({theme:e})=>e.transitions.easing.easeInOut)),JS=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a}=n,i=Dp(n,BS),[l,s]=Ge.exports.useState([]),c=Ge.exports.useRef(0),u=Ge.exports.useRef(null);Ge.exports.useEffect((()=>{u.current&&(u.current(),u.current=null)}),[l]);const d=Ge.exports.useRef(!1),p=Ge.exports.useRef(null),f=Ge.exports.useRef(null),m=Ge.exports.useRef(null);Ge.exports.useEffect((()=>()=>{clearTimeout(p.current)}),[]);const h=Ge.exports.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s((e=>[...e,ih.exports.jsx(QS,{classes:{ripple:uv(o.ripple,FS.ripple),rippleVisible:uv(o.rippleVisible,FS.rippleVisible),ripplePulsate:uv(o.ripplePulsate,FS.ripplePulsate),child:uv(o.child,FS.child),childLeaving:uv(o.childLeaving,FS.childLeaving),childPulsate:uv(o.childPulsate,FS.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},c.current)])),c.current+=1,u.current=i}),[o]),g=Ge.exports.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)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=i?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let c,u,g;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[0]:e;c=Math.round(t-s.left),u=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-c),c)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-u),u)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:c,rippleY:u,rippleSize:g,cb:n})}),[r,h]),v=Ge.exports.useCallback((()=>{g({},{pulsate:!0})}),[g]),b=Ge.exports.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{b(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),u.current=t}),[]);return Ge.exports.useImperativeHandle(t,(()=>({pulsate:v,start:g,stop:b})),[v,g,b]),ih.exports.jsx(YS,Ap({className:uv(o.root,FS.root,a),ref:m},i,{children:ih.exports.jsx(TS,{component:null,exit:!0,children:l})}))}));function ew(e){return Yh("MuiButtonBase",e)}const tw=Qh("MuiButtonBase",["root","disabled","focusVisible"]),nw=["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"],rw=tS("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"},[`&.${tw.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ow=Ge.exports.forwardRef((function(e,t){const n=Qx({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:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:v,onFocusVisible:b,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:w,onMouseUp:C,onTouchEnd:k,onTouchMove:E,onTouchStart:R,tabIndex:L=0,TouchRippleProps:O,touchRippleRef:M,type:I}=n,T=Dp(n,nw),P=Ge.exports.useRef(null),z=Ge.exports.useRef(null),N=Ph(z,M),{isFocusVisibleRef:_,onFocus:A,onBlur:D,ref:$}=Fh(),[q,j]=Ge.exports.useState(!1);s&&q&&j(!1),Ge.exports.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),P.current.focus()}})),[]);const[F,B]=Ge.exports.useState(!1);Ge.exports.useEffect((()=>{B(!0)}),[]);const W=F&&!c&&!s;function H(e,t,n=u){return Th((r=>{t&&t(r);return!n&&z.current&&z.current[e](r),!0}))}Ge.exports.useEffect((()=>{q&&d&&!c&&F&&z.current.pulsate()}),[c,d,q,F]);const U=H("start",S),V=H("stop",h),G=H("stop",g),K=H("stop",C),X=H("stop",(e=>{q&&e.preventDefault(),w&&w(e)})),Z=H("start",R),Y=H("stop",k),Q=H("stop",E),J=H("stop",(e=>{D(e),!1===_.current&&j(!1),f&&f(e)}),!1),ee=Th((e=>{P.current||(P.current=e.currentTarget),A(e),!0===_.current&&(j(!0),b&&b(e)),v&&v(e)})),te=()=>{const e=P.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Ge.exports.useRef(!1),re=Th((e=>{d&&!ne.current&&q&&z.current&&" "===e.key&&(ne.current=!0,z.current.stop(e,(()=>{z.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=Th((e=>{d&&" "===e.key&&z.current&&q&&!e.defaultPrevented&&(ne.current=!1,z.current.stop(e,(()=>{z.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ae=l;"button"===ae&&(T.href||T.to)&&(ae=p);const ie={};"button"===ae?(ie.type=void 0===I?"button":I,ie.disabled=s):(T.href||T.to||(ie.role="button"),s&&(ie["aria-disabled"]=s));const le=Ph($,P),se=Ph(t,le),ce=Ap({},n,{centerRipple:o,component:l,disabled:s,disableRipple:c,disableTouchRipple:u,focusRipple:d,tabIndex:L,focusVisible:q}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=Gh({root:["root",t&&"disabled",n&&"focusVisible"]},ew,o);return n&&r&&(a.root+=` ${r}`),a})(ce);return ih.exports.jsxs(rw,Ap({as:ae,className:uv(ue.root,i),ownerState:ce,onBlur:J,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:U,onMouseLeave:X,onMouseUp:K,onDragLeave:G,onTouchEnd:Y,onTouchMove:Q,onTouchStart:Z,ref:se,tabIndex:s?-1:L,type:I},ie,T,{children:[a,W?ih.exports.jsx(JS,Ap({ref:N,center:o},O)):null]}))}));function aw(e){return Yh("MuiButton",e)}const iw=Qh("MuiButton",["root","text","textInherit","textPrimary","textSecondary","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","contained","containedInherit","containedPrimary","containedSecondary","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),lw=Ge.exports.createContext({}),sw=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],cw=e=>Ap({},"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}}),uw=tS(ow,{shouldForwardProp:e=>Jx(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wh(n.color)}`],t[`size${wh(n.size)}`],t[`${n.variant}Size${wh(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;return Ap({},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":Ap({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hv(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})`:Hv(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})`:Hv(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":Ap({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${iw.focusVisible}`]:Ap({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${iw.disabled}`]:Ap({color:(e.vars||e).palette.action.disabled},"outlined"===t.variant&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"outlined"===t.variant&&"secondary"===t.color&&{border:`1px solid ${(e.vars||e).palette.action.disabled}`},"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 ${Hv(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"},[`&.${iw.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${iw.disabled}`]:{boxShadow:"none"}})),dw=tS("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${wh(n.size)}`]]}})((({ownerState:e})=>Ap({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},cw(e)))),pw=tS("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${wh(n.size)}`]]}})((({ownerState:e})=>Ap({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},cw(e)))),fw=Ge.exports.forwardRef((function(e,t){const n=Ge.exports.useContext(lw),r=Qx({props:Vh(n,e),name:"MuiButton"}),{children:o,color:a="primary",component:i="button",className:l,disabled:s=!1,disableElevation:c=!1,disableFocusRipple:u=!1,endIcon:d,focusVisibleClassName:p,fullWidth:f=!1,size:m="medium",startIcon:h,type:g,variant:v="text"}=r,b=Dp(r,sw),y=Ap({},r,{color:a,component:i,disabled:s,disableElevation:c,disableFocusRipple:u,fullWidth:f,size:m,type:g,variant:v}),x=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:a,classes:i}=e;return Ap({},i,Gh({root:["root",a,`${a}${wh(t)}`,`size${wh(o)}`,`${a}Size${wh(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${wh(o)}`],endIcon:["endIcon",`iconSize${wh(o)}`]},aw,i))})(y),S=h&&ih.exports.jsx(dw,{className:x.startIcon,ownerState:y,children:h}),w=d&&ih.exports.jsx(pw,{className:x.endIcon,ownerState:y,children:d});return ih.exports.jsxs(uw,Ap({ownerState:y,className:uv(l,n.className),component:i,disabled:s,focusRipple:!u,focusVisibleClassName:uv(x.focusVisible,p),ref:t,type:g},b,{classes:x,children:[S,o,w]}))}));var mw={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 hw="#009845",gw="#3F8AB3",vw="#ffffff",bw="#404040",yw="#333333",xw="#1A1A1A",Sw={mode:"light",palette:{primary:{main:bw,contrastText:vw},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:bw,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)"},action:{active:bw,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:vw,default:vw,lightest:vw,lighter:"#FBFBFB",darker:"#F2F2F2",darkest:"#E6E6E6"},custom:{focusBorder:gw,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)"},selected:{main:hw,alternative:"#E4E4E4",excluded:"#BEBEBE",mainContrastText:vw,alternativeContrastText:bw,excludedContrastText:bw},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)"}}},ww={mode:"dark",palette:{primary:{main:yw,contrastText:vw},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:vw,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)"},action:{active:vw,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:bw,lighter:yw,darker:"#262626",darkest:xw},custom:{focusBorder:gw,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)"},selected:{main:hw,alternative:yw,excluded:xw,mainContrastText:vw,alternativeContrastText:vw,excludedContrastText:vw},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)"}}},Cw={},kw=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(iw.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(iw.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(iw.disabled)]:{backgroundColor:e.palette.btn.disabled}},"&:active":{boxShadow:"none",backgroundColor:e.palette.btn.active},["&.".concat(iw.disabled)]:{backgroundColor:e.palette.btn.disabled}}},MuiAccordionSummary:{content:{margin:"8px 0"}}});function Ew(e){let t=Sw,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn("Invalid theme: '".concat(e,"'")):"dark"===e&&(t=ww));const r=JSON.stringify(t);if(Cw[r])return Cw[r];const a={palette:o(o({type:t.mode},mw.palette),t.palette),typography:o({},mw.typography),shadows:mw.shadows,props:o({},mw.props),shape:o({},mw.shape)};return Cw[r]=Xx(function(e){const{defaultProps:t={},mixins:n={},overrides:r={},palette:o={},props:a={},styleOverrides:i={}}=e,l=Ap({},Dp(e,ob),{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=mv(e.spacing);const s=pv(e.breakpoints||{}),c=l.spacing;l.mixins=Ap({gutters:(e={})=>Ap({paddingLeft:c(2),paddingRight:c(2)},e,{[s.up("sm")]:Ap({paddingLeft:c(3),paddingRight:c(3)},e[s.up("sm")])})},n);const{type:u,mode:d}=o,p=Dp(o,ab),f=d||u||"light";return l.palette=Ap({text:{hint:"dark"===f?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:f,type:f},p),l}(o(o({},a),{},{overrides:kw(a)}))),Cw[r].name=n,Cw[r]}Xh.configure((e=>"njs-".concat("2bc2","-").concat(e.replace("Mui",""))));var Rw=Ot.createContext({language:null,theme:null,translator:null,constraints:{}}),Lw=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]=Ge.exports.useState(n);return Ge.exports.useEffect((()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)})),[e]),[o]};return[a,o]};const[Ow,Mw]=Lw({}),[Iw,Tw]=Lw({}),[Pw,zw]=Lw({}),[Nw,_w]=Lw({}),[Aw,Dw]=Lw({}),[,$w]=Lw({}),qw=e=>{let{type:t,value:n}=e;const r=$w.get(n.id);$w.set(n.id,{});const o=()=>{Tw.clear(n.id),Dw.set(n.id,{}),Dw.dispatch(!0)},a=()=>{n.removeListener("changed",o),Mw.clear(n.id),Tw.clear(n.id),zw.clear(n.id),_w.clear(n.id),Dw.clear(n.id),$w.clear(n.id)};if("SET"===t)r||(n.on("changed",o),n.once("closed",(()=>{a()})));return a},[jw,Fw]=Lw({},qw),Bw=(e,t)=>{const{rpcResultStore:n,key:r,method:a}=t;let i;switch(t.type){case"INVALID":i=o(o({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:o({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=o(o({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let l=n.get(r);return l||(l={}),l[a]=i,n.set(r,l),i};function Ww(e,t){const n=e?"".concat(e.id):null,[r]=Ow(),[o,a]=Ge.exports.useReducer(Bw,n?r.get(n):null),[i]=Aw(),[l]=Iw();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 Ge.exports.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 Hw(e){return Ww(e,"getLayout")}function Uw(e){return Ww(e,"getAppLayout")}function Vw(e,t){const n=t?"".concat(t.id,"/").concat(JSON.stringify(e)):null,[r]=jw(),[o]=Pw(),[a,i]=Ge.exports.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 Ge.exports.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 Gw={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Kw(e){return Vw(Gw,e)}function Xw(e){const[t]=Kw(e),[n]=Hw(t),[r]=Uw(e),[o,a]=Ge.exports.useState(null);return Ge.exports.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]),Ge.exports.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]}const[Zw,Yw]=Lw({}),[Qw,Jw]=Lw({}),[eC,tC]=Lw({}),[nC,rC]=Lw({});function oC(e){if(!e.session)return[];const[t,n,r]=Xw(e),[o]=Zw(),a=e?e.id:null;let i=o.get(a);return Ge.exports.useEffect((()=>{e&&n&&r&&t&&!i&&(i=function(e){let{app:t,currentSelectionsLayout:n,navState:r}=e;const o="".concat(t.id),a=async function(){let e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const t=rC.get(o);t&&(await t.endSelections(e),rC.clear(o),tC.get(t.id).emit("deactivated"))},i={begin:async function(e,n){let r=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e===rC.get(o))return;a(r),rC.set(o,e);const i=Array.isArray(n)?n:[n],l=async n=>{try{await e.beginSelections(i),rC.set(o,e)}catch(e){6003!==e.code||n?rC.clear(o):(await t.abortModal(r),l(!0))}};await l()},end:a};Jw.set(o,i);const l={model:t,isInModal:()=>!!rC.get(o),isModal:e=>e?rC.get(o)===e:!!rC.get(o),canGoForward:()=>r.canGoForward,canGoBack:()=>r.canGoBack,canClear:()=>r.canClear,layout:()=>n,forward:()=>i.end().then((()=>t.forward())),back:()=>i.end().then((()=>t.back())),clear:()=>i.end().then((()=>t.clearAll())),clearField(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$";return i.end().then((()=>t.getField(e,n).then((e=>e.clear()))))}};return l}({app:e,currentSelectionsLayout:r,navState:t}),o.set(a,i),o.dispatch(!0))}),[e,n,r,t]),[i,t]}const aC=Ge.exports.forwardRef(((e,t)=>{let{initialContext:n,app:r}=e;const[o]=oC(r),[a,i]=Ge.exports.useState(n),[l,s]=Ge.exports.useState(),{theme:c}=Ge.exports.useMemo((()=>({theme:Ew(l)})),[l]),[u,d]=Ge.exports.useState([]);return Ge.exports.useImperativeHandle(t,(()=>({addComponent(e){d([...u,e])},removeComponent(e){const t=u.indexOf(e);-1!==t&&(u.splice(t,1),d([...u]))},setMuiThemeName:s,setContext:i,getAppSelections:()=>o}))),Ot.createElement(gh,{injectFirst:!0},Ot.createElement(Xv,{theme:c},Ot.createElement(Rw.Provider,{value:a},u)))}));function iC(e){let t,{app:n,context:r}=e;const o=new Promise((e=>{t=e})),a=Ot.createRef(),i=document.createElement("div");i.style.display="none",i.setAttribute("data-nebulajs-version","3.0.0-alpha3"),i.setAttribute("data-app-id",n.id),document.body.appendChild(i),_p.render(Ot.createElement(aC,{ref:a,app:n,initialContext:r}),i,t);const l={};return[{toggleFocusOfCells(e){Object.keys(l).forEach((t=>{l[t].current.toggleFocus(t===e)}))},cells:l,addCell(e,t){l[e]=t},add(e){(async()=>{await o,a.current.addComponent(e)})()},remove(e){(async()=>{await o,a.current.removeComponent(e)})()},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 lC(e){return Yh("MuiSvgIcon",e)}Qh("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const sC=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],cC=tS("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${wh(n.color)}`],t[`fontSize${wh(n.fontSize)}`]]}})((({theme:e,ownerState:t})=>{var n,r,o,a,i,l,s,c,u,d,p,f,m,h,g,v,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=e.transitions)||null==(r=n.create)?void 0:r.call(n,"fill",{duration:null==(o=e.transitions)||null==(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.1875"}[t.fontSize],color:null!=(p=null==(f=(e.vars||e).palette)||null==(m=f[t.color])?void 0:m.main)?p:{action:null==(h=(e.vars||e).palette)||null==(g=h.action)?void 0:g.active,disabled:null==(v=(e.vars||e).palette)||null==(b=v.action)?void 0:b.disabled,inherit:void 0}[t.color]}})),uC=Ge.exports.forwardRef((function(e,t){const n=Qx({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=Dp(n,sC),f=Ap({},n,{color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:c,viewBox:d}),m={};c||(m.viewBox=d);const h=(e=>{const{color:t,fontSize:n,classes:r}=e;return Gh({root:["root","inherit"!==t&&`color${wh(t)}`,`fontSize${wh(n)}`]},lC,r)})(f);return ih.exports.jsxs(cC,Ap({as:i,className:uv(h.root,o),ownerState:f,focusable:"false",color:s,"aria-hidden":!u||void 0,role:u?"img":void 0,ref:t},m,p,{children:[r,u?ih.exports.jsx("title",{children:u}):null]}))}));function dC(e,t){const n=(n,r)=>ih.exports.jsx(uC,Ap({"data-testid":`${t}Icon`,ref:r},n,{children:e}));return n.muiName=uC.muiName,Ge.exports.memo(Ge.exports.forwardRef(n))}uC.muiName="SvgIcon";const pC=e=>e.scrollTop;function fC(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 mC(e){return Yh("MuiCollapse",e)}Qh("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const hC=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],gC=tS("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],"entered"===n.state&&t.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&t.hidden]}})((({theme:e,ownerState:t})=>Ap({height:0,overflow:"hidden",transition:e.transitions.create("height")},"horizontal"===t.orientation&&{height:"auto",width:0,transition:e.transitions.create("width")},"entered"===t.state&&Ap({height:"auto",overflow:"visible"},"horizontal"===t.orientation&&{width:"auto"}),"exited"===t.state&&!t.in&&"0px"===t.collapsedSize&&{visibility:"hidden"}))),vC=tS("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})((({ownerState:e})=>Ap({display:"flex",width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),bC=tS("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})((({ownerState:e})=>Ap({width:"100%"},"horizontal"===e.orientation&&{width:"auto",height:"100%"}))),yC=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiCollapse"}),{addEndListener:r,children:o,className:a,collapsedSize:i="0px",component:l,easing:s,in:c,onEnter:u,onEntered:d,onEntering:p,onExit:f,onExited:m,onExiting:h,orientation:g="vertical",style:v,timeout:b=Wx.standard,TransitionComponent:y=SS}=n,x=Dp(n,hC),S=Ap({},n,{orientation:g,collapsedSize:i}),w=(e=>{const{orientation:t,classes:n}=e;return Gh({root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]},mC,n)})(S),C=Yx(),k=Ge.exports.useRef(),E=Ge.exports.useRef(null),R=Ge.exports.useRef(),L="number"==typeof i?`${i}px`:i,O="horizontal"===g,M=O?"width":"height";Ge.exports.useEffect((()=>()=>{clearTimeout(k.current)}),[]);const I=Ge.exports.useRef(null),T=Ph(t,I),P=e=>t=>{if(e){const n=I.current;void 0===t?e(n):e(n,t)}},z=()=>E.current?E.current[O?"clientWidth":"clientHeight"]:0,N=P(((e,t)=>{E.current&&O&&(E.current.style.position="absolute"),e.style[M]=L,u&&u(e,t)})),_=P(((e,t)=>{const n=z();E.current&&O&&(E.current.style.position="");const{duration:r,easing:o}=fC({style:v,timeout:b,easing:s},{mode:"enter"});if("auto"===b){const t=C.transitions.getAutoHeightDuration(n);e.style.transitionDuration=`${t}ms`,R.current=t}else e.style.transitionDuration="string"==typeof r?r:`${r}ms`;e.style[M]=`${n}px`,e.style.transitionTimingFunction=o,p&&p(e,t)})),A=P(((e,t)=>{e.style[M]="auto",d&&d(e,t)})),D=P((e=>{e.style[M]=`${z()}px`,f&&f(e)})),$=P(m),q=P((e=>{const t=z(),{duration:n,easing:r}=fC({style:v,timeout:b,easing:s},{mode:"exit"});if("auto"===b){const n=C.transitions.getAutoHeightDuration(t);e.style.transitionDuration=`${n}ms`,R.current=n}else e.style.transitionDuration="string"==typeof n?n:`${n}ms`;e.style[M]=L,e.style.transitionTimingFunction=r,h&&h(e)}));return ih.exports.jsx(y,Ap({in:c,onEnter:N,onEntered:A,onEntering:_,onExit:D,onExited:$,onExiting:q,addEndListener:e=>{"auto"===b&&(k.current=setTimeout(e,R.current||0)),r&&r(I.current,e)},nodeRef:I,timeout:"auto"===b?null:b},x,{children:(e,t)=>ih.exports.jsx(gC,Ap({as:l,className:uv(w.root,a,{entered:w.entered,exited:!c&&"0px"===L&&w.hidden}[e]),style:Ap({[O?"minWidth":"minHeight"]:L},v),ownerState:Ap({},S,{state:e}),ref:T},t,{children:ih.exports.jsx(vC,{ownerState:Ap({},S,{state:e}),className:w.wrapper,ref:E,children:ih.exports.jsx(bC,{ownerState:Ap({},S,{state:e}),className:w.wrapperInner,children:o})})}))}))}));yC.muiSupportAuto=!0;const xC=Qh("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);tS(iS,{name:"MuiAccordion",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xC.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})((({theme:e})=>{const t={duration:e.transitions.duration.shortest};return{position:"relative",transition:e.transitions.create(["margin"],t),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(e.vars||e).palette.divider,transition:e.transitions.create(["opacity","background-color"],t)},"&:first-of-type":{"&:before":{display:"none"}},[`&.${xC.expanded}`]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},[`&.${xC.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),(({theme:e,ownerState:t})=>Ap({},!t.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!t.disableGutters&&{[`&.${xC.expanded}`]:{margin:"16px 0"}}))),Qh("MuiAccordionActions",["root","spacing"]),tS("div",{name:"MuiAccordionActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>Ap({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),Qh("MuiAccordionDetails",["root"]),tS("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({padding:e.spacing(1,2,2)})));const SC=Qh("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);tS(ow,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e,ownerState:t})=>{const n={duration:e.transitions.duration.shortest};return Ap({display:"flex",minHeight:48,padding:e.spacing(0,2),transition:e.transitions.create(["min-height","background-color"],n),[`&.${SC.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${SC.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${SC.disabled})`]:{cursor:"pointer"}},!t.disableGutters&&{[`&.${SC.expanded}`]:{minHeight:64}})})),tS("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(e,t)=>t.content})((({theme:e,ownerState:t})=>Ap({display:"flex",flexGrow:1,margin:"12px 0"},!t.disableGutters&&{transition:e.transitions.create(["margin"],{duration:e.transitions.duration.shortest}),[`&.${SC.expanded}`]:{margin:"20px 0"}}))),tS("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(e,t)=>t.expandIconWrapper})((({theme:e})=>({display:"flex",color:(e.vars||e).palette.action.active,transform:"rotate(0deg)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shortest}),[`&.${SC.expanded}`]:{transform:"rotate(180deg)"}})));const wC=Qh("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]);function CC(e){return Yh("MuiIconButton",e)}const kC=Qh("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),EC=["edge","children","className","color","disabled","disableFocusRipple","size"],RC=tS(ow,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wh(n.color)}`],n.edge&&t[`edge${wh(n.edge)}`],t[`size${wh(n.size)}`]]}})((({theme:e,ownerState:t})=>Ap({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.active} / ${e.vars.palette.action.hoverOpacity})`:Hv(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})=>Ap({},"inherit"===t.color&&{color:"inherit"},"inherit"!==t.color&&"default"!==t.color&&Ap({color:(e.vars||e).palette[t.color].main},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Hv(e.palette[t.color].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)},{[`&.${kC.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),LC=Ge.exports.forwardRef((function(e,t){const n=Qx({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=Dp(n,EC),d=Ap({},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 Gh({root:["root",n&&"disabled","default"!==r&&`color${wh(r)}`,o&&`edge${wh(o)}`,`size${wh(a)}`]},CC,t)})(d);return ih.exports.jsx(RC,Ap({className:uv(p.root,a),centerRipple:!0,focusRipple:!s,disabled:l,ref:t,ownerState:d},u,{children:o}))}));function OC(e){return Yh("MuiTypography",e)}dC(ih.exports.jsx("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),dC(ih.exports.jsx("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),dC(ih.exports.jsx("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),dC(ih.exports.jsx("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),dC(ih.exports.jsx("path",{d:"M19 6.41L17.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"),tS(iS,{name:"MuiAlert",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${wh(n.color||n.severity)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?Uv:Vv,r="light"===e.palette.mode?Vv:Uv,o=t.color||t.severity;return Ap({},e.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===t.variant&&{color:n(e.palette[o].light,.6),backgroundColor:r(e.palette[o].light,.9),[`& .${wC.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"outlined"===t.variant&&{color:n(e.palette[o].light,.6),border:`1px solid ${e.palette[o].light}`,[`& .${wC.icon}`]:{color:"dark"===e.palette.mode?e.palette[o].main:e.palette[o].light}},o&&"filled"===t.variant&&{color:"#fff",fontWeight:e.typography.fontWeightMedium,backgroundColor:"dark"===e.palette.mode?e.palette[o].dark:e.palette[o].main})})),tS("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(e,t)=>t.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),tS("div",{name:"MuiAlert",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),tS("div",{name:"MuiAlert",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Qh("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const MC=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],IC=tS("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${wh(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>Ap({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}))),TC={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},PC={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},zC=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiTypography"}),r=(e=>PC[e]||e)(n.color),o=sv(Ap({},n,{color:r})),{align:a="inherit",className:i,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=TC}=o,f=Dp(o,MC),m=Ap({},o,{align:a,color:r,className:i,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p}),h=l||(u?"p":p[d]||TC[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:a,classes:i}=e;return Gh({root:["root",a,"inherit"!==e.align&&`align${wh(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},OC,i)})(m);return ih.exports.jsx(IC,Ap({as:h,ref:t,ownerState:m,className:uv(g.root,i)},f))}));Qh("MuiAlertTitle",["root"]),tS(zC,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Qh("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]),tS(iS,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${wh(n.position)}`],t[`color${wh(n.color)}`]]}})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[900];return Ap({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===t.position&&{position:"fixed",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===t.position&&{position:"absolute",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0},"sticky"===t.position&&{position:"sticky",zIndex:e.zIndex.appBar,top:0,left:"auto",right:0},"static"===t.position&&{position:"static"},"relative"===t.position&&{position:"relative"},"default"===t.color&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&"default"!==t.color&&"inherit"!==t.color&&"transparent"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},"inherit"===t.color&&{color:"inherit"},"dark"===e.palette.mode&&!t.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===t.color&&Ap({backgroundColor:"transparent",color:"inherit"},"dark"===e.palette.mode&&{backgroundImage:"none"}))}));const NC=tS(Ty,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),_C=Ge.exports.forwardRef((function(e,t){const n=Sv(),r=Qx({props:e,name:"MuiPopper"});return ih.exports.jsx(NC,Ap({direction:null==n?void 0:n.direction},r,{ref:t}))}));function AC(e){return Yh("MuiListSubheader",e)}Qh("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const DC=["className","color","component","disableGutters","disableSticky","inset"],$C=tS("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"default"!==n.color&&t[`color${wh(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})((({theme:e,ownerState:t})=>Ap({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},"primary"===t.color&&{color:(e.vars||e).palette.primary.main},"inherit"===t.color&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}))),qC=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiListSubheader"}),{className:r,color:o="default",component:a="li",disableGutters:i=!1,disableSticky:l=!1,inset:s=!1}=n,c=Dp(n,DC),u=Ap({},n,{color:o,component:a,disableGutters:i,disableSticky:l,inset:s}),d=(e=>{const{classes:t,color:n,disableGutters:r,inset:o,disableSticky:a}=e;return Gh({root:["root","default"!==n&&`color${wh(n)}`,!r&&"gutters",o&&"inset",!a&&"sticky"]},AC,t)})(u);return ih.exports.jsx($C,Ap({as:a,className:uv(d.root,r),ref:t,ownerState:u},c))}));dC(ih.exports.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel");const jC=Qh("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","focusVisible"]);function FC({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)),{})}tS("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,clickable:o,onDelete:a,size:i,variant:l}=n;return[{[`& .${jC.avatar}`]:t.avatar},{[`& .${jC.avatar}`]:t[`avatar${wh(i)}`]},{[`& .${jC.avatar}`]:t[`avatarColor${wh(r)}`]},{[`& .${jC.icon}`]:t.icon},{[`& .${jC.icon}`]:t[`icon${wh(i)}`]},{[`& .${jC.icon}`]:t[`iconColor${wh(r)}`]},{[`& .${jC.deleteIcon}`]:t.deleteIcon},{[`& .${jC.deleteIcon}`]:t[`deleteIcon${wh(i)}`]},{[`& .${jC.deleteIcon}`]:t[`deleteIconColor${wh(r)}`]},{[`& .${jC.deleteIcon}`]:t[`deleteIconOutlinedColor${wh(r)}`]},t.root,t[`size${wh(i)}`],t[`color${wh(r)}`],o&&t.clickable,o&&"default"!==r&&t[`clickableColor${wh(r)})`],a&&t.deletable,a&&"default"!==r&&t[`deletableColor${wh(r)}`],t[l],"outlined"===l&&t[`outlined${wh(r)}`]]}})((({theme:e,ownerState:t})=>{const n=Hv(e.palette.text.primary,.26);return Ap({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:e.palette.text.primary,backgroundColor:e.palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${jC.disabled}`]:{opacity:e.palette.action.disabledOpacity,pointerEvents:"none"},[`& .${jC.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],fontSize:e.typography.pxToRem(12)},[`& .${jC.avatarColorPrimary}`]:{color:e.palette.primary.contrastText,backgroundColor:e.palette.primary.dark},[`& .${jC.avatarColorSecondary}`]:{color:e.palette.secondary.contrastText,backgroundColor:e.palette.secondary.dark},[`& .${jC.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${jC.icon}`]:Ap({color:"light"===e.palette.mode?e.palette.grey[700]:e.palette.grey[300],marginLeft:5,marginRight:-6},"small"===t.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==t.color&&{color:"inherit"}),[`& .${jC.deleteIcon}`]:Ap({WebkitTapHighlightColor:"transparent",color:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:Hv(n,.4)}},"small"===t.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==t.color&&{color:Hv(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:e.palette[t.color].contrastText}})},"small"===t.size&&{height:24},"default"!==t.color&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.onDelete&&{[`&.${jC.focusVisible}`]:{backgroundColor:Hv(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&"default"!==t.color&&{[`&.${jC.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})}),(({theme:e,ownerState:t})=>Ap({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:Hv(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${jC.focusVisible}`]:{backgroundColor:Hv(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:e.shadows[1]}},t.clickable&&"default"!==t.color&&{[`&:hover, &.${jC.focusVisible}`]:{backgroundColor:e.palette[t.color].dark}})),(({theme:e,ownerState:t})=>Ap({},"outlined"===t.variant&&{backgroundColor:"transparent",border:`1px solid ${"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${jC.clickable}:hover`]:{backgroundColor:e.palette.action.hover},[`&.${jC.focusVisible}`]:{backgroundColor:e.palette.action.focus},[`& .${jC.avatar}`]:{marginLeft:4},[`& .${jC.avatarSmall}`]:{marginLeft:2},[`& .${jC.icon}`]:{marginLeft:4},[`& .${jC.iconSmall}`]:{marginLeft:2},[`& .${jC.deleteIcon}`]:{marginRight:5},[`& .${jC.deleteIconSmall}`]:{marginRight:3}},"outlined"===t.variant&&"default"!==t.color&&{color:e.palette[t.color].main,border:`1px solid ${Hv(e.palette[t.color].main,.7)}`,[`&.${jC.clickable}:hover`]:{backgroundColor:Hv(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${jC.focusVisible}`]:{backgroundColor:Hv(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${jC.deleteIcon}`]:{color:Hv(e.palette[t.color].main,.7),"&:hover, &:active":{color:e.palette[t.color].main}}}))),tS("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${wh(r)}`]]}})((({ownerState:e})=>Ap({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===e.size&&{paddingLeft:8,paddingRight:8})));const BC=Ge.exports.createContext();function WC(){return Ge.exports.useContext(BC)}function HC(e){return ih.exports.jsx(vh,Ap({},e,{defaultTheme:Zx}))}function UC(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function VC(e,t=!1){return e&&(UC(e.value)&&""!==e.value||t&&UC(e.defaultValue)&&""!==e.defaultValue)}function GC(e){return Yh("MuiInputBase",e)}const KC=Qh("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),XC=["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","startAdornment","type","value"],ZC=(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${wh(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},YC=(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]},QC=tS("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ZC})((({theme:e,ownerState:t})=>Ap({},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",[`&.${KC.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Ap({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),JC=tS("input",{name:"MuiInputBase",slot:"Input",overridesResolver:YC})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=Ap({color:"currentColor"},e.vars?{opacity:e.vars.opacity.placeholder}:{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.placeholder}:{opacity:n?.42:.5};return Ap({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] + .${KC.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},[`&.${KC.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"})})),ek=ih.exports.jsx(HC,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),tk=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:a,className:i,components:l={},componentsProps:s={},defaultValue:c,disabled:u,disableInjectingGlobalStyles:d,endAdornment:p,fullWidth:f=!1,id:m,inputComponent:h="input",inputProps:g={},inputRef:v,maxRows:b,minRows:y,multiline:x=!1,name:S,onBlur:w,onChange:C,onClick:k,onFocus:E,onKeyDown:R,onKeyUp:L,placeholder:O,readOnly:M,renderSuffix:I,rows:T,startAdornment:P,type:z="text",value:N}=n,_=Dp(n,XC),A=null!=g.value?g.value:N,{current:D}=Ge.exports.useRef(null!=A),$=Ge.exports.useRef(),q=Ge.exports.useCallback((e=>{}),[]),j=Ph(g.ref,q),F=Ph(v,j),B=Ph($,F),[W,H]=Ge.exports.useState(!1),U=WC(),V=FC({props:n,muiFormControl:U,states:["color","disabled","error","hiddenLabel","size","required","filled"]});V.focused=U?U.focused:W,Ge.exports.useEffect((()=>{!U&&u&&W&&(H(!1),w&&w())}),[U,u,W,w]);const G=U&&U.onFilled,K=U&&U.onEmpty,X=Ge.exports.useCallback((e=>{VC(e)?G&&G():K&&K()}),[G,K]);Mh((()=>{D&&X({value:A})}),[A,X,D]);Ge.exports.useEffect((()=>{X($.current)}),[]);let Z=h,Y=g;x&&"input"===Z&&(Y=Ap(T?{type:void 0,minRows:T,maxRows:T}:{type:void 0,maxRows:b,minRows:y},Y),Z=Xy);Ge.exports.useEffect((()=>{U&&U.setAdornedStart(Boolean(P))}),[U,P]);const Q=Ap({},n,{color:V.color||"primary",disabled:V.disabled,endAdornment:p,error:V.error,focused:V.focused,formControl:U,fullWidth:f,hiddenLabel:V.hiddenLabel,multiline:x,size:V.size,startAdornment:P,type:z}),J=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:a,focused:i,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,size:d,startAdornment:p,type:f}=e;return Gh({root:["root",`color${wh(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",i&&"focused",l&&"formControl","small"===d&&"sizeSmall",u&&"multiline",p&&"adornedStart",a&&"adornedEnd",c&&"hiddenLabel"],input:["input",r&&"disabled","search"===f&&"inputTypeSearch",u&&"inputMultiline","small"===d&&"inputSizeSmall",c&&"inputHiddenLabel",p&&"inputAdornedStart",a&&"inputAdornedEnd"]},GC,t)})(Q),ee=l.Root||QC,te=s.root||{},ne=l.Input||JC;return Y=Ap({},Y,s.input),ih.exports.jsxs(Ge.exports.Fragment,{children:[!d&&ek,ih.exports.jsxs(ee,Ap({},te,!ib(ee)&&{ownerState:Ap({},Q,te.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),k&&k(e)}},_,{className:uv(J.root,te.className,i),children:[P,ih.exports.jsx(BC.Provider,{value:null,children:ih.exports.jsx(ne,Ap({ownerState:Q,"aria-invalid":V.error,"aria-describedby":r,autoComplete:o,autoFocus:a,defaultValue:c,disabled:V.disabled,id:m,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:S,placeholder:O,readOnly:M,required:V.required,rows:T,value:A,onKeyDown:R,onKeyUp:L,type:z},Y,!ib(ne)&&{as:Z,ownerState:Ap({},Q,Y.ownerState)},{ref:B,className:uv(J.input,Y.className),onBlur:e=>{w&&w(e),g.onBlur&&g.onBlur(e),U&&U.onBlur?U.onBlur(e):H(!1)},onChange:(e,...t)=>{if(!D){const t=e.target||$.current;if(null==t)throw new Error(Sh(1));X({value:t.value})}g.onChange&&g.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{V.disabled?e.stopPropagation():(E&&E(e),g.onFocus&&g.onFocus(e),U&&U.onFocus?U.onFocus(e):H(!0))}}))}),p,I?I(Ap({},V,{startAdornment:P})):null]}))]})}));function nk(e){return Yh("MuiInput",e)}const rk=Ap({},KC,Qh("MuiInput",["root","underline","input"]));function ok(e){return Yh("MuiOutlinedInput",e)}const ak=Ap({},KC,Qh("MuiOutlinedInput",["root","notchedOutline","input"]));function ik(e){return Yh("MuiFilledInput",e)}const lk=Ap({},KC,Qh("MuiFilledInput",["root","underline","input"]));var sk=dC(ih.exports.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const ck=Qh("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);tS("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:o,hasPopupIcon:a,inputFocused:i,size:l}=n;return[{[`& .${ck.tag}`]:t.tag},{[`& .${ck.tag}`]:t[`tagSize${wh(l)}`]},{[`& .${ck.inputRoot}`]:t.inputRoot},{[`& .${ck.input}`]:t.input},{[`& .${ck.input}`]:i&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,o&&t.hasClearIcon]}})((({ownerState:e})=>Ap({[`&.${ck.focused} .${ck.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ck.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${ck.tag}`]:Ap({margin:3,maxWidth:"calc(100% - 6px)"},"small"===e.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${ck.inputRoot}`]:{flexWrap:"wrap",[`.${ck.hasPopupIcon}&, .${ck.hasClearIcon}&`]:{paddingRight:30},[`.${ck.hasPopupIcon}.${ck.hasClearIcon}&`]:{paddingRight:56},[`& .${ck.input}`]:{width:0,minWidth:30}},[`& .${rk.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${rk.root}.${KC.sizeSmall}`]:{[`& .${rk.input}`]:{padding:"2px 4px 3px 0"}},[`& .${ak.root}`]:{padding:9,[`.${ck.hasPopupIcon}&, .${ck.hasClearIcon}&`]:{paddingRight:39},[`.${ck.hasPopupIcon}.${ck.hasClearIcon}&`]:{paddingRight:65},[`& .${ck.input}`]:{padding:"7.5px 4px 7.5px 6px"},[`& .${ck.endAdornment}`]:{right:9}},[`& .${ak.root}.${KC.sizeSmall}`]:{padding:6,[`& .${ck.input}`]:{padding:"2.5px 4px 2.5px 6px"}},[`& .${lk.root}`]:{paddingTop:19,paddingLeft:8,[`.${ck.hasPopupIcon}&, .${ck.hasClearIcon}&`]:{paddingRight:39},[`.${ck.hasPopupIcon}.${ck.hasClearIcon}&`]:{paddingRight:65},[`& .${lk.input}`]:{padding:"7px 4px"},[`& .${ck.endAdornment}`]:{right:9}},[`& .${lk.root}.${KC.sizeSmall}`]:{paddingBottom:1,[`& .${lk.input}`]:{padding:"2.5px 4px"}},[`& .${KC.hiddenLabel}`]:{paddingTop:8},[`& .${ck.input}`]:Ap({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})}))),tS("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),tS(LC,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),tS(LC,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>Ap({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})((({ownerState:e})=>Ap({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"}))),tS(_C,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ck.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})((({theme:e,ownerState:t})=>Ap({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"}))),tS(iS,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})((({theme:e})=>Ap({},e.typography.body1,{overflow:"auto"}))),tS("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),tS("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})((({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),tS("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})((({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",[`& .${ck.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${ck.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ck.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ck.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ck.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}}))),tS(qC,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})((({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),tS("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ck.option}`]:{paddingLeft:24}});var uk=dC(ih.exports.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function dk(e){return Yh("MuiAvatar",e)}const pk=Qh("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),fk=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],mk=tS("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})((({theme:e,ownerState:t})=>Ap({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===t.variant&&{borderRadius:e.shape.borderRadius},"square"===t.variant&&{borderRadius:0},t.colorDefault&&{color:e.palette.background.default,backgroundColor:"light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600]}))),hk=tS("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),gk=tS(uk,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});const vk=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiAvatar"}),{alt:r,children:o,className:a,component:i="div",imgProps:l,sizes:s,src:c,srcSet:u,variant:d="circular"}=n,p=Dp(n,fk);let f=null;const m=function({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[o,a]=Ge.exports.useState(!1);return Ge.exports.useEffect((()=>{if(!n&&!r)return;a(!1);let o=!0;const i=new Image;return i.onload=()=>{o&&a("loaded")},i.onerror=()=>{o&&a("error")},i.crossOrigin=e,i.referrerPolicy=t,i.src=n,r&&(i.srcset=r),()=>{o=!1}}),[e,t,n,r]),o}(Ap({},l,{src:c,srcSet:u})),h=c||u,g=h&&"error"!==m,v=Ap({},n,{colorDefault:!g,component:i,variant:d}),b=(e=>{const{classes:t,variant:n,colorDefault:r}=e;return Gh({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},dk,t)})(v);return f=g?ih.exports.jsx(hk,Ap({alt:r,src:c,srcSet:u,sizes:s,ownerState:v,className:b.img},l)):null!=o?o:h&&r?r[0]:ih.exports.jsx(gk,{className:b.fallback}),ih.exports.jsx(mk,Ap({as:i,ownerState:v,className:uv(b.root,a),ref:t},p,{children:f}))})),bk=Qh("MuiAvatarGroup",["root","avatar"]);tS("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Ap({[`& .${bk.avatar}`]:t.avatar},t.root)})((({theme:e})=>({[`& .${pk.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}))),tS(vk,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})((({theme:e})=>({border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}})));const yk=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],xk={entering:{opacity:1},entered:{opacity:1}},Sk=Ge.exports.forwardRef((function(e,t){const n=Yx(),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:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:v=SS}=e,b=Dp(e,yk),y=Ge.exports.useRef(null),x=Ph(i.ref,t),S=Ph(y,x),w=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},C=w(d),k=w(((e,t)=>{pC(e);const r=fC({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)})),E=w(u),R=w(m),L=w((e=>{const t=fC({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),O=w(f);return ih.exports.jsx(v,Ap({appear:a,in:s,nodeRef:y,onEnter:k,onEntered:E,onEntering:C,onExit:L,onExited:O,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},b,{children:(e,t)=>Ge.exports.cloneElement(i,Ap({style:Ap({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},xk[e],h,i.props.style),ref:S},t))}))}));function wk(e){return Yh("MuiBackdrop",e)}Qh("MuiBackdrop",["root","invisible"]);const Ck=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],kk=tS("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>Ap({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"}))),Ek=Ge.exports.forwardRef((function(e,t){var n,r;const o=Qx({props:e,name:"MuiBackdrop"}),{children:a,component:i="div",components:l={},componentsProps:s={},className:c,invisible:u=!1,open:d,transitionDuration:p,TransitionComponent:f=Sk}=o,m=Dp(o,Ck),h=Ap({},o,{component:i,invisible:u}),g=(e=>{const{classes:t,invisible:n}=e;return Gh({root:["root",n&&"invisible"]},wk,t)})(h);return ih.exports.jsx(f,Ap({in:d,timeout:p},m,{children:ih.exports.jsx(kk,{"aria-hidden":!0,as:null!=(n=l.Root)?n:i,className:uv(g.root,c),ownerState:Ap({},h,null==(r=s.root)?void 0:r.ownerState),classes:g,ref:t,children:a})}))})),Rk=e=>!e||!ib(e);function Lk(e){return Yh("MuiBadge",e)}const Ok=Qh("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"]),Mk=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],Ik=tS("span",{name:"MuiBadge",slot:"Root",overridesResolver:(e,t)=>t.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),Tk=tS("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${wh(n.anchorOrigin.vertical)}${wh(n.anchorOrigin.horizontal)}${wh(n.overlap)}`],"default"!==n.color&&t[`color${wh(n.color)}`],n.invisible&&t.invisible]}})((({theme:e,ownerState:t})=>Ap({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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.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%",[`&.${Ok.invisible}`]:{transform:"scale(0) translate(-50%, 50%)"}},t.invisible&&{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}))),Pk=Ge.exports.forwardRef((function(e,t){var n,r,o,a;const i=Qx({props:e,name:"MuiBadge"}),{anchorOrigin:l={vertical:"top",horizontal:"right"},className:s,component:c="span",components:u={},componentsProps:d={},overlap:p="rectangular",color:f="default",invisible:m=!1,max:h,badgeContent:g,showZero:v=!1,variant:b="standard"}=i,y=Dp(i,Mk),x=Wh({anchorOrigin:l,color:f,overlap:p,variant:b});let S=m;!1===m&&(0===g&&!v||null==g&&"dot"!==b)&&(S=!0);const{color:w=f,overlap:C=p,anchorOrigin:k=l,variant:E=b}=S?x:i,R=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:a,classes:i={}}=e;return Gh({root:["root"],badge:["badge",a,r&&"invisible",`anchorOrigin${wh(n.vertical)}${wh(n.horizontal)}`,`anchorOrigin${wh(n.vertical)}${wh(n.horizontal)}${wh(o)}`,`overlap${wh(o)}`,"default"!==t&&`color${wh(t)}`]},Lk,i)})(Ap({},i,{anchorOrigin:k,invisible:S,color:w,overlap:C,variant:E}));let L;return"dot"!==E&&(L=g&&Number(g)>h?`${h}+`:g),ih.exports.jsx(ub,Ap({invisible:m,badgeContent:L,showZero:v,max:h},y,{components:Ap({Root:Ik,Badge:Tk},u),className:uv(s,R.root,null==(n=d.root)?void 0:n.className),componentsProps:{root:Ap({},d.root,Rk(u.Root)&&{as:c,ownerState:Ap({},null==(r=d.root)?void 0:r.ownerState,{anchorOrigin:k,color:w,overlap:C,variant:E})}),badge:Ap({},d.badge,{className:uv(R.badge,null==(o=d.badge)?void 0:o.className)},Rk(u.Badge)&&{ownerState:Ap({},null==(a=d.badge)?void 0:a.ownerState,{anchorOrigin:k,color:w,overlap:C,variant:E})})},ref:t}))}));Qh("MuiBottomNavigation",["root"]),tS("div",{name:"MuiBottomNavigation",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(e.vars||e).palette.background.paper})));const zk=Qh("MuiBottomNavigationAction",["root","iconOnly","selected","label"]);tS(ow,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.showLabel&&!n.selected&&t.iconOnly]}})((({theme:e,ownerState:t})=>Ap({transition:e.transitions.create(["color","padding-top"],{duration:e.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(e.vars||e).palette.text.secondary,flexDirection:"column",flex:"1"},!t.showLabel&&!t.selected&&{paddingTop:14},!t.showLabel&&!t.selected&&!t.label&&{paddingTop:0},{[`&.${zk.selected}`]:{color:(e.vars||e).palette.primary.main}}))),tS("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e,ownerState:t})=>Ap({fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!t.showLabel&&!t.selected&&{opacity:0,transitionDelay:"0s"},{[`&.${zk.selected}`]:{fontSize:e.typography.pxToRem(14)}})));const Nk=Ev({defaultTheme:Xx(),defaultClassName:"MuiBox-root",generateClassName:Xh.generate});var _k=dC(ih.exports.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");tS(ow)((({theme:e})=>Ap({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},"light"===e.palette.mode?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Ap({},"light"===e.palette.mode?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":Ap({boxShadow:e.shadows[0]},"light"===e.palette.mode?{backgroundColor:Gv(e.palette.grey[200],.12)}:{backgroundColor:Gv(e.palette.grey[600],.12)})}))),tS(_k)({width:24,height:16});const Ak=Qh("MuiBreadcrumbs",["root","ol","li","separator"]);tS(zC,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${Ak.li}`]:t.li},t.root]})({}),tS("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),tS("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});const Dk=Qh("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]);tS("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Dk.grouped}`]:t.grouped},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.orientation)}`]},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.variant)}`]},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.variant)}${wh(n.orientation)}`]},{[`& .${Dk.grouped}`]:t[`grouped${wh(n.variant)}${wh(n.color)}`]},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((({theme:e,ownerState:t})=>Ap({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[2]},t.disableElevation&&{boxShadow:"none"},t.fullWidth&&{width:"100%"},"vertical"===t.orientation&&{flexDirection:"column"},{[`& .${Dk.grouped}`]:Ap({minWidth:40,"&:not(:first-of-type)":Ap({},"horizontal"===t.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===t.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===t.variant&&"horizontal"===t.orientation&&{marginLeft:-1},"outlined"===t.variant&&"vertical"===t.orientation&&{marginTop:-1}),"&:not(:last-of-type)":Ap({},"horizontal"===t.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===t.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===t.variant&&"horizontal"===t.orientation&&{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===t.variant&&"vertical"===t.orientation&&{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===t.variant&&"inherit"!==t.color&&{borderColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:Hv(e.palette[t.color].main,.5)},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"transparent"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"transparent"},"contained"===t.variant&&"horizontal"===t.orientation&&{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Dk.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"vertical"===t.orientation&&{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${Dk.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}},"contained"===t.variant&&"inherit"!==t.color&&{borderColor:(e.vars||e).palette[t.color].dark},{"&:hover":Ap({},"outlined"===t.variant&&"horizontal"===t.orientation&&{borderRightColor:"currentColor"},"outlined"===t.variant&&"vertical"===t.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":Ap({},"contained"===t.variant&&{boxShadow:"none"})},"contained"===t.variant&&{boxShadow:"none"})}))),Qh("MuiCard",["root"]),tS(iS,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({overflow:"hidden"})));const $k=Qh("MuiCardActionArea",["root","focusVisible","focusHighlight"]);tS(ow,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",textAlign:"inherit",width:"100%",[`&:hover .${$k.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${$k.focusVisible} .${$k.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}}))),tS("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(e,t)=>t.focusHighlight})((({theme:e})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:e.transitions.create("opacity",{duration:e.transitions.duration.short})}))),Qh("MuiCardActions",["root","spacing"]),tS("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})((({ownerState:e})=>Ap({display:"flex",alignItems:"center",padding:8},!e.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}))),Qh("MuiCardContent",["root"]),tS("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})((()=>({padding:16,"&:last-child":{paddingBottom:24}})));const qk=Qh("MuiCardHeader",["root","avatar","action","content","title","subheader"]);function jk(e){return Yh("PrivateSwitchBase",e)}tS("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(e,t)=>Ap({[`& .${qk.title}`]:t.title,[`& .${qk.subheader}`]:t.subheader},t.root)})({display:"flex",alignItems:"center",padding:16}),tS("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(e,t)=>t.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),tS("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(e,t)=>t.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),tS("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(e,t)=>t.content})({flex:"1 1 auto"}),Qh("MuiCardMedia",["root","media","img"]),tS("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:o}=n;return[t.root,r&&t.media,o&&t.img]}})((({ownerState:e})=>Ap({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},e.isMediaComponent&&{width:"100%"},e.isImageComponent&&{objectFit:"cover"}))),Qh("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Fk=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Bk=tS(ow)((({ownerState:e})=>Ap({padding:9,borderRadius:"50%"},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}))),Wk=tS("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Hk=Ge.exports.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:m,onBlur:h,onChange:g,onFocus:v,readOnly:b,required:y,tabIndex:x,type:S,value:w}=e,C=Dp(e,Fk),[k,E]=Ih({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=WC();let L=l;R&&void 0===L&&(L=R.disabled);const O="checkbox"===S||"radio"===S,M=Ap({},e,{checked:k,disabled:L,disableFocusRipple:s,edge:c}),I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Gh({root:["root",n&&"checked",r&&"disabled",o&&`edge${wh(o)}`],input:["input"]},jk,t)})(M);return ih.exports.jsxs(Bk,Ap({component:"span",className:uv(I.root,a),centerRipple:!0,focusRipple:!s,disabled:L,tabIndex:null,role:void 0,onFocus:e=>{v&&v(e),R&&R.onFocus&&R.onFocus(e)},onBlur:e=>{h&&h(e),R&&R.onBlur&&R.onBlur(e)},ownerState:M,ref:t},C,{children:[ih.exports.jsx(Wk,Ap({autoFocus:n,checked:r,defaultChecked:i,className:I.input,disabled:L,id:O&&d,name:m,onChange:e=>{if(e.nativeEvent.defaultPrevented)return;const t=e.target.checked;E(t),g&&g(e,t)},readOnly:b,ref:f,required:y,ownerState:M,tabIndex:x,type:S},"checkbox"===S&&void 0===w?{}:{value:w},p)),k?o:u]}))}));var Uk=dC(ih.exports.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"),Vk=dC(ih.exports.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"),Gk=dC(ih.exports.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 Kk(e){return Yh("MuiCheckbox",e)}const Xk=Qh("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]),Zk=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],Yk=tS(Hk,{shouldForwardProp:e=>Jx(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${wh(n.color)}`]]}})((({theme:e,ownerState:t})=>Ap({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})`:Hv("default"===t.color?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${Xk.checked}, &.${Xk.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Xk.disabled}`]:{color:(e.vars||e).palette.action.disabled}}))),Qk=ih.exports.jsx(Vk,{}),Jk=ih.exports.jsx(Uk,{}),eE=ih.exports.jsx(Gk,{}),tE=Ge.exports.forwardRef((function(e,t){var n,r;const o=Qx({props:e,name:"MuiCheckbox"}),{checkedIcon:a=Qk,color:i="primary",icon:l=Jk,indeterminate:s=!1,indeterminateIcon:c=eE,inputProps:u,size:d="medium"}=o,p=Dp(o,Zk),f=s?c:l,m=s?c:a,h=Ap({},o,{color:i,indeterminate:s,size:d}),g=(e=>{const{classes:t,indeterminate:n,color:r}=e;return Ap({},t,Gh({root:["root",n&&"indeterminate",`color${wh(r)}`]},Kk,t))})(h);return ih.exports.jsx(Yk,Ap({type:"checkbox",inputProps:Ap({"data-indeterminate":s},u),icon:Ge.exports.cloneElement(f,{fontSize:null!=(n=f.props.fontSize)?n:d}),checkedIcon:Ge.exports.cloneElement(m,{fontSize:null!=(r=m.props.fontSize)?r:d}),ownerState:h,ref:t},p,{classes:g}))}));function nE(e){return Yh("MuiCircularProgress",e)}Qh("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const rE=["className","color","disableShrink","size","style","thickness","value","variant"];let oE,aE,iE,lE,sE=e=>e;const cE=44,uE=Gm(oE||(oE=sE`
|
|
106
106
|
0% {
|
|
107
107
|
transform: rotate(0deg);
|
|
108
108
|
}
|
|
@@ -227,5 +227,5 @@ var Nt=Ge.exports,_t=Pt.exports;function At(e){for(var t="https://reactjs.org/do
|
|
|
227
227
|
right: 0;
|
|
228
228
|
top: 0;
|
|
229
229
|
}
|
|
230
|
-
`),uM,t.palette.action.hover)));const dM=Ap({},Uy,Qh("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"]));tS("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${wh(n.color)}`],"medium"!==n.size&&t[`size${wh(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>Ap({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&Ap({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&Ap({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${dM.disabled}`]:{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},[`&.${dM.dragging}`]:{[`& .${dM.thumb}, & .${dM.track}`]:{transition:"none"}}}))),tS("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>Ap({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),tS("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?Vv(e.palette[t.color].main,.62):Uv(e.palette[t.color].main,.5);return Ap({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:n,borderColor:n})})),tS("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${wh(n.color)}`],"medium"!==n.size&&t[`thumbSize${wh(n.size)}`]]}})((({theme:e,ownerState:t})=>Ap({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":Ap({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:e.shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${dM.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${Hv(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${dM.active}`]:{boxShadow:`0px 0px 0px 14px ${Hv(e.palette[t.color].main,.16)}`},[`&.${dM.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),tS((function(e){const{children:t,className:n,value:r,theme:o}=e,a=(e=>{const{open:t}=e;return{offset:uv(t&&Uy.valueLabelOpen),circle:Uy.valueLabelCircle,label:Uy.valueLabelLabel}})(e);return Ge.exports.cloneElement(t,{className:uv(t.props.className)},ih.exports.jsxs(Ge.exports.Fragment,{children:[t.props.children,ih.exports.jsx("span",{className:uv(a.offset,n),theme:o,"aria-hidden":!0,children:ih.exports.jsx("span",{className:a.circle,children:ih.exports.jsx("span",{className:a.label,children:r})})})]}))}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>Ap({[`&.${dM.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:e.palette.grey[600],borderRadius:2,color:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"30px",top:"25px","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}))),tS("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>eS(e)&&"markActive"!==e,overridesResolver:(e,t)=>t.mark})((({theme:e,ownerState:t,markActive:n})=>Ap({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:e.palette.background.paper,opacity:.8}))),tS("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>eS(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:n})=>Ap({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:e.palette.text.primary}))),Qh("MuiSnackbarContent",["root","message","action"]),tS(iS,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=Gv(e.palette.background.default,t);return Ap({},e.typography.body2,{color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),tS("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),tS("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Qh("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]),tS("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${wh(n.anchorOrigin.vertical)}${wh(n.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>{const n=Ap({},!t.isRtl&&{left:"50%",right:"auto",transform:"translateX(-50%)"},t.isRtl&&{right:"50%",left:"auto",transform:"translateX(50%)"});return Ap({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:Ap({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&n,"left"===t.anchorOrigin.horizontal&&Ap({},!t.isRtl&&{left:24,right:"auto"},t.isRtl&&{right:24,left:"auto"}),"right"===t.anchorOrigin.horizontal&&Ap({},!t.isRtl&&{right:24,left:"auto"},t.isRtl&&{left:24,right:"auto"}))})}));const pM=Qh("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);tS("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${wh(n.direction)}`]]}})((({theme:e,ownerState:t})=>Ap({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===t.direction&&{flexDirection:"column-reverse",[`& .${pM.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===t.direction&&{flexDirection:"column",[`& .${pM.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===t.direction&&{flexDirection:"row-reverse",[`& .${pM.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===t.direction&&{flexDirection:"row",[`& .${pM.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}}))),tS(zE,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})((()=>({pointerEvents:"auto"}))),tS("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})((({ownerState:e})=>Ap({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})));const fM=Qh("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);tS(_C,{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})=>Ap({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${fM.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${fM.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${fM.arrow}`]:Ap({},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"] .${fM.arrow}`]:Ap({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),tS("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${wh(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Ap({backgroundColor:e.vars?`rgba(${e.vars.palette.grey.darkChannel} / 0.92)`:Hv(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},{[`.${fM.popper}[data-popper-placement*="left"] &`]:Ap({transformOrigin:"right center"},t.isRtl?Ap({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ap({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${fM.popper}[data-popper-placement*="right"] &`]:Ap({transformOrigin:"left center"},t.isRtl?Ap({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ap({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${fM.popper}[data-popper-placement*="top"] &`]:Ap({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${fM.popper}[data-popper-placement*="bottom"] &`]:Ap({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),tS("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?`rgba(${e.vars.palette.grey.darkChannel} / 0.9)`:Hv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));const mM=Qh("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);tS(zE,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})((({theme:e,ownerState:t})=>Ap({margin:8,color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,"&:hover":{backgroundColor:Gv(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1},!t.open&&{opacity:0,transform:"scale(0)"}))),tS("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${wh(n.tooltipPlacement)}`]]}})((({theme:e,ownerState:t})=>({position:"relative",display:"flex",alignItems:"center",[`& .${mM.staticTooltipLabel}`]:Ap({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},"left"===t.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===t.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})}))),tS("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})((({theme:e})=>Ap({position:"absolute"},e.typography.body1,{backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,boxShadow:e.shadows[1],color:e.palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})));var hM=dC(ih.exports.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function gM(e){return Yh("MuiSpeedDialIcon",e)}const vM=Qh("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),bM=["className","icon","open","openIcon"],yM=tS("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vM.icon}`]:t.icon},{[`& .${vM.icon}`]:n.open&&t.iconOpen},{[`& .${vM.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${vM.openIcon}`]:t.openIcon},{[`& .${vM.openIcon}`]:n.open&&t.openIconOpen},t.root]}})((({theme:e,ownerState:t})=>({height:24,[`& .${vM.icon}`]:Ap({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},t.open&&Ap({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),[`& .${vM.openIcon}`]:Ap({position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})}))),xM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiSpeedDialIcon"}),{className:r,icon:o,openIcon:a}=n,i=Dp(n,bM),l=n,s=(e=>{const{classes:t,open:n,openIcon:r}=e;return Gh({root:["root"],icon:["icon",n&&"iconOpen",r&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},gM,t)})(l);function c(e,t){return Ge.exports.isValidElement(e)?Ge.exports.cloneElement(e,{className:t}):e}return ih.exports.jsxs(yM,Ap({className:uv(s.root,r),ref:t,ownerState:l},i,{children:[a?c(a,s.openIcon):null,o?c(o,s.icon):ih.exports.jsx(hM,{className:s.icon})]}))}));xM.muiName="SpeedDialIcon";tS("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e,theme:t})=>{let n=Ap({display:"flex"},ng({theme:t},rg({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=mg(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(null==e.spacing[n]&&null==e.direction[n]||(t[n]=!0),t)),{}),a=rg({values:e.direction,base:o});n=xh(n,ng({theme:t},rg({values:e.spacing,base:o}),((t,n)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:hg(r,t)}};var o})))}return n}));const SM=Ge.exports.createContext({}),wM=Ge.exports.createContext({});Qh("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]),tS("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>Ap({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})));var CM=dC(ih.exports.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),kM=dC(ih.exports.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function EM(e){return Yh("MuiStepIcon",e)}const RM=Qh("MuiStepIcon",["root","active","completed","error","text"]);var LM;const OM=["active","className","completed","error","icon"],MM=tS(uC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${RM.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${RM.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${RM.error}`]:{color:(e.vars||e).palette.error.main}}))),IM=tS("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),TM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiStepIcon"}),{active:r=!1,className:o,completed:a=!1,error:i=!1,icon:l}=n,s=Dp(n,OM),c=Ap({},n,{active:r,completed:a,error:i}),u=(e=>{const{classes:t,active:n,completed:r,error:o}=e;return Gh({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},EM,t)})(c);if("number"==typeof l||"string"==typeof l){const e=uv(o,u.root);return i?ih.exports.jsx(MM,Ap({as:kM,className:e,ref:t,ownerState:c},s)):a?ih.exports.jsx(MM,Ap({as:CM,className:e,ref:t,ownerState:c},s)):ih.exports.jsxs(MM,Ap({className:e,ref:t,ownerState:c},s,{children:[LM||(LM=ih.exports.jsx("circle",{cx:"12",cy:"12",r:"12"})),ih.exports.jsx(IM,{className:u.text,x:"12",y:"16",textAnchor:"middle",ownerState:c,children:l})]}))}return l}));function PM(e){return Yh("MuiStepLabel",e)}const zM=Qh("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),NM=["children","className","componentsProps","error","icon","optional","StepIconComponent","StepIconProps"],_M=tS("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((({ownerState:e})=>Ap({display:"flex",alignItems:"center",[`&.${zM.alternativeLabel}`]:{flexDirection:"column"},[`&.${zM.disabled}`]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"}))),AM=tS("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e})=>Ap({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${zM.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${zM.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${zM.alternativeLabel}`]:{textAlign:"center",marginTop:16},[`&.${zM.error}`]:{color:(e.vars||e).palette.error.main}}))),DM=tS("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${zM.alternativeLabel}`]:{paddingRight:0}}))),$M=tS("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary}))),qM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiStepLabel"}),{children:r,className:o,componentsProps:a={},error:i=!1,icon:l,optional:s,StepIconComponent:c,StepIconProps:u}=n,d=Dp(n,NM),{alternativeLabel:p,orientation:f}=Ge.exports.useContext(SM),{active:m,disabled:h,completed:g,icon:v}=Ge.exports.useContext(wM),b=l||v;let y=c;b&&!y&&(y=TM);const x=Ap({},n,{active:m,alternativeLabel:p,completed:g,disabled:h,error:i,orientation:f}),S=(e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:l}=e;return Gh({root:["root",n,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",l&&"alternativeLabel"],labelContainer:["labelContainer"]},PM,t)})(x);return ih.exports.jsxs(_M,Ap({className:uv(S.root,o),ref:t,ownerState:x},d,{children:[b||y?ih.exports.jsx(DM,{className:S.iconContainer,ownerState:x,children:ih.exports.jsx(y,Ap({completed:g,active:m,error:i,icon:b},u))}):null,ih.exports.jsxs($M,{className:S.labelContainer,ownerState:x,children:[r?ih.exports.jsx(AM,Ap({className:S.label,ownerState:x},a.label,{children:r})):null,s]})]}))}));qM.muiName="StepLabel";const jM=Qh("MuiStepButton",["root","horizontal","vertical","touchRipple"]);tS(ow,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})((({ownerState:e})=>Ap({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===e.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${jM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}}))),Qh("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]),tS("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>Ap({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),tS("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${wh(n.orientation)}`]]}})((({ownerState:e,theme:t})=>Ap({display:"block",borderColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}))),Qh("MuiStepContent",["root","last","transition"]),tS("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})((({ownerState:e,theme:t})=>Ap({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"}))),tS(yC,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),Qh("MuiStepper",["root","horizontal","vertical","alternativeLabel"]),tS("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>Ap({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),tS("div")((({theme:e,ownerState:t})=>Ap({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},"left"===t.anchor&&{right:"auto"},"right"===t.anchor&&{left:"auto",right:0},"top"===t.anchor&&{bottom:"auto",right:0},"bottom"===t.anchor&&{top:"auto",bottom:0,right:0}))),"undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);const FM=Qh("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);tS("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${wh(n.edge)}`],t[`size${wh(n.size)}`]]}})((({ownerState:e})=>Ap({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${FM.thumb}`]:{width:16,height:16},[`& .${FM.switchBase}`]:{padding:4,[`&.${FM.checked}`]:{transform:"translateX(16px)"}}}))),tS(Hk,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${FM.input}`]:t.input},"default"!==n.color&&t[`color${wh(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${FM.checked}`]:{transform:"translateX(20px)"},[`&.${FM.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${FM.checked} + .${FM.track}`]:{opacity:.5},[`&.${FM.disabled} + .${FM.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${FM.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>Ap({"&:hover":{backgroundColor:Hv(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${FM.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:Hv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${FM.disabled}`]:{color:"light"===e.palette.mode?Vv(e.palette[t.color].main,.62):Uv(e.palette[t.color].main,.55)}},[`&.${FM.checked} + .${FM.track}`]:{backgroundColor:e.palette[t.color].main}}))),tS("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),tS("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})));const BM=Qh("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);tS(ow,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${wh(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>Ap({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${BM.iconWrapper}`]:Ap({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${BM.selected}`]:{opacity:1},[`&.${BM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${BM.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${BM.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${BM.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${BM.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})));const WM=Ge.exports.createContext();Qh("MuiTable",["root","stickyHeader"]),tS("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ap({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ap({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})));const HM=Ge.exports.createContext();function UM(e){return Yh("MuiTableCell",e)}Qh("MuiTableBody",["root"]),tS("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"});const VM=Qh("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),GM=["align","className","component","padding","scope","size","sortDirection","variant"],KM=tS("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${wh(n.size)}`],"normal"!==n.padding&&t[`padding${wh(n.padding)}`],"inherit"!==n.align&&t[`align${wh(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ap({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:`1px solid\n ${"light"===e.palette.mode?Vv(Hv(e.palette.divider,1),.88):Uv(Hv(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:e.palette.text.primary},"footer"===t.variant&&{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${VM.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.default}))),XM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:a,padding:i,scope:l,size:s,sortDirection:c,variant:u}=n,d=Dp(n,GM),p=Ge.exports.useContext(WM),f=Ge.exports.useContext(HM),m=f&&"head"===f.variant;let h;h=a||(m?"th":"td");let g=l;!g&&m&&(g="col");const v=u||f&&f.variant,b=Ap({},n,{align:r,component:h,padding:i||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e;return Gh({root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${wh(r)}`,"normal"!==o&&`padding${wh(o)}`,`size${wh(a)}`]},UM,t)})(b);let x=null;return c&&(x="asc"===c?"ascending":"descending"),ih.exports.jsx(KM,Ap({as:h,ref:t,className:uv(y.root,o),"aria-sort":x,scope:g,ownerState:b},d))}));function ZM(e){return Yh("MuiToolbar",e)}Qh("MuiTableContainer",["root"]),tS("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Qh("MuiTableFooter",["root"]),tS("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),Qh("MuiTableHead",["root"]),tS("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Qh("MuiToolbar",["root","gutters","regular","dense"]);const YM=["className","component","disableGutters","variant"],QM=tS("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>Ap({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),JM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular"}=n,l=Dp(n,YM),s=Ap({},n,{component:o,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return Gh({root:["root",!n&&"gutters",r]},ZM,t)})(s);return ih.exports.jsx(QM,Ap({as:o,className:uv(c.root,r),ref:t,ownerState:s},l))}));dC(ih.exports.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),dC(ih.exports.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");const eI=Qh("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);tS(XM,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),tS(JM,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ap({[`& .${eI.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${eI.actions}`]:{flexShrink:0,marginLeft:20}}))),tS("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),tS("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>Ap({},e.typography.body2,{flexShrink:0}))),tS(rM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ap({[`& .${eI.selectIcon}`]:t.selectIcon,[`& .${eI.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${eI.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),tS(tO,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),tS("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>Ap({},e.typography.body2,{flexShrink:0})));const tI=Qh("MuiTableRow",["root","selected","hover","head","footer"]);tS("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tI.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),dC(ih.exports.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");const nI=Qh("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);tS(ow,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${nI.icon}`]:{opacity:.5}},[`&.${nI.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${nI.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),tS("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${wh(n.direction)}`]]}})((({theme:e,ownerState:t})=>Ap({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"})));const rI=["onChange"],oI={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const aI=Qh("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);tS(ow,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>Ap({width:40,flexShrink:0,opacity:.8,[`&.${aI.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})));const iI=Qh("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);tS("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iI.scrollButtons}`]:t.scrollButtons},{[`& .${iI.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>Ap({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${iI.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),tS("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>Ap({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),tS("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>Ap({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),tS("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>Ap({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),tS((function(e){const{onChange:t}=e,n=Dp(e,rI),r=Ge.exports.useRef(),o=Ge.exports.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Ge.exports.useEffect((()=>{const e=kh((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),n=Lh(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),Ge.exports.useEffect((()=>{a(),t(r.current)}),[t]),ih.exports.jsx("div",Ap({style:oI,ref:o},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Qh("MuiTextField",["root"]),tS(FE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});const lI=Qh("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]);tS(ow,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${wh(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,r="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(r="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),Ap({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${lI.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hv(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lI.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:Hv(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hv(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:Hv(r,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})}));const sI=Qh("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]);function cI(){const[e,t]=Ge.exports.useState(),[n,r]=Ge.exports.useState(),o=Ge.exports.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 Ge.exports.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 uI(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function dI(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:a=[]}=e;const l=o({fontSize:uI(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return Ot.createElement("i",{style:l},Ot.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},a.map(((e,t)=>{let{type:n,attrs:r}=e;return Ot.createElement(n,i({key:t},r))}))))}tS("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sI.grouped}`]:t.grouped},{[`& .${sI.grouped}`]:t[`grouped${wh(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>Ap({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${sI.grouped}`]:Ap({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${sI.selected} + .${sI.grouped}.${sI.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${sI.selected} + .${sI.grouped}.${sI.selected}`]:{borderTop:0,marginTop:0}})})));var pI=e=>dI((e=>o(o({},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 fI=e=>dI((e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var mI=e=>dI((e=>o(o({},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)),hI=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gI(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||hI(r)&&hI(o)))return!1;var r,o;return!0}function vI(e,t){var n;void 0===t&&(t=gI);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 bI="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function yI(e){cancelAnimationFrame(e.id)}var xI=null;function SI(e){if(void 0===e&&(e=!1),null===xI||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?xI="positive-descending":(t.scrollLeft=1,xI=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),xI}return xI}var wI=function(e,t){return e};function CI(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,RS(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:RS(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=vI((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=vI((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,m="rtl"===i,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=vI((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(SI()){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&&yI(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=function(e,t){var n=bI(),r={id:requestAnimationFrame((function o(){bI()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pS(t,e),t.getDerivedStateFromProps=function(e,t){return kI(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,r,this._instanceProps))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(SI()){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()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&yI(this._resetIsScrollingTimeoutId)},d.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,d=e.itemKey,p=void 0===d?wI:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],k=w[1],E=[];if(c>0)for(var R=C;R<=k;R++)E.push(Ge.exports.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return Ge.exports.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Ap({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Ge.exports.createElement(l||s||"div",{children:E,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._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}(Ge.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var kI=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},EI=CI({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){var o=e.direction,a=e.height,i=e.itemCount,l=e.itemSize,s=e.layout,c=e.width,u="horizontal"===o||"horizontal"===s?c:a,d=Math.max(0,i*l-u),p=Math.min(d,t*l),f=Math.max(0,t*l-u+l);switch("smart"===n&&(n=r>=f-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return f;case"center":var m=Math.round(f+(p-f)/2);return m<Math.ceil(u/2)?0:m>d+Math.floor(u/2)?d:m;default:return r>=f&&r<=p?r:r<f?f:p}},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}});var RI=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},LI=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}}(),OI=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},MI=function(e){function t(){var e,n,r;RI(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=OI(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},OI(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),LI(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}(Ge.exports.PureComponent);const II=["S","XS"],TI=e=>e.reduce(((e,t)=>e.concat(t)));function PI(e){return II.includes(e)}function zI(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function NI(e){let{selections:t,elemNumbers:n,isSingleSelect:r=!1}=e,o=Promise.resolve(!1);if(!n.some((e=>Number.isNaN(e)))){const e=n;o=t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,!r]}).then((e=>!1!==e)).catch((()=>!1))}return o}function _I(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)}function AI(e){let{layout:t,selections:n,pages:r=[],checkboxes:a=!1,selectDisabled:i,doc:l=document,isSingleSelect:s=!1}=e;const[c,u]=Ge.exports.useState(r),[d,p]=Ge.exports.useState(!1),[f,m]=Ge.exports.useState(!1),[h,g]=Ge.exports.useState(s),[v,b]=Ge.exports.useState([]),[y,x]=Ge.exports.useState(!1),[S,w]=Ge.exports.useState([]),C=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 TI(t)}(r);Ge.exports.useEffect((()=>{g(s)}),[s]);const k=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i())return;m(!0);const r=t?e.filter((e=>!v.includes(e))):e;await NI({selections:n,elemNumbers:r,isSingleSelect:h}),m(!1),w([])},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i()||w((n=>{const r=zI([...n,...e]),o=t?r.filter((e=>!v.includes(e))):r;return t?_I(r,C):o}))},R=e=>{(e.ctrlKey||e.metaKey)&&(g(!0),e.currentTarget.focus(),e.preventDefault())},L=Ge.exports.useCallback((e=>{if(f||i())return;const t=+e.currentTarget.getAttribute("data-n");w([t]),R(e)}),[f,i]),O=Ge.exports.useCallback((e=>{if(f||i())return;x(!1),p(!0);const t=+e.currentTarget.getAttribute("data-n");w([t]),R(e)}),[f,i]),M=Ge.exports.useCallback((e=>{const t=+e.currentTarget.getAttribute("data-n");h||!d||f||1===S.length&&S[0]===t||E([t])}),[d,f,S,v,y,i]),I=Ge.exports.useCallback((()=>{p(!1),m(!1),x(!1),g(s)}),[s]),T=Ge.exports.useCallback((e=>{if(h||!d||f||i())return;x(!0);const t=+e.currentTarget.getAttribute("data-n");E([t],!0)}),[d,f,y,S,v,i,t&&t.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);Ge.exports.useEffect((()=>{const e=!d;S&&S.length&&!f&&e&&t&&k(S,y)}),[S,d,i()]),Ge.exports.useEffect((()=>(l.addEventListener("mouseup",I),()=>{l.removeEventListener("mouseup",I)})),[I]),Ge.exports.useEffect((()=>{if(f||d)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return!!PI(t.qState)&&t.qElemNumber}));return t.filter((e=>!1!==e))}));return TI(t)}(r);b(e)}),[r]),Ge.exports.useEffect((()=>{if(f||!r||!a&&!d)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&PI(e)?"A":"S",a=e.map((e=>{const a=e.qMatrix.map((e=>{const[a]=e,i=t.includes(a.qElemNumber);let l;return l=n?i?"S":"A":i?r(a.qState):a.qState,[o(o({},a),{},{qState:l}),e.slice(1)]}));return o(o({},e),{},{qMatrix:a})}));return a}(r,S,h);u(e)}),[S]);const P={};return a?Object.assign(P,{onClick:L}):Object.assign(P,{onMouseUp:M,onMouseDown:O,onMouseEnter:T}),{instantPages:c,interactionEvents:P,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!1),p(!0),E(e,t||y);const n=k(e,t||y);return p(!1),n}}}const DI=e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var $I=e=>dI(DI(e));const qI="ListBoxCheckbox",jI={cbIcon:"".concat(qI,"-cbIcon"),cbIconChecked:"".concat(qI,"-cbIconChecked"),cbIconExcluded:"".concat(qI,"-cbIconExcluded"),cbIconAlternative:"".concat(qI,"-cbIconAlternative"),checkbox:"".concat(qI,"-checkbox"),dense:"".concat(qI,"-dense")},FI=tS(tE)((e=>{let{theme:t}=e;return{["& .".concat(jI.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(jI.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(jI.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(jI.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(jI.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(jI.dense)]:{padding:"4px 8px"}}})),BI=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Ot.createElement("span",{className:e.cbIcon},n&&Ot.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function WI(e){let{checked:t,label:n,dense:r,excluded:o,showGray:a=!0}=e;return Ot.createElement(FI,{edge:"start",checked:t,disableRipple:!0,className:[jI.checkbox,r&&jI.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n},name:n,icon:BI(jI,a,o),checkedIcon:Ot.createElement("span",{className:jI.cbIconChecked})})}const HI="ListBoxRadioButton",UI={denseRadioButton:"".concat(HI,"-denseRadioButton"),radioButton:"".concat(HI,"-radioButton")},VI=tS($O)((()=>({["&.".concat(UI.radioButton)]:{right:"5px"}})));function GI(e){let{checked:t,label:n,dense:r}=e;return Ot.createElement(VI,{checked:t,value:n,name:n,className:UI.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0,size:r?"small":"medium",sx:r&&{padding:"0px 0px 0px 12px"}})}const KI=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===KI.ARROW_UP||e===KI.ARROW_DOWN||e===KI.ARROW_LEFT||e===KI.ARROW_RIGHT});function XI(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case KI.ENTER:case KI.SPACE:(e=>{const n=e.querySelector(".search input, .value.selector, .value");t(!0),n&&n.focus()})(e.currentTarget);break;case KI.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const ZI="RowColumn",YI={row:"".concat(ZI,"-row"),rowBorderBottom:"".concat(ZI,"-rowBorderBottom"),column:"".concat(ZI,"-column"),fieldRoot:"".concat(ZI,"-fieldRoot"),cell:"".concat(ZI,"-cell"),labelText:"".concat(ZI,"-labelText"),labelDense:"".concat(ZI,"-labelDense"),highlighted:"".concat(ZI,"-highlighted"),checkboxLabel:"".concat(ZI,"-checkboxLabel"),icon:"".concat(ZI,"-icon"),S:"".concat(ZI,"-S"),XS:"".concat(ZI,"-XS"),A:"".concat(ZI,"-A"),X:"".concat(ZI,"-X"),frequencyCount:"".concat(ZI,"-frequencyCount"),barContainer:"".concat(ZI,"-barContainer"),bar:"".concat(ZI,"-bar"),barSelected:"".concat(ZI,"-barSelected"),barWithCheckbox:"".concat(ZI,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(ZI,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(ZI,"-excludedTextWithCheckbox")},QI={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},JI=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}},eT=tS("div")((e=>{let{theme:t}=e;return{["& .".concat(YI.row)]:{flexWrap:"nowrap",color:t.palette.text.primary},["& .".concat(YI.rowBorderBottom)]:{borderBottom:"1px solid ".concat(t.palette.divider)},["& .".concat(YI.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider),color:t.palette.text.primary},["& .".concat(YI.fieldRoot)]:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(YI.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},["& .".concat(YI.labelText)]:o({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},QI),["& .".concat(YI.labelDense)]:{fontSize:12},["& .".concat(YI.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(YI.checkboxLabel)]:{margin:0,width:"100%",height:"100%","& > span:nth-child(1)":{paddingRight:"8px"},"& > span:nth-child(2)":o(o({},QI),{},{display:"flex",alignItems:"center",paddingLeft:0})},["& .".concat(YI.icon)]:{display:"flex",padding:t.spacing(1,1,1,0)},["& .".concat(YI.S)]:o({},JI({theme:t})),["& .".concat(YI.XS)]:o(o({},JI({theme:t})),{},{background:t.palette.selected.excluded,color:t.palette.selected.mainContrastText}),["& .".concat(YI.A)]:{background:t.palette.selected.alternative,color:t.palette.selected.alternativeContrastText},["& .".concat(YI.X)]:{background:t.palette.selected.excluded,color:t.palette.selected.excludedContrastText},["& .".concat(YI.frequencyCount)]:{paddingLeft:"8px",paddingRight:"8px"},["&.".concat(YI.barContainer)]:{height:"100%",display:"inline-block"},["& .".concat(YI.bar)]:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:"16px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},["& .".concat(YI.barSelected)]:{opacity:"30%",zIndex:"0",background:t.palette.background.lighter},["& .".concat(YI.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(YI.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(YI.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));function tT(e){let{index:t,style:n,data:r}=e;const{onClick:o,onMouseDown:a,onMouseUp:i,onMouseEnter:l,pages:s,isLocked:c,column:u=!1,checkboxes:d=!1,dense:p=!1,frequencyMode:f="N",isSingleSelect:m,actions:h,frequencyMax:g="",histogram:v=!1,keyboard:b,showGray:y=!0}=r,x=Ge.exports.useCallback(function(e){let{select:t,confirm:n,cancel:r}=e;const o=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 a=!1;const i=e=>{a=e};return e=>{let l;const{keyCode:s,shiftKey:c=!1}=e.nativeEvent;switch(s){case KI.SHIFT:i(!0);break;case KI.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case KI.ARROW_DOWN:case KI.ARROW_RIGHT:l=o(e.currentTarget,!0),c&&l&&(a&&(t([+e.currentTarget.getAttribute("data-n")],!0),i(!1)),t([+l.getAttribute("data-n")],!0));break;case KI.ARROW_UP:case KI.ARROW_LEFT:l=o(e.currentTarget,!1),c&&l&&(a&&(t([+e.currentTarget.getAttribute("data-n")],!0),i(!1)),t([+l.getAttribute("data-n")],!0));break;case KI.ENTER:n();break;case KI.ESCAPE:return void r();default:return}l&&l.focus(),e.preventDefault(),e.stopPropagation()}}(h),[h]),[S,w]=Ge.exports.useState(!1),[C,k]=Ge.exports.useState(),[E,R]=Ge.exports.useState([]);Ge.exports.useEffect((()=>{if(!s)return;let e;const n=s.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(n){const r=n.qArea;t>=r.qTop&&t<r.qTop+r.qHeight&&([e]=n.qMatrix[t-r.qTop])}k(e)}),[s]);const L=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,O=e=>e?"A"===e.qState:null;Ge.exports.useEffect((()=>{if(!C)return;const e="S"===C.qState||"XS"===C.qState||"L"===C.qState;w(e);const t=[u?YI.column:YI.row];v&&p||t.push(YI.rowBorderBottom),d||("XS"===C.qState?t.push(y?YI.XS:YI.S):"S"===C.qState||"L"===C.qState?t.push(YI.S):y&&O(C)?t.push(YI.A):y&&L(C)&&t.push(YI.X)),R(t)}),[C&&C.qState]);const M=e=>e.filter((e=>!!e)).join(" ").trim(),I=()=>(O(C)||L(C))&&d,T=e=>{let{lbl:t,ix:n,color:r,highlighted:o=!1}=e;return Ot.createElement(zC,{component:"span",variant:"body2",key:n,className:M([YI.labelText,o&&YI.highlighted,p&&YI.labelDense,y&&I()&&YI.excludedTextWithCheckbox]),color:r},Ot.createElement("span",{style:{whiteSpace:"pre"}},t))},P=e=>{let{lbl:t,color:n,qElemNumber:r}=e;const o=Ot.createElement(WI,{label:t,checked:S,dense:p,excluded:L(C),showGray:y}),a=Ot.createElement(GI,{label:t,checked:S,dense:p}),i="string"==typeof t?T({lbl:t,color:n,highlighted:!1}):t;return Ot.createElement(VE,{color:n,control:m?a:o,className:YI.checkboxLabel,label:i,key:r})},z=C?C.qText:"",N=()=>C?C.qFrequency?C.qFrequency:"0":"",_=C&&C.qHighlightRanges&&C.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],A=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}(z,_),D=d?P:T,$={alignItems:"center",display:"flex"},q=S&&c,j=!d&&S&&!c,F={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:d?0:void 0},B=0===t;return Ot.createElement(eT,{className:YI.barContainer},Ot.createElement(sR,{container:!0,gap:0,className:M(["value",...E]),classes:{root:YI.fieldRoot},style:n,onClick:o,onMouseDown:a,onMouseUp:i,onMouseEnter:l,onKeyDown:x,onContextMenu:e=>{d&&o(e),e.preventDefault()},role:u?"column":"row",tabIndex:!B||b.enabled&&!b.active?-1:0,"data-n":C&&C.qElemNumber},C&&v&&"0"!==N()&&Ot.createElement("div",{className:M([YI.bar,d&&YI.barWithCheckbox,S&&(d?YI.barSelectedWithCheckbox:YI.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),r=parseFloat(n?t:e),o=d?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(n?r:r/g*100,"% - ").concat(o,")")})(C.qFrequency)}}),Ot.createElement(sR,{item:!0,style:F,className:M([YI.cell,YI.selectedCell]),title:"".concat(z)},0===_.length?D({lbl:z,color:"inherit"}):(e=>{let{lbls:t}=e;const n=t.map(((e,t)=>{let[n,r]=e;return T({ix:t,highlighted:r,lbl:n})}));return d?P({lbl:n}):n})({lbls:A})),"N"!==f&&Ot.createElement(sR,{item:!0,style:{display:"flex",alignItems:"center"},className:YI.frequencyCount},Ot.createElement(zC,{noWrap:!0,color:"inherit",variant:"body2",className:M([p&&YI.labelDense,YI.labelText,y&&I()&&YI.excludedTextWithCheckbox])},N())),(q||j)&&Ot.createElement(sR,{item:!0,className:YI.icon},q&&Ot.createElement(fI,{style:$,size:"small"}),j&&Ot.createElement($I,{style:$,size:"small"}))))}const nT="#BBB",rT="#f1f1f1",oT={styledScrollbars:"".concat("ListBox","-styledScrollbars")},aT=tS(MI)((()=>({["& .".concat(oT.styledScrollbars)]:{scrollbarColor:"".concat(nT," ").concat(rT),"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:rT},"&::-webkit-scrollbar-thumb":{backgroundColor:nT,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}}})));function iT(e){let{model:t,selections:n,direction:r,height:a,width:i,listLayout:l="vertical",frequencyMode:s="N",histogram:c=!1,checkboxes:u=!1,update:d,fetchStart:p,postProcessPages:f,calculatePagesHeight:m=!1,dense:h=!1,keyboard:g={},showGray:v=!0,scrollState:b,sortByState:y,selectDisabled:x=(()=>!1),setCount:S}=e;const[w]=Hw(t),C=!(!w||!w.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[k,E]=Ge.exports.useState(null),[R,L]=Ge.exports.useState(!1),{instantPages:O=[],interactionEvents:M,select:I}=AI({layout:w,selections:n,pages:k,checkboxes:u,selectDisabled:x,doc:document,isSingleSelect:C}),T=Ge.exports.useRef(null),P=Ge.exports.useRef({queue:[],validPages:!1}),z=Ge.exports.useRef({pages:[]}),N=Ge.exports.useCallback((e=>{if(!k||!P.current.validPages)return!1;P.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=k.filter((e=>t(e)))[0];return n&&t(n)}),[w,k]),_=Ge.exports.useCallback(((e,n)=>{P.current.queue.push({start:e,stop:n});!!T.current&&T.current._listRef.state.isScrolling;return P.current.queue.length>10&&P.current.queue.shift(),clearTimeout(P.current.timeout),L(!0),new Promise((e=>{P.current.timeout=setTimeout((()=>{const n=P.current.queue.slice(-2).sort(((e,t)=>e.start-t.start)),r=t.getListObjectData("/qListObjectDef",n.map((e=>({qTop:e.start,qHeight:e.stop-e.start+1,qLeft:0,qWidth:1})))).then((t=>{const n=f?f(t):t;P.current.validPages=!0,z.current.pages=n,E(n),L(!1),e()}));p&&p(r)}),0)}))}),[w]),A=()=>{if(P.current.queue=[],P.current.validPages=!1,T.current){if(T.current.resetloadMoreItemsCache(!0),w&&w.qSelectionInfo.qInSelections||0===y)return;T.current._listRef.scrollToItem(0)}};d&&d.call(null,A),Ge.exports.useEffect((()=>{A(),"function"==typeof S&&w&&S(w.qListObject.qSize.qcy)}),[w]),Ge.exports.useEffect((()=>{O&&!R&&E(O)}),[O]);const[D,$]=Ge.exports.useState(!1);if(Ge.exports.useEffect((()=>{b&&!D&&T.current&&(T.current._listRef.scrollToItem(b.initScrollPos),$(!0))}),[T.current]),!w)return null;const q="horizontal"!==l,j=w.qListObject.qSize.qcy,F=k&&k.length&&m?(e=>{const t=e.some((e=>e.qArea.qHeight<100)),n=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return t?n:j})(k):j,{itemSize:B,listHeight:W}=function(e){let{isVertical:t,checkboxes:n,dense:r,height:o}=e,a=n?40:33;r&&(a=20);const i=t?a:200;return{itemSize:i,listHeight:o||8*i}}({isVertical:q,checkboxes:u,dense:h,height:a}),H=w&&w.qListObject.qDimensionInfo.qLocked,{frequencyMax:U}=w;return Ot.createElement(aT,{isItemLoaded:N,itemCount:j,loadMoreItems:_,threshold:0,minimumBatchSize:100,ref:T},(e=>{let{onItemsRendered:t,ref:a}=e;return P.current.listRef=a,Ot.createElement(EI,{direction:r,"data-testid":"fixed-size-list",useIsScrolling:!0,style:{},height:W,width:i,itemCount:F,layout:l,className:oT.styledScrollbars,itemData:o(o({isLocked:H,column:!q,pages:k},H||x()?{}:M),{},{checkboxes:u,dense:h,frequencyMode:s,isSingleSelect:C,actions:{select:I,confirm:()=>n&&n.confirm.call(n),cancel:()=>n&&n.cancel.call(n)},frequencyMax:U,histogram:c,keyboard:g,showGray:v}),itemSize:B,onItemsRendered:e=>{b&&b.setScrollPos(e.visibleStopIndex),t(o({},e))},ref:a},tT)}))}const lT=e=>o(o({},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"}}]}),sT=e=>o(o({},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"}}]}),cT=e=>o(o({},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"}}]}),uT=e=>o(o({},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 dT=e=>{let{layout:t,model:n,translator:r}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:lT,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:cT,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:sT,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:uT,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const pT=e=>o(o({},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 fT(e){const t=Yx(),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 mT="njs-cell-action",hT=Ot.forwardRef(((e,t)=>{let{item:n,addAnchor:r=!1}=e;const o=Yx(),{hidden:a,disabled:i,style:l,hasSvgIconShape:s}=fT(n);if(a)return null;const c=n.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&n.keyboardAction():null;return Ot.createElement(LC,{ref:r?null:t,title:n.label,onClick:n.action,onKeyDown:c,disabled:i,style:l,className:mT,size:"large"},s&&dI(n.getSvgIconShape()),r&&Ot.createElement("div",{ref:t,style:{bottom:-o.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))})),gT=e=>o(o({},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"}}]}),vT=e=>o(o({},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 bT=e=>dI(vT(e));const yT={icon:"".concat("More","-icon")},xT=tS(FL)((e=>{let{theme:t}=e;return{["& .".concat(yT.icon)]:{color:t.palette.text.primary}}}));function ST(e){let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:a}=fT(t);return r?null:Ot.createElement(tO,{title:t.label,onClick:()=>{t.action(),n()},disabled:o},a&&Ot.createElement(kL,{className:yT.icon},dI(t.getSvgIconShape())),Ot.createElement(zC,{noWrap:!0},t.label))}const wT=Ot.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:a,popoverProps:l={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;return n.length>0&&Ot.createElement(xT,i({},l,{onClose:c,ref:t,open:r,anchorEl:a.current,getContentAnchorEl:null,container:a.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:o({pointerEvents:"auto",maxWidth:"250px"},s)}}),Ot.createElement(TL,null,n.map(((e,t)=>Ot.createElement(ST,{key:t,item:e,onActionClick:c})))))})),CT="ActionsToolbar",kT={itemSpacing:"".concat(CT,"-itemSpacing"),firstItemSpacing:"".concat(CT,"-firstItemSpacing"),lastItemSpacing:"".concat(CT,"-lastItemSpacing")},ET=tS(FL)((e=>{let{theme:t}=e;return{["& .".concat(kT.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(kT.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(kT.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),RT="njs-action-toolbar-popover",LT=Ot.forwardRef(((e,t)=>{let{actions:n=[],first:r=!1,last:o=!1,addAnchor:a=!1}=e;return n.length>0?Ot.createElement(sR,{item:!0,container:!0,gap:0,wrap:"nowrap"},n.map(((e,i)=>{let l=[];const s=r&&0===i,c=o&&n.length-1===i;return s&&!c&&(l=[kT.firstItemSpacing]),c&&!s&&(l=[...l,kT.lastItemSpacing]),s||c||0!==l.length||(l=[kT.itemSpacing]),Ot.createElement(sR,{item:!0,key:e.key,className:l.join(" ").trim()},Ot.createElement(hT,{key:e.key,item:e,ref:0===i?t:null,addAnchor:a}))}))):null})),OT={pointerEvents:"none"},MT={vertical:"top",horizontal:"right"},IT={vertical:"bottom",horizontal:"right"};function TT(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}=Ge.exports.useContext(Rw);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:vT},{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:gT},{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:DI}]}(o),{translator:u,keyboardNavigation:d}=Ge.exports.useContext(Rw),[p,f]=Ge.exports.useState(!1),[m,h]=Ge.exports.useState(a.enabled),[g,v]=Ge.exports.useState(a.actions),[b,y]=Ge.exports.useState(a.alignTo),x=Ge.exports.useRef(),S=Ge.exports.useRef(),w=Yx(),C=Ge.exports.useMemo((()=>({margin:w.spacing(.5,0)}))),k=e=>{const t=S.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};Ge.exports.useEffect((()=>()=>f(!1)),[i.show]),Ge.exports.useEffect((()=>{h(a.enabled)}),[a.enabled]),Ge.exports.useEffect((()=>{if(!l)return;l.on("focus_toolbar_first",(()=>{const e=k(!1);e&&e.focus()})),l.on("focus_toolbar_last",(()=>{const e=k(!0);e&&e.focus()}))}),[]);const E=Ge.exports.useMemo((()=>n.filter((e=>!e.hidden))),[n]);if(!o.show&&0===E.length)return null;const R={key:"more",label:u.get("Menu.More"),getSvgIconShape:pT,hidden:!1,enabled:()=>m,action:()=>f(!p)};if(E.length>r){const e=E.splice(-(E.length-r)-1);h(!0),v([...e,...a.actions]),y(x)}const L=d&&l&&l.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&k(!1)===e.target||!e.shiftKey&&k(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),l.refocusContent())}:null,O=E.length>0,M=g.length>0,I=O&&o.show||M&&o.show,T=Ot.createElement(sR,{ref:S,onKeyDown:L,container:!0,gap:0,wrap:"nowrap"},O&&Ot.createElement(LT,{actions:E,first:!0,last:!M&&!o.show}),M&&Ot.createElement(LT,{ref:x,actions:[R],first:!O,last:!o.show,addAnchor:!0}),I&&Ot.createElement(sR,{item:!0,className:kT.itemSpacing,style:C},Ot.createElement(LE,{orientation:"vertical"})),o.show&&Ot.createElement(LT,{actions:c,first:!O&&!M,last:!0}),p&&Ot.createElement(wT,{show:p,actions:g,alignTo:b,popoverProps:a.popoverProps,popoverPaperStyle:a.popoverPaperStyle,onCloseOrActionClick:()=>{f(!1)}}));return i.show?Ot.createElement(ET,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:i.show,anchorEl:i.anchorEl,anchorOrigin:MT,transformOrigin:IT,hideBackdrop:!0,style:OT,PaperProps:{className:RT,style:{pointerEvents:"auto",padding:w.spacing(1,1)}}},T):t&&T}var PT=e=>dI((e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));const zT="/qListObjectDef";function NT(e){let{model:t,keyboard:n,dense:r=!1}=e;const{translator:o}=Ge.exports.useContext(Rw),[a,i]=Ge.exports.useState(""),l=Yx();return Ot.createElement(wO,{startAdornment:Ot.createElement(AR,{position:"start"},Ot.createElement(PT,{size:r?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(l.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},r&&{fontSize:12,paddingLeft:l.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:o.get("Listbox.Search"),value:a,onChange:e=>{i(e.target.value),t.searchListObjectFor(zT,e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":t.acceptListObjectSearch(zT,!0),i("");break;case"Escape":t.abortListObjectSearch(zT)}},inputProps:{tabIndex:!n||n.enabled&&!n.active?-1:0}})}function _T(e){return Object.keys(h.prototype).forEach((t=>{e[t]=h.prototype[t]})),h.init(e),e}function AT(e,t){const[n]=oC(e),[r]=Hw(t),o=t?t.id:null,[a]=Qw(),[i]=eC(),l=a.get(e.id);let s=i.get(o);return Ge.exports.useEffect((()=>{n&&t&&!s&&(s=function(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 _T(l),l}({appSelections:n,appModal:l,model:t}),i.set(o,s),i.dispatch(!0))}),[n,t]),Ge.exports.useEffect((()=>{s&&s.setLayout(r)}),[s,r]),[s]}function DT(e){let{alignTo:t,show:n,close:r,app:o,fieldName:a,stateName:i="$"}=e;const l=n&&Boolean(t.current),s=Yx(),[c]=Vw({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[a]}}},o,a,i),u=Ge.exports.useCallback((()=>{c.lock("/qListObjectDef")}),[c]),d=Ge.exports.useCallback((()=>{c.unlock("/qListObjectDef")}),[c]),{translator:p}=Ge.exports.useContext(Rw),f=Ge.exports.useRef(),[m]=AT(o,c),[h]=Hw(c);if(Ge.exports.useEffect((()=>{m&&l&&(m.isModal(c)||m.goModal("/qListObjectDef"))}),[m,l]),!c||!h||!p)return null;const g=!0===h.qListObject.qDimensionInfo.qLocked,v=(e,t)=>{const n="escapeKeyDown"!==t;m.noModal(n),r()},b=dT({layout:h,model:c,translator:p}),y=h.qListObject.qDimensionInfo.qStateCounts,x=y.qSelected+y.qSelectedExcluded+y.qLocked+y.qLockedExcluded>0;return Ot.createElement(FL,{open:l,onClose:v,anchorEl:t.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},Ot.createElement(sR,{container:!0,direction:"column",gap:0},Ot.createElement(sR,{item:!0,container:!0,style:{padding:s.spacing(1)}},Ot.createElement(sR,{item:!0},g?Ot.createElement(LC,{onClick:d,disabled:!g,size:"large"},Ot.createElement(fI,{title:p.get("Listbox.Unlock")})):Ot.createElement(LC,{onClick:u,disabled:!x,size:"large"},Ot.createElement(mI,{title:p.get("Listbox.Lock")}))),Ot.createElement(sR,{item:!0,xs:!0}),Ot.createElement(sR,{item:!0},Ot.createElement(TT,{more:{enabled:!g,actions:b,alignTo:f,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:m,onConfirm:v,onCancel:()=>v(0,"escapeKeyDown")}}))),Ot.createElement(sR,{item:!0,xs:!0},Ot.createElement("div",{ref:f}),Ot.createElement(NT,{model:c}),Ot.createElement(iT,{model:c,selections:m,direction:"ltr"}))))}function $T(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=Ge.exports.useContext(Rw),s=a||Ge.exports.useRef(),c=Yx(),[u,d]=Ge.exports.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},m=t.selections[r];void 0===m.qTotal&&(m.qTotal=0);const h=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(h.qSelected+h.qLocked)/m.qTotal,v=h.qAlternative/m.qTotal,b=(h.qExcluded+h.qLockedExcluded+h.qSelectedExcluded)/m.qTotal,y=h.qSelected+h.qSelectedExcluded+h.qLocked+h.qLockedExcluded,x=0===y&&0===m.qTotal;let S="";m.qTotal===y&&m.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&m.qTotal?S=l.get("CurrentSelections.Of",[y,m.qTotal]):m.qSelectedFieldSelectionInfo&&(S=m.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let C=null,k=null,E=null,R=null;return a||(C=Ot.createElement(sR,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},Ot.createElement(zC,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),Ot.createElement(zC,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),m.qLocked?k=Ot.createElement(sR,{item:!0},Ot.createElement(LC,{size:"large"},Ot.createElement(fI,null))):m.qOneAndOnlyOne||(k=Ot.createElement(sR,{item:!0},Ot.createElement(LC,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])},size:"large"},Ot.createElement(pI,null)))),E=Ot.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>Ot.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=Ot.createElement(sR,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},C,k,E,u&&Ot.createElement(DT,{alignTo:s,show:u,close:f,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),a?Ot.createElement(DT,{alignTo:s,show:!0,close:f,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var qT=e=>dI((e=>o(o({},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 jT={item:"".concat("MultiState","-item")},FT=tS(sR)((e=>{let{theme:t}=e;return{["&.".concat(jT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function BT(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=Ge.exports.useState(!!r),[l,s]=Ge.exports.useState(-1),[c,u]=Ge.exports.useState(r?r.current:null),d=r||Ge.exports.useRef(),{translator:p}=Ge.exports.useContext(Rw),f=p.get("Selection.ClearAllStates"),m=()=>{s(-1),o()};let h=null;r||(h=Ot.createElement(Ot.Fragment,null,Ot.createElement(sR,{item:!0,xs:!0,zeroMinWidth:!0},Ot.createElement(Pk,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},Ot.createElement(zC,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),Ot.createElement(sR,{item:!0},Ot.createElement("div",{style:{width:"12px"}})),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{size:"large"},Ot.createElement(qT,null)))));const g=Ot.createElement(lL,{dense:!0},Ot.createElement(yL,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},Ot.createElement(fw,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>Ot.createElement(yL,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},Ot.createElement(Nk,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},Ot.createElement($T,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=Ot.createElement(FL,{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"}}},g),b=r?v:Ot.createElement(FT,{container:!0,gap:0,className:jT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},h,a&&v,l>-1&&Ot.createElement(DT,{alignTo:d,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?Ot.createElement(DT,{alignTo:d,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const WT="More",HT={item:"".concat(WT,"-item"),badge:"".concat(WT,"-badge")},UT=tS(sR)((e=>{let{theme:t}=e;return{["&.".concat(HT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(HT.badge)]:{padding:t.spacing(0,1)}}}));function VT(e){let{items:t=[],api:n}=e;const r=Yx(),[o,a]=Ge.exports.useState(!1),[i,l]=Ge.exports.useState(-1),[s,c]=Ge.exports.useState(null),u=Ge.exports.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?Ot.createElement(BT,{field:t[i],api:n,moreAlignTo:u,onClose:d}):Ot.createElement($T,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),Ot.createElement(UT,{container:!0,gap:0,className:HT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},Ot.createElement(sR,{item:!0},Ot.createElement(Nk,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},Ot.createElement(zC,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{size:"large"},Ot.createElement(qT,null))),o&&Ot.createElement(FL,{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"}}},Ot.createElement(lL,{dense:!0},t.map(((e,t)=>Ot.createElement(yL,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},Ot.createElement(Nk,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?Ot.createElement(BT,{field:e,api:n}):Ot.createElement($T,{field:e,api:n}))))))),p)}function GT(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 KT(e){let{api:t,app:n}=e;const r=Yx(),[o]=Kw(n),[a]=Hw(o),[i,l]=Ge.exports.useState({items:[],more:[]}),[s]=nC(),[c,u]=cI(),[d,p]=Ge.exports.useState(0);return Ge.exports.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-72,n=Math.floor(t/120);p(n)}),[u]),Ge.exports.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&>(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>GT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(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 d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),Ot.createElement(sR,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>Ot.createElement(sR,{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?Ot.createElement(BT,{field:e,api:t}):Ot.createElement($T,{field:e,api:t})))),i.more.length>0&&Ot.createElement(sR,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},Ot.createElement(VT,{items:i.more,api:t})))}var XT=e=>dI((e=>o(o({},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 ZT=e=>dI((e=>o(o({},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 YT(e){let{api:t,app:n}=e;const{translator:r}=Ge.exports.useContext(Rw),[o]=Xw(n);return Ot.createElement(sR,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},Ot.createElement(sR,{item:!0},Ot.createElement(LC,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},Ot.createElement(XT,null))),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},Ot.createElement(ZT,null))),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},Ot.createElement(bT,null))))}function QT(e){let{app:t}=e;const n=Yx(),[r]=oC(t);return r?Ot.createElement(sR,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},Ot.createElement(sR,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},Ot.createElement(YT,{api:r,app:t})),Ot.createElement(sR,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},Ot.createElement(KT,{api:r,app:t}))):null}function JT(e){let{element:t,app:n}=e;return _p.createPortal(Ot.createElement(QT,{app:n}),t)}var eP=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},tP=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}}(),nP=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},rP=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},oP=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")},aP=void 0;aP="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var iP=null,lP=null,sP=aP.clearTimeout,cP=aP.setTimeout,uP=aP.cancelAnimationFrame||aP.mozCancelAnimationFrame||aP.webkitCancelAnimationFrame,dP=aP.requestAnimationFrame||aP.mozRequestAnimationFrame||aP.webkitRequestAnimationFrame;function pP(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__&&iP(this.__resizeRAF__),this.__resizeRAF__=lP((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 m=0;m<d.length;m++)if(void 0!==f.style[d[m]+"AnimationName"]){u="-"+d[m].toLowerCase()+"-",r=p[m],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=aP.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==uP||null==dP?(iP=sP,lP=function(e){return cP(e,20)}):(iP=function(e){var t=oP(e,2),n=t[0],r=t[1];uP(n),sP(r)},lP=function(e){var t=dP((function(){sP(n),e()})),n=cP((function(){uP(t),e()}),20);return[t,n]});var fP=function(e){function t(){var e,n,r;eP(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=rP(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},rP(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),tP(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=pP(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={},d=!1;return r||(0===l&&(d=!0),c.height=0,u.height=l),o||(0===s&&(d=!0),c.width=0,u.width=s),Ge.exports.createElement("div",{className:n,ref:this._setRef,style:nP({},c,a)},!d&&t(u))}}]),t}(Ge.exports.PureComponent);fP.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const mP={listBoxHeader:"".concat("ListBoxInline","-listBoxHeader")},hP=tS(sR)((()=>({["& .".concat(mP.listBoxHeader)]:{alignSelf:"center",display:"inline-flex"}})));function gP(e){let{app:t,fieldIdentifier:n,stateName:r="$",options:a={},fieldDef:i}=e;const{title:l,direction:s,listLayout:c,search:u=!0,focusSearch:d=!1,toolbar:p=!0,rangeSelect:f=!0,checkboxes:m=!1,properties:h={},sessionModel:g,selectionsApi:v,update:b,fetchStart:y,dense:x=!1,selectDisabled:S=(()=>!1),postProcessPages:w,calculatePagesHeight:C,showGray:k=!0,sortByState:E=1,scrollState:R,setCount:L,shouldConfirmOnBlur:O}=a;let{frequencyMode:M,histogram:I=!1}=a;switch(i&&i.failedToFetchFieldDef&&(I=!1,M="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(M):M="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(M):M="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(M):M="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(M):M="R";break;default:M="N"}const T=o({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:r,qShowAlternatives:!0,qFrequencyMode:I&&"N"===M?"V":M,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:E,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:l},h);let P;if(n.qLibraryId?(T.qListObjectDef.qLibraryId=n.qLibraryId,P=n.qLibraryId):(T.qListObjectDef.qDef.qFieldDefs=[n],P=n),"N"!==M||I){const e=n.qLibraryId?i:P;T.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}let[z]=Vw(T,g?null:t,P,r);g&&(z=g);let N=AT(v?{}:t,z)[0];v&&(N=v);const _=Yx(),A=Ge.exports.useCallback((()=>{z.lock("/qListObjectDef")}),[z]),D=Ge.exports.useCallback((()=>{z.unlock("/qListObjectDef")}),[z]),{translator:$,keyboardNavigation:q}=Ge.exports.useContext(Rw),j=Ge.exports.useRef(),[F,B]=(()=>{const[e,t]=Ge.exports.useState({}),n=Ge.exports.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[W]=Hw(z),[H,U]=Ge.exports.useState(!1),[V,G]=Ge.exports.useState(!1),[K,X]=Ge.exports.useState(!1),Z=XI({setKeyboardActive:X}),Y={enabled:q,active:K};Ge.exports.useEffect((()=>{const e=()=>U(!0),t=()=>U(!1);return N&&(N.isModal(z)||(N.on("deactivated",t),N.on("activated",e))),()=>{N&&(N.removeListener("deactivated",e),N.removeListener("activated",t))}}),[N]),Ge.exports.useEffect((()=>{N&&U(N.isActive())}),[N]);const Q=Ge.exports.useRef(null);if(function(e,t,n){const[r,o]=Ge.exports.useState(!1),a=Ge.exports.useRef(r),i=e=>{a.current=e,o(e)};Ge.exports.useEffect((()=>{if(!n)return;const r=n=>{const r=e.current&&e.current.contains(n.target),o=a.current;r||o?r&&i(!1):(t&&t.confirm.call(t),i(!0))};return document.addEventListener("mousedown",r),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}}),[e,t,n])}(Q,N,O),Ge.exports.useEffect((()=>{if(F&&F.current&&(u&&d||"toggle"===u&&V)){const e=F.current.querySelector("input");e&&e.focus()}}),[F&&F.current,V,u,d]),!z||!W||!$)return null;const J=!0===W.qListObject.qDimensionInfo.qLocked,ee=p?dT({layout:W,model:z,translator:$}):[],te=W.qListObject.qDimensionInfo.qStateCounts,ne=te.qSelected+te.qSelectedExcluded+te.qLocked+te.qLockedExcluded>0,re=(!0===u||"toggle"===u&&V)&&!S(),oe=49+(re?x?27:40:0)+(x?39:49),ae=()=>{G(!V)};return Ot.createElement(hP,{container:!0,tabIndex:Y.enabled&&!Y.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:"".concat(oe,"px")},onKeyDown:Z,ref:Q},p&&Ot.createElement(sR,{item:!0,container:!0,style:{padding:_.spacing(1)}},Ot.createElement(sR,{item:!0},J?Ot.createElement(LC,{tabIndex:-1,onClick:D,disabled:!J,size:"large"},Ot.createElement(fI,{title:$.get("Listbox.Unlock")})):"toggle"!==u||ne?Ot.createElement(LC,{onClick:A,tabIndex:-1,disabled:!ne,size:"large"},Ot.createElement(mI,null)):Ot.createElement(LC,{onClick:ae,tabIndex:-1,title:$.get("Listbox.Search"),size:"large"},Ot.createElement(PT,null))),Ot.createElement(sR,{item:!0,className:mP.listBoxHeader},Ot.createElement(zC,{variant:"h6",noWrap:!0},W.title||W.qListObject.qDimensionInfo.qFallbackTitle)),Ot.createElement(sR,{item:!0,xs:!0}),Ot.createElement(sR,{item:!0},Ot.createElement(TT,{more:{enabled:!J,actions:ee,alignTo:j,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:H,api:N,onConfirm:()=>{},onCancel:()=>{}}}))),re&&Ot.createElement(sR,{item:!0,ref:B},Ot.createElement(NT,{model:z,dense:x,keyboard:Y})),Ot.createElement(sR,{item:!0,xs:!0},Ot.createElement("div",{ref:j}),Ot.createElement(fP,null,(e=>{let{height:t,width:n}=e;return Ot.createElement(iT,{model:z,selections:N,direction:s,listLayout:c,frequencyMode:M,histogram:I,rangeSelect:f,checkboxes:m,height:t,width:n,update:b,fetchStart:y,postProcessPages:w,calculatePagesHeight:C,dense:x,selectDisabled:S,keyboard:Y,showGray:k,scrollState:R,sortByState:E,setCount:L})}))))}function vP(e){let{app:t,fieldIdentifier:n,stateName:r="$",options:o={}}=e;const[a,i]=Ge.exports.useState(""),[l,s]=Ge.exports.useState(!1);return Ge.exports.useEffect((()=>{!async function(){s(!0);try{const e=await t.getDimension(n.qLibraryId),r=await e.getLayout();i(r.qDim.qFieldDefs?r.qDim.qFieldDefs[0]:""),s(!1)}catch(e){throw s(!1),i({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}()}),[]),l?null:Ot.createElement(gP,{app:t,fieldIdentifier:n,stateName:r,options:o,fieldDef:a})}function bP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a}=e;const i=a.histogram||"N"!==a.frequencyMode,l=n.qLibraryId&&i?vP:gP;return _p.createPortal(Ot.createElement(l,{app:t,fieldIdentifier:n,stateName:r,element:o,options:a}),o)}const yP=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function xP(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function SP(){return yP.map(xP).join("")}function wP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function CP(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 kP(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const a=t.qae.data.targets[0];if(!a)return;const{propertyPath:i}=a,l=i.split("/");let s=n;for(let e=0;e<l.length;e++){const t=l[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 a=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?(e=>({qDef:{qFieldDefs:[e]}}))(e):o(o({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||SP(),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<i.maxDimensions()?(t.qDimensions.push(r),wP(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,a)):(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))},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];CP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,a,e)},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):o(o({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||SP(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),wP(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,a)):(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];CP(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,a,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}({dc:s,def:a,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 EP=(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},RP=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},LP=e=>0===Object.keys(e).length&&e.constructor===Object;var OP={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const MP=2**53-1;function IP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function TP(e,t){const n=k(!0,{},t,e);return EP(n,"qOtherTotalSpec.qOtherCounted")||RP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),EP(n,"qOtherTotalSpec.qOtherLimit")||RP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function PP(e,t){return k(!0,{},t,e)}function zP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var NP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===EP(e,t)&&RP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:IP,importCommonProperties:function(e,t,n){const r="masterobject"===EP(t,"properties.qInfo.qType")?"masterobject":EP(n,"qInfo.qType");RP(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:TP,createDefaultMeasure:PP,resolveValue:zP,getHypercubePath:function(e){const t=EP(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(OP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,OP.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=k(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?RP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||IP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=k(!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=zP(a.max,r.dimensions.length,MP),l=zP(a.min,r.dimensions.length,0);return{maxDimensions:zP(o.max,i,MP),minDimensions:zP(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(TP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(TP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(PP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(PP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PP(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=EP(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=EP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var _P={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=EP(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();OP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(NP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!LP(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=NP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=EP(n,a||"").qHyperCubeDef,c=EP(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=NP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:m=NP.getDefaultDimension(),defaultMeasure:h=NP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,NP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&NP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),NP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:m}),NP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:h}),NP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),NP.copyPropertyIfExist("qMaxStackedCells",s,c),NP.copyPropertyIfExist("qNoOfLeftDims",s,c),NP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),NP.copyPropertyOrSetDefault("qMode",s,c,"S"),NP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),NP.copyPropertyOrSetDefault("qSortbyYValue",s,c),NP.copyPropertyOrSetDefault("qIndentMode",s,c),NP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),NP.importCommonProperties(l,t,n),NP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),NP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const AP=e=>EP(e,"data.targets.0.propertyPath"),DP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _P.exportProperties})(AP(e))},$P=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _P.importProperties})(AP(e))},qP=async e=>{let{halo:t,model:n,cellRef:r,newType:a}=e;const i=await n.getFullPropertyTree(),l=r.current.getQae(),s=DP(l),c=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:a}),u=c.qae;return $P(u)({exportFormat:s({propertyTree:i,hypercubePath:NP.getHypercubePath(l)}),initialProperties:o({qInfo:{qType:a},visualization:a},EP(u,"properties.initial",{})),dataDefinition:EP(u,"data.targets.0.",{}),hypercubePath:NP.getHypercubePath(u)})},jP={hypercube:_P};var FP=e=>dI((e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function BP(e){let{d:t}=e;const n=Yx();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=Ot.createElement(zC,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},Ot.createElement(ER,null,t.missing||t.error?Ot.createElement(FP,{style:a}):Ot.createElement($I,{style:a})));return Ot.createElement(sR,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},Ot.createElement(sR,{item:!0},i),Ot.createElement(sR,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},Ot.createElement(zC,{noWrap:!0,component:"p"},Ot.createElement(zC,{component:"span",variant:"subtitle2",color:r},t.description),Ot.createElement(zC,{component:"span"}," "),Ot.createElement(zC,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function WP(e){let{data:t}=e;const n=Yx();return Ot.createElement(sR,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>Ot.createElement(BP,{d:e,key:t})));return r.length>0&&Ot.createElement(sR,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},Ot.createElement(zC,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HP(e){let{title:t="Error",message:n="",data:r=[]}=e;return Ot.createElement(sR,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},Ot.createElement(sR,{item:!0},Ot.createElement(FP,{style:{fontSize:"38px"}})),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"h6",align:"center","data-tid":"error-title"},t)),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),Ot.createElement(WP,{data:r}))}const UP=["size"],VP="Progress",GP={root:"".concat(VP,"-root"),front:"".concat(VP,"-front"),back:"".concat(VP,"-back")},KP=tS("div")((e=>{let{theme:t}=e;return{["&.".concat(GP.root)]:{position:"relative",display:"inline-block"},["& .".concat(GP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(GP.back)]:{color:t.palette.divider}}})),XP={small:16,medium:32,large:64,xlarge:128};function ZP(e){let{size:t="medium"}=e,n=l(e,UP);const r=XP[t];return Ot.createElement(KP,{className:GP.root},Ot.createElement(hE,i({variant:"determinate",value:100,className:GP.back,size:r,thickness:3},n)),Ot.createElement(hE,i({variant:"indeterminate",disableShrink:!0,className:GP.front,size:r,thickness:3},n)))}const YP=["cancel","translator"],QP=["retry","translator"],JP={stripes:"".concat("LongRunningQuery","-stripes")},ez=tS(sR)((()=>({["& .".concat(JP.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function tz(e){let{cancel:t,translator:n}=e,r=l(e,YP);return Ot.createElement(Ot.Fragment,null,Ot.createElement(ez,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},Ot.createElement(sR,{item:!0},Ot.createElement(ZP,null)),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),Ot.createElement(sR,i({item:!0},r),Ot.createElement(fw,{variant:"contained",onClick:t},n.get("Cancel"))))}function nz(e){let{retry:t,translator:n}=e,r=l(e,QP);return Ot.createElement(Ot.Fragment,null,Ot.createElement(sR,{item:!0},Ot.createElement(FP,{style:{fontSize:"38px"}})),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),Ot.createElement(sR,{item:!0},Ot.createElement(fw,i({variant:"contained",onClick:t},r),n.get("Retry"))))}function rz(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=Ge.exports.useContext(Rw);return Ot.createElement(sR,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:JP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&Ot.createElement(tz,{cancel:r.cancel,translator:o,className:JP.cancel}),n&&Ot.createElement(nz,{retry:r.retry,translator:o,className:JP.retry}))}function oz(){return Ot.createElement(sR,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},Ot.createElement(ZP,{size:"large"}))}const az="Header",iz={containerStyle:"".concat(az,"-containerStyle"),containerTitleStyle:"".concat(az,"-containerTitleStyle")},lz=tS(sR)((e=>{let{theme:t}=e;return{["& .".concat(iz.containerStyle)]:{flexGrow:0},["& .".concat(iz.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),sz="njs-cell-title",cz="njs-cell-sub-title";function uz(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]=Ge.exports.useState([]),[d,p]=cI(),[f,m]=Ge.exports.useState(!1);Ge.exports.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{u([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),Ge.exports.useEffect((()=>{if(!p)return;const{width:e}=p;m(e<221)}),[p]);const h=i||l,g=[iz.containerStyle,...h?[iz.containerTitleStyle]:[]],v=(o||s)&&(f||!h),b=h&&!v&&!f,y=Ot.createElement(TT,{show:b,selections:{show:s,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:c,popover:{show:v,anchorEl:r},focusHandler:a});return Ot.createElement(lz,{ref:d,item:!0,container:!0,wrap:"nowrap",className:g.join(" ")},Ot.createElement(sR,{item:!0,zeroMinWidth:!0,xs:!0},Ot.createElement(sR,{container:!0,wrap:"nowrap",direction:"column"},i&&Ot.createElement(zC,{variant:"h6",noWrap:!0,className:sz},t.title),l&&Ot.createElement(zC,{variant:"body2",noWrap:!0,className:cz},t.subtitle))),Ot.createElement(sR,{item:!0},y))}const dz={itemStyle:"".concat("Footer","-itemStyle")},pz=tS(sR)((e=>{let{theme:t}=e;return{["& .".concat(dz.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),fz="njs-cell-footer";function mz(e){let{layout:t}=e;return t&&t.showTitles&&t.footnote?Ot.createElement(pz,{container:!0},Ot.createElement(sR,{item:!0,className:dz.itemStyle},Ot.createElement(zC,{noWrap:!0,variant:"body2",className:fz},t.footnote))):null}class hz{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 gz="njs-viz";function vz(e){let{sn:t,snOptions:n,snPlugins:r,layout:a,appLayout:i,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,keyboardNavigation:p}=Ge.exports.useContext(Rw),[f]=Ge.exports.useState((()=>new hz)),[m,h]=Ge.exports.useState(!1),[g,v]=Ge.exports.useState(0),[b,y,x]=cI(),[S,w]=Ge.exports.useState(null),C=Ge.exports.useCallback((e=>{e&&w(e)}),[]);return Ge.exports.useEffect((()=>{if(S)return s.created({options:n}),s.mounted(S),h(!0),()=>{f.stop(),s.willUnmount()}}),[S,s]),Ge.exports.useEffect((()=>{m&&S&&y&&(!s.isHooked&&a&&a.qSelectionInfo&&a.qSelectionInfo.qInSelections||f.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:a,options:n,plugins:r,embed:l.public.nebbie,context:o({constraints:d,theme:l.public.theme,appLayout:i,keyboardNavigation:p},s.isHooked?{}:{logicalSize:t.logicalSize({layout:a}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===g&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),v(g+1))}))})))}),[y,n,r,S,x,a,i,c,u,d,m,p]),Ot.createElement("div",{ref:b,"data-render-count":g,style:{position:"relative",height:"100%"},className:gz},Ot.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const bz="njs-cell",yz=(e,t)=>{switch(t.type){case"LOADING":return o(o({},e),{},{loading:!0});case"LOADED":return o(o({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return o(o({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return o(o({},e),{},{longRunningQuery:!0});case"ERROR":return o(o({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function xz(e){let{delay:t=750}=e;const[n,r]=Ge.exports.useState(!1);return Ge.exports.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?Ot.createElement(oz,null):null}const Sz=e=>!e.qError||7005===e.qError.qErrorCode,wz=(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}})),Cz=e=>e&&(Array.isArray(e)?e:[e])||[],kz=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:wz(o,Cz(i.qDimensionInfo),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:wz(a,Cz(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Ez=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),m=Cz(f.qDimensionInfo).filter(Sz),h=Cz(f.qMeasureInfo).filter(Sz);if(o+=d,a+=p,(m.length<d||h.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=kz(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Dimensions",[f,i]),h=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[h,l]),v=[{title:m,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},Rz=Ge.exports.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,currentId:c}=e;const{app:u,types:d}=n,{nebbie:p}=n.public,{disableCellPadding:f=!1}=n.context||{},{translator:m,language:h,keyboardNavigation:g}=Ge.exports.useContext(Rw),v=Yx(),[b,y,x]=cI(),[S,w]=Ge.exports.useReducer(yz,{loading:!1,loaded:!1,longRunningQuery:!1,error:(C=l)?{title:C.message}:null,sn:null,visualization:null});var C;const[k,{validating:E,canCancel:R,canRetry:L},O]=Hw(r),[M]=Uw(u),[I,T,P]=cI(),[z,N]=Ge.exports.useState(a),[_,A]=Ge.exports.useState(i),[D]=AT(u,r),[$,q]=Ge.exports.useState(!1),j=Ge.exports.useRef({enter:null,leave:null}),F=Ge.exports.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});Ge.exports.useEffect((()=>{_T(F.current)}),[]),F.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&P&&P.focus()},F.current.refocusContent=()=>{S.sn.component&&"function"==typeof S.sn.component.focus&&S.sn.component.focus()};Ge.exports.useEffect((()=>{if(l||!M||!k)return;if(S.visualization===k.visualization&&S.sn)return void(async e=>{const[t,n]=await Ez(m,k,e.generator.qae.data,r);w(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:S.sn,layout:k,model:r})})(S.sn);const e=d.getSupportedVersion(k.visualization,k.version);if(e)return(async(e,t)=>{w({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:w,types:d,visualization:e,version:t,model:r,app:u,selections:D,nebbie:p,focusHandler:F.current});n&&(w({type:"LOADED",sn:n,visualization:e}),s())})(k.visualization,e),()=>{};w({type:"ERROR",error:{title:"Could not find a version of '".concat(k.visualization,"' that supports current object version. Did you forget to register ").concat(k.visualization,"?")}})}),[d,S.sn,r,D,k,M,h]),Ge.exports.useEffect((()=>{if(!E)return;const e=setTimeout((()=>w({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[E]),Ge.exports.useImperativeHandle(t,(()=>({getQae:()=>S.sn.generator.qae,toggleFocus(e){"function"==typeof S.sn.component.focus&&(e?S.sn.component.focus():S.sn.component.blur())},setSnOptions:N,setSnPlugins:A,async takeSnapshot(){const{width:e,height:t}=y;let n=JSON.parse(JSON.stringify(k));return"function"==typeof S.sn.component.setSnapshotData&&(n=await S.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:v.name,appLayout:M,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)}})),[S.sn,T,y,k,v.name,M]);let B=null;return S.loading&&!S.longRunningQuery?B=Ot.createElement(xz,null):S.error?B=Ot.createElement(HP,S.error):S.loaded&&(B=Ot.createElement(vz,{key:k.visualization,sn:S.sn,halo:n,snOptions:z,snPlugins:_,layout:k,appLayout:M})),Ot.createElement(iS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:bz,ref:b,onMouseEnter:()=>{j.current.leave&&clearTimeout(j.current.leave),j.enter||(j.current.enter=setTimeout((()=>{q(!0),j.current.enter=null}),250))},onMouseLeave:()=>{j.current.enter&&clearTimeout(j.current.enter),j.current.leave||(j.current.leave=setTimeout((()=>{q(!1),j.current.leave=null}),750))}},Ot.createElement(sR,{container:!0,direction:"column",gap:0,style:o(o({position:"relative",width:"100%",height:"100%"},f?{}:{padding:v.spacing(1)}),S.longRunningQuery?{opacity:"0.3"}:{})},x&&k&&S.sn&&Ot.createElement(uz,{layout:k,sn:S.sn,anchorEl:x,hovering:$,focusHandler:F.current}," "),Ot.createElement(sR,{tabIndex:g?0:-1,onKeyDown:g?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:I},B),Ot.createElement(mz,{layout:k})),S.longRunningQuery&&Ot.createElement(rz,{canCancel:R,canRetry:L,api:O}))}));function Lz(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=Ot.createRef(),u=SP(),d=_p.createPortal(Ot.createElement(Rz,{ref:c,halo:t,model:r,currentId:u,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),p=()=>{s.remove(d),r.removeListener("closed",p)};return r.on("closed",p),s.add(d),s.addCell(u,c),[p,c]}function Oz(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Mz(e,t){return Oz(e)&&Oz(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function Iz(){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)?Mz(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Iz("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Tz(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 Pz=()=>{};function zz(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=Pz,i=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=async e=>{l?(async()=>{await c,i.current.setSnOptions(o(o({},u),e))})():u=o(o({},u),e)},f=async e=>{Tz(e),l?(async()=>{await c,i.current.setSnPlugins(e)})():d=e},m={id:e.id,async destroy(){await r(),a(),a=Pz},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await qP({halo:t,model:e,cellRef:i,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(l)throw new Error("Already mounted");return l=r,[a,i]=Lz({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=Iz("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return m}async function Nz(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=zz({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 _z(e,t){let n,{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c}=e,u={};try{const e=t.types.get({name:r,version:o});u=await e.initialProperties(i);const n=await e.supernova();a&&kP({sn:n,properties:u,fields:a}),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},u)}catch(e){n=e,u={qInfo:{qType:r},visualization:r}}const d=await t.app.createSessionObject(u);Fw.set(d.id,d);const p=(e=>{const t=qw({type:"SET",value:e});return()=>{t(),Fw.clear(e.id)}})(d);return Nz(d,{options:l,plugins:s,element:c},t,n,(async()=>{await t.app.destroySessionObject(d.id),p()}))}async function Az(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=_w.get(i);l||(l=t.app.getObject(n),_w.set(i,l));const s=await l;return Fw.set(i,s),Nz(s,{options:r,plugins:o,element:a},t)}function Dz(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const $z=k.bind(null,!0),qz={},{isArray:jz}=Array;function Fz(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Bz(e){return void 0===e}function Wz(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Hz(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]=Bz(e[r||t])?a:e[t],e=e[r||t]})),e}function Uz(e,t){let n=!0;if(Fz(e)&&Fz(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Uz(e[r],t[r])||(n=!1)})),n);if(jz(e)&&jz(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Uz(e[n],t[n]))return!1;return!0}return e===t}qz.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?$z({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);Uz(a,i)||Wz(t,o)||(Bz(i)?r.push({op:"add",path:l,value:a}):Fz(a)&&Fz(i)?r=r.concat(qz.generate(i,a,l)):jz(a)&&jz(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]&&Bz(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(Uz(t,o))return r;if(!Bz(t[0])&&Bz(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(qz.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=>{Bz(t[o])&&!Wz(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},qz.apply=function(e,t){t.forEach((t=>{let n=Hz(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(jz(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(jz(o)&&jz(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Fz(o)&&Fz(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!Wz(i,e)&&delete i[e]})),$z(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=Hz(e,t.from);jz(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(jz(n)?n.splice(+r,1):delete n[r]);var i}))},qz.clone=function(e){return $z({},e)},qz.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},qz.updateObject=function(e,t){Object.keys(e).length?qz.apply(e,qz.generate(e,t)):$z(e,t)};const Vz=e=>t=>{const n=(r=o(o({},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(h.prototype).forEach((e=>{r[e]=h.prototype[e]})),h.init(r),r);var r;return n};let Gz,Kz;function Xz(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 Zz(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:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function Yz(e){Jz(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 Qz(e){if(e.__hooks.obsolete)return Promise.resolve();Kz=-1,Gz=e,Gz.__hooks.initiated&&Gz.__hooks.list.length;try{Gz.fn.call(null)}catch(e){console.error(e)}Gz.__hooks.initiated=!0;const t=Gz.__hooks;return nN(Gz),Kz=void 0,Gz=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Jz(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Jz(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 Jz(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 eN(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 tN(e){return e.__hooks.imperativeHandle}function nN(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function rN(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,nN(e))}function oN(e){if(void 0===Gz)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Gz.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function aN(e){oN(++Kz);return Gz.context[e]}function iN(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function lN(e){return{__hooked:!0,fn:e,initiate:Zz,run:Qz,teardown:Yz,runSnaps:eN,focus:fN,blur:mN,observeActions:rN,getImperativeHandle:tN,updateRectOnNextRun:iN}}function sN(e){const t=oN(++Kz);if(!t.value){t.component=Gz;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,Qz(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function cN(e,t){const n=oN(++Kz);Xz(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Gz.__hooks.pendingEffects.indexOf(n)&&Gz.__hooks.pendingEffects.push(n))}function uN(e,t){const n=oN(++Kz);Xz(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Gz.__hooks.pendingLayoutEffects.push(n))}function dN(e,t){const n=oN(++Kz);return Xz(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function pN(){return aN("element")}function fN(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 mN(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 hN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},gN=Object.keys(hN);function vN(e,t){const n=o({},hN);var r;r=n,Object.keys(h.prototype).forEach((e=>{r[e]=h.prototype[e]})),h.init(r);const a={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==gN.indexOf(t)?n[t]=e.component[t].bind(a):a[t]=e.component[t]}));const i=function(e){let{sn:t,component:n}=e;const r={},o=[],a=Vz(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:a}),l=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(a,{model:t.model,app:t.app,global:l,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function bN(e,t,n){"function"==typeof e.component&&(e.component=lN(e.component));const[r,a]=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 a=!1;const i={},l=["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=!a||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(o(o({},r[e]),s))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(a=!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)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):vN(e,t),i=[];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=qz.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));qz.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=qz.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},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:a?a.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const yN=()=>{};function xN(e,t){return void 0===e?()=>t:()=>e}function SN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:xN(t.min,0),max:"function"==typeof t.max?t.max:xN(t.max,1e3),added:t.added||t.add||yN,description:t.description||yN,moved:t.moved||t.move||yN,removed:t.removed||t.remove||yN,replaced:t.replaced||t.replace||yN,isDefined:()=>!!e}}function wN(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, 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:SN(e.dimensions),measures:SN(e.measures)}}function CN(){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(wN)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function kN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:CN(n.qae),component:n.component||{},create:e=>bN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var EN={exports:{}};!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 m(e,t,n){return new d(e,n).compare(new d(t,n))}function h(e,t,n){return m(e,t,n)>0}function g(e,t,n){return m(e,t,n)<0}function v(e,t,n){return 0===m(e,t,n)}function b(e,t,n){return 0!==m(e,t,n)}function y(e,t,n){return m(e,t,n)>=0}function x(e,t,n){return m(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 b(e,n,r);case">":return h(e,n,r);case">=":return y(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===C?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=m,t.compareLoose=function(e,t){return m(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 m(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=h,t.lt=g,t.eq=v,t.neq=b,t.gte=y,t.lte=x,t.cmp=S,t.Comparator=w;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof w)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function E(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 R(e){return!e||"x"===e.toLowerCase()||"*"===e}function L(e,t,n,r,o,a,i,l,s,c,u,d,p){return((t=R(n)?"":R(r)?">="+n+".0.0":R(o)?">="+n+"."+r+".0":">="+t)+" "+(l=R(s)?"":R(c)?"<"+(+s+1)+".0.0":R(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!==C&&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 M(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function I(e,t,n,r){var o,a,i,l,s;switch(e=new d(e,r),t=new k(t,r),n){case">":o=h,a=x,i=g,l=">",s=">=";break;case"<":o=g,a=y,i=h,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(M(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===C&&(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=C},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new 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 k(e.value,t),M(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),M(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=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[i.HYPHENRANGELOOSE]:o[i.HYPHENRANGE];e=e.replace(r,L),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),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(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),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(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=R(a),u=c||R(i),d=u||R(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)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return E(n,t)&&e.set.some((function(e){return E(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new 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=M,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var a=new k(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 k(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 k(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&&!h(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return I(e,t,"<",n)},t.gtr=function(e,t,n){return I(e,t,">",n)},t.outside=I,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 k(e,n),t=new k(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)}}(EN,EN.exports);const RN={};async function LN(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!RN[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);RN[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 RN[a]}function ON(e,t){const n={};let r=null;return{get:e=>n[e],register:(a,i)=>{if(n[a])throw new Error("Supernova '".concat(e,"@").concat(a,"' already registered."));n[a]=function(e,t){let n,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=a,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||EN.exports.satisfies(e,i.deps.properties),supernova:()=>LN(l.name,l.version,t,a.load).then((e=>(n=n||kN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){return this.supernova().then((()=>o(o({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r)),e)))}};return l}({name:e,version:a},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function MN(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=ON(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(RN).forEach((t=>{t.split("__")[0]===e&&(RN[t]=void 0)}))}(e)}}}const IN=["__DO_NOT_USE__"],TN={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()))},PN=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(o({},e),t)},zN=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))},NN=(e,t)=>({context:PN(e.context,t.context),load:t.load||e.load,snapshot:o({},t.snapshot||e.snapshot),types:zN(e.types,t.types),themes:zN(e.themes,t.themes),flags:PN(e.flags,t.flags),anything:PN(e.anything,t.anything)}),_N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=l(e,IN),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},a=o(o(o({},n),r),t);return a};var AN=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=p(t.context.language);function r(e,a){if(a)return r.createConfiguration(a)(e);let i=o(o({},t.context),{},{translator:n.translator});const[l]=iC({app:e,context:i}),s=Ue({themes:t.themes,root:l}),c={galaxy:{translator:n.translator,flags:Dz(t.flags),deviceType:Ve(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:l,config:t,public:c,context:i,types:null},d=MN({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,m=null;const h={render:async e=>(await p,e.id?Az(e,u):_z(e,u)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=o(o(o({},i),t),{},{translator:n.translator}),u.context=i,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(i))},selections:async()=>(f||(f={mount(t){m||(m=JT({element:t,app:e}),l.add(m))},unmount(){m&&(l.remove(m),m=null)}}),f),field:async t=>{const n="string"==typeof t?t:t.qLibraryId;if(!n)throw new Error("Field identifier must be provided");const r={fieldName:n,mount(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)throw new Error("Element for ".concat(n," not provided"));if(this._instance)throw new Error("Field ".concat(n," already mounted"));this._instance=bP({element:r,app:e,fieldIdentifier:t,options:_N(o),stateName:o.stateName||"$"}),l.add(this._instance)},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return r},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d}};return u.public.nebbie=h,u.types=d,h}return r.createConfiguration=n=>e(NN(t,n)),r.config=t,r}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},snapshot:TN}),DN={exports:{}},$N={exports:{}};!function(e,t){e.exports=function(){function e(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},u=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=a.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&a.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||a.call(e,t)},d=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},p=function(e,t){if("__proto__"===t){if(!a.call(e,t))return;if(s)return s(e,t).value}return e[t]},f=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,f=arguments.length,m=!1;for("boolean"==typeof l&&(m=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<f;++s)if(null!=(t=arguments[s]))for(n in t)r=p(l,n),l!==(o=p(t,n))&&(m&&o&&(u(o)||(a=c(o)))?(a?(a=!1,i=r&&c(r)?r:[]):i=r&&u(r)?r:{},d(l,{name:n,newValue:e(m,i,o)})):void 0!==o&&d(l,{name:n,newValue:o}));return l};const m=globalThis.crypto||{getRandomValues:()=>123456};function h(){return e=>{const t=f({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^m.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=t._mock;let o=t;return r&&(delete t._mock,o=f({},t,r)),Promise.resolve(n({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const g=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},v=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=g(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},b=["id","session"],y=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function x(e){return!y.includes(e)}function S(e){const t=g(e.getLayout);return t.qInfo&&t.qInfo.qId}function w(e,t){return e.reduce(((e,r)=>n(n({},e),function(e,t){const r=S(e),{delay:a}=t,{id:i,session:l}=e,s=o(e,b);return{[r]:n({id:g(i,{defaultValue:"object - ".concat(+Date.now())}),session:g(l,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(s).reduce(((e,t)=>{let[r,o]=t;return n(n({},e),{},{[r]:v(o,{async:x(r),delay:a})})}),{}))}}(r,t))),{})}function C(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!S(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function k(){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(C);const n=w(e,t);return async e=>Promise.resolve(n[e])}function E(){return()=>Promise.resolve({id:"app-layout"})}var R={fromGenericObjects:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new e,o=new h,a=new k(t,n),i=new E,l={id:"app - ".concat(+Date.now()),session:r,createSessionObject:o,getObject:a,getAppLayout:i};return Promise.resolve(l)}};return R}()}($N),function(e){e.exports=$N.exports}(DN);const qN={generator:kN,hook:lN,theme:We,locale:u,EnigmaMocker:n(DN.exports)};e.__DO_NOT_USE__=qN,e.conversion=jP,e.embed=AN,e.onTakeSnapshot=function(e){const t=oN(++Kz);t.value||(t.value=1,Gz.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=sN({action(){n._config.action.call(null)}});return n.component||(n.component=Gz,Gz.__hooks.actions.list.push(n)),dN((()=>{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=aN("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return aN("appLayout")},e.useConstraints=function(){return aN("constraints")},e.useDeviceType=function(){return aN("deviceType")},e.useEffect=cN,e.useElement=pN,e.useEmbed=function(){return aN("nebbie")},e.useGlobal=function(){const e=aN("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=oN(++Kz);if(n.imperative||(n.imperative=!0),Xz(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Gz.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=aN("keyboardNavigation"),t=aN("focusHandler");if(!Gz.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(mN(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Gz);Gz.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),fN(this))}.bind(Gz);Gz.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Gz);Gz.__hooks.accessibility.focusSelectionFunction=r}const n=Gz.__hooks.accessibility.focusFunction,r=Gz.__hooks.accessibility.exitFunction,o=Gz.__hooks.accessibility.focusSelectionFunction,[a,i]=sN({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Gz.__hooks.accessibility.setter=i,Gz.__hooks.accessibility.enabled=e,cN((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return aN("layout")},e.useMemo=dN,e.useModel=function(){const e=aN("model");return e&&e.session?e:void 0},e.useOptions=function(){return aN("options")},e.usePlugins=function(){return aN("plugins")},e.usePromise=function(e,t){const[n,r]=sN((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=oN(++Kz);return o.component||(o.component=Gz),uN((()=>{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=pN(),t=Gz.__hooks.resizer,[n,r]=sN((()=>{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()),uN((()=>{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(){oN(++Kz);const e=Gz.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return aN("selections")},e.useStaleLayout=function(){const e=aN("layout"),[t]=sN({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=sN,e.useTheme=function(){return aN("theme")},e.useTranslator=function(){return aN("translator")},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
230
|
+
`),uM,t.palette.action.hover)));const dM=Ap({},Uy,Qh("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"]));tS("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${wh(n.color)}`],"medium"!==n.size&&t[`size${wh(n.size)}`],n.marked&&t.marked,"vertical"===n.orientation&&t.vertical,"inverted"===n.track&&t.trackInverted,!1===n.track&&t.trackFalse]}})((({theme:e,ownerState:t})=>Ap({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:e.palette[t.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===t.orientation&&Ap({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===t.size&&{height:2},t.marked&&{marginBottom:20}),"vertical"===t.orientation&&Ap({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===t.size&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${dM.disabled}`]:{pointerEvents:"none",cursor:"default",color:e.palette.grey[400]},[`&.${dM.dragging}`]:{[`& .${dM.thumb}, & .${dM.track}`]:{transition:"none"}}}))),tS("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})((({ownerState:e})=>Ap({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===e.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===e.track&&{opacity:1}))),tS("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?Vv(e.palette[t.color].main,.62):Uv(e.palette[t.color].main,.5);return Ap({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{border:"none"},"horizontal"===t.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===t.track&&{display:"none"},"inverted"===t.track&&{backgroundColor:n,borderColor:n})})),tS("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${wh(n.color)}`],"medium"!==n.size&&t[`thumbSize${wh(n.size)}`]]}})((({theme:e,ownerState:t})=>Ap({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},"small"===t.size&&{width:12,height:12},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":Ap({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:e.shadows[2]},"small"===t.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${dM.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${Hv(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${dM.active}`]:{boxShadow:`0px 0px 0px 14px ${Hv(e.palette[t.color].main,.16)}`},[`&.${dM.disabled}`]:{"&:hover":{boxShadow:"none"}}}))),tS((function(e){const{children:t,className:n,value:r,theme:o}=e,a=(e=>{const{open:t}=e;return{offset:uv(t&&Uy.valueLabelOpen),circle:Uy.valueLabelCircle,label:Uy.valueLabelLabel}})(e);return Ge.exports.cloneElement(t,{className:uv(t.props.className)},ih.exports.jsxs(Ge.exports.Fragment,{children:[t.props.children,ih.exports.jsx("span",{className:uv(a.offset,n),theme:o,"aria-hidden":!0,children:ih.exports.jsx("span",{className:a.circle,children:ih.exports.jsx("span",{className:a.label,children:r})})})]}))}),{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})((({theme:e,ownerState:t})=>Ap({[`&.${dM.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transformOrigin:"bottom center",transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:e.palette.grey[600],borderRadius:2,color:e.palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===t.orientation&&{top:"-10px","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===t.orientation&&{right:"30px",top:"25px","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},"small"===t.size&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}))),tS("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>eS(e)&&"markActive"!==e,overridesResolver:(e,t)=>t.mark})((({theme:e,ownerState:t,markActive:n})=>Ap({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===t.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===t.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:e.palette.background.paper,opacity:.8}))),tS("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>eS(e)&&"markLabelActive"!==e,overridesResolver:(e,t)=>t.markLabel})((({theme:e,ownerState:t,markLabelActive:n})=>Ap({},e.typography.body2,{color:e.palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===t.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===t.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:e.palette.text.primary}))),Qh("MuiSnackbarContent",["root","message","action"]),tS(iS,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>{const t="light"===e.palette.mode?.8:.98,n=Gv(e.palette.background.default,t);return Ap({},e.typography.body2,{color:e.palette.getContrastText(n),backgroundColor:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:e.shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})})),tS("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),tS("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),Qh("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]),tS("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${wh(n.anchorOrigin.vertical)}${wh(n.anchorOrigin.horizontal)}`]]}})((({theme:e,ownerState:t})=>{const n=Ap({},!t.isRtl&&{left:"50%",right:"auto",transform:"translateX(-50%)"},t.isRtl&&{right:"50%",left:"auto",transform:"translateX(50%)"});return Ap({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===t.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===t.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===t.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:Ap({},"top"===t.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===t.anchorOrigin.horizontal&&n,"left"===t.anchorOrigin.horizontal&&Ap({},!t.isRtl&&{left:24,right:"auto"},t.isRtl&&{right:24,left:"auto"}),"right"===t.anchorOrigin.horizontal&&Ap({},!t.isRtl&&{right:24,left:"auto"},t.isRtl&&{left:24,right:"auto"}))})}));const pM=Qh("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);tS("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`direction${wh(n.direction)}`]]}})((({theme:e,ownerState:t})=>Ap({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===t.direction&&{flexDirection:"column-reverse",[`& .${pM.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===t.direction&&{flexDirection:"column",[`& .${pM.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===t.direction&&{flexDirection:"row-reverse",[`& .${pM.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===t.direction&&{flexDirection:"row",[`& .${pM.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}}))),tS(zE,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(e,t)=>t.fab})((()=>({pointerEvents:"auto"}))),tS("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.actions,!n.open&&t.actionsClosed]}})((({ownerState:e})=>Ap({display:"flex",pointerEvents:"auto"},!e.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"})));const fM=Qh("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);tS(_C,{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})=>Ap({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${fM.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${fM.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${fM.arrow}`]:Ap({},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"] .${fM.arrow}`]:Ap({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})}))),tS("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${wh(n.placement.split("-")[0])}`]]}})((({theme:e,ownerState:t})=>{return Ap({backgroundColor:e.vars?`rgba(${e.vars.palette.grey.darkChannel} / 0.92)`:Hv(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},{[`.${fM.popper}[data-popper-placement*="left"] &`]:Ap({transformOrigin:"right center"},t.isRtl?Ap({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Ap({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${fM.popper}[data-popper-placement*="right"] &`]:Ap({transformOrigin:"left center"},t.isRtl?Ap({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Ap({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${fM.popper}[data-popper-placement*="top"] &`]:Ap({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${fM.popper}[data-popper-placement*="bottom"] &`]:Ap({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})});var n})),tS("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?`rgba(${e.vars.palette.grey.darkChannel} / 0.9)`:Hv(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));const mM=Qh("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);tS(zE,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.fab,!n.open&&t.fabClosed]}})((({theme:e,ownerState:t})=>Ap({margin:8,color:e.palette.text.secondary,backgroundColor:e.palette.background.paper,"&:hover":{backgroundColor:Gv(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1},!t.open&&{opacity:0,transform:"scale(0)"}))),tS("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.staticTooltip,!n.open&&t.staticTooltipClosed,t[`tooltipPlacement${wh(n.tooltipPlacement)}`]]}})((({theme:e,ownerState:t})=>({position:"relative",display:"flex",alignItems:"center",[`& .${mM.staticTooltipLabel}`]:Ap({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},!t.open&&{opacity:0,transform:"scale(0.5)"},"left"===t.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===t.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})}))),tS("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(e,t)=>t.staticTooltipLabel})((({theme:e})=>Ap({position:"absolute"},e.typography.body1,{backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,boxShadow:e.shadows[1],color:e.palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"})));var hM=dC(ih.exports.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function gM(e){return Yh("MuiSpeedDialIcon",e)}const vM=Qh("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),bM=["className","icon","open","openIcon"],yM=tS("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${vM.icon}`]:t.icon},{[`& .${vM.icon}`]:n.open&&t.iconOpen},{[`& .${vM.icon}`]:n.open&&n.openIcon&&t.iconWithOpenIconOpen},{[`& .${vM.openIcon}`]:t.openIcon},{[`& .${vM.openIcon}`]:n.open&&t.openIconOpen},t.root]}})((({theme:e,ownerState:t})=>({height:24,[`& .${vM.icon}`]:Ap({transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},t.open&&Ap({transform:"rotate(45deg)"},t.openIcon&&{opacity:0})),[`& .${vM.openIcon}`]:Ap({position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},t.open&&{transform:"rotate(0deg)",opacity:1})}))),xM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiSpeedDialIcon"}),{className:r,icon:o,openIcon:a}=n,i=Dp(n,bM),l=n,s=(e=>{const{classes:t,open:n,openIcon:r}=e;return Gh({root:["root"],icon:["icon",n&&"iconOpen",r&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]},gM,t)})(l);function c(e,t){return Ge.exports.isValidElement(e)?Ge.exports.cloneElement(e,{className:t}):e}return ih.exports.jsxs(yM,Ap({className:uv(s.root,r),ref:t,ownerState:l},i,{children:[a?c(a,s.openIcon):null,o?c(o,s.icon):ih.exports.jsx(hM,{className:s.icon})]}))}));xM.muiName="SpeedDialIcon";tS("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>[t.root]})((({ownerState:e,theme:t})=>{let n=Ap({display:"flex"},ng({theme:t},rg({values:e.direction,breakpoints:t.breakpoints.values}),(e=>({flexDirection:e}))));if(e.spacing){const r=mg(t),o=Object.keys(t.breakpoints.values).reduce(((t,n)=>(null==e.spacing[n]&&null==e.direction[n]||(t[n]=!0),t)),{}),a=rg({values:e.direction,base:o});n=xh(n,ng({theme:t},rg({values:e.spacing,base:o}),((t,n)=>{return{"& > :not(style) + :not(style)":{margin:0,[`margin${o=n?a[n]:e.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o]}`]:hg(r,t)}};var o})))}return n}));const SM=Ge.exports.createContext({}),wM=Ge.exports.createContext({});Qh("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]),tS("div",{name:"MuiStep",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>Ap({},"horizontal"===e.orientation&&{paddingLeft:8,paddingRight:8},e.alternativeLabel&&{flex:1,position:"relative"})));var CM=dC(ih.exports.jsx("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),kM=dC(ih.exports.jsx("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning");function EM(e){return Yh("MuiStepIcon",e)}const RM=Qh("MuiStepIcon",["root","active","completed","error","text"]);var LM;const OM=["active","className","completed","error","icon"],MM=tS(uC,{name:"MuiStepIcon",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${RM.completed}`]:{color:(e.vars||e).palette.primary.main},[`&.${RM.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${RM.error}`]:{color:(e.vars||e).palette.error.main}}))),IM=tS("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(e,t)=>t.text})((({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),TM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiStepIcon"}),{active:r=!1,className:o,completed:a=!1,error:i=!1,icon:l}=n,s=Dp(n,OM),c=Ap({},n,{active:r,completed:a,error:i}),u=(e=>{const{classes:t,active:n,completed:r,error:o}=e;return Gh({root:["root",n&&"active",r&&"completed",o&&"error"],text:["text"]},EM,t)})(c);if("number"==typeof l||"string"==typeof l){const e=uv(o,u.root);return i?ih.exports.jsx(MM,Ap({as:kM,className:e,ref:t,ownerState:c},s)):a?ih.exports.jsx(MM,Ap({as:CM,className:e,ref:t,ownerState:c},s)):ih.exports.jsxs(MM,Ap({className:e,ref:t,ownerState:c},s,{children:[LM||(LM=ih.exports.jsx("circle",{cx:"12",cy:"12",r:"12"})),ih.exports.jsx(IM,{className:u.text,x:"12",y:"16",textAnchor:"middle",ownerState:c,children:l})]}))}return l}));function PM(e){return Yh("MuiStepLabel",e)}const zM=Qh("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]),NM=["children","className","componentsProps","error","icon","optional","StepIconComponent","StepIconProps"],_M=tS("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation]]}})((({ownerState:e})=>Ap({display:"flex",alignItems:"center",[`&.${zM.alternativeLabel}`]:{flexDirection:"column"},[`&.${zM.disabled}`]:{cursor:"default"}},"vertical"===e.orientation&&{textAlign:"left",padding:"8px 0"}))),AM=tS("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(e,t)=>t.label})((({theme:e})=>Ap({},e.typography.body2,{display:"block",transition:e.transitions.create("color",{duration:e.transitions.duration.shortest}),[`&.${zM.active}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${zM.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${zM.alternativeLabel}`]:{textAlign:"center",marginTop:16},[`&.${zM.error}`]:{color:(e.vars||e).palette.error.main}}))),DM=tS("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})((()=>({flexShrink:0,display:"flex",paddingRight:8,[`&.${zM.alternativeLabel}`]:{paddingRight:0}}))),$M=tS("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})((({theme:e})=>({width:"100%",color:(e.vars||e).palette.text.secondary}))),qM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiStepLabel"}),{children:r,className:o,componentsProps:a={},error:i=!1,icon:l,optional:s,StepIconComponent:c,StepIconProps:u}=n,d=Dp(n,NM),{alternativeLabel:p,orientation:f}=Ge.exports.useContext(SM),{active:m,disabled:h,completed:g,icon:v}=Ge.exports.useContext(wM),b=l||v;let y=c;b&&!y&&(y=TM);const x=Ap({},n,{active:m,alternativeLabel:p,completed:g,disabled:h,error:i,orientation:f}),S=(e=>{const{classes:t,orientation:n,active:r,completed:o,error:a,disabled:i,alternativeLabel:l}=e;return Gh({root:["root",n,a&&"error",i&&"disabled",l&&"alternativeLabel"],label:["label",r&&"active",o&&"completed",a&&"error",i&&"disabled",l&&"alternativeLabel"],iconContainer:["iconContainer",l&&"alternativeLabel"],labelContainer:["labelContainer"]},PM,t)})(x);return ih.exports.jsxs(_M,Ap({className:uv(S.root,o),ref:t,ownerState:x},d,{children:[b||y?ih.exports.jsx(DM,{className:S.iconContainer,ownerState:x,children:ih.exports.jsx(y,Ap({completed:g,active:m,error:i,icon:b},u))}):null,ih.exports.jsxs($M,{className:S.labelContainer,ownerState:x,children:[r?ih.exports.jsx(AM,Ap({className:S.label,ownerState:x},a.label,{children:r})):null,s]})]}))}));qM.muiName="StepLabel";const jM=Qh("MuiStepButton",["root","horizontal","vertical","touchRipple"]);tS(ow,{name:"MuiStepButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${jM.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})((({ownerState:e})=>Ap({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===e.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{[`& .${jM.touchRipple}`]:{color:"rgba(0, 0, 0, 0.3)"}}))),Qh("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]),tS("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})((({ownerState:e})=>Ap({flex:"1 1 auto"},"vertical"===e.orientation&&{marginLeft:12},e.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"}))),tS("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.line,t[`line${wh(n.orientation)}`]]}})((({ownerState:e,theme:t})=>Ap({display:"block",borderColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]},"horizontal"===e.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===e.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24}))),Qh("MuiStepContent",["root","last","transition"]),tS("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.last&&t.last]}})((({ownerState:e,theme:t})=>Ap({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:`1px solid ${"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}`},e.last&&{borderLeft:"none"}))),tS(yC,{name:"MuiStepContent",slot:"Transition",overridesResolver:(e,t)=>t.transition})({}),Qh("MuiStepper",["root","horizontal","vertical","alternativeLabel"]),tS("div",{name:"MuiStepper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel]}})((({ownerState:e})=>Ap({display:"flex"},"horizontal"===e.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===e.orientation&&{flexDirection:"column"},e.alternativeLabel&&{alignItems:"flex-start"}))),tS("div")((({theme:e,ownerState:t})=>Ap({position:"fixed",top:0,left:0,bottom:0,zIndex:e.zIndex.drawer-1},"left"===t.anchor&&{right:"auto"},"right"===t.anchor&&{left:"auto",right:0},"top"===t.anchor&&{bottom:"auto",right:0},"bottom"===t.anchor&&{top:"auto",bottom:0,right:0}))),"undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);const FM=Qh("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);tS("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${wh(n.edge)}`],t[`size${wh(n.size)}`]]}})((({ownerState:e})=>Ap({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===e.edge&&{marginLeft:-8},"end"===e.edge&&{marginRight:-8},"small"===e.size&&{width:40,height:24,padding:7,[`& .${FM.thumb}`]:{width:16,height:16},[`& .${FM.switchBase}`]:{padding:4,[`&.${FM.checked}`]:{transform:"translateX(16px)"}}}))),tS(Hk,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${FM.input}`]:t.input},"default"!==n.color&&t[`color${wh(n.color)}`]]}})((({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:"light"===e.palette.mode?e.palette.common.white:e.palette.grey[300],transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${FM.checked}`]:{transform:"translateX(20px)"},[`&.${FM.disabled}`]:{color:"light"===e.palette.mode?e.palette.grey[100]:e.palette.grey[600]},[`&.${FM.checked} + .${FM.track}`]:{opacity:.5},[`&.${FM.disabled} + .${FM.track}`]:{opacity:"light"===e.palette.mode?.12:.2},[`& .${FM.input}`]:{left:"-100%",width:"300%"}})),(({theme:e,ownerState:t})=>Ap({"&:hover":{backgroundColor:Hv(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==t.color&&{[`&.${FM.checked}`]:{color:e.palette[t.color].main,"&:hover":{backgroundColor:Hv(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${FM.disabled}`]:{color:"light"===e.palette.mode?Vv(e.palette[t.color].main,.62):Uv(e.palette[t.color].main,.55)}},[`&.${FM.checked} + .${FM.track}`]:{backgroundColor:e.palette[t.color].main}}))),tS("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})((({theme:e})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:"light"===e.palette.mode?e.palette.common.black:e.palette.common.white,opacity:"light"===e.palette.mode?.38:.3}))),tS("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})((({theme:e})=>({boxShadow:e.shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})));const BM=Qh("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);tS(ow,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${wh(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})((({theme:e,ownerState:t})=>Ap({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:"top"===t.iconPosition||"bottom"===t.iconPosition?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${BM.iconWrapper}`]:Ap({},"top"===t.iconPosition&&{marginBottom:6},"bottom"===t.iconPosition&&{marginTop:6},"start"===t.iconPosition&&{marginRight:e.spacing(1)},"end"===t.iconPosition&&{marginLeft:e.spacing(1)})},"inherit"===t.textColor&&{color:"inherit",opacity:.6,[`&.${BM.selected}`]:{opacity:1},[`&.${BM.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},"primary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${BM.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${BM.disabled}`]:{color:(e.vars||e).palette.text.disabled}},"secondary"===t.textColor&&{color:(e.vars||e).palette.text.secondary,[`&.${BM.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${BM.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})));const WM=Ge.exports.createContext();Qh("MuiTable",["root","stickyHeader"]),tS("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ap({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Ap({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})));const HM=Ge.exports.createContext();function UM(e){return Yh("MuiTableCell",e)}Qh("MuiTableBody",["root"]),tS("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"});const VM=Qh("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),GM=["align","className","component","padding","scope","size","sortDirection","variant"],KM=tS("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${wh(n.size)}`],"normal"!==n.padding&&t[`padding${wh(n.padding)}`],"inherit"!==n.align&&t[`align${wh(n.align)}`],n.stickyHeader&&t.stickyHeader]}})((({theme:e,ownerState:t})=>Ap({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:`1px solid\n ${"light"===e.palette.mode?Vv(Hv(e.palette.divider,1),.88):Uv(Hv(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},"head"===t.variant&&{color:e.palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},"body"===t.variant&&{color:e.palette.text.primary},"footer"===t.variant&&{color:e.palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},"small"===t.size&&{padding:"6px 16px",[`&.${VM.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===t.padding&&{width:48,padding:"0 0 0 4px"},"none"===t.padding&&{padding:0},"left"===t.align&&{textAlign:"left"},"center"===t.align&&{textAlign:"center"},"right"===t.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===t.align&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:e.palette.background.default}))),XM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:a,padding:i,scope:l,size:s,sortDirection:c,variant:u}=n,d=Dp(n,GM),p=Ge.exports.useContext(WM),f=Ge.exports.useContext(HM),m=f&&"head"===f.variant;let h;h=a||(m?"th":"td");let g=l;!g&&m&&(g="col");const v=u||f&&f.variant,b=Ap({},n,{align:r,component:h,padding:i||(p&&p.padding?p.padding:"normal"),size:s||(p&&p.size?p.size:"medium"),sortDirection:c,stickyHeader:"head"===v&&p&&p.stickyHeader,variant:v}),y=(e=>{const{classes:t,variant:n,align:r,padding:o,size:a,stickyHeader:i}=e;return Gh({root:["root",n,i&&"stickyHeader","inherit"!==r&&`align${wh(r)}`,"normal"!==o&&`padding${wh(o)}`,`size${wh(a)}`]},UM,t)})(b);let x=null;return c&&(x="asc"===c?"ascending":"descending"),ih.exports.jsx(KM,Ap({as:h,ref:t,className:uv(y.root,o),"aria-sort":x,scope:g,ownerState:b},d))}));function ZM(e){return Yh("MuiToolbar",e)}Qh("MuiTableContainer",["root"]),tS("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),Qh("MuiTableFooter",["root"]),tS("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),Qh("MuiTableHead",["root"]),tS("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),Qh("MuiToolbar",["root","gutters","regular","dense"]);const YM=["className","component","disableGutters","variant"],QM=tS("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((({theme:e,ownerState:t})=>Ap({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},"dense"===t.variant&&{minHeight:48})),(({theme:e,ownerState:t})=>"regular"===t.variant&&e.mixins.toolbar)),JM=Ge.exports.forwardRef((function(e,t){const n=Qx({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:a=!1,variant:i="regular"}=n,l=Dp(n,YM),s=Ap({},n,{component:o,disableGutters:a,variant:i}),c=(e=>{const{classes:t,disableGutters:n,variant:r}=e;return Gh({root:["root",!n&&"gutters",r]},ZM,t)})(s);return ih.exports.jsx(QM,Ap({as:o,className:uv(c.root,r),ref:t,ownerState:s},l))}));dC(ih.exports.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),dC(ih.exports.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");const eI=Qh("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);tS(XM,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),tS(JM,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>Ap({[`& .${eI.actions}`]:t.actions},t.toolbar)})((({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${eI.actions}`]:{flexShrink:0,marginLeft:20}}))),tS("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),tS("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((({theme:e})=>Ap({},e.typography.body2,{flexShrink:0}))),tS(rM,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>Ap({[`& .${eI.selectIcon}`]:t.selectIcon,[`& .${eI.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${eI.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),tS(tO,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),tS("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((({theme:e})=>Ap({},e.typography.body2,{flexShrink:0})));const tI=Qh("MuiTableRow",["root","selected","hover","head","footer"]);tS("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})((({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${tI.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${tI.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hv(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}}))),dC(ih.exports.jsx("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");const nI=Qh("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);tS(ow,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.active&&t.active]}})((({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${nI.icon}`]:{opacity:.5}},[`&.${nI.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${nI.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),tS("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,t[`iconDirection${wh(n.direction)}`]]}})((({theme:e,ownerState:t})=>Ap({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none"},"desc"===t.direction&&{transform:"rotate(0deg)"},"asc"===t.direction&&{transform:"rotate(180deg)"})));const rI=["onChange"],oI={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};const aI=Qh("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);tS(ow,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})((({ownerState:e})=>Ap({width:40,flexShrink:0,opacity:.8,[`&.${aI.disabled}`]:{opacity:0}},"vertical"===e.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})));const iI=Qh("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);tS("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${iI.scrollButtons}`]:t.scrollButtons},{[`& .${iI.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})((({ownerState:e,theme:t})=>Ap({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${iI.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}}))),tS("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})((({ownerState:e})=>Ap({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"}))),tS("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})((({ownerState:e})=>Ap({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"}))),tS("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})((({ownerState:e,theme:t})=>Ap({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},"primary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.primary.main},"secondary"===e.indicatorColor&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0}))),tS((function(e){const{onChange:t}=e,n=Dp(e,rI),r=Ge.exports.useRef(),o=Ge.exports.useRef(null),a=()=>{r.current=o.current.offsetHeight-o.current.clientHeight};return Ge.exports.useEffect((()=>{const e=kh((()=>{const e=r.current;a(),e!==r.current&&t(r.current)})),n=Lh(o.current);return n.addEventListener("resize",e),()=>{e.clear(),n.removeEventListener("resize",e)}}),[t]),Ge.exports.useEffect((()=>{a(),t(r.current)}),[t]),ih.exports.jsx("div",Ap({style:oI,ref:o},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Qh("MuiTextField",["root"]),tS(FE,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({});const lI=Qh("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]);tS(ow,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${wh(n.size)}`]]}})((({theme:e,ownerState:t})=>{let n,r="standard"===t.color?e.palette.text.primary:e.palette[t.color].main;return e.vars&&(r="standard"===t.color?e.vars.palette.text.primary:e.vars.palette[t.color].main,n="standard"===t.color?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),Ap({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${lI.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Hv(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lI.selected}`]:{color:r,backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:Hv(r,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${n} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Hv(r,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${n} / ${e.vars.palette.action.selectedOpacity})`:Hv(r,e.palette.action.selectedOpacity)}}}},"small"===t.size&&{padding:7,fontSize:e.typography.pxToRem(13)},"large"===t.size&&{padding:15,fontSize:e.typography.pxToRem(15)})}));const sI=Qh("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical"]);function cI(){const[e,t]=Ge.exports.useState(),[n,r]=Ge.exports.useState(),o=Ge.exports.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 Ge.exports.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 uI(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function dI(e){let{size:t,style:n={},viewBox:r="0 0 16 16",shapes:a=[]}=e;const l=o({fontSize:uI(t),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},n);return Ot.createElement("i",{style:l},Ot.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:r,fill:"currentColor"},a.map(((e,t)=>{let{type:n,attrs:r}=e;return Ot.createElement(n,i({key:t},r))}))))}tS("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sI.grouped}`]:t.grouped},{[`& .${sI.grouped}`]:t[`grouped${wh(n.orientation)}`]},t.root,"vertical"===n.orientation&&t.vertical,n.fullWidth&&t.fullWidth]}})((({ownerState:e,theme:t})=>Ap({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"vertical"===e.orientation&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${sI.grouped}`]:Ap({},"horizontal"===e.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${sI.selected} + .${sI.grouped}.${sI.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${sI.selected} + .${sI.grouped}.${sI.selected}`]:{borderTop:0,marginTop:0}})})));var pI=e=>dI((e=>o(o({},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 fI=e=>dI((e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M13,7 L8,7 L13,7 L13,4.98151367 C13,2.23029964 10.7614237,0 8,0 C5.23857625,0 3,2.23029964 3,4.98151367 L3,7 L3.75,7 L3,7 L4.5,7 L4.5,5.33193359 C4.5,3.21561511 5.54860291,1.5 8,1.5 C10.4513971,1.5 11.5,3.21561511 11.5,5.33193359 L11.5,7 L12.25,7 L3,7 C2.44771525,7 2,7.44771525 2,8 L2,15 C2,15.5522847 2.44771525,16 3,16 L13,16 C13.5522847,16 14,15.5522847 14,15 L14,8 C14,7.44771525 13.5522847,7 13,7 L3,7 L13,7 Z"}}]}))(e));var mI=e=>dI((e=>o(o({},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)),hI=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function gI(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||hI(r)&&hI(o)))return!1;var r,o;return!0}function vI(e,t){var n;void 0===t&&(t=gI);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 bI="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function yI(e){cancelAnimationFrame(e.id)}var xI=null;function SI(e){if(void 0===e&&(e=!1),null===xI||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?xI="positive-descending":(t.scrollLeft=1,xI=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),xI}return xI}var wI=function(e,t){return e};function CI(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,RS(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:RS(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=vI((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=vI((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,m="rtl"===i,h=f?d:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=vI((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(SI()){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&&yI(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=function(e,t){var n=bI(),r={id:requestAnimationFrame((function o(){bI()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}pS(t,e),t.getDerivedStateFromProps=function(e,t){return kI(e,t),u(e),null};var d=t.prototype;return d.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props.itemCount,r=this.state.scrollOffset;e=Math.max(0,Math.min(e,n-1)),this.scrollTo(a(this.props,e,t,r,this._instanceProps))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var a=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(SI()){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()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&yI(this._resetIsScrollingTimeoutId)},d.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,d=e.itemKey,p=void 0===d?wI:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,v=e.useIsScrolling,b=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],k=w[1],E=[];if(c>0)for(var R=C;R<=k;R++)E.push(Ge.exports.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:v?y:void 0,style:this._getItemStyle(R)}));var L=r(this.props,this._instanceProps);return Ge.exports.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Ap({position:"relative",height:a,width:b,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Ge.exports.createElement(l||s||"div",{children:E,ref:i,style:{height:x?"100%":L,pointerEvents:y?"none":void 0,width:x?L:"100%"}}))},d._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var a=this.state,i=a.scrollDirection,l=a.scrollOffset,s=a.scrollUpdateWasRequested;this._callOnScroll(i,l,s)}},d._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}(Ge.exports.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var kI=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},EI=CI({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){var o=e.direction,a=e.height,i=e.itemCount,l=e.itemSize,s=e.layout,c=e.width,u="horizontal"===o||"horizontal"===s?c:a,d=Math.max(0,i*l-u),p=Math.min(d,t*l),f=Math.max(0,t*l-u+l);switch("smart"===n&&(n=r>=f-u&&r<=p+u?"auto":"center"),n){case"start":return p;case"end":return f;case"center":var m=Math.round(f+(p-f)/2);return m<Math.ceil(u/2)?0:m>d+Math.floor(u/2)?d:m;default:return r>=f&&r<=p?r:r<f?f:p}},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}});var RI=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},LI=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}}(),OI=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},MI=function(e){function t(){var e,n,r;RI(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=OI(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},OI(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),LI(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}(Ge.exports.PureComponent);const II=["S","XS"],TI=e=>e.reduce(((e,t)=>e.concat(t)));function PI(e){return II.includes(e)}function zI(e){return Array.isArray(e)?Array.from(new Set(e)):void 0}async function NI(e){let{selections:t,elemNumbers:n,isSingleSelect:r=!1}=e,o=Promise.resolve(!1);if(!n.some((e=>Number.isNaN(e)))){const e=n;o=t.select({method:"selectListObjectValues",params:["/qListObjectDef",e,!r]}).then((e=>!1!==e)).catch((()=>!1))}return o}function _I(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)}function AI(e){let{layout:t,selections:n,pages:r=[],checkboxes:a=!1,selectDisabled:i,doc:l=document,isSingleSelect:s=!1}=e;const[c,u]=Ge.exports.useState(r),[d,p]=Ge.exports.useState(!1),[f,m]=Ge.exports.useState(!1),[h,g]=Ge.exports.useState(s),[v,b]=Ge.exports.useState([]),[y,x]=Ge.exports.useState(!1),[S,w]=Ge.exports.useState([]),C=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 TI(t)}(r);Ge.exports.useEffect((()=>{g(s)}),[s]);const k=async function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i())return;m(!0);const r=t?e.filter((e=>!v.includes(e))):e;await NI({selections:n,elemNumbers:r,isSingleSelect:h}),m(!1),w([])},E=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];i()||w((n=>{const r=zI([...n,...e]),o=t?r.filter((e=>!v.includes(e))):r;return t?_I(r,C):o}))},R=e=>{(e.ctrlKey||e.metaKey)&&(g(!0),e.currentTarget.focus(),e.preventDefault())},L=Ge.exports.useCallback((e=>{if(f||i())return;const t=+e.currentTarget.getAttribute("data-n");w([t]),R(e)}),[f,i]),O=Ge.exports.useCallback((e=>{if(f||i())return;x(!1),p(!0);const t=+e.currentTarget.getAttribute("data-n");w([t]),R(e)}),[f,i]),M=Ge.exports.useCallback((e=>{const t=+e.currentTarget.getAttribute("data-n");h||!d||f||1===S.length&&S[0]===t||E([t])}),[d,f,S,v,y,i]),I=Ge.exports.useCallback((()=>{p(!1),m(!1),x(!1),g(s)}),[s]),T=Ge.exports.useCallback((e=>{if(h||!d||f||i())return;x(!0);const t=+e.currentTarget.getAttribute("data-n");E([t],!0)}),[d,f,y,S,v,i,t&&t.qListObject.qDimensionInfo.qIsOneAndOnlyOne]);Ge.exports.useEffect((()=>{const e=!d;S&&S.length&&!f&&e&&t&&k(S,y)}),[S,d,i()]),Ge.exports.useEffect((()=>(l.addEventListener("mouseup",I),()=>{l.removeEventListener("mouseup",I)})),[I]),Ge.exports.useEffect((()=>{if(f||d)return;const e=function(e){if(!e||!e.length)return[];const t=e.map((e=>{const t=e.qMatrix.map((e=>{const[t]=e;return!!PI(t.qState)&&t.qElemNumber}));return t.filter((e=>!1!==e))}));return TI(t)}(r);b(e)}),[r]),Ge.exports.useEffect((()=>{if(f||!r||!a&&!d)return;const e=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const r=e=>t.length<=1&&PI(e)?"A":"S",a=e.map((e=>{const a=e.qMatrix.map((e=>{const[a]=e,i=t.includes(a.qElemNumber);let l;return l=n?i?"S":"A":i?r(a.qState):a.qState,[o(o({},a),{},{qState:l}),e.slice(1)]}));return o(o({},e),{},{qMatrix:a})}));return a}(r,S,h);u(e)}),[S]);const P={};return a?Object.assign(P,{onClick:L}):Object.assign(P,{onMouseUp:M,onMouseDown:O,onMouseEnter:T}),{instantPages:c,interactionEvents:P,select:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];x(!1),p(!0),E(e,t||y);const n=k(e,t||y);return p(!1),n}}}const DI=e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var $I=e=>dI(DI(e));const qI="ListBoxCheckbox",jI={cbIcon:"".concat(qI,"-cbIcon"),cbIconChecked:"".concat(qI,"-cbIconChecked"),cbIconExcluded:"".concat(qI,"-cbIconExcluded"),cbIconAlternative:"".concat(qI,"-cbIconAlternative"),checkbox:"".concat(qI,"-checkbox"),dense:"".concat(qI,"-dense")},FI=tS(tE)((e=>{let{theme:t}=e;return{["& .".concat(jI.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(jI.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(jI.cbIconExcluded)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.excluded},["& .".concat(jI.cbIconAlternative)]:{borderRadius:2,width:12,height:12,backgroundColor:t.palette.selected.alternative},["&.".concat(jI.checkbox)]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},["&.".concat(jI.dense)]:{padding:"4px 8px"}}})),BI=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return Ot.createElement("span",{className:e.cbIcon},n&&Ot.createElement("span",{className:t&&n?e.cbIconExcluded:""}))};function WI(e){let{checked:t,label:n,dense:r,excluded:o,showGray:a=!0}=e;return Ot.createElement(FI,{edge:"start",checked:t,disableRipple:!0,className:[jI.checkbox,r&&jI.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n},name:n,icon:BI(jI,a,o),checkedIcon:Ot.createElement("span",{className:jI.cbIconChecked})})}const HI="ListBoxRadioButton",UI={denseRadioButton:"".concat(HI,"-denseRadioButton"),radioButton:"".concat(HI,"-radioButton")},VI=tS($O)((()=>({["&.".concat(UI.radioButton)]:{right:"5px"}})));function GI(e){let{checked:t,label:n,dense:r}=e;return Ot.createElement(VI,{checked:t,value:n,name:n,className:UI.radioButton,style:{backgroundColor:"transparent"},disableRipple:!0,size:r?"small":"medium",sx:r&&{padding:"0px 0px 0px 12px"}})}const KI=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===KI.ARROW_UP||e===KI.ARROW_DOWN||e===KI.ARROW_LEFT||e===KI.ARROW_RIGHT});function XI(e){let{setKeyboardActive:t}=e;return e=>{const{keyCode:n}=e.nativeEvent;switch(n){case KI.ENTER:case KI.SPACE:(e=>{const n=e.querySelector(".search input, .value.selector, .value");t(!0),n&&n.focus()})(e.currentTarget);break;case KI.ESCAPE:r=e.currentTarget,t(!1),r.focus();break;default:return}var r;e.preventDefault()}}const ZI="RowColumn",YI={row:"".concat(ZI,"-row"),rowBorderBottom:"".concat(ZI,"-rowBorderBottom"),column:"".concat(ZI,"-column"),fieldRoot:"".concat(ZI,"-fieldRoot"),cell:"".concat(ZI,"-cell"),labelText:"".concat(ZI,"-labelText"),labelDense:"".concat(ZI,"-labelDense"),highlighted:"".concat(ZI,"-highlighted"),checkboxLabel:"".concat(ZI,"-checkboxLabel"),icon:"".concat(ZI,"-icon"),S:"".concat(ZI,"-S"),XS:"".concat(ZI,"-XS"),A:"".concat(ZI,"-A"),X:"".concat(ZI,"-X"),frequencyCount:"".concat(ZI,"-frequencyCount"),barContainer:"".concat(ZI,"-barContainer"),bar:"".concat(ZI,"-bar"),barSelected:"".concat(ZI,"-barSelected"),barWithCheckbox:"".concat(ZI,"-barWithCheckbox"),barSelectedWithCheckbox:"".concat(ZI,"-barSelectedWithCheckbox"),excludedTextWithCheckbox:"".concat(ZI,"-excludedTextWithCheckbox")},QI={width:"100%",overflow:"hidden",textOverflow:"ellipsis"},JI=e=>{let{theme:t}=e;return{background:t.palette.selected.main,color:t.palette.selected.mainContrastText,"&:focus":{boxShadow:"inset 0 0 0 2px rgba(0, 0, 0, 0.3)",outline:"none"},"& $cell":{paddingRight:0}}},eT=tS("div")((e=>{let{theme:t}=e;return{["& .".concat(YI.row)]:{flexWrap:"nowrap",color:t.palette.text.primary},["& .".concat(YI.rowBorderBottom)]:{borderBottom:"1px solid ".concat(t.palette.divider)},["& .".concat(YI.column)]:{flexWrap:"nowrap",borderRight:"1px solid ".concat(t.palette.divider),color:t.palette.text.primary},["& .".concat(YI.fieldRoot)]:{"&:focus":{boxShadow:"inset 0 0 0 2px ".concat(t.palette.custom.focusBorder," !important")},"&:focus-visible":{outline:"none"}},["& .".concat(YI.cell)]:{display:"flex",alignItems:"center",minWidth:0,flexGrow:1,paddingLeft:"9px",paddingRight:"9px"},["& .".concat(YI.labelText)]:o({flexBasis:"max-content",lineHeight:"16px",userSelect:"none",whiteSpace:"pre"},QI),["& .".concat(YI.labelDense)]:{fontSize:12},["& .".concat(YI.highlighted)]:{overflow:"visible",width:"100%","& > span":{width:"100%",backgroundColor:"#FFC72A"}},["& .".concat(YI.checkboxLabel)]:{margin:0,width:"100%",height:"100%","& > span:nth-child(1)":{paddingRight:"8px"},"& > span:nth-child(2)":o(o({},QI),{},{display:"flex",alignItems:"center",paddingLeft:0})},["& .".concat(YI.icon)]:{display:"flex",padding:t.spacing(1,1,1,0)},["& .".concat(YI.S)]:o({},JI({theme:t})),["& .".concat(YI.XS)]:o(o({},JI({theme:t})),{},{background:t.palette.selected.excluded,color:t.palette.selected.mainContrastText}),["& .".concat(YI.A)]:{background:t.palette.selected.alternative,color:t.palette.selected.alternativeContrastText},["& .".concat(YI.X)]:{background:t.palette.selected.excluded,color:t.palette.selected.excludedContrastText},["& .".concat(YI.frequencyCount)]:{paddingLeft:"8px",paddingRight:"8px"},["&.".concat(YI.barContainer)]:{height:"100%",display:"inline-block"},["& .".concat(YI.bar)]:{border:"".concat(1,"px solid"),borderColor:"#D9D9D9",height:"16px",position:"absolute",zIndex:"-1",alignSelf:"center",left:"".concat(4,"px"),transition:"width 0.2s",backgroundColor:"#FAFAFA"},["& .".concat(YI.barSelected)]:{opacity:"30%",zIndex:"0",background:t.palette.background.lighter},["& .".concat(YI.barWithCheckbox)]:{left:"".concat(29,"px")},["& .".concat(YI.barSelectedWithCheckbox)]:{background:"#BFE5D0",borderColor:"#BFE5D0"},["& .".concat(YI.excludedTextWithCheckbox)]:{color:"#828282",fontStyle:"italic"}}}));function tT(e){let{index:t,style:n,data:r}=e;const{onClick:o,onMouseDown:a,onMouseUp:i,onMouseEnter:l,pages:s,isLocked:c,column:u=!1,checkboxes:d=!1,dense:p=!1,frequencyMode:f="N",isSingleSelect:m,actions:h,frequencyMax:g="",histogram:v=!1,keyboard:b,showGray:y=!0}=r,x=Ge.exports.useCallback(function(e){let{select:t,confirm:n,cancel:r}=e;const o=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 a=!1;const i=e=>{a=e};return e=>{let l;const{keyCode:s,shiftKey:c=!1}=e.nativeEvent;switch(s){case KI.SHIFT:i(!0);break;case KI.SPACE:t([+e.currentTarget.getAttribute("data-n")]);break;case KI.ARROW_DOWN:case KI.ARROW_RIGHT:l=o(e.currentTarget,!0),c&&l&&(a&&(t([+e.currentTarget.getAttribute("data-n")],!0),i(!1)),t([+l.getAttribute("data-n")],!0));break;case KI.ARROW_UP:case KI.ARROW_LEFT:l=o(e.currentTarget,!1),c&&l&&(a&&(t([+e.currentTarget.getAttribute("data-n")],!0),i(!1)),t([+l.getAttribute("data-n")],!0));break;case KI.ENTER:n();break;case KI.ESCAPE:return void r();default:return}l&&l.focus(),e.preventDefault(),e.stopPropagation()}}(h),[h]),[S,w]=Ge.exports.useState(!1),[C,k]=Ge.exports.useState(),[E,R]=Ge.exports.useState([]);Ge.exports.useEffect((()=>{if(!s)return;let e;const n=s.filter((e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight))[0];if(n){const r=n.qArea;t>=r.qTop&&t<r.qTop+r.qHeight&&([e]=n.qMatrix[t-r.qTop])}k(e)}),[s]);const L=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,O=e=>e?"A"===e.qState:null;Ge.exports.useEffect((()=>{if(!C)return;const e="S"===C.qState||"XS"===C.qState||"L"===C.qState;w(e);const t=[u?YI.column:YI.row];v&&p||t.push(YI.rowBorderBottom),d||("XS"===C.qState?t.push(y?YI.XS:YI.S):"S"===C.qState||"L"===C.qState?t.push(YI.S):y&&O(C)?t.push(YI.A):y&&L(C)&&t.push(YI.X)),R(t)}),[C&&C.qState]);const M=e=>e.filter((e=>!!e)).join(" ").trim(),I=()=>(O(C)||L(C))&&d,T=e=>{let{lbl:t,ix:n,color:r,highlighted:o=!1}=e;return Ot.createElement(zC,{component:"span",variant:"body2",key:n,className:M([YI.labelText,o&&YI.highlighted,p&&YI.labelDense,y&&I()&&YI.excludedTextWithCheckbox]),color:r},Ot.createElement("span",{style:{whiteSpace:"pre"}},t))},P=e=>{let{lbl:t,color:n,qElemNumber:r}=e;const o=Ot.createElement(WI,{label:t,checked:S,dense:p,excluded:L(C),showGray:y}),a=Ot.createElement(GI,{label:t,checked:S,dense:p}),i="string"==typeof t?T({lbl:t,color:n,highlighted:!1}):t;return Ot.createElement(VE,{color:n,control:m?a:o,className:YI.checkboxLabel,label:i,key:r})},z=C?C.qText:"",N=()=>C?C.qFrequency?C.qFrequency:"0":"",_=C&&C.qHighlightRanges&&C.qHighlightRanges.qRanges.sort(((e,t)=>e.qCharPos-t.qCharPos))||[],A=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}(z,_),D=d?P:T,$={alignItems:"center",display:"flex"},q=S&&c,j=!d&&S&&!c,F={display:"flex",alignItems:"center",minWidth:0,flexGrow:1,padding:d?0:void 0},B=0===t;return Ot.createElement(eT,{className:YI.barContainer},Ot.createElement(sR,{container:!0,gap:0,className:M(["value",...E]),classes:{root:YI.fieldRoot},style:n,onClick:o,onMouseDown:a,onMouseUp:i,onMouseEnter:l,onKeyDown:x,onContextMenu:e=>{d&&o(e),e.preventDefault()},role:u?"column":"row",tabIndex:!B||b.enabled&&!b.active?-1:0,"data-n":C&&C.qElemNumber},C&&v&&"0"!==N()&&Ot.createElement("div",{className:M([YI.bar,d&&YI.barWithCheckbox,S&&(d?YI.barSelectedWithCheckbox:YI.barSelected)]),style:{width:(e=>{const t=String(e),n="%"===t.substring(t.length-1),r=parseFloat(n?t:e),o=d?"(".concat(29,"px + ").concat(6,"px)"):"".concat(10,"px");return"calc(".concat(n?r:r/g*100,"% - ").concat(o,")")})(C.qFrequency)}}),Ot.createElement(sR,{item:!0,style:F,className:M([YI.cell,YI.selectedCell]),title:"".concat(z)},0===_.length?D({lbl:z,color:"inherit"}):(e=>{let{lbls:t}=e;const n=t.map(((e,t)=>{let[n,r]=e;return T({ix:t,highlighted:r,lbl:n})}));return d?P({lbl:n}):n})({lbls:A})),"N"!==f&&Ot.createElement(sR,{item:!0,style:{display:"flex",alignItems:"center"},className:YI.frequencyCount},Ot.createElement(zC,{noWrap:!0,color:"inherit",variant:"body2",className:M([p&&YI.labelDense,YI.labelText,y&&I()&&YI.excludedTextWithCheckbox])},N())),(q||j)&&Ot.createElement(sR,{item:!0,className:YI.icon},q&&Ot.createElement(fI,{style:$,size:"small"}),j&&Ot.createElement($I,{style:$,size:"small"}))))}const nT="#BBB",rT="#f1f1f1",oT={styledScrollbars:"".concat("ListBox","-styledScrollbars")},aT=tS(MI)((()=>({["& .".concat(oT.styledScrollbars)]:{scrollbarColor:"".concat(nT," ").concat(rT),"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:rT},"&::-webkit-scrollbar-thumb":{backgroundColor:nT,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}}})));function iT(e){let{model:t,selections:n,direction:r,height:a,width:i,listLayout:l="vertical",frequencyMode:s="N",histogram:c=!1,checkboxes:u=!1,update:d,fetchStart:p,postProcessPages:f,calculatePagesHeight:m=!1,dense:h=!1,keyboard:g={},showGray:v=!0,scrollState:b,sortByState:y,selectDisabled:x=(()=>!1),setCount:S}=e;const[w]=Hw(t),C=!(!w||!w.qListObject.qDimensionInfo.qIsOneAndOnlyOne),[k,E]=Ge.exports.useState(null),[R,L]=Ge.exports.useState(!1),{instantPages:O=[],interactionEvents:M,select:I}=AI({layout:w,selections:n,pages:k,checkboxes:u,selectDisabled:x,doc:document,isSingleSelect:C}),T=Ge.exports.useRef(null),P=Ge.exports.useRef({queue:[],validPages:!1}),z=Ge.exports.useRef({pages:[]}),N=Ge.exports.useCallback((e=>{if(!k||!P.current.validPages)return!1;P.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=k.filter((e=>t(e)))[0];return n&&t(n)}),[w,k]),_=Ge.exports.useCallback(((e,n)=>{P.current.queue.push({start:e,stop:n});!!T.current&&T.current._listRef.state.isScrolling;return P.current.queue.length>10&&P.current.queue.shift(),clearTimeout(P.current.timeout),L(!0),new Promise((e=>{P.current.timeout=setTimeout((()=>{const n=P.current.queue.slice(-2).sort(((e,t)=>e.start-t.start)),r=t.getListObjectData("/qListObjectDef",n.map((e=>({qTop:e.start,qHeight:e.stop-e.start+1,qLeft:0,qWidth:1})))).then((t=>{const n=f?f(t):t;P.current.validPages=!0,z.current.pages=n,E(n),L(!1),e()}));p&&p(r)}),0)}))}),[w]),A=()=>{if(P.current.queue=[],P.current.validPages=!1,T.current){if(T.current.resetloadMoreItemsCache(!0),w&&w.qSelectionInfo.qInSelections||0===y)return;T.current._listRef.scrollToItem(0)}};d&&d.call(null,A),Ge.exports.useEffect((()=>{A(),"function"==typeof S&&w&&S(w.qListObject.qSize.qcy)}),[w]),Ge.exports.useEffect((()=>{O&&!R&&E(O)}),[O]);const[D,$]=Ge.exports.useState(!1);if(Ge.exports.useEffect((()=>{b&&!D&&T.current&&(T.current._listRef.scrollToItem(b.initScrollPos),$(!0))}),[T.current]),!w)return null;const q="horizontal"!==l,j=w.qListObject.qSize.qcy,F=k&&k.length&&m?(e=>{const t=e.some((e=>e.qArea.qHeight<100)),n=Math.max(...e.map((e=>e.qArea.qTop+e.qArea.qHeight)));return t?n:j})(k):j,{itemSize:B,listHeight:W}=function(e){let{isVertical:t,checkboxes:n,dense:r,height:o}=e,a=n?40:33;r&&(a=20);const i=t?a:200;return{itemSize:i,listHeight:o||8*i}}({isVertical:q,checkboxes:u,dense:h,height:a}),H=w&&w.qListObject.qDimensionInfo.qLocked,{frequencyMax:U}=w;return Ot.createElement(aT,{isItemLoaded:N,itemCount:j,loadMoreItems:_,threshold:0,minimumBatchSize:100,ref:T},(e=>{let{onItemsRendered:t,ref:a}=e;return P.current.listRef=a,Ot.createElement(EI,{direction:r,"data-testid":"fixed-size-list",useIsScrolling:!0,style:{},height:W,width:i,itemCount:F,layout:l,className:oT.styledScrollbars,itemData:o(o({isLocked:H,column:!q,pages:k},H||x()?{}:M),{},{checkboxes:u,dense:h,frequencyMode:s,isSingleSelect:C,actions:{select:I,confirm:()=>n&&n.confirm.call(n),cancel:()=>n&&n.cancel.call(n)},frequencyMax:U,histogram:c,keyboard:g,showGray:v}),itemSize:B,onItemsRendered:e=>{b&&b.setScrollPos(e.visibleStopIndex),t(o({},e))},ref:a},tT)}))}const lT=e=>o(o({},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"}}]}),sT=e=>o(o({},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"}}]}),cT=e=>o(o({},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"}}]}),uT=e=>o(o({},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 dT=e=>{let{layout:t,model:n,translator:r}=e;if(t.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];return[{key:"selectAll",type:"menu-icon-button",label:r.get("Selection.SelectAll"),getSvgIconShape:lT,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAll("/qListObjectDef")}},{key:"selectPossible",type:"menu-icon-button",label:r.get("Selection.SelectPossible"),getSvgIconShape:cT,enabled:()=>["qOption"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectPossible("/qListObjectDef")}},{key:"selectAlternative",type:"menu-icon-button",label:r.get("Selection.SelectAlternative"),getSvgIconShape:sT,enabled:()=>["qAlternative"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectAlternative("/qListObjectDef")}},{key:"selectExcluded",type:"menu-icon-button",label:r.get("Selection.SelectExcluded"),getSvgIconShape:uT,enabled:()=>["qAlternative","qExcluded"].some((e=>t.qListObject.qDimensionInfo.qStateCounts[e]>0)),action:()=>{n.selectListObjectExcluded("/qListObjectDef")}}]};const pT=e=>o(o({},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 fT(e){const t=Yx(),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 mT="njs-cell-action",hT=Ot.forwardRef(((e,t)=>{let{item:n,addAnchor:r=!1}=e;const o=Yx(),{hidden:a,disabled:i,style:l,hasSvgIconShape:s}=fT(n);if(a)return null;const c=n.keyboardAction?e=>["Enter"," ","Spacebar"].includes(e.key)&&n.keyboardAction():null;return Ot.createElement(LC,{ref:r?null:t,title:n.label,onClick:n.action,onKeyDown:c,disabled:i,style:l,className:mT,size:"large"},s&&dI(n.getSvgIconShape()),r&&Ot.createElement("div",{ref:t,style:{bottom:-o.spacing(.5),right:0,position:"absolute",width:"100%",height:0}}))})),gT=e=>o(o({},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"}}]}),vT=e=>o(o({},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 bT=e=>dI(vT(e));const yT={icon:"".concat("More","-icon")},xT=tS(FL)((e=>{let{theme:t}=e;return{["& .".concat(yT.icon)]:{color:t.palette.text.primary}}}));function ST(e){let{item:t,onActionClick:n=(()=>{})}=e;const{hidden:r,disabled:o,hasSvgIconShape:a}=fT(t);return r?null:Ot.createElement(tO,{title:t.label,onClick:()=>{t.action(),n()},disabled:o},a&&Ot.createElement(kL,{className:yT.icon},dI(t.getSvgIconShape())),Ot.createElement(zC,{noWrap:!0},t.label))}const wT=Ot.forwardRef(((e,t)=>{let{actions:n=[],show:r=!0,alignTo:a,popoverProps:l={},popoverPaperStyle:s={},onCloseOrActionClick:c=(()=>{})}=e;return n.length>0&&Ot.createElement(xT,i({},l,{onClose:c,ref:t,open:r,anchorEl:a.current,getContentAnchorEl:null,container:a.current,disablePortal:!0,hideBackdrop:!0,style:{pointerEvents:"none"},transitionDuration:0,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{style:o({pointerEvents:"auto",maxWidth:"250px"},s)}}),Ot.createElement(TL,null,n.map(((e,t)=>Ot.createElement(ST,{key:t,item:e,onActionClick:c})))))})),CT="ActionsToolbar",kT={itemSpacing:"".concat(CT,"-itemSpacing"),firstItemSpacing:"".concat(CT,"-firstItemSpacing"),lastItemSpacing:"".concat(CT,"-lastItemSpacing")},ET=tS(FL)((e=>{let{theme:t}=e;return{["& .".concat(kT.itemSpacing)]:{padding:t.spacing(0,.5)},["& .".concat(kT.firstItemSpacing)]:{padding:t.spacing(0,.5,0,0)},["& .".concat(kT.lastItemSpacing)]:{padding:t.spacing(0,0,0,.5)}}})),RT="njs-action-toolbar-popover",LT=Ot.forwardRef(((e,t)=>{let{actions:n=[],first:r=!1,last:o=!1,addAnchor:a=!1}=e;return n.length>0?Ot.createElement(sR,{item:!0,container:!0,gap:0,wrap:"nowrap"},n.map(((e,i)=>{let l=[];const s=r&&0===i,c=o&&n.length-1===i;return s&&!c&&(l=[kT.firstItemSpacing]),c&&!s&&(l=[...l,kT.lastItemSpacing]),s||c||0!==l.length||(l=[kT.itemSpacing]),Ot.createElement(sR,{item:!0,key:e.key,className:l.join(" ").trim()},Ot.createElement(hT,{key:e.key,item:e,ref:0===i?t:null,addAnchor:a}))}))):null})),OT={pointerEvents:"none"},MT={vertical:"top",horizontal:"right"},IT={vertical:"bottom",horizontal:"right"};function TT(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}=Ge.exports.useContext(Rw);return[{key:"clear",type:"icon-button",label:a.get("Selection.Clear"),enabled:()=>t.canClear(),action:()=>t.clear(),getSvgIconShape:vT},{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:gT},{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:DI}]}(o),{translator:u,keyboardNavigation:d}=Ge.exports.useContext(Rw),[p,f]=Ge.exports.useState(!1),[m,h]=Ge.exports.useState(a.enabled),[g,v]=Ge.exports.useState(a.actions),[b,y]=Ge.exports.useState(a.alignTo),x=Ge.exports.useRef(),S=Ge.exports.useRef(),w=Yx(),C=Ge.exports.useMemo((()=>({margin:w.spacing(.5,0)}))),k=e=>{const t=S.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]};Ge.exports.useEffect((()=>()=>f(!1)),[i.show]),Ge.exports.useEffect((()=>{h(a.enabled)}),[a.enabled]),Ge.exports.useEffect((()=>{if(!l)return;l.on("focus_toolbar_first",(()=>{const e=k(!1);e&&e.focus()})),l.on("focus_toolbar_last",(()=>{const e=k(!0);e&&e.focus()}))}),[]);const E=Ge.exports.useMemo((()=>n.filter((e=>!e.hidden))),[n]);if(!o.show&&0===E.length)return null;const R={key:"more",label:u.get("Menu.More"),getSvgIconShape:pT,hidden:!1,enabled:()=>m,action:()=>f(!p)};if(E.length>r){const e=E.splice(-(E.length-r)-1);h(!0),v([...e,...a.actions]),y(x)}const L=d&&l&&l.refocusContent?e=>{if("Tab"!==e.key)return;(e.shiftKey&&k(!1)===e.target||!e.shiftKey&&k(!0)===e.target)&&(e.preventDefault(),e.stopPropagation(),l.refocusContent())}:null,O=E.length>0,M=g.length>0,I=O&&o.show||M&&o.show,T=Ot.createElement(sR,{ref:S,onKeyDown:L,container:!0,gap:0,wrap:"nowrap"},O&&Ot.createElement(LT,{actions:E,first:!0,last:!M&&!o.show}),M&&Ot.createElement(LT,{ref:x,actions:[R],first:!O,last:!o.show,addAnchor:!0}),I&&Ot.createElement(sR,{item:!0,className:kT.itemSpacing,style:C},Ot.createElement(LE,{orientation:"vertical"})),o.show&&Ot.createElement(LT,{actions:c,first:!O&&!M,last:!0}),p&&Ot.createElement(wT,{show:p,actions:g,alignTo:b,popoverProps:a.popoverProps,popoverPaperStyle:a.popoverPaperStyle,onCloseOrActionClick:()=>{f(!1)}}));return i.show?Ot.createElement(ET,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:i.show,anchorEl:i.anchorEl,anchorOrigin:MT,transformOrigin:IT,hideBackdrop:!0,style:OT,PaperProps:{className:RT,style:{pointerEvents:"auto",padding:w.spacing(1,1)}}},T):t&&T}var PT=e=>dI((e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M15.7873809,13.80959 C16.1870614,14.209868 15.9872212,15.1104934 15.4876205,15.5107714 C15.08794,15.9110493 14.1886588,16.2112578 13.7889782,15.8109798 L11.0911347,13.1091035 L10.9912145,12.5086866 L10.2917736,11.8082001 C9.19265216,12.5086866 7.89369045,13.0090341 6.49480859,13.0090341 C2.89768383,13.0090341 0,10.1070188 0,6.50451703 C0,2.90201529 2.89768383,0 6.49480859,0 C10.0919334,0 12.9896172,2.90201529 12.9896172,6.50451703 C12.9896172,7.90548992 12.4900165,9.20639333 11.7905756,10.3071577 L12.4900165,11.0076442 L13.0895373,11.1077137 L15.7873809,13.80959 Z M11.2909749,6.50451703 C11.2909749,5.20361362 10.7913743,4.00277971 9.89209309,3.00208478 C8.9928119,2.10145935 7.79377031,1.60111188 6.49480859,1.60111188 C5.19584688,1.60111188 3.99680529,2.10145935 2.99760397,3.00208478 C2.09832278,4.00277971 1.59872212,5.20361362 1.59872212,6.50451703 C1.59872212,7.80542043 2.09832278,9.00625434 2.99760397,9.90687978 C3.89688516,10.8075052 5.09592674,11.3078527 6.49480859,11.3078527 C7.79377031,11.4079222 8.9928119,10.9075747 9.89209309,9.90687978 C10.7913743,9.00625434 11.2909749,7.80542043 11.2909749,6.50451703 Z"}}]}))(e));const zT="/qListObjectDef";function NT(e){let{model:t,keyboard:n,dense:r=!1}=e;const{translator:o}=Ge.exports.useContext(Rw),[a,i]=Ge.exports.useState(""),l=Yx();return Ot.createElement(wO,{startAdornment:Ot.createElement(AR,{position:"start"},Ot.createElement(PT,{size:r?"small":"normal"})),className:"search",sx:[{border:"none",borderRadius:0,"& fieldset":{border:"1px solid ".concat(l.palette.divider),borderWidth:"1px 0 1px 0",borderRadius:0},"&:hover":{border:"none"}},r&&{fontSize:12,paddingLeft:l.spacing(1),"& input":{paddingTop:"5px",paddingBottom:"5px"}}],size:"small",fullWidth:!0,placeholder:o.get("Listbox.Search"),value:a,onChange:e=>{i(e.target.value),t.searchListObjectFor(zT,e.target.value)},onKeyDown:e=>{switch(e.key){case"Enter":break;case"Escape":t.abortListObjectSearch(zT)}},inputProps:{tabIndex:!n||n.enabled&&!n.active?-1:0}})}function _T(e){return Object.keys(h.prototype).forEach((t=>{e[t]=h.prototype[t]})),h.init(e),e}function AT(e,t){const[n]=oC(e),[r]=Hw(t),o=t?t.id:null,[a]=Qw(),[i]=eC(),l=a.get(e.id);let s=i.get(o);return Ge.exports.useEffect((()=>{n&&t&&!s&&(s=function(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 _T(l),l}({appSelections:n,appModal:l,model:t}),i.set(o,s),i.dispatch(!0))}),[n,t]),Ge.exports.useEffect((()=>{s&&s.setLayout(r)}),[s,r]),[s]}function DT(e){let{alignTo:t,show:n,close:r,app:o,fieldName:a,stateName:i="$"}=e;const l=n&&Boolean(t.current),s=Yx(),[c]=Vw({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:i,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],qFieldDefs:[a]}}},o,a,i),u=Ge.exports.useCallback((()=>{c.lock("/qListObjectDef")}),[c]),d=Ge.exports.useCallback((()=>{c.unlock("/qListObjectDef")}),[c]),{translator:p}=Ge.exports.useContext(Rw),f=Ge.exports.useRef(),[m]=AT(o,c),[h]=Hw(c);if(Ge.exports.useEffect((()=>{m&&l&&(m.isModal(c)||m.goModal("/qListObjectDef"))}),[m,l]),!c||!h||!p)return null;const g=!0===h.qListObject.qDimensionInfo.qLocked,v=(e,t)=>{const n="escapeKeyDown"!==t;m.noModal(n),r()},b=dT({layout:h,model:c,translator:p}),y=h.qListObject.qDimensionInfo.qStateCounts,x=y.qSelected+y.qSelectedExcluded+y.qLocked+y.qLockedExcluded>0;return Ot.createElement(FL,{open:l,onClose:v,anchorEl:t.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"250px"}}},Ot.createElement(sR,{container:!0,direction:"column",gap:0},Ot.createElement(sR,{item:!0,container:!0,style:{padding:s.spacing(1)}},Ot.createElement(sR,{item:!0},g?Ot.createElement(LC,{onClick:d,disabled:!g,size:"large"},Ot.createElement(fI,{title:p.get("Listbox.Unlock")})):Ot.createElement(LC,{onClick:u,disabled:!x,size:"large"},Ot.createElement(mI,{title:p.get("Listbox.Lock")}))),Ot.createElement(sR,{item:!0,xs:!0}),Ot.createElement(sR,{item:!0},Ot.createElement(TT,{more:{enabled:!g,actions:b,alignTo:f,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:m,onConfirm:v,onCancel:()=>v(0,"escapeKeyDown")}}))),Ot.createElement(sR,{item:!0,xs:!0},Ot.createElement("div",{ref:f}),Ot.createElement(NT,{model:c}),Ot.createElement(iT,{model:c,selections:m,direction:"ltr"}))))}function $T(e){let{field:t,api:n,stateIx:r=0,skipHandleShowListBoxPopover:o=!1,moreAlignTo:a=null,onClose:i=(()=>{})}=e;const{translator:l}=Ge.exports.useContext(Rw),s=a||Ge.exports.useRef(),c=Yx(),[u,d]=Ge.exports.useState(!1),p=e=>{e.currentTarget.contains(e.target)&&d(!u)},f=()=>{d(!1),i()},m=t.selections[r];void 0===m.qTotal&&(m.qTotal=0);const h=m.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},g=(h.qSelected+h.qLocked)/m.qTotal,v=h.qAlternative/m.qTotal,b=(h.qExcluded+h.qLockedExcluded+h.qSelectedExcluded)/m.qTotal,y=h.qSelected+h.qSelectedExcluded+h.qLocked+h.qLockedExcluded,x=0===y&&0===m.qTotal;let S="";m.qTotal===y&&m.qTotal>1?S=l.get("CurrentSelections.All"):y>1&&m.qTotal?S=l.get("CurrentSelections.Of",[y,m.qTotal]):m.qSelectedFieldSelectionInfo&&(S=m.qSelectedFieldSelectionInfo.map((e=>e.qName)).join(", ")),"$"!==t.states[r]&&(S="".concat(t.states[r],": ").concat(S));const w=[{color:c.palette.selected.main,ratio:g},{color:c.palette.selected.alternative,ratio:v},{color:c.palette.selected.excluded,ratio:b}];w.forEach(((e,t)=>{e.offset=t?w[t-1].offset+w[t-1].ratio:0}));let C=null,k=null,E=null,R=null;return a||(C=Ot.createElement(sR,{item:!0,xs:!0,style:{minWidth:0,flexGrow:1,opacity:m.qLocked?"0.3":""}},Ot.createElement(zC,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},m.qField),Ot.createElement(zC,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"}},S)),m.qLocked?k=Ot.createElement(sR,{item:!0},Ot.createElement(LC,{size:"large"},Ot.createElement(fI,null))):m.qOneAndOnlyOne||(k=Ot.createElement(sR,{item:!0},Ot.createElement(LC,{title:l.get("Selection.Clear"),onClick:e=>{e.stopPropagation(),n.clearField(m.qField,t.states[r])},size:"large"},Ot.createElement(pI,null)))),E=Ot.createElement("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"}},!1===x&&w.map((e=>Ot.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=Ot.createElement(sR,{container:!0,gap:1,ref:s,sx:{backgroundColor:c.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:c.palette.action.hover}},onClick:!1===o&&p||null},C,k,E,u&&Ot.createElement(DT,{alignTo:s,show:u,close:f,app:n.model,fieldName:m.qField,stateName:t.states[r]}))),a?Ot.createElement(DT,{alignTo:s,show:!0,close:f,app:n.model,fieldName:m.qField,stateName:t.states[r]}):R}var qT=e=>dI((e=>o(o({},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 jT={item:"".concat("MultiState","-item")},FT=tS(sR)((e=>{let{theme:t}=e;return{["&.".concat(jT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"}}}));function BT(e){let{field:t,api:n,moreAlignTo:r=null,onClose:o=(()=>{})}=e;const[a,i]=Ge.exports.useState(!!r),[l,s]=Ge.exports.useState(-1),[c,u]=Ge.exports.useState(r?r.current:null),d=r||Ge.exports.useRef(),{translator:p}=Ge.exports.useContext(Rw),f=p.get("Selection.ClearAllStates"),m=()=>{s(-1),o()};let h=null;r||(h=Ot.createElement(Ot.Fragment,null,Ot.createElement(sR,{item:!0,xs:!0,zeroMinWidth:!0},Ot.createElement(Pk,{style:{padding:"0px 8px"},color:"secondary",badgeContent:t.states.length},Ot.createElement(zC,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600}},t.name))),Ot.createElement(sR,{item:!0},Ot.createElement("div",{style:{width:"12px"}})),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{size:"large"},Ot.createElement(qT,null)))));const g=Ot.createElement(lL,{dense:!0},Ot.createElement(yL,{title:f,onClick:()=>{t.states.forEach((e=>n.clearField(t.name,e)))}},Ot.createElement(fw,{variant:"contained",fullWidth:!0},f)),t.states.map(((e,r)=>Ot.createElement(yL,{key:r,title:t.name,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),s(t)})(e,r)},Ot.createElement(Nk,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},Ot.createElement($T,{field:t,api:n,stateIx:r,skipHandleShowListBoxPopover:!0})))))),v=Ot.createElement(FL,{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"}}},g),b=r?v:Ot.createElement(FT,{container:!0,gap:0,className:jT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(u(e.currentTarget),d.current=e.currentTarget,i(!a))}},h,a&&v,l>-1&&Ot.createElement(DT,{alignTo:d,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}));return r&&l>-1?Ot.createElement(DT,{alignTo:d,show:l>-1,close:m,app:n.model,fieldName:t.selections[l].qField,stateName:t.states[l]}):b}const WT="More",HT={item:"".concat(WT,"-item"),badge:"".concat(WT,"-badge")},UT=tS(sR)((e=>{let{theme:t}=e;return{["&.".concat(HT.item)]:{backgroundColor:t.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:t.palette.action.hover},height:"100%",alignItems:"center"},["& .".concat(HT.badge)]:{padding:t.spacing(0,1)}}}));function VT(e){let{items:t=[],api:n}=e;const r=Yx(),[o,a]=Ge.exports.useState(!1),[i,l]=Ge.exports.useState(-1),[s,c]=Ge.exports.useState(null),u=Ge.exports.useRef(),d=()=>{l(-1)};let p=null;return i>-1&&(p=t[i].states.length>1?Ot.createElement(BT,{field:t[i],api:n,moreAlignTo:u,onClose:d}):Ot.createElement($T,{field:t[i],api:n,skipHandleShowListBoxPopover:!0,moreAlignTo:u,onClose:d})),Ot.createElement(UT,{container:!0,gap:0,className:HT.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,a(!o))}},Ot.createElement(sR,{item:!0},Ot.createElement(Nk,{borderRadius:r.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:r.palette.selected.main,color:r.palette.selected.mainContrastText}},Ot.createElement(zC,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit"},"+",t.length))),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{size:"large"},Ot.createElement(qT,null))),o&&Ot.createElement(FL,{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"}}},Ot.createElement(lL,{dense:!0},t.map(((e,t)=>Ot.createElement(yL,{key:t,title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),a(!1),l(t)})(e,t)},Ot.createElement(Nk,{border:1,width:"100%",borderRadius:1,borderColor:"divider"},e.states.length>1?Ot.createElement(BT,{field:e,api:n}):Ot.createElement($T,{field:e,api:n}))))))),p)}function GT(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 KT(e){let{api:t,app:n}=e;const r=Yx(),[o]=Kw(n),[a]=Hw(o),[i,l]=Ge.exports.useState({items:[],more:[]}),[s]=nC(),[c,u]=cI(),[d,p]=Ge.exports.useState(0);return Ge.exports.useEffect((()=>{if(!u)return;const{width:e}=u,t=Math.floor(e)-72,n=Math.floor(t/120);p(n)}),[u]),Ge.exports.useEffect((()=>{if(!(n&&o&&a&&d))return;const e=function(e){if(!e)return[];const t={};return e.qSelectionObject&>(e.qSelectionObject,t),e.alternateStates&&e.alternateStates.forEach((e=>GT(e.qSelectionObject,t,e.stateName))),Object.keys(t).map((e=>t[e]))}(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 d<r.length&&(o=r.splice(d-r.length)),{items:r,more:o}}))}),[n,o,a,t.isInModal(),d]),Ot.createElement(sR,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"}},i.items.map((e=>Ot.createElement(sR,{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?Ot.createElement(BT,{field:e,api:t}):Ot.createElement($T,{field:e,api:t})))),i.more.length>0&&Ot.createElement(sR,{item:!0,style:{position:"relative",maxWidth:"98px",minWidth:"".concat(72,"px"),background:r.palette.background.paper,borderRight:"1px solid ".concat(r.palette.divider)}},Ot.createElement(VT,{items:i.more,api:t})))}var XT=e=>dI((e=>o(o({},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 ZT=e=>dI((e=>o(o({},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 YT(e){let{api:t,app:n}=e;const{translator:r}=Ge.exports.useContext(Rw),[o]=Xw(n);return Ot.createElement(sR,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"}},Ot.createElement(sR,{item:!0},Ot.createElement(LC,{style:{marginRight:"8px"},disabled:!o||!o.canGoBack,title:r.get("Navigate.Back"),onClick:()=>t.back(),size:"large"},Ot.createElement(XT,null))),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{style:{marginRight:"8px"},disabled:!o||!o.canGoForward,title:r.get("Navigate.Forward"),onClick:()=>t.forward(),size:"large"},Ot.createElement(ZT,null))),Ot.createElement(sR,{item:!0},Ot.createElement(LC,{disabled:!o||!o.canClear,title:r.get("Selection.ClearAll"),onClick:()=>t.clear(),size:"large"},Ot.createElement(bT,null))))}function QT(e){let{app:t}=e;const n=Yx(),[r]=oC(t);return r?Ot.createElement(sR,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:n.palette.background.paper,minHeight:"40px"}},Ot.createElement(sR,{item:!0,style:{borderRight:"1px solid ".concat(n.palette.divider)}},Ot.createElement(YT,{api:r,app:t})),Ot.createElement(sR,{item:!0,xs:!0,style:{backgroundColor:n.palette.background.darker,overflow:"hidden"}},Ot.createElement(KT,{api:r,app:t}))):null}function JT(e){let{element:t,app:n}=e;return _p.createPortal(Ot.createElement(QT,{app:n}),t)}var eP=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},tP=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}}(),nP=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},rP=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},oP=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")},aP=void 0;aP="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;var iP=null,lP=null,sP=aP.clearTimeout,cP=aP.setTimeout,uP=aP.cancelAnimationFrame||aP.mozCancelAnimationFrame||aP.webkitCancelAnimationFrame,dP=aP.requestAnimationFrame||aP.mozRequestAnimationFrame||aP.webkitRequestAnimationFrame;function pP(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__&&iP(this.__resizeRAF__),this.__resizeRAF__=lP((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 m=0;m<d.length;m++)if(void 0!==f.style[d[m]+"AnimationName"]){u="-"+d[m].toLowerCase()+"-",r=p[m],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=aP.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==uP||null==dP?(iP=sP,lP=function(e){return cP(e,20)}):(iP=function(e){var t=oP(e,2),n=t[0],r=t[1];uP(n),sP(r)},lP=function(e){var t=dP((function(){sP(n),e()})),n=cP((function(){uP(t),e()}),20);return[t,n]});var fP=function(e){function t(){var e,n,r;eP(this,t);for(var o=arguments.length,a=Array(o),i=0;i<o;i++)a[i]=arguments[i];return n=r=rP(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},rP(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),tP(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=pP(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={},d=!1;return r||(0===l&&(d=!0),c.height=0,u.height=l),o||(0===s&&(d=!0),c.width=0,u.width=s),Ge.exports.createElement("div",{className:n,ref:this._setRef,style:nP({},c,a)},!d&&t(u))}}]),t}(Ge.exports.PureComponent);fP.defaultProps={onResize:function(){},disableHeight:!1,disableWidth:!1,style:{}};const mP={listBoxHeader:"".concat("ListBoxInline","-listBoxHeader")},hP=tS(sR)((()=>({["& .".concat(mP.listBoxHeader)]:{alignSelf:"center",display:"inline-flex"}})));function gP(e){let{app:t,fieldIdentifier:n,stateName:r="$",options:a={},fieldDef:i}=e;const{title:l,direction:s,listLayout:c,search:u=!0,focusSearch:d=!1,toolbar:p=!0,rangeSelect:f=!0,checkboxes:m=!1,properties:h={},sessionModel:g,selectionsApi:v,update:b,fetchStart:y,dense:x=!1,selectDisabled:S=(()=>!1),postProcessPages:w,calculatePagesHeight:C,showGray:k=!0,sortByState:E=1,scrollState:R,setCount:L,shouldConfirmOnBlur:O}=a;let{frequencyMode:M,histogram:I=!1}=a;switch(i&&i.failedToFetchFieldDef&&(I=!1,M="N"),!0){case["none","N","NX_FREQUENCY_NONE"].includes(M):M="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(M):M="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(M):M="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(M):M="R";break;default:M="N"}const T=o({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:r,qShowAlternatives:!0,qFrequencyMode:I&&"N"===M?"V":M,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:E,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},title:l},h);let P;if(n.qLibraryId?(T.qListObjectDef.qLibraryId=n.qLibraryId,P=n.qLibraryId):(T.qListObjectDef.qDef.qFieldDefs=[n],P=n),"N"!==M||I){const e=n.qLibraryId?i:P;T.frequencyMax={qValueExpression:"Max(AGGR(Count([".concat(e,"]), [").concat(e,"]))")}}let[z]=Vw(T,g?null:t,P,r);g&&(z=g);let N=AT(v?{}:t,z)[0];v&&(N=v);const _=Yx(),A=Ge.exports.useCallback((()=>{z.lock("/qListObjectDef")}),[z]),D=Ge.exports.useCallback((()=>{z.unlock("/qListObjectDef")}),[z]),{translator:$,keyboardNavigation:q}=Ge.exports.useContext(Rw),j=Ge.exports.useRef(),[F,B]=(()=>{const[e,t]=Ge.exports.useState({}),n=Ge.exports.useCallback((e=>{t({current:e})}),[t]);return[e,n]})(),[W]=Hw(z),[H,U]=Ge.exports.useState(!1),[V,G]=Ge.exports.useState(!1),[K,X]=Ge.exports.useState(!1),Z=XI({setKeyboardActive:X}),Y={enabled:q,active:K};Ge.exports.useEffect((()=>{const e=()=>U(!0),t=()=>U(!1);return N&&(N.isModal(z)||(N.on("deactivated",t),N.on("activated",e))),()=>{N&&(N.removeListener("deactivated",e),N.removeListener("activated",t))}}),[N]),Ge.exports.useEffect((()=>{N&&U(N.isActive())}),[N]);const Q=Ge.exports.useRef(null);if(function(e,t,n){const[r,o]=Ge.exports.useState(!1),a=Ge.exports.useRef(r),i=e=>{a.current=e,o(e)};Ge.exports.useEffect((()=>{if(!n)return;const r=n=>{const r=e.current&&e.current.contains(n.target),o=a.current;r||o?r&&i(!1):(t&&t.confirm.call(t),i(!0))};return document.addEventListener("mousedown",r),document.addEventListener("keydown",r),()=>{document.removeEventListener("mousedown",r),document.removeEventListener("keydown",r)}}),[e,t,n])}(Q,N,O),Ge.exports.useEffect((()=>{if(F&&F.current&&(u&&d||"toggle"===u&&V)){const e=F.current.querySelector("input");e&&e.focus()}}),[F&&F.current,V,u,d]),!z||!W||!$)return null;const J=!0===W.qListObject.qDimensionInfo.qLocked,ee=p?dT({layout:W,model:z,translator:$}):[],te=W.qListObject.qDimensionInfo.qStateCounts,ne=te.qSelected+te.qSelectedExcluded+te.qLocked+te.qLockedExcluded>0,re=(!0===u||"toggle"===u&&V)&&!S(),oe=49+(re?x?27:40:0)+(x?39:49),ae=()=>{G(!V)};return Ot.createElement(hP,{container:!0,tabIndex:Y.enabled&&!Y.active?0:-1,direction:"column",gap:0,style:{height:"100%",minHeight:"".concat(oe,"px")},onKeyDown:Z,ref:Q},p&&Ot.createElement(sR,{item:!0,container:!0,style:{padding:_.spacing(1)}},Ot.createElement(sR,{item:!0},J?Ot.createElement(LC,{tabIndex:-1,onClick:D,disabled:!J,size:"large"},Ot.createElement(fI,{title:$.get("Listbox.Unlock")})):"toggle"!==u||ne?Ot.createElement(LC,{onClick:A,tabIndex:-1,disabled:!ne,size:"large"},Ot.createElement(mI,null)):Ot.createElement(LC,{onClick:ae,tabIndex:-1,title:$.get("Listbox.Search"),size:"large"},Ot.createElement(PT,null))),Ot.createElement(sR,{item:!0,className:mP.listBoxHeader},Ot.createElement(zC,{variant:"h6",noWrap:!0},W.title||W.qListObject.qDimensionInfo.qFallbackTitle)),Ot.createElement(sR,{item:!0,xs:!0}),Ot.createElement(sR,{item:!0},Ot.createElement(TT,{more:{enabled:!J,actions:ee,alignTo:j,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:H,api:N,onConfirm:()=>{},onCancel:()=>{}}}))),re&&Ot.createElement(sR,{item:!0,ref:B},Ot.createElement(NT,{model:z,dense:x,keyboard:Y})),Ot.createElement(sR,{item:!0,xs:!0},Ot.createElement("div",{ref:j}),Ot.createElement(fP,null,(e=>{let{height:t,width:n}=e;return Ot.createElement(iT,{model:z,selections:N,direction:s,listLayout:c,frequencyMode:M,histogram:I,rangeSelect:f,checkboxes:m,height:t,width:n,update:b,fetchStart:y,postProcessPages:w,calculatePagesHeight:C,dense:x,selectDisabled:S,keyboard:Y,showGray:k,scrollState:R,sortByState:E,setCount:L})}))))}function vP(e){let{app:t,fieldIdentifier:n,stateName:r="$",options:o={}}=e;const[a,i]=Ge.exports.useState(""),[l,s]=Ge.exports.useState(!1);return Ge.exports.useEffect((()=>{!async function(){s(!0);try{const e=await t.getDimension(n.qLibraryId),r=await e.getLayout();i(r.qDim.qFieldDefs?r.qDim.qFieldDefs[0]:""),s(!1)}catch(e){throw s(!1),i({failedToFetchFieldDef:!0}),new Error("Disabling frequency count and histogram: ".concat(e&&e.message))}}()}),[]),l?null:Ot.createElement(gP,{app:t,fieldIdentifier:n,stateName:r,options:o,fieldDef:a})}function bP(e){let{app:t,fieldIdentifier:n,stateName:r,element:o,options:a}=e;const i=a.histogram||"N"!==a.frequencyMode,l=n.qLibraryId&&i?vP:gP;return _p.createPortal(Ot.createElement(l,{app:t,fieldIdentifier:n,stateName:r,element:o,options:a}),o)}const yP=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function xP(e){let[t,n]=e;return(t+(Math.random()*(n-t)|0)).toString(32)}function SP(){return yP.map(xP).join("")}function wP(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function CP(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 kP(e){let{sn:t,properties:n,fields:r}=e;if(!r.length)return;const a=t.qae.data.targets[0];if(!a)return;const{propertyPath:i}=a,l=i.split("/");let s=n;for(let e=0;e<l.length;e++){const t=l[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 a=r,i={dimensions:()=>t.qDimensions,measures:()=>t.qMeasures,addDimension(e){const r="string"==typeof e?(e=>({qDef:{qFieldDefs:[e]}}))(e):o(o({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||SP(),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<i.maxDimensions()?(t.qDimensions.push(r),wP(t.qInterColumnSortOrder,t.qDimensions.length-1),n.dimensions.added(r,a)):(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))},removeDimension(e){const r=t.qDimensions.splice(e,1)[0];CP(t.qInterColumnSortOrder,e),n.dimensions.removed(r,a,e)},addMeasure(e){const r="string"==typeof e?(e=>({qDef:{qDef:e}}))(e):o(o({},e),{},{qDef:e.qDef||{}});r.qDef.cId=r.qDef.cId||SP(),r.qSortBy=r.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},r.qAttributeDimensions=r.qAttributeDimensions||[],r.qAttributeExpressions=r.qAttributeExpressions||[],t.qMeasures.length<i.maxMeasures()?(t.qMeasures.push(r),wP(t.qInterColumnSortOrder,t.qDimensions.length+t.qMeasures.length-1),n.measures.added(r,a)):(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];CP(t.qInterColumnSortOrder,t.qDimensions.length+e),n.measures.removed(r,a,e)},maxDimensions:()=>n.dimensions.max(t.qMeasures.length),maxMeasures:()=>n.measures.max(t.qDimensions.length),canAddDimension:()=>t.qDimensions.length<i.maxDimensions(),canAddMeasure:()=>t.qMeasures.length<i.maxMeasures()};return i}({dc:s,def:a,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 EP=(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},RP=(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let a=e;for(let e=0;e<r.length-1;++e){const t=r[e];void 0!==a[t]&&null!==a[t]||(a[t]=Number.isNaN(+r[e+1])?{}:[]),a=a[t]}void 0!==n&&"__proto__"!==o&&"constructor"!==o?a[o]=n:delete a[o]},LP=e=>0===Object.keys(e).length&&e.constructor===Object;var OP={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(e,t){let n,r=0;for(n=0;n<e.length;++n)e[n]>t?--e[n]:e[n]===t&&(r=n);return e.splice(r,1),r}};const MP=2**53-1;function IP(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function TP(e,t){const n=k(!0,{},t,e);return EP(n,"qOtherTotalSpec.qOtherCounted")||RP(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),EP(n,"qOtherTotalSpec.qOtherLimit")||RP(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function PP(e,t){return k(!0,{},t,e)}function zP(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var NP={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach((t=>{e.qLayoutExclude.changed[t].to===EP(e,t)&&RP(e,t,e.qLayoutExclude.changed[t].from)}))},isMasterItemProperty:IP,importCommonProperties:function(e,t,n){const r="masterobject"===EP(t,"properties.qInfo.qType")?"masterobject":EP(n,"qInfo.qType");RP(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:TP,createDefaultMeasure:PP,resolveValue:zP,getHypercubePath:function(e){const t=EP(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension:function(){return{qDef:{autoSort:!0,cId:"",othersLabel:"Others"},qLibraryId:"",qNullSuppression:!1,qOtherLabel:"Others",qOtherTotalSpec:{qOtherLimitMode:"OTHER_GE_LIMIT",qOtherMode:"OTHER_OFF",qOtherSortMode:"OTHER_SORT_DESCENDING",qSuppressOther:!1}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function(e){let{exportFormat:t,newHyperCubeDef:n}=e;const r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();let a=n.qInterColumnSortOrder.length;if(a!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());a!==o;)a<o?(OP.indexAdded(n.qInterColumnSortOrder,a),++a):(--a,OP.indexRemoved(n.qInterColumnSortOrder,a))},createNewProperties:function(e){let{exportFormat:t,initialProperties:n,hypercubePath:r}=e,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((e=>{"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=k(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?RP(o,"".concat(r,".qHyperCubeDef"),t.properties.qHyperCubeDef):n.hasOwnProperty(e)||IP(e)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),o=k(!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=zP(a.max,r.dimensions.length,MP),l=zP(a.min,r.dimensions.length,0);return{maxDimensions:zP(o.max,i,MP),minDimensions:zP(o.min,l,0),maxMeasures:i,minMeasures:l}},shouldInitLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a}=e;const i=t.data[0];return i.dimensions.length>n&&n>0||i.measures.length>o&&o>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>r||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>a||!o&&i.measures.length>0||!n&&i.dimensions.length>0},initLayoutExclude:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,maxMeasures:o,minMeasures:a,newHyperCubeDef:i}=e;const l=t.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>a)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function(e){let{exportFormat:t,maxDimensions:n,minDimensions:r,newHyperCubeDef:o,defaultDimension:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.dimensions.length;++l)o.qDimensions.length<n?o.qDimensions.push(TP(i.dimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));else if(i.dimensions.length)for(l=0;l<i.dimensions.length;++l)o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.dimensions[l],a));if(i.excludedDimensions.length)for(l=0;l<i.excludedDimensions.length;++l)o.qDimensions.length<r?o.qDimensions.push(TP(i.excludedDimensions[l],a)):o.qLayoutExclude.qHyperCubeDef.qDimensions.push(TP(i.excludedDimensions[l],a))},addDefaultMeasures:function(e){let{exportFormat:t,maxMeasures:n,minMeasures:r,newHyperCubeDef:o,defaultMeasure:a}=e;const i=t.data[0];let l;if(n>0)for(l=0;l<i.measures.length;++l)o.qMeasures.length<n?o.qMeasures.push(PP(i.measures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PP(i.measures[l],a));else if(i.measures.length)for(l=0;l<i.measures.length;++l)o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PP(i.measures[l],a));if(i.excludedMeasures.length)for(l=0;l<i.excludedMeasures.length;++l)o.qMeasures.length<r?o.qMeasures.push(PP(i.excludedMeasures[l],a)):o.qLayoutExclude.qHyperCubeDef.qMeasures.push(PP(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=EP(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=EP(t,r||"").qHyperCubeDef,o=[...e.qMeasures];e.qMeasures=[],o.forEach((r=>{e.qMeasures.push(r),n.measures.added(r,t)}))}}};var _P={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=EP(o,n||""),i=a.qHyperCubeDef,l=r.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),l.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&l.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),l.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&l.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),l.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();OP.isOrderedSubset(e,l.interColumnSortOrder)&&(l.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(o).forEach((e=>{r.properties[e]=o[e]})),n&&(r.properties.qHyperCubeDef=a.qHyperCubeDef,delete a.qHyperCubeDef),o.qLayoutExclude||(o.qLayoutExclude={}),o.qLayoutExclude.disabled&&(Object.keys(o.qLayoutExclude.disabled).forEach((e=>{r.properties.hasOwnProperty(e)||(r.properties[e]=o.qLayoutExclude.disabled[e])})),delete o.qLayoutExclude.disabled),o.qLayoutExclude.changed&&(NP.restoreChangedProperties(o),delete o.qLayoutExclude.changed),o.qLayoutExclude.quarantine&&!LP(o.qLayoutExclude.quarantine)||delete o.qLayoutExclude,r}(e),importProperties:e=>function(e){let{exportFormat:t,initialProperties:n={},dataDefinition:r={},defaultPropertyValues:o={},hypercubePath:a}=e;const i={qChildren:[]},l=NP.createNewProperties({exportFormat:t,initialProperties:n,hypercubePath:a}),s=EP(n,a||"").qHyperCubeDef,c=EP(l,a||"").qHyperCubeDef,{maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f}=NP.getMaxMinDimensionMeasure({exportFormat:t,dataDefinition:r}),{defaultDimension:m=NP.getDefaultDimension(),defaultMeasure:h=NP.getDefaultMeasure()}=o;return c.qDimensions.length=0,c.qMeasures.length=0,NP.shouldInitLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f})&&NP.initLayoutExclude({exportFormat:t,maxDimensions:u,minDimensions:d,maxMeasures:p,minMeasures:f,newHyperCubeDef:c}),NP.addDefaultDimensions({exportFormat:t,maxDimensions:u,minDimensions:d,newHyperCubeDef:c,defaultDimension:m}),NP.addDefaultMeasures({exportFormat:t,maxMeasures:p,minMeasures:f,newHyperCubeDef:c,defaultMeasure:h}),NP.setInterColumnSortOrder({exportFormat:t,newHyperCubeDef:c}),NP.copyPropertyIfExist("qMaxStackedCells",s,c),NP.copyPropertyIfExist("qNoOfLeftDims",s,c),NP.copyPropertyOrSetDefault("qInitialDataFetch",s,c,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),NP.copyPropertyOrSetDefault("qMode",s,c,"S"),NP.copyPropertyOrSetDefault("qReductionMode",s,c,"N"),NP.copyPropertyOrSetDefault("qSortbyYValue",s,c),NP.copyPropertyOrSetDefault("qIndentMode",s,c),NP.copyPropertyOrSetDefault("qShowTotalsAbove",s,c),NP.importCommonProperties(l,t,n),NP.updateDimensionsOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),NP.updateMeasuresOnAdded({newProperties:l,dataDefinition:r,hypercubePath:a}),i.qProperty=l,i}(e)};const AP=e=>EP(e,"data.targets.0.propertyPath"),DP=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _P.exportProperties})(AP(e))},$P=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return _P.importProperties})(AP(e))},qP=async e=>{let{halo:t,model:n,cellRef:r,newType:a}=e;const i=await n.getFullPropertyTree(),l=r.current.getQae(),s=DP(l),c=await(async e=>{let{halo:t,name:n,version:r}=e;const{types:o}=t;return await o.get({name:n,version:r}).supernova()})({halo:t,name:a}),u=c.qae;return $P(u)({exportFormat:s({propertyTree:i,hypercubePath:NP.getHypercubePath(l)}),initialProperties:o({qInfo:{qType:a},visualization:a},EP(u,"properties.initial",{})),dataDefinition:EP(u,"data.targets.0.",{}),hypercubePath:NP.getHypercubePath(u)})},jP={hypercube:_P};var FP=e=>dI((e=>o(o({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function BP(e){let{d:t}=e;const n=Yx();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=Ot.createElement(zC,{style:{lineHeight:"30px",paddingRight:n.spacing(1)}},Ot.createElement(ER,null,t.missing||t.error?Ot.createElement(FP,{style:a}):Ot.createElement($I,{style:a})));return Ot.createElement(sR,{item:!0,container:!0,alignItems:"center",wrap:"nowrap"},Ot.createElement(sR,{item:!0},i),Ot.createElement(sR,{container:!0,item:!0,zeroMinWidth:!0,wrap:"nowrap"},Ot.createElement(zC,{noWrap:!0,component:"p"},Ot.createElement(zC,{component:"span",variant:"subtitle2",color:r},t.description),Ot.createElement(zC,{component:"span"}," "),Ot.createElement(zC,{component:"span",variant:"subtitle2",color:t.error?"error":"inherit",style:{fontWeight:400}},t.label))))}function WP(e){let{data:t}=e;const n=Yx();return Ot.createElement(sR,{container:!0,item:!0,style:{maxWidth:"300px",overflow:"hidden"}},t.map(((e,t)=>{const r=e.descriptions.map(((e,t)=>Ot.createElement(BP,{d:e,key:t})));return r.length>0&&Ot.createElement(sR,{container:!0,item:!0,key:t,direction:"column",style:{paddingBottom:n.spacing(2)}},Ot.createElement(zC,{noWrap:!0,key:t,variant:"subtitle1",align:"left",color:"textSecondary"},e.title),r)})))}function HP(e){let{title:t="Error",message:n="",data:r=[]}=e;return Ot.createElement(sR,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"}},Ot.createElement(sR,{item:!0},Ot.createElement(FP,{style:{fontSize:"38px"}})),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"h6",align:"center","data-tid":"error-title"},t)),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"subtitle1",align:"center","data-tid":"error-message"},n)),Ot.createElement(WP,{data:r}))}const UP=["size"],VP="Progress",GP={root:"".concat(VP,"-root"),front:"".concat(VP,"-front"),back:"".concat(VP,"-back")},KP=tS("div")((e=>{let{theme:t}=e;return{["&.".concat(GP.root)]:{position:"relative",display:"inline-block"},["& .".concat(GP.front)]:{color:t.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},["& .".concat(GP.back)]:{color:t.palette.divider}}})),XP={small:16,medium:32,large:64,xlarge:128};function ZP(e){let{size:t="medium"}=e,n=l(e,UP);const r=XP[t];return Ot.createElement(KP,{className:GP.root},Ot.createElement(hE,i({variant:"determinate",value:100,className:GP.back,size:r,thickness:3},n)),Ot.createElement(hE,i({variant:"indeterminate",disableShrink:!0,className:GP.front,size:r,thickness:3},n)))}const YP=["cancel","translator"],QP=["retry","translator"],JP={stripes:"".concat("LongRunningQuery","-stripes")},ez=tS(sR)((()=>({["& .".concat(JP.stripes)]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}})));function tz(e){let{cancel:t,translator:n}=e,r=l(e,YP);return Ot.createElement(Ot.Fragment,null,Ot.createElement(ez,{container:!0,item:!0,direction:"column",alignItems:"center",gap:2},Ot.createElement(sR,{item:!0},Ot.createElement(ZP,null)),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"h6",align:"center","data-tid":"update-active"},n.get("Object.Update.Active")))),Ot.createElement(sR,i({item:!0},r),Ot.createElement(fw,{variant:"contained",onClick:t},n.get("Cancel"))))}function nz(e){let{retry:t,translator:n}=e,r=l(e,QP);return Ot.createElement(Ot.Fragment,null,Ot.createElement(sR,{item:!0},Ot.createElement(FP,{style:{fontSize:"38px"}})),Ot.createElement(sR,{item:!0},Ot.createElement(zC,{variant:"h6",align:"center","data-tid":"update-cancelled"},n.get("Object.Update.Cancelled"))),Ot.createElement(sR,{item:!0},Ot.createElement(fw,i({variant:"contained",onClick:t},r),n.get("Retry"))))}function rz(e){let{canCancel:t,canRetry:n,api:r}=e;const{translator:o}=Ge.exports.useContext(Rw);return Ot.createElement(sR,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:JP.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},t&&Ot.createElement(tz,{cancel:r.cancel,translator:o,className:JP.cancel}),n&&Ot.createElement(nz,{retry:r.retry,translator:o,className:JP.retry}))}function oz(){return Ot.createElement(sR,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2},Ot.createElement(ZP,{size:"large"}))}const az="Header",iz={containerStyle:"".concat(az,"-containerStyle"),containerTitleStyle:"".concat(az,"-containerTitleStyle")},lz=tS(sR)((e=>{let{theme:t}=e;return{["& .".concat(iz.containerStyle)]:{flexGrow:0},["& .".concat(iz.containerTitleStyle)]:{paddingBottom:t.spacing(1)}}})),sz="njs-cell-title",cz="njs-cell-sub-title";function uz(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]=Ge.exports.useState([]),[d,p]=cI(),[f,m]=Ge.exports.useState(!1);Ge.exports.useEffect((()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions((e=>{u([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])}))}),[n]),Ge.exports.useEffect((()=>{if(!p)return;const{width:e}=p;m(e<221)}),[p]);const h=i||l,g=[iz.containerStyle,...h?[iz.containerTitleStyle]:[]],v=(o||s)&&(f||!h),b=h&&!v&&!f,y=Ot.createElement(TT,{show:b,selections:{show:s,api:n.component.selections,onKeyDeactivate:a.refocusContent},actions:c,popover:{show:v,anchorEl:r},focusHandler:a});return Ot.createElement(lz,{ref:d,item:!0,container:!0,wrap:"nowrap",className:g.join(" ")},Ot.createElement(sR,{item:!0,zeroMinWidth:!0,xs:!0},Ot.createElement(sR,{container:!0,wrap:"nowrap",direction:"column"},i&&Ot.createElement(zC,{variant:"h6",noWrap:!0,className:sz},t.title),l&&Ot.createElement(zC,{variant:"body2",noWrap:!0,className:cz},t.subtitle))),Ot.createElement(sR,{item:!0},y))}const dz={itemStyle:"".concat("Footer","-itemStyle")},pz=tS(sR)((e=>{let{theme:t}=e;return{["& .".concat(dz.itemStyle)]:{minWidth:0,paddingTop:t.spacing(1)}}})),fz="njs-cell-footer";function mz(e){let{layout:t}=e;return t&&t.showTitles&&t.footnote?Ot.createElement(pz,{container:!0},Ot.createElement(sR,{item:!0,className:dz.itemStyle},Ot.createElement(zC,{noWrap:!0,variant:"body2",className:fz},t.footnote))):null}class hz{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 gz="njs-viz";function vz(e){let{sn:t,snOptions:n,snPlugins:r,layout:a,appLayout:i,halo:l}=e;const{component:s}=t,{theme:c,language:u,constraints:d,keyboardNavigation:p}=Ge.exports.useContext(Rw),[f]=Ge.exports.useState((()=>new hz)),[m,h]=Ge.exports.useState(!1),[g,v]=Ge.exports.useState(0),[b,y,x]=cI(),[S,w]=Ge.exports.useState(null),C=Ge.exports.useCallback((e=>{e&&w(e)}),[]);return Ge.exports.useEffect((()=>{if(S)return s.created({options:n}),s.mounted(S),h(!0),()=>{f.stop(),s.willUnmount()}}),[S,s]),Ge.exports.useEffect((()=>{m&&S&&y&&(!s.isHooked&&a&&a.qSelectionInfo&&a.qSelectionInfo.qInSelections||f.schedule((()=>{const e=[];return d.passive||e.push("passive"),d.active||e.push("interact"),d.select||e.push("select"),l.app&&l.app.session&&e.push("fetch"),Promise.resolve(s.render({layout:a,options:n,plugins:r,embed:l.public.nebbie,context:o({constraints:d,theme:l.public.theme,appLayout:i,keyboardNavigation:p},s.isHooked?{}:{logicalSize:t.logicalSize({layout:a}),localeInfo:(i||{}).qLocaleInfo,permissions:e})})).then((e=>{!1!==e&&(0===g&&"function"==typeof n.onInitialRender&&n.onInitialRender.call(null),v(g+1))}))})))}),[y,n,r,S,x,a,i,c,u,d,m,p]),Ot.createElement("div",{ref:b,"data-render-count":g,style:{position:"relative",height:"100%"},className:gz},Ot.createElement("div",{ref:C,style:{position:"absolute",width:"100%",height:"100%"}}))}const bz="njs-cell",yz=(e,t)=>{switch(t.type){case"LOADING":return o(o({},e),{},{loading:!0});case"LOADED":return o(o({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return o(o({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return o(o({},e),{},{longRunningQuery:!0});case"ERROR":return o(o({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error("Unhandled type: ".concat(t.type))}};function xz(e){let{delay:t=750}=e;const[n,r]=Ge.exports.useState(!1);return Ge.exports.useEffect((()=>{const e=setTimeout((()=>r(!0)),t);return()=>clearTimeout(e)}),[]),n?Ot.createElement(oz,null):null}const Sz=e=>!e.qError||7005===e.qError.qErrorCode,wz=(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}})),Cz=e=>e&&(Array.isArray(e)?e:[e])||[],kz=(e,t,n,r)=>{const o=r.dimensions.min(),a=r.measures.min(),i=r.resolveLayout(t);return{reqDimErrors:wz(o,Cz(i.qDimensionInfo),(e=>r.dimensions.description(n,e)),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),reqMeasErrors:wz(a,Cz(i.qMeasureInfo),(e=>r.measures.description(n,e)),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"))}},Ez=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),m=Cz(f.qDimensionInfo).filter(Sz),h=Cz(f.qMeasureInfo).filter(Sz);if(o+=d,a+=p,(m.length<d||h.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=kz(e,t,n,i);u.push(...o.reqDimErrors),d.push(...o.reqMeasErrors)}}const f=u.filter((e=>!(e.missing||e.error))).length,m=e.get("Visualization.Incomplete.Dimensions",[f,i]),h=d.filter((e=>!(e.missing||e.error))).length,g=e.get("Visualization.Incomplete.Measures",[h,l]),v=[{title:m,descriptions:[...u]},{title:g,descriptions:[...d]}],b=s?c:v;return[s||a,{title:s?c[0].title:e.get("Visualization.Incomplete"),data:b}]},Rz=Ge.exports.forwardRef(((e,t)=>{let{halo:n,model:r,initialSnOptions:a,initialSnPlugins:i,initialError:l,onMount:s,currentId:c}=e;const{app:u,types:d}=n,{nebbie:p}=n.public,{disableCellPadding:f=!1}=n.context||{},{translator:m,language:h,keyboardNavigation:g}=Ge.exports.useContext(Rw),v=Yx(),[b,y,x]=cI(),[S,w]=Ge.exports.useReducer(yz,{loading:!1,loaded:!1,longRunningQuery:!1,error:(C=l)?{title:C.message}:null,sn:null,visualization:null});var C;const[k,{validating:E,canCancel:R,canRetry:L},O]=Hw(r),[M]=Uw(u),[I,T,P]=cI(),[z,N]=Ge.exports.useState(a),[_,A]=Ge.exports.useState(i),[D]=AT(u,r),[$,q]=Ge.exports.useState(!1),j=Ge.exports.useRef({enter:null,leave:null}),F=Ge.exports.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});Ge.exports.useEffect((()=>{_T(F.current)}),[]),F.current.blurCallback=e=>{n.root.toggleFocusOfCells(),e&&P&&P.focus()},F.current.refocusContent=()=>{S.sn.component&&"function"==typeof S.sn.component.focus&&S.sn.component.focus()};Ge.exports.useEffect((()=>{if(l||!M||!k)return;if(S.visualization===k.visualization&&S.sn)return void(async e=>{const[t,n]=await Ez(m,k,e.generator.qae.data,r);w(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:S.sn,layout:k,model:r})})(S.sn);const e=d.getSupportedVersion(k.visualization,k.version);if(e)return(async(e,t)=>{w({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:w,types:d,visualization:e,version:t,model:r,app:u,selections:D,nebbie:p,focusHandler:F.current});n&&(w({type:"LOADED",sn:n,visualization:e}),s())})(k.visualization,e),()=>{};w({type:"ERROR",error:{title:"Could not find a version of '".concat(k.visualization,"' that supports current object version. Did you forget to register ").concat(k.visualization,"?")}})}),[d,S.sn,r,D,k,M,h]),Ge.exports.useEffect((()=>{if(!E)return;const e=setTimeout((()=>w({type:"LONG_RUNNING_QUERY"})),2e3);return()=>clearTimeout(e)}),[E]),Ge.exports.useImperativeHandle(t,(()=>({getQae:()=>S.sn.generator.qae,toggleFocus(e){"function"==typeof S.sn.component.focus&&(e?S.sn.component.focus():S.sn.component.blur())},setSnOptions:N,setSnPlugins:A,async takeSnapshot(){const{width:e,height:t}=y;let n=JSON.parse(JSON.stringify(k));return"function"==typeof S.sn.component.setSnapshotData&&(n=await S.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:m.language(),theme:v.name,appLayout:M,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)}})),[S.sn,T,y,k,v.name,M]);let B=null;return S.loading&&!S.longRunningQuery?B=Ot.createElement(xz,null):S.error?B=Ot.createElement(HP,S.error):S.loaded&&(B=Ot.createElement(vz,{key:k.visualization,sn:S.sn,halo:n,snOptions:z,snPlugins:_,layout:k,appLayout:M})),Ot.createElement(iS,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden"},elevation:0,square:!0,className:bz,ref:b,onMouseEnter:()=>{j.current.leave&&clearTimeout(j.current.leave),j.enter||(j.current.enter=setTimeout((()=>{q(!0),j.current.enter=null}),250))},onMouseLeave:()=>{j.current.enter&&clearTimeout(j.current.enter),j.current.leave||(j.current.leave=setTimeout((()=>{q(!1),j.current.leave=null}),750))}},Ot.createElement(sR,{container:!0,direction:"column",gap:0,style:o(o({position:"relative",width:"100%",height:"100%"},f?{}:{padding:v.spacing(1)}),S.longRunningQuery?{opacity:"0.3"}:{})},x&&k&&S.sn&&Ot.createElement(uz,{layout:k,sn:S.sn,anchorEl:x,hovering:$,focusHandler:F.current}," "),Ot.createElement(sR,{tabIndex:g?0:-1,onKeyDown:g?e=>{["Enter"," ","Spacebar"].includes(e.key)&&n.root.toggleFocusOfCells(c)}:null,item:!0,xs:!0,style:{height:"100%"},ref:I},B),Ot.createElement(mz,{layout:k})),S.longRunningQuery&&Ot.createElement(rz,{canCancel:R,canRetry:L,api:O}))}));function Lz(e){let{halo:t,element:n,model:r,initialSnOptions:o,initialSnPlugins:a,onMount:i,initialError:l}=e;const{root:s}=t,c=Ot.createRef(),u=SP(),d=_p.createPortal(Ot.createElement(Rz,{ref:c,halo:t,model:r,currentId:u,initialSnOptions:o,initialSnPlugins:a,initialError:l,onMount:i}),n,r.id),p=()=>{s.remove(d),r.removeListener("closed",p)};return r.on("closed",p),s.add(d),s.addCell(u,c),[p,c]}function Oz(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Mz(e,t){return Oz(e)&&Oz(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}function Iz(){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)?Mz(a,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Iz("".concat(e).concat(o,"/"),t[o],n[o]))})),r}function Tz(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 Pz=()=>{};function zz(){let{model:e,halo:t,initialError:n,onDestroy:r=(async()=>{})}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},a=Pz,i=null,l=null,s=null;const c=new Promise((e=>{s=e}));let u={},d=[];const p=async e=>{l?(async()=>{await c,i.current.setSnOptions(o(o({},u),e))})():u=o(o({},u),e)},f=async e=>{Tz(e),l?(async()=>{await c,i.current.setSnPlugins(e)})():d=e},m={id:e.id,async destroy(){await r(),a(),a=Pz},async convertTo(n){let r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const o=await qP({halo:t,model:e,cellRef:i,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(l)throw new Error("Already mounted");return l=r,[a,i]=Lz({halo:t,element:r,model:e,initialSnOptions:u,initialSnPlugins:d,initialError:n,onMount:s}),c},async applyProperties(t){const n=Iz("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){p(e)},plugins(e){f(e)},exportImage:()=>i.current.exportImage(),takeSnapshot:()=>i.current.takeSnapshot(),getModel:()=>e}};return m}async function Nz(e,t,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:async()=>{};const a=zz({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 _z(e,t){let n,{type:r,version:o,fields:a,properties:i,options:l,plugins:s,element:c}=e,u={};try{const e=t.types.get({name:r,version:o});u=await e.initialProperties(i);const n=await e.supernova();a&&kP({sn:n,properties:u,fields:a}),i&&n&&n.qae.properties.onChange&&n.qae.properties.onChange.call({},u)}catch(e){n=e,u={qInfo:{qType:r},visualization:r}}const d=await t.app.createSessionObject(u);Fw.set(d.id,d);const p=(e=>{const t=qw({type:"SET",value:e});return()=>{t(),Fw.clear(e.id)}})(d);return Nz(d,{options:l,plugins:s,element:c},t,n,(async()=>{await t.app.destroySessionObject(d.id),p()}))}async function Az(e,t){let{id:n,options:r,plugins:o,element:a}=e;const i="".concat(n);let l=_w.get(i);l||(l=t.app.getObject(n),_w.set(i,l));const s=await l;return Fw.set(i,s),Nz(s,{options:r,plugins:o,element:a},t)}function Dz(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{isEnabled:t=>!0===e[t]}}const $z=k.bind(null,!0),qz={},{isArray:jz}=Array;function Fz(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Bz(e){return void 0===e}function Wz(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Hz(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]=Bz(e[r||t])?a:e[t],e=e[r||t]})),e}function Uz(e,t){let n=!0;if(Fz(e)&&Fz(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach((r=>{Uz(e[r],t[r])||(n=!1)})),n);if(jz(e)&&jz(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Uz(e[n],t[n]))return!1;return!0}return e===t}qz.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach((o=>{const a=function(e){return e?$z({},{val:e}).val:e}(t[o]),i=e[o],l="".concat(n,"/").concat(o);Uz(a,i)||Wz(t,o)||(Bz(i)?r.push({op:"add",path:l,value:a}):Fz(a)&&Fz(i)?r=r.concat(qz.generate(i,a,l)):jz(a)&&jz(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]&&Bz(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(Uz(t,o))return r;if(!Bz(t[0])&&Bz(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(qz.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=>{Bz(t[o])&&!Wz(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},qz.apply=function(e,t){t.forEach((t=>{let n=Hz(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(jz(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(jz(o)&&jz(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(Fz(o)&&Fz(t.value))i=o,Object.keys(i).forEach((e=>{Object.getOwnPropertyDescriptor(i,e).configurable&&!Wz(i,e)&&delete i[e]})),$z(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=Hz(e,t.from);jz(n)?n.splice(+r,0,o.splice(+a,1)[0]):(n[r]=o[a],delete o[a])}else"remove"===t.op&&(jz(n)?n.splice(+r,1):delete n[r]);var i}))},qz.clone=function(e){return $z({},e)},qz.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},qz.updateObject=function(e,t){Object.keys(e).length?qz.apply(e,qz.generate(e,t)):$z(e,t)};const Vz=e=>t=>{const n=(r=o(o({},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(h.prototype).forEach((e=>{r[e]=h.prototype[e]})),h.init(r),r);var r;return n};let Gz,Kz;function Xz(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 Zz(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:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null}}}function Yz(e){Jz(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 Qz(e){if(e.__hooks.obsolete)return Promise.resolve();Kz=-1,Gz=e,Gz.__hooks.initiated&&Gz.__hooks.list.length;try{Gz.fn.call(null)}catch(e){console.error(e)}Gz.__hooks.initiated=!0;const t=Gz.__hooks;return nN(Gz),Kz=void 0,Gz=void 0,t.chain.promise||(t.chain.promise=new Promise((e=>{t.chain.resolve=e}))),function(e){Jz(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame((()=>{!function(e){Jz(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 Jz(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 eN(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 tN(e){return e.__hooks.imperativeHandle}function nN(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function rN(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,nN(e))}function oN(e){if(void 0===Gz)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Gz.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function aN(e){oN(++Kz);return Gz.context[e]}function iN(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function lN(e){return{__hooked:!0,fn:e,initiate:Zz,run:Qz,teardown:Yz,runSnaps:eN,focus:fN,blur:mN,observeActions:rN,getImperativeHandle:tN,updateRectOnNextRun:iN}}function sN(e){const t=oN(++Kz);if(!t.value){t.component=Gz;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,Qz(r)}),0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function cN(e,t){const n=oN(++Kz);Xz(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Gz.__hooks.pendingEffects.indexOf(n)&&Gz.__hooks.pendingEffects.push(n))}function uN(e,t){const n=oN(++Kz);Xz(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Gz.__hooks.pendingLayoutEffects.push(n))}function dN(e,t){const n=oN(++Kz);return Xz(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function pN(){return aN("element")}function fN(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 mN(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 hN={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},gN=Object.keys(hN);function vN(e,t){const n=o({},hN);var r;r=n,Object.keys(h.prototype).forEach((e=>{r[e]=h.prototype[e]})),h.init(r);const a={emit(){n.emit(...arguments)}};Object.keys(e.component||{}).forEach((t=>{-1!==gN.indexOf(t)?n[t]=e.component[t].bind(a):a[t]=e.component[t]}));const i=function(e){let{sn:t,component:n}=e;const r={},o=[],a=Vz(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:a}),l=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(a,{model:t.model,app:t.app,global:l,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function bN(e,t,n){"function"==typeof e.component&&(e.component=lN(e.component));const[r,a]=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 a=!1;const i={},l=["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=!a||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach((n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)})),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach(((t,n)=>{this.context.plugins[n]!==t&&(e=!0)})),e&&(this.context.plugins=[...t.plugins],n=!0)}l.forEach((e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(o(o({},r[e]),s))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}}))}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(a=!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)},focus(){e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return l.forEach((e=>{i[e]=JSON.stringify(c.context[e])})),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):vN(e,t),i=[];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=qz.clone(o),i=n.map((e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath})));qz.apply(o,i),e.qae.properties.onChange.call({model:t.model},o);const l=qz.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},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:a?a.selectionToolbarItems:[]},destroy(){i.forEach((e=>e()))},logicalSize:e.definition.logicalSize||(()=>!1)}}const yN=()=>{};function xN(e,t){return void 0===e?()=>t:()=>e}function SN(e){const t=e||{};return{min:"function"==typeof t.min?t.min:xN(t.min,0),max:"function"==typeof t.max?t.max:xN(t.max,1e3),added:t.added||t.add||yN,description:t.description||yN,moved:t.moved||t.move||yN,removed:t.removed||t.remove||yN,replaced:t.replaced||t.replace||yN,isDefined:()=>!!e}}function wN(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error("Incorrect definition for ".concat(e," at ").concat(t,". Valid paths include /qHyperCubeDef or /qListObjectDef, 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:SN(e.dimensions),measures:SN(e.measures)}}function CN(){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(wN)},exportProperties:t.exportProperties,importProperties:t.importProperties};return r}function kN(e,t){let n;n="function"==typeof e?e(t):e;const r={qae:CN(n.qae),component:n.component||{},create:e=>bN(r,e,t),definition:{}};return Object.keys(n).forEach((e=>{r[e]||(r.definition[e]=n[e])})),r}var EN={exports:{}};!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 m(e,t,n){return new d(e,n).compare(new d(t,n))}function h(e,t,n){return m(e,t,n)>0}function g(e,t,n){return m(e,t,n)<0}function v(e,t,n){return 0===m(e,t,n)}function b(e,t,n){return 0!==m(e,t,n)}function y(e,t,n){return m(e,t,n)>=0}function x(e,t,n){return m(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 b(e,n,r);case">":return h(e,n,r);case">=":return y(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===C?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=m,t.compareLoose=function(e,t){return m(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 m(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=h,t.lt=g,t.eq=v,t.neq=b,t.gte=y,t.lte=x,t.cmp=S,t.Comparator=w;var C={};function k(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof k)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new k(e.raw,t);if(e instanceof w)return new k(e.value,t);if(!(this instanceof k))return new k(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function E(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 R(e){return!e||"x"===e.toLowerCase()||"*"===e}function L(e,t,n,r,o,a,i,l,s,c,u,d,p){return((t=R(n)?"":R(r)?">="+n+".0.0":R(o)?">="+n+"."+r+".0":">="+t)+" "+(l=R(s)?"":R(c)?"<"+(+s+1)+".0.0":R(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!==C&&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 M(e,t,n){try{t=new k(t,n)}catch(e){return!1}return t.test(e)}function I(e,t,n,r){var o,a,i,l,s;switch(e=new d(e,r),t=new k(t,r),n){case">":o=h,a=x,i=g,l=">",s=">=";break;case"<":o=g,a=y,i=h,l="<",s="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(M(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===C&&(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=C},w.prototype.toString=function(){return this.value},w.prototype.test=function(e){if(n("Comparator.test",e,this.options.loose),this.semver===C||e===C)return!0;if("string"==typeof e)try{e=new 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 k(e.value,t),M(this.value,n,t));if(""===e.operator)return""===e.value||(n=new k(this.value,t),M(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=k,k.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},k.prototype.toString=function(){return this.range},k.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var r=t?o[i.HYPHENRANGELOOSE]:o[i.HYPHENRANGE];e=e.replace(r,L),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),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(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),R(r)?l="":R(o)?l=">="+r+".0.0 <"+(+r+1)+".0.0":R(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=R(a),u=c||R(i),d=u||R(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)},k.prototype.intersects=function(e,t){if(!(e instanceof k))throw new TypeError("a Range is required");return this.set.some((function(n){return E(n,t)&&e.set.some((function(e){return E(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new k(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},k.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new 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=M,t.maxSatisfying=function(e,t,n){var r=null,o=null;try{var a=new k(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 k(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 k(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&&!h(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}))}if(n&&e.test(n))return n;return null},t.validRange=function(e,t){try{return new k(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return I(e,t,"<",n)},t.gtr=function(e,t,n){return I(e,t,">",n)},t.outside=I,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 k(e,n),t=new k(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)}}(EN,EN.exports);const RN={};async function LN(e,t,n,r){let{config:o}=n;const a="".concat(e,"__").concat(t);if(!RN[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);RN[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 RN[a]}function ON(e,t){const n={};let r=null;return{get:e=>n[e],register:(a,i)=>{if(n[a])throw new Error("Supernova '".concat(e,"@").concat(a,"' already registered."));n[a]=function(e,t){let n,r,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{meta:i}=a,l={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||EN.exports.satisfies(e,i.deps.properties),supernova:()=>LN(l.name,l.version,t,a.load).then((e=>(n=n||kN(e,t.public.galaxy),r=JSON.stringify(n.qae.properties.initial),n))),initialProperties(e){return this.supernova().then((()=>o(o({qInfo:{qType:l.name},visualization:l.name,version:l.version,showTitles:!0},JSON.parse(r)),e)))}};return l}({name:e,version:a},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter((e=>"undefined"===e));return[...t,...e.filter((e=>"undefined"!==e)).map((e=>e.split(".").map((e=>parseInt(e,10))))).sort(((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2])).map((e=>e.join(".")))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function MN(e){let{halo:t,parent:n}=e;const r={},o=n||{get:()=>{}};return{register:(e,n)=>{r[e.name]||(r[e.name]=ON(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(RN).forEach((t=>{t.split("__")[0]===e&&(RN[t]=void 0)}))}(e)}}}const IN=["__DO_NOT_USE__"],TN={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()))},PN=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return o(o({},e),t)},zN=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))},NN=(e,t)=>({context:PN(e.context,t.context),load:t.load||e.load,snapshot:o({},t.snapshot||e.snapshot),types:zN(e.types,t.types),themes:zN(e.themes,t.themes),flags:PN(e.flags,t.flags),anything:PN(e.anything,t.anything)}),_N=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{__DO_NOT_USE__:t={}}=e,n=l(e,IN),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},a=o(o(o({},n),r),t);return a};var AN=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=p(t.context.language);function r(e,a){if(a)return r.createConfiguration(a)(e);let i=o(o({},t.context),{},{translator:n.translator});const[l]=iC({app:e,context:i}),s=Ue({themes:t.themes,root:l}),c={galaxy:{translator:n.translator,flags:Dz(t.flags),deviceType:Ve(t.context.deviceType),anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},u={app:e,root:l,config:t,public:c,context:i,types:null},d=MN({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,m=null;const h={render:async e=>(await p,e.id?Az(e,u):_z(e,u)),context:async e=>{let t;["theme","language","constraints","keyboardNavigation"].forEach((n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])})),t&&(i=o(o(o({},i),t),{},{translator:n.translator}),u.context=i,t.theme&&(p=s.setTheme(t.theme),await p),t.language&&u.public.translator.language(t.language),l.context(i))},selections:async()=>(f||(f={mount(t){m||(m=JT({element:t,app:e}),l.add(m))},unmount(){m&&(l.remove(m),m=null)}}),f),field:async t=>{const n="string"==typeof t?t:t.qLibraryId;if(!n)throw new Error("Field identifier must be provided");const r={fieldName:n,mount(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!r)throw new Error("Element for ".concat(n," not provided"));if(this._instance)throw new Error("Field ".concat(n," already mounted"));this._instance=bP({element:r,app:e,fieldIdentifier:t,options:_N(o),stateName:o.stateName||"$"}),l.add(this._instance)},unmount(){this._instance&&(l.remove(this._instance),this._instance=null)}};return r},getRegisteredTypes:d.getList,__DO_NOT_USE__:{types:d}};return u.public.nebbie=h,u.types=d,h}return r.createConfiguration=n=>e(NN(t,n)),r.config=t,r}({context:{theme:"light",language:"en-US",deviceType:"auto",constraints:{},keyboardNavigation:!1,disableCellPadding:!1},load:()=>{},types:[],themes:[],anything:{},snapshot:TN}),DN={exports:{}},$N={exports:{}};!function(e,t){e.exports=function(){function e(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - ".concat(+Date.now())})}}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function n(e){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?t(Object(o),!0).forEach((function(t){r(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):t(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},a=Object.keys(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var a=Object.prototype.hasOwnProperty,i=Object.prototype.toString,l=Object.defineProperty,s=Object.getOwnPropertyDescriptor,c=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},u=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=a.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&a.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||a.call(e,t)},d=function(e,t){l&&"__proto__"===t.name?l(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},p=function(e,t){if("__proto__"===t){if(!a.call(e,t))return;if(s)return s(e,t).value}return e[t]},f=function e(){var t,n,r,o,a,i,l=arguments[0],s=1,f=arguments.length,m=!1;for("boolean"==typeof l&&(m=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<f;++s)if(null!=(t=arguments[s]))for(n in t)r=p(l,n),l!==(o=p(t,n))&&(m&&o&&(u(o)||(a=c(o)))?(a?(a=!1,i=r&&c(r)?r:[]):i=r&&u(r)?r:{},d(l,{name:n,newValue:e(m,i,o)})):void 0!==o&&d(l,{name:n,newValue:o}));return l};const m=globalThis.crypto||{getRandomValues:()=>123456};function h(){return e=>{const t=f({},e);t.qInfo=t.qInfo||{},t.qInfo.qId=t.qInfo.qId||"mock-".concat(([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,(e=>(e^m.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))));const r=t._mock;let o=t;return r&&(delete t._mock,o=f({},t,r)),Promise.resolve(n({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(t),getEffectiveProperties:()=>Promise.resolve(t),id:t.qInfo.qId},t))}}const g=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},v=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=g(e,{defaultValue:t,args:a});return n?new Promise((e=>{setTimeout((()=>e(l)),r)})):l}},b=["id","session"],y=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function x(e){return!y.includes(e)}function S(e){const t=g(e.getLayout);return t.qInfo&&t.qInfo.qId}function w(e,t){return e.reduce(((e,r)=>n(n({},e),function(e,t){const r=S(e),{delay:a}=t,{id:i,session:l}=e,s=o(e,b);return{[r]:n({id:g(i,{defaultValue:"object - ".concat(+Date.now())}),session:g(l,{defaultValue:!0}),on:()=>{},once:()=>{}},Object.entries(s).reduce(((e,t)=>{let[r,o]=t;return n(n({},e),{},{[r]:v(o,{async:x(r),delay:a})})}),{}))}}(r,t))),{})}function C(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!S(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function k(){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(C);const n=w(e,t);return async e=>Promise.resolve(n[e])}function E(){return()=>Promise.resolve({id:"app-layout"})}var R={fromGenericObjects:function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=new e,o=new h,a=new k(t,n),i=new E,l={id:"app - ".concat(+Date.now()),session:r,createSessionObject:o,getObject:a,getAppLayout:i};return Promise.resolve(l)}};return R}()}($N),function(e){e.exports=$N.exports}(DN);const qN={generator:kN,hook:lN,theme:We,locale:u,EnigmaMocker:n(DN.exports)};e.__DO_NOT_USE__=qN,e.conversion=jP,e.embed=AN,e.onTakeSnapshot=function(e){const t=oN(++Kz);t.value||(t.value=1,Gz.__hooks.snaps.push(t)),t.fn=e},e.useAction=function(e,t){const[n]=sN({action(){n._config.action.call(null)}});return n.component||(n.component=Gz,Gz.__hooks.actions.list.push(n)),dN((()=>{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=aN("app");return e&&e.session?e:void 0},e.useAppLayout=function(){return aN("appLayout")},e.useConstraints=function(){return aN("constraints")},e.useDeviceType=function(){return aN("deviceType")},e.useEffect=cN,e.useElement=pN,e.useEmbed=function(){return aN("nebbie")},e.useGlobal=function(){const e=aN("global");return e&&e.session?e:void 0},e.useImperativeHandle=function(e,t){const n=oN(++Kz);if(n.imperative||(n.imperative=!0),Xz(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Gz.__hooks.imperativeHandle=r}},e.useKeyboard=function(){const e=aN("keyboardNavigation"),t=aN("focusHandler");if(!Gz.__hooks.accessibility.exitFunction){const e=function(e){const n=this.__hooks.accessibility;n.enabled&&n.active&&(mN(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Gz);Gz.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),fN(this))}.bind(Gz);Gz.__hooks.accessibility.focusFunction=n;const r=function(e){this.__hooks.accessibility.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Gz);Gz.__hooks.accessibility.focusSelectionFunction=r}const n=Gz.__hooks.accessibility.focusFunction,r=Gz.__hooks.accessibility.exitFunction,o=Gz.__hooks.accessibility.focusSelectionFunction,[a,i]=sN({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Gz.__hooks.accessibility.setter=i,Gz.__hooks.accessibility.enabled=e,cN((()=>i({active:!1,enabled:e,blur:r,focus:n,focusSelection:o})),[e]),a},e.useLayout=function(){return aN("layout")},e.useMemo=dN,e.useModel=function(){const e=aN("model");return e&&e.session?e:void 0},e.useOptions=function(){return aN("options")},e.usePlugins=function(){return aN("plugins")},e.usePromise=function(e,t){const[n,r]=sN((()=>({resolved:void 0,rejected:void 0,state:"pending"}))),o=oN(++Kz);return o.component||(o.component=Gz),uN((()=>{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=pN(),t=Gz.__hooks.resizer,[n,r]=sN((()=>{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()),uN((()=>{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(){oN(++Kz);const e=Gz.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},e.useSelections=function(){return aN("selections")},e.useStaleLayout=function(){const e=aN("layout"),[t]=sN({current:e});return e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e),t.current},e.useState=sN,e.useTheme=function(){return aN("theme")},e.useTranslator=function(){return aN("translator")},Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
231
231
|
//# sourceMappingURL=stardust.js.map
|